@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
package/lib/themes/index.js
CHANGED
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
colorVis: true,
|
|
8
|
+
colorVisLight: true,
|
|
9
|
+
colorVisDark: true,
|
|
8
10
|
AMSTERDAM_NAME_KEY: true,
|
|
9
11
|
EuiThemeAmsterdam: true
|
|
10
12
|
};
|
|
@@ -23,10 +25,23 @@ Object.defineProperty(exports, "EuiThemeAmsterdam", {
|
|
|
23
25
|
Object.defineProperty(exports, "colorVis", {
|
|
24
26
|
enumerable: true,
|
|
25
27
|
get: function get() {
|
|
26
|
-
return
|
|
28
|
+
return _colors_vis_light.colorVisLight;
|
|
27
29
|
}
|
|
28
30
|
});
|
|
29
|
-
|
|
31
|
+
Object.defineProperty(exports, "colorVisDark", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function get() {
|
|
34
|
+
return _colors_vis_dark.colorVisDark;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, "colorVisLight", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function get() {
|
|
40
|
+
return _colors_vis_light.colorVisLight;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
var _colors_vis_light = require("./amsterdam/global_styling/variables/_colors_vis_light");
|
|
44
|
+
var _colors_vis_dark = require("./amsterdam/global_styling/variables/_colors_vis_dark");
|
|
30
45
|
var _theme = require("./amsterdam/theme");
|
|
31
46
|
var _amsterdam = require("./amsterdam");
|
|
32
47
|
Object.keys(_amsterdam).forEach(function (key) {
|
|
@@ -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",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
4
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
6
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
var _excluded = ["children", "textToCopy", "beforeMessage", "afterMessage"];
|
|
10
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
10
|
/*
|
|
@@ -50,17 +48,14 @@ export var EuiCopy = /*#__PURE__*/function (_Component) {
|
|
|
50
48
|
value: function render() {
|
|
51
49
|
var _this$props = this.props,
|
|
52
50
|
children = _this$props.children,
|
|
53
|
-
|
|
54
|
-
beforeMessage = _this$props.beforeMessage,
|
|
55
|
-
afterMessage = _this$props.afterMessage,
|
|
56
|
-
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
51
|
+
tooltipProps = _this$props.tooltipProps;
|
|
57
52
|
return (
|
|
58
53
|
// See `src/components/tool_tip/tool_tip.js` for explanation of below eslint-disable
|
|
59
54
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
60
55
|
___EmotionJSX(EuiToolTip, _extends({
|
|
61
56
|
content: this.state.tooltipText,
|
|
62
57
|
onMouseOut: this.resetTooltipText
|
|
63
|
-
},
|
|
58
|
+
}, tooltipProps), children(this.copy))
|
|
64
59
|
);
|
|
65
60
|
}
|
|
66
61
|
}]);
|
|
@@ -11,8 +11,8 @@ import { css } from '@emotion/react';
|
|
|
11
11
|
import { logicalCSS, logicalTextAlignCSS, mathWithUnits } from '../../../../global_styling';
|
|
12
12
|
export var euiDataGridCellOutlineStyles = function euiDataGridCellOutlineStyles(_ref2) {
|
|
13
13
|
var euiTheme = _ref2.euiTheme;
|
|
14
|
-
var focusColor = euiTheme.colors.
|
|
15
|
-
var hoverColor = euiTheme.colors.
|
|
14
|
+
var focusColor = euiTheme.colors.borderStrongPrimary;
|
|
15
|
+
var hoverColor = euiTheme.colors.borderStrongText;
|
|
16
16
|
var outlineWidth = euiTheme.border.width.thick;
|
|
17
17
|
var borderRadius = mathWithUnits(euiTheme.border.radius.medium, function (x) {
|
|
18
18
|
return x / 2;
|
|
@@ -49,7 +49,7 @@ export var euiDataGridStyles = function euiDataGridStyles(euiThemeContext) {
|
|
|
49
49
|
};
|
|
50
50
|
var border = "".concat(euiTheme.border.width.thin, " solid ").concat(borderColors.default);
|
|
51
51
|
return {
|
|
52
|
-
euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", logicalCSS('height', '100%'), " overflow:hidden;*:where(& .euiDataGridRow){background-color:", euiTheme.
|
|
52
|
+
euiDataGrid: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;", 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;"),
|
|
53
53
|
cellPadding: {
|
|
54
54
|
cellPadding: function cellPadding(size) {
|
|
55
55
|
return /*#__PURE__*/css(".euiDataGridHeaderCell,.euiDataGridRowCell__content{padding:", _cellPadding[size], ";}.euiDataGridRowCell__content--lineCountHeight,.euiDataGridRowCell__content--autoBelowLineCountHeight{", highContrastModeStyles(euiThemeContext, {
|
|
@@ -123,7 +123,6 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
123
123
|
var tabsNode;
|
|
124
124
|
if (tabs) {
|
|
125
125
|
var _tabs$find;
|
|
126
|
-
var tabsSize = pageTitle ? 'l' : 'xl';
|
|
127
126
|
var renderTabs = function renderTabs() {
|
|
128
127
|
return tabs.map(function (tab, index) {
|
|
129
128
|
var label = tab.label,
|
|
@@ -140,7 +139,7 @@ export var EuiPageHeaderContent = function EuiPageHeaderContent(_ref) {
|
|
|
140
139
|
})) === null || _tabs$find === void 0 ? void 0 : _tabs$find.label));
|
|
141
140
|
tabsNode = ___EmotionJSX(React.Fragment, null, pageTitleNode && ___EmotionJSX(EuiSpacer, null), screenReaderPageTitle, ___EmotionJSX(EuiTabs, _extends({}, tabsProps, {
|
|
142
141
|
bottomBorder: false,
|
|
143
|
-
size:
|
|
142
|
+
size: "l"
|
|
144
143
|
}), renderTabs()));
|
|
145
144
|
}
|
|
146
145
|
var childrenNode = children && ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiSpacer, null), children);
|
|
@@ -28,7 +28,7 @@ export var EuiTableRow = function EuiTableRow(_ref) {
|
|
|
28
28
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
29
29
|
var isResponsive = useEuiTableIsResponsive();
|
|
30
30
|
var styles = useEuiMemoizedStyles(euiTableRowStyles);
|
|
31
|
-
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,
|
|
31
|
+
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];
|
|
32
32
|
var classes = classNames('euiTableRow', className, {
|
|
33
33
|
'euiTableRow-isSelectable': isSelectable,
|
|
34
34
|
'euiTableRow-isSelected': isSelected,
|
|
@@ -43,9 +43,6 @@ export var euiTabContentStyles = function euiTabContentStyles(euiThemeContext) {
|
|
|
43
43
|
m: /*#__PURE__*/css("font-size:", euiFontSize(euiThemeContext, 's').fontSize, ";line-height:", euiTheme.size.xxl, ";;label:m;"),
|
|
44
44
|
l: /*#__PURE__*/css("font-size:", euiFontSize(euiThemeContext, 'm').fontSize, ";line-height:", mathWithUnits([euiTheme.size.xl, euiTheme.size.s], function (x, y) {
|
|
45
45
|
return x + y;
|
|
46
|
-
}), ";;label:l;")
|
|
47
|
-
xl: /*#__PURE__*/css("font-size:", euiFontSize(euiThemeContext, 'l').fontSize, ";line-height:", mathWithUnits([euiTheme.size.xxxl, euiTheme.size.s], function (x, y) {
|
|
48
|
-
return x + y;
|
|
49
|
-
}), ";;label:xl;")
|
|
46
|
+
}), ";;label:l;")
|
|
50
47
|
};
|
|
51
48
|
};
|
|
@@ -15,7 +15,7 @@ import { keys, useEuiMemoizedStyles } from '../../services';
|
|
|
15
15
|
import { euiTabsStyles } from './tabs.styles';
|
|
16
16
|
import { EuiTabsContext } from './tabs_context';
|
|
17
17
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
|
-
export var SIZES = ['s', 'm', 'l'
|
|
18
|
+
export var SIZES = ['s', 'm', 'l'];
|
|
19
19
|
export var EuiTabs = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
20
20
|
var children = _ref.children,
|
|
21
21
|
className = _ref.className,
|
|
@@ -20,7 +20,6 @@ export var euiTabsStyles = function euiTabsStyles(euiThemeContext) {
|
|
|
20
20
|
// sizes
|
|
21
21
|
s: /*#__PURE__*/css("gap:", euiTheme.size.m, ";;label:s;"),
|
|
22
22
|
m: /*#__PURE__*/css("gap:", euiTheme.size.base, ";;label:m;"),
|
|
23
|
-
l: /*#__PURE__*/css("gap:", euiTheme.size.l, ";;label:l;")
|
|
24
|
-
xl: /*#__PURE__*/css("gap:", euiTheme.size.xl, ";;label:xl;")
|
|
23
|
+
l: /*#__PURE__*/css("gap:", euiTheme.size.l, ";;label:l;")
|
|
25
24
|
};
|
|
26
25
|
};
|
|
@@ -118,6 +118,8 @@ var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
122
|
+
*
|
|
121
123
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
122
124
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
123
125
|
*/
|
|
@@ -126,12 +128,14 @@ export var euiPaletteForLightBackground = function euiPaletteForLightBackground(
|
|
|
126
128
|
colors = _ref3.colors;
|
|
127
129
|
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
128
130
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
129
|
-
return color.includes('
|
|
131
|
+
return color.includes('euiColorVisText');
|
|
130
132
|
});
|
|
131
133
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
132
134
|
};
|
|
133
135
|
|
|
134
136
|
/**
|
|
137
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
138
|
+
*
|
|
135
139
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
136
140
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
137
141
|
*/
|
|
@@ -140,7 +144,7 @@ export var euiPaletteForDarkBackground = function euiPaletteForDarkBackground()
|
|
|
140
144
|
colors = _ref4.colors;
|
|
141
145
|
var visColors = colors !== null && colors !== void 0 ? colors : EUI_VIS_COLOR_STORE.visColors;
|
|
142
146
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
143
|
-
return color.includes('
|
|
147
|
+
return color.includes('euiColorVisText');
|
|
144
148
|
});
|
|
145
149
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
146
150
|
};
|