@elastic/eui 97.1.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/col_widths.js +7 -13
- 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/header/header_links/header_links.js +1 -1
- package/es/components/header/header_links/header_links.styles.js +1 -0
- 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 +2121 -2627
- package/i18ntokens.json +92 -110
- 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/col_widths.js +7 -13
- 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/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_links/header_links.styles.js +1 -0
- 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/col_widths.js +7 -13
- 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/header/header_links/header_links.js +1 -1
- package/optimize/es/components/header/header_links/header_links.styles.js +1 -0
- 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/col_widths.js +7 -13
- 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/header/header_links/header_links.js +1 -1
- package/optimize/lib/components/header/header_links/header_links.styles.js +1 -0
- 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/col_widths.js +7 -13
- 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/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_links/header_links.styles.js +1 -0
- 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
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiToolTipStyles = exports.euiToolTipBorderColor = exports.euiToolTipBackgroundColor = exports.euiToolTipAnchorStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _services = require("../../services");
|
|
10
9
|
var _amsterdam = require("../../themes/amsterdam");
|
|
11
10
|
var _templateObject, _templateObject2;
|
|
12
11
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
@@ -17,11 +16,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
16
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
17
|
* Side Public License, v 1.
|
|
19
18
|
*/
|
|
20
|
-
var euiToolTipBackgroundColor = exports.euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme
|
|
21
|
-
return
|
|
19
|
+
var euiToolTipBackgroundColor = exports.euiToolTipBackgroundColor = function euiToolTipBackgroundColor(euiTheme) {
|
|
20
|
+
return euiTheme.components.tooltipBackground;
|
|
22
21
|
};
|
|
23
|
-
var euiToolTipBorderColor = exports.euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme
|
|
24
|
-
return
|
|
22
|
+
var euiToolTipBorderColor = exports.euiToolTipBorderColor = function euiToolTipBorderColor(euiTheme) {
|
|
23
|
+
return euiTheme.components.tooltipBorder;
|
|
25
24
|
};
|
|
26
25
|
var euiToolTipAnimationVertical = function euiToolTipAnimationVertical(size) {
|
|
27
26
|
return (0, _react.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateY(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateY(0);\n }\n"])), size);
|
|
@@ -30,8 +29,7 @@ var euiToolTipAnimationHorizontal = function euiToolTipAnimationHorizontal(size)
|
|
|
30
29
|
return (0, _react.keyframes)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n 0% {\n opacity: 0;\n transform: translateX(", ");\n }\n\n 100% {\n opacity: 1;\n transform: translateX(0);\n }\n"])), size);
|
|
31
30
|
};
|
|
32
31
|
var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiThemeContext) {
|
|
33
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
34
|
-
colorMode = euiThemeContext.colorMode;
|
|
32
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
35
33
|
var animationTiming = "".concat(euiTheme.animation.slow, " ease-out 0s forwards");
|
|
36
34
|
// Shift arrow 1px more than half its size to account for border radius
|
|
37
35
|
var arrowSize = euiTheme.size.m;
|
|
@@ -43,7 +41,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
|
|
|
43
41
|
});
|
|
44
42
|
return {
|
|
45
43
|
// Base
|
|
46
|
-
euiToolTip: /*#__PURE__*/(0, _react.css)((0, _amsterdam.euiShadow)(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme
|
|
44
|
+
euiToolTip: /*#__PURE__*/(0, _react.css)((0, _amsterdam.euiShadow)(euiThemeContext), " border-radius:", euiTheme.border.radius.medium, ";border:", euiTheme.border.width.thin, " solid ", euiTheme.components.tooltipBorderFloating, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";};label:euiToolTip;"),
|
|
47
45
|
// Sizes
|
|
48
46
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";;label:s;"),
|
|
49
47
|
// Positions
|
|
@@ -54,7 +52,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
|
|
|
54
52
|
// Arrow
|
|
55
53
|
euiToolTip__arrow: /*#__PURE__*/(0, _react.css)("content:'';position:absolute;transform-origin:center;border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
|
|
56
54
|
return x / 2;
|
|
57
|
-
}), ";background-color:", euiToolTipBackgroundColor(euiTheme
|
|
55
|
+
}), ";background-color:", euiToolTipBackgroundColor(euiTheme), ";", (0, _global_styling.logicalSizeCSS)(arrowSize, arrowSize), ";;label:euiToolTip__arrow;"),
|
|
58
56
|
arrowPositions: {
|
|
59
57
|
top: /*#__PURE__*/(0, _react.css)("transform:translateY(", arrowPlusSize, ") rotateZ(45deg);;label:top;"),
|
|
60
58
|
bottom: /*#__PURE__*/(0, _react.css)("transform:translateY(", arrowMinusSize, ") rotateZ(45deg);;label:bottom;"),
|
|
@@ -62,7 +60,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
|
|
|
62
60
|
right: /*#__PURE__*/(0, _react.css)("transform:translateX(", arrowMinusSize, ") rotateZ(45deg);;label:right;")
|
|
63
61
|
},
|
|
64
62
|
// Title
|
|
65
|
-
euiToolTip__title: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";", (0, _global_styling.logicalCSS)('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme
|
|
63
|
+
euiToolTip__title: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";", (0, _global_styling.logicalCSS)('border-bottom', "solid ".concat(euiTheme.border.width.thin, " ").concat(euiToolTipBorderColor(euiTheme))), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), ";;label:euiToolTip__title;")
|
|
66
64
|
};
|
|
67
65
|
};
|
|
68
66
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiTourFooterStyles = exports._tourFooterBgColor = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../services");
|
|
9
8
|
var _global_styling = require("../../global_styling");
|
|
10
9
|
/*
|
|
11
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,9 +15,8 @@ var _global_styling = require("../../global_styling");
|
|
|
16
15
|
*/
|
|
17
16
|
|
|
18
17
|
var _tourFooterBgColor = exports._tourFooterBgColor = function _tourFooterBgColor(_ref) {
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
return colorMode === 'DARK' ? (0, _services.shade)(euiTheme.colors.lightestShade, 0.45) : (0, _services.tint)(euiTheme.colors.lightestShade, 0.5);
|
|
18
|
+
var euiTheme = _ref.euiTheme;
|
|
19
|
+
return euiTheme.components.tourFooterBackground;
|
|
22
20
|
};
|
|
23
21
|
var euiTourFooterStyles = exports.euiTourFooterStyles = function euiTourFooterStyles(euiThemeContext) {
|
|
24
22
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiTreeViewItemStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _services = require("../../services");
|
|
9
8
|
var _global_styling = require("../../global_styling");
|
|
10
9
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -34,7 +33,7 @@ var euiTreeViewItemStyles = exports.euiTreeViewItemStyles = function euiTreeView
|
|
|
34
33
|
expanded: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', '100vh'), ";;label:expanded;")
|
|
35
34
|
},
|
|
36
35
|
button: {
|
|
37
|
-
euiTreeView__nodeInner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:",
|
|
36
|
+
euiTreeView__nodeInner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xxs), " display:flex;align-items:center;&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:hover,&:active,&:focus{background-color:", euiTheme.components.treeViewItemBackgroundHover, ";};label:euiTreeView__nodeInner;"),
|
|
38
37
|
default: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', defaultSize), " gap:", euiTheme.size.s, ";border-radius:", euiTheme.border.radius.medium, ";;label:default;"),
|
|
39
38
|
compressed: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', compressedSize), " gap:", euiTheme.size.xs, ";border-radius:", euiTheme.border.radius.small, ";;label:compressed;")
|
|
40
39
|
},
|
|
@@ -3,29 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* Side Public License, v 1.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Calculates the `px` value based on a scale multiplier
|
|
18
|
-
* @param scale - The font scale multiplier
|
|
19
|
-
* *
|
|
20
|
-
* @param themeOrBase - Theme base value
|
|
21
|
-
* *
|
|
22
|
-
* @returns string - Rem unit aligned to baseline
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
var sizeToPixel = exports.sizeToPixel = function sizeToPixel() {
|
|
26
|
-
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
|
|
27
|
-
return function (themeOrBase) {
|
|
28
|
-
var base = _typeof(themeOrBase) === 'object' ? themeOrBase.base : themeOrBase;
|
|
29
|
-
return "".concat(base * scale, "px");
|
|
30
|
-
};
|
|
31
|
-
};
|
|
6
|
+
Object.defineProperty(exports, "sizeToPixel", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.sizeToPixel;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
|
+
var _services = require("../../services");
|
|
10
|
+
var _templateObject;
|
|
11
|
+
/*
|
|
12
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
13
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
14
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
15
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
16
|
+
* Side Public License, v 1.
|
|
17
|
+
*/
|
|
18
|
+
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
19
|
+
var BUTTON_COLORS = exports.BUTTON_COLORS = ['text', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
|
|
20
|
+
var BUTTON_DISPLAYS = exports.BUTTON_DISPLAYS = ['base', 'fill', 'empty'];
|
|
21
|
+
/**
|
|
22
|
+
* Creates the `base` version of button styles with proper text contrast.
|
|
23
|
+
* @param euiThemeContext
|
|
24
|
+
* @param color One of the named button colors or 'disabled'
|
|
25
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
26
|
+
*/
|
|
27
|
+
var euiButtonColor = exports.euiButtonColor = function euiButtonColor(euiThemeContext, color) {
|
|
28
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
29
|
+
var backgroundTokenName = (0, _euiThemeCommon.getTokenName)('background', color);
|
|
30
|
+
var textTokenName = (0, _euiThemeCommon.getTokenName)('textColor', color);
|
|
31
|
+
var foreground = euiTheme.components.buttons[textTokenName];
|
|
32
|
+
var background = euiTheme.components.buttons[backgroundTokenName];
|
|
33
|
+
return {
|
|
34
|
+
color: background === 'transparent' || color === 'disabled' ? foreground : (0, _services.makeHighContrastColor)(foreground)(background),
|
|
35
|
+
backgroundColor: background
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Creates the `fill` version of buttons styles with proper text contrast.
|
|
41
|
+
* @param euiThemeContext
|
|
42
|
+
* @param color One of the named button colors or 'disabled'
|
|
43
|
+
* @returns Style object `{ backgroundColor, color }`
|
|
44
|
+
*/
|
|
45
|
+
var euiButtonFillColor = exports.euiButtonFillColor = function euiButtonFillColor(euiThemeContext, color) {
|
|
46
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
47
|
+
var backgroundTokenName = (0, _euiThemeCommon.getTokenName)('backgroundFilled', color);
|
|
48
|
+
var textColorTokenName = (0, _euiThemeCommon.getTokenName)('textColorFilled', color);
|
|
49
|
+
var foreground = euiTheme.components.buttons[textColorTokenName];
|
|
50
|
+
var background = euiTheme.components.buttons[backgroundTokenName];
|
|
51
|
+
return {
|
|
52
|
+
color: foreground,
|
|
53
|
+
backgroundColor: background
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Creates the `empty` version of button styles using the text-variant and adding interactive styles.
|
|
59
|
+
* @param euiThemeContext
|
|
60
|
+
* @param color One of the named button colors or 'disabled'
|
|
61
|
+
* @returns Style object `{ backgroundColor, color }` where `background` is typically used for interactive states
|
|
62
|
+
*/
|
|
63
|
+
var euiButtonEmptyColor = exports.euiButtonEmptyColor = function euiButtonEmptyColor(euiThemeContext, color) {
|
|
64
|
+
var foreground;
|
|
65
|
+
var background;
|
|
66
|
+
switch (color) {
|
|
67
|
+
case 'disabled':
|
|
68
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
69
|
+
background = 'transparent';
|
|
70
|
+
break;
|
|
71
|
+
default:
|
|
72
|
+
{
|
|
73
|
+
var backgroundToken = (0, _euiThemeCommon.getTokenName)('backgroundEmpty', color, 'hover');
|
|
74
|
+
foreground = euiButtonColor(euiThemeContext, color).color;
|
|
75
|
+
background = euiThemeContext.euiTheme.components.buttons[backgroundToken];
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
color: foreground,
|
|
81
|
+
backgroundColor: background
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Given the button display type, returns the Emotion based color keys.
|
|
87
|
+
* @param options Button display type
|
|
88
|
+
* @returns An object of `_EuiButtonColor` keys including `disabled`
|
|
89
|
+
*/
|
|
90
|
+
var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonColorCSS() {
|
|
91
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
92
|
+
var _options$display = options.display,
|
|
93
|
+
display = _options$display === void 0 ? 'base' : _options$display;
|
|
94
|
+
var colorsDisplaysMap = (0, _services.useEuiMemoizedStyles)(euiButtonDisplaysColors);
|
|
95
|
+
return colorsDisplaysMap[display];
|
|
96
|
+
};
|
|
97
|
+
var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
|
|
98
|
+
var COLORS = [].concat(BUTTON_COLORS, ['disabled']);
|
|
99
|
+
var displaysColorsMap = {};
|
|
100
|
+
BUTTON_DISPLAYS.forEach(function (display) {
|
|
101
|
+
displaysColorsMap[display] = {};
|
|
102
|
+
COLORS.forEach(function (color) {
|
|
103
|
+
switch (display) {
|
|
104
|
+
case 'base':
|
|
105
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonColor(euiThemeContext, color), ";;label:displaysColorsMap-display-color;");
|
|
106
|
+
break;
|
|
107
|
+
case 'fill':
|
|
108
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";;label:displaysColorsMap-display-color;");
|
|
109
|
+
break;
|
|
110
|
+
case 'empty':
|
|
111
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";&:focus,&:active{background-color:", euiButtonEmptyColor(euiThemeContext, color).backgroundColor, ";};label:displaysColorsMap-display-color;");
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Tweak auto-generated Emotion label/className output
|
|
116
|
+
var emotionOutput = displaysColorsMap[display][color];
|
|
117
|
+
emotionOutput.styles = emotionOutput.styles.replace('label:displaysColorsMap-display-color;', "label:".concat(display, "-").concat(color, ";"));
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
return displaysColorsMap;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Creates the translate animation when button is in focus.
|
|
125
|
+
* @returns string
|
|
126
|
+
*/
|
|
127
|
+
var useEuiButtonFocusCSS = exports.useEuiButtonFocusCSS = function useEuiButtonFocusCSS() {
|
|
128
|
+
return (0, _services.useEuiMemoizedStyles)(euiButtonFocusCSS);
|
|
129
|
+
};
|
|
130
|
+
var euiButtonFocusAnimation = (0, _react.keyframes)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 50% {\n transform: translateY(1px);\n }\n"])));
|
|
131
|
+
var euiButtonFocusCSS = function euiButtonFocusCSS(_ref) {
|
|
132
|
+
var euiTheme = _ref.euiTheme;
|
|
133
|
+
var focusCSS = /*#__PURE__*/(0, _react.css)(_euiThemeCommon.euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ease-in-out,background-color ", euiTheme.animation.normal, " ease-in-out;&:hover:not(:disabled){transform:translateY(-1px);}&:focus{animation:", euiButtonFocusAnimation, " ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";}&:active:not(:disabled){transform:translateY(1px);}};label:focusCSS;");
|
|
134
|
+
// Remove the auto-generated label.
|
|
135
|
+
// We could typically avoid a label by using a plain string `` instead of css``,
|
|
136
|
+
// but we need css`` for keyframes`` to work for the focus animation
|
|
137
|
+
focusCSS.styles = focusCSS.styles.replace('label:focusCSS;', '');
|
|
138
|
+
return focusCSS;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Map of `size` props to various sizings/scales
|
|
143
|
+
* that should remain consistent across all buttons
|
|
144
|
+
*/
|
|
145
|
+
var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(_ref2) {
|
|
146
|
+
var euiTheme = _ref2.euiTheme;
|
|
147
|
+
return {
|
|
148
|
+
xs: {
|
|
149
|
+
height: euiTheme.size.l,
|
|
150
|
+
radius: euiTheme.border.radius.small,
|
|
151
|
+
fontScale: 'xs'
|
|
152
|
+
},
|
|
153
|
+
s: {
|
|
154
|
+
height: euiTheme.size.xl,
|
|
155
|
+
radius: euiTheme.border.radius.small,
|
|
156
|
+
fontScale: 's'
|
|
157
|
+
},
|
|
158
|
+
m: {
|
|
159
|
+
height: euiTheme.size.xxl,
|
|
160
|
+
radius: euiTheme.border.radius.medium,
|
|
161
|
+
fontScale: 's'
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
};
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useEuiBorderColorCSS = exports.useEuiBackgroundColorCSS = exports.useEuiBackgroundColor = exports.euiBorderColor = exports.euiBackgroundColor = exports.BACKGROUND_COLORS = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _services = require("../../services");
|
|
9
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
10
|
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); }
|
|
10
11
|
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; }
|
|
11
12
|
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; }
|
|
@@ -18,40 +19,27 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
18
19
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
19
20
|
* Side Public License, v 1.
|
|
20
21
|
*/
|
|
21
|
-
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'primary', 'success', 'warning', 'danger'];
|
|
22
|
+
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
|
|
22
23
|
/**
|
|
24
|
+
* @deprecated - use background tokens directly
|
|
23
25
|
* @returns A single background color with optional alpha transparency
|
|
24
26
|
*/
|
|
25
27
|
var euiBackgroundColor = exports.euiBackgroundColor = function euiBackgroundColor(_ref, color) {
|
|
26
|
-
var euiTheme = _ref.euiTheme
|
|
27
|
-
colorMode = _ref.colorMode;
|
|
28
|
+
var euiTheme = _ref.euiTheme;
|
|
28
29
|
var _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
29
30
|
method = _ref2.method;
|
|
30
31
|
if (color === 'transparent') return 'transparent';
|
|
31
32
|
if (method === 'transparent') {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} else if (color === 'subdued') {
|
|
35
|
-
return colorMode === 'DARK' ? (0, _services.transparentize)(euiTheme.colors.lightShade, 0.4) : (0, _services.transparentize)(euiTheme.colors.lightShade, 0.2);
|
|
36
|
-
} else {
|
|
37
|
-
return (0, _services.transparentize)(euiTheme.colors[color], 0.1);
|
|
38
|
-
}
|
|
33
|
+
var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundTransparent', color);
|
|
34
|
+
return euiTheme.colors[tokenName];
|
|
39
35
|
} else {
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
};
|
|
43
|
-
switch (color) {
|
|
44
|
-
case 'plain':
|
|
45
|
-
return euiTheme.colors.emptyShade;
|
|
46
|
-
case 'subdued':
|
|
47
|
-
return euiTheme.colors.body;
|
|
48
|
-
default:
|
|
49
|
-
return _tintOrShade(euiTheme.colors[color]);
|
|
50
|
-
}
|
|
36
|
+
var _tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
|
|
37
|
+
return euiTheme.colors[_tokenName];
|
|
51
38
|
}
|
|
52
39
|
};
|
|
53
40
|
|
|
54
41
|
/**
|
|
42
|
+
* @deprecated
|
|
55
43
|
* @returns An object map of color keys to color values, categorized by
|
|
56
44
|
* opaque (default) vs transparency (hover/focus states) methods.
|
|
57
45
|
* e.g. {
|
|
@@ -71,6 +59,10 @@ var _euiBackgroundColorMap = function _euiBackgroundColorMap(euiThemeContext) {
|
|
|
71
59
|
}, {})
|
|
72
60
|
};
|
|
73
61
|
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
74
66
|
var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackgroundColor(color) {
|
|
75
67
|
var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
76
68
|
method = _ref3.method;
|
|
@@ -79,34 +71,44 @@ var useEuiBackgroundColor = exports.useEuiBackgroundColor = function useEuiBackg
|
|
|
79
71
|
};
|
|
80
72
|
|
|
81
73
|
/**
|
|
74
|
+
* @deprecated
|
|
82
75
|
* @returns An object map of color keys to CSS,
|
|
83
76
|
* e.g. { danger: css``, success: css``, ... }
|
|
84
77
|
*/
|
|
85
78
|
var _euiBackgroundColors = function _euiBackgroundColors(euiThemeContext) {
|
|
86
79
|
return BACKGROUND_COLORS.reduce(function (acc, color) {
|
|
87
|
-
|
|
80
|
+
var tokenName = (0, _euiThemeCommon.getTokenName)('backgroundBase', color);
|
|
81
|
+
var backgroundColor = color === 'transparent' ? 'transparent' : euiThemeContext.euiTheme.colors[tokenName];
|
|
82
|
+
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("background-color:", backgroundColor, ";label:", color, ";")));
|
|
88
83
|
}, {});
|
|
89
84
|
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @deprecated - use background tokens directly
|
|
88
|
+
* Hook to retrieve background style for a background color variant
|
|
89
|
+
* @returns An object map of color keys to CSS,
|
|
90
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
91
|
+
*/
|
|
90
92
|
var useEuiBackgroundColorCSS = exports.useEuiBackgroundColorCSS = function useEuiBackgroundColorCSS() {
|
|
91
93
|
return (0, _services.useEuiMemoizedStyles)(_euiBackgroundColors);
|
|
92
94
|
};
|
|
93
95
|
|
|
94
96
|
/**
|
|
95
97
|
* Border colors
|
|
98
|
+
* @deprecated - use border tokens directly or use
|
|
99
|
+
* `useEuiBorderColorCSS()` for composed styles
|
|
96
100
|
*/
|
|
97
101
|
|
|
98
102
|
var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, color) {
|
|
99
|
-
var euiTheme = _ref4.euiTheme
|
|
100
|
-
colorMode = _ref4.colorMode;
|
|
103
|
+
var euiTheme = _ref4.euiTheme;
|
|
101
104
|
switch (color) {
|
|
102
105
|
case 'transparent':
|
|
103
|
-
case 'plain':
|
|
104
|
-
case 'subdued':
|
|
105
106
|
return euiTheme.border.color;
|
|
106
|
-
case 'warning':
|
|
107
|
-
return (0, _services.tintOrShade)(euiTheme.colors.warning, 0.4, colorMode);
|
|
108
107
|
default:
|
|
109
|
-
|
|
108
|
+
{
|
|
109
|
+
var tokenName = (0, _euiThemeCommon.getTokenName)('borderStrong', color);
|
|
110
|
+
return euiTheme.colors[tokenName];
|
|
111
|
+
}
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
114
|
|
|
@@ -116,9 +118,16 @@ var euiBorderColor = exports.euiBorderColor = function euiBorderColor(_ref4, col
|
|
|
116
118
|
*/
|
|
117
119
|
var _euiBorderColors = function _euiBorderColors(euiThemeContext) {
|
|
118
120
|
return BACKGROUND_COLORS.reduce(function (acc, color) {
|
|
119
|
-
|
|
121
|
+
var borderToken = (0, _euiThemeCommon.getTokenName)('borderBase', color);
|
|
122
|
+
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, color, /*#__PURE__*/(0, _react.css)("border-color:", euiThemeContext.euiTheme.colors[borderToken], ";label:", color, ";")));
|
|
120
123
|
}, {});
|
|
121
124
|
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Hook to retrieve border style for a border variant
|
|
128
|
+
* @returns An object map of color keys to CSS,
|
|
129
|
+
* e.g. { danger: css``, success: css``, ... }
|
|
130
|
+
*/
|
|
122
131
|
var useEuiBorderColorCSS = exports.useEuiBorderColorCSS = function useEuiBorderColorCSS() {
|
|
123
132
|
return (0, _services.useEuiMemoizedStyles)(_euiBorderColors);
|
|
124
133
|
};
|
|
@@ -68,4 +68,15 @@ Object.keys(_responsive).forEach(function (key) {
|
|
|
68
68
|
return _responsive[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _button = require("./_button");
|
|
73
|
+
Object.keys(_button).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _button[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function get() {
|
|
79
|
+
return _button[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
71
82
|
});
|
|
@@ -39,7 +39,7 @@ var EuiGlobalStyles = exports.EuiGlobalStyles = function EuiGlobalStyles(_ref) {
|
|
|
39
39
|
* so that it knows to use custom styles. Therefore, we just reuse the same scrollbar mixin with thick size.
|
|
40
40
|
*/
|
|
41
41
|
var scrollbarStyles = (0, _mixins.euiScrollBarStyles)(euiThemeContext, {
|
|
42
|
-
trackColor:
|
|
42
|
+
trackColor: euiTheme.components.scrollbarTrackColor,
|
|
43
43
|
width: 'auto'
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -3,65 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
11
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
12
|
-
* Side Public License, v 1.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* NOTE: These were quick conversions of their Sass counterparts.
|
|
17
|
-
* They have yet to be used/tested.
|
|
18
|
-
* TODO: Make the graphic version available from `euiPaletteColorBlind()`
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
// Maps allow for easier JSON usage
|
|
22
|
-
// Use map_merge(euiColorVisColors, $yourMap) to change individual colors after importing ths file
|
|
23
|
-
// The `behindText` variant is a direct copy of the hex output by the JS euiPaletteColorBlindBehindText() function
|
|
24
|
-
var euiPaletteColorBlind = {
|
|
25
|
-
euiColorVis0: {
|
|
26
|
-
graphic: '#54B399'
|
|
27
|
-
},
|
|
28
|
-
euiColorVis1: {
|
|
29
|
-
graphic: '#6092C0'
|
|
30
|
-
},
|
|
31
|
-
euiColorVis2: {
|
|
32
|
-
graphic: '#D36086'
|
|
33
|
-
},
|
|
34
|
-
euiColorVis3: {
|
|
35
|
-
graphic: '#9170B8'
|
|
36
|
-
},
|
|
37
|
-
euiColorVis4: {
|
|
38
|
-
graphic: '#CA8EAE'
|
|
39
|
-
},
|
|
40
|
-
euiColorVis5: {
|
|
41
|
-
graphic: '#D6BF57'
|
|
42
|
-
},
|
|
43
|
-
euiColorVis6: {
|
|
44
|
-
graphic: '#B9A888'
|
|
45
|
-
},
|
|
46
|
-
euiColorVis7: {
|
|
47
|
-
graphic: '#DA8B45'
|
|
48
|
-
},
|
|
49
|
-
euiColorVis8: {
|
|
50
|
-
graphic: '#AA6556'
|
|
51
|
-
},
|
|
52
|
-
euiColorVis9: {
|
|
53
|
-
graphic: '#E7664C'
|
|
6
|
+
Object.defineProperty(exports, "colorVis", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.colorVis;
|
|
54
10
|
}
|
|
55
|
-
};
|
|
56
|
-
var
|
|
57
|
-
euiColorVis0: euiPaletteColorBlind.euiColorVis0.graphic,
|
|
58
|
-
euiColorVis1: euiPaletteColorBlind.euiColorVis1.graphic,
|
|
59
|
-
euiColorVis2: euiPaletteColorBlind.euiColorVis2.graphic,
|
|
60
|
-
euiColorVis3: euiPaletteColorBlind.euiColorVis3.graphic,
|
|
61
|
-
euiColorVis4: euiPaletteColorBlind.euiColorVis4.graphic,
|
|
62
|
-
euiColorVis5: euiPaletteColorBlind.euiColorVis5.graphic,
|
|
63
|
-
euiColorVis6: euiPaletteColorBlind.euiColorVis6.graphic,
|
|
64
|
-
euiColorVis7: euiPaletteColorBlind.euiColorVis7.graphic,
|
|
65
|
-
euiColorVis8: euiPaletteColorBlind.euiColorVis8.graphic,
|
|
66
|
-
euiColorVis9: euiPaletteColorBlind.euiColorVis9.graphic
|
|
67
|
-
};
|
|
11
|
+
});
|
|
12
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
@@ -3,34 +3,28 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var EuiThemeAnimationSpeeds = exports.EuiThemeAnimationSpeeds = ['extraFast', 'fast', 'normal', 'slow', 'extraSlow'];
|
|
32
|
-
/**
|
|
33
|
-
* Easings / Timing functions
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
var EuiThemeAnimationEasings = exports.EuiThemeAnimationEasings = ['bounce', 'resistance'];
|
|
6
|
+
Object.defineProperty(exports, "EuiThemeAnimationEasings", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.EuiThemeAnimationEasings;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "EuiThemeAnimationSpeeds", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _euiThemeCommon.EuiThemeAnimationSpeeds;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "euiCanAnimate", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _euiThemeCommon.euiCanAnimate;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "euiCantAnimate", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _euiThemeCommon.euiCantAnimate;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
@@ -3,19 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var EuiThemeBreakpoints = exports.EuiThemeBreakpoints = ['xs', 's', 'm', 'l', 'xl'];
|
|
16
|
-
|
|
17
|
-
// This type cannot be a string enum / must be a generic string
|
|
18
|
-
// in case consumers add custom breakpoint sizes, such as xxl or xxs
|
|
19
|
-
|
|
20
|
-
// Explicitly list out each key so we can document default values
|
|
21
|
-
// via JSDoc (which is available to devs in IDE via intellisense)
|
|
6
|
+
Object.defineProperty(exports, "EuiThemeBreakpoints", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.EuiThemeBreakpoints;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|