@elastic/eui 107.0.1 → 108.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 -3
- package/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/es/components/button/button_display/_button_display.styles.js +1 -4
- package/es/components/button/button_display/_button_display_content.styles.js +1 -4
- package/es/components/button/button_empty/button_empty.styles.js +4 -7
- package/es/components/button/button_group/button_group.styles.js +2 -12
- package/es/components/button/button_group/button_group_button.js +2 -4
- package/es/components/button/button_group/button_group_button.styles.js +22 -36
- package/es/components/button/button_icon/button_icon.js +3 -6
- package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
- package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/es/components/datagrid/controls/column_selector.styles.js +1 -1
- package/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
- package/es/components/datagrid/data_grid.styles.js +0 -1
- package/es/components/date_picker/date_picker.styles.js +1 -4
- package/es/components/date_picker/date_picker_range.styles.js +4 -8
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
- package/es/components/filter_group/filter_button.js +7 -10
- package/es/components/filter_group/filter_button.styles.js +28 -39
- package/es/components/filter_group/filter_group.styles.js +8 -29
- package/es/components/form/field_number/field_number.styles.js +1 -4
- package/es/components/form/field_text/field_text.styles.js +1 -4
- package/es/components/form/file_picker/file_picker.js +102 -107
- package/es/components/form/file_picker/file_picker.styles.js +5 -7
- package/es/components/form/form.styles.js +17 -40
- package/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
- package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
- package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
- package/es/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/es/components/form/form_label/form_label.js +1 -1
- package/es/components/form/form_label/form_label.styles.js +1 -5
- package/es/components/form/range/range_input.styles.js +1 -3
- package/es/components/header/header.styles.js +4 -19
- package/es/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/es/components/modal/modal.js +23 -5
- package/es/components/panel/panel.styles.js +4 -12
- package/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
- package/es/components/toast/toast.styles.js +1 -3
- package/es/components/token/token.js +1 -3
- package/es/components/token/token.styles.js +2 -3
- package/es/components/token/token_map.js +1 -231
- package/es/global_styling/mixins/_button.js +14 -24
- package/es/index.js +0 -1
- package/es/services/color/eui_palettes.js +7 -21
- package/es/services/color/eui_palettes_hooks.js +6 -10
- package/es/services/color/vis_color_store.js +2 -2
- package/es/services/theme/provider.js +4 -9
- package/eui.d.ts +19 -2102
- package/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/lib/components/button/button_display/_button_display.styles.js +1 -4
- package/lib/components/button/button_display/_button_display_content.styles.js +1 -4
- package/lib/components/button/button_empty/button_empty.styles.js +4 -7
- package/lib/components/button/button_group/button_group.styles.js +2 -12
- package/lib/components/button/button_group/button_group_button.js +1 -3
- package/lib/components/button/button_group/button_group_button.styles.js +21 -35
- package/lib/components/button/button_icon/button_icon.js +1 -4
- package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/lib/components/datagrid/controls/column_selector.styles.js +2 -2
- package/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/lib/components/datagrid/data_grid.styles.js +0 -1
- package/lib/components/date_picker/date_picker.styles.js +1 -4
- package/lib/components/date_picker/date_picker_range.styles.js +4 -8
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/lib/components/filter_group/filter_button.js +6 -9
- package/lib/components/filter_group/filter_button.styles.js +27 -38
- package/lib/components/filter_group/filter_group.styles.js +8 -29
- package/lib/components/form/field_number/field_number.styles.js +1 -4
- package/lib/components/form/field_text/field_text.styles.js +1 -4
- package/lib/components/form/file_picker/file_picker.js +101 -106
- package/lib/components/form/file_picker/file_picker.styles.js +5 -7
- package/lib/components/form/form.styles.js +16 -39
- package/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/lib/components/form/form_label/form_label.js +1 -1
- package/lib/components/form/form_label/form_label.styles.js +1 -5
- package/lib/components/form/range/range_input.styles.js +1 -3
- package/lib/components/header/header.styles.js +2 -18
- package/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/lib/components/modal/modal.js +25 -5
- package/lib/components/panel/panel.styles.js +4 -12
- package/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/lib/components/toast/toast.styles.js +1 -3
- package/lib/components/token/token.js +1 -3
- package/lib/components/token/token.styles.js +1 -2
- package/lib/components/token/token_map.js +2 -232
- package/lib/global_styling/mixins/_button.js +11 -21
- package/lib/index.js +0 -11
- package/lib/services/color/eui_palettes.js +7 -21
- package/lib/services/color/eui_palettes_hooks.js +6 -10
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/provider.js +4 -9
- package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/optimize/es/components/button/button_display/_button_display.styles.js +1 -4
- package/optimize/es/components/button/button_display/_button_display_content.styles.js +1 -4
- package/optimize/es/components/button/button_empty/button_empty.styles.js +4 -7
- package/optimize/es/components/button/button_group/button_group.styles.js +2 -12
- package/optimize/es/components/button/button_group/button_group_button.js +2 -4
- package/optimize/es/components/button/button_group/button_group_button.styles.js +22 -36
- package/optimize/es/components/button/button_icon/button_icon.js +3 -6
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +1 -1
- package/optimize/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +62 -65
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/optimize/es/components/datagrid/controls/column_selector.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/column_sorting.styles.js +1 -1
- package/optimize/es/components/datagrid/controls/data_grid_toolbar_control.js +2 -15
- package/optimize/es/components/datagrid/data_grid.styles.js +0 -1
- package/optimize/es/components/date_picker/date_picker.styles.js +1 -4
- package/optimize/es/components/date_picker/date_picker_range.styles.js +4 -8
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +12 -26
- package/optimize/es/components/filter_group/filter_button.js +7 -10
- package/optimize/es/components/filter_group/filter_button.styles.js +28 -39
- package/optimize/es/components/filter_group/filter_group.styles.js +8 -29
- package/optimize/es/components/form/field_number/field_number.styles.js +1 -4
- package/optimize/es/components/form/field_text/field_text.styles.js +1 -4
- package/optimize/es/components/form/file_picker/file_picker.js +102 -107
- package/optimize/es/components/form/file_picker/file_picker.styles.js +5 -7
- package/optimize/es/components/form/form.styles.js +17 -40
- package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +9 -22
- package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +6 -8
- package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +25 -47
- package/optimize/es/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/optimize/es/components/form/form_label/form_label.js +1 -1
- package/optimize/es/components/form/form_label/form_label.styles.js +1 -5
- package/optimize/es/components/form/range/range_input.styles.js +1 -3
- package/optimize/es/components/header/header.styles.js +4 -19
- package/optimize/es/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/optimize/es/components/modal/modal.js +17 -4
- package/optimize/es/components/panel/panel.styles.js +4 -12
- package/optimize/es/components/resizable_container/resizable_collapse_button.js +2 -3
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +4 -5
- package/optimize/es/components/toast/toast.styles.js +1 -3
- package/optimize/es/components/token/token.js +1 -3
- package/optimize/es/components/token/token.styles.js +2 -3
- package/optimize/es/components/token/token_map.js +1 -231
- package/optimize/es/global_styling/mixins/_button.js +14 -24
- package/optimize/es/index.js +0 -1
- package/optimize/es/services/color/eui_palettes.js +7 -21
- package/optimize/es/services/color/eui_palettes_hooks.js +6 -10
- package/optimize/es/services/color/vis_color_store.js +2 -2
- package/optimize/es/services/theme/provider.js +4 -9
- package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/optimize/lib/components/button/button_display/_button_display.styles.js +1 -4
- package/optimize/lib/components/button/button_display/_button_display_content.styles.js +1 -4
- package/optimize/lib/components/button/button_empty/button_empty.styles.js +4 -7
- package/optimize/lib/components/button/button_group/button_group.styles.js +2 -12
- package/optimize/lib/components/button/button_group/button_group_button.js +1 -3
- package/optimize/lib/components/button/button_group/button_group_button.styles.js +21 -35
- package/optimize/lib/components/button/button_icon/button_icon.js +1 -4
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/optimize/lib/components/datagrid/controls/column_selector.styles.js +2 -2
- package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/optimize/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/optimize/lib/components/datagrid/data_grid.styles.js +0 -1
- package/optimize/lib/components/date_picker/date_picker.styles.js +1 -4
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +4 -8
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/optimize/lib/components/filter_group/filter_button.js +6 -9
- package/optimize/lib/components/filter_group/filter_button.styles.js +27 -38
- package/optimize/lib/components/filter_group/filter_group.styles.js +8 -29
- package/optimize/lib/components/form/field_number/field_number.styles.js +1 -4
- package/optimize/lib/components/form/field_text/field_text.styles.js +1 -4
- package/optimize/lib/components/form/file_picker/file_picker.js +101 -106
- package/optimize/lib/components/form/file_picker/file_picker.styles.js +5 -7
- package/optimize/lib/components/form/form.styles.js +16 -39
- package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/optimize/lib/components/form/form_label/form_label.js +1 -1
- package/optimize/lib/components/form/form_label/form_label.styles.js +1 -5
- package/optimize/lib/components/form/range/range_input.styles.js +1 -3
- package/optimize/lib/components/header/header.styles.js +2 -18
- package/optimize/lib/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/optimize/lib/components/modal/modal.js +20 -4
- package/optimize/lib/components/panel/panel.styles.js +4 -12
- package/optimize/lib/components/resizable_container/resizable_collapse_button.js +1 -2
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/optimize/lib/components/toast/toast.styles.js +1 -3
- package/optimize/lib/components/token/token.js +1 -3
- package/optimize/lib/components/token/token.styles.js +1 -2
- package/optimize/lib/components/token/token_map.js +2 -232
- package/optimize/lib/global_styling/mixins/_button.js +11 -21
- package/optimize/lib/index.js +0 -11
- package/optimize/lib/services/color/eui_palettes.js +7 -21
- package/optimize/lib/services/color/eui_palettes_hooks.js +6 -10
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/provider.js +4 -9
- package/package.json +5 -6
- package/test-env/components/badge/beta_badge/beta_badge.styles.js +1 -3
- package/test-env/components/badge/notification_badge/badge_notification.styles.js +2 -4
- package/test-env/components/button/button_display/_button_display.styles.js +1 -4
- package/test-env/components/button/button_display/_button_display_content.styles.js +1 -4
- package/test-env/components/button/button_empty/button_empty.styles.js +4 -7
- package/test-env/components/button/button_group/button_group.styles.js +2 -12
- package/test-env/components/button/button_group/button_group_button.js +1 -3
- package/test-env/components/button/button_group/button_group_button.styles.js +21 -35
- package/test-env/components/button/button_icon/button_icon.js +1 -4
- package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.styles.js +1 -4
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +61 -64
- package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +2 -4
- package/test-env/components/datagrid/controls/column_selector.styles.js +2 -2
- package/test-env/components/datagrid/controls/column_sorting.styles.js +2 -2
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -14
- package/test-env/components/datagrid/data_grid.styles.js +0 -1
- package/test-env/components/date_picker/date_picker.styles.js +1 -4
- package/test-env/components/date_picker/date_picker_range.styles.js +4 -8
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +10 -24
- package/test-env/components/filter_group/filter_button.js +6 -9
- package/test-env/components/filter_group/filter_button.styles.js +27 -38
- package/test-env/components/filter_group/filter_group.styles.js +8 -29
- package/test-env/components/form/field_number/field_number.styles.js +1 -4
- package/test-env/components/form/field_text/field_text.styles.js +1 -4
- package/test-env/components/form/file_picker/file_picker.js +101 -106
- package/test-env/components/form/file_picker/file_picker.styles.js +5 -7
- package/test-env/components/form/form.styles.js +16 -39
- package/test-env/components/form/form_control_layout/form_control_layout.styles.js +8 -21
- package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +1 -3
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +5 -7
- package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +12 -25
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +24 -46
- package/test-env/components/form/form_error_text/form_error_text.styles.js +1 -3
- package/test-env/components/form/form_label/form_label.js +1 -1
- package/test-env/components/form/form_label/form_label.styles.js +1 -5
- package/test-env/components/form/range/range_input.styles.js +1 -3
- package/test-env/components/header/header.styles.js +2 -18
- package/test-env/components/header/header_section/header_section_item_button.styles.js +4 -6
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +5 -9
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +3 -5
- package/test-env/components/modal/modal.js +26 -5
- package/test-env/components/panel/panel.styles.js +4 -12
- package/test-env/components/resizable_container/resizable_collapse_button.js +1 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +3 -4
- package/test-env/components/toast/toast.styles.js +1 -3
- package/test-env/components/token/token.js +1 -3
- package/test-env/components/token/token.styles.js +1 -2
- package/test-env/components/token/token_map.js +2 -232
- package/test-env/global_styling/mixins/_button.js +11 -21
- package/test-env/index.js +0 -11
- package/test-env/services/breakpoint/current_breakpoint_hook.js +1 -1
- package/test-env/services/color/eui_palettes.js +7 -21
- package/test-env/services/color/eui_palettes_hooks.js +6 -10
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/provider.js +4 -9
- package/dist/eui_theme_amsterdam_dark.json +0 -463
- package/dist/eui_theme_amsterdam_dark.json.d.ts +0 -466
- package/dist/eui_theme_amsterdam_light.json +0 -463
- package/dist/eui_theme_amsterdam_light.json.d.ts +0 -466
- package/dist/eui_theme_borealis_dark.json +0 -463
- package/dist/eui_theme_borealis_dark.json.d.ts +0 -466
- package/dist/eui_theme_borealis_light.json +0 -463
- package/dist/eui_theme_borealis_light.json.d.ts +0 -466
- package/es/themes/amsterdam/global_styling/functions/index.js +0 -9
- package/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
- package/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
- package/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
- package/es/themes/amsterdam/global_styling/variables/_animation.js +0 -26
- package/es/themes/amsterdam/global_styling/variables/_borders.js +0 -49
- package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
- package/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -529
- package/es/themes/amsterdam/global_styling/variables/_colors.js +0 -797
- package/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
- package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -33
- package/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
- package/es/themes/amsterdam/global_styling/variables/_components.js +0 -724
- package/es/themes/amsterdam/global_styling/variables/_forms.js +0 -204
- package/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
- package/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -439
- package/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
- package/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
- package/es/themes/amsterdam/global_styling/variables/_typography.js +0 -66
- package/es/themes/amsterdam/index.js +0 -10
- package/es/themes/amsterdam/theme.js +0 -41
- package/es/themes/index.js +0 -12
- package/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/es/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/es/themes/json/eui_theme_borealis_dark.json +0 -463
- package/es/themes/json/eui_theme_borealis_light.json +0 -463
- package/es/themes/themes.js +0 -1
- package/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -32
- package/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -53
- package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -533
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -800
- package/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -37
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/lib/themes/amsterdam/global_styling/variables/_components.js +0 -728
- package/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -208
- package/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -442
- package/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -70
- package/lib/themes/amsterdam/index.js +0 -16
- package/lib/themes/amsterdam/theme.js +0 -47
- package/lib/themes/index.js +0 -57
- package/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/lib/themes/json/eui_theme_borealis_dark.json +0 -463
- package/lib/themes/json/eui_theme_borealis_light.json +0 -463
- package/lib/themes/themes.js +0 -5
- package/optimize/es/themes/amsterdam/global_styling/functions/index.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/mixins/button.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/mixins/index.js +0 -10
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/variables/_animation.js +0 -23
- package/optimize/es/themes/amsterdam/global_styling/variables/_borders.js +0 -44
- package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -9
- package/optimize/es/themes/amsterdam/global_styling/variables/_buttons.js +0 -518
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +0 -789
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -21
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -30
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -125
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +0 -716
- package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +0 -196
- package/optimize/es/themes/amsterdam/global_styling/variables/_levels.js +0 -19
- package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +0 -436
- package/optimize/es/themes/amsterdam/global_styling/variables/_size.js +0 -23
- package/optimize/es/themes/amsterdam/global_styling/variables/_states.js +0 -26
- package/optimize/es/themes/amsterdam/global_styling/variables/_typography.js +0 -58
- package/optimize/es/themes/amsterdam/index.js +0 -10
- package/optimize/es/themes/amsterdam/theme.js +0 -41
- package/optimize/es/themes/index.js +0 -12
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +0 -463
- package/optimize/es/themes/json/eui_theme_borealis_light.json +0 -463
- package/optimize/es/themes/themes.js +0 -1
- package/optimize/lib/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/optimize/lib/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/optimize/lib/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_animation.js +0 -30
- package/optimize/lib/themes/amsterdam/global_styling/variables/_borders.js +0 -51
- package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/optimize/lib/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +0 -793
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +0 -721
- package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +0 -201
- package/optimize/lib/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
- package/optimize/lib/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/optimize/lib/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/optimize/lib/themes/amsterdam/global_styling/variables/_typography.js +0 -63
- package/optimize/lib/themes/amsterdam/index.js +0 -16
- package/optimize/lib/themes/amsterdam/theme.js +0 -47
- package/optimize/lib/themes/index.js +0 -57
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +0 -463
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +0 -463
- package/optimize/lib/themes/themes.js +0 -5
- package/package/eui.d.ts +0 -33359
- package/src/global_styling/functions/_colors.scss +0 -138
- package/src/global_styling/functions/_index.scss +0 -1
- package/src/global_styling/functions/_math.scss +0 -1
- package/src/global_styling/functions/_math_pow.scss +0 -82
- package/src/global_styling/index.scss +0 -3
- package/src/global_styling/mixins/_helpers.scss +0 -117
- package/src/global_styling/mixins/_index.scss +0 -8
- package/src/global_styling/mixins/_responsive.scss +0 -44
- package/src/global_styling/mixins/_shadow.scss +0 -100
- package/src/global_styling/mixins/_size.scss +0 -4
- package/src/global_styling/mixins/_states.scss +0 -17
- package/src/global_styling/mixins/_tool_tip.scss +0 -18
- package/src/global_styling/mixins/_typography.scss +0 -166
- package/src/global_styling/variables/_animations.scss +0 -6
- package/src/global_styling/variables/_borders.scss +0 -3
- package/src/global_styling/variables/_buttons.scss +0 -1
- package/src/global_styling/variables/_font_weight.scss +0 -4
- package/src/global_styling/variables/_form.scss +0 -2
- package/src/global_styling/variables/_index.scss +0 -22
- package/src/global_styling/variables/_responsive.scss +0 -1
- package/src/global_styling/variables/_shadows.scss +0 -2
- package/src/global_styling/variables/_size.scss +0 -1
- package/src/global_styling/variables/_states.scss +0 -1
- package/src/global_styling/variables/_typography.scss +0 -1
- package/src/global_styling/variables/_z_index.scss +0 -2
- package/src/themes/amsterdam/_colors_dark.scss +0 -139
- package/src/themes/amsterdam/_colors_light.scss +0 -139
- package/src/themes/amsterdam/_globals.scss +0 -11
- package/src/themes/amsterdam/global_styling/index.scss +0 -12
- package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -10
- package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +0 -100
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -41
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +0 -81
- package/src/themes/amsterdam/global_styling/variables/_colors_severity.scss +0 -9
- package/src/themes/amsterdam/global_styling/variables/_colors_vis.scss +0 -72
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +0 -14
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +0 -14
- package/src/themes/amsterdam/global_styling/variables/_forms.scss +0 -12
- package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -8
- package/src/themes/amsterdam/global_styling/variables/_shadows.scss +0 -20
- package/src/themes/amsterdam/global_styling/variables/_states.scss +0 -11
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +0 -64
- package/src/themes/amsterdam/theme_dark.scss +0 -5
- package/src/themes/amsterdam/theme_light.scss +0 -5
- package/test-env/themes/amsterdam/global_styling/functions/index.js +0 -16
- package/test-env/themes/amsterdam/global_styling/functions/shadows.js +0 -12
- package/test-env/themes/amsterdam/global_styling/mixins/button.js +0 -54
- package/test-env/themes/amsterdam/global_styling/mixins/index.js +0 -27
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +0 -16
- package/test-env/themes/amsterdam/global_styling/variables/_animation.js +0 -30
- package/test-env/themes/amsterdam/global_styling/variables/_borders.js +0 -51
- package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +0 -12
- package/test-env/themes/amsterdam/global_styling/variables/_buttons.js +0 -523
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +0 -793
- package/test-env/themes/amsterdam/global_styling/variables/_colors_severity.js +0 -27
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +0 -35
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js +0 -130
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +0 -721
- package/test-env/themes/amsterdam/global_styling/variables/_forms.js +0 -201
- package/test-env/themes/amsterdam/global_styling/variables/_levels.js +0 -25
- package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +0 -440
- package/test-env/themes/amsterdam/global_styling/variables/_size.js +0 -29
- package/test-env/themes/amsterdam/global_styling/variables/_states.js +0 -32
- package/test-env/themes/amsterdam/global_styling/variables/_typography.js +0 -63
- package/test-env/themes/amsterdam/index.js +0 -16
- package/test-env/themes/amsterdam/theme.js +0 -47
- package/test-env/themes/index.js +0 -57
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +0 -463
- package/test-env/themes/json/eui_theme_amsterdam_light.json +0 -463
- package/test-env/themes/json/eui_theme_borealis_dark.json +0 -463
- package/test-env/themes/json/eui_theme_borealis_light.json +0 -463
- package/test-env/themes/themes.js +0 -5
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.TOKEN_MAP = exports.TOKEN_COLOR_TO_ICON_COLOR_MAP = void 0;
|
|
7
7
|
/*
|
|
8
8
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
9
9
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -18,237 +18,7 @@ exports.TOKEN_MAP_BOREALIS = exports.TOKEN_MAP_AMSTERDAM = exports.TOKEN_COLOR_T
|
|
|
18
18
|
* circle shape for more uncommon token types so they grab attention.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
var
|
|
22
|
-
tokenAlias: {
|
|
23
|
-
shape: 'circle',
|
|
24
|
-
color: 'euiColorVis3'
|
|
25
|
-
},
|
|
26
|
-
tokenAnnotation: {
|
|
27
|
-
shape: 'square',
|
|
28
|
-
color: 'euiColorVis5'
|
|
29
|
-
},
|
|
30
|
-
tokenArray: {
|
|
31
|
-
shape: 'square',
|
|
32
|
-
color: 'euiColorVis7'
|
|
33
|
-
},
|
|
34
|
-
tokenBinary: {
|
|
35
|
-
shape: 'square',
|
|
36
|
-
color: 'euiColorVis4'
|
|
37
|
-
},
|
|
38
|
-
tokenBoolean: {
|
|
39
|
-
shape: 'square',
|
|
40
|
-
color: 'euiColorVis7'
|
|
41
|
-
},
|
|
42
|
-
tokenClass: {
|
|
43
|
-
shape: 'circle',
|
|
44
|
-
color: 'euiColorVis1'
|
|
45
|
-
},
|
|
46
|
-
tokenCompletionSuggester: {
|
|
47
|
-
shape: 'square',
|
|
48
|
-
color: 'euiColorVis1'
|
|
49
|
-
},
|
|
50
|
-
tokenConstant: {
|
|
51
|
-
shape: 'circle',
|
|
52
|
-
color: 'euiColorVis0'
|
|
53
|
-
},
|
|
54
|
-
tokenDate: {
|
|
55
|
-
shape: 'square',
|
|
56
|
-
color: 'euiColorVis6'
|
|
57
|
-
},
|
|
58
|
-
tokenDimension: {
|
|
59
|
-
shape: 'square',
|
|
60
|
-
color: 'euiColorVis1'
|
|
61
|
-
},
|
|
62
|
-
tokenElement: {
|
|
63
|
-
shape: 'square',
|
|
64
|
-
color: 'euiColorVis3'
|
|
65
|
-
},
|
|
66
|
-
tokenEnum: {
|
|
67
|
-
shape: 'circle',
|
|
68
|
-
color: 'euiColorVis3'
|
|
69
|
-
},
|
|
70
|
-
tokenEnumMember: {
|
|
71
|
-
shape: 'square',
|
|
72
|
-
color: 'euiColorVis7'
|
|
73
|
-
},
|
|
74
|
-
tokenEvent: {
|
|
75
|
-
shape: 'circle',
|
|
76
|
-
color: 'euiColorVis4'
|
|
77
|
-
},
|
|
78
|
-
tokenException: {
|
|
79
|
-
shape: 'circle',
|
|
80
|
-
color: 'euiColorVis0'
|
|
81
|
-
},
|
|
82
|
-
tokenField: {
|
|
83
|
-
shape: 'circle',
|
|
84
|
-
color: 'euiColorVis0'
|
|
85
|
-
},
|
|
86
|
-
tokenFile: {
|
|
87
|
-
shape: 'square',
|
|
88
|
-
color: 'euiColorVis2'
|
|
89
|
-
},
|
|
90
|
-
tokenFlattened: {
|
|
91
|
-
shape: 'square',
|
|
92
|
-
color: 'euiColorVis7'
|
|
93
|
-
},
|
|
94
|
-
tokenFunction: {
|
|
95
|
-
shape: 'circle',
|
|
96
|
-
color: 'euiColorVis2'
|
|
97
|
-
},
|
|
98
|
-
tokenGeo: {
|
|
99
|
-
shape: 'square',
|
|
100
|
-
color: 'euiColorVis5'
|
|
101
|
-
},
|
|
102
|
-
tokenHistogram: {
|
|
103
|
-
shape: 'square',
|
|
104
|
-
color: 'euiColorVis6'
|
|
105
|
-
},
|
|
106
|
-
tokenInterface: {
|
|
107
|
-
shape: 'circle',
|
|
108
|
-
color: 'euiColorVis9'
|
|
109
|
-
},
|
|
110
|
-
tokenIP: {
|
|
111
|
-
shape: 'square',
|
|
112
|
-
color: 'euiColorVis9'
|
|
113
|
-
},
|
|
114
|
-
tokenJoin: {
|
|
115
|
-
shape: 'square',
|
|
116
|
-
color: 'euiColorVis5'
|
|
117
|
-
},
|
|
118
|
-
tokenKey: {
|
|
119
|
-
shape: 'circle',
|
|
120
|
-
color: 'euiColorVis5'
|
|
121
|
-
},
|
|
122
|
-
tokenKeyword: {
|
|
123
|
-
shape: 'square',
|
|
124
|
-
color: 'euiColorVis1'
|
|
125
|
-
},
|
|
126
|
-
tokenMethod: {
|
|
127
|
-
shape: 'square',
|
|
128
|
-
color: 'euiColorVis2'
|
|
129
|
-
},
|
|
130
|
-
tokenMetricCounter: {
|
|
131
|
-
shape: 'square',
|
|
132
|
-
color: 'euiColorVis0'
|
|
133
|
-
},
|
|
134
|
-
tokenMetricGauge: {
|
|
135
|
-
shape: 'square',
|
|
136
|
-
color: 'euiColorVis0'
|
|
137
|
-
},
|
|
138
|
-
tokenModule: {
|
|
139
|
-
shape: 'square',
|
|
140
|
-
color: 'euiColorVis4'
|
|
141
|
-
},
|
|
142
|
-
tokenNamespace: {
|
|
143
|
-
shape: 'square',
|
|
144
|
-
color: 'euiColorVis1'
|
|
145
|
-
},
|
|
146
|
-
tokenNested: {
|
|
147
|
-
shape: 'circle',
|
|
148
|
-
color: 'euiColorVis2'
|
|
149
|
-
},
|
|
150
|
-
tokenNull: {
|
|
151
|
-
shape: 'square',
|
|
152
|
-
color: 'euiColorVis2'
|
|
153
|
-
},
|
|
154
|
-
tokenNumber: {
|
|
155
|
-
shape: 'square',
|
|
156
|
-
color: 'euiColorVis0'
|
|
157
|
-
},
|
|
158
|
-
tokenObject: {
|
|
159
|
-
shape: 'circle',
|
|
160
|
-
color: 'euiColorVis3'
|
|
161
|
-
},
|
|
162
|
-
tokenOperator: {
|
|
163
|
-
shape: 'circle',
|
|
164
|
-
color: 'euiColorVis4'
|
|
165
|
-
},
|
|
166
|
-
tokenPackage: {
|
|
167
|
-
shape: 'square',
|
|
168
|
-
color: 'euiColorVis0'
|
|
169
|
-
},
|
|
170
|
-
tokenParameter: {
|
|
171
|
-
shape: 'square',
|
|
172
|
-
color: 'euiColorVis4'
|
|
173
|
-
},
|
|
174
|
-
tokenPercolator: {
|
|
175
|
-
shape: 'square',
|
|
176
|
-
color: 'euiColorVis6'
|
|
177
|
-
},
|
|
178
|
-
tokenProperty: {
|
|
179
|
-
shape: 'circle',
|
|
180
|
-
color: 'euiColorVis2'
|
|
181
|
-
},
|
|
182
|
-
tokenRange: {
|
|
183
|
-
shape: 'circle',
|
|
184
|
-
color: 'euiColorVis4'
|
|
185
|
-
},
|
|
186
|
-
tokenRankFeature: {
|
|
187
|
-
shape: 'square',
|
|
188
|
-
color: 'euiColorVis8'
|
|
189
|
-
},
|
|
190
|
-
tokenRankFeatures: {
|
|
191
|
-
shape: 'square',
|
|
192
|
-
color: 'euiColorVis3'
|
|
193
|
-
},
|
|
194
|
-
tokenRepo: {
|
|
195
|
-
shape: 'square',
|
|
196
|
-
color: 'euiColorVis1'
|
|
197
|
-
},
|
|
198
|
-
tokenSearchType: {
|
|
199
|
-
shape: 'square',
|
|
200
|
-
color: 'euiColorVis5'
|
|
201
|
-
},
|
|
202
|
-
tokenSemanticText: {
|
|
203
|
-
shape: 'square',
|
|
204
|
-
color: 'euiColorVis0'
|
|
205
|
-
},
|
|
206
|
-
tokenShape: {
|
|
207
|
-
shape: 'circle',
|
|
208
|
-
color: 'euiColorVis8'
|
|
209
|
-
},
|
|
210
|
-
tokenString: {
|
|
211
|
-
shape: 'square',
|
|
212
|
-
color: 'euiColorVis1'
|
|
213
|
-
},
|
|
214
|
-
tokenStruct: {
|
|
215
|
-
shape: 'square',
|
|
216
|
-
color: 'euiColorVis0'
|
|
217
|
-
},
|
|
218
|
-
tokenSymbol: {
|
|
219
|
-
shape: 'square',
|
|
220
|
-
color: 'euiColorVis0'
|
|
221
|
-
},
|
|
222
|
-
tokenTag: {
|
|
223
|
-
shape: 'square',
|
|
224
|
-
color: 'euiColorVis9'
|
|
225
|
-
},
|
|
226
|
-
tokenText: {
|
|
227
|
-
shape: 'square',
|
|
228
|
-
color: 'euiColorVis3'
|
|
229
|
-
},
|
|
230
|
-
tokenTokenCount: {
|
|
231
|
-
shape: 'square',
|
|
232
|
-
color: 'euiColorVis4'
|
|
233
|
-
},
|
|
234
|
-
tokenVariable: {
|
|
235
|
-
shape: 'circle',
|
|
236
|
-
color: 'euiColorVis7'
|
|
237
|
-
},
|
|
238
|
-
tokenVectorDense: {
|
|
239
|
-
shape: 'square',
|
|
240
|
-
color: 'euiColorVis5'
|
|
241
|
-
},
|
|
242
|
-
tokenDenseVector: {
|
|
243
|
-
shape: 'square',
|
|
244
|
-
color: 'euiColorVis5'
|
|
245
|
-
},
|
|
246
|
-
tokenVectorSparse: {
|
|
247
|
-
shape: 'square',
|
|
248
|
-
color: 'euiColorVis1'
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
var TOKEN_MAP_BOREALIS = exports.TOKEN_MAP_BOREALIS = {
|
|
21
|
+
var TOKEN_MAP = exports.TOKEN_MAP = {
|
|
252
22
|
tokenAlias: {
|
|
253
23
|
shape: 'square',
|
|
254
24
|
color: 'euiColorVis0'
|
|
@@ -8,9 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _functions = require("../functions");
|
|
11
|
-
var _templateObject;
|
|
12
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
14
12
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
15
13
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
14
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -127,7 +125,6 @@ var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonC
|
|
|
127
125
|
};
|
|
128
126
|
var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
|
|
129
127
|
var euiTheme = euiThemeContext.euiTheme;
|
|
130
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
131
128
|
var COLORS = [].concat(_toConsumableArray(EXTENDED_BUTTON_COLORS), ['disabled']);
|
|
132
129
|
var displaysColorsMap = {};
|
|
133
130
|
BUTTON_DISPLAYS.forEach(function (display) {
|
|
@@ -138,23 +135,19 @@ var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext)
|
|
|
138
135
|
{
|
|
139
136
|
var buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'base');
|
|
140
137
|
var borderStyle = color === 'text' && "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.borderBasePlain, ";\n ");
|
|
141
|
-
|
|
142
|
-
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonColor(euiThemeContext, color), " ", refreshVariantStyles, ";;label:displaysColorsMap-display-color;");
|
|
138
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonColor(euiThemeContext, color), " ", _interactionStyles(euiThemeContext, buttonColors, 'overlay'), " ", borderStyle, ";;label:displaysColorsMap-display-color;");
|
|
143
139
|
break;
|
|
144
140
|
}
|
|
145
141
|
case 'fill':
|
|
146
142
|
{
|
|
147
143
|
var _buttonColors = getButtonVariantTokenValues(euiThemeContext, color, 'filled');
|
|
148
|
-
|
|
149
|
-
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";", _refreshVariantStyles, ";;label:displaysColorsMap-display-color;");
|
|
144
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)(euiButtonFillColor(euiThemeContext, color), "outline-color:", euiThemeContext.colorMode === 'DARK' && color === 'text' ? 'currentColor' : euiThemeContext.euiTheme.colors.fullShade, ";", _interactionStyles(euiThemeContext, _buttonColors), ";;label:displaysColorsMap-display-color;");
|
|
150
145
|
break;
|
|
151
146
|
}
|
|
152
147
|
case 'empty':
|
|
153
148
|
{
|
|
154
149
|
var _buttonColors2 = getButtonVariantTokenValues(euiThemeContext, color, 'empty');
|
|
155
|
-
|
|
156
|
-
var _refreshVariantStyles2 = isRefreshVariant && _interactionStyles(euiThemeContext, _buttonColors2, 'overlay');
|
|
157
|
-
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";", classicVariantStyles, " ", _refreshVariantStyles2, ";;label:displaysColorsMap-display-color;");
|
|
150
|
+
displaysColorsMap[display][color] = /*#__PURE__*/(0, _react.css)("color:", euiButtonEmptyColor(euiThemeContext, color).color, ";", _interactionStyles(euiThemeContext, _buttonColors2, 'overlay'), ";;label:displaysColorsMap-display-color;");
|
|
158
151
|
break;
|
|
159
152
|
}
|
|
160
153
|
}
|
|
@@ -174,11 +167,11 @@ var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext)
|
|
|
174
167
|
var useEuiButtonFocusCSS = exports.useEuiButtonFocusCSS = function useEuiButtonFocusCSS() {
|
|
175
168
|
return (0, _services.useEuiMemoizedStyles)(euiButtonFocusCSS);
|
|
176
169
|
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var
|
|
181
|
-
|
|
170
|
+
|
|
171
|
+
// NOTE: keeping this as placeholder for now in case we need custom button focus styles for https://github.com/elastic/eui-private/issues/267
|
|
172
|
+
var euiButtonFocusCSS = function euiButtonFocusCSS(_euiThemeContext) {
|
|
173
|
+
var focusCSS = /*#__PURE__*/(0, _react.css)(";label:focusCSS;");
|
|
174
|
+
|
|
182
175
|
// Remove the auto-generated label.
|
|
183
176
|
// We could typically avoid a label by using a plain string `` instead of css``,
|
|
184
177
|
// but we need css`` for keyframes`` to work for the focus animation
|
|
@@ -192,16 +185,15 @@ var euiButtonFocusCSS = function euiButtonFocusCSS(euiThemeContext) {
|
|
|
192
185
|
*/
|
|
193
186
|
var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(euiThemeContext) {
|
|
194
187
|
var euiTheme = euiThemeContext.euiTheme;
|
|
195
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
196
188
|
return {
|
|
197
189
|
xs: {
|
|
198
|
-
minWidth: euiTheme.base *
|
|
190
|
+
minWidth: euiTheme.base * 6,
|
|
199
191
|
height: euiTheme.size.l,
|
|
200
192
|
radius: euiTheme.border.radius.small,
|
|
201
193
|
fontScale: 'xs'
|
|
202
194
|
},
|
|
203
195
|
s: {
|
|
204
|
-
minWidth: euiTheme.base *
|
|
196
|
+
minWidth: euiTheme.base * 6,
|
|
205
197
|
height: euiTheme.size.xl,
|
|
206
198
|
radius: euiTheme.border.radius.small,
|
|
207
199
|
fontScale: 's'
|
|
@@ -209,7 +201,7 @@ var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(euiT
|
|
|
209
201
|
m: {
|
|
210
202
|
minWidth: euiTheme.base * 7,
|
|
211
203
|
height: euiTheme.size.xxl,
|
|
212
|
-
radius:
|
|
204
|
+
radius: euiTheme.border.radius.small,
|
|
213
205
|
fontScale: 's'
|
|
214
206
|
}
|
|
215
207
|
};
|
|
@@ -220,8 +212,6 @@ var euiButtonSizeMap = exports.euiButtonSizeMap = function euiButtonSizeMap(euiT
|
|
|
220
212
|
*/
|
|
221
213
|
var _interactionStyles = function _interactionStyles(euiThemeContext, buttonColors) {
|
|
222
214
|
var type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fill';
|
|
223
|
-
var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'buttonVariant');
|
|
224
|
-
if (!isRefreshVariant) return "";
|
|
225
215
|
var baseStyles = function baseStyles() {
|
|
226
216
|
// button hover is applied as pseudo element with a transparent background-color
|
|
227
217
|
if (type === 'overlay') {
|
package/lib/index.js
CHANGED
|
@@ -36,17 +36,6 @@ Object.keys(_utils).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
var _themes = require("./themes");
|
|
40
|
-
Object.keys(_themes).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _themes[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function get() {
|
|
46
|
-
return _themes[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
39
|
var _global_styling = require("./global_styling");
|
|
51
40
|
Object.keys(_global_styling).forEach(function (key) {
|
|
52
41
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -114,16 +114,8 @@ var euiPaletteColorBlind = exports.euiPaletteColorBlind = function euiPaletteCol
|
|
|
114
114
|
*/
|
|
115
115
|
var euiPaletteColorBlindBehindText = exports.euiPaletteColorBlindBehindText = function euiPaletteColorBlindBehindText() {
|
|
116
116
|
var paletteProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
117
|
-
var hasVisColorAdjustment = paletteProps.hasVisColorAdjustment;
|
|
118
|
-
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
119
117
|
var originalPalette = euiPaletteColorBlind(paletteProps);
|
|
120
|
-
|
|
121
|
-
// new theme palette has required contrast, we don't need to adjust them
|
|
122
|
-
if (!_hasVisColorAdjustment) return originalPalette;
|
|
123
|
-
var newPalette = originalPalette.map(function (color) {
|
|
124
|
-
return (0, _chromaJs.default)(color).brighten(0.5).hex();
|
|
125
|
-
});
|
|
126
|
-
return newPalette;
|
|
118
|
+
return originalPalette;
|
|
127
119
|
};
|
|
128
120
|
var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
|
|
129
121
|
return keys.reduce(function (colors, curr) {
|
|
@@ -190,10 +182,8 @@ var euiPaletteForStatus = exports.euiPaletteForStatus = function euiPaletteForSt
|
|
|
190
182
|
*/
|
|
191
183
|
var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
|
|
192
184
|
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
193
|
-
colors = _ref6.colors
|
|
194
|
-
hasVisColorAdjustment = _ref6.hasVisColorAdjustment;
|
|
185
|
+
colors = _ref6.colors;
|
|
195
186
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
196
|
-
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
197
187
|
if (steps === 1) {
|
|
198
188
|
return [visColors.euiColorVisCool2];
|
|
199
189
|
} else if (steps <= 3) {
|
|
@@ -201,7 +191,7 @@ var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPa
|
|
|
201
191
|
}
|
|
202
192
|
var cools = (0, _color_palette.colorPalette)([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
|
|
203
193
|
var warms = (0, _color_palette.colorPalette)([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
|
|
204
|
-
var paletteColors =
|
|
194
|
+
var paletteColors = [].concat(_toConsumableArray(cools), [visColors.euiColorVisBase0], _toConsumableArray(warms));
|
|
205
195
|
return euiPalette(paletteColors, steps, true);
|
|
206
196
|
};
|
|
207
197
|
|
|
@@ -213,14 +203,12 @@ var euiPaletteForTemperature = exports.euiPaletteForTemperature = function euiPa
|
|
|
213
203
|
*/
|
|
214
204
|
var euiPaletteComplementary = exports.euiPaletteComplementary = function euiPaletteComplementary(steps) {
|
|
215
205
|
var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
216
|
-
colors = _ref7.colors
|
|
217
|
-
hasVisColorAdjustment = _ref7.hasVisColorAdjustment;
|
|
206
|
+
colors = _ref7.colors;
|
|
218
207
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
219
|
-
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
220
208
|
if (steps === 1) {
|
|
221
209
|
return [visColors.euiColorVisComplementary0];
|
|
222
210
|
}
|
|
223
|
-
var paletteColors =
|
|
211
|
+
var paletteColors = [visColors.euiColorVisComplementary0, visColors.euiColorVisBase0, visColors.euiColorVisComplementary1];
|
|
224
212
|
return euiPalette(paletteColors, steps, true);
|
|
225
213
|
};
|
|
226
214
|
|
|
@@ -312,14 +300,12 @@ var euiPaletteOrange = exports.euiPaletteOrange = function euiPaletteOrange(step
|
|
|
312
300
|
*/
|
|
313
301
|
var euiPaletteCool = exports.euiPaletteCool = function euiPaletteCool(steps) {
|
|
314
302
|
var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
315
|
-
colors = _ref13.colors
|
|
316
|
-
hasVisColorAdjustment = _ref13.hasVisColorAdjustment;
|
|
303
|
+
colors = _ref13.colors;
|
|
317
304
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
318
|
-
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : _vis_color_store.EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
319
305
|
if (steps === 1) {
|
|
320
306
|
return [visColors.euiColorVisCool1];
|
|
321
307
|
}
|
|
322
|
-
return euiPalette([
|
|
308
|
+
return euiPalette([visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
|
|
323
309
|
};
|
|
324
310
|
|
|
325
311
|
/**
|
|
@@ -64,24 +64,20 @@ var useEuiPaletteGray = exports.useEuiPaletteGray = function useEuiPaletteGray(s
|
|
|
64
64
|
var _useEuiPaletteFn = function _useEuiPaletteFn(palleteFn, args) {
|
|
65
65
|
var _useEuiTheme = (0, _hooks.useEuiTheme)(),
|
|
66
66
|
euiTheme = _useEuiTheme.euiTheme;
|
|
67
|
-
var colors = euiTheme.colors
|
|
68
|
-
flags = euiTheme.flags;
|
|
67
|
+
var colors = euiTheme.colors;
|
|
69
68
|
return (0, _react.useMemo)(function () {
|
|
70
69
|
return palleteFn(_objectSpread(_objectSpread({}, args), {}, {
|
|
71
|
-
colors: colors.vis
|
|
72
|
-
hasVisColorAdjustment: flags.hasVisColorAdjustment
|
|
70
|
+
colors: colors.vis
|
|
73
71
|
}));
|
|
74
|
-
}, [colors,
|
|
72
|
+
}, [colors, args, palleteFn]);
|
|
75
73
|
};
|
|
76
74
|
var _useEuiPaletteWithStepsFn = function _useEuiPaletteWithStepsFn(palleteFn, steps) {
|
|
77
75
|
var _useEuiTheme2 = (0, _hooks.useEuiTheme)(),
|
|
78
76
|
euiTheme = _useEuiTheme2.euiTheme;
|
|
79
|
-
var colors = euiTheme.colors
|
|
80
|
-
flags = euiTheme.flags;
|
|
77
|
+
var colors = euiTheme.colors;
|
|
81
78
|
return (0, _react.useMemo)(function () {
|
|
82
79
|
return palleteFn(steps, {
|
|
83
|
-
colors: colors.vis
|
|
84
|
-
hasVisColorAdjustment: flags.hasVisColorAdjustment
|
|
80
|
+
colors: colors.vis
|
|
85
81
|
});
|
|
86
|
-
}, [colors,
|
|
82
|
+
}, [colors, steps, palleteFn]);
|
|
87
83
|
};
|
|
@@ -14,5 +14,5 @@ var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
14
14
|
* Side Public License, v 1.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
//
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis
|
|
17
|
+
// initial setup of vis color storage with default colors
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_euiThemeBorealis.colorVis);
|
|
@@ -102,8 +102,7 @@ var EuiThemeProvider = exports.EuiThemeProvider = function EuiThemeProvider(_ref
|
|
|
102
102
|
var isParentTheme = (0, _react2.useRef)(isGlobalTheme ? prevSystemKey.current === _context.DEFAULTS.system.key && colorMode === _context.DEFAULTS.colorMode && highContrastMode === _context.DEFAULTS.highContrastMode && !_modifications : prevSystemKey.current === parentSystem.key && colorMode === parentColorMode && highContrastMode === parentHighContrastMode && (0, _isEqual.default)(parentModifications, modifications));
|
|
103
103
|
var updateVisColorStore = (0, _react2.useCallback)(function (theme, isGlobalTheme) {
|
|
104
104
|
if (isGlobalTheme) {
|
|
105
|
-
|
|
106
|
-
_color.EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis, (_theme$flags$hasVisCo = (_theme$flags = theme.flags) === null || _theme$flags === void 0 ? void 0 : _theme$flags.hasVisColorAdjustment) !== null && _theme$flags$hasVisCo !== void 0 ? _theme$flags$hasVisCo : true);
|
|
105
|
+
_color.EUI_VIS_COLOR_STORE.setVisColors(theme.colors.vis);
|
|
107
106
|
}
|
|
108
107
|
}, []);
|
|
109
108
|
var getInitialTheme = function getInitialTheme() {
|
|
@@ -154,17 +153,13 @@ var EuiThemeProvider = exports.EuiThemeProvider = function EuiThemeProvider(_ref
|
|
|
154
153
|
if (!isParentTheme.current) {
|
|
155
154
|
/* Enables recomputation of component colors when flags are overridden on the provider
|
|
156
155
|
by adding the respective key to modifications to trigger a recomputation. */
|
|
156
|
+
// NOTE: Keeping this as placeholder for potential future usage during Borealis changes
|
|
157
157
|
// TODO: remove once visual refresh is completed and flags are obsolete
|
|
158
|
-
var flagsToRecompute = [
|
|
159
|
-
flag: 'buttonVariant',
|
|
160
|
-
componentKey: 'buttons'
|
|
161
|
-
}, {
|
|
162
|
-
flag: 'formVariant',
|
|
163
|
-
componentKey: 'forms'
|
|
164
|
-
}];
|
|
158
|
+
var flagsToRecompute = [];
|
|
165
159
|
var keys = {};
|
|
166
160
|
var forceRecomputeComponents = flagsToRecompute.some(function (item) {
|
|
167
161
|
var _modifications$flags, _modifications$compon;
|
|
162
|
+
if (!item) return false;
|
|
168
163
|
if (Object.keys((_modifications$flags = modifications.flags) !== null && _modifications$flags !== void 0 ? _modifications$flags : {}).includes(item.flag) && !Object.keys((_modifications$compon = modifications.components) !== null && _modifications$compon !== void 0 ? _modifications$compon : {}).includes(item.componentKey)) {
|
|
169
164
|
keys[item.componentKey] = {
|
|
170
165
|
LIGHT: {},
|
|
@@ -35,7 +35,6 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
|
35
35
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
36
36
|
};
|
|
37
37
|
export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
38
|
-
var _euiTheme$flags;
|
|
39
38
|
var euiTheme = euiThemeContext.euiTheme,
|
|
40
39
|
colorMode = euiThemeContext.colorMode;
|
|
41
40
|
var badgeColors = euiBadgeColors(euiThemeContext);
|
|
@@ -45,13 +44,12 @@ export var euiBetaBadgeStyles = function euiBetaBadgeStyles(euiThemeContext) {
|
|
|
45
44
|
return x * 1.25;
|
|
46
45
|
})
|
|
47
46
|
};
|
|
48
|
-
var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
|
|
49
47
|
return {
|
|
50
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', {
|
|
51
49
|
color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
|
|
52
50
|
}), ";};label:euiBetaBadge;"),
|
|
53
51
|
// Colors
|
|
54
|
-
accent:
|
|
52
|
+
accent: /*#__PURE__*/css(badgeColors.accent, ";label:accent;"),
|
|
55
53
|
subdued: /*#__PURE__*/css(badgeColors.subdued, ";label:subdued;"),
|
|
56
54
|
hollow: /*#__PURE__*/css("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
|
|
57
55
|
warning: /*#__PURE__*/css(badgeColors.warning, ";label:warning;"),
|
|
@@ -9,15 +9,13 @@
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
10
|
import { logicalCSS, euiCanAnimate, euiFontSizeFromScale, euiNumberFormat, mathWithUnits } from '../../../global_styling';
|
|
11
11
|
import { highContrastModeStyles } from '../../../global_styling/functions/high_contrast';
|
|
12
|
-
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
13
12
|
import { euiBadgeColors } from '../color_utils';
|
|
14
13
|
export var euiNotificationBadgeStyles = function euiNotificationBadgeStyles(euiThemeContext) {
|
|
15
14
|
var euiTheme = euiThemeContext.euiTheme;
|
|
16
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
17
15
|
var badgeColors = euiBadgeColors(euiThemeContext);
|
|
18
|
-
var borderRadius =
|
|
16
|
+
var borderRadius = mathWithUnits(euiTheme.border.radius.small, function (x) {
|
|
19
17
|
return x / 2;
|
|
20
|
-
})
|
|
18
|
+
});
|
|
21
19
|
return {
|
|
22
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, {
|
|
23
21
|
preferred: "\n border: ".concat(euiTheme.border.thin, ";\n overflow: hidden; /* Fix text clipping */\n ")
|
|
@@ -7,7 +7,6 @@ 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 { isEuiThemeRefreshVariant } from '../../../services';
|
|
11
10
|
import { euiFontSize, logicalCSS, logicalShorthandCSS, logicalTextAlignCSS } from '../../../global_styling';
|
|
12
11
|
import { euiButtonSizeMap } from '../../../global_styling/mixins';
|
|
13
12
|
// Provides a solid reset and base for handling sizing layout
|
|
@@ -25,16 +24,14 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
25
24
|
};
|
|
26
25
|
export var euiButtonDisplayStyles = function euiButtonDisplayStyles(euiThemeContext) {
|
|
27
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
28
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
29
27
|
var sizes = euiButtonSizeMap(euiThemeContext);
|
|
30
28
|
var _buttonSize = function _buttonSize(sizeKey) {
|
|
31
29
|
var size = sizes[sizeKey];
|
|
32
30
|
return /*#__PURE__*/css(logicalCSS('height', size.height), " line-height:", size.height, ";", euiFontSize(euiThemeContext, size.fontScale), " border-radius:", size.radius, ";");
|
|
33
31
|
};
|
|
34
|
-
var classicVariantStyles = "\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n }\n ";
|
|
35
32
|
return {
|
|
36
33
|
// Base
|
|
37
|
-
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), "
|
|
34
|
+
euiButtonDisplay: /*#__PURE__*/css(euiButtonBaseCSS(), " font-weight:", euiTheme.font.weight.medium, ";", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.m)), ";;label:euiButtonDisplay;"),
|
|
38
35
|
// States
|
|
39
36
|
isDisabled: _ref,
|
|
40
37
|
fullWidth: /*#__PURE__*/css("display:block;", logicalCSS('width', '100%'), ";;label:fullWidth;"),
|
|
@@ -6,14 +6,11 @@
|
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
|
-
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
10
9
|
import { logicalCSS } from '../../../global_styling';
|
|
11
10
|
export var euiButtonDisplayContentStyles = function euiButtonDisplayContentStyles(euiThemeContext) {
|
|
12
11
|
var euiTheme = euiThemeContext.euiTheme;
|
|
13
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
14
|
-
var refreshVariantStyles = "\n /* ensure content stays ontop of hover pseudo element */\n position: relative;\n ";
|
|
15
12
|
return {
|
|
16
13
|
// Base
|
|
17
|
-
euiButtonDisplayContent: /*#__PURE__*/css(logicalCSS('height', '100%'), " ", logicalCSS('width', '100%'), " display:flex;justify-content:center;align-items:center;vertical-align:middle;gap:", euiTheme.size.s, "
|
|
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.s, ";;label:euiButtonDisplayContent;")
|
|
18
15
|
};
|
|
19
16
|
};
|
|
@@ -7,20 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { css } from '@emotion/react';
|
|
10
|
-
import { isEuiThemeRefreshVariant } from '../../../services';
|
|
11
10
|
import { logicalCSS, logicalShorthandCSS, euiCanAnimate, highContrastModeStyles } from '../../../global_styling';
|
|
12
11
|
import { euiButtonDisplayStyles } from '../button_display/_button_display.styles';
|
|
13
12
|
export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext) {
|
|
14
13
|
var euiTheme = euiThemeContext.euiTheme;
|
|
15
|
-
var isRefreshVariant = isEuiThemeRefreshVariant(euiThemeContext, 'buttonVariant');
|
|
16
14
|
|
|
17
15
|
// EuiButtonEmpty uses the same size/font styling as EuiButtonDisplay,
|
|
18
16
|
// but does not share enough of the same colors/props to the point
|
|
19
17
|
// of using the actual component - so we'll reuse its styles instead
|
|
20
18
|
var displayStyles = euiButtonDisplayStyles(euiThemeContext);
|
|
21
|
-
var refreshFlushStyles = "\n /* using duplicate selector to ensure specificity */\n &&:hover,\n &&:active {\n background-color: transparent;\n\n /* removes hover overlay */\n &::before {\n display: none;\n }\n }\n\n &:hover:not(:disabled),\n &:focus {\n text-decoration: underline;\n\n ".concat(highContrastModeStyles(euiThemeContext, {
|
|
22
|
-
forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
|
|
23
|
-
}), "\n }\n ");
|
|
24
19
|
return {
|
|
25
20
|
euiButtonEmpty: /*#__PURE__*/css(displayStyles.euiButtonDisplay, " ", logicalShorthandCSS('padding', "0 ".concat(euiTheme.size.s)), euiCanAnimate, "{transition-timing-function:ease-in;transition-duration:", euiTheme.animation.fast, ";};label:euiButtonEmpty;"),
|
|
26
21
|
isDisabled: displayStyles.isDisabled,
|
|
@@ -28,9 +23,11 @@ export var euiButtonEmptyStyles = function euiButtonEmptyStyles(euiThemeContext)
|
|
|
28
23
|
xs: displayStyles.xs,
|
|
29
24
|
s: displayStyles.s,
|
|
30
25
|
// uses array here to prevent adding duplicate "m" classname partial
|
|
31
|
-
m: [displayStyles.m,
|
|
26
|
+
m: [displayStyles.m, "\n ".concat(logicalCSS('padding-horizontal', euiTheme.size.m), "\n ")],
|
|
32
27
|
// Flush sides
|
|
33
|
-
flush: /*#__PURE__*/css("padding-inline:0;",
|
|
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
|
+
forced: "\n /* hides HCM hover border, flush buttons use text-decoration */\n &::after {\n display: none;\n }\n "
|
|
30
|
+
}), ";};label:flush;"),
|
|
34
31
|
left: /*#__PURE__*/css(logicalCSS('margin-right', euiTheme.size.s), ";;label:left;"),
|
|
35
32
|
right: /*#__PURE__*/css(logicalCSS('margin-left', euiTheme.size.s), ";;label:right;"),
|
|
36
33
|
both: /*#__PURE__*/css(";label:both;")
|