@elastic/eui 72.0.0 → 72.2.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_charts_theme.js +13 -1
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +0 -151
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -151
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/accordion/accordion.js +1 -1
- package/es/components/basic_table/basic_table.js +2 -2
- package/es/components/basic_table/in_memory_table.js +3 -6
- package/es/components/basic_table/table.a11y.js +128 -0
- package/es/components/color_picker/color_picker.styles.js +16 -0
- package/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/es/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/es/components/date_picker/super_date_picker/super_update_button.js +8 -0
- package/es/components/form/range/range_highlight.styles.js +1 -1
- package/es/components/form/range/range_levels.styles.js +1 -1
- package/es/components/form/range/range_track.js +5 -2
- package/es/components/image/image.a11y.js +55 -0
- package/es/components/image/image.js +9 -2
- package/es/components/image/image_fullscreen_wrapper.js +3 -1
- package/es/components/image/image_wrapper.js +3 -1
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +158 -0
- package/es/components/markdown_editor/markdown_format.styles.js +2 -5
- package/es/components/popover/popover.js +2 -2
- package/es/components/table/table_footer_cell.js +1 -1
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/table/table_row_cell.js +2 -2
- package/es/components/text/text.styles.js +6 -3
- package/es/components/tool_tip/icon_tip.js +8 -0
- package/es/components/tool_tip/tool_tip.js +24 -1
- package/es/components/tour/tour.styles.js +1 -1
- package/es/services/color/manipulation.js +9 -0
- package/es/services/index.js +11 -11
- package/eui.d.ts +166 -107
- package/i18ntokens.json +16 -16
- package/lib/components/accordion/accordion.js +1 -1
- package/lib/components/basic_table/basic_table.js +2 -2
- package/lib/components/basic_table/in_memory_table.js +3 -6
- package/lib/components/basic_table/table.a11y.js +139 -0
- package/lib/components/color_picker/color_picker.styles.js +26 -0
- package/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/lib/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/lib/components/date_picker/super_date_picker/super_update_button.js +8 -0
- package/lib/components/form/range/range_highlight.styles.js +1 -1
- package/lib/components/form/range/range_levels.styles.js +1 -1
- package/lib/components/form/range/range_track.js +6 -2
- package/lib/components/image/image.a11y.js +61 -0
- package/lib/components/image/image.js +9 -2
- package/lib/components/image/image_fullscreen_wrapper.js +3 -1
- package/lib/components/image/image_wrapper.js +3 -1
- package/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/lib/components/markdown_editor/markdown_format.styles.js +1 -4
- package/lib/components/popover/popover.js +2 -2
- package/lib/components/table/table_footer_cell.js +1 -1
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/table/table_row_cell.js +2 -2
- package/lib/components/text/text.styles.js +5 -2
- package/lib/components/tool_tip/icon_tip.js +8 -0
- package/lib/components/tool_tip/tool_tip.js +24 -1
- package/lib/components/tour/tour.styles.js +1 -1
- package/lib/services/color/manipulation.js +14 -2
- package/lib/services/index.js +65 -58
- package/optimize/es/components/accordion/accordion.js +1 -1
- package/optimize/es/components/basic_table/table.a11y.js +128 -0
- package/optimize/es/components/color_picker/color_picker.styles.js +16 -0
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/optimize/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/optimize/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/optimize/es/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/es/components/form/range/range_levels.styles.js +1 -1
- package/optimize/es/components/form/range/range_track.js +5 -2
- package/optimize/es/components/image/image.a11y.js +55 -0
- package/optimize/es/components/image/image.js +4 -2
- package/optimize/es/components/image/image_fullscreen_wrapper.js +3 -1
- package/optimize/es/components/image/image_wrapper.js +3 -1
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +148 -0
- package/optimize/es/components/markdown_editor/markdown_format.styles.js +2 -5
- package/optimize/es/components/popover/popover.js +2 -2
- package/optimize/es/components/text/text.styles.js +6 -3
- package/optimize/es/components/tool_tip/tool_tip.js +16 -1
- package/optimize/es/components/tour/tour.styles.js +1 -1
- package/optimize/es/services/color/manipulation.js +9 -0
- package/optimize/es/services/index.js +11 -11
- package/optimize/lib/components/accordion/accordion.js +1 -1
- package/optimize/lib/components/basic_table/table.a11y.js +139 -0
- package/optimize/lib/components/color_picker/color_picker.styles.js +26 -0
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/optimize/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/optimize/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/optimize/lib/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/lib/components/form/range/range_levels.styles.js +1 -1
- package/optimize/lib/components/form/range/range_track.js +6 -2
- package/optimize/lib/components/image/image.a11y.js +61 -0
- package/optimize/lib/components/image/image.js +4 -2
- package/optimize/lib/components/image/image_fullscreen_wrapper.js +3 -1
- package/optimize/lib/components/image/image_wrapper.js +3 -1
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/optimize/lib/components/markdown_editor/markdown_format.styles.js +1 -4
- package/optimize/lib/components/popover/popover.js +2 -2
- package/optimize/lib/components/text/text.styles.js +5 -2
- package/optimize/lib/components/tool_tip/tool_tip.js +16 -1
- package/optimize/lib/components/tour/tour.styles.js +1 -1
- package/optimize/lib/services/color/manipulation.js +14 -2
- package/optimize/lib/services/index.js +65 -58
- package/package.json +2 -2
- package/src/components/color_picker/_index.scss +0 -1
- package/src/components/markdown_editor/_markdown_format.scss +0 -4
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/accordion/accordion.js +1 -1
- package/test-env/components/basic_table/basic_table.js +2 -2
- package/test-env/components/basic_table/in_memory_table.js +3 -6
- package/test-env/components/basic_table/table.a11y.js +139 -0
- package/test-env/components/color_picker/color_picker.styles.js +26 -0
- package/test-env/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/test-env/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/test-env/components/color_picker/color_stops/color_stops.js +25 -14
- package/test-env/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/test-env/components/date_picker/super_date_picker/super_date_picker.js +9 -0
- package/test-env/components/date_picker/super_date_picker/super_update_button.js +8 -0
- package/test-env/components/form/range/range_highlight.styles.js +1 -1
- package/test-env/components/form/range/range_levels.styles.js +1 -1
- package/test-env/components/form/range/range_track.js +6 -2
- package/test-env/components/image/image.a11y.js +61 -0
- package/test-env/components/image/image.js +9 -2
- package/test-env/components/image/image_fullscreen_wrapper.js +3 -1
- package/test-env/components/image/image_wrapper.js +3 -1
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/test-env/components/markdown_editor/markdown_format.styles.js +1 -4
- package/test-env/components/popover/popover.js +2 -2
- package/test-env/components/table/table_footer_cell.js +1 -1
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/table/table_row_cell.js +2 -2
- package/test-env/components/text/text.styles.js +5 -2
- package/test-env/components/tool_tip/icon_tip.js +8 -0
- package/test-env/components/tool_tip/tool_tip.js +24 -1
- package/test-env/components/tour/tour.styles.js +1 -1
- package/test-env/services/color/manipulation.js +14 -2
- package/test-env/services/index.js +65 -58
- package/src/components/color_picker/color_stops/_color_stops.scss +0 -101
- package/src/components/color_picker/color_stops/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_color_stops.scss +0 -58
|
@@ -45,10 +45,12 @@ var EuiImageWrapper = function EuiImageWrapper(_ref) {
|
|
|
45
45
|
setIsFullScreen = _ref.setIsFullScreen,
|
|
46
46
|
wrapperProps = _ref.wrapperProps,
|
|
47
47
|
fullScreenIconColor = _ref.fullScreenIconColor,
|
|
48
|
-
isFullWidth = _ref.isFullWidth
|
|
48
|
+
isFullWidth = _ref.isFullWidth,
|
|
49
|
+
onFullScreen = _ref.onFullScreen;
|
|
49
50
|
|
|
50
51
|
var openFullScreen = function openFullScreen() {
|
|
51
52
|
setIsFullScreen(true);
|
|
53
|
+
onFullScreen === null || onFullScreen === void 0 ? void 0 : onFullScreen(true);
|
|
52
54
|
};
|
|
53
55
|
|
|
54
56
|
var classes = (0, _classnames.default)('euiImageWrapper', wrapperProps && wrapperProps.className);
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
+
|
|
7
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
8
|
+
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
|
|
11
|
+
var _key_pad_menu = require("./key_pad_menu");
|
|
12
|
+
|
|
13
|
+
var _key_pad_menu_item = require("./key_pad_menu_item");
|
|
14
|
+
|
|
15
|
+
var _icon = require("../icon");
|
|
16
|
+
|
|
17
|
+
var _services = require("../../services");
|
|
18
|
+
|
|
19
|
+
var _react2 = require("@emotion/react");
|
|
20
|
+
|
|
21
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
22
|
+
|
|
23
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
27
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
28
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
29
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
30
|
+
* Side Public License, v 1.
|
|
31
|
+
*/
|
|
32
|
+
/// <reference types="../../../cypress/support"/>
|
|
33
|
+
var KeyPadMenu = function KeyPadMenu() {
|
|
34
|
+
var keypadButtonId__1 = (0, _services.useGeneratedHtmlId)({
|
|
35
|
+
prefix: 'keypadButton',
|
|
36
|
+
suffix: 'first'
|
|
37
|
+
});
|
|
38
|
+
var keypadButtonId__2 = (0, _services.useGeneratedHtmlId)({
|
|
39
|
+
prefix: 'keypadButton',
|
|
40
|
+
suffix: 'second'
|
|
41
|
+
});
|
|
42
|
+
var keypadButtonId__3 = (0, _services.useGeneratedHtmlId)({
|
|
43
|
+
prefix: 'keypadButton',
|
|
44
|
+
suffix: 'third'
|
|
45
|
+
});
|
|
46
|
+
var keypadButtonId__4 = (0, _services.useGeneratedHtmlId)({
|
|
47
|
+
prefix: 'keypadButton',
|
|
48
|
+
suffix: 'fourth'
|
|
49
|
+
});
|
|
50
|
+
var keypadButtonId__5 = (0, _services.useGeneratedHtmlId)({
|
|
51
|
+
prefix: 'keypadButton',
|
|
52
|
+
suffix: 'fifth'
|
|
53
|
+
});
|
|
54
|
+
var keypadButtonId__6 = (0, _services.useGeneratedHtmlId)({
|
|
55
|
+
prefix: 'keypadButton',
|
|
56
|
+
suffix: 'sixth'
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _useState = (0, _react.useState)(keypadButtonId__6),
|
|
60
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
61
|
+
selectedID = _useState2[0],
|
|
62
|
+
setSelectedID = _useState2[1];
|
|
63
|
+
|
|
64
|
+
return (0, _react2.jsx)("div", {
|
|
65
|
+
"aria-label": "Menu keypad"
|
|
66
|
+
}, (0, _react2.jsx)(_key_pad_menu.EuiKeyPadMenu, null, (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
67
|
+
"data-test-subj": "cy-keypad-button-1",
|
|
68
|
+
id: keypadButtonId__1,
|
|
69
|
+
label: "Button 1",
|
|
70
|
+
isSelected: selectedID === keypadButtonId__1,
|
|
71
|
+
onClick: function onClick() {
|
|
72
|
+
return setSelectedID(keypadButtonId__1);
|
|
73
|
+
}
|
|
74
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
75
|
+
type: "grid",
|
|
76
|
+
size: "l"
|
|
77
|
+
})), (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
78
|
+
"data-test-subj": "cy-keypad-button-2",
|
|
79
|
+
id: keypadButtonId__2,
|
|
80
|
+
label: "Button 2",
|
|
81
|
+
isSelected: selectedID === keypadButtonId__2,
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
return setSelectedID(keypadButtonId__2);
|
|
84
|
+
}
|
|
85
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
86
|
+
type: "grid",
|
|
87
|
+
size: "l"
|
|
88
|
+
})), (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
89
|
+
"data-test-subj": "cy-keypad-button-3",
|
|
90
|
+
id: keypadButtonId__3,
|
|
91
|
+
label: "Button 3",
|
|
92
|
+
isSelected: selectedID === keypadButtonId__3,
|
|
93
|
+
onClick: function onClick() {
|
|
94
|
+
return setSelectedID(keypadButtonId__3);
|
|
95
|
+
}
|
|
96
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
97
|
+
type: "grid",
|
|
98
|
+
size: "l"
|
|
99
|
+
})), (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
100
|
+
"data-test-subj": "cy-keypad-link-1",
|
|
101
|
+
id: keypadButtonId__4,
|
|
102
|
+
label: "Link 1",
|
|
103
|
+
href: "#/navigation/key-pad-menu",
|
|
104
|
+
isSelected: selectedID === keypadButtonId__4,
|
|
105
|
+
onClick: function onClick() {
|
|
106
|
+
return setSelectedID(keypadButtonId__4);
|
|
107
|
+
}
|
|
108
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
109
|
+
type: "link",
|
|
110
|
+
size: "l"
|
|
111
|
+
})), (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
112
|
+
"data-test-subj": "cy-keypad-link-2",
|
|
113
|
+
id: keypadButtonId__5,
|
|
114
|
+
label: "Link 2",
|
|
115
|
+
href: "#/navigation/key-pad-menu",
|
|
116
|
+
isSelected: selectedID === keypadButtonId__5,
|
|
117
|
+
onClick: function onClick() {
|
|
118
|
+
return setSelectedID(keypadButtonId__5);
|
|
119
|
+
}
|
|
120
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
121
|
+
type: "link",
|
|
122
|
+
size: "l"
|
|
123
|
+
})), (0, _react2.jsx)(_key_pad_menu_item.EuiKeyPadMenuItem, {
|
|
124
|
+
"data-test-subj": "cy-keypad-link-3",
|
|
125
|
+
id: keypadButtonId__6,
|
|
126
|
+
label: "Disabled Link 3",
|
|
127
|
+
isDisabled: true,
|
|
128
|
+
isSelected: selectedID === keypadButtonId__6
|
|
129
|
+
}, (0, _react2.jsx)(_icon.EuiIcon, {
|
|
130
|
+
type: "link",
|
|
131
|
+
size: "l"
|
|
132
|
+
}))));
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
beforeEach(function () {
|
|
136
|
+
cy.realMount((0, _react2.jsx)(KeyPadMenu, null));
|
|
137
|
+
cy.get('div[aria-label="Menu keypad"]').should('exist');
|
|
138
|
+
});
|
|
139
|
+
describe('EuiKeyPadMenu', function () {
|
|
140
|
+
describe('Automated accessibility check', function () {
|
|
141
|
+
it('has zero violations on first render', function () {
|
|
142
|
+
cy.checkAxe();
|
|
143
|
+
});
|
|
144
|
+
it('has zero violations on item click', function () {
|
|
145
|
+
cy.get('a[data-test-subj="cy-keypad-link-2"]').realClick();
|
|
146
|
+
cy.get('a[data-test-subj="cy-keypad-link-2"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
147
|
+
cy.checkAxe();
|
|
148
|
+
});
|
|
149
|
+
it('has zero violations on item keypress', function () {
|
|
150
|
+
cy.repeatRealPress('Tab', 3);
|
|
151
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('have.focus');
|
|
152
|
+
cy.realPress('Space');
|
|
153
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
154
|
+
cy.checkAxe();
|
|
155
|
+
cy.realPress(['Shift', 'Tab']);
|
|
156
|
+
cy.get('button[data-test-subj="cy-keypad-button-2"]').should('have.focus');
|
|
157
|
+
cy.realPress('Space');
|
|
158
|
+
cy.get('button[data-test-subj="cy-keypad-button-2"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
159
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('not.have.class', 'euiKeyPadMenuItem-isSelected');
|
|
160
|
+
cy.checkAxe();
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
});
|
|
@@ -29,16 +29,13 @@ var euiScaleMarkdownFormatText = function euiScaleMarkdownFormatText(euiTheme, o
|
|
|
29
29
|
var measurement = options.measurement;
|
|
30
30
|
var lineHeightSize = measurement === 'em' ? "".concat(lineHeight, "em") : lineHeight; // Custom scales
|
|
31
31
|
|
|
32
|
-
var blockQuoteBorderWidth = (0, _global_styling.mathWithUnits)(fontSize, function (x) {
|
|
33
|
-
return x / 4;
|
|
34
|
-
});
|
|
35
32
|
var tablePaddingVertical = (0, _global_styling.mathWithUnits)(fontSize, function (x) {
|
|
36
33
|
return x / 4;
|
|
37
34
|
});
|
|
38
35
|
var tablePaddingHorizontal = (0, _global_styling.mathWithUnits)(fontSize, function (x) {
|
|
39
36
|
return x / 2;
|
|
40
37
|
});
|
|
41
|
-
return "\n .
|
|
38
|
+
return "\n .euiCheckbox .euiCheckbox__input ~ .euiCheckbox__label { // Extra specificity necessary to override default checkbox CSS\n font-size: ".concat(fontSize, ";\n ").concat((0, _global_styling.logicalCSS)('padding-left', lineHeightSize), "\n line-height: ").concat(lineHeight, ";\n }\n\n .euiCheckbox + *:not(.euiCheckbox) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', fontSize), "\n }\n\n .euiMarkdownFormat__codeblockWrapper {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', fontSize), "\n }\n\n .euiMarkdownFormat__table {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', fontSize), "\n }\n\n .euiMarkdownFormat__table th,\n .euiMarkdownFormat__table td {\n ").concat((0, _global_styling.logicalCSS)('padding-vertical', tablePaddingVertical), "\n ").concat((0, _global_styling.logicalCSS)('padding-horizontal', tablePaddingHorizontal), "\n }\n ");
|
|
42
39
|
};
|
|
43
40
|
/**
|
|
44
41
|
* Styles
|
|
@@ -489,13 +489,13 @@ var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
489
489
|
panel = (0, _react.jsx)(_portal.EuiPortal, {
|
|
490
490
|
insert: insert
|
|
491
491
|
}, (0, _react.jsx)(_focus_trap.EuiFocusTrap, (0, _extends2.default)({
|
|
492
|
-
clickOutsideDisables: true
|
|
492
|
+
clickOutsideDisables: true,
|
|
493
|
+
onClickOutside: this.onClickOutside
|
|
493
494
|
}, focusTrapProps, {
|
|
494
495
|
returnFocus: returnFocus // Ignore temporary state of indecisive focus
|
|
495
496
|
,
|
|
496
497
|
initialFocus: initialFocus,
|
|
497
498
|
onDeactivation: onTrapDeactivation,
|
|
498
|
-
onClickOutside: this.onClickOutside,
|
|
499
499
|
onEscapeKey: this.onEscapeKey,
|
|
500
500
|
disabled: !ownFocus || !this.state.isOpenStable || this.state.isClosing
|
|
501
501
|
}), (0, _react.jsx)(_popover_panel.EuiPopoverPanel, (0, _extends2.default)({}, panelProps, {
|
|
@@ -66,7 +66,10 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
|
|
|
66
66
|
return x * 2;
|
|
67
67
|
});
|
|
68
68
|
var headingMarginBottom = marginSize;
|
|
69
|
-
|
|
69
|
+
var blockQuoteBorderWidth = (0, _global_styling.mathWithUnits)(fontSize, function (x) {
|
|
70
|
+
return x / 4;
|
|
71
|
+
});
|
|
72
|
+
return "\n font-size: ".concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n\n h1 {\n font-size: ").concat(headings.h1.fontSize, ";\n line-height: ").concat(headings.h1.lineHeight, ";\n }\n h1:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n\n h2 {\n font-size: ").concat(headings.h2.fontSize, ";\n line-height: ").concat(headings.h2.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h3 {\n font-size: ").concat(headings.h3.fontSize, ";\n line-height: ").concat(headings.h3.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h4 {\n font-size: ").concat(headings.h4.fontSize, ";\n line-height: ").concat(headings.h4.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h5 {\n font-size: ").concat(headings.h5.fontSize, ";\n line-height: ").concat(headings.h5.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n h6 {\n font-size: ").concat(headings.h6.fontSize, ";\n line-height: ").concat(headings.h6.lineHeight, ";\n\n &:not(:first-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-top', headingMarginTop), "\n }\n\n &:not(:last-child) {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', headingMarginBottom), "\n }\n }\n\n p,\n ul,\n ol,\n dl,\n blockquote,\n img,\n pre {\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', lineHeightSize), "\n }\n\n ul,\n ol {\n ").concat((0, _global_styling.logicalCSS)('margin-left', lineHeightSize), "\n }\n \n blockquote {\n font-size: ").concat(fontSize, ";\n ").concat((0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(fontSize)), "\n ").concat((0, _global_styling.logicalCSS)('border-left-width', blockQuoteBorderWidth), "\n ").concat((0, _global_styling.logicalCSS)('margin-bottom', fontSize), "\n }\n\n dd + dt {\n ").concat((0, _global_styling.logicalCSS)('margin-top', fontSize), "\n }\n\n dt,\n .eui-definitionListReverse dd {\n font-size: ").concat(fontSize, ";\n line-height: ").concat(lineHeight, ";\n }\n\n .eui-definitionListReverse dt {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 'xs', options).fontSize, ";\n color: ").concat(euiTheme.colors.text, ";\n }\n\n small {\n font-size: ").concat((0, _global_styling.euiFontSize)(euiThemeContext, 's', options).fontSize, ";\n }\n\n pre:not(.euiCodeBlock__pre) {\n padding: ").concat(lineHeightSize, ";\n }\n\n code:not(.euiCode):not(.euiCodeBlock__code) {\n font-size: .9em; // 90% of parent font size\n }\n ").concat( // when textSize is 'm', the 'kbd' element gets a line between the text and the border-bottom
|
|
70
73
|
_customScale === 'm' ? "\n kbd {\n ".concat((0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), "\n // ensures when only one character the shape looks like a square\n ").concat((0, _global_styling.logicalCSS)('min-width', euiTheme.size.l), "\n ").concat((0, _global_styling.logicalTextAlignCSS)('center'), "\n }\n \n kbd::after {\n content: '';\n ").concat((0, _global_styling.logicalCSS)('border-bottom', "".concat(euiTheme.border.width.thin, " solid ").concat(euiTheme.colors.text)), "\n position: absolute;\n ").concat((0, _global_styling.logicalCSS)('bottom', euiTheme.size.xxs), "\n ").concat((0, _global_styling.logicalCSS)('left', 0), "\n ").concat((0, _global_styling.logicalCSS)('width', '100%'), "\n }") : '', "\n ");
|
|
71
74
|
};
|
|
72
75
|
/**
|
|
@@ -77,7 +80,7 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
|
|
|
77
80
|
var euiTextStyles = function euiTextStyles(euiThemeContext) {
|
|
78
81
|
var euiTheme = euiThemeContext.euiTheme;
|
|
79
82
|
return {
|
|
80
|
-
euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(euiThemeContext), ";}img{display:block;", (0, _global_styling.logicalCSS)('max-width', '100%'), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote
|
|
83
|
+
euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(euiThemeContext), ";}img{display:block;", (0, _global_styling.logicalCSS)('max-width', '100%'), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote{border-inline-start-color:", euiTheme.border.color, ";border-inline-start-style:solid;}blockquote:not(.euiMarkdownFormat__blockquote){color:", euiTheme.colors.subduedText, ";}h1{", (0, _title.euiTitle)(euiThemeContext, 'l'), ";}h2{", (0, _title.euiTitle)(euiThemeContext, 'm'), ";}h3{", (0, _title.euiTitle)(euiThemeContext, 's'), ";}h4,dt{", (0, _title.euiTitle)(euiThemeContext, 'xs'), ";}h5{", (0, _title.euiTitle)(euiThemeContext, 'xxs'), ";}h6{", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xxs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.small, function (x) {
|
|
81
84
|
return x / 2;
|
|
82
85
|
}), ";};label:euiText;"),
|
|
83
86
|
constrainedWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
|
|
@@ -49,7 +49,7 @@ var _resize_observer = require("../observer/resize_observer");
|
|
|
49
49
|
|
|
50
50
|
var _react3 = require("@emotion/react");
|
|
51
51
|
|
|
52
|
-
var _excluded = ["children", "className", "anchorClassName", "anchorProps", "content", "title", "delay", "display"];
|
|
52
|
+
var _excluded = ["children", "className", "anchorClassName", "anchorProps", "content", "title", "delay", "display", "repositionOnScroll"];
|
|
53
53
|
|
|
54
54
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
55
55
|
|
|
@@ -242,18 +242,32 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
242
242
|
key: "componentDidMount",
|
|
243
243
|
value: function componentDidMount() {
|
|
244
244
|
this._isMounted = true;
|
|
245
|
+
|
|
246
|
+
if (this.props.repositionOnScroll) {
|
|
247
|
+
window.addEventListener('scroll', this.positionToolTip, true);
|
|
248
|
+
}
|
|
245
249
|
}
|
|
246
250
|
}, {
|
|
247
251
|
key: "componentWillUnmount",
|
|
248
252
|
value: function componentWillUnmount() {
|
|
249
253
|
this.clearAnimationTimeout();
|
|
250
254
|
this._isMounted = false;
|
|
255
|
+
window.removeEventListener('scroll', this.positionToolTip, true);
|
|
251
256
|
}
|
|
252
257
|
}, {
|
|
253
258
|
key: "componentDidUpdate",
|
|
254
259
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
255
260
|
if (prevState.visible === false && this.state.visible === true) {
|
|
256
261
|
requestAnimationFrame(this.testAnchor);
|
|
262
|
+
} // update scroll listener
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
if (prevProps.repositionOnScroll !== this.props.repositionOnScroll) {
|
|
266
|
+
if (this.props.repositionOnScroll) {
|
|
267
|
+
window.addEventListener('scroll', this.positionToolTip, true);
|
|
268
|
+
} else {
|
|
269
|
+
window.removeEventListener('scroll', this.positionToolTip, true);
|
|
270
|
+
}
|
|
257
271
|
}
|
|
258
272
|
}
|
|
259
273
|
}, {
|
|
@@ -268,6 +282,7 @@ var EuiToolTip = /*#__PURE__*/function (_Component) {
|
|
|
268
282
|
title = _this$props.title,
|
|
269
283
|
delay = _this$props.delay,
|
|
270
284
|
display = _this$props.display,
|
|
285
|
+
repositionOnScroll = _this$props.repositionOnScroll,
|
|
271
286
|
rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
272
287
|
var _this$state = this.state,
|
|
273
288
|
arrowStyles = _this$state.arrowStyles,
|
|
@@ -67,7 +67,7 @@ var euiTourHeaderStyles = function euiTourHeaderStyles(_ref3) {
|
|
|
67
67
|
euiTourHeader: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-bottom', 'none'), ";", (0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.s), ";;label:euiTourHeader;"),
|
|
68
68
|
// Elements
|
|
69
69
|
euiTourHeader__title: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', 0), ";;label:euiTourHeader__title;"),
|
|
70
|
-
euiTourHeader__subtitle: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.subduedText, ";;label:euiTourHeader__subtitle;")
|
|
70
|
+
euiTourHeader__subtitle: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.subduedText, ";padding-block-end:", euiTheme.size.xs, ";;label:euiTourHeader__subtitle;")
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.transparentize = exports.tintOrShade = exports.tint = exports.shadeOrTint = exports.shade = exports.saturate = exports.lightness = exports.desaturate = exports.darken = void 0;
|
|
8
|
+
exports.transparentize = exports.tintOrShade = exports.tint = exports.shadeOrTint = exports.shade = exports.saturate = exports.lightness = exports.desaturate = exports.darken = exports.brighten = void 0;
|
|
9
9
|
|
|
10
10
|
var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
|
11
11
|
|
|
@@ -134,5 +134,17 @@ exports.lightness = lightness;
|
|
|
134
134
|
var darken = function darken(color, amount) {
|
|
135
135
|
return (0, _chromaJs.default)(color).darken(amount).hex();
|
|
136
136
|
};
|
|
137
|
+
/**
|
|
138
|
+
* Returns the brighten value of a color. 0-100
|
|
139
|
+
* @param color - Color to manipulate
|
|
140
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
exports.darken = darken;
|
|
145
|
+
|
|
146
|
+
var brighten = function brighten(color, amount) {
|
|
147
|
+
return (0, _chromaJs.default)(color).brighten(amount).hex();
|
|
148
|
+
};
|
|
137
149
|
|
|
138
|
-
exports.
|
|
150
|
+
exports.brighten = brighten;
|
|
@@ -12,83 +12,84 @@ var _exportNames = {
|
|
|
12
12
|
comboBoxKeys: true,
|
|
13
13
|
htmlIdGenerator: true,
|
|
14
14
|
useGeneratedHtmlId: true,
|
|
15
|
+
CENTER_ALIGNMENT: true,
|
|
15
16
|
LEFT_ALIGNMENT: true,
|
|
16
17
|
RIGHT_ALIGNMENT: true,
|
|
17
|
-
CENTER_ALIGNMENT: true,
|
|
18
|
-
useIsWithinBreakpoints: true,
|
|
19
|
-
useIsWithinMaxBreakpoint: true,
|
|
20
|
-
useIsWithinMinBreakpoint: true,
|
|
21
18
|
CurrentEuiBreakpointContext: true,
|
|
22
19
|
CurrentEuiBreakpointProvider: true,
|
|
23
20
|
useCurrentEuiBreakpoint: true,
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
useIsWithinBreakpoints: true,
|
|
22
|
+
useIsWithinMaxBreakpoint: true,
|
|
23
|
+
useIsWithinMinBreakpoint: true,
|
|
24
|
+
brighten: true,
|
|
26
25
|
calculateContrast: true,
|
|
27
26
|
calculateLuminance: true,
|
|
28
|
-
hexToHsv: true,
|
|
29
|
-
hexToRgb: true,
|
|
30
|
-
hsvToHex: true,
|
|
31
|
-
hsvToRgb: true,
|
|
32
|
-
rgbToHex: true,
|
|
33
|
-
rgbToHsv: true,
|
|
34
|
-
VISUALIZATION_COLORS: true,
|
|
35
|
-
DEFAULT_VISUALIZATION_COLOR: true,
|
|
36
27
|
colorPalette: true,
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
darken: true,
|
|
29
|
+
DEFAULT_VISUALIZATION_COLOR: true,
|
|
30
|
+
desaturate: true,
|
|
39
31
|
euiPaletteColorBlind: true,
|
|
40
32
|
euiPaletteColorBlindBehindText: true,
|
|
33
|
+
euiPaletteComplimentary: true,
|
|
34
|
+
euiPaletteCool: true,
|
|
35
|
+
euiPaletteForDarkBackground: true,
|
|
36
|
+
euiPaletteForLightBackground: true,
|
|
41
37
|
euiPaletteForStatus: true,
|
|
42
38
|
euiPaletteForTemperature: true,
|
|
43
|
-
|
|
39
|
+
euiPaletteGray: true,
|
|
44
40
|
euiPaletteNegative: true,
|
|
45
41
|
euiPalettePositive: true,
|
|
46
|
-
euiPaletteCool: true,
|
|
47
42
|
euiPaletteWarm: true,
|
|
48
|
-
euiPaletteGray: true,
|
|
49
43
|
getSteppedGradient: true,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
desaturate: true,
|
|
44
|
+
hexToHsv: true,
|
|
45
|
+
hexToRgb: true,
|
|
46
|
+
hsvToHex: true,
|
|
47
|
+
hsvToRgb: true,
|
|
48
|
+
isColorDark: true,
|
|
49
|
+
isValidHex: true,
|
|
57
50
|
lightness: true,
|
|
58
|
-
darken: true,
|
|
59
|
-
makeHighContrastColor: true,
|
|
60
51
|
makeDisabledContrastColor: true,
|
|
52
|
+
makeHighContrastColor: true,
|
|
53
|
+
rgbToHex: true,
|
|
54
|
+
rgbToHsv: true,
|
|
55
|
+
saturate: true,
|
|
56
|
+
shade: true,
|
|
57
|
+
shadeOrTint: true,
|
|
58
|
+
tint: true,
|
|
59
|
+
tintOrShade: true,
|
|
60
|
+
transparentize: true,
|
|
61
|
+
VISUALIZATION_COLORS: true,
|
|
61
62
|
wcagContrastMin: true,
|
|
62
63
|
useColorPickerState: true,
|
|
63
64
|
useColorStopsState: true,
|
|
64
65
|
copyToClipboard: true,
|
|
66
|
+
dateFormatAliases: true,
|
|
65
67
|
formatAuto: true,
|
|
66
68
|
formatBoolean: true,
|
|
67
69
|
formatDate: true,
|
|
68
70
|
formatNumber: true,
|
|
69
71
|
formatText: true,
|
|
70
|
-
dateFormatAliases: true,
|
|
71
72
|
isEvenlyDivisibleBy: true,
|
|
72
73
|
isWithinRange: true,
|
|
73
74
|
Pager: true,
|
|
75
|
+
calculatePopoverPosition: true,
|
|
76
|
+
findPopoverPosition: true,
|
|
74
77
|
Random: true,
|
|
75
78
|
getSecureRelForTarget: true,
|
|
76
|
-
|
|
77
|
-
toInitials: true,
|
|
78
|
-
slugify: true,
|
|
79
|
+
Comparators: true,
|
|
79
80
|
PropertySortType: true,
|
|
80
|
-
SortDirectionType: true,
|
|
81
|
-
SortDirection: true,
|
|
82
81
|
SortableProperties: true,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
SortDirection: true,
|
|
83
|
+
SortDirectionType: true,
|
|
84
|
+
slugify: true,
|
|
85
|
+
toInitials: true,
|
|
86
|
+
toSentenceCase: true,
|
|
87
|
+
throttle: true,
|
|
86
88
|
getDurationAndPerformOnFrame: true,
|
|
87
89
|
getTransitionTimings: true,
|
|
88
90
|
getWaitDuration: true,
|
|
89
91
|
performOnFrame: true,
|
|
90
|
-
EuiWindowEvent: true
|
|
91
|
-
throttle: true
|
|
92
|
+
EuiWindowEvent: true
|
|
92
93
|
};
|
|
93
94
|
Object.defineProperty(exports, "CENTER_ALIGNMENT", {
|
|
94
95
|
enumerable: true,
|
|
@@ -186,6 +187,12 @@ Object.defineProperty(exports, "accessibleClickKeys", {
|
|
|
186
187
|
return _accessibility.accessibleClickKeys;
|
|
187
188
|
}
|
|
188
189
|
});
|
|
190
|
+
Object.defineProperty(exports, "brighten", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function get() {
|
|
193
|
+
return _color.brighten;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
189
196
|
Object.defineProperty(exports, "calculateContrast", {
|
|
190
197
|
enumerable: true,
|
|
191
198
|
get: function get() {
|
|
@@ -630,24 +637,6 @@ Object.keys(_findElement).forEach(function (key) {
|
|
|
630
637
|
|
|
631
638
|
var _format = require("./format");
|
|
632
639
|
|
|
633
|
-
var _number = require("./number");
|
|
634
|
-
|
|
635
|
-
var _paging = require("./paging");
|
|
636
|
-
|
|
637
|
-
var _random = require("./random");
|
|
638
|
-
|
|
639
|
-
var _security = require("./security");
|
|
640
|
-
|
|
641
|
-
var _string = require("./string");
|
|
642
|
-
|
|
643
|
-
var _sort = require("./sort");
|
|
644
|
-
|
|
645
|
-
var _popover = require("./popover");
|
|
646
|
-
|
|
647
|
-
var _transition = require("./transition");
|
|
648
|
-
|
|
649
|
-
var _window_event = require("./window_event");
|
|
650
|
-
|
|
651
640
|
var _hooks = require("./hooks");
|
|
652
641
|
|
|
653
642
|
Object.keys(_hooks).forEach(function (key) {
|
|
@@ -662,7 +651,19 @@ Object.keys(_hooks).forEach(function (key) {
|
|
|
662
651
|
});
|
|
663
652
|
});
|
|
664
653
|
|
|
665
|
-
var
|
|
654
|
+
var _number = require("./number");
|
|
655
|
+
|
|
656
|
+
var _paging = require("./paging");
|
|
657
|
+
|
|
658
|
+
var _popover = require("./popover");
|
|
659
|
+
|
|
660
|
+
var _random = require("./random");
|
|
661
|
+
|
|
662
|
+
var _security = require("./security");
|
|
663
|
+
|
|
664
|
+
var _sort = require("./sort");
|
|
665
|
+
|
|
666
|
+
var _string = require("./string");
|
|
666
667
|
|
|
667
668
|
var _theme = require("./theme");
|
|
668
669
|
|
|
@@ -678,6 +679,12 @@ Object.keys(_theme).forEach(function (key) {
|
|
|
678
679
|
});
|
|
679
680
|
});
|
|
680
681
|
|
|
682
|
+
var _throttle = require("./throttle");
|
|
683
|
+
|
|
684
|
+
var _transition = require("./transition");
|
|
685
|
+
|
|
686
|
+
var _window_event = require("./window_event");
|
|
687
|
+
|
|
681
688
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
682
689
|
|
|
683
690
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "72.
|
|
4
|
+
"version": "72.2.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@cypress/code-coverage": "^3.10.0",
|
|
114
114
|
"@cypress/react": "^5.10.3",
|
|
115
115
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
116
|
-
"@elastic/charts": "^51.
|
|
116
|
+
"@elastic/charts": "^51.3.0",
|
|
117
117
|
"@elastic/datemath": "^5.0.3",
|
|
118
118
|
"@elastic/eslint-config-kibana": "^0.15.0",
|
|
119
119
|
"@emotion/babel-preset-css-prop": "^11.10.0",
|
|
@@ -244,7 +244,7 @@ var EuiAccordionClass = /*#__PURE__*/function (_Component) {
|
|
|
244
244
|
css: cssSpinnerStyles
|
|
245
245
|
}), (0, _react2.jsx)(_text.EuiText, {
|
|
246
246
|
size: "s"
|
|
247
|
-
}, (0, _react2.jsx)("p", null, isLoadingMessage
|
|
247
|
+
}, (0, _react2.jsx)("p", null, isLoadingMessage !== true ? isLoadingMessage : (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
248
248
|
token: "euiAccordion.isLoading",
|
|
249
249
|
default: "Loading"
|
|
250
250
|
}))));
|
|
@@ -1228,7 +1228,7 @@ EuiBasicTable.propTypes = {
|
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Defines the horizontal alignment of the column
|
|
1230
1230
|
*/
|
|
1231
|
-
align: _propTypes.default.
|
|
1231
|
+
align: _propTypes.default.any,
|
|
1232
1232
|
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Indicates whether this column should truncate its content when it doesn't fit
|
|
@@ -1287,7 +1287,7 @@ EuiBasicTable.propTypes = {
|
|
|
1287
1287
|
*/
|
|
1288
1288
|
truncateText: _propTypes.default.bool,
|
|
1289
1289
|
isExpander: _propTypes.default.bool,
|
|
1290
|
-
align: _propTypes.default.
|
|
1290
|
+
align: _propTypes.default.any,
|
|
1291
1291
|
|
|
1292
1292
|
/**
|
|
1293
1293
|
* Disables the user's ability to change the sort but still shows the current direction
|
|
@@ -671,7 +671,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
671
671
|
/**
|
|
672
672
|
* Defines the horizontal alignment of the column
|
|
673
673
|
*/
|
|
674
|
-
align: _propTypes.default.
|
|
674
|
+
align: _propTypes.default.any,
|
|
675
675
|
|
|
676
676
|
/**
|
|
677
677
|
* Indicates whether this column should truncate its content when it doesn't fit
|
|
@@ -730,7 +730,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
730
730
|
*/
|
|
731
731
|
truncateText: _propTypes.default.bool,
|
|
732
732
|
isExpander: _propTypes.default.bool,
|
|
733
|
-
align: _propTypes.default.
|
|
733
|
+
align: _propTypes.default.any,
|
|
734
734
|
|
|
735
735
|
/**
|
|
736
736
|
* Disables the user's ability to change the sort but still shows the current direction
|
|
@@ -1185,10 +1185,7 @@ EuiInMemoryTable.propTypes = {
|
|
|
1185
1185
|
"aria-label": _propTypes.default.string
|
|
1186
1186
|
}).isRequired])]),
|
|
1187
1187
|
sorting: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.shape({
|
|
1188
|
-
sort: _propTypes.default.
|
|
1189
|
-
field: _propTypes.default.string.isRequired,
|
|
1190
|
-
direction: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.any.isRequired]).isRequired
|
|
1191
|
-
}).isRequired
|
|
1188
|
+
sort: _propTypes.default.any.isRequired
|
|
1192
1189
|
}).isRequired]),
|
|
1193
1190
|
|
|
1194
1191
|
/**
|