@elastic/eui 59.1.0-rc1 → 59.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/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/es/components/accessibility/skip_link/skip_link.js +42 -7
- package/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/es/components/avatar/avatar.js +7 -9
- package/es/components/bottom_bar/bottom_bar.js +9 -8
- package/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/es/components/call_out/call_out.js +8 -9
- package/es/components/expression/expression.js +10 -11
- package/es/components/facet/facet_button.js +8 -9
- package/es/components/facet/facet_group.js +7 -8
- package/es/components/health/health.js +6 -7
- package/es/components/horizontal_rule/horizontal_rule.js +6 -7
- package/es/components/link/link.js +7 -8
- package/es/components/loading/loading_chart.js +6 -7
- package/es/components/loading/loading_content.js +6 -7
- package/es/components/loading/loading_logo.js +6 -7
- package/es/components/loading/loading_spinner.js +6 -7
- package/es/components/mark/mark.js +8 -9
- package/es/components/markdown_editor/markdown_format.js +6 -7
- package/es/components/panel/panel.js +7 -8
- package/es/components/provider/index.js +1 -1
- package/es/components/provider/provider.js +5 -39
- package/es/components/spacer/spacer.js +6 -7
- package/es/components/text/text.js +6 -7
- package/es/components/text/text_color.js +6 -7
- package/es/components/timeline/timeline_item.js +6 -7
- package/es/components/timeline/timeline_item_icon.js +6 -7
- package/es/components/title/title.js +6 -7
- package/es/services/theme/hooks.js +2 -2
- package/es/services/theme/provider.js +5 -1
- package/{optimize/es/components/provider/cache → es/themes/amsterdam}/index.js +2 -2
- package/es/themes/index.js +2 -1
- package/eui.d.ts +337 -827
- package/i18ntokens.json +12 -12
- package/lib/components/accessibility/skip_link/skip_link.js +45 -11
- package/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/lib/components/avatar/avatar.js +8 -12
- package/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/lib/components/call_out/call_out.js +10 -14
- package/lib/components/expression/expression.js +12 -14
- package/lib/components/facet/facet_button.js +10 -12
- package/lib/components/facet/facet_group.js +9 -11
- package/lib/components/health/health.js +8 -10
- package/lib/components/horizontal_rule/horizontal_rule.js +8 -10
- package/lib/components/link/link.js +7 -13
- package/lib/components/loading/loading_chart.js +8 -10
- package/lib/components/loading/loading_content.js +8 -10
- package/lib/components/loading/loading_logo.js +8 -10
- package/lib/components/loading/loading_spinner.js +8 -10
- package/lib/components/mark/mark.js +10 -12
- package/lib/components/markdown_editor/markdown_format.js +8 -10
- package/lib/components/panel/panel.js +9 -11
- package/lib/components/provider/index.js +7 -12
- package/lib/components/provider/provider.js +5 -40
- package/lib/components/spacer/spacer.js +8 -10
- package/lib/components/text/text.js +8 -10
- package/lib/components/text/text_color.js +8 -10
- package/lib/components/timeline/timeline_item.js +8 -10
- package/lib/components/timeline/timeline_item_icon.js +8 -10
- package/lib/components/title/title.js +9 -11
- package/lib/services/theme/hooks.js +2 -2
- package/lib/services/theme/provider.js +6 -3
- package/{test-env/components/provider/system → lib/themes/amsterdam}/index.js +4 -4
- package/lib/themes/index.js +21 -1
- package/optimize/es/components/accessibility/skip_link/skip_link.js +27 -6
- package/optimize/es/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/es/components/avatar/avatar.js +5 -7
- package/optimize/es/components/bottom_bar/bottom_bar.js +9 -8
- package/optimize/es/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/es/components/call_out/call_out.js +7 -8
- package/optimize/es/components/expression/expression.js +9 -10
- package/optimize/es/components/facet/facet_button.js +7 -8
- package/optimize/es/components/facet/facet_group.js +6 -7
- package/optimize/es/components/health/health.js +5 -6
- package/optimize/es/components/horizontal_rule/horizontal_rule.js +5 -6
- package/optimize/es/components/link/link.js +6 -7
- package/optimize/es/components/loading/loading_chart.js +5 -6
- package/optimize/es/components/loading/loading_content.js +5 -6
- package/optimize/es/components/loading/loading_logo.js +5 -6
- package/optimize/es/components/loading/loading_spinner.js +5 -6
- package/optimize/es/components/mark/mark.js +7 -8
- package/optimize/es/components/markdown_editor/markdown_format.js +5 -6
- package/optimize/es/components/panel/panel.js +6 -7
- package/optimize/es/components/provider/index.js +1 -1
- package/optimize/es/components/provider/provider.js +5 -39
- package/optimize/es/components/spacer/spacer.js +5 -6
- package/optimize/es/components/text/text.js +5 -6
- package/optimize/es/components/text/text_color.js +5 -6
- package/optimize/es/components/timeline/timeline_item.js +5 -6
- package/optimize/es/components/timeline/timeline_item_icon.js +5 -6
- package/optimize/es/components/title/title.js +5 -6
- package/optimize/es/services/theme/hooks.js +2 -2
- package/optimize/es/services/theme/provider.js +5 -1
- package/optimize/es/{components/provider/system → themes/amsterdam}/index.js +2 -1
- package/optimize/es/themes/index.js +2 -1
- package/optimize/lib/components/accessibility/skip_link/skip_link.js +30 -8
- package/optimize/lib/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +5 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +6 -9
- package/optimize/lib/components/breadcrumbs/breadcrumbs.js +1 -2
- package/optimize/lib/components/call_out/call_out.js +9 -13
- package/optimize/lib/components/expression/expression.js +9 -11
- package/optimize/lib/components/facet/facet_button.js +7 -9
- package/optimize/lib/components/facet/facet_group.js +6 -8
- package/optimize/lib/components/health/health.js +5 -7
- package/optimize/lib/components/horizontal_rule/horizontal_rule.js +5 -7
- package/optimize/lib/components/link/link.js +6 -12
- package/optimize/lib/components/loading/loading_chart.js +5 -7
- package/optimize/lib/components/loading/loading_content.js +5 -7
- package/optimize/lib/components/loading/loading_logo.js +5 -7
- package/optimize/lib/components/loading/loading_spinner.js +5 -7
- package/optimize/lib/components/mark/mark.js +7 -9
- package/optimize/lib/components/markdown_editor/markdown_format.js +5 -7
- package/optimize/lib/components/panel/panel.js +6 -8
- package/optimize/lib/components/provider/index.js +7 -12
- package/optimize/lib/components/provider/provider.js +5 -40
- package/optimize/lib/components/spacer/spacer.js +5 -7
- package/optimize/lib/components/text/text.js +5 -7
- package/optimize/lib/components/text/text_color.js +5 -7
- package/optimize/lib/components/timeline/timeline_item.js +5 -7
- package/optimize/lib/components/timeline/timeline_item_icon.js +5 -7
- package/optimize/lib/components/title/title.js +6 -8
- package/optimize/lib/services/theme/hooks.js +2 -2
- package/optimize/lib/services/theme/provider.js +6 -3
- package/{lib/components/provider/system → optimize/lib/themes/amsterdam}/index.js +4 -4
- package/optimize/lib/themes/index.js +21 -1
- package/package.json +1 -1
- package/test-env/components/accessibility/skip_link/skip_link.js +46 -11
- package/test-env/components/accessibility/skip_link/skip_link.styles.js +1 -1
- package/test-env/components/avatar/avatar.js +8 -12
- package/test-env/components/bottom_bar/bottom_bar.js +6 -9
- package/test-env/components/breadcrumbs/breadcrumbs.js +1 -2
- package/test-env/components/call_out/call_out.js +10 -14
- package/test-env/components/expression/expression.js +12 -14
- package/test-env/components/facet/facet_button.js +10 -12
- package/test-env/components/facet/facet_group.js +9 -11
- package/test-env/components/health/health.js +8 -10
- package/test-env/components/horizontal_rule/horizontal_rule.js +8 -10
- package/test-env/components/link/link.js +7 -13
- package/test-env/components/loading/loading_chart.js +8 -10
- package/test-env/components/loading/loading_content.js +8 -10
- package/test-env/components/loading/loading_logo.js +8 -10
- package/test-env/components/loading/loading_spinner.js +8 -10
- package/test-env/components/mark/mark.js +10 -12
- package/test-env/components/markdown_editor/markdown_format.js +8 -10
- package/test-env/components/panel/panel.js +9 -11
- package/test-env/components/provider/index.js +7 -12
- package/test-env/components/provider/provider.js +5 -40
- package/test-env/components/spacer/spacer.js +8 -10
- package/test-env/components/text/text.js +8 -10
- package/test-env/components/text/text_color.js +8 -10
- package/test-env/components/timeline/timeline_item.js +8 -10
- package/test-env/components/timeline/timeline_item_icon.js +8 -10
- package/test-env/components/title/title.js +9 -11
- package/test-env/services/theme/hooks.js +2 -2
- package/test-env/services/theme/provider.js +6 -3
- package/{optimize/lib/components/provider/system → test-env/themes/amsterdam}/index.js +4 -4
- package/test-env/themes/index.js +21 -1
- package/es/components/provider/cache/cache_context.js +0 -12
- package/es/components/provider/cache/cache_provider.js +0 -17
- package/es/components/provider/cache/index.js +0 -9
- package/es/components/provider/system/index.js +0 -8
- package/es/components/provider/system/system.js +0 -33
- package/es/global_styling/utility/utility.js +0 -27
- package/lib/components/provider/cache/cache_context.js +0 -24
- package/lib/components/provider/cache/cache_provider.js +0 -29
- package/lib/components/provider/cache/index.js +0 -31
- package/lib/components/provider/system/system.js +0 -45
- package/lib/global_styling/utility/utility.js +0 -31
- package/optimize/es/components/provider/cache/cache_context.js +0 -12
- package/optimize/es/components/provider/cache/cache_provider.js +0 -17
- package/optimize/es/components/provider/system/system.js +0 -33
- package/optimize/es/global_styling/utility/utility.js +0 -27
- package/optimize/lib/components/provider/cache/cache_context.js +0 -24
- package/optimize/lib/components/provider/cache/cache_provider.js +0 -29
- package/optimize/lib/components/provider/cache/index.js +0 -31
- package/optimize/lib/components/provider/system/system.js +0 -54
- package/optimize/lib/global_styling/utility/utility.js +0 -31
- package/test-env/components/provider/cache/cache_context.js +0 -24
- package/test-env/components/provider/cache/cache_provider.js +0 -29
- package/test-env/components/provider/cache/index.js +0 -31
- package/test-env/components/provider/system/system.js +0 -54
- package/test-env/global_styling/utility/utility.js +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "mono", "className", "aria-label"
|
|
1
|
+
var _excluded = ["size", "mono", "className", "aria-label"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -16,22 +16,22 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
20
|
import { euiLoadingChartStyles, euiLoadingChartBarStyles, _barIndex } from './loading_chart.styles';
|
|
21
21
|
import { useEuiI18n } from '../i18n';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export var SIZES = ['m', 'l', 'xl'];
|
|
24
|
-
export var
|
|
24
|
+
export var EuiLoadingChart = function EuiLoadingChart(_ref) {
|
|
25
25
|
var _ref$size = _ref.size,
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
_ref$mono = _ref.mono,
|
|
28
28
|
mono = _ref$mono === void 0 ? false : _ref$mono,
|
|
29
29
|
className = _ref.className,
|
|
30
30
|
ariaLabel = _ref['aria-label'],
|
|
31
|
-
euiTheme = _ref.euiTheme,
|
|
32
31
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
33
32
|
|
|
34
33
|
var defaultAriaLabel = useEuiI18n('euiLoadingChart.ariaLabel', 'Loading');
|
|
34
|
+
var euiTheme = useEuiTheme();
|
|
35
35
|
var styles = euiLoadingChartStyles(euiTheme);
|
|
36
36
|
var barStyles = euiLoadingChartBarStyles(euiTheme);
|
|
37
37
|
var classes = classNames('euiLoadingChart', {
|
|
@@ -59,11 +59,10 @@ export var _EuiLoadingChart = function _EuiLoadingChart(_ref) {
|
|
|
59
59
|
"aria-label": ariaLabel || defaultAriaLabel
|
|
60
60
|
}, rest), bars);
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
EuiLoadingChart.propTypes = {
|
|
63
63
|
className: PropTypes.string,
|
|
64
64
|
"aria-label": PropTypes.string,
|
|
65
65
|
"data-test-subj": PropTypes.string,
|
|
66
66
|
size: PropTypes.any,
|
|
67
67
|
mono: PropTypes.bool
|
|
68
|
-
};
|
|
69
|
-
export var EuiLoadingChart = withEuiSystem(_EuiLoadingChart);
|
|
68
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["lines", "className", "aria-label"
|
|
1
|
+
var _excluded = ["lines", "className", "aria-label"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -16,18 +16,18 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
20
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
21
21
|
import { euiLoadingContentStyles } from './loading_content.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
-
export var
|
|
23
|
+
export var EuiLoadingContent = function EuiLoadingContent(_ref) {
|
|
24
24
|
var _ref$lines = _ref.lines,
|
|
25
25
|
lines = _ref$lines === void 0 ? 3 : _ref$lines,
|
|
26
26
|
className = _ref.className,
|
|
27
27
|
ariaLabel = _ref['aria-label'],
|
|
28
|
-
euiTheme = _ref.euiTheme,
|
|
29
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
29
|
|
|
30
|
+
var euiTheme = useEuiTheme();
|
|
31
31
|
var styles = euiLoadingContentStyles(euiTheme);
|
|
32
32
|
var lineCssStyles = [styles.euiLoadingContent__singleLine];
|
|
33
33
|
var defaultLabel = useLoadingAriaLabel();
|
|
@@ -47,10 +47,9 @@ export var _EuiLoadingContent = function _EuiLoadingContent(_ref) {
|
|
|
47
47
|
"aria-label": ariaLabel || defaultLabel
|
|
48
48
|
}, rest), lineElements);
|
|
49
49
|
};
|
|
50
|
-
|
|
50
|
+
EuiLoadingContent.propTypes = {
|
|
51
51
|
className: PropTypes.string,
|
|
52
52
|
"aria-label": PropTypes.string,
|
|
53
53
|
"data-test-subj": PropTypes.string,
|
|
54
54
|
lines: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
|
|
55
|
-
};
|
|
56
|
-
export var EuiLoadingContent = withEuiSystem(_EuiLoadingContent);
|
|
55
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "logo", "aria-label", "className"
|
|
1
|
+
var _excluded = ["size", "logo", "aria-label", "className"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -17,21 +17,21 @@ import React from 'react';
|
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import { EuiIcon } from '../icon';
|
|
20
|
-
import {
|
|
20
|
+
import { useEuiTheme } from '../../services';
|
|
21
21
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
22
22
|
import { euiLoadingLogoStyles, euiLoadingLogoIconStyles } from './loading_logo.styles';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export var SIZES = ['m', 'l', 'xl'];
|
|
25
|
-
export var
|
|
25
|
+
export var EuiLoadingLogo = function EuiLoadingLogo(_ref) {
|
|
26
26
|
var _ref$size = _ref.size,
|
|
27
27
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
28
|
_ref$logo = _ref.logo,
|
|
29
29
|
logo = _ref$logo === void 0 ? 'logoKibana' : _ref$logo,
|
|
30
30
|
ariaLabel = _ref['aria-label'],
|
|
31
31
|
className = _ref.className,
|
|
32
|
-
euiTheme = _ref.euiTheme,
|
|
33
32
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
34
33
|
|
|
34
|
+
var euiTheme = useEuiTheme();
|
|
35
35
|
var defaultLabel = useLoadingAriaLabel();
|
|
36
36
|
var styles = euiLoadingLogoStyles(euiTheme);
|
|
37
37
|
var cssStyles = [styles.euiLoadingLogo, styles[size]];
|
|
@@ -50,7 +50,7 @@ export var _EuiLoadingLogo = function _EuiLoadingLogo(_ref) {
|
|
|
50
50
|
size: size
|
|
51
51
|
})));
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
EuiLoadingLogo.propTypes = {
|
|
54
54
|
className: PropTypes.string,
|
|
55
55
|
"aria-label": PropTypes.string,
|
|
56
56
|
"data-test-subj": PropTypes.string,
|
|
@@ -60,5 +60,4 @@ _EuiLoadingLogo.propTypes = {
|
|
|
60
60
|
* While this component should be restricted to using logo icons, it works with any IconType
|
|
61
61
|
*/
|
|
62
62
|
logo: PropTypes.oneOfType([PropTypes.oneOf(["accessibility", "addDataApp", "advancedSettingsApp", "agentApp", "aggregate", "alert", "analyzeEvent", "annotation", "apmApp", "apmTrace", "appSearchApp", "apps", "arrowDown", "arrowLeft", "arrowRight", "arrowUp", "arrowStart", "arrowEnd", "asterisk", "auditbeatApp", "beaker", "bell", "bellSlash", "bolt", "boxesHorizontal", "boxesVertical", "branch", "branchUser", "broom", "brush", "bug", "bullseye", "calendar", "canvasApp", "casesApp", "check", "checkInCircleFilled", "cheer", "classificationJob", "clock", "cloudDrizzle", "cloudStormy", "cloudSunny", "codeApp", "color", "compute", "console", "consoleApp", "continuityAbove", "continuityAboveBelow", "continuityBelow", "continuityWithin", "controlsHorizontal", "controlsVertical", "copy", "copyClipboard", "createAdvancedJob", "createMultiMetricJob", "createPopulationJob", "createSingleMetricJob", "cross", "crossClusterReplicationApp", "crossInACircleFilled", "crosshairs", "currency", "cut", "dashboardApp", "dataVisualizer", "database", "desktop", "devToolsApp", "discoverApp", "document", "documentEdit", "documentation", "documents", "dot", "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", "eql", "eraser", "exit", "expand", "expandMini", "exportAction", "eye", "eyeClosed", "faceHappy", "faceNeutral", "faceSad", "filebeatApp", "filter", "flag", "fleetApp", "fold", "folderCheck", "folderClosed", "folderExclamation", "folderOpen", "frameNext", "framePrevious", "fullScreen", "fullScreenExit", "function", "gear", "gisApp", "glasses", "globe", "grab", "grabHorizontal", "graphApp", "grid", "grokApp", "heart", "heartbeatApp", "heatmap", "help", "home", "iInCircle", "image", "importAction", "indexClose", "indexEdit", "indexFlush", "indexManagementApp", "indexMapping", "indexOpen", "indexPatternApp", "indexRollupApp", "indexRuntime", "indexSettings", "inputOutput", "inspect", "invert", "ip", "keyboardShortcut", "kqlField", "kqlFunction", "kqlOperand", "kqlSelector", "kqlValue", "layers", "lensApp", "lettering", "lineDashed", "lineDotted", "lineSolid", "link", "list", "listAdd", "lock", "lockOpen", "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", "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", "mobile", "monitoringApp", "moon", "nested", "node", "notebookApp", "number", "offline", "online", "outlierDetectionJob", "package", "packetbeatApp", "pageSelect", "pagesSelect", "paperClip", "partial", "pause", "payment", "pencil", "percent", "pin", "pinFilled", "pipelineApp", "play", "playFilled", "plus", "plusInCircle", "plusInCircleFilled", "popout", "push", "questionInCircle", "quote", "recentlyViewedApp", "refresh", "regressionJob", "reporter", "reportingApp", "returnKey", "save", "savedObjectsApp", "scale", "search", "searchProfilerApp", "securityAnalyticsApp", "securityApp", "securitySignal", "securitySignalDetected", "securitySignalResolved", "sessionViewer", "shard", "share", "snowflake", "sortDown", "sortLeft", "sortRight", "sortUp", "sortable", "spacesApp", "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", "timelionApp", "timeRefresh", "timeslider", "training", "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", "watchesApp", "wordWrap", "wordWrapDisabled", "workplaceSearchApp", "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", "tokenDate", "tokenIP", "tokenNested", "tokenAlias", "tokenShape", "tokenGeo", "tokenRange", "tokenBinary", "tokenJoin", "tokenPercolator", "tokenFlattened", "tokenRankFeature", "tokenRankFeatures", "tokenKeyword", "tokenTag", "tokenCompletionSuggester", "tokenDenseVector", "tokenText", "tokenTokenCount", "tokenSearchType", "tokenHistogram"]).isRequired, PropTypes.string.isRequired, PropTypes.elementType.isRequired])
|
|
63
|
-
};
|
|
64
|
-
export var EuiLoadingLogo = withEuiSystem(_EuiLoadingLogo);
|
|
63
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "className", "aria-label", "color"
|
|
1
|
+
var _excluded = ["size", "className", "aria-label", "color"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -16,20 +16,20 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { useEuiTheme } from '../..//services';
|
|
20
20
|
import { useLoadingAriaLabel } from './_loading_strings';
|
|
21
21
|
import { euiLoadingSpinnerStyles } from './loading_spinner.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export var SIZES = ['s', 'm', 'l', 'xl', 'xxl'];
|
|
24
|
-
export var
|
|
24
|
+
export var EuiLoadingSpinner = function EuiLoadingSpinner(_ref) {
|
|
25
25
|
var _ref$size = _ref.size,
|
|
26
26
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
ariaLabel = _ref['aria-label'],
|
|
29
29
|
color = _ref.color,
|
|
30
|
-
euiTheme = _ref.euiTheme,
|
|
31
30
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
32
31
|
|
|
32
|
+
var euiTheme = useEuiTheme();
|
|
33
33
|
var styles = euiLoadingSpinnerStyles(euiTheme, color);
|
|
34
34
|
var cssStyles = [styles.euiLoadingSpinner, styles[size]];
|
|
35
35
|
var classes = classNames('euiLoadingSpinner', className);
|
|
@@ -41,7 +41,7 @@ export var _EuiLoadingSpinner = function _EuiLoadingSpinner(_ref) {
|
|
|
41
41
|
"aria-label": ariaLabel || defaultLabel
|
|
42
42
|
}, rest));
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
EuiLoadingSpinner.propTypes = {
|
|
45
45
|
className: PropTypes.string,
|
|
46
46
|
"aria-label": PropTypes.string,
|
|
47
47
|
"data-test-subj": PropTypes.string,
|
|
@@ -56,5 +56,4 @@ _EuiLoadingSpinner.propTypes = {
|
|
|
56
56
|
border: PropTypes.any,
|
|
57
57
|
highlight: PropTypes.any
|
|
58
58
|
})
|
|
59
|
-
};
|
|
60
|
-
export var EuiLoadingSpinner = withEuiSystem(_EuiLoadingSpinner);
|
|
59
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "
|
|
1
|
+
var _excluded = ["children", "className", "hasScreenReaderHelpText"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -17,31 +17,31 @@ import React from 'react';
|
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
19
|
import { useEuiI18n } from '../i18n';
|
|
20
|
-
import {
|
|
20
|
+
import { useEuiTheme } from '../../services';
|
|
21
21
|
import { euiMarkStyles } from './mark.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
|
-
export var
|
|
23
|
+
export var EuiMark = function EuiMark(_ref) {
|
|
24
24
|
var children = _ref.children,
|
|
25
25
|
className = _ref.className,
|
|
26
|
-
euiTheme = _ref.euiTheme,
|
|
27
26
|
_ref$hasScreenReaderH = _ref.hasScreenReaderHelpText,
|
|
28
27
|
hasScreenReaderHelpText = _ref$hasScreenReaderH === void 0 ? true : _ref$hasScreenReaderH,
|
|
29
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
30
29
|
|
|
30
|
+
var useTheme = useEuiTheme();
|
|
31
31
|
var highlightStart = useEuiI18n('euiMark.highlightStart', 'highlight start');
|
|
32
32
|
var highlightEnd = useEuiI18n('euiMark.highlightEnd', 'highlight end');
|
|
33
|
-
var styles = euiMarkStyles(
|
|
33
|
+
var styles = euiMarkStyles(useTheme, {
|
|
34
34
|
hasScreenReaderHelpText: hasScreenReaderHelpText,
|
|
35
35
|
highlightStart: highlightStart,
|
|
36
36
|
highlightEnd: highlightEnd
|
|
37
37
|
});
|
|
38
38
|
var classes = classNames('euiMark', className);
|
|
39
39
|
return ___EmotionJSX("mark", _extends({
|
|
40
|
-
css: [styles],
|
|
40
|
+
css: [styles, ";label:EuiMark;"],
|
|
41
41
|
className: classes
|
|
42
42
|
}, rest), children);
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
EuiMark.propTypes = {
|
|
45
45
|
className: PropTypes.string,
|
|
46
46
|
"aria-label": PropTypes.string,
|
|
47
47
|
"data-test-subj": PropTypes.string,
|
|
@@ -56,5 +56,4 @@ _EuiMark.propTypes = {
|
|
|
56
56
|
* ReactNode to render as this component's content
|
|
57
57
|
*/
|
|
58
58
|
children: PropTypes.node.isRequired
|
|
59
|
-
};
|
|
60
|
-
export var EuiMark = withEuiSystem(_EuiMark);
|
|
59
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"
|
|
1
|
+
var _excluded = ["children", "className", "parsingPluginList", "processingPluginList", "textSize"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -18,11 +18,11 @@ import PropTypes from "prop-types";
|
|
|
18
18
|
import unified from 'unified';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
20
|
import { EuiText } from '../text/text';
|
|
21
|
-
import {
|
|
21
|
+
import { useEuiTheme } from '../../services';
|
|
22
22
|
import { euiMarkdownFormatStyles } from './markdown_format.styles';
|
|
23
23
|
import { defaultProcessingPlugins, defaultParsingPlugins } from './plugins/markdown_default_plugins';
|
|
24
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
25
|
-
export var
|
|
25
|
+
export var EuiMarkdownFormat = function EuiMarkdownFormat(_ref) {
|
|
26
26
|
var children = _ref.children,
|
|
27
27
|
className = _ref.className,
|
|
28
28
|
_ref$parsingPluginLis = _ref.parsingPluginList,
|
|
@@ -31,7 +31,6 @@ export var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
31
31
|
processingPluginList = _ref$processingPlugin === void 0 ? defaultProcessingPlugins : _ref$processingPlugin,
|
|
32
32
|
_ref$textSize = _ref.textSize,
|
|
33
33
|
textSize = _ref$textSize === void 0 ? 'm' : _ref$textSize,
|
|
34
|
-
euiTheme = _ref.euiTheme,
|
|
35
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
35
|
|
|
37
36
|
var processor = useMemo(function () {
|
|
@@ -49,6 +48,7 @@ export var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
49
48
|
return children;
|
|
50
49
|
}
|
|
51
50
|
}, [children, processor]);
|
|
51
|
+
var euiTheme = useEuiTheme();
|
|
52
52
|
var styles = euiMarkdownFormatStyles(euiTheme);
|
|
53
53
|
var cssStyles = [styles.euiMarkdownFormat, styles[textSize]];
|
|
54
54
|
var classes = classNames('euiMarkdownFormat', className);
|
|
@@ -58,7 +58,7 @@ export var _EuiMarkdownFormat = function _EuiMarkdownFormat(_ref) {
|
|
|
58
58
|
className: classes
|
|
59
59
|
}, rest), result);
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
EuiMarkdownFormat.propTypes = {
|
|
62
62
|
className: PropTypes.string,
|
|
63
63
|
"aria-label": PropTypes.string,
|
|
64
64
|
"data-test-subj": PropTypes.string,
|
|
@@ -74,5 +74,4 @@ _EuiMarkdownFormat.propTypes = {
|
|
|
74
74
|
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
75
75
|
*/
|
|
76
76
|
textSize: PropTypes.any
|
|
77
|
-
};
|
|
78
|
-
export var EuiMarkdownFormat = withEuiSystem(_EuiMarkdownFormat);
|
|
77
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "className", "paddingSize", "borderRadius", "color", "hasShadow", "hasBorder", "grow", "panelRef", "element"
|
|
1
|
+
var _excluded = ["children", "className", "paddingSize", "borderRadius", "color", "hasShadow", "hasBorder", "grow", "panelRef", "element"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
|
-
import {
|
|
21
|
+
import { useEuiTheme } from '../../services';
|
|
22
22
|
import { useEuiBackgroundColorCSS, useEuiPaddingCSS, BACKGROUND_COLORS, PADDING_SIZES } from '../../global_styling';
|
|
23
23
|
import { keysOf } from '../common';
|
|
24
24
|
import { euiPanelStyles } from './panel.style';
|
|
@@ -37,7 +37,7 @@ var _SIZES = keysOf(paddingSizeToClassNameMap);
|
|
|
37
37
|
|
|
38
38
|
export var BORDER_RADII = ['none', 'm'];
|
|
39
39
|
export var COLORS = BACKGROUND_COLORS;
|
|
40
|
-
export var
|
|
40
|
+
export var EuiPanel = function EuiPanel(_ref) {
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
className = _ref.className,
|
|
43
43
|
_ref$paddingSize = _ref.paddingSize,
|
|
@@ -54,10 +54,10 @@ export var _EuiPanel = function _EuiPanel(_ref) {
|
|
|
54
54
|
grow = _ref$grow === void 0 ? true : _ref$grow,
|
|
55
55
|
panelRef = _ref.panelRef,
|
|
56
56
|
element = _ref.element,
|
|
57
|
-
euiTheme = _ref.euiTheme,
|
|
58
57
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
59
58
|
|
|
60
|
-
// Shadows are only allowed when there's a white background (plain)
|
|
59
|
+
var euiTheme = useEuiTheme(); // Shadows are only allowed when there's a white background (plain)
|
|
60
|
+
|
|
61
61
|
var canHaveShadow = !hasBorder && color === 'plain';
|
|
62
62
|
var canHaveBorder = color === 'plain' || color === 'transparent';
|
|
63
63
|
var styles = euiPanelStyles(euiTheme);
|
|
@@ -77,7 +77,7 @@ export var _EuiPanel = function _EuiPanel(_ref) {
|
|
|
77
77
|
css: cssStyles
|
|
78
78
|
}, rest), children);
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
EuiPanel.propTypes = {
|
|
81
81
|
element: PropTypes.oneOfType([PropTypes.oneOf(["button"]), PropTypes.oneOf(["div"])]),
|
|
82
82
|
|
|
83
83
|
/**
|
|
@@ -143,5 +143,4 @@ _EuiPanel.propTypes = {
|
|
|
143
143
|
className: PropTypes.string,
|
|
144
144
|
"aria-label": PropTypes.string,
|
|
145
145
|
"data-test-subj": PropTypes.string
|
|
146
|
-
};
|
|
147
|
-
export var EuiPanel = withEuiSystem(_EuiPanel);
|
|
146
|
+
};
|
|
@@ -7,56 +7,22 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { EuiGlobalStyles } from '../../global_styling/reset/global_styles';
|
|
10
|
-
import { EuiUtilityClasses } from '../../global_styling/utility/utility';
|
|
11
10
|
import { EuiThemeProvider } from '../../services';
|
|
12
11
|
import { EuiThemeAmsterdam } from '../../themes';
|
|
13
|
-
import { EuiCacheContext, EuiCacheProvider } from './cache';
|
|
14
12
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
|
-
|
|
16
|
-
var isEmotionCacheObject = function isEmotionCacheObject(obj) {
|
|
17
|
-
return obj.hasOwnProperty('key');
|
|
18
|
-
};
|
|
19
|
-
|
|
20
13
|
export var EuiProvider = function EuiProvider(_ref) {
|
|
21
14
|
var cache = _ref.cache,
|
|
22
15
|
_ref$theme = _ref.theme,
|
|
23
16
|
theme = _ref$theme === void 0 ? EuiThemeAmsterdam : _ref$theme,
|
|
24
17
|
_ref$globalStyles = _ref.globalStyles,
|
|
25
|
-
|
|
26
|
-
_ref$utilityClasses = _ref.utilityClasses,
|
|
27
|
-
Utilities = _ref$utilityClasses === void 0 ? EuiUtilityClasses : _ref$utilityClasses,
|
|
18
|
+
GlobalStyles = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
|
|
28
19
|
colorMode = _ref.colorMode,
|
|
29
20
|
modify = _ref.modify,
|
|
30
21
|
children = _ref.children;
|
|
31
|
-
|
|
32
|
-
var euiCache;
|
|
33
|
-
var globalCache;
|
|
34
|
-
var utilityCache;
|
|
35
|
-
|
|
36
|
-
if (cache) {
|
|
37
|
-
if (isEmotionCacheObject(cache)) {
|
|
38
|
-
defaultCache = cache;
|
|
39
|
-
} else {
|
|
40
|
-
defaultCache = cache.default;
|
|
41
|
-
euiCache = cache.eui;
|
|
42
|
-
globalCache = cache.global;
|
|
43
|
-
utilityCache = cache.utility;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return ___EmotionJSX(EuiCacheProvider, {
|
|
48
|
-
cache: defaultCache
|
|
49
|
-
}, ___EmotionJSX(EuiCacheContext.Provider, {
|
|
50
|
-
value: euiCache
|
|
51
|
-
}, ___EmotionJSX(EuiThemeProvider, {
|
|
22
|
+
return ___EmotionJSX(EuiThemeProvider, {
|
|
52
23
|
theme: theme !== null && theme !== void 0 ? theme : undefined,
|
|
53
24
|
colorMode: colorMode,
|
|
54
|
-
modify: modify
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
children: Globals && ___EmotionJSX(Globals, null)
|
|
58
|
-
}), ___EmotionJSX(EuiCacheProvider, {
|
|
59
|
-
cache: utilityCache,
|
|
60
|
-
children: Utilities && ___EmotionJSX(Utilities, null)
|
|
61
|
-
})), children)));
|
|
25
|
+
modify: modify,
|
|
26
|
+
cache: cache
|
|
27
|
+
}, theme !== null && GlobalStyles !== false ? ___EmotionJSX(GlobalStyles, null) : null, children);
|
|
62
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["className", "
|
|
1
|
+
var _excluded = ["className", "size"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -18,17 +18,17 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
18
18
|
import React from 'react';
|
|
19
19
|
import PropTypes from "prop-types";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
|
-
import {
|
|
21
|
+
import { useEuiTheme } from '../../services';
|
|
22
22
|
import { euiSpacerStyles } from './spacer.styles';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export var SIZES = ['xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
25
|
-
export var
|
|
25
|
+
export var EuiSpacer = function EuiSpacer(_ref) {
|
|
26
26
|
var className = _ref.className,
|
|
27
|
-
euiTheme = _ref.euiTheme,
|
|
28
27
|
_ref$size = _ref.size,
|
|
29
28
|
size = _ref$size === void 0 ? 'l' : _ref$size,
|
|
30
29
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
31
30
|
|
|
31
|
+
var euiTheme = useEuiTheme();
|
|
32
32
|
var styles = euiSpacerStyles(euiTheme);
|
|
33
33
|
var classes = classNames('euiSpacer', _defineProperty({}, "euiSpacer--".concat(size), size), className);
|
|
34
34
|
var cssStyles = [styles.euiSpacer, styles[size]];
|
|
@@ -37,10 +37,9 @@ export var _EuiSpacer = function _EuiSpacer(_ref) {
|
|
|
37
37
|
css: cssStyles
|
|
38
38
|
}, rest));
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
EuiSpacer.propTypes = {
|
|
41
41
|
className: PropTypes.string,
|
|
42
42
|
"aria-label": PropTypes.string,
|
|
43
43
|
"data-test-subj": PropTypes.string,
|
|
44
44
|
size: PropTypes.any
|
|
45
|
-
};
|
|
46
|
-
export var EuiSpacer = withEuiSystem(_EuiSpacer);
|
|
45
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["size", "color", "grow", "textAlign", "children", "className"
|
|
1
|
+
var _excluded = ["size", "color", "grow", "textAlign", "children", "className"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -16,13 +16,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
18
|
import classNames from 'classnames';
|
|
19
|
-
import {
|
|
19
|
+
import { useEuiTheme } from '../../services';
|
|
20
20
|
import { euiTextStyles } from './text.styles';
|
|
21
21
|
import { EuiTextColor } from './text_color';
|
|
22
22
|
import { EuiTextAlign } from './text_align';
|
|
23
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
24
24
|
export var TEXT_SIZES = ['xs', 's', 'm', 'relative'];
|
|
25
|
-
export var
|
|
25
|
+
export var EuiText = function EuiText(_ref) {
|
|
26
26
|
var _ref$size = _ref.size,
|
|
27
27
|
size = _ref$size === void 0 ? 'm' : _ref$size,
|
|
28
28
|
color = _ref.color,
|
|
@@ -31,9 +31,9 @@ export var _EuiText = function _EuiText(_ref) {
|
|
|
31
31
|
textAlign = _ref.textAlign,
|
|
32
32
|
children = _ref.children,
|
|
33
33
|
className = _ref.className,
|
|
34
|
-
euiTheme = _ref.euiTheme,
|
|
35
34
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
36
35
|
|
|
36
|
+
var euiTheme = useEuiTheme();
|
|
37
37
|
var styles = euiTextStyles(euiTheme);
|
|
38
38
|
var cssStyles = [styles.euiText, !grow ? styles.constrainedWidth : undefined, styles[size]];
|
|
39
39
|
var classes = classNames('euiText', className);
|
|
@@ -59,7 +59,7 @@ export var _EuiText = function _EuiText(_ref) {
|
|
|
59
59
|
|
|
60
60
|
return text;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
EuiText.propTypes = {
|
|
63
63
|
className: PropTypes.string,
|
|
64
64
|
"aria-label": PropTypes.string,
|
|
65
65
|
"data-test-subj": PropTypes.string,
|
|
@@ -75,5 +75,4 @@ _EuiText.propTypes = {
|
|
|
75
75
|
*/
|
|
76
76
|
color: PropTypes.oneOfType([PropTypes.any.isRequired, PropTypes.any.isRequired]),
|
|
77
77
|
grow: PropTypes.bool
|
|
78
|
-
};
|
|
79
|
-
export var EuiText = withEuiSystem(_EuiText);
|
|
78
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "color", "component", "cloneElement", "style"
|
|
1
|
+
var _excluded = ["children", "color", "component", "cloneElement", "style"];
|
|
2
2
|
|
|
3
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
@@ -20,11 +20,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
20
20
|
import React, { isValidElement } from 'react';
|
|
21
21
|
import PropTypes from "prop-types";
|
|
22
22
|
import { cloneElementWithCss } from '../../services/theme/clone_element';
|
|
23
|
-
import {
|
|
23
|
+
import { useEuiTheme } from '../../services';
|
|
24
24
|
import { euiTextColorStyles } from './text_color.styles';
|
|
25
25
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
26
26
|
export var COLORS = ['default', 'subdued', 'success', 'accent', 'danger', 'warning', 'ghost', 'inherit'];
|
|
27
|
-
export var
|
|
27
|
+
export var EuiTextColor = function EuiTextColor(_ref) {
|
|
28
28
|
var children = _ref.children,
|
|
29
29
|
_ref$color = _ref.color,
|
|
30
30
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
@@ -33,10 +33,10 @@ export var _EuiTextColor = function _EuiTextColor(_ref) {
|
|
|
33
33
|
_ref$cloneElement = _ref.cloneElement,
|
|
34
34
|
cloneElement = _ref$cloneElement === void 0 ? false : _ref$cloneElement,
|
|
35
35
|
style = _ref.style,
|
|
36
|
-
euiTheme = _ref.euiTheme,
|
|
37
36
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
37
|
|
|
39
38
|
var isNamedColor = COLORS.includes(color);
|
|
39
|
+
var euiTheme = useEuiTheme();
|
|
40
40
|
var styles = euiTextColorStyles(euiTheme);
|
|
41
41
|
var cssStyles = [styles.euiTextColor, isNamedColor ? styles[color] : styles.customColor]; // We're checking if is a custom color.
|
|
42
42
|
// If it is a custom color we set the `color` of the `.euiTextColor` div to that custom color.
|
|
@@ -62,7 +62,7 @@ export var _EuiTextColor = function _EuiTextColor(_ref) {
|
|
|
62
62
|
return ___EmotionJSX(Component, props, children);
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
EuiTextColor.propTypes = {
|
|
66
66
|
className: PropTypes.string,
|
|
67
67
|
"aria-label": PropTypes.string,
|
|
68
68
|
"data-test-subj": PropTypes.string,
|
|
@@ -82,5 +82,4 @@ _EuiTextColor.propTypes = {
|
|
|
82
82
|
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
83
83
|
*/
|
|
84
84
|
cloneElement: PropTypes.bool
|
|
85
|
-
};
|
|
86
|
-
export var EuiTextColor = withEuiSystem(_EuiTextColor);
|
|
85
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["children", "verticalAlign", "icon", "iconAriaLabel", "className", "component"
|
|
1
|
+
var _excluded = ["children", "verticalAlign", "icon", "iconAriaLabel", "className", "component"];
|
|
2
2
|
|
|
3
3
|
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); }
|
|
4
4
|
|
|
@@ -15,13 +15,13 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
15
15
|
*/
|
|
16
16
|
import React from 'react';
|
|
17
17
|
import PropTypes from "prop-types";
|
|
18
|
-
import {
|
|
18
|
+
import { useEuiTheme } from '../../services';
|
|
19
19
|
import { EuiTimelineItemEvent } from './timeline_item_event';
|
|
20
20
|
import { EuiTimelineItemIcon } from './timeline_item_icon';
|
|
21
21
|
import { euiTimelineItemStyles } from './timeline_item.styles';
|
|
22
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
23
23
|
export var VERTICAL_ALIGN = ['top', 'center'];
|
|
24
|
-
export var
|
|
24
|
+
export var EuiTimelineItem = function EuiTimelineItem(_ref) {
|
|
25
25
|
var children = _ref.children,
|
|
26
26
|
_ref$verticalAlign = _ref.verticalAlign,
|
|
27
27
|
verticalAlign = _ref$verticalAlign === void 0 ? 'center' : _ref$verticalAlign,
|
|
@@ -30,9 +30,9 @@ export var _EuiTimelineItem = function _EuiTimelineItem(_ref) {
|
|
|
30
30
|
className = _ref.className,
|
|
31
31
|
_ref$component = _ref.component,
|
|
32
32
|
component = _ref$component === void 0 ? 'li' : _ref$component,
|
|
33
|
-
euiTheme = _ref.euiTheme,
|
|
34
33
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
35
34
|
|
|
35
|
+
var euiTheme = useEuiTheme();
|
|
36
36
|
var styles = euiTimelineItemStyles(euiTheme);
|
|
37
37
|
var cssStyles = [styles.euiTimelineItem];
|
|
38
38
|
var Element = component;
|
|
@@ -46,7 +46,7 @@ export var _EuiTimelineItem = function _EuiTimelineItem(_ref) {
|
|
|
46
46
|
verticalAlign: verticalAlign
|
|
47
47
|
}, children));
|
|
48
48
|
};
|
|
49
|
-
|
|
49
|
+
EuiTimelineItem.propTypes = {
|
|
50
50
|
/**
|
|
51
51
|
* Vertical alignment of the event with the icon
|
|
52
52
|
*/
|
|
@@ -61,5 +61,4 @@ _EuiTimelineItem.propTypes = {
|
|
|
61
61
|
className: PropTypes.string,
|
|
62
62
|
"aria-label": PropTypes.string,
|
|
63
63
|
"data-test-subj": PropTypes.string
|
|
64
|
-
};
|
|
65
|
-
export var EuiTimelineItem = withEuiSystem(_EuiTimelineItem);
|
|
64
|
+
};
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
10
|
import { EuiAvatar } from '../avatar';
|
|
11
|
-
import {
|
|
11
|
+
import { useEuiTheme } from '../../services';
|
|
12
12
|
import { euiTimelineItemIconStyles } from './timeline_item_icon.styles';
|
|
13
13
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
14
|
-
export var
|
|
14
|
+
export var EuiTimelineItemIcon = function EuiTimelineItemIcon(_ref) {
|
|
15
15
|
var icon = _ref.icon,
|
|
16
16
|
_ref$verticalAlign = _ref.verticalAlign,
|
|
17
17
|
verticalAlign = _ref$verticalAlign === void 0 ? 'center' : _ref$verticalAlign,
|
|
18
|
-
iconAriaLabel = _ref.iconAriaLabel
|
|
19
|
-
|
|
18
|
+
iconAriaLabel = _ref.iconAriaLabel;
|
|
19
|
+
var euiTheme = useEuiTheme();
|
|
20
20
|
var styles = euiTimelineItemIconStyles(euiTheme);
|
|
21
21
|
var cssStyles = [styles.euiTimelineItemIcon, styles[verticalAlign]];
|
|
22
22
|
var cssContentStyles = styles.euiTimelineItemIcon__content;
|
|
@@ -32,7 +32,7 @@ export var _EuiTimelineItemIcon = function _EuiTimelineItemIcon(_ref) {
|
|
|
32
32
|
css: cssContentStyles
|
|
33
33
|
}, iconRender));
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
EuiTimelineItemIcon.propTypes = {
|
|
36
36
|
/**
|
|
37
37
|
* Any `ReactNode`, but preferably `EuiAvatar`, or a `string` as an `EuiIcon['type']`.
|
|
38
38
|
*/
|
|
@@ -44,5 +44,4 @@ _EuiTimelineItemIcon.propTypes = {
|
|
|
44
44
|
* If no `aria-label` is passed we assume the icon is purely decorative.
|
|
45
45
|
*/
|
|
46
46
|
iconAriaLabel: PropTypes.string
|
|
47
|
-
};
|
|
48
|
-
export var EuiTimelineItemIcon = withEuiSystem(_EuiTimelineItemIcon);
|
|
47
|
+
};
|