@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
|
@@ -9,7 +9,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiFontSize, euiFocusRing, euiTextTruncate, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
-
import { transparentize } from '../../services';
|
|
13
12
|
import { euiBadgeColors } from './color_utils';
|
|
14
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
14
|
name: "1hw5vc4-clickable",
|
|
@@ -39,6 +38,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
|
|
|
39
38
|
hollow: /*#__PURE__*/css(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
40
39
|
primary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
|
|
41
40
|
accent: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
|
|
41
|
+
accentSecondary: /*#__PURE__*/css(setBadgeColorVars(badgeColors.accentSecondary), ";label:accentSecondary;"),
|
|
42
42
|
warning: /*#__PURE__*/css(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
|
|
43
43
|
danger: /*#__PURE__*/css(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
|
|
44
44
|
success: /*#__PURE__*/css(setBadgeColorVars(badgeColors.success), ";label:success;"),
|
|
@@ -62,7 +62,7 @@ export var euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
|
|
|
62
62
|
},
|
|
63
63
|
// Clickable icons (iconOnClick)
|
|
64
64
|
iconButton: {
|
|
65
|
-
euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:",
|
|
65
|
+
euiBadge__iconButton: /*#__PURE__*/css("font-size:0;&:focus{background-color:", euiTheme.components.badgeIconButtonBackgroundHover, ";color:", euiTheme.colors.ink, ";border-radius:", mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
66
66
|
return x / 2;
|
|
67
67
|
}), ";}&:disabled{cursor:not-allowed;}.euiBadge__icon{margin:0!important;};label:euiBadge__iconButton;"),
|
|
68
68
|
right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.xs), ";;label:right;"),
|
|
@@ -17,7 +17,7 @@ import { EuiToolTip } from '../../tool_tip';
|
|
|
17
17
|
import { EuiIcon } from '../../icon';
|
|
18
18
|
import { euiBetaBadgeStyles } from './beta_badge.styles';
|
|
19
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
20
|
-
export var COLORS = ['accent', 'subdued', 'hollow'];
|
|
20
|
+
export var COLORS = ['accent', 'accentSecondary', 'subdued', 'hollow'];
|
|
21
21
|
export var SIZES = ['s', 'm'];
|
|
22
22
|
export var ALIGNMENTS = ['baseline', 'middle'];
|
|
23
23
|
|
|
@@ -44,6 +44,7 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
|
44
44
|
}), ";};label:euiBetaBadge;"),
|
|
45
45
|
// Colors
|
|
46
46
|
accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
|
|
47
|
+
accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
|
|
47
48
|
subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
|
|
48
49
|
hollow: /*#__PURE__*/css("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
49
50
|
// Font sizes
|
|
@@ -11,12 +11,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import chroma from 'chroma-js';
|
|
14
|
-
import { isColorDark
|
|
15
|
-
import { euiButtonColor, euiButtonFillColor } from '../../
|
|
14
|
+
import { isColorDark } from '../../services';
|
|
15
|
+
import { euiButtonColor, euiButtonFillColor } from '../../global_styling/mixins/_button';
|
|
16
16
|
import { chromaValid, parseColor } from '../color_picker/utils';
|
|
17
17
|
export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
18
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
19
|
-
colorMode = euiThemeContext.colorMode;
|
|
18
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
20
19
|
return {
|
|
21
20
|
// Colors shared between buttons and badges
|
|
22
21
|
primary: euiButtonFillColor(euiThemeContext, 'primary'),
|
|
@@ -24,16 +23,18 @@ export var euiBadgeColors = function euiBadgeColors(euiThemeContext) {
|
|
|
24
23
|
warning: euiButtonFillColor(euiThemeContext, 'warning'),
|
|
25
24
|
danger: euiButtonFillColor(euiThemeContext, 'danger'),
|
|
26
25
|
accent: euiButtonFillColor(euiThemeContext, 'accent'),
|
|
26
|
+
accentSecondary: euiButtonFillColor(euiThemeContext, 'accentSecondary'),
|
|
27
27
|
disabled: euiButtonColor(euiThemeContext, 'disabled'),
|
|
28
28
|
// Colors unique to badges
|
|
29
29
|
default: getBadgeColors(euiThemeContext, euiTheme.colors.lightShade),
|
|
30
30
|
// Hollow has a border and is used for autocompleters and beta badges
|
|
31
31
|
hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
|
|
32
|
-
borderColor:
|
|
32
|
+
borderColor: euiTheme.components.badgeBorderColorHollow
|
|
33
33
|
}),
|
|
34
34
|
// Colors used by beta and notification badges
|
|
35
|
-
subdued: getBadgeColors(euiThemeContext,
|
|
36
|
-
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.
|
|
35
|
+
subdued: getBadgeColors(euiThemeContext, euiTheme.components.badgeBackgroundSubdued),
|
|
36
|
+
accentText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccent),
|
|
37
|
+
accentSecondaryText: getBadgeColors(euiThemeContext, euiTheme.colors.textAccentSecondary)
|
|
37
38
|
};
|
|
38
39
|
};
|
|
39
40
|
export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundColor) {
|
|
@@ -14,7 +14,7 @@ import classNames from 'classnames';
|
|
|
14
14
|
import { useEuiMemoizedStyles } from '../../../services';
|
|
15
15
|
import { euiNotificationBadgeStyles } from './badge_notification.styles';
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
|
-
export var COLORS = ['accent', 'subdued', 'success'];
|
|
17
|
+
export var COLORS = ['accent', 'accentSecondary', 'subdued', 'success'];
|
|
18
18
|
export var SIZES = ['s', 'm'];
|
|
19
19
|
export var EuiNotificationBadge = function EuiNotificationBadge(_ref) {
|
|
20
20
|
var children = _ref.children,
|
|
@@ -23,6 +23,7 @@ export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiT
|
|
|
23
23
|
})), " ", logicalCSS('min-width', euiTheme.size.l), ";;label:m;"),
|
|
24
24
|
// Colors
|
|
25
25
|
accent: /*#__PURE__*/css(badgeColors.accentText, ";label:accent;"),
|
|
26
|
+
accentSecondary: /*#__PURE__*/css(badgeColors.accentSecondaryText, ";label:accentSecondary;"),
|
|
26
27
|
success: /*#__PURE__*/css(badgeColors.success, ";label:success;"),
|
|
27
28
|
subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;")
|
|
28
29
|
};
|
|
@@ -10,7 +10,6 @@ var _templateObject;
|
|
|
10
10
|
|
|
11
11
|
import { css, keyframes } from '@emotion/react';
|
|
12
12
|
import { euiCanAnimate } from '../../global_styling';
|
|
13
|
-
import { shade } from '../../services';
|
|
14
13
|
import { euiShadowFlat } from '../../themes/amsterdam/global_styling/mixins';
|
|
15
14
|
var euiBottomBarAppear = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n transform: translateY(100%);\n opacity: 0;\n }\n\n 100% {\n transform: translateY(0%);\n opacity: 1;\n }\n"])));
|
|
16
15
|
export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
@@ -18,7 +17,7 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
|
|
|
18
17
|
return {
|
|
19
18
|
// Base
|
|
20
19
|
// `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
|
|
21
|
-
euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:",
|
|
20
|
+
euiBottomBar: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), " background:", euiTheme.components.bottomBarBackground, ";", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
|
|
22
21
|
static: /*#__PURE__*/css(";label:static;"),
|
|
23
22
|
// Default
|
|
24
23
|
fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
|
|
@@ -7,16 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { tintOrShade } from '../../services/color';
|
|
11
10
|
import { euiFontSize, euiTextTruncate, euiFocusRing, logicalCSS, logicalBorderRadiusCSS, mathWithUnits } from '../../global_styling';
|
|
12
|
-
import { euiButtonColor } from '../../
|
|
11
|
+
import { euiButtonColor } from '../../global_styling/mixins/_button';
|
|
13
12
|
|
|
14
13
|
/**
|
|
15
14
|
* Styles cast to inner <a>, <button>, <span> elements
|
|
16
15
|
*/
|
|
17
16
|
export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeContext) {
|
|
18
|
-
var euiTheme = euiThemeContext.euiTheme
|
|
19
|
-
colorMode = euiThemeContext.colorMode;
|
|
17
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
20
18
|
|
|
21
19
|
// Reuse button colors for `type="application`" clickable breadcrumbs
|
|
22
20
|
var applicationButtonColors = euiButtonColor(euiThemeContext, 'primary');
|
|
@@ -24,8 +22,8 @@ export var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiT
|
|
|
24
22
|
// Create custom darker gray colors for non-clickable application breadcrumbs
|
|
25
23
|
// The numbers/ratios are fairly specific here to pass WCAG AA contrast minimums
|
|
26
24
|
var applicationTextColors = {
|
|
27
|
-
backgroundColor:
|
|
28
|
-
color:
|
|
25
|
+
backgroundColor: euiTheme.components.breadcrumbsApplicationBackground,
|
|
26
|
+
color: euiTheme.components.breadcrumbsApplicationColor
|
|
29
27
|
};
|
|
30
28
|
return {
|
|
31
29
|
euiBreadcrumb__content: /*#__PURE__*/css("font-weight:", euiTheme.font.weight.regular, ";text-align:center;vertical-align:baseline;&:not(.euiLink){color:", euiTheme.colors.subduedText, ";};label:euiBreadcrumb__content;"),
|
|
@@ -11,7 +11,7 @@ var _excluded = ["className", "buttonRef", "size", "color", "fill"];
|
|
|
11
11
|
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../
|
|
14
|
+
import { BUTTON_COLORS, useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
|
|
15
15
|
import { EuiButtonDisplay, isButtonDisabled } from './button_display/_button_display';
|
|
16
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
17
17
|
export var COLORS = BUTTON_COLORS;
|
|
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
|
|
11
|
-
import { euiButtonSizeMap } from '../../../
|
|
11
|
+
import { euiButtonSizeMap } from '../../../global_styling/mixins';
|
|
12
12
|
// Provides a solid reset and base for handling sizing layout
|
|
13
13
|
// Does not include any visual styles
|
|
14
14
|
export var euiButtonBaseCSS = function euiButtonBaseCSS() {
|
|
@@ -16,7 +16,7 @@ import React from 'react';
|
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import { useEuiMemoizedStyles, getSecureRelForTarget } from '../../../services';
|
|
18
18
|
import { EuiButtonDisplayContent } from '../button_display/_button_display_content';
|
|
19
|
-
import { useEuiButtonColorCSS } from '../../../
|
|
19
|
+
import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
|
|
20
20
|
import { isButtonDisabled } from '../button_display/_button_display';
|
|
21
21
|
import { euiButtonEmptyStyles } from './button_empty.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
import classNames from 'classnames';
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { useEuiMemoizedStyles } from '../../../services';
|
|
19
|
-
import { useEuiButtonColorCSS } from '../../../
|
|
19
|
+
import { useEuiButtonColorCSS } from '../../../global_styling/mixins/_button';
|
|
20
20
|
import { useInnerText } from '../../inner_text';
|
|
21
21
|
import { EuiButtonDisplay } from '../button_display/_button_display';
|
|
22
22
|
import { euiButtonGroupButtonStyles, _compressedButtonFocusColors } from './button_group_button.styles';
|
|
@@ -12,9 +12,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { css } from '@emotion/react';
|
|
15
|
-
import { makeDisabledContrastColor
|
|
15
|
+
import { makeDisabledContrastColor } from '../../../services';
|
|
16
16
|
import { mathWithUnits, logicalCSS, logicalShorthandCSS, euiTextShift, euiOutline, euiCanAnimate } from '../../../global_styling';
|
|
17
|
-
import { euiButtonFillColor, BUTTON_COLORS } from '../../../
|
|
17
|
+
import { euiButtonFillColor, BUTTON_COLORS } from '../../../global_styling/mixins/_button';
|
|
18
18
|
import { euiScreenReaderOnly } from '../../accessibility';
|
|
19
19
|
import { euiFormVariables } from '../../form/form.styles';
|
|
20
20
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -53,8 +53,8 @@ export var euiButtonGroupButtonStyles = function euiButtonGroupButtonStyles(euiT
|
|
|
53
53
|
uncompressed: /*#__PURE__*/css("&:is(.euiButtonGroupButton-isSelected){font-weight:", euiTheme.font.weight.bold, ";}&:focus-visible{", euiOutline(euiThemeContext, 'inset', euiTheme.colors.fullShade), ";};label:uncompressed;"),
|
|
54
54
|
get borders() {
|
|
55
55
|
var selectors = '.euiButtonGroupButton-isSelected, .euiButtonGroup__tooltipWrapper-isSelected';
|
|
56
|
-
var selectedColor =
|
|
57
|
-
var unselectedColor =
|
|
56
|
+
var selectedColor = euiTheme.components.buttonGroupBorderColorSelected;
|
|
57
|
+
var unselectedColor = euiTheme.components.buttonGroupBorderColor;
|
|
58
58
|
var borderWidth = euiTheme.border.width.thin;
|
|
59
59
|
|
|
60
60
|
// "Borders" between buttons should be present between two of the same colored buttons,
|
|
@@ -14,7 +14,7 @@ import classNames from 'classnames';
|
|
|
14
14
|
import { getSecureRelForTarget, useEuiMemoizedStyles } from '../../../services';
|
|
15
15
|
import { EuiIcon } from '../../icon';
|
|
16
16
|
import { EuiLoadingSpinner } from '../../loading';
|
|
17
|
-
import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../
|
|
17
|
+
import { useEuiButtonColorCSS, useEuiButtonFocusCSS } from '../../../global_styling/mixins/_button';
|
|
18
18
|
import { isButtonDisabled } from '../button_display/_button_display';
|
|
19
19
|
import { euiButtonIconStyles, _emptyHoverStyles } from './button_icon.styles';
|
|
20
20
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
@@ -9,7 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiPaddingSize, euiSupportsHas, logicalCSS, logicals, logicalTextAlignCSS } from '../../global_styling';
|
|
12
|
-
import { euiButtonColor } from '../../
|
|
12
|
+
import { euiButtonColor } from '../../global_styling/mixins';
|
|
13
13
|
var paddingKey = 'm';
|
|
14
14
|
var halfPaddingKey = 's';
|
|
15
15
|
|
|
@@ -12,7 +12,7 @@ var _excluded = ["lineNumber", "children"];
|
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
14
|
import { useEuiTheme, useEuiMemoizedStyles } from '../../services';
|
|
15
|
-
import { useEuiButtonFocusCSS } from '../../
|
|
15
|
+
import { useEuiButtonFocusCSS } from '../../global_styling/mixins/_button';
|
|
16
16
|
import { useEuiI18n } from '../i18n';
|
|
17
17
|
import { EuiPopover } from '../popover';
|
|
18
18
|
import { EuiIcon } from '../icon';
|
|
@@ -15,7 +15,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { css } from '@emotion/css';
|
|
18
|
-
import { euiBackgroundColor } from '../../global_styling';
|
|
19
18
|
// Note: These styles must be in a separate file due to using `css` from `@emotion/css`
|
|
20
19
|
// (i.e., applying styles in vanilla JS / directly to DOM nodes instead of React)
|
|
21
20
|
|
|
@@ -40,7 +39,7 @@ export var euiCodeBlockLineStyles = function euiCodeBlockLineStyles(euiThemeCont
|
|
|
40
39
|
}),
|
|
41
40
|
lineText: {
|
|
42
41
|
euiCodeBlock__lineText: /*#__PURE__*/css("flex-grow:1;display:inline-block;padding-inline-start:", euiTheme.size.m, ";border-inline-start:", euiTheme.border.thin, ";user-select:text;;label:euiCodeBlock__lineText;"),
|
|
43
|
-
isHighlighted: /*#__PURE__*/css("background:",
|
|
42
|
+
isHighlighted: /*#__PURE__*/css("background:", euiTheme.colors.backgroundBasePrimary, ";border-inline-start:", euiTheme.border.width.thick, " solid ", euiTheme.colors.primary, ";;label:isHighlighted;")
|
|
44
43
|
},
|
|
45
44
|
lineNumber: {
|
|
46
45
|
euiCodeBlock__lineNumberWrapper: /*#__PURE__*/css("position:relative;flex-grow:0;flex-shrink:0;user-select:none;padding-inline-end:", euiTheme.size.m, ";box-sizing:content-box;;label:euiCodeBlock__lineNumberWrapper;"),
|
package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js
CHANGED
|
@@ -7,17 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { shade } from '../../../services';
|
|
11
10
|
import { logicalCSS } from '../../../global_styling';
|
|
12
11
|
export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(_ref) {
|
|
13
|
-
var euiTheme = _ref.euiTheme
|
|
14
|
-
colorMode = _ref.colorMode;
|
|
12
|
+
var euiTheme = _ref.euiTheme;
|
|
15
13
|
return {
|
|
16
14
|
euiCollapsibleNavGroup: /*#__PURE__*/css("&:not(:first-child){", logicalCSS('border-top', euiTheme.border.thin), ";};label:euiCollapsibleNavGroup;"),
|
|
17
15
|
// Background colors
|
|
18
16
|
none: /*#__PURE__*/css(";label:none;"),
|
|
19
|
-
light: /*#__PURE__*/css("background-color:", euiTheme.
|
|
20
|
-
dark: /*#__PURE__*/css("background-color:",
|
|
17
|
+
light: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackground, ";;label:light;"),
|
|
18
|
+
dark: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackgroundDark, ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.ghost, ";};label:dark;"),
|
|
21
19
|
// Header padding
|
|
22
20
|
isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
|
|
23
21
|
notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
|
|
@@ -12,7 +12,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
12
12
|
|
|
13
13
|
import { css } from '@emotion/react';
|
|
14
14
|
import { logicalCSS, mathWithUnits, euiFontSize } from '../../../global_styling';
|
|
15
|
-
import { euiButtonColor } from '../../../
|
|
15
|
+
import { euiButtonColor } from '../../../global_styling/mixins/_button';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Style variables shared between accordion, link, and sub items
|
package/optimize/es/components/color_picker/color_palette_display/color_palette_display.styles.js
CHANGED
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../../services';
|
|
11
10
|
import { logicalCSS } from '../../../global_styling';
|
|
12
11
|
export var euiColorPaletteDisplayStyles = function euiColorPaletteDisplayStyles(euiThemeContext) {
|
|
13
12
|
var euiTheme = euiThemeContext.euiTheme;
|
|
14
13
|
|
|
15
14
|
// Border is a pseudo element with transparency
|
|
16
|
-
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(
|
|
15
|
+
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBaseFormsColorSwatch);
|
|
17
16
|
return {
|
|
18
17
|
euiColorPaletteDisplay: /*#__PURE__*/css("position:relative;display:flex;flex-direction:row;overflow:hidden;&::after{content:'';position:absolute;inset:0;pointer-events:none;border:", border, ";border-radius:inherit;};label:euiColorPaletteDisplay;"),
|
|
19
18
|
// Sizes
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { transparentize } from '../../services';
|
|
11
10
|
import { logicalCSS, mathWithUnits } from '../../global_styling';
|
|
12
11
|
export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext) {
|
|
13
12
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -22,6 +21,6 @@ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext)
|
|
|
22
21
|
euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), ";};label:euiColorPicker__alphaRange;"),
|
|
23
22
|
// Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
|
|
24
23
|
// Targets a custom className applied directly to the <svg> icon
|
|
25
|
-
euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:",
|
|
24
|
+
euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", euiTheme.colors.borderBaseFormsColorSwatch, ";};label:euiColorPicker__swatchInputIcon;")
|
|
26
25
|
};
|
|
27
26
|
};
|
|
@@ -14,6 +14,6 @@ export var euiColorPickerSwatchStyles = function euiColorPickerSwatchStyles(euiT
|
|
|
14
14
|
return {
|
|
15
15
|
euiColorPickerSwatch: /*#__PURE__*/css("display:inline-block;", logicalSizeCSS(euiTheme.size.l), " border-radius:", mathWithUnits(euiTheme.border.radius.medium, function (x) {
|
|
16
16
|
return x / 2;
|
|
17
|
-
}), ";border:", euiTheme.border.width.thin, " solid ",
|
|
17
|
+
}), ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFormsColorSwatch, ";box-shadow:inset 0 0 0 ", euiTheme.border.width.thin, " ", transparentize(euiTheme.colors.emptyShade, 0.05), ";cursor:pointer;&:disabled{cursor:default;}&:focus{", euiOutline(euiThemeContext, 'center'), ";};label:euiColorPickerSwatch;")
|
|
18
18
|
};
|
|
19
19
|
};
|
|
@@ -308,12 +308,15 @@ export var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
308
308
|
}
|
|
309
309
|
break;
|
|
310
310
|
case keys.ENTER:
|
|
311
|
-
|
|
312
|
-
event.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
311
|
+
// Do not block enter keypresses for the clear button or delete selection buttons
|
|
312
|
+
if (event.target === _this.searchInputRefInstance) {
|
|
313
|
+
event.preventDefault();
|
|
314
|
+
event.stopPropagation();
|
|
315
|
+
if (_this.hasActiveOption()) {
|
|
316
|
+
_this.onAddOption(_this.state.matchingOptions[_this.state.activeOptionIndex]);
|
|
317
|
+
} else {
|
|
318
|
+
_this.setCustomOptions(false);
|
|
319
|
+
}
|
|
317
320
|
}
|
|
318
321
|
break;
|
|
319
322
|
case keys.TAB:
|
|
@@ -28,12 +28,6 @@ export function keysOf(obj) {
|
|
|
28
28
|
return Object.keys(obj);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Like `keyof typeof`, but for getting values instead of keys
|
|
33
|
-
* ValueOf<typeof {key1: 'value1', key2: 'value2'}>
|
|
34
|
-
* Results in `'value1' | 'value2'`
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
31
|
// Returns the props of a given HTML element
|
|
38
32
|
|
|
39
33
|
// Utility methods for ApplyClassComponentDefaults
|
|
@@ -126,26 +120,4 @@ React.FunctionComponent<ExclusiveUnion<Spanlike, Buttonlike>>
|
|
|
126
120
|
* type ButtonLike = PropsForButton<BaseProps>
|
|
127
121
|
* type ComponentProps = ExclusiveUnion<AnchorLike, ButtonLike>
|
|
128
122
|
* const Component: FunctionComponent<ComponentProps> ...
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Replaces all properties on any type as optional, includes nested types
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* interface Person {
|
|
137
|
-
* name: string;
|
|
138
|
-
* age?: number;
|
|
139
|
-
* spouse: Person;
|
|
140
|
-
* children: Person[];
|
|
141
|
-
* }
|
|
142
|
-
* type PartialPerson = RecursivePartial<Person>;
|
|
143
|
-
* // results in
|
|
144
|
-
* interface PartialPerson {
|
|
145
|
-
* name?: string;
|
|
146
|
-
* age?: number;
|
|
147
|
-
* spouse?: RecursivePartial<Person>;
|
|
148
|
-
* children?: RecursivePartial<Person>[]
|
|
149
|
-
* }
|
|
150
|
-
* ```
|
|
151
123
|
*/
|
|
@@ -156,7 +156,7 @@ export var EuiContextMenuPanelClass = /*#__PURE__*/function (_Component) {
|
|
|
156
156
|
items: _this.props.items
|
|
157
157
|
},
|
|
158
158
|
menuItems: [],
|
|
159
|
-
focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null ? props.initialFocusedItemIndex + 1 // Account for panel title back button
|
|
159
|
+
focusedItemIndex: props.onClose && props.initialFocusedItemIndex != null && props.initialFocusedItemIndex !== -1 ? props.initialFocusedItemIndex + 1 // Account for panel title back button
|
|
160
160
|
: props.initialFocusedItemIndex,
|
|
161
161
|
currentHeight: undefined,
|
|
162
162
|
waitingForInitialPopover: false,
|
|
@@ -199,6 +199,16 @@ export var EuiContextMenuPanelClass = /*#__PURE__*/function (_Component) {
|
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
+
// `initialFocusedItemIndex={-1}` should only be used when preventing initial item focus is desired
|
|
203
|
+
if (_this2.state.focusedItemIndex === -1) {
|
|
204
|
+
// Resetting the focusedItemIndex to 0 allows keyboard up/down behavior to
|
|
205
|
+
// still work correctly later if the panel is manually tabbed into
|
|
206
|
+
return _this2.setState({
|
|
207
|
+
tookInitialFocus: true,
|
|
208
|
+
focusedItemIndex: 0
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
202
212
|
// If an item should be focused, focus it (if it exists)
|
|
203
213
|
if (_this2.state.focusedItemIndex != null && _this2.state.menuItems.length) {
|
|
204
214
|
var focusedItem = _this2.state.menuItems[_this2.state.focusedItemIndex];
|
|
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
import _extends from "@babel/runtime/helpers/extends";
|
|
8
8
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
9
9
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
10
|
-
var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "
|
|
10
|
+
var _excluded = ["renderCellValue", "cellContext", "column", "setCellContentsRef", "rowIndex", "colIndex", "rowHeightsOptions", "rowHeightUtils", "isControlColumn"],
|
|
11
11
|
_excluded2 = ["width", "popoverContext", "interactiveCellId", "columnType", "className", "column", "style", "rowHeightUtils", "rowHeightsOptions", "rowManager", "pagination"],
|
|
12
12
|
_excluded3 = ["isExpandable", "style", "className", "data-test-subj"],
|
|
13
13
|
_excluded4 = ["columnId", "columnIndex", "rowIndex", "visibleRowIndex"];
|
|
@@ -45,15 +45,20 @@ var EuiDataGridCellContent = /*#__PURE__*/memo(function (_ref) {
|
|
|
45
45
|
setCellContentsRef = _ref.setCellContentsRef,
|
|
46
46
|
rowIndex = _ref.rowIndex,
|
|
47
47
|
colIndex = _ref.colIndex,
|
|
48
|
-
|
|
48
|
+
rowHeightsOptions = _ref.rowHeightsOptions,
|
|
49
49
|
rowHeightUtils = _ref.rowHeightUtils,
|
|
50
50
|
isControlColumn = _ref.isControlColumn,
|
|
51
51
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
52
52
|
// React is more permissive than the TS types indicate
|
|
53
53
|
var CellElement = renderCellValue;
|
|
54
|
+
|
|
55
|
+
// Cell height type
|
|
56
|
+
var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
|
|
54
57
|
var cellHeightType = useMemo(function () {
|
|
55
|
-
return (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
|
|
56
|
-
}, [rowHeightUtils, rowHeight]);
|
|
58
|
+
return rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeight) ? 'autoBelowLineCount' : (rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getHeightType(rowHeight)) || 'default';
|
|
59
|
+
}, [rowHeightUtils, rowHeight, rowHeightsOptions]);
|
|
60
|
+
|
|
61
|
+
// Classes and styles
|
|
57
62
|
var classes = useMemo(function () {
|
|
58
63
|
return classNames('euiDataGridRowCell__content', "euiDataGridRowCell__content--".concat(cellHeightType, "Height"), !isControlColumn && {
|
|
59
64
|
'eui-textBreakWord': cellHeightType !== 'default',
|
|
@@ -64,9 +69,9 @@ var EuiDataGridCellContent = /*#__PURE__*/memo(function (_ref) {
|
|
|
64
69
|
var cssStyles = [styles.content.euiDataGridRowCell__content].concat(_toConsumableArray(isControlColumn ? [styles.content.controlColumn, styles.content.autoHeight] : [
|
|
65
70
|
// Regular data cells should always inherit height from the row wrapper,
|
|
66
71
|
// except for auto height
|
|
67
|
-
cellHeightType === 'auto' ? styles.content.autoHeight : styles.content.defaultHeight]));
|
|
72
|
+
cellHeightType === 'auto' || cellHeightType === 'autoBelowLineCount' ? styles.content.autoHeight : styles.content.defaultHeight]));
|
|
68
73
|
return ___EmotionJSX(RenderTruncatedCellContent, {
|
|
69
|
-
hasLineCountTruncation: cellHeightType === 'lineCount' && !isControlColumn,
|
|
74
|
+
hasLineCountTruncation: (cellHeightType === 'lineCount' || cellHeightType === 'autoBelowLineCount') && !isControlColumn,
|
|
70
75
|
rowHeight: rowHeight
|
|
71
76
|
}, ___EmotionJSX("div", {
|
|
72
77
|
ref: setCellContentsRef,
|
|
@@ -135,6 +140,9 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
135
140
|
rowHeightsOptions = _this$props3.rowHeightsOptions,
|
|
136
141
|
rowIndex = _this$props3.rowIndex;
|
|
137
142
|
var rowHeightOption = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
|
|
143
|
+
if (rowHeightUtils !== null && rowHeightUtils !== void 0 && rowHeightUtils.isAutoBelowLineCount(rowHeightsOptions, rowHeightOption)) {
|
|
144
|
+
return; // Using auto height instead
|
|
145
|
+
}
|
|
138
146
|
var isSingleLine = rowHeightOption == null; // Undefined rowHeightsOptions default to a single line
|
|
139
147
|
var lineCount = isSingleLine ? 1 : rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getLineCount(rowHeightOption);
|
|
140
148
|
if (lineCount) {
|
|
@@ -439,7 +447,6 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
439
447
|
// column width, can be undefined
|
|
440
448
|
lineHeight: (_rowHeightsOptions$li = rowHeightsOptions === null || rowHeightsOptions === void 0 ? void 0 : rowHeightsOptions.lineHeight) !== null && _rowHeightsOptions$li !== void 0 ? _rowHeightsOptions$li : undefined
|
|
441
449
|
}, cellPropsStyle);
|
|
442
|
-
var rowHeight = rowHeightUtils === null || rowHeightUtils === void 0 ? void 0 : rowHeightUtils.getRowHeightOption(rowIndex, rowHeightsOptions);
|
|
443
450
|
var row = rowManager && !IS_JEST_ENVIRONMENT ? rowManager.getRow({
|
|
444
451
|
rowIndex: rowIndex,
|
|
445
452
|
visibleRowIndex: visibleRowIndex,
|
|
@@ -471,7 +478,7 @@ export var EuiDataGridCell = /*#__PURE__*/function (_Component) {
|
|
|
471
478
|
isExpandable: isExpandable,
|
|
472
479
|
isExpanded: popoverIsOpen,
|
|
473
480
|
setCellContentsRef: this.setCellContentsRef,
|
|
474
|
-
|
|
481
|
+
rowHeightsOptions: rowHeightsOptions,
|
|
475
482
|
rowHeightUtils: rowHeightUtils,
|
|
476
483
|
isControlColumn: isControlColumn,
|
|
477
484
|
rowIndex: rowIndex,
|
|
@@ -70,7 +70,6 @@ export var EuiDataGridBodyCustomRender = /*#__PURE__*/memo(function (_ref) {
|
|
|
70
70
|
*/
|
|
71
71
|
var rowHeightUtils = useRowHeightUtils({
|
|
72
72
|
rowHeightsOptions: rowHeightsOptions,
|
|
73
|
-
gridStyles: gridStyles,
|
|
74
73
|
columns: columns
|
|
75
74
|
});
|
|
76
75
|
var _useDefaultRowHeight = useDefaultRowHeight({
|
|
@@ -211,7 +211,6 @@ export var EuiDataGridBodyVirtualized = /*#__PURE__*/memo(function (_ref3) {
|
|
|
211
211
|
gridItemsRenderedRef: gridItemsRendered
|
|
212
212
|
},
|
|
213
213
|
rowHeightsOptions: rowHeightsOptions,
|
|
214
|
-
gridStyles: gridStyles,
|
|
215
214
|
columns: columns
|
|
216
215
|
});
|
|
217
216
|
var _useDefaultRowHeight = useDefaultRowHeight({
|
|
@@ -12,7 +12,7 @@ export var euiDataGridToolbarStyles = function euiDataGridToolbarStyles(_ref) {
|
|
|
12
12
|
var euiTheme = _ref.euiTheme;
|
|
13
13
|
return {
|
|
14
14
|
euiDataGrid__controls: /*#__PURE__*/css("z-index:2;position:relative;display:flex;justify-content:space-between;align-items:center;gap:", euiTheme.size.base, ";", logicalCSS('padding-vertical', euiTheme.size.xs), " background-color:", euiTheme.colors.emptyShade, ";;label:euiDataGrid__controls;"),
|
|
15
|
-
euiDataGrid__rightControls: /*#__PURE__*/css("display:flex;justify-content:flex-end;flex-wrap:wrap;column-gap:", euiTheme.size.s, ";", logicalCSS('padding-right', euiTheme.size.xs), "&:only-child{", logicalCSS('margin-left', 'auto'), ";};label:euiDataGrid__rightControls;"),
|
|
16
|
-
euiDataGrid__leftControls: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.xxs, ";;label:euiDataGrid__leftControls;")
|
|
15
|
+
euiDataGrid__rightControls: /*#__PURE__*/css("display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;column-gap:", euiTheme.size.s, ";", logicalCSS('padding-right', euiTheme.size.xs), "&:only-child{", logicalCSS('margin-left', 'auto'), ";};label:euiDataGrid__rightControls;"),
|
|
16
|
+
euiDataGrid__leftControls: /*#__PURE__*/css("display:flex;flex-wrap:wrap;align-items:center;gap:", euiTheme.size.xxs, ";;label:euiDataGrid__leftControls;")
|
|
17
17
|
};
|
|
18
18
|
};
|