@elastic/eui 97.2.0 → 97.3.0-borealis.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/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 +4 -4
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/card/card.styles.js +1 -1
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/code/code_block_line.styles.js +1 -2
- 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.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/context_menu/context_menu_panel.js +17 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +31 -8
- package/es/components/datagrid/body/data_grid_body.js +8 -0
- package/es/components/datagrid/body/data_grid_body_custom.js +8 -1
- package/es/components/datagrid/body/data_grid_body_virtualized.js +8 -1
- package/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
- package/es/components/datagrid/controls/display_selector.js +277 -207
- package/es/components/datagrid/data_grid.stories.utils.js +28 -2
- package/es/components/datagrid/data_grid.styles.js +4 -6
- package/es/components/datagrid/utils/grid_height_width.js +1 -1
- package/es/components/datagrid/utils/row_heights.js +29 -13
- 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 +3 -4
- 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/form/form.styles.js +21 -28
- 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 +12 -6
- 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/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/overlay_mask/overlay_mask.styles.js +1 -2
- package/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/es/components/popover/popover_footer.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/es/components/progress/progress.js +1 -1
- package/es/components/progress/progress.styles.js +8 -6
- 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 +3 -5
- 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/tool_tip/tool_tip.styles.js +8 -10
- 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/hooks/useDeepEqual.js +18 -6
- package/es/services/theme/provider.js +11 -0
- 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 +587 -18
- package/es/themes/amsterdam/global_styling/variables/_components.js +442 -0
- package/es/themes/amsterdam/global_styling/variables/_forms.js +149 -0
- package/es/themes/amsterdam/theme.js +3 -1
- package/es/themes/index.js +1 -1
- package/es/themes/themes.js +7 -0
- package/eui.d.ts +2120 -2627
- package/i18ntokens.json +88 -106
- 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 +3 -3
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/card/card.styles.js +1 -1
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/code/code_block_line.styles.js +1 -2
- 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.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/context_menu/context_menu_panel.js +17 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +31 -8
- package/lib/components/datagrid/body/data_grid_body.js +8 -0
- package/lib/components/datagrid/body/data_grid_body_custom.js +8 -1
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +8 -1
- package/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
- package/lib/components/datagrid/controls/display_selector.js +275 -204
- package/lib/components/datagrid/data_grid.stories.utils.js +28 -2
- package/lib/components/datagrid/data_grid.styles.js +4 -6
- package/lib/components/datagrid/utils/grid_height_width.js +1 -1
- package/lib/components/datagrid/utils/row_heights.js +29 -13
- 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 +2 -3
- 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/form/form.styles.js +20 -27
- 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 +11 -5
- 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/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/overlay_mask/overlay_mask.styles.js +1 -2
- package/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/lib/components/popover/popover_footer.styles.js +1 -1
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/lib/components/progress/progress.js +1 -1
- package/lib/components/progress/progress.styles.js +8 -6
- 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 +3 -5
- 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/tool_tip/tool_tip.styles.js +8 -10
- 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/hooks/useDeepEqual.js +17 -7
- package/lib/services/theme/provider.js +11 -0
- 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 +586 -18
- package/lib/themes/amsterdam/global_styling/variables/_components.js +446 -0
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +153 -0
- package/lib/themes/amsterdam/theme.js +3 -1
- package/lib/themes/index.js +7 -0
- package/lib/themes/themes.js +8 -1
- 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 +4 -4
- package/optimize/es/components/button/button_icon/button_icon.js +1 -1
- package/optimize/es/components/card/card.styles.js +1 -1
- package/optimize/es/components/code/code_block_annotations.js +1 -1
- package/optimize/es/components/code/code_block_line.styles.js +1 -2
- 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.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/context_menu/context_menu_panel.js +11 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.js +15 -8
- package/optimize/es/components/datagrid/body/data_grid_body_custom.js +0 -1
- package/optimize/es/components/datagrid/body/data_grid_body_virtualized.js +0 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
- package/optimize/es/components/datagrid/controls/display_selector.js +277 -207
- package/optimize/es/components/datagrid/data_grid.styles.js +4 -6
- package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
- package/optimize/es/components/datagrid/utils/row_heights.js +29 -13
- 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 +3 -4
- 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/form/form.styles.js +21 -28
- 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 +12 -6
- 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/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/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/es/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/es/components/popover/popover_footer.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/optimize/es/components/progress/progress.js +1 -1
- package/optimize/es/components/progress/progress.styles.js +8 -6
- 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 +3 -5
- 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/tool_tip/tool_tip.styles.js +8 -10
- 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/hooks/useDeepEqual.js +13 -6
- package/optimize/es/services/theme/provider.js +11 -0
- 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 +587 -18
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +434 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +141 -0
- package/optimize/es/themes/amsterdam/theme.js +3 -1
- package/optimize/es/themes/index.js +1 -1
- package/optimize/es/themes/themes.js +7 -0
- 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 +3 -3
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -1
- package/optimize/lib/components/card/card.styles.js +1 -1
- package/optimize/lib/components/code/code_block_annotations.js +1 -1
- package/optimize/lib/components/code/code_block_line.styles.js +1 -2
- 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.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/context_menu/context_menu_panel.js +11 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.js +15 -8
- package/optimize/lib/components/datagrid/body/data_grid_body_custom.js +0 -1
- package/optimize/lib/components/datagrid/body/data_grid_body_virtualized.js +0 -1
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
- package/optimize/lib/components/datagrid/controls/display_selector.js +274 -204
- package/optimize/lib/components/datagrid/data_grid.styles.js +4 -6
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
- package/optimize/lib/components/datagrid/utils/row_heights.js +29 -13
- 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 +2 -3
- 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/form/form.styles.js +20 -27
- 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 +11 -5
- 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/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/overlay_mask/overlay_mask.styles.js +1 -2
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/lib/components/popover/popover_footer.styles.js +1 -1
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/optimize/lib/components/progress/progress.js +1 -1
- package/optimize/lib/components/progress/progress.styles.js +8 -6
- 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 +3 -5
- 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/tool_tip/tool_tip.styles.js +8 -10
- 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/hooks/useDeepEqual.js +12 -5
- package/optimize/lib/services/theme/provider.js +11 -0
- 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 +586 -18
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +439 -0
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +146 -0
- package/optimize/lib/themes/amsterdam/theme.js +3 -1
- package/optimize/lib/themes/index.js +7 -0
- package/optimize/lib/themes/themes.js +8 -1
- package/package.json +8 -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/_forms.scss +12 -0
- package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
- 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 +3 -3
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/card/card.styles.js +1 -1
- package/test-env/components/code/code_block_annotations.js +1 -1
- package/test-env/components/code/code_block_line.styles.js +1 -2
- 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.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/context_menu/context_menu_panel.js +17 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +31 -8
- package/test-env/components/datagrid/body/data_grid_body.js +8 -0
- package/test-env/components/datagrid/body/data_grid_body_custom.js +8 -1
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +8 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar.styles.js +2 -2
- package/test-env/components/datagrid/controls/display_selector.js +274 -204
- package/test-env/components/datagrid/data_grid.stories.utils.js +28 -2
- package/test-env/components/datagrid/data_grid.styles.js +4 -6
- package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
- package/test-env/components/datagrid/utils/row_heights.js +29 -13
- 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 +2 -3
- 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/form/form.styles.js +20 -27
- 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 +11 -5
- 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/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/overlay_mask/overlay_mask.styles.js +1 -2
- package/test-env/components/page_template/inner/page_inner.styles.js +1 -1
- package/test-env/components/popover/popover_footer.styles.js +1 -1
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +3 -4
- package/test-env/components/progress/progress.js +1 -1
- package/test-env/components/progress/progress.styles.js +8 -6
- 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 +3 -5
- 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/tool_tip/tool_tip.styles.js +8 -10
- 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/hooks/useDeepEqual.js +12 -5
- package/test-env/services/theme/provider.js +11 -0
- 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 +586 -18
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +439 -0
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +146 -0
- package/test-env/themes/amsterdam/theme.js +3 -1
- package/test-env/themes/index.js +7 -0
- package/test-env/themes/themes.js +8 -1
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
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; }
|
|
3
|
+
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) { _defineProperty(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; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
/*
|
|
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
|
+
|
|
21
|
+
import { computed } from '../../../../services/theme/utils';
|
|
22
|
+
import { shade, tint, transparentize } from '../../../../services/color/manipulation';
|
|
23
|
+
import { makeHighContrastColor } from '../../../../services/color/contrast';
|
|
24
|
+
import { buttons } from './_buttons';
|
|
25
|
+
import { forms } from './_forms';
|
|
26
|
+
var component_colors = {
|
|
27
|
+
badgeBackgroundSubdued: computed(function (_ref) {
|
|
28
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
29
|
+
lightShade = _ref2[0];
|
|
30
|
+
return tint(lightShade, 0.3);
|
|
31
|
+
}, ['colors.lightShade']),
|
|
32
|
+
badgeBorderColorHollow: computed(function (_ref3) {
|
|
33
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
34
|
+
color = _ref4[0];
|
|
35
|
+
return color;
|
|
36
|
+
}, ['border.color']),
|
|
37
|
+
badgeIconButtonBackgroundHover: computed(function (_ref5) {
|
|
38
|
+
var _ref6 = _slicedToArray(_ref5, 1),
|
|
39
|
+
ghost = _ref6[0];
|
|
40
|
+
return transparentize(ghost, 0.8);
|
|
41
|
+
}, ['colors.ghost']),
|
|
42
|
+
breadcrumbsApplicationBackground: computed(function (_ref7) {
|
|
43
|
+
var _ref8 = _slicedToArray(_ref7, 1),
|
|
44
|
+
darkestShade = _ref8[0];
|
|
45
|
+
return tint(darkestShade, 0.85);
|
|
46
|
+
}, ['colors.darkestShade']),
|
|
47
|
+
breadcrumbsApplicationColor: computed(function (_ref9) {
|
|
48
|
+
var _ref10 = _slicedToArray(_ref9, 1),
|
|
49
|
+
darkestShade = _ref10[0];
|
|
50
|
+
return tint(darkestShade, 0.2);
|
|
51
|
+
}, ['colors.darkestShade']),
|
|
52
|
+
buttonGroupBorderColor: computed(function (_ref11) {
|
|
53
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
54
|
+
fullShade = _ref12[0];
|
|
55
|
+
return transparentize(fullShade, 0.1);
|
|
56
|
+
}, ['colors.fullShade']),
|
|
57
|
+
buttonGroupBorderColorSelected: computed(function (_ref13) {
|
|
58
|
+
var _ref14 = _slicedToArray(_ref13, 1),
|
|
59
|
+
emptyShade = _ref14[0];
|
|
60
|
+
return transparentize(emptyShade, 0.2);
|
|
61
|
+
}, ['colors.emptyShade']),
|
|
62
|
+
bottomBarBackground: computed(function (_ref15) {
|
|
63
|
+
var _ref16 = _slicedToArray(_ref15, 1),
|
|
64
|
+
lightestShade = _ref16[0];
|
|
65
|
+
return shade(lightestShade, 0.5);
|
|
66
|
+
}, ['colors.lightestShade']),
|
|
67
|
+
collapsibleNavGroupBackground: computed(function (_ref17) {
|
|
68
|
+
var _ref18 = _slicedToArray(_ref17, 1),
|
|
69
|
+
body = _ref18[0];
|
|
70
|
+
return body;
|
|
71
|
+
}, ['colors.body']),
|
|
72
|
+
collapsibleNavGroupBackgroundDark: computed(function (_ref19) {
|
|
73
|
+
var _ref20 = _slicedToArray(_ref19, 1),
|
|
74
|
+
darkestShade = _ref20[0];
|
|
75
|
+
return shade(darkestShade, 0.2);
|
|
76
|
+
}, ['colors.darkestShade']),
|
|
77
|
+
dataGridVerticalLineBorderColor: computed(function (_ref21) {
|
|
78
|
+
var _ref22 = _slicedToArray(_ref21, 1),
|
|
79
|
+
color = _ref22[0];
|
|
80
|
+
return tint(color, 0.3);
|
|
81
|
+
}, ['border.color']),
|
|
82
|
+
dataGridRowBackgroundStriped: computed(function (_ref23) {
|
|
83
|
+
var _ref24 = _slicedToArray(_ref23, 1),
|
|
84
|
+
lightestShade = _ref24[0];
|
|
85
|
+
return lightestShade;
|
|
86
|
+
}, ['colors.lightestShade']),
|
|
87
|
+
dataGridRowBackgroundHover: computed(function (_ref25) {
|
|
88
|
+
var _ref26 = _slicedToArray(_ref25, 1),
|
|
89
|
+
highlight = _ref26[0];
|
|
90
|
+
return highlight;
|
|
91
|
+
}, ['colors.highlight']),
|
|
92
|
+
dragDropDraggingBackground: computed(function (_ref27) {
|
|
93
|
+
var _ref28 = _slicedToArray(_ref27, 1),
|
|
94
|
+
success = _ref28[0];
|
|
95
|
+
return transparentize(success, 0.1);
|
|
96
|
+
}, ['colors.success']),
|
|
97
|
+
dragDropDraggingOverBackground: computed(function (_ref29) {
|
|
98
|
+
var _ref30 = _slicedToArray(_ref29, 1),
|
|
99
|
+
success = _ref30[0];
|
|
100
|
+
return transparentize(success, 0.25);
|
|
101
|
+
}, ['colors.success']),
|
|
102
|
+
filterSelectItemBackgroundFocusDisabled: computed(function (_ref31) {
|
|
103
|
+
var _ref32 = _slicedToArray(_ref31, 1),
|
|
104
|
+
disabled = _ref32[0];
|
|
105
|
+
return transparentize(disabled, 0.1);
|
|
106
|
+
}, ['colors.disabled']),
|
|
107
|
+
flyoutCloseButtonInsideBackground: computed(function (_ref33) {
|
|
108
|
+
var _ref34 = _slicedToArray(_ref33, 1),
|
|
109
|
+
emptyShade = _ref34[0];
|
|
110
|
+
return transparentize(emptyShade, 0.9);
|
|
111
|
+
}, ['colors.emptyShade']),
|
|
112
|
+
headerBackground: computed(function (_ref35) {
|
|
113
|
+
var _ref36 = _slicedToArray(_ref35, 1),
|
|
114
|
+
emptyShade = _ref36[0];
|
|
115
|
+
return emptyShade;
|
|
116
|
+
}, ['colors.emptyShade']),
|
|
117
|
+
headerDarkBackground: computed(function (_ref37) {
|
|
118
|
+
var _ref38 = _slicedToArray(_ref37, 1),
|
|
119
|
+
darkestShade = _ref38[0];
|
|
120
|
+
return shade(darkestShade, 0.28);
|
|
121
|
+
}, ['colors.darkestShade']),
|
|
122
|
+
headerDarkSearchBorderColor: computed(function (_ref39) {
|
|
123
|
+
var _ref40 = _slicedToArray(_ref39, 1),
|
|
124
|
+
ghost = _ref40[0];
|
|
125
|
+
return transparentize(ghost, 0.3);
|
|
126
|
+
}, ['colors.ghost']),
|
|
127
|
+
headerDarkSectionItemBackgroundFocus: computed(function (_ref41) {
|
|
128
|
+
var _ref42 = _slicedToArray(_ref41, 1),
|
|
129
|
+
primary = _ref42[0];
|
|
130
|
+
return shade(primary, 0.5);
|
|
131
|
+
}, ['colors.primary']),
|
|
132
|
+
keyPadMenuItemBackgroundDisabledSelect: computed(function (_ref43) {
|
|
133
|
+
var _ref44 = _slicedToArray(_ref43, 1),
|
|
134
|
+
disabled = _ref44[0];
|
|
135
|
+
return transparentize(disabled, 0.1);
|
|
136
|
+
}, ['colors.disabled']),
|
|
137
|
+
listGroupItemBackgroundPrimaryActive: computed(function (_ref45) {
|
|
138
|
+
var _ref46 = _slicedToArray(_ref45, 1),
|
|
139
|
+
lightShade = _ref46[0];
|
|
140
|
+
return transparentize(lightShade, 0.2);
|
|
141
|
+
}, ['colors.lightShade']),
|
|
142
|
+
listGroupItemBackgroundSubduedActive: computed(function (_ref47) {
|
|
143
|
+
var _ref48 = _slicedToArray(_ref47, 1),
|
|
144
|
+
primary = _ref48[0];
|
|
145
|
+
return transparentize(primary, 0.1);
|
|
146
|
+
}, ['colors.primary']),
|
|
147
|
+
listGroupItemBackgroundHover: computed(function (_ref49) {
|
|
148
|
+
var _ref50 = _slicedToArray(_ref49, 1),
|
|
149
|
+
lightShade = _ref50[0];
|
|
150
|
+
return transparentize(lightShade, 0.2);
|
|
151
|
+
}, ['colors.lightShade']),
|
|
152
|
+
listGroupItemBackgroundPrimaryHover: computed(function (_ref51) {
|
|
153
|
+
var _ref52 = _slicedToArray(_ref51, 1),
|
|
154
|
+
primary = _ref52[0];
|
|
155
|
+
return transparentize(primary, 0.1);
|
|
156
|
+
}, ['colors.primary']),
|
|
157
|
+
markBackground: computed(function (_ref53) {
|
|
158
|
+
var _ref54 = _slicedToArray(_ref53, 1),
|
|
159
|
+
primary = _ref54[0];
|
|
160
|
+
return transparentize(primary, 0.1);
|
|
161
|
+
}, ['colors.primary']),
|
|
162
|
+
markdownFormatTableBorderColor: computed(function (_ref55) {
|
|
163
|
+
var _ref56 = _slicedToArray(_ref55, 1),
|
|
164
|
+
fullShade = _ref56[0];
|
|
165
|
+
return transparentize(fullShade, 0.15);
|
|
166
|
+
}, ['colors.fullShade']),
|
|
167
|
+
popoverPanelBackground: computed(function (_ref57) {
|
|
168
|
+
var _ref58 = _slicedToArray(_ref57, 1),
|
|
169
|
+
emptyShade = _ref58[0];
|
|
170
|
+
return emptyShade;
|
|
171
|
+
}, ['colors.emptyShade']),
|
|
172
|
+
popoverFooterBorderColor: computed(function (_ref59) {
|
|
173
|
+
var _ref60 = _slicedToArray(_ref59, 1),
|
|
174
|
+
color = _ref60[0];
|
|
175
|
+
return color;
|
|
176
|
+
}, ['border.color']),
|
|
177
|
+
scrollbarTrackColor: computed(function (_ref61) {
|
|
178
|
+
var _ref62 = _slicedToArray(_ref61, 1),
|
|
179
|
+
body = _ref62[0];
|
|
180
|
+
return shade(body, 0.03);
|
|
181
|
+
}, ['colors.body']),
|
|
182
|
+
sideNavItemEmphasizedBackground: computed(function (_ref63) {
|
|
183
|
+
var _ref64 = _slicedToArray(_ref63, 1),
|
|
184
|
+
lightShade = _ref64[0];
|
|
185
|
+
return transparentize(lightShade, 0.3);
|
|
186
|
+
}, ['colors.lightShade']),
|
|
187
|
+
selectableListItemBorderColor: computed(function (_ref65) {
|
|
188
|
+
var _ref66 = _slicedToArray(_ref65, 1),
|
|
189
|
+
color = _ref66[0];
|
|
190
|
+
return transparentize(color, 0.4);
|
|
191
|
+
}, ['border.color']),
|
|
192
|
+
superDatePickerBackgroundSuccees: computed(function (_ref67) {
|
|
193
|
+
var _ref68 = _slicedToArray(_ref67, 1),
|
|
194
|
+
success = _ref68[0];
|
|
195
|
+
return tint(success, 0.9);
|
|
196
|
+
}, ['colors.success']),
|
|
197
|
+
switchBackgroundOn: computed(function (_ref69) {
|
|
198
|
+
var _ref70 = _slicedToArray(_ref69, 1),
|
|
199
|
+
primary = _ref70[0];
|
|
200
|
+
return primary;
|
|
201
|
+
}, ['colors.primary']),
|
|
202
|
+
switchBackgroundOff: computed(function (_ref71) {
|
|
203
|
+
var _ref72 = _slicedToArray(_ref71, 1),
|
|
204
|
+
lightestShade = _ref72[0];
|
|
205
|
+
return shade(lightestShade, 0.4);
|
|
206
|
+
}, ['colors.lightestShade']),
|
|
207
|
+
switchUncompressedBackgroundDisabled: computed(function (_ref73) {
|
|
208
|
+
var _ref74 = _slicedToArray(_ref73, 1),
|
|
209
|
+
lightShade = _ref74[0];
|
|
210
|
+
return tint(lightShade, 0.5);
|
|
211
|
+
}, ['colors.lightShade']),
|
|
212
|
+
switchCompressedBackgroundDisabled: computed(function (_ref75) {
|
|
213
|
+
var _ref76 = _slicedToArray(_ref75, 1),
|
|
214
|
+
lightShade = _ref76[0];
|
|
215
|
+
return tint(lightShade, 0.25);
|
|
216
|
+
}, ['colors.lightShade']),
|
|
217
|
+
switchMiniBackgroundDisabled: computed(function (_ref77) {
|
|
218
|
+
var _ref78 = _slicedToArray(_ref77, 1),
|
|
219
|
+
lightShade = _ref78[0];
|
|
220
|
+
return tint(lightShade, 0);
|
|
221
|
+
}, ['colors.lightShade']),
|
|
222
|
+
switchThumbBackgroundDisabled: 'transparent',
|
|
223
|
+
switchThumbBorderOn: computed(function (_ref79) {
|
|
224
|
+
var _ref80 = _slicedToArray(_ref79, 1),
|
|
225
|
+
lightestShade = _ref80[0];
|
|
226
|
+
return shade(lightestShade, 0.4);
|
|
227
|
+
}, ['colors.lightestShade']),
|
|
228
|
+
switchThumbBorderOff: computed(function (_ref81) {
|
|
229
|
+
var _ref82 = _slicedToArray(_ref81, 1),
|
|
230
|
+
lightestShade = _ref82[0];
|
|
231
|
+
return shade(lightestShade, 0.4);
|
|
232
|
+
}, ['colors.lightestShade']),
|
|
233
|
+
switchIconDisabled: computed(function (_ref83) {
|
|
234
|
+
var _ref84 = _slicedToArray(_ref83, 1),
|
|
235
|
+
lightestShade = _ref84[0];
|
|
236
|
+
return shade(lightestShade, 0.4);
|
|
237
|
+
}, ['colors.lightestShade']),
|
|
238
|
+
tableRowBackgroundHover: computed(function (_ref85) {
|
|
239
|
+
var _ref86 = _slicedToArray(_ref85, 1),
|
|
240
|
+
lightestShade = _ref86[0];
|
|
241
|
+
return tint(lightestShade, 0.5);
|
|
242
|
+
}, ['colors.lightestShade']),
|
|
243
|
+
tableRowBackgroundSelected: computed(function (_ref87) {
|
|
244
|
+
var _ref88 = _slicedToArray(_ref87, 1),
|
|
245
|
+
primary = _ref88[0];
|
|
246
|
+
return tint(primary, 0.96);
|
|
247
|
+
}, ['colors.primary']),
|
|
248
|
+
tableRowBackgroundSelectedHover: computed(function (_ref89) {
|
|
249
|
+
var _ref90 = _slicedToArray(_ref89, 1),
|
|
250
|
+
primary = _ref90[0];
|
|
251
|
+
return tint(primary, 0.9);
|
|
252
|
+
}, ['colors.primary']),
|
|
253
|
+
tableRowInteractiveBackgroundHover: computed(function (_ref91) {
|
|
254
|
+
var _ref92 = _slicedToArray(_ref91, 1),
|
|
255
|
+
primary = _ref92[0];
|
|
256
|
+
return transparentize(primary, 0.05);
|
|
257
|
+
}, ['colors.primary']),
|
|
258
|
+
tableRowInteractiveBackgroundFocus: computed(function (_ref93) {
|
|
259
|
+
var _ref94 = _slicedToArray(_ref93, 1),
|
|
260
|
+
primary = _ref94[0];
|
|
261
|
+
return transparentize(primary, 0.1);
|
|
262
|
+
}, ['colors.primary']),
|
|
263
|
+
tableCellSortableIconColor: computed(function (_ref95) {
|
|
264
|
+
var _ref96 = _slicedToArray(_ref95, 2),
|
|
265
|
+
emptyShade = _ref96[0],
|
|
266
|
+
subduedText = _ref96[1];
|
|
267
|
+
var color = tint(subduedText, 0.9);
|
|
268
|
+
return makeHighContrastColor(
|
|
269
|
+
// Tint it arbitrarily high, the contrast util will take care of lowering back down to WCAG
|
|
270
|
+
color, 3 // 3:1 ratio from https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html
|
|
271
|
+
)(emptyShade);
|
|
272
|
+
}, ['colors.emptyShade', 'colors.subduedText']),
|
|
273
|
+
tooltipBackground: computed(function (_ref97) {
|
|
274
|
+
var _ref98 = _slicedToArray(_ref97, 1),
|
|
275
|
+
fullShade = _ref98[0];
|
|
276
|
+
return tint(fullShade, 0.25);
|
|
277
|
+
}, ['colors.fullShade']),
|
|
278
|
+
tooltipBorder: computed(function (_ref99) {
|
|
279
|
+
var _ref100 = _slicedToArray(_ref99, 1),
|
|
280
|
+
fullShade = _ref100[0];
|
|
281
|
+
return tint(fullShade, 0.35);
|
|
282
|
+
}, ['colors.fullShade']),
|
|
283
|
+
tooltipBorderFloating: computed(function (_ref101) {
|
|
284
|
+
var _ref102 = _slicedToArray(_ref101, 1),
|
|
285
|
+
borderBaseFloating = _ref102[0];
|
|
286
|
+
return borderBaseFloating;
|
|
287
|
+
}, ['colors.borderBaseFloating']),
|
|
288
|
+
tourFooterBackground: computed(function (_ref103) {
|
|
289
|
+
var _ref104 = _slicedToArray(_ref103, 1),
|
|
290
|
+
lightestShade = _ref104[0];
|
|
291
|
+
return tint(lightestShade, 0.5);
|
|
292
|
+
}, ['colors.lightestShade']),
|
|
293
|
+
treeViewItemBackgroundHover: computed(function (_ref105) {
|
|
294
|
+
var _ref106 = _slicedToArray(_ref105, 1),
|
|
295
|
+
text = _ref106[0];
|
|
296
|
+
return transparentize(text, 0.1);
|
|
297
|
+
}, ['colors.text'])
|
|
298
|
+
};
|
|
299
|
+
export var components = {
|
|
300
|
+
buttons: buttons,
|
|
301
|
+
forms: forms,
|
|
302
|
+
LIGHT: component_colors,
|
|
303
|
+
DARK: _objectSpread(_objectSpread({}, component_colors), {}, {
|
|
304
|
+
badgeBorderColorHollow: computed(function (_ref107) {
|
|
305
|
+
var _ref108 = _slicedToArray(_ref107, 1),
|
|
306
|
+
color = _ref108[0];
|
|
307
|
+
return tint(color, 0.15);
|
|
308
|
+
}, ['border.color']),
|
|
309
|
+
breadcrumbsApplicationBackground: computed(function (_ref109) {
|
|
310
|
+
var _ref110 = _slicedToArray(_ref109, 1),
|
|
311
|
+
darkestShade = _ref110[0];
|
|
312
|
+
return shade(darkestShade, 0.7);
|
|
313
|
+
}, ['colors.darkestShade']),
|
|
314
|
+
breadcrumbsApplicationColor: computed(function (_ref111) {
|
|
315
|
+
var _ref112 = _slicedToArray(_ref111, 1),
|
|
316
|
+
darkestShade = _ref112[0];
|
|
317
|
+
return shade(darkestShade, 0.2);
|
|
318
|
+
}, ['colors.darkestShade']),
|
|
319
|
+
collapsibleNavGroupBackground: computed(function (_ref113) {
|
|
320
|
+
var _ref114 = _slicedToArray(_ref113, 1),
|
|
321
|
+
lightestShade = _ref114[0];
|
|
322
|
+
return shade(lightestShade, 0.5);
|
|
323
|
+
}, ['colors.lightestShade']),
|
|
324
|
+
collapsibleNavGroupBackgroundDark: computed(function (_ref115) {
|
|
325
|
+
var _ref116 = _slicedToArray(_ref115, 1),
|
|
326
|
+
lightestShade = _ref116[0];
|
|
327
|
+
return shade(lightestShade, 0.5);
|
|
328
|
+
}, ['colors.lightestShade']),
|
|
329
|
+
dataGridVerticalLineBorderColor: computed(function (_ref117) {
|
|
330
|
+
var _ref118 = _slicedToArray(_ref117, 1),
|
|
331
|
+
color = _ref118[0];
|
|
332
|
+
return shade(color, 0.3);
|
|
333
|
+
}, ['border.color']),
|
|
334
|
+
headerDarkBackground: computed(function (_ref119) {
|
|
335
|
+
var _ref120 = _slicedToArray(_ref119, 1),
|
|
336
|
+
lightestShade = _ref120[0];
|
|
337
|
+
return shade(lightestShade, 0.5);
|
|
338
|
+
}, ['colors.lightestShade']),
|
|
339
|
+
keyPadMenuItemBackgroundDisabledSelect: computed(function (_ref121) {
|
|
340
|
+
var _ref122 = _slicedToArray(_ref121, 1),
|
|
341
|
+
disabled = _ref122[0];
|
|
342
|
+
return transparentize(disabled, 0.2);
|
|
343
|
+
}, ['colors.disabled']),
|
|
344
|
+
listGroupItemBackgroundSubduedActive: computed(function (_ref123) {
|
|
345
|
+
var _ref124 = _slicedToArray(_ref123, 1),
|
|
346
|
+
lightShade = _ref124[0];
|
|
347
|
+
return transparentize(lightShade, 0.4);
|
|
348
|
+
}, ['colors.lightShade']),
|
|
349
|
+
markBackground: computed(function (_ref125) {
|
|
350
|
+
var _ref126 = _slicedToArray(_ref125, 1),
|
|
351
|
+
primary = _ref126[0];
|
|
352
|
+
return transparentize(primary, 0.3);
|
|
353
|
+
}, ['colors.primary']),
|
|
354
|
+
popoverPanelBackground: computed(function (_ref127) {
|
|
355
|
+
var _ref128 = _slicedToArray(_ref127, 1),
|
|
356
|
+
emptyShade = _ref128[0];
|
|
357
|
+
return tint(emptyShade, 0.025);
|
|
358
|
+
}, ['colors.emptyShade']),
|
|
359
|
+
scrollbarTrackColor: computed(function (_ref129) {
|
|
360
|
+
var _ref130 = _slicedToArray(_ref129, 1),
|
|
361
|
+
body = _ref130[0];
|
|
362
|
+
return tint(body, 0.07);
|
|
363
|
+
}, ['colors.body']),
|
|
364
|
+
superDatePickerBackgroundSuccees: computed(function (_ref131) {
|
|
365
|
+
var _ref132 = _slicedToArray(_ref131, 1),
|
|
366
|
+
success = _ref132[0];
|
|
367
|
+
return shade(success, 0.7);
|
|
368
|
+
}, ['colors.success']),
|
|
369
|
+
switchBackgroundOff: computed(function (_ref133) {
|
|
370
|
+
var _ref134 = _slicedToArray(_ref133, 1),
|
|
371
|
+
lightestShade = _ref134[0];
|
|
372
|
+
return tint(lightestShade, 0.31);
|
|
373
|
+
}, ['colors.lightestShade']),
|
|
374
|
+
switchUncompressedBackgroundDisabled: computed(function (_ref135) {
|
|
375
|
+
var _ref136 = _slicedToArray(_ref135, 1),
|
|
376
|
+
lightShade = _ref136[0];
|
|
377
|
+
return lightShade;
|
|
378
|
+
}, ['colors.lightShade']),
|
|
379
|
+
switchCompressedBackgroundDisabled: computed(function (_ref137) {
|
|
380
|
+
var _ref138 = _slicedToArray(_ref137, 1),
|
|
381
|
+
lightShade = _ref138[0];
|
|
382
|
+
return lightShade;
|
|
383
|
+
}, ['colors.lightShade']),
|
|
384
|
+
switchMiniBackgroundDisabled: computed(function (_ref139) {
|
|
385
|
+
var _ref140 = _slicedToArray(_ref139, 1),
|
|
386
|
+
lightShade = _ref140[0];
|
|
387
|
+
return lightShade;
|
|
388
|
+
}, ['colors.lightShade']),
|
|
389
|
+
switchThumbBorderOn: computed(function (_ref141) {
|
|
390
|
+
var _ref142 = _slicedToArray(_ref141, 1),
|
|
391
|
+
lightestShade = _ref142[0];
|
|
392
|
+
return tint(lightestShade, 0.31);
|
|
393
|
+
}, ['colors.lightestShade']),
|
|
394
|
+
switchThumbBorderOff: computed(function (_ref143) {
|
|
395
|
+
var _ref144 = _slicedToArray(_ref143, 1),
|
|
396
|
+
lightestShade = _ref144[0];
|
|
397
|
+
return tint(lightestShade, 0.31);
|
|
398
|
+
}, ['colors.lightestShade']),
|
|
399
|
+
switchIconDisabled: computed(function (_ref145) {
|
|
400
|
+
var _ref146 = _slicedToArray(_ref145, 1),
|
|
401
|
+
lightestShade = _ref146[0];
|
|
402
|
+
return tint(lightestShade, 0.31);
|
|
403
|
+
}, ['colors.lightestShade']),
|
|
404
|
+
tableRowBackgroundHover: computed(function (_ref147) {
|
|
405
|
+
var _ref148 = _slicedToArray(_ref147, 1),
|
|
406
|
+
lightestShade = _ref148[0];
|
|
407
|
+
return lightestShade;
|
|
408
|
+
}, ['colors.lightestShade']),
|
|
409
|
+
tableRowBackgroundSelected: computed(function (_ref149) {
|
|
410
|
+
var _ref150 = _slicedToArray(_ref149, 1),
|
|
411
|
+
primary = _ref150[0];
|
|
412
|
+
return shade(primary, 0.7);
|
|
413
|
+
}, ['colors.primary']),
|
|
414
|
+
tableRowBackgroundSelectedHover: computed(function (_ref151) {
|
|
415
|
+
var _ref152 = _slicedToArray(_ref151, 1),
|
|
416
|
+
primary = _ref152[0];
|
|
417
|
+
return shade(primary, 0.75);
|
|
418
|
+
}, ['colors.primary']),
|
|
419
|
+
tableCellSortableIconColor: computed(function (_ref153) {
|
|
420
|
+
var _ref154 = _slicedToArray(_ref153, 2),
|
|
421
|
+
emptyShade = _ref154[0],
|
|
422
|
+
subduedText = _ref154[1];
|
|
423
|
+
var color = shade(subduedText, 0.9);
|
|
424
|
+
return makeHighContrastColor(color, 3)(emptyShade);
|
|
425
|
+
}, ['colors.emptyShade', 'colors.subduedText']),
|
|
426
|
+
tooltipBackground: computed(function (_ref155) {
|
|
427
|
+
var _ref156 = _slicedToArray(_ref155, 1),
|
|
428
|
+
emptyShade = _ref156[0];
|
|
429
|
+
return shade(emptyShade, 1);
|
|
430
|
+
}, ['colors.emptyShade']),
|
|
431
|
+
tooltipBorder: computed(function (_ref157) {
|
|
432
|
+
var _ref158 = _slicedToArray(_ref157, 1),
|
|
433
|
+
fullShade = _ref158[0];
|
|
434
|
+
return shade(fullShade, 0.8);
|
|
435
|
+
}, ['colors.fullShade']),
|
|
436
|
+
treeViewItemBackgroundHover: computed(function (_ref159) {
|
|
437
|
+
var _ref160 = _slicedToArray(_ref159, 1),
|
|
438
|
+
text = _ref160[0];
|
|
439
|
+
return transparentize(text, 0.2);
|
|
440
|
+
}, ['colors.text'])
|
|
441
|
+
})
|
|
442
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
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; }
|
|
3
|
+
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) { _defineProperty(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; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
/*
|
|
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
|
+
|
|
21
|
+
import { computed } from '../../../../services/theme/utils';
|
|
22
|
+
import { darken, shade, tint, transparentize } from '../../../../services/color/manipulation';
|
|
23
|
+
var _forms = {
|
|
24
|
+
background: computed(function (_ref) {
|
|
25
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
26
|
+
lightestShade = _ref2[0];
|
|
27
|
+
return tint(lightestShade, 0.6);
|
|
28
|
+
}, ['colors.lightestShade']),
|
|
29
|
+
backgroundDisabled: computed(function (_ref3) {
|
|
30
|
+
var _ref4 = _slicedToArray(_ref3, 1),
|
|
31
|
+
lightestShade = _ref4[0];
|
|
32
|
+
return darken(lightestShade, 0.05);
|
|
33
|
+
}, ['colors.lightestShade']),
|
|
34
|
+
backgroundReadOnly: computed(function (_ref5) {
|
|
35
|
+
var _ref6 = _slicedToArray(_ref5, 1),
|
|
36
|
+
emptyShade = _ref6[0];
|
|
37
|
+
return emptyShade;
|
|
38
|
+
}, ['colors.emptyShade']),
|
|
39
|
+
backgroundFocused: computed(function (_ref7) {
|
|
40
|
+
var _ref8 = _slicedToArray(_ref7, 1),
|
|
41
|
+
emptyShade = _ref8[0];
|
|
42
|
+
return emptyShade;
|
|
43
|
+
}, ['colors.emptyShade']),
|
|
44
|
+
backgroundAutofilled: computed(function (_ref9) {
|
|
45
|
+
var _ref10 = _slicedToArray(_ref9, 1),
|
|
46
|
+
primary = _ref10[0];
|
|
47
|
+
var background = tint(primary, 0.8);
|
|
48
|
+
return tint(background, 0.7);
|
|
49
|
+
}, ['colors.primary']),
|
|
50
|
+
prependBackground: computed(function (_ref11) {
|
|
51
|
+
var _ref12 = _slicedToArray(_ref11, 1),
|
|
52
|
+
lightShade = _ref12[0];
|
|
53
|
+
return tint(lightShade, 0.5);
|
|
54
|
+
}, ['colors.lightShade']),
|
|
55
|
+
border: computed(function (_ref13) {
|
|
56
|
+
var _ref14 = _slicedToArray(_ref13, 1),
|
|
57
|
+
lightShade = _ref14[0];
|
|
58
|
+
var color = darken(lightShade, 4);
|
|
59
|
+
return transparentize(color, 0.1);
|
|
60
|
+
}, ['colors.lightShade']),
|
|
61
|
+
borderAutofilled: computed(function (_ref15) {
|
|
62
|
+
var _ref16 = _slicedToArray(_ref15, 1),
|
|
63
|
+
primaryText = _ref16[0];
|
|
64
|
+
return transparentize(primaryText, 0.2);
|
|
65
|
+
}, ['colors.primaryText']),
|
|
66
|
+
controlBorder: computed(function (_ref17) {
|
|
67
|
+
var _ref18 = _slicedToArray(_ref17, 1),
|
|
68
|
+
lightestShade = _ref18[0];
|
|
69
|
+
return shade(lightestShade, 0.4);
|
|
70
|
+
}, ['colors.lightestShade']),
|
|
71
|
+
controlBorderSelected: computed(function (_ref19) {
|
|
72
|
+
var _ref20 = _slicedToArray(_ref19, 1),
|
|
73
|
+
lightestShade = _ref20[0];
|
|
74
|
+
return shade(lightestShade, 0.4);
|
|
75
|
+
}, ['colors.lightestShade']),
|
|
76
|
+
controlBorderDisabled: computed(function (_ref21) {
|
|
77
|
+
var _ref22 = _slicedToArray(_ref21, 1),
|
|
78
|
+
lightestShade = _ref22[0];
|
|
79
|
+
return shade(lightestShade, 0.4);
|
|
80
|
+
}, ['colors.lightestShade']),
|
|
81
|
+
controlBackgroundUnselected: computed(function (_ref23) {
|
|
82
|
+
var _ref24 = _slicedToArray(_ref23, 1),
|
|
83
|
+
emptyShade = _ref24[0];
|
|
84
|
+
return emptyShade;
|
|
85
|
+
}, ['colors.emptyShade']),
|
|
86
|
+
controlBackgroundDisabled: 'transparent',
|
|
87
|
+
colorHasPlaceholder: computed(function (_ref25) {
|
|
88
|
+
var _ref26 = _slicedToArray(_ref25, 1),
|
|
89
|
+
subduedText = _ref26[0];
|
|
90
|
+
return tint(subduedText, 0.08);
|
|
91
|
+
}, ['colors.subduedText']),
|
|
92
|
+
colorDisabled: computed(function (_ref27) {
|
|
93
|
+
var _ref28 = _slicedToArray(_ref27, 1),
|
|
94
|
+
lightShade = _ref28[0];
|
|
95
|
+
return lightShade;
|
|
96
|
+
}, ['colors.lightShade']),
|
|
97
|
+
iconDisabled: computed(function (_ref29) {
|
|
98
|
+
var _ref30 = _slicedToArray(_ref29, 1),
|
|
99
|
+
darkShade = _ref30[0];
|
|
100
|
+
return darkShade;
|
|
101
|
+
}, ['colors.darkShade'])
|
|
102
|
+
};
|
|
103
|
+
var _dark_forms = _objectSpread(_objectSpread({}, _forms), {}, {
|
|
104
|
+
background: computed(function (_ref31) {
|
|
105
|
+
var _ref32 = _slicedToArray(_ref31, 1),
|
|
106
|
+
lightestShade = _ref32[0];
|
|
107
|
+
return shade(lightestShade, 0.4);
|
|
108
|
+
}, ['colors.lightestShade']),
|
|
109
|
+
backgroundFocused: computed(function (_ref33) {
|
|
110
|
+
var _ref34 = _slicedToArray(_ref33, 1),
|
|
111
|
+
emptyShade = _ref34[0];
|
|
112
|
+
return shade(emptyShade, 0.4);
|
|
113
|
+
}, ['colors.emptyShade']),
|
|
114
|
+
backgroundAutofilled: computed(function (_ref35) {
|
|
115
|
+
var _ref36 = _slicedToArray(_ref35, 1),
|
|
116
|
+
primary = _ref36[0];
|
|
117
|
+
var background = shade(primary, 0.7);
|
|
118
|
+
return shade(background, 0.5);
|
|
119
|
+
}, ['colors.primary']),
|
|
120
|
+
prependBackground: computed(function (_ref37) {
|
|
121
|
+
var _ref38 = _slicedToArray(_ref37, 1),
|
|
122
|
+
lightShade = _ref38[0];
|
|
123
|
+
return shade(lightShade, 0.15);
|
|
124
|
+
}, ['colors.lightShade']),
|
|
125
|
+
border: computed(function (_ref39) {
|
|
126
|
+
var _ref40 = _slicedToArray(_ref39, 1),
|
|
127
|
+
ghost = _ref40[0];
|
|
128
|
+
return transparentize(ghost, 0.1);
|
|
129
|
+
}, ['colors.ghost']),
|
|
130
|
+
controlBorder: computed(function (_ref41) {
|
|
131
|
+
var _ref42 = _slicedToArray(_ref41, 1),
|
|
132
|
+
lightestShade = _ref42[0];
|
|
133
|
+
return tint(lightestShade, 0.31);
|
|
134
|
+
}, ['colors.lightestShade']),
|
|
135
|
+
controlBorderSelected: computed(function (_ref43) {
|
|
136
|
+
var _ref44 = _slicedToArray(_ref43, 1),
|
|
137
|
+
lightestShade = _ref44[0];
|
|
138
|
+
return tint(lightestShade, 0.31);
|
|
139
|
+
}, ['colors.lightestShade']),
|
|
140
|
+
controlBorderDisabled: computed(function (_ref45) {
|
|
141
|
+
var _ref46 = _slicedToArray(_ref45, 1),
|
|
142
|
+
lightestShade = _ref46[0];
|
|
143
|
+
return tint(lightestShade, 0.31);
|
|
144
|
+
}, ['colors.lightestShade'])
|
|
145
|
+
});
|
|
146
|
+
export var forms = {
|
|
147
|
+
LIGHT: _forms,
|
|
148
|
+
DARK: _dark_forms
|
|
149
|
+
};
|
|
@@ -15,6 +15,7 @@ import { border } from './global_styling/variables/_borders';
|
|
|
15
15
|
import { levels } from './global_styling/variables/_levels';
|
|
16
16
|
import { font } from './global_styling/variables/_typography';
|
|
17
17
|
import { focus } from './global_styling/variables/_states';
|
|
18
|
+
import { components } from './global_styling/variables/_components';
|
|
18
19
|
export var AMSTERDAM_NAME_KEY = 'EUI_THEME_AMSTERDAM';
|
|
19
20
|
export var euiThemeAmsterdam = {
|
|
20
21
|
colors: colors,
|
|
@@ -25,6 +26,7 @@ export var euiThemeAmsterdam = {
|
|
|
25
26
|
animation: animation,
|
|
26
27
|
breakpoint: breakpoint,
|
|
27
28
|
levels: levels,
|
|
28
|
-
focus: focus
|
|
29
|
+
focus: focus,
|
|
30
|
+
components: components
|
|
29
31
|
};
|
|
30
32
|
export var EuiThemeAmsterdam = buildTheme(euiThemeAmsterdam, AMSTERDAM_NAME_KEY);
|
package/es/themes/index.js
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export { EUI_THEMES, isDefaultTheme } from './themes';
|
|
9
|
+
export { EUI_THEMES, isDefaultTheme, isExperimentalThemeEnabled } from './themes';
|
|
10
10
|
export { AMSTERDAM_NAME_KEY, EuiThemeAmsterdam } from './amsterdam/theme';
|
|
11
11
|
export * from './amsterdam';
|
package/es/themes/themes.js
CHANGED
|
@@ -18,4 +18,11 @@ export var EUI_THEMES = [{
|
|
|
18
18
|
}];
|
|
19
19
|
export var isDefaultTheme = function isDefaultTheme(name) {
|
|
20
20
|
return name === AMSTERDAM_NAME_KEY;
|
|
21
|
+
};
|
|
22
|
+
export var EUI_EXPERIMENTAL_THEME_ENABLED_KEY = 'eui-experimental-theme-enabled';
|
|
23
|
+
export var isExperimentalThemeEnabled = function isExperimentalThemeEnabled() {
|
|
24
|
+
if (typeof localStorage !== 'undefined') {
|
|
25
|
+
return localStorage.getItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY) === 'true';
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
21
28
|
};
|