@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
@@ -136,6 +136,42 @@
136
136
  },
137
137
  "euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
138
138
  "euiShadowColor": "#000000",
139
+ "euiShadows": {
140
+ "xs": {
141
+ "down": "0px 0.8px 0.8px 0px hsla(0,0%,0%,0.14), 0px 2.3px 2px 0px hsla(0,0%,0%,0.105)",
142
+ "up": "0px 0.8px 0.8px 0px hsla(0,0%,0%,0.14), 0px -2.3px 2px 0px hsla(0,0%,0%,0.105)"
143
+ },
144
+ "s": {
145
+ "down": "0px 0.7px 1.4px 0px hsla(0,0%,0%,0.245), 0px 1.9px 4px 0px hsla(0,0%,0%,0.175), 0px 4.5px 10px 0px hsla(0,0%,0%,0.175)",
146
+ "up": "0px 0.7px 1.4px 0px hsla(0,0%,0%,0.245), 0px -1.9px 4px 0px hsla(0,0%,0%,0.175), 0px -4.5px 10px 0px hsla(0,0%,0%,0.175)"
147
+ },
148
+ "m": {
149
+ "down": "0px 0.9px 4px 0px hsla(0,0%,0%,0.28), 0px 2.6px 8px 0px hsla(0,0%,0%,0.21), 0px 5.7px 12px 0px hsla(0,0%,0%,0.175), 0px 15px 15px 0px hsla(0,0%,0%,0.14)",
150
+ "up": "0px 0.9px 4px 0px hsla(0,0%,0%,0.28), 0px -2.6px 8px 0px hsla(0,0%,0%,0.21), 0px -5.7px 12px 0px hsla(0,0%,0%,0.175), 0px -15px 15px 0px hsla(0,0%,0%,0.14)"
151
+ },
152
+ "l": {
153
+ "down": "0px 1px 5px 0px hsla(0,0%,0%,0.350), 0px 3.6px 13px 0px hsla(0,0%,0%,0.245), 0px 8.4px 23px 0px hsla(0,0%,0%,0.21), 0px 23px 35px 0px hsla(0,0%,0%,0.175)",
154
+ "up": "0px 1px 5px 0px hsla(0,0%,0%,0.350), 0px -3.6px 13px 0px hsla(0,0%,0%,0.245), 0px -8.4px 23px 0px hsla(0,0%,0%,0.21), 0px -23px 35px 0px hsla(0,0%,0%,0.175)"
155
+ },
156
+ "xl": {
157
+ "down": "0px 2.7px 9px 0px hsla(0,0%,0%,0.455), 0px 9.4px 24px 0px hsla(0,0%,0%,0.315), 0px 21.8px 43px 0px hsla(0,0%,0%,0.28)",
158
+ "up": "0px 2.7px 9px 0px hsla(0,0%,0%,0.455), 0px -9.4px 24px 0px hsla(0,0%,0%,0.315), 0px -21.8px 43px 0px hsla(0,0%,0%,0.28)"
159
+ },
160
+ "hover": {
161
+ "base": {
162
+ "down": "0px 1.9px 4px 0px hsla(0,0%,0%,0.175), 0px 4.5px 10px 0px hsla(0,0%,0%,0.175)",
163
+ "up": "0px 1.9px 4px 0px hsla(0,0%,0%,0.175), 0px -4.5px 10px 0px hsla(0,0%,0%,0.175)"
164
+ },
165
+ "xl": {
166
+ "down": "none",
167
+ "up": "none"
168
+ }
169
+ },
170
+ "flat": {
171
+ "down": "0px 0px 0.8px 0px hsla(0,0%,0%,0.21), 0px 0px 2px 0px hsla(0,0%,0%,0.14), 0px 0px 5px 0px hsla(0,0%,0%,0.14), 0px 0px 17px 0px hsla(0,0%,0%,0.105)",
172
+ "up": "0px 0px 0.8px 0px hsla(0,0%,0%,0.21), 0px 0px 2px 0px hsla(0,0%,0%,0.14), 0px 0px 5px 0px hsla(0,0%,0%,0.14), 0px 0px 17px 0px hsla(0,0%,0%,0.105)"
173
+ }
174
+ },
139
175
  "euiSize": "16px",
140
176
  "euiSizeXS": "4px",
141
177
  "euiSizeS": "8px",
@@ -137,6 +137,42 @@ declare module '@elastic/eui/dist/eui_theme_amsterdam_dark.json' {
137
137
  };
138
138
  euiBreakpointKeys: string;
139
139
  euiShadowColor: string;
140
+ euiShadows: {
141
+ xs: {
142
+ down: string;
143
+ up: string;
144
+ };
145
+ s: {
146
+ down: string;
147
+ up: string;
148
+ };
149
+ m: {
150
+ down: string;
151
+ up: string;
152
+ };
153
+ l: {
154
+ down: string;
155
+ up: string;
156
+ };
157
+ xl: {
158
+ down: string;
159
+ up: string;
160
+ };
161
+ hover: {
162
+ base: {
163
+ down: string;
164
+ up: string;
165
+ };
166
+ xl: {
167
+ down: string;
168
+ up: string;
169
+ };
170
+ };
171
+ flat: {
172
+ down: string;
173
+ up: string;
174
+ };
175
+ };
140
176
  euiSize: string;
141
177
  euiSizeXS: string;
142
178
  euiSizeS: string;
@@ -136,6 +136,42 @@
136
136
  },
137
137
  "euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
138
138
  "euiShadowColor": "#000000",
139
+ "euiShadows": {
140
+ "xs": {
141
+ "down": "0px 0.8px 0.8px 0px hsla(0,0%,0%,0.04), 0px 2.3px 2px 0px hsla(0,0%,0%,0.03)",
142
+ "up": "0px 0.8px 0.8px 0px hsla(0,0%,0%,0.04), 0px -2.3px 2px 0px hsla(0,0%,0%,0.03)"
143
+ },
144
+ "s": {
145
+ "down": "0px 0.7px 1.4px 0px hsla(0,0%,0%,0.07), 0px 1.9px 4px 0px hsla(0,0%,0%,0.05), 0px 4.5px 10px 0px hsla(0,0%,0%,0.05)",
146
+ "up": "0px 0.7px 1.4px 0px hsla(0,0%,0%,0.07), 0px -1.9px 4px 0px hsla(0,0%,0%,0.05), 0px -4.5px 10px 0px hsla(0,0%,0%,0.05)"
147
+ },
148
+ "m": {
149
+ "down": "0px 0.9px 4px 0px hsla(0,0%,0%,0.08), 0px 2.6px 8px 0px hsla(0,0%,0%,0.06), 0px 5.7px 12px 0px hsla(0,0%,0%,0.05), 0px 15px 15px 0px hsla(0,0%,0%,0.04)",
150
+ "up": "0px 0.9px 4px 0px hsla(0,0%,0%,0.08), 0px -2.6px 8px 0px hsla(0,0%,0%,0.06), 0px -5.7px 12px 0px hsla(0,0%,0%,0.05), 0px -15px 15px 0px hsla(0,0%,0%,0.04)"
151
+ },
152
+ "l": {
153
+ "down": "0px 1px 5px 0px hsla(0,0%,0%,0.1), 0px 3.6px 13px 0px hsla(0,0%,0%,0.07), 0px 8.4px 23px 0px hsla(0,0%,0%,0.06), 0px 23px 35px 0px hsla(0,0%,0%,0.05)",
154
+ "up": "0px 1px 5px 0px hsla(0,0%,0%,0.1), 0px -3.6px 13px 0px hsla(0,0%,0%,0.07), 0px -8.4px 23px 0px hsla(0,0%,0%,0.06), 0px -23px 35px 0px hsla(0,0%,0%,0.05)"
155
+ },
156
+ "xl": {
157
+ "down": "0px 2.7px 9px 0px hsla(0,0%,0%,0.13), 0px 9.4px 24px 0px hsla(0,0%,0%,0.09), 0px 21.8px 43px 0px hsla(0,0%,0%,0.08)",
158
+ "up": "0px 2.7px 9px 0px hsla(0,0%,0%,0.13), 0px -9.4px 24px 0px hsla(0,0%,0%,0.09), 0px -21.8px 43px 0px hsla(0,0%,0%,0.08)"
159
+ },
160
+ "hover": {
161
+ "base": {
162
+ "down": "0px 1.9px 4px 0px hsla(0,0%,0%,0.05), 0px 4.5px 10px 0px hsla(0,0%,0%,0.05)",
163
+ "up": "0px 1.9px 4px 0px hsla(0,0%,0%,0.05), 0px -4.5px 10px 0px hsla(0,0%,0%,0.05)"
164
+ },
165
+ "xl": {
166
+ "down": "none",
167
+ "up": "none"
168
+ }
169
+ },
170
+ "flat": {
171
+ "down": "0px 0px 0.8px 0px hsla(0,0%,0%,0.06), 0px 0px 2px 0px hsla(0,0%,0%,0.04), 0px 0px 5px 0px hsla(0,0%,0%,0.04), 0px 0px 17px 0px hsla(0,0%,0%,0.03)",
172
+ "up": "0px 0px 0.8px 0px hsla(0,0%,0%,0.06), 0px 0px 2px 0px hsla(0,0%,0%,0.04), 0px 0px 5px 0px hsla(0,0%,0%,0.04), 0px 0px 17px 0px hsla(0,0%,0%,0.03)"
173
+ }
174
+ },
139
175
  "euiSize": "16px",
140
176
  "euiSizeXS": "4px",
141
177
  "euiSizeS": "8px",
@@ -137,6 +137,42 @@ declare module '@elastic/eui/dist/eui_theme_amsterdam_light.json' {
137
137
  };
138
138
  euiBreakpointKeys: string;
139
139
  euiShadowColor: string;
140
+ euiShadows: {
141
+ xs: {
142
+ down: string;
143
+ up: string;
144
+ };
145
+ s: {
146
+ down: string;
147
+ up: string;
148
+ };
149
+ m: {
150
+ down: string;
151
+ up: string;
152
+ };
153
+ l: {
154
+ down: string;
155
+ up: string;
156
+ };
157
+ xl: {
158
+ down: string;
159
+ up: string;
160
+ };
161
+ hover: {
162
+ base: {
163
+ down: string;
164
+ up: string;
165
+ };
166
+ xl: {
167
+ down: string;
168
+ up: string;
169
+ };
170
+ };
171
+ flat: {
172
+ down: string;
173
+ up: string;
174
+ };
175
+ };
140
176
  euiSize: string;
141
177
  euiSizeXS: string;
142
178
  euiSizeS: string;
@@ -136,6 +136,42 @@
136
136
  },
137
137
  "euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
138
138
  "euiShadowColor": "#000000",
139
+ "euiShadows": {
140
+ "xs": {
141
+ "down": "0px 1px 4px 0px hsla(0,0%,0%,0.4), 0px 2px 8px 0px hsla(0,0%,0%,0.24)",
142
+ "up": "0px 1px 4px 0px hsla(0,0%,0%,0.4), 0px -2px 8px 0px hsla(0,0%,0%,0.24)"
143
+ },
144
+ "s":{
145
+ "down": "0px 2px 7px 0px hsla(0,0%,0%,0.46), 0px 4px 11px 0px hsla(0,0%,0%,0.26)",
146
+ "up": "0px 2px 7px 0px hsla(0,0%,0%,0.46), 0px -4px 11px 0px hsla(0,0%,0%,0.26)"
147
+ },
148
+ "m": {
149
+ "down": "0px 3px 10px 0px hsla(0,0%,0%,0.52), 0px 6px 14px 0px hsla(0,0%,0%,0.28)",
150
+ "up": "0px 3px 10px 0px hsla(0,0%,0%,0.52), 0px -6px 14px 0px hsla(0,0%,0%,0.28)"
151
+ },
152
+ "l": {
153
+ "down": "0px 4px 13px 0px hsla(0,0%,0%,0.58), 0px 8px 17px 0px hsla(0,0%,0%,0.3)",
154
+ "up": "0px 4px 13px 0px hsla(0,0%,0%,0.58), 0px -8px 17px 0px hsla(0,0%,0%,0.3)"
155
+ },
156
+ "xl": {
157
+ "down": "0px 5px 16px 0px hsla(0,0%,0%,0.64), 0px 10px 20px 0px hsla(0,0%,0%,0.32)",
158
+ "up": "0px 5px 16px 0px hsla(0,0%,0%,0.64), 0px -10px 20px 0px hsla(0,0%,0%,0.32)"
159
+ },
160
+ "hover": {
161
+ "base": {
162
+ "down": "0px 2px 7px 0px hsla(0,0%,0%,0.46), 0px 4px 11px 0px hsla(0,0%,0%,0.26)",
163
+ "up": "0px -2px 7px 0px hsla(0,0%,0%,0.46), 0px -4px 11px 0px hsla(0,0%,0%,0.26)"
164
+ },
165
+ "xl": {
166
+ "down": "0px 6px 19px 0px hsla(0,0%,0%,0.7), 0px 12px 23px 0px hsla(0,0%,0%,0.34)",
167
+ "up": "0px -6px 19px 0px hsla(0,0%,0%,0.7), 0px -12px 23px 0px hsla(0,0%,0%,0.34)"
168
+ }
169
+ },
170
+ "flat": {
171
+ "down": "0px 1px 4px 0px hsla(0,0%,0%,0.4), 0px 2px 8px 0px hsla(0,0%,0%,0.24)",
172
+ "up": "0px 1px 4px 0px hsla(0,0%,0%,0.4), 0px -2px 8px 0px hsla(0,0%,0%,0.24)"
173
+ }
174
+ },
139
175
  "euiSize": "16px",
140
176
  "euiSizeXS": "4px",
141
177
  "euiSizeS": "8px",
@@ -137,6 +137,42 @@ declare module '@elastic/eui/dist/eui_theme_borealis_dark.json' {
137
137
  };
138
138
  euiBreakpointKeys: string;
139
139
  euiShadowColor: string;
140
+ euiShadows: {
141
+ xs: {
142
+ down: string;
143
+ up: string;
144
+ };
145
+ s: {
146
+ down: string;
147
+ up: string;
148
+ };
149
+ m: {
150
+ down: string;
151
+ up: string;
152
+ };
153
+ l: {
154
+ down: string;
155
+ up: string;
156
+ };
157
+ xl: {
158
+ down: string;
159
+ up: string;
160
+ };
161
+ hover: {
162
+ base: {
163
+ down: string;
164
+ up: string;
165
+ };
166
+ xl: {
167
+ down: string;
168
+ up: string;
169
+ };
170
+ };
171
+ flat: {
172
+ down: string;
173
+ up: string;
174
+ };
175
+ };
140
176
  euiSize: string;
141
177
  euiSizeXS: string;
142
178
  euiSizeS: string;
@@ -135,7 +135,43 @@
135
135
  "xl": "1200px"
136
136
  },
137
137
  "euiBreakpointKeys": "'xs', 's', 'm', 'l', 'xl'",
138
- "euiShadowColor": "#000000",
138
+ "euiShadowColor": "#2B394F",
139
+ "euiShadows": {
140
+ "xs": {
141
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px 2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)",
142
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px -2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)"
143
+ },
144
+ "s": {
145
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 2px 7px 0px hsl(216.67deg 29.51% 23.92% / 0.08), 0px 4px 11px 0px hsl(216.67deg 29.51% 23.92% / 0.05)",
146
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -2px 7px 0px hsl(216.67deg 29.51% 23.92% / 0.08), 0px -4px 11px 0px hsl(216.67deg 29.51% 23.92% / 0.05)"
147
+ },
148
+ "m": {
149
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 3px 10px 0px hsl(216.67deg 29.51% 23.92% / 0.1), 0px 6px 14px 0px hsl(216.67deg 29.51% 23.92% / 0.06)",
150
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -3px 10px 0px hsl(216.67deg 29.51% 23.92% / 0.1), 0px -6px 14px 0px hsl(216.67deg 29.51% 23.92% / 0.06)"
151
+ },
152
+ "l": {
153
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 4px 13px 0px hsl(216.67deg 29.51% 23.92% / 0.12), 0px 8px 17px 0px hsl(216.67deg 29.51% 23.92% / 0.07)",
154
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -4px 13px 0px hsl(216.67deg 29.51% 23.92% / 0.12), 0px -8px 17px 0px hsl(216.67deg 29.51% 23.92% / 0.07)"
155
+ },
156
+ "xl": {
157
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 5px 16px 0px hsl(216.67deg 29.51% 23.92% / 0.14), 0px 10px 20px 0px hsl(216.67deg 29.51% 23.92% / 0.08)",
158
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -5px 16px 0px hsl(216.67deg 29.51% 23.92% / 0.14), 0px -10px 20px 0px hsl(216.67deg 29.51% 23.92% / 0.08)"
159
+ },
160
+ "hover": {
161
+ "base": {
162
+ "down": "0px 0px 2px 0px hsla(216.67,29.51%,23.92%,0.16), 0px 2px 7px 0px hsla(216.67,29.51%,23.92%,0.08), 0px 4px 11px 0px hsla(216.67,29.51%,23.92%,0.05)",
163
+ "up": "0px 0px 2px 0px hsla(216.67,29.51%,23.92%,0.16), 0px -2px 7px 0px hsla(216.67,29.51%,23.92%,0.08), 0px -4px 11px 0px hsla(216.67,29.51%,23.92%,0.05)"
164
+ },
165
+ "xl": {
166
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 6px 19px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 12px 23px 0px hsl(216.67deg 29.51% 23.92% / 0.09)",
167
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -6px 19px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -12px 23px 0px hsl(216.67deg 29.51% 23.92% / 0.09)"
168
+ }
169
+ },
170
+ "flat": {
171
+ "down": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px 1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px 2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)",
172
+ "up": "0px 0px 2px 0px hsl(216.67deg 29.51% 23.92% / 0.16), 0px -1px 4px 0px hsl(216.67deg 29.51% 23.92% / 0.06), 0px -2px 8px 0px hsl(216.67deg 29.51% 23.92% / 0.04)"
173
+ }
174
+ },
139
175
  "euiSize": "16px",
140
176
  "euiSizeXS": "4px",
141
177
  "euiSizeS": "8px",
@@ -137,6 +137,42 @@ declare module '@elastic/eui/dist/eui_theme_borealis_light.json' {
137
137
  };
138
138
  euiBreakpointKeys: string;
139
139
  euiShadowColor: string;
140
+ euiShadows: {
141
+ xs: {
142
+ down: string;
143
+ up: string;
144
+ };
145
+ s: {
146
+ down: string;
147
+ up: string;
148
+ };
149
+ m: {
150
+ down: string;
151
+ up: string;
152
+ };
153
+ l: {
154
+ down: string;
155
+ up: string;
156
+ };
157
+ xl: {
158
+ down: string;
159
+ up: string;
160
+ };
161
+ hover: {
162
+ base: {
163
+ down: string;
164
+ up: string;
165
+ };
166
+ xl: {
167
+ down: string;
168
+ up: string;
169
+ };
170
+ };
171
+ flat: {
172
+ down: string;
173
+ up: string;
174
+ };
175
+ };
140
176
  euiSize: string;
141
177
  euiSizeXS: string;
142
178
  euiSizeS: string;
@@ -19,8 +19,10 @@ export var euiBottomBarStyles = function euiBottomBarStyles(euiThemeContext) {
19
19
  // Base
20
20
  // `color` is inherited from the wrapping `EuiThemeProvider colorMode="dark"`
21
21
  euiBottomBar: /*#__PURE__*/css("background-color:", euiTheme.components.bottomBarBackground, ";", logicalCSS('border-top', euiTheme.border.thin), " ", highContrastModeStyles(euiThemeContext, {
22
- none: euiShadowFlat(euiThemeContext)
23
- }), " ", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
22
+ none: euiShadowFlat(euiThemeContext, {
23
+ border: 'none'
24
+ })
25
+ }), "clip-path:polygon(0 -100vh, 100% -100vh, 100% 100%, 0 100%);", euiCanAnimate, "{animation:", euiBottomBarAppear, " ", euiTheme.animation.slow, " ", euiTheme.animation.resistance, ";};label:euiBottomBar;"),
24
26
  static: /*#__PURE__*/css(";label:static;"),
25
27
  // Default
26
28
  fixed: /*#__PURE__*/css("position:fixed;z-index:", Number(euiTheme.levels.header) - 2, ";;label:fixed;"),
@@ -151,7 +151,7 @@ var _EuiCollapsibleNavBeta = function _EuiCollapsibleNavBeta(_ref) {
151
151
  }, [_focusTrapProps]);
152
152
  var classes = classNames('euiCollapsibleNav', 'euiCollapsibleNavBeta', className);
153
153
  var styles = useEuiMemoizedStyles(euiCollapsibleNavBetaStyles);
154
- var cssStyles = [styles.euiCollapsibleNavBeta, styles[side], isPush && styles.isPush, isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
154
+ var cssStyles = [styles.euiCollapsibleNavBeta, isPush && styles.isPush, styles[side], isPush && isCollapsed && styles.isPushCollapsed, isOverlayFullWidth && styles.isOverlayFullWidth];
155
155
  var flyout = ___EmotionJSX(EuiFlyout, _extends({
156
156
  "aria-label": defaultAriaLabel
157
157
  }, rest, {
@@ -23,7 +23,9 @@ export var euiCollapsibleNavBetaStyles = function euiCollapsibleNavBetaStyles(eu
23
23
  euiCollapsibleNavBeta: /*#__PURE__*/css(logicalCSS('top', fixedHeaderOffset), logicalCSS('padding-bottom', euiTheme.size.xs), ";;label:euiCollapsibleNavBeta;"),
24
24
  left: /*#__PURE__*/css(logicalCSS('border-right', euiTheme.border.thin), ";;label:left;"),
25
25
  right: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), ";;label:right;"),
26
- isPush: /*#__PURE__*/css(euiShadowFlat(euiThemeContext), ";;label:isPush;"),
26
+ isPush: /*#__PURE__*/css(euiShadowFlat(euiThemeContext, {
27
+ border: 'none'
28
+ }), ";;label:isPush;"),
27
29
  isPushCollapsed: /*#__PURE__*/css(hideScrollbars, ";;label:isPushCollapsed;"),
28
30
  isOverlayFullWidth: /*#__PURE__*/css("&.euiFlyout{", logicalCSS('max-width', '100% !important'), ";};label:isOverlayFullWidth;")
29
31
  };
@@ -24,9 +24,16 @@ var _ref = process.env.NODE_ENV === "production" ? {
24
24
  styles: "animation-duration:0s!important;label:noAnimation;",
25
25
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
26
26
  };
27
+ var _ref2 = process.env.NODE_ENV === "production" ? {
28
+ name: "rks1ev-overlay",
29
+ styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;"
30
+ } : {
31
+ name: "rks1ev-overlay",
32
+ styles: "&:has(.euiResizableButton){border-inline:none;};label:overlay;",
33
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
34
+ };
27
35
  export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
28
- var euiTheme = euiThemeContext.euiTheme,
29
- colorMode = euiThemeContext.colorMode;
36
+ var euiTheme = euiThemeContext.euiTheme;
30
37
  return {
31
38
  euiFlyout: /*#__PURE__*/css("position:fixed;", logicalCSS('bottom', 0), " ", logicalCSS('top', 'var(--euiFixedHeadersOffset, 0)'), " ", 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;"),
32
39
  // Flyout sizes
@@ -41,11 +48,15 @@ export var euiFlyoutStyles = function euiFlyoutStyles(euiThemeContext) {
41
48
  left: /*#__PURE__*/css(logicalCSS('left', 0), " clip-path:polygon(0 0, 150% 0, 150% 100%, 0 100%);", euiCanAnimate, "{animation:", euiFlyoutSlideInLeft, " ", euiTheme.animation.normal, " ", euiTheme.animation.resistance, ";};label:left;"),
42
49
  // Type
43
50
  overlay: {
44
- overlay: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext, {
45
- borderAllInHighContrastMode: true
46
- }), " &:has(.euiResizableButton){border-inline:none;};label:overlay;"),
47
- left: /*#__PURE__*/css("border-inline-end:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:left;"),
48
- right: /*#__PURE__*/css("border-inline-start:", colorMode === 'DARK' ? "".concat(euiTheme.border.width.thin, " solid\n ").concat(euiTheme.colors.borderBaseFloating) : 'none', ";;label:right;")
51
+ overlay: _ref2,
52
+ left: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext, {
53
+ borderAllInHighContrastMode: true,
54
+ border: 'right'
55
+ }), ";;label:left;"),
56
+ right: /*#__PURE__*/css(euiShadowXLarge(euiThemeContext, {
57
+ borderAllInHighContrastMode: true,
58
+ border: 'left'
59
+ }), ";;label:right;")
49
60
  },
50
61
  push: {
51
62
  push: /*#__PURE__*/css("clip-path:none;z-index:", Number(euiTheme.levels.flyout) - 1, ";;label:push;"),
@@ -24,7 +24,9 @@ export var euiHeaderStyles = function euiHeaderStyles(euiThemeContext) {
24
24
  height = _euiHeaderVariables.height,
25
25
  padding = _euiHeaderVariables.padding;
26
26
  return {
27
- euiHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;", logicalCSS('height', height), " ", logicalCSS('padding-horizontal', padding), " ", logicalCSS('border-bottom', euiTheme.border.thin), " ", euiShadowXSmall(euiThemeContext), ";;label:euiHeader;"),
27
+ euiHeader: /*#__PURE__*/css("display:flex;justify-content:space-between;", logicalCSS('height', height), " ", logicalCSS('padding-horizontal', padding), " ", logicalCSS('border-bottom', euiTheme.border.thin), " ", euiShadowXSmall(euiThemeContext, {
28
+ border: 'none'
29
+ }), "&+.euiHeader{clip-path:polygon(0 0, 100% 0, 100% 100vh, 0 100vh);};label:euiHeader;"),
28
30
  // Position
29
31
  static: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) - 1, ";position:relative;;label:static;"),
30
32
  fixed: /*#__PURE__*/css("z-index:", Number(euiTheme.levels.header) + 1, ";position:fixed;", logicalCSS('top', 0), " ", logicalCSS('horizontal', 0), ";;label:fixed;"),
@@ -13,7 +13,9 @@ export var euiPageInnerStyles = function euiPageInnerStyles(euiThemeContext) {
13
13
  var euiTheme = euiThemeContext.euiTheme;
14
14
  return {
15
15
  euiPageInner: /*#__PURE__*/css("display:flex;flex-direction:column;align-items:stretch;flex:1 1 100%;", logicalCSS('max-width', '100%'), " ", logicalCSS('min-width', '0'), ";;label:euiPageInner;"),
16
- panelled: /*#__PURE__*/css("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", euiShadow(euiThemeContext, 'm'), ";;label:panelled;"),
16
+ panelled: /*#__PURE__*/css("background:", euiThemeContext.euiTheme.colors.backgroundBasePlain, ";", euiShadow(euiThemeContext, 'm', {
17
+ border: 'none'
18
+ }), ";;label:panelled;"),
17
19
  border: {
18
20
  top: /*#__PURE__*/css(logicalCSS('border-top', euiTheme.border.thin), ";;label:top;"),
19
21
  left: /*#__PURE__*/css(logicalCSS('border-left', euiTheme.border.thin), ";;label:left;")
@@ -8,7 +8,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
8
8
  */
9
9
 
10
10
  import { css } from '@emotion/react';
11
- import { euiShadow } from '@elastic/eui-theme-common';
11
+ import { euiBorderStyles, euiShadow, euiShadowHover } from '@elastic/eui-theme-common';
12
12
  import { euiCanAnimate, logicalCSS, logicalTextAlignCSS } from '../../global_styling';
13
13
  import { highContrastModeStyles } from '../../global_styling/functions/high_contrast';
14
14
  export var euiPanelBorderStyles = function euiPanelBorderStyles(euiThemeContext, options) {
@@ -23,7 +23,9 @@ export var euiPanelBorderStyles = function euiPanelBorderStyles(euiThemeContext,
23
23
  euiTheme.colors.borderBaseFloating is enough then */
24
24
  var hasVisibleBorder = hasFloatingBorder && colorMode === 'DARK';
25
25
  return highContrastModeStyles(euiThemeContext, {
26
- 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 "),
26
+ 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(euiBorderStyles(euiThemeContext, {
27
+ borderColor: (borderColor !== null && borderColor !== void 0 ? borderColor : hasVisibleBorder) ? euiTheme.border.color : euiTheme.colors.borderBaseFloating
28
+ }), "\n "),
27
29
  preferred: "\n border: ".concat(euiTheme.border.thin, ";\n ")
28
30
  });
29
31
  };
@@ -49,9 +51,7 @@ export var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
49
51
  // Base
50
52
  euiPanel: _ref2,
51
53
  grow: _ref,
52
- hasShadow: /*#__PURE__*/css(euiShadow(euiThemeContext, 'm'), " ", euiPanelBorderStyles(euiThemeContext, {
53
- hasFloatingBorder: false
54
- }), ";;label:hasShadow;"),
54
+ hasShadow: /*#__PURE__*/css(euiShadow(euiThemeContext, 'm'), ";;label:hasShadow;"),
55
55
  hasBorder: /*#__PURE__*/css(euiPanelBorderStyles(euiThemeContext, {
56
56
  borderColor: euiTheme.border.color,
57
57
  hasFloatingBorder: false
@@ -62,7 +62,7 @@ export var euiPanelStyles = function euiPanelStyles(euiThemeContext) {
62
62
  },
63
63
  // Setup interactive behavior
64
64
  isClickable: /*#__PURE__*/css(euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ",transform ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", logicalCSS('width', '100%'), " ", logicalTextAlignCSS('left'), ";}&:hover,&:focus{", highContrastModeStyles(euiThemeContext, {
65
- none: euiShadow(euiThemeContext, 'l'),
65
+ none: euiShadowHover(euiThemeContext, 'l'),
66
66
  // Windows high contrast themes ignore box-shadows - use a filter workaround instead
67
67
  preferred: "\n &:not(.euiPanel--transparent) {\n filter: drop-shadow(0 ".concat(euiTheme.border.width.thick, " 0 ").concat(euiTheme.border.color, ");\n }\n ")
68
68
  }), " transform:translateY(-2px);cursor:pointer;};label:isClickable;")
@@ -6,13 +6,19 @@
6
6
  * Side Public License, v 1.
7
7
  */
8
8
 
9
- import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge } from '@elastic/eui-theme-common';
9
+ import { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, euiShadowHover } from '@elastic/eui-theme-common';
10
10
  import { useEuiTheme } from '../../services/theme';
11
- export { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge };
11
+ export { euiShadowFlat, euiShadow, euiSlightShadowHover, euiShadowXSmall, euiShadowSmall, euiShadowMedium, euiShadowLarge, euiShadowXLarge, euiShadowHover };
12
+
13
+ /** @deprecated */
14
+
15
+ /** @deprecated use euiShadowHover/useEuiShadowHover instead */
12
16
  export var useEuiSlightShadowHover = function useEuiSlightShadowHover(options) {
13
17
  var euiThemeContext = useEuiTheme();
14
18
  return euiSlightShadowHover(euiThemeContext, options);
15
19
  };
20
+
21
+ /** @deprecated - useEuiShadow instead */
16
22
  export var useEuiShadowFlat = function useEuiShadowFlat(options) {
17
23
  var euiThemeContext = useEuiTheme();
18
24
  return euiShadowFlat(euiThemeContext, options);
@@ -22,4 +28,10 @@ export var useEuiShadow = function useEuiShadow() {
22
28
  var options = arguments.length > 1 ? arguments[1] : undefined;
23
29
  var euiThemeContext = useEuiTheme();
24
30
  return euiShadow(euiThemeContext, size, options);
31
+ };
32
+ export var useEuiShadowHover = function useEuiShadowHover() {
33
+ var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'l';
34
+ var options = arguments.length > 1 ? arguments[1] : undefined;
35
+ var euiThemeContext = useEuiTheme();
36
+ return euiShadowHover(euiThemeContext, size, options);
25
37
  };