@elastic/eui 87.2.0 → 88.0.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.map +1 -1
- package/dist/eui_theme_dark.css +0 -154
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -154
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/color_picker/color_palette_display/color_palette_display.js +3 -6
- package/es/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
- package/es/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
- package/es/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
- package/es/components/color_picker/color_stops/color_stops.js +11 -0
- package/es/components/control_bar/control_bar.js +11 -0
- package/es/components/datagrid/controls/keyboard_shortcuts.js +0 -1
- package/es/components/description_list/description_list.js +28 -12
- package/es/components/description_list/description_list.styles.js +19 -6
- package/es/components/description_list/description_list_context.js +1 -1
- package/es/components/description_list/description_list_description.js +3 -9
- package/es/components/description_list/description_list_description.styles.js +3 -9
- package/es/components/description_list/description_list_title.js +7 -4
- package/es/components/description_list/description_list_title.styles.js +3 -6
- package/es/components/description_list/description_list_types.js +4 -2
- package/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
- package/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
- package/es/components/notification/notification_event.js +10 -0
- package/es/components/suggest/suggest.js +16 -0
- package/es/components/suggest/suggest_item.js +12 -0
- package/es/services/color_picker/color_picker.js +4 -0
- package/eui.d.ts +2348 -2255
- package/i18ntokens.json +144 -144
- package/lib/components/color_picker/color_palette_display/color_palette_display.js +3 -6
- package/lib/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
- package/lib/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
- package/lib/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
- package/lib/components/color_picker/color_stops/color_stops.js +10 -1
- package/lib/components/control_bar/control_bar.js +10 -1
- package/lib/components/datagrid/controls/keyboard_shortcuts.js +0 -1
- package/lib/components/description_list/description_list.js +31 -12
- package/lib/components/description_list/description_list.styles.js +24 -13
- package/lib/components/description_list/description_list_context.js +1 -1
- package/lib/components/description_list/description_list_description.js +2 -8
- package/lib/components/description_list/description_list_description.styles.js +2 -8
- package/lib/components/description_list/description_list_title.js +7 -4
- package/lib/components/description_list/description_list_title.styles.js +2 -5
- package/lib/components/description_list/description_list_types.js +8 -4
- package/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
- package/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
- package/lib/components/notification/notification_event.js +9 -0
- package/lib/components/suggest/suggest.js +16 -0
- package/lib/components/suggest/suggest_item.js +11 -0
- package/lib/services/color_picker/color_picker.js +4 -0
- package/optimize/es/components/color_picker/color_stops/color_stops.js +11 -0
- package/optimize/es/components/control_bar/control_bar.js +11 -0
- package/optimize/es/components/datagrid/controls/keyboard_shortcuts.js +0 -1
- package/optimize/es/components/description_list/description_list.js +20 -10
- package/optimize/es/components/description_list/description_list.styles.js +19 -6
- package/optimize/es/components/description_list/description_list_context.js +1 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -9
- package/optimize/es/components/description_list/description_list_description.styles.js +3 -9
- package/optimize/es/components/description_list/description_list_title.js +7 -4
- package/optimize/es/components/description_list/description_list_title.styles.js +3 -6
- package/optimize/es/components/description_list/description_list_types.js +4 -2
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.js +37 -34
- package/optimize/es/components/key_pad_menu/key_pad_menu_item.styles.js +41 -0
- package/optimize/es/components/notification/notification_event.js +10 -0
- package/optimize/es/components/suggest/suggest.js +16 -0
- package/optimize/es/components/suggest/suggest_item.js +12 -0
- package/optimize/es/services/color_picker/color_picker.js +4 -0
- package/optimize/lib/components/color_picker/color_stops/color_stops.js +10 -1
- package/optimize/lib/components/control_bar/control_bar.js +10 -1
- package/optimize/lib/components/datagrid/controls/keyboard_shortcuts.js +0 -1
- package/optimize/lib/components/description_list/description_list.js +23 -10
- package/optimize/lib/components/description_list/description_list.styles.js +24 -13
- package/optimize/lib/components/description_list/description_list_context.js +1 -1
- package/optimize/lib/components/description_list/description_list_description.js +2 -8
- package/optimize/lib/components/description_list/description_list_description.styles.js +2 -8
- package/optimize/lib/components/description_list/description_list_title.js +7 -4
- package/optimize/lib/components/description_list/description_list_title.styles.js +2 -5
- package/optimize/lib/components/description_list/description_list_types.js +8 -4
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.js +40 -34
- package/optimize/lib/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
- package/optimize/lib/components/notification/notification_event.js +9 -0
- package/optimize/lib/components/suggest/suggest.js +16 -0
- package/optimize/lib/components/suggest/suggest_item.js +11 -0
- package/optimize/lib/services/color_picker/color_picker.js +4 -0
- package/package.json +6 -6
- package/src/components/index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/color_picker/color_palette_display/color_palette_display.js +3 -6
- package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js +2 -5
- package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js +2 -5
- package/test-env/components/color_picker/color_palette_picker/color_palette_picker.js +3 -3
- package/test-env/components/color_picker/color_stops/color_stops.js +10 -1
- package/test-env/components/control_bar/control_bar.js +10 -1
- package/test-env/components/datagrid/controls/keyboard_shortcuts.js +0 -1
- package/test-env/components/description_list/description_list.js +31 -12
- package/test-env/components/description_list/description_list.styles.js +24 -13
- package/test-env/components/description_list/description_list_context.js +1 -1
- package/test-env/components/description_list/description_list_description.js +2 -8
- package/test-env/components/description_list/description_list_description.styles.js +2 -8
- package/test-env/components/description_list/description_list_title.js +7 -4
- package/test-env/components/description_list/description_list_title.styles.js +2 -5
- package/test-env/components/description_list/description_list_types.js +8 -4
- package/test-env/components/key_pad_menu/key_pad_menu_item.js +40 -34
- package/test-env/components/key_pad_menu/key_pad_menu_item.styles.js +49 -0
- package/test-env/components/notification/notification_event.js +9 -0
- package/test-env/components/suggest/suggest.js +16 -0
- package/test-env/components/suggest/suggest_item.js +11 -0
- package/test-env/services/color_picker/color_picker.js +4 -0
- package/src/components/key_pad_menu/_index.scss +0 -5
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +0 -123
- package/src/components/key_pad_menu/_variables.scss +0 -2
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +0 -46
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.EuiKeyPadMenuItem = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var _beta_badge = require("../badge/beta_badge");
|
|
13
13
|
var _services = require("../../services");
|
|
14
|
+
var _beta_badge = require("../badge/beta_badge");
|
|
14
15
|
var _form = require("../form");
|
|
15
16
|
var _href_validator = require("../../services/security/href_validator");
|
|
16
17
|
var _tool_tip = require("../tool_tip");
|
|
18
|
+
var _key_pad_menu_item = require("./key_pad_menu_item.styles");
|
|
17
19
|
var _react2 = require("@emotion/react");
|
|
18
20
|
var _excluded = ["id", "isSelected", "isDisabled", "label", "children", "className", "betaBadgeLabel", "betaBadgeTooltipContent", "betaBadgeIconType", "betaBadgeTooltipProps", "href", "rel", "target", "buttonRef", "checkable", "name", "value", "disabled", "onChange"];
|
|
19
21
|
/*
|
|
@@ -23,6 +25,8 @@ var _excluded = ["id", "isSelected", "isDisabled", "label", "children", "classNa
|
|
|
23
25
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
24
26
|
* Side Public License, v 1.
|
|
25
27
|
*/
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
30
|
var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
|
|
27
31
|
var id = _ref.id,
|
|
28
32
|
isSelected = _ref.isSelected,
|
|
@@ -46,48 +50,45 @@ var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
|
|
|
46
50
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
47
51
|
var isHrefValid = !href || (0, _href_validator.validateHref)(href);
|
|
48
52
|
var isDisabled = disabled || _isDisabled || !isHrefValid;
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'euiKeyPadMenuItem-isSelected': isSelected
|
|
54
|
-
}, className);
|
|
53
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
54
|
+
var styles = (0, _key_pad_menu_item.euiKeyPadMenuItemStyles)(euiTheme);
|
|
55
|
+
var cssStyles = [styles.euiKeyPadMenuItem, !isDisabled ? styles.enabled : styles.disabled.disabled, isSelected && (!isDisabled ? styles.selected : styles.disabled.selected)];
|
|
56
|
+
var classes = (0, _classnames.default)('euiKeyPadMenuItem', className);
|
|
55
57
|
var Element = href && !isDisabled ? 'a' : 'button';
|
|
56
58
|
if (checkable) Element = 'label';
|
|
57
59
|
var itemId = (0, _services.useGeneratedHtmlId)({
|
|
58
60
|
conditionalId: id
|
|
59
61
|
});
|
|
60
|
-
var
|
|
62
|
+
var childStyles = (0, _react.useMemo)(function () {
|
|
63
|
+
return (0, _key_pad_menu_item.euiKeyPadMenuItemChildStyles)(euiTheme);
|
|
64
|
+
}, [euiTheme]);
|
|
65
|
+
var checkableElement = (0, _react.useMemo)(function () {
|
|
61
66
|
if (!checkable) return;
|
|
62
|
-
var
|
|
63
|
-
var
|
|
67
|
+
var cssStyles = [childStyles.euiKeyPadMenuItem__checkableInput, !isSelected && isDisabled && childStyles.hideCheckableInput, !isSelected && !isDisabled && childStyles.showCheckableInputOnInteraction];
|
|
68
|
+
var sharedProps = {
|
|
69
|
+
id: itemId,
|
|
70
|
+
className: 'euiKeyPadMenuItem__checkableInput',
|
|
71
|
+
css: cssStyles,
|
|
72
|
+
checked: isSelected,
|
|
73
|
+
disabled: isDisabled,
|
|
74
|
+
name: name
|
|
75
|
+
};
|
|
64
76
|
if (checkable === 'single') {
|
|
65
|
-
|
|
66
|
-
id: itemId,
|
|
67
|
-
className: inputClasses,
|
|
68
|
-
checked: isSelected,
|
|
69
|
-
disabled: isDisabled,
|
|
70
|
-
name: name,
|
|
77
|
+
return (0, _react2.jsx)(_form.EuiRadio, (0, _extends2.default)({}, sharedProps, {
|
|
71
78
|
value: value,
|
|
72
79
|
onChange: function onChange() {
|
|
73
80
|
return _onChange(itemId, value);
|
|
74
81
|
}
|
|
75
|
-
});
|
|
82
|
+
}));
|
|
76
83
|
} else {
|
|
77
|
-
|
|
78
|
-
id: itemId,
|
|
79
|
-
className: inputClasses,
|
|
80
|
-
checked: isSelected,
|
|
81
|
-
disabled: isDisabled,
|
|
82
|
-
name: name,
|
|
84
|
+
return (0, _react2.jsx)(_form.EuiCheckbox, (0, _extends2.default)({}, sharedProps, {
|
|
83
85
|
onChange: function onChange() {
|
|
84
86
|
return _onChange(itemId);
|
|
85
87
|
}
|
|
86
|
-
});
|
|
88
|
+
}));
|
|
87
89
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
var renderBetaBadge = function renderBetaBadge() {
|
|
90
|
+
}, [checkable, isDisabled, isSelected, _onChange, value, name, itemId, childStyles]);
|
|
91
|
+
var betaBadge = (0, _react.useMemo)(function () {
|
|
91
92
|
if (!betaBadgeLabel) return;
|
|
92
93
|
return (0, _react2.jsx)(_beta_badge.EuiBetaBadge
|
|
93
94
|
// Since we move the tooltip contents to a wrapping EuiToolTip,
|
|
@@ -97,10 +98,11 @@ var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
|
|
|
97
98
|
size: "s",
|
|
98
99
|
color: "subdued",
|
|
99
100
|
className: "euiKeyPadMenuItem__betaBadge",
|
|
101
|
+
css: childStyles.euiKeyPadMenuItem__betaBadge,
|
|
100
102
|
label: betaBadgeLabel.charAt(0),
|
|
101
103
|
iconType: betaBadgeIconType
|
|
102
104
|
});
|
|
103
|
-
};
|
|
105
|
+
}, [betaBadgeLabel, betaBadgeIconType, childStyles]);
|
|
104
106
|
var relObj = {};
|
|
105
107
|
if (href && !isDisabled) {
|
|
106
108
|
relObj.href = href;
|
|
@@ -119,16 +121,20 @@ var EuiKeyPadMenuItem = function EuiKeyPadMenuItem(_ref) {
|
|
|
119
121
|
relObj['aria-pressed'] = isSelected;
|
|
120
122
|
}
|
|
121
123
|
var button = (0, _react2.jsx)(Element, (0, _extends2.default)({
|
|
122
|
-
className: classes
|
|
124
|
+
className: classes,
|
|
125
|
+
css: cssStyles
|
|
123
126
|
}, relObj, rest, {
|
|
124
127
|
// Unable to get past `LegacyRef` conflicts
|
|
125
128
|
ref: buttonRef
|
|
126
129
|
}), (0, _react2.jsx)("span", {
|
|
127
|
-
className: "euiKeyPadMenuItem__inner"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
className: "euiKeyPadMenuItem__inner",
|
|
131
|
+
css: childStyles.euiKeyPadMenuItem__inner
|
|
132
|
+
}, checkable ? checkableElement : betaBadge, (0, _react2.jsx)("span", {
|
|
133
|
+
className: "euiKeyPadMenuItem__icon",
|
|
134
|
+
css: childStyles.euiKeyPadMenuItem__icon
|
|
130
135
|
}, children), (0, _react2.jsx)("span", {
|
|
131
|
-
className: "euiKeyPadMenuItem__label"
|
|
136
|
+
className: "euiKeyPadMenuItem__label",
|
|
137
|
+
css: childStyles.euiKeyPadMenuItem__label
|
|
132
138
|
}, label)));
|
|
133
139
|
return betaBadgeLabel ? (0, _react2.jsx)(_tool_tip.EuiToolTip, (0, _extends2.default)({}, betaBadgeTooltipProps, {
|
|
134
140
|
title: betaBadgeLabel,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.euiKeyPadMenuItemStyles = exports.euiKeyPadMenuItemChildStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
var _services = require("../../services");
|
|
9
|
+
var _global_styling = require("../../global_styling");
|
|
10
|
+
var _mixins = require("../../themes/amsterdam/global_styling/mixins");
|
|
11
|
+
var _accessibility = require("../accessibility");
|
|
12
|
+
var _key_pad_menu = require("./key_pad_menu.styles");
|
|
13
|
+
/*
|
|
14
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
15
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
16
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
17
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
|
+
* Side Public License, v 1.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
var euiKeyPadMenuItemStyles = function euiKeyPadMenuItemStyles(euiThemeContext) {
|
|
22
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
23
|
+
var _euiKeyPadMenuVariabl = (0, _key_pad_menu.euiKeyPadMenuVariables)(euiThemeContext),
|
|
24
|
+
euiKeyPadMenuSize = _euiKeyPadMenuVariabl.euiKeyPadMenuSize;
|
|
25
|
+
return {
|
|
26
|
+
euiKeyPadMenuItem: /*#__PURE__*/(0, _react.css)("display:block;padding:", euiTheme.size.xs, ";", (0, _global_styling.logicalSizeCSS)(euiKeyPadMenuSize), " border-radius:", euiTheme.border.radius.medium, ";color:", euiTheme.colors.text, ";", _global_styling.euiCanAnimate, "{transition:background-color ", euiTheme.animation.fast, " ease-in,box-shadow ", euiTheme.animation.fast, " ease-in;};label:euiKeyPadMenuItem;"),
|
|
27
|
+
enabled: /*#__PURE__*/(0, _react.css)("&:hover,&:focus,&:focus-within{cursor:pointer;text-decoration:underline;", (0, _mixins.euiShadow)(euiThemeContext, 's'), " ", _global_styling.euiCanAnimate, "{.euiKeyPadMenuItem__icon{transform:translateY(0);}}}&:focus{background-color:", euiTheme.focus.backgroundColor, ";box-shadow:none;};label:enabled;"),
|
|
28
|
+
selected: /*#__PURE__*/(0, _react.css)("color:", euiTheme.colors.title, ";background-color:", euiTheme.focus.backgroundColor, ";&,&:hover,&:focus,&:focus-within{color:", euiTheme.colors.primaryText, ";};label:selected;"),
|
|
29
|
+
disabled: {
|
|
30
|
+
disabled: /*#__PURE__*/(0, _react.css)("cursor:not-allowed;color:", euiTheme.colors.disabledText, ";.euiKeyPadMenuItem__icon{filter:grayscale(100%);svg *{fill:", euiTheme.colors.disabledText, ";}};label:disabled;"),
|
|
31
|
+
selected: /*#__PURE__*/(0, _react.css)("background-color:", (0, _services.transparentize)(euiTheme.colors.disabled, euiTheme.focus.transparency), ";;label:selected;")
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
exports.euiKeyPadMenuItemStyles = euiKeyPadMenuItemStyles;
|
|
36
|
+
var euiKeyPadMenuItemChildStyles = function euiKeyPadMenuItemChildStyles(euiThemeContext) {
|
|
37
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
38
|
+
var topRightChildren = "\n z-index: 3;\n position: absolute;\n ".concat((0, _global_styling.logicalCSS)('top', euiTheme.size.xs), "\n ").concat((0, _global_styling.logicalCSS)('right', euiTheme.size.xs), "\n ");
|
|
39
|
+
return {
|
|
40
|
+
euiKeyPadMenuItem__inner: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalSizeCSS)('100%'), " display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;;label:euiKeyPadMenuItem__inner;"),
|
|
41
|
+
euiKeyPadMenuItem__icon: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-bottom', euiTheme.size.m), " transform:translateY(2px);", _global_styling.euiCanAnimate, "{transition:transform ", euiTheme.animation.normal, " ", euiTheme.animation.bounce, ";};label:euiKeyPadMenuItem__icon;"),
|
|
42
|
+
euiKeyPadMenuItem__label: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), " font-weight:", euiTheme.font.weight.semiBold, ";text-align:center;;label:euiKeyPadMenuItem__label;"),
|
|
43
|
+
euiKeyPadMenuItem__betaBadge: /*#__PURE__*/(0, _react.css)(topRightChildren, ";;label:euiKeyPadMenuItem__betaBadge;"),
|
|
44
|
+
euiKeyPadMenuItem__checkableInput: /*#__PURE__*/(0, _react.css)(topRightChildren, " transform:scale(.75);transform-origin:top right;&&{position:absolute;};label:euiKeyPadMenuItem__checkableInput;"),
|
|
45
|
+
showCheckableInputOnInteraction: /*#__PURE__*/(0, _react.css)(".euiKeyPadMenuItem:not(:hover, :focus, :focus-within) &{", (0, _accessibility.euiScreenReaderOnly)(), ";};label:showCheckableInputOnInteraction;"),
|
|
46
|
+
hideCheckableInput: /*#__PURE__*/(0, _react.css)((0, _accessibility.euiScreenReaderOnly)(), ";;label:hideCheckableInput;")
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.euiKeyPadMenuItemChildStyles = euiKeyPadMenuItemChildStyles;
|
|
@@ -26,8 +26,17 @@ var _excluded = ["id", "type", "severity", "badgeColor", "iconType", "iconAriaLa
|
|
|
26
26
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
27
27
|
* Side Public License, v 1.
|
|
28
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
29
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
33
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated - EuiNotificationEvent is scheduled for deprecation due to low internal usage and high
|
|
36
|
+
* maintenance requirements. If necessary, we recommend copying this component into your own application.
|
|
37
|
+
*
|
|
38
|
+
* The component will be permanently removed in December 2023.
|
|
39
|
+
*/
|
|
31
40
|
var EuiNotificationEvent = function EuiNotificationEvent(_ref) {
|
|
32
41
|
var id = _ref.id,
|
|
33
42
|
type = _ref.type,
|
|
@@ -48,6 +48,22 @@ var statusMap = {
|
|
|
48
48
|
|
|
49
49
|
// keys of _EuiSuggestItemPropsBase
|
|
50
50
|
var suggestItemPropsKeys = ['label', 'type', 'description', 'labelDisplay', 'labelWidth', 'descriptionDisplay'];
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated
|
|
54
|
+
*/
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
|
|
62
|
+
* overlap with other existing EUI components. We recommend using EuiSelectable instead,
|
|
63
|
+
* or copying this component into your own application for usage if necessary.
|
|
64
|
+
*
|
|
65
|
+
* The component will be permanently removed in October 2023.
|
|
66
|
+
*/
|
|
51
67
|
var EuiSuggest = function EuiSuggest(_ref) {
|
|
52
68
|
var onItemClick = _ref.onItemClick,
|
|
53
69
|
onBlur = _ref.onBlur,
|
|
@@ -20,6 +20,9 @@ var _excluded = ["className", "label", "type", "labelWidth", "description", "tru
|
|
|
20
20
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
21
|
* Side Public License, v 1.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
23
26
|
var colorToClassNameMap = {
|
|
24
27
|
tint0: 'euiSuggestItem__type--tint0',
|
|
25
28
|
tint1: 'euiSuggestItem__type--tint1',
|
|
@@ -34,6 +37,14 @@ var colorToClassNameMap = {
|
|
|
34
37
|
tint10: 'euiSuggestItem__type--tint10'
|
|
35
38
|
};
|
|
36
39
|
var COLORS = (0, _common.keysOf)(colorToClassNameMap);
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated - EuiSuggest is scheduled for deprecation due to low internal usage and high
|
|
43
|
+
* overlap with other existing EUI components. We recommend using EuiSelectable instead,
|
|
44
|
+
* or copying this component into your own application for usage if necessary.
|
|
45
|
+
*
|
|
46
|
+
* The component will be permanently removed in October 2023.
|
|
47
|
+
*/
|
|
37
48
|
exports.COLORS = COLORS;
|
|
38
49
|
var EuiSuggestItem = function EuiSuggestItem(_ref) {
|
|
39
50
|
var className = _ref.className,
|
|
@@ -20,6 +20,10 @@ var generateRandomColor = function generateRandomColor() {
|
|
|
20
20
|
"#".concat(Math.floor(Math.random() * 16777215).toString(16))
|
|
21
21
|
);
|
|
22
22
|
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
23
27
|
var useColorStopsState = function useColorStopsState() {
|
|
24
28
|
var useRandomColor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
25
29
|
var initialColorStops = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "88.0.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@hello-pangea/dnd": "^16.2.0",
|
|
68
68
|
"@types/lodash": "^4.14.194",
|
|
69
|
-
"@types/numeral": "^
|
|
69
|
+
"@types/numeral": "^2.0.2",
|
|
70
70
|
"@types/react-input-autosize": "^2.2.1",
|
|
71
71
|
"@types/react-window": "^1.8.5",
|
|
72
|
-
"@types/refractor": "^3.0.
|
|
73
|
-
"@types/resize-observer-browser": "^0.1.
|
|
72
|
+
"@types/refractor": "^3.0.2",
|
|
73
|
+
"@types/resize-observer-browser": "^0.1.7",
|
|
74
74
|
"@types/vfile-message": "^2.0.0",
|
|
75
75
|
"chroma-js": "^2.4.2",
|
|
76
76
|
"classnames": "^2.3.2",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"react-window": "^1.8.9",
|
|
89
89
|
"refractor": "^3.5.0",
|
|
90
90
|
"rehype-raw": "^5.0.0",
|
|
91
|
-
"rehype-react": "^6.
|
|
91
|
+
"rehype-react": "^6.2.1",
|
|
92
92
|
"rehype-stringify": "^8.0.0",
|
|
93
93
|
"remark-breaks": "^2.0.2",
|
|
94
94
|
"remark-emoji": "^2.1.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"remark-rehype": "^8.0.0",
|
|
97
97
|
"tabbable": "^5.3.3",
|
|
98
98
|
"text-diff": "^1.0.1",
|
|
99
|
-
"unified": "^9.2.
|
|
99
|
+
"unified": "^9.2.2",
|
|
100
100
|
"unist-util-visit": "^2.0.3",
|
|
101
101
|
"url-parse": "^1.5.10",
|
|
102
102
|
"uuid": "^8.3.0",
|
|
@@ -65,13 +65,10 @@ EuiColorPaletteDisplay.propTypes = {
|
|
|
65
65
|
"data-test-subj": _propTypes.default.string,
|
|
66
66
|
css: _propTypes.default.any,
|
|
67
67
|
/**
|
|
68
|
-
* Array of color `strings` or an array of #
|
|
68
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
69
69
|
*/
|
|
70
70
|
/**
|
|
71
|
-
* Array of color `strings` or an array of #
|
|
71
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
72
72
|
*/
|
|
73
|
-
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.
|
|
74
|
-
stop: _propTypes.default.number.isRequired,
|
|
75
|
-
color: _propTypes.default.string.isRequired
|
|
76
|
-
}).isRequired).isRequired]).isRequired
|
|
73
|
+
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
77
74
|
};
|
package/test-env/components/color_picker/color_palette_display/color_palette_display_fixed.js
CHANGED
|
@@ -47,10 +47,7 @@ EuiColorPaletteDisplayFixed.propTypes = {
|
|
|
47
47
|
"data-test-subj": _propTypes.default.string,
|
|
48
48
|
css: _propTypes.default.any,
|
|
49
49
|
/**
|
|
50
|
-
* Array of color `strings` or an array of #
|
|
50
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
51
51
|
*/
|
|
52
|
-
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.
|
|
53
|
-
stop: _propTypes.default.number.isRequired,
|
|
54
|
-
color: _propTypes.default.string.isRequired
|
|
55
|
-
}).isRequired).isRequired]).isRequired
|
|
52
|
+
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
56
53
|
};
|
package/test-env/components/color_picker/color_palette_display/color_palette_display_gradient.js
CHANGED
|
@@ -46,10 +46,7 @@ EuiColorPaletteDisplayGradient.propTypes = {
|
|
|
46
46
|
"data-test-subj": _propTypes.default.string,
|
|
47
47
|
css: _propTypes.default.any,
|
|
48
48
|
/**
|
|
49
|
-
* Array of color `strings` or an array of #
|
|
49
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
50
50
|
*/
|
|
51
|
-
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.
|
|
52
|
-
stop: _propTypes.default.number.isRequired,
|
|
53
|
-
color: _propTypes.default.string.isRequired
|
|
54
|
-
}).isRequired).isRequired]).isRequired
|
|
51
|
+
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.any.isRequired).isRequired]).isRequired
|
|
55
52
|
};
|
|
@@ -176,7 +176,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
176
176
|
*/
|
|
177
177
|
type: _propTypes.default.oneOf(["text"]).isRequired,
|
|
178
178
|
/**
|
|
179
|
-
* Array of color `strings` or an array of #
|
|
179
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
180
180
|
*/
|
|
181
181
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
182
182
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -200,7 +200,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
200
200
|
*/
|
|
201
201
|
type: _propTypes.default.oneOf(["fixed"]).isRequired,
|
|
202
202
|
/**
|
|
203
|
-
* Array of color `strings` or an array of #
|
|
203
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
204
204
|
*/
|
|
205
205
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
206
206
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -224,7 +224,7 @@ EuiColorPalettePicker.propTypes = {
|
|
|
224
224
|
*/
|
|
225
225
|
type: _propTypes.default.oneOf(["gradient"]).isRequired,
|
|
226
226
|
/**
|
|
227
|
-
* Array of color `strings` or an array of #
|
|
227
|
+
* Array of color `strings` or an array of #PaletteColorStop. The stops must be numbers in an ordered range.
|
|
228
228
|
*/
|
|
229
229
|
palette: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired).isRequired, _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
230
230
|
stop: _propTypes.default.number.isRequired,
|
|
@@ -35,7 +35,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
35
35
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
36
36
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
37
37
|
* Side Public License, v 1.
|
|
38
|
-
*/
|
|
38
|
+
*/ /**
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
39
41
|
// Because of how the thumbs are rendered in the popover, using ref results in an infinite loop.
|
|
40
42
|
// We'll instead use old fashioned namespaced DOM selectors to get references
|
|
41
43
|
var STOP_ATTR = 'euiColorStop_';
|
|
@@ -90,6 +92,13 @@ function getRangeMax(colorStops, max) {
|
|
|
90
92
|
}
|
|
91
93
|
return DEFAULT_MAX;
|
|
92
94
|
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated - EuiColorStops is scheduled for deprecation due to low internal usage and high
|
|
98
|
+
* maintenance requirements. If necessary, we recommend copying this component into your own application.
|
|
99
|
+
*
|
|
100
|
+
* The component will be permanently removed in October 2023.
|
|
101
|
+
*/
|
|
93
102
|
var EuiColorStops = function EuiColorStops(_ref) {
|
|
94
103
|
var _ref$addColor = _ref.addColor,
|
|
95
104
|
addColor = _ref$addColor === void 0 ? _services.DEFAULT_VISUALIZATION_COLOR : _ref$addColor,
|
|
@@ -62,7 +62,16 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
62
62
|
*/ /**
|
|
63
63
|
* Icon can extend EuiButtonIcon
|
|
64
64
|
* Also omits `iconType` and `id` as these are also specific to icon control
|
|
65
|
-
*/
|
|
65
|
+
*/ /**
|
|
66
|
+
* @deprecated
|
|
67
|
+
*/
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated - EuiControlBar is scheduled for deprecation due to low internal usage and high
|
|
70
|
+
* overlap with other existing EUI components. We recommend using EuiBottomBar instead,
|
|
71
|
+
* or copying this component into your own application for usage if necessary.
|
|
72
|
+
*
|
|
73
|
+
* The component will be permanently removed in December 2023.
|
|
74
|
+
*/
|
|
66
75
|
var EuiControlBar = /*#__PURE__*/function (_Component) {
|
|
67
76
|
(0, _inherits2.default)(EuiControlBar, _Component);
|
|
68
77
|
var _super = _createSuper(EuiControlBar);
|
|
@@ -66,7 +66,6 @@ var useDataGridKeyboardShortcuts = function useDataGridKeyboardShortcuts() {
|
|
|
66
66
|
type: "column",
|
|
67
67
|
align: "center",
|
|
68
68
|
compressed: true,
|
|
69
|
-
gutterSize: "s",
|
|
70
69
|
listItems: [{
|
|
71
70
|
title: (0, _react2.jsx)("kbd", null, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
72
71
|
token: "euiKeyboardShortcuts.upArrowTitle",
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.EuiDescriptionList = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
-
var _react =
|
|
11
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
14
|
+
var _services = require("../../services");
|
|
15
|
+
var _description_list_context = require("./description_list_context");
|
|
13
16
|
var _description_list_title = require("./description_list_title");
|
|
14
17
|
var _description_list_description = require("./description_list_description");
|
|
15
|
-
var _services = require("../../services");
|
|
16
18
|
var _description_list = require("./description_list.styles");
|
|
17
|
-
var _description_list_context = require("./description_list_context");
|
|
18
19
|
var _react2 = require("@emotion/react");
|
|
19
|
-
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "
|
|
20
|
+
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "rowGutterSize", "columnGutterSize"];
|
|
20
21
|
/*
|
|
21
22
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
22
23
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -24,6 +25,8 @@ var _excluded = ["align", "children", "className", "compressed", "descriptionPro
|
|
|
24
25
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
25
26
|
* Side Public License, v 1.
|
|
26
27
|
*/
|
|
28
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
30
|
var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
28
31
|
var _ref$align = _ref.align,
|
|
29
32
|
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
@@ -37,13 +40,23 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
37
40
|
textStyle = _ref$textStyle === void 0 ? 'normal' : _ref$textStyle,
|
|
38
41
|
titleProps = _ref.titleProps,
|
|
39
42
|
_ref$type = _ref.type,
|
|
40
|
-
|
|
41
|
-
_ref$
|
|
42
|
-
|
|
43
|
+
_type = _ref$type === void 0 ? 'row' : _ref$type,
|
|
44
|
+
_ref$rowGutterSize = _ref.rowGutterSize,
|
|
45
|
+
rowGutterSize = _ref$rowGutterSize === void 0 ? 's' : _ref$rowGutterSize,
|
|
46
|
+
_ref$columnGutterSize = _ref.columnGutterSize,
|
|
47
|
+
columnGutterSize = _ref$columnGutterSize === void 0 ? 's' : _ref$columnGutterSize,
|
|
43
48
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
49
|
+
var showResponsiveColumns = (0, _services.useIsWithinBreakpoints)(['xs', 's']);
|
|
50
|
+
var type = (0, _react.useMemo)(function () {
|
|
51
|
+
if (_type === 'responsiveColumn') {
|
|
52
|
+
return showResponsiveColumns ? 'row' : 'column';
|
|
53
|
+
} else {
|
|
54
|
+
return _type;
|
|
55
|
+
}
|
|
56
|
+
}, [_type, showResponsiveColumns]);
|
|
44
57
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
45
58
|
var styles = (0, _description_list.euiDescriptionListStyles)(euiTheme);
|
|
46
|
-
var cssStyles = [styles.euiDescriptionList, styles[type], styles[align]];
|
|
59
|
+
var cssStyles = [styles.euiDescriptionList, styles[type], styles[align], type === 'column' && styles.rowGap[rowGutterSize], type === 'column' && styles.columnGap[columnGutterSize]];
|
|
47
60
|
var classes = (0, _classnames.default)('euiDescriptionList', className);
|
|
48
61
|
var childrenOrListItems = null;
|
|
49
62
|
if (listItems) {
|
|
@@ -63,13 +76,13 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
63
76
|
compressed: compressed,
|
|
64
77
|
textStyle: textStyle,
|
|
65
78
|
align: align,
|
|
66
|
-
|
|
79
|
+
rowGutterSize: rowGutterSize
|
|
67
80
|
}
|
|
68
81
|
}, (0, _react2.jsx)("dl", (0, _extends2.default)({
|
|
69
82
|
className: classes,
|
|
70
83
|
css: cssStyles
|
|
71
84
|
}, rest, {
|
|
72
|
-
"data-type":
|
|
85
|
+
"data-type": _type
|
|
73
86
|
}), childrenOrListItems));
|
|
74
87
|
};
|
|
75
88
|
exports.EuiDescriptionList = EuiDescriptionList;
|
|
@@ -118,7 +131,13 @@ EuiDescriptionList.propTypes = {
|
|
|
118
131
|
css: _propTypes.default.any
|
|
119
132
|
}),
|
|
120
133
|
/**
|
|
121
|
-
*
|
|
134
|
+
* Allows customizing the vertical spacing between rows.
|
|
135
|
+
*/
|
|
136
|
+
rowGutterSize: _propTypes.default.any,
|
|
137
|
+
/**
|
|
138
|
+
* Allows customizing the horizontal spacing between columns.
|
|
139
|
+
*
|
|
140
|
+
* Only applies to `column` and `responsiveColumn` types.
|
|
122
141
|
*/
|
|
123
|
-
|
|
142
|
+
columnGutterSize: _propTypes.default.any
|
|
124
143
|
};
|
|
@@ -6,25 +6,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.euiDescriptionListStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _global_styling = require("../../global_styling");
|
|
9
|
-
/*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
|
|
10
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
12
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
13
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
14
|
+
* Side Public License, v 1.
|
|
15
|
+
*/
|
|
16
|
+
var _ref = process.env.NODE_ENV === "production" ? {
|
|
17
|
+
name: "zr5fhc-column",
|
|
18
|
+
styles: "display:grid;grid-template-columns:minmax(auto, max-content) minmax(auto, max-content);align-items:baseline;label:column;"
|
|
19
|
+
} : {
|
|
20
|
+
name: "zr5fhc-column",
|
|
21
|
+
styles: "display:grid;grid-template-columns:minmax(auto, max-content) minmax(auto, max-content);align-items:baseline;label:column;",
|
|
22
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
23
|
+
};
|
|
17
24
|
var euiDescriptionListStyles = function euiDescriptionListStyles(euiThemeContext) {
|
|
18
|
-
// Flex display for column and responsive column
|
|
19
|
-
var columnDisplay = "\n display: flex;\n align-items: baseline;\n flex-wrap: wrap; \n ";
|
|
20
25
|
return {
|
|
21
26
|
euiDescriptionList: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList;"),
|
|
22
27
|
// Types
|
|
23
28
|
row: /*#__PURE__*/(0, _react.css)(";label:row;"),
|
|
24
29
|
inline: /*#__PURE__*/(0, _react.css)(";label:inline;"),
|
|
25
|
-
column:
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
column: _ref,
|
|
31
|
+
columnGap: {
|
|
32
|
+
s: /*#__PURE__*/(0, _react.css)("column-gap:", euiThemeContext.euiTheme.size.s, ";;label:s;"),
|
|
33
|
+
m: /*#__PURE__*/(0, _react.css)("column-gap:", euiThemeContext.euiTheme.size.xl, ";;label:m;")
|
|
34
|
+
},
|
|
35
|
+
rowGap: {
|
|
36
|
+
s: /*#__PURE__*/(0, _react.css)("row-gap:", euiThemeContext.euiTheme.size.s, ";;label:s;"),
|
|
37
|
+
m: /*#__PURE__*/(0, _react.css)("row-gap:", euiThemeContext.euiTheme.size.m, ";;label:m;")
|
|
38
|
+
},
|
|
28
39
|
// Alignment
|
|
29
40
|
center: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('center'), ";;label:center;"),
|
|
30
41
|
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
|