@elastic/eui 77.2.2 → 79.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/README.md +7 -21
- package/dist/eui_theme_dark.css +28 -29
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +28 -29
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/avatar/avatar.js +15 -3
- package/es/components/avatar/avatar.styles.js +46 -9
- package/es/components/form/form.styles.js +2 -2
- package/es/components/loading/index.js +0 -1
- package/es/components/page/page_header/page_header_content.js +15 -11
- package/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- package/es/components/skeleton/skeleton_circle.js +24 -3
- package/es/components/skeleton/skeleton_loading.js +11 -5
- package/es/components/skeleton/skeleton_rectangle.js +24 -3
- package/es/components/skeleton/skeleton_text.js +24 -3
- package/es/components/skeleton/skeleton_title.js +24 -3
- package/es/test/rtl/custom_render.js +11 -1
- package/es/test/rtl/index.d.ts +1 -1
- package/es/test/rtl/index.js +1 -1
- package/eui.d.ts +433 -419
- package/i18ntokens.json +14 -14
- package/lib/components/avatar/avatar.js +17 -4
- package/lib/components/avatar/avatar.styles.js +46 -9
- package/lib/components/form/form.styles.js +2 -2
- package/lib/components/loading/index.js +0 -7
- package/lib/components/page/page_header/page_header_content.js +15 -11
- package/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- package/lib/components/skeleton/skeleton_circle.js +24 -3
- package/lib/components/skeleton/skeleton_loading.js +11 -5
- package/lib/components/skeleton/skeleton_rectangle.js +24 -3
- package/lib/components/skeleton/skeleton_text.js +24 -3
- package/lib/components/skeleton/skeleton_title.js +24 -3
- package/lib/test/rtl/custom_render.js +11 -2
- package/lib/test/rtl/index.d.ts +1 -1
- package/lib/test/rtl/index.js +8 -1
- package/optimize/es/components/avatar/avatar.js +8 -3
- package/optimize/es/components/avatar/avatar.styles.js +46 -9
- package/optimize/es/components/form/form.styles.js +2 -2
- package/optimize/es/components/loading/index.js +0 -1
- package/optimize/es/components/page/page_header/page_header_content.js +10 -11
- package/optimize/es/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/optimize/es/components/skeleton/skeleton_circle.js +8 -2
- package/optimize/es/components/skeleton/skeleton_loading.js +11 -5
- package/optimize/es/components/skeleton/skeleton_rectangle.js +8 -2
- package/optimize/es/components/skeleton/skeleton_text.js +8 -2
- package/optimize/es/components/skeleton/skeleton_title.js +8 -2
- package/optimize/es/test/rtl/custom_render.js +11 -1
- package/optimize/es/test/rtl/index.d.ts +1 -1
- package/optimize/es/test/rtl/index.js +1 -1
- package/optimize/lib/components/avatar/avatar.js +10 -4
- package/optimize/lib/components/avatar/avatar.styles.js +46 -9
- package/optimize/lib/components/form/form.styles.js +2 -2
- package/optimize/lib/components/loading/index.js +0 -7
- package/optimize/lib/components/page/page_header/page_header_content.js +10 -11
- package/optimize/lib/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/optimize/lib/components/skeleton/skeleton_circle.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_loading.js +11 -5
- package/optimize/lib/components/skeleton/skeleton_rectangle.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_text.js +8 -2
- package/optimize/lib/components/skeleton/skeleton_title.js +8 -2
- package/optimize/lib/test/rtl/custom_render.js +11 -2
- package/optimize/lib/test/rtl/index.d.ts +1 -1
- package/optimize/lib/test/rtl/index.js +8 -1
- package/package.json +2 -2
- package/src/components/form/switch/_switch.scss +30 -26
- package/src/global_styling/variables/_form.scss +2 -2
- package/test-env/components/avatar/avatar.js +17 -4
- package/test-env/components/avatar/avatar.styles.js +46 -9
- package/test-env/components/form/form.styles.js +2 -2
- package/test-env/components/loading/index.js +0 -7
- package/test-env/components/page/page_header/page_header_content.js +10 -11
- package/test-env/components/search_bar/query/ast_to_es_query_dsl.js +2 -2
- package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +7 -0
- package/test-env/components/skeleton/skeleton_circle.js +24 -3
- package/test-env/components/skeleton/skeleton_loading.js +11 -5
- package/test-env/components/skeleton/skeleton_rectangle.js +24 -3
- package/test-env/components/skeleton/skeleton_text.js +24 -3
- package/test-env/components/skeleton/skeleton_title.js +24 -3
- package/test-env/test/rtl/custom_render.js +11 -2
- package/test-env/test/rtl/index.js +8 -1
- package/es/components/loading/loading_content.js +0 -50
- package/lib/components/loading/loading_content.js +0 -54
- package/optimize/es/components/loading/loading_content.js +0 -21
- package/optimize/lib/components/loading/loading_content.js +0 -25
- package/test-env/components/loading/loading_content.js +0 -54
package/eui.d.ts
CHANGED
|
@@ -1697,371 +1697,6 @@ declare module '@elastic/eui/src/components/loading/loading_chart' {
|
|
|
1697
1697
|
};
|
|
1698
1698
|
export const EuiLoadingChart: FunctionComponent<EuiLoadingChartProps>;
|
|
1699
1699
|
|
|
1700
|
-
}
|
|
1701
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_loading' {
|
|
1702
|
-
import { FunctionComponent, HTMLAttributes, ReactElement } from 'react';
|
|
1703
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1704
|
-
export type _EuiSkeletonAriaProps = {
|
|
1705
|
-
/**
|
|
1706
|
-
* When true, shows the loading skeleton component.
|
|
1707
|
-
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
1708
|
-
*/
|
|
1709
|
-
isLoading?: boolean;
|
|
1710
|
-
/**
|
|
1711
|
-
* Label your loading sections to provide more helpful context to screen readers.
|
|
1712
|
-
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
1713
|
-
*/
|
|
1714
|
-
contentAriaLabel?: string;
|
|
1715
|
-
/**
|
|
1716
|
-
* Any optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
1717
|
-
*/
|
|
1718
|
-
ariaWrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
1719
|
-
};
|
|
1720
|
-
export type EuiSkeletonLoadingProps = CommonProps & _EuiSkeletonAriaProps['ariaWrapperProps'] & Pick<_EuiSkeletonAriaProps, 'isLoading' | 'contentAriaLabel'> & {
|
|
1721
|
-
/**
|
|
1722
|
-
* Content to display when loading
|
|
1723
|
-
*/
|
|
1724
|
-
loadingContent: ReactElement;
|
|
1725
|
-
/**
|
|
1726
|
-
* Content to display when loaded
|
|
1727
|
-
*/
|
|
1728
|
-
loadedContent: any;
|
|
1729
|
-
};
|
|
1730
|
-
export const EuiSkeletonLoading: FunctionComponent<EuiSkeletonLoadingProps>;
|
|
1731
|
-
|
|
1732
|
-
}
|
|
1733
|
-
declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
1734
|
-
export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
|
|
1735
|
-
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1736
|
-
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
1737
|
-
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
1738
|
-
|
|
1739
|
-
}
|
|
1740
|
-
declare module '@elastic/eui/src/components/skeleton/utils' {
|
|
1741
|
-
import { UseEuiTheme } from '@elastic/eui/src/services'; type AnimationOptions = {
|
|
1742
|
-
slideSize?: string;
|
|
1743
|
-
gradientSize?: string;
|
|
1744
|
-
};
|
|
1745
|
-
export const euiSkeletonGradientAnimation: ({ euiTheme, colorMode }: UseEuiTheme, { slideSize, gradientSize }?: AnimationOptions) => import("@emotion/utils").SerializedStyles;
|
|
1746
|
-
export {};
|
|
1747
|
-
|
|
1748
|
-
}
|
|
1749
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_circle.styles' {
|
|
1750
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1751
|
-
export const euiSkeletonCircleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1752
|
-
euiSkeletonCircle: import("@emotion/utils").SerializedStyles;
|
|
1753
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1754
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1755
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
1756
|
-
xl: import("@emotion/utils").SerializedStyles;
|
|
1757
|
-
};
|
|
1758
|
-
|
|
1759
|
-
}
|
|
1760
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_circle' {
|
|
1761
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
1762
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1763
|
-
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
1764
|
-
export const SIZES: readonly ["s", "m", "l", "xl"];
|
|
1765
|
-
export type SkeletonCircleSize = typeof SIZES[number];
|
|
1766
|
-
export type EuiSkeletonCircleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
1767
|
-
size?: SkeletonCircleSize;
|
|
1768
|
-
};
|
|
1769
|
-
export const EuiSkeletonCircle: FunctionComponent<EuiSkeletonCircleProps>;
|
|
1770
|
-
|
|
1771
|
-
}
|
|
1772
|
-
declare module '@elastic/eui/src/components/link/link.styles' {
|
|
1773
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1774
|
-
export const euiLinkHoverCSS: () => string;
|
|
1775
|
-
export const euiLinkFocusCSS: (euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
1776
|
-
export const euiLinkCSS: (euiThemeContext: UseEuiTheme) => string;
|
|
1777
|
-
export const euiLinkStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1778
|
-
euiLink: import("@emotion/utils").SerializedStyles;
|
|
1779
|
-
disabled: import("@emotion/utils").SerializedStyles;
|
|
1780
|
-
primary: import("@emotion/utils").SerializedStyles;
|
|
1781
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1782
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
1783
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
1784
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1785
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
1786
|
-
ghost: import("@emotion/utils").SerializedStyles;
|
|
1787
|
-
text: import("@emotion/utils").SerializedStyles;
|
|
1788
|
-
euiLink__screenReaderText: import("@emotion/utils").SerializedStyles;
|
|
1789
|
-
euiLink__externalIcon: import("@emotion/utils").SerializedStyles;
|
|
1790
|
-
};
|
|
1791
|
-
|
|
1792
|
-
}
|
|
1793
|
-
declare module '@elastic/eui/src/components/title/title' {
|
|
1794
|
-
import { FunctionComponent, ReactElement } from 'react';
|
|
1795
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1796
|
-
export const TITLE_SIZES: readonly ["xxxs", "xxs", "xs", "s", "m", "l"];
|
|
1797
|
-
export type EuiTitleSize = typeof TITLE_SIZES[number];
|
|
1798
|
-
export const TEXT_TRANSFORM: readonly ["uppercase"];
|
|
1799
|
-
export type EuiTitleTextTransform = typeof TEXT_TRANSFORM[number];
|
|
1800
|
-
export type EuiTitleProps = CommonProps & {
|
|
1801
|
-
/**
|
|
1802
|
-
* ReactElement to render as this component's content
|
|
1803
|
-
*/
|
|
1804
|
-
children: ReactElement<any>;
|
|
1805
|
-
size?: EuiTitleSize;
|
|
1806
|
-
textTransform?: EuiTitleTextTransform;
|
|
1807
|
-
id?: string;
|
|
1808
|
-
};
|
|
1809
|
-
export const EuiTitle: FunctionComponent<EuiTitleProps>;
|
|
1810
|
-
|
|
1811
|
-
}
|
|
1812
|
-
declare module '@elastic/eui/src/components/title/title.styles' {
|
|
1813
|
-
import { CSSProperties } from 'react';
|
|
1814
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1815
|
-
import { _FontScaleOptions } from '@elastic/eui/src/global_styling';
|
|
1816
|
-
import { EuiTitleSize } from '@elastic/eui/src/components/title/title'; type EuiThemeTitle = {
|
|
1817
|
-
fontSize: CSSProperties['fontSize'];
|
|
1818
|
-
lineHeight: CSSProperties['lineHeight'];
|
|
1819
|
-
fontWeight: CSSProperties['fontWeight'];
|
|
1820
|
-
color: CSSProperties['color'];
|
|
1821
|
-
};
|
|
1822
|
-
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions | undefined) => EuiThemeTitle;
|
|
1823
|
-
export const useEuiTitle: (scale: EuiTitleSize, options?: _FontScaleOptions | undefined) => EuiThemeTitle;
|
|
1824
|
-
/**
|
|
1825
|
-
* Styles
|
|
1826
|
-
*/
|
|
1827
|
-
export const euiTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1828
|
-
euiTitle: import("@emotion/utils").SerializedStyles;
|
|
1829
|
-
uppercase: import("@emotion/utils").SerializedStyles;
|
|
1830
|
-
xxxs: import("@emotion/utils").SerializedStyles;
|
|
1831
|
-
xxs: import("@emotion/utils").SerializedStyles;
|
|
1832
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
1833
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1834
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1835
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
1836
|
-
};
|
|
1837
|
-
export {};
|
|
1838
|
-
|
|
1839
|
-
}
|
|
1840
|
-
declare module '@elastic/eui/src/components/text/text.styles' {
|
|
1841
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1842
|
-
/**
|
|
1843
|
-
* TODO: Make this a global value so it can be set by theme?
|
|
1844
|
-
*/
|
|
1845
|
-
export const euiTextConstrainedMaxWidth = "max(64ch, 75%)";
|
|
1846
|
-
/**
|
|
1847
|
-
* Mixins
|
|
1848
|
-
*/
|
|
1849
|
-
export const euiText: (euiTheme: UseEuiTheme['euiTheme'], inheritColor?: boolean) => {
|
|
1850
|
-
color: string;
|
|
1851
|
-
fontWeight: import("csstype").Property.FontWeight | undefined;
|
|
1852
|
-
};
|
|
1853
|
-
/**
|
|
1854
|
-
* Styles
|
|
1855
|
-
*/
|
|
1856
|
-
export const euiTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1857
|
-
euiText: import("@emotion/utils").SerializedStyles;
|
|
1858
|
-
constrainedWidth: import("@emotion/utils").SerializedStyles;
|
|
1859
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1860
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1861
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
1862
|
-
relative: import("@emotion/utils").SerializedStyles;
|
|
1863
|
-
};
|
|
1864
|
-
|
|
1865
|
-
}
|
|
1866
|
-
declare module '@elastic/eui/src/components/text/text_color.styles' {
|
|
1867
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1868
|
-
export const euiTextColorStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
1869
|
-
euiTextColor: import("@emotion/utils").SerializedStyles;
|
|
1870
|
-
default: import("@emotion/utils").SerializedStyles;
|
|
1871
|
-
subdued: import("@emotion/utils").SerializedStyles;
|
|
1872
|
-
success: import("@emotion/utils").SerializedStyles;
|
|
1873
|
-
accent: import("@emotion/utils").SerializedStyles;
|
|
1874
|
-
danger: import("@emotion/utils").SerializedStyles;
|
|
1875
|
-
warning: import("@emotion/utils").SerializedStyles;
|
|
1876
|
-
ghost: import("@emotion/utils").SerializedStyles;
|
|
1877
|
-
inherit: import("@emotion/utils").SerializedStyles;
|
|
1878
|
-
customColor: import("@emotion/utils").SerializedStyles;
|
|
1879
|
-
};
|
|
1880
|
-
|
|
1881
|
-
}
|
|
1882
|
-
declare module '@elastic/eui/src/components/text/text_color' {
|
|
1883
|
-
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
1884
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1885
|
-
export const COLORS: readonly ["default", "subdued", "success", "accent", "danger", "warning", "ghost", "inherit"];
|
|
1886
|
-
export type TextColor = typeof COLORS[number];
|
|
1887
|
-
export type EuiTextColorProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement> & HTMLAttributes<HTMLSpanElement>, 'color'> & {
|
|
1888
|
-
/**
|
|
1889
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
1890
|
-
*/
|
|
1891
|
-
color?: TextColor | CSSProperties['color'];
|
|
1892
|
-
/**
|
|
1893
|
-
* Determines the root element
|
|
1894
|
-
*/
|
|
1895
|
-
component?: 'div' | 'span';
|
|
1896
|
-
/**
|
|
1897
|
-
* Applies text styling to the child element instead of rendering a parent wrapper `span`/`div`.
|
|
1898
|
-
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
1899
|
-
*/
|
|
1900
|
-
cloneElement?: boolean;
|
|
1901
|
-
};
|
|
1902
|
-
export const EuiTextColor: FunctionComponent<EuiTextColorProps>;
|
|
1903
|
-
|
|
1904
|
-
}
|
|
1905
|
-
declare module '@elastic/eui/src/components/text/text_align.styles' {
|
|
1906
|
-
export const euiTextAlignStyles: () => {
|
|
1907
|
-
euiTextAlign: import("@emotion/utils").SerializedStyles;
|
|
1908
|
-
left: import("@emotion/utils").SerializedStyles;
|
|
1909
|
-
right: import("@emotion/utils").SerializedStyles;
|
|
1910
|
-
center: import("@emotion/utils").SerializedStyles;
|
|
1911
|
-
};
|
|
1912
|
-
|
|
1913
|
-
}
|
|
1914
|
-
declare module '@elastic/eui/src/components/text/text_align' {
|
|
1915
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
1916
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1917
|
-
export const ALIGNMENTS: readonly ["left", "right", "center"];
|
|
1918
|
-
export type TextAlignment = typeof ALIGNMENTS[number];
|
|
1919
|
-
export type EuiTextAlignProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
1920
|
-
textAlign?: TextAlignment;
|
|
1921
|
-
/**
|
|
1922
|
-
* Applies text styling to the child element instead of rendering a parent wrapper `div`.
|
|
1923
|
-
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
1924
|
-
*/
|
|
1925
|
-
cloneElement?: boolean;
|
|
1926
|
-
};
|
|
1927
|
-
export const EuiTextAlign: FunctionComponent<EuiTextAlignProps>;
|
|
1928
|
-
|
|
1929
|
-
}
|
|
1930
|
-
declare module '@elastic/eui/src/components/text/text' {
|
|
1931
|
-
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
1932
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1933
|
-
import { TextColor } from '@elastic/eui/src/components/text/text_color';
|
|
1934
|
-
import { TextAlignment } from '@elastic/eui/src/components/text/text_align';
|
|
1935
|
-
export const TEXT_SIZES: readonly ["xs", "s", "m", "relative"];
|
|
1936
|
-
export type TextSize = typeof TEXT_SIZES[number];
|
|
1937
|
-
export type EuiTextProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'color'> & {
|
|
1938
|
-
textAlign?: TextAlignment;
|
|
1939
|
-
/**
|
|
1940
|
-
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
1941
|
-
*/
|
|
1942
|
-
size?: TextSize;
|
|
1943
|
-
/**
|
|
1944
|
-
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
1945
|
-
* @default inherit
|
|
1946
|
-
*/
|
|
1947
|
-
color?: TextColor | CSSProperties['color'];
|
|
1948
|
-
grow?: boolean;
|
|
1949
|
-
};
|
|
1950
|
-
export const EuiText: FunctionComponent<EuiTextProps>;
|
|
1951
|
-
|
|
1952
|
-
}
|
|
1953
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_text.styles' {
|
|
1954
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1955
|
-
export const euiSkeletonTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1956
|
-
euiSkeletonText: import("@emotion/utils").SerializedStyles;
|
|
1957
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1958
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1959
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
1960
|
-
relative: import("@emotion/utils").SerializedStyles;
|
|
1961
|
-
};
|
|
1962
|
-
|
|
1963
|
-
}
|
|
1964
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_text' {
|
|
1965
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
1966
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1967
|
-
import { TextSize } from '@elastic/eui/src/components/text/text';
|
|
1968
|
-
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
1969
|
-
export const LINES: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
1970
|
-
export type LineRange = typeof LINES[number];
|
|
1971
|
-
export type EuiSkeletonTextProps = CommonProps & HTMLAttributes<HTMLDivElement> & _EuiSkeletonAriaProps & {
|
|
1972
|
-
/**
|
|
1973
|
-
* Number of lines to display (between 1 to 10)
|
|
1974
|
-
*/
|
|
1975
|
-
lines?: LineRange;
|
|
1976
|
-
/**
|
|
1977
|
-
* EuiText size to render
|
|
1978
|
-
*/
|
|
1979
|
-
size?: TextSize;
|
|
1980
|
-
};
|
|
1981
|
-
export const EuiSkeletonText: FunctionComponent<EuiSkeletonTextProps>;
|
|
1982
|
-
|
|
1983
|
-
}
|
|
1984
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_rectangle.styles' {
|
|
1985
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
1986
|
-
export const euiSkeletonRectangleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
1987
|
-
euiSkeletonRectangle: import("@emotion/utils").SerializedStyles;
|
|
1988
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
1989
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
1990
|
-
none: import("@emotion/utils").SerializedStyles;
|
|
1991
|
-
};
|
|
1992
|
-
|
|
1993
|
-
}
|
|
1994
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_rectangle' {
|
|
1995
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
1996
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
1997
|
-
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
1998
|
-
export const RADIUS: readonly ["s", "m", "none"];
|
|
1999
|
-
export type SkeletonRectangleBorderRadius = typeof RADIUS[number];
|
|
2000
|
-
export type EuiSkeletonRectangleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
2001
|
-
width?: string | number;
|
|
2002
|
-
height?: string | number;
|
|
2003
|
-
borderRadius?: SkeletonRectangleBorderRadius;
|
|
2004
|
-
};
|
|
2005
|
-
export const EuiSkeletonRectangle: FunctionComponent<EuiSkeletonRectangleProps>;
|
|
2006
|
-
|
|
2007
|
-
}
|
|
2008
|
-
declare module '@elastic/eui/src/components/title' {
|
|
2009
|
-
export type { EuiTitleProps, EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
2010
|
-
export { EuiTitle } from '@elastic/eui/src/components/title/title';
|
|
2011
|
-
|
|
2012
|
-
}
|
|
2013
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_title.styles' {
|
|
2014
|
-
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2015
|
-
export const euiSkeletonTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2016
|
-
euiSkeletonTitle: import("@emotion/utils").SerializedStyles;
|
|
2017
|
-
l: import("@emotion/utils").SerializedStyles;
|
|
2018
|
-
m: import("@emotion/utils").SerializedStyles;
|
|
2019
|
-
s: import("@emotion/utils").SerializedStyles;
|
|
2020
|
-
xs: import("@emotion/utils").SerializedStyles;
|
|
2021
|
-
xxs: import("@emotion/utils").SerializedStyles;
|
|
2022
|
-
xxxs: import("@emotion/utils").SerializedStyles;
|
|
2023
|
-
};
|
|
2024
|
-
|
|
2025
|
-
}
|
|
2026
|
-
declare module '@elastic/eui/src/components/skeleton/skeleton_title' {
|
|
2027
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2028
|
-
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2029
|
-
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
2030
|
-
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
2031
|
-
export type EuiSkeletonTitleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
2032
|
-
/**
|
|
2033
|
-
* EuiTitle size to render
|
|
2034
|
-
*/
|
|
2035
|
-
size?: EuiTitleSize;
|
|
2036
|
-
};
|
|
2037
|
-
export const EuiSkeletonTitle: FunctionComponent<EuiSkeletonTitleProps>;
|
|
2038
|
-
|
|
2039
|
-
}
|
|
2040
|
-
declare module '@elastic/eui/src/components/skeleton' {
|
|
2041
|
-
export type { EuiSkeletonLoadingProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
2042
|
-
export { EuiSkeletonLoading } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
2043
|
-
export type { EuiSkeletonCircleProps } from '@elastic/eui/src/components/skeleton/skeleton_circle';
|
|
2044
|
-
export { EuiSkeletonCircle } from '@elastic/eui/src/components/skeleton/skeleton_circle';
|
|
2045
|
-
export type { EuiSkeletonTextProps } from '@elastic/eui/src/components/skeleton/skeleton_text';
|
|
2046
|
-
export { EuiSkeletonText } from '@elastic/eui/src/components/skeleton/skeleton_text';
|
|
2047
|
-
export type { EuiSkeletonRectangleProps } from '@elastic/eui/src/components/skeleton/skeleton_rectangle';
|
|
2048
|
-
export { EuiSkeletonRectangle } from '@elastic/eui/src/components/skeleton/skeleton_rectangle';
|
|
2049
|
-
export type { EuiSkeletonTitleProps } from '@elastic/eui/src/components/skeleton/skeleton_title';
|
|
2050
|
-
export { EuiSkeletonTitle } from '@elastic/eui/src/components/skeleton/skeleton_title';
|
|
2051
|
-
|
|
2052
|
-
}
|
|
2053
|
-
declare module '@elastic/eui/src/components/loading/loading_content' {
|
|
2054
|
-
import { FunctionComponent } from 'react';
|
|
2055
|
-
import { EuiSkeletonTextProps } from '@elastic/eui/src/components/skeleton';
|
|
2056
|
-
/**
|
|
2057
|
-
* @deprecated Use `EuiSkeletonTextProps` instead
|
|
2058
|
-
*/
|
|
2059
|
-
export type EuiLoadingContentProps = EuiSkeletonTextProps;
|
|
2060
|
-
/**
|
|
2061
|
-
* @deprecated Use `EuiSkeletonText` instead
|
|
2062
|
-
*/
|
|
2063
|
-
export const EuiLoadingContent: FunctionComponent<EuiSkeletonTextProps>;
|
|
2064
|
-
|
|
2065
1700
|
}
|
|
2066
1701
|
declare module '@elastic/eui/src/components/loading/loading_spinner.styles' {
|
|
2067
1702
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -2136,8 +1771,6 @@ declare module '@elastic/eui/src/components/loading' {
|
|
|
2136
1771
|
export { EuiLoadingElastic } from '@elastic/eui/src/components/loading/loading_elastic';
|
|
2137
1772
|
export type { EuiLoadingChartProps } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2138
1773
|
export { EuiLoadingChart } from '@elastic/eui/src/components/loading/loading_chart';
|
|
2139
|
-
export type { EuiLoadingContentProps } from '@elastic/eui/src/components/loading/loading_content';
|
|
2140
|
-
export { EuiLoadingContent } from '@elastic/eui/src/components/loading/loading_content';
|
|
2141
1774
|
export type { EuiLoadingSpinnerProps } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2142
1775
|
export { EuiLoadingSpinner } from '@elastic/eui/src/components/loading/loading_spinner';
|
|
2143
1776
|
export type { EuiLoadingLogoProps } from '@elastic/eui/src/components/loading/loading_logo';
|
|
@@ -2901,67 +2534,253 @@ declare module '@elastic/eui/src/components/form/form_fieldset/form_legend' {
|
|
|
2901
2534
|
display?: 'hidden' | 'visible';
|
|
2902
2535
|
compressed?: boolean;
|
|
2903
2536
|
};
|
|
2904
|
-
export const EuiFormLegend: FunctionComponent<EuiFormLegendProps>;
|
|
2537
|
+
export const EuiFormLegend: FunctionComponent<EuiFormLegendProps>;
|
|
2538
|
+
|
|
2539
|
+
}
|
|
2540
|
+
declare module '@elastic/eui/src/components/form/form_fieldset/form_fieldset' {
|
|
2541
|
+
import { HTMLAttributes, FunctionComponent } from 'react';
|
|
2542
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2543
|
+
import { EuiFormLegendProps } from '@elastic/eui/src/components/form/form_fieldset/form_legend';
|
|
2544
|
+
export interface EuiFormFieldsetProps extends CommonProps, HTMLAttributes<HTMLFieldSetElement> {
|
|
2545
|
+
/**
|
|
2546
|
+
* Adds an EuiFormLegend element as the first child
|
|
2547
|
+
*/
|
|
2548
|
+
legend?: EuiFormLegendProps;
|
|
2549
|
+
}
|
|
2550
|
+
export const EuiFormFieldset: FunctionComponent<EuiFormFieldsetProps>;
|
|
2551
|
+
|
|
2552
|
+
}
|
|
2553
|
+
declare module '@elastic/eui/src/components/form/form_fieldset' {
|
|
2554
|
+
export type { EuiFormFieldsetProps } from '@elastic/eui/src/components/form/form_fieldset/form_fieldset';
|
|
2555
|
+
export { EuiFormFieldset } from '@elastic/eui/src/components/form/form_fieldset/form_fieldset';
|
|
2556
|
+
export type { EuiFormLegendProps } from '@elastic/eui/src/components/form/form_fieldset/form_legend';
|
|
2557
|
+
export { EuiFormLegend } from '@elastic/eui/src/components/form/form_fieldset/form_legend';
|
|
2558
|
+
|
|
2559
|
+
}
|
|
2560
|
+
declare module '@elastic/eui/src/components/form/checkbox/checkbox_group' {
|
|
2561
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2562
|
+
import { CommonProps, ExclusiveUnion } from '@elastic/eui/src/components/common';
|
|
2563
|
+
import { EuiFormFieldsetProps, EuiFormLegendProps } from '@elastic/eui/src/components/form/form_fieldset';
|
|
2564
|
+
import { EuiCheckboxProps } from '@elastic/eui/src/components/form/checkbox/checkbox';
|
|
2565
|
+
export interface EuiCheckboxGroupOption extends Omit<EuiCheckboxProps, 'checked' | 'onChange'> {
|
|
2566
|
+
id: string;
|
|
2567
|
+
}
|
|
2568
|
+
export interface EuiCheckboxGroupIdToSelectedMap {
|
|
2569
|
+
[id: string]: boolean;
|
|
2570
|
+
} type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>; type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
2571
|
+
/**
|
|
2572
|
+
* If the individual labels for each radio do not provide a sufficient description, add a legend.
|
|
2573
|
+
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
2574
|
+
* Accepts an `EuiFormLegendProps` shape.
|
|
2575
|
+
*/
|
|
2576
|
+
legend?: EuiFormLegendProps;
|
|
2577
|
+
};
|
|
2578
|
+
export type EuiCheckboxGroupProps = CommonProps & {
|
|
2579
|
+
options: EuiCheckboxGroupOption[];
|
|
2580
|
+
idToSelectedMap: EuiCheckboxGroupIdToSelectedMap;
|
|
2581
|
+
onChange: (optionId: string) => void;
|
|
2582
|
+
/**
|
|
2583
|
+
* Tightens up the spacing between checkbox rows and sends down the
|
|
2584
|
+
* compressed prop to the checkbox itself
|
|
2585
|
+
*/
|
|
2586
|
+
compressed?: boolean;
|
|
2587
|
+
disabled?: boolean;
|
|
2588
|
+
} & ExclusiveUnion<AsDivProps, WithLegendProps>;
|
|
2589
|
+
export const EuiCheckboxGroup: FunctionComponent<EuiCheckboxGroupProps>;
|
|
2590
|
+
export {};
|
|
2591
|
+
|
|
2592
|
+
}
|
|
2593
|
+
declare module '@elastic/eui/src/components/form/checkbox' {
|
|
2594
|
+
export type { EuiCheckboxProps } from '@elastic/eui/src/components/form/checkbox/checkbox';
|
|
2595
|
+
export { EuiCheckbox } from '@elastic/eui/src/components/form/checkbox/checkbox';
|
|
2596
|
+
export type { EuiCheckboxGroupProps, EuiCheckboxGroupOption, } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2597
|
+
export { EuiCheckboxGroup } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2598
|
+
|
|
2599
|
+
}
|
|
2600
|
+
declare module '@elastic/eui/src/components/title/title.styles' {
|
|
2601
|
+
import { CSSProperties } from 'react';
|
|
2602
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2603
|
+
import { _FontScaleOptions } from '@elastic/eui/src/global_styling';
|
|
2604
|
+
import { EuiTitleSize } from '@elastic/eui/src/components/title/title'; type EuiThemeTitle = {
|
|
2605
|
+
fontSize: CSSProperties['fontSize'];
|
|
2606
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
2607
|
+
fontWeight: CSSProperties['fontWeight'];
|
|
2608
|
+
color: CSSProperties['color'];
|
|
2609
|
+
};
|
|
2610
|
+
export const euiTitle: (euiThemeContext: UseEuiTheme, scale?: EuiTitleSize, options?: _FontScaleOptions | undefined) => EuiThemeTitle;
|
|
2611
|
+
export const useEuiTitle: (scale: EuiTitleSize, options?: _FontScaleOptions | undefined) => EuiThemeTitle;
|
|
2612
|
+
/**
|
|
2613
|
+
* Styles
|
|
2614
|
+
*/
|
|
2615
|
+
export const euiTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2616
|
+
euiTitle: import("@emotion/utils").SerializedStyles;
|
|
2617
|
+
uppercase: import("@emotion/utils").SerializedStyles;
|
|
2618
|
+
xxxs: import("@emotion/utils").SerializedStyles;
|
|
2619
|
+
xxs: import("@emotion/utils").SerializedStyles;
|
|
2620
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
2621
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
2622
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
2623
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
2624
|
+
};
|
|
2625
|
+
export {};
|
|
2626
|
+
|
|
2627
|
+
}
|
|
2628
|
+
declare module '@elastic/eui/src/components/title/title' {
|
|
2629
|
+
import { FunctionComponent, ReactElement } from 'react';
|
|
2630
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2631
|
+
export const TITLE_SIZES: readonly ["xxxs", "xxs", "xs", "s", "m", "l"];
|
|
2632
|
+
export type EuiTitleSize = typeof TITLE_SIZES[number];
|
|
2633
|
+
export const TEXT_TRANSFORM: readonly ["uppercase"];
|
|
2634
|
+
export type EuiTitleTextTransform = typeof TEXT_TRANSFORM[number];
|
|
2635
|
+
export type EuiTitleProps = CommonProps & {
|
|
2636
|
+
/**
|
|
2637
|
+
* ReactElement to render as this component's content
|
|
2638
|
+
*/
|
|
2639
|
+
children: ReactElement<any>;
|
|
2640
|
+
size?: EuiTitleSize;
|
|
2641
|
+
textTransform?: EuiTitleTextTransform;
|
|
2642
|
+
id?: string;
|
|
2643
|
+
};
|
|
2644
|
+
export const EuiTitle: FunctionComponent<EuiTitleProps>;
|
|
2645
|
+
|
|
2646
|
+
}
|
|
2647
|
+
declare module '@elastic/eui/src/components/title' {
|
|
2648
|
+
export type { EuiTitleProps, EuiTitleSize } from '@elastic/eui/src/components/title/title';
|
|
2649
|
+
export { EuiTitle } from '@elastic/eui/src/components/title/title';
|
|
2650
|
+
|
|
2651
|
+
}
|
|
2652
|
+
declare module '@elastic/eui/src/components/link/link.styles' {
|
|
2653
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2654
|
+
export const euiLinkHoverCSS: () => string;
|
|
2655
|
+
export const euiLinkFocusCSS: (euiTheme: UseEuiTheme['euiTheme']) => string;
|
|
2656
|
+
export const euiLinkCSS: (euiThemeContext: UseEuiTheme) => string;
|
|
2657
|
+
export const euiLinkStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2658
|
+
euiLink: import("@emotion/utils").SerializedStyles;
|
|
2659
|
+
disabled: import("@emotion/utils").SerializedStyles;
|
|
2660
|
+
primary: import("@emotion/utils").SerializedStyles;
|
|
2661
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
2662
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
2663
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
2664
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
2665
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
2666
|
+
ghost: import("@emotion/utils").SerializedStyles;
|
|
2667
|
+
text: import("@emotion/utils").SerializedStyles;
|
|
2668
|
+
euiLink__screenReaderText: import("@emotion/utils").SerializedStyles;
|
|
2669
|
+
euiLink__externalIcon: import("@emotion/utils").SerializedStyles;
|
|
2670
|
+
};
|
|
2671
|
+
|
|
2672
|
+
}
|
|
2673
|
+
declare module '@elastic/eui/src/components/text/text.styles' {
|
|
2674
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2675
|
+
/**
|
|
2676
|
+
* TODO: Make this a global value so it can be set by theme?
|
|
2677
|
+
*/
|
|
2678
|
+
export const euiTextConstrainedMaxWidth = "max(64ch, 75%)";
|
|
2679
|
+
/**
|
|
2680
|
+
* Mixins
|
|
2681
|
+
*/
|
|
2682
|
+
export const euiText: (euiTheme: UseEuiTheme['euiTheme'], inheritColor?: boolean) => {
|
|
2683
|
+
color: string;
|
|
2684
|
+
fontWeight: import("csstype").Property.FontWeight | undefined;
|
|
2685
|
+
};
|
|
2686
|
+
/**
|
|
2687
|
+
* Styles
|
|
2688
|
+
*/
|
|
2689
|
+
export const euiTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
2690
|
+
euiText: import("@emotion/utils").SerializedStyles;
|
|
2691
|
+
constrainedWidth: import("@emotion/utils").SerializedStyles;
|
|
2692
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
2693
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
2694
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
2695
|
+
relative: import("@emotion/utils").SerializedStyles;
|
|
2696
|
+
};
|
|
2697
|
+
|
|
2698
|
+
}
|
|
2699
|
+
declare module '@elastic/eui/src/components/text/text_color.styles' {
|
|
2700
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
2701
|
+
export const euiTextColorStyles: ({ euiTheme }: UseEuiTheme) => {
|
|
2702
|
+
euiTextColor: import("@emotion/utils").SerializedStyles;
|
|
2703
|
+
default: import("@emotion/utils").SerializedStyles;
|
|
2704
|
+
subdued: import("@emotion/utils").SerializedStyles;
|
|
2705
|
+
success: import("@emotion/utils").SerializedStyles;
|
|
2706
|
+
accent: import("@emotion/utils").SerializedStyles;
|
|
2707
|
+
danger: import("@emotion/utils").SerializedStyles;
|
|
2708
|
+
warning: import("@emotion/utils").SerializedStyles;
|
|
2709
|
+
ghost: import("@emotion/utils").SerializedStyles;
|
|
2710
|
+
inherit: import("@emotion/utils").SerializedStyles;
|
|
2711
|
+
customColor: import("@emotion/utils").SerializedStyles;
|
|
2712
|
+
};
|
|
2713
|
+
|
|
2714
|
+
}
|
|
2715
|
+
declare module '@elastic/eui/src/components/text/text_color' {
|
|
2716
|
+
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
2717
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2718
|
+
export const COLORS: readonly ["default", "subdued", "success", "accent", "danger", "warning", "ghost", "inherit"];
|
|
2719
|
+
export type TextColor = typeof COLORS[number];
|
|
2720
|
+
export type EuiTextColorProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement> & HTMLAttributes<HTMLSpanElement>, 'color'> & {
|
|
2721
|
+
/**
|
|
2722
|
+
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
2723
|
+
*/
|
|
2724
|
+
color?: TextColor | CSSProperties['color'];
|
|
2725
|
+
/**
|
|
2726
|
+
* Determines the root element
|
|
2727
|
+
*/
|
|
2728
|
+
component?: 'div' | 'span';
|
|
2729
|
+
/**
|
|
2730
|
+
* Applies text styling to the child element instead of rendering a parent wrapper `span`/`div`.
|
|
2731
|
+
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
2732
|
+
*/
|
|
2733
|
+
cloneElement?: boolean;
|
|
2734
|
+
};
|
|
2735
|
+
export const EuiTextColor: FunctionComponent<EuiTextColorProps>;
|
|
2736
|
+
|
|
2737
|
+
}
|
|
2738
|
+
declare module '@elastic/eui/src/components/text/text_align.styles' {
|
|
2739
|
+
export const euiTextAlignStyles: () => {
|
|
2740
|
+
euiTextAlign: import("@emotion/utils").SerializedStyles;
|
|
2741
|
+
left: import("@emotion/utils").SerializedStyles;
|
|
2742
|
+
right: import("@emotion/utils").SerializedStyles;
|
|
2743
|
+
center: import("@emotion/utils").SerializedStyles;
|
|
2744
|
+
};
|
|
2905
2745
|
|
|
2906
2746
|
}
|
|
2907
|
-
declare module '@elastic/eui/src/components/
|
|
2908
|
-
import {
|
|
2747
|
+
declare module '@elastic/eui/src/components/text/text_align' {
|
|
2748
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2909
2749
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2910
|
-
|
|
2911
|
-
export
|
|
2750
|
+
export const ALIGNMENTS: readonly ["left", "right", "center"];
|
|
2751
|
+
export type TextAlignment = typeof ALIGNMENTS[number];
|
|
2752
|
+
export type EuiTextAlignProps = CommonProps & HTMLAttributes<HTMLDivElement> & {
|
|
2753
|
+
textAlign?: TextAlignment;
|
|
2912
2754
|
/**
|
|
2913
|
-
*
|
|
2755
|
+
* Applies text styling to the child element instead of rendering a parent wrapper `div`.
|
|
2756
|
+
* Can only be used when wrapping a *single* child element/tag, and not raw text.
|
|
2914
2757
|
*/
|
|
2915
|
-
|
|
2916
|
-
}
|
|
2917
|
-
export const
|
|
2918
|
-
|
|
2919
|
-
}
|
|
2920
|
-
declare module '@elastic/eui/src/components/form/form_fieldset' {
|
|
2921
|
-
export type { EuiFormFieldsetProps } from '@elastic/eui/src/components/form/form_fieldset/form_fieldset';
|
|
2922
|
-
export { EuiFormFieldset } from '@elastic/eui/src/components/form/form_fieldset/form_fieldset';
|
|
2923
|
-
export type { EuiFormLegendProps } from '@elastic/eui/src/components/form/form_fieldset/form_legend';
|
|
2924
|
-
export { EuiFormLegend } from '@elastic/eui/src/components/form/form_fieldset/form_legend';
|
|
2758
|
+
cloneElement?: boolean;
|
|
2759
|
+
};
|
|
2760
|
+
export const EuiTextAlign: FunctionComponent<EuiTextAlignProps>;
|
|
2925
2761
|
|
|
2926
2762
|
}
|
|
2927
|
-
declare module '@elastic/eui/src/components/
|
|
2928
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
2929
|
-
import { CommonProps
|
|
2930
|
-
import {
|
|
2931
|
-
import {
|
|
2932
|
-
export
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
[id: string]: boolean;
|
|
2937
|
-
} type AsDivProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>; type WithLegendProps = Omit<EuiFormFieldsetProps, 'onChange'> & {
|
|
2763
|
+
declare module '@elastic/eui/src/components/text/text' {
|
|
2764
|
+
import { FunctionComponent, HTMLAttributes, CSSProperties } from 'react';
|
|
2765
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
2766
|
+
import { TextColor } from '@elastic/eui/src/components/text/text_color';
|
|
2767
|
+
import { TextAlignment } from '@elastic/eui/src/components/text/text_align';
|
|
2768
|
+
export const TEXT_SIZES: readonly ["xs", "s", "m", "relative"];
|
|
2769
|
+
export type TextSize = typeof TEXT_SIZES[number];
|
|
2770
|
+
export type EuiTextProps = CommonProps & Omit<HTMLAttributes<HTMLDivElement>, 'color'> & {
|
|
2771
|
+
textAlign?: TextAlignment;
|
|
2938
2772
|
/**
|
|
2939
|
-
*
|
|
2940
|
-
* Wraps the group in a `EuiFormFieldset` which adds an `EuiLegend` for titling the whole group.
|
|
2941
|
-
* Accepts an `EuiFormLegendProps` shape.
|
|
2773
|
+
* Determines the text size. Choose `relative` to control the `font-size` based on the value of a parent container.
|
|
2942
2774
|
*/
|
|
2943
|
-
|
|
2944
|
-
};
|
|
2945
|
-
export type EuiCheckboxGroupProps = CommonProps & {
|
|
2946
|
-
options: EuiCheckboxGroupOption[];
|
|
2947
|
-
idToSelectedMap: EuiCheckboxGroupIdToSelectedMap;
|
|
2948
|
-
onChange: (optionId: string) => void;
|
|
2775
|
+
size?: TextSize;
|
|
2949
2776
|
/**
|
|
2950
|
-
*
|
|
2951
|
-
*
|
|
2777
|
+
* Any of our named colors or a `hex`, `rgb` or `rgba` value.
|
|
2778
|
+
* @default inherit
|
|
2952
2779
|
*/
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
}
|
|
2956
|
-
export const
|
|
2957
|
-
export {};
|
|
2958
|
-
|
|
2959
|
-
}
|
|
2960
|
-
declare module '@elastic/eui/src/components/form/checkbox' {
|
|
2961
|
-
export type { EuiCheckboxProps } from '@elastic/eui/src/components/form/checkbox/checkbox';
|
|
2962
|
-
export { EuiCheckbox } from '@elastic/eui/src/components/form/checkbox/checkbox';
|
|
2963
|
-
export type { EuiCheckboxGroupProps, EuiCheckboxGroupOption, } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2964
|
-
export { EuiCheckboxGroup } from '@elastic/eui/src/components/form/checkbox/checkbox_group';
|
|
2780
|
+
color?: TextColor | CSSProperties['color'];
|
|
2781
|
+
grow?: boolean;
|
|
2782
|
+
};
|
|
2783
|
+
export const EuiText: FunctionComponent<EuiTextProps>;
|
|
2965
2784
|
|
|
2966
2785
|
}
|
|
2967
2786
|
declare module '@elastic/eui/src/components/text' {
|
|
@@ -8045,6 +7864,13 @@ declare module '@elastic/eui/src/global_styling/reset/global_styles' {
|
|
|
8045
7864
|
}
|
|
8046
7865
|
export const EuiGlobalStyles: ({}: EuiGlobalStylesProps) => JSX.Element;
|
|
8047
7866
|
|
|
7867
|
+
}
|
|
7868
|
+
declare module '@elastic/eui/src/global_styling/utility/animations' {
|
|
7869
|
+
export const euiAnimFadeIn: import("@emotion/serialize").Keyframes;
|
|
7870
|
+
export const euiAnimSlideInUp: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7871
|
+
export const euiAnimSlideX: (size: string) => import("@emotion/serialize").Keyframes;
|
|
7872
|
+
export const euiAnimScale: import("@emotion/serialize").Keyframes;
|
|
7873
|
+
|
|
8048
7874
|
}
|
|
8049
7875
|
declare module '@elastic/eui/src/global_styling' {
|
|
8050
7876
|
export * from '@elastic/eui/src/global_styling/reset/global_styles';
|
|
@@ -8394,6 +8220,10 @@ declare module '@elastic/eui/src/components/avatar/avatar.styles' {
|
|
|
8394
8220
|
m: import("@emotion/utils").SerializedStyles;
|
|
8395
8221
|
l: import("@emotion/utils").SerializedStyles;
|
|
8396
8222
|
xl: import("@emotion/utils").SerializedStyles;
|
|
8223
|
+
capitalize: import("@emotion/utils").SerializedStyles;
|
|
8224
|
+
uppercase: import("@emotion/utils").SerializedStyles;
|
|
8225
|
+
lowercase: import("@emotion/utils").SerializedStyles;
|
|
8226
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
8397
8227
|
};
|
|
8398
8228
|
|
|
8399
8229
|
}
|
|
@@ -8404,7 +8234,9 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
8404
8234
|
export const SIZES: readonly ["s", "m", "l", "xl"];
|
|
8405
8235
|
export type EuiAvatarSize = typeof SIZES[number];
|
|
8406
8236
|
export const TYPES: readonly ["space", "user"];
|
|
8407
|
-
export type EuiAvatarType = typeof TYPES[number];
|
|
8237
|
+
export type EuiAvatarType = typeof TYPES[number];
|
|
8238
|
+
export const CASING: readonly ["capitalize", "uppercase", "lowercase", "none"];
|
|
8239
|
+
export type EuiAvatarCasing = typeof CASING[number]; type _EuiAvatarContent = ExclusiveUnion<ExclusiveUnion<{
|
|
8408
8240
|
/**
|
|
8409
8241
|
* Custom initials (max 2 characters).
|
|
8410
8242
|
* By default will take the first character (of each word).
|
|
@@ -8451,6 +8283,13 @@ declare module '@elastic/eui/src/components/avatar/avatar' {
|
|
|
8451
8283
|
*/
|
|
8452
8284
|
type?: EuiAvatarType;
|
|
8453
8285
|
size?: EuiAvatarSize;
|
|
8286
|
+
/**
|
|
8287
|
+
* Sets the letter casing of the displayed initials.
|
|
8288
|
+
* Defaults to `uppercase` for `type="user"` avatars.
|
|
8289
|
+
* Defaults to `none` (uses the existing casing of the passed `name` or `initials`) for `type="space"` avatars.
|
|
8290
|
+
* @default uppercase
|
|
8291
|
+
*/
|
|
8292
|
+
casing?: EuiAvatarCasing;
|
|
8454
8293
|
/**
|
|
8455
8294
|
* Grays out the avatar to simulate being disabled
|
|
8456
8295
|
*/
|
|
@@ -19171,6 +19010,181 @@ declare module '@elastic/eui/src/components/side_nav' {
|
|
|
19171
19010
|
export { EuiSideNav } from '@elastic/eui/src/components/side_nav/side_nav';
|
|
19172
19011
|
export * from '@elastic/eui/src/components/side_nav/side_nav_types';
|
|
19173
19012
|
|
|
19013
|
+
}
|
|
19014
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_loading' {
|
|
19015
|
+
import { FunctionComponent, HTMLAttributes, ReactElement } from 'react';
|
|
19016
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19017
|
+
import { EuiScreenReaderLiveProps } from '@elastic/eui/src/components/accessibility/screen_reader_live';
|
|
19018
|
+
export type _EuiSkeletonAriaProps = {
|
|
19019
|
+
/**
|
|
19020
|
+
* When true, shows the loading skeleton component.
|
|
19021
|
+
* When false, shows any `children` and announces to screen readers that your content has loaded.
|
|
19022
|
+
*/
|
|
19023
|
+
isLoading?: boolean;
|
|
19024
|
+
/**
|
|
19025
|
+
* Label your loading sections to provide more helpful context to screen readers.
|
|
19026
|
+
* For example, pass "API keys" to have screen readers read "Loading API keys" and "Loaded API keys".
|
|
19027
|
+
*/
|
|
19028
|
+
contentAriaLabel?: string;
|
|
19029
|
+
/**
|
|
19030
|
+
* Makes a live screen reader announcement when `isLoading` is true
|
|
19031
|
+
* @default false
|
|
19032
|
+
*/
|
|
19033
|
+
announceLoadingStatus?: boolean;
|
|
19034
|
+
/**
|
|
19035
|
+
* Makes a live screen reader announcement when `isLoading` is false
|
|
19036
|
+
* @default true
|
|
19037
|
+
*/
|
|
19038
|
+
announceLoadedStatus?: boolean;
|
|
19039
|
+
/**
|
|
19040
|
+
* Optional props to pass to the `aria-live` region that announces the loading status to screen readers.
|
|
19041
|
+
* Accepts any `EuiScreenReaderLive` props.
|
|
19042
|
+
*/
|
|
19043
|
+
ariaLiveProps?: Partial<EuiScreenReaderLiveProps>;
|
|
19044
|
+
/**
|
|
19045
|
+
* Optional props to pass to the `aria-busy` wrapper around the skeleton content
|
|
19046
|
+
*/
|
|
19047
|
+
ariaWrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
19048
|
+
};
|
|
19049
|
+
export type EuiSkeletonLoadingProps = CommonProps & _EuiSkeletonAriaProps['ariaWrapperProps'] & Omit<_EuiSkeletonAriaProps, 'ariaWrapperProps'> & {
|
|
19050
|
+
/**
|
|
19051
|
+
* Content to display when loading
|
|
19052
|
+
*/
|
|
19053
|
+
loadingContent: ReactElement;
|
|
19054
|
+
/**
|
|
19055
|
+
* Content to display when loaded
|
|
19056
|
+
*/
|
|
19057
|
+
loadedContent: any;
|
|
19058
|
+
};
|
|
19059
|
+
export const EuiSkeletonLoading: FunctionComponent<EuiSkeletonLoadingProps>;
|
|
19060
|
+
|
|
19061
|
+
}
|
|
19062
|
+
declare module '@elastic/eui/src/components/skeleton/utils' {
|
|
19063
|
+
import { UseEuiTheme } from '@elastic/eui/src/services'; type AnimationOptions = {
|
|
19064
|
+
slideSize?: string;
|
|
19065
|
+
gradientSize?: string;
|
|
19066
|
+
};
|
|
19067
|
+
export const euiSkeletonGradientAnimation: ({ euiTheme, colorMode }: UseEuiTheme, { slideSize, gradientSize }?: AnimationOptions) => import("@emotion/utils").SerializedStyles;
|
|
19068
|
+
export {};
|
|
19069
|
+
|
|
19070
|
+
}
|
|
19071
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_circle.styles' {
|
|
19072
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19073
|
+
export const euiSkeletonCircleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19074
|
+
euiSkeletonCircle: import("@emotion/utils").SerializedStyles;
|
|
19075
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19076
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19077
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
19078
|
+
xl: import("@emotion/utils").SerializedStyles;
|
|
19079
|
+
};
|
|
19080
|
+
|
|
19081
|
+
}
|
|
19082
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_circle' {
|
|
19083
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19084
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19085
|
+
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19086
|
+
export const SIZES: readonly ["s", "m", "l", "xl"];
|
|
19087
|
+
export type SkeletonCircleSize = typeof SIZES[number];
|
|
19088
|
+
export type EuiSkeletonCircleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
19089
|
+
size?: SkeletonCircleSize;
|
|
19090
|
+
};
|
|
19091
|
+
export const EuiSkeletonCircle: FunctionComponent<EuiSkeletonCircleProps>;
|
|
19092
|
+
|
|
19093
|
+
}
|
|
19094
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_text.styles' {
|
|
19095
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19096
|
+
export const euiSkeletonTextStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19097
|
+
euiSkeletonText: import("@emotion/utils").SerializedStyles;
|
|
19098
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19099
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19100
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19101
|
+
relative: import("@emotion/utils").SerializedStyles;
|
|
19102
|
+
};
|
|
19103
|
+
|
|
19104
|
+
}
|
|
19105
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_text' {
|
|
19106
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19107
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19108
|
+
import { TextSize } from '@elastic/eui/src/components/text/text';
|
|
19109
|
+
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19110
|
+
export const LINES: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
19111
|
+
export type LineRange = typeof LINES[number];
|
|
19112
|
+
export type EuiSkeletonTextProps = CommonProps & HTMLAttributes<HTMLDivElement> & _EuiSkeletonAriaProps & {
|
|
19113
|
+
/**
|
|
19114
|
+
* Number of lines to display (between 1 to 10)
|
|
19115
|
+
*/
|
|
19116
|
+
lines?: LineRange;
|
|
19117
|
+
/**
|
|
19118
|
+
* EuiText size to render
|
|
19119
|
+
*/
|
|
19120
|
+
size?: TextSize;
|
|
19121
|
+
};
|
|
19122
|
+
export const EuiSkeletonText: FunctionComponent<EuiSkeletonTextProps>;
|
|
19123
|
+
|
|
19124
|
+
}
|
|
19125
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_rectangle.styles' {
|
|
19126
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19127
|
+
export const euiSkeletonRectangleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19128
|
+
euiSkeletonRectangle: import("@emotion/utils").SerializedStyles;
|
|
19129
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19130
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19131
|
+
none: import("@emotion/utils").SerializedStyles;
|
|
19132
|
+
};
|
|
19133
|
+
|
|
19134
|
+
}
|
|
19135
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_rectangle' {
|
|
19136
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19137
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19138
|
+
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19139
|
+
export const RADIUS: readonly ["s", "m", "none"];
|
|
19140
|
+
export type SkeletonRectangleBorderRadius = typeof RADIUS[number];
|
|
19141
|
+
export type EuiSkeletonRectangleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
19142
|
+
width?: string | number;
|
|
19143
|
+
height?: string | number;
|
|
19144
|
+
borderRadius?: SkeletonRectangleBorderRadius;
|
|
19145
|
+
};
|
|
19146
|
+
export const EuiSkeletonRectangle: FunctionComponent<EuiSkeletonRectangleProps>;
|
|
19147
|
+
|
|
19148
|
+
}
|
|
19149
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_title.styles' {
|
|
19150
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
19151
|
+
export const euiSkeletonTitleStyles: (euiThemeContext: UseEuiTheme) => {
|
|
19152
|
+
euiSkeletonTitle: import("@emotion/utils").SerializedStyles;
|
|
19153
|
+
l: import("@emotion/utils").SerializedStyles;
|
|
19154
|
+
m: import("@emotion/utils").SerializedStyles;
|
|
19155
|
+
s: import("@emotion/utils").SerializedStyles;
|
|
19156
|
+
xs: import("@emotion/utils").SerializedStyles;
|
|
19157
|
+
xxs: import("@emotion/utils").SerializedStyles;
|
|
19158
|
+
xxxs: import("@emotion/utils").SerializedStyles;
|
|
19159
|
+
};
|
|
19160
|
+
|
|
19161
|
+
}
|
|
19162
|
+
declare module '@elastic/eui/src/components/skeleton/skeleton_title' {
|
|
19163
|
+
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
19164
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
19165
|
+
import { EuiTitleSize } from '@elastic/eui/src/components/title';
|
|
19166
|
+
import { _EuiSkeletonAriaProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19167
|
+
export type EuiSkeletonTitleProps = HTMLAttributes<HTMLDivElement> & CommonProps & _EuiSkeletonAriaProps & {
|
|
19168
|
+
/**
|
|
19169
|
+
* EuiTitle size to render
|
|
19170
|
+
*/
|
|
19171
|
+
size?: EuiTitleSize;
|
|
19172
|
+
};
|
|
19173
|
+
export const EuiSkeletonTitle: FunctionComponent<EuiSkeletonTitleProps>;
|
|
19174
|
+
|
|
19175
|
+
}
|
|
19176
|
+
declare module '@elastic/eui/src/components/skeleton' {
|
|
19177
|
+
export type { EuiSkeletonLoadingProps } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19178
|
+
export { EuiSkeletonLoading } from '@elastic/eui/src/components/skeleton/skeleton_loading';
|
|
19179
|
+
export type { EuiSkeletonCircleProps } from '@elastic/eui/src/components/skeleton/skeleton_circle';
|
|
19180
|
+
export { EuiSkeletonCircle } from '@elastic/eui/src/components/skeleton/skeleton_circle';
|
|
19181
|
+
export type { EuiSkeletonTextProps } from '@elastic/eui/src/components/skeleton/skeleton_text';
|
|
19182
|
+
export { EuiSkeletonText } from '@elastic/eui/src/components/skeleton/skeleton_text';
|
|
19183
|
+
export type { EuiSkeletonRectangleProps } from '@elastic/eui/src/components/skeleton/skeleton_rectangle';
|
|
19184
|
+
export { EuiSkeletonRectangle } from '@elastic/eui/src/components/skeleton/skeleton_rectangle';
|
|
19185
|
+
export type { EuiSkeletonTitleProps } from '@elastic/eui/src/components/skeleton/skeleton_title';
|
|
19186
|
+
export { EuiSkeletonTitle } from '@elastic/eui/src/components/skeleton/skeleton_title';
|
|
19187
|
+
|
|
19174
19188
|
}
|
|
19175
19189
|
declare module '@elastic/eui/src/components/stat/stat.styles' {
|
|
19176
19190
|
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
@@ -26545,8 +26559,8 @@ declare module '@elastic/eui' {
|
|
|
26545
26559
|
"euiSelectable.screenReaderInstructions": any;
|
|
26546
26560
|
"euiSelectable.placeholderName": any;
|
|
26547
26561
|
"euiSelectable.searchResults": any;
|
|
26548
|
-
"euiSkeletonLoading.loadingAriaText": any;
|
|
26549
26562
|
"euiSkeletonLoading.loadedAriaText": any;
|
|
26563
|
+
"euiSkeletonLoading.loadingAriaText": any;
|
|
26550
26564
|
"euiStat.loadingText": any;
|
|
26551
26565
|
"euiStepStrings.step": any;
|
|
26552
26566
|
"euiStepStrings.simpleStep": any;
|