@elastic/eui 106.7.0 → 107.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.
Files changed (84) hide show
  1. package/dist/eui_theme_amsterdam_dark.json +36 -0
  2. package/dist/eui_theme_amsterdam_dark.json.d.ts +36 -0
  3. package/dist/eui_theme_amsterdam_light.json +36 -0
  4. package/dist/eui_theme_amsterdam_light.json.d.ts +36 -0
  5. package/dist/eui_theme_borealis_dark.json +36 -0
  6. package/dist/eui_theme_borealis_dark.json.d.ts +36 -0
  7. package/dist/eui_theme_borealis_light.json +37 -1
  8. package/dist/eui_theme_borealis_light.json.d.ts +36 -0
  9. package/es/components/bottom_bar/bottom_bar.styles.js +4 -2
  10. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  11. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  12. package/es/components/flyout/flyout.styles.js +18 -7
  13. package/es/components/header/header.styles.js +3 -1
  14. package/es/components/page_template/inner/page_inner.styles.js +3 -1
  15. package/es/components/panel/panel.styles.js +6 -6
  16. package/es/global_styling/mixins/_shadow.js +14 -2
  17. package/es/themes/amsterdam/global_styling/variables/_shadows.js +439 -0
  18. package/es/themes/amsterdam/theme.js +4 -1
  19. package/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
  20. package/es/themes/json/eui_theme_amsterdam_light.json +36 -0
  21. package/es/themes/json/eui_theme_borealis_dark.json +36 -0
  22. package/es/themes/json/eui_theme_borealis_light.json +37 -1
  23. package/eui.d.ts +158 -3
  24. package/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
  25. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  26. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  27. package/lib/components/flyout/flyout.styles.js +18 -7
  28. package/lib/components/header/header.styles.js +3 -1
  29. package/lib/components/page_template/inner/page_inner.styles.js +3 -1
  30. package/lib/components/panel/panel.styles.js +5 -5
  31. package/lib/global_styling/mixins/_shadow.js +18 -1
  32. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +442 -0
  33. package/lib/themes/amsterdam/theme.js +4 -1
  34. package/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
  35. package/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
  36. package/lib/themes/json/eui_theme_borealis_dark.json +36 -0
  37. package/lib/themes/json/eui_theme_borealis_light.json +37 -1
  38. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +4 -2
  39. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  40. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  41. package/optimize/es/components/flyout/flyout.styles.js +18 -7
  42. package/optimize/es/components/header/header.styles.js +3 -1
  43. package/optimize/es/components/page_template/inner/page_inner.styles.js +3 -1
  44. package/optimize/es/components/panel/panel.styles.js +6 -6
  45. package/optimize/es/global_styling/mixins/_shadow.js +14 -2
  46. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +436 -0
  47. package/optimize/es/themes/amsterdam/theme.js +4 -1
  48. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
  49. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +36 -0
  50. package/optimize/es/themes/json/eui_theme_borealis_dark.json +36 -0
  51. package/optimize/es/themes/json/eui_theme_borealis_light.json +37 -1
  52. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
  53. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  54. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  55. package/optimize/lib/components/flyout/flyout.styles.js +18 -7
  56. package/optimize/lib/components/header/header.styles.js +3 -1
  57. package/optimize/lib/components/page_template/inner/page_inner.styles.js +3 -1
  58. package/optimize/lib/components/panel/panel.styles.js +5 -5
  59. package/optimize/lib/global_styling/mixins/_shadow.js +18 -1
  60. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
  61. package/optimize/lib/themes/amsterdam/theme.js +4 -1
  62. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
  63. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
  64. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +36 -0
  65. package/optimize/lib/themes/json/eui_theme_borealis_light.json +37 -1
  66. package/package.json +4 -4
  67. package/src/themes/amsterdam/global_styling/mixins/_index.scss +1 -1
  68. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +100 -0
  69. package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
  70. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +20 -0
  71. package/test-env/components/bottom_bar/bottom_bar.styles.js +4 -2
  72. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  73. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  74. package/test-env/components/flyout/flyout.styles.js +18 -7
  75. package/test-env/components/header/header.styles.js +3 -1
  76. package/test-env/components/page_template/inner/page_inner.styles.js +3 -1
  77. package/test-env/components/panel/panel.styles.js +5 -5
  78. package/test-env/global_styling/mixins/_shadow.js +18 -1
  79. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
  80. package/test-env/themes/amsterdam/theme.js +4 -1
  81. package/test-env/themes/json/eui_theme_amsterdam_dark.json +36 -0
  82. package/test-env/themes/json/eui_theme_amsterdam_light.json +36 -0
  83. package/test-env/themes/json/eui_theme_borealis_dark.json +36 -0
  84. package/test-env/themes/json/eui_theme_borealis_light.json +37 -1
@@ -0,0 +1,100 @@
1
+ @function shadowOpacity($opacity) {
2
+ @if (lightness($euiColorTextParagraph) < 50) {
3
+ @return $opacity * 1;
4
+ } @else {
5
+ @return $opacity * 2.5;
6
+ }
7
+ }
8
+
9
+ @mixin euiSlightShadow($color: $euiShadowColor) {
10
+ box-shadow:
11
+ 0 .8px .8px rgba($color, shadowOpacity(.04)),
12
+ 0 2.3px 2px rgba($color, shadowOpacity(.03));
13
+ }
14
+
15
+ @mixin euiBottomShadowSmall($color: $euiShadowColor) {
16
+ box-shadow:
17
+ 0 .7px 1.4px rgba($color, shadowOpacity(.07)),
18
+ 0 1.9px 4px rgba($color, shadowOpacity(.05)),
19
+ 0 4.5px 10px rgba($color, shadowOpacity(.05));
20
+ }
21
+
22
+ @mixin euiBottomShadowMedium($color: $euiShadowColor) {
23
+ box-shadow:
24
+ 0 .9px 4px -1px rgba($color, shadowOpacity(.08)),
25
+ 0 2.6px 8px -1px rgba($color, shadowOpacity(.06)),
26
+ 0 5.7px 12px -1px rgba($color, shadowOpacity(.05)),
27
+ 0 15px 15px -1px rgba($color, shadowOpacity(.04));
28
+ }
29
+
30
+ // Similar to shadow medium but without the bottom depth. Useful for popovers
31
+ // that drop UP rather than DOWN.
32
+ @mixin euiBottomShadowFlat($color: $euiShadowColor) {
33
+ box-shadow:
34
+ 0 0 .8px rgba($color, shadowOpacity(.06)),
35
+ 0 0 2px rgba($color, shadowOpacity(.04)),
36
+ 0 0 5px rgba($color, shadowOpacity(.04)),
37
+ 0 0 17px rgba($color, shadowOpacity(.03));
38
+ }
39
+
40
+ @mixin euiBottomShadow($color: $euiShadowColor) {
41
+ box-shadow:
42
+ 0 1px 5px rgba($color, shadowOpacity(.1)),
43
+ 0 3.6px 13px rgba($color, shadowOpacity(.07)),
44
+ 0 8.4px 23px rgba($color, shadowOpacity(.06)),
45
+ 0 23px 35px rgba($color, shadowOpacity(.05));
46
+ }
47
+
48
+ @mixin euiBottomShadowLarge(
49
+ $color: $euiShadowColor,
50
+ $opacity: 0,
51
+ $reverse: false
52
+ ) {
53
+ @if ($reverse) {
54
+ box-shadow:
55
+ 0 -2.7px 9px rgba($color, shadowOpacity(.13)),
56
+ 0 -9.4px 24px rgba($color, shadowOpacity(.09)),
57
+ 0 -21.8px 43px rgba($color, shadowOpacity(.08));
58
+ } @else {
59
+ box-shadow:
60
+ 0 2.7px 9px rgba($color, shadowOpacity(.13)),
61
+ 0 9.4px 24px rgba($color, shadowOpacity(.09)),
62
+ 0 21.8px 43px rgba($color, shadowOpacity(.08));
63
+ }
64
+ }
65
+
66
+ // stylelint-disable color-named
67
+ @mixin euiOverflowShadow($direction: 'y', $side: 'both') {
68
+ $hideHeight: $euiScrollBarCornerThin * 1.25;
69
+ $gradient: null;
70
+ $gradientStart:
71
+ transparentize(red, .9) 0%,
72
+ transparentize(red, 0) $hideHeight;
73
+ $gradientEnd:
74
+ transparentize(red, 0) calc(100% - #{$hideHeight}),
75
+ transparentize(red, .9) 100%;
76
+ @if ($side == 'both' or $side == 'start' or $side == 'end') {
77
+ @if ($side == 'both') {
78
+ $gradient: $gradientStart, $gradientEnd;
79
+ } @else if ($side == 'start') {
80
+ $gradient: $gradientStart;
81
+ } @else {
82
+ $gradient: $gradientEnd;
83
+ }
84
+ } @else {
85
+ @warn "euiOverflowShadow() expects side to be 'both', 'start' or 'end' but got '#{$side}'";
86
+ }
87
+
88
+ @if ($direction == 'y') {
89
+ mask-image: linear-gradient(to bottom, #{$gradient});
90
+ } @else if ($direction == 'x') {
91
+ mask-image: linear-gradient(to right, #{$gradient});
92
+ } @else {
93
+ @warn "euiOverflowShadow() expects direction to be 'y' or 'x' but got '#{$direction}'";
94
+ }
95
+
96
+ // Chrome+Edge has a very bizarre edge case bug where `mask-image` stops working
97
+ // This workaround forces a stacking context on the scrolling container, which
98
+ // hopefully addresses the bug. @see https://github.com/elastic/eui/pull/7855
99
+ transform: translateZ(0);
100
+ }
@@ -4,4 +4,5 @@
4
4
 
5
5
  @import 'colors_vis';
6
6
  @import 'typography';
7
+ @import 'shadows';
7
8
  @import 'forms';
@@ -0,0 +1,20 @@
1
+ // Shadows
2
+ $euiShadowColor: $euiColorInk !default;
3
+
4
+ $euiShadowDownXS: 0 0.8px 0.8px 0 hsla(from $euiShadowColor h s l / 0.04), 0 2.3px 2px 0 hsla(from $euiShadowColor h s l / 0.03);
5
+ $euiShadowDownS: 0 0.7px 1.4px 0 hsla(from $euiShadowColor h s l / 0.07), 0 1.9px 4px 0 hsla(from $euiShadowColor h s l / 0.05), 0 4.5px 10 0 hsla(from $euiShadowColor h s l / 0.05);
6
+ $euiShadowDownM: 0 0.9px 4px 0 hsla(from $euiShadowColor h s l / 0.08), 0 2.6px 8px 0 hsla(from $euiShadowColor h s l / 0.06), 0 5.7px 12px 0 hsla(from $euiShadowColor h s l / 0.05), 0 15px 15px 0 hsla(from $euiShadowColor h s l / 0.04);
7
+ $euiShadowDownL: 0 1px 5px 0 hsla(from $euiShadowColor h s l / 0.1), 0 3.6px 13px 0 hsla(from $euiShadowColor h s l / 0.07), 0 8.4px 23px 0 hsla(from $euiShadowColor h s l / 0.06), 0 23px 35px 0 hsla(from $euiShadowColor h s l / 0.05);
8
+ $euiShadowDownXL: 0 2.7px 9px 0 hsla(from $euiShadowColor h s l / 0.13), 0 9.4px 24px 0 hsla(from $euiShadowColor h s l / 0.09), 0 21.8px 43px 0 hsla(from $euiShadowColor h s l / 0.08);
9
+
10
+ $euiShadowUpXS: 0 0.8px 0.8px 0 hsla(from $euiShadowColor h s l / 0.04), 0 -2.3px 2px 0 hsla(from $euiShadowColor h s l / 0.03);
11
+ $euiShadowUpS: 0 0.7px 1.4px 0 hsla(from $euiShadowColor h s l / 0.07), 0 -1.9px 4px 0 hsla(from $euiShadowColor h s l / 0.05), 0 -4.5px 10 0 hsla(from $euiShadowColor h s l / 0.05);
12
+ $euiShadowUpM: 0 0.9px 4px 0 hsla(from $euiShadowColor h s l / 0.08), 0 -2.6px 8px 0 hsla(from $euiShadowColor h s l / 0.06), 0 -5.7px 12px 0 hsla(from $euiShadowColor h s l / 0.05), 0 -15px 15px 0 hsla(from $euiShadowColor h s l / 0.04);
13
+ $euiShadowUpL: 0 1px 5px 0 hsla(from $euiShadowColor h s l / 0.1), 0 -3.6px 13px 0 hsla(from $euiShadowColor h s l / 0.07), 0 -8.4px 23px 0 hsla(from $euiShadowColor h s l / 0.06), 0 -23px 35px 0 hsla(from $euiShadowColor h s l / 0.05);
14
+ $euiShadowUpXL: 0 2.7px 9px 0 hsla(from $euiShadowColor h s l / 0.13), 0 -9.4px 24px 0 hsla(from $euiShadowColor h s l / 0.09), 0 -21.8px 43px 0 hsla(from $euiShadowColor h s l / 0.08);
15
+
16
+ $euiShadowHoverDown: 0 1.9px 4px 0 hsla(from $euiShadowColor h s l / 0.05), 0 4.5px 10 0 hsla(from $euiShadowColor h s l / 0.05);
17
+ $euiShadowHoverXLDown: none;
18
+
19
+ $euiShadowHoverUp: 0 1.9px 4px 0 hsla(from $euiShadowColor h s l / 0.05), 0 -4.5px 10 0 hsla(from $euiShadowColor h s l / 0.05);
20
+ $euiShadowHoverXLUp: none;
@@ -25,8 +25,10 @@ var euiBottomBarStyles = exports.euiBottomBarStyles = function euiBottomBarStyle
25
25
  // Base
26
26
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
27
27
  euiBottomBar: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.bottomBarBackground, ";", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
28
- none: (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext)
29
- }), " ", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
28
+ none: (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, {
29
+ border: 'none'
30
+ })
31
+ }), "clip-path:polygon(0 -100vh, 100% -100vh, 100% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
30
32
  static: /*#__PURE__*/(0, _react.css)(";label:static;"),
31
33
  // Default
32
34
  fixed: /*#__PURE__*/(0, _react.css)("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
@@ -152,7 +152,7 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
152
152
  }, [_focusTrapProps]);
153
153
  var classes = (0, _classnames.default)('euiCollapsibleNav', 'euiCollapsibleNavBeta', className);
154
154
  var styles = (0, _services.useEuiMemoizedStyles)(_collapsible_nav_beta.euiCollapsibleNavBetaStyles);
155
- var cssStyles = [styles.euiCollapsibleNavBeta, styles[side], isPush && styles.isPush, isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
155
+ var cssStyles = [styles.euiCollapsibleNavBeta, isPush && styles.isPush, styles[side], isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
156
156
  var flyout = (0, _react2.jsx)(_flyout.EuiFlyout, (0, _extends2.default)({
157
157
  "aria-label": defaultAriaLabel
158
158
  }, rest, {
@@ -29,7 +29,9 @@ var euiCollapsibleNavBetaStyles = exports.euiCollapsibleNavBetaStyles = function
29
29
  euiCollapsibleNavBeta: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('top', fixedHeaderOffset), (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.xs), ";;label:euiCollapsibleNavBeta;"),
30
30
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";;label:left;"),
31
31
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:right;"),
32
- isPush: /*#__PURE__*/(0, _react.css)((0, _themes.euiShadowFlat)(euiThemeContext), ";;label:isPush;"),
32
+ isPush: /*#__PURE__*/(0, _react.css)((0, _themes.euiShadowFlat)(euiThemeContext, {
33
+ border: 'none'
34
+ }), ";;label:isPush;"),
33
35
  isPushCollapsed: /*#__PURE__*/(0, _react.css)(_collapsible_nav_body_footer.hideScrollbars, ";;label:isPushCollapsed;"),
34
36
  isOverlayFullWidth: /*#__PURE__*/(0, _react.css)("&.euiFlyout{", (0, _global_styling.logicalCSS)('max-width', '100% !important'), ";};label:isOverlayFullWidth;")
35
37
  };
@@ -29,9 +29,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
29
29
  styles: "animation-duration:0s!important;label:noAnimation;",
30
30
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
31
31
  };
32
+ var _ref2 = process.env.NODE_ENV === "production" ? {
33
+ name: "rks1ev-overlay",
34
+ styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;"
35
+ } : {
36
+ name: "rks1ev-overlay",
37
+ styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;",
38
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
39
+ };
32
40
  var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
33
- var euiTheme = euiThemeContext.euiTheme,
34
- colorMode = euiThemeContext.colorMode;
41
+ var euiTheme = euiThemeContext.euiTheme;
35
42
  return {
36
43
  euiFlyout: /*#__PURE__*/(0, _react.css)("position:fixed;", (0, _global_styling.logicalCSS)('bottom', 0), " ", (0, _global_styling.logicalCSS)('top', 'var(--euiFixedHeadersOffset, 0)'), " ", (0, _global_styling.logicalCSS)('height', 'inherit'), " z-index:", euiTheme.levels.flyout, ";background:", euiTheme.colors.emptyShade, ";display:flex;flex-direction:column;align-items:stretch;&:focus{outline:none;}", maxedFlyoutWidth(euiThemeContext), ";;label:euiFlyout;"),
37
44
  // Flyout sizes
@@ -46,11 +53,15 @@ var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThem
46
53
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", _global_styling.euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:left;"),
47
54
  // Type
48
55
  overlay: {
49
- overlay: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
50
- borderAllInHighContrastMode: true
51
- }), " &:has(.euiResizableButton){border-inline:none;};label:overlay;"),
52
- left: /*#__PURE__*/(0, _react.css)("border-inline-end:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:left;"),
53
- right: /*#__PURE__*/(0, _react.css)("border-inline-start:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:right;")
56
+ overlay: _ref2,
57
+ left: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
58
+ borderAllInHighContrastMode: true,
59
+ border: 'right'
60
+ }), ";;label:left;"),
61
+ right: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
62
+ borderAllInHighContrastMode: true,
63
+ border: 'left'
64
+ }), ";;label:right;")
54
65
  },
55
66
  push: {
56
67
  push: /*#__PURE__*/(0, _react.css)("clip-path:none;z-index:", Number(euiTheme.levels.flyout) - 1, ";;label:push;"),
@@ -31,7 +31,9 @@ var euiHeaderStyles = exports.euiHeaderStyles = function euiHeaderStyles(euiThem
31
31
  height = _euiHeaderVariables.height,
32
32
  padding = _euiHeaderVariables.padding;
33
33
  return {
34
- euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext), ";;label:euiHeader;"),
34
+ euiHeader: /*#__PURE__*/(0, _react.css)("display:flex;justify-content:space-between;", (0, _global_styling.logicalCSS)('height', height), " ", (0, _global_styling.logicalCSS)('padding-horizontal', padding), " ", (0, _global_styling.logicalCSS)('border-bottom', euiTheme.border.thin), " ", (0, _euiThemeCommon.euiShadowXSmall)(euiThemeContext, {
35
+ border: 'none'
36
+ }), "&+.euiHeader{clip-path:polygon(0 0, 100% 0, 100% 100vh, 0 100vh);};label:euiHeader;"),
35
37
  // Position
36
38
  static: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
37
39
  fixed: /*#__PURE__*/(0, _react.css)("z-index:", Number(euiTheme.levels.header) + 1, ";position:fixed;", (0, _global_styling.logicalCSS)('top', 0), " ", (0, _global_styling.logicalCSS)('horizontal', 0), ";;label:fixed;"),
@@ -19,7 +19,9 @@ var euiPageInnerStyles = exports.euiPageInnerStyles = function euiPageInnerStyle
19
19
  var euiTheme = euiThemeContext.euiTheme;
20
20
  return {
21
21
  euiPageInner: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.logicalCSS)('min-width', '0'), ";;label:euiPageInner;"),
22
- panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";;label:panelled;"),
22
+ panelled: /*#__PURE__*/(0, _react.css)("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm', {
23
+ border: 'none'
24
+ }), ";;label:panelled;"),
23
25
  border: {
24
26
  top: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), ";;label:top;"),
25
27
  left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:left;")
@@ -27,7 +27,9 @@ var euiPanelBorderStyles = exports.euiPanelBorderStyles = function euiPanelBorde
27
27
  euiTheme.colors.borderBaseFloating is enough then */
28
28
  var hasVisibleBorder = hasFloatingBorder && colorMode === 'DARK';
29
29
  return (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
30
- none: "\n /* Using a pseudo element for the border instead of floating border only \n because the transparent border might otherwise be visible with arbitrary \n full-width/height content in light mode. */\n &::after {\n content: '';\n position: absolute;\n /* ensure to keep on top of flush content */\n z-index: 0;\n inset: 0;\n border: ".concat(euiTheme.border.width.thin, " solid\n ").concat((borderColor !== null && borderColor !== void 0 ? borderColor : hasVisibleBorder) ? euiTheme.border.color : euiTheme.colors.borderBaseFloating, ";\n border-radius: inherit;\n pointer-events: none;\n }\n "),
30
+ none: "\n /* Using a pseudo element for the border instead of floating border only\n because the transparent border might otherwise be visible with arbitrary\n full-width/height content in light mode. */\n ".concat((0, _euiThemeCommon.euiBorderStyles)(euiThemeContext, {
31
+ borderColor: (borderColor !== null && borderColor !== void 0 ? borderColor : hasVisibleBorder) ? euiTheme.border.color : euiTheme.colors.borderBaseFloating
32
+ }), "\n "),
31
33
  preferred: "\n border: ".concat(euiTheme.border.thin, ";\n ")
32
34
  });
33
35
  };
@@ -53,9 +55,7 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
53
55
  // Base
54
56
  euiPanel: _ref2,
55
57
  grow: _ref,
56
- hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), " ", euiPanelBorderStyles(euiThemeContext, {
57
- hasFloatingBorder: false
58
- }), ";;label:hasShadow;"),
58
+ hasShadow: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadow)(euiThemeContext, 'm'), ";;label:hasShadow;"),
59
59
  hasBorder: /*#__PURE__*/(0, _react.css)(euiPanelBorderStyles(euiThemeContext, {
60
60
  borderColor: euiTheme.border.color,
61
61
  hasFloatingBorder: false
@@ -66,7 +66,7 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
66
66
  },
67
67
  // Setup interactive behavior
68
68
  isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
69
- none: (0, _euiThemeCommon.euiShadow)(euiThemeContext, 'l'),
69
+ none: (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, 'l'),
70
70
  // Windows high contrast themes ignore box-shadows - use a filter workaround instead
71
71
  preferred: "\n &:not(.euiPanel--transparent) {\n filter: drop-shadow(0 ".concat(euiTheme.border.width.thick, " 0 ").concat(euiTheme.border.color, ");\n }\n ")
72
72
  }), " transform:translateY(-2px);cursor:pointer;};label:isClickable;")
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "euiShadowFlat", {
15
15
  return _euiThemeCommon.euiShadowFlat;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "euiShadowHover", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _euiThemeCommon.euiShadowHover;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "euiShadowLarge", {
19
25
  enumerable: true,
20
26
  get: function get() {
@@ -51,7 +57,7 @@ Object.defineProperty(exports, "euiSlightShadowHover", {
51
57
  return _euiThemeCommon.euiSlightShadowHover;
52
58
  }
53
59
  });
54
- exports.useEuiSlightShadowHover = exports.useEuiShadowFlat = exports.useEuiShadow = void 0;
60
+ exports.useEuiSlightShadowHover = exports.useEuiShadowHover = exports.useEuiShadowFlat = exports.useEuiShadow = void 0;
55
61
  var _euiThemeCommon = require("@elastic/eui-theme-common");
56
62
  var _theme = require("../../services/theme");
57
63
  /*
@@ -62,10 +68,15 @@ var _theme = require("../../services/theme");
62
68
  * Side Public License, v 1.
63
69
  */
64
70
 
71
+ /** @deprecated */
72
+
73
+ /** @deprecated use euiShadowHover/useEuiShadowHover instead */
65
74
  var useEuiSlightShadowHover = exports.useEuiSlightShadowHover = function useEuiSlightShadowHover(options) {
66
75
  var euiThemeContext = (0, _theme.useEuiTheme)();
67
76
  return (0, _euiThemeCommon.euiSlightShadowHover)(euiThemeContext, options);
68
77
  };
78
+
79
+ /** @deprecated - useEuiShadow instead */
69
80
  var useEuiShadowFlat = exports.useEuiShadowFlat = function useEuiShadowFlat(options) {
70
81
  var euiThemeContext = (0, _theme.useEuiTheme)();
71
82
  return (0, _euiThemeCommon.euiShadowFlat)(euiThemeContext, options);
@@ -75,4 +86,10 @@ var useEuiShadow = exports.useEuiShadow = function useEuiShadow() {
75
86
  var options = arguments.length > 1 ? arguments[1] : undefined;
76
87
  var euiThemeContext = (0, _theme.useEuiTheme)();
77
88
  return (0, _euiThemeCommon.euiShadow)(euiThemeContext, size, options);
89
+ };
90
+ var useEuiShadowHover = exports.useEuiShadowHover = function useEuiShadowHover() {
91
+ var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'l';
92
+ var options = arguments.length > 1 ? arguments[1] : undefined;
93
+ var euiThemeContext = (0, _theme.useEuiTheme)();
94
+ return (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, size, options);
78
95
  };