@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
|
@@ -25,13 +25,13 @@ var euiTableHeaderFooterCellStyles = exports.euiTableHeaderFooterCellStyles = fu
|
|
|
25
25
|
// euiFontSize returns an object, so we keep object notation here to merge into css``
|
|
26
26
|
var sharedStyles = _objectSpread(_objectSpread({}, (0, _global_styling.euiFontSize)(euiThemeContext, 'xs')), {}, {
|
|
27
27
|
fontWeight: euiTheme.font.weight.semiBold,
|
|
28
|
-
color: euiTheme.colors.
|
|
28
|
+
color: euiTheme.colors.textHeading,
|
|
29
29
|
verticalAlign: 'middle'
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
32
|
euiTableHeaderCell: /*#__PURE__*/(0, _react.css)(sharedStyles, ";;label:euiTableHeaderCell;"),
|
|
33
33
|
euiTableHeaderCell__content: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.xs, ";;label:euiTableHeaderCell__content;"),
|
|
34
|
-
euiTableHeaderCell__button: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", euiTheme.components.tableCellSortableIconColor, ";}&:hover,&:focus{color:", euiTheme.colors.
|
|
34
|
+
euiTableHeaderCell__button: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " font-weight:inherit;line-height:inherit;.euiTableSortIcon--sortable{color:", euiTheme.components.tableCellSortableIconColor, ";}&:hover,&:focus{color:", euiTheme.colors.textPrimary, ";text-decoration:underline;.euiTableSortIcon--sortable{color:", euiTheme.colors.textPrimary, ";}};label:euiTableHeaderCell__button;"),
|
|
35
35
|
euiTableFooterCell: /*#__PURE__*/(0, _react.css)(sharedStyles, " background-color:", euiTheme.colors.lightestShade, ";;label:euiTableFooterCell;")
|
|
36
36
|
};
|
|
37
37
|
};
|
|
@@ -4,34 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.EuiTableHeaderCell = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _services = require("../../services");
|
|
11
11
|
var _i18n = require("../i18n");
|
|
12
12
|
var _accessibility = require("../accessibility");
|
|
13
13
|
var _icon = require("../icon");
|
|
14
14
|
var _inner_text = require("../inner_text");
|
|
15
|
+
var _tool_tip = require("../tool_tip");
|
|
15
16
|
var _utils = require("./utils");
|
|
16
17
|
var _responsive_context = require("./mobile/responsive_context");
|
|
17
18
|
var _table_cell_content = require("./_table_cell_content");
|
|
18
19
|
var _table_cells_shared = require("./table_cells_shared.styles");
|
|
19
20
|
var _react2 = require("@emotion/react");
|
|
20
|
-
var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "description", "append"];
|
|
21
|
-
|
|
21
|
+
var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "tooltipProps", "description", "append"];
|
|
22
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
25
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); } /*
|
|
22
26
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
23
27
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
24
28
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
25
29
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
26
30
|
* Side Public License, v 1.
|
|
27
31
|
*/
|
|
28
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
30
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
31
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
32
32
|
var CellContents = function CellContents(_ref) {
|
|
33
33
|
var className = _ref.className,
|
|
34
34
|
align = _ref.align,
|
|
35
|
+
tooltipProps = _ref.tooltipProps,
|
|
35
36
|
description = _ref.description,
|
|
36
37
|
children = _ref.children,
|
|
37
38
|
canSort = _ref.canSort,
|
|
@@ -57,7 +58,14 @@ var CellContents = function CellContents(_ref) {
|
|
|
57
58
|
className: "eui-textTruncate"
|
|
58
59
|
}, children);
|
|
59
60
|
});
|
|
60
|
-
}), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)),
|
|
61
|
+
}), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)), tooltipProps && (0, _react2.jsx)(_tool_tip.EuiIconTip, _extends({
|
|
62
|
+
content: tooltipProps.content,
|
|
63
|
+
type: tooltipProps.icon || 'questionInCircle',
|
|
64
|
+
size: "m",
|
|
65
|
+
color: "subdued",
|
|
66
|
+
position: "top",
|
|
67
|
+
iconProps: tooltipProps.iconProps
|
|
68
|
+
}, tooltipProps.tooltipProps)), isSorted ? (0, _react2.jsx)(_icon.EuiIcon, {
|
|
61
69
|
className: "euiTableSortIcon",
|
|
62
70
|
type: isSortAscending ? 'sortUp' : 'sortDown',
|
|
63
71
|
size: "m"
|
|
@@ -81,6 +89,7 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
|
|
|
81
89
|
width = _ref2.width,
|
|
82
90
|
style = _ref2.style,
|
|
83
91
|
readOnly = _ref2.readOnly,
|
|
92
|
+
tooltipProps = _ref2.tooltipProps,
|
|
84
93
|
description = _ref2.description,
|
|
85
94
|
append = _ref2.append,
|
|
86
95
|
rest = _objectWithoutProperties(_ref2, _excluded);
|
|
@@ -104,6 +113,7 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
|
|
|
104
113
|
var cellContentsProps = {
|
|
105
114
|
css: styles.euiTableHeaderCell__content,
|
|
106
115
|
align: align,
|
|
116
|
+
tooltipProps: tooltipProps,
|
|
107
117
|
description: description,
|
|
108
118
|
canSort: canSort,
|
|
109
119
|
isSorted: isSorted,
|
|
@@ -139,6 +149,67 @@ EuiTableHeaderCell.propTypes = {
|
|
|
139
149
|
onSort: _propTypes.default.func,
|
|
140
150
|
scope: _propTypes.default.any,
|
|
141
151
|
width: _propTypes.default.oneOfType([_propTypes.default.string.isRequired, _propTypes.default.number.isRequired]),
|
|
152
|
+
/** Allows adding an icon with a tooltip displayed next to the name */tooltipProps: _propTypes.default.shape({
|
|
153
|
+
/** The main content of the tooltip */content: _propTypes.default.node.isRequired,
|
|
154
|
+
/**
|
|
155
|
+
* The icon type to display
|
|
156
|
+
* @default 'questionInCircle'
|
|
157
|
+
*/
|
|
158
|
+
icon: _propTypes.default.oneOfType([_propTypes.default.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "analyzeEvent", "annotation", "anomalyChart", "anomalySwimLane", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "article", "asterisk", "at", "auditbeatApp", "beaker", "bell", "bellSlash", "beta", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "changePointDetection", "check", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "codeApp", "color", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createGenericJob", "createGeoJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInCircle", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "diff", "discoverApp", "discuss", "document", "documentEdit", "documentation", "documents", "dot", "dotInCircle", "doubleArrowLeft", "doubleArrowRight", "download", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorChecklist", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignLeft", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "endpoint", "eql", "eraser", "error", "errorFilled", "esqlVis", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "grabOmnidirectional", "gradient", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "index", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "indexTemporary", "infinity", "inputOutput", "inspect", "invert", "ip", "key", "keyboard", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "kubernetesNode", "kubernetesPod", "launch", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "logPatternAnalysis", "logRateAnalysis", "logoAWS", "logoAWSMono", "logoAerospike", "logoApache", "logoAppSearch", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticStack", "logoElasticsearch", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoGoogleG", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoObservability", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoVulnerabilityManagement", "logoWebhook", "logoWindows", "logoWorkplaceSearch", "logsApp", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithExclamation", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menu", "menuDown", "menuLeft", "menuRight", "menuUp", "merge", "metricbeatApp", "metricsApp", "minimize", "minus", "minusInCircle", "minusInCircleFilled", "minusInSquare", "mobile", "monitoringApp", "moon", "move", "namespace", "nested", "newChat", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "palette", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipeBreaks", "pipelineApp", "pipeNoBreaks", "pivot", "play", "playFilled", "plugs", "plus", "plusInCircle", "plusInCircleFilled", "plusInSquare", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "section", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "singleMetricViewer", "snowflake", "sortAscending", "sortDescending", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spaces", "spacesApp", "sparkles", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "sun", "swatchInput", "symlink", "tableDensityCompact", "tableDensityExpanded", "tableDensityNormal", "tableOfContents", "tag", "tear", "temperature", "timeline", "timelineWithArrow", "timelionApp", "timeRefresh", "timeslider", "training", "transitionLeftIn", "transitionLeftOut", "transitionTopIn", "transitionTopOut", "trash", "unfold", "unlink", "upgradeAssistantApp", "uptimeApp", "user", "userAvatar", "users", "usersRolesApp", "vector", "videoPlayer", "visArea", "visAreaStacked", "visBarHorizontal", "visBarHorizontalStacked", "visBarVertical", "visBarVerticalStacked", "visGauge", "visGoal", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visVega", "visVisualBuilder", "visualizeApp", "vulnerabilityManagementApp", "warning", "warningFilled", "alert", "watchesApp", "web", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "wrench", "tokenAlias", "tokenAnnotation", "tokenArray", "tokenBinary", "tokenBoolean", "tokenClass", "tokenCompletionSuggester", "tokenConstant", "tokenDate", "tokenDimension", "tokenElement", "tokenEnum", "tokenEnumMember", "tokenEvent", "tokenException", "tokenField", "tokenFile", "tokenFlattened", "tokenFunction", "tokenGeo", "tokenHistogram", "tokenInterface", "tokenIP", "tokenJoin", "tokenKey", "tokenKeyword", "tokenMethod", "tokenMetricCounter", "tokenMetricGauge", "tokenModule", "tokenNamespace", "tokenNested", "tokenNull", "tokenNumber", "tokenObject", "tokenOperator", "tokenPackage", "tokenParameter", "tokenPercolator", "tokenProperty", "tokenRange", "tokenRankFeature", "tokenRankFeatures", "tokenRepo", "tokenSearchType", "tokenSemanticText", "tokenShape", "tokenString", "tokenStruct", "tokenSymbol", "tokenTag", "tokenText", "tokenTokenCount", "tokenVariable", "tokenVectorDense", "tokenDenseVector", "tokenVectorSparse"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.elementType.isRequired]),
|
|
159
|
+
/** Additional props for EuiIcon */iconProps: _propTypes.default.any,
|
|
160
|
+
/** Additional props for the EuiToolip */tooltipProps: _propTypes.default.shape({
|
|
161
|
+
/**
|
|
162
|
+
* Passes onto the span wrapping the trigger.
|
|
163
|
+
*/
|
|
164
|
+
anchorClassName: _propTypes.default.string,
|
|
165
|
+
/**
|
|
166
|
+
* Passes onto the span wrapping the trigger.
|
|
167
|
+
*/
|
|
168
|
+
anchorProps: _propTypes.default.shape({
|
|
169
|
+
className: _propTypes.default.string,
|
|
170
|
+
"aria-label": _propTypes.default.string,
|
|
171
|
+
"data-test-subj": _propTypes.default.string,
|
|
172
|
+
css: _propTypes.default.any
|
|
173
|
+
}),
|
|
174
|
+
/**
|
|
175
|
+
* Passes onto the tooltip itself, not the trigger.
|
|
176
|
+
*/
|
|
177
|
+
className: _propTypes.default.string,
|
|
178
|
+
/**
|
|
179
|
+
* The main content of your tooltip.
|
|
180
|
+
*/
|
|
181
|
+
content: _propTypes.default.node,
|
|
182
|
+
/**
|
|
183
|
+
* Common display alternatives for the anchor wrapper
|
|
184
|
+
*/
|
|
185
|
+
display: _propTypes.default.any,
|
|
186
|
+
/**
|
|
187
|
+
* An optional title for your tooltip.
|
|
188
|
+
*/
|
|
189
|
+
title: _propTypes.default.node,
|
|
190
|
+
/**
|
|
191
|
+
* Unless you provide one, this will be randomly generated.
|
|
192
|
+
*/
|
|
193
|
+
id: _propTypes.default.string,
|
|
194
|
+
/**
|
|
195
|
+
* When `true`, the tooltip's position is re-calculated when the user
|
|
196
|
+
* scrolls. This supports having fixed-position tooltip anchors.
|
|
197
|
+
*
|
|
198
|
+
* When nesting an `EuiTooltip` in a scrollable container, `repositionOnScroll` should be `true`
|
|
199
|
+
*/
|
|
200
|
+
repositionOnScroll: _propTypes.default.bool,
|
|
201
|
+
/**
|
|
202
|
+
* If supplied, called when mouse movement causes the tool tip to be
|
|
203
|
+
* hidden.
|
|
204
|
+
*/
|
|
205
|
+
onMouseOut: _propTypes.default.func,
|
|
206
|
+
"aria-label": _propTypes.default.string,
|
|
207
|
+
"data-test-subj": _propTypes.default.string,
|
|
208
|
+
css: _propTypes.default.any,
|
|
209
|
+
delay: _propTypes.default.any,
|
|
210
|
+
position: _propTypes.default.any
|
|
211
|
+
})
|
|
212
|
+
}),
|
|
142
213
|
description: _propTypes.default.string,
|
|
143
214
|
/**
|
|
144
215
|
* Shows the sort indicator but removes the button
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiTableRowStyles = 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 _table = require("./table.styles");
|
|
11
11
|
var _templateObject;
|
|
12
12
|
/*
|
|
@@ -37,7 +37,7 @@ var euiTableRowStyles = exports.euiTableRowStyles = function euiTableRowStyles(e
|
|
|
37
37
|
checkboxOffset: /*#__PURE__*/(0, _react.css)("&>.euiTableRowCell:first-child{", (0, _global_styling.logicalCSS)('padding-left', checkboxSize), ";};label:checkboxOffset;")
|
|
38
38
|
},
|
|
39
39
|
mobile: {
|
|
40
|
-
mobile: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", (0, _global_styling.logicalCSS)('margin-bottom', cellContentPadding), (0,
|
|
40
|
+
mobile: /*#__PURE__*/(0, _react.css)("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", (0, _global_styling.logicalCSS)('margin-bottom', cellContentPadding), (0, _euiThemeCommon.euiShadow)(euiThemeContext, 's'), " background-color:", euiTheme.colors.backgroundBasePlain, ";border-radius:", euiTheme.border.radius.medium, ";;label:mobile;"),
|
|
41
41
|
selected: /*#__PURE__*/(0, _react.css)("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.color, ";};label:selected;"),
|
|
42
42
|
/**
|
|
43
43
|
* Left column offset (no border)
|
|
@@ -24,10 +24,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
var euiTabStyles = exports.euiTabStyles = function euiTabStyles(_ref2) {
|
|
25
25
|
var euiTheme = _ref2.euiTheme;
|
|
26
26
|
return {
|
|
27
|
-
euiTab: /*#__PURE__*/(0, _react.css)("display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('padding-vertical', 0), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), "font-weight:", euiTheme.font.weight.semiBold, ";color:", euiTheme.colors.
|
|
27
|
+
euiTab: /*#__PURE__*/(0, _react.css)("display:flex;cursor:pointer;flex-direction:row;align-items:center;gap:", euiTheme.size.s, ";", (0, _global_styling.logicalCSS)('padding-vertical', 0), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), "font-weight:", euiTheme.font.weight.semiBold, ";color:", euiTheme.colors.textHeading, ";&:focus{outline-offset:-", euiTheme.focus.width, ";};label:euiTab;"),
|
|
28
28
|
// variations
|
|
29
29
|
expanded: _ref,
|
|
30
|
-
selected: /*#__PURE__*/(0, _react.css)("box-shadow:inset 0 -", euiTheme.border.width.thick, " 0 ", euiTheme.colors.primary, ";color:", euiTheme.colors.
|
|
30
|
+
selected: /*#__PURE__*/(0, _react.css)("box-shadow:inset 0 -", euiTheme.border.width.thick, " 0 ", euiTheme.colors.primary, ";color:", euiTheme.colors.textPrimary, ";;label:selected;"),
|
|
31
31
|
disabled: {
|
|
32
32
|
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";;label:disabled;"),
|
|
33
33
|
selected: /*#__PURE__*/(0, _react.css)("box-shadow:inset 0 -", euiTheme.border.width.thick, " 0 ", euiTheme.colors.disabledText, ";;label:selected;")
|
|
@@ -17,6 +17,6 @@ var euiTextDiffStyles = exports.euiTextDiffStyles = function euiTextDiffStyles(_
|
|
|
17
17
|
var euiTheme = _ref.euiTheme;
|
|
18
18
|
return {
|
|
19
19
|
// Base
|
|
20
|
-
euiTextDiff: /*#__PURE__*/(0, _react.css)("del{color:", euiTheme.colors.
|
|
20
|
+
euiTextDiff: /*#__PURE__*/(0, _react.css)("del{color:", euiTheme.colors.textDanger, ";}ins{color:", euiTheme.colors.textSuccess, ";};label:euiTextDiff;")
|
|
21
21
|
};
|
|
22
22
|
};
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiToastStyles = exports.euiToastHeaderStyles = 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
|
var _title = require("../title/title.styles");
|
|
11
11
|
/*
|
|
12
12
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -20,7 +20,7 @@ var euiToastStyles = exports.euiToastStyles = function euiToastStyles(euiThemeCo
|
|
|
20
20
|
var euiTheme = euiThemeContext.euiTheme;
|
|
21
21
|
return {
|
|
22
22
|
// Base
|
|
23
|
-
euiToast: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";", (0,
|
|
23
|
+
euiToast: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";", (0, _euiThemeCommon.euiShadowLarge)(euiThemeContext), " position:relative;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.base), " background-color:", euiTheme.colors.emptyShade, ";", (0, _global_styling.logicalCSS)('width', '100%'), " border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.borderBaseFloating, ";", (0, _global_styling.euiTextBreakWord)(), "&:hover,&:focus{[class*='euiToast__closeButton']{opacity:1;}};label:euiToast;"),
|
|
24
24
|
// Elements
|
|
25
25
|
euiToast__closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('right', euiTheme.size.base), ";;label:euiToast__closeButton;"),
|
|
26
26
|
// Variants
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.euiToolTipStyles = exports.euiToolTipBorderColor = exports.euiToolTipBackgroundColor = exports.euiToolTipAnchorStyles = 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
10
|
var _popover = require("../../services/popover");
|
|
10
|
-
var _amsterdam = require("../../themes/amsterdam");
|
|
11
11
|
var _templateObject, _templateObject2;
|
|
12
12
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
13
|
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)."; } /*
|
|
@@ -38,7 +38,7 @@ var euiToolTipStyles = exports.euiToolTipStyles = function euiToolTipStyles(euiT
|
|
|
38
38
|
var arrowStyles = (0, _popover._popoverArrowStyles)(euiThemeContext, arrowSize);
|
|
39
39
|
return {
|
|
40
40
|
// Base
|
|
41
|
-
euiToolTip: /*#__PURE__*/(0, _react.css)((0,
|
|
41
|
+
euiToolTip: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext), " border:", euiTheme.border.width.thin, " solid ", hasVisibleBorder ? euiTheme.border.color : 'transparent', ";border-radius:", euiTheme.border.radius.medium, ";background-color:", euiToolTipBackgroundColor(euiTheme), ";color:", euiTheme.colors.ghost, ";z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('max-width', '256px'), " overflow-wrap:break-word;padding:", euiTheme.size.s, ";", (0, _global_styling.euiFontSize)(euiThemeContext, 's'), " position:absolute;[class*='euiHorizontalRule']{background-color:", euiToolTipBorderColor(euiTheme), ";};label:euiToolTip;"),
|
|
42
42
|
// Sizes
|
|
43
43
|
s: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";;label:s;"),
|
|
44
44
|
// Positions
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "euiShadow", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.euiShadow;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "euiShadowFlat", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _euiThemeCommon.euiShadowFlat;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "euiShadowLarge", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _euiThemeCommon.euiShadowLarge;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "euiShadowMedium", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _euiThemeCommon.euiShadowMedium;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "euiShadowSmall", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _euiThemeCommon.euiShadowSmall;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "euiShadowXLarge", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _euiThemeCommon.euiShadowXLarge;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "euiShadowXSmall", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _euiThemeCommon.euiShadowXSmall;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "euiSlightShadowHover", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _euiThemeCommon.euiSlightShadowHover;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
exports.useEuiSlightShadowHover = exports.useEuiShadowFlat = exports.useEuiShadow = void 0;
|
|
55
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
56
|
+
var _theme = require("../../services/theme");
|
|
57
|
+
/*
|
|
58
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
59
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
60
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
61
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
62
|
+
* Side Public License, v 1.
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
var useEuiSlightShadowHover = exports.useEuiSlightShadowHover = function useEuiSlightShadowHover(color) {
|
|
66
|
+
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
67
|
+
return (0, _euiThemeCommon.euiSlightShadowHover)(euiThemeContext, {
|
|
68
|
+
color: color
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
var useEuiShadowFlat = exports.useEuiShadowFlat = function useEuiShadowFlat(color) {
|
|
72
|
+
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
73
|
+
return (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, {
|
|
74
|
+
color: color
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
var useEuiShadow = exports.useEuiShadow = function useEuiShadow() {
|
|
78
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'l';
|
|
79
|
+
var color = arguments.length > 1 ? arguments[1] : undefined;
|
|
80
|
+
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
81
|
+
return (0, _euiThemeCommon.euiShadow)(euiThemeContext, size, {
|
|
82
|
+
color: color
|
|
83
|
+
});
|
|
84
|
+
};
|
|
@@ -79,4 +79,15 @@ Object.keys(_button).forEach(function (key) {
|
|
|
79
79
|
return _button[key];
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
+
});
|
|
83
|
+
var _shadow = require("./_shadow");
|
|
84
|
+
Object.keys(_shadow).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _shadow[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function get() {
|
|
90
|
+
return _shadow[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
82
93
|
});
|
|
@@ -60,7 +60,7 @@ var EuiGlobalStyles = exports.EuiGlobalStyles = function EuiGlobalStyles(_ref) {
|
|
|
60
60
|
*/
|
|
61
61
|
var styles = /*#__PURE__*/(0, _react2.css)(_reset.resetStyles, " html{", scrollbarStyles, " ", fontReset, " text-size-adjust:100%;font-kerning:normal;", (0, _functions.logicalCSS)('height', '100%'), " background-color:", colors.body, ";color:", colors.text, ";}code,pre,kbd,samp{font-family:", font.familyCode, ";}input,textarea,select{", _objectSpread(_objectSpread({}, fontReset), {}, {
|
|
62
62
|
fontSize: '1rem' // Inherit from html root
|
|
63
|
-
}), ";}select:disabled{opacity:1;}button{font-family:", font.family, ";}em{font-style:italic;}strong{font-weight:", font.weight.bold, ";}*:focus{", (0, _mixins.euiFocusRing)(euiThemeContext), ";}::selection{background:", (0, _color.transparentize)(colors.primary, colorMode === 'LIGHT' ? 0.1 : 0.2), ";}a{color:", colors.
|
|
63
|
+
}), ";}select:disabled{opacity:1;}button{font-family:", font.family, ";}em{font-style:italic;}strong{font-weight:", font.weight.bold, ";}*:focus{", (0, _mixins.euiFocusRing)(euiThemeContext), ";}::selection{background:", (0, _color.transparentize)(colors.primary, colorMode === 'LIGHT' ? 0.1 : 0.2), ";}a{color:", colors.textPrimary, ";&,&:hover,&:focus{text-decoration:none;}}.euiBody-hasPortalContent{position:relative;};label:styles;");
|
|
64
64
|
return (0, _react2.jsx)(_react2.Global, {
|
|
65
65
|
styles: styles
|
|
66
66
|
});
|
|
@@ -3,22 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
14
|
-
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
15
|
-
* Side Public License, v 1.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
// Create a CSS color value using whose opacity is determined based
|
|
19
|
-
// on either a light or dark theme. We use a multiplier
|
|
20
|
-
// of 1 for light themes and 2.5 for dark themes
|
|
21
|
-
var getShadowColor = exports.getShadowColor = function getShadowColor(color, opacity, colorMode) {
|
|
22
|
-
var themeOpacity = colorMode === _types.COLOR_MODES_STANDARD.dark ? opacity * 3.5 : opacity * 1;
|
|
23
|
-
return (0, _chromaJs.default)(color).alpha(themeOpacity).css();
|
|
24
|
-
};
|
|
6
|
+
Object.defineProperty(exports, "getShadowColor", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.getShadowColor;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
@@ -3,158 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* euiSlightShadow
|
|
19
|
-
*/
|
|
20
|
-
var euiShadowXSmall = exports.euiShadowXSmall = function euiShadowXSmall(_ref) {
|
|
21
|
-
var euiTheme = _ref.euiTheme,
|
|
22
|
-
colorMode = _ref.colorMode;
|
|
23
|
-
var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
24
|
-
_color = _ref2.color;
|
|
25
|
-
var color = _color || euiTheme.colors.shadow;
|
|
26
|
-
return "\nbox-shadow:\n 0 .8px .8px ".concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 2.3px 2px ").concat((0, _functions.getShadowColor)(color, 0.03, colorMode), ";\n");
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* bottomShadowSmall
|
|
31
|
-
*/
|
|
32
|
-
var euiShadowSmall = exports.euiShadowSmall = function euiShadowSmall(_ref3) {
|
|
33
|
-
var euiTheme = _ref3.euiTheme,
|
|
34
|
-
colorMode = _ref3.colorMode;
|
|
35
|
-
var _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
36
|
-
_color = _ref4.color;
|
|
37
|
-
var color = _color || euiTheme.colors.shadow;
|
|
38
|
-
return "\nbox-shadow:\n 0 .7px 1.4px ".concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 1.9px 4px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ",\n 0 4.5px 10px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* bottomShadowMedium
|
|
43
|
-
*/
|
|
44
|
-
var euiShadowMedium = exports.euiShadowMedium = function euiShadowMedium(_ref5) {
|
|
45
|
-
var euiTheme = _ref5.euiTheme,
|
|
46
|
-
colorMode = _ref5.colorMode;
|
|
47
|
-
var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
48
|
-
_color = _ref6.color,
|
|
49
|
-
property = _ref6.property;
|
|
50
|
-
var color = _color || euiTheme.colors.shadow;
|
|
51
|
-
if (property === 'filter') {
|
|
52
|
-
// Using only one drop-shadow filter instead of multiple is more performant & prevents Safari bugs
|
|
53
|
-
return "filter: drop-shadow(0 5.7px 9px ".concat((0, _functions.getShadowColor)(color, 0.2, colorMode), ");");
|
|
54
|
-
} else {
|
|
55
|
-
return "box-shadow:\n 0 .9px 4px ".concat((0, _functions.getShadowColor)(color, 0.08, colorMode), ",\n 0 2.6px 8px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 5.7px 12px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ",\n 0 15px 15px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ";");
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* bottomShadow
|
|
61
|
-
*/
|
|
62
|
-
var euiShadowLarge = exports.euiShadowLarge = function euiShadowLarge(_ref7) {
|
|
63
|
-
var euiTheme = _ref7.euiTheme,
|
|
64
|
-
colorMode = _ref7.colorMode;
|
|
65
|
-
var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
66
|
-
_color = _ref8.color;
|
|
67
|
-
var color = _color || euiTheme.colors.shadow;
|
|
68
|
-
return "\nbox-shadow:\n 0 1px 5px ".concat((0, _functions.getShadowColor)(color, 0.1, colorMode), ",\n 0 3.6px 13px ").concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 8.4px 23px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 23px 35px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* bottomShadowLarge
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
var euiShadowXLarge = exports.euiShadowXLarge = function euiShadowXLarge(_ref9) {
|
|
76
|
-
var euiTheme = _ref9.euiTheme,
|
|
77
|
-
colorMode = _ref9.colorMode;
|
|
78
|
-
var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
79
|
-
_color = _ref10.color,
|
|
80
|
-
reverse = _ref10.reverse;
|
|
81
|
-
var color = _color || euiTheme.colors.shadow;
|
|
82
|
-
return "\nbox-shadow:\n 0 ".concat(reverse ? '-' : '', "2.7px 9px ").concat((0, _functions.getShadowColor)(color, 0.13, colorMode), ",\n 0 ").concat(reverse ? '-' : '', "9.4px 24px ").concat((0, _functions.getShadowColor)(color, 0.09, colorMode), ",\n 0 ").concat(reverse ? '-' : '', "21.8px 43px ").concat((0, _functions.getShadowColor)(color, 0.08, colorMode), ";\n");
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* slightShadowHover
|
|
87
|
-
*/
|
|
88
|
-
var euiSlightShadowHover = exports.euiSlightShadowHover = function euiSlightShadowHover(_ref11) {
|
|
89
|
-
var euiTheme = _ref11.euiTheme,
|
|
90
|
-
colorMode = _ref11.colorMode;
|
|
91
|
-
var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
92
|
-
_color = _ref12.color;
|
|
93
|
-
var color = _color || euiTheme.colors.shadow;
|
|
94
|
-
return "\nbox-shadow:\n 0 1px 5px ".concat((0, _functions.getShadowColor)(color, 0.1, colorMode), ",\n 0 3.6px 13px ").concat((0, _functions.getShadowColor)(color, 0.07, colorMode), ",\n 0 8.4px 23px ").concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 23px 35px ").concat((0, _functions.getShadowColor)(color, 0.05, colorMode), ";\n");
|
|
95
|
-
};
|
|
96
|
-
var useEuiSlightShadowHover = exports.useEuiSlightShadowHover = function useEuiSlightShadowHover(color) {
|
|
97
|
-
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
98
|
-
return euiSlightShadowHover(euiThemeContext, {
|
|
99
|
-
color: color
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* bottomShadowFlat
|
|
105
|
-
*
|
|
106
|
-
* Similar to shadow medium but without the bottom depth.
|
|
107
|
-
* Useful for popovers that drop UP rather than DOWN.
|
|
108
|
-
*/
|
|
109
|
-
var euiShadowFlat = exports.euiShadowFlat = function euiShadowFlat(_ref13) {
|
|
110
|
-
var euiTheme = _ref13.euiTheme,
|
|
111
|
-
colorMode = _ref13.colorMode;
|
|
112
|
-
var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
113
|
-
_color = _ref14.color;
|
|
114
|
-
var color = _color || euiTheme.colors.shadow;
|
|
115
|
-
return "\nbox-shadow:\n 0 0 .8px ".concat((0, _functions.getShadowColor)(color, 0.06, colorMode), ",\n 0 0 2px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 0 5px ").concat((0, _functions.getShadowColor)(color, 0.04, colorMode), ",\n 0 0 17px ").concat((0, _functions.getShadowColor)(color, 0.03, colorMode), ";\n");
|
|
116
|
-
};
|
|
117
|
-
var useEuiShadowFlat = exports.useEuiShadowFlat = function useEuiShadowFlat(color) {
|
|
118
|
-
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
119
|
-
return euiShadowFlat(euiThemeContext, {
|
|
120
|
-
color: color
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
var euiShadow = exports.euiShadow = function euiShadow(euiThemeContext) {
|
|
124
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'l';
|
|
125
|
-
var _ref15 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
|
|
126
|
-
color = _ref15.color;
|
|
127
|
-
switch (size) {
|
|
128
|
-
case 'xs':
|
|
129
|
-
return euiShadowXSmall(euiThemeContext, {
|
|
130
|
-
color: color
|
|
131
|
-
});
|
|
132
|
-
case 's':
|
|
133
|
-
return euiShadowSmall(euiThemeContext, {
|
|
134
|
-
color: color
|
|
135
|
-
});
|
|
136
|
-
case 'm':
|
|
137
|
-
return euiShadowMedium(euiThemeContext, {
|
|
138
|
-
color: color
|
|
139
|
-
});
|
|
140
|
-
case 'l':
|
|
141
|
-
return euiShadowLarge(euiThemeContext, {
|
|
142
|
-
color: color
|
|
143
|
-
});
|
|
144
|
-
case 'xl':
|
|
145
|
-
return euiShadowXLarge(euiThemeContext, {
|
|
146
|
-
color: color
|
|
147
|
-
});
|
|
148
|
-
default:
|
|
149
|
-
console.warn('Please provide a valid size option to useEuiShadow');
|
|
150
|
-
return '';
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
var useEuiShadow = exports.useEuiShadow = function useEuiShadow() {
|
|
154
|
-
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'l';
|
|
155
|
-
var color = arguments.length > 1 ? arguments[1] : undefined;
|
|
156
|
-
var euiThemeContext = (0, _theme.useEuiTheme)();
|
|
157
|
-
return euiShadow(euiThemeContext, size, {
|
|
158
|
-
color: color
|
|
6
|
+
var _shadow = require("../../../../global_styling/mixins/_shadow");
|
|
7
|
+
Object.keys(_shadow).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _shadow[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _shadow[key];
|
|
14
|
+
}
|
|
159
15
|
});
|
|
160
|
-
};
|
|
16
|
+
});
|
|
@@ -3,19 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var breakpoint = exports.breakpoint = {
|
|
16
|
-
xl: 1200,
|
|
17
|
-
l: 992,
|
|
18
|
-
m: 768,
|
|
19
|
-
s: 575,
|
|
20
|
-
xs: 0
|
|
21
|
-
};
|
|
6
|
+
Object.defineProperty(exports, "breakpoint", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _euiThemeCommon.breakpoint;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _euiThemeCommon = require("@elastic/eui-theme-common");
|