@elastic/eui 12.3.1 → 12.4.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/CHANGELOG.md +16 -1
- package/dist/eui.js +1168 -210
- package/dist/eui.js.map +1 -1
- package/dist/eui.min.js +5 -5
- package/es/components/accordion/accordion.js +79 -56
- package/es/components/accordion/accordion.test.js +88 -0
- package/es/components/badge/badge.js +22 -1
- package/es/components/badge/beta_badge/beta_badge.js +22 -1
- package/es/components/combo_box/combo_box.js +2 -1
- package/es/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
- package/es/components/delay_hide/delay_hide.test.js +5 -1
- package/es/components/filter_group/filter_button.js +17 -2
- package/es/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
- package/es/components/form/form_control_layout/form_control_layout_icons.js +44 -2
- package/es/components/form/range/dual_range.js +1 -1
- package/es/components/form/range/range.js +1 -1
- package/es/components/form/range/range_highlight.js +1 -1
- package/es/components/form/range/range_label.js +27 -8
- package/es/components/form/range/range_levels.js +13 -8
- package/es/components/form/range/range_levels.test.js +55 -0
- package/es/components/form/range/range_slider.js +12 -8
- package/es/components/form/range/range_thumb.js +35 -3
- package/es/components/form/range/range_ticks.js +43 -22
- package/es/components/form/range/range_tooltip.js +20 -4
- package/es/components/form/range/range_track.js +33 -14
- package/es/components/form/range/range_track.test.js +100 -0
- package/es/components/form/range/range_wrapper.js +9 -2
- package/es/components/header/header_logo.js +22 -1
- package/es/components/icon/assets/cloudDrizzle.js +21 -0
- package/es/components/icon/assets/cloudStormy.js +21 -0
- package/es/components/icon/assets/cloudSunny.js +21 -0
- package/es/components/icon/assets/documentEdit.js +21 -0
- package/es/components/icon/assets/documents.js +21 -0
- package/es/components/icon/assets/popout.js +1 -1
- package/es/components/icon/assets/training.js +21 -0
- package/es/components/icon/assets/videoPlayer.js +21 -0
- package/es/components/icon/icon.js +29 -1
- package/es/components/index.js +1 -0
- package/es/components/inner_text/index.js +1 -0
- package/es/components/inner_text/inner_text.js +66 -0
- package/es/components/inner_text/inner_text.test.js +240 -0
- package/es/components/list_group/list_group_item.js +21 -2
- package/es/components/popover/popover.js +7 -3
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/es/components/toast/global_toast_list.js +22 -1
- package/es/components/toast/toast.js +22 -1
- package/es/components/token/token.js +22 -1
- package/es/components/tool_tip/icon_tip.js +22 -1
- package/eui.d.ts +435 -187
- package/lib/components/accordion/accordion.js +79 -55
- package/lib/components/accordion/accordion.test.js +96 -0
- package/lib/components/badge/badge.js +22 -1
- package/lib/components/badge/beta_badge/beta_badge.js +22 -1
- package/lib/components/combo_box/combo_box.js +2 -1
- package/lib/components/combo_box/combo_box_options_list/combo_box_options_list.js +47 -5
- package/lib/components/delay_hide/delay_hide.test.js +5 -1
- package/lib/components/filter_group/filter_button.js +18 -2
- package/lib/components/form/form_control_layout/form_control_layout_custom_icon.js +22 -1
- package/lib/components/form/form_control_layout/form_control_layout_icons.js +44 -2
- package/lib/components/form/range/dual_range.js +1 -1
- package/lib/components/form/range/range.js +1 -1
- package/lib/components/form/range/range_label.js +26 -7
- package/lib/components/form/range/range_levels.js +12 -7
- package/lib/components/form/range/range_levels.test.js +63 -0
- package/lib/components/form/range/range_slider.js +13 -8
- package/lib/components/form/range/range_thumb.js +34 -2
- package/lib/components/form/range/range_ticks.js +43 -21
- package/lib/components/form/range/range_tooltip.js +19 -3
- package/lib/components/form/range/range_track.js +32 -13
- package/lib/components/form/range/range_track.test.js +108 -0
- package/lib/components/form/range/range_wrapper.js +9 -4
- package/lib/components/header/header_logo.js +22 -1
- package/lib/components/icon/assets/cloudDrizzle.js +31 -0
- package/lib/components/icon/assets/cloudDrizzle.svg +3 -0
- package/lib/components/icon/assets/cloudStormy.js +31 -0
- package/lib/components/icon/assets/cloudStormy.svg +3 -0
- package/lib/components/icon/assets/cloudSunny.js +31 -0
- package/lib/components/icon/assets/cloudSunny.svg +3 -0
- package/lib/components/icon/assets/documentEdit.js +31 -0
- package/lib/components/icon/assets/documentEdit.svg +3 -0
- package/lib/components/icon/assets/documents.js +31 -0
- package/lib/components/icon/assets/documents.svg +3 -0
- package/lib/components/icon/assets/popout.js +1 -1
- package/lib/components/icon/assets/popout.svg +1 -1
- package/lib/components/icon/assets/training.js +31 -0
- package/lib/components/icon/assets/training.svg +3 -0
- package/lib/components/icon/assets/videoPlayer.js +31 -0
- package/lib/components/icon/assets/videoPlayer.svg +3 -0
- package/lib/components/icon/icon.js +29 -1
- package/lib/components/index.js +14 -0
- package/lib/components/inner_text/index.js +19 -0
- package/lib/components/inner_text/inner_text.js +80 -0
- package/lib/components/inner_text/inner_text.test.js +250 -0
- package/lib/components/list_group/list_group_item.js +22 -3
- package/lib/components/popover/popover.js +7 -3
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/lib/components/toast/global_toast_list.js +22 -1
- package/lib/components/toast/toast.js +22 -1
- package/lib/components/token/token.js +22 -1
- package/lib/components/tool_tip/icon_tip.js +22 -1
- package/package.json +7 -4
- package/postcss.config.js +6 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.icon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
var EuiIconCloudSunny = function EuiIconCloudSunny(props) {
|
|
15
|
+
return _react.default.createElement("svg", _extends({
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, props), _react.default.createElement("path", {
|
|
21
|
+
d: "M10.746 5.005A5.5 5.5 0 0 1 10.5 16H4a4 4 0 0 1-1.61-7.663A4.473 4.473 0 0 1 2.029 7H.5a.5.5 0 0 1 0-1h1.527a4.479 4.479 0 0 1 .957-2.309L1.646 2.354a.5.5 0 1 1 .708-.708L3.69 2.984A4.479 4.479 0 0 1 6 2.027V.5a.5.5 0 0 1 1 0v1.528a4.493 4.493 0 0 1 2.309.956l1.337-1.338a.5.5 0 0 1 .708.708L10.016 3.69c.311.388.56.831.73 1.314zM4 15h6.5a4.5 4.5 0 1 0-4.152-6.239A3.995 3.995 0 0 1 8 12a.5.5 0 1 1-1 0 3 3 0 1 0-3 3zm5.691-9.94a3.5 3.5 0 1 0-6.33 2.991 4.029 4.029 0 0 1 2.106.227 5.505 5.505 0 0 1 4.224-3.219z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var icon = EuiIconCloudSunny;
|
|
26
|
+
exports.icon = icon;
|
|
27
|
+
EuiIconCloudSunny.__docgenInfo = {
|
|
28
|
+
"description": "",
|
|
29
|
+
"methods": [],
|
|
30
|
+
"displayName": "EuiIconCloudSunny"
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M10.7458178,5.00539515 C13.6693111,5.13397889 16,7.54480866 16,10.5 C16,13.5375661 13.5375661,16 10.5,16 L4,16 C1.790861,16 0,14.209139 0,12 C0,10.3632968 0.983004846,8.95618668 2.39082809,8.33685609 C2.20209747,7.91526722 2.07902056,7.46524082 2.02752078,7 L0.5,7 C0.223857625,7 0,6.77614237 0,6.5 C0,6.22385763 0.223857625,6 0.5,6 L2.02746439,6 C2.1234088,5.13207349 2.46618907,4.33854089 2.98405031,3.69115709 L1.64644661,2.35355339 C1.45118446,2.15829124 1.45118446,1.84170876 1.64644661,1.64644661 C1.84170876,1.45118446 2.15829124,1.45118446 2.35355339,1.64644661 L3.69115709,2.98405031 C4.33854089,2.46618907 5.13207349,2.1234088 6,2.02746439 L6,0.5 C6,0.223857625 6.22385763,8.8817842e-16 6.5,8.8817842e-16 C6.77614237,8.8817842e-16 7,0.223857625 7,0.5 L7,2.02763291 C7.86199316,2.12340881 8.65776738,2.46398198 9.30889273,2.98400049 L10.6464466,1.64644661 C10.8417088,1.45118446 11.1582912,1.45118446 11.3535534,1.64644661 C11.5488155,1.84170876 11.5488155,2.15829124 11.3535534,2.35355339 L10.0163882,3.69071859 C10.3273281,4.07929253 10.5759739,4.52210317 10.7458178,5.00539515 Z M4,15 L10.5,15 C12.9852814,15 15,12.9852814 15,10.5 C15,8.01471863 12.9852814,6 10.5,6 C8.66116238,6 7.03779702,7.11297909 6.34791295,8.76123609 C7.34903712,9.48824913 8,10.6681043 8,12 C8,12.2761424 7.77614237,12.5 7.5,12.5 C7.22385763,12.5 7,12.2761424 7,12 C7,10.3431458 5.65685425,9 4,9 C2.34314575,9 1,10.3431458 1,12 C1,13.6568542 2.34314575,15 4,15 Z M9.69118222,5.05939327 C9.13621169,3.82983527 7.90059172,3 6.5,3 C4.56700338,3 3,4.56700338 3,6.5 C3,7.04681795 3.12529266,7.57427865 3.36125461,8.05072309 C3.56924679,8.01734375 3.78259797,8 4,8 C4.51800602,8 5.01301412,8.0984658 5.46732834,8.27770144 C6.22579284,6.55947236 7.82085903,5.33623457 9.69118222,5.05939327 Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.icon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
var EuiIconDocumentEdit = function EuiIconDocumentEdit(props) {
|
|
15
|
+
return _react.default.createElement("svg", _extends({
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, props), _react.default.createElement("path", {
|
|
21
|
+
d: "M8.505 8.995l6.453-6.44-1.5-1.5-6.453 6.44 1.5 1.5zM12.968.19c.258-.238.657-.26.91 0l1.928 1.929a.642.642 0 0 1 0 .909l-6.78 6.784A.641.641 0 0 1 8.57 10H6.643A.643.643 0 0 1 6 9.357V7.43c0-.17.067-.335.188-.455L12.968.19zM4.5 13a.5.5 0 1 1 0-1h7a.5.5 0 1 1 0 1h-7zm4-12a.5.5 0 0 1 0 1H2v13h12V7.5a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h6.5z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var icon = EuiIconDocumentEdit;
|
|
26
|
+
exports.icon = icon;
|
|
27
|
+
EuiIconDocumentEdit.__docgenInfo = {
|
|
28
|
+
"description": "",
|
|
29
|
+
"methods": [],
|
|
30
|
+
"displayName": "EuiIconDocumentEdit"
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.50527808,8.99473346 L14.9584808,2.5556488 L13.4584808,1.0556488 L7.00529149,7.49472008 L8.50527808,8.99473346 Z M12.9682532,0.190086059 C13.2259779,-0.0478468896 13.6252088,-0.0693312646 13.8772369,0.190086059 L15.8057739,2.11865749 C16.0571266,2.36937177 16.0571266,2.7769432 15.8057739,3.02765749 L9.02587454,9.81164286 C8.9056624,9.9325 8.74173675,10 8.57138265,10 L6.64284566,10 C6.28799486,10 6,9.712 6,9.35714286 L6,7.42857143 C6,7.25821429 6.06749879,7.09428571 6.18835378,6.97407143 L12.9682532,0.190086059 Z M4.5,13 C4.22385763,13 4,12.7761424 4,12.5 C4,12.2238576 4.22385763,12 4.5,12 L11.5,12 C11.7761424,12 12,12.2238576 12,12.5 C12,12.7761424 11.7761424,13 11.5,13 L4.5,13 Z M8.5,1 C8.77614237,1 9,1.22385763 9,1.5 C9,1.77614237 8.77614237,2 8.5,2 L2,2 L2,15 L14,15 L14,7.5 C14,7.22385763 14.2238576,7 14.5,7 C14.7761424,7 15,7.22385763 15,7.5 L15,15 C15,15.5522847 14.5522847,16 14,16 L2,16 C1.44771525,16 1,15.5522847 1,15 L1,2 C1,1.44771525 1.44771525,1 2,1 L8.5,1 Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.icon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
var EuiIconDocuments = function EuiIconDocuments(props) {
|
|
15
|
+
return _react.default.createElement("svg", _extends({
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, props), _react.default.createElement("path", {
|
|
21
|
+
d: "M8.8 0c.274 0 .537.113.726.312l3.2 3.428c.176.186.274.433.274.689V13a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6.8zM12 5H8.5a.5.5 0 0 1-.5-.5V1H2v12h10V5zm-7.5 6a.5.5 0 1 1 0-1h5a.5.5 0 1 1 0 1h-5zm0-3a.5.5 0 0 1 0-1h5a.5.5 0 1 1 0 1h-5zm1 8a.5.5 0 1 1 0-1H14V6.5a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1H5.5z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var icon = EuiIconDocuments;
|
|
26
|
+
exports.icon = icon;
|
|
27
|
+
EuiIconDocuments.__docgenInfo = {
|
|
28
|
+
"description": "",
|
|
29
|
+
"methods": [],
|
|
30
|
+
"displayName": "EuiIconDocuments"
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.8,0 C9.074,0 9.337,0.113 9.526,0.312 L12.726,3.74 C12.902,3.926 13,4.173 13,4.429 L13,13 C13,13.552 12.552,14 12,14 L2,14 C1.448,14 1,13.552 1,13 L1,1 C1,0.448 1.448,0 2,0 L8.8,0 Z M12,5 L8.5,5 C8.224,5 8,4.776 8,4.5 L8,1 L2,1 L2,13 L12,13 L12,5 Z M4.5,11 C4.22385763,11 4,10.7761424 4,10.5 C4,10.2238576 4.22385763,10 4.5,10 L9.5,10 C9.7761424,10 10,10.2238576 10,10.5 C10,10.7761424 9.7761424,11 9.5,11 L4.5,11 Z M4.5,8 C4.22385763,8 4,7.77614237 4,7.5 C4,7.22385763 4.22385763,7 4.5,7 L9.5,7 C9.7761424,7 10,7.22385763 10,7.5 C10,7.77614237 9.7761424,8 9.5,8 L4.5,8 Z M5.5,16 C5.22385763,16 5,15.7761424 5,15.5 C5,15.2238576 5.22385763,15 5.5,15 L14,15 L14,6.5 C14,6.22385763 14.2238576,6 14.5,6 C14.7761424,6 15,6.22385763 15,6.5 L15,15 C15,15.5522847 14.5522847,16 14,16 L5.5,16 Z"/>
|
|
3
|
+
</svg>
|
|
@@ -18,7 +18,7 @@ var EuiIconPopout = function EuiIconPopout(props) {
|
|
|
18
18
|
viewBox: "0 0 16 16",
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg"
|
|
20
20
|
}, props), _react.default.createElement("path", {
|
|
21
|
-
d: "
|
|
21
|
+
d: "M13 8.5a.5.5 0 1 1 1 0V12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h3.5a.5.5 0 0 1 0 1H4a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8.5zm-5.12.339a.5.5 0 1 1-.706-.707L13.305 2H10.5a.5.5 0 1 1 0-1H14a1 1 0 0 1 1 1v3.5a.5.5 0 1 1-1 0V2.72L7.88 8.838z"
|
|
22
22
|
}));
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
-
|
|
2
|
+
<path d="M13,8.5 C13,8.22385763 13.2238576,8 13.5,8 C13.7761424,8 14,8.22385763 14,8.5 L14,12 C14,13.1045695 13.1045695,14 12,14 L4,14 C2.8954305,14 2,13.1045695 2,12 L2,4 C2,2.8954305 2.8954305,2 4,2 L7.5,2 C7.77614237,2 8,2.22385763 8,2.5 C8,2.77614237 7.77614237,3 7.5,3 L4,3 C3.44771525,3 3,3.44771525 3,4 L3,12 C3,12.5522847 3.44771525,13 4,13 L12,13 C12.5522847,13 13,12.5522847 13,12 L13,8.5 Z M7.88066017,8.83883476 C7.68539803,9.03409691 7.36881554,9.03409691 7.17355339,8.83883476 C6.97829124,8.64357262 6.97829124,8.32699013 7.17355339,8.13172798 L13.3052814,2 L10.5,2 C10.2238576,2 10,1.77614237 10,1.5 C10,1.22385763 10.2238576,1 10.5,1 L14,1 C14.5522847,1 15,1.44771525 15,2 L15,5.5 C15,5.77614237 14.7761424,6 14.5,6 C14.2238576,6 14,5.77614237 14,5.5 L14,2.71949494 L7.88066017,8.83883476 Z" />
|
|
3
3
|
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.icon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
var EuiIconTraining = function EuiIconTraining(props) {
|
|
15
|
+
return _react.default.createElement("svg", _extends({
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, props), _react.default.createElement("path", {
|
|
21
|
+
d: "M10.386 9.836a2.5 2.5 0 1 1 3.611.667C15.212 11.173 16 12.46 16 14v1.5a.5.5 0 1 1-1 0V14c0-1.724-1.276-3-3-3-.91 0-1.298-.02-1.805-.122-1.25-.254-2.333-1-3.585-2.566a.5.5 0 1 1 .78-.624c.9 1.124 1.653 1.74 2.434 2.043.155.052.345.083.562.105zm1.785.128c.083.01.167.021.251.034L12.5 10a1.5 1.5 0 1 0-.33-.036zM9.78 11.97a.5.5 0 0 1 .5.5c0 .076-.047.226-.05.231-.179.38-.23.774-.23 1.302v1.5a.5.5 0 1 1-1 0v-1.5c0-.657.072-1.186.307-1.696a.5.5 0 0 1 .473-.337zM5.958 5.772a.5.5 0 0 1-.78.625L3.11 3.812a.5.5 0 1 1 .78-.624l2.068 2.584zM1 11h5.5a.5.5 0 1 1 0 1h-6a.5.5 0 0 1-.5-.5V.5A.5.5 0 0 1 .5 0h12a.5.5 0 0 1 .5.5v3a.5.5 0 1 1-1 0V1H1v10z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var icon = EuiIconTraining;
|
|
26
|
+
exports.icon = icon;
|
|
27
|
+
EuiIconTraining.__docgenInfo = {
|
|
28
|
+
"description": "",
|
|
29
|
+
"methods": [],
|
|
30
|
+
"displayName": "EuiIconTraining"
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M10.3862355,9.83551835 C10.1416142,9.44915931 10,8.99111753 10,8.5 C10,7.11928813 11.1192881,6 12.5,6 C13.8807119,6 15,7.11928813 15,8.5 C15,9.31915408 14.6060265,10.0462907 13.9972252,10.5022643 C15.2116293,11.1740421 16,12.460733 16,14 L16,15.5 C16,15.7761424 15.7761424,16 15.5,16 C15.2238576,16 15,15.7761424 15,15.5 L15,14 C15,12.2761424 13.7238576,11 12,11 C11.089894,11 10.7020605,10.9807464 10.1953277,10.8779363 C8.94554177,10.6243696 7.86201213,9.87790569 6.6095656,8.31234752 C6.43706082,8.09671656 6.47202151,7.78207037 6.68765248,7.6095656 C6.90328344,7.43706082 7.21792963,7.47202151 7.3904344,7.68765248 C8.29031041,8.81249749 9.0427005,9.42863784 9.82378816,9.73131871 C9.97873029,9.78276913 10.1693475,9.81389579 10.3862355,9.83551835 L10.3862355,9.83551835 Z M12.170923,9.96378986 C12.2544058,9.97383471 12.3382921,9.9851584 12.4223525,9.99802494 C12.4480693,9.99933632 12.4739572,10 12.5,10 C13.3284271,10 14,9.32842712 14,8.5 C14,7.67157288 13.3284271,7 12.5,7 C11.6715729,7 11,7.67157288 11,8.5 C11,9.21537784 11.5007898,9.81378995 12.170923,9.96378986 L12.170923,9.96378986 Z M9.78,11.97 C10.0561424,11.97 10.28,12.1938576 10.28,12.47 C10.28,12.546303 10.2327718,12.6959893 10.230294,12.7012339 C10.0513095,13.0800879 10,13.4749479 10,14.0027108 L10,15.5027108 C10,15.7788532 9.77614237,16.0027108 9.5,16.0027108 C9.22385763,16.0027108 9,15.7788532 9,15.5027108 L9,14.0027108 C9,13.3458557 9.07216893,12.81693 9.30730941,12.3065993 C9.37501819,12.1106964 9.56107839,11.97 9.78,11.97 Z M5.95827032,5.77244277 C6.13077509,5.98807373 6.0958144,6.30271992 5.88018344,6.47522469 C5.66455247,6.64772947 5.34990628,6.61276878 5.17740151,6.39713781 L3.10958401,3.81236594 C2.93707923,3.59673497 2.97203992,3.28208878 3.18767089,3.10958401 C3.40330186,2.93707923 3.71794804,2.97203992 3.89045282,3.18767089 L5.95827032,5.77244277 Z M1,11 L6.5,11 C6.77614237,11 7,11.2238576 7,11.5 C7,11.7761424 6.77614237,12 6.5,12 L0.5,12 C0.223857625,12 1.77635684e-14,11.7761424 1.77635684e-14,11.5 L1.77635684e-14,0.5 C1.77635684e-14,0.223857625 0.223857625,3.55271368e-15 0.5,3.55271368e-15 L12.5,3.55271368e-15 C12.7761424,3.55271368e-15 13,0.223857625 13,0.5 L13,3.5 C13,3.77614237 12.7761424,4 12.5,4 C12.2238576,4 12,3.77614237 12,3.5 L12,1 L1,1 L1,11 Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.icon = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
13
|
+
|
|
14
|
+
var EuiIconVideoPlayer = function EuiIconVideoPlayer(props) {
|
|
15
|
+
return _react.default.createElement("svg", _extends({
|
|
16
|
+
width: 16,
|
|
17
|
+
height: 16,
|
|
18
|
+
viewBox: "0 0 16 16",
|
|
19
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
20
|
+
}, props), _react.default.createElement("path", {
|
|
21
|
+
d: "M0 1.994C0 .893.895 0 1.994 0h12.012C15.107 0 16 .895 16 1.994v12.012A1.995 1.995 0 0 1 14.006 16H1.994A1.995 1.995 0 0 1 0 14.006V1.994zm1 0v12.012c0 .548.446.994.994.994h12.012a.995.995 0 0 0 .994-.994V1.994A.995.995 0 0 0 14.006 1H1.994A.995.995 0 0 0 1 1.994zM1 4h14v1H1V4zm1.5-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1h-1zm3 0a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1h-1zm4.947 6.106a1 1 0 0 1 0 1.788l-3 2A1 1 0 0 1 6 12V8a1 1 0 0 1 1.447-.894l3 2zM10 10L7 8v4l3-2z"
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var icon = EuiIconVideoPlayer;
|
|
26
|
+
exports.icon = icon;
|
|
27
|
+
EuiIconVideoPlayer.__docgenInfo = {
|
|
28
|
+
"description": "",
|
|
29
|
+
"methods": [],
|
|
30
|
+
"displayName": "EuiIconVideoPlayer"
|
|
31
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M0,1.99406028 C0,0.892771196 0.894513756,0 1.99406028,0 L14.0059397,0 C15.1072288,0 16,0.894513756 16,1.99406028 L16,14.0059397 C16,15.1072288 15.1054862,16 14.0059397,16 L1.99406028,16 C0.892771196,16 0,15.1054862 0,14.0059397 L0,1.99406028 Z M1,1.99406028 L1,14.0059397 C1,14.5539384 1.44579254,15 1.99406028,15 L14.0059397,15 C14.5539384,15 15,14.5542075 15,14.0059397 L15,1.99406028 C15,1.44606163 14.5542075,1 14.0059397,1 L1.99406028,1 C1.44606163,1 1,1.44579254 1,1.99406028 Z M1,4 L15,4 L15,5 L1,5 L1,4 Z M2.5,3 C2.22385763,3 2,2.77614237 2,2.5 C2,2.22385763 2.22385763,2 2.5,2 L3.5,2 C3.77614237,2 4,2.22385763 4,2.5 C4,2.77614237 3.77614237,3 3.5,3 L2.5,3 Z M5.5,3 C5.22385763,3 5,2.77614237 5,2.5 C5,2.22385763 5.22385763,2 5.5,2 L6.5,2 C6.77614237,2 7,2.22385763 7,2.5 C7,2.77614237 6.77614237,3 6.5,3 L5.5,3 Z M10.4472136,9.10557266 C11.1842621,9.4740969 11.1842621,10.5259027 10.4472136,10.8944269 L7.4472136,12.8944268 C6.7823125,13.2268773 6,12.7433816 6,11.9999996 L6,7.99999993 C6,7.25661796 6.7823125,6.77312228 7.4472136,7.1055728 L10.4472136,9.10557266 Z M10,9.99999993 L7,7.99999993 L7,11.9999999 L10,9.99999993 Z"/>
|
|
3
|
+
</svg>
|
|
@@ -74,6 +74,9 @@ var typeToPathMap = {
|
|
|
74
74
|
check: 'check',
|
|
75
75
|
checkInCircleFilled: 'checkInCircleFilled',
|
|
76
76
|
clock: 'clock',
|
|
77
|
+
cloudDrizzle: 'cloudDrizzle',
|
|
78
|
+
cloudStormy: 'cloudStormy',
|
|
79
|
+
cloudSunny: 'cloudSunny',
|
|
77
80
|
compute: 'compute',
|
|
78
81
|
console: 'console',
|
|
79
82
|
consoleApp: 'app_console',
|
|
@@ -96,6 +99,8 @@ var typeToPathMap = {
|
|
|
96
99
|
devToolsApp: 'app_devtools',
|
|
97
100
|
discoverApp: 'app_discover',
|
|
98
101
|
document: 'document',
|
|
102
|
+
documentEdit: 'documentEdit',
|
|
103
|
+
documents: 'documents',
|
|
99
104
|
dot: 'dot',
|
|
100
105
|
editorAlignCenter: 'editor_align_center',
|
|
101
106
|
editorAlignLeft: 'editor_align_left',
|
|
@@ -314,12 +319,14 @@ var typeToPathMap = {
|
|
|
314
319
|
tear: 'tear',
|
|
315
320
|
temperature: 'temperature',
|
|
316
321
|
timelionApp: 'app_timelion',
|
|
322
|
+
training: 'training',
|
|
317
323
|
trash: 'trash',
|
|
318
324
|
upgradeAssistantApp: 'app_upgrade_assistant',
|
|
319
325
|
uptimeApp: 'app_uptime',
|
|
320
326
|
user: 'user',
|
|
321
327
|
usersRolesApp: 'app_users_roles',
|
|
322
328
|
vector: 'vector',
|
|
329
|
+
videoPlayer: 'videoPlayer',
|
|
323
330
|
visArea: 'vis_area',
|
|
324
331
|
visBarHorizontal: 'vis_bar_horizontal',
|
|
325
332
|
visBarVertical: 'vis_bar_vertical',
|
|
@@ -575,7 +582,7 @@ EuiIcon.propTypes = {
|
|
|
575
582
|
/**
|
|
576
583
|
* `Enum` is any of the named icons listed in the docs, `Element` is any React SVG element, and `string` is usually a URL to an SVG file
|
|
577
584
|
*/
|
|
578
|
-
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
585
|
+
type: _propTypes.default.oneOfType([_propTypes.default.oneOf(["addDataApp", "advancedSettingsApp", "alert", "apmApp", "apmTrace", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "asterisk", "auditbeatApp", "beaker", "bell", "bolt", "boxesHorizontal", "boxesVertical", "branch", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "codeApp", "check", "checkInCircleFilled", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "compute", "console", "consoleApp", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crosshairs", "crossInACircleFilled", "cut", "dashboardApp", "database", "dataVisualizer", "devToolsApp", "discoverApp", "document", "documentEdit", "documents", "dot", "editorAlignCenter", "editorAlignLeft", "editorAlignRight", "editorBold", "editorCodeBlock", "editorComment", "editorDistributeHorizontal", "editorDistributeVertical", "editorHeading", "editorItalic", "editorItemAlignLeft", "editorItemAlignBottom", "editorItemAlignCenter", "editorItemAlignMiddle", "editorItemAlignRight", "editorItemAlignTop", "editorLink", "editorOrderedList", "editorPositionBottomLeft", "editorPositionBottomRight", "editorPositionTopLeft", "editorPositionTopRight", "editorRedo", "editorStrike", "editorTable", "editorUnderline", "editorUndo", "editorUnorderedList", "email", "empty", "emsApp", "exit", "expand", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "folderClosed", "folderOpen", "fullScreen", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "iInCircle", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexSettings", "infraApp", "inputOutput", "inspect", "invert", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "link", "list", "listAdd", "lock", "lockOpen", "loggingApp", "logoAerospike", "logoApache", "logoAPM", "logoAppSearch", "logoAWS", "logoAWSMono", "logoAzure", "logoAzureMono", "logoBeats", "logoBusinessAnalytics", "logoCeph", "logoCloud", "logoCloudEnterprise", "logoCode", "logoCodesandbox", "logoCouchbase", "logoDocker", "logoDropwizard", "logoElastic", "logoElasticsearch", "logoElasticStack", "logoEnterpriseSearch", "logoEtcd", "logoGCP", "logoGCPMono", "logoGithub", "logoGmail", "logoGolang", "logoHAproxy", "logoIBM", "logoIBMMono", "logoKafka", "logoKibana", "logoKubernetes", "logoLogging", "logoLogstash", "logoMaps", "logoMemcached", "logoMetrics", "logoMongodb", "logoMySQL", "logoNginx", "logoOsquery", "logoPhp", "logoPostgres", "logoPrometheus", "logoRabbitmq", "logoRedis", "logoSecurity", "logoSiteSearch", "logoSketch", "logoSlack", "logoUptime", "logoWebhook", "logoWindows", "logstashFilter", "logstashIf", "logstashInput", "logstashOutput", "logstashQueue", "machineLearningApp", "magnet", "magnifyWithMinus", "magnifyWithPlus", "managementApp", "mapMarker", "memory", "menuLeft", "menuRight", "merge", "metricbeatApp", "minusInCircle", "minusInCircleFilled", "monitoringApp", "moon", "node", "notebookApp", "number", "offline", "online", "packetbeatApp", "pause", "pencil", "pin", "pinFilled", "pipelineApp", "play", "plusInCircle", "plusInCircleFilled", "popout", "questionInCircle", "refresh", "reportingApp", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "shard", "share", "snowflake", "sortable", "sortDown", "sortLeft", "sortRight", "sortUp", "spacesApp", "sqlApp", "starEmpty", "starEmptySpace", "starFilled", "starFilledSpace", "starMinusEmpty", "starMinusFilled", "starPlusEmpty", "starPlusFilled", "stats", "stop", "stopFilled", "stopSlash", "storage", "string", "submodule", "swatchInput", "symlink", "tableOfContents", "tag", "tear", "temperature", "timelionApp", "training", "trash", "upgradeAssistantApp", "uptimeApp", "user", "usersRolesApp", "vector", "videoPlayer", "visArea", "visBarHorizontal", "visBarVertical", "visControls", "visGauge", "visGoal", "visHeatmap", "visLine", "visMapCoordinate", "visMapRegion", "visMetric", "visPie", "visTable", "visTagCloud", "visText", "visTimelion", "visualizeApp", "visVega", "visVisualBuilder", "watchesApp", "wrench", "tokenClass", "tokenProperty", "tokenEnum", "tokenVariable", "tokenMethod", "tokenAnnotation", "tokenException", "tokenInterface", "tokenParameter", "tokenField", "tokenElement", "tokenFunction", "tokenBoolean", "tokenString", "tokenArray", "tokenNumber", "tokenConstant", "tokenObject", "tokenEvent", "tokenKey", "tokenNull", "tokenStruct", "tokenPackage", "tokenOperator", "tokenEnumMember", "tokenRepo", "tokenSymbol", "tokenFile", "tokenModule", "tokenNamespace"]).isRequired, _propTypes.default.string.isRequired, _propTypes.default.element.isRequired]).isRequired,
|
|
579
586
|
|
|
580
587
|
/**
|
|
581
588
|
* One of EUI's color palette or a valid CSS color value https://developer.mozilla.org/en-US/docs/Web/CSS/color_value.
|
|
@@ -712,6 +719,15 @@ EuiIcon.__docgenInfo = {
|
|
|
712
719
|
}, {
|
|
713
720
|
"value": "\"clock\"",
|
|
714
721
|
"computed": false
|
|
722
|
+
}, {
|
|
723
|
+
"value": "\"cloudDrizzle\"",
|
|
724
|
+
"computed": false
|
|
725
|
+
}, {
|
|
726
|
+
"value": "\"cloudStormy\"",
|
|
727
|
+
"computed": false
|
|
728
|
+
}, {
|
|
729
|
+
"value": "\"cloudSunny\"",
|
|
730
|
+
"computed": false
|
|
715
731
|
}, {
|
|
716
732
|
"value": "\"compute\"",
|
|
717
733
|
"computed": false
|
|
@@ -778,6 +794,12 @@ EuiIcon.__docgenInfo = {
|
|
|
778
794
|
}, {
|
|
779
795
|
"value": "\"document\"",
|
|
780
796
|
"computed": false
|
|
797
|
+
}, {
|
|
798
|
+
"value": "\"documentEdit\"",
|
|
799
|
+
"computed": false
|
|
800
|
+
}, {
|
|
801
|
+
"value": "\"documents\"",
|
|
802
|
+
"computed": false
|
|
781
803
|
}, {
|
|
782
804
|
"value": "\"dot\"",
|
|
783
805
|
"computed": false
|
|
@@ -1429,6 +1451,9 @@ EuiIcon.__docgenInfo = {
|
|
|
1429
1451
|
}, {
|
|
1430
1452
|
"value": "\"timelionApp\"",
|
|
1431
1453
|
"computed": false
|
|
1454
|
+
}, {
|
|
1455
|
+
"value": "\"training\"",
|
|
1456
|
+
"computed": false
|
|
1432
1457
|
}, {
|
|
1433
1458
|
"value": "\"trash\"",
|
|
1434
1459
|
"computed": false
|
|
@@ -1447,6 +1472,9 @@ EuiIcon.__docgenInfo = {
|
|
|
1447
1472
|
}, {
|
|
1448
1473
|
"value": "\"vector\"",
|
|
1449
1474
|
"computed": false
|
|
1475
|
+
}, {
|
|
1476
|
+
"value": "\"videoPlayer\"",
|
|
1477
|
+
"computed": false
|
|
1450
1478
|
}, {
|
|
1451
1479
|
"value": "\"visArea\"",
|
|
1452
1480
|
"computed": false
|
package/lib/components/index.js
CHANGED
|
@@ -597,6 +597,18 @@ Object.defineProperty(exports, "EuiImage", {
|
|
|
597
597
|
return _image.EuiImage;
|
|
598
598
|
}
|
|
599
599
|
});
|
|
600
|
+
Object.defineProperty(exports, "useInnerText", {
|
|
601
|
+
enumerable: true,
|
|
602
|
+
get: function get() {
|
|
603
|
+
return _inner_text.useInnerText;
|
|
604
|
+
}
|
|
605
|
+
});
|
|
606
|
+
Object.defineProperty(exports, "EuiInnerText", {
|
|
607
|
+
enumerable: true,
|
|
608
|
+
get: function get() {
|
|
609
|
+
return _inner_text.EuiInnerText;
|
|
610
|
+
}
|
|
611
|
+
});
|
|
600
612
|
Object.defineProperty(exports, "EuiI18n", {
|
|
601
613
|
enumerable: true,
|
|
602
614
|
get: function get() {
|
|
@@ -1228,6 +1240,8 @@ var _icon = require("./icon");
|
|
|
1228
1240
|
|
|
1229
1241
|
var _image = require("./image");
|
|
1230
1242
|
|
|
1243
|
+
var _inner_text = require("./inner_text");
|
|
1244
|
+
|
|
1231
1245
|
var _i18n = require("./i18n");
|
|
1232
1246
|
|
|
1233
1247
|
var _loading = require("./loading");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "useInnerText", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _inner_text.useInnerText;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "EuiInnerText", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _inner_text.EuiInnerText;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _inner_text = require("./inner_text");
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useInnerText = useInnerText;
|
|
7
|
+
exports.EuiInnerText = void 0;
|
|
8
|
+
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
|
|
11
|
+
var _react = require("react");
|
|
12
|
+
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
+
|
|
15
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
|
|
16
|
+
|
|
17
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
|
|
18
|
+
|
|
19
|
+
function _iterableToArrayLimit(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
20
|
+
|
|
21
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
|
+
|
|
23
|
+
function useInnerText(innerTextFallback) {
|
|
24
|
+
var _useState = (0, _react.useState)(null),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
ref = _useState2[0],
|
|
27
|
+
setRef = _useState2[1];
|
|
28
|
+
|
|
29
|
+
var _useState3 = (0, _react.useState)(innerTextFallback),
|
|
30
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
31
|
+
innerText = _useState4[0],
|
|
32
|
+
setInnerText = _useState4[1];
|
|
33
|
+
|
|
34
|
+
var updateInnerText = function updateInnerText(node) {
|
|
35
|
+
if (!node) return;
|
|
36
|
+
setInnerText( // Check for `innerText` implementation rather than a simple OR check
|
|
37
|
+
// because in real cases the result of `innerText` could correctly be `null`
|
|
38
|
+
// while the result of `textContent` could correctly be non-`null` due to
|
|
39
|
+
// differing reliance on browser layout calculations.
|
|
40
|
+
// We prefer the result of `innerText`, if available.
|
|
41
|
+
'innerText' in node ? node.innerText : node.textContent || undefined);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var observer = new MutationObserver(function (mutationsList) {
|
|
45
|
+
if (mutationsList.length) updateInnerText(ref);
|
|
46
|
+
});
|
|
47
|
+
(0, _react.useEffect)(function () {
|
|
48
|
+
if (ref) {
|
|
49
|
+
observer.disconnect();
|
|
50
|
+
updateInnerText(ref);
|
|
51
|
+
observer.observe(ref, {
|
|
52
|
+
characterData: true,
|
|
53
|
+
subtree: true
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return function () {
|
|
58
|
+
observer.disconnect();
|
|
59
|
+
};
|
|
60
|
+
}, [ref]);
|
|
61
|
+
return [setRef, innerText];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var EuiInnerText = function EuiInnerText(_ref) {
|
|
65
|
+
var children = _ref.children,
|
|
66
|
+
fallback = _ref.fallback;
|
|
67
|
+
|
|
68
|
+
var _useInnerText = useInnerText(fallback),
|
|
69
|
+
_useInnerText2 = _slicedToArray(_useInnerText, 2),
|
|
70
|
+
ref = _useInnerText2[0],
|
|
71
|
+
innerText = _useInnerText2[1];
|
|
72
|
+
|
|
73
|
+
return children(ref, innerText);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
exports.EuiInnerText = EuiInnerText;
|
|
77
|
+
EuiInnerText.propTypes = {
|
|
78
|
+
children: _propTypes.default.func.isRequired,
|
|
79
|
+
fallback: _propTypes.default.string
|
|
80
|
+
};
|