@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
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
// stylelint-disable color-no-hex
|
|
2
2
|
|
|
3
3
|
// This extra import allows any variables that are created via functions to work when loaded into JS
|
|
4
|
-
@import '
|
|
4
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/functions/index';
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// Constants
|
|
7
7
|
$euiColorGhost: #FFF !default;
|
|
8
8
|
$euiColorInk: #000 !default;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
$euiColorPlainLight: $euiColorGhost;
|
|
11
|
+
$euiColorPlainDark: $euiColorInk;
|
|
12
|
+
|
|
13
|
+
// Brand
|
|
11
14
|
$euiColorPrimary: #36A2EF !default;
|
|
12
15
|
$euiColorAccent: #F68FBE !default;
|
|
13
|
-
|
|
14
|
-
// Status
|
|
16
|
+
$euiColorAccentSecondary: #7DDED8 !default;
|
|
15
17
|
$euiColorSuccess: #7DDED8 !default;
|
|
16
18
|
$euiColorWarning: #F3D371 !default;
|
|
17
19
|
$euiColorDanger: #F86B63 !default;
|
|
18
20
|
|
|
19
|
-
//
|
|
21
|
+
// Shades
|
|
20
22
|
$euiColorEmptyShade: #1D1E24 !default;
|
|
21
23
|
$euiColorLightestShade: #25262E !default;
|
|
22
24
|
$euiColorLightShade: #343741 !default;
|
|
@@ -29,21 +31,91 @@ $euiColorFullShade: #FFF !default;
|
|
|
29
31
|
$euiPageBackgroundColor: shade($euiColorLightestShade, 45%) !default;
|
|
30
32
|
$euiColorHighlight: #2E2D25 !default;
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
$euiColorBackgroundBasePrimary: shade($euiColorPrimary, 80%) !default;
|
|
35
|
+
$euiColorBackgroundBaseAccent: shade($euiColorAccent, 80%) !default;
|
|
36
|
+
$euiColorBackgroundBaseAccentSecondary: shade($euiColorAccentSecondary, 80%) !default;
|
|
37
|
+
$euiColorBackgroundBaseSuccess: shade($euiColorSuccess, 80%) !default;
|
|
38
|
+
$euiColorBackgroundBaseWarning: shade($euiColorWarning, 80%) !default;
|
|
39
|
+
$euiColorBackgroundBaseDanger: shade($euiColorDanger, 80%) !default;
|
|
40
|
+
$euiColorBackgroundBaseSubdued: shade($euiPageBackgroundColor, 80%) !default;
|
|
41
|
+
$euiColorBackgroundBaseDisabled: transparentize($euiColorLightShade, 0.15)!default;
|
|
42
|
+
$euiColorBackgroundBasePlain: $euiColorEmptyShade !default;
|
|
43
|
+
$euiColorBackgroundBaseFormsPrepend: shade($euiColorLightShade, 0.15) !default;
|
|
44
|
+
$euiColorBackgroundBaseFormsControlDisabled: $euiColorLightShade !default;
|
|
45
|
+
|
|
46
|
+
$euiColorBackgroundBaseInteractiveHover: transparentize($euiColorLightShade, 0.2) !default;
|
|
47
|
+
$euiColorBackgroundBaseInteractiveSelect: shade($euiColorPrimary, 0.7) !default;
|
|
48
|
+
$euiColorBackgroundBaseInteractiveOverlay: transparentize($euiColorInk, 0.5) !default;
|
|
49
|
+
$euiColorBackgroundBaseSkeletonEdge: shade($euiColorLightShade, 0.12) !default;
|
|
50
|
+
$euiColorBackgroundBaseSkeletonMiddle: shade($euiColorLightShade, 0.24) !default;
|
|
51
|
+
|
|
52
|
+
$euiColorBackgroundLightPrimary: shade($euiColorPrimary, 0.7) !default;
|
|
53
|
+
$euiColorBackgroundLightAccent: shade($euiColorAccent, 0.7) !default;
|
|
54
|
+
$euiColorBackgroundLightAccentSecondary: shade($euiColorAccentSecondary, 0.7) !default;
|
|
55
|
+
$euiColorBackgroundLightSuccess: shade($euiColorSuccess, 0.7) !default;
|
|
56
|
+
$euiColorBackgroundLightWarning: shade($euiColorWarning, 0.7) !default;
|
|
57
|
+
$euiColorBackgroundLightDanger: shade($euiColorDanger, 0.7) !default;
|
|
58
|
+
$euiColorBackgroundLightText: shade($euiColorLightShade, 0.2) !default;
|
|
59
|
+
|
|
60
|
+
$euiColorBackgroundFilledPrimary: $euiColorPrimary !default;
|
|
61
|
+
$euiColorBackgroundFilledAccent: $euiColorAccent !default;
|
|
62
|
+
$euiColorBackgroundFilledAccentSecondary: $euiColorAccentSecondary !default;
|
|
63
|
+
$euiColorBackgroundFilledSuccess: $euiColorSuccess !default;
|
|
64
|
+
$euiColorBackgroundFilledWarning: $euiColorWarning !default;
|
|
65
|
+
$euiColorBackgroundFilledDanger: $euiColorDanger !default;
|
|
66
|
+
$euiColorBackgroundFilledText: #DFE5EF !default;
|
|
67
|
+
|
|
68
|
+
// Texts
|
|
33
69
|
$euiTextColor: #DFE5EF !default;
|
|
34
70
|
$euiTitleColor: $euiTextColor !default;
|
|
35
71
|
$euiTextSubduedColor: makeHighContrastColor($euiColorMediumShade) !default;
|
|
36
72
|
$euiColorDisabled: #515761 !default;
|
|
37
73
|
|
|
38
|
-
|
|
74
|
+
$euiColorTextParagraph: $euiTextColor !default;
|
|
75
|
+
$euiColorTextHeading: $euiTitleColor !default;
|
|
76
|
+
$euiColorTextSubdued: $euiTextSubduedColor !default;
|
|
77
|
+
$euiColorTextDisabled: #515761 !default;
|
|
78
|
+
$euiColorTextInverse: $euiColorGhost !default;
|
|
79
|
+
|
|
80
|
+
// Brand texts
|
|
39
81
|
$euiColorPrimaryText: makeHighContrastColor($euiColorPrimary) !default;
|
|
40
82
|
$euiColorSuccessText: makeHighContrastColor($euiColorSuccess) !default;
|
|
41
83
|
$euiColorAccentText: makeHighContrastColor($euiColorAccent) !default;
|
|
42
84
|
$euiColorWarningText: makeHighContrastColor($euiColorWarning) !default;
|
|
43
85
|
$euiColorDangerText: makeHighContrastColor($euiColorDanger) !default;
|
|
44
86
|
$euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
|
|
87
|
+
|
|
88
|
+
$euiColorTextPrimary: $euiColorPrimaryText !default;
|
|
89
|
+
$euiColorTextAccent: $euiColorAccentText !default;
|
|
90
|
+
$euiColorTextAccentSecondary: $euiColorSuccessText !default;
|
|
91
|
+
$euiColorTextSuccess: $euiColorSuccessText !default;
|
|
92
|
+
$euiColorTextWarning: $euiColorWarningText !default;
|
|
93
|
+
$euiColorTextDanger: $euiColorDangerText !default;
|
|
94
|
+
|
|
45
95
|
$euiLinkColor: $euiColorPrimaryText !default;
|
|
46
96
|
|
|
97
|
+
// Borders
|
|
98
|
+
$euiColorBorderBasePrimary: shade($euiColorPrimary, 0.6) !default;
|
|
99
|
+
$euiColorBorderBaseAccent: shade($euiColorAccent, 0.6) !default;
|
|
100
|
+
$euiColorBorderBaseAccentSecondary: shade($euiColorAccentSecondary, 0.6) !default;
|
|
101
|
+
$euiColorBorderBaseSuccess: shade($euiColorSuccess, 0.6) !default;
|
|
102
|
+
$euiColorBorderBaseWarning: shade($euiColorWarning, 0.6) !default;
|
|
103
|
+
$euiColorBorderBaseDanger: shade($euiColorDanger, 0.6) !default;
|
|
104
|
+
|
|
105
|
+
$euiColorBorderBasePlain: $euiColorLightShade !default;
|
|
106
|
+
$euiColorBorderBaseSubdued: $euiColorLightShade !default;
|
|
107
|
+
$euiColorBorderBaseDisabled: transparentize($euiColorGhost, 0.1) !default;
|
|
108
|
+
$euiColorBorderBaseFloating: $euiColorLightShade !default;
|
|
109
|
+
$euiColorBorderBaseFormsColorSwatch: transparentize($euiColorFullShade, 0.1) !default;
|
|
110
|
+
$euiColorBorderBaseFormsControl: tint($euiColorLightestShade, 0.31) !default;
|
|
111
|
+
|
|
112
|
+
$euiColorBorderStrongPrimary: $euiColorBorderBasePrimary !default;
|
|
113
|
+
$euiColorBorderStrongAccent: $euiColorBorderBaseAccent !default;
|
|
114
|
+
$euiColorBorderStrongAccentSecondary: $euiColorBorderBaseAccentSecondary !default;
|
|
115
|
+
$euiColorBorderStrongSuccess: $euiColorBorderBaseSuccess !default;
|
|
116
|
+
$euiColorBorderStrongWarning: $euiColorBorderBaseWarning !default;
|
|
117
|
+
$euiColorBorderStrongDanger: $euiColorBorderBaseDanger !default;
|
|
118
|
+
|
|
47
119
|
// Charts
|
|
48
120
|
$euiColorChartLines: $euiColorLightShade !default;
|
|
49
121
|
$euiColorChartBand: tint($euiColorLightestShade, 2.5%) !default;
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
// stylelint-disable color-no-hex
|
|
2
2
|
|
|
3
3
|
// This extra import allows any variables that are created via functions to work when loaded into JS
|
|
4
|
-
@import '
|
|
4
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/functions/index';
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// Constants
|
|
7
7
|
$euiColorGhost: #FFF !default;
|
|
8
8
|
$euiColorInk: #000 !default;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
$euiColorPlainLight: $euiColorGhost;
|
|
11
|
+
$euiColorPlainDark: $euiColorInk;
|
|
12
|
+
|
|
13
|
+
// Brand
|
|
11
14
|
$euiColorPrimary: #07C !default;
|
|
12
15
|
$euiColorAccent: #F04E98 !default;
|
|
13
|
-
|
|
14
|
-
// Status
|
|
16
|
+
$euiColorAccentSecondary: #00BFB3 !default;
|
|
15
17
|
$euiColorSuccess: #00BFB3 !default;
|
|
16
18
|
$euiColorWarning: #FEC514 !default;
|
|
17
19
|
$euiColorDanger: #BD271E !default;
|
|
18
20
|
|
|
19
|
-
//
|
|
21
|
+
// Shades
|
|
20
22
|
$euiColorEmptyShade: #FFF !default;
|
|
21
23
|
$euiColorLightestShade: #F5F7FA !default;
|
|
22
24
|
$euiColorLightShade: #D3DAE6 !default;
|
|
@@ -29,21 +31,91 @@ $euiColorFullShade: #000 !default;
|
|
|
29
31
|
$euiPageBackgroundColor: tint($euiColorLightestShade, 50%) !default;
|
|
30
32
|
$euiColorHighlight: tint($euiColorWarning, 90%) !default;
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
$euiColorBackgroundBasePrimary: tint($euiColorPrimary, 90%) !default;
|
|
35
|
+
$euiColorBackgroundBaseAccent: tint($euiColorAccent, 90%) !default;
|
|
36
|
+
$euiColorBackgroundBaseAccentSecondary: tint($euiColorAccentSecondary, 90%) !default;
|
|
37
|
+
$euiColorBackgroundBaseSuccess: tint($euiColorSuccess, 90%) !default;
|
|
38
|
+
$euiColorBackgroundBaseWarning: tint($euiColorWarning, 90%) !default;
|
|
39
|
+
$euiColorBackgroundBaseDanger: tint($euiColorDanger, 90%) !default;
|
|
40
|
+
$euiColorBackgroundBaseSubdued: $euiPageBackgroundColor !default;
|
|
41
|
+
$euiColorBackgroundBaseDisabled: transparentize($euiColorLightShade, 0.15) !default;
|
|
42
|
+
$euiColorBackgroundBasePlain: $euiColorEmptyShade !default;
|
|
43
|
+
$euiColorBackgroundBaseFormsPrepend: tint($euiColorLightShade, 0.5) !default;
|
|
44
|
+
$euiColorBackgroundBaseFormsControlDisabled: $euiColorLightShade !default;
|
|
45
|
+
|
|
46
|
+
$euiColorBackgroundBaseInteractiveHover: transparentize($euiColorLightShade, 0.2) !default;
|
|
47
|
+
$euiColorBackgroundBaseInteractiveSelect: tint($euiColorPrimary, 0.96) !default;
|
|
48
|
+
$euiColorBackgroundBaseInteractiveOverlay: transparentize($euiColorInk, 0.5) !default;
|
|
49
|
+
$euiColorBackgroundBaseSkeletonEdge: tint($euiColorLightShade, 0.65) !default;
|
|
50
|
+
$euiColorBackgroundBaseSkeletonMiddle: tint($euiColorLightShade, 0.8) !default;
|
|
51
|
+
|
|
52
|
+
$euiColorBackgroundLightPrimary: tint($euiColorPrimary, 0.8) !default;
|
|
53
|
+
$euiColorBackgroundLightAccent: tint($euiColorAccent, 0.8) !default;
|
|
54
|
+
$euiColorBackgroundLightAccentSecondary: tint($euiColorAccentSecondary, 0.8) !default;
|
|
55
|
+
$euiColorBackgroundLightSuccess: tint($euiColorSuccess, 0.8) !default;
|
|
56
|
+
$euiColorBackgroundLightWarning: tint($euiColorWarning, 0.8) !default;
|
|
57
|
+
$euiColorBackgroundLightDanger: tint($euiColorDanger, 0.8) !default;
|
|
58
|
+
$euiColorBackgroundLightText: tint($euiColorLightShade, 0.5) !default;
|
|
59
|
+
|
|
60
|
+
$euiColorBackgroundFilledPrimary: $euiColorPrimary !default;
|
|
61
|
+
$euiColorBackgroundFilledAccent: tint($euiColorAccent, 0.3) !default;
|
|
62
|
+
$euiColorBackgroundFilledAccentSecondary: tint($euiColorAccentSecondary, 0.3) !default;
|
|
63
|
+
$euiColorBackgroundFilledSuccess: tint($euiColorSuccess, 0.3) !default;
|
|
64
|
+
$euiColorBackgroundFilledWarning: $euiColorWarning !default;
|
|
65
|
+
$euiColorBackgroundFilledDanger: $euiColorDanger !default;
|
|
66
|
+
$euiColorBackgroundFilledText: $euiColorDarkShade !default;
|
|
67
|
+
|
|
68
|
+
// Texts
|
|
33
69
|
$euiTextColor: $euiColorDarkestShade !default;
|
|
34
70
|
$euiTitleColor: shade($euiTextColor, 50%) !default;
|
|
35
71
|
$euiTextSubduedColor: $euiColorDarkShade !default;
|
|
36
72
|
$euiColorDisabled: #ABB4C4 !default;
|
|
37
73
|
|
|
38
|
-
|
|
74
|
+
$euiColorTextParagraph: $euiTextColor !default;
|
|
75
|
+
$euiColorTextHeading: $euiTitleColor !default;
|
|
76
|
+
$euiColorTextSubdued: $euiTextSubduedColor !default;
|
|
77
|
+
$euiColorTextDisabled: #A2ABBA !default;
|
|
78
|
+
$euiColorTextInverse: $euiColorGhost !default;
|
|
79
|
+
|
|
80
|
+
// Brand texts
|
|
39
81
|
$euiColorPrimaryText: makeHighContrastColor($euiColorPrimary) !default;
|
|
40
82
|
$euiColorSuccessText: makeHighContrastColor($euiColorSuccess) !default;
|
|
41
83
|
$euiColorAccentText: makeHighContrastColor($euiColorAccent) !default;
|
|
42
84
|
$euiColorWarningText: makeHighContrastColor($euiColorWarning) !default;
|
|
43
85
|
$euiColorDangerText: makeHighContrastColor($euiColorDanger) !default;
|
|
44
86
|
$euiColorDisabledText: makeDisabledContrastColor($euiColorDisabled) !default;
|
|
87
|
+
|
|
88
|
+
$euiColorTextPrimary: $euiColorPrimaryText !default;
|
|
89
|
+
$euiColorTextAccent: $euiColorAccentText !default;
|
|
90
|
+
$euiColorTextAccentSecondary: $euiColorSuccessText !default;
|
|
91
|
+
$euiColorTextSuccess: $euiColorSuccessText !default;
|
|
92
|
+
$euiColorTextWarning: $euiColorWarningText !default;
|
|
93
|
+
$euiColorTextDanger: $euiColorDangerText !default;
|
|
94
|
+
|
|
45
95
|
$euiLinkColor: $euiColorPrimaryText !default;
|
|
46
96
|
|
|
97
|
+
// Borders
|
|
98
|
+
$euiColorBorderBasePrimary: tint($euiColorPrimary, 0.6) !default;
|
|
99
|
+
$euiColorBorderBaseAccent: tint($euiColorAccent, 0.6) !default;
|
|
100
|
+
$euiColorBorderBaseAccentSecondary: tint($euiColorAccentSecondary, 0.6) !default;
|
|
101
|
+
$euiColorBorderBaseSuccess: tint($euiColorSuccess, 0.6) !default;
|
|
102
|
+
$euiColorBorderBaseWarning: tint($euiColorWarning, 0.6) !default;
|
|
103
|
+
$euiColorBorderBaseDanger: tint($euiColorDanger, 0.6) !default;
|
|
104
|
+
|
|
105
|
+
$euiColorBorderBasePlain: $euiColorLightShade !default;
|
|
106
|
+
$euiColorBorderBaseSubdued: $euiColorLightShade !default;
|
|
107
|
+
$euiColorBorderBaseDisabled: transparentize(darken($euiColorLightShade, 40%), 0.1) !default;
|
|
108
|
+
$euiColorBorderBaseFloating: 'transparent' !default;
|
|
109
|
+
$euiColorBorderBaseFormsColorSwatch: transparentize($euiColorFullShade, 0.1) !default;
|
|
110
|
+
$euiColorBorderBaseFormsControl: shade($euiColorLightestShade, 0.4) !default;
|
|
111
|
+
|
|
112
|
+
$euiColorBorderStrongPrimary: $euiColorBorderBasePrimary !default;
|
|
113
|
+
$euiColorBorderStrongAccent: $euiColorBorderBaseAccent !default;
|
|
114
|
+
$euiColorBorderStrongAccentSecondary: $euiColorBorderBaseAccentSecondary !default;
|
|
115
|
+
$euiColorBorderStrongSuccess: $euiColorBorderBaseSuccess !default;
|
|
116
|
+
$euiColorBorderStrongWarning: $euiColorBorderBaseWarning !default;
|
|
117
|
+
$euiColorBorderStrongDanger: $euiColorBorderBaseDanger !default;
|
|
118
|
+
|
|
47
119
|
// Charts
|
|
48
120
|
$euiColorChartLines: shade($euiColorLightestShade, 3%) !default;
|
|
49
121
|
$euiColorChartBand: $euiColorLightestShade !default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Coloring
|
|
2
|
+
$euiFormBackgroundColor: tintOrShade($euiColorLightestShade, 60%, 40%) !default;
|
|
3
|
+
$euiFormBackgroundDisabledColor: darken($euiColorLightestShade, 2%) !default;
|
|
4
|
+
$euiFormBackgroundReadOnlyColor: $euiColorEmptyShade !default;
|
|
5
|
+
$euiFormBorderOpaqueColor: shadeOrTint(desaturate(adjust-hue($euiColorPrimary, 22), 22.95), 26%, 100%) !default;
|
|
6
|
+
$euiFormBorderColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
|
|
7
|
+
$euiFormBorderDisabledColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
|
|
8
|
+
$euiFormControlDisabledColor: $euiColorMediumShade !default;
|
|
9
|
+
$euiFormControlBoxShadow: 0 0 transparent !default;
|
|
10
|
+
$euiFormControlPlaceholderText: makeHighContrastColor($euiTextSubduedColor, $euiFormBackgroundColor) !default;
|
|
11
|
+
$euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 15%) !default;
|
|
12
|
+
$euiFormInputGroupBorder: none !default;
|
|
@@ -31,7 +31,6 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
31
31
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
32
32
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
33
33
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
34
|
-
var visColors = (0, _services.euiPaletteColorBlindBehindText)();
|
|
35
34
|
var SIZES = exports.SIZES = ['s', 'm', 'l', 'xl'];
|
|
36
35
|
var TYPES = exports.TYPES = ['space', 'user'];
|
|
37
36
|
var CASING = exports.CASING = ['capitalize', 'uppercase', 'lowercase', 'none'];
|
|
@@ -63,6 +62,7 @@ var EuiAvatar = exports.EuiAvatar = function EuiAvatar(_ref) {
|
|
|
63
62
|
var _props$casing = props.casing,
|
|
64
63
|
casing = _props$casing === void 0 ? type === 'space' ? 'none' : 'uppercase' : _props$casing,
|
|
65
64
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
65
|
+
var visColors = (0, _color.useEuiPaletteColorBlindBehindText)();
|
|
66
66
|
var isPlain = color === 'plain';
|
|
67
67
|
var isSubdued = color === 'subdued';
|
|
68
68
|
var isNamedColor = isPlain || isSubdued || color === null;
|
|
@@ -84,7 +84,7 @@ var EuiAvatar = exports.EuiAvatar = function EuiAvatar(_ref) {
|
|
|
84
84
|
color: textColor
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
}, [imageUrl, color, isNamedColor, name.length]);
|
|
87
|
+
}, [imageUrl, color, isNamedColor, name.length, visColors]);
|
|
88
88
|
var iconCustomColor = (0, _react.useMemo)(function () {
|
|
89
89
|
// `null` allows icons to keep their default color (e.g. app icons)
|
|
90
90
|
if (iconColor === null) return undefined;
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiBadgeStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _services = require("../../services");
|
|
10
9
|
var _color_utils = require("./color_utils");
|
|
11
10
|
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)."; } /*
|
|
12
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -66,7 +65,7 @@ var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeCo
|
|
|
66
65
|
},
|
|
67
66
|
// Clickable icons (iconOnClick)
|
|
68
67
|
iconButton: {
|
|
69
|
-
euiBadge__iconButton: /*#__PURE__*/(0, _react.css)("font-size:0;&:focus{background-color:",
|
|
68
|
+
euiBadge__iconButton: /*#__PURE__*/(0, _react.css)("font-size:0;&:focus{background-color:", euiTheme.components.badgeIconButtonBackgroundHover, ";color:", euiTheme.colors.ink, ";border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
|
|
70
69
|
return x / 2;
|
|
71
70
|
}), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
|
|
72
71
|
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";;label:right;"),
|
|
@@ -39,6 +39,7 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
39
39
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
40
40
|
};
|
|
41
41
|
var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
42
|
+
var _euiTheme$flags;
|
|
42
43
|
var euiTheme = euiThemeContext.euiTheme,
|
|
43
44
|
colorMode = euiThemeContext.colorMode;
|
|
44
45
|
var badgeColors = (0, _color_utils.euiBadgeColors)(euiThemeContext);
|
|
@@ -48,12 +49,13 @@ var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyle
|
|
|
48
49
|
return x * 1.25;
|
|
49
50
|
})
|
|
50
51
|
};
|
|
52
|
+
var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
|
|
51
53
|
return {
|
|
52
54
|
euiBetaBadge: /*#__PURE__*/(0, _react.css)("display:inline-block;border-radius:", euiTheme.size.l, ";cursor:default;font-weight:", euiTheme.font.weight.semiBold, ";text-transform:uppercase;letter-spacing:0.05em;text-align:center;", (0, _global_styling.euiTextTruncate)(), " &:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset', {
|
|
53
55
|
color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
|
|
54
56
|
}), ";};label:euiBetaBadge;"),
|
|
55
57
|
// Colors
|
|
56
|
-
accent: /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;"),
|
|
58
|
+
accent: hasVisColorAdjustment ? /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;") : /*#__PURE__*/(0, _react.css)(badgeColors.accent, ";label:accent;"),
|
|
57
59
|
subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;"),
|
|
58
60
|
hollow: /*#__PURE__*/(0, _react.css)("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
59
61
|
warning: /*#__PURE__*/(0, _react.css)(badgeColors.warning, ";label:warning;"),
|
|
@@ -9,7 +9,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
|
11
11
|
var _services = require("../../services");
|
|
12
|
-
var
|
|
12
|
+
var _button = require("../../global_styling/mixins/_button");
|
|
13
13
|
var _utils = require("../color_picker/utils");
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
|
|
@@ -20,25 +20,26 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
20
20
|
* Side Public License, v 1.
|
|
21
21
|
*/
|
|
22
22
|
var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
23
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
24
|
-
colorMode = euiThemeContext.colorMode;
|
|
23
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
25
24
|
return {
|
|
26
25
|
// Colors shared between buttons and badges
|
|
27
|
-
primary: (0,
|
|
28
|
-
success: (0,
|
|
29
|
-
warning: (0,
|
|
30
|
-
danger: (0,
|
|
31
|
-
accent: (0,
|
|
32
|
-
|
|
26
|
+
primary: (0, _button.euiButtonFillColor)(euiThemeContext, 'primary'),
|
|
27
|
+
success: (0, _button.euiButtonFillColor)(euiThemeContext, 'success'),
|
|
28
|
+
warning: (0, _button.euiButtonFillColor)(euiThemeContext, 'warning'),
|
|
29
|
+
danger: (0, _button.euiButtonFillColor)(euiThemeContext, 'danger'),
|
|
30
|
+
accent: (0, _button.euiButtonFillColor)(euiThemeContext, 'accent'),
|
|
31
|
+
accentSecondary: (0, _button.euiButtonFillColor)(euiThemeContext, 'accentSecondary'),
|
|
32
|
+
disabled: (0, _button.euiButtonColor)(euiThemeContext, 'disabled'),
|
|
33
33
|
// Colors unique to badges
|
|
34
|
-
default: getBadgeColors(euiThemeContext, euiTheme.
|
|
34
|
+
default: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackground),
|
|
35
35
|
// Hollow has a border and is used for autocompleters and beta badges
|
|
36
36
|
hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
|
|
37
|
-
borderColor:
|
|
37
|
+
borderColor: euiTheme.components.badgeBorderColorHollow
|
|
38
38
|
}),
|
|
39
39
|
// Colors used by beta and notification badges
|
|
40
|
-
subdued: getBadgeColors(euiThemeContext,
|
|
41
|
-
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.
|
|
40
|
+
subdued: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackgroundSubdued),
|
|
41
|
+
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccent),
|
|
42
|
+
accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
|
|
42
43
|
};
|
|
43
44
|
};
|
|
44
45
|
var getBadgeColors = exports.getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
|
|
@@ -26,9 +26,9 @@ var euiBeaconStyles = exports.euiBeaconStyles = function euiBeaconStyles(_ref) {
|
|
|
26
26
|
return {
|
|
27
27
|
// Base
|
|
28
28
|
euiBeacon: /*#__PURE__*/(0, _react.css)("position:relative;border-radius:50%;&::before,&::after{position:absolute;content:'';", (0, _global_styling.logicalSizeCSS)('100%', '100%'), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('top', 0), " background-color:transparent;border-radius:50%;}&::before{transform:scale(1.6);opacity:0.4;}&::after{opacity:0;}", _global_styling.euiCanAnimate, "{&::before{animation:", euiBeaconPulseLarge, " 2.5s infinite ease-out;}&::after{animation:", euiBeaconPulseSmall, " 2.5s infinite ease-out 0.25s;}};label:euiBeacon;"),
|
|
29
|
-
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
29
|
+
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
30
30
|
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.primary), ";label:primary;"),
|
|
31
|
-
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
31
|
+
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.accentSecondary), ";label:success;"),
|
|
32
32
|
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.warning), ";label:warning;"),
|
|
33
33
|
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.danger), ";label:danger;"),
|
|
34
34
|
accent: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.accent), ";label:accent;")
|
|
@@ -7,9 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.euiBottomBarStyles = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
10
11
|
var _global_styling = require("../../global_styling");
|
|
11
|
-
var _services = require("../../services");
|
|
12
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
13
12
|
var _templateObject;
|
|
14
13
|
/*
|
|
15
14
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -24,7 +23,7 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
|
|
|
24
23
|
return {
|
|
25
24
|
// Base
|
|
26
25
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
27
|
-
euiBottomBar: /*#__PURE__*/(0, _react.css)((0,
|
|
26
|
+
euiBottomBar: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowFlat)(euiThemeContext), " background:", euiTheme.components.bottomBarBackground, ";", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
28
27
|
static: /*#__PURE__*/(0, _react.css)(";label:static;"),
|
|
29
28
|
// Default
|
|
30
29
|
fixed: /*#__PURE__*/(0, _react.css)("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
|
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiBreadcrumbPopoverStyles = exports.euiBreadcrumbContentStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _color = require("../../services/color");
|
|
9
8
|
var _global_styling = require("../../global_styling");
|
|
10
|
-
var _button = require("../../
|
|
9
|
+
var _button = require("../../global_styling/mixins/_button");
|
|
11
10
|
/*
|
|
12
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
13
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,8 +19,7 @@ var _button = require("../../themes/amsterdam/global_styling/mixins/button");
|
|
|
20
19
|
* Styles cast to inner <a>, <button>, <span> elements
|
|
21
20
|
*/
|
|
22
21
|
var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
|
|
23
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
24
|
-
colorMode = euiThemeContext.colorMode;
|
|
22
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
25
23
|
|
|
26
24
|
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
27
25
|
var applicationButtonColors = (0, _button.euiButtonColor)(euiThemeContext, 'primary');
|
|
@@ -29,11 +27,11 @@ var euiBreadcrumbContentStyles = exports.euiBreadcrumbContentStyles = function e
|
|
|
29
27
|
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
30
28
|
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
31
29
|
var applicationTextColors = {
|
|
32
|
-
backgroundColor:
|
|
33
|
-
color:
|
|
30
|
+
backgroundColor: euiTheme.components.breadcrumbsApplicationBackground,
|
|
31
|
+
color: euiTheme.components.breadcrumbsApplicationColor
|
|
34
32
|
};
|
|
35
33
|
return {
|
|
36
|
-
euiBreadcrumb__content: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.
|
|
34
|
+
euiBreadcrumb__content: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.textSubdued, ";};label:euiBreadcrumb__content;"),
|
|
37
35
|
// Truncation styles
|
|
38
36
|
isTruncated: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)((0, _global_styling.mathWithUnits)(euiTheme.size.base, function (x) {
|
|
39
37
|
return x * 10;
|
|
@@ -10,7 +10,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
|
-
var _button = require("../../
|
|
13
|
+
var _button = require("../../global_styling/mixins/_button");
|
|
14
14
|
var _button_display = require("./button_display/_button_display");
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _excluded = ["className", "buttonRef", "size", "color", "fill"];
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiButtonDisplayStyles = exports.euiButtonBaseCSS = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../../global_styling");
|
|
9
|
-
var _mixins = require("../../../
|
|
9
|
+
var _mixins = require("../../../global_styling/mixins");
|
|
10
10
|
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
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -13,7 +13,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
14
|
var _services = require("../../../services");
|
|
15
15
|
var _button_display_content = require("../button_display/_button_display_content");
|
|
16
|
-
var _button = require("../../../
|
|
16
|
+
var _button = require("../../../global_styling/mixins/_button");
|
|
17
17
|
var _button_display = require("../button_display/_button_display");
|
|
18
18
|
var _button_empty = require("./button_empty.styles");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _services = require("../../../services");
|
|
16
|
-
var _button = require("../../../
|
|
16
|
+
var _button = require("../../../global_styling/mixins/_button");
|
|
17
17
|
var _inner_text = require("../../inner_text");
|
|
18
18
|
var _button_display = require("../button_display/_button_display");
|
|
19
19
|
var _button_group_button = require("./button_group_button.styles");
|
|
@@ -10,7 +10,7 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _services = require("../../../services");
|
|
12
12
|
var _global_styling = require("../../../global_styling");
|
|
13
|
-
var _button = require("../../../
|
|
13
|
+
var _button = require("../../../global_styling/mixins/_button");
|
|
14
14
|
var _accessibility = require("../../accessibility");
|
|
15
15
|
var _form = require("../../form/form.styles");
|
|
16
16
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -51,15 +51,15 @@ var euiButtonGroupButtonStyles = exports.euiButtonGroupButtonStyles = function e
|
|
|
51
51
|
};
|
|
52
52
|
return {
|
|
53
53
|
// Base
|
|
54
|
-
euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;};label:euiButtonGroupButton;"),
|
|
54
|
+
euiButtonGroupButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), " flex-shrink:1;flex-grow:0;z-index:0;&:focus-visible{z-index:1;}", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.normal, " ease-in-out,color ", euiTheme.animation.normal, " ease-in-out;};label:euiButtonGroupButton;"),
|
|
55
55
|
iconOnly: /*#__PURE__*/(0, _react.css)("padding-inline:", euiTheme.size.s, ";;label:iconOnly;"),
|
|
56
56
|
// Sizes
|
|
57
57
|
uncompressed: {
|
|
58
|
-
uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.
|
|
58
|
+
uncompressed: /*#__PURE__*/(0, _react.css)("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", (0, _global_styling.euiOutline)(euiThemeContext, 'inset', euiTheme.components.buttonGroupFocusColor), ";};label:uncompressed;"),
|
|
59
59
|
get borders() {
|
|
60
60
|
var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
61
|
-
var selectedColor =
|
|
62
|
-
var unselectedColor =
|
|
61
|
+
var selectedColor = euiTheme.components.buttonGroupBorderColorSelected;
|
|
62
|
+
var unselectedColor = euiTheme.components.buttonGroupBorderColor;
|
|
63
63
|
var borderWidth = euiTheme.border.width.thin;
|
|
64
64
|
|
|
65
65
|
// "Borders" between buttons should be present between two of the same colored buttons,
|
|
@@ -13,7 +13,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
13
13
|
var _services = require("../../../services");
|
|
14
14
|
var _icon = require("../../icon");
|
|
15
15
|
var _loading = require("../../loading");
|
|
16
|
-
var _button = require("../../../
|
|
16
|
+
var _button = require("../../../global_styling/mixins/_button");
|
|
17
17
|
var _button_display = require("../button_display/_button_display");
|
|
18
18
|
var _button_icon = require("./button_icon.styles");
|
|
19
19
|
var _react2 = require("@emotion/react");
|
|
@@ -8,7 +8,7 @@ exports.euiButtonIconStyles = exports._emptyHoverStyles = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _global_styling = require("../../../global_styling");
|
|
11
|
-
var _button = require("../../../
|
|
11
|
+
var _button = require("../../../global_styling/mixins/_button");
|
|
12
12
|
var _button_display = require("../button_display/_button_display.styles");
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -54,10 +54,10 @@ var euiCallOutHeaderStyles = exports.euiCallOutHeaderStyles = function euiCallOu
|
|
|
54
54
|
euiCallOutHeader: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.medium, ";", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important'
|
|
55
55
|
// In case it's nested inside EuiText
|
|
56
56
|
), ";;label:euiCallOutHeader;"),
|
|
57
|
-
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
58
|
-
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
59
|
-
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
60
|
-
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
57
|
+
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
58
|
+
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
59
|
+
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
60
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
61
61
|
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.accentText, ";;label:accent;"),
|
|
62
62
|
euiCallOut__icon: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('top', '-1px'), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), ";;label:euiCallOut__icon;")
|
|
63
63
|
};
|
|
@@ -400,7 +400,7 @@ EuiCard.propTypes = {
|
|
|
400
400
|
* Leave as `undefined` to display as a default panel.
|
|
401
401
|
* Selectable cards will always display as a default panel.
|
|
402
402
|
*/
|
|
403
|
-
display: _propTypes.default.any,
|
|
403
|
+
display: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.oneOf(["highlighted"])]),
|
|
404
404
|
/**
|
|
405
405
|
* Padding applied around the content of the card
|
|
406
406
|
*/
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiCardTextStyles = exports.euiCardStyles = exports.euiCardBetaBadgeStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../
|
|
9
|
+
var _mixins = require("../../global_styling/mixins");
|
|
10
10
|
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
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -65,6 +65,9 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
|
|
|
65
65
|
var euiCardStyles = exports.euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize) {
|
|
66
66
|
var euiTheme = euiThemeContext.euiTheme;
|
|
67
67
|
var paddingAmount = (0, _global_styling.euiPaddingSize)(euiThemeContext, paddingSize);
|
|
68
|
+
var cardPaddingAmount = paddingAmount ? (0, _global_styling.mathWithUnits)([paddingAmount, euiTheme.border.width.thin], function (x, y) {
|
|
69
|
+
return x + y;
|
|
70
|
+
}) : '0';
|
|
68
71
|
var spacing = (0, _global_styling.euiPaddingSize)(euiThemeContext, paddingKey);
|
|
69
72
|
var halfSpacing = (0, _global_styling.euiPaddingSize)(euiThemeContext, halfPaddingKey);
|
|
70
73
|
return {
|
|
@@ -103,7 +106,7 @@ var euiCardStyles = exports.euiCardStyles = function euiCardStyles(euiThemeConte
|
|
|
103
106
|
disabled: _ref2
|
|
104
107
|
},
|
|
105
108
|
image: {
|
|
106
|
-
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(
|
|
109
|
+
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(cardPaddingAmount, " * 2))")), " ", (0, _global_styling.logicalCSS)('left', "-".concat(cardPaddingAmount)), " ", (0, _global_styling.logicalCSS)('top', "-".concat(cardPaddingAmount)), (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
|
|
107
110
|
transparent: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";;label:transparent;")
|
|
108
111
|
},
|
|
109
112
|
icon: {
|