@elastic/eui 99.1.0-borealis.0 → 99.2.0-borealis.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/avatar/avatar.js +4 -10
- package/es/components/badge/badge.js +1 -1
- package/es/components/badge/beta_badge/beta_badge.js +1 -1
- package/es/components/basic_table/basic_table.js +1 -1
- package/es/components/basic_table/in_memory_table.js +1 -1
- package/es/components/button/button.js +1 -1
- package/es/components/button/button_display/_button_display.js +1 -1
- package/es/components/button/button_display/_button_display_content.js +1 -1
- package/es/components/button/button_empty/button_empty.js +1 -1
- package/es/components/button/button_group/button_group.js +1 -1
- package/es/components/button/button_group/button_group_button.js +1 -1
- package/es/components/button/button_icon/button_icon.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/card/card.js +2 -2
- package/es/components/card/card_select/card_select.js +1 -1
- package/es/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/es/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +2 -2
- package/es/components/color_picker/color_picker.js +3 -8
- package/es/components/comment_list/comment.js +2 -2
- package/es/components/comment_list/comment_event.js +1 -1
- package/es/components/comment_list/comment_list.js +2 -2
- package/es/components/comment_list/comment_timeline.js +1 -1
- package/es/components/context_menu/context_menu_item.js +1 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/es/components/datagrid/body/data_grid_body.js +7 -7
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/es/components/datagrid/controls/column_sorting.js +7 -7
- package/es/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/es/components/datagrid/data_grid.stories.utils.js +7 -7
- package/es/components/datagrid/utils/grid_height_width.js +1 -1
- package/es/components/datagrid/utils/in_memory.js +6 -6
- package/es/components/date_picker/date_picker.js +2 -2
- package/es/components/date_picker/date_picker_range.js +1 -1
- package/es/components/empty_prompt/empty_prompt.js +1 -1
- package/es/components/facet/facet_button.js +1 -1
- package/es/components/form/field_number/field_number.js +2 -2
- package/es/components/form/field_text/field_text.js +13 -5
- package/es/components/form/field_text/field_text.styles.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout.js +2 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/es/components/form/text_area/text_area.js +2 -2
- package/es/components/header/header_links/header_link.js +1 -1
- package/es/components/header/header_links/header_links.js +1 -1
- package/es/components/header/header_logo/header_logo.js +1 -1
- package/es/components/header/header_section/header_section_item_button.js +1 -1
- package/es/components/icon/assets/plugs.js +35 -0
- package/es/components/icon/assets/web.js +35 -0
- package/es/components/icon/icon.js +1 -1
- package/es/components/icon/icon_map.js +2 -0
- package/es/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/es/components/list_group/list_group.js +2 -2
- package/es/components/list_group/list_group_item.js +2 -2
- package/es/components/list_group/list_group_item_extra_action.js +1 -1
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/es/components/loading/loading_logo.js +1 -1
- package/es/components/markdown_editor/markdown_editor.js +1 -1
- package/es/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/es/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/es/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -1
- package/es/components/pagination/pagination_button.js +1 -1
- package/es/components/provider/provider.js +2 -2
- package/es/components/selectable/selectable_list/selectable_list.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/es/components/timeline/timeline_item_icon.js +1 -1
- package/es/components/toast/global_toast_list.js +1 -1
- package/es/components/toast/toast.js +1 -1
- package/es/components/tool_tip/icon_tip.js +1 -1
- package/es/services/color/eui_palettes.js +51 -26
- package/es/services/color/eui_palettes_hooks.js +74 -0
- package/es/services/color/index.js +1 -0
- package/es/services/color/vis_color_store.js +1 -1
- package/es/services/index.js +1 -0
- package/es/services/theme/context.js +3 -3
- package/es/services/theme/provider.js +0 -11
- package/es/themes/amsterdam/global_styling/variables/_colors.js +1 -1
- package/es/themes/index.js +1 -2
- package/es/themes/themes.js +1 -24
- package/eui.d.ts +584 -528
- package/lib/components/avatar/avatar.js +2 -8
- package/lib/components/badge/badge.js +1 -1
- package/lib/components/badge/beta_badge/beta_badge.js +1 -1
- package/lib/components/basic_table/basic_table.js +1 -1
- package/lib/components/basic_table/in_memory_table.js +1 -1
- package/lib/components/button/button.js +1 -1
- package/lib/components/button/button_display/_button_display.js +1 -1
- package/lib/components/button/button_display/_button_display_content.js +1 -1
- package/lib/components/button/button_empty/button_empty.js +1 -1
- package/lib/components/button/button_group/button_group.js +1 -1
- package/lib/components/button/button_group/button_group_button.js +1 -1
- package/lib/components/button/button_icon/button_icon.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/card/card.js +2 -2
- package/lib/components/card/card_select/card_select.js +1 -1
- package/lib/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/lib/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +2 -2
- package/lib/components/color_picker/color_picker.js +2 -7
- package/lib/components/comment_list/comment.js +2 -2
- package/lib/components/comment_list/comment_event.js +1 -1
- package/lib/components/comment_list/comment_list.js +2 -2
- package/lib/components/comment_list/comment_timeline.js +1 -1
- package/lib/components/context_menu/context_menu_item.js +1 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/lib/components/datagrid/body/data_grid_body.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/lib/components/datagrid/controls/column_sorting.js +7 -7
- package/lib/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +7 -7
- package/lib/components/datagrid/utils/grid_height_width.js +1 -1
- package/lib/components/datagrid/utils/in_memory.js +6 -6
- package/lib/components/date_picker/date_picker.js +2 -2
- package/lib/components/date_picker/date_picker_range.js +1 -1
- package/lib/components/empty_prompt/empty_prompt.js +1 -1
- package/lib/components/facet/facet_button.js +1 -1
- package/lib/components/form/field_number/field_number.js +2 -2
- package/lib/components/form/field_text/field_text.js +13 -5
- package/lib/components/form/field_text/field_text.styles.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout.js +2 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/lib/components/form/text_area/text_area.js +2 -2
- package/lib/components/header/header_links/header_link.js +1 -1
- package/lib/components/header/header_links/header_links.js +1 -1
- package/lib/components/header/header_logo/header_logo.js +1 -1
- package/lib/components/header/header_section/header_section_item_button.js +1 -1
- package/lib/components/icon/assets/plugs.js +42 -0
- package/lib/components/icon/assets/web.js +42 -0
- package/lib/components/icon/icon.js +1 -1
- package/lib/components/icon/icon_map.js +2 -0
- package/lib/components/icon/svgs/plugs.svg +3 -0
- package/lib/components/icon/svgs/web.svg +3 -0
- package/lib/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/lib/components/list_group/list_group.js +2 -2
- package/lib/components/list_group/list_group_item.js +2 -2
- package/lib/components/list_group/list_group_item_extra_action.js +1 -1
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/lib/components/loading/loading_logo.js +1 -1
- package/lib/components/markdown_editor/markdown_editor.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/lib/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -1
- package/lib/components/pagination/pagination_button.js +1 -1
- package/lib/components/provider/provider.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list.js +1 -1
- package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/lib/components/timeline/timeline_item_icon.js +1 -1
- package/lib/components/toast/global_toast_list.js +1 -1
- package/lib/components/toast/toast.js +1 -1
- package/lib/components/tool_tip/icon_tip.js +1 -1
- package/lib/services/color/eui_palettes.js +51 -26
- package/lib/services/color/eui_palettes_hooks.js +78 -0
- package/lib/services/color/index.js +12 -0
- package/lib/services/color/vis_color_store.js +2 -2
- package/lib/services/index.js +12 -0
- package/lib/services/theme/context.js +3 -3
- package/lib/services/theme/provider.js +0 -11
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +74 -74
- package/lib/themes/index.js +4 -18
- package/lib/themes/themes.js +1 -26
- package/optimize/es/components/avatar/avatar.js +3 -9
- package/optimize/es/components/color_picker/color_picker.js +3 -8
- package/optimize/es/components/datagrid/utils/grid_height_width.js +1 -1
- package/optimize/es/components/form/field_text/field_text.js +6 -3
- package/optimize/es/components/form/field_text/field_text.styles.js +1 -1
- package/optimize/es/components/icon/assets/plugs.js +34 -0
- package/optimize/es/components/icon/assets/web.js +34 -0
- package/optimize/es/components/icon/icon_map.js +2 -0
- package/optimize/es/components/provider/provider.js +2 -2
- package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/optimize/es/services/color/eui_palettes.js +51 -26
- package/optimize/es/services/color/eui_palettes_hooks.js +71 -0
- package/optimize/es/services/color/index.js +1 -0
- package/optimize/es/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/index.js +1 -0
- package/optimize/es/services/theme/context.js +3 -3
- package/optimize/es/services/theme/provider.js +0 -11
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +1 -1
- package/optimize/es/themes/index.js +1 -2
- package/optimize/es/themes/themes.js +1 -24
- package/optimize/lib/components/avatar/avatar.js +1 -7
- package/optimize/lib/components/color_picker/color_picker.js +2 -7
- package/optimize/lib/components/datagrid/utils/grid_height_width.js +1 -1
- package/optimize/lib/components/form/field_text/field_text.js +6 -3
- package/optimize/lib/components/form/field_text/field_text.styles.js +1 -1
- package/optimize/lib/components/icon/assets/plugs.js +42 -0
- package/optimize/lib/components/icon/assets/web.js +42 -0
- package/optimize/lib/components/icon/icon_map.js +2 -0
- package/optimize/lib/components/icon/svgs/plugs.svg +3 -0
- package/optimize/lib/components/icon/svgs/web.svg +3 -0
- package/optimize/lib/components/provider/provider.js +2 -2
- package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/optimize/lib/services/color/eui_palettes.js +51 -26
- package/optimize/lib/services/color/eui_palettes_hooks.js +76 -0
- package/optimize/lib/services/color/index.js +12 -0
- package/optimize/lib/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/index.js +12 -0
- package/optimize/lib/services/theme/context.js +3 -3
- package/optimize/lib/services/theme/provider.js +0 -11
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +74 -74
- package/optimize/lib/themes/index.js +4 -18
- package/optimize/lib/themes/themes.js +1 -26
- package/package.json +3 -3
- package/test-env/components/avatar/avatar.js +2 -8
- package/test-env/components/badge/badge.js +1 -1
- package/test-env/components/badge/beta_badge/beta_badge.js +1 -1
- package/test-env/components/basic_table/basic_table.js +1 -1
- package/test-env/components/basic_table/in_memory_table.js +1 -1
- package/test-env/components/button/button.js +1 -1
- package/test-env/components/button/button_display/_button_display.js +1 -1
- package/test-env/components/button/button_display/_button_display_content.js +1 -1
- package/test-env/components/button/button_empty/button_empty.js +1 -1
- package/test-env/components/button/button_group/button_group.js +1 -1
- package/test-env/components/button/button_group/button_group_button.js +1 -1
- package/test-env/components/button/button_icon/button_icon.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/card/card.js +2 -2
- package/test-env/components/card/card_select/card_select.js +1 -1
- package/test-env/components/collapsible_nav/collapsible_nav_group/collapsible_nav_group.js +1 -1
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_button.js +1 -1
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_item.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsed/collapsed_nav_popover.js +2 -2
- package/test-env/components/collapsible_nav_beta/collapsible_nav_item/collapsible_nav_item.js +4 -4
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +2 -2
- package/test-env/components/color_picker/color_picker.js +2 -7
- package/test-env/components/comment_list/comment.js +2 -2
- package/test-env/components/comment_list/comment_event.js +1 -1
- package/test-env/components/comment_list/comment_list.js +2 -2
- package/test-env/components/comment_list/comment_timeline.js +1 -1
- package/test-env/components/context_menu/context_menu_item.js +1 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +12 -12
- package/test-env/components/datagrid/body/data_grid_body.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -7
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -7
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -6
- package/test-env/components/datagrid/controls/column_sorting.js +7 -7
- package/test-env/components/datagrid/controls/column_sorting_draggable.js +1 -1
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +1 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +7 -7
- package/test-env/components/datagrid/utils/grid_height_width.js +1 -1
- package/test-env/components/datagrid/utils/in_memory.js +6 -6
- package/test-env/components/date_picker/date_picker.js +2 -2
- package/test-env/components/date_picker/date_picker_range.js +1 -1
- package/test-env/components/empty_prompt/empty_prompt.js +1 -1
- package/test-env/components/facet/facet_button.js +1 -1
- package/test-env/components/form/field_number/field_number.js +2 -2
- package/test-env/components/form/field_text/field_text.js +13 -5
- package/test-env/components/form/field_text/field_text.styles.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout.js +2 -2
- package/test-env/components/form/form_control_layout/form_control_layout_custom_icon.js +1 -1
- package/test-env/components/form/form_control_layout/form_control_layout_icons.js +2 -2
- package/test-env/components/form/text_area/text_area.js +2 -2
- package/test-env/components/header/header_links/header_link.js +1 -1
- package/test-env/components/header/header_links/header_links.js +1 -1
- package/test-env/components/header/header_logo/header_logo.js +1 -1
- package/test-env/components/header/header_section/header_section_item_button.js +1 -1
- package/test-env/components/icon/assets/plugs.js +42 -0
- package/test-env/components/icon/assets/web.js +42 -0
- package/test-env/components/icon/icon_map.js +2 -0
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +1 -1
- package/test-env/components/list_group/list_group.js +2 -2
- package/test-env/components/list_group/list_group_item.js +2 -2
- package/test-env/components/list_group/list_group_item_extra_action.js +1 -1
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +4 -4
- package/test-env/components/loading/loading_logo.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_drop_zone.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_footer.js +1 -1
- package/test-env/components/markdown_editor/markdown_editor_toolbar.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -1
- package/test-env/components/pagination/pagination_button.js +1 -1
- package/test-env/components/provider/provider.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list.js +1 -1
- package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +1 -1
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +1 -1
- package/test-env/components/timeline/timeline_item_icon.js +1 -1
- package/test-env/components/toast/global_toast_list.js +1 -1
- package/test-env/components/toast/toast.js +1 -1
- package/test-env/components/tool_tip/icon_tip.js +1 -1
- package/test-env/services/color/eui_palettes.js +51 -26
- package/test-env/services/color/eui_palettes_hooks.js +76 -0
- package/test-env/services/color/index.js +12 -0
- package/test-env/services/color/vis_color_store.js +2 -2
- package/test-env/services/index.js +12 -0
- package/test-env/services/theme/context.js +3 -3
- package/test-env/services/theme/provider.js +0 -11
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +74 -74
- package/test-env/themes/index.js +4 -18
- package/test-env/themes/themes.js +1 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["id", "name", "placeholder", "value", "className", "icon", "isInvalid", "inputRef", "fullWidth", "isLoading", "compressed", "prepend", "append", "readOnly", "controlOnly"];
|
|
3
|
+
var _excluded = ["id", "name", "placeholder", "value", "className", "icon", "isInvalid", "inputRef", "fullWidth", "isLoading", "compressed", "prepend", "append", "disabled", "readOnly", "controlOnly"];
|
|
4
4
|
/*
|
|
5
5
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
6
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -34,7 +34,9 @@ export var EuiFieldText = function EuiFieldText(props) {
|
|
|
34
34
|
compressed = props.compressed,
|
|
35
35
|
prepend = props.prepend,
|
|
36
36
|
append = props.append,
|
|
37
|
-
|
|
37
|
+
disabled = props.disabled,
|
|
38
|
+
_props$readOnly = props.readOnly,
|
|
39
|
+
readOnly = _props$readOnly === void 0 ? disabled : _props$readOnly,
|
|
38
40
|
controlOnly = props.controlOnly,
|
|
39
41
|
rest = _objectWithoutProperties(props, _excluded);
|
|
40
42
|
var classes = classNames('euiFieldText', className, {
|
|
@@ -53,6 +55,7 @@ export var EuiFieldText = function EuiFieldText(props) {
|
|
|
53
55
|
css: cssStyles,
|
|
54
56
|
value: value,
|
|
55
57
|
ref: inputRef,
|
|
58
|
+
disabled: disabled,
|
|
56
59
|
readOnly: readOnly
|
|
57
60
|
}, rest)));
|
|
58
61
|
if (controlOnly) return control;
|
|
@@ -61,8 +64,8 @@ export var EuiFieldText = function EuiFieldText(props) {
|
|
|
61
64
|
fullWidth: fullWidth,
|
|
62
65
|
isLoading: isLoading,
|
|
63
66
|
isInvalid: isInvalid,
|
|
64
|
-
isDisabled: rest.disabled,
|
|
65
67
|
compressed: compressed,
|
|
68
|
+
isDisabled: disabled,
|
|
66
69
|
readOnly: readOnly,
|
|
67
70
|
prepend: prepend,
|
|
68
71
|
append: append,
|
|
@@ -11,7 +11,7 @@ import { euiFormControlStyles } from '../form.styles';
|
|
|
11
11
|
export var euiFieldTextStyles = function euiFieldTextStyles(euiThemeContext) {
|
|
12
12
|
var formStyles = euiFormControlStyles(euiThemeContext);
|
|
13
13
|
return {
|
|
14
|
-
euiFieldText: /*#__PURE__*/css(formStyles.shared, " &:invalid{", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}
|
|
14
|
+
euiFieldText: /*#__PURE__*/css(formStyles.shared, " &:invalid{", formStyles.invalid, ";}&:focus{", formStyles.focus, ";}&[readOnly]{", formStyles.readOnly, ";}&:disabled{", formStyles.disabled, ";}&:autofill{", formStyles.autoFill, ";};label:euiFieldText;"),
|
|
15
15
|
// Skip the css() on the default height to avoid generating a className
|
|
16
16
|
uncompressed: formStyles.uncompressed,
|
|
17
17
|
compressed: /*#__PURE__*/css(formStyles.compressed, ";label:compressed;"),
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var EuiIconPlugs = function EuiIconPlugs(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return ___EmotionJSX("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: 16,
|
|
23
|
+
height: 16,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
27
|
+
id: titleId
|
|
28
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "m15.354 1.354-2.08 2.08a3 3 0 0 1-.324 3.859l-1.414 1.414-4.243-4.242L8.707 3.05a3 3 0 0 1 3.86-.324l2.08-2.08.707.708Zm-5.94 2.403-.707.708 2.829 2.828.707-.707a2 2 0 1 0-2.829-2.829ZM5.171 8 3.757 6.586l-.707.707.707.707-.707.707a3 3 0 0 0-.324 3.86l-2.08 2.08.708.707 2.079-2.08a3 3 0 0 0 3.86-.324l.706-.707.708.707.707-.707L8 10.829 9.768 9.06l-.707-.707-1.769 1.768-1.414-1.415L7.647 6.94l-.708-.707L5.171 8ZM3.757 9.414l.707-.707 2.828 2.829-.707.707a2 2 0 0 1-2.828-2.829Z",
|
|
31
|
+
clipRule: "evenodd"
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
export var icon = EuiIconPlugs;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
+
var _excluded = ["title", "titleId"];
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js
|
|
13
|
+
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
|
+
var EuiIconWeb = function EuiIconWeb(_ref) {
|
|
17
|
+
var title = _ref.title,
|
|
18
|
+
titleId = _ref.titleId,
|
|
19
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
return ___EmotionJSX("svg", _extends({
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
width: 16,
|
|
23
|
+
height: 16,
|
|
24
|
+
viewBox: "0 0 16 16",
|
|
25
|
+
"aria-labelledby": titleId
|
|
26
|
+
}, props), title ? ___EmotionJSX("title", {
|
|
27
|
+
id: titleId
|
|
28
|
+
}, title) : null, ___EmotionJSX("path", {
|
|
29
|
+
fillRule: "evenodd",
|
|
30
|
+
d: "M2.208 2H1V1h13a1 1 0 0 1 1 1v13h-1v-1.207a11.437 11.437 0 0 0-5.214-1.395l-.603 1.043-.866-.5.602-1.043A11.562 11.562 0 0 0 4.102 8.08l-1.043.602-.5-.866 1.043-.603A11.438 11.438 0 0 0 2.208 2Zm1.125 0a12.429 12.429 0 0 1 1.245 4.651L6.2 5.715A8.452 8.452 0 0 0 5.206 2H3.333Zm2.99 0c.453.974.746 2.037.844 3.156l1.629-.94A5.466 5.466 0 0 0 8.203 2h-1.88Zm2.981 0a6.46 6.46 0 0 1 .446 1.665L12.634 2h-3.33Zm3.83.866-2.886 1.666c.459.35.87.761 1.22 1.22l1.666-2.886Zm-2.216 3.839a5.531 5.531 0 0 0-1.623-1.623l-1.629.94a9.55 9.55 0 0 1 2.311 2.312l.94-1.63ZM9.419 9.3a8.547 8.547 0 0 0-2.72-2.72l-1.623.937a12.566 12.566 0 0 1 3.406 3.406L9.419 9.3Zm-.07 2.121c1.66.112 3.23.547 4.651 1.244v-1.872a8.451 8.451 0 0 0-3.715-.994l-.936 1.622Zm1.495-2.59A9.442 9.442 0 0 1 14 9.678v-1.88a5.464 5.464 0 0 0-2.216-.593l-.94 1.629Zm1.49-2.582A6.457 6.457 0 0 1 14 6.696v-3.33L12.335 6.25Z",
|
|
31
|
+
clipRule: "evenodd"
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
export var icon = EuiIconWeb;
|
|
@@ -346,6 +346,7 @@ export var typeToPathMap = {
|
|
|
346
346
|
pivot: 'pivot',
|
|
347
347
|
play: 'play',
|
|
348
348
|
playFilled: 'playFilled',
|
|
349
|
+
plugs: 'plugs',
|
|
349
350
|
plus: 'plus',
|
|
350
351
|
plusInCircle: 'plus_in_circle',
|
|
351
352
|
plusInCircleFilled: 'plus_in_circle_filled',
|
|
@@ -460,6 +461,7 @@ export var typeToPathMap = {
|
|
|
460
461
|
alert: 'warning',
|
|
461
462
|
// NOTE: This is an undocumented alias for `warning`, added for legacy compatability with Elastic Charts
|
|
462
463
|
watchesApp: 'app_watches',
|
|
464
|
+
web: 'web',
|
|
463
465
|
wordWrap: 'wordWrap',
|
|
464
466
|
wordWrapDisabled: 'wordWrapDisabled',
|
|
465
467
|
workplaceSearchApp: 'app_workplace_search',
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
10
11
|
import { EuiThemeProvider } from '../../services';
|
|
11
12
|
import { emitEuiProviderWarning } from '../../services/theme/warning';
|
|
12
13
|
import { cache as fallbackCache } from '../../services/emotion/css';
|
|
13
14
|
import { EuiGlobalStyles } from '../../global_styling/reset/global_styles';
|
|
14
15
|
import { EuiUtilityClasses } from '../../global_styling/utility/utility';
|
|
15
|
-
import { EuiThemeAmsterdam } from '../../themes';
|
|
16
16
|
import { EuiCacheProvider } from './cache';
|
|
17
17
|
import { EuiSystemColorModeProvider } from './system_color_mode';
|
|
18
18
|
import { EuiProviderNestedCheck, useIsNestedEuiProvider } from './nested';
|
|
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
|
|
|
26
26
|
var _ref$cache = _ref.cache,
|
|
27
27
|
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
28
28
|
_ref$theme = _ref.theme,
|
|
29
|
-
theme = _ref$theme === void 0 ?
|
|
29
|
+
theme = _ref$theme === void 0 ? EuiThemeBorealis : _ref$theme,
|
|
30
30
|
_ref$globalStyles = _ref.globalStyles,
|
|
31
31
|
Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
32
32
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -10,7 +10,6 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
10
10
|
import { css } from '@emotion/react';
|
|
11
11
|
import { euiPaletteColorBlind, makeHighContrastColor } from '../../../services';
|
|
12
12
|
import { euiFontSize, logicalCSS } from '../../../global_styling';
|
|
13
|
-
var visColors = euiPaletteColorBlind();
|
|
14
13
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
15
14
|
name: "q12130-euiSelectableTemplateSitewide__listItem",
|
|
16
15
|
styles: "&:hover,&.euiSelectableListItem-isFocused{&:not([aria-disabled='true']){.euiSelectableListItem__text{text-decoration:none;}.euiSelectableTemplateSitewide__listItemTitle{text-decoration:underline;}}};label:euiSelectableTemplateSitewide__listItem;"
|
|
@@ -29,6 +28,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
29
28
|
};
|
|
30
29
|
export var euiSelectableTemplateSitewideStyles = function euiSelectableTemplateSitewideStyles(euiThemeContext) {
|
|
31
30
|
var euiTheme = euiThemeContext.euiTheme;
|
|
31
|
+
var visColors = euiPaletteColorBlind();
|
|
32
32
|
return {
|
|
33
33
|
euiSelectableTemplateSitewide: _ref2,
|
|
34
34
|
// Override EuiSelectable's default item underline
|
|
@@ -44,9 +44,10 @@ export var euiPaletteColorBlind = function euiPaletteColorBlind() {
|
|
|
44
44
|
_ref2$sortBy = _ref2.sortBy,
|
|
45
45
|
sortBy = _ref2$sortBy === void 0 ? 'default' : _ref2$sortBy,
|
|
46
46
|
_ref2$sortShift = _ref2.sortShift,
|
|
47
|
-
sortShift = _ref2$sortShift === void 0 ? '-100' : _ref2$sortShift
|
|
48
|
-
|
|
49
|
-
var
|
|
47
|
+
sortShift = _ref2$sortShift === void 0 ? '-100' : _ref2$sortShift,
|
|
48
|
+
colors = _ref2.colors;
|
|
49
|
+
var _colors = [];
|
|
50
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
50
51
|
var base = [visColors.euiColorVis0, visColors.euiColorVis1, visColors.euiColorVis2, visColors.euiColorVis3, visColors.euiColorVis4, visColors.euiColorVis5, visColors.euiColorVis6, visColors.euiColorVis7, visColors.euiColorVis8, visColors.euiColorVis9];
|
|
51
52
|
if (sortBy === 'natural') {
|
|
52
53
|
// Sort the colors based on the color wheel, but shifting the values based on sortShift
|
|
@@ -71,23 +72,23 @@ export var euiPaletteColorBlind = function euiPaletteColorBlind() {
|
|
|
71
72
|
}
|
|
72
73
|
});
|
|
73
74
|
if (order === 'group') {
|
|
74
|
-
|
|
75
|
+
_colors = flatten(palettes);
|
|
75
76
|
} else {
|
|
76
77
|
var _loop = function _loop(i) {
|
|
77
|
-
var
|
|
78
|
+
var _colors2;
|
|
78
79
|
var rotation = palettes.map(function (palette) {
|
|
79
80
|
return palette[i];
|
|
80
81
|
});
|
|
81
|
-
(
|
|
82
|
+
(_colors2 = _colors).push.apply(_colors2, _toConsumableArray(rotation));
|
|
82
83
|
};
|
|
83
84
|
for (var i = 0; i < rotations; i++) {
|
|
84
85
|
_loop(i);
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
} else {
|
|
88
|
-
|
|
89
|
+
_colors = base;
|
|
89
90
|
}
|
|
90
|
-
return
|
|
91
|
+
return _colors;
|
|
91
92
|
};
|
|
92
93
|
|
|
93
94
|
/**
|
|
@@ -99,11 +100,12 @@ export var euiPaletteColorBlind = function euiPaletteColorBlind() {
|
|
|
99
100
|
*/
|
|
100
101
|
export var euiPaletteColorBlindBehindText = function euiPaletteColorBlindBehindText() {
|
|
101
102
|
var paletteProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
102
|
-
var hasVisColorAdjustment =
|
|
103
|
+
var hasVisColorAdjustment = paletteProps.hasVisColorAdjustment;
|
|
104
|
+
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
103
105
|
var originalPalette = euiPaletteColorBlind(paletteProps);
|
|
104
106
|
|
|
105
107
|
// new theme palette has required contrast, we don't need to adjust them
|
|
106
|
-
if (!
|
|
108
|
+
if (!_hasVisColorAdjustment) return originalPalette;
|
|
107
109
|
var newPalette = originalPalette.map(function (color) {
|
|
108
110
|
return chroma(color).brighten(0.5).hex();
|
|
109
111
|
});
|
|
@@ -120,7 +122,9 @@ var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
|
|
|
120
122
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
121
123
|
*/
|
|
122
124
|
export var euiPaletteForLightBackground = function euiPaletteForLightBackground() {
|
|
123
|
-
var
|
|
125
|
+
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
126
|
+
colors = _ref3.colors;
|
|
127
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
124
128
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
125
129
|
return color.includes('AsTextLight');
|
|
126
130
|
});
|
|
@@ -132,7 +136,9 @@ export var euiPaletteForLightBackground = function euiPaletteForLightBackground(
|
|
|
132
136
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
133
137
|
*/
|
|
134
138
|
export var euiPaletteForDarkBackground = function euiPaletteForDarkBackground() {
|
|
135
|
-
var
|
|
139
|
+
var _ref4 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
140
|
+
colors = _ref4.colors;
|
|
141
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
136
142
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
137
143
|
return color.includes('AsTextDark');
|
|
138
144
|
});
|
|
@@ -144,7 +150,9 @@ export var euiPaletteForDarkBackground = function euiPaletteForDarkBackground()
|
|
|
144
150
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
145
151
|
*/
|
|
146
152
|
export var euiPaletteForStatus = function euiPaletteForStatus(steps) {
|
|
147
|
-
var
|
|
153
|
+
var _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
154
|
+
colors = _ref5.colors;
|
|
155
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
148
156
|
if (steps === 1) {
|
|
149
157
|
return [visColors.euiColorVisSuccess0];
|
|
150
158
|
}
|
|
@@ -159,8 +167,11 @@ export var euiPaletteForStatus = function euiPaletteForStatus(steps) {
|
|
|
159
167
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
160
168
|
*/
|
|
161
169
|
export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
|
|
162
|
-
var
|
|
163
|
-
|
|
170
|
+
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
171
|
+
colors = _ref6.colors,
|
|
172
|
+
hasVisColorAdjustment = _ref6.hasVisColorAdjustment;
|
|
173
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
174
|
+
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
164
175
|
if (steps === 1) {
|
|
165
176
|
return [visColors.euiColorVisCool2];
|
|
166
177
|
} else if (steps <= 3) {
|
|
@@ -168,7 +179,7 @@ export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
|
|
|
168
179
|
}
|
|
169
180
|
var cools = colorPalette([visColors.euiColorVisCool2, visColors.euiColorVisCool1, visColors.euiColorVisCool0], 3);
|
|
170
181
|
var warms = colorPalette([visColors.euiColorVisWarm0, visColors.euiColorVisWarm1, visColors.euiColorVisWarm2], 3);
|
|
171
|
-
var paletteColors =
|
|
182
|
+
var paletteColors = _hasVisColorAdjustment ? [].concat(_toConsumableArray(cools), _toConsumableArray(warms)) : [].concat(_toConsumableArray(cools), [visColors.euiColorVisNeutral0], _toConsumableArray(warms));
|
|
172
183
|
return euiPalette(paletteColors, steps, true);
|
|
173
184
|
};
|
|
174
185
|
|
|
@@ -177,12 +188,15 @@ export var euiPaletteForTemperature = function euiPaletteForTemperature(steps) {
|
|
|
177
188
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
178
189
|
*/
|
|
179
190
|
export var euiPaletteComplementary = function euiPaletteComplementary(steps) {
|
|
180
|
-
var
|
|
181
|
-
|
|
191
|
+
var _ref7 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
192
|
+
colors = _ref7.colors,
|
|
193
|
+
hasVisColorAdjustment = _ref7.hasVisColorAdjustment;
|
|
194
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
195
|
+
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
182
196
|
if (steps === 1) {
|
|
183
197
|
return [visColors.euiColorVisComplementary0];
|
|
184
198
|
}
|
|
185
|
-
var paletteColors =
|
|
199
|
+
var paletteColors = _hasVisColorAdjustment ? [visColors.euiColorVisComplementary0, visColors.euiColorVisComplementary1] : [visColors.euiColorVisComplementary0, visColors.euiColorVisNeutral0, visColors.euiColorVisComplementary1];
|
|
186
200
|
return euiPalette(paletteColors, steps, true);
|
|
187
201
|
};
|
|
188
202
|
|
|
@@ -191,7 +205,9 @@ export var euiPaletteComplementary = function euiPaletteComplementary(steps) {
|
|
|
191
205
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
192
206
|
*/
|
|
193
207
|
export var euiPaletteRed = function euiPaletteRed(steps) {
|
|
194
|
-
var
|
|
208
|
+
var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
209
|
+
colors = _ref8.colors;
|
|
210
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
195
211
|
if (steps === 1) {
|
|
196
212
|
return [visColors.euiColorVisDanger1];
|
|
197
213
|
}
|
|
@@ -203,7 +219,9 @@ export var euiPaletteRed = function euiPaletteRed(steps) {
|
|
|
203
219
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
204
220
|
*/
|
|
205
221
|
export var euiPaletteGreen = function euiPaletteGreen(steps) {
|
|
206
|
-
var
|
|
222
|
+
var _ref9 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
223
|
+
colors = _ref9.colors;
|
|
224
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
207
225
|
if (steps === 1) {
|
|
208
226
|
return [visColors.euiColorVisSuccess1];
|
|
209
227
|
}
|
|
@@ -215,12 +233,15 @@ export var euiPaletteGreen = function euiPaletteGreen(steps) {
|
|
|
215
233
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
216
234
|
*/
|
|
217
235
|
export var euiPaletteCool = function euiPaletteCool(steps) {
|
|
218
|
-
var
|
|
219
|
-
|
|
236
|
+
var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
237
|
+
colors = _ref10.colors,
|
|
238
|
+
hasVisColorAdjustment = _ref10.hasVisColorAdjustment;
|
|
239
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
240
|
+
var _hasVisColorAdjustment = hasVisColorAdjustment !== null && hasVisColorAdjustment !== void 0 ? hasVisColorAdjustment : EUI_VIS_COLOR_STORE.hasVisColorAdjustment;
|
|
220
241
|
if (steps === 1) {
|
|
221
242
|
return [visColors.euiColorVisCool1];
|
|
222
243
|
}
|
|
223
|
-
return euiPalette([
|
|
244
|
+
return euiPalette([_hasVisColorAdjustment ? visColors.euiColorVisNeutral0 : visColors.euiColorVisCool0, visColors.euiColorVisCool1, visColors.euiColorVisCool2], steps);
|
|
224
245
|
};
|
|
225
246
|
|
|
226
247
|
/**
|
|
@@ -228,7 +249,9 @@ export var euiPaletteCool = function euiPaletteCool(steps) {
|
|
|
228
249
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
229
250
|
*/
|
|
230
251
|
export var euiPaletteWarm = function euiPaletteWarm(steps) {
|
|
231
|
-
var
|
|
252
|
+
var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
253
|
+
colors = _ref11.colors;
|
|
254
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
232
255
|
if (steps === 1) {
|
|
233
256
|
return [visColors.euiColorVisWarm2];
|
|
234
257
|
}
|
|
@@ -240,7 +263,9 @@ export var euiPaletteWarm = function euiPaletteWarm(steps) {
|
|
|
240
263
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
241
264
|
*/
|
|
242
265
|
export var euiPaletteGray = function euiPaletteGray(steps) {
|
|
243
|
-
var
|
|
266
|
+
var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
267
|
+
colors = _ref12.colors;
|
|
268
|
+
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
244
269
|
if (steps === 1) {
|
|
245
270
|
return [visColors.euiColorVisGrey1];
|
|
246
271
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
/*
|
|
5
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
6
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
7
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
8
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
9
|
+
* Side Public License, v 1.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { useMemo } from 'react';
|
|
13
|
+
import { useEuiTheme } from '../theme/hooks';
|
|
14
|
+
import { euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteGreen, euiPaletteRed, euiPaletteWarm } from './eui_palettes';
|
|
15
|
+
export var useEuiPaletteColorBlind = function useEuiPaletteColorBlind(args) {
|
|
16
|
+
return _useEuiPaletteFn(euiPaletteColorBlind, args);
|
|
17
|
+
};
|
|
18
|
+
export var useEuiPaletteColorBlindBehindText = function useEuiPaletteColorBlindBehindText(args) {
|
|
19
|
+
return _useEuiPaletteFn(euiPaletteColorBlindBehindText, args);
|
|
20
|
+
};
|
|
21
|
+
export var useEuiPaletteForStatus = function useEuiPaletteForStatus(steps) {
|
|
22
|
+
return _useEuiPaletteWithStepsFn(euiPaletteForStatus, steps);
|
|
23
|
+
};
|
|
24
|
+
export var useEuiPaletteForTemperature = function useEuiPaletteForTemperature(steps) {
|
|
25
|
+
return _useEuiPaletteWithStepsFn(euiPaletteForTemperature, steps);
|
|
26
|
+
};
|
|
27
|
+
export var useEuiPaletteComplementary = function useEuiPaletteComplementary(steps) {
|
|
28
|
+
return _useEuiPaletteWithStepsFn(euiPaletteComplementary, steps);
|
|
29
|
+
};
|
|
30
|
+
export var useEuiPaletteRed = function useEuiPaletteRed(steps) {
|
|
31
|
+
return _useEuiPaletteWithStepsFn(euiPaletteRed, steps);
|
|
32
|
+
};
|
|
33
|
+
export var useEuiPaletteGreen = function useEuiPaletteGreen(steps) {
|
|
34
|
+
return _useEuiPaletteWithStepsFn(euiPaletteGreen, steps);
|
|
35
|
+
};
|
|
36
|
+
export var useEuiPaletteCool = function useEuiPaletteCool(steps) {
|
|
37
|
+
return _useEuiPaletteWithStepsFn(euiPaletteCool, steps);
|
|
38
|
+
};
|
|
39
|
+
export var useEuiPaletteWarm = function useEuiPaletteWarm(steps) {
|
|
40
|
+
return _useEuiPaletteWithStepsFn(euiPaletteWarm, steps);
|
|
41
|
+
};
|
|
42
|
+
export var useEuiPaletteGray = function useEuiPaletteGray(steps) {
|
|
43
|
+
return _useEuiPaletteWithStepsFn(euiPaletteGray, steps);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/* Internal helper utils */
|
|
47
|
+
|
|
48
|
+
var _useEuiPaletteFn = function _useEuiPaletteFn(palleteFn, args) {
|
|
49
|
+
var _useEuiTheme = useEuiTheme(),
|
|
50
|
+
euiTheme = _useEuiTheme.euiTheme;
|
|
51
|
+
var colors = euiTheme.colors,
|
|
52
|
+
flags = euiTheme.flags;
|
|
53
|
+
return useMemo(function () {
|
|
54
|
+
return palleteFn(_objectSpread(_objectSpread({}, args), {}, {
|
|
55
|
+
colors: colors.vis,
|
|
56
|
+
hasVisColorAdjustment: flags.hasVisColorAdjustment
|
|
57
|
+
}));
|
|
58
|
+
}, [colors, flags, args, palleteFn]);
|
|
59
|
+
};
|
|
60
|
+
var _useEuiPaletteWithStepsFn = function _useEuiPaletteWithStepsFn(palleteFn, steps) {
|
|
61
|
+
var _useEuiTheme2 = useEuiTheme(),
|
|
62
|
+
euiTheme = _useEuiTheme2.euiTheme;
|
|
63
|
+
var colors = euiTheme.colors,
|
|
64
|
+
flags = euiTheme.flags;
|
|
65
|
+
return useMemo(function () {
|
|
66
|
+
return palleteFn(steps, {
|
|
67
|
+
colors: colors.vis,
|
|
68
|
+
hasVisColorAdjustment: flags.hasVisColorAdjustment
|
|
69
|
+
});
|
|
70
|
+
}, [colors, flags, steps, palleteFn]);
|
|
71
|
+
};
|
|
@@ -19,6 +19,7 @@ export { VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR } from './visualizati
|
|
|
19
19
|
export { EUI_VIS_COLOR_STORE } from './vis_color_store';
|
|
20
20
|
export { colorPalette } from './color_palette';
|
|
21
21
|
export { euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplementary, euiPaletteRed, euiPaletteGreen, euiPaletteCool, euiPaletteWarm, euiPaletteGray } from './eui_palettes';
|
|
22
|
+
export * from './eui_palettes_hooks';
|
|
22
23
|
export { getSteppedGradient } from './stepped_gradient';
|
|
23
24
|
export * from './manipulation';
|
|
24
25
|
export * from './contrast';
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { EuiVisColorStore } from '@elastic/eui-theme-common';
|
|
10
|
-
import { colorVis } from '
|
|
10
|
+
import { colorVis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
|
|
12
12
|
// initialsetup of Vis color storage with default colors
|
|
13
13
|
export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
|
|
@@ -13,6 +13,7 @@ export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from './alignment';
|
|
|
13
13
|
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint } from './breakpoint';
|
|
14
14
|
export { CanvasTextUtils } from './canvas';
|
|
15
15
|
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplementary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteRed, euiPaletteGreen, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, EUI_VIS_COLOR_STORE, wcagContrastMin } from './color';
|
|
16
|
+
export * from './color/eui_palettes_hooks';
|
|
16
17
|
export { useColorPickerState, useColorStopsState } from './color_picker';
|
|
17
18
|
export * from './console';
|
|
18
19
|
export * from './copy';
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { createContext } from 'react';
|
|
10
|
-
import {
|
|
10
|
+
import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
|
|
11
11
|
import { DEFAULT_COLOR_MODE, getComputed } from './utils';
|
|
12
|
-
export var EuiSystemContext = /*#__PURE__*/createContext(
|
|
12
|
+
export var EuiSystemContext = /*#__PURE__*/createContext(EuiThemeBorealis);
|
|
13
13
|
export var EuiModificationsContext = /*#__PURE__*/createContext({});
|
|
14
14
|
export var EuiColorModeContext = /*#__PURE__*/createContext(DEFAULT_COLOR_MODE);
|
|
15
|
-
export var defaultComputedTheme = getComputed(
|
|
15
|
+
export var defaultComputedTheme = getComputed(EuiThemeBorealis, {}, DEFAULT_COLOR_MODE);
|
|
16
16
|
export var EuiThemeContext = /*#__PURE__*/createContext(defaultComputedTheme);
|
|
17
17
|
export var EuiNestedThemeContext = /*#__PURE__*/createContext({
|
|
18
18
|
isGlobalTheme: true,
|
|
@@ -19,7 +19,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
import React, { useContext, useEffect, useRef, useMemo, useState, useCallback, Fragment } from 'react';
|
|
20
20
|
import { Global } from '@emotion/react';
|
|
21
21
|
import isEqual from 'lodash/isEqual';
|
|
22
|
-
import { EUI_EXPERIMENTAL_THEME_ENABLED_KEY } from '../../themes/themes';
|
|
23
22
|
import { cloneElementWithCss } from '../emotion';
|
|
24
23
|
import { css, cx } from '../emotion/css';
|
|
25
24
|
import { CurrentEuiBreakpointProvider } from '../breakpoint/current_breakpoint';
|
|
@@ -83,16 +82,6 @@ export var EuiThemeProvider = function EuiThemeProvider(_ref) {
|
|
|
83
82
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
84
83
|
theme = _useState8[0],
|
|
85
84
|
setTheme = _useState8[1];
|
|
86
|
-
|
|
87
|
-
// TODO: temp. testing code only, remove once obsolete
|
|
88
|
-
useEffect(function () {
|
|
89
|
-
if (process.env.NODE_ENV === 'development') {
|
|
90
|
-
var isEnabled = localStorage.getItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY) != null;
|
|
91
|
-
if (!isEnabled) {
|
|
92
|
-
localStorage.setItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY, 'true');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, []);
|
|
96
85
|
useEffect(function () {
|
|
97
86
|
var newSystem = _system || parentSystem;
|
|
98
87
|
if (prevSystemKey.current !== newSystem.key) {
|
|
@@ -10,7 +10,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
10
10
|
* Side Public License, v 1.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { darken, shade, tint, transparentize } from '../../../../services/color';
|
|
13
|
+
import { darken, shade, tint, transparentize } from '../../../../services/color/manipulation';
|
|
14
14
|
import { computed } from '../../../../services/theme/utils';
|
|
15
15
|
import { makeHighContrastColor, makeDisabledContrastColor } from '../../../../services/color/contrast';
|
|
16
16
|
import { colorVis } from './_colors_vis';
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
export { EUI_THEMES, isDefaultTheme, isExperimentalThemeEnabled } from './themes';
|
|
8
|
+
export { colorVis } from './amsterdam/global_styling/variables/_colors_vis';
|
|
10
9
|
export { AMSTERDAM_NAME_KEY, EuiThemeAmsterdam } from './amsterdam/theme';
|
|
11
10
|
export * from './amsterdam';
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
3
|
-
* or more contributor license agreements. Licensed under the Elastic License
|
|
4
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
5
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
|
-
* Side Public License, v 1.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { EuiThemeAmsterdam, AMSTERDAM_NAME_KEY } from './amsterdam/theme';
|
|
10
|
-
export var EUI_THEMES = [{
|
|
11
|
-
text: 'Amsterdam',
|
|
12
|
-
value: AMSTERDAM_NAME_KEY,
|
|
13
|
-
provider: EuiThemeAmsterdam
|
|
14
|
-
}];
|
|
15
|
-
export var isDefaultTheme = function isDefaultTheme(name) {
|
|
16
|
-
return name === AMSTERDAM_NAME_KEY;
|
|
17
|
-
};
|
|
18
|
-
export var EUI_EXPERIMENTAL_THEME_ENABLED_KEY = 'eui-experimental-theme-enabled';
|
|
19
|
-
export var isExperimentalThemeEnabled = function isExperimentalThemeEnabled() {
|
|
20
|
-
if (typeof localStorage !== 'undefined') {
|
|
21
|
-
return localStorage.getItem(EUI_EXPERIMENTAL_THEME_ENABLED_KEY) === 'true';
|
|
22
|
-
}
|
|
23
|
-
return false;
|
|
24
|
-
};
|
|
1
|
+
export {};
|
|
@@ -61,13 +61,7 @@ var EuiAvatar = exports.EuiAvatar = function EuiAvatar(_ref) {
|
|
|
61
61
|
var _props$casing = props.casing,
|
|
62
62
|
casing = _props$casing === void 0 ? type === 'space' ? 'none' : 'uppercase' : _props$casing,
|
|
63
63
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded2);
|
|
64
|
-
var
|
|
65
|
-
euiTheme = _useEuiTheme.euiTheme;
|
|
66
|
-
var visColors = (0, _react.useMemo)(function () {
|
|
67
|
-
return (0, _color.euiPaletteColorBlindBehindText)();
|
|
68
|
-
},
|
|
69
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
70
|
-
[euiTheme]);
|
|
64
|
+
var visColors = (0, _color.useEuiPaletteColorBlindBehindText)();
|
|
71
65
|
var isPlain = color === 'plain';
|
|
72
66
|
var isSubdued = color === 'subdued';
|
|
73
67
|
var isNamedColor = isPlain || isSubdued || color === null;
|
|
@@ -104,13 +104,8 @@ var EuiColorPicker = exports.EuiColorPicker = function EuiColorPicker(_ref) {
|
|
|
104
104
|
alphaLabel = _useEuiI18n2[4],
|
|
105
105
|
openLabel = _useEuiI18n2[5],
|
|
106
106
|
closeLabel = _useEuiI18n2[6];
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
var swatches = (0, _react.useMemo)(function () {
|
|
110
|
-
return _swatches !== null && _swatches !== void 0 ? _swatches : (0, _services.euiPaletteColorBlind)();
|
|
111
|
-
},
|
|
112
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
113
|
-
[_swatches, euiTheme]);
|
|
107
|
+
var defaultSwatches = (0, _services.useEuiPaletteColorBlind)();
|
|
108
|
+
var swatches = _swatches !== null && _swatches !== void 0 ? _swatches : defaultSwatches;
|
|
114
109
|
var preferredFormat = (0, _react.useMemo)(function () {
|
|
115
110
|
if (format) return format;
|
|
116
111
|
var parsed = (0, _utils.parseColor)(color);
|
|
@@ -106,7 +106,7 @@ var useUnconstrainedHeight = exports.useUnconstrainedHeight = function useUncons
|
|
|
106
106
|
|
|
107
107
|
// lookup the height configuration of this row
|
|
108
108
|
var rowHeightOption = rowHeightUtils.getRowHeightOption(correctRowIndex, rowHeightsOptions);
|
|
109
|
-
if (rowHeightOption) {
|
|
109
|
+
if (rowHeightOption && rowHeightOption !== 'auto') {
|
|
110
110
|
// this row's height is known
|
|
111
111
|
knownRowCount++;
|
|
112
112
|
knownHeight += rowHeightUtils.getCalculatedHeight(rowHeightOption, defaultRowHeight, correctRowIndex, rowHeightsOptions);
|