@elastic/eui 62.2.0 → 63.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- 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/es/services/breakpoint/{currentEuiBreakpoint.js → current_breakpoint.js} +2 -12
- package/es/services/breakpoint/current_breakpoint_hook.js +20 -0
- package/es/services/breakpoint/index.js +2 -1
- package/es/services/breakpoint/useIsWithinBreakpoints.js +1 -1
- package/eui.d.ts +435 -54
- 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/lib/services/breakpoint/{currentEuiBreakpoint.js → current_breakpoint.js} +5 -16
- package/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
- package/lib/services/breakpoint/index.js +17 -4
- package/lib/services/breakpoint/useIsWithinBreakpoints.js +2 -2
- 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/es/services/breakpoint/{currentEuiBreakpoint.js → current_breakpoint.js} +2 -11
- package/optimize/es/services/breakpoint/current_breakpoint_hook.js +20 -0
- package/optimize/es/services/breakpoint/index.js +2 -1
- package/optimize/es/services/breakpoint/useIsWithinBreakpoints.js +1 -1
- 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/optimize/lib/services/breakpoint/{currentEuiBreakpoint.js → current_breakpoint.js} +5 -18
- package/optimize/lib/services/breakpoint/current_breakpoint_hook.js +31 -0
- package/optimize/lib/services/breakpoint/index.js +17 -4
- package/optimize/lib/services/breakpoint/useIsWithinBreakpoints.js +2 -2
- 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/test-env/services/breakpoint/current_breakpoint.js +68 -0
- package/test-env/services/breakpoint/{currentEuiBreakpoint.js → current_breakpoint_hook.js} +3 -7
- package/test-env/services/breakpoint/index.js +17 -4
- package/test-env/services/breakpoint/useIsWithinBreakpoints.js +2 -2
- 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
|
*
|
|
@@ -6652,7 +6655,7 @@ declare module '@elastic/eui/src/services/throttle' {
|
|
|
6652
6655
|
export const throttle: (fn: (...args: any[]) => void, wait?: number) => (...args: any[]) => void;
|
|
6653
6656
|
|
|
6654
6657
|
}
|
|
6655
|
-
declare module '@elastic/eui/src/services/breakpoint/
|
|
6658
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint' {
|
|
6656
6659
|
import React, { FunctionComponent } from 'react';
|
|
6657
6660
|
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling/variables/breakpoint'; type CurrentEuiBreakpoint = _EuiThemeBreakpoint | undefined;
|
|
6658
6661
|
export const CurrentEuiBreakpointContext: React.Context<CurrentEuiBreakpoint>;
|
|
@@ -6661,11 +6664,17 @@ declare module '@elastic/eui/src/services/breakpoint/currentEuiBreakpoint' {
|
|
|
6661
6664
|
* resize listener that returns the current breakpoint based on window width
|
|
6662
6665
|
*/
|
|
6663
6666
|
export const CurrentEuiBreakpointProvider: FunctionComponent;
|
|
6667
|
+
export {};
|
|
6668
|
+
|
|
6669
|
+
}
|
|
6670
|
+
declare module '@elastic/eui/src/services/breakpoint/current_breakpoint_hook' {
|
|
6664
6671
|
/**
|
|
6665
|
-
* Hook util / syntactical sugar
|
|
6672
|
+
* Hook util / syntactical sugar for useContext()
|
|
6673
|
+
*
|
|
6674
|
+
* This hook is in its own separate file to make mocking it
|
|
6675
|
+
* as a testenv easy for Jest unit tests
|
|
6666
6676
|
*/
|
|
6667
|
-
export const useCurrentEuiBreakpoint: () =>
|
|
6668
|
-
export {};
|
|
6677
|
+
export const useCurrentEuiBreakpoint: () => "s" | "xs" | "m" | "l" | "xl" | undefined;
|
|
6669
6678
|
|
|
6670
6679
|
}
|
|
6671
6680
|
declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
|
|
@@ -6685,7 +6694,8 @@ declare module '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints' {
|
|
|
6685
6694
|
}
|
|
6686
6695
|
declare module '@elastic/eui/src/services/breakpoint' {
|
|
6687
6696
|
export * from '@elastic/eui/src/services/breakpoint/breakpoint';
|
|
6688
|
-
export * from '@elastic/eui/src/services/breakpoint/
|
|
6697
|
+
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint';
|
|
6698
|
+
export * from '@elastic/eui/src/services/breakpoint/current_breakpoint_hook';
|
|
6689
6699
|
export * from '@elastic/eui/src/services/breakpoint/useIsWithinBreakpoints';
|
|
6690
6700
|
|
|
6691
6701
|
}
|
|
@@ -7720,7 +7730,8 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar.styles' {
|
|
|
7720
7730
|
}
|
|
7721
7731
|
declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
7722
7732
|
import React, { CSSProperties, HTMLAttributes } from 'react';
|
|
7723
|
-
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
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';
|
|
7724
7735
|
export const paddingSizeToClassNameMap: {
|
|
7725
7736
|
[value in BottomBarPaddingSize]: string | null;
|
|
7726
7737
|
};
|
|
@@ -7731,7 +7742,7 @@ declare module '@elastic/eui/src/components/bottom_bar/bottom_bar' {
|
|
|
7731
7742
|
* Whether to wrap in an EuiPortal which appends the component to the body element.
|
|
7732
7743
|
* Only works if `position` is `fixed`.
|
|
7733
7744
|
*/
|
|
7734
|
-
usePortal?: boolean;
|
|
7745
|
+
usePortal?: boolean | EuiPortalProps;
|
|
7735
7746
|
/**
|
|
7736
7747
|
* Whether the component should apply padding on the document body element to afford for its own displacement height.
|
|
7737
7748
|
* Only works if `usePortal` is true and `position` is `fixed`.
|
|
@@ -14847,25 +14858,51 @@ declare module '@elastic/eui/src/components/page/_restrict_width' {
|
|
|
14847
14858
|
* This is file contains the type specific to that prop and a helper
|
|
14848
14859
|
* function for creating the corresponding classNames and style tags
|
|
14849
14860
|
* 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
14861
|
*/
|
|
14855
14862
|
import { CSSProperties } from 'react';
|
|
14863
|
+
export const PAGE_MAX_WIDTH: CSSProperties['maxWidth'];
|
|
14856
14864
|
export type _EuiPageRestrictWidth = {
|
|
14857
14865
|
/**
|
|
14858
14866
|
* Sets the max-width of the page,
|
|
14859
|
-
* set to `true` to use the default size of `
|
|
14867
|
+
* set to `true` to use the default size of `1200px`,
|
|
14860
14868
|
* set to `false` to not restrict the width,
|
|
14861
14869
|
* set to a number for a custom width in px,
|
|
14862
14870
|
* set to a string for a custom width in custom measurement.
|
|
14863
14871
|
*/
|
|
14864
14872
|
restrictWidth?: boolean | number | string;
|
|
14865
14873
|
};
|
|
14874
|
+
/**
|
|
14875
|
+
* **DEPRECATED**
|
|
14876
|
+
* This function calculates the correct class name and combined styles
|
|
14877
|
+
* based on the `restrictWidth` value passed in
|
|
14878
|
+
*
|
|
14879
|
+
* @param restrictWidth `boolean | number | string` The prop value
|
|
14880
|
+
* @param style `CSSProperties` An object of style attributes if provided
|
|
14881
|
+
* @returns An object with keys for the `widthClassName` to append to the component's class and the updated `newStyle` props
|
|
14882
|
+
*/
|
|
14866
14883
|
export function setPropsForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): {
|
|
14867
14884
|
widthClassName?: string;
|
|
14868
|
-
newStyle
|
|
14885
|
+
newStyle: CSSProperties;
|
|
14886
|
+
};
|
|
14887
|
+
/**
|
|
14888
|
+
* This function calculates the correct just the combined styles
|
|
14889
|
+
* based on the `restrictWidth` value passed in
|
|
14890
|
+
*
|
|
14891
|
+
* @param restrictWidth `boolean | number | string` The prop value
|
|
14892
|
+
* @param style `CSSProperties` An object of style attributes if provided
|
|
14893
|
+
* @returns An object of the updated `style` props
|
|
14894
|
+
*/
|
|
14895
|
+
export function setStyleForRestrictedPageWidth(restrictWidth: _EuiPageRestrictWidth['restrictWidth'], style?: CSSProperties): CSSProperties;
|
|
14896
|
+
|
|
14897
|
+
}
|
|
14898
|
+
declare module '@elastic/eui/src/components/page/page.styles' {
|
|
14899
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
14900
|
+
export const euiPageStyles: (euiThemeContext: UseEuiTheme) => {
|
|
14901
|
+
euiPage: import("@emotion/utils").SerializedStyles;
|
|
14902
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
14903
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
14904
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
14905
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
14869
14906
|
};
|
|
14870
14907
|
|
|
14871
14908
|
}
|
|
@@ -14873,14 +14910,13 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
14873
14910
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
14874
14911
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14875
14912
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
14876
|
-
|
|
14877
|
-
export const DIRECTIONS: ("row" | "column")[];
|
|
14913
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
14878
14914
|
export interface EuiPageProps extends CommonProps, HTMLAttributes<HTMLDivElement>, _EuiPageRestrictWidth {
|
|
14879
14915
|
/**
|
|
14880
14916
|
* Adjust the padding.
|
|
14881
14917
|
* When using this setting it's best to be consistent throughout all similar usages
|
|
14882
14918
|
*/
|
|
14883
|
-
paddingSize?:
|
|
14919
|
+
paddingSize?: EuiPaddingSize;
|
|
14884
14920
|
/**
|
|
14885
14921
|
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
14886
14922
|
* Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
|
|
@@ -14894,13 +14930,20 @@ declare module '@elastic/eui/src/components/page/page' {
|
|
|
14894
14930
|
}
|
|
14895
14931
|
export const EuiPage: FunctionComponent<EuiPageProps>;
|
|
14896
14932
|
|
|
14933
|
+
}
|
|
14934
|
+
declare module '@elastic/eui/src/components/page/page_body/page_body.styles' {
|
|
14935
|
+
export const euiPageBodyStyles: () => {
|
|
14936
|
+
euiPageBody: import("@emotion/utils").SerializedStyles;
|
|
14937
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
14938
|
+
};
|
|
14939
|
+
|
|
14897
14940
|
}
|
|
14898
14941
|
declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
14899
14942
|
import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
|
|
14900
14943
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14901
14944
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
14902
14945
|
import { EuiPanelProps } from '@elastic/eui/src/components/panel';
|
|
14903
|
-
|
|
14946
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType<any>;
|
|
14904
14947
|
export type EuiPageBodyProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & _EuiPageRestrictWidth & {
|
|
14905
14948
|
/**
|
|
14906
14949
|
* Sets the HTML element for `EuiPageBody`.
|
|
@@ -14917,9 +14960,9 @@ declare module '@elastic/eui/src/components/page/page_body/page_body' {
|
|
|
14917
14960
|
/**
|
|
14918
14961
|
* Adjusts the padding
|
|
14919
14962
|
*/
|
|
14920
|
-
paddingSize?:
|
|
14963
|
+
paddingSize?: EuiPaddingSize;
|
|
14921
14964
|
};
|
|
14922
|
-
export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth,
|
|
14965
|
+
export const EuiPageBody: <T extends ComponentTypes>({ children, restrictWidth, className, component: Component, panelled, panelProps, paddingSize, borderRadius, ...rest }: React.PropsWithChildren<EuiPageBodyProps<T>>) => JSX.Element;
|
|
14923
14966
|
export {};
|
|
14924
14967
|
|
|
14925
14968
|
}
|
|
@@ -14944,7 +14987,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
|
14944
14987
|
*/
|
|
14945
14988
|
role?: HTMLAttributes['role'] | null;
|
|
14946
14989
|
};
|
|
14947
|
-
|
|
14990
|
+
/**
|
|
14991
|
+
* **DEPRECATED**
|
|
14992
|
+
* Use EuiPageSection instead
|
|
14993
|
+
*/
|
|
14994
|
+
export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
|
|
14948
14995
|
|
|
14949
14996
|
}
|
|
14950
14997
|
declare module '@elastic/eui/src/components/page/page_content/page_content_body' {
|
|
@@ -14959,7 +15006,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
14959
15006
|
*/
|
|
14960
15007
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
14961
15008
|
}
|
|
14962
|
-
|
|
15009
|
+
/**
|
|
15010
|
+
* **DEPRECATED**
|
|
15011
|
+
* Use EuiPageSection instead
|
|
15012
|
+
*/
|
|
15013
|
+
export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
|
|
14963
15014
|
|
|
14964
15015
|
}
|
|
14965
15016
|
declare module '@elastic/eui/src/components/page/page_content/page_content_header' {
|
|
@@ -14972,7 +15023,11 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
14972
15023
|
*/
|
|
14973
15024
|
responsive?: boolean;
|
|
14974
15025
|
}
|
|
14975
|
-
|
|
15026
|
+
/**
|
|
15027
|
+
* **DEPRECATED**
|
|
15028
|
+
* Use EuiPageHeader instead
|
|
15029
|
+
*/
|
|
15030
|
+
export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
|
|
14976
15031
|
|
|
14977
15032
|
}
|
|
14978
15033
|
declare module '@elastic/eui/src/components/page/page_content/page_content_header_section' {
|
|
@@ -14980,18 +15035,45 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
14980
15035
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
14981
15036
|
export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
14982
15037
|
}
|
|
14983
|
-
|
|
15038
|
+
/**
|
|
15039
|
+
* **DEPRECATED**
|
|
15040
|
+
* Use EuiPageHeader instead
|
|
15041
|
+
*/
|
|
15042
|
+
export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
|
|
14984
15043
|
|
|
14985
15044
|
}
|
|
14986
15045
|
declare module '@elastic/eui/src/components/page/page_content' {
|
|
14987
15046
|
export type { EuiPageContentProps } from '@elastic/eui/src/components/page/page_content/page_content';
|
|
14988
|
-
export {
|
|
15047
|
+
export { EuiPageContent_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content';
|
|
14989
15048
|
export type { EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content/page_content_body';
|
|
14990
|
-
export {
|
|
15049
|
+
export { EuiPageContentBody_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_body';
|
|
14991
15050
|
export type { EuiPageContentHeaderProps } from '@elastic/eui/src/components/page/page_content/page_content_header';
|
|
14992
|
-
export {
|
|
15051
|
+
export { EuiPageContentHeader_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header';
|
|
14993
15052
|
export type { EuiPageContentHeaderSectionProps } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
|
|
14994
|
-
export {
|
|
15053
|
+
export { EuiPageContentHeaderSection_Deprecated } from '@elastic/eui/src/components/page/page_content/page_content_header_section';
|
|
15054
|
+
|
|
15055
|
+
}
|
|
15056
|
+
declare module '@elastic/eui/src/components/page/page_header/page_header.styles' {
|
|
15057
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15058
|
+
export const euiPageHeaderStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15059
|
+
euiPageHeader: import("@emotion/utils").SerializedStyles;
|
|
15060
|
+
border: import("@emotion/utils").SerializedStyles;
|
|
15061
|
+
};
|
|
15062
|
+
|
|
15063
|
+
}
|
|
15064
|
+
declare module '@elastic/eui/src/components/page/page_header/page_header_content.styles' {
|
|
15065
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15066
|
+
export const euiPageHeaderContentStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15067
|
+
euiPageHeaderContent: import("@emotion/utils").SerializedStyles;
|
|
15068
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15069
|
+
bottom: import("@emotion/utils").SerializedStyles;
|
|
15070
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15071
|
+
stretch: import("@emotion/utils").SerializedStyles;
|
|
15072
|
+
flex: import("@emotion/utils").SerializedStyles;
|
|
15073
|
+
responsive: import("@emotion/utils").SerializedStyles;
|
|
15074
|
+
responsiveReverse: import("@emotion/utils").SerializedStyles;
|
|
15075
|
+
euiPageHeaderContent__titleIcon: import("@emotion/utils").SerializedStyles;
|
|
15076
|
+
};
|
|
14995
15077
|
|
|
14996
15078
|
}
|
|
14997
15079
|
declare module '@elastic/eui/src/components/page/page_header/page_header_content' {
|
|
@@ -15003,6 +15085,8 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15003
15085
|
import { EuiFlexGroupProps } from '@elastic/eui/src/components/flex';
|
|
15004
15086
|
import { EuiTitleProps } from '@elastic/eui/src/components/title';
|
|
15005
15087
|
import { EuiBreadcrumbsProps } from '@elastic/eui/src/components/breadcrumbs';
|
|
15088
|
+
import { PADDING_SIZES } from '@elastic/eui/src/global_styling';
|
|
15089
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15006
15090
|
export const ALIGN_ITEMS: readonly ["top", "bottom", "center", "stretch"]; type Tab = EuiTabProps & {
|
|
15007
15091
|
/**
|
|
15008
15092
|
* Visible text of the tab
|
|
@@ -15060,7 +15144,16 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15060
15144
|
*/
|
|
15061
15145
|
description?: string | ReactNode;
|
|
15062
15146
|
}
|
|
15063
|
-
export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft {
|
|
15147
|
+
export interface _EuiPageHeaderContentProps extends EuiPageHeaderContentLeft, _EuiPageRestrictWidth {
|
|
15148
|
+
/**
|
|
15149
|
+
* The only option is on/off
|
|
15150
|
+
*/
|
|
15151
|
+
bottomBorder?: boolean;
|
|
15152
|
+
/**
|
|
15153
|
+
* Adjust the padding.
|
|
15154
|
+
* When using this setting it's best to be consistent throughout all similar usages
|
|
15155
|
+
*/
|
|
15156
|
+
paddingSize?: typeof PADDING_SIZES[number];
|
|
15064
15157
|
/**
|
|
15065
15158
|
* Set to false if you don't want the children to stack at small screen sizes.
|
|
15066
15159
|
* Set to `reverse` to display the right side content first for the sake of hierarchy (like global time)
|
|
@@ -15068,7 +15161,7 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15068
15161
|
responsive?: boolean | 'reverse';
|
|
15069
15162
|
/**
|
|
15070
15163
|
* Vertical alignment of the left and right side content;
|
|
15071
|
-
* Default is `
|
|
15164
|
+
* Default is `center` for custom content, but `top` for when `pageTitle` or `tabs` are included
|
|
15072
15165
|
*/
|
|
15073
15166
|
alignItems?: typeof ALIGN_ITEMS[number];
|
|
15074
15167
|
/**
|
|
@@ -15091,23 +15184,29 @@ declare module '@elastic/eui/src/components/page/page_header/page_header_content
|
|
|
15091
15184
|
export const EuiPageHeaderContent: FunctionComponent<EuiPageHeaderContentProps>;
|
|
15092
15185
|
export {};
|
|
15093
15186
|
|
|
15187
|
+
}
|
|
15188
|
+
declare module '@elastic/eui/src/components/page/_bottom_border' {
|
|
15189
|
+
export type _EuiPageBottomBorder = {
|
|
15190
|
+
/**
|
|
15191
|
+
* Adds a bottom border to separate it from the content after;
|
|
15192
|
+
* Passing `extended` will ensure the border touches the sides of the parent container.
|
|
15193
|
+
*/
|
|
15194
|
+
bottomBorder?: boolean | 'extended';
|
|
15195
|
+
};
|
|
15196
|
+
|
|
15094
15197
|
}
|
|
15095
15198
|
declare module '@elastic/eui/src/components/page/page_header/page_header' {
|
|
15096
15199
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15097
15200
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15201
|
+
import { EuiPaddingSize } from '@elastic/eui/src/global_styling';
|
|
15098
15202
|
import { _EuiPageHeaderContentProps } from '@elastic/eui/src/components/page/page_header/page_header_content';
|
|
15099
15203
|
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];
|
|
15204
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15205
|
+
export interface EuiPageHeaderProps extends CommonProps, HTMLAttributes<HTMLElement>, Omit<_EuiPageHeaderContentProps, 'bottomBorder'>, _EuiPageRestrictWidth, _EuiPageBottomBorder {
|
|
15107
15206
|
/**
|
|
15108
|
-
*
|
|
15207
|
+
* Adjust the overall padding.
|
|
15109
15208
|
*/
|
|
15110
|
-
|
|
15209
|
+
paddingSize?: EuiPaddingSize;
|
|
15111
15210
|
}
|
|
15112
15211
|
export const EuiPageHeader: FunctionComponent<EuiPageHeaderProps>;
|
|
15113
15212
|
|
|
@@ -15128,6 +15227,62 @@ declare module '@elastic/eui/src/components/page/page_header' {
|
|
|
15128
15227
|
export type { EuiPageHeaderSectionProps } from '@elastic/eui/src/components/page/page_header/page_header_section';
|
|
15129
15228
|
export { EuiPageHeaderSection } from '@elastic/eui/src/components/page/page_header/page_header_section';
|
|
15130
15229
|
|
|
15230
|
+
}
|
|
15231
|
+
declare module '@elastic/eui/src/components/page/page_section/page_section.styles' {
|
|
15232
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15233
|
+
export const ALIGNMENTS: readonly ["top", "center", "horizontalCenter"];
|
|
15234
|
+
export const euiPageSectionStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15235
|
+
euiPageSection: import("@emotion/utils").SerializedStyles;
|
|
15236
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
15237
|
+
border: import("@emotion/utils").SerializedStyles;
|
|
15238
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15239
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15240
|
+
horizontalCenter: import("@emotion/utils").SerializedStyles;
|
|
15241
|
+
};
|
|
15242
|
+
export const euiPageSectionContentStyles: () => {
|
|
15243
|
+
euiPageSection__content: import("@emotion/utils").SerializedStyles;
|
|
15244
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
15245
|
+
restrictWidth: import("@emotion/utils").SerializedStyles;
|
|
15246
|
+
};
|
|
15247
|
+
|
|
15248
|
+
}
|
|
15249
|
+
declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
15250
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15251
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15252
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15253
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15254
|
+
import { ALIGNMENTS } from '@elastic/eui/src/components/page/page_section/page_section.styles';
|
|
15255
|
+
import { EuiPaddingSize, _EuiBackgroundColor } from '@elastic/eui/src/global_styling';
|
|
15256
|
+
export type EuiPageSectionProps = CommonProps & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
|
|
15257
|
+
/**
|
|
15258
|
+
* Background color of the section;
|
|
15259
|
+
* Usually a lightened form of the brand colors
|
|
15260
|
+
*/
|
|
15261
|
+
color?: _EuiBackgroundColor;
|
|
15262
|
+
/**
|
|
15263
|
+
* Padding for all four sides
|
|
15264
|
+
*/
|
|
15265
|
+
paddingSize?: EuiPaddingSize;
|
|
15266
|
+
/**
|
|
15267
|
+
* Horizontal and/or vertical alignment of the section contents
|
|
15268
|
+
*/
|
|
15269
|
+
alignment?: typeof ALIGNMENTS[number];
|
|
15270
|
+
/**
|
|
15271
|
+
* When true the panel will grow in height to fill container if parent is a flex group
|
|
15272
|
+
*/
|
|
15273
|
+
grow?: boolean;
|
|
15274
|
+
/**
|
|
15275
|
+
* Passed down to the div wrapper of the section contents
|
|
15276
|
+
*/
|
|
15277
|
+
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
15278
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
15279
|
+
export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
|
|
15280
|
+
|
|
15281
|
+
}
|
|
15282
|
+
declare module '@elastic/eui/src/components/page/page_section' {
|
|
15283
|
+
export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section/page_section';
|
|
15284
|
+
export { EuiPageSection } from '@elastic/eui/src/components/page/page_section/page_section';
|
|
15285
|
+
|
|
15131
15286
|
}
|
|
15132
15287
|
declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
15133
15288
|
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
@@ -15135,7 +15290,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15135
15290
|
export const PADDING_SIZES: ("s" | "none" | "m" | "l")[];
|
|
15136
15291
|
export interface EuiPageSideBarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15137
15292
|
/**
|
|
15138
|
-
* Adds `position: sticky`
|
|
15293
|
+
* Adds `position: sticky`
|
|
15139
15294
|
*/
|
|
15140
15295
|
sticky?: boolean;
|
|
15141
15296
|
/**
|
|
@@ -15143,24 +15298,74 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15143
15298
|
*/
|
|
15144
15299
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15145
15300
|
}
|
|
15146
|
-
|
|
15301
|
+
/**
|
|
15302
|
+
* **DEPRECATED**
|
|
15303
|
+
* Use the new EuiPageSidebar instead
|
|
15304
|
+
*/
|
|
15305
|
+
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
|
|
15147
15306
|
|
|
15148
15307
|
}
|
|
15149
15308
|
declare module '@elastic/eui/src/components/page/page_side_bar' {
|
|
15150
15309
|
export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
|
|
15151
|
-
export {
|
|
15310
|
+
export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar/page_side_bar';
|
|
15311
|
+
|
|
15312
|
+
}
|
|
15313
|
+
declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar.styles' {
|
|
15314
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15315
|
+
export const euiPageSidebarStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15316
|
+
euiPageSidebar: import("@emotion/utils").SerializedStyles;
|
|
15317
|
+
sticky: import("@emotion/utils").SerializedStyles;
|
|
15318
|
+
};
|
|
15319
|
+
|
|
15320
|
+
}
|
|
15321
|
+
declare module '@elastic/eui/src/components/page/page_sidebar/page_sidebar' {
|
|
15322
|
+
import { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
|
|
15323
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15324
|
+
import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
15325
|
+
export interface EuiPageSidebarProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15326
|
+
/**
|
|
15327
|
+
* Adjust the padding.
|
|
15328
|
+
* When using this setting it's best to be consistent throughout all similar usages.
|
|
15329
|
+
*/
|
|
15330
|
+
paddingSize?: EuiPaddingSize;
|
|
15331
|
+
/**
|
|
15332
|
+
* Adds `position: sticky` and affords for any fixed position headers.
|
|
15333
|
+
*/
|
|
15334
|
+
sticky?: boolean | {
|
|
15335
|
+
/**
|
|
15336
|
+
* To account for any fixed elements like headers,
|
|
15337
|
+
* pass in the value of the total height of those fixed elements.
|
|
15338
|
+
*/
|
|
15339
|
+
offset?: number;
|
|
15340
|
+
};
|
|
15341
|
+
/**
|
|
15342
|
+
* A minimum width is necessary to maintain size.
|
|
15343
|
+
* Be sure to take `paddingSize` into account.
|
|
15344
|
+
*/
|
|
15345
|
+
minWidth?: CSSProperties['width'];
|
|
15346
|
+
/**
|
|
15347
|
+
* Sets the `minWidth` to 100% when within these breakpoints.
|
|
15348
|
+
*/
|
|
15349
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15350
|
+
}
|
|
15351
|
+
export const EuiPageSidebar: FunctionComponent<EuiPageSidebarProps>;
|
|
15352
|
+
|
|
15353
|
+
}
|
|
15354
|
+
declare module '@elastic/eui/src/components/page/page_sidebar' {
|
|
15355
|
+
export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
|
|
15356
|
+
export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar/page_sidebar';
|
|
15152
15357
|
|
|
15153
15358
|
}
|
|
15154
15359
|
declare module '@elastic/eui/src/components/page/page_template' {
|
|
15155
15360
|
import { CSSProperties, FunctionComponent, ReactNode } from 'react';
|
|
15156
|
-
import { EuiPageProps
|
|
15361
|
+
import { EuiPageProps } from '@elastic/eui/src/components/page/page';
|
|
15157
15362
|
import { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15158
15363
|
import { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
|
|
15159
15364
|
import { EuiPageHeaderProps } from '@elastic/eui/src/components/page/page_header';
|
|
15160
15365
|
import { EuiPageContentProps, EuiPageContentBodyProps } from '@elastic/eui/src/components/page/page_content';
|
|
15161
15366
|
import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
|
|
15162
15367
|
export const TEMPLATES: readonly ["default", "centeredBody", "centeredContent", "empty"];
|
|
15163
|
-
export type
|
|
15368
|
+
export type EuiPageTemplateProps_Deprecated = Omit<EuiPageProps, 'paddingSize'> & {
|
|
15164
15369
|
/**
|
|
15165
15370
|
* Choose between 3 types of templates.
|
|
15166
15371
|
* `default`: Typical layout with nothing centered
|
|
@@ -15173,7 +15378,7 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15173
15378
|
* Padding size will not get applied to the over-arching #EuiPage,
|
|
15174
15379
|
* but will propogate through all the components to keep them in sync
|
|
15175
15380
|
*/
|
|
15176
|
-
paddingSize?:
|
|
15381
|
+
paddingSize?: 'none' | 's' | 'm' | 'l';
|
|
15177
15382
|
/**
|
|
15178
15383
|
* Optionally include #EuiPageSideBar content.
|
|
15179
15384
|
* The inclusion of this will affect the whole layout
|
|
@@ -15220,7 +15425,12 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15220
15425
|
*/
|
|
15221
15426
|
minHeight?: CSSProperties['minHeight'];
|
|
15222
15427
|
};
|
|
15223
|
-
|
|
15428
|
+
/**
|
|
15429
|
+
* This component has been deprecated in favor of the new
|
|
15430
|
+
* namespaced version. You can still import this component
|
|
15431
|
+
* for a period of time by importing `as EuiPageTemplate`.
|
|
15432
|
+
*/
|
|
15433
|
+
export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
|
|
15224
15434
|
|
|
15225
15435
|
}
|
|
15226
15436
|
declare module '@elastic/eui/src/components/page' {
|
|
@@ -15229,13 +15439,183 @@ declare module '@elastic/eui/src/components/page' {
|
|
|
15229
15439
|
export type { EuiPageBodyProps } from '@elastic/eui/src/components/page/page_body';
|
|
15230
15440
|
export { EuiPageBody } from '@elastic/eui/src/components/page/page_body';
|
|
15231
15441
|
export type { EuiPageContentProps, EuiPageContentBodyProps, EuiPageContentHeaderProps, EuiPageContentHeaderSectionProps, } from '@elastic/eui/src/components/page/page_content';
|
|
15232
|
-
export {
|
|
15442
|
+
export { EuiPageContent_Deprecated, EuiPageContentBody_Deprecated, EuiPageContentHeader_Deprecated, EuiPageContentHeaderSection_Deprecated, } from '@elastic/eui/src/components/page/page_content';
|
|
15233
15443
|
export type { EuiPageHeaderContentProps, EuiPageHeaderProps, EuiPageHeaderSectionProps, } from '@elastic/eui/src/components/page/page_header';
|
|
15234
15444
|
export { EuiPageHeader, EuiPageHeaderContent, EuiPageHeaderSection, } from '@elastic/eui/src/components/page/page_header';
|
|
15445
|
+
export type { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15446
|
+
export { EuiPageSection } from '@elastic/eui/src/components/page/page_section';
|
|
15235
15447
|
export type { EuiPageSideBarProps } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15236
|
-
export {
|
|
15237
|
-
export type {
|
|
15238
|
-
export {
|
|
15448
|
+
export { EuiPageSideBar_Deprecated } from '@elastic/eui/src/components/page/page_side_bar';
|
|
15449
|
+
export type { EuiPageSidebarProps } from '@elastic/eui/src/components/page/page_sidebar';
|
|
15450
|
+
export { EuiPageSidebar } from '@elastic/eui/src/components/page/page_sidebar';
|
|
15451
|
+
export type { EuiPageTemplateProps_Deprecated } from '@elastic/eui/src/components/page/page_template';
|
|
15452
|
+
export { EuiPageTemplate_Deprecated } from '@elastic/eui/src/components/page/page_template';
|
|
15453
|
+
|
|
15454
|
+
}
|
|
15455
|
+
declare module '@elastic/eui/src/components/page_template/outer/page_outer.styles' {
|
|
15456
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15457
|
+
export const euiPageOuterStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
15458
|
+
euiPageOuter: import("@emotion/utils").SerializedStyles;
|
|
15459
|
+
grow: import("@emotion/utils").SerializedStyles;
|
|
15460
|
+
column: import("@emotion/utils").SerializedStyles;
|
|
15461
|
+
row: import("@emotion/utils").SerializedStyles;
|
|
15462
|
+
};
|
|
15463
|
+
|
|
15464
|
+
}
|
|
15465
|
+
declare module '@elastic/eui/src/components/page_template/outer/page_outer' {
|
|
15466
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15467
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15468
|
+
import { _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling';
|
|
15469
|
+
export interface _EuiPageOuterProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15470
|
+
/**
|
|
15471
|
+
* Adds `flex-grow: 1` to the whole page for stretching to fit vertically.
|
|
15472
|
+
* Must be wrapped inside a flexbox, preferrably with `min-height: 100vh`
|
|
15473
|
+
*/
|
|
15474
|
+
grow?: boolean;
|
|
15475
|
+
/**
|
|
15476
|
+
* Changes the `flex-direction` property.
|
|
15477
|
+
* Flip to `column` when not including a sidebar.
|
|
15478
|
+
*/
|
|
15479
|
+
direction?: 'row' | 'column';
|
|
15480
|
+
/**
|
|
15481
|
+
* When direction is `row`, it will flip to `column` when within these breakpoints
|
|
15482
|
+
*/
|
|
15483
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15484
|
+
}
|
|
15485
|
+
export const _EuiPageOuter: FunctionComponent<_EuiPageOuterProps>;
|
|
15486
|
+
|
|
15487
|
+
}
|
|
15488
|
+
declare module '@elastic/eui/src/components/page_template/outer' {
|
|
15489
|
+
export type { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer/page_outer';
|
|
15490
|
+
export { _EuiPageOuter } from '@elastic/eui/src/components/page_template/outer/page_outer';
|
|
15491
|
+
|
|
15492
|
+
}
|
|
15493
|
+
declare module '@elastic/eui/src/components/page_template/inner/page_inner.styles' {
|
|
15494
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
15495
|
+
export const euiPageInnerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
15496
|
+
euiPageInner: import("@emotion/utils").SerializedStyles;
|
|
15497
|
+
panelled: import("@emotion/utils").SerializedStyles;
|
|
15498
|
+
border: {
|
|
15499
|
+
top: import("@emotion/utils").SerializedStyles;
|
|
15500
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
15501
|
+
};
|
|
15502
|
+
};
|
|
15503
|
+
|
|
15504
|
+
}
|
|
15505
|
+
declare module '@elastic/eui/src/components/page_template/inner/page_inner' {
|
|
15506
|
+
import React, { PropsWithChildren, ComponentType, ComponentProps } from 'react';
|
|
15507
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15508
|
+
import { EuiPaddingSize, _EuiThemeBreakpoint } from '@elastic/eui/src/global_styling'; type ComponentTypes = keyof JSX.IntrinsicElements | ComponentType;
|
|
15509
|
+
export type _EuiPageInnerProps<T extends ComponentTypes = 'main'> = CommonProps & ComponentProps<T> & {
|
|
15510
|
+
/**
|
|
15511
|
+
* Sets which HTML element to render.
|
|
15512
|
+
*/
|
|
15513
|
+
component?: T;
|
|
15514
|
+
/**
|
|
15515
|
+
* Adds a white background and shadow to define the area.
|
|
15516
|
+
*/
|
|
15517
|
+
panelled?: boolean;
|
|
15518
|
+
/**
|
|
15519
|
+
* Adds a single side border, based on the `responsive` state.
|
|
15520
|
+
* Typically added when a side bar exists.
|
|
15521
|
+
*/
|
|
15522
|
+
border?: boolean;
|
|
15523
|
+
/**
|
|
15524
|
+
* Adjust the overall padding.
|
|
15525
|
+
*/
|
|
15526
|
+
paddingSize?: EuiPaddingSize;
|
|
15527
|
+
/**
|
|
15528
|
+
* Decides at which point the component will be 100vw.
|
|
15529
|
+
*/
|
|
15530
|
+
responsive?: _EuiThemeBreakpoint[];
|
|
15531
|
+
};
|
|
15532
|
+
export const _EuiPageInner: <T extends ComponentTypes>({ children, component: Component, panelled, border, paddingSize, responsive, ...rest }: React.PropsWithChildren<_EuiPageInnerProps<T>>) => JSX.Element;
|
|
15533
|
+
export {};
|
|
15534
|
+
|
|
15535
|
+
}
|
|
15536
|
+
declare module '@elastic/eui/src/components/page_template/inner' {
|
|
15537
|
+
export type { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner/page_inner';
|
|
15538
|
+
export { _EuiPageInner } from '@elastic/eui/src/components/page_template/inner/page_inner';
|
|
15539
|
+
|
|
15540
|
+
}
|
|
15541
|
+
declare module '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar' {
|
|
15542
|
+
import { FunctionComponent } from 'react';
|
|
15543
|
+
import { EuiBottomBarProps } from '@elastic/eui/src/components/bottom_bar';
|
|
15544
|
+
import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15545
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15546
|
+
export interface _EuiPageBottomBarProps extends Pick<EuiPageSectionProps, 'paddingSize'>, _EuiPageRestrictWidth, Omit<EuiBottomBarProps, 'paddingSize'> {
|
|
15547
|
+
/**
|
|
15548
|
+
* The reference id of the element to insert into
|
|
15549
|
+
*/
|
|
15550
|
+
parent?: string;
|
|
15551
|
+
}
|
|
15552
|
+
export const _EuiPageBottomBar: FunctionComponent<_EuiPageBottomBarProps>;
|
|
15553
|
+
|
|
15554
|
+
}
|
|
15555
|
+
declare module '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt' {
|
|
15556
|
+
import { FunctionComponent } from 'react';
|
|
15557
|
+
import { EuiEmptyPromptProps } from '@elastic/eui/src/components/empty_prompt';
|
|
15558
|
+
import { EuiPageSectionProps } from '@elastic/eui/src/components/page/page_section';
|
|
15559
|
+
export type _EuiPageEmptyPromptProps = Omit<EuiPageSectionProps, 'title' | 'bottomBorder'> & Omit<EuiEmptyPromptProps, 'paddingSize'> & {
|
|
15560
|
+
panelled?: boolean;
|
|
15561
|
+
};
|
|
15562
|
+
export const _EuiPageEmptyPrompt: FunctionComponent<_EuiPageEmptyPromptProps>;
|
|
15563
|
+
|
|
15564
|
+
}
|
|
15565
|
+
declare module '@elastic/eui/src/components/page_template/page_template' {
|
|
15566
|
+
import React, { CSSProperties, FunctionComponent, HTMLAttributes } from 'react';
|
|
15567
|
+
import { _EuiPageOuterProps } from '@elastic/eui/src/components/page_template/outer';
|
|
15568
|
+
import { _EuiPageInnerProps } from '@elastic/eui/src/components/page_template/inner';
|
|
15569
|
+
import { _EuiPageBottomBarProps } from '@elastic/eui/src/components/page_template/bottom_bar/page_bottom_bar';
|
|
15570
|
+
import { _EuiPageEmptyPromptProps } from '@elastic/eui/src/components/page_template/empty_prompt/page_empty_prompt';
|
|
15571
|
+
import { EuiPageHeaderProps, EuiPageSectionProps } from '@elastic/eui/src/components/page';
|
|
15572
|
+
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15573
|
+
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
15574
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15575
|
+
export const TemplateContext: React.Context<{
|
|
15576
|
+
section: {};
|
|
15577
|
+
header: {};
|
|
15578
|
+
emptyPrompt: {};
|
|
15579
|
+
bottomBar: {};
|
|
15580
|
+
}>;
|
|
15581
|
+
export type EuiPageTemplateProps = _EuiPageOuterProps & Omit<_EuiPageInnerProps, 'border'> & _EuiPageRestrictWidth & _EuiPageBottomBorder & {
|
|
15582
|
+
/**
|
|
15583
|
+
* Applies a top or left border to the inner contents
|
|
15584
|
+
* to add separation between content and sidebar when a sidebar exists.
|
|
15585
|
+
*/
|
|
15586
|
+
contentBorder?: _EuiPageInnerProps['border'];
|
|
15587
|
+
/**
|
|
15588
|
+
* Minimum height in which to enforce scrolling
|
|
15589
|
+
*/
|
|
15590
|
+
minHeight?: CSSProperties['minHeight'];
|
|
15591
|
+
/**
|
|
15592
|
+
* To account for any fixed elements like headers,
|
|
15593
|
+
* pass in the value of the total height of those fixed elements.
|
|
15594
|
+
* Otherwise they will be calculated based on the data attributes on the body element.
|
|
15595
|
+
*/
|
|
15596
|
+
offset?: number;
|
|
15597
|
+
/**
|
|
15598
|
+
* Passes through some common HTML attributes to the `main` content wrapper
|
|
15599
|
+
*/
|
|
15600
|
+
mainProps?: CommonProps & HTMLAttributes<HTMLElement>;
|
|
15601
|
+
};
|
|
15602
|
+
/**
|
|
15603
|
+
* Consumed via `EuiPageTemplate`,
|
|
15604
|
+
* it controls and propogates most of the shared props per direct child
|
|
15605
|
+
*/
|
|
15606
|
+
export const _EuiPageTemplate: FunctionComponent<EuiPageTemplateProps>;
|
|
15607
|
+
export const EuiPageTemplate: React.FunctionComponent<EuiPageTemplateProps> & {
|
|
15608
|
+
Sidebar: React.FunctionComponent<import ("@elastic/eui/src/components/page").EuiPageSidebarProps>;
|
|
15609
|
+
Header: React.FunctionComponent<EuiPageHeaderProps>;
|
|
15610
|
+
Section: React.FunctionComponent<EuiPageSectionProps>;
|
|
15611
|
+
BottomBar: React.FunctionComponent<_EuiPageBottomBarProps>;
|
|
15612
|
+
EmptyPrompt: React.FunctionComponent<_EuiPageEmptyPromptProps>;
|
|
15613
|
+
};
|
|
15614
|
+
|
|
15615
|
+
}
|
|
15616
|
+
declare module '@elastic/eui/src/components/page_template' {
|
|
15617
|
+
export type { EuiPageTemplateProps } from '@elastic/eui/src/components/page_template/page_template';
|
|
15618
|
+
export { EuiPageTemplate } from '@elastic/eui/src/components/page_template/page_template';
|
|
15239
15619
|
|
|
15240
15620
|
}
|
|
15241
15621
|
declare module '@elastic/eui/src/global_styling/utility/utility' {
|
|
@@ -19023,6 +19403,7 @@ declare module '@elastic/eui/src/components' {
|
|
|
19023
19403
|
export * from '@elastic/eui/src/components/outside_click_detector';
|
|
19024
19404
|
export * from '@elastic/eui/src/components/overlay_mask';
|
|
19025
19405
|
export * from '@elastic/eui/src/components/page';
|
|
19406
|
+
export * from '@elastic/eui/src/components/page_template';
|
|
19026
19407
|
export * from '@elastic/eui/src/components/pagination';
|
|
19027
19408
|
export * from '@elastic/eui/src/components/panel';
|
|
19028
19409
|
export * from '@elastic/eui/src/components/popover';
|