@elastic/eui 103.1.0 → 104.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_theme_amsterdam_dark.json +13 -15
- package/dist/eui_theme_amsterdam_dark.json.d.ts +12 -14
- package/dist/eui_theme_amsterdam_light.json +14 -16
- package/dist/eui_theme_amsterdam_light.json.d.ts +12 -14
- package/dist/eui_theme_borealis_dark.json +10 -14
- package/dist/eui_theme_borealis_dark.json.d.ts +11 -15
- package/dist/eui_theme_borealis_light.json +10 -14
- package/dist/eui_theme_borealis_light.json.d.ts +11 -15
- package/es/components/copy/copy.js +6 -8
- package/es/components/datagrid/body/cell/data_grid_cell.styles.js +2 -2
- package/es/components/datagrid/data_grid.styles.js +1 -1
- package/es/components/page/page_header/page_header_content.js +1 -2
- package/es/components/table/table_row.js +1 -1
- package/es/components/tabs/tab.styles.js +1 -4
- package/es/components/tabs/tabs.js +1 -2
- package/es/components/tabs/tabs.styles.js +1 -2
- package/es/services/color/eui_palettes.js +6 -2
- package/es/themes/amsterdam/global_styling/variables/_colors.js +325 -301
- package/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +33 -0
- package/es/themes/amsterdam/global_styling/variables/{_colors_vis.js → _colors_vis_light.js} +16 -16
- package/es/themes/amsterdam/global_styling/variables/_components.js +293 -258
- package/es/themes/index.js +3 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +13 -15
- package/es/themes/json/eui_theme_amsterdam_light.json +14 -16
- package/es/themes/json/eui_theme_borealis_dark.json +10 -14
- package/es/themes/json/eui_theme_borealis_light.json +10 -14
- package/eui.d.ts +66 -67
- package/lib/components/copy/copy.js +6 -8
- package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +2 -2
- package/lib/components/datagrid/data_grid.styles.js +1 -1
- package/lib/components/page/page_header/page_header_content.js +1 -2
- package/lib/components/table/table_row.js +1 -1
- package/lib/components/tabs/tab.styles.js +1 -4
- package/lib/components/tabs/tabs.js +1 -2
- package/lib/components/tabs/tabs.styles.js +1 -2
- package/lib/services/color/eui_palettes.js +6 -2
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +325 -301
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +37 -0
- package/{test-env/themes/amsterdam/global_styling/variables/_colors_vis.js → lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js} +17 -17
- package/lib/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/lib/themes/index.js +17 -2
- package/lib/themes/json/eui_theme_amsterdam_dark.json +13 -15
- package/lib/themes/json/eui_theme_amsterdam_light.json +14 -16
- package/lib/themes/json/eui_theme_borealis_dark.json +10 -14
- package/lib/themes/json/eui_theme_borealis_light.json +10 -14
- package/optimize/es/components/copy/copy.js +2 -7
- package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +2 -2
- package/optimize/es/components/datagrid/data_grid.styles.js +1 -1
- package/optimize/es/components/page/page_header/page_header_content.js +1 -2
- package/optimize/es/components/table/table_row.js +1 -1
- package/optimize/es/components/tabs/tab.styles.js +1 -4
- package/optimize/es/components/tabs/tabs.js +1 -1
- package/optimize/es/components/tabs/tabs.styles.js +1 -2
- package/optimize/es/services/color/eui_palettes.js +6 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +325 -301
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +30 -0
- package/optimize/es/themes/amsterdam/global_styling/variables/{_colors_vis.js → _colors_vis_light.js} +16 -16
- package/optimize/es/themes/amsterdam/global_styling/variables/_components.js +293 -258
- package/optimize/es/themes/index.js +3 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +13 -15
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +14 -16
- package/optimize/es/themes/json/eui_theme_borealis_dark.json +10 -14
- package/optimize/es/themes/json/eui_theme_borealis_light.json +10 -14
- package/optimize/lib/components/copy/copy.js +2 -7
- package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +2 -2
- package/optimize/lib/components/datagrid/data_grid.styles.js +1 -1
- package/optimize/lib/components/page/page_header/page_header_content.js +1 -2
- package/optimize/lib/components/table/table_row.js +1 -1
- package/optimize/lib/components/tabs/tab.styles.js +1 -4
- package/optimize/lib/components/tabs/tabs.js +1 -1
- package/optimize/lib/components/tabs/tabs.styles.js +1 -2
- package/optimize/lib/services/color/eui_palettes.js +6 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +325 -301
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +35 -0
- package/{lib/themes/amsterdam/global_styling/variables/_colors_vis.js → optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis_light.js} +17 -17
- package/optimize/lib/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/optimize/lib/themes/index.js +17 -2
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +13 -15
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +14 -16
- package/optimize/lib/themes/json/eui_theme_borealis_dark.json +10 -14
- package/optimize/lib/themes/json/eui_theme_borealis_light.json +10 -14
- package/package.json +4 -4
- package/src/themes/amsterdam/_colors_dark.scss +2 -0
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_dark.scss +14 -0
- package/src/themes/amsterdam/global_styling/variables/_colors_vis_light.scss +14 -0
- package/test-env/components/copy/copy.js +6 -7
- package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +2 -2
- package/test-env/components/datagrid/data_grid.styles.js +1 -1
- package/test-env/components/page/page_header/page_header_content.js +1 -2
- package/test-env/components/table/table_row.js +1 -1
- package/test-env/components/tabs/tab.styles.js +1 -4
- package/test-env/components/tabs/tabs.js +1 -2
- package/test-env/components/tabs/tabs.styles.js +1 -2
- package/test-env/services/color/eui_palettes.js +6 -2
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +325 -301
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis_dark.js +35 -0
- package/{optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js → test-env/themes/amsterdam/global_styling/variables/_colors_vis_light.js} +17 -17
- package/test-env/themes/amsterdam/global_styling/variables/_components.js +305 -270
- package/test-env/themes/index.js +17 -2
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +13 -15
- package/test-env/themes/json/eui_theme_amsterdam_light.json +14 -16
- package/test-env/themes/json/eui_theme_borealis_dark.json +10 -14
- package/test-env/themes/json/eui_theme_borealis_light.json +10 -14
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
6
6
|
* Side Public License, v 1.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
import { colorVisLight } from './amsterdam/global_styling/variables/_colors_vis_light';
|
|
9
|
+
import { colorVisDark } from './amsterdam/global_styling/variables/_colors_vis_dark';
|
|
10
|
+
export { colorVisLight as colorVis, colorVisLight, colorVisDark };
|
|
9
11
|
export { AMSTERDAM_NAME_KEY, EuiThemeAmsterdam } from './amsterdam/theme';
|
|
10
12
|
export * from './amsterdam';
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#F5A35C",
|
|
283
283
|
"euiColorVis8_behindText": "#C47C6C",
|
|
284
284
|
"euiColorVis9_behindText": "#FF7E62",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F66",
|
|
296
|
-
"euiColorVisAsTextDark4": "#FFCE7A",
|
|
297
|
-
"euiColorVisAsTextDark5": "#1BA9F5",
|
|
298
|
-
"euiColorVisAsTextDark6": "#7DE2D1",
|
|
285
|
+
"euiColorVisText0": "#7DE2D1",
|
|
286
|
+
"euiColorVisText1": "#1BA9F5",
|
|
287
|
+
"euiColorVisText2": "#F990C0",
|
|
288
|
+
"euiColorVisText3": "#BA9FDA",
|
|
289
|
+
"euiColorVisText4": "#E9B8D2",
|
|
290
|
+
"euiColorVisText5": "#F4E08C",
|
|
291
|
+
"euiColorVisText6": "#DBCDB3",
|
|
292
|
+
"euiColorVisText7": "#FFCE7A",
|
|
293
|
+
"euiColorVisText8": "#D09689",
|
|
294
|
+
"euiColorVisText9": "#F66",
|
|
299
295
|
"euiColorVisSuccess0": "#209280",
|
|
300
296
|
"euiColorVisSuccess1": "#54B399",
|
|
301
297
|
"euiColorVisWarning0": "#D6BF57",
|
|
@@ -381,6 +377,7 @@
|
|
|
381
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#535966",
|
|
382
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(52,55,65,0.2)",
|
|
383
379
|
"euiColorBackgroundBaseInteractiveSelect": "#103148",
|
|
380
|
+
"euiColorBackgroundBaseInteractiveSelectHover": "#164160",
|
|
384
381
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(0,0,0,0.5)",
|
|
385
382
|
"euiColorBackgroundBaseSkeletonEdge": "#2e3039",
|
|
386
383
|
"euiColorBackgroundBaseSkeletonMiddle": "#282a31",
|
|
@@ -423,5 +420,6 @@
|
|
|
423
420
|
"euiColorBorderStrongSuccess": "#7DDED8",
|
|
424
421
|
"euiColorBorderStrongWarning": "#F3D371",
|
|
425
422
|
"euiColorBorderStrongRisk": "#E1A26A",
|
|
426
|
-
"euiColorBorderStrongDanger": "#F86B63"
|
|
423
|
+
"euiColorBorderStrongDanger": "#F86B63",
|
|
424
|
+
"euiColorBorderStrongText": "#98A2B3"
|
|
427
425
|
}
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#F5A35C",
|
|
283
283
|
"euiColorVis8_behindText": "#C47C6C",
|
|
284
284
|
"euiColorVis9_behindText": "#FF7E62",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F66",
|
|
296
|
-
"euiColorVisAsTextDark4": "#FFCE7A",
|
|
297
|
-
"euiColorVisAsTextDark5": "#1BA9F5",
|
|
298
|
-
"euiColorVisAsTextDark6": "#7DE2D1",
|
|
285
|
+
"euiColorVisText0": "#017D73",
|
|
286
|
+
"euiColorVisText1": "#006BB4",
|
|
287
|
+
"euiColorVisText2": "#DD0A73",
|
|
288
|
+
"euiColorVisText3": "#745A93",
|
|
289
|
+
"euiColorVisText4": "#A2728B",
|
|
290
|
+
"euiColorVisText5": "#AB9946",
|
|
291
|
+
"euiColorVisText6": "#94866D",
|
|
292
|
+
"euiColorVisText7": "#F5A700",
|
|
293
|
+
"euiColorVisText8": "#885145",
|
|
294
|
+
"euiColorVisText9": "#BD271E",
|
|
299
295
|
"euiColorVisSuccess0": "#209280",
|
|
300
296
|
"euiColorVisSuccess1": "#54B399",
|
|
301
297
|
"euiColorVisWarning0": "#D6BF57",
|
|
@@ -380,7 +376,8 @@
|
|
|
380
376
|
"euiColorBackgroundBaseFormsPrepend": "#e9edf3",
|
|
381
377
|
"euiColorBackgroundBaseFormsControlDisabled": "#98A2B3",
|
|
382
378
|
"euiColorBackgroundBaseInteractiveHover": "rgba(211,218,230,0.2)",
|
|
383
|
-
"euiColorBackgroundBaseInteractiveSelect": "#
|
|
379
|
+
"euiColorBackgroundBaseInteractiveSelect": "#f7fbfe",
|
|
380
|
+
"euiColorBackgroundBaseInteractiveSelectHover": "#d7ecfc",
|
|
384
381
|
"euiColorBackgroundBaseInteractiveOverlay": "rgba(0,0,0,0.5)",
|
|
385
382
|
"euiColorBackgroundBaseSkeletonEdge": "#f0f2f6",
|
|
386
383
|
"euiColorBackgroundBaseSkeletonMiddle": "#f6f8fa",
|
|
@@ -423,5 +420,6 @@
|
|
|
423
420
|
"euiColorBorderStrongSuccess": "#00BFB3",
|
|
424
421
|
"euiColorBorderStrongWarning": "#FEC514",
|
|
425
422
|
"euiColorBorderStrongRisk": "#DA8B45",
|
|
426
|
-
"euiColorBorderStrongDanger": "#BD271E"
|
|
423
|
+
"euiColorBorderStrongDanger": "#BD271E",
|
|
424
|
+
"euiColorBorderStrongText": "#69707D"
|
|
427
425
|
}
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#FFC9C2",
|
|
283
283
|
"euiColorVis8_behindText": "#EAAE01",
|
|
284
284
|
"euiColorVis9_behindText": "#FCD883",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F6726A",
|
|
296
|
-
"euiColorVisAsTextDark4": "#EAAE01",
|
|
297
|
-
"euiColorVisAsTextDark5": "#24C292",
|
|
298
|
-
"euiColorVisAsTextDark6": "#B084F5",
|
|
285
|
+
"euiColorVisText0": "#16C5C0",
|
|
286
|
+
"euiColorVisText1": "#A6EDEA",
|
|
287
|
+
"euiColorVisText2": "#61A2FF",
|
|
288
|
+
"euiColorVisText3": "#BFDBFF",
|
|
289
|
+
"euiColorVisText4": "#EE72A6",
|
|
290
|
+
"euiColorVisText5": "#FFC7DB",
|
|
291
|
+
"euiColorVisText6": "#F6726A",
|
|
292
|
+
"euiColorVisText7": "#FFC9C2",
|
|
293
|
+
"euiColorVisText8": "#EAAE01",
|
|
294
|
+
"euiColorVisText9": "#FCD883",
|
|
299
295
|
"euiColorVisSuccess0": "#24C292",
|
|
300
296
|
"euiColorVisSuccess1": "#AEE8D2",
|
|
301
297
|
"euiColorVisWarning0": "#FCD883",
|
|
@@ -282,20 +282,16 @@
|
|
|
282
282
|
"euiColorVis7_behindText": "#FFC9C2",
|
|
283
283
|
"euiColorVis8_behindText": "#EAAE01",
|
|
284
284
|
"euiColorVis9_behindText": "#FCD883",
|
|
285
|
-
"
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"euiColorVisAsTextDark3": "#F6726A",
|
|
296
|
-
"euiColorVisAsTextDark4": "#EAAE01",
|
|
297
|
-
"euiColorVisAsTextDark5": "#24C292",
|
|
298
|
-
"euiColorVisAsTextDark6": "#B084F5",
|
|
285
|
+
"euiColorVisText0": "#065B58",
|
|
286
|
+
"euiColorVisText1": "#047471",
|
|
287
|
+
"euiColorVisText2": "#154399",
|
|
288
|
+
"euiColorVisText3": "#0B64DD",
|
|
289
|
+
"euiColorVisText4": "#A11262",
|
|
290
|
+
"euiColorVisText5": "#D13680",
|
|
291
|
+
"euiColorVisText6": "#A71627",
|
|
292
|
+
"euiColorVisText7": "#DA3737",
|
|
293
|
+
"euiColorVisText8": "#6A4906",
|
|
294
|
+
"euiColorVisText9": "#966B03",
|
|
299
295
|
"euiColorVisSuccess0": "#24C292",
|
|
300
296
|
"euiColorVisSuccess1": "#AEE8D2",
|
|
301
297
|
"euiColorVisWarning0": "#FCD883",
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.EuiCopy = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
12
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
@@ -18,7 +17,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
18
17
|
var _services = require("../../services");
|
|
19
18
|
var _tool_tip = require("../tool_tip");
|
|
20
19
|
var _react2 = require("@emotion/react");
|
|
21
|
-
var _excluded = ["children", "textToCopy", "beforeMessage", "afterMessage"];
|
|
22
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
24
22
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -58,17 +56,14 @@ var EuiCopy = exports.EuiCopy = /*#__PURE__*/function (_Component) {
|
|
|
58
56
|
value: function render() {
|
|
59
57
|
var _this$props = this.props,
|
|
60
58
|
children = _this$props.children,
|
|
61
|
-
|
|
62
|
-
beforeMessage = _this$props.beforeMessage,
|
|
63
|
-
afterMessage = _this$props.afterMessage,
|
|
64
|
-
rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
59
|
+
tooltipProps = _this$props.tooltipProps;
|
|
65
60
|
return (
|
|
66
61
|
// See `src/components/tool_tip/tool_tip.js` for explanation of below eslint-disable
|
|
67
62
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
68
63
|
(0, _react2.jsx)(_tool_tip.EuiToolTip, (0, _extends2.default)({
|
|
69
64
|
content: this.state.tooltipText,
|
|
70
65
|
onMouseOut: this.resetTooltipText
|
|
71
|
-
},
|
|
66
|
+
}, tooltipProps), children(this.copy))
|
|
72
67
|
);
|
|
73
68
|
}
|
|
74
69
|
}]);
|
|
@@ -15,8 +15,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
15
|
*/
|
|
16
16
|
var euiDataGridCellOutlineStyles = exports.euiDataGridCellOutlineStyles = function euiDataGridCellOutlineStyles(_ref2) {
|
|
17
17
|
var euiTheme = _ref2.euiTheme;
|
|
18
|
-
var focusColor = euiTheme.colors.
|
|
19
|
-
var hoverColor = euiTheme.colors.
|
|
18
|
+
var focusColor = euiTheme.colors.borderStrongPrimary;
|
|
19
|
+
var hoverColor = euiTheme.colors.borderStrongText;
|
|
20
20
|
var outlineWidth = euiTheme.border.width.thick;
|
|
21
21
|
var borderRadius = (0, _global_styling.mathWithUnits)(euiTheme.border.radius.medium, function (x) {
|
|
22
22
|
return x / 2;
|
|
@@ -55,7 +55,7 @@ var euiDataGridStyles = exports.euiDataGridStyles = function euiDataGridStyles(e
|
|
|
55
55
|
};
|
|
56
56
|
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
|
|
57
57
|
return {
|
|
58
|
-
euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.
|
|
58
|
+
euiDataGrid: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;", (0, _global_styling.logicalCSS)('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.components.dataGridRowBackground, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow:hover){background-color:", euiTheme.components.dataGridRowBackgroundHover, ";}*:where(& .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowBackgroundSelect, ";}*:where(\n &.euiDataGrid--rowHoverHighlight .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowBackgroundSelectHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow){background-color:", euiTheme.components.dataGridRowStripesBackground, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--striped){background-color:", euiTheme.components.dataGridRowStripesBackgroundStriped, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundHover, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--striped:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundStripedHover, ";}*:where(&.euiDataGrid--stripes .euiDataGridRow--selected){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelect, ";}*:where(\n &.euiDataGrid--stripes.euiDataGrid--rowHoverHighlight\n .euiDataGridRow--selected:hover\n ){background-color:", euiTheme.components.dataGridRowStripesBackgroundSelectHover, ";}*:where(&.euiDataGrid--rowHoverHighlight .euiDataGridRow)::before{content:'';position:absolute;z-index:-1;pointer-events:none;inset:0;background-color:", euiTheme.components.dataGridRowBackground, ";};label:euiDataGrid;"),
|
|
59
59
|
cellPadding: {
|
|
60
60
|
cellPadding: function cellPadding(size) {
|
|
61
61
|
return /*#__PURE__*/(0, _react.css)(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
@@ -129,7 +129,6 @@ var EuiPageHeaderContent = exports.EuiPageHeaderContent = function EuiPageHeader
|
|
|
129
129
|
var tabsNode;
|
|
130
130
|
if (tabs) {
|
|
131
131
|
var _tabs$find;
|
|
132
|
-
var tabsSize = pageTitle ? 'l' : 'xl';
|
|
133
132
|
var renderTabs = function renderTabs() {
|
|
134
133
|
return tabs.map(function (tab, index) {
|
|
135
134
|
var label = tab.label,
|
|
@@ -146,7 +145,7 @@ var EuiPageHeaderContent = exports.EuiPageHeaderContent = function EuiPageHeader
|
|
|
146
145
|
})) === null || _tabs$find === void 0 ? void 0 : _tabs$find.label));
|
|
147
146
|
tabsNode = (0, _react2.jsx)(_react.default.Fragment, null, pageTitleNode && (0, _react2.jsx)(_spacer.EuiSpacer, null), screenReaderPageTitle, (0, _react2.jsx)(_tabs.EuiTabs, (0, _extends2.default)({}, tabsProps, {
|
|
148
147
|
bottomBorder: false,
|
|
149
|
-
size:
|
|
148
|
+
size: "l"
|
|
150
149
|
}), renderTabs()));
|
|
151
150
|
}
|
|
152
151
|
var childrenNode = children && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_spacer.EuiSpacer, null), children);
|
|
@@ -34,7 +34,7 @@ var EuiTableRow = exports.EuiTableRow = function EuiTableRow(_ref) {
|
|
|
34
34
|
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
35
35
|
var isResponsive = (0, _responsive_context.useEuiTableIsResponsive)();
|
|
36
36
|
var styles = (0, _services.useEuiMemoizedStyles)(_table_row.euiTableRowStyles);
|
|
37
|
-
var cssStyles = isResponsive ? [styles.euiTableRow, styles.mobile.mobile, isSelected && styles.mobile.selected, isExpandedRow && styles.mobile.expanded, (hasActions === true || isExpandable || isExpandedRow) && styles.mobile.hasRightColumn, hasSelection && styles.mobile.hasLeftColumn] : [styles.euiTableRow, styles.desktop.desktop,
|
|
37
|
+
var cssStyles = isResponsive ? [styles.euiTableRow, styles.mobile.mobile, isSelected && styles.mobile.selected, isExpandedRow && styles.mobile.expanded, (hasActions === true || isExpandable || isExpandedRow) && styles.mobile.hasRightColumn, hasSelection && styles.mobile.hasLeftColumn] : [styles.euiTableRow, styles.desktop.desktop, onClick && styles.desktop.clickable, isSelected && styles.desktop.selected, isExpandedRow && styles.desktop.expanded, isExpandedRow && hasSelection && styles.desktop.checkboxOffset];
|
|
38
38
|
var classes = (0, _classnames.default)('euiTableRow', className, {
|
|
39
39
|
'euiTableRow-isSelectable': isSelectable,
|
|
40
40
|
'euiTableRow-isSelected': isSelected,
|
|
@@ -47,9 +47,6 @@ var euiTabContentStyles = exports.euiTabContentStyles = function euiTabContentSt
|
|
|
47
47
|
m: /*#__PURE__*/(0, _react.css)("font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 's').fontSize, ";line-height:", euiTheme.size.xxl, ";;label:m;"),
|
|
48
48
|
l: /*#__PURE__*/(0, _react.css)("font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'm').fontSize, ";line-height:", (0, _global_styling.mathWithUnits)([euiTheme.size.xl, euiTheme.size.s], function (x, y) {
|
|
49
49
|
return x + y;
|
|
50
|
-
}), ";;label:l;")
|
|
51
|
-
xl: /*#__PURE__*/(0, _react.css)("font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'l').fontSize, ";line-height:", (0, _global_styling.mathWithUnits)([euiTheme.size.xxxl, euiTheme.size.s], function (x, y) {
|
|
52
|
-
return x + y;
|
|
53
|
-
}), ";;label:xl;")
|
|
50
|
+
}), ";;label:l;")
|
|
54
51
|
};
|
|
55
52
|
};
|
|
@@ -24,7 +24,7 @@ var _excluded = ["children", "className", "bottomBorder", "expand", "size"];
|
|
|
24
24
|
*/
|
|
25
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
27
|
-
var SIZES = exports.SIZES = ['s', 'm', 'l'
|
|
27
|
+
var SIZES = exports.SIZES = ['s', 'm', 'l'];
|
|
28
28
|
var EuiTabs = exports.EuiTabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
29
29
|
var children = _ref.children,
|
|
30
30
|
className = _ref.className,
|
|
@@ -26,7 +26,6 @@ var euiTabsStyles = exports.euiTabsStyles = function euiTabsStyles(euiThemeConte
|
|
|
26
26
|
// sizes
|
|
27
27
|
s: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.m, ";;label:s;"),
|
|
28
28
|
m: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.base, ";;label:m;"),
|
|
29
|
-
l: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.l, ";;label:l;")
|
|
30
|
-
xl: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.xl, ";;label:xl;")
|
|
29
|
+
l: /*#__PURE__*/(0, _react.css)("gap:", euiTheme.size.l, ";;label:l;")
|
|
31
30
|
};
|
|
32
31
|
};
|
|
@@ -125,6 +125,8 @@ var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
|
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
129
|
+
*
|
|
128
130
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
129
131
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
130
132
|
*/
|
|
@@ -133,12 +135,14 @@ var euiPaletteForLightBackground = exports.euiPaletteForLightBackground = functi
|
|
|
133
135
|
colors = _ref3.colors;
|
|
134
136
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
135
137
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
136
|
-
return color.includes('
|
|
138
|
+
return color.includes('euiColorVisText');
|
|
137
139
|
});
|
|
138
140
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
139
141
|
};
|
|
140
142
|
|
|
141
143
|
/**
|
|
144
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
145
|
+
*
|
|
142
146
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
143
147
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
144
148
|
*/
|
|
@@ -147,7 +151,7 @@ var euiPaletteForDarkBackground = exports.euiPaletteForDarkBackground = function
|
|
|
147
151
|
colors = _ref4.colors;
|
|
148
152
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
149
153
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
150
|
-
return color.includes('
|
|
154
|
+
return color.includes('euiColorVisText');
|
|
151
155
|
});
|
|
152
156
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
153
157
|
};
|