@elastic/eui 106.7.0 → 107.0.1

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 (114) 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/badge/beta_badge/beta_badge.js +1 -0
  10. package/es/components/basic_table/basic_table.styles.js +6 -4
  11. package/es/components/bottom_bar/bottom_bar.styles.js +4 -2
  12. package/es/components/code/code_syntax.styles.js +1 -1
  13. package/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  14. package/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  15. package/es/components/flyout/flyout.styles.js +18 -7
  16. package/es/components/header/header.styles.js +3 -1
  17. package/es/components/icon/icon.js +31 -14
  18. package/es/components/icon/icon_map.js +1 -1
  19. package/es/components/page_template/inner/page_inner.styles.js +3 -1
  20. package/es/components/panel/panel.styles.js +6 -6
  21. package/es/components/table/table_row.styles.js +3 -3
  22. package/es/global_styling/mixins/_shadow.js +14 -2
  23. package/es/themes/amsterdam/global_styling/variables/_shadows.js +439 -0
  24. package/es/themes/amsterdam/theme.js +4 -1
  25. package/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
  26. package/es/themes/json/eui_theme_amsterdam_light.json +36 -0
  27. package/es/themes/json/eui_theme_borealis_dark.json +36 -0
  28. package/es/themes/json/eui_theme_borealis_light.json +37 -1
  29. package/eui.d.ts +159 -4
  30. package/lib/components/badge/beta_badge/beta_badge.js +1 -0
  31. package/lib/components/basic_table/basic_table.styles.js +5 -3
  32. package/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
  33. package/lib/components/code/code_syntax.styles.js +1 -1
  34. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  35. package/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  36. package/lib/components/flyout/flyout.styles.js +18 -7
  37. package/lib/components/header/header.styles.js +3 -1
  38. package/lib/components/icon/icon.js +31 -14
  39. package/lib/components/icon/icon_map.js +1 -1
  40. package/lib/components/page_template/inner/page_inner.styles.js +3 -1
  41. package/lib/components/panel/panel.styles.js +5 -5
  42. package/lib/components/table/table_row.styles.js +3 -3
  43. package/lib/global_styling/mixins/_shadow.js +18 -1
  44. package/lib/themes/amsterdam/global_styling/variables/_shadows.js +442 -0
  45. package/lib/themes/amsterdam/theme.js +4 -1
  46. package/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
  47. package/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
  48. package/lib/themes/json/eui_theme_borealis_dark.json +36 -0
  49. package/lib/themes/json/eui_theme_borealis_light.json +37 -1
  50. package/optimize/es/components/badge/beta_badge/beta_badge.js +1 -0
  51. package/optimize/es/components/basic_table/basic_table.styles.js +6 -4
  52. package/optimize/es/components/bottom_bar/bottom_bar.styles.js +4 -2
  53. package/optimize/es/components/code/code_syntax.styles.js +1 -1
  54. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  55. package/optimize/es/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  56. package/optimize/es/components/flyout/flyout.styles.js +18 -7
  57. package/optimize/es/components/header/header.styles.js +3 -1
  58. package/optimize/es/components/icon/icon.js +31 -14
  59. package/optimize/es/components/icon/icon_map.js +1 -1
  60. package/optimize/es/components/page_template/inner/page_inner.styles.js +3 -1
  61. package/optimize/es/components/panel/panel.styles.js +6 -6
  62. package/optimize/es/components/table/table_row.styles.js +3 -3
  63. package/optimize/es/global_styling/mixins/_shadow.js +14 -2
  64. package/optimize/es/themes/amsterdam/global_styling/variables/_shadows.js +436 -0
  65. package/optimize/es/themes/amsterdam/theme.js +4 -1
  66. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +36 -0
  67. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +36 -0
  68. package/optimize/es/themes/json/eui_theme_borealis_dark.json +36 -0
  69. package/optimize/es/themes/json/eui_theme_borealis_light.json +37 -1
  70. package/optimize/lib/components/badge/beta_badge/beta_badge.js +1 -0
  71. package/optimize/lib/components/basic_table/basic_table.styles.js +5 -3
  72. package/optimize/lib/components/bottom_bar/bottom_bar.styles.js +4 -2
  73. package/optimize/lib/components/code/code_syntax.styles.js +1 -1
  74. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  75. package/optimize/lib/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  76. package/optimize/lib/components/flyout/flyout.styles.js +18 -7
  77. package/optimize/lib/components/header/header.styles.js +3 -1
  78. package/optimize/lib/components/icon/icon.js +31 -14
  79. package/optimize/lib/components/icon/icon_map.js +1 -1
  80. package/optimize/lib/components/page_template/inner/page_inner.styles.js +3 -1
  81. package/optimize/lib/components/panel/panel.styles.js +5 -5
  82. package/optimize/lib/components/table/table_row.styles.js +3 -3
  83. package/optimize/lib/global_styling/mixins/_shadow.js +18 -1
  84. package/optimize/lib/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
  85. package/optimize/lib/themes/amsterdam/theme.js +4 -1
  86. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +36 -0
  87. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +36 -0
  88. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +36 -0
  89. package/optimize/lib/themes/json/eui_theme_borealis_light.json +37 -1
  90. package/package/eui.d.ts +33359 -0
  91. package/package.json +5 -5
  92. package/src/themes/amsterdam/global_styling/mixins/_index.scss +1 -1
  93. package/src/themes/amsterdam/global_styling/mixins/_shadow.scss +100 -0
  94. package/src/themes/amsterdam/global_styling/variables/_index.scss +1 -0
  95. package/src/themes/amsterdam/global_styling/variables/_shadows.scss +20 -0
  96. package/test-env/components/badge/beta_badge/beta_badge.js +1 -0
  97. package/test-env/components/basic_table/basic_table.styles.js +5 -3
  98. package/test-env/components/bottom_bar/bottom_bar.styles.js +4 -2
  99. package/test-env/components/code/code_syntax.styles.js +1 -1
  100. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.js +1 -1
  101. package/test-env/components/collapsible_nav_beta/collapsible_nav_beta.styles.js +3 -1
  102. package/test-env/components/flyout/flyout.styles.js +18 -7
  103. package/test-env/components/header/header.styles.js +3 -1
  104. package/test-env/components/icon/icon_map.js +1 -1
  105. package/test-env/components/page_template/inner/page_inner.styles.js +3 -1
  106. package/test-env/components/panel/panel.styles.js +5 -5
  107. package/test-env/components/table/table_row.styles.js +3 -3
  108. package/test-env/global_styling/mixins/_shadow.js +18 -1
  109. package/test-env/themes/amsterdam/global_styling/variables/_shadows.js +440 -0
  110. package/test-env/themes/amsterdam/theme.js +4 -1
  111. package/test-env/themes/json/eui_theme_amsterdam_dark.json +36 -0
  112. package/test-env/themes/json/eui_theme_amsterdam_light.json +36 -0
  113. package/test-env/themes/json/eui_theme_borealis_dark.json +36 -0
  114. package/test-env/themes/json/eui_theme_borealis_light.json +37 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "106.7.0",
4
+ "version": "107.0.1",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -53,8 +53,8 @@
53
53
  "directory": "packages/eui"
54
54
  },
55
55
  "dependencies": {
56
- "@elastic/eui-theme-common": "4.0.0",
57
- "@elastic/prismjs-esql": "^1.1.0",
56
+ "@elastic/eui-theme-common": "5.0.0",
57
+ "@elastic/prismjs-esql": "^1.1.2",
58
58
  "@hello-pangea/dnd": "^16.6.0",
59
59
  "@types/lodash": "^4.14.202",
60
60
  "@types/numeral": "^2.0.5",
@@ -107,7 +107,7 @@
107
107
  "@cypress/webpack-dev-server": "^1.7.0",
108
108
  "@elastic/charts": "^64.1.0",
109
109
  "@elastic/datemath": "^5.0.3",
110
- "@elastic/eui-theme-borealis": "3.5.0",
110
+ "@elastic/eui-theme-borealis": "3.6.0",
111
111
  "@emotion/babel-preset-css-prop": "^11.11.0",
112
112
  "@emotion/cache": "^11.11.0",
113
113
  "@emotion/css": "^11.11.0",
@@ -257,7 +257,7 @@
257
257
  },
258
258
  "peerDependencies": {
259
259
  "@elastic/datemath": "^5.0.2",
260
- "@elastic/eui-theme-borealis": "3.5.0",
260
+ "@elastic/eui-theme-borealis": "3.6.0",
261
261
  "@emotion/css": "11.x",
262
262
  "@emotion/react": "11.x",
263
263
  "@types/react": "^17.0 || ^18.0",
@@ -1,9 +1,9 @@
1
1
  // Import base theme first, then override
2
2
  @import '../../../../global_styling/mixins/responsive';
3
- @import '../../../../global_styling/mixins/shadow';
4
3
  @import '../../../../global_styling/mixins/size';
5
4
  @import '../../../../global_styling/mixins/typography';
6
5
  @import 'typography';
6
+ @import 'shadow';
7
7
  @import '../../../../global_styling/mixins/helpers';
8
8
  @import 'states';
9
9
 
@@ -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;
@@ -111,6 +111,7 @@ var EuiBetaBadge = exports.EuiBetaBadge = function EuiBetaBadge(_ref) {
111
111
  anchorProps: anchorProps
112
112
  }, (0, _react2.jsx)("span", (0, _extends2.default)({
113
113
  tabIndex: 0,
114
+ role: "button",
114
115
  css: cssStyles,
115
116
  className: classes
116
117
  }, rest), icon || label));
@@ -17,9 +17,11 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
17
17
  * Side Public License, v 1.
18
18
  */
19
19
  var tableLoadingLine = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n from {\n ", "\n ", "\n }\n\n 20% {\n ", "\n ", "\n }\n\n 80% {\n ", "\n ", "\n }\n\n 100% {\n ", "\n ", "\n }\n"])), (0, _global_styling.logicalCSS)('left', 0), (0, _global_styling.logicalCSS)('width', 0), (0, _global_styling.logicalCSS)('left', 0), (0, _global_styling.logicalCSS)('width', '40%'), (0, _global_styling.logicalCSS)('left', '60%'), (0, _global_styling.logicalCSS)('width', '40%'), (0, _global_styling.logicalCSS)('left', '100%'), (0, _global_styling.logicalCSS)('width', 0));
20
- var euiBasicTableBodyLoading = exports.euiBasicTableBodyLoading = function euiBasicTableBodyLoading(_ref) {
21
- var euiTheme = _ref.euiTheme;
22
- return /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;&::before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " background-color:", euiTheme.colors.primary, ";animation:", tableLoadingLine, " 1s linear infinite;", _global_styling.euiCantAnimate, "{animation-duration:2s;}};label:euiBasicTableBodyLoading;");
20
+ var euiBasicTableBodyLoading = exports.euiBasicTableBodyLoading = function euiBasicTableBodyLoading(euiThemeContext) {
21
+ var euiTheme = euiThemeContext.euiTheme;
22
+ return /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;&::before{position:absolute;content:'';", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " background-color:", euiTheme.colors.primary, ";animation:", tableLoadingLine, " 1s linear infinite;", _global_styling.euiCantAnimate, "{animation:none;background:repeating-linear-gradient(\n -45deg,\n ", euiTheme.colors.backgroundBasePlain, ",\n ", euiTheme.colors.backgroundBasePlain, " ", euiTheme.size.xs, ",\n ", euiTheme.colors.primary, " ", euiTheme.size.xs, ",\n ", euiTheme.colors.primary, " ", euiTheme.size.s, "\n );", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
23
+ forced: "\n ".concat((0, _global_styling.preventForcedColors)(euiThemeContext), "\n ")
24
+ }), ";}};label:euiBasicTableBodyLoading;");
23
25
  };
24
26
 
25
27
  // Fix to make the loading indicator position correctly in Safari
@@ -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;"),
@@ -56,7 +56,7 @@ var euiCodeSyntaxVariables = exports.euiCodeSyntaxVariables = function euiCodeSy
56
56
  selectorClassColor: euiTheme.components.codeSelectorClassColor,
57
57
  selectorIdColor: euiTheme.components.codeSelectorIdColor,
58
58
  get tokensCss() {
59
- return "\n .token.punctuation:not(.interpolation-punctuation):not([class*='attr-']) {\n opacity: ".concat(highContrastMode ? '1' : '.7', ";\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata,\n .token.coord,\n .token.blockquote {\n color: ").concat(this.commentColor, ";\n font-style: italic;\n }\n\n .token.selector {\n color: ").concat(this.selectorTagColor, ";\n }\n\n .token.string,\n .token.interpolation,\n .token.interpolation-punctuation,\n .token.doc-comment .token.keyword,\n .token.attr-value,\n .token.url .token.content {\n color: ").concat(this.stringColor, ";\n }\n\n .token.number,\n .token.boolean,\n .token.keyword.nil,\n .token.regex,\n .token.variable,\n .token.unit,\n .token.hexcode,\n .token.attr-name,\n .token.attr-equals {\n color: ").concat(this.numberColor, ";\n }\n\n .token.atrule .token.rule,\n .token.keyword {\n color: ").concat(this.keywordColor, ";\n }\n\n .token.function {\n color: ").concat(this.functionTitleColor, ";\n }\n\n .token.tag {\n color: ").concat(this.tagColor, ";\n }\n\n .token.class-name {\n color: ").concat(this.typeColor, ";\n }\n\n .token.property {\n color: ").concat(this.attributeColor, ";\n }\n\n .token.console,\n .token.list-punctuation,\n .token.url-reference,\n .token.url .token.url {\n color: ").concat(this.symbolColor, ";\n }\n\n .token.paramater {\n color: ").concat(this.paramsColor, ";\n }\n\n .token.meta,\n .token.important {\n color: ").concat(this.metaColor, ";\n }\n\n .token.title {\n color: ").concat(this.titleColor, ";\n }\n\n .token.section {\n color: ").concat(this.sectionColor, ";\n }\n\n .token.prefix.inserted,\n .token.prefix.deleted {\n padding-inline-start: -").concat(euiTheme.size.xs, ";\n margin-inline-start: -").concat(euiTheme.size.xs, ";\n }\n\n .token.prefix.inserted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.additionColor, ";\n color: ").concat(this.additionColor, ";\n }\n\n .token.prefix.deleted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.deletionColor, ";\n color: ").concat(this.deletionColor, ";\n }\n\n .token.selector .token.class {\n color: ").concat(this.selectorClassColor, ";\n }\n\n .token.selector .token.id {\n color: ").concat(this.selectorIdColor, ";\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.important,\n .token.bold {\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n\n .token.url-reference,\n .token.url .token.url {\n text-decoration: underline;\n }\n\n .token.entity {\n cursor: help;\n }");
59
+ return "\n .token.punctuation:not(.interpolation-punctuation):not([class*='attr-']) {\n opacity: ".concat(highContrastMode ? '1' : '.7', ";\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata,\n .token.coord,\n .token.blockquote {\n color: ").concat(this.commentColor, ";\n font-style: italic;\n }\n\n .token.selector {\n color: ").concat(this.selectorTagColor, ";\n }\n\n .token.string,\n .token.interpolation,\n .token.interpolation-punctuation,\n .token.doc-comment .token.keyword,\n .token.attr-value,\n .token.url .token.content {\n color: ").concat(this.stringColor, ";\n }\n\n .token.number,\n .token.boolean,\n .token.keyword.nil,\n .token.regex,\n .token.variable,\n .token.unit,\n .token.hexcode,\n .token.attr-name,\n .token.attr-equals {\n color: ").concat(this.numberColor, ";\n }\n\n .token.atrule .token.rule,\n .token.key.atrule,\n .token.keyword {\n color: ").concat(this.keywordColor, ";\n }\n\n .token.function {\n color: ").concat(this.functionTitleColor, ";\n }\n\n .token.tag {\n color: ").concat(this.tagColor, ";\n }\n\n .token.class-name {\n color: ").concat(this.typeColor, ";\n }\n\n .token.property {\n color: ").concat(this.attributeColor, ";\n }\n\n .token.console,\n .token.list-punctuation,\n .token.url-reference,\n .token.url .token.url {\n color: ").concat(this.symbolColor, ";\n }\n\n .token.paramater {\n color: ").concat(this.paramsColor, ";\n }\n\n .token.meta,\n .token.important {\n color: ").concat(this.metaColor, ";\n }\n\n .token.title {\n color: ").concat(this.titleColor, ";\n }\n\n .token.section {\n color: ").concat(this.sectionColor, ";\n }\n\n .token.prefix.inserted,\n .token.prefix.deleted {\n padding-inline-start: -").concat(euiTheme.size.xs, ";\n margin-inline-start: -").concat(euiTheme.size.xs, ";\n }\n\n .token.prefix.inserted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.additionColor, ";\n color: ").concat(this.additionColor, ";\n }\n\n .token.prefix.deleted {\n box-shadow: -").concat(euiTheme.size.xs, " 0 ").concat(this.deletionColor, ";\n color: ").concat(this.deletionColor, ";\n }\n\n .token.selector .token.class {\n color: ").concat(this.selectorClassColor, ";\n }\n\n .token.selector .token.id {\n color: ").concat(this.selectorIdColor, ";\n }\n\n .token.italic {\n font-style: italic;\n }\n\n .token.important,\n .token.bold {\n font-weight: ").concat(euiTheme.font.weight.bold, ";\n }\n\n .token.url-reference,\n .token.url .token.url {\n text-decoration: underline;\n }\n\n .token.entity {\n cursor: help;\n }");
60
60
  }
61
61
  };
62
62
  };
@@ -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;"),
@@ -507,7 +507,7 @@ var typeToPathMap = exports.typeToPathMap = {
507
507
  vulnerabilityManagementApp: 'app_vulnerability_management',
508
508
  warning: 'warning',
509
509
  warningFilled: 'warning',
510
- // NOTE: To be deprecated in favor of `export`
510
+ // NOTE: To be deprecated in favor of `warning`
511
511
  watchesApp: 'app_watches',
512
512
  web: 'web',
513
513
  wordWrap: 'wordWrap',
@@ -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;")
@@ -53,7 +53,7 @@ var euiTableRowStyles = exports.euiTableRowStyles = function euiTableRowStyles(e
53
53
  * Right column styles + border
54
54
  * Used for cell actions and row expander arrow
55
55
  */
56
- hasRightColumn: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', mobileSizes.actions.width), " &::after{content:'';position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('right', mobileSizes.actions.width), " ", (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";};label:hasRightColumn;"),
56
+ hasRightColumn: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', mobileSizes.actions.width), " &::before{content:'';position:absolute;", (0, _global_styling.logicalCSS)('vertical', 0), " ", (0, _global_styling.logicalCSS)('right', mobileSizes.actions.width), " ", (0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";};label:hasRightColumn;"),
57
57
  /**
58
58
  * Bottom of card - expanded rows
59
59
  */
@@ -61,8 +61,8 @@ var euiTableRowStyles = exports.euiTableRowStyles = function euiTableRowStyles(e
61
61
  // On mobile, visually move the expanded row to join up with the
62
62
  // preceding table row via negative margins
63
63
  'margin-top', (0, _global_styling.mathWithUnits)([cellContentPadding, euiTheme.border.width.thin], function (x, y) {
64
- return (x + y) * -1;
65
- })), (0, _global_styling.logicalCSS)('padding-left', cellContentPadding), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.logicalCSS)('border-top-left-radius', 0), " ", (0, _global_styling.logicalCSS)('border-top-right-radius', 0), ">.euiTableRowCell{", (0, _global_styling.logicalCSS)('width', '100%'), ";}", expandedAnimationCss, ";;label:expanded;")
64
+ return (x + y * 2) * -1;
65
+ })), (0, _global_styling.logicalCSS)('padding-left', cellContentPadding), " ", (0, _global_styling.logicalCSS)('border-top', euiTheme.border.thin), " ", (0, _global_styling.logicalCSS)('border-top-left-radius', 0), " ", (0, _global_styling.logicalCSS)('border-top-right-radius', 0), " &:after{", (0, _global_styling.logicalCSS)('border-top', 'none'), ";}clip-path:polygon(-50% 0, 150% 0, 150% 100vh, -50% 100vh);>.euiTableRowCell{", (0, _global_styling.logicalCSS)('width', '100%'), ";}", expandedAnimationCss, ";;label:expanded;")
66
66
  }
67
67
  };
68
68
  };
@@ -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
  };