@elastic/eui 112.3.0 → 113.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/badge/beta_badge/beta_badge.styles.js +1 -1
- package/es/components/badge/color_utils.js +1 -1
- package/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -0
- package/es/components/button/button_display/_button_display.styles.js +3 -3
- package/es/components/button/button_display/_button_display_content.js +6 -1
- package/es/components/button/button_display/_button_display_content.styles.js +6 -1
- package/es/components/button/button_empty/button_empty.js +1 -0
- package/es/components/button/button_empty/button_empty.styles.js +3 -3
- package/es/components/button/button_group/button_group.js +4 -27
- package/es/components/button/button_group/button_group_button.js +4 -27
- package/es/components/code/code_block_annotations.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/es/components/color_picker/color_picker.js +2 -1
- package/es/components/color_picker/color_picker.styles.js +1 -1
- package/es/components/color_picker/hue.styles.js +2 -2
- package/es/components/color_picker/saturation.styles.js +2 -2
- package/es/components/date_picker/auto_refresh/auto_refresh.js +8 -8
- package/es/components/date_picker/date_picker_range.js +12 -2
- package/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +6 -1
- package/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -24
- package/es/components/date_picker/super_date_picker/super_date_picker.js +3 -1
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
- package/es/components/filter_group/filter_button.styles.js +1 -1
- package/es/components/flyout/flyout_body.js +10 -3
- package/es/components/flyout/manager/actions.js +11 -0
- package/es/components/flyout/manager/flyout_managed.js +4 -3
- package/es/components/flyout/manager/index.js +1 -1
- package/es/components/flyout/manager/reducer.js +19 -1
- package/es/components/flyout/manager/store.js +4 -1
- package/es/components/form/field_password/field_password.js +6 -3
- package/es/components/form/form.styles.js +18 -11
- package/es/components/form/form_control_button/form_control_button.js +30 -7
- package/es/components/form/form_control_button/form_control_button.styles.js +5 -2
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +149 -0
- package/es/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +28 -0
- package/es/components/form/form_control_layout/append_prepend/index.js +9 -0
- package/es/components/form/form_control_layout/form_control_layout.js +55 -24
- package/es/components/form/form_control_layout/form_control_layout.styles.js +46 -27
- package/es/components/form/form_control_layout/form_control_layout_context.js +21 -0
- package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +5 -12
- package/es/components/form/form_control_layout/index.js +2 -1
- package/es/components/form/form_label/form_label.js +17 -3
- package/es/components/form/range/range_levels.styles.js +1 -1
- package/es/components/form/range/range_tooltip.styles.js +1 -1
- package/es/components/header/header.styles.js +1 -1
- package/es/components/header/header_links/header_link.js +7 -0
- package/es/components/header/header_section/header_section_item_button.js +7 -0
- package/es/components/icon/icon.styles.js +1 -1
- package/es/components/image/image_caption.styles.js +1 -1
- package/es/components/link/link.styles.js +1 -1
- package/es/components/list_group/list_group_item.styles.js +1 -1
- package/es/components/markdown_editor/markdown_format.styles.js +1 -1
- package/es/components/pagination/pagination_button.js +7 -0
- package/es/components/pagination/pagination_button.styles.js +1 -1
- package/es/components/text/text_color.styles.js +1 -1
- package/es/components/token/token.styles.js +1 -1
- package/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/es/global_styling/mixins/_button.js +7 -2
- package/eui.d.ts +180 -48
- package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -1
- package/lib/components/badge/color_utils.js +1 -1
- package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -0
- package/lib/components/button/button_display/_button_display.styles.js +2 -2
- package/lib/components/button/button_display/_button_display_content.js +6 -1
- package/lib/components/button/button_display/_button_display_content.styles.js +6 -1
- package/lib/components/button/button_empty/button_empty.js +2 -1
- package/lib/components/button/button_empty/button_empty.styles.js +2 -2
- package/lib/components/button/button_group/button_group.js +5 -28
- package/lib/components/button/button_group/button_group_button.js +4 -27
- package/lib/components/code/code_block_annotations.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/lib/components/color_picker/color_picker.js +2 -1
- package/lib/components/color_picker/color_picker.styles.js +1 -1
- package/lib/components/color_picker/hue.styles.js +2 -2
- package/lib/components/color_picker/saturation.styles.js +2 -2
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +8 -8
- package/lib/components/date_picker/date_picker_range.js +12 -2
- package/lib/components/date_picker/date_picker_range.styles.js +1 -1
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
- package/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -23
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +3 -1
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
- package/lib/components/filter_group/filter_button.styles.js +1 -1
- package/lib/components/flyout/flyout_body.js +10 -3
- package/lib/components/flyout/manager/actions.js +12 -1
- package/lib/components/flyout/manager/flyout_managed.js +4 -3
- package/lib/components/flyout/manager/index.js +6 -0
- package/lib/components/flyout/manager/reducer.js +18 -0
- package/lib/components/flyout/manager/store.js +3 -0
- package/lib/components/form/field_password/field_password.js +6 -3
- package/lib/components/form/form.styles.js +19 -12
- package/lib/components/form/form_control_button/form_control_button.js +29 -6
- package/lib/components/form/form_control_button/form_control_button.styles.js +3 -0
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +158 -0
- package/lib/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
- package/lib/components/form/form_control_layout/append_prepend/index.js +18 -0
- package/lib/components/form/form_control_layout/form_control_layout.js +55 -24
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +45 -26
- package/lib/components/form/form_control_layout/form_control_layout_context.js +27 -0
- package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
- package/lib/components/form/form_control_layout/index.js +18 -1
- package/lib/components/form/form_label/form_label.js +17 -3
- package/lib/components/form/range/range_levels.styles.js +1 -1
- package/lib/components/form/range/range_tooltip.styles.js +1 -1
- package/lib/components/header/header.styles.js +1 -1
- package/lib/components/header/header_links/header_link.js +7 -0
- package/lib/components/header/header_section/header_section_item_button.js +7 -0
- package/lib/components/icon/icon.styles.js +1 -1
- package/lib/components/image/image_caption.styles.js +1 -1
- package/lib/components/inline_edit/inline_edit_form.js +1 -1
- package/lib/components/link/link.styles.js +1 -1
- package/lib/components/list_group/list_group_item.styles.js +1 -1
- package/lib/components/markdown_editor/markdown_format.styles.js +1 -1
- package/lib/components/pagination/pagination_button.js +7 -0
- package/lib/components/pagination/pagination_button.styles.js +1 -1
- package/lib/components/text/text_color.styles.js +1 -1
- package/lib/components/token/token.styles.js +1 -1
- package/lib/components/tool_tip/tool_tip.styles.js +1 -1
- package/lib/global_styling/mixins/_button.js +8 -3
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -1
- package/optimize/es/components/badge/color_utils.js +1 -1
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/optimize/es/components/button/button_display/_button_display.js +1 -0
- package/optimize/es/components/button/button_display/_button_display.styles.js +3 -3
- package/optimize/es/components/button/button_display/_button_display_content.js +5 -1
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +6 -1
- package/optimize/es/components/button/button_empty/button_empty.js +1 -0
- package/optimize/es/components/button/button_empty/button_empty.styles.js +3 -3
- package/optimize/es/components/code/code_block_annotations.js +1 -1
- package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/optimize/es/components/color_picker/color_picker.js +2 -1
- package/optimize/es/components/color_picker/color_picker.styles.js +1 -1
- package/optimize/es/components/color_picker/hue.styles.js +2 -2
- package/optimize/es/components/color_picker/saturation.styles.js +2 -2
- package/optimize/es/components/date_picker/auto_refresh/auto_refresh.js +8 -8
- package/optimize/es/components/date_picker/date_picker_range.js +8 -2
- package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +6 -1
- package/optimize/es/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.js +3 -1
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
- package/optimize/es/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/es/components/flyout/flyout_body.js +5 -2
- package/optimize/es/components/flyout/manager/actions.js +11 -0
- package/optimize/es/components/flyout/manager/flyout_managed.js +4 -3
- package/optimize/es/components/flyout/manager/index.js +1 -1
- package/optimize/es/components/flyout/manager/reducer.js +19 -1
- package/optimize/es/components/flyout/manager/store.js +4 -1
- package/optimize/es/components/form/field_password/field_password.js +6 -3
- package/optimize/es/components/form/form.styles.js +18 -11
- package/optimize/es/components/form/form_control_button/form_control_button.js +23 -7
- package/optimize/es/components/form/form_control_button/form_control_button.styles.js +5 -2
- package/optimize/es/components/form/form_control_layout/append_prepend/form_append_prepend.js +102 -0
- package/optimize/es/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +28 -0
- package/optimize/es/components/form/form_control_layout/append_prepend/index.js +9 -0
- package/optimize/es/components/form/form_control_layout/form_control_layout.js +52 -23
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +46 -27
- package/optimize/es/components/form/form_control_layout/form_control_layout_context.js +21 -0
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +5 -12
- package/optimize/es/components/form/form_control_layout/index.js +2 -1
- package/optimize/es/components/form/form_label/form_label.js +9 -2
- package/optimize/es/components/form/range/range_levels.styles.js +1 -1
- package/optimize/es/components/form/range/range_tooltip.styles.js +1 -1
- package/optimize/es/components/header/header.styles.js +1 -1
- package/optimize/es/components/icon/icon.styles.js +1 -1
- package/optimize/es/components/image/image_caption.styles.js +1 -1
- package/optimize/es/components/link/link.styles.js +1 -1
- package/optimize/es/components/list_group/list_group_item.styles.js +1 -1
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +1 -1
- package/optimize/es/components/pagination/pagination_button.styles.js +1 -1
- package/optimize/es/components/text/text_color.styles.js +1 -1
- package/optimize/es/components/token/token.styles.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/optimize/es/global_styling/mixins/_button.js +7 -2
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -1
- package/optimize/lib/components/badge/color_utils.js +1 -1
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/optimize/lib/components/button/button_display/_button_display.js +1 -0
- package/optimize/lib/components/button/button_display/_button_display.styles.js +2 -2
- package/optimize/lib/components/button/button_display/_button_display_content.js +5 -1
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +6 -1
- package/optimize/lib/components/button/button_empty/button_empty.js +1 -0
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +2 -2
- package/optimize/lib/components/code/code_block_annotations.js +1 -1
- package/optimize/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/optimize/lib/components/color_picker/color_picker.js +2 -1
- package/optimize/lib/components/color_picker/color_picker.styles.js +1 -1
- package/optimize/lib/components/color_picker/hue.styles.js +2 -2
- package/optimize/lib/components/color_picker/saturation.styles.js +2 -2
- package/optimize/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -7
- package/optimize/lib/components/date_picker/date_picker_range.js +8 -2
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
- package/optimize/lib/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.js +3 -1
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
- package/optimize/lib/components/filter_group/filter_button.styles.js +1 -1
- package/optimize/lib/components/flyout/flyout_body.js +5 -2
- package/optimize/lib/components/flyout/manager/actions.js +12 -1
- package/optimize/lib/components/flyout/manager/flyout_managed.js +4 -3
- package/optimize/lib/components/flyout/manager/index.js +6 -0
- package/optimize/lib/components/flyout/manager/reducer.js +18 -0
- package/optimize/lib/components/flyout/manager/store.js +3 -0
- package/optimize/lib/components/form/field_password/field_password.js +6 -3
- package/optimize/lib/components/form/form.styles.js +19 -12
- package/optimize/lib/components/form/form_control_button/form_control_button.js +22 -6
- package/optimize/lib/components/form/form_control_button/form_control_button.styles.js +3 -0
- package/optimize/lib/components/form/form_control_layout/append_prepend/form_append_prepend.js +111 -0
- package/optimize/lib/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
- package/optimize/lib/components/form/form_control_layout/append_prepend/index.js +18 -0
- package/optimize/lib/components/form/form_control_layout/form_control_layout.js +52 -23
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +45 -26
- package/optimize/lib/components/form/form_control_layout/form_control_layout_context.js +27 -0
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
- package/optimize/lib/components/form/form_control_layout/index.js +18 -1
- package/optimize/lib/components/form/form_label/form_label.js +9 -2
- package/optimize/lib/components/form/range/range_levels.styles.js +1 -1
- package/optimize/lib/components/form/range/range_tooltip.styles.js +1 -1
- package/optimize/lib/components/header/header.styles.js +1 -1
- package/optimize/lib/components/icon/icon.styles.js +1 -1
- package/optimize/lib/components/image/image_caption.styles.js +1 -1
- package/optimize/lib/components/link/link.styles.js +1 -1
- package/optimize/lib/components/list_group/list_group_item.styles.js +1 -1
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +1 -1
- package/optimize/lib/components/pagination/pagination_button.styles.js +1 -1
- package/optimize/lib/components/text/text_color.styles.js +1 -1
- package/optimize/lib/components/token/token.styles.js +1 -1
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +1 -1
- package/optimize/lib/global_styling/mixins/_button.js +8 -3
- package/package.json +4 -4
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -1
- package/test-env/components/badge/color_utils.js +1 -1
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -0
- package/test-env/components/button/button_display/_button_display.styles.js +2 -2
- package/test-env/components/button/button_display/_button_display_content.js +6 -1
- package/test-env/components/button/button_display/_button_display_content.styles.js +6 -1
- package/test-env/components/button/button_empty/button_empty.js +2 -1
- package/test-env/components/button/button_empty/button_empty.styles.js +2 -2
- package/test-env/components/button/button_group/button_group.js +5 -28
- package/test-env/components/button/button_group/button_group_button.js +4 -27
- package/test-env/components/code/code_block_annotations.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js +1 -1
- package/test-env/components/color_picker/color_picker.js +2 -1
- package/test-env/components/color_picker/color_picker.styles.js +1 -1
- package/test-env/components/color_picker/hue.styles.js +2 -2
- package/test-env/components/color_picker/saturation.styles.js +2 -2
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +8 -8
- package/test-env/components/date_picker/date_picker_range.js +12 -2
- package/test-env/components/date_picker/date_picker_range.styles.js +1 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.styles.js +8 -3
- package/test-env/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.js +9 -21
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +3 -1
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +7 -13
- package/test-env/components/filter_group/filter_button.styles.js +1 -1
- package/test-env/components/flyout/flyout_body.js +10 -3
- package/test-env/components/flyout/manager/actions.js +12 -1
- package/test-env/components/flyout/manager/flyout_managed.js +4 -3
- package/test-env/components/flyout/manager/index.js +6 -0
- package/test-env/components/flyout/manager/reducer.js +18 -0
- package/test-env/components/flyout/manager/store.js +3 -0
- package/test-env/components/form/field_password/field_password.js +6 -3
- package/test-env/components/form/form.styles.js +19 -12
- package/test-env/components/form/form_control_button/form_control_button.js +29 -6
- package/test-env/components/form/form_control_button/form_control_button.styles.js +3 -0
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.js +157 -0
- package/test-env/components/form/form_control_layout/append_prepend/form_append_prepend.styles.js +34 -0
- package/test-env/components/form/form_control_layout/append_prepend/index.js +18 -0
- package/test-env/components/form/form_control_layout/form_control_layout.js +55 -24
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +45 -26
- package/test-env/components/form/form_control_layout/form_control_layout_context.js +27 -0
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +4 -11
- package/test-env/components/form/form_control_layout/index.js +18 -1
- package/test-env/components/form/form_label/form_label.js +17 -3
- package/test-env/components/form/range/range_levels.styles.js +1 -1
- package/test-env/components/form/range/range_tooltip.styles.js +1 -1
- package/test-env/components/header/header.styles.js +1 -1
- package/test-env/components/header/header_links/header_link.js +7 -0
- package/test-env/components/header/header_section/header_section_item_button.js +7 -0
- package/test-env/components/icon/icon.styles.js +1 -1
- package/test-env/components/image/image_caption.styles.js +1 -1
- package/test-env/components/inline_edit/inline_edit_form.js +1 -1
- package/test-env/components/link/link.styles.js +1 -1
- package/test-env/components/list_group/list_group_item.styles.js +1 -1
- package/test-env/components/markdown_editor/markdown_format.styles.js +1 -1
- package/test-env/components/pagination/pagination_button.js +7 -0
- package/test-env/components/pagination/pagination_button.styles.js +1 -1
- package/test-env/components/text/text_color.styles.js +1 -1
- package/test-env/components/token/token.styles.js +1 -1
- package/test-env/components/tool_tip/tool_tip.styles.js +1 -1
- package/test-env/global_styling/mixins/_button.js +8 -3
|
@@ -44,7 +44,7 @@ var getTokenColor = function getTokenColor(euiThemeContext, fill, color) {
|
|
|
44
44
|
};
|
|
45
45
|
var lightColor = isVizColor ? (0, _services.shade)(getIconVisColor(euiTheme, color), 0.3) : iconColor;
|
|
46
46
|
var boxShadowColor = highContrastMode ? iconColor : isDarkMode ? (0, _services.shade)(iconColor, 0.6) : (0, _services.tint)(iconColor, 0.2);
|
|
47
|
-
var darkColor = _services.isColorDark.apply(void 0, _toConsumableArray((0, _chromaJs.default)(backgroundDarkColor).rgb())) ? euiTheme.colors.
|
|
47
|
+
var darkColor = _services.isColorDark.apply(void 0, _toConsumableArray((0, _chromaJs.default)(backgroundDarkColor).rgb())) ? euiTheme.colors.textGhost : euiTheme.colors.textInk;
|
|
48
48
|
switch (fill) {
|
|
49
49
|
case 'none':
|
|
50
50
|
return "\n // Without a background, the fill color should be the graphic color\n color: ".concat(iconColor, ";\n ");
|
|
@@ -39,7 +39,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
|
|
|
39
39
|
var arrowStyles = (0, _popover._popoverArrowStyles)(euiThemeContext, arrowSize);
|
|
40
40
|
return {
|
|
41
41
|
// Base
|
|
42
|
-
euiToolTip: /*#__PURE__*/(0, _react.css)(hasShadow ? (0, _euiThemeCommon.euiShadow)(euiThemeContext) : '', " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.
|
|
42
|
+
euiToolTip: /*#__PURE__*/(0, _react.css)(hasShadow ? (0, _euiThemeCommon.euiShadow)(euiThemeContext) : '', " border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.textGhost, ";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;", (0, _panel.euiPanelBorderStyles)(euiThemeContext), " [class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";};label:euiToolTip;"),
|
|
43
43
|
// Sizes
|
|
44
44
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";;label:s;"),
|
|
45
45
|
// Positions
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.highContrastHoverIndicatorStyles = exports.getEuiFilledButtonColors = exports.getEuiButtonColors = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.SEVERITY_COLORS = exports.EXTENDED_BUTTON_COLORS = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
6
|
+
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.highContrastHoverIndicatorStyles = exports.getEuiFilledButtonColors = exports.getEuiButtonColors = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonDisplaysColors = exports.euiButtonColor = exports.SEVERITY_COLORS = exports.EXTENDED_BUTTON_COLORS = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _services = require("../../services");
|
|
@@ -41,7 +41,7 @@ var getButtonVariantTokenValues = function getButtonVariantTokenValues(_ref, col
|
|
|
41
41
|
var textTokenName = (0, _euiThemeCommon.getTokenName)(textTokenBase, color);
|
|
42
42
|
var backgroundHoverTokenName = (0, _euiThemeCommon.getTokenName)(backgroundTokenBase, color, 'hover');
|
|
43
43
|
var backgroundActiveTokenName = (0, _euiThemeCommon.getTokenName)(backgroundTokenBase, color, 'active');
|
|
44
|
-
var highContrastForeground = ['warning', 'neutral', 'risk'].includes(color) ? euiTheme.colors.
|
|
44
|
+
var highContrastForeground = ['warning', 'neutral', 'risk'].includes(color) ? euiTheme.colors.textInk : color === 'disabled' ? euiTheme.components.buttons[textTokenName] : euiTheme.colors.textInverse;
|
|
45
45
|
var foreground = variant === 'filled' ? highContrastMode ? highContrastForeground : euiTheme.components.buttons[textTokenName] : euiTheme.components.buttons[textTokenName];
|
|
46
46
|
return {
|
|
47
47
|
color: foreground,
|
|
@@ -143,7 +143,7 @@ var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonC
|
|
|
143
143
|
var colorsDisplaysMap = (0, _services.useEuiMemoizedStyles)(euiButtonDisplaysColors);
|
|
144
144
|
return colorsDisplaysMap[display];
|
|
145
145
|
};
|
|
146
|
-
var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
|
|
146
|
+
var euiButtonDisplaysColors = exports.euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
|
|
147
147
|
var euiTheme = euiThemeContext.euiTheme;
|
|
148
148
|
var COLORS = [].concat(_toConsumableArray(EXTENDED_BUTTON_COLORS), ['disabled']);
|
|
149
149
|
var displaysColorsMap = {};
|
|
@@ -209,18 +209,23 @@ var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(euiT
|
|
|
209
209
|
xs: {
|
|
210
210
|
minWidth: euiTheme.base * 6,
|
|
211
211
|
height: euiTheme.size.l,
|
|
212
|
+
padding: (0, _euiThemeCommon.mathWithUnits)(euiTheme.size.m, function (x) {
|
|
213
|
+
return x / 2;
|
|
214
|
+
}),
|
|
212
215
|
radius: euiTheme.border.radius.small,
|
|
213
216
|
fontScale: 'xs'
|
|
214
217
|
},
|
|
215
218
|
s: {
|
|
216
219
|
minWidth: euiTheme.base * 6,
|
|
217
220
|
height: euiTheme.size.xl,
|
|
221
|
+
padding: euiTheme.size.s,
|
|
218
222
|
radius: euiTheme.border.radius.small,
|
|
219
223
|
fontScale: 's'
|
|
220
224
|
},
|
|
221
225
|
m: {
|
|
222
226
|
minWidth: euiTheme.base * 7,
|
|
223
227
|
height: euiTheme.size.xxl,
|
|
228
|
+
padding: euiTheme.size.m,
|
|
224
229
|
radius: euiTheme.border.radius.small,
|
|
225
230
|
fontScale: 's'
|
|
226
231
|
}
|
|
@@ -46,7 +46,7 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
|
46
46
|
};
|
|
47
47
|
return {
|
|
48
48
|
euiBetaBadge: /*#__PURE__*/css("display:inline-block;border-radius:", euiTheme.size.l, ";border:", euiTheme.border.width.thin, " solid transparent;cursor:default;font-weight:", euiTheme.font.weight.semiBold, ";text-transform:uppercase;letter-spacing:0.05em;text-align:center;", euiTextTruncate(), " &:focus{", euiFocusRing(euiThemeContext, 'outset', {
|
|
49
|
-
color: colorMode === 'DARK' ? euiTheme.colors.
|
|
49
|
+
color: colorMode === 'DARK' ? euiTheme.colors.plainLight : euiTheme.colors.plainDark
|
|
50
50
|
}), ";};label:euiBetaBadge;"),
|
|
51
51
|
// Colors
|
|
52
52
|
accent: /*#__PURE__*/css(badgeColors.fill.accent, ";label:accent;"),
|
|
@@ -72,7 +72,7 @@ export var getBadgeColors = function getBadgeColors(euiThemeContext, backgroundC
|
|
|
72
72
|
};
|
|
73
73
|
export var getTextColor = function getTextColor(_ref, bgColor) {
|
|
74
74
|
var euiTheme = _ref.euiTheme;
|
|
75
|
-
var textColor = isColorDark.apply(void 0, _toConsumableArray(chroma(bgColor).rgb())) ? euiTheme.colors.
|
|
75
|
+
var textColor = isColorDark.apply(void 0, _toConsumableArray(chroma(bgColor).rgb())) ? euiTheme.colors.textGhost : euiTheme.colors.textInk;
|
|
76
76
|
return textColor;
|
|
77
77
|
};
|
|
78
78
|
export var getIsValidColor = function getIsValidColor(color) {
|
|
@@ -19,7 +19,7 @@ export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiT
|
|
|
19
19
|
return {
|
|
20
20
|
euiNotificationBadge: /*#__PURE__*/css("flex-shrink:0;display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;", logicalCSS('padding-horizontal', euiTheme.size.xs), " border-radius:", borderRadius, ";", highContrastModeStyles(euiThemeContext, {
|
|
21
21
|
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
|
|
22
|
-
}), " cursor:default;font-size:", euiFontSizeFromScale('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", euiNumberFormat(euiThemeContext), " text-align:center;", euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
|
|
22
|
+
}), " cursor:default;-webkit-text-fill-color:currentColor;font-size:", euiFontSizeFromScale('xs', euiTheme), ";font-weight:", euiTheme.font.weight.medium, ";", euiNumberFormat(euiThemeContext), " text-align:center;", euiCanAnimate, "{transition:all ", euiTheme.animation.fast, " ease-in;};label:euiNotificationBadge;"),
|
|
23
23
|
// Sizes
|
|
24
24
|
s: /*#__PURE__*/css(logicalCSS('height', euiTheme.size.base), " ", logicalCSS('min-width', euiTheme.size.base), ";;label:s;"),
|
|
25
25
|
m: /*#__PURE__*/css(logicalCSS('height', mathWithUnits(euiTheme.size.xs, function (x) {
|
|
@@ -85,6 +85,7 @@ export var EuiButtonDisplay = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
85
85
|
var styles = useEuiMemoizedStyles(euiButtonDisplayStyles);
|
|
86
86
|
var cssStyles = [styles.euiButtonDisplay, styles[size], fullWidth && styles.fullWidth, minWidth == null && [styles.defaultMinWidth.defaultMinWidth, styles.defaultMinWidth[size]], buttonIsDisabled && styles.isDisabled];
|
|
87
87
|
var innerNode = ___EmotionJSX(EuiButtonDisplayContent, _extends({
|
|
88
|
+
size: size,
|
|
88
89
|
isLoading: isLoading,
|
|
89
90
|
isDisabled: buttonIsDisabled,
|
|
90
91
|
iconType: iconType,
|
|
@@ -7,7 +7,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
7
7
|
* Side Public License, v 1.
|
|
8
8
|
*/
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { euiFontSize, logicalCSS,
|
|
10
|
+
import { euiFontSize, logicalCSS, logicalTextAlignCSS } from '../../../global_styling';
|
|
11
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
|
|
@@ -27,11 +27,11 @@ export var euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeCont
|
|
|
27
27
|
var sizes = euiButtonSizeMap(euiThemeContext);
|
|
28
28
|
var _buttonSize = function _buttonSize(sizeKey) {
|
|
29
29
|
var size = sizes[sizeKey];
|
|
30
|
-
return /*#__PURE__*/css(logicalCSS('height', size.height), " line-height:", size.height, ";", euiFontSize(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
|
|
30
|
+
return /*#__PURE__*/css(logicalCSS('height', size.height), " ", logicalCSS('padding-horizontal', size.padding), " line-height:", size.height, ";", euiFontSize(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
|
|
31
31
|
};
|
|
32
32
|
return {
|
|
33
33
|
// Base
|
|
34
|
-
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, "
|
|
34
|
+
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";;label:euiButtonDisplay;"),
|
|
35
35
|
// States
|
|
36
36
|
isDisabled: _ref,
|
|
37
37
|
fullWidth: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), ";;label:fullWidth;"),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "textProps", "isLoading", "isDisabled", "iconType", "iconSize", "iconSide"];
|
|
3
|
+
var _excluded = ["children", "size", "textProps", "isLoading", "isDisabled", "iconType", "iconSize", "iconSide"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -26,6 +26,8 @@ export var ICON_SIDES = ['left', 'right'];
|
|
|
26
26
|
|
|
27
27
|
export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
|
|
28
28
|
var children = _ref.children,
|
|
29
|
+
_ref$size = _ref.size,
|
|
30
|
+
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
29
31
|
textProps = _ref.textProps,
|
|
30
32
|
_ref$isLoading = _ref.isLoading,
|
|
31
33
|
isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading,
|
|
@@ -66,9 +68,11 @@ export var EuiButtonDisplayContent = function EuiButtonDisplayContent(_ref) {
|
|
|
66
68
|
var isText = typeof children === 'string';
|
|
67
69
|
var doNotRenderTextWrapper = textProps === false;
|
|
68
70
|
var renderTextWrapper = (isText || textProps) && !doNotRenderTextWrapper;
|
|
71
|
+
var textWrapperCss = [styles.content[size], textProps && textProps.css];
|
|
69
72
|
return ___EmotionJSX("span", _extends({
|
|
70
73
|
css: styles.euiButtonDisplayContent
|
|
71
74
|
}, contentProps), iconSide === 'left' && icon, renderTextWrapper ? ___EmotionJSX("span", _extends({}, textProps, {
|
|
75
|
+
css: textWrapperCss,
|
|
72
76
|
className: classNames('eui-textTruncate', textProps === null || textProps === void 0 ? void 0 : textProps.className)
|
|
73
77
|
}), children) : children, iconSide === 'right' && icon);
|
|
74
78
|
};
|
|
@@ -11,6 +11,11 @@ export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyle
|
|
|
11
11
|
var euiTheme = euiThemeContext.euiTheme;
|
|
12
12
|
return {
|
|
13
13
|
// Base
|
|
14
|
-
euiButtonDisplayContent: /*#__PURE__*/css("position:relative;", logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.
|
|
14
|
+
euiButtonDisplayContent: /*#__PURE__*/css("position:relative;", logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.xs, ";;label:euiButtonDisplayContent;"),
|
|
15
|
+
content: {
|
|
16
|
+
xs: /*#__PURE__*/css(logicalCSS('padding-horizontal', euiTheme.size.xxs), ";;label:xs;"),
|
|
17
|
+
s: /*#__PURE__*/css(logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:s;"),
|
|
18
|
+
m: /*#__PURE__*/css(logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:m;")
|
|
19
|
+
}
|
|
15
20
|
};
|
|
16
21
|
};
|
|
@@ -80,6 +80,7 @@ export var EuiButtonEmpty = function EuiButtonEmpty(_ref) {
|
|
|
80
80
|
var contentClassNames = classNames('euiButtonEmpty__content', contentProps === null || contentProps === void 0 ? void 0 : contentProps.className);
|
|
81
81
|
var textClassNames = classNames('euiButtonEmpty__text', textProps && textProps.className);
|
|
82
82
|
var innerNode = ___EmotionJSX(EuiButtonDisplayContent, _extends({
|
|
83
|
+
size: size,
|
|
83
84
|
isDisabled: isDisabled,
|
|
84
85
|
isLoading: isLoading,
|
|
85
86
|
iconType: iconType,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { logicalCSS, logicalShorthandCSS,
|
|
10
|
+
import { logicalCSS, logicalShorthandCSS, highContrastModeStyles } from '../../../global_styling';
|
|
11
11
|
import { euiButtonDisplayStyles } from '../button_display/_button_display.styles';
|
|
12
12
|
export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
|
|
13
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -17,7 +17,7 @@ export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext)
|
|
|
17
17
|
// of using the actual component - so we'll reuse its styles instead
|
|
18
18
|
var displayStyles = euiButtonDisplayStyles(euiThemeContext);
|
|
19
19
|
return {
|
|
20
|
-
euiButtonEmpty: /*#__PURE__*/css(displayStyles.euiButtonDisplay, " ", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.s)),
|
|
20
|
+
euiButtonEmpty: /*#__PURE__*/css(displayStyles.euiButtonDisplay, " ", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.s)), ";;label:euiButtonEmpty;"),
|
|
21
21
|
isDisabled: displayStyles.isDisabled,
|
|
22
22
|
// Sizes
|
|
23
23
|
xs: displayStyles.xs,
|
|
@@ -27,7 +27,7 @@ export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext)
|
|
|
27
27
|
// Flush sides
|
|
28
28
|
flush: /*#__PURE__*/css("padding-inline:0;&&:hover,&&:active{background-color:transparent;&::before{display:none;}}&:hover:not(:disabled),&:focus{text-decoration:underline;", highContrastModeStyles(euiThemeContext, {
|
|
29
29
|
forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
|
|
30
|
-
}), ";};label:flush;"),
|
|
30
|
+
}), ";}.euiButtonEmpty__content{gap:", euiTheme.size.s, ";}.euiButtonEmpty__text{padding:0;};label:flush;"),
|
|
31
31
|
left: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.s), ";;label:left;"),
|
|
32
32
|
right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.s), ";;label:right;"),
|
|
33
33
|
both: /*#__PURE__*/css(";label:both;")
|
|
@@ -36,7 +36,7 @@ export var EuiCodeBlockAnnotation = function EuiCodeBlockAnnotation(_ref) {
|
|
|
36
36
|
euiTheme = _useEuiTheme.euiTheme,
|
|
37
37
|
colorMode = _useEuiTheme.colorMode;
|
|
38
38
|
var isDarkMode = colorMode === 'DARK';
|
|
39
|
-
var iconColor = isDarkMode ? euiTheme.colors.
|
|
39
|
+
var iconColor = isDarkMode ? euiTheme.colors.textInk : 'ghost';
|
|
40
40
|
return ___EmotionJSX(EuiPopover, _extends({
|
|
41
41
|
css: styles.euiCodeBlockAnnotation
|
|
42
42
|
}, rest, {
|
package/optimize/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.styles.js
CHANGED
|
@@ -15,7 +15,7 @@ export var euiCollapsibleNavGroupStyles = function euiCollapsibleNavGroupStyles(
|
|
|
15
15
|
// Background colors
|
|
16
16
|
none: /*#__PURE__*/css(";label:none;"),
|
|
17
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.
|
|
18
|
+
dark: /*#__PURE__*/css("background-color:", euiTheme.components.collapsibleNavGroupBackgroundDark, ";.euiCollapsibleNavGroup__title,.euiCollapsibleNavGroup__heading,.euiAccordion__arrow{color:", euiTheme.colors.textGhost, ";};label:dark;"),
|
|
19
19
|
// Header padding
|
|
20
20
|
isCollapsible: /*#__PURE__*/css(".euiAccordion__triggerWrapper{padding:", euiTheme.size.base, ";};label:isCollapsible;"),
|
|
21
21
|
notCollapsible: /*#__PURE__*/css(".euiCollapsibleNavGroup__heading{padding:", euiTheme.size.base, ";};label:notCollapsible;"),
|
|
@@ -406,7 +406,8 @@ export var EuiColorPicker = function EuiColorPicker(_ref) {
|
|
|
406
406
|
append: append,
|
|
407
407
|
isInvalid: isInvalid,
|
|
408
408
|
isDisabled: disabled,
|
|
409
|
-
isDropdown: true
|
|
409
|
+
isDropdown: true,
|
|
410
|
+
inputId: id
|
|
410
411
|
}, ___EmotionJSX(EuiFieldText, {
|
|
411
412
|
className: "euiColorPicker__input",
|
|
412
413
|
onClick: handleInputActivity,
|
|
@@ -20,7 +20,7 @@ export var euiColorPickerStyles = function euiColorPickerStyles(euiThemeContext)
|
|
|
20
20
|
euiColorPicker: /*#__PURE__*/css("position:relative;", logicalCSS('width', colorPickerWidth), "display:flex;flex-direction:column;gap:", euiTheme.size.s, ";;label:euiColorPicker;"),
|
|
21
21
|
euiColorPicker__swatches: /*#__PURE__*/css("display:flex;flex-wrap:wrap;gap:", euiTheme.size.s, ";;label:euiColorPicker__swatches;"),
|
|
22
22
|
// `!important`s required to override default EuiFormControlLayout styles */
|
|
23
|
-
euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), " ", logicalCSS('width', "calc(3ch + ".concat(euiTheme.size.l, ") !important")), " padding-inline:", euiTheme.size.xs, ";}.
|
|
23
|
+
euiColorPicker__alphaRange: /*#__PURE__*/css(".euiRangeInput{", logicalCSS('min-width', 0), " ", logicalCSS('width', "calc(3ch + ".concat(euiTheme.size.l, ") !important")), " padding-inline:", euiTheme.size.xs, ";}.euiFormAppend{padding-inline:0!important;}&>.euiFormControlLayout{flex-shrink:0;};label:euiColorPicker__alphaRange;"),
|
|
24
24
|
// Adds a stroke color for the swatchInput icon. Unlike most EuiIcons it has a stroke in the SVG
|
|
25
25
|
// Targets a custom className applied directly to the <svg> icon
|
|
26
26
|
euiColorPicker__swatchInputIcon: /*#__PURE__*/css(".euiSwatchInput__stroke{fill:none;stroke:", highContrastMode ? euiTheme.colors.fullShade : euiTheme.colors.borderBaseFormsColorSwatch, ";};label:euiColorPicker__swatchInputIcon;")
|
|
@@ -31,10 +31,10 @@ export var euiHueStyles = function euiHueStyles(euiThemeContext) {
|
|
|
31
31
|
})), ";;label:euiHue__tooltip;"),
|
|
32
32
|
euiHue__range: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), "appearance:none;background:transparent;&::-webkit-slider-thumb{-webkit-appearance:none;}", euiRangeThumbPerBrowser("\n ".concat(euiRangeThumbStyle(euiThemeContext), "\n border-width: ").concat(thumbBorder, ";\n\n ").concat(highContrastModeStyles(euiThemeContext, {
|
|
33
33
|
none: "\n background-color: transparent;\n box-shadow: ".concat(thumbBoxShadow, ";\n "),
|
|
34
|
-
preferred: "\n background-color: ".concat(euiTheme.colors.
|
|
34
|
+
preferred: "\n background-color: ".concat(euiTheme.colors.plainLight, ";\n border: ").concat(thumbBorder, " solid ").concat(euiTheme.colors.plainDark, ";\n box-shadow: none;\n ")
|
|
35
35
|
}), "\n ")), "&:focus{outline:none;}", highContrastModeStyles(euiThemeContext, {
|
|
36
36
|
none: "\n &:focus-visible {\n ".concat(euiRangeThumbPerBrowser(euiRangeThumbFocusBoxShadow(euiThemeContext)), "\n }\n "),
|
|
37
|
-
preferred: "\n &:focus {\n ".concat(euiRangeThumbPerBrowser("\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.
|
|
37
|
+
preferred: "\n &:focus {\n ".concat(euiRangeThumbPerBrowser("\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.plainDark, ";\n outline-offset: 0;\n ")), "\n }\n ")
|
|
38
38
|
}), ";;label:euiHue__range;")
|
|
39
39
|
};
|
|
40
40
|
};
|
|
@@ -21,7 +21,7 @@ export var euiSaturationStyles = function euiSaturationStyles(euiThemeContext) {
|
|
|
21
21
|
return {
|
|
22
22
|
euiSaturation: /*#__PURE__*/css("z-index:3;position:relative;aspect-ratio:1/1;", logicalCSS('width', '100%'), " border-radius:", borderRadius, ";touch-action:none;&:focus,&:focus-within{outline:none;.euiSaturation__indicator{", highContrastModeStyles(euiThemeContext, {
|
|
23
23
|
none: "\n outline: none; /* Standardize indicator focus ring */\n box-shadow: 0 0 0 ".concat(euiTheme.focus.width, " ").concat(euiTheme.colors.primary, ";\n border-color: ").concat(euiTheme.colors.primary, ";\n "),
|
|
24
|
-
preferred: "\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.
|
|
24
|
+
preferred: "\n outline: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.plainDark, ";\n outline-offset: 0;\n ")
|
|
25
25
|
}), ";}}", highContrastModeStyles(euiThemeContext, {
|
|
26
26
|
// The border must be in an overlaid pseudo element to not affect the
|
|
27
27
|
// width/height/position of the indicator, or cause border-radius issues
|
|
@@ -33,7 +33,7 @@ export var euiSaturationStyles = function euiSaturationStyles(euiThemeContext) {
|
|
|
33
33
|
euiSaturation__tooltip: /*#__PURE__*/css("z-index:2;position:absolute;", logicalSizeCSS(indicatorSize), " transform:translateX(-50%) translateY(-50%);border-radius:100%;;label:euiSaturation__tooltip;"),
|
|
34
34
|
euiSaturation__indicator: /*#__PURE__*/css("position:absolute;inset:0;", logicalSizeCSS(indicatorSize), " border-radius:100%;", highContrastModeStyles(euiThemeContext, {
|
|
35
35
|
none: "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.darkestShade, ";\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: ").concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.lightestShade, ";\n }\n "),
|
|
36
|
-
preferred: "\n border: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.
|
|
36
|
+
preferred: "\n border: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.plainDark, ";\n background-color: ").concat(euiTheme.colors.plainLight, ";\n ")
|
|
37
37
|
}), ";;label:euiSaturation__indicator;")
|
|
38
38
|
};
|
|
39
39
|
};
|
|
@@ -13,7 +13,7 @@ var _excluded = ["className", "onRefreshChange", "intervalUnits", "isDisabled",
|
|
|
13
13
|
|
|
14
14
|
import React, { useState } from 'react';
|
|
15
15
|
import classNames from 'classnames';
|
|
16
|
-
import { EuiFieldText } from '../../form';
|
|
16
|
+
import { EuiFieldText, EuiFormPrepend } from '../../form';
|
|
17
17
|
import { EuiButtonEmpty } from '../../button/button_empty/button_empty';
|
|
18
18
|
import { EuiInputPopover, EuiPopover } from '../../popover';
|
|
19
19
|
import { useEuiI18n } from '../../i18n';
|
|
@@ -50,18 +50,18 @@ export var EuiAutoRefresh = function EuiAutoRefresh(_ref) {
|
|
|
50
50
|
return !isOpen;
|
|
51
51
|
});
|
|
52
52
|
},
|
|
53
|
-
prepend: ___EmotionJSX(
|
|
53
|
+
prepend: ___EmotionJSX(EuiFormPrepend, {
|
|
54
54
|
className: "euiFormControlLayout__prepend",
|
|
55
|
+
element: "button",
|
|
56
|
+
label: ___EmotionJSX("strong", null, autoRefeshLabel),
|
|
57
|
+
iconLeft: "timeRefresh",
|
|
58
|
+
isDisabled: isDisabled,
|
|
55
59
|
onClick: function onClick() {
|
|
56
60
|
return setIsPopoverOpen(function (isOpen) {
|
|
57
61
|
return !isOpen;
|
|
58
62
|
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
color: "text",
|
|
62
|
-
iconType: "timeRefresh",
|
|
63
|
-
isDisabled: isDisabled
|
|
64
|
-
}, ___EmotionJSX("strong", null, ___EmotionJSX("small", null, autoRefeshLabel))),
|
|
63
|
+
}
|
|
64
|
+
}),
|
|
65
65
|
readOnly: readOnly,
|
|
66
66
|
disabled: isDisabled,
|
|
67
67
|
value: usePrettyInterval(Boolean(isPaused), refreshInterval, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "data-test-subj", "startDateControl", "endDateControl", "iconType", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend", "delimiter"];
|
|
3
|
+
var _excluded = ["children", "className", "data-test-subj", "startDateControl", "endDateControl", "iconType", "iconSide", "inline", "shadow", "fullWidth", "compressed", "isCustom", "readOnly", "isLoading", "isInvalid", "disabled", "onFocus", "onBlur", "append", "prepend", "delimiter"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -23,6 +23,8 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
23
23
|
endDateControl = _ref.endDateControl,
|
|
24
24
|
_ref$iconType = _ref.iconType,
|
|
25
25
|
iconType = _ref$iconType === void 0 ? true : _ref$iconType,
|
|
26
|
+
_ref$iconSide = _ref.iconSide,
|
|
27
|
+
iconSide = _ref$iconSide === void 0 ? 'left' : _ref$iconSide,
|
|
26
28
|
inline = _ref.inline,
|
|
27
29
|
_ref$shadow = _ref.shadow,
|
|
28
30
|
shadow = _ref$shadow === void 0 ? true : _ref$shadow,
|
|
@@ -101,8 +103,12 @@ export var EuiDatePickerRange = function EuiDatePickerRange(_ref) {
|
|
|
101
103
|
if (inline) return undefined;
|
|
102
104
|
if (iconType === false) return undefined;
|
|
103
105
|
if (iconType === true) return 'calendar';
|
|
106
|
+
if (iconType && iconSide) return {
|
|
107
|
+
side: iconSide,
|
|
108
|
+
type: iconType
|
|
109
|
+
};
|
|
104
110
|
return iconType;
|
|
105
|
-
}, [iconType, inline]);
|
|
111
|
+
}, [iconType, iconSide, inline]);
|
|
106
112
|
return ___EmotionJSX("div", _extends({
|
|
107
113
|
className: classes,
|
|
108
114
|
css: cssStyles,
|
|
@@ -13,7 +13,7 @@ import { logicalCSS } from '../../global_styling';
|
|
|
13
13
|
import { disableFormControlHoverStyles } from '../form/form.styles';
|
|
14
14
|
export var euiDatePickerRangeStyles = function euiDatePickerRangeStyles() {
|
|
15
15
|
return {
|
|
16
|
-
euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;}
|
|
16
|
+
euiDatePickerRange: /*#__PURE__*/css(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", logicalCSS('height', '100%'), ";}.euiPopover{flex:1;};label:euiDatePickerRange;")
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -8,7 +8,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
11
|
+
import { euiFontSize, logicalCSS } from '../../../../global_styling';
|
|
12
|
+
import { euiFormControlHoverStyles } from '../../../form/form.styles';
|
|
12
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
13
14
|
name: "170kc3d-now",
|
|
14
15
|
styles: "flex-grow:0.5!important;label:now;"
|
|
@@ -22,4 +23,8 @@ export var euiDatePopoverButtonStyles = function euiDatePopoverButtonStyles(euiT
|
|
|
22
23
|
euiDatePopoverButton: /*#__PURE__*/css(_buttonStyles(euiThemeContext), ";;label:euiDatePopoverButton;"),
|
|
23
24
|
now: _ref
|
|
24
25
|
};
|
|
26
|
+
};
|
|
27
|
+
export var _buttonStyles = function _buttonStyles(euiThemeContext) {
|
|
28
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
29
|
+
return /*#__PURE__*/css(euiFormControlHoverStyles(euiThemeContext), " ", logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:inherit;background-color:inherit;&:disabled{cursor:not-allowed;}");
|
|
25
30
|
};
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
5
4
|
var _excluded = ["applyTime", "buttonProps"],
|
|
6
|
-
_excluded2 = ["
|
|
7
|
-
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; }
|
|
8
|
-
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; }
|
|
5
|
+
_excluded2 = ["onClick"];
|
|
9
6
|
/*
|
|
10
7
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
8
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -17,9 +14,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
14
|
import React, { useState, useCallback, useMemo } from 'react';
|
|
18
15
|
import { useEuiMemoizedStyles } from '../../../../services';
|
|
19
16
|
import { useEuiI18n } from '../../../i18n';
|
|
20
|
-
import { EuiButtonEmpty } from '../../../button';
|
|
21
|
-
import { EuiIcon } from '../../../icon';
|
|
22
17
|
import { EuiPopover } from '../../../popover';
|
|
18
|
+
import { EuiFormPrepend } from '../../../form';
|
|
23
19
|
import { euiQuickSelectPopoverStyles } from './quick_select_popover.styles';
|
|
24
20
|
import { EuiQuickSelectPanel } from './quick_select_panel';
|
|
25
21
|
import { EuiQuickSelect } from './quick_select';
|
|
@@ -32,8 +28,7 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
32
28
|
_ref$buttonProps = _ref.buttonProps,
|
|
33
29
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
34
30
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35
|
-
var
|
|
36
|
-
buttonOnClick = buttonProps.onClick,
|
|
31
|
+
var buttonOnClick = buttonProps.onClick,
|
|
37
32
|
quickSelectButtonProps = _objectWithoutProperties(buttonProps, _excluded2);
|
|
38
33
|
var _useState = useState(),
|
|
39
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -69,27 +64,20 @@ export var EuiQuickSelectPopover = function EuiQuickSelectPopover(_ref) {
|
|
|
69
64
|
}
|
|
70
65
|
}, [_applyTime, closePopover]);
|
|
71
66
|
var buttonlabel = useEuiI18n('euiQuickSelectPopover.buttonLabel', 'Date quick select');
|
|
72
|
-
var styles = useEuiMemoizedStyles(euiQuickSelectPopoverStyles);
|
|
73
67
|
var quickSelectButtonOnClick = function quickSelectButtonOnClick(e) {
|
|
74
68
|
togglePopover();
|
|
75
69
|
buttonOnClick === null || buttonOnClick === void 0 || buttonOnClick(e);
|
|
76
70
|
};
|
|
77
|
-
var quickSelectButton = ___EmotionJSX(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
var quickSelectButton = ___EmotionJSX(EuiFormPrepend, _extends({
|
|
72
|
+
element: "button",
|
|
73
|
+
iconLeft: "calendar",
|
|
74
|
+
iconRight: "arrowDown",
|
|
75
|
+
isDisabled: props.isDisabled,
|
|
82
76
|
onClick: quickSelectButtonOnClick,
|
|
83
77
|
"aria-label": buttonlabel,
|
|
84
78
|
title: buttonlabel,
|
|
85
|
-
size: "xs",
|
|
86
|
-
iconType: "arrowDown",
|
|
87
|
-
iconSide: "right",
|
|
88
|
-
isDisabled: props.isDisabled,
|
|
89
79
|
"data-test-subj": "superDatePickerToggleQuickMenuButton"
|
|
90
|
-
}, quickSelectButtonProps)
|
|
91
|
-
type: "calendar"
|
|
92
|
-
}));
|
|
80
|
+
}, quickSelectButtonProps));
|
|
93
81
|
return ___EmotionJSX(EuiPopover, {
|
|
94
82
|
button: quickSelectButton,
|
|
95
83
|
isOpen: isOpen,
|
|
@@ -336,12 +336,14 @@ export var EuiSuperDatePickerInternal = /*#__PURE__*/function (_Component) {
|
|
|
336
336
|
var rangeProps = _objectSpread(_objectSpread({}, _rangeProps), {}, {
|
|
337
337
|
disabled: formControlLayoutProps.isDisabled
|
|
338
338
|
});
|
|
339
|
+
var hasChangedIcon = hasChanged && !isInvalid;
|
|
339
340
|
return ___EmotionJSX(EuiI18nConsumer, null, function (_ref4) {
|
|
340
341
|
var contextLocale = _ref4.locale;
|
|
341
342
|
return ___EmotionJSX(EuiDatePickerRange, _extends({}, rangeProps, {
|
|
342
343
|
css: rangeCssStyles,
|
|
343
344
|
isCustom: true,
|
|
344
|
-
iconType: false,
|
|
345
|
+
iconType: hasChangedIcon ? 'checkCircle' : false,
|
|
346
|
+
iconSide: hasChangedIcon ? 'right' : undefined,
|
|
345
347
|
delimiter: isQuickSelectOnly ? '' : undefined,
|
|
346
348
|
startDateControl: isQuickSelectOnly ? undefined : ___EmotionJSX(EuiDatePopoverButton, {
|
|
347
349
|
css: styles.euiSuperDatePicker__rangeInput,
|
|
@@ -8,8 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
|
-
import {
|
|
12
|
-
import { euiFontSize, euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
11
|
+
import { euiMaxBreakpoint, logicalCSS, mathWithUnits } from '../../../global_styling';
|
|
13
12
|
import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
|
|
14
13
|
import { euiFormVariables, euiFormControlDefaultShadow, euiFormControlInvalidStyles, euiFormControlDisabledStyles, euiFormControlFocusStyles, euiFormControlHighlightBorderStyles } from '../../form/form.styles';
|
|
15
14
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -39,8 +38,7 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
39
38
|
});
|
|
40
39
|
|
|
41
40
|
// Needs updating colors
|
|
42
|
-
var
|
|
43
|
-
var needsUpdatingTextColor = makeHighContrastColor(euiTheme.colors.success)(needsUpdatingBackgroundColor);
|
|
41
|
+
var needsUpdatingTextColor = euiTheme.colors.textSuccess;
|
|
44
42
|
return {
|
|
45
43
|
euiSuperDatePicker: /*#__PURE__*/css("display:flex;gap:", gap, ";", logicalCSS('max-width', '100%'), " ", euiMaxBreakpoint(euiThemeContext, 'm'), "{", logicalCSS('width', '100%'), ";};label:euiSuperDatePicker;"),
|
|
46
44
|
widths: {
|
|
@@ -68,21 +66,17 @@ export var euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiTheme
|
|
|
68
66
|
euiSuperDatePicker__prettyDurationTooltip: /*#__PURE__*/css(logicalCSS('max-width', 'min(58ch, 90vw)'), ";;label:euiSuperDatePicker__prettyDurationTooltip;"),
|
|
69
67
|
// Form states
|
|
70
68
|
states: {
|
|
71
|
-
euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{
|
|
72
|
-
none: "\n
|
|
69
|
+
euiSuperDatePicker__formControlLayout: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", highContrastModeStyles(euiThemeContext, {
|
|
70
|
+
none: "\n box-shadow: none;\n ",
|
|
73
71
|
preferred: 'border: none;'
|
|
74
|
-
}), ".euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover{outline:none;}.euiPopover{border-radius:", forms.controlBorderRadius, "
|
|
72
|
+
}), ".euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover{outline:none;}.euiPopover{border-radius:", forms.controlBorderRadius, ";}.euiDatePopoverButton{background-color:transparent;border-radius:inherit;}};label:euiSuperDatePicker__formControlLayout;"),
|
|
75
73
|
default: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:default;"),
|
|
76
74
|
disabled: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{", euiFormControlDisabledStyles(euiThemeContext), ";};label:disabled;"),
|
|
77
|
-
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, "
|
|
78
|
-
needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateColor:", euiTheme.colors.success, ";--euiFormControlStateHoverColor:", euiTheme.colors.success, ";--euiFormControlStateWidth:", euiTheme.border.width.thin, ";color:", needsUpdatingTextColor, ";
|
|
75
|
+
invalid: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";&:has(.euiPopover-isOpen, .euiDatePopoverButton:focus){--euiFormControlStateColor:transparent;--euiFormControlStateHoverColor:transparent;}&:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)){", euiFormControlInvalidStyles(euiThemeContext), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";}};label:invalid;"),
|
|
76
|
+
needsUpdating: /*#__PURE__*/css(".euiFormControlLayout__childrenWrapper{--euiFormControlStateColor:", euiTheme.colors.success, ";--euiFormControlStateHoverColor:", euiTheme.colors.success, ";--euiFormControlStateWidth:", euiTheme.border.width.thin, ";color:", needsUpdatingTextColor, ";", euiFormControlHighlightBorderStyles, " &:has(.euiPopover-isOpen, .euiDatePopoverButton:focus){--euiFormControlStateColor:transparent;--euiFormControlStateHoverColor:transparent;}&:has(.euiPopover-isOpen),&:focus-within{--euiFormControlStateColor:", forms.borderColor, ";--euiFormControlStateHoverColor:", forms.borderHovered, ";}}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", euiFormControlDefaultShadow(euiThemeContext, {
|
|
79
77
|
withBorder: false,
|
|
80
78
|
withBackgroundColor: false
|
|
81
79
|
}), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", euiFormControlFocusStyles(euiThemeContext), ";};label:needsUpdating;")
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
|
-
};
|
|
85
|
-
export var _buttonStyles = function _buttonStyles(euiThemeContext) {
|
|
86
|
-
var euiTheme = euiThemeContext.euiTheme;
|
|
87
|
-
return /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " ", logicalCSS('padding-horizontal', euiTheme.size.s), " font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:inherit;background-color:inherit;&:disabled{cursor:not-allowed;}");
|
|
88
82
|
};
|
|
@@ -98,7 +98,7 @@ export var euiFilterButtonChildStyles = function euiFilterButtonChildStyles(euiT
|
|
|
98
98
|
hasIcon: /*#__PURE__*/css("&>.euiIcon:last-child{", logicalCSS('margin-left', 'auto'), ";};label:hasIcon;")
|
|
99
99
|
},
|
|
100
100
|
text: {
|
|
101
|
-
euiFilterButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), ";;label:euiFilterButton__text;"),
|
|
101
|
+
euiFilterButton__text: /*#__PURE__*/css(euiTextShift('bold', 'data-text', euiTheme), " ", euiTextTruncate(), " ", logicalCSS('padding-horizontal', euiTheme.size.xs), ";;label:euiFilterButton__text;"),
|
|
102
102
|
hasNotification: /*#__PURE__*/css(logicalCSS('min-width', mathWithUnits(euiTheme.size.base, function (x) {
|
|
103
103
|
return x * 2;
|
|
104
104
|
})), ";;label:hasNotification;")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["children", "className", "banner", "scrollableTabIndex"];
|
|
3
|
+
var _excluded = ["children", "className", "banner", "scrollableTabIndex", "scrollContainerRef"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,6 +20,7 @@ export var EuiFlyoutBody = function EuiFlyoutBody(_ref) {
|
|
|
20
20
|
banner = _ref.banner,
|
|
21
21
|
_ref$scrollableTabInd = _ref.scrollableTabIndex,
|
|
22
22
|
scrollableTabIndex = _ref$scrollableTabInd === void 0 ? 0 : _ref$scrollableTabInd,
|
|
23
|
+
scrollContainerRef = _ref.scrollContainerRef,
|
|
23
24
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
24
25
|
var classes = classNames('euiFlyoutBody', className);
|
|
25
26
|
var styles = useEuiMemoizedStyles(euiFlyoutBodyStyles);
|
|
@@ -30,7 +31,9 @@ export var EuiFlyoutBody = function EuiFlyoutBody(_ref) {
|
|
|
30
31
|
}, rest), ___EmotionJSX("div", {
|
|
31
32
|
tabIndex: scrollableTabIndex,
|
|
32
33
|
className: "euiFlyoutBody__overflow",
|
|
33
|
-
css: overflowCssStyles
|
|
34
|
+
css: overflowCssStyles,
|
|
35
|
+
ref: scrollContainerRef,
|
|
36
|
+
"data-test-subj": "euiFlyoutBodyOverflow"
|
|
34
37
|
}, banner && ___EmotionJSX("div", {
|
|
35
38
|
className: "euiFlyoutBody__banner",
|
|
36
39
|
css: styles.euiFlyoutBody__banner
|