@elastic/eui 99.2.0-borealis.0 → 99.3.0-borealis.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_borealis_light.json +2 -2
- package/es/components/accordion/accordion.js +2 -1
- package/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/es/components/basic_table/basic_table.js +135 -2
- package/es/components/basic_table/in_memory_table.js +131 -1
- package/es/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/es/components/call_out/call_out.js +1 -1
- package/es/components/call_out/call_out.styles.js +5 -4
- package/es/components/code/code.styles.js +1 -1
- package/es/components/code/code_syntax.styles.js +1 -0
- package/es/components/code/utils.js +5 -2
- package/es/components/datagrid/data_grid.stories.utils.js +0 -1090
- package/es/components/date_picker/date_picker.styles.js +1 -1
- package/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/es/components/date_picker/react_date_picker.styles.js +1 -1
- package/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/es/components/expression/expression.styles.js +13 -13
- package/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/es/components/flyout/flyout.styles.js +1 -1
- package/es/components/header/header.styles.js +1 -1
- package/es/components/image/image.styles.js +1 -1
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/inline_edit/inline_edit_form.js +4 -4
- package/es/components/inline_edit/inline_edit_text.js +4 -4
- package/es/components/inline_edit/inline_edit_title.js +4 -4
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/es/components/link/link.styles.js +6 -6
- package/es/components/modal/modal.styles.js +1 -1
- package/es/components/page_template/inner/page_inner.styles.js +1 -1
- package/es/components/pagination/pagination.styles.js +2 -2
- package/es/components/panel/panel.styles.js +1 -1
- package/es/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/es/components/side_nav/side_nav_item.styles.js +5 -5
- package/es/components/stat/stat.styles.js +5 -5
- package/es/components/table/table_cells_shared.styles.js +2 -2
- package/es/components/table/table_header_cell.js +76 -4
- package/es/components/table/table_row.styles.js +1 -1
- package/es/components/tabs/tab.styles.js +2 -2
- package/es/components/text_diff/text_diff.styles.js +1 -1
- package/es/components/toast/toast.styles.js +1 -1
- package/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/es/global_styling/mixins/_shadow.js +31 -0
- package/es/global_styling/mixins/index.js +2 -1
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/es/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/eui.d.ts +17078 -17082
- package/i18ntokens.json +36 -36
- package/lib/components/accordion/accordion.js +2 -1
- package/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/lib/components/basic_table/basic_table.js +135 -2
- package/lib/components/basic_table/in_memory_table.js +131 -1
- package/lib/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/lib/components/call_out/call_out.js +1 -1
- package/lib/components/call_out/call_out.styles.js +5 -4
- package/lib/components/code/code.styles.js +1 -1
- package/lib/components/code/code_syntax.styles.js +1 -0
- package/lib/components/code/utils.js +6 -1
- package/lib/components/datagrid/data_grid.stories.utils.js +1 -1092
- package/lib/components/date_picker/date_picker.styles.js +2 -2
- package/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/lib/components/expression/expression.styles.js +13 -13
- package/lib/components/flyout/_flyout_close_button.styles.js +2 -2
- package/lib/components/flyout/flyout.styles.js +2 -2
- package/lib/components/header/header.styles.js +2 -2
- package/lib/components/image/image.styles.js +2 -2
- package/lib/components/image/image_button.styles.js +3 -3
- package/lib/components/inline_edit/inline_edit_form.js +4 -4
- package/lib/components/inline_edit/inline_edit_text.js +4 -4
- package/lib/components/inline_edit/inline_edit_title.js +4 -4
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/lib/components/link/link.styles.js +6 -6
- package/lib/components/modal/modal.styles.js +3 -3
- package/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/lib/components/pagination/pagination.styles.js +2 -2
- package/lib/components/panel/panel.styles.js +3 -3
- package/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/lib/components/side_nav/side_nav_item.styles.js +5 -5
- package/lib/components/stat/stat.styles.js +5 -5
- package/lib/components/table/table_cells_shared.styles.js +2 -2
- package/lib/components/table/table_header_cell.js +79 -8
- package/lib/components/table/table_row.styles.js +2 -2
- package/lib/components/tabs/tab.styles.js +2 -2
- package/lib/components/text_diff/text_diff.styles.js +1 -1
- package/lib/components/toast/toast.styles.js +2 -2
- package/lib/components/tool_tip/tool_tip.styles.js +2 -2
- package/lib/global_styling/mixins/_shadow.js +84 -0
- package/lib/global_styling/mixins/index.js +11 -0
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/lib/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/optimize/es/components/accordion/accordion.js +2 -1
- package/optimize/es/components/accordion/accordion_children/accordion_children.js +20 -7
- package/optimize/es/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/es/components/basic_table/basic_table.js +4 -1
- package/optimize/es/components/bottom_bar/bottom_bar.styles.js +1 -1
- package/optimize/es/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/es/components/call_out/call_out.js +1 -1
- package/optimize/es/components/call_out/call_out.styles.js +5 -4
- package/optimize/es/components/code/code.styles.js +1 -1
- package/optimize/es/components/code/code_syntax.styles.js +1 -0
- package/optimize/es/components/code/utils.js +5 -2
- package/optimize/es/components/datagrid/data_grid.stories.utils.js +0 -18
- package/optimize/es/components/date_picker/date_picker.styles.js +1 -1
- package/optimize/es/components/date_picker/date_picker_range.styles.js +1 -1
- package/optimize/es/components/date_picker/react_date_picker.styles.js +1 -1
- package/optimize/es/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/es/components/expression/expression.styles.js +13 -13
- package/optimize/es/components/flyout/_flyout_close_button.styles.js +1 -1
- package/optimize/es/components/flyout/flyout.styles.js +1 -1
- package/optimize/es/components/header/header.styles.js +1 -1
- package/optimize/es/components/image/image.styles.js +1 -1
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/optimize/es/components/link/link.styles.js +6 -6
- package/optimize/es/components/modal/modal.styles.js +1 -1
- package/optimize/es/components/page_template/inner/page_inner.styles.js +1 -1
- package/optimize/es/components/pagination/pagination.styles.js +2 -2
- package/optimize/es/components/panel/panel.styles.js +1 -1
- package/optimize/es/components/popover/popover_panel/_popover_panel.styles.js +1 -1
- package/optimize/es/components/resizable_container/resizable_collapse_button.styles.js +1 -1
- package/optimize/es/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/optimize/es/components/side_nav/side_nav_item.styles.js +5 -5
- package/optimize/es/components/stat/stat.styles.js +5 -5
- package/optimize/es/components/table/table_cells_shared.styles.js +2 -2
- package/optimize/es/components/table/table_header_cell.js +14 -3
- package/optimize/es/components/table/table_row.styles.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +2 -2
- package/optimize/es/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/es/components/toast/toast.styles.js +1 -1
- package/optimize/es/components/tool_tip/tool_tip.styles.js +1 -1
- package/optimize/es/global_styling/mixins/_shadow.js +31 -0
- package/optimize/es/global_styling/mixins/index.js +2 -1
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/themes/amsterdam/global_styling/functions/shadows.js +1 -10
- package/optimize/es/themes/amsterdam/global_styling/mixins/shadow.js +1 -146
- package/optimize/es/themes/amsterdam/global_styling/variables/_breakpoint.js +1 -7
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/optimize/lib/components/accordion/accordion.js +2 -1
- package/optimize/lib/components/accordion/accordion_children/accordion_children.js +19 -6
- package/optimize/lib/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/optimize/lib/components/basic_table/basic_table.js +4 -1
- package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/optimize/lib/components/button/button_icon/button_icon.styles.js +1 -1
- package/optimize/lib/components/call_out/call_out.js +1 -1
- package/optimize/lib/components/call_out/call_out.styles.js +5 -4
- package/optimize/lib/components/code/code.styles.js +1 -1
- package/optimize/lib/components/code/code_syntax.styles.js +1 -0
- package/optimize/lib/components/code/utils.js +6 -1
- package/optimize/lib/components/datagrid/data_grid.stories.utils.js +1 -19
- package/optimize/lib/components/date_picker/date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/date_picker_range.styles.js +2 -2
- package/optimize/lib/components/date_picker/react_date_picker.styles.js +2 -2
- package/optimize/lib/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/optimize/lib/components/expression/expression.styles.js +13 -13
- package/optimize/lib/components/flyout/_flyout_close_button.styles.js +2 -2
- package/optimize/lib/components/flyout/flyout.styles.js +2 -2
- package/optimize/lib/components/header/header.styles.js +2 -2
- package/optimize/lib/components/image/image.styles.js +2 -2
- package/optimize/lib/components/image/image_button.styles.js +3 -3
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/optimize/lib/components/link/link.styles.js +6 -6
- package/optimize/lib/components/modal/modal.styles.js +3 -3
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +2 -2
- package/optimize/lib/components/pagination/pagination.styles.js +2 -2
- package/optimize/lib/components/panel/panel.styles.js +3 -3
- package/optimize/lib/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/optimize/lib/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/optimize/lib/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/optimize/lib/components/side_nav/side_nav_item.styles.js +5 -5
- package/optimize/lib/components/stat/stat.styles.js +5 -5
- package/optimize/lib/components/table/table_cells_shared.styles.js +2 -2
- package/optimize/lib/components/table/table_header_cell.js +14 -3
- package/optimize/lib/components/table/table_row.styles.js +2 -2
- package/optimize/lib/components/tabs/tab.styles.js +2 -2
- package/optimize/lib/components/text_diff/text_diff.styles.js +1 -1
- package/optimize/lib/components/toast/toast.styles.js +2 -2
- package/optimize/lib/components/tool_tip/tool_tip.styles.js +2 -2
- package/optimize/lib/global_styling/mixins/_shadow.js +84 -0
- package/optimize/lib/global_styling/mixins/index.js +11 -0
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/optimize/lib/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/optimize/lib/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/package.json +5 -4
- package/src/global_styling/functions/_colors.scss +3 -3
- package/src/global_styling/mixins/_shadow.scss +1 -1
- package/src/global_styling/mixins/_typography.scss +2 -2
- package/src/global_styling/variables/_index.scss +0 -1
- package/test-env/components/accordion/accordion.js +2 -1
- package/test-env/components/accordion/accordion_children/accordion_children.js +19 -6
- package/test-env/components/accordion/accordion_children/accordion_children.styles.js +5 -0
- package/test-env/components/basic_table/basic_table.js +135 -2
- package/test-env/components/basic_table/in_memory_table.js +131 -1
- package/test-env/components/bottom_bar/bottom_bar.styles.js +2 -2
- package/test-env/components/button/button_icon/button_icon.styles.js +1 -1
- package/test-env/components/call_out/call_out.js +1 -1
- package/test-env/components/call_out/call_out.styles.js +5 -4
- package/test-env/components/code/code.styles.js +1 -1
- package/test-env/components/code/code_syntax.styles.js +1 -0
- package/test-env/components/code/utils.js +6 -1
- package/test-env/components/datagrid/data_grid.stories.utils.js +1 -1091
- package/test-env/components/date_picker/date_picker.styles.js +2 -2
- package/test-env/components/date_picker/date_picker_range.styles.js +2 -2
- package/test-env/components/date_picker/react_date_picker.styles.js +2 -2
- package/test-env/components/date_picker/super_date_picker/date_popover/absolute_tab.js +3 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +1 -1
- package/test-env/components/expression/expression.styles.js +13 -13
- package/test-env/components/flyout/_flyout_close_button.styles.js +2 -2
- package/test-env/components/flyout/flyout.styles.js +2 -2
- package/test-env/components/header/header.styles.js +2 -2
- package/test-env/components/image/image.styles.js +2 -2
- package/test-env/components/image/image_button.styles.js +3 -3
- package/test-env/components/inline_edit/inline_edit_form.js +4 -4
- package/test-env/components/inline_edit/inline_edit_text.js +4 -4
- package/test-env/components/inline_edit/inline_edit_title.js +4 -4
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +9 -6
- package/test-env/components/link/link.styles.js +6 -6
- package/test-env/components/modal/modal.styles.js +3 -3
- package/test-env/components/page_template/inner/page_inner.styles.js +2 -2
- package/test-env/components/pagination/pagination.styles.js +2 -2
- package/test-env/components/panel/panel.styles.js +3 -3
- package/test-env/components/popover/popover_panel/_popover_panel.styles.js +4 -4
- package/test-env/components/resizable_container/resizable_collapse_button.styles.js +2 -2
- package/test-env/components/selectable/selectable_list/selectable_list_item.styles.js +1 -1
- package/test-env/components/side_nav/side_nav_item.styles.js +5 -5
- package/test-env/components/stat/stat.styles.js +5 -5
- package/test-env/components/table/table_cells_shared.styles.js +2 -2
- package/test-env/components/table/table_header_cell.js +76 -4
- package/test-env/components/table/table_row.styles.js +2 -2
- package/test-env/components/tabs/tab.styles.js +2 -2
- package/test-env/components/text_diff/text_diff.styles.js +1 -1
- package/test-env/components/toast/toast.styles.js +2 -2
- package/test-env/components/tool_tip/tool_tip.styles.js +2 -2
- package/test-env/global_styling/mixins/_shadow.js +84 -0
- package/test-env/global_styling/mixins/index.js +11 -0
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/services/breakpoint/current_breakpoint_hook.js +3 -3
- package/test-env/themes/amsterdam/global_styling/functions/shadows.js +7 -19
- package/test-env/themes/amsterdam/global_styling/mixins/shadow.js +10 -154
- package/test-env/themes/amsterdam/global_styling/variables/_breakpoint.js +7 -16
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +267 -262
- package/es/global_styling/variables/_colors_vis.js +0 -9
- package/lib/global_styling/variables/_colors_vis.js +0 -12
- package/optimize/es/global_styling/variables/_colors_vis.js +0 -9
- package/optimize/lib/global_styling/variables/_colors_vis.js +0 -12
- package/src/global_styling/variables/_colors_vis.scss +0 -3
- package/test-env/global_styling/variables/_colors_vis.js +0 -12
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiDatePickerStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
var _form = require("../form/form.styles");
|
|
11
11
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
12
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -31,7 +31,7 @@ var euiDatePickerStyles = exports.euiDatePickerStyles = function euiDatePickerSt
|
|
|
31
31
|
inline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " border:none;padding:0;}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";};label:inline;"),
|
|
32
32
|
// Skip css`` to avoid generating an Emotion className
|
|
33
33
|
noShadow: "\n .euiFormControlLayout {\n background-color: transparent;\n }\n ",
|
|
34
|
-
shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", (0,
|
|
34
|
+
shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext), ";};label:shadow;"),
|
|
35
35
|
// Needs to come before shadow CSS so that it doesn't override their background-colors
|
|
36
36
|
invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
|
|
37
37
|
withBorder: false
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiDatePickerRangeStyles = exports.euiDatePickerRangeInlineStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -39,7 +39,7 @@ var euiDatePickerRangeInlineStyles = exports.euiDatePickerRangeInlineStyles = fu
|
|
|
39
39
|
euiDatePickerRangeInline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " border:none;padding:0;.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
|
|
40
40
|
responsive: /*#__PURE__*/(0, _react.css)(containerQuery(268), ";;label:responsive;"),
|
|
41
41
|
responsiveWithTimeSelect: /*#__PURE__*/(0, _react.css)(containerQuery(374), ";;label:responsiveWithTimeSelect;"),
|
|
42
|
-
shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0,
|
|
42
|
+
shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext), ";};label:shadow;"),
|
|
43
43
|
// Applied directly to EuiFormControlLayout so we can check if `disabled`
|
|
44
44
|
// and allow the disabled background-color to take precedence
|
|
45
45
|
formLayout: {
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiReactDatePickerStyles = exports.euiDatePickerVariables = exports._timeSelectStyles = exports._monthYearDropdowns = exports._dayCalendarStyles = void 0;
|
|
7
7
|
var _css = require("@emotion/css");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
10
|
var _mixins = require("../../global_styling/mixins");
|
|
10
|
-
var _mixins2 = require("../../themes/amsterdam/global_styling/mixins");
|
|
11
11
|
var _form = require("../form/form.styles");
|
|
12
12
|
/*
|
|
13
13
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -55,7 +55,7 @@ var _monthYearDropdowns = exports._monthYearDropdowns = function _monthYearDropd
|
|
|
55
55
|
var formStyles = (0, _form.euiFormControlStyles)(euiThemeContext);
|
|
56
56
|
return /*#__PURE__*/(0, _css.css)(".react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{display:flex;justify-content:space-between;align-items:center;", formStyles.compressed, " ", (0, _form.euiFormControlText)(euiThemeContext), " font-weight:", euiTheme.font.weight.medium, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " &:hover{cursor:pointer;text-decoration:underline;}}.react-datepicker__year-dropdown-container{position:relative;flex-grow:1;}.react-datepicker__month-dropdown-container{position:relative;flex-grow:2;}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown{z-index:1;position:absolute;", (0, _global_styling.euiYScroll)(euiThemeContext, {
|
|
57
57
|
height: 'auto'
|
|
58
|
-
}), " ", (0, _global_styling.logicalCSS)('max-height', '250px'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " padding:", euiTheme.size.xs, ";background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";", (0,
|
|
58
|
+
}), " ", (0, _global_styling.logicalCSS)('max-height', '250px'), " ", (0, _global_styling.logicalCSS)('width', '100%'), " padding:", euiTheme.size.xs, ";background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";", (0, _euiThemeCommon.euiShadowSmall)(euiThemeContext), ";}.react-datepicker__year-dropdown{", (0, _global_styling.logicalCSS)('min-width', '100px'), ";}.react-datepicker__month-dropdown{", (0, _global_styling.logicalCSS)('min-width', '140px'), ";}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{", (0, _global_styling.logicalCSS)('margin-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('height', euiTheme.size.l), " line-height:", euiTheme.size.l, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";border-radius:", euiTheme.border.radius.small, ";cursor:pointer;&:hover{text-decoration:underline;}&--preselected{background-color:", euiTheme.focus.backgroundColor, ";}&--selected_year,&--selected_month{", (0, _mixins.euiButtonFillColor)(euiThemeContext, 'primary'), ";}&--selected{display:none;}}");
|
|
59
59
|
};
|
|
60
60
|
var _dayCalendarStyles = exports._dayCalendarStyles = function _dayCalendarStyles(euiThemeContext) {
|
|
61
61
|
var euiTheme = euiThemeContext.euiTheme;
|
|
@@ -160,6 +160,9 @@ var EuiAbsoluteTab = exports.EuiAbsoluteTab = function EuiAbsoluteTab(_ref) {
|
|
|
160
160
|
value: textInputValue,
|
|
161
161
|
onChange: handleTextChange,
|
|
162
162
|
onPaste: function onPaste(event) {
|
|
163
|
+
// preventing default here ensures no additional onChange is
|
|
164
|
+
// triggered which otherwise results in input duplication
|
|
165
|
+
event.preventDefault();
|
|
163
166
|
setTextInputValue(event.clipboardData.getData('text'));
|
|
164
167
|
setIsReadyToParse(true);
|
|
165
168
|
},
|
|
@@ -74,7 +74,7 @@ var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSu
|
|
|
74
74
|
euiSuperDatePicker__formControlLayout: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " box-shadow:none;};label:euiSuperDatePicker__formControlLayout;"),
|
|
75
75
|
default: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.primary, ";background-size:100% 100%;};label:default;"),
|
|
76
76
|
disabled: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{", (0, _form.euiFormControlDisabledStyles)(euiThemeContext), ";};label:disabled;"),
|
|
77
|
-
invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.
|
|
77
|
+
invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", (0, _form.euiFormControlInvalidStyles)(euiThemeContext), ";};label:invalid;"),
|
|
78
78
|
needsUpdating: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.success, ";background-size:100% 100%;};label:needsUpdating;")
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -32,19 +32,19 @@ var euiExpressionStyles = exports.euiExpressionStyles = function euiExpressionSt
|
|
|
32
32
|
isClickable: /*#__PURE__*/(0, _react.css)("cursor:pointer;", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.editable), " &[class*='-columns']{background-color:", euiTheme.colors.lightestShade, ";&:focus,&:hover:not(:disabled){[class*='euiExpression__description'],[class*='euiExpression__value']{text-decoration:underline;}}};label:isClickable;"),
|
|
33
33
|
isActive: {
|
|
34
34
|
base: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-bottom-style', 'solid'), ";;label:base;"),
|
|
35
|
-
subdued: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.
|
|
35
|
+
subdued: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
36
36
|
primary: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.primary, ";;label:primary;"),
|
|
37
37
|
success: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.success, ";;label:success;"),
|
|
38
38
|
warning: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.warning, ";;label:warning;"),
|
|
39
39
|
danger: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.danger, ";;label:danger;"),
|
|
40
40
|
accent: /*#__PURE__*/(0, _react.css)("border-color:", euiTheme.colors.accent, ";;label:accent;")
|
|
41
41
|
},
|
|
42
|
-
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
43
|
-
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
44
|
-
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
45
|
-
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
46
|
-
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
47
|
-
accent: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
42
|
+
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
43
|
+
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textPrimary), ";label:primary;"),
|
|
44
|
+
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textSuccess), ";label:success;"),
|
|
45
|
+
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
46
|
+
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
47
|
+
accent: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textAccent), ";label:accent;")
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
50
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
@@ -60,12 +60,12 @@ var euiExpressionDescriptionStyles = exports.euiExpressionDescriptionStyles = fu
|
|
|
60
60
|
return {
|
|
61
61
|
euiExpression__description: /*#__PURE__*/(0, _react.css)(";label:euiExpression__description;"),
|
|
62
62
|
truncate: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " display:inline-block;vertical-align:bottom;;label:truncate;"),
|
|
63
|
-
subdued: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
64
|
-
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
65
|
-
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
66
|
-
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
67
|
-
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
68
|
-
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
63
|
+
subdued: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
64
|
+
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
65
|
+
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
66
|
+
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textWarning, ";;label:warning;"),
|
|
67
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
68
|
+
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
69
69
|
isUppercase: _ref2,
|
|
70
70
|
columns: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.s), " flex-shrink:0;;label:columns;")
|
|
71
71
|
};
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiFlyoutCloseButtonStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
var _flyout = require("./flyout.styles");
|
|
11
11
|
/*
|
|
12
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -21,7 +21,7 @@ var euiFlyoutCloseButtonStyles = exports.euiFlyoutCloseButtonStyles = function e
|
|
|
21
21
|
return {
|
|
22
22
|
euiFlyout__closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('right', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('top', euiTheme.size.s), " z-index:3;;label:euiFlyout__closeButton;"),
|
|
23
23
|
inside: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.flyoutCloseButtonInsideBackground, ";;label:inside;"),
|
|
24
|
-
outside: /*#__PURE__*/(0, _react.css)((0,
|
|
24
|
+
outside: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext), "animation:none!important;;label:outside;"),
|
|
25
25
|
outsideSide: {
|
|
26
26
|
// `transforms` pull in close buttons a little
|
|
27
27
|
// `!important` is necessary here to override the hover/focus transitions of buttons
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.euiFlyoutStyles = exports.euiFlyoutSlideInRight = exports.euiFlyoutSlideInLeft = exports.FLYOUT_BREAKPOINT = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
10
11
|
var _global_styling = require("../../global_styling");
|
|
11
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
12
12
|
var _form = require("../form/form.styles");
|
|
13
13
|
var _templateObject, _templateObject2;
|
|
14
14
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
@@ -45,7 +45,7 @@ var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThem
|
|
|
45
45
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:left;"),
|
|
46
46
|
// Type
|
|
47
47
|
overlay: {
|
|
48
|
-
overlay: /*#__PURE__*/(0, _react.css)((0,
|
|
48
|
+
overlay: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext), " &:has(.euiResizableButton){border-inline:none;};label:overlay;"),
|
|
49
49
|
left: /*#__PURE__*/(0, _react.css)("border-inline-end:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:left;"),
|
|
50
50
|
right: /*#__PURE__*/(0, _react.css)("border-inline-start:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:right;")
|
|
51
51
|
},
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiHeaderVariables = exports.euiHeaderStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
10
|
var _services = require("../../services");
|
|
11
11
|
var _form = require("../form/form.styles");
|
|
@@ -31,7 +31,7 @@ var euiHeaderStyles = exports.euiHeaderStyles = function euiHeaderStyles(euiThem
|
|
|
31
31
|
height = _euiHeaderVariables.height,
|
|
32
32
|
padding = _euiHeaderVariables.padding;
|
|
33
33
|
return {
|
|
34
|
-
euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0,
|
|
34
|
+
euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0, _euiThemeCommon.euiShadowSmall)(euiThemeContext), ";;label:euiHeader;"),
|
|
35
35
|
// Position
|
|
36
36
|
static: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
|
|
37
37
|
fixed: /*#__PURE__*/(0, _react.css)("z-index:", euiTheme.levels.header, ";position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', 0), ";;label:fixed;"),
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiImageStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,7 +20,7 @@ var euiImageStyles = exports.euiImageStyles = function euiImageStyles(euiThemeCo
|
|
|
20
20
|
euiImage: /*#__PURE__*/(0, _react.css)("vertical-align:middle;", (0, _global_styling.logicalCSS)('max-width', '100%'), " &,[class*='euiText'] &{", (0, _global_styling.logicalCSS)('margin-bottom', 0), ";};label:euiImage;"),
|
|
21
21
|
// Variations
|
|
22
22
|
isFullScreen: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('max-height', '80vh'), " ", (0, _global_styling.logicalCSS)('max-width', '80vw'), ";;label:isFullScreen;"),
|
|
23
|
-
hasShadow: /*#__PURE__*/(0, _react.css)((0,
|
|
23
|
+
hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'), ";;label:hasShadow;"),
|
|
24
24
|
// Sizes
|
|
25
25
|
// These sizes are mostly suggestions. Don't look too hard for meaning in their values.
|
|
26
26
|
// Size is applied to the image, rather than the wrapper figure to work better with floats
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiImageButtonStyles = exports.euiImageButtonIconStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -20,8 +20,8 @@ var euiImageButtonStyles = exports.euiImageButtonStyles = function euiImageButto
|
|
|
20
20
|
// Base
|
|
21
21
|
euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;inset:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
|
|
22
22
|
fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
|
|
23
|
-
shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0,
|
|
24
|
-
hasShadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0,
|
|
23
|
+
shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'), ";};label:shadowHover;"),
|
|
24
|
+
hasShadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";};label:hasShadowHover;")
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
@@ -362,6 +362,10 @@ EuiInlineEditForm.propTypes = {
|
|
|
362
362
|
* Initial inline edit text value
|
|
363
363
|
*/
|
|
364
364
|
defaultValue: _propTypes.default.string,
|
|
365
|
+
/**
|
|
366
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
367
|
+
*/
|
|
368
|
+
onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
|
|
365
369
|
/**
|
|
366
370
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
367
371
|
*/
|
|
@@ -370,10 +374,6 @@ EuiInlineEditForm.propTypes = {
|
|
|
370
374
|
* Callback required to receive and update `value` based on user input
|
|
371
375
|
*/
|
|
372
376
|
onChange: _propTypes.default.func,
|
|
373
|
-
/**
|
|
374
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
375
|
-
*/
|
|
376
|
-
onCancel: _propTypes.default.func,
|
|
377
377
|
/**
|
|
378
378
|
* Form sizes
|
|
379
379
|
*/
|
|
@@ -116,6 +116,10 @@ EuiInlineEditText.propTypes = {
|
|
|
116
116
|
* Initial inline edit text value
|
|
117
117
|
*/
|
|
118
118
|
defaultValue: _propTypes.default.string,
|
|
119
|
+
/**
|
|
120
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
121
|
+
*/
|
|
122
|
+
onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
|
|
119
123
|
/**
|
|
120
124
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
121
125
|
*/
|
|
@@ -124,10 +128,6 @@ EuiInlineEditText.propTypes = {
|
|
|
124
128
|
* Callback required to receive and update `value` based on user input
|
|
125
129
|
*/
|
|
126
130
|
onChange: _propTypes.default.func,
|
|
127
|
-
/**
|
|
128
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
129
|
-
*/
|
|
130
|
-
onCancel: _propTypes.default.func,
|
|
131
131
|
/**
|
|
132
132
|
* Text size level
|
|
133
133
|
*/
|
|
@@ -125,6 +125,10 @@ EuiInlineEditTitle.propTypes = {
|
|
|
125
125
|
* Initial inline edit text value
|
|
126
126
|
*/
|
|
127
127
|
defaultValue: _propTypes.default.string,
|
|
128
|
+
/**
|
|
129
|
+
* Callback required to reset `value` to the previous read mode text value.
|
|
130
|
+
*/
|
|
131
|
+
onCancel: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.func.isRequired]),
|
|
128
132
|
/**
|
|
129
133
|
* To use inline edit as a controlled component, continuously pass the value via this prop
|
|
130
134
|
*/
|
|
@@ -133,10 +137,6 @@ EuiInlineEditTitle.propTypes = {
|
|
|
133
137
|
* Callback required to receive and update `value` based on user input
|
|
134
138
|
*/
|
|
135
139
|
onChange: _propTypes.default.func,
|
|
136
|
-
/**
|
|
137
|
-
* Callback required to reset `value` to the previous read mode text value.
|
|
138
|
-
*/
|
|
139
|
-
onCancel: _propTypes.default.func,
|
|
140
140
|
/**
|
|
141
141
|
* Title size level
|
|
142
142
|
*/
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemChildStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
10
10
|
var _accessibility = require("../accessibility");
|
|
11
11
|
var _key_pad_menu = require("./key_pad_menu.styles");
|
|
12
12
|
/*
|
|
@@ -18,16 +18,19 @@ var _key_pad_menu = require("./key_pad_menu.styles");
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
var euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
|
|
21
|
+
var _euiTheme$flags;
|
|
21
22
|
var euiTheme = euiThemeContext.euiTheme;
|
|
22
23
|
var _euiKeyPadMenuVariabl = (0, _key_pad_menu.euiKeyPadMenuVariables)(euiThemeContext),
|
|
23
24
|
euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
|
|
25
|
+
var hasVisColorAdjustment = (_euiTheme$flags = euiTheme.flags) === null || _euiTheme$flags === void 0 ? void 0 : _euiTheme$flags.hasVisColorAdjustment;
|
|
26
|
+
var focusTransformStyles = "\n ".concat((0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'), ";\n\n ").concat(_global_styling.euiCanAnimate, " {\n .euiKeyPadMenuItem__icon {\n transform: translateY(0);\n }\n }\n ");
|
|
24
27
|
return {
|
|
25
|
-
euiKeyPadMenuItem: /*#__PURE__*/(0, _react.css)("display:block;padding:", euiTheme.size.xs, ";", (0, _global_styling.logicalSizeCSS)(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.
|
|
26
|
-
enabled: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;",
|
|
27
|
-
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
28
|
+
euiKeyPadMenuItem: /*#__PURE__*/(0, _react.css)("display:block;padding:", euiTheme.size.xs, ";", (0, _global_styling.logicalSizeCSS)(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.textParagraph, ";", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
|
|
29
|
+
enabled: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", hasVisColorAdjustment ? focusTransformStyles : "background-color: ".concat(euiTheme.colors.backgroundBaseInteractiveHover), ";}&:focus{box-shadow:none;background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : euiTheme.colors.backgroundBaseInteractiveHover, ";};label:enabled;"),
|
|
30
|
+
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textHeading, ";background-color:", hasVisColorAdjustment ? euiTheme.focus.backgroundColor : '', ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.textPrimary, ";background-color:", !hasVisColorAdjustment ? euiTheme.colors.backgroundBaseInteractiveSelect : '', ";};label:selected;"),
|
|
28
31
|
disabled: {
|
|
29
|
-
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.
|
|
30
|
-
selected: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.keyPadMenuItemBackgroundDisabledSelect, ";;label:selected;")
|
|
32
|
+
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";.euiKeyPadMenuItem__icon{filter:", hasVisColorAdjustment ? 'grayscale(100%)' : '', ";svg *{fill:", euiTheme.colors.textDisabled, ";}};label:disabled;"),
|
|
33
|
+
selected: /*#__PURE__*/(0, _react.css)("background-color:", hasVisColorAdjustment ? euiTheme.components.keyPadMenuItemBackgroundDisabledSelect : euiTheme.colors.backgroundBaseDisabled, ";;label:selected;")
|
|
31
34
|
}
|
|
32
35
|
};
|
|
33
36
|
};
|
|
@@ -31,12 +31,12 @@ var euiLinkStyles = exports.euiLinkStyles = function euiLinkStyles(euiThemeConte
|
|
|
31
31
|
euiLink: /*#__PURE__*/(0, _react.css)(euiLinkCSS(euiThemeContext), " user-select:text;&[target='_blank']{position:relative;};label:euiLink;"),
|
|
32
32
|
disabled: _ref,
|
|
33
33
|
// Color styles
|
|
34
|
-
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
35
|
-
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
36
|
-
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
37
|
-
accent: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
38
|
-
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
39
|
-
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.
|
|
34
|
+
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textPrimary), ";label:primary;"),
|
|
35
|
+
subdued: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textSubdued), ";label:subdued;"),
|
|
36
|
+
success: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textSuccess), ";label:success;"),
|
|
37
|
+
accent: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textAccent), ";label:accent;"),
|
|
38
|
+
danger: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textDanger), ";label:danger;"),
|
|
39
|
+
warning: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.textWarning), ";label:warning;"),
|
|
40
40
|
ghost: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.ghost), ";label:ghost;"),
|
|
41
41
|
text: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.text), ";label:text;")
|
|
42
42
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiModalStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
10
|
var _form = require("../form/form.styles");
|
|
11
11
|
/*
|
|
@@ -19,10 +19,10 @@ var _form = require("../form/form.styles");
|
|
|
19
19
|
var euiModalStyles = exports.euiModalStyles = function euiModalStyles(euiThemeContext) {
|
|
20
20
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
21
|
return {
|
|
22
|
-
euiModal: /*#__PURE__*/(0, _react.css)((0,
|
|
22
|
+
euiModal: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext), " display:flex;flex-direction:column;max-block-size:75vh;position:relative;background-color:", euiTheme.colors.emptyShade, ";border-radius:", euiTheme.border.radius.medium, ";border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFloating, ";z-index:", euiTheme.levels.modal, ";min-inline-size:", (0, _form.euiFormVariables)(euiThemeContext).maxWidth, ";max-inline-size:calc(100vw - ", euiTheme.size.base, ");overflow:hidden;", _global_styling.euiCanAnimate, "{animation:", (0, _global_styling.euiAnimSlideInUp)(euiTheme.size.xxl), " ", euiTheme.animation.slow, " ", euiTheme.animation.bounce, ";}", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 'm'), "{position:fixed;inset:0;border-radius:0;inline-size:100vw!important;min-inline-size:0!important;max-inline-size:none!important;max-block-size:100vh!important;}&:focus{outline:none;};label:euiModal;"),
|
|
23
23
|
// Variants
|
|
24
24
|
defaultMaxWidth: /*#__PURE__*/(0, _react.css)("max-inline-size:min(\n ", euiTheme.breakpoint.m, "px,\n calc(100vw - ", euiTheme.size.base, ")\n );;label:defaultMaxWidth;"),
|
|
25
|
-
confirmation: /*#__PURE__*/(0, _react.css)("min-inline-size:", (0, _form.euiFormVariables)(euiThemeContext).maxWidth, ";", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 'm'), "{", (0,
|
|
25
|
+
confirmation: /*#__PURE__*/(0, _react.css)("min-inline-size:", (0, _form.euiFormVariables)(euiThemeContext).maxWidth, ";", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 'm'), "{", (0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
|
|
26
26
|
reverse: true
|
|
27
27
|
}), " inset-block-start:auto;};label:confirmation;"),
|
|
28
28
|
euiModal__closeIcon: /*#__PURE__*/(0, _react.css)("position:absolute;inset-inline-end:", euiTheme.size.xs, ";inset-block-start:", euiTheme.size.xs, ";z-index:3;;label:euiModal__closeIcon;")
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiPageInnerStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../../global_styling");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -19,7 +19,7 @@ var euiPageInnerStyles = exports.euiPageInnerStyles = function euiPageInnerStyle
|
|
|
19
19
|
var euiTheme = euiThemeContext.euiTheme;
|
|
20
20
|
return {
|
|
21
21
|
euiPageInner: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('min-width', '0'), ";;label:euiPageInner;"),
|
|
22
|
-
panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0,
|
|
22
|
+
panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";;label:panelled;"),
|
|
23
23
|
border: {
|
|
24
24
|
top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";;label:top;"),
|
|
25
25
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:left;")
|
|
@@ -27,8 +27,8 @@ var euiPaginationStyles = exports.euiPaginationStyles = function euiPaginationSt
|
|
|
27
27
|
// Base
|
|
28
28
|
euiPagination: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), " display:flex;align-items:center;", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'hidden'), " ", (0, _global_styling.logicalCSSWithFallback)('overflow-x', 'auto'), ";;label:euiPagination;"),
|
|
29
29
|
// Elements
|
|
30
|
-
euiPagination__compressedText: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:center;line-height:1;>span{", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.
|
|
30
|
+
euiPagination__compressedText: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:center;line-height:1;>span{", (0, _global_styling.logicalCSS)('margin-horizontal', euiTheme.size.s), " font-weight:", euiTheme.font.weight.semiBold, ";&:first-of-type{color:", euiTheme.colors.textPrimary, ";}};label:euiPagination__compressedText;"),
|
|
31
31
|
euiPagination__list: _ref,
|
|
32
|
-
euiPagination__ellipsis: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
32
|
+
euiPagination__ellipsis: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDisabled, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('height', euiTheme.size.l), ";;label:euiPagination__ellipsis;")
|
|
33
33
|
};
|
|
34
34
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiPanelStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../global_styling");
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -37,13 +37,13 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
|
|
|
37
37
|
// Base
|
|
38
38
|
euiPanel: _ref2,
|
|
39
39
|
grow: _ref,
|
|
40
|
-
hasShadow: /*#__PURE__*/(0, _react.css)((0,
|
|
40
|
+
hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), " ", borderStyle, ";;label:hasShadow;"),
|
|
41
41
|
hasBorder: /*#__PURE__*/(0, _react.css)("border:", euiTheme.border.thin, ";;label:hasBorder;"),
|
|
42
42
|
radius: {
|
|
43
43
|
none: /*#__PURE__*/(0, _react.css)(";label:none;"),
|
|
44
44
|
m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";;label:m;")
|
|
45
45
|
},
|
|
46
46
|
// Setup interactive behavior
|
|
47
|
-
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0,
|
|
47
|
+
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'l'), " transform:translateY(-2px);cursor:pointer;};label:isClickable;")
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.openAnimationTiming = exports.euiPopoverPanelStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
9
9
|
var _global_styling = require("../../../global_styling");
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -50,7 +50,7 @@ var euiPopoverPanelStyles = exports.euiPopoverPanelStyles = function euiPopoverP
|
|
|
50
50
|
// Regular popover with an arrow, a transform animation/transition, and a
|
|
51
51
|
// drop shadow via `filter` (which automatically handles the arrow)
|
|
52
52
|
hasTransform: {
|
|
53
|
-
hasTransform: /*#__PURE__*/(0, _react.css)("transform:translateY(0) translateX(0) translateZ(0);", (0,
|
|
53
|
+
hasTransform: /*#__PURE__*/(0, _react.css)("transform:translateY(0) translateX(0) translateZ(0);", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext, {
|
|
54
54
|
property: 'filter'
|
|
55
55
|
}), " ", _global_styling.euiCanAnimate, "{transition:", opacityTransition, ",", transformTransition, ";};label:hasTransform;"),
|
|
56
56
|
// Positions
|
|
@@ -62,8 +62,8 @@ var euiPopoverPanelStyles = exports.euiPopoverPanelStyles = function euiPopoverP
|
|
|
62
62
|
// No arrow, transform, or filters
|
|
63
63
|
isAttached: {
|
|
64
64
|
isAttached: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:", opacityTransition, ";};label:isAttached;"),
|
|
65
|
-
top: /*#__PURE__*/(0, _react.css)((0,
|
|
66
|
-
bottom: /*#__PURE__*/(0, _react.css)((0,
|
|
65
|
+
top: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowFlat)(euiThemeContext), ";;label:top;"),
|
|
66
|
+
bottom: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";;label:bottom;"),
|
|
67
67
|
get left() {
|
|
68
68
|
return this.bottom;
|
|
69
69
|
},
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiResizableCollapseButtonStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
9
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
var _amsterdam = require("../../themes/amsterdam");
|
|
10
10
|
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
12
12
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -32,7 +32,7 @@ var euiResizableCollapseButtonStyles = exports.euiResizableCollapseButtonStyles
|
|
|
32
32
|
return {
|
|
33
33
|
euiResizableCollapseButton: _ref,
|
|
34
34
|
collapsible: {
|
|
35
|
-
collapsible: /*#__PURE__*/(0, _react.css)("background:", euiTheme.colors.emptyShade, ";", (0,
|
|
35
|
+
collapsible: /*#__PURE__*/(0, _react.css)("background:", euiTheme.colors.emptyShade, ";", (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext), " &:focus{", (0, _euiThemeCommon.euiSlightShadowHover)(euiThemeContext), ";};label:collapsible;"),
|
|
36
36
|
horizontal: {
|
|
37
37
|
after: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('right', 0), " ", (0, _global_styling.logicalCSS)('margin-right', centeringOffset), ";;label:after;"),
|
|
38
38
|
before: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('margin-left', centeringOffset), ";;label:before;"),
|
|
@@ -37,7 +37,7 @@ var euiSelectableListItemStyles = exports.euiSelectableListItemStyles = function
|
|
|
37
37
|
paddingHorizontal = _euiSelectableListIte.paddingHorizontal,
|
|
38
38
|
paddingVertical = _euiSelectableListIte.paddingVertical;
|
|
39
39
|
return {
|
|
40
|
-
euiSelectableListItem: /*#__PURE__*/(0, _react.css)("display:inline-flex;", (0, _global_styling.logicalCSS)('width', '100%'), " line-height:", (0, _global_styling.euiFontSize)(euiThemeContext, 'm').lineHeight, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";text-align:start;cursor:pointer;overflow:hidden;&:not(:last-of-type){", (0, _global_styling.logicalCSS)('border-bottom', border), ";}&[aria-disabled='true']{color:", euiTheme.colors.
|
|
40
|
+
euiSelectableListItem: /*#__PURE__*/(0, _react.css)("display:inline-flex;", (0, _global_styling.logicalCSS)('width', '100%'), " line-height:", (0, _global_styling.euiFontSize)(euiThemeContext, 'm').lineHeight, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";text-align:start;cursor:pointer;overflow:hidden;&:not(:last-of-type){", (0, _global_styling.logicalCSS)('border-bottom', border), ";}&[aria-disabled='true']{color:", euiTheme.colors.textDisabled, ";cursor:not-allowed;}&:hover,&.euiSelectableListItem-isFocused{&:not([aria-disabled='true']){color:", euiTheme.colors.textPrimary, ";background-color:", euiTheme.focus.backgroundColor, ";.euiSelectableListItem__text{text-decoration:underline;}}};label:euiSelectableListItem;"),
|
|
41
41
|
padding: {
|
|
42
42
|
none: /*#__PURE__*/(0, _react.css)(";label:none;"),
|
|
43
43
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-vertical', paddingVertical), " ", (0, _global_styling.logicalCSS)('padding-horizontal', paddingHorizontal), ";;label:s;")
|
|
@@ -23,11 +23,11 @@ var euiSideNavItemStyles = exports.euiSideNavItemStyles = function euiSideNavIte
|
|
|
23
23
|
var emphasizedBackgroundColor = euiTheme.components.sideNavItemEmphasizedBackground;
|
|
24
24
|
return {
|
|
25
25
|
euiSideNavItem: /*#__PURE__*/(0, _react.css)(";label:euiSideNavItem;"),
|
|
26
|
-
emphasized: /*#__PURE__*/(0, _react.css)("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.
|
|
26
|
+
emphasized: /*#__PURE__*/(0, _react.css)("background-color:", emphasizedBackgroundColor, ";color:", euiTheme.colors.textHeading, ";box-shadow:100px 0 0 0 ", emphasizedBackgroundColor, ",-100px 0 0 0 ", emphasizedBackgroundColor, ";& &{background-color:transparent;box-shadow:none;};label:emphasized;"),
|
|
27
27
|
// Layout
|
|
28
28
|
root: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), " &+&{", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('padding-top', euiTheme.size.s), ";};label:root;"),
|
|
29
|
-
trunk: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
30
|
-
branch: /*#__PURE__*/(0, _react.css)("position:relative;color:", euiTheme.colors.
|
|
29
|
+
trunk: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textHeading, ";;label:trunk;"),
|
|
30
|
+
branch: /*#__PURE__*/(0, _react.css)("position:relative;color:", euiTheme.colors.textSubdued, ";&::after{position:absolute;content:'';", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('left', 0), " ", (0, _global_styling.logicalCSS)('width', euiTheme.border.width.thin), " background-color:", euiTheme.border.color, ";}&:last-of-type::after{", (0, _global_styling.logicalCSS)('height', euiTheme.size.m), ";};label:branch;"),
|
|
31
31
|
items: {
|
|
32
32
|
euiSideNavItem__items: /*#__PURE__*/(0, _react.css)(";label:euiSideNavItem__items;"),
|
|
33
33
|
rootWithIcon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.l), ";;label:rootWithIcon;"),
|
|
@@ -53,8 +53,8 @@ var euiSideNavItemButtonStyles = exports.euiSideNavItemButtonStyles = function e
|
|
|
53
53
|
return x * 2;
|
|
54
54
|
}), ")")), ";\n ");
|
|
55
55
|
return {
|
|
56
|
-
euiSideNavItemButton: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), "padding-block:", euiTheme.size.xxs, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";line-height:", lineHeightOverride, ";text-align:start;color:inherit;&:is(a, button):not(:disabled){&:hover{cursor:pointer;}&:hover,&:focus{.euiSideNavItemButton__label{text-decoration:underline;}}}&:disabled{cursor:not-allowed;color:", euiTheme.colors.
|
|
57
|
-
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
56
|
+
euiSideNavItemButton: /*#__PURE__*/(0, _react.css)("display:block;", (0, _global_styling.logicalCSS)('width', '100%'), "padding-block:", euiTheme.size.xxs, ";font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";line-height:", lineHeightOverride, ";text-align:start;color:inherit;&:is(a, button):not(:disabled){&:hover{cursor:pointer;}&:hover,&:focus{.euiSideNavItemButton__label{text-decoration:underline;}}}&:disabled{cursor:not-allowed;color:", euiTheme.colors.textDisabled, ";};label:euiSideNavItemButton;"),
|
|
57
|
+
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";font-weight:", euiTheme.font.weight.bold, ";.euiSideNavItemButton__label{text-decoration:underline;};label:selected;"),
|
|
58
58
|
emphasized: /*#__PURE__*/(0, _react.css)("font-weight:", euiTheme.font.weight.bold, ";;label:emphasized;"),
|
|
59
59
|
// Layout
|
|
60
60
|
root: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.xs), " padding-block:0;", paddingMarginOffset, ";;label:root;"),
|
|
@@ -31,12 +31,12 @@ var euiStatTitleStyles = exports.euiStatTitleStyles = function euiStatTitleStyle
|
|
|
31
31
|
euiStat__title: /*#__PURE__*/(0, _react.css)(";label:euiStat__title;"),
|
|
32
32
|
// Colors
|
|
33
33
|
default: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.fullShade, ";;label:default;"),
|
|
34
|
-
subdued: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
35
|
-
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
36
|
-
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
34
|
+
subdued: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSubdued, ";;label:subdued;"),
|
|
35
|
+
primary: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textPrimary, ";;label:primary;"),
|
|
36
|
+
success: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textSuccess, ";;label:success;"),
|
|
37
37
|
warning: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.warningText, ";;label:warning;"),
|
|
38
|
-
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
39
|
-
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.
|
|
38
|
+
danger: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textDanger, ";;label:danger;"),
|
|
39
|
+
accent: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.textAccent, ";;label:accent;"),
|
|
40
40
|
// Loading
|
|
41
41
|
isLoading: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{animation:", euiStatPulse, " 1.5s infinite ease-in-out;};label:isLoading;")
|
|
42
42
|
};
|