@elastic/eui 97.3.0 → 97.3.1-borealis.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{eui_theme_dark.json.d.ts → eui_theme_amsterdam_dark.json.d.ts} +1 -1
- package/dist/{eui_theme_light.json.d.ts → eui_theme_amsterdam_light.json.d.ts} +1 -1
- package/dist/eui_theme_borealis_dark.json +314 -0
- package/dist/eui_theme_borealis_dark.json.d.ts +317 -0
- package/dist/eui_theme_borealis_light.json +314 -0
- package/dist/eui_theme_borealis_light.json.d.ts +317 -0
- package/es/components/avatar/avatar.js +10 -4
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/badge.styles.js +2 -2
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
- package/es/components/badge/color_utils.js +8 -7
- package/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/es/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
- 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/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 +23 -27
- 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 +9 -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 +9 -6
- package/es/components/common.js +0 -28
- package/es/components/datagrid/data_grid.styles.js +3 -5
- package/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
- package/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/es/components/empty_prompt/empty_prompt.styles.js +5 -2
- package/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/es/components/flyout/_flyout_close_button.styles.js +1 -2
- package/es/components/flyout/flyout.js +1 -1
- package/es/components/flyout/flyout.styles.js +7 -2
- package/es/components/form/form.styles.js +27 -29
- package/es/components/form/range/range_tooltip.styles.js +3 -7
- 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 +6 -7
- package/es/components/icon/icon.styles.js +9 -8
- package/es/components/icon/named_colors.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 +1 -2
- 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/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 +1 -1
- package/es/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/es/components/page/page_header/page_header_content.js +2 -1
- package/es/components/page/page_header/page_header_content.styles.js +2 -1
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/panel/panel.styles.js +1 -1
- package/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/es/components/progress/progress.js +1 -1
- package/es/components/progress/progress.styles.js +30 -28
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/es/components/side_nav/side_nav_item.styles.js +1 -2
- package/es/components/skeleton/utils.js +5 -7
- package/es/components/steps/step_number.styles.js +1 -1
- package/es/components/table/table_cells_shared.styles.js +2 -7
- package/es/components/table/table_row.styles.js +8 -10
- 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/toast/toast.styles.js +1 -1
- package/es/components/token/token.js +10 -4
- package/es/components/token/token.styles.js +12 -3
- package/es/components/token/token_map.js +243 -1
- package/es/components/tool_tip/tool_tip.styles.js +12 -14
- package/es/components/tour/_tour_footer.styles.js +2 -4
- package/es/components/tree_view/tree_view_item.styles.js +1 -2
- 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 +40 -31
- package/es/global_styling/mixins/index.js +2 -1
- package/es/global_styling/reset/global_styles.js +2 -2
- package/es/global_styling/variables/_colors_vis.js +1 -53
- 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 +116 -47
- package/es/services/color/index.js +1 -0
- package/es/services/color/vis_color_store.js +13 -0
- package/es/services/index.js +1 -1
- package/es/services/theme/provider.js +26 -2
- package/es/services/theme/types.js +1 -6
- package/es/services/theme/utils.js +1 -303
- package/es/themes/amsterdam/global_styling/mixins/button.js +1 -203
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +281 -0
- package/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
- package/es/themes/amsterdam/global_styling/variables/_components.js +579 -0
- package/es/themes/amsterdam/global_styling/variables/_forms.js +153 -0
- package/es/themes/amsterdam/theme.js +7 -1
- package/es/themes/index.js +1 -1
- package/es/themes/themes.js +9 -6
- package/eui.d.ts +2170 -2620
- package/i18ntokens.json +4 -4
- package/lib/components/avatar/avatar.js +8 -2
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/badge.styles.js +2 -2
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
- package/lib/components/badge/color_utils.js +13 -12
- package/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
- 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/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 +23 -27
- 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 +8 -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 +9 -6
- package/lib/components/common.js +0 -28
- package/lib/components/datagrid/data_grid.styles.js +3 -5
- package/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
- package/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/lib/components/flyout/_flyout_close_button.styles.js +1 -2
- package/lib/components/flyout/flyout.js +1 -1
- package/lib/components/flyout/flyout.styles.js +7 -2
- package/lib/components/form/form.styles.js +26 -28
- package/lib/components/form/range/range_tooltip.styles.js +3 -7
- 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 +5 -6
- package/lib/components/icon/icon.styles.js +9 -8
- package/lib/components/icon/named_colors.js +1 -1
- package/lib/components/inline_edit/inline_edit_form.styles.js +1 -2
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +1 -2
- 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/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 +1 -1
- package/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/lib/components/page/page_header/page_header_content.js +2 -1
- package/lib/components/page/page_header/page_header_content.styles.js +2 -1
- package/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/lib/components/panel/panel.styles.js +1 -1
- package/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/lib/components/progress/progress.js +1 -1
- package/lib/components/progress/progress.styles.js +29 -27
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/lib/components/side_nav/side_nav_item.styles.js +1 -2
- package/lib/components/skeleton/utils.js +4 -6
- package/lib/components/steps/step_number.styles.js +1 -1
- package/lib/components/table/table_cells_shared.styles.js +2 -7
- package/lib/components/table/table_row.styles.js +7 -9
- 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/toast/toast.styles.js +1 -1
- package/lib/components/token/token.js +12 -4
- package/lib/components/token/token.styles.js +12 -3
- package/lib/components/token/token_map.js +244 -2
- package/lib/components/tool_tip/tool_tip.styles.js +12 -14
- package/lib/components/tour/_tour_footer.styles.js +2 -4
- package/lib/components/tree_view/tree_view_item.styles.js +1 -2
- 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 +39 -30
- package/lib/global_styling/mixins/index.js +11 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/global_styling/variables/_colors_vis.js +6 -61
- 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 +116 -47
- package/lib/services/color/index.js +8 -0
- package/lib/services/color/vis_color_store.js +18 -0
- package/lib/services/index.js +7 -0
- package/lib/services/theme/provider.js +26 -2
- package/lib/services/theme/types.js +13 -14
- package/lib/services/theme/utils.js +54 -303
- package/lib/themes/amsterdam/global_styling/mixins/button.js +45 -206
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +285 -0
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
- package/lib/themes/amsterdam/global_styling/variables/_components.js +583 -0
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +157 -0
- package/lib/themes/amsterdam/theme.js +7 -1
- package/lib/themes/index.js +7 -0
- package/lib/themes/themes.js +10 -7
- package/optimize/es/components/avatar/avatar.js +10 -4
- package/optimize/es/components/badge/badge.js +1 -1
- package/optimize/es/components/badge/badge.styles.js +2 -2
- package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -0
- package/optimize/es/components/badge/color_utils.js +8 -7
- package/optimize/es/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/optimize/es/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
- 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/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 +23 -27
- 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 +9 -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 +9 -6
- package/optimize/es/components/common.js +0 -28
- package/optimize/es/components/datagrid/data_grid.styles.js +3 -5
- package/optimize/es/components/date_picker/react_date_picker.styles.js +2 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +4 -5
- package/optimize/es/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/es/components/empty_prompt/empty_prompt.styles.js +5 -2
- package/optimize/es/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -2
- package/optimize/es/components/flyout/flyout.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +7 -2
- package/optimize/es/components/form/form.styles.js +27 -29
- package/optimize/es/components/form/range/range_tooltip.styles.js +3 -7
- 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 +6 -7
- package/optimize/es/components/icon/icon.styles.js +9 -8
- package/optimize/es/components/icon/named_colors.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 +1 -2
- 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/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 +1 -1
- package/optimize/es/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/es/components/page/page_header/page_header_content.js +2 -1
- package/optimize/es/components/page/page_header/page_header_content.styles.js +2 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +1 -1
- package/optimize/es/components/popover/popover_arrow/_popover_arrow.styles.js +23 -9
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/optimize/es/components/progress/progress.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +30 -28
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/optimize/es/components/side_nav/side_nav_item.styles.js +1 -2
- package/optimize/es/components/skeleton/utils.js +5 -7
- package/optimize/es/components/steps/step_number.styles.js +1 -1
- package/optimize/es/components/table/table_cells_shared.styles.js +2 -7
- package/optimize/es/components/table/table_row.styles.js +8 -10
- 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/toast/toast.styles.js +1 -1
- package/optimize/es/components/token/token.js +10 -4
- package/optimize/es/components/token/token.styles.js +12 -3
- package/optimize/es/components/token/token_map.js +243 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +12 -14
- package/optimize/es/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/es/components/tree_view/tree_view_item.styles.js +1 -2
- 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 +40 -31
- package/optimize/es/global_styling/mixins/index.js +2 -1
- package/optimize/es/global_styling/reset/global_styles.js +2 -2
- package/optimize/es/global_styling/variables/_colors_vis.js +1 -53
- 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 +116 -47
- package/optimize/es/services/color/index.js +1 -0
- package/optimize/es/services/color/vis_color_store.js +13 -0
- package/optimize/es/services/index.js +1 -1
- package/optimize/es/services/theme/provider.js +26 -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/mixins/button.js +1 -198
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +270 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +590 -19
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +94 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +571 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +145 -0
- package/optimize/es/themes/amsterdam/theme.js +7 -1
- package/optimize/es/themes/index.js +1 -1
- package/optimize/es/themes/themes.js +9 -6
- package/optimize/lib/components/avatar/avatar.js +8 -2
- package/optimize/lib/components/badge/badge.js +1 -1
- package/optimize/lib/components/badge/badge.styles.js +2 -2
- package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -0
- package/optimize/lib/components/badge/color_utils.js +13 -12
- package/optimize/lib/components/badge/notification_badge/badge_notification.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/optimize/lib/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
- 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/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 +23 -27
- 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 +8 -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 +9 -6
- package/optimize/lib/components/common.js +0 -28
- package/optimize/lib/components/datagrid/data_grid.styles.js +3 -5
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +3 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/optimize/lib/components/drag_and_drop/droppable.styles.js +2 -4
- package/optimize/lib/components/empty_prompt/empty_prompt.styles.js +4 -1
- package/optimize/lib/components/filter_group/filter_select_item.styles.js +1 -2
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +1 -2
- package/optimize/lib/components/flyout/flyout.js +1 -1
- package/optimize/lib/components/flyout/flyout.styles.js +7 -2
- package/optimize/lib/components/form/form.styles.js +26 -28
- package/optimize/lib/components/form/range/range_tooltip.styles.js +3 -7
- 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 +5 -6
- package/optimize/lib/components/icon/icon.styles.js +9 -8
- package/optimize/lib/components/icon/named_colors.js +1 -1
- 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 +1 -2
- 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/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 +1 -1
- package/optimize/lib/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/lib/components/page/page_header/page_header_content.js +2 -1
- package/optimize/lib/components/page/page_header/page_header_content.styles.js +2 -1
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/lib/components/panel/panel.styles.js +1 -1
- package/optimize/lib/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/optimize/lib/components/progress/progress.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +29 -27
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +1 -2
- package/optimize/lib/components/skeleton/utils.js +4 -6
- package/optimize/lib/components/steps/step_number.styles.js +1 -1
- package/optimize/lib/components/table/table_cells_shared.styles.js +2 -7
- package/optimize/lib/components/table/table_row.styles.js +7 -9
- 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/toast/toast.styles.js +1 -1
- package/optimize/lib/components/token/token.js +13 -4
- package/optimize/lib/components/token/token.styles.js +12 -3
- package/optimize/lib/components/token/token_map.js +244 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +12 -14
- package/optimize/lib/components/tour/_tour_footer.styles.js +2 -4
- package/optimize/lib/components/tree_view/tree_view_item.styles.js +1 -2
- 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 +39 -30
- package/optimize/lib/global_styling/mixins/index.js +11 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/global_styling/variables/_colors_vis.js +6 -61
- 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 +116 -47
- package/optimize/lib/services/color/index.js +8 -0
- package/optimize/lib/services/color/vis_color_store.js +18 -0
- package/optimize/lib/services/index.js +7 -0
- package/optimize/lib/services/theme/provider.js +26 -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/mixins/button.js +45 -203
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +589 -19
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +576 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +150 -0
- package/optimize/lib/themes/amsterdam/theme.js +7 -1
- package/optimize/lib/themes/index.js +7 -0
- package/optimize/lib/themes/themes.js +10 -7
- package/package.json +7 -3
- package/src/global_styling/functions/_index.scss +1 -5
- package/src/global_styling/index.scss +1 -16
- 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/_colors_vis.scss +1 -70
- package/src/global_styling/variables/_font_weight.scss +1 -7
- package/src/global_styling/variables/_form.scss +2 -21
- 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 -15
- 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/_colors_vis.scss +72 -0
- 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 +8 -2
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/badge.styles.js +2 -2
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -0
- package/test-env/components/badge/color_utils.js +13 -12
- package/test-env/components/badge/notification_badge/badge_notification.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -0
- package/test-env/components/bottom_bar/bottom_bar.styles.js +1 -2
- package/test-env/components/breadcrumbs/_breadcrumb_content.styles.js +4 -6
- 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/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 +23 -27
- 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 +8 -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 +9 -6
- package/test-env/components/common.js +0 -28
- package/test-env/components/datagrid/data_grid.styles.js +3 -5
- package/test-env/components/date_picker/react_date_picker.styles.js +3 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +3 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +11 -3
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +3 -4
- package/test-env/components/drag_and_drop/droppable.styles.js +2 -4
- package/test-env/components/empty_prompt/empty_prompt.styles.js +4 -1
- package/test-env/components/filter_group/filter_select_item.styles.js +1 -2
- package/test-env/components/flyout/_flyout_close_button.styles.js +1 -2
- package/test-env/components/flyout/flyout.styles.js +7 -2
- package/test-env/components/form/form.styles.js +26 -28
- package/test-env/components/form/range/range_tooltip.styles.js +3 -7
- 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 +5 -6
- package/test-env/components/icon/icon.styles.js +9 -8
- package/test-env/components/icon/named_colors.js +1 -1
- 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 +1 -2
- 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/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 +1 -1
- package/test-env/components/overlay_mask/overlay_mask.styles.js +1 -2
- package/test-env/components/page/page_header/page_header_content.js +2 -1
- package/test-env/components/page/page_header/page_header_content.styles.js +2 -1
- package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
- package/test-env/components/panel/panel.styles.js +1 -1
- package/test-env/components/popover/popover_arrow/_popover_arrow.styles.js +22 -8
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/test-env/components/progress/progress.js +1 -1
- package/test-env/components/progress/progress.styles.js +29 -27
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -2
- package/test-env/components/side_nav/side_nav_item.styles.js +1 -2
- package/test-env/components/skeleton/utils.js +4 -6
- package/test-env/components/steps/step_number.styles.js +1 -1
- package/test-env/components/table/table_cells_shared.styles.js +2 -7
- package/test-env/components/table/table_row.styles.js +7 -9
- 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/toast/toast.styles.js +1 -1
- package/test-env/components/token/token.js +13 -4
- package/test-env/components/token/token.styles.js +12 -3
- package/test-env/components/token/token_map.js +244 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +12 -14
- package/test-env/components/tour/_tour_footer.styles.js +2 -4
- package/test-env/components/tree_view/tree_view_item.styles.js +1 -2
- 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 +39 -30
- package/test-env/global_styling/mixins/index.js +11 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/global_styling/variables/_colors_vis.js +6 -61
- 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/color/eui_palettes.js +116 -47
- package/test-env/services/color/index.js +8 -0
- package/test-env/services/color/vis_color_store.js +18 -0
- package/test-env/services/index.js +7 -0
- package/test-env/services/theme/provider.js +26 -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/mixins/button.js +45 -203
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +275 -0
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +589 -19
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +100 -0
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +576 -0
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +150 -0
- package/test-env/themes/amsterdam/theme.js +7 -1
- package/test-env/themes/index.js +7 -0
- package/test-env/themes/themes.js +10 -7
- /package/dist/{eui_theme_dark.json → eui_theme_amsterdam_dark.json} +0 -0
- /package/dist/{eui_theme_light.json → eui_theme_amsterdam_light.json} +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.forms = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _utils = require("../../../../services/theme/utils");
|
|
11
|
+
var _manipulation = require("../../../../services/color/manipulation");
|
|
12
|
+
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; }
|
|
13
|
+
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; } /*
|
|
14
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
15
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
16
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
17
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
|
+
* Side Public License, v 1.
|
|
19
|
+
*/
|
|
20
|
+
var _forms = {
|
|
21
|
+
background: (0, _utils.computed)(function (_ref) {
|
|
22
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
|
|
23
|
+
lightestShade = _ref2[0];
|
|
24
|
+
return (0, _manipulation.tint)(lightestShade, 0.6);
|
|
25
|
+
}, ['colors.lightestShade']),
|
|
26
|
+
backgroundDisabled: (0, _utils.computed)(function (_ref3) {
|
|
27
|
+
var _ref4 = (0, _slicedToArray2.default)(_ref3, 1),
|
|
28
|
+
lightestShade = _ref4[0];
|
|
29
|
+
return (0, _manipulation.darken)(lightestShade, 0.05);
|
|
30
|
+
}, ['colors.lightestShade']),
|
|
31
|
+
backgroundReadOnly: (0, _utils.computed)(function (_ref5) {
|
|
32
|
+
var _ref6 = (0, _slicedToArray2.default)(_ref5, 1),
|
|
33
|
+
emptyShade = _ref6[0];
|
|
34
|
+
return emptyShade;
|
|
35
|
+
}, ['colors.emptyShade']),
|
|
36
|
+
backgroundFocused: (0, _utils.computed)(function (_ref7) {
|
|
37
|
+
var _ref8 = (0, _slicedToArray2.default)(_ref7, 1),
|
|
38
|
+
emptyShade = _ref8[0];
|
|
39
|
+
return emptyShade;
|
|
40
|
+
}, ['colors.emptyShade']),
|
|
41
|
+
backgroundAutofilled: (0, _utils.computed)(function (_ref9) {
|
|
42
|
+
var _ref10 = (0, _slicedToArray2.default)(_ref9, 1),
|
|
43
|
+
primary = _ref10[0];
|
|
44
|
+
var background = (0, _manipulation.tint)(primary, 0.8);
|
|
45
|
+
return (0, _manipulation.tint)(background, 0.7);
|
|
46
|
+
}, ['colors.primary']),
|
|
47
|
+
prependBackground: (0, _utils.computed)(function (_ref11) {
|
|
48
|
+
var _ref12 = (0, _slicedToArray2.default)(_ref11, 1),
|
|
49
|
+
lightShade = _ref12[0];
|
|
50
|
+
return (0, _manipulation.tint)(lightShade, 0.5);
|
|
51
|
+
}, ['colors.lightShade']),
|
|
52
|
+
border: (0, _utils.computed)(function (_ref13) {
|
|
53
|
+
var _ref14 = (0, _slicedToArray2.default)(_ref13, 1),
|
|
54
|
+
lightShade = _ref14[0];
|
|
55
|
+
var color = (0, _manipulation.darken)(lightShade, 4);
|
|
56
|
+
return (0, _manipulation.transparentize)(color, 0.1);
|
|
57
|
+
}, ['colors.lightShade']),
|
|
58
|
+
borderAutofilled: (0, _utils.computed)(function (_ref15) {
|
|
59
|
+
var _ref16 = (0, _slicedToArray2.default)(_ref15, 1),
|
|
60
|
+
primaryText = _ref16[0];
|
|
61
|
+
return (0, _manipulation.transparentize)(primaryText, 0.2);
|
|
62
|
+
}, ['colors.primaryText']),
|
|
63
|
+
controlBorder: (0, _utils.computed)(function (_ref17) {
|
|
64
|
+
var _ref18 = (0, _slicedToArray2.default)(_ref17, 1),
|
|
65
|
+
lightestShade = _ref18[0];
|
|
66
|
+
return (0, _manipulation.shade)(lightestShade, 0.4);
|
|
67
|
+
}, ['colors.lightestShade']),
|
|
68
|
+
controlBorderSelected: (0, _utils.computed)(function (_ref19) {
|
|
69
|
+
var _ref20 = (0, _slicedToArray2.default)(_ref19, 1),
|
|
70
|
+
lightestShade = _ref20[0];
|
|
71
|
+
return (0, _manipulation.shade)(lightestShade, 0.4);
|
|
72
|
+
}, ['colors.lightestShade']),
|
|
73
|
+
controlBorderDisabled: (0, _utils.computed)(function (_ref21) {
|
|
74
|
+
var _ref22 = (0, _slicedToArray2.default)(_ref21, 1),
|
|
75
|
+
lightestShade = _ref22[0];
|
|
76
|
+
return (0, _manipulation.shade)(lightestShade, 0.4);
|
|
77
|
+
}, ['colors.lightestShade']),
|
|
78
|
+
controlBackgroundUnselected: (0, _utils.computed)(function (_ref23) {
|
|
79
|
+
var _ref24 = (0, _slicedToArray2.default)(_ref23, 1),
|
|
80
|
+
emptyShade = _ref24[0];
|
|
81
|
+
return emptyShade;
|
|
82
|
+
}, ['colors.emptyShade']),
|
|
83
|
+
controlBackgroundDisabled: (0, _utils.computed)(function (_ref25) {
|
|
84
|
+
var _ref26 = (0, _slicedToArray2.default)(_ref25, 1),
|
|
85
|
+
lightShade = _ref26[0];
|
|
86
|
+
return lightShade;
|
|
87
|
+
}, ['colors.lightShade']),
|
|
88
|
+
colorHasPlaceholder: (0, _utils.computed)(function (_ref27) {
|
|
89
|
+
var _ref28 = (0, _slicedToArray2.default)(_ref27, 1),
|
|
90
|
+
subduedText = _ref28[0];
|
|
91
|
+
return (0, _manipulation.tint)(subduedText, 0.08);
|
|
92
|
+
}, ['colors.subduedText']),
|
|
93
|
+
colorDisabled: (0, _utils.computed)(function (_ref29) {
|
|
94
|
+
var _ref30 = (0, _slicedToArray2.default)(_ref29, 1),
|
|
95
|
+
mediumShade = _ref30[0];
|
|
96
|
+
return mediumShade;
|
|
97
|
+
}, ['colors.mediumShade']),
|
|
98
|
+
iconDisabled: (0, _utils.computed)(function (_ref31) {
|
|
99
|
+
var _ref32 = (0, _slicedToArray2.default)(_ref31, 1),
|
|
100
|
+
darkShade = _ref32[0];
|
|
101
|
+
return darkShade;
|
|
102
|
+
}, ['colors.darkShade'])
|
|
103
|
+
};
|
|
104
|
+
var _dark_forms = _objectSpread(_objectSpread({}, _forms), {}, {
|
|
105
|
+
background: (0, _utils.computed)(function (_ref33) {
|
|
106
|
+
var _ref34 = (0, _slicedToArray2.default)(_ref33, 1),
|
|
107
|
+
lightestShade = _ref34[0];
|
|
108
|
+
return (0, _manipulation.shade)(lightestShade, 0.4);
|
|
109
|
+
}, ['colors.lightestShade']),
|
|
110
|
+
backgroundFocused: (0, _utils.computed)(function (_ref35) {
|
|
111
|
+
var _ref36 = (0, _slicedToArray2.default)(_ref35, 1),
|
|
112
|
+
emptyShade = _ref36[0];
|
|
113
|
+
return (0, _manipulation.shade)(emptyShade, 0.4);
|
|
114
|
+
}, ['colors.emptyShade']),
|
|
115
|
+
backgroundAutofilled: (0, _utils.computed)(function (_ref37) {
|
|
116
|
+
var _ref38 = (0, _slicedToArray2.default)(_ref37, 1),
|
|
117
|
+
primary = _ref38[0];
|
|
118
|
+
var background = (0, _manipulation.shade)(primary, 0.7);
|
|
119
|
+
return (0, _manipulation.shade)(background, 0.5);
|
|
120
|
+
}, ['colors.primary']),
|
|
121
|
+
prependBackground: (0, _utils.computed)(function (_ref39) {
|
|
122
|
+
var _ref40 = (0, _slicedToArray2.default)(_ref39, 1),
|
|
123
|
+
lightShade = _ref40[0];
|
|
124
|
+
return (0, _manipulation.shade)(lightShade, 0.15);
|
|
125
|
+
}, ['colors.lightShade']),
|
|
126
|
+
border: (0, _utils.computed)(function (_ref41) {
|
|
127
|
+
var _ref42 = (0, _slicedToArray2.default)(_ref41, 1),
|
|
128
|
+
ghost = _ref42[0];
|
|
129
|
+
return (0, _manipulation.transparentize)(ghost, 0.1);
|
|
130
|
+
}, ['colors.ghost']),
|
|
131
|
+
controlBorder: (0, _utils.computed)(function (_ref43) {
|
|
132
|
+
var _ref44 = (0, _slicedToArray2.default)(_ref43, 1),
|
|
133
|
+
lightestShade = _ref44[0];
|
|
134
|
+
return (0, _manipulation.tint)(lightestShade, 0.31);
|
|
135
|
+
}, ['colors.lightestShade']),
|
|
136
|
+
controlBorderSelected: (0, _utils.computed)(function (_ref45) {
|
|
137
|
+
var _ref46 = (0, _slicedToArray2.default)(_ref45, 1),
|
|
138
|
+
lightestShade = _ref46[0];
|
|
139
|
+
return (0, _manipulation.tint)(lightestShade, 0.31);
|
|
140
|
+
}, ['colors.lightestShade']),
|
|
141
|
+
controlBorderDisabled: (0, _utils.computed)(function (_ref47) {
|
|
142
|
+
var _ref48 = (0, _slicedToArray2.default)(_ref47, 1),
|
|
143
|
+
lightestShade = _ref48[0];
|
|
144
|
+
return (0, _manipulation.tint)(lightestShade, 0.31);
|
|
145
|
+
}, ['colors.lightestShade'])
|
|
146
|
+
});
|
|
147
|
+
var forms = exports.forms = {
|
|
148
|
+
LIGHT: _forms,
|
|
149
|
+
DARK: _dark_forms
|
|
150
|
+
};
|
|
@@ -13,6 +13,7 @@ var _borders = require("./global_styling/variables/_borders");
|
|
|
13
13
|
var _levels = require("./global_styling/variables/_levels");
|
|
14
14
|
var _typography = require("./global_styling/variables/_typography");
|
|
15
15
|
var _states = require("./global_styling/variables/_states");
|
|
16
|
+
var _components = require("./global_styling/variables/_components");
|
|
16
17
|
/*
|
|
17
18
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
18
19
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -31,6 +32,11 @@ var euiThemeAmsterdam = exports.euiThemeAmsterdam = {
|
|
|
31
32
|
animation: _animation.animation,
|
|
32
33
|
breakpoint: _breakpoint.breakpoint,
|
|
33
34
|
levels: _levels.levels,
|
|
34
|
-
focus: _states.focus
|
|
35
|
+
focus: _states.focus,
|
|
36
|
+
components: _components.components,
|
|
37
|
+
flags: {
|
|
38
|
+
hasGlobalFocusColor: false,
|
|
39
|
+
hasVisColorAdjustment: true
|
|
40
|
+
}
|
|
35
41
|
};
|
|
36
42
|
var EuiThemeAmsterdam = exports.EuiThemeAmsterdam = (0, _utils.buildTheme)(euiThemeAmsterdam, AMSTERDAM_NAME_KEY);
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
EUI_THEMES: true,
|
|
8
8
|
isDefaultTheme: true,
|
|
9
|
+
isExperimentalThemeEnabled: true,
|
|
9
10
|
AMSTERDAM_NAME_KEY: true,
|
|
10
11
|
EuiThemeAmsterdam: true
|
|
11
12
|
};
|
|
@@ -33,6 +34,12 @@ Object.defineProperty(exports, "isDefaultTheme", {
|
|
|
33
34
|
return _themes.isDefaultTheme;
|
|
34
35
|
}
|
|
35
36
|
});
|
|
37
|
+
Object.defineProperty(exports, "isExperimentalThemeEnabled", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _themes.isExperimentalThemeEnabled;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
36
43
|
var _themes = require("./themes");
|
|
37
44
|
var _theme = require("./amsterdam/theme");
|
|
38
45
|
var _amsterdam = require("./amsterdam");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.isDefaultTheme = exports.EUI_THEMES = void 0;
|
|
6
|
+
exports.isExperimentalThemeEnabled = exports.isDefaultTheme = exports.EUI_THEMES = exports.EUI_EXPERIMENTAL_THEME_ENABLED_KEY = void 0;
|
|
7
7
|
var _theme = require("./amsterdam/theme");
|
|
8
8
|
/*
|
|
9
9
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -14,14 +14,17 @@ var _theme = require("./amsterdam/theme");
|
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
var EUI_THEMES = exports.EUI_THEMES = [{
|
|
17
|
-
text: '
|
|
18
|
-
value:
|
|
19
|
-
provider: _theme.EuiThemeAmsterdam
|
|
20
|
-
}, {
|
|
21
|
-
text: 'Dark',
|
|
22
|
-
value: 'dark',
|
|
17
|
+
text: 'Amsterdam',
|
|
18
|
+
value: _theme.AMSTERDAM_NAME_KEY,
|
|
23
19
|
provider: _theme.EuiThemeAmsterdam
|
|
24
20
|
}];
|
|
25
21
|
var isDefaultTheme = exports.isDefaultTheme = function isDefaultTheme(name) {
|
|
26
22
|
return name === _theme.AMSTERDAM_NAME_KEY;
|
|
23
|
+
};
|
|
24
|
+
var EUI_EXPERIMENTAL_THEME_ENABLED_KEY = exports.EUI_EXPERIMENTAL_THEME_ENABLED_KEY = 'eui-experimental-theme-enabled';
|
|
25
|
+
var isExperimentalThemeEnabled = exports.isExperimentalThemeEnabled = function isExperimentalThemeEnabled() {
|
|
26
|
+
if (typeof localStorage !== 'undefined') {
|
|
27
|
+
return localStorage.getItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY) === 'true';
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
27
30
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "97.3.
|
|
4
|
+
"version": "97.3.1-borealis.1",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "cross-env BABEL_MODULES=false webpack serve --config=src-docs/webpack.config.js",
|
|
19
|
+
"build:workspaces": "yarn workspaces foreach -Rti --from @elastic/eui-theme-common run build && yarn workspaces foreach -Rti --from @elastic/eui --exclude @elastic/eui --exclude @elastic/eui-theme-common run build",
|
|
19
20
|
"build-docs": "cross-env BABEL_MODULES=false cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 webpack --config=src-docs/webpack.config.js",
|
|
20
|
-
"build": "
|
|
21
|
+
"build": "node ./scripts/compile-i18n-strings.js && node ./scripts/compile-clean.js && node ./scripts/compile-eui.js && yarn compile-scss",
|
|
21
22
|
"build-pack": "yarn build && npm pack",
|
|
22
23
|
"compile-icons": "node ./scripts/compile-icons.js && prettier --write --loglevel=warn \"./src/components/icon/assets/**/*.tsx\"",
|
|
23
24
|
"compile-scss": "node ./scripts/compile-scss.js",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"test": "yarn lint && yarn test-unit",
|
|
31
32
|
"test-ci": "yarn test && yarn test-cypress",
|
|
32
33
|
"test-unit": "node ./scripts/test-unit",
|
|
33
|
-
"test-staged": "yarn lint && node scripts/test-staged.js",
|
|
34
|
+
"test-staged": "yarn build:workspaces && yarn lint && node scripts/test-staged.js",
|
|
34
35
|
"test-cypress": "node ./scripts/test-cypress",
|
|
35
36
|
"test-cypress-dev": "yarn test-cypress --dev",
|
|
36
37
|
"test-cypress-a11y": "yarn test-cypress --a11y",
|
|
@@ -103,6 +104,8 @@
|
|
|
103
104
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
104
105
|
"@elastic/charts": "^64.1.0",
|
|
105
106
|
"@elastic/datemath": "^5.0.3",
|
|
107
|
+
"@elastic/eui-theme-borealis": "0.0.2",
|
|
108
|
+
"@elastic/eui-theme-common": "0.0.2",
|
|
106
109
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
107
110
|
"@emotion/cache": "^11.11.0",
|
|
108
111
|
"@emotion/css": "^11.11.0",
|
|
@@ -253,6 +256,7 @@
|
|
|
253
256
|
},
|
|
254
257
|
"peerDependencies": {
|
|
255
258
|
"@elastic/datemath": "^5.0.2",
|
|
259
|
+
"@elastic/eui-theme-borealis": "0.0.2",
|
|
256
260
|
"@emotion/css": "11.x",
|
|
257
261
|
"@emotion/react": "11.x",
|
|
258
262
|
"@types/react": "^16.9 || ^17.0 || ^18.0",
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
// Core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
@import 'functions/index';
|
|
5
|
-
|
|
6
|
-
// Variables come next, and are used in some mixins
|
|
7
|
-
@import 'variables/index';
|
|
8
|
-
|
|
9
|
-
// Mixins provide generic code expansion through helpers
|
|
10
|
-
@import 'mixins/index';
|
|
11
|
-
|
|
12
|
-
// Utility classes provide one-off selectors for common css problems
|
|
13
|
-
@import 'utility/index';
|
|
14
|
-
|
|
15
|
-
// The reset file has moved to global_styles.tsx
|
|
16
|
-
|
|
17
|
-
// Customization of the React Date Picker
|
|
18
|
-
@import 'react_date_picker/index';
|
|
3
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/index';
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// Animations
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
$euiAnimSlightResistance: cubic-bezier(.694, .0482, .335, 1) !default;
|
|
5
|
-
|
|
6
|
-
$euiAnimSpeedExtraFast: 90ms !default;
|
|
7
|
-
$euiAnimSpeedFast: 150ms !default;
|
|
8
|
-
$euiAnimSpeedNormal: 250ms !default;
|
|
9
|
-
$euiAnimSpeedSlow: 350ms !default;
|
|
10
|
-
$euiAnimSpeedExtraSlow: 500ms !default;
|
|
3
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/animations'
|
|
11
4
|
|
|
12
5
|
// Keyframe animation declarations can be found in
|
|
13
6
|
// utility/animations.scss
|
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
// Borders
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
$euiBorderWidthThick: 2px !default;
|
|
5
|
-
|
|
6
|
-
$euiBorderColor: $euiColorLightShade !default;
|
|
7
|
-
$euiBorderRadius: $euiSizeS * .75 !default;
|
|
8
|
-
$euiBorderRadiusSmall: $euiSizeS * .5 !default;
|
|
9
|
-
$euiBorderThick: $euiBorderWidthThick solid $euiBorderColor !default;
|
|
10
|
-
$euiBorderThin: $euiBorderWidthThin solid $euiBorderColor !default;
|
|
11
|
-
$euiBorderEditable: $euiBorderWidthThick dotted $euiBorderColor !default;
|
|
3
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/borders'
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
$euiButtonHeightSmall: $euiSizeXL !default;
|
|
3
|
-
$euiButtonHeightXSmall: $euiSizeL !default;
|
|
4
|
-
|
|
5
|
-
// Modifier naming and colors.
|
|
6
|
-
$euiButtonTypes: (
|
|
7
|
-
primary: $euiColorPrimary,
|
|
8
|
-
accent: $euiColorAccent,
|
|
9
|
-
success: $euiColorSuccess,
|
|
10
|
-
warning: $euiColorWarning,
|
|
11
|
-
danger: $euiColorDanger,
|
|
12
|
-
ghost: $euiColorGhost, // Ghost is special, and does not care about theming.
|
|
13
|
-
text: $euiColorDarkShade, // Reserved for special use cases
|
|
14
|
-
) !default;
|
|
15
|
-
|
|
16
|
-
// TODO: Remove this once elastic-charts no longer uses this variable
|
|
17
|
-
// @see https://github.com/elastic/elastic-charts/pull/2528
|
|
18
|
-
$euiButtonColorDisabledText: $euiColorDisabledText;
|
|
1
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/buttons'
|
|
@@ -1,72 +1,3 @@
|
|
|
1
1
|
// Visualization colors
|
|
2
|
-
// stylelint-disable color-no-hex
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
// Use map_merge($euiColorVisColors, $yourMap) to change individual colors after importing ths file
|
|
6
|
-
// The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function
|
|
7
|
-
$euiPaletteColorBlind: (
|
|
8
|
-
euiColorVis0: (
|
|
9
|
-
graphic: #54B399,
|
|
10
|
-
behindText: #6DCCB1,
|
|
11
|
-
),
|
|
12
|
-
euiColorVis1: (
|
|
13
|
-
graphic: #6092C0,
|
|
14
|
-
behindText: #79AAD9,
|
|
15
|
-
),
|
|
16
|
-
euiColorVis2: (
|
|
17
|
-
graphic: #D36086,
|
|
18
|
-
behindText: #EE789D,
|
|
19
|
-
),
|
|
20
|
-
euiColorVis3: (
|
|
21
|
-
graphic: #9170B8,
|
|
22
|
-
behindText: #A987D1,
|
|
23
|
-
),
|
|
24
|
-
euiColorVis4: (
|
|
25
|
-
graphic: #CA8EAE,
|
|
26
|
-
behindText: #E4A6C7,
|
|
27
|
-
),
|
|
28
|
-
euiColorVis5: (
|
|
29
|
-
graphic: #D6BF57,
|
|
30
|
-
behindText: #F1D86F,
|
|
31
|
-
),
|
|
32
|
-
euiColorVis6: (
|
|
33
|
-
graphic: #B9A888,
|
|
34
|
-
behindText: #D2C0A0,
|
|
35
|
-
),
|
|
36
|
-
euiColorVis7: (
|
|
37
|
-
graphic: #DA8B45,
|
|
38
|
-
behindText: #F5A35C,
|
|
39
|
-
),
|
|
40
|
-
euiColorVis8: (
|
|
41
|
-
graphic: #AA6556,
|
|
42
|
-
behindText: #C47C6C,
|
|
43
|
-
),
|
|
44
|
-
euiColorVis9: (
|
|
45
|
-
graphic: #E7664C,
|
|
46
|
-
behindText: #FF7E62,
|
|
47
|
-
)
|
|
48
|
-
) !default;
|
|
49
|
-
|
|
50
|
-
$euiPaletteColorBlindKeys: map-keys($euiPaletteColorBlind);
|
|
51
|
-
|
|
52
|
-
$euiColorVis0: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'graphic') !default;
|
|
53
|
-
$euiColorVis1: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'graphic') !default;
|
|
54
|
-
$euiColorVis2: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'graphic') !default;
|
|
55
|
-
$euiColorVis3: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'graphic') !default;
|
|
56
|
-
$euiColorVis4: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'graphic') !default;
|
|
57
|
-
$euiColorVis5: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'graphic') !default;
|
|
58
|
-
$euiColorVis6: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'graphic') !default;
|
|
59
|
-
$euiColorVis7: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'graphic') !default;
|
|
60
|
-
$euiColorVis8: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'graphic') !default;
|
|
61
|
-
$euiColorVis9: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'graphic') !default;
|
|
62
|
-
|
|
63
|
-
$euiColorVis0_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis0'), 'behindText') !default;
|
|
64
|
-
$euiColorVis1_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis1'), 'behindText') !default;
|
|
65
|
-
$euiColorVis2_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis2'), 'behindText') !default;
|
|
66
|
-
$euiColorVis3_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis3'), 'behindText') !default;
|
|
67
|
-
$euiColorVis4_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis4'), 'behindText') !default;
|
|
68
|
-
$euiColorVis5_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis5'), 'behindText') !default;
|
|
69
|
-
$euiColorVis6_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis6'), 'behindText') !default;
|
|
70
|
-
$euiColorVis7_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis7'), 'behindText') !default;
|
|
71
|
-
$euiColorVis8_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis8'), 'behindText') !default;
|
|
72
|
-
$euiColorVis9_behindText: map-get(map-get($euiPaletteColorBlind, 'euiColorVis9'), 'behindText') !default;
|
|
3
|
+
@import '../../themes/amsterdam/global_styling/variables/colors_vis'
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// Separated out to its own file for easy import into docs
|
|
2
2
|
|
|
3
3
|
// Font weights
|
|
4
|
-
|
|
5
|
-
$euiFontWeightRegular: 400 !default;
|
|
6
|
-
$euiFontWeightMedium: 500 !default;
|
|
7
|
-
$euiFontWeightSemiBold: 600 !default;
|
|
8
|
-
$euiFontWeightBold: 700 !default;
|
|
9
|
-
$euiCodeFontWeightRegular: 400 !default;
|
|
10
|
-
$euiCodeFontWeightBold: 700 !default;
|
|
4
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/font_weight'
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
$euiFormControlHeight: $euiSizeXXL !default;
|
|
4
|
-
$euiFormControlCompressedHeight: $euiSizeXL !default;
|
|
5
|
-
$euiFormControlPadding: $euiSizeM !default;
|
|
6
|
-
$euiFormControlCompressedPadding: $euiSizeS !default;
|
|
7
|
-
$euiFormControlBorderRadius: $euiBorderRadius !default;
|
|
8
|
-
$euiFormControlCompressedBorderRadius: $euiBorderRadiusSmall !default;
|
|
9
|
-
|
|
10
|
-
// Coloring
|
|
11
|
-
$euiFormBackgroundColor: tintOrShade($euiColorLightestShade, 60%, 40%) !default;
|
|
12
|
-
$euiFormBackgroundDisabledColor: darken($euiColorLightestShade, 2%) !default;
|
|
13
|
-
$euiFormBackgroundReadOnlyColor: $euiColorEmptyShade !default;
|
|
14
|
-
$euiFormBorderOpaqueColor: shadeOrTint(desaturate(adjust-hue($euiColorPrimary, 22), 22.95), 26%, 100%) !default;
|
|
15
|
-
$euiFormBorderColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
|
|
16
|
-
$euiFormBorderDisabledColor: transparentize($euiFormBorderOpaqueColor, .9) !default;
|
|
17
|
-
$euiFormControlDisabledColor: $euiColorMediumShade !default;
|
|
18
|
-
$euiFormControlBoxShadow: 0 0 transparent !default;
|
|
19
|
-
$euiFormControlPlaceholderText: makeHighContrastColor($euiTextSubduedColor, $euiFormBackgroundColor) !default;
|
|
20
|
-
$euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 15%) !default;
|
|
21
|
-
$euiFormInputGroupBorder: none !default;
|
|
1
|
+
// Form
|
|
2
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/form'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Shadows
|
|
2
|
-
|
|
2
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/shadows'
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
$euiSizeXS: $euiSize * .25 !default;
|
|
4
|
-
$euiSizeS: $euiSize * .5 !default;
|
|
5
|
-
$euiSizeM: $euiSize * .75 !default;
|
|
6
|
-
$euiSizeL: $euiSize * 1.5 !default;
|
|
7
|
-
$euiSizeXL: $euiSize * 2 !default;
|
|
8
|
-
$euiSizeXXL: $euiSize * 2.5 !default;
|
|
9
|
-
|
|
10
|
-
$euiButtonMinWidth: $euiSize * 7 !default;
|
|
11
|
-
|
|
12
|
-
$euiScrollBar: $euiSize !default;
|
|
13
|
-
// Corner sizes are used as an inset border and therefore a smaller corner size means a larger thumb
|
|
14
|
-
$euiScrollBarCorner: $euiSizeXS !default;
|
|
15
|
-
$euiScrollBarCornerThin: $euiSizeS * .75 !default;
|
|
1
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/size'
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
$euiFocusRingColor: rgba($euiColorPrimary, .3) !default;
|
|
3
|
-
$euiFocusRingAnimStartColor: rgba($euiColorPrimary, 0) !default;
|
|
4
|
-
$euiFocusRingAnimStartSize: 6px !default;
|
|
5
|
-
$euiFocusRingAnimStartSizeLarge: 10px !default;
|
|
6
|
-
|
|
7
|
-
// Sizing
|
|
8
|
-
$euiFocusRingSizeLarge: $euiSizeXS !default;
|
|
9
|
-
$euiFocusRingSize: $euiFocusRingSizeLarge * .75 !default;
|
|
10
|
-
|
|
11
|
-
// Transparency
|
|
12
|
-
$euiFocusTransparency: lightOrDarkTheme(.1, .2) !default;
|
|
13
|
-
$euiFocusTransparencyPercent: lightOrDarkTheme(90%, 80%) !default;
|
|
14
|
-
$euiFocusBackgroundColor: tintOrShade($euiColorPrimary, $euiFocusTransparencyPercent, $euiFocusTransparencyPercent) !default;
|
|
1
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/states'
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
2
|
-
$euiFontFamily: 'Inter', BlinkMacSystemFont, Helvetica, Arial, sans-serif !default;
|
|
3
|
-
$euiCodeFontFamily: 'Roboto Mono', Menlo, Courier, monospace !default;
|
|
4
|
-
|
|
5
|
-
// Careful using ligatures. Code editors like ACE will often error because of width calculations
|
|
6
|
-
$euiFontFeatureSettings: 'calt' 1, 'kern' 1, 'liga' 1 !default;
|
|
7
|
-
|
|
8
|
-
// Font sizes -- scale is loosely based on Major Third (1.250)
|
|
9
|
-
$euiTextScale: 2.25, 1.75, 1.25, 1.125, 1, .875, .75 !default;
|
|
10
|
-
|
|
11
|
-
$euiFontSize: $euiSize !default; // 5th position in scale
|
|
12
|
-
$euiFontSizeXS: $euiFontSize * nth($euiTextScale, 7) !default; // 12px
|
|
13
|
-
$euiFontSizeS: $euiFontSize * nth($euiTextScale, 6) !default; // 14px
|
|
14
|
-
$euiFontSizeM: $euiFontSize * nth($euiTextScale, 4) !default; // 18px
|
|
15
|
-
$euiFontSizeL: $euiFontSize * nth($euiTextScale, 3) !default; // 20px
|
|
16
|
-
$euiFontSizeXL: $euiFontSize * nth($euiTextScale, 2) !default; // 28px
|
|
17
|
-
$euiFontSizeXXL: $euiFontSize * nth($euiTextScale, 1) !default; // 36px
|
|
18
|
-
|
|
19
|
-
// Line height
|
|
20
|
-
$euiLineHeight: 1.5 !default;
|
|
21
|
-
$euiBodyLineHeight: 1 !default;
|
|
22
|
-
|
|
23
|
-
// Normally functions are imported before variables in `_index.scss` files
|
|
24
|
-
// But because they need to consume some typography variables they need to live here
|
|
25
|
-
@function convertToRem($size) {
|
|
26
|
-
@return #{$size / $euiFontSize}rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Our base gridline is at 1/2 the font-size, ensure line-heights stay on that gridline.
|
|
30
|
-
// EX: A proper line-height for text is 1.5 times the font-size.
|
|
31
|
-
// If our base font size (euiFontSize) is 16, our baseline is 8 (16*1.5 / 3). To ensure the
|
|
32
|
-
// text stays on the baseline, we pass a multiplier to calculate a line-height in rems.
|
|
33
|
-
@function lineHeightFromBaseline($multiplier: 3) {
|
|
34
|
-
@return convertToRem(($euiFontSize / 2) * $multiplier);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Titles map
|
|
38
|
-
// Lists all the properties per EuiTitle size that then gets looped through to create the selectors.
|
|
39
|
-
// The map allows for tokenization and easier customization per theme, otherwise you'd have to override the selectors themselves
|
|
40
|
-
$euiTitles: (
|
|
41
|
-
'xxxs': (
|
|
42
|
-
'font-size': $euiFontSizeXS,
|
|
43
|
-
'line-height': lineHeightFromBaseline(3),
|
|
44
|
-
'font-weight': $euiFontWeightBold,
|
|
45
|
-
),
|
|
46
|
-
'xxs': (
|
|
47
|
-
'font-size': $euiFontSizeS,
|
|
48
|
-
'line-height': lineHeightFromBaseline(3),
|
|
49
|
-
'font-weight': $euiFontWeightBold,
|
|
50
|
-
),
|
|
51
|
-
'xs': (
|
|
52
|
-
'font-size': $euiFontSize,
|
|
53
|
-
'line-height': lineHeightFromBaseline(3),
|
|
54
|
-
'font-weight': $euiFontWeightSemiBold,
|
|
55
|
-
'letter-spacing': -.02em,
|
|
56
|
-
),
|
|
57
|
-
's': (
|
|
58
|
-
'font-size': $euiFontSizeL,
|
|
59
|
-
'line-height': lineHeightFromBaseline(4),
|
|
60
|
-
'font-weight': $euiFontWeightMedium,
|
|
61
|
-
'letter-spacing': -.025em,
|
|
62
|
-
),
|
|
63
|
-
'm': (
|
|
64
|
-
'font-size': $euiFontSizeXL,
|
|
65
|
-
'line-height': lineHeightFromBaseline(5),
|
|
66
|
-
'font-weight': $euiFontWeightLight,
|
|
67
|
-
'letter-spacing': -.04em,
|
|
68
|
-
),
|
|
69
|
-
'l': (
|
|
70
|
-
'font-size': $euiFontSizeXXL,
|
|
71
|
-
'line-height': lineHeightFromBaseline(6),
|
|
72
|
-
'font-weight': $euiFontWeightLight,
|
|
73
|
-
'letter-spacing': -.03em,
|
|
74
|
-
),
|
|
75
|
-
) !default;
|
|
1
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/typography'
|
|
@@ -1,34 +1,2 @@
|
|
|
1
1
|
// Z-Index
|
|
2
|
-
|
|
3
|
-
// Remember that z-index is relative to parent and based on the stacking context.
|
|
4
|
-
// z-indexes only compete against other z-indexes when they exist as children of
|
|
5
|
-
// that shared parent.
|
|
6
|
-
|
|
7
|
-
// That means a popover with a settings of 2, will still show above a modal
|
|
8
|
-
// with a setting of 100, if it is within that modal and not besides it.
|
|
9
|
-
|
|
10
|
-
// Generally that means it's a good idea to consider things added to this file
|
|
11
|
-
// as competitive only as siblings.
|
|
12
|
-
|
|
13
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
14
|
-
|
|
15
|
-
$euiZLevel0: 0;
|
|
16
|
-
$euiZLevel1: 1000;
|
|
17
|
-
$euiZLevel2: 2000;
|
|
18
|
-
$euiZLevel3: 3000;
|
|
19
|
-
$euiZLevel4: 4000;
|
|
20
|
-
$euiZLevel5: 5000;
|
|
21
|
-
$euiZLevel6: 6000;
|
|
22
|
-
$euiZLevel7: 7000;
|
|
23
|
-
$euiZLevel8: 8000;
|
|
24
|
-
$euiZLevel9: 9000;
|
|
25
|
-
|
|
26
|
-
$euiZToastList: $euiZLevel9;
|
|
27
|
-
$euiZModal: $euiZLevel8;
|
|
28
|
-
$euiZMask: $euiZLevel6;
|
|
29
|
-
$euiZNavigation: $euiZLevel6;
|
|
30
|
-
$euiZContentMenu: $euiZLevel2;
|
|
31
|
-
$euiZHeader: $euiZLevel1;
|
|
32
|
-
$euiZFlyout: $euiZHeader;
|
|
33
|
-
$euiZMaskBelowHeader: $euiZHeader;
|
|
34
|
-
$euiZContent: $euiZLevel0;
|
|
2
|
+
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/variables/z_index'
|