@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
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// Converting a normal hex color to RBG
|
|
2
|
-
@function hexToRGB($color) {
|
|
3
|
-
@return 'rgb%28#{round(red($color))}, #{round(green($color))}, #{round(blue($color))}%29';
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
// Mixes a provided color with white.
|
|
7
|
-
@function tint($color, $percent) {
|
|
8
|
-
@return mix($euiColorGhost, $color, $percent);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// Mixes a provided color with black.
|
|
12
|
-
@function shade($color, $percent) {
|
|
13
|
-
@return mix($euiColorInk, $color, $percent);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// For theming. Checks the text color and tells us whether it's light or dark.
|
|
17
|
-
// Based on that we either tint (add white) or shade (add black).
|
|
18
|
-
@function tintOrShade($color, $tint, $shade) {
|
|
19
|
-
@if (lightness($euiColorTextParagraph) > 50) {
|
|
20
|
-
@return shade($color, $shade);
|
|
21
|
-
} @else {
|
|
22
|
-
@return tint($color, $tint);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// The reverse of the above
|
|
27
|
-
@function shadeOrTint($color, $shade, $tint) {
|
|
28
|
-
@if (lightness($euiColorTextParagraph) < 50) {
|
|
29
|
-
@return shade($color, $shade);
|
|
30
|
-
} @else {
|
|
31
|
-
@return tint($color, $tint);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// Similar to above, but uses the light or dark color based
|
|
36
|
-
// on whether it's the light or dark theme
|
|
37
|
-
@function lightOrDarkTheme($lightColor, $darkColor) {
|
|
38
|
-
@if (lightness($euiColorTextParagraph) < 50) {
|
|
39
|
-
@return $lightColor;
|
|
40
|
-
} @else {
|
|
41
|
-
@return $darkColor;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Calculates luminance, which is better than brightness for checking colors
|
|
46
|
-
// pow, nth functions come from the _math.scss functions
|
|
47
|
-
@function luminance($color) {
|
|
48
|
-
// Formula: http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef
|
|
49
|
-
$rgba: red($color), green($color), blue($color);
|
|
50
|
-
$rgba2: ();
|
|
51
|
-
|
|
52
|
-
@for $i from 1 through 3 {
|
|
53
|
-
$rgb: nth($rgba, $i);
|
|
54
|
-
$rgb: $rgb / 255;
|
|
55
|
-
|
|
56
|
-
$rgb: if($rgb < .03928, $rgb / 12.92, pow(($rgb + .055) / 1.055, 2.4));
|
|
57
|
-
|
|
58
|
-
$rgba2: append($rgba2, $rgb);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@return .2126 * nth($rgba2, 1) + .7152 * nth($rgba2, 2) + .0722 * nth($rgba2, 3);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Calculate contrast
|
|
65
|
-
@function contrastRatio($background, $foreground) {
|
|
66
|
-
$backgroundLum: luminance($background) + .05;
|
|
67
|
-
$foregroundLum: luminance($foreground) + .05;
|
|
68
|
-
|
|
69
|
-
@return max($backgroundLum, $foregroundLum) / min($backgroundLum, $foregroundLum);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Given $color, decide whether $lightText or $darkText should be used as the text color
|
|
73
|
-
// ex: chooseLightOrDarkText(#EEE, #FFF, #000) would return #000 because it has
|
|
74
|
-
// a higher contrast than #FFF against a #EEE background.
|
|
75
|
-
@function chooseLightOrDarkText($background, $lightText: $euiColorGhost, $darkText: $euiColorInk) {
|
|
76
|
-
$lightContrast: contrastRatio($background, $lightText);
|
|
77
|
-
$darkContrast: contrastRatio($background, $darkText);
|
|
78
|
-
|
|
79
|
-
@if ($lightContrast > $darkContrast) {
|
|
80
|
-
@return $lightText;
|
|
81
|
-
} @else {
|
|
82
|
-
@return $darkText;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// Given a $foreground and a $background, make the $foreground AA accessibility by slightly
|
|
87
|
-
// adjusting it till the contrast is high enough
|
|
88
|
-
// By default it will compare against the page background color
|
|
89
|
-
|
|
90
|
-
// ex: makeContrastColor($lightPink, #FFF) would continually shade the pink until
|
|
91
|
-
// it had higher than 4.5 contrast on a white background.
|
|
92
|
-
$euiContrastRatioText: 4.5;
|
|
93
|
-
@function makeHighContrastColor($foreground, $background: $euiPageBackgroundColor, $ratio: $euiContrastRatioText) {
|
|
94
|
-
$contrast: contrastRatio($foreground, $background);
|
|
95
|
-
|
|
96
|
-
// Determine the lightness factor of the background color first to
|
|
97
|
-
// determine whether to shade or tint the foreground.
|
|
98
|
-
$brightness: lightness($background);
|
|
99
|
-
|
|
100
|
-
$highContrastTextColor: $foreground;
|
|
101
|
-
|
|
102
|
-
@while ($contrast < $ratio) {
|
|
103
|
-
@if ($brightness > 50) {
|
|
104
|
-
$highContrastTextColor: shade($highContrastTextColor, 5%);
|
|
105
|
-
} @else {
|
|
106
|
-
$highContrastTextColor: tint($highContrastTextColor, 5%);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
$contrast: contrastRatio($highContrastTextColor, $background);
|
|
110
|
-
|
|
111
|
-
@if (lightness($highContrastTextColor) < 5) {
|
|
112
|
-
@warn 'High enough contrast could not be determined. Most likely your background color does not adjust for light mode.';
|
|
113
|
-
@return $highContrastTextColor;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
@if (lightness($highContrastTextColor) > 95) {
|
|
117
|
-
@warn 'High enough contrast could not be determined. Most likely your background color does not adjust for dark mode.';
|
|
118
|
-
@return $highContrastTextColor;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@return $highContrastTextColor;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Graphics such as stand alone icons and pieces of a graph only need a minimum ratio of 3:1 with its background.
|
|
126
|
-
// Therefore, we can reuse the `makeHighContrastColor()` function but only attain a min contrast of 3.0.
|
|
127
|
-
// It is still recommended to use `makeHighContrastColor()` to attain a 4.5:1 ratio if the graphic is small or thinly stroked.
|
|
128
|
-
// https://www.w3.org/WAI/GL/low-vision-a11y-tf/wiki/Informational_Graphic_Contrast_(Minimum)
|
|
129
|
-
$euiContrastRatioGraphic: 3;
|
|
130
|
-
@function makeGraphicContrastColor($color, $background: $euiPageBackgroundColor) {
|
|
131
|
-
@return makeHighContrastColor($color, $background, $euiContrastRatioGraphic);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Disabled content only needs a contrast of at least 2 because there is no interaction available
|
|
135
|
-
$euiContrastRatioDisabled: 2;
|
|
136
|
-
@function makeDisabledContrastColor($color, $background: $euiPageBackgroundColor) {
|
|
137
|
-
@return makeHighContrastColor($color, $background, $euiContrastRatioDisabled);
|
|
138
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'node_modules/@elastic/eui-theme-common/src/global_styling/functions/index';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import 'math_pow';
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
The MIT License (MIT)
|
|
3
|
-
|
|
4
|
-
Copyright (c) 2015 strarsis https://github.com/strarsis/sass-math-pow
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
-
in the Software without restriction, including without limitation the rights
|
|
9
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
-
furnished to do so, subject to the following conditions:
|
|
12
|
-
|
|
13
|
-
The above copyright notice and this permission notice shall be included in all
|
|
14
|
-
copies or substantial portions of the Software.
|
|
15
|
-
|
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
-
SOFTWARE.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
@function pow($number, $exp) {
|
|
26
|
-
$exp1: round($exp);
|
|
27
|
-
$result: powInt($number, $exp1);
|
|
28
|
-
|
|
29
|
-
@if ($exp1 != $exp) {
|
|
30
|
-
$result: $result * mathExp(($exp - $exp1) * mathLn($number));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@return $result;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@function powInt($number, $exp) {
|
|
37
|
-
@if $exp == 0 {
|
|
38
|
-
@return 1;
|
|
39
|
-
} @else if $exp < 0 {
|
|
40
|
-
@return 1 / powInt($number, -$exp);
|
|
41
|
-
} @else {
|
|
42
|
-
$e: floor($exp / 2);
|
|
43
|
-
$pow: pow($number, $e);
|
|
44
|
-
@if $e * 2 == $exp {
|
|
45
|
-
@return $pow * $pow;
|
|
46
|
-
} @else {
|
|
47
|
-
@return $pow * $pow * $number;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@function mathExp($value) {
|
|
53
|
-
$item: 1;
|
|
54
|
-
$result: 1;
|
|
55
|
-
|
|
56
|
-
@for $index from 1 to 100 {
|
|
57
|
-
$item: $item * $value / $index;
|
|
58
|
-
$result: $result + $item;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@return $result;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@function mathLn($value) {
|
|
65
|
-
$tenExp: 0;
|
|
66
|
-
$lnTen: 2.30258509;
|
|
67
|
-
|
|
68
|
-
@while ($value > 1) {
|
|
69
|
-
$tenExp: $tenExp + 1;
|
|
70
|
-
$value: $value / 10;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
$item: -1;
|
|
74
|
-
$result: 0;
|
|
75
|
-
|
|
76
|
-
@for $index from 1 to 100 {
|
|
77
|
-
$item: $item * (1 - $value);
|
|
78
|
-
$result: $result + $item / $index;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@return $result + $tenExp * $lnTen;
|
|
82
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
// Helper mixins
|
|
2
|
-
|
|
3
|
-
// Set scroll bar appearance on Chrome (and firefox).
|
|
4
|
-
@mixin euiScrollBar($thumbColor: $euiColorDarkShade, $trackBackgroundColor: transparent, $size: 'thin') {
|
|
5
|
-
// Firefox's scrollbar coloring cascades, but the sizing does not,
|
|
6
|
-
// so it's being added to this mixin for allowing support wherever custom scrollbars are
|
|
7
|
-
scrollbar-color: transparentize($thumbColor, .5) $trackBackgroundColor; // Firefox support
|
|
8
|
-
|
|
9
|
-
@if ($size == 'thin') {
|
|
10
|
-
scrollbar-width: thin;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// stylelint-disable selector-no-vendor-prefix
|
|
14
|
-
&::-webkit-scrollbar {
|
|
15
|
-
width: $euiScrollBar;
|
|
16
|
-
height: $euiScrollBar;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&::-webkit-scrollbar-thumb {
|
|
20
|
-
background-color: transparentize($thumbColor, .5);
|
|
21
|
-
background-clip: content-box;
|
|
22
|
-
border-radius: $euiScrollBar;
|
|
23
|
-
|
|
24
|
-
@if ($size == 'thin') {
|
|
25
|
-
border: $euiScrollBarCornerThin solid $trackBackgroundColor;
|
|
26
|
-
} @else {
|
|
27
|
-
border: $euiScrollBarCorner solid $trackBackgroundColor;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&::-webkit-scrollbar-corner,
|
|
32
|
-
&::-webkit-scrollbar-track {
|
|
33
|
-
background-color: $trackBackgroundColor;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 1. Focus rings shouldn't be visible on scrollable regions, but a11y requires them to be focusable.
|
|
39
|
-
* Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
|
|
40
|
-
* Others like Safari, won't show anything at all.
|
|
41
|
-
* 2. Force the `:focus-visible` when the `tabindex=0` (is tabbable)
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
// Just overflow and scrollbars
|
|
45
|
-
@mixin euiYScroll {
|
|
46
|
-
@include euiScrollBar;
|
|
47
|
-
height: 100%;
|
|
48
|
-
overflow-y: auto;
|
|
49
|
-
overflow-x: hidden;
|
|
50
|
-
|
|
51
|
-
&:focus {
|
|
52
|
-
outline: none; /* 1 */
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&[tabindex='0']:focus:focus-visible {
|
|
56
|
-
outline-style: auto; /* 2 */
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@mixin euiXScroll {
|
|
61
|
-
@include euiScrollBar;
|
|
62
|
-
overflow-x: auto;
|
|
63
|
-
|
|
64
|
-
&:focus {
|
|
65
|
-
outline: none; /* 1 */
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&[tabindex='0']:focus:focus-visible {
|
|
69
|
-
outline-style: auto; /* 2 */
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// The full overflow with shadow
|
|
74
|
-
@mixin euiYScrollWithShadows {
|
|
75
|
-
@include euiYScroll;
|
|
76
|
-
@include euiOverflowShadow('y');
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@mixin euiXScrollWithShadows {
|
|
80
|
-
@include euiXScroll;
|
|
81
|
-
@include euiOverflowShadow('x');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Hiding elements offscreen to only be read by screen reader
|
|
85
|
-
// See https://github.com/elastic/eui/pull/5130 and https://github.com/elastic/eui/pull/5152 for more info
|
|
86
|
-
@mixin euiScreenReaderOnly {
|
|
87
|
-
// Take the element out of the layout
|
|
88
|
-
position: absolute;
|
|
89
|
-
// Keep it vertically inline
|
|
90
|
-
top: auto;
|
|
91
|
-
// Chrome requires a left value, and Selenium (used by Kibana's FTR) requires an off-screen position for its .getVisibleText() to not register SR-only text
|
|
92
|
-
left: -10000px;
|
|
93
|
-
// The element must have a size (for some screen readers)
|
|
94
|
-
width: 1px;
|
|
95
|
-
height: 1px;
|
|
96
|
-
// But reduce the visible size to nothing
|
|
97
|
-
clip: rect(0 0 0 0);
|
|
98
|
-
clip-path: inset(50%);
|
|
99
|
-
// And ensure no overflows occur
|
|
100
|
-
overflow: hidden;
|
|
101
|
-
// Chrome requires the negative margin to not cause overflows of parent containers
|
|
102
|
-
margin: -1px;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Doesn't have reduced motion turned on
|
|
106
|
-
@mixin euiCanAnimate {
|
|
107
|
-
@media screen and (prefers-reduced-motion: no-preference) {
|
|
108
|
-
@content;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Does have reduced motion turned on
|
|
113
|
-
@mixin euiCantAnimate {
|
|
114
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
|
115
|
-
@content;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// A sem-complicated mixin for breakpoints, that takes any number of
|
|
2
|
-
// named breakpoints that exists in $euiBreakpoints.
|
|
3
|
-
|
|
4
|
-
@mixin euiBreakpoint($sizes...) {
|
|
5
|
-
// Loop through each size parameter
|
|
6
|
-
@each $size in $sizes {
|
|
7
|
-
// Store the location of the size in the list to check against
|
|
8
|
-
$index: index($euiBreakpointKeys, $size);
|
|
9
|
-
|
|
10
|
-
// Check to make sure it exists in the allowed breakpoint names
|
|
11
|
-
@if ( $index ) {
|
|
12
|
-
|
|
13
|
-
// Set the min size to the value of the size
|
|
14
|
-
$minSize: map-get($euiBreakpoints, $size);
|
|
15
|
-
|
|
16
|
-
// If it is the last item, don't give it a max-width
|
|
17
|
-
@if ( $index == length($euiBreakpointKeys) ) {
|
|
18
|
-
@media only screen and (min-width: $minSize) {
|
|
19
|
-
@content;
|
|
20
|
-
}
|
|
21
|
-
// If it's not the last item, add a max-width
|
|
22
|
-
} @else {
|
|
23
|
-
|
|
24
|
-
// Set the max size to the value of the next size (-1px as to not overlap)
|
|
25
|
-
$maxSize: map-get($euiBreakpoints, nth($euiBreakpointKeys, $index + 1)) - 1px;
|
|
26
|
-
|
|
27
|
-
// If it's the the first item, don't set a min-width
|
|
28
|
-
@if ( $index == 1 ) {
|
|
29
|
-
@media only screen and (max-width: $maxSize) {
|
|
30
|
-
@content;
|
|
31
|
-
}
|
|
32
|
-
// Otherwise it should have a min and max width
|
|
33
|
-
} @else {
|
|
34
|
-
@media only screen and (min-width: $minSize) and (max-width: $maxSize) {
|
|
35
|
-
@content;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
// If it's not a known breakpoint, throw a warning
|
|
40
|
-
} @else {
|
|
41
|
-
@warn "euiBreakpoint(): '#{$size}' is not a valid size in $euiBreakpoints. Accepted values are '#{$euiBreakpointKeys}'";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@function shadowOpacity($opacity) {
|
|
2
|
-
@if (lightness($euiColorTextParagraph) < 50) {
|
|
3
|
-
@return $opacity * 1;
|
|
4
|
-
} @else {
|
|
5
|
-
@return $opacity * 2.5;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
@mixin euiSlightShadow($color: $euiShadowColor) {
|
|
10
|
-
box-shadow:
|
|
11
|
-
0 .8px .8px rgba($color, shadowOpacity(.04)),
|
|
12
|
-
0 2.3px 2px rgba($color, shadowOpacity(.03));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@mixin euiBottomShadowSmall($color: $euiShadowColor) {
|
|
16
|
-
box-shadow:
|
|
17
|
-
0 .7px 1.4px rgba($color, shadowOpacity(.07)),
|
|
18
|
-
0 1.9px 4px rgba($color, shadowOpacity(.05)),
|
|
19
|
-
0 4.5px 10px rgba($color, shadowOpacity(.05));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@mixin euiBottomShadowMedium($color: $euiShadowColor) {
|
|
23
|
-
box-shadow:
|
|
24
|
-
0 .9px 4px -1px rgba($color, shadowOpacity(.08)),
|
|
25
|
-
0 2.6px 8px -1px rgba($color, shadowOpacity(.06)),
|
|
26
|
-
0 5.7px 12px -1px rgba($color, shadowOpacity(.05)),
|
|
27
|
-
0 15px 15px -1px rgba($color, shadowOpacity(.04));
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Similar to shadow medium but without the bottom depth. Useful for popovers
|
|
31
|
-
// that drop UP rather than DOWN.
|
|
32
|
-
@mixin euiBottomShadowFlat($color: $euiShadowColor) {
|
|
33
|
-
box-shadow:
|
|
34
|
-
0 0 .8px rgba($color, shadowOpacity(.06)),
|
|
35
|
-
0 0 2px rgba($color, shadowOpacity(.04)),
|
|
36
|
-
0 0 5px rgba($color, shadowOpacity(.04)),
|
|
37
|
-
0 0 17px rgba($color, shadowOpacity(.03));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin euiBottomShadow($color: $euiShadowColor) {
|
|
41
|
-
box-shadow:
|
|
42
|
-
0 1px 5px rgba($color, shadowOpacity(.1)),
|
|
43
|
-
0 3.6px 13px rgba($color, shadowOpacity(.07)),
|
|
44
|
-
0 8.4px 23px rgba($color, shadowOpacity(.06)),
|
|
45
|
-
0 23px 35px rgba($color, shadowOpacity(.05));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
@mixin euiBottomShadowLarge(
|
|
49
|
-
$color: $euiShadowColor,
|
|
50
|
-
$opacity: 0,
|
|
51
|
-
$reverse: false
|
|
52
|
-
) {
|
|
53
|
-
@if ($reverse) {
|
|
54
|
-
box-shadow:
|
|
55
|
-
0 -2.7px 9px rgba($color, shadowOpacity(.13)),
|
|
56
|
-
0 -9.4px 24px rgba($color, shadowOpacity(.09)),
|
|
57
|
-
0 -21.8px 43px rgba($color, shadowOpacity(.08));
|
|
58
|
-
} @else {
|
|
59
|
-
box-shadow:
|
|
60
|
-
0 2.7px 9px rgba($color, shadowOpacity(.13)),
|
|
61
|
-
0 9.4px 24px rgba($color, shadowOpacity(.09)),
|
|
62
|
-
0 21.8px 43px rgba($color, shadowOpacity(.08));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// stylelint-disable color-named
|
|
67
|
-
@mixin euiOverflowShadow($direction: 'y', $side: 'both') {
|
|
68
|
-
$hideHeight: $euiScrollBarCornerThin * 1.25;
|
|
69
|
-
$gradient: null;
|
|
70
|
-
$gradientStart:
|
|
71
|
-
transparentize(red, .9) 0%,
|
|
72
|
-
transparentize(red, 0) $hideHeight;
|
|
73
|
-
$gradientEnd:
|
|
74
|
-
transparentize(red, 0) calc(100% - #{$hideHeight}),
|
|
75
|
-
transparentize(red, .9) 100%;
|
|
76
|
-
@if ($side == 'both' or $side == 'start' or $side == 'end') {
|
|
77
|
-
@if ($side == 'both') {
|
|
78
|
-
$gradient: $gradientStart, $gradientEnd;
|
|
79
|
-
} @else if ($side == 'start') {
|
|
80
|
-
$gradient: $gradientStart;
|
|
81
|
-
} @else {
|
|
82
|
-
$gradient: $gradientEnd;
|
|
83
|
-
}
|
|
84
|
-
} @else {
|
|
85
|
-
@warn "euiOverflowShadow() expects side to be 'both', 'start' or 'end' but got '#{$side}'";
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@if ($direction == 'y') {
|
|
89
|
-
mask-image: linear-gradient(to bottom, #{$gradient});
|
|
90
|
-
} @else if ($direction == 'x') {
|
|
91
|
-
mask-image: linear-gradient(to right, #{$gradient});
|
|
92
|
-
} @else {
|
|
93
|
-
@warn "euiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'";
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Chrome+Edge has a very bizarre edge case bug where `mask-image` stops working
|
|
97
|
-
// This workaround forces a stacking context on the scrolling container, which
|
|
98
|
-
// hopefully addresses the bug. @see https://github.com/elastic/eui/pull/7855
|
|
99
|
-
transform: translateZ(0);
|
|
100
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@mixin euiFocusRing($size: 'small', $amsterdamOnlyProp: null) {
|
|
2
|
-
@if $size == 'large' {
|
|
3
|
-
// It's always OK to use the focus animation. This will take precedence over times we turn it off individually like EuiButtonEmpty
|
|
4
|
-
// stylelint-disable-next-line declaration-no-important
|
|
5
|
-
animation: $euiAnimSpeedSlow $euiAnimSlightResistance 1 normal forwards focusRingAnimateLarge !important;
|
|
6
|
-
} @else {
|
|
7
|
-
// stylelint-disable-next-line declaration-no-important
|
|
8
|
-
animation: $euiAnimSpeedSlow $euiAnimSlightResistance 1 normal forwards focusRingAnimate !important;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Keyframe animation declarations can be found in
|
|
13
|
-
// utility/animations.scss
|
|
14
|
-
|
|
15
|
-
@mixin euiFocusBackground($color: $euiColorPrimary) {
|
|
16
|
-
background-color: tintOrShade($euiColorPrimary, ((1 - $euiFocusTransparency) * 100%), ((1 - $euiFocusTransparency) * 100%));
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
@mixin euiToolTipStyle($size: null) {
|
|
2
|
-
@include euiBottomShadow($color: $euiColorInk);
|
|
3
|
-
|
|
4
|
-
$euiTooltipBackgroundColor: tintOrShade($euiColorFullShade, 25%, 100%) !default;
|
|
5
|
-
$euiTooltipBorderColor: tintOrShade($euiColorFullShade, 35%, 80%) !default;
|
|
6
|
-
|
|
7
|
-
border-radius: $euiBorderRadius;
|
|
8
|
-
background-color: $euiTooltipBackgroundColor;
|
|
9
|
-
color: $euiColorGhost;
|
|
10
|
-
z-index: $euiZLevel9;
|
|
11
|
-
max-width: 256px;
|
|
12
|
-
overflow-wrap: break-word;
|
|
13
|
-
padding: $euiSizeS;
|
|
14
|
-
|
|
15
|
-
.euiHorizontalRule {
|
|
16
|
-
background-color: $euiTooltipBorderColor;
|
|
17
|
-
}
|
|
18
|
-
}
|