@elastic/eui 103.1.0 → 104.0.0-amsterdam.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/provider/provider.js +2 -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/services/color/vis_color_store.js +1 -1
- package/es/services/theme/context.js +2 -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 +391 -392
- 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/provider/provider.js +2 -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/services/color/vis_color_store.js +2 -2
- package/lib/services/theme/context.js +2 -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/provider/provider.js +2 -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/services/color/vis_color_store.js +1 -1
- package/optimize/es/services/theme/context.js +2 -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/provider/provider.js +2 -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/services/color/vis_color_store.js +2 -2
- package/optimize/lib/services/theme/context.js +2 -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/provider/provider.js +2 -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/services/color/vis_color_store.js +2 -2
- package/test-env/services/theme/context.js +2 -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
|
@@ -9,14 +9,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _tool_tip = require("../tool_tip");
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _excluded = ["children", "textToCopy", "beforeMessage", "afterMessage"];
|
|
13
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
13
|
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); }
|
|
15
14
|
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; }
|
|
16
15
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
17
16
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
18
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
19
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
20
17
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
21
18
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
22
19
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -65,17 +62,14 @@ var EuiCopy = exports.EuiCopy = /*#__PURE__*/function (_Component) {
|
|
|
65
62
|
value: function render() {
|
|
66
63
|
var _this$props = this.props,
|
|
67
64
|
children = _this$props.children,
|
|
68
|
-
|
|
69
|
-
beforeMessage = _this$props.beforeMessage,
|
|
70
|
-
afterMessage = _this$props.afterMessage,
|
|
71
|
-
rest = _objectWithoutProperties(_this$props, _excluded);
|
|
65
|
+
tooltipProps = _this$props.tooltipProps;
|
|
72
66
|
return (
|
|
73
67
|
// See `src/components/tool_tip/tool_tip.js` for explanation of below eslint-disable
|
|
74
68
|
// eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
|
|
75
69
|
(0, _react2.jsx)(_tool_tip.EuiToolTip, _extends({
|
|
76
70
|
content: this.state.tooltipText,
|
|
77
71
|
onMouseOut: this.resetTooltipText
|
|
78
|
-
},
|
|
72
|
+
}, tooltipProps), children(this.copy))
|
|
79
73
|
);
|
|
80
74
|
}
|
|
81
75
|
}]);
|
|
@@ -102,6 +96,10 @@ EuiCopy.propTypes = {
|
|
|
102
96
|
* Use your own logic to create the component that users interact with when triggering copy.
|
|
103
97
|
*/
|
|
104
98
|
children: _propTypes.default.func.isRequired,
|
|
99
|
+
/**
|
|
100
|
+
* Optional props to pass to the EuiToolTip component.
|
|
101
|
+
*/
|
|
102
|
+
tooltipProps: _propTypes.default.any,
|
|
105
103
|
className: _propTypes.default.string,
|
|
106
104
|
"aria-label": _propTypes.default.string,
|
|
107
105
|
"data-test-subj": _propTypes.default.string,
|
|
@@ -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, {
|
|
@@ -136,7 +136,6 @@ var EuiPageHeaderContent = exports.EuiPageHeaderContent = function EuiPageHeader
|
|
|
136
136
|
var tabsNode;
|
|
137
137
|
if (tabs) {
|
|
138
138
|
var _tabs$find;
|
|
139
|
-
var tabsSize = pageTitle ? 'l' : 'xl';
|
|
140
139
|
var renderTabs = function renderTabs() {
|
|
141
140
|
return tabs.map(function (tab, index) {
|
|
142
141
|
var label = tab.label,
|
|
@@ -153,7 +152,7 @@ var EuiPageHeaderContent = exports.EuiPageHeaderContent = function EuiPageHeader
|
|
|
153
152
|
})) === null || _tabs$find === void 0 ? void 0 : _tabs$find.label));
|
|
154
153
|
tabsNode = (0, _react2.jsx)(_react.default.Fragment, null, pageTitleNode && (0, _react2.jsx)(_spacer.EuiSpacer, null), screenReaderPageTitle, (0, _react2.jsx)(_tabs.EuiTabs, _extends({}, tabsProps, {
|
|
155
154
|
bottomBorder: false,
|
|
156
|
-
size:
|
|
155
|
+
size: "l"
|
|
157
156
|
}), renderTabs()));
|
|
158
157
|
}
|
|
159
158
|
var childrenNode = children && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_spacer.EuiSpacer, null), children);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EuiProvider = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _themes = require("../../themes");
|
|
9
9
|
var _services = require("../../services");
|
|
10
10
|
var _warning = require("../../services/theme/warning");
|
|
11
11
|
var _css = require("../../services/emotion/css");
|
|
@@ -33,7 +33,7 @@ var EuiProvider = exports.EuiProvider = function EuiProvider(_ref) {
|
|
|
33
33
|
var _ref$cache = _ref.cache,
|
|
34
34
|
cache = _ref$cache === void 0 ? _css.cache : _ref$cache,
|
|
35
35
|
_ref$theme = _ref.theme,
|
|
36
|
-
theme = _ref$theme === void 0 ?
|
|
36
|
+
theme = _ref$theme === void 0 ? _themes.EuiThemeAmsterdam : _ref$theme,
|
|
37
37
|
_ref$globalStyles = _ref.globalStyles,
|
|
38
38
|
Globals = _ref$globalStyles === void 0 ? _global_styles.EuiGlobalStyles : _ref$globalStyles,
|
|
39
39
|
_ref$utilityClasses = _ref.utilityClasses,
|
|
@@ -36,7 +36,7 @@ var EuiTableRow = exports.EuiTableRow = function EuiTableRow(_ref) {
|
|
|
36
36
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
37
37
|
var isResponsive = (0, _responsive_context.useEuiTableIsResponsive)();
|
|
38
38
|
var styles = (0, _services.useEuiMemoizedStyles)(_table_row.euiTableRowStyles);
|
|
39
|
-
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,
|
|
39
|
+
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];
|
|
40
40
|
var classes = (0, _classnames.default)('euiTableRow', className, {
|
|
41
41
|
'euiTableRow-isSelectable': isSelectable,
|
|
42
42
|
'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
|
};
|
|
@@ -26,7 +26,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
26
26
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
27
27
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
28
28
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.indexOf(n) >= 0) continue; t[n] = r[n]; } return t; }
|
|
29
|
-
var SIZES = exports.SIZES = ['s', 'm', 'l'
|
|
29
|
+
var SIZES = exports.SIZES = ['s', 'm', 'l'];
|
|
30
30
|
var EuiTabs = exports.EuiTabs = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
31
31
|
var children = _ref.children,
|
|
32
32
|
className = _ref.className,
|
|
@@ -89,7 +89,6 @@ EuiTabs.propTypes = {
|
|
|
89
89
|
bottomBorder: _propTypes.default.bool,
|
|
90
90
|
/**
|
|
91
91
|
* Sizes affect both font size and overall size.
|
|
92
|
-
* Only use the `xl` size when displayed as page titles.
|
|
93
92
|
*/
|
|
94
93
|
size: _propTypes.default.any
|
|
95
94
|
};
|
|
@@ -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
|
};
|
|
@@ -128,6 +128,8 @@ var _getVisColorsAsText = function _getVisColorsAsText(visColors, keys) {
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
132
|
+
*
|
|
131
133
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
132
134
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
133
135
|
*/
|
|
@@ -136,12 +138,14 @@ var euiPaletteForLightBackground = exports.euiPaletteForLightBackground = functi
|
|
|
136
138
|
colors = _ref3.colors;
|
|
137
139
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
138
140
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
139
|
-
return color.includes('
|
|
141
|
+
return color.includes('euiColorVisText');
|
|
140
142
|
});
|
|
141
143
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
142
144
|
};
|
|
143
145
|
|
|
144
146
|
/**
|
|
147
|
+
* @deprecated - use `euiColorVisText{NUMBER}` tokens directly
|
|
148
|
+
*
|
|
145
149
|
* NOTE: This function is not pure. It relies on `EUI_VIS_COLOR_STORE` which is updated by the
|
|
146
150
|
* EuiProvider on theme change. Ensure to recall the function on theme change or subscribe to the store.
|
|
147
151
|
*/
|
|
@@ -150,7 +154,7 @@ var euiPaletteForDarkBackground = exports.euiPaletteForDarkBackground = function
|
|
|
150
154
|
colors = _ref4.colors;
|
|
151
155
|
var visColors = colors !== null && colors !== void 0 ? colors : _vis_color_store.EUI_VIS_COLOR_STORE.visColors;
|
|
152
156
|
var visColorsAsTextKeys = Object.keys(visColors).filter(function (color) {
|
|
153
|
-
return color.includes('
|
|
157
|
+
return color.includes('euiColorVisText');
|
|
154
158
|
});
|
|
155
159
|
return _getVisColorsAsText(visColors, visColorsAsTextKeys);
|
|
156
160
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.EUI_VIS_COLOR_STORE = void 0;
|
|
7
7
|
var _euiThemeCommon = require("@elastic/eui-theme-common");
|
|
8
|
-
var
|
|
8
|
+
var _colors_vis_light = require("../../themes/amsterdam/global_styling/variables/_colors_vis_light");
|
|
9
9
|
/*
|
|
10
10
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
11
11
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -15,4 +15,4 @@ var _euiThemeBorealis = require("@elastic/eui-theme-borealis");
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
// initialsetup of Vis color storage with default colors
|
|
18
|
-
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(
|
|
18
|
+
var EUI_VIS_COLOR_STORE = exports.EUI_VIS_COLOR_STORE = _euiThemeCommon.EuiVisColorStore.getInstance(_colors_vis_light.colorVisLight, true);
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultComputedTheme = exports.EuiThemeContext = exports.EuiSystemContext = exports.EuiNestedThemeContext = exports.EuiModificationsContext = exports.EuiHighContrastModeContext = exports.EuiColorModeContext = exports.DEFAULTS = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _theme = require("../../themes/amsterdam/theme");
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
/*
|
|
11
11
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
@@ -16,7 +16,7 @@ var _utils = require("./utils");
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
var DEFAULTS = exports.DEFAULTS = {
|
|
19
|
-
system:
|
|
19
|
+
system: _theme.EuiThemeAmsterdam,
|
|
20
20
|
modifications: {},
|
|
21
21
|
colorMode: _utils.DEFAULT_COLOR_MODE,
|
|
22
22
|
highContrastMode: false
|