@elastic/eui 101.0.0 → 101.1.0-classic.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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import React from 'react';
10
- import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
10
+ import { EuiThemeAmsterdam } from '../../themes';
11
11
  import { EuiThemeProvider } from '../../services';
12
12
  import { emitEuiProviderWarning } from '../../services/theme/warning';
13
13
  import { cache as fallbackCache } from '../../services/emotion/css';
@@ -26,7 +26,7 @@ export var EuiProvider = function EuiProvider(_ref) {
26
26
  var _ref$cache = _ref.cache,
27
27
  cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
28
28
  _ref$theme = _ref.theme,
29
- theme = _ref$theme === void 0 ? EuiThemeBorealis : _ref$theme,
29
+ theme = _ref$theme === void 0 ? EuiThemeAmsterdam : _ref$theme,
30
30
  _ref$globalStyles = _ref.globalStyles,
31
31
  Globals = _ref$globalStyles === void 0 ? EuiGlobalStyles : _ref$globalStyles,
32
32
  _ref$utilityClasses = _ref.utilityClasses,
@@ -11,6 +11,7 @@ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.fre
11
11
  import { css, keyframes } from '@emotion/react';
12
12
  import { euiShadow } from '@elastic/eui-theme-common';
13
13
  import { euiCanAnimate, logicalCSS, mathWithUnits } from '../../global_styling';
14
+ import { cssSupportsHasWithNextSibling } from '../../global_styling/functions/supports';
14
15
  import { euiTableVariables } from './table.styles';
15
16
  export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
16
17
  var euiTheme = euiThemeContext.euiTheme;
@@ -34,7 +35,7 @@ export var euiTableRowStyles = function euiTableRowStyles(euiThemeContext) {
34
35
  mobile: {
35
36
  mobile: /*#__PURE__*/css("position:relative;display:flex;flex-wrap:wrap;padding:", cellContentPadding, ";", logicalCSS('margin-bottom', cellContentPadding), euiShadow(euiThemeContext, 's', {
36
37
  borderAllInHighContrastMode: true
37
- }), " background-color:", euiTheme.colors.backgroundBasePlain, ";border-radius:", euiTheme.border.radius.medium, ";&:has(+ .euiTableRow-isExpandedRow){", logicalCSS('border-bottom-left-radius', 0), " ", logicalCSS('border-bottom-right-radius', 0), ";};label:mobile;"),
38
+ }), " background-color:", euiTheme.colors.backgroundBasePlain, ";border-radius:", euiTheme.border.radius.medium, ";", cssSupportsHasWithNextSibling("\n &:has(+ .euiTableRow-isExpandedRow) {\n ".concat(logicalCSS('border-bottom-left-radius', 0), "\n ").concat(logicalCSS('border-bottom-right-radius', 0), "\n }\n ")), ";;label:mobile;"),
38
39
  selected: /*#__PURE__*/css("&,&+.euiTableRow-isExpandedRow{background-color:", rowColors.selected.color, ";};label:selected;"),
39
40
  /**
40
41
  * Left column offset (no border)
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0 and the Server Side Public License, v 1; you may not use this file except
5
+ * in compliance with, at your election, the Elastic License 2.0 or the Server
6
+ * Side Public License, v 1.
7
+ */
8
+
9
+ export var cssSupportsSelector = function cssSupportsSelector(selector, value) {
10
+ return "\n @supports selector(".concat(selector, ") {").concat(value, "}\n ");
11
+ };
12
+
13
+ /**
14
+ * Util to check if the "previous sibling" selector :has(+) is supported
15
+ */
16
+ export var cssSupportsHasWithNextSibling = function cssSupportsHasWithNextSibling(value) {
17
+ return cssSupportsSelector(':has(+ *)', value);
18
+ };
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import { EuiVisColorStore } from '@elastic/eui-theme-common';
10
- import { colorVis } from '@elastic/eui-theme-borealis';
10
+ import { colorVis } from '../../themes/amsterdam/global_styling/variables/_colors_vis';
11
11
 
12
12
  // initialsetup of Vis color storage with default colors
13
13
  export var EUI_VIS_COLOR_STORE = EuiVisColorStore.getInstance(colorVis, true);
@@ -7,10 +7,10 @@
7
7
  */
8
8
 
9
9
  import { createContext } from 'react';
10
- import { EuiThemeBorealis } from '@elastic/eui-theme-borealis';
10
+ import { EuiThemeAmsterdam } from '../../themes/amsterdam/theme';
11
11
  import { DEFAULT_COLOR_MODE, getComputed } from './utils';
12
12
  export var DEFAULTS = {
13
- system: EuiThemeBorealis,
13
+ system: EuiThemeAmsterdam,
14
14
  modifications: {},
15
15
  colorMode: DEFAULT_COLOR_MODE,
16
16
  highContrastMode: false