@elastic/eui 62.2.2 → 63.0.2

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 (222) hide show
  1. package/dist/eui_theme_dark.css +3 -270
  2. package/dist/eui_theme_dark.min.css +1 -1
  3. package/dist/eui_theme_light.css +3 -270
  4. package/dist/eui_theme_light.min.css +1 -1
  5. package/es/components/bottom_bar/bottom_bar.js +20 -3
  6. package/es/components/header/header.js +2 -0
  7. package/es/components/header/header_links/header_links.js +2 -1
  8. package/es/components/index.js +1 -0
  9. package/es/components/page/_bottom_border.js +1 -0
  10. package/es/components/page/_restrict_width.js +34 -7
  11. package/es/components/page/index.js +5 -3
  12. package/es/components/page/page.js +19 -30
  13. package/es/components/page/page.styles.js +43 -0
  14. package/es/components/page/page_body/page_body.js +18 -26
  15. package/es/components/page/page_body/page_body.styles.js +16 -0
  16. package/es/components/page/page_content/index.js +4 -4
  17. package/es/components/page/page_content/page_content.js +7 -2
  18. package/es/components/page/page_content/page_content_body.js +12 -7
  19. package/es/components/page/page_content/page_content_header.js +7 -2
  20. package/es/components/page/page_content/page_content_header_section.js +7 -2
  21. package/es/components/page/page_header/page_header.js +29 -172
  22. package/es/components/page/page_header/page_header.styles.js +16 -0
  23. package/es/components/page/page_header/page_header_content.js +84 -16
  24. package/es/components/page/page_header/page_header_content.styles.js +84 -0
  25. package/es/components/page/page_section/index.js +8 -0
  26. package/es/components/page/page_section/page_section.js +102 -0
  27. package/es/components/page/page_section/page_section.styles.js +43 -0
  28. package/es/components/page/page_side_bar/index.js +1 -1
  29. package/es/components/page/page_side_bar/page_side_bar.js +8 -3
  30. package/es/components/page/page_sidebar/index.js +8 -0
  31. package/es/components/page/page_sidebar/page_sidebar.js +110 -0
  32. package/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
  33. package/es/components/page/page_template.js +54 -154
  34. package/es/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
  35. package/es/components/page_template/empty_prompt/page_empty_prompt.js +107 -0
  36. package/es/components/page_template/index.js +8 -0
  37. package/es/components/page_template/inner/index.js +8 -0
  38. package/es/components/page_template/inner/page_inner.js +51 -0
  39. package/es/components/page_template/inner/page_inner.styles.js +22 -0
  40. package/es/components/page_template/outer/index.js +8 -0
  41. package/es/components/page_template/outer/page_outer.js +59 -0
  42. package/es/components/page_template/outer/page_outer.styles.js +49 -0
  43. package/es/components/page_template/page_template.js +376 -0
  44. package/es/global_styling/functions/logicals.js +1 -1
  45. package/es/global_styling/mixins/_helpers.js +27 -9
  46. package/eui.d.ts +423 -49
  47. package/lib/components/bottom_bar/bottom_bar.js +20 -3
  48. package/lib/components/header/header.js +2 -0
  49. package/lib/components/header/header_links/header_links.js +2 -1
  50. package/lib/components/index.js +13 -0
  51. package/lib/components/page/_bottom_border.js +5 -0
  52. package/lib/components/page/_restrict_width.js +38 -7
  53. package/lib/components/page/index.js +28 -12
  54. package/lib/components/page/page.js +22 -34
  55. package/lib/components/page/page.styles.js +46 -0
  56. package/lib/components/page/page_body/page_body.js +20 -29
  57. package/lib/components/page/page_body/page_body.styles.js +27 -0
  58. package/lib/components/page/page_content/index.js +8 -8
  59. package/lib/components/page/page_content/page_content.js +8 -4
  60. package/lib/components/page/page_content/page_content_body.js +13 -9
  61. package/lib/components/page/page_content/page_content_header.js +8 -4
  62. package/lib/components/page/page_content/page_content_header_section.js +8 -4
  63. package/lib/components/page/page_header/page_header.js +31 -175
  64. package/lib/components/page/page_header/page_header.styles.js +27 -0
  65. package/lib/components/page/page_header/page_header_content.js +108 -16
  66. package/lib/components/page/page_header/page_header_content.styles.js +87 -0
  67. package/lib/components/page/page_section/index.js +13 -0
  68. package/lib/components/page/page_section/page_section.js +113 -0
  69. package/lib/components/page/page_section/page_section.styles.js +51 -0
  70. package/lib/components/page/page_side_bar/index.js +2 -2
  71. package/lib/components/page/page_side_bar/page_side_bar.js +9 -5
  72. package/lib/components/page/page_sidebar/index.js +13 -0
  73. package/lib/components/page/page_sidebar/page_sidebar.js +124 -0
  74. package/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  75. package/lib/components/page/page_template.js +76 -177
  76. package/lib/components/page_template/bottom_bar/page_bottom_bar.js +114 -0
  77. package/lib/components/page_template/empty_prompt/page_empty_prompt.js +116 -0
  78. package/lib/components/page_template/index.js +13 -0
  79. package/lib/components/page_template/inner/index.js +13 -0
  80. package/lib/components/page_template/inner/page_inner.js +60 -0
  81. package/lib/components/page_template/inner/page_inner.styles.js +35 -0
  82. package/lib/components/page_template/outer/index.js +13 -0
  83. package/lib/components/page_template/outer/page_outer.js +68 -0
  84. package/lib/components/page_template/outer/page_outer.styles.js +51 -0
  85. package/lib/components/page_template/page_template.js +399 -0
  86. package/lib/global_styling/functions/logicals.js +1 -1
  87. package/lib/global_styling/mixins/_helpers.js +27 -9
  88. package/optimize/es/components/bottom_bar/bottom_bar.js +1 -1
  89. package/optimize/es/components/header/header.js +2 -0
  90. package/optimize/es/components/header/header_links/header_links.js +2 -1
  91. package/optimize/es/components/index.js +1 -0
  92. package/optimize/es/components/page/_bottom_border.js +1 -0
  93. package/optimize/es/components/page/_restrict_width.js +34 -7
  94. package/optimize/es/components/page/index.js +5 -3
  95. package/optimize/es/components/page/page.js +18 -28
  96. package/optimize/es/components/page/page.styles.js +43 -0
  97. package/optimize/es/components/page/page_body/page_body.js +18 -25
  98. package/optimize/es/components/page/page_body/page_body.styles.js +16 -0
  99. package/optimize/es/components/page/page_content/index.js +4 -4
  100. package/optimize/es/components/page/page_content/page_content.js +6 -1
  101. package/optimize/es/components/page/page_content/page_content_body.js +10 -5
  102. package/optimize/es/components/page/page_content/page_content_header.js +6 -1
  103. package/optimize/es/components/page/page_content/page_content_header_section.js +6 -1
  104. package/optimize/es/components/page/page_header/page_header.js +20 -32
  105. package/optimize/es/components/page/page_header/page_header.styles.js +16 -0
  106. package/optimize/es/components/page/page_header/page_header_content.js +62 -14
  107. package/optimize/es/components/page/page_header/page_header_content.styles.js +84 -0
  108. package/optimize/es/components/page/page_section/index.js +8 -0
  109. package/optimize/es/components/page/page_section/page_section.js +51 -0
  110. package/optimize/es/components/page/page_section/page_section.styles.js +43 -0
  111. package/optimize/es/components/page/page_side_bar/index.js +1 -1
  112. package/optimize/es/components/page/page_side_bar/page_side_bar.js +6 -1
  113. package/optimize/es/components/page/page_sidebar/index.js +8 -0
  114. package/optimize/es/components/page/page_sidebar/page_sidebar.js +60 -0
  115. package/optimize/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
  116. package/optimize/es/components/page/page_template.js +29 -9
  117. package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +70 -0
  118. package/optimize/es/components/page_template/empty_prompt/page_empty_prompt.js +61 -0
  119. package/optimize/es/components/page_template/index.js +8 -0
  120. package/optimize/es/components/page_template/inner/index.js +8 -0
  121. package/optimize/es/components/page_template/inner/page_inner.js +47 -0
  122. package/optimize/es/components/page_template/inner/page_inner.styles.js +22 -0
  123. package/optimize/es/components/page_template/outer/index.js +8 -0
  124. package/optimize/es/components/page_template/outer/page_outer.js +33 -0
  125. package/optimize/es/components/page_template/outer/page_outer.styles.js +49 -0
  126. package/optimize/es/components/page_template/page_template.js +202 -0
  127. package/optimize/es/global_styling/functions/logicals.js +1 -1
  128. package/optimize/es/global_styling/mixins/_helpers.js +27 -9
  129. package/optimize/lib/components/bottom_bar/bottom_bar.js +1 -1
  130. package/optimize/lib/components/header/header.js +2 -0
  131. package/optimize/lib/components/header/header_links/header_links.js +2 -1
  132. package/optimize/lib/components/index.js +13 -0
  133. package/optimize/lib/components/page/_bottom_border.js +5 -0
  134. package/optimize/lib/components/page/_restrict_width.js +38 -7
  135. package/optimize/lib/components/page/index.js +28 -12
  136. package/optimize/lib/components/page/page.js +21 -33
  137. package/optimize/lib/components/page/page.styles.js +46 -0
  138. package/optimize/lib/components/page/page_body/page_body.js +20 -29
  139. package/optimize/lib/components/page/page_body/page_body.styles.js +27 -0
  140. package/optimize/lib/components/page/page_content/index.js +8 -8
  141. package/optimize/lib/components/page/page_content/page_content.js +7 -3
  142. package/optimize/lib/components/page/page_content/page_content_body.js +11 -7
  143. package/optimize/lib/components/page/page_content/page_content_header.js +7 -3
  144. package/optimize/lib/components/page/page_content/page_content_header_section.js +7 -3
  145. package/optimize/lib/components/page/page_header/page_header.js +22 -36
  146. package/optimize/lib/components/page/page_header/page_header.styles.js +27 -0
  147. package/optimize/lib/components/page/page_header/page_header_content.js +66 -13
  148. package/optimize/lib/components/page/page_header/page_header_content.styles.js +87 -0
  149. package/optimize/lib/components/page/page_section/index.js +13 -0
  150. package/optimize/lib/components/page/page_section/page_section.js +62 -0
  151. package/optimize/lib/components/page/page_section/page_section.styles.js +51 -0
  152. package/optimize/lib/components/page/page_side_bar/index.js +2 -2
  153. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +7 -3
  154. package/optimize/lib/components/page/page_sidebar/index.js +13 -0
  155. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +79 -0
  156. package/optimize/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  157. package/optimize/lib/components/page/page_template.js +51 -33
  158. package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +85 -0
  159. package/optimize/lib/components/page_template/empty_prompt/page_empty_prompt.js +71 -0
  160. package/optimize/lib/components/page_template/index.js +13 -0
  161. package/optimize/lib/components/page_template/inner/index.js +13 -0
  162. package/optimize/lib/components/page_template/inner/page_inner.js +57 -0
  163. package/optimize/lib/components/page_template/inner/page_inner.styles.js +35 -0
  164. package/optimize/lib/components/page_template/outer/index.js +13 -0
  165. package/optimize/lib/components/page_template/outer/page_outer.js +42 -0
  166. package/optimize/lib/components/page_template/outer/page_outer.styles.js +51 -0
  167. package/optimize/lib/components/page_template/page_template.js +228 -0
  168. package/optimize/lib/global_styling/functions/logicals.js +1 -1
  169. package/optimize/lib/global_styling/mixins/_helpers.js +27 -9
  170. package/package.json +1 -1
  171. package/src/components/page/_index.scss +0 -5
  172. package/src/components/page/page_content/_page_content_body.scss +10 -1
  173. package/src/components/tabs/_tabs.scss +2 -0
  174. package/test-env/components/bottom_bar/bottom_bar.js +20 -3
  175. package/test-env/components/header/header.js +2 -0
  176. package/test-env/components/header/header_links/header_links.js +2 -1
  177. package/test-env/components/index.js +13 -0
  178. package/test-env/components/page/_bottom_border.js +5 -0
  179. package/test-env/components/page/_restrict_width.js +38 -7
  180. package/test-env/components/page/index.js +28 -12
  181. package/test-env/components/page/page.js +22 -34
  182. package/test-env/components/page/page.styles.js +46 -0
  183. package/test-env/components/page/page_body/page_body.js +20 -29
  184. package/test-env/components/page/page_body/page_body.styles.js +27 -0
  185. package/test-env/components/page/page_content/index.js +8 -8
  186. package/test-env/components/page/page_content/page_content.js +8 -4
  187. package/test-env/components/page/page_content/page_content_body.js +13 -9
  188. package/test-env/components/page/page_content/page_content_header.js +8 -4
  189. package/test-env/components/page/page_content/page_content_header_section.js +8 -4
  190. package/test-env/components/page/page_header/page_header.js +31 -175
  191. package/test-env/components/page/page_header/page_header.styles.js +27 -0
  192. package/test-env/components/page/page_header/page_header_content.js +109 -16
  193. package/test-env/components/page/page_header/page_header_content.styles.js +87 -0
  194. package/test-env/components/page/page_section/index.js +13 -0
  195. package/test-env/components/page/page_section/page_section.js +110 -0
  196. package/test-env/components/page/page_section/page_section.styles.js +51 -0
  197. package/test-env/components/page/page_side_bar/index.js +2 -2
  198. package/test-env/components/page/page_side_bar/page_side_bar.js +9 -5
  199. package/test-env/components/page/page_sidebar/index.js +13 -0
  200. package/test-env/components/page/page_sidebar/page_sidebar.js +113 -0
  201. package/test-env/components/page/page_sidebar/page_sidebar.styles.js +32 -0
  202. package/test-env/components/page/page_template.js +76 -178
  203. package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
  204. package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +114 -0
  205. package/test-env/components/page_template/index.js +13 -0
  206. package/test-env/components/page_template/inner/index.js +13 -0
  207. package/test-env/components/page_template/inner/page_inner.js +57 -0
  208. package/test-env/components/page_template/inner/page_inner.styles.js +35 -0
  209. package/test-env/components/page_template/outer/index.js +13 -0
  210. package/test-env/components/page_template/outer/page_outer.js +65 -0
  211. package/test-env/components/page_template/outer/page_outer.styles.js +51 -0
  212. package/test-env/components/page_template/page_template.js +387 -0
  213. package/test-env/global_styling/functions/logicals.js +1 -1
  214. package/test-env/global_styling/mixins/_helpers.js +27 -9
  215. package/src/components/page/_mixins.scss +0 -12
  216. package/src/components/page/_page.scss +0 -41
  217. package/src/components/page/page_body/_index.scss +0 -1
  218. package/src/components/page/page_body/_page_body.scss +0 -45
  219. package/src/components/page/page_header/_index.scss +0 -3
  220. package/src/components/page/page_header/_page_header.scss +0 -78
  221. package/src/components/page/page_header/_page_header_content.scss +0 -15
  222. package/src/components/page/page_header/_page_header_section.scss +0 -26
package/eui.d.ts CHANGED
@@ -1613,10 +1613,13 @@ declare module '@elastic/eui/src/global_styling/mixins/_helpers' {
1613
1613
  * Browser's supporting `:focus-visible` will still show outline on keyboard focus only.
1614
1614
  * Others like Safari, won't show anything at all.
1615
1615
  */
1616
- export const euiYScroll: (euiTheme: UseEuiTheme) => string;
1617
- export const useEuiYScroll: () => string;
1618
- export const euiYScrollWithShadows: (euiTheme: UseEuiTheme) => string;
1619
- export const useEuiYScrollWithShadows: () => string;
1616
+ interface _EuiYScroll {
1617
+ height?: CSSProperties['height'];
1618
+ }
1619
+ export const euiYScroll: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1620
+ export const useEuiYScroll: ({ height }?: _EuiYScroll) => string;
1621
+ export const euiYScrollWithShadows: (euiTheme: UseEuiTheme, { height }?: _EuiYScroll) => string;
1622
+ export const useEuiYScrollWithShadows: ({ height }?: _EuiYScroll) => string;
1620
1623
  export const euiXScroll: (euiTheme: UseEuiTheme) => string;
1621
1624
  export const useEuiXScroll: () => string;
1622
1625
  export const euiXScrollWithShadows: (euiTheme: UseEuiTheme) => string;
@@ -1720,7 +1723,7 @@ declare module '@elastic/eui/src/global_styling/functions/logicals' {
1720
1723
  * @returns `object` Returns the logical CSS property version for the given `property: value` pair
1721
1724
  */
1722
1725
  export const logicalStyle: (property: LogicalProperties, value?: any) => {
1723
- [x: string]: string;
1726
+ [x: string]: any;
1724
1727
  };
1725
1728
  /**
1726
1729
  *
@@ -7727,7 +7730,8 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar.styles' {
7727
7730
  }
7728
7731
  declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
7729
7732
  import React, { CSSProperties, HTMLAttributes } from 'react';
7730
- import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
7733
+ import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
7734
+ import { EuiPortalProps } from '@elastic/eui/src/components/portal'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
7731
7735
  export const paddingSizeToClassNameMap: {
7732
7736
  [value in BottomBarPaddingSize]: string | null;
7733
7737
  };
@@ -7738,7 +7742,7 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
7738
7742
  * Whether to wrap in an EuiPortal which appends the component to the body element.
7739
7743
  * Only works if `position` is `fixed`.
7740
7744
  */
7741
- usePortal?: boolean;
7745
+ usePortal?: boolean | EuiPortalProps;
7742
7746
  /**
7743
7747
  * Whether the component should apply padding on the document body element to afford for its own displacement height.
7744
7748
  * Only works if `usePortal` is true and `position` is `fixed`.
@@ -14852,25 +14856,51 @@ declare module '@elastic/eui/src/components/page/_restrict_width' {
14852
14856
  * This is file contains the type specific to that prop and a helper
14853
14857
  * function for creating the corresponding classNames and style tags
14854
14858
  * based on the consumer's configuration
14855
- *
14856
- * @param {restrictWidth} boolean | number | string The prop value
14857
- * @param {style} CSSProperties An object of style attributes if provided
14858
- * @returns {{widthClassName: string, newStyle: CSSProperties}} Returns an object with keys for the class name to append to the component's class and the updated style props
14859
14859
  */
14860
14860
  import { CSSProperties } from 'react';
14861
+ export const PAGE_MAX_WIDTH: CSSProperties['maxWidth'];
14861
14862
  export type _EuiPageRestrictWidth = {
14862
14863
  /**
14863
14864
  * Sets the max-width of the page,
14864
- * set to `true` to use the default size of `1000px (1200 for Amsterdam)`,
14865
+ * set to `true` to use the default size of `1200px`,
14865
14866
  * set to `false` to not restrict the width,
14866
14867
  * set to a number for a custom width in px,
14867
14868
  * set to a string for a custom width in custom measurement.
14868
14869
  */
14869
14870
  restrictWidth?: boolean | number | string;
14870
14871
  };
14872
+ /**
14873
+ * **DEPRECATED**
14874
+ * This function calculates the correct class name and combined styles
14875
+ * based on the `restrictWidth` value passed in
14876
+ *
14877
+ * @param restrictWidth `boolean | number | string` The prop value
14878
+ * @param style `CSSProperties` An object of style attributes if provided
14879
+ * @returns An object with keys for the `widthClassName` to append to the component's class and the updated `newStyle` props
14880
+ */
14871
14881
  export function setPropsForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): {
14872
14882
  widthClassName?: string;
14873
- newStyle?: CSSProperties;
14883
+ newStyle: CSSProperties;
14884
+ };
14885
+ /**
14886
+ * This function calculates the correct just the combined styles
14887
+ * based on the `restrictWidth` value passed in
14888
+ *
14889
+ * @param restrictWidth `boolean | number | string` The prop value
14890
+ * @param style `CSSProperties` An object of style attributes if provided
14891
+ * @returns An object of the updated `style` props
14892
+ */
14893
+ export function setStyleForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): CSSProperties;
14894
+
14895
+ }
14896
+ declare module '@elastic/eui/src/components/page/page.styles' {
14897
+ import { UseEuiTheme } from '@elastic/eui/src/services';
14898
+ export const euiPageStyles: (euiThemeContext: UseEuiTheme) => {
14899
+ euiPage: import("@emotion/utils").SerializedStyles;
14900
+ grow: import("@emotion/utils").SerializedStyles;
14901
+ column: import("@emotion/utils").SerializedStyles;
14902
+ row: import("@emotion/utils").SerializedStyles;
14903
+ restrictWidth: import("@emotion/utils").SerializedStyles;
14874
14904
  };
14875
14905
 
14876
14906
  }
@@ -14878,14 +14908,13 @@ declare module '@elastic/eui/src/components/page/page' {
14878
14908
  import { FunctionComponent, HTMLAttributes } from 'react';
14879
14909
  import { CommonProps } from '@elastic/eui/src/components/common';
14880
14910
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14881
- export const SIZES: ("s" | "none" | "m" | "l")[];
14882
- export const DIRECTIONS: ("row" | "column")[];
14911
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
14883
14912
  export interface EuiPageProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
14884
14913
  /**
14885
14914
  * Adjust the padding.
14886
14915
  * When using this setting it's best to be consistent throughout all similar usages
14887
14916
  */
14888
- paddingSize?: typeof SIZES[number];
14917
+ paddingSize?: EuiPaddingSize;
14889
14918
  /**
14890
14919
  * Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
14891
14920
  * Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
@@ -14899,13 +14928,20 @@ declare module '@elastic/eui/src/components/page/page' {
14899
14928
  }
14900
14929
  export const EuiPage: FunctionComponent<EuiPageProps>;
14901
14930
 
14931
+ }
14932
+ declare module '@elastic/eui/src/components/page/page_body/page_body.styles' {
14933
+ export const euiPageBodyStyles: () => {
14934
+ euiPageBody: import("@emotion/utils").SerializedStyles;
14935
+ restrictWidth: import("@emotion/utils").SerializedStyles;
14936
+ };
14937
+
14902
14938
  }
14903
14939
  declare module '@elastic/eui/src/components/page/page_body/page_body' {
14904
14940
  import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
14905
14941
  import { CommonProps } from '@elastic/eui/src/components/common';
14906
14942
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
14907
14943
  import { EuiPanelProps } from '@elastic/eui/src/components/panel';
14908
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[]; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
14944
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
14909
14945
  export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
14910
14946
  /**
14911
14947
  * Sets the HTML element for `EuiPageBody`.
@@ -14922,9 +14958,9 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
14922
14958
  /**
14923
14959
  * Adjusts the padding
14924
14960
  */
14925
- paddingSize?: typeof PADDING_SIZES[number];
14961
+ paddingSize?: EuiPaddingSize;
14926
14962
  };
14927
- export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, style, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
14963
+ export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
14928
14964
  export {};
14929
14965
 
14930
14966
  }
@@ -14949,7 +14985,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
14949
14985
  */
14950
14986
  role?: HTMLAttributes['role'] | null;
14951
14987
  };
14952
- export const EuiPageContent: FunctionComponent<EuiPageContentProps>;
14988
+ /**
14989
+ * **DEPRECATED**
14990
+ * Use EuiPageSection instead
14991
+ */
14992
+ export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
14953
14993
 
14954
14994
  }
14955
14995
  declare module '@elastic/eui/src/components/page/page_content/page_content_body' {
@@ -14964,7 +15004,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
14964
15004
  */
14965
15005
  paddingSize?: typeof PADDING_SIZES[number];
14966
15006
  }
14967
- export const EuiPageContentBody: FunctionComponent<EuiPageContentBodyProps>;
15007
+ /**
15008
+ * **DEPRECATED**
15009
+ * Use EuiPageSection instead
15010
+ */
15011
+ export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
14968
15012
 
14969
15013
  }
14970
15014
  declare module '@elastic/eui/src/components/page/page_content/page_content_header' {
@@ -14977,7 +15021,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
14977
15021
  */
14978
15022
  responsive?: boolean;
14979
15023
  }
14980
- export const EuiPageContentHeader: FunctionComponent<EuiPageContentHeaderProps>;
15024
+ /**
15025
+ * **DEPRECATED**
15026
+ * Use EuiPageHeader instead
15027
+ */
15028
+ export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
14981
15029
 
14982
15030
  }
14983
15031
  declare module '@elastic/eui/src/components/page/page_content/page_content_header_section' {
@@ -14985,18 +15033,45 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
14985
15033
  import { CommonProps } from '@elastic/eui/src/components/common';
14986
15034
  export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
14987
15035
  }
14988
- export const EuiPageContentHeaderSection: FunctionComponent<EuiPageContentHeaderSectionProps>;
15036
+ /**
15037
+ * **DEPRECATED**
15038
+ * Use EuiPageHeader instead
15039
+ */
15040
+ export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
14989
15041
 
14990
15042
  }
14991
15043
  declare module '@elastic/eui/src/components/page/page_content' {
14992
15044
  export type { EuiPageContentProps } from '@elastic/eui/src/components/page/page_content/page_content';
14993
- export { EuiPageContent } from '@elastic/eui/src/components/page/page_content/page_content';
15045
+ export { EuiPageContent_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content';
14994
15046
  export type { EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content/page_content_body';
14995
- export { EuiPageContentBody } from '@elastic/eui/src/components/page/page_content/page_content_body';
15047
+ export { EuiPageContentBody_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_body';
14996
15048
  export type { EuiPageContentHeaderProps } from '@elastic/eui/src/components/page/page_content/page_content_header';
14997
- export { EuiPageContentHeader } from '@elastic/eui/src/components/page/page_content/page_content_header';
15049
+ export { EuiPageContentHeader_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header';
14998
15050
  export type { EuiPageContentHeaderSectionProps } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
14999
- export { EuiPageContentHeaderSection } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
15051
+ export { EuiPageContentHeaderSection_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
15052
+
15053
+ }
15054
+ declare module '@elastic/eui/src/components/page/page_header/page_header.styles' {
15055
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15056
+ export const euiPageHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
15057
+ euiPageHeader: import("@emotion/utils").SerializedStyles;
15058
+ border: import("@emotion/utils").SerializedStyles;
15059
+ };
15060
+
15061
+ }
15062
+ declare module '@elastic/eui/src/components/page/page_header/page_header_content.styles' {
15063
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15064
+ export const euiPageHeaderContentStyles: ({ euiTheme }: UseEuiTheme) => {
15065
+ euiPageHeaderContent: import("@emotion/utils").SerializedStyles;
15066
+ top: import("@emotion/utils").SerializedStyles;
15067
+ bottom: import("@emotion/utils").SerializedStyles;
15068
+ center: import("@emotion/utils").SerializedStyles;
15069
+ stretch: import("@emotion/utils").SerializedStyles;
15070
+ flex: import("@emotion/utils").SerializedStyles;
15071
+ responsive: import("@emotion/utils").SerializedStyles;
15072
+ responsiveReverse: import("@emotion/utils").SerializedStyles;
15073
+ euiPageHeaderContent__titleIcon: import("@emotion/utils").SerializedStyles;
15074
+ };
15000
15075
 
15001
15076
  }
15002
15077
  declare module '@elastic/eui/src/components/page/page_header/page_header_content' {
@@ -15008,6 +15083,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
15008
15083
  import { EuiFlexGroupProps } from '@elastic/eui/src/components/flex';
15009
15084
  import { EuiTitleProps } from '@elastic/eui/src/components/title';
15010
15085
  import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
15086
+ import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
15087
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15011
15088
  export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"]; type Tab = EuiTabProps & {
15012
15089
  /**
15013
15090
  * Visible text of the tab
@@ -15065,7 +15142,16 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
15065
15142
  */
15066
15143
  description?: string | ReactNode;
15067
15144
  }
15068
- export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft {
15145
+ export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft, _EuiPageRestrictWidth {
15146
+ /**
15147
+ * The only option is on/off
15148
+ */
15149
+ bottomBorder?: boolean;
15150
+ /**
15151
+ * Adjust the padding.
15152
+ * When using this setting it's best to be consistent throughout all similar usages
15153
+ */
15154
+ paddingSize?: typeof PADDING_SIZES[number];
15069
15155
  /**
15070
15156
  * Set to false if you don't want the children to stack at small screen sizes.
15071
15157
  * Set to `reverse` to display the right side content first for the sake of hierarchy (like global time)
@@ -15073,7 +15159,7 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
15073
15159
  responsive?: boolean | 'reverse';
15074
15160
  /**
15075
15161
  * Vertical alignment of the left and right side content;
15076
- * Default is `middle` for custom content, but `top` for when `pageTitle` or `tabs` are included
15162
+ * Default is `center` for custom content, but `top` for when `pageTitle` or `tabs` are included
15077
15163
  */
15078
15164
  alignItems?: typeof ALIGN_ITEMS[number];
15079
15165
  /**
@@ -15096,23 +15182,29 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
15096
15182
  export const EuiPageHeaderContent: FunctionComponent<EuiPageHeaderContentProps>;
15097
15183
  export {};
15098
15184
 
15185
+ }
15186
+ declare module '@elastic/eui/src/components/page/_bottom_border' {
15187
+ export type _EuiPageBottomBorder = {
15188
+ /**
15189
+ * Adds a bottom border to separate it from the content after;
15190
+ * Passing `extended` will ensure the border touches the sides of the parent container.
15191
+ */
15192
+ bottomBorder?: boolean | 'extended';
15193
+ };
15194
+
15099
15195
  }
15100
15196
  declare module '@elastic/eui/src/components/page/page_header/page_header' {
15101
15197
  import { FunctionComponent, HTMLAttributes } from 'react';
15102
15198
  import { CommonProps } from '@elastic/eui/src/components/common';
15199
+ import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
15103
15200
  import { _EuiPageHeaderContentProps } from '@elastic/eui/src/components/page/page_header/page_header_content';
15104
15201
  import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15105
- export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
15106
- export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, _EuiPageHeaderContentProps, _EuiPageRestrictWidth {
15107
- /**
15108
- * Adjust the padding.
15109
- * When using this setting it's best to be consistent throughout all similar usages
15110
- */
15111
- paddingSize?: typeof PADDING_SIZES[number];
15202
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15203
+ export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, Omit<_EuiPageHeaderContentProps, 'bottomBorder'>, _EuiPageRestrictWidth, _EuiPageBottomBorder {
15112
15204
  /**
15113
- * Adds a bottom border to separate it from the content after
15205
+ * Adjust the overall padding.
15114
15206
  */
15115
- bottomBorder?: boolean;
15207
+ paddingSize?: EuiPaddingSize;
15116
15208
  }
15117
15209
  export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
15118
15210
 
@@ -15133,6 +15225,62 @@ declare module '@elastic/eui/src/components/page/page_header' {
15133
15225
  export type { EuiPageHeaderSectionProps } from '@elastic/eui/src/components/page/page_header/page_header_section';
15134
15226
  export { EuiPageHeaderSection } from '@elastic/eui/src/components/page/page_header/page_header_section';
15135
15227
 
15228
+ }
15229
+ declare module '@elastic/eui/src/components/page/page_section/page_section.styles' {
15230
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15231
+ export const ALIGNMENTS: readonly ["top", "center", "horizontalCenter"];
15232
+ export const euiPageSectionStyles: ({ euiTheme }: UseEuiTheme) => {
15233
+ euiPageSection: import("@emotion/utils").SerializedStyles;
15234
+ grow: import("@emotion/utils").SerializedStyles;
15235
+ border: import("@emotion/utils").SerializedStyles;
15236
+ top: import("@emotion/utils").SerializedStyles;
15237
+ center: import("@emotion/utils").SerializedStyles;
15238
+ horizontalCenter: import("@emotion/utils").SerializedStyles;
15239
+ };
15240
+ export const euiPageSectionContentStyles: () => {
15241
+ euiPageSection__content: import("@emotion/utils").SerializedStyles;
15242
+ center: import("@emotion/utils").SerializedStyles;
15243
+ restrictWidth: import("@emotion/utils").SerializedStyles;
15244
+ };
15245
+
15246
+ }
15247
+ declare module '@elastic/eui/src/components/page/page_section/page_section' {
15248
+ import { FunctionComponent, HTMLAttributes } from 'react';
15249
+ import { CommonProps } from '@elastic/eui/src/components/common';
15250
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15251
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15252
+ import { ALIGNMENTS } from '@elastic/eui/src/components/page/page_section/page_section.styles';
15253
+ import { EuiPaddingSize, _EuiBackgroundColor } from '@elastic/eui/src/global_styling';
15254
+ export type EuiPageSectionProps = CommonProps & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
15255
+ /**
15256
+ * Background color of the section;
15257
+ * Usually a lightened form of the brand colors
15258
+ */
15259
+ color?: _EuiBackgroundColor;
15260
+ /**
15261
+ * Padding for all four sides
15262
+ */
15263
+ paddingSize?: EuiPaddingSize;
15264
+ /**
15265
+ * Horizontal and/or vertical alignment of the section contents
15266
+ */
15267
+ alignment?: typeof ALIGNMENTS[number];
15268
+ /**
15269
+ * When true the panel will grow in height to fill container if parent is a flex group
15270
+ */
15271
+ grow?: boolean;
15272
+ /**
15273
+ * Passed down to the div wrapper of the section contents
15274
+ */
15275
+ contentProps?: HTMLAttributes<HTMLDivElement>;
15276
+ } & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
15277
+ export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
15278
+
15279
+ }
15280
+ declare module '@elastic/eui/src/components/page/page_section' {
15281
+ export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section/page_section';
15282
+ export { EuiPageSection } from '@elastic/eui/src/components/page/page_section/page_section';
15283
+
15136
15284
  }
15137
15285
  declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
15138
15286
  import { FunctionComponent, HTMLAttributes } from 'react';
@@ -15140,7 +15288,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
15140
15288
  export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
15141
15289
  export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15142
15290
  /**
15143
- * Adds `position: sticky` and affords for any fixed position headers
15291
+ * Adds `position: sticky`
15144
15292
  */
15145
15293
  sticky?: boolean;
15146
15294
  /**
@@ -15148,24 +15296,74 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
15148
15296
  */
15149
15297
  paddingSize?: typeof PADDING_SIZES[number];
15150
15298
  }
15151
- export const EuiPageSideBar: FunctionComponent<EuiPageSideBarProps>;
15299
+ /**
15300
+ * **DEPRECATED**
15301
+ * Use the new EuiPageSidebar instead
15302
+ */
15303
+ export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
15152
15304
 
15153
15305
  }
15154
15306
  declare module '@elastic/eui/src/components/page/page_side_bar' {
15155
15307
  export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
15156
- export { EuiPageSideBar } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
15308
+ export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
15309
+
15310
+ }
15311
+ declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar.styles' {
15312
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15313
+ export const euiPageSidebarStyles: (euiThemeContext: UseEuiTheme) => {
15314
+ euiPageSidebar: import("@emotion/utils").SerializedStyles;
15315
+ sticky: import("@emotion/utils").SerializedStyles;
15316
+ };
15317
+
15318
+ }
15319
+ declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar' {
15320
+ import { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
15321
+ import { CommonProps } from '@elastic/eui/src/components/common';
15322
+ import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
15323
+ export interface EuiPageSidebarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15324
+ /**
15325
+ * Adjust the padding.
15326
+ * When using this setting it's best to be consistent throughout all similar usages.
15327
+ */
15328
+ paddingSize?: EuiPaddingSize;
15329
+ /**
15330
+ * Adds `position: sticky` and affords for any fixed position headers.
15331
+ */
15332
+ sticky?: boolean | {
15333
+ /**
15334
+ * To account for any fixed elements like headers,
15335
+ * pass in the value of the total height of those fixed elements.
15336
+ */
15337
+ offset?: number;
15338
+ };
15339
+ /**
15340
+ * A minimum width is necessary to maintain size.
15341
+ * Be sure to take `paddingSize` into account.
15342
+ */
15343
+ minWidth?: CSSProperties['width'];
15344
+ /**
15345
+ * Sets the `minWidth` to 100% when within these breakpoints.
15346
+ */
15347
+ responsive?: _EuiThemeBreakpoint[];
15348
+ }
15349
+ export const EuiPageSidebar: FunctionComponent<EuiPageSidebarProps>;
15350
+
15351
+ }
15352
+ declare module '@elastic/eui/src/components/page/page_sidebar' {
15353
+ export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
15354
+ export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
15157
15355
 
15158
15356
  }
15159
15357
  declare module '@elastic/eui/src/components/page/page_template' {
15160
15358
  import { CSSProperties, FunctionComponent, ReactNode } from 'react';
15161
- import { EuiPageProps, SIZES } from '@elastic/eui/src/components/page/page';
15359
+ import { EuiPageProps } from '@elastic/eui/src/components/page/page';
15162
15360
  import { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
15163
15361
  import { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
15164
15362
  import { EuiPageHeaderProps } from '@elastic/eui/src/components/page/page_header';
15165
15363
  import { EuiPageContentProps, EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content';
15166
15364
  import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
15167
15365
  export const TEMPLATES: readonly ["default", "centeredBody", "centeredContent", "empty"];
15168
- export type EuiPageTemplateProps = Omit<EuiPageProps, 'paddingSize'> & {
15366
+ export type EuiPageTemplateProps_Deprecated = Omit<EuiPageProps, 'paddingSize'> & {
15169
15367
  /**
15170
15368
  * Choose between 3 types of templates.
15171
15369
  * `default`: Typical layout with nothing centered
@@ -15178,7 +15376,7 @@ declare module '@elastic/eui/src/components/page/page_template' {
15178
15376
  * Padding size will not get applied to the over-arching #EuiPage,
15179
15377
  * but will propogate through all the components to keep them in sync
15180
15378
  */
15181
- paddingSize?: typeof SIZES[number];
15379
+ paddingSize?: 'none' | 's' | 'm' | 'l';
15182
15380
  /**
15183
15381
  * Optionally include #EuiPageSideBar content.
15184
15382
  * The inclusion of this will affect the whole layout
@@ -15225,7 +15423,12 @@ declare module '@elastic/eui/src/components/page/page_template' {
15225
15423
  */
15226
15424
  minHeight?: CSSProperties['minHeight'];
15227
15425
  };
15228
- export const EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
15426
+ /**
15427
+ * This component has been deprecated in favor of the new
15428
+ * namespaced version. You can still import this component
15429
+ * for a period of time by importing `as EuiPageTemplate`.
15430
+ */
15431
+ export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
15229
15432
 
15230
15433
  }
15231
15434
  declare module '@elastic/eui/src/components/page' {
@@ -15234,13 +15437,183 @@ declare module '@elastic/eui/src/components/page' {
15234
15437
  export type { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
15235
15438
  export { EuiPageBody } from '@elastic/eui/src/components/page/page_body';
15236
15439
  export type { EuiPageContentProps, EuiPageContentBodyProps, EuiPageContentHeaderProps, EuiPageContentHeaderSectionProps, } from '@elastic/eui/src/components/page/page_content';
15237
- export { EuiPageContent, EuiPageContentBody, EuiPageContentHeader, EuiPageContentHeaderSection, } from '@elastic/eui/src/components/page/page_content';
15440
+ export { EuiPageContent_Deprecated, EuiPageContentBody_Deprecated, EuiPageContentHeader_Deprecated, EuiPageContentHeaderSection_Deprecated, } from '@elastic/eui/src/components/page/page_content';
15238
15441
  export type { EuiPageHeaderContentProps, EuiPageHeaderProps, EuiPageHeaderSectionProps, } from '@elastic/eui/src/components/page/page_header';
15239
15442
  export { EuiPageHeader, EuiPageHeaderContent, EuiPageHeaderSection, } from '@elastic/eui/src/components/page/page_header';
15443
+ export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15444
+ export { EuiPageSection } from '@elastic/eui/src/components/page/page_section';
15240
15445
  export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
15241
- export { EuiPageSideBar } from '@elastic/eui/src/components/page/page_side_bar';
15242
- export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page/page_template';
15243
- export { EuiPageTemplate } from '@elastic/eui/src/components/page/page_template';
15446
+ export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar';
15447
+ export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar';
15448
+ export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar';
15449
+ export type { EuiPageTemplateProps_Deprecated } from '@elastic/eui/src/components/page/page_template';
15450
+ export { EuiPageTemplate_Deprecated } from '@elastic/eui/src/components/page/page_template';
15451
+
15452
+ }
15453
+ declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
15454
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15455
+ export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
15456
+ euiPageOuter: import("@emotion/utils").SerializedStyles;
15457
+ grow: import("@emotion/utils").SerializedStyles;
15458
+ column: import("@emotion/utils").SerializedStyles;
15459
+ row: import("@emotion/utils").SerializedStyles;
15460
+ };
15461
+
15462
+ }
15463
+ declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
15464
+ import { FunctionComponent, HTMLAttributes } from 'react';
15465
+ import { CommonProps } from '@elastic/eui/src/components/common';
15466
+ import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
15467
+ export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
15468
+ /**
15469
+ * Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
15470
+ * Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
15471
+ */
15472
+ grow?: boolean;
15473
+ /**
15474
+ * Changes the `flex-direction` property.
15475
+ * Flip to `column` when not including a sidebar.
15476
+ */
15477
+ direction?: 'row' | 'column';
15478
+ /**
15479
+ * When direction is `row`, it will flip to `column` when within these breakpoints
15480
+ */
15481
+ responsive?: _EuiThemeBreakpoint[];
15482
+ }
15483
+ export const _EuiPageOuter: FunctionComponent<_EuiPageOuterProps>;
15484
+
15485
+ }
15486
+ declare module '@elastic/eui/src/components/page_template/outer' {
15487
+ export type { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer/page_outer';
15488
+ export { _EuiPageOuter } from '@elastic/eui/src/components/page_template/outer/page_outer';
15489
+
15490
+ }
15491
+ declare module '@elastic/eui/src/components/page_template/inner/page_inner.styles' {
15492
+ import { UseEuiTheme } from '@elastic/eui/src/services';
15493
+ export const euiPageInnerStyles: (euiThemeContext: UseEuiTheme) => {
15494
+ euiPageInner: import("@emotion/utils").SerializedStyles;
15495
+ panelled: import("@emotion/utils").SerializedStyles;
15496
+ border: {
15497
+ top: import("@emotion/utils").SerializedStyles;
15498
+ left: import("@emotion/utils").SerializedStyles;
15499
+ };
15500
+ };
15501
+
15502
+ }
15503
+ declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
15504
+ import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
15505
+ import { CommonProps } from '@elastic/eui/src/components/common';
15506
+ import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType;
15507
+ export type _EuiPageInnerProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & {
15508
+ /**
15509
+ * Sets which HTML element to render.
15510
+ */
15511
+ component?: T;
15512
+ /**
15513
+ * Adds a white background and shadow to define the area.
15514
+ */
15515
+ panelled?: boolean;
15516
+ /**
15517
+ * Adds a single side border, based on the `responsive` state.
15518
+ * Typically added when a side bar exists.
15519
+ */
15520
+ border?: boolean;
15521
+ /**
15522
+ * Adjust the overall padding.
15523
+ */
15524
+ paddingSize?: EuiPaddingSize;
15525
+ /**
15526
+ * Decides at which point the component will be 100vw.
15527
+ */
15528
+ responsive?: _EuiThemeBreakpoint[];
15529
+ };
15530
+ export const _EuiPageInner: <T extends ComponentTypes>({ children, component: Component, panelled, border, paddingSize, responsive, ...rest }: React.PropsWithChildren<_EuiPageInnerProps<T>>) => JSX.Element;
15531
+ export {};
15532
+
15533
+ }
15534
+ declare module '@elastic/eui/src/components/page_template/inner' {
15535
+ export type { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner/page_inner';
15536
+ export { _EuiPageInner } from '@elastic/eui/src/components/page_template/inner/page_inner';
15537
+
15538
+ }
15539
+ declare module '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar' {
15540
+ import { FunctionComponent } from 'react';
15541
+ import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
15542
+ import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15543
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15544
+ export interface _EuiPageBottomBarProps extends Pick<EuiPageSectionProps, 'paddingSize'>, _EuiPageRestrictWidth, Omit<EuiBottomBarProps, 'paddingSize'> {
15545
+ /**
15546
+ * The reference id of the element to insert into
15547
+ */
15548
+ parent?: string;
15549
+ }
15550
+ export const _EuiPageBottomBar: FunctionComponent<_EuiPageBottomBarProps>;
15551
+
15552
+ }
15553
+ declare module '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt' {
15554
+ import { FunctionComponent } from 'react';
15555
+ import { EuiEmptyPromptProps } from '@elastic/eui/src/components/empty_prompt';
15556
+ import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
15557
+ export type _EuiPageEmptyPromptProps = Omit<EuiPageSectionProps, 'title' | 'bottomBorder'> & Omit<EuiEmptyPromptProps, 'paddingSize'> & {
15558
+ panelled?: boolean;
15559
+ };
15560
+ export const _EuiPageEmptyPrompt: FunctionComponent<_EuiPageEmptyPromptProps>;
15561
+
15562
+ }
15563
+ declare module '@elastic/eui/src/components/page_template/page_template' {
15564
+ import React, { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
15565
+ import { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer';
15566
+ import { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner';
15567
+ import { _EuiPageBottomBarProps } from '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar';
15568
+ import { _EuiPageEmptyPromptProps } from '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt';
15569
+ import { EuiPageHeaderProps, EuiPageSectionProps } from '@elastic/eui/src/components/page';
15570
+ import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
15571
+ import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
15572
+ import { CommonProps } from '@elastic/eui/src/components/common';
15573
+ export const TemplateContext: React.Context<{
15574
+ section: {};
15575
+ header: {};
15576
+ emptyPrompt: {};
15577
+ bottomBar: {};
15578
+ }>;
15579
+ export type EuiPageTemplateProps = _EuiPageOuterProps & Omit<_EuiPageInnerProps, 'border'> & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
15580
+ /**
15581
+ * Applies a top or left border to the inner contents
15582
+ * to add separation between content and sidebar when a sidebar exists.
15583
+ */
15584
+ contentBorder?: _EuiPageInnerProps['border'];
15585
+ /**
15586
+ * Minimum height in which to enforce scrolling
15587
+ */
15588
+ minHeight?: CSSProperties['minHeight'];
15589
+ /**
15590
+ * To account for any fixed elements like headers,
15591
+ * pass in the value of the total height of those fixed elements.
15592
+ * Otherwise they will be calculated based on the data attributes on the body element.
15593
+ */
15594
+ offset?: number;
15595
+ /**
15596
+ * Passes through some common HTML attributes to the `main` content wrapper
15597
+ */
15598
+ mainProps?: CommonProps & HTMLAttributes<HTMLElement>;
15599
+ };
15600
+ /**
15601
+ * Consumed via `EuiPageTemplate`,
15602
+ * it controls and propogates most of the shared props per direct child
15603
+ */
15604
+ export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
15605
+ export const EuiPageTemplate: React.FunctionComponent<EuiPageTemplateProps> & {
15606
+ Sidebar: React.FunctionComponent<import ("@elastic/eui/src/components/page").EuiPageSidebarProps>;
15607
+ Header: React.FunctionComponent<EuiPageHeaderProps>;
15608
+ Section: React.FunctionComponent<EuiPageSectionProps>;
15609
+ BottomBar: React.FunctionComponent<_EuiPageBottomBarProps>;
15610
+ EmptyPrompt: React.FunctionComponent<_EuiPageEmptyPromptProps>;
15611
+ };
15612
+
15613
+ }
15614
+ declare module '@elastic/eui/src/components/page_template' {
15615
+ export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page_template/page_template';
15616
+ export { EuiPageTemplate } from '@elastic/eui/src/components/page_template/page_template';
15244
15617
 
15245
15618
  }
15246
15619
  declare module '@elastic/eui/src/global_styling/utility/utility' {
@@ -19028,6 +19401,7 @@ declare module '@elastic/eui/src/components' {
19028
19401
  export * from '@elastic/eui/src/components/outside_click_detector';
19029
19402
  export * from '@elastic/eui/src/components/overlay_mask';
19030
19403
  export * from '@elastic/eui/src/components/page';
19404
+ export * from '@elastic/eui/src/components/page_template';
19031
19405
  export * from '@elastic/eui/src/components/pagination';
19032
19406
  export * from '@elastic/eui/src/components/panel';
19033
19407
  export * from '@elastic/eui/src/components/popover';