@elastic/eui 102.0.0 → 102.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/accessibility/skip_link/skip_link.js +7 -0
- package/es/components/button/button.js +7 -0
- package/es/components/button/button_empty/button_empty.js +7 -0
- package/es/components/button/button_group/button_group.js +5 -0
- package/es/components/button/button_icon/button_icon.js +7 -0
- package/es/components/card/card.js +7 -0
- package/es/components/card/card_select/card_select.js +7 -0
- package/es/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/es/components/color_picker/color_picker.js +13 -8
- package/es/components/color_picker/hue.js +27 -6
- package/es/components/color_picker/hue.styles.js +3 -2
- package/es/components/color_picker/saturation.js +16 -11
- package/es/components/color_picker/saturation.styles.js +2 -1
- package/es/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/es/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/es/components/datagrid/body/data_grid_body.js +7 -0
- package/es/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/es/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/es/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/es/components/datagrid/controls/column_sorting.js +7 -0
- package/es/components/datagrid/controls/data_grid_toolbar_control.js +7 -0
- package/es/components/datagrid/utils/in_memory.js +7 -0
- package/es/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/es/components/filter_group/filter_button.js +10 -1
- package/es/components/header/header_links/header_link.js +7 -0
- package/es/components/header/header_section/header_section_item_button.js +7 -0
- package/es/components/list_group/list_group.js +7 -0
- package/es/components/list_group/list_group_item.js +7 -0
- package/es/components/list_group/list_group_item_extra_action.js +7 -0
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/es/components/pagination/pagination_button.js +7 -0
- package/es/components/table/table_header_cell.js +30 -12
- package/es/components/tool_tip/tool_tip.js +4 -1
- package/es/global_styling/mixins/_button.js +13 -3
- package/es/global_styling/mixins/_color.js +9 -2
- package/es/test/index.d.ts +2 -1
- package/eui.d.ts +828 -639
- package/lib/components/accessibility/skip_link/skip_link.js +7 -0
- package/lib/components/button/button.js +7 -0
- package/lib/components/button/button_empty/button_empty.js +7 -0
- package/lib/components/button/button_group/button_group.js +5 -0
- package/lib/components/button/button_icon/button_icon.js +7 -0
- package/lib/components/card/card.js +7 -0
- package/lib/components/card/card_select/card_select.js +7 -0
- package/lib/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/lib/components/color_picker/color_picker.js +13 -8
- package/lib/components/color_picker/hue.js +26 -5
- package/lib/components/color_picker/hue.styles.js +3 -2
- package/lib/components/color_picker/saturation.js +16 -11
- package/lib/components/color_picker/saturation.styles.js +2 -1
- package/lib/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/lib/components/datagrid/body/data_grid_body.js +7 -0
- package/lib/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/lib/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/lib/components/datagrid/controls/column_sorting.js +7 -0
- package/lib/components/datagrid/controls/data_grid_toolbar_control.js +7 -0
- package/lib/components/datagrid/utils/in_memory.js +7 -0
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/lib/components/filter_group/filter_button.js +10 -1
- package/lib/components/header/header_links/header_link.js +7 -0
- package/lib/components/header/header_section/header_section_item_button.js +7 -0
- package/lib/components/list_group/list_group.js +7 -0
- package/lib/components/list_group/list_group_item.js +7 -0
- package/lib/components/list_group/list_group_item_extra_action.js +7 -0
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/lib/components/pagination/pagination_button.js +7 -0
- package/lib/components/table/table_header_cell.js +28 -10
- package/lib/components/tool_tip/tool_tip.js +4 -1
- package/lib/global_styling/mixins/_button.js +13 -4
- package/lib/global_styling/mixins/_color.js +11 -4
- package/lib/test/index.d.ts +2 -1
- package/optimize/es/components/color_picker/color_picker.js +13 -8
- package/optimize/es/components/color_picker/hue.js +22 -6
- package/optimize/es/components/color_picker/hue.styles.js +3 -2
- package/optimize/es/components/color_picker/saturation.js +16 -11
- package/optimize/es/components/color_picker/saturation.styles.js +2 -1
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/optimize/es/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/es/components/table/table_header_cell.js +26 -11
- package/optimize/es/components/tool_tip/tool_tip.js +4 -1
- package/optimize/es/global_styling/mixins/_button.js +8 -3
- package/optimize/es/global_styling/mixins/_color.js +4 -2
- package/optimize/es/test/index.d.ts +2 -1
- package/optimize/lib/components/color_picker/color_picker.js +13 -8
- package/optimize/lib/components/color_picker/hue.js +21 -5
- package/optimize/lib/components/color_picker/hue.styles.js +3 -2
- package/optimize/lib/components/color_picker/saturation.js +16 -11
- package/optimize/lib/components/color_picker/saturation.styles.js +2 -1
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/optimize/lib/components/table/table_header_cell.js +25 -11
- package/optimize/lib/components/tool_tip/tool_tip.js +4 -1
- package/optimize/lib/global_styling/mixins/_button.js +8 -4
- package/optimize/lib/global_styling/mixins/_color.js +4 -2
- package/optimize/lib/test/index.d.ts +2 -1
- package/package.json +2 -2
- package/test-env/components/accessibility/skip_link/skip_link.js +7 -0
- package/test-env/components/button/button.js +7 -0
- package/test-env/components/button/button_empty/button_empty.js +7 -0
- package/test-env/components/button/button_group/button_group.js +5 -0
- package/test-env/components/button/button_icon/button_icon.js +7 -0
- package/test-env/components/card/card.js +7 -0
- package/test-env/components/card/card_select/card_select.js +7 -0
- package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js +7 -0
- package/test-env/components/color_picker/color_picker.js +13 -8
- package/test-env/components/color_picker/hue.js +21 -5
- package/test-env/components/color_picker/hue.styles.js +3 -2
- package/test-env/components/color_picker/saturation.js +16 -11
- package/test-env/components/color_picker/saturation.styles.js +2 -1
- package/test-env/components/datagrid/body/cell/data_grid_cell.js +7 -0
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.js +2 -2
- package/test-env/components/datagrid/body/cell/data_grid_cell_actions.styles.js +1 -1
- package/test-env/components/datagrid/body/data_grid_body.js +7 -0
- package/test-env/components/datagrid/body/data_grid_body_custom.js +7 -0
- package/test-env/components/datagrid/body/data_grid_body_virtualized.js +7 -0
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +7 -0
- package/test-env/components/datagrid/controls/column_sorting.js +7 -0
- package/test-env/components/datagrid/controls/data_grid_toolbar_control.js +7 -0
- package/test-env/components/datagrid/utils/in_memory.js +7 -0
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +7 -0
- package/test-env/components/filter_group/filter_button.js +10 -1
- package/test-env/components/header/header_links/header_link.js +7 -0
- package/test-env/components/header/header_section/header_section_item_button.js +7 -0
- package/test-env/components/list_group/list_group.js +7 -0
- package/test-env/components/list_group/list_group_item.js +7 -0
- package/test-env/components/list_group/list_group_item_extra_action.js +7 -0
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +7 -0
- package/test-env/components/pagination/pagination_button.js +7 -0
- package/test-env/components/table/table_header_cell.js +26 -12
- package/test-env/components/tool_tip/tool_tip.js +4 -1
- package/test-env/global_styling/mixins/_button.js +8 -4
- package/test-env/global_styling/mixins/_color.js +4 -2
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiTableHeaderCell = void 0;
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -21,7 +22,8 @@ var _table_cell_content = require("./_table_cell_content");
|
|
|
21
22
|
var _table_cells_shared = require("./table_cells_shared.styles");
|
|
22
23
|
var _react2 = require("@emotion/react");
|
|
23
24
|
var _excluded = ["children", "align", "onSort", "isSorted", "isSortAscending", "className", "scope", "mobileOptions", "width", "style", "readOnly", "tooltipProps", "description", "append"];
|
|
24
|
-
|
|
25
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
26
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
|
|
25
27
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
26
28
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
27
29
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
@@ -37,6 +39,21 @@ var CellContents = function CellContents(_ref) {
|
|
|
37
39
|
canSort = _ref.canSort,
|
|
38
40
|
isSorted = _ref.isSorted,
|
|
39
41
|
isSortAscending = _ref.isSortAscending;
|
|
42
|
+
var tooltipIcon = tooltipProps ? canSort ? (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
|
|
43
|
+
className: "euiTableSortIcon",
|
|
44
|
+
type: tooltipProps.icon || 'questionInCircle',
|
|
45
|
+
size: "m",
|
|
46
|
+
color: "subdued"
|
|
47
|
+
}, tooltipProps.iconProps)) : (0, _react2.jsx)(_tool_tip.EuiIconTip, (0, _extends2.default)({
|
|
48
|
+
content: tooltipProps.content,
|
|
49
|
+
type: tooltipProps.icon || 'questionInCircle',
|
|
50
|
+
size: "m",
|
|
51
|
+
color: "subdued",
|
|
52
|
+
position: "top",
|
|
53
|
+
iconProps: _objectSpread({
|
|
54
|
+
role: 'button'
|
|
55
|
+
}, tooltipProps.iconProps)
|
|
56
|
+
}, tooltipProps.tooltipProps)) : null;
|
|
40
57
|
return (0, _react2.jsx)(_table_cell_content.EuiTableCellContent, {
|
|
41
58
|
className: className,
|
|
42
59
|
align: align,
|
|
@@ -57,14 +74,7 @@ var CellContents = function CellContents(_ref) {
|
|
|
57
74
|
className: "eui-textTruncate"
|
|
58
75
|
}, children);
|
|
59
76
|
});
|
|
60
|
-
}), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)),
|
|
61
|
-
content: tooltipProps.content,
|
|
62
|
-
type: tooltipProps.icon || 'questionInCircle',
|
|
63
|
-
size: "m",
|
|
64
|
-
color: "subdued",
|
|
65
|
-
position: "top",
|
|
66
|
-
iconProps: tooltipProps.iconProps
|
|
67
|
-
}, tooltipProps.tooltipProps)), isSorted ? (0, _react2.jsx)(_icon.EuiIcon, {
|
|
77
|
+
}), description && (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("span", null, description)), tooltipIcon, isSorted ? (0, _react2.jsx)(_icon.EuiIcon, {
|
|
68
78
|
className: "euiTableSortIcon",
|
|
69
79
|
type: isSortAscending ? 'sortUp' : 'sortDown',
|
|
70
80
|
size: "m"
|
|
@@ -126,7 +136,11 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
|
|
|
126
136
|
role: "columnheader",
|
|
127
137
|
"aria-sort": ariaSortValue,
|
|
128
138
|
style: inlineStyles
|
|
129
|
-
}, rest), canSort ? (0, _react2.jsx)(
|
|
139
|
+
}, rest), canSort ? (0, _react2.jsx)(_tool_tip.EuiToolTip, (0, _extends2.default)({
|
|
140
|
+
content: tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.content
|
|
141
|
+
}, tooltipProps === null || tooltipProps === void 0 ? void 0 : tooltipProps.tooltipProps, {
|
|
142
|
+
display: "block"
|
|
143
|
+
}), (0, _react2.jsx)("button", {
|
|
130
144
|
type: "button",
|
|
131
145
|
css: styles.euiTableHeaderCell__button,
|
|
132
146
|
className: (0, _classnames.default)('euiTableHeaderButton', {
|
|
@@ -134,5 +148,5 @@ var EuiTableHeaderCell = exports.EuiTableHeaderCell = function EuiTableHeaderCel
|
|
|
134
148
|
}),
|
|
135
149
|
onClick: onSort,
|
|
136
150
|
"data-test-subj": "tableHeaderSortButton"
|
|
137
|
-
}, (0, _react2.jsx)(CellContents, cellContentsProps)) : (0, _react2.jsx)(CellContents, cellContentsProps), append);
|
|
151
|
+
}, (0, _react2.jsx)(CellContents, cellContentsProps))) : (0, _react2.jsx)(CellContents, cellContentsProps), append);
|
|
138
152
|
};
|
|
@@ -179,7 +179,10 @@ var EuiToolTip = exports.EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
179
179
|
});
|
|
180
180
|
(0, _defineProperty2.default)(_this, "onEscapeKey", function (event) {
|
|
181
181
|
if (event.key === _services.keys.ESCAPE) {
|
|
182
|
-
|
|
182
|
+
// when the tooltip is only visual, we don't want it to add an additional key stop
|
|
183
|
+
if (!_this.props.disableScreenReaderOutput) {
|
|
184
|
+
if (_this.state.visible) event.stopPropagation();
|
|
185
|
+
}
|
|
183
186
|
_this.setState({
|
|
184
187
|
hasFocus: false
|
|
185
188
|
}); // Allows mousing over back into the tooltip to work correctly
|
|
@@ -4,8 +4,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
7
|
+
exports.useEuiButtonFocusCSS = exports.useEuiButtonColorCSS = exports.euiButtonSizeMap = exports.euiButtonFillColor = exports.euiButtonEmptyColor = exports.euiButtonColor = exports.SEVERITY_COLORS = exports.EXTENDED_BUTTON_COLORS = exports.BUTTON_DISPLAYS = exports.BUTTON_COLORS = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
11
|
var _react = require("@emotion/react");
|
|
11
12
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
@@ -19,7 +20,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
20
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
20
21
|
* Side Public License, v 1.
|
|
21
22
|
*/
|
|
22
|
-
|
|
23
|
+
/** Tentative usage; these exist only to be used as button directly when used within other components */
|
|
24
|
+
var SEVERITY_COLORS = exports.SEVERITY_COLORS = ['neutral', 'risk'];
|
|
25
|
+
var BUTTON_COLORS = exports.BUTTON_COLORS = ['text', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'];
|
|
26
|
+
var EXTENDED_BUTTON_COLORS = exports.EXTENDED_BUTTON_COLORS = [].concat(BUTTON_COLORS, SEVERITY_COLORS);
|
|
23
27
|
var BUTTON_DISPLAYS = exports.BUTTON_DISPLAYS = ['base', 'fill', 'empty'];
|
|
24
28
|
/**
|
|
25
29
|
* Creates the `base` version of button styles with proper text contrast.
|
|
@@ -91,7 +95,7 @@ var euiButtonEmptyColor = exports.euiButtonEmptyColor = function euiButtonEmptyC
|
|
|
91
95
|
/**
|
|
92
96
|
* Given the button display type, returns the Emotion based color keys.
|
|
93
97
|
* @param options Button display type
|
|
94
|
-
* @returns An object of `
|
|
98
|
+
* @returns An object of `_EuiExtendedButtonColor` keys including `disabled`
|
|
95
99
|
*/
|
|
96
100
|
var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonColorCSS() {
|
|
97
101
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -101,7 +105,7 @@ var useEuiButtonColorCSS = exports.useEuiButtonColorCSS = function useEuiButtonC
|
|
|
101
105
|
return colorsDisplaysMap[display];
|
|
102
106
|
};
|
|
103
107
|
var euiButtonDisplaysColors = function euiButtonDisplaysColors(euiThemeContext) {
|
|
104
|
-
var COLORS = [].concat(
|
|
108
|
+
var COLORS = [].concat((0, _toConsumableArray2.default)(EXTENDED_BUTTON_COLORS), ['disabled']);
|
|
105
109
|
var displaysColorsMap = {};
|
|
106
110
|
BUTTON_DISPLAYS.forEach(function (display) {
|
|
107
111
|
displaysColorsMap[display] = {};
|
|
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.useEuiBorderColorCSS = exports.useEuiBackgroundColorCSS = exports.useEuiBackgroundColor = exports.euiBorderColor = exports.euiBackgroundColor = exports.BACKGROUND_COLORS = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
10
|
var _react = require("@emotion/react");
|
|
10
|
-
var _services = require("../../services");
|
|
11
11
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
12
|
+
var _services = require("../../services");
|
|
13
|
+
var _button = require("./_button");
|
|
12
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /*
|
|
14
16
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -17,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
17
19
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
20
|
* Side Public License, v 1.
|
|
19
21
|
*/
|
|
20
|
-
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'highlighted', 'accent', 'accentSecondary', 'primary', '
|
|
22
|
+
var BACKGROUND_COLORS = exports.BACKGROUND_COLORS = ['transparent', 'plain', 'subdued', 'highlighted', 'accent', 'accentSecondary', 'primary', 'success', 'warning', 'danger'].concat((0, _toConsumableArray2.default)(_button.SEVERITY_COLORS));
|
|
21
23
|
/**
|
|
22
24
|
* @deprecated - use background tokens directly
|
|
23
25
|
* @returns A single background color with optional alpha transparency
|
|
@@ -24,7 +24,8 @@ declare module '@elastic/eui/optimize/lib/test/take_mounted_snapshot' {
|
|
|
24
24
|
|
|
25
25
|
}
|
|
26
26
|
declare module '@elastic/eui/optimize/lib/test/find_test_subject' {
|
|
27
|
-
import { ReactWrapper, ShallowWrapper } from 'enzyme'; const MATCHERS: readonly ["=", "~=", "|=", "^=", "$=", "*="];
|
|
27
|
+
import { ReactWrapper, ShallowWrapper } from 'enzyme'; const MATCHERS: readonly ["=", "~=", "|=", "^=", "$=", "*="];
|
|
28
|
+
type FindTestSubject<T extends ShallowWrapper | ReactWrapper> = (mountedComponent: T, testSubjectSelector: string, matcher?: (typeof MATCHERS)[number]) => ReturnType<T['find']>;
|
|
28
29
|
export const findTestSubject: FindTestSubject<ShallowWrapper<any> | ReactWrapper<any>>;
|
|
29
30
|
export {};
|
|
30
31
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "102.
|
|
4
|
+
"version": "102.1.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
"stylelint-config-standard": "^33.0.0",
|
|
249
249
|
"stylelint-config-standard-scss": "^9.0.0",
|
|
250
250
|
"terser-webpack-plugin": "^5.3.5",
|
|
251
|
-
"typescript": "
|
|
251
|
+
"typescript": "^5.8.3",
|
|
252
252
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
253
253
|
"webpack": "^5.74.0",
|
|
254
254
|
"webpack-cli": "^4.10.0",
|
|
@@ -137,6 +137,13 @@ EuiSkipLink.propTypes = {
|
|
|
137
137
|
fill: _propTypes.default.bool,
|
|
138
138
|
/**
|
|
139
139
|
* Any of the named color palette options.
|
|
140
|
+
*
|
|
141
|
+
* Do not use the following colors for standalone buttons directly,
|
|
142
|
+
* they exist to serve other components:
|
|
143
|
+
* - accent
|
|
144
|
+
* - warning
|
|
145
|
+
* - neutral
|
|
146
|
+
* - risk
|
|
140
147
|
*/
|
|
141
148
|
color: _propTypes.default.any,
|
|
142
149
|
/**
|
|
@@ -70,6 +70,13 @@ EuiButton.propTypes = {
|
|
|
70
70
|
fill: _propTypes.default.bool,
|
|
71
71
|
/**
|
|
72
72
|
* Any of the named color palette options.
|
|
73
|
+
*
|
|
74
|
+
* Do not use the following colors for standalone buttons directly,
|
|
75
|
+
* they exist to serve other components:
|
|
76
|
+
* - accent
|
|
77
|
+
* - warning
|
|
78
|
+
* - neutral
|
|
79
|
+
* - risk
|
|
73
80
|
*/
|
|
74
81
|
color: _propTypes.default.any,
|
|
75
82
|
/**
|
|
@@ -118,6 +118,13 @@ EuiButtonEmpty.propTypes = {
|
|
|
118
118
|
onClick: _propTypes.default.func,
|
|
119
119
|
/**
|
|
120
120
|
* Any of the named color palette options.
|
|
121
|
+
*
|
|
122
|
+
* Do not use the following colors for standalone buttons directly,
|
|
123
|
+
* they exist to serve other components:
|
|
124
|
+
* - accent
|
|
125
|
+
* - warning
|
|
126
|
+
* - neutral
|
|
127
|
+
* - risk
|
|
121
128
|
*/
|
|
122
129
|
color: _propTypes.default.any,
|
|
123
130
|
size: _propTypes.default.any,
|
|
@@ -105,6 +105,11 @@ EuiButtonGroup.propTypes = {
|
|
|
105
105
|
legend: _propTypes.default.string.isRequired,
|
|
106
106
|
/**
|
|
107
107
|
* Any of the named color palette options.
|
|
108
|
+
*
|
|
109
|
+
* Do not use the following colors for standalone buttons directly,
|
|
110
|
+
* they exist to serve other components:
|
|
111
|
+
* - accent
|
|
112
|
+
* - warning
|
|
108
113
|
*/
|
|
109
114
|
color: _propTypes.default.any,
|
|
110
115
|
/**
|
|
@@ -135,6 +135,13 @@ EuiButtonIcon.propTypes = {
|
|
|
135
135
|
iconType: _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", "checkCircle", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "comment", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controls", "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", "export", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "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", "readOnly", "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]).isRequired,
|
|
136
136
|
/**
|
|
137
137
|
* Any of the named color palette options.
|
|
138
|
+
*
|
|
139
|
+
* Do not use the following colors for standalone buttons directly,
|
|
140
|
+
* they exist to serve other components:
|
|
141
|
+
* - accent
|
|
142
|
+
* - warning
|
|
143
|
+
* - neutral
|
|
144
|
+
* - risk
|
|
138
145
|
*/
|
|
139
146
|
color: _propTypes.default.any,
|
|
140
147
|
"aria-label": _propTypes.default.string,
|
|
@@ -421,6 +421,13 @@ EuiCard.propTypes = {
|
|
|
421
421
|
fill: _propTypes.default.bool,
|
|
422
422
|
/**
|
|
423
423
|
* Any of the named color palette options.
|
|
424
|
+
*
|
|
425
|
+
* Do not use the following colors for standalone buttons directly,
|
|
426
|
+
* they exist to serve other components:
|
|
427
|
+
* - accent
|
|
428
|
+
* - warning
|
|
429
|
+
* - neutral
|
|
430
|
+
* - risk
|
|
424
431
|
*/
|
|
425
432
|
color: _propTypes.default.any,
|
|
426
433
|
/**
|
|
@@ -57,6 +57,13 @@ EuiCardSelect.propTypes = {
|
|
|
57
57
|
fill: _propTypes.default.bool,
|
|
58
58
|
/**
|
|
59
59
|
* Any of the named color palette options.
|
|
60
|
+
*
|
|
61
|
+
* Do not use the following colors for standalone buttons directly,
|
|
62
|
+
* they exist to serve other components:
|
|
63
|
+
* - accent
|
|
64
|
+
* - warning
|
|
65
|
+
* - neutral
|
|
66
|
+
* - risk
|
|
60
67
|
*/
|
|
61
68
|
color: _propTypes.default.any,
|
|
62
69
|
/**
|
package/test-env/components/collapsible_nav_beta/_kibana_solution/collapsible_nav_kibana_solution.js
CHANGED
|
@@ -222,6 +222,13 @@ KibanaCollapsibleNavSolution.propTypes = {
|
|
|
222
222
|
iconType: _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", "checkCircle", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "comment", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controls", "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", "export", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "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", "readOnly", "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]).isRequired,
|
|
223
223
|
/**
|
|
224
224
|
* Any of the named color palette options.
|
|
225
|
+
*
|
|
226
|
+
* Do not use the following colors for standalone buttons directly,
|
|
227
|
+
* they exist to serve other components:
|
|
228
|
+
* - accent
|
|
229
|
+
* - warning
|
|
230
|
+
* - neutral
|
|
231
|
+
* - risk
|
|
225
232
|
*/
|
|
226
233
|
color: _propTypes.default.any,
|
|
227
234
|
"aria-label": _propTypes.default.string,
|
|
@@ -17,6 +17,7 @@ var _services = require("../../services");
|
|
|
17
17
|
var _form = require("../form");
|
|
18
18
|
var _i18n = require("../i18n");
|
|
19
19
|
var _popover = require("../popover");
|
|
20
|
+
var _accessibility = require("../accessibility");
|
|
20
21
|
var _color_picker_swatch = require("./color_picker_swatch");
|
|
21
22
|
var _hue = require("./hue");
|
|
22
23
|
var _saturation = require("./saturation");
|
|
@@ -96,15 +97,16 @@ var EuiColorPicker = exports.EuiColorPicker = function EuiColorPicker(_ref) {
|
|
|
96
97
|
isClearable = _ref$isClearable === void 0 ? false : _ref$isClearable,
|
|
97
98
|
placeholder = _ref.placeholder,
|
|
98
99
|
dataTestSubj = _ref['data-test-subj'];
|
|
99
|
-
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiColorPicker.popoverLabel', 'euiColorPicker.colorLabel', 'euiColorPicker.colorErrorMessage', 'euiColorPicker.transparent', 'euiColorPicker.alphaLabel', 'euiColorPicker.openLabel', 'euiColorPicker.closeLabel'], ['Color selection dialog', 'Color value', 'Invalid color value', 'Transparent', 'Alpha channel (opacity) value', 'Press the escape key to close the popover', 'Press the down key to open a popover containing color options']),
|
|
100
|
-
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n,
|
|
100
|
+
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiColorPicker.popoverLabel', 'euiColorPicker.colorLabel', 'euiColorPicker.selectedColorLabel', 'euiColorPicker.colorErrorMessage', 'euiColorPicker.transparent', 'euiColorPicker.alphaLabel', 'euiColorPicker.openLabel', 'euiColorPicker.closeLabel'], ['Color selection dialog', 'Color value', 'Selected color', 'Invalid color value', 'Transparent', 'Alpha channel (opacity) value', 'Press the escape key to close the popover', 'Press the down key to open a popover containing color options']),
|
|
101
|
+
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n, 8),
|
|
101
102
|
popoverLabel = _useEuiI18n2[0],
|
|
102
103
|
colorLabel = _useEuiI18n2[1],
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
selectedColorLabel = _useEuiI18n2[2],
|
|
105
|
+
colorErrorMessage = _useEuiI18n2[3],
|
|
106
|
+
transparent = _useEuiI18n2[4],
|
|
107
|
+
alphaLabel = _useEuiI18n2[5],
|
|
108
|
+
openLabel = _useEuiI18n2[6],
|
|
109
|
+
closeLabel = _useEuiI18n2[7];
|
|
108
110
|
var defaultSwatches = (0, _services.useEuiPaletteColorBlind)();
|
|
109
111
|
var swatches = _swatches !== null && _swatches !== void 0 ? _swatches : defaultSwatches;
|
|
110
112
|
var preferredFormat = (0, _react.useMemo)(function () {
|
|
@@ -354,7 +356,10 @@ var EuiColorPicker = exports.EuiColorPicker = function EuiColorPicker(_ref) {
|
|
|
354
356
|
hex: chromaColor ? chromaColor.hex() : undefined,
|
|
355
357
|
onChange: handleHueSelection,
|
|
356
358
|
onKeyDown: handleOnKeyDown
|
|
357
|
-
})),
|
|
359
|
+
}), (0, _react2.jsx)(_accessibility.EuiScreenReaderOnly, null, (0, _react2.jsx)("p", {
|
|
360
|
+
"aria-live": "polite",
|
|
361
|
+
"aria-atomic": "true"
|
|
362
|
+
}, selectedColorLabel, ": ", chromaColor === null || chromaColor === void 0 ? void 0 : chromaColor.hex().toUpperCase()))), showSwatches && (0, _react2.jsx)("ul", {
|
|
358
363
|
css: styles.euiColorPicker__swatches,
|
|
359
364
|
className: "euiColorPicker__swatches"
|
|
360
365
|
}, swatches.map(function (swatch, index) {
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.EuiHue = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
11
|
var _react = _interopRequireDefault(require("react"));
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -14,6 +15,7 @@ var _services = require("../../services");
|
|
|
14
15
|
var _accessibility = require("../accessibility");
|
|
15
16
|
var _i18n = require("../i18n");
|
|
16
17
|
var _hue = require("./hue.styles");
|
|
18
|
+
var _tool_tip = require("../tool_tip");
|
|
17
19
|
var _react2 = require("@emotion/react");
|
|
18
20
|
var _excluded = ["className", "hex", "hue", "id", "onChange"];
|
|
19
21
|
/*
|
|
@@ -34,9 +36,16 @@ var EuiHue = exports.EuiHue = function EuiHue(_ref) {
|
|
|
34
36
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
35
37
|
var classes = (0, _classnames.default)('euiHue', className);
|
|
36
38
|
var styles = (0, _services.useEuiMemoizedStyles)(_hue.euiHueStyles);
|
|
39
|
+
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiHue.ariaValueText', 'euiHue.ariaRoleDescription'], ['Hue', 'Hue slider']),
|
|
40
|
+
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n, 2),
|
|
41
|
+
ariaValueText = _useEuiI18n2[0],
|
|
42
|
+
ariaRoleDescription = _useEuiI18n2[1];
|
|
37
43
|
var handleChange = function handleChange(e) {
|
|
38
44
|
onChange(Number(e.target.value));
|
|
39
45
|
};
|
|
46
|
+
var hueValue = typeof hue === 'string' ? parseInt(hue) : hue;
|
|
47
|
+
// align the tooltip contextually closer to the thumb
|
|
48
|
+
var tooltipPosition = hueValue < Math.floor(HUE_RANGE / 2) ? 'left' : 'right';
|
|
40
49
|
return (0, _react2.jsx)("div", {
|
|
41
50
|
css: styles.euiHue,
|
|
42
51
|
className: classes
|
|
@@ -45,9 +54,14 @@ var EuiHue = exports.EuiHue = function EuiHue(_ref) {
|
|
|
45
54
|
}, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
46
55
|
token: "euiHue.label",
|
|
47
56
|
default: "Select the HSV color mode 'hue' value"
|
|
48
|
-
}))), (0, _react2.jsx)(
|
|
49
|
-
|
|
50
|
-
|
|
57
|
+
}))), (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
58
|
+
content: hex,
|
|
59
|
+
anchorProps: {
|
|
60
|
+
css: styles.euiHue__tooltip
|
|
61
|
+
},
|
|
62
|
+
disableScreenReaderOutput: true,
|
|
63
|
+
position: tooltipPosition
|
|
64
|
+
}, (0, _react2.jsx)("input", (0, _extends2.default)({
|
|
51
65
|
id: "".concat(id, "-hue"),
|
|
52
66
|
min: 0,
|
|
53
67
|
max: HUE_RANGE,
|
|
@@ -56,8 +70,10 @@ var EuiHue = exports.EuiHue = function EuiHue(_ref) {
|
|
|
56
70
|
css: styles.euiHue__range,
|
|
57
71
|
className: "euiHue__range",
|
|
58
72
|
value: hue,
|
|
59
|
-
onChange: handleChange
|
|
60
|
-
|
|
73
|
+
onChange: handleChange,
|
|
74
|
+
"aria-roledescription": ariaRoleDescription,
|
|
75
|
+
"aria-valuetext": "".concat(ariaValueText, " ").concat(hue, "\xB0")
|
|
76
|
+
}, rest))));
|
|
61
77
|
};
|
|
62
78
|
EuiHue.propTypes = {
|
|
63
79
|
className: _propTypes.default.string,
|
|
@@ -32,9 +32,10 @@ var euiHueStyles = exports.euiHueStyles = function euiHueStyles(euiThemeContext)
|
|
|
32
32
|
preferred: "border: ".concat(euiTheme.border.thin, ";"),
|
|
33
33
|
forced: (0, _high_contrast.preventForcedColors)(euiThemeContext)
|
|
34
34
|
}), ";;label:euiHue;"),
|
|
35
|
-
|
|
35
|
+
euiHue__tooltip: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', thumbSize), (0, _global_styling.logicalCSS)('width', "calc(100% + 2px)"), (0, _global_styling.logicalCSS)('margin-horizontal', '-1px'), " ", (0, _global_styling.logicalCSS)('margin-top', (0, _global_styling.mathWithUnits)(height, function (x) {
|
|
36
36
|
return x / -2;
|
|
37
|
-
})), "
|
|
37
|
+
})), ";;label:euiHue__tooltip;"),
|
|
38
|
+
euiHue__range: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), " ", (0, _global_styling.logicalCSS)('width', '100%'), "appearance:none;background:transparent;&::-webkit-slider-thumb{-webkit-appearance:none;}", (0, _range.euiRangeThumbPerBrowser)("\n ".concat((0, _range.euiRangeThumbStyle)(euiThemeContext), "\n border-width: ").concat(thumbBorder, ";\n\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
38
39
|
none: "\n background-color: transparent;\n box-shadow: ".concat(thumbBoxShadow, ";\n "),
|
|
39
40
|
preferred: "\n background-color: ".concat(euiTheme.colors.ghost, ";\n border: ").concat(thumbBorder, " solid ").concat(euiTheme.colors.ink, ";\n box-shadow: none;\n ")
|
|
40
41
|
}), "\n ")), "&:focus{outline:none;}", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
@@ -17,6 +17,7 @@ var _services = require("../../services");
|
|
|
17
17
|
var _predicate = require("../../services/predicate");
|
|
18
18
|
var _global_styling = require("../../global_styling");
|
|
19
19
|
var _i18n = require("../i18n");
|
|
20
|
+
var _tool_tip = require("../tool_tip");
|
|
20
21
|
var _utils = require("./utils");
|
|
21
22
|
var _saturation = require("./saturation.styles");
|
|
22
23
|
var _react2 = require("@emotion/react");
|
|
@@ -51,10 +52,11 @@ var EuiSaturation = exports.EuiSaturation = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
51
52
|
});
|
|
52
53
|
var instructionsId = "".concat(id, "-instructions");
|
|
53
54
|
var indicatorId = "".concat(id, "-saturationIndicator");
|
|
54
|
-
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiSaturation.ariaLabel', 'euiSaturation.screenReaderInstructions'], ['HSV color mode saturation and value 2-axis slider', "Arrow keys to navigate the square color gradient. Coordinates will be used to calculate HSV color mode 'saturation' and 'value' numbers, in the range of 0 to 1. Left and right to change the saturation. Up and down change the value."]),
|
|
55
|
-
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n,
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiSaturation.ariaLabel', 'euiSaturation.roleDescription', 'euiSaturation.screenReaderInstructions'], ['Select a color', 'HSV color mode saturation and value 2-axis slider.', "Arrow keys to navigate the square color gradient. Coordinates will be used to calculate HSV color mode 'saturation' and 'value' numbers, in the range of 0 to 1. Left and right to change the saturation. Up and down change the value."]),
|
|
56
|
+
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n, 3),
|
|
57
|
+
ariaLabel = _useEuiI18n2[0],
|
|
58
|
+
roleDescString = _useEuiI18n2[1],
|
|
59
|
+
instructionsString = _useEuiI18n2[2];
|
|
58
60
|
var _useState = (0, _react.useState)({
|
|
59
61
|
left: 0,
|
|
60
62
|
top: 0
|
|
@@ -176,18 +178,21 @@ var EuiSaturation = exports.EuiSaturation = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
176
178
|
}, (0, _react2.jsx)("div", {
|
|
177
179
|
css: styles.euiSaturation__saturation,
|
|
178
180
|
className: "euiSaturation__saturation"
|
|
179
|
-
})), (0, _react2.jsx)(
|
|
181
|
+
})), (0, _react2.jsx)(_tool_tip.EuiToolTip, {
|
|
182
|
+
content: hex,
|
|
183
|
+
anchorProps: {
|
|
184
|
+
css: styles.euiSaturation__tooltip,
|
|
185
|
+
style: (0, _global_styling.logicalStyles)(indicator)
|
|
186
|
+
},
|
|
187
|
+
disableScreenReaderOutput: true // required to prevent verbose screen reader output
|
|
188
|
+
}, (0, _react2.jsx)("button", {
|
|
180
189
|
id: indicatorId,
|
|
181
190
|
css: styles.euiSaturation__indicator,
|
|
182
191
|
className: "euiSaturation__indicator",
|
|
183
|
-
style: (0, _global_styling.logicalStyles)(indicator),
|
|
184
192
|
"aria-roledescription": roleDescString,
|
|
185
|
-
"aria-label":
|
|
193
|
+
"aria-label": ariaLabel,
|
|
186
194
|
"aria-describedby": instructionsId
|
|
187
|
-
}), (0, _react2.jsx)("span", {
|
|
188
|
-
hidden: true,
|
|
189
|
-
"aria-live": "assertive"
|
|
190
|
-
}, hex), (0, _react2.jsx)("span", {
|
|
195
|
+
})), (0, _react2.jsx)("span", {
|
|
191
196
|
hidden: true,
|
|
192
197
|
id: instructionsId
|
|
193
198
|
}, instructionsString));
|
|
@@ -36,7 +36,8 @@ var euiSaturationStyles = exports.euiSaturationStyles = function euiSaturationSt
|
|
|
36
36
|
}), ";;label:euiSaturation;"),
|
|
37
37
|
euiSaturation__lightness: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;border-radius:", gradientBorderRadius, ";background:linear-gradient(\n to right,\n rgba(255, 255, 255, 1),\n rgba(255, 255, 255, 0)\n );;label:euiSaturation__lightness;"),
|
|
38
38
|
euiSaturation__saturation: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;border-radius:", gradientBorderRadius, ";background:linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));;label:euiSaturation__saturation;"),
|
|
39
|
-
|
|
39
|
+
euiSaturation__tooltip: /*#__PURE__*/(0, _react.css)("z-index:2;position:absolute;", (0, _global_styling.logicalSizeCSS)(indicatorSize), " transform:translateX(-50%) translateY(-50%);border-radius:100%;;label:euiSaturation__tooltip;"),
|
|
40
|
+
euiSaturation__indicator: /*#__PURE__*/(0, _react.css)("position:absolute;inset:0;", (0, _global_styling.logicalSizeCSS)(indicatorSize), " border-radius:100%;", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
40
41
|
none: "\n border: ".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.darkestShade, ";\n\n &::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: 100%;\n border: ").concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.lightestShade, ";\n }\n "),
|
|
41
42
|
preferred: "\n border: ".concat(euiTheme.border.width.thick, " solid ").concat(euiTheme.colors.ink, ";\n background-color: ").concat(euiTheme.colors.ghost, ";\n ")
|
|
42
43
|
}), ";;label:euiSaturation__indicator;")
|
|
@@ -208,6 +208,13 @@ EuiDataGridCellContent.propTypes = {
|
|
|
208
208
|
iconType: _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", "checkCircle", "checkInCircleFilled", "cheer", "classificationJob", "clickLeft", "clickRight", "clock", "clockCounter", "cloudDrizzle", "cloudStormy", "cloudSunny", "cluster", "code", "codeApp", "color", "comment", "compute", "console", "consoleApp", "container", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "contrast", "contrastHigh", "controls", "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", "export", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "fieldStatistics", "filebeatApp", "filter", "filterExclude", "filterIgnore", "filterInclude", "filterInCircle", "flask", "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", "readOnly", "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]).isRequired,
|
|
209
209
|
/**
|
|
210
210
|
* Any of the named color palette options.
|
|
211
|
+
*
|
|
212
|
+
* Do not use the following colors for standalone buttons directly,
|
|
213
|
+
* they exist to serve other components:
|
|
214
|
+
* - accent
|
|
215
|
+
* - warning
|
|
216
|
+
* - neutral
|
|
217
|
+
* - risk
|
|
211
218
|
*/
|
|
212
219
|
color: _propTypes.default.any,
|
|
213
220
|
"aria-label": _propTypes.default.string,
|
|
@@ -52,8 +52,8 @@ var EuiDataGridCellActions = exports.EuiDataGridCellActions = function EuiDataGr
|
|
|
52
52
|
"data-test-subj": "euiDataGridCellExpandButton",
|
|
53
53
|
display: "fill",
|
|
54
54
|
color: "primary",
|
|
55
|
-
iconSize: "
|
|
56
|
-
iconType: "
|
|
55
|
+
iconSize: "s",
|
|
56
|
+
iconType: "expand",
|
|
57
57
|
"aria-hidden": true,
|
|
58
58
|
onClick: onExpandClick,
|
|
59
59
|
title: expandButtonTitle
|
|
@@ -34,7 +34,7 @@ var euiDataGridCellActionsStyles = exports.euiDataGridCellActionsStyles = functi
|
|
|
34
34
|
})), " background-color:inherit;}", cellSelectors.hoverColor, " &{background-color:", cellOutline.hoverColor, ";border-color:", cellOutline.hoverColor, ";}", _global_styling.euiCanAnimate, "{transform:scaleY(0);transform-origin:bottom;", cellSelectors.showAnimation, " &{animation-duration:", euiTheme.animation.fast, ";animation-name:", slideUp, ";animation-iteration-count:1;animation-fill-mode:forwards;}", cellSelectors.hoverAnimation, " &{animation-delay:", euiTheme.animation.slow, ";}};label:euiDataGridRowCell__actions;"),
|
|
35
35
|
euiDataGridRowCell__actionButtonIcon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', euiTheme.size.base), " ", (0, _global_styling.logicalCSS)('height', (0, _global_styling.mathWithUnits)([euiTheme.size.base, euiTheme.size.xs], function (x, y) {
|
|
36
36
|
return x + y;
|
|
37
|
-
})), " border-radius:0;&,svg{background-color:transparent!important;color:currentColor!important;fill:currentColor!important;}
|
|
37
|
+
})), " border-radius:0;&,svg{background-color:transparent!important;color:currentColor!important;fill:currentColor!important;}", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
38
38
|
preferred: 'border: none;'
|
|
39
39
|
}), ";;label:euiDataGridRowCell__actionButtonIcon;")
|
|
40
40
|
};
|