@elastic/eui 62.2.0 → 63.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.
- package/dist/eui_theme_dark.css +3 -270
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +3 -270
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/bottom_bar/bottom_bar.js +20 -3
- package/es/components/header/header.js +2 -0
- package/es/components/header/header_links/header_links.js +2 -1
- package/es/components/index.js +1 -0
- package/es/components/page/_bottom_border.js +1 -0
- package/es/components/page/_restrict_width.js +34 -7
- package/es/components/page/index.js +5 -3
- package/es/components/page/page.js +19 -30
- package/es/components/page/page.styles.js +43 -0
- package/es/components/page/page_body/page_body.js +18 -26
- package/es/components/page/page_body/page_body.styles.js +16 -0
- package/es/components/page/page_content/index.js +4 -4
- package/es/components/page/page_content/page_content.js +7 -2
- package/es/components/page/page_content/page_content_body.js +12 -7
- package/es/components/page/page_content/page_content_header.js +7 -2
- package/es/components/page/page_content/page_content_header_section.js +7 -2
- package/es/components/page/page_header/page_header.js +29 -172
- package/es/components/page/page_header/page_header.styles.js +16 -0
- package/es/components/page/page_header/page_header_content.js +84 -16
- package/es/components/page/page_header/page_header_content.styles.js +84 -0
- package/es/components/page/page_section/index.js +8 -0
- package/es/components/page/page_section/page_section.js +102 -0
- package/es/components/page/page_section/page_section.styles.js +43 -0
- package/es/components/page/page_side_bar/index.js +1 -1
- package/es/components/page/page_side_bar/page_side_bar.js +8 -3
- package/es/components/page/page_sidebar/index.js +8 -0
- package/es/components/page/page_sidebar/page_sidebar.js +110 -0
- package/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
- package/es/components/page/page_template.js +54 -154
- package/es/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +107 -0
- package/es/components/page_template/index.js +8 -0
- package/es/components/page_template/inner/index.js +8 -0
- package/es/components/page_template/inner/page_inner.js +51 -0
- package/es/components/page_template/inner/page_inner.styles.js +22 -0
- package/es/components/page_template/outer/index.js +8 -0
- package/es/components/page_template/outer/page_outer.js +59 -0
- package/es/components/page_template/outer/page_outer.styles.js +49 -0
- package/es/components/page_template/page_template.js +376 -0
- package/es/global_styling/functions/logicals.js +1 -1
- package/es/global_styling/mixins/_helpers.js +27 -9
- package/eui.d.ts +423 -49
- package/lib/components/bottom_bar/bottom_bar.js +20 -3
- package/lib/components/header/header.js +2 -0
- package/lib/components/header/header_links/header_links.js +2 -1
- package/lib/components/index.js +13 -0
- package/lib/components/page/_bottom_border.js +5 -0
- package/lib/components/page/_restrict_width.js +38 -7
- package/lib/components/page/index.js +28 -12
- package/lib/components/page/page.js +22 -34
- package/lib/components/page/page.styles.js +46 -0
- package/lib/components/page/page_body/page_body.js +20 -29
- package/lib/components/page/page_body/page_body.styles.js +27 -0
- package/lib/components/page/page_content/index.js +8 -8
- package/lib/components/page/page_content/page_content.js +8 -4
- package/lib/components/page/page_content/page_content_body.js +13 -9
- package/lib/components/page/page_content/page_content_header.js +8 -4
- package/lib/components/page/page_content/page_content_header_section.js +8 -4
- package/lib/components/page/page_header/page_header.js +31 -175
- package/lib/components/page/page_header/page_header.styles.js +27 -0
- package/lib/components/page/page_header/page_header_content.js +108 -16
- package/lib/components/page/page_header/page_header_content.styles.js +87 -0
- package/lib/components/page/page_section/index.js +13 -0
- package/lib/components/page/page_section/page_section.js +113 -0
- package/lib/components/page/page_section/page_section.styles.js +51 -0
- package/lib/components/page/page_side_bar/index.js +2 -2
- package/lib/components/page/page_side_bar/page_side_bar.js +9 -5
- package/lib/components/page/page_sidebar/index.js +13 -0
- package/lib/components/page/page_sidebar/page_sidebar.js +124 -0
- package/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/lib/components/page/page_template.js +76 -177
- package/lib/components/page_template/bottom_bar/page_bottom_bar.js +114 -0
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +116 -0
- package/lib/components/page_template/index.js +13 -0
- package/lib/components/page_template/inner/index.js +13 -0
- package/lib/components/page_template/inner/page_inner.js +60 -0
- package/lib/components/page_template/inner/page_inner.styles.js +35 -0
- package/lib/components/page_template/outer/index.js +13 -0
- package/lib/components/page_template/outer/page_outer.js +68 -0
- package/lib/components/page_template/outer/page_outer.styles.js +51 -0
- package/lib/components/page_template/page_template.js +399 -0
- package/lib/global_styling/functions/logicals.js +1 -1
- package/lib/global_styling/mixins/_helpers.js +27 -9
- package/optimize/es/components/bottom_bar/bottom_bar.js +1 -1
- package/optimize/es/components/header/header.js +2 -0
- package/optimize/es/components/header/header_links/header_links.js +2 -1
- package/optimize/es/components/index.js +1 -0
- package/optimize/es/components/page/_bottom_border.js +1 -0
- package/optimize/es/components/page/_restrict_width.js +34 -7
- package/optimize/es/components/page/index.js +5 -3
- package/optimize/es/components/page/page.js +18 -28
- package/optimize/es/components/page/page.styles.js +43 -0
- package/optimize/es/components/page/page_body/page_body.js +18 -25
- package/optimize/es/components/page/page_body/page_body.styles.js +16 -0
- package/optimize/es/components/page/page_content/index.js +4 -4
- package/optimize/es/components/page/page_content/page_content.js +6 -1
- package/optimize/es/components/page/page_content/page_content_body.js +10 -5
- package/optimize/es/components/page/page_content/page_content_header.js +6 -1
- package/optimize/es/components/page/page_content/page_content_header_section.js +6 -1
- package/optimize/es/components/page/page_header/page_header.js +20 -32
- package/optimize/es/components/page/page_header/page_header.styles.js +16 -0
- package/optimize/es/components/page/page_header/page_header_content.js +62 -14
- package/optimize/es/components/page/page_header/page_header_content.styles.js +84 -0
- package/optimize/es/components/page/page_section/index.js +8 -0
- package/optimize/es/components/page/page_section/page_section.js +51 -0
- package/optimize/es/components/page/page_section/page_section.styles.js +43 -0
- package/optimize/es/components/page/page_side_bar/index.js +1 -1
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +6 -1
- package/optimize/es/components/page/page_sidebar/index.js +8 -0
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +60 -0
- package/optimize/es/components/page/page_sidebar/page_sidebar.styles.js +29 -0
- package/optimize/es/components/page/page_template.js +29 -9
- package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +70 -0
- package/optimize/es/components/page_template/empty_prompt/page_empty_prompt.js +61 -0
- package/optimize/es/components/page_template/index.js +8 -0
- package/optimize/es/components/page_template/inner/index.js +8 -0
- package/optimize/es/components/page_template/inner/page_inner.js +47 -0
- package/optimize/es/components/page_template/inner/page_inner.styles.js +22 -0
- package/optimize/es/components/page_template/outer/index.js +8 -0
- package/optimize/es/components/page_template/outer/page_outer.js +33 -0
- package/optimize/es/components/page_template/outer/page_outer.styles.js +49 -0
- package/optimize/es/components/page_template/page_template.js +202 -0
- package/optimize/es/global_styling/functions/logicals.js +1 -1
- package/optimize/es/global_styling/mixins/_helpers.js +27 -9
- package/optimize/lib/components/bottom_bar/bottom_bar.js +1 -1
- package/optimize/lib/components/header/header.js +2 -0
- package/optimize/lib/components/header/header_links/header_links.js +2 -1
- package/optimize/lib/components/index.js +13 -0
- package/optimize/lib/components/page/_bottom_border.js +5 -0
- package/optimize/lib/components/page/_restrict_width.js +38 -7
- package/optimize/lib/components/page/index.js +28 -12
- package/optimize/lib/components/page/page.js +21 -33
- package/optimize/lib/components/page/page.styles.js +46 -0
- package/optimize/lib/components/page/page_body/page_body.js +20 -29
- package/optimize/lib/components/page/page_body/page_body.styles.js +27 -0
- package/optimize/lib/components/page/page_content/index.js +8 -8
- package/optimize/lib/components/page/page_content/page_content.js +7 -3
- package/optimize/lib/components/page/page_content/page_content_body.js +11 -7
- package/optimize/lib/components/page/page_content/page_content_header.js +7 -3
- package/optimize/lib/components/page/page_content/page_content_header_section.js +7 -3
- package/optimize/lib/components/page/page_header/page_header.js +22 -36
- package/optimize/lib/components/page/page_header/page_header.styles.js +27 -0
- package/optimize/lib/components/page/page_header/page_header_content.js +66 -13
- package/optimize/lib/components/page/page_header/page_header_content.styles.js +87 -0
- package/optimize/lib/components/page/page_section/index.js +13 -0
- package/optimize/lib/components/page/page_section/page_section.js +62 -0
- package/optimize/lib/components/page/page_section/page_section.styles.js +51 -0
- package/optimize/lib/components/page/page_side_bar/index.js +2 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +7 -3
- package/optimize/lib/components/page/page_sidebar/index.js +13 -0
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +79 -0
- package/optimize/lib/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/optimize/lib/components/page/page_template.js +51 -33
- package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +85 -0
- package/optimize/lib/components/page_template/empty_prompt/page_empty_prompt.js +71 -0
- package/optimize/lib/components/page_template/index.js +13 -0
- package/optimize/lib/components/page_template/inner/index.js +13 -0
- package/optimize/lib/components/page_template/inner/page_inner.js +57 -0
- package/optimize/lib/components/page_template/inner/page_inner.styles.js +35 -0
- package/optimize/lib/components/page_template/outer/index.js +13 -0
- package/optimize/lib/components/page_template/outer/page_outer.js +42 -0
- package/optimize/lib/components/page_template/outer/page_outer.styles.js +51 -0
- package/optimize/lib/components/page_template/page_template.js +228 -0
- package/optimize/lib/global_styling/functions/logicals.js +1 -1
- package/optimize/lib/global_styling/mixins/_helpers.js +27 -9
- package/package.json +1 -1
- package/src/components/page/_index.scss +0 -5
- package/src/components/page/page_content/_page_content_body.scss +10 -1
- package/src/components/tabs/_tabs.scss +2 -0
- package/test-env/components/bottom_bar/bottom_bar.js +20 -3
- package/test-env/components/header/header.js +2 -0
- package/test-env/components/header/header_links/header_links.js +2 -1
- package/test-env/components/index.js +13 -0
- package/test-env/components/page/_bottom_border.js +5 -0
- package/test-env/components/page/_restrict_width.js +38 -7
- package/test-env/components/page/index.js +28 -12
- package/test-env/components/page/page.js +22 -34
- package/test-env/components/page/page.styles.js +46 -0
- package/test-env/components/page/page_body/page_body.js +20 -29
- package/test-env/components/page/page_body/page_body.styles.js +27 -0
- package/test-env/components/page/page_content/index.js +8 -8
- package/test-env/components/page/page_content/page_content.js +8 -4
- package/test-env/components/page/page_content/page_content_body.js +13 -9
- package/test-env/components/page/page_content/page_content_header.js +8 -4
- package/test-env/components/page/page_content/page_content_header_section.js +8 -4
- package/test-env/components/page/page_header/page_header.js +31 -175
- package/test-env/components/page/page_header/page_header.styles.js +27 -0
- package/test-env/components/page/page_header/page_header_content.js +109 -16
- package/test-env/components/page/page_header/page_header_content.styles.js +87 -0
- package/test-env/components/page/page_section/index.js +13 -0
- package/test-env/components/page/page_section/page_section.js +110 -0
- package/test-env/components/page/page_section/page_section.styles.js +51 -0
- package/test-env/components/page/page_side_bar/index.js +2 -2
- package/test-env/components/page/page_side_bar/page_side_bar.js +9 -5
- package/test-env/components/page/page_sidebar/index.js +13 -0
- package/test-env/components/page/page_sidebar/page_sidebar.js +113 -0
- package/test-env/components/page/page_sidebar/page_sidebar.styles.js +32 -0
- package/test-env/components/page/page_template.js +76 -178
- package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +102 -0
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +114 -0
- package/test-env/components/page_template/index.js +13 -0
- package/test-env/components/page_template/inner/index.js +13 -0
- package/test-env/components/page_template/inner/page_inner.js +57 -0
- package/test-env/components/page_template/inner/page_inner.styles.js +35 -0
- package/test-env/components/page_template/outer/index.js +13 -0
- package/test-env/components/page_template/outer/page_outer.js +65 -0
- package/test-env/components/page_template/outer/page_outer.styles.js +51 -0
- package/test-env/components/page_template/page_template.js +387 -0
- package/test-env/global_styling/functions/logicals.js +1 -1
- package/test-env/global_styling/mixins/_helpers.js +27 -9
- package/src/components/page/_mixins.scss +0 -12
- package/src/components/page/_page.scss +0 -41
- package/src/components/page/page_body/_index.scss +0 -1
- package/src/components/page/page_body/_page_body.scss +0 -45
- package/src/components/page/page_header/_index.scss +0 -3
- package/src/components/page/page_header/_page_header.scss +0 -78
- package/src/components/page/page_header/_page_header_content.scss +0 -15
- 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
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
export const
|
|
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]:
|
|
1726
|
+
[x: string]: any;
|
|
1724
1727
|
};
|
|
1725
1728
|
/**
|
|
1726
1729
|
*
|
|
@@ -7720,7 +7723,8 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar.styles' {
|
|
|
7720
7723
|
}
|
|
7721
7724
|
declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
7722
7725
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
7723
|
-
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7726
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
7727
|
+
import { EuiPortalProps } from '@elastic/eui/src/components/portal'; type BottomBarPaddingSize = 'none' | 's' | 'm' | 'l';
|
|
7724
7728
|
export const paddingSizeToClassNameMap: {
|
|
7725
7729
|
[value in BottomBarPaddingSize]: string | null;
|
|
7726
7730
|
};
|
|
@@ -7731,7 +7735,7 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
|
7731
7735
|
* Whether to wrap in an EuiPortal which appends the component to the body element.
|
|
7732
7736
|
* Only works if `position` is `fixed`.
|
|
7733
7737
|
*/
|
|
7734
|
-
usePortal?: boolean;
|
|
7738
|
+
usePortal?: boolean | EuiPortalProps;
|
|
7735
7739
|
/**
|
|
7736
7740
|
* Whether the component should apply padding on the document body element to afford for its own displacement height.
|
|
7737
7741
|
* Only works if `usePortal` is true and `position` is `fixed`.
|
|
@@ -14847,25 +14851,51 @@ declare module '@elastic/eui/src/components/page/_restrict_width' {
|
|
|
14847
14851
|
* This is file contains the type specific to that prop and a helper
|
|
14848
14852
|
* function for creating the corresponding classNames and style tags
|
|
14849
14853
|
* based on the consumer's configuration
|
|
14850
|
-
*
|
|
14851
|
-
* @param {restrictWidth} boolean | number | string The prop value
|
|
14852
|
-
* @param {style} CSSProperties An object of style attributes if provided
|
|
14853
|
-
* @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
|
|
14854
14854
|
*/
|
|
14855
14855
|
import { CSSProperties } from 'react';
|
|
14856
|
+
export const PAGE_MAX_WIDTH: CSSProperties['maxWidth'];
|
|
14856
14857
|
export type _EuiPageRestrictWidth = {
|
|
14857
14858
|
/**
|
|
14858
14859
|
* Sets the max-width of the page,
|
|
14859
|
-
* set to `true` to use the default size of `
|
|
14860
|
+
* set to `true` to use the default size of `1200px`,
|
|
14860
14861
|
* set to `false` to not restrict the width,
|
|
14861
14862
|
* set to a number for a custom width in px,
|
|
14862
14863
|
* set to a string for a custom width in custom measurement.
|
|
14863
14864
|
*/
|
|
14864
14865
|
restrictWidth?: boolean | number | string;
|
|
14865
14866
|
};
|
|
14867
|
+
/**
|
|
14868
|
+
* **DEPRECATED**
|
|
14869
|
+
* This function calculates the correct class name and combined styles
|
|
14870
|
+
* based on the `restrictWidth` value passed in
|
|
14871
|
+
*
|
|
14872
|
+
* @param restrictWidth `boolean | number | string` The prop value
|
|
14873
|
+
* @param style `CSSProperties` An object of style attributes if provided
|
|
14874
|
+
* @returns An object with keys for the `widthClassName` to append to the component's class and the updated `newStyle` props
|
|
14875
|
+
*/
|
|
14866
14876
|
export function setPropsForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): {
|
|
14867
14877
|
widthClassName?: string;
|
|
14868
|
-
newStyle
|
|
14878
|
+
newStyle: CSSProperties;
|
|
14879
|
+
};
|
|
14880
|
+
/**
|
|
14881
|
+
* This function calculates the correct just the combined styles
|
|
14882
|
+
* based on the `restrictWidth` value passed in
|
|
14883
|
+
*
|
|
14884
|
+
* @param restrictWidth `boolean | number | string` The prop value
|
|
14885
|
+
* @param style `CSSProperties` An object of style attributes if provided
|
|
14886
|
+
* @returns An object of the updated `style` props
|
|
14887
|
+
*/
|
|
14888
|
+
export function setStyleForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): CSSProperties;
|
|
14889
|
+
|
|
14890
|
+
}
|
|
14891
|
+
declare module '@elastic/eui/src/components/page/page.styles' {
|
|
14892
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
14893
|
+
export const euiPageStyles: (euiThemeContext: UseEuiTheme) => {
|
|
14894
|
+
euiPage: import("@emotion/utils").SerializedStyles;
|
|
14895
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
14896
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
14897
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
14898
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
14869
14899
|
};
|
|
14870
14900
|
|
|
14871
14901
|
}
|
|
@@ -14873,14 +14903,13 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
14873
14903
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
14874
14904
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14875
14905
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
14876
|
-
|
|
14877
|
-
export const DIRECTIONS: ("row" | "column")[];
|
|
14906
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
14878
14907
|
export interface EuiPageProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
|
|
14879
14908
|
/**
|
|
14880
14909
|
* Adjust the padding.
|
|
14881
14910
|
* When using this setting it's best to be consistent throughout all similar usages
|
|
14882
14911
|
*/
|
|
14883
|
-
paddingSize?:
|
|
14912
|
+
paddingSize?: EuiPaddingSize;
|
|
14884
14913
|
/**
|
|
14885
14914
|
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
14886
14915
|
* Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
|
|
@@ -14894,13 +14923,20 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
14894
14923
|
}
|
|
14895
14924
|
export const EuiPage: FunctionComponent<EuiPageProps>;
|
|
14896
14925
|
|
|
14926
|
+
}
|
|
14927
|
+
declare module '@elastic/eui/src/components/page/page_body/page_body.styles' {
|
|
14928
|
+
export const euiPageBodyStyles: () => {
|
|
14929
|
+
euiPageBody: import("@emotion/utils").SerializedStyles;
|
|
14930
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
14931
|
+
};
|
|
14932
|
+
|
|
14897
14933
|
}
|
|
14898
14934
|
declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
14899
14935
|
import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
|
|
14900
14936
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14901
14937
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
14902
14938
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
14903
|
-
|
|
14939
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
|
|
14904
14940
|
export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
|
|
14905
14941
|
/**
|
|
14906
14942
|
* Sets the HTML element for `EuiPageBody`.
|
|
@@ -14917,9 +14953,9 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
|
14917
14953
|
/**
|
|
14918
14954
|
* Adjusts the padding
|
|
14919
14955
|
*/
|
|
14920
|
-
paddingSize?:
|
|
14956
|
+
paddingSize?: EuiPaddingSize;
|
|
14921
14957
|
};
|
|
14922
|
-
export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth,
|
|
14958
|
+
export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
|
|
14923
14959
|
export {};
|
|
14924
14960
|
|
|
14925
14961
|
}
|
|
@@ -14944,7 +14980,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
|
14944
14980
|
*/
|
|
14945
14981
|
role?: HTMLAttributes['role'] | null;
|
|
14946
14982
|
};
|
|
14947
|
-
|
|
14983
|
+
/**
|
|
14984
|
+
* **DEPRECATED**
|
|
14985
|
+
* Use EuiPageSection instead
|
|
14986
|
+
*/
|
|
14987
|
+
export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
|
|
14948
14988
|
|
|
14949
14989
|
}
|
|
14950
14990
|
declare module '@elastic/eui/src/components/page/page_content/page_content_body' {
|
|
@@ -14959,7 +14999,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
14959
14999
|
*/
|
|
14960
15000
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
14961
15001
|
}
|
|
14962
|
-
|
|
15002
|
+
/**
|
|
15003
|
+
* **DEPRECATED**
|
|
15004
|
+
* Use EuiPageSection instead
|
|
15005
|
+
*/
|
|
15006
|
+
export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
|
|
14963
15007
|
|
|
14964
15008
|
}
|
|
14965
15009
|
declare module '@elastic/eui/src/components/page/page_content/page_content_header' {
|
|
@@ -14972,7 +15016,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
14972
15016
|
*/
|
|
14973
15017
|
responsive?: boolean;
|
|
14974
15018
|
}
|
|
14975
|
-
|
|
15019
|
+
/**
|
|
15020
|
+
* **DEPRECATED**
|
|
15021
|
+
* Use EuiPageHeader instead
|
|
15022
|
+
*/
|
|
15023
|
+
export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
|
|
14976
15024
|
|
|
14977
15025
|
}
|
|
14978
15026
|
declare module '@elastic/eui/src/components/page/page_content/page_content_header_section' {
|
|
@@ -14980,18 +15028,45 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
14980
15028
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14981
15029
|
export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
14982
15030
|
}
|
|
14983
|
-
|
|
15031
|
+
/**
|
|
15032
|
+
* **DEPRECATED**
|
|
15033
|
+
* Use EuiPageHeader instead
|
|
15034
|
+
*/
|
|
15035
|
+
export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
|
|
14984
15036
|
|
|
14985
15037
|
}
|
|
14986
15038
|
declare module '@elastic/eui/src/components/page/page_content' {
|
|
14987
15039
|
export type { EuiPageContentProps } from '@elastic/eui/src/components/page/page_content/page_content';
|
|
14988
|
-
export {
|
|
15040
|
+
export { EuiPageContent_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content';
|
|
14989
15041
|
export type { EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content/page_content_body';
|
|
14990
|
-
export {
|
|
15042
|
+
export { EuiPageContentBody_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_body';
|
|
14991
15043
|
export type { EuiPageContentHeaderProps } from '@elastic/eui/src/components/page/page_content/page_content_header';
|
|
14992
|
-
export {
|
|
15044
|
+
export { EuiPageContentHeader_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header';
|
|
14993
15045
|
export type { EuiPageContentHeaderSectionProps } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
|
|
14994
|
-
export {
|
|
15046
|
+
export { EuiPageContentHeaderSection_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
|
|
15047
|
+
|
|
15048
|
+
}
|
|
15049
|
+
declare module '@elastic/eui/src/components/page/page_header/page_header.styles' {
|
|
15050
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15051
|
+
export const euiPageHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15052
|
+
euiPageHeader: import("@emotion/utils").SerializedStyles;
|
|
15053
|
+
border: import("@emotion/utils").SerializedStyles;
|
|
15054
|
+
};
|
|
15055
|
+
|
|
15056
|
+
}
|
|
15057
|
+
declare module '@elastic/eui/src/components/page/page_header/page_header_content.styles' {
|
|
15058
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15059
|
+
export const euiPageHeaderContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15060
|
+
euiPageHeaderContent: import("@emotion/utils").SerializedStyles;
|
|
15061
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15062
|
+
bottom: import("@emotion/utils").SerializedStyles;
|
|
15063
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15064
|
+
stretch: import("@emotion/utils").SerializedStyles;
|
|
15065
|
+
flex: import("@emotion/utils").SerializedStyles;
|
|
15066
|
+
responsive: import("@emotion/utils").SerializedStyles;
|
|
15067
|
+
responsiveReverse: import("@emotion/utils").SerializedStyles;
|
|
15068
|
+
euiPageHeaderContent__titleIcon: import("@emotion/utils").SerializedStyles;
|
|
15069
|
+
};
|
|
14995
15070
|
|
|
14996
15071
|
}
|
|
14997
15072
|
declare module '@elastic/eui/src/components/page/page_header/page_header_content' {
|
|
@@ -15003,6 +15078,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15003
15078
|
import { EuiFlexGroupProps } from '@elastic/eui/src/components/flex';
|
|
15004
15079
|
import { EuiTitleProps } from '@elastic/eui/src/components/title';
|
|
15005
15080
|
import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
15081
|
+
import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
|
|
15082
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15006
15083
|
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"]; type Tab = EuiTabProps & {
|
|
15007
15084
|
/**
|
|
15008
15085
|
* Visible text of the tab
|
|
@@ -15060,7 +15137,16 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15060
15137
|
*/
|
|
15061
15138
|
description?: string | ReactNode;
|
|
15062
15139
|
}
|
|
15063
|
-
export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft {
|
|
15140
|
+
export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft, _EuiPageRestrictWidth {
|
|
15141
|
+
/**
|
|
15142
|
+
* The only option is on/off
|
|
15143
|
+
*/
|
|
15144
|
+
bottomBorder?: boolean;
|
|
15145
|
+
/**
|
|
15146
|
+
* Adjust the padding.
|
|
15147
|
+
* When using this setting it's best to be consistent throughout all similar usages
|
|
15148
|
+
*/
|
|
15149
|
+
paddingSize?: typeof PADDING_SIZES[number];
|
|
15064
15150
|
/**
|
|
15065
15151
|
* Set to false if you don't want the children to stack at small screen sizes.
|
|
15066
15152
|
* Set to `reverse` to display the right side content first for the sake of hierarchy (like global time)
|
|
@@ -15068,7 +15154,7 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15068
15154
|
responsive?: boolean | 'reverse';
|
|
15069
15155
|
/**
|
|
15070
15156
|
* Vertical alignment of the left and right side content;
|
|
15071
|
-
* Default is `
|
|
15157
|
+
* Default is `center` for custom content, but `top` for when `pageTitle` or `tabs` are included
|
|
15072
15158
|
*/
|
|
15073
15159
|
alignItems?: typeof ALIGN_ITEMS[number];
|
|
15074
15160
|
/**
|
|
@@ -15091,23 +15177,29 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15091
15177
|
export const EuiPageHeaderContent: FunctionComponent<EuiPageHeaderContentProps>;
|
|
15092
15178
|
export {};
|
|
15093
15179
|
|
|
15180
|
+
}
|
|
15181
|
+
declare module '@elastic/eui/src/components/page/_bottom_border' {
|
|
15182
|
+
export type _EuiPageBottomBorder = {
|
|
15183
|
+
/**
|
|
15184
|
+
* Adds a bottom border to separate it from the content after;
|
|
15185
|
+
* Passing `extended` will ensure the border touches the sides of the parent container.
|
|
15186
|
+
*/
|
|
15187
|
+
bottomBorder?: boolean | 'extended';
|
|
15188
|
+
};
|
|
15189
|
+
|
|
15094
15190
|
}
|
|
15095
15191
|
declare module '@elastic/eui/src/components/page/page_header/page_header' {
|
|
15096
15192
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15097
15193
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15194
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
15098
15195
|
import { _EuiPageHeaderContentProps } from '@elastic/eui/src/components/page/page_header/page_header_content';
|
|
15099
15196
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15100
|
-
|
|
15101
|
-
export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, _EuiPageHeaderContentProps, _EuiPageRestrictWidth {
|
|
15102
|
-
/**
|
|
15103
|
-
* Adjust the padding.
|
|
15104
|
-
* When using this setting it's best to be consistent throughout all similar usages
|
|
15105
|
-
*/
|
|
15106
|
-
paddingSize?: typeof PADDING_SIZES[number];
|
|
15197
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15198
|
+
export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, Omit<_EuiPageHeaderContentProps, 'bottomBorder'>, _EuiPageRestrictWidth, _EuiPageBottomBorder {
|
|
15107
15199
|
/**
|
|
15108
|
-
*
|
|
15200
|
+
* Adjust the overall padding.
|
|
15109
15201
|
*/
|
|
15110
|
-
|
|
15202
|
+
paddingSize?: EuiPaddingSize;
|
|
15111
15203
|
}
|
|
15112
15204
|
export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
|
|
15113
15205
|
|
|
@@ -15128,6 +15220,62 @@ declare module '@elastic/eui/src/components/page/page_header' {
|
|
|
15128
15220
|
export type { EuiPageHeaderSectionProps } from '@elastic/eui/src/components/page/page_header/page_header_section';
|
|
15129
15221
|
export { EuiPageHeaderSection } from '@elastic/eui/src/components/page/page_header/page_header_section';
|
|
15130
15222
|
|
|
15223
|
+
}
|
|
15224
|
+
declare module '@elastic/eui/src/components/page/page_section/page_section.styles' {
|
|
15225
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15226
|
+
export const ALIGNMENTS: readonly ["top", "center", "horizontalCenter"];
|
|
15227
|
+
export const euiPageSectionStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15228
|
+
euiPageSection: import("@emotion/utils").SerializedStyles;
|
|
15229
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
15230
|
+
border: import("@emotion/utils").SerializedStyles;
|
|
15231
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15232
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15233
|
+
horizontalCenter: import("@emotion/utils").SerializedStyles;
|
|
15234
|
+
};
|
|
15235
|
+
export const euiPageSectionContentStyles: () => {
|
|
15236
|
+
euiPageSection__content: import("@emotion/utils").SerializedStyles;
|
|
15237
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15238
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
15239
|
+
};
|
|
15240
|
+
|
|
15241
|
+
}
|
|
15242
|
+
declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
15243
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15244
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15245
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15246
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15247
|
+
import { ALIGNMENTS } from '@elastic/eui/src/components/page/page_section/page_section.styles';
|
|
15248
|
+
import { EuiPaddingSize, _EuiBackgroundColor } from '@elastic/eui/src/global_styling';
|
|
15249
|
+
export type EuiPageSectionProps = CommonProps & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
|
|
15250
|
+
/**
|
|
15251
|
+
* Background color of the section;
|
|
15252
|
+
* Usually a lightened form of the brand colors
|
|
15253
|
+
*/
|
|
15254
|
+
color?: _EuiBackgroundColor;
|
|
15255
|
+
/**
|
|
15256
|
+
* Padding for all four sides
|
|
15257
|
+
*/
|
|
15258
|
+
paddingSize?: EuiPaddingSize;
|
|
15259
|
+
/**
|
|
15260
|
+
* Horizontal and/or vertical alignment of the section contents
|
|
15261
|
+
*/
|
|
15262
|
+
alignment?: typeof ALIGNMENTS[number];
|
|
15263
|
+
/**
|
|
15264
|
+
* When true the panel will grow in height to fill container if parent is a flex group
|
|
15265
|
+
*/
|
|
15266
|
+
grow?: boolean;
|
|
15267
|
+
/**
|
|
15268
|
+
* Passed down to the div wrapper of the section contents
|
|
15269
|
+
*/
|
|
15270
|
+
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
15271
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
15272
|
+
export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
|
|
15273
|
+
|
|
15274
|
+
}
|
|
15275
|
+
declare module '@elastic/eui/src/components/page/page_section' {
|
|
15276
|
+
export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section/page_section';
|
|
15277
|
+
export { EuiPageSection } from '@elastic/eui/src/components/page/page_section/page_section';
|
|
15278
|
+
|
|
15131
15279
|
}
|
|
15132
15280
|
declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
15133
15281
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -15135,7 +15283,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15135
15283
|
export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
|
|
15136
15284
|
export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15137
15285
|
/**
|
|
15138
|
-
* Adds `position: sticky`
|
|
15286
|
+
* Adds `position: sticky`
|
|
15139
15287
|
*/
|
|
15140
15288
|
sticky?: boolean;
|
|
15141
15289
|
/**
|
|
@@ -15143,24 +15291,74 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15143
15291
|
*/
|
|
15144
15292
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15145
15293
|
}
|
|
15146
|
-
|
|
15294
|
+
/**
|
|
15295
|
+
* **DEPRECATED**
|
|
15296
|
+
* Use the new EuiPageSidebar instead
|
|
15297
|
+
*/
|
|
15298
|
+
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
|
|
15147
15299
|
|
|
15148
15300
|
}
|
|
15149
15301
|
declare module '@elastic/eui/src/components/page/page_side_bar' {
|
|
15150
15302
|
export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
|
|
15151
|
-
export {
|
|
15303
|
+
export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
|
|
15304
|
+
|
|
15305
|
+
}
|
|
15306
|
+
declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar.styles' {
|
|
15307
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15308
|
+
export const euiPageSidebarStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15309
|
+
euiPageSidebar: import("@emotion/utils").SerializedStyles;
|
|
15310
|
+
sticky: import("@emotion/utils").SerializedStyles;
|
|
15311
|
+
};
|
|
15312
|
+
|
|
15313
|
+
}
|
|
15314
|
+
declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar' {
|
|
15315
|
+
import { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
|
|
15316
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15317
|
+
import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
15318
|
+
export interface EuiPageSidebarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15319
|
+
/**
|
|
15320
|
+
* Adjust the padding.
|
|
15321
|
+
* When using this setting it's best to be consistent throughout all similar usages.
|
|
15322
|
+
*/
|
|
15323
|
+
paddingSize?: EuiPaddingSize;
|
|
15324
|
+
/**
|
|
15325
|
+
* Adds `position: sticky` and affords for any fixed position headers.
|
|
15326
|
+
*/
|
|
15327
|
+
sticky?: boolean | {
|
|
15328
|
+
/**
|
|
15329
|
+
* To account for any fixed elements like headers,
|
|
15330
|
+
* pass in the value of the total height of those fixed elements.
|
|
15331
|
+
*/
|
|
15332
|
+
offset?: number;
|
|
15333
|
+
};
|
|
15334
|
+
/**
|
|
15335
|
+
* A minimum width is necessary to maintain size.
|
|
15336
|
+
* Be sure to take `paddingSize` into account.
|
|
15337
|
+
*/
|
|
15338
|
+
minWidth?: CSSProperties['width'];
|
|
15339
|
+
/**
|
|
15340
|
+
* Sets the `minWidth` to 100% when within these breakpoints.
|
|
15341
|
+
*/
|
|
15342
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15343
|
+
}
|
|
15344
|
+
export const EuiPageSidebar: FunctionComponent<EuiPageSidebarProps>;
|
|
15345
|
+
|
|
15346
|
+
}
|
|
15347
|
+
declare module '@elastic/eui/src/components/page/page_sidebar' {
|
|
15348
|
+
export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
|
|
15349
|
+
export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
|
|
15152
15350
|
|
|
15153
15351
|
}
|
|
15154
15352
|
declare module '@elastic/eui/src/components/page/page_template' {
|
|
15155
15353
|
import { CSSProperties, FunctionComponent, ReactNode } from 'react';
|
|
15156
|
-
import { EuiPageProps
|
|
15354
|
+
import { EuiPageProps } from '@elastic/eui/src/components/page/page';
|
|
15157
15355
|
import { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15158
15356
|
import { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
|
|
15159
15357
|
import { EuiPageHeaderProps } from '@elastic/eui/src/components/page/page_header';
|
|
15160
15358
|
import { EuiPageContentProps, EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content';
|
|
15161
15359
|
import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
|
|
15162
15360
|
export const TEMPLATES: readonly ["default", "centeredBody", "centeredContent", "empty"];
|
|
15163
|
-
export type
|
|
15361
|
+
export type EuiPageTemplateProps_Deprecated = Omit<EuiPageProps, 'paddingSize'> & {
|
|
15164
15362
|
/**
|
|
15165
15363
|
* Choose between 3 types of templates.
|
|
15166
15364
|
* `default`: Typical layout with nothing centered
|
|
@@ -15173,7 +15371,7 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15173
15371
|
* Padding size will not get applied to the over-arching #EuiPage,
|
|
15174
15372
|
* but will propogate through all the components to keep them in sync
|
|
15175
15373
|
*/
|
|
15176
|
-
paddingSize?:
|
|
15374
|
+
paddingSize?: 'none' | 's' | 'm' | 'l';
|
|
15177
15375
|
/**
|
|
15178
15376
|
* Optionally include #EuiPageSideBar content.
|
|
15179
15377
|
* The inclusion of this will affect the whole layout
|
|
@@ -15220,7 +15418,12 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15220
15418
|
*/
|
|
15221
15419
|
minHeight?: CSSProperties['minHeight'];
|
|
15222
15420
|
};
|
|
15223
|
-
|
|
15421
|
+
/**
|
|
15422
|
+
* This component has been deprecated in favor of the new
|
|
15423
|
+
* namespaced version. You can still import this component
|
|
15424
|
+
* for a period of time by importing `as EuiPageTemplate`.
|
|
15425
|
+
*/
|
|
15426
|
+
export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
|
|
15224
15427
|
|
|
15225
15428
|
}
|
|
15226
15429
|
declare module '@elastic/eui/src/components/page' {
|
|
@@ -15229,13 +15432,183 @@ declare module '@elastic/eui/src/components/page' {
|
|
|
15229
15432
|
export type { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
|
|
15230
15433
|
export { EuiPageBody } from '@elastic/eui/src/components/page/page_body';
|
|
15231
15434
|
export type { EuiPageContentProps, EuiPageContentBodyProps, EuiPageContentHeaderProps, EuiPageContentHeaderSectionProps, } from '@elastic/eui/src/components/page/page_content';
|
|
15232
|
-
export {
|
|
15435
|
+
export { EuiPageContent_Deprecated, EuiPageContentBody_Deprecated, EuiPageContentHeader_Deprecated, EuiPageContentHeaderSection_Deprecated, } from '@elastic/eui/src/components/page/page_content';
|
|
15233
15436
|
export type { EuiPageHeaderContentProps, EuiPageHeaderProps, EuiPageHeaderSectionProps, } from '@elastic/eui/src/components/page/page_header';
|
|
15234
15437
|
export { EuiPageHeader, EuiPageHeaderContent, EuiPageHeaderSection, } from '@elastic/eui/src/components/page/page_header';
|
|
15438
|
+
export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15439
|
+
export { EuiPageSection } from '@elastic/eui/src/components/page/page_section';
|
|
15235
15440
|
export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15236
|
-
export {
|
|
15237
|
-
export type {
|
|
15238
|
-
export {
|
|
15441
|
+
export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15442
|
+
export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar';
|
|
15443
|
+
export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar';
|
|
15444
|
+
export type { EuiPageTemplateProps_Deprecated } from '@elastic/eui/src/components/page/page_template';
|
|
15445
|
+
export { EuiPageTemplate_Deprecated } from '@elastic/eui/src/components/page/page_template';
|
|
15446
|
+
|
|
15447
|
+
}
|
|
15448
|
+
declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
|
|
15449
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15450
|
+
export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15451
|
+
euiPageOuter: import("@emotion/utils").SerializedStyles;
|
|
15452
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
15453
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
15454
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
15455
|
+
};
|
|
15456
|
+
|
|
15457
|
+
}
|
|
15458
|
+
declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
|
|
15459
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15460
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15461
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
15462
|
+
export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15463
|
+
/**
|
|
15464
|
+
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
15465
|
+
* Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
|
|
15466
|
+
*/
|
|
15467
|
+
grow?: boolean;
|
|
15468
|
+
/**
|
|
15469
|
+
* Changes the `flex-direction` property.
|
|
15470
|
+
* Flip to `column` when not including a sidebar.
|
|
15471
|
+
*/
|
|
15472
|
+
direction?: 'row' | 'column';
|
|
15473
|
+
/**
|
|
15474
|
+
* When direction is `row`, it will flip to `column` when within these breakpoints
|
|
15475
|
+
*/
|
|
15476
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15477
|
+
}
|
|
15478
|
+
export const _EuiPageOuter: FunctionComponent<_EuiPageOuterProps>;
|
|
15479
|
+
|
|
15480
|
+
}
|
|
15481
|
+
declare module '@elastic/eui/src/components/page_template/outer' {
|
|
15482
|
+
export type { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer/page_outer';
|
|
15483
|
+
export { _EuiPageOuter } from '@elastic/eui/src/components/page_template/outer/page_outer';
|
|
15484
|
+
|
|
15485
|
+
}
|
|
15486
|
+
declare module '@elastic/eui/src/components/page_template/inner/page_inner.styles' {
|
|
15487
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15488
|
+
export const euiPageInnerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15489
|
+
euiPageInner: import("@emotion/utils").SerializedStyles;
|
|
15490
|
+
panelled: import("@emotion/utils").SerializedStyles;
|
|
15491
|
+
border: {
|
|
15492
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15493
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
15494
|
+
};
|
|
15495
|
+
};
|
|
15496
|
+
|
|
15497
|
+
}
|
|
15498
|
+
declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
|
|
15499
|
+
import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
|
|
15500
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15501
|
+
import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType;
|
|
15502
|
+
export type _EuiPageInnerProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & {
|
|
15503
|
+
/**
|
|
15504
|
+
* Sets which HTML element to render.
|
|
15505
|
+
*/
|
|
15506
|
+
component?: T;
|
|
15507
|
+
/**
|
|
15508
|
+
* Adds a white background and shadow to define the area.
|
|
15509
|
+
*/
|
|
15510
|
+
panelled?: boolean;
|
|
15511
|
+
/**
|
|
15512
|
+
* Adds a single side border, based on the `responsive` state.
|
|
15513
|
+
* Typically added when a side bar exists.
|
|
15514
|
+
*/
|
|
15515
|
+
border?: boolean;
|
|
15516
|
+
/**
|
|
15517
|
+
* Adjust the overall padding.
|
|
15518
|
+
*/
|
|
15519
|
+
paddingSize?: EuiPaddingSize;
|
|
15520
|
+
/**
|
|
15521
|
+
* Decides at which point the component will be 100vw.
|
|
15522
|
+
*/
|
|
15523
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15524
|
+
};
|
|
15525
|
+
export const _EuiPageInner: <T extends ComponentTypes>({ children, component: Component, panelled, border, paddingSize, responsive, ...rest }: React.PropsWithChildren<_EuiPageInnerProps<T>>) => JSX.Element;
|
|
15526
|
+
export {};
|
|
15527
|
+
|
|
15528
|
+
}
|
|
15529
|
+
declare module '@elastic/eui/src/components/page_template/inner' {
|
|
15530
|
+
export type { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner/page_inner';
|
|
15531
|
+
export { _EuiPageInner } from '@elastic/eui/src/components/page_template/inner/page_inner';
|
|
15532
|
+
|
|
15533
|
+
}
|
|
15534
|
+
declare module '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar' {
|
|
15535
|
+
import { FunctionComponent } from 'react';
|
|
15536
|
+
import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
|
|
15537
|
+
import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15538
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15539
|
+
export interface _EuiPageBottomBarProps extends Pick<EuiPageSectionProps, 'paddingSize'>, _EuiPageRestrictWidth, Omit<EuiBottomBarProps, 'paddingSize'> {
|
|
15540
|
+
/**
|
|
15541
|
+
* The reference id of the element to insert into
|
|
15542
|
+
*/
|
|
15543
|
+
parent?: string;
|
|
15544
|
+
}
|
|
15545
|
+
export const _EuiPageBottomBar: FunctionComponent<_EuiPageBottomBarProps>;
|
|
15546
|
+
|
|
15547
|
+
}
|
|
15548
|
+
declare module '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt' {
|
|
15549
|
+
import { FunctionComponent } from 'react';
|
|
15550
|
+
import { EuiEmptyPromptProps } from '@elastic/eui/src/components/empty_prompt';
|
|
15551
|
+
import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15552
|
+
export type _EuiPageEmptyPromptProps = Omit<EuiPageSectionProps, 'title' | 'bottomBorder'> & Omit<EuiEmptyPromptProps, 'paddingSize'> & {
|
|
15553
|
+
panelled?: boolean;
|
|
15554
|
+
};
|
|
15555
|
+
export const _EuiPageEmptyPrompt: FunctionComponent<_EuiPageEmptyPromptProps>;
|
|
15556
|
+
|
|
15557
|
+
}
|
|
15558
|
+
declare module '@elastic/eui/src/components/page_template/page_template' {
|
|
15559
|
+
import React, { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
|
|
15560
|
+
import { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer';
|
|
15561
|
+
import { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner';
|
|
15562
|
+
import { _EuiPageBottomBarProps } from '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar';
|
|
15563
|
+
import { _EuiPageEmptyPromptProps } from '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt';
|
|
15564
|
+
import { EuiPageHeaderProps, EuiPageSectionProps } from '@elastic/eui/src/components/page';
|
|
15565
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15566
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15567
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15568
|
+
export const TemplateContext: React.Context<{
|
|
15569
|
+
section: {};
|
|
15570
|
+
header: {};
|
|
15571
|
+
emptyPrompt: {};
|
|
15572
|
+
bottomBar: {};
|
|
15573
|
+
}>;
|
|
15574
|
+
export type EuiPageTemplateProps = _EuiPageOuterProps & Omit<_EuiPageInnerProps, 'border'> & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
|
|
15575
|
+
/**
|
|
15576
|
+
* Applies a top or left border to the inner contents
|
|
15577
|
+
* to add separation between content and sidebar when a sidebar exists.
|
|
15578
|
+
*/
|
|
15579
|
+
contentBorder?: _EuiPageInnerProps['border'];
|
|
15580
|
+
/**
|
|
15581
|
+
* Minimum height in which to enforce scrolling
|
|
15582
|
+
*/
|
|
15583
|
+
minHeight?: CSSProperties['minHeight'];
|
|
15584
|
+
/**
|
|
15585
|
+
* To account for any fixed elements like headers,
|
|
15586
|
+
* pass in the value of the total height of those fixed elements.
|
|
15587
|
+
* Otherwise they will be calculated based on the data attributes on the body element.
|
|
15588
|
+
*/
|
|
15589
|
+
offset?: number;
|
|
15590
|
+
/**
|
|
15591
|
+
* Passes through some common HTML attributes to the `main` content wrapper
|
|
15592
|
+
*/
|
|
15593
|
+
mainProps?: CommonProps & HTMLAttributes<HTMLElement>;
|
|
15594
|
+
};
|
|
15595
|
+
/**
|
|
15596
|
+
* Consumed via `EuiPageTemplate`,
|
|
15597
|
+
* it controls and propogates most of the shared props per direct child
|
|
15598
|
+
*/
|
|
15599
|
+
export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
|
|
15600
|
+
export const EuiPageTemplate: React.FunctionComponent<EuiPageTemplateProps> & {
|
|
15601
|
+
Sidebar: React.FunctionComponent<import ("@elastic/eui/src/components/page").EuiPageSidebarProps>;
|
|
15602
|
+
Header: React.FunctionComponent<EuiPageHeaderProps>;
|
|
15603
|
+
Section: React.FunctionComponent<EuiPageSectionProps>;
|
|
15604
|
+
BottomBar: React.FunctionComponent<_EuiPageBottomBarProps>;
|
|
15605
|
+
EmptyPrompt: React.FunctionComponent<_EuiPageEmptyPromptProps>;
|
|
15606
|
+
};
|
|
15607
|
+
|
|
15608
|
+
}
|
|
15609
|
+
declare module '@elastic/eui/src/components/page_template' {
|
|
15610
|
+
export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page_template/page_template';
|
|
15611
|
+
export { EuiPageTemplate } from '@elastic/eui/src/components/page_template/page_template';
|
|
15239
15612
|
|
|
15240
15613
|
}
|
|
15241
15614
|
declare module '@elastic/eui/src/global_styling/utility/utility' {
|
|
@@ -19023,6 +19396,7 @@ declare module '@elastic/eui/src/components' {
|
|
|
19023
19396
|
export * from '@elastic/eui/src/components/outside_click_detector';
|
|
19024
19397
|
export * from '@elastic/eui/src/components/overlay_mask';
|
|
19025
19398
|
export * from '@elastic/eui/src/components/page';
|
|
19399
|
+
export * from '@elastic/eui/src/components/page_template';
|
|
19026
19400
|
export * from '@elastic/eui/src/components/pagination';
|
|
19027
19401
|
export * from '@elastic/eui/src/components/panel';
|
|
19028
19402
|
export * from '@elastic/eui/src/components/popover';
|