@elastic/eui 64.0.1 → 64.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_charts_theme.js +330 -330
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +4 -1
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +4 -1
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/button/button_display/_button_display.js +6 -1
- package/es/components/button/button_empty/button_empty.js +10 -1
- package/es/components/card/card.js +10 -1
- package/es/components/card/card_select.js +10 -1
- package/es/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -2
- package/es/components/description_list/description_list_title.js +1 -1
- package/es/components/expression/expression.js +12 -2
- package/es/components/header/header_links/header_link.js +10 -1
- package/es/components/image/image.js +6 -1
- package/es/components/notification/notification_event.js +10 -1
- package/es/components/page/page_content/page_content.js +1 -2
- package/es/components/page/page_content/page_content_body.js +1 -2
- package/es/components/page/page_content/page_content_header.js +1 -2
- package/es/components/page/page_content/page_content_header_section.js +1 -2
- package/es/components/page/page_section/page_section.js +15 -3
- package/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/page/page_template.js +3 -1
- package/es/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/es/components/page_template/page_template.js +18 -2
- package/es/components/pagination/pagination_button.js +10 -1
- package/es/components/progress/progress.js +6 -1
- package/es/components/provider/cache/cache_provider.js +3 -9
- package/es/components/provider/provider.js +25 -2
- package/es/components/resizable_container/resizable_panel.js +6 -1
- package/es/components/side_nav/side_nav.js +5 -0
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +26 -24
- package/i18ntokens.json +4 -4
- package/lib/components/button/button_display/_button_display.js +6 -1
- package/lib/components/button/button_empty/button_empty.js +10 -1
- package/lib/components/card/card.js +10 -1
- package/lib/components/card/card_select.js +10 -1
- package/lib/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/lib/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/lib/components/description_list/description_list_title.js +1 -1
- package/lib/components/expression/expression.js +12 -2
- package/lib/components/header/header_links/header_link.js +10 -1
- package/lib/components/image/image.js +6 -1
- package/lib/components/notification/notification_event.js +10 -1
- package/lib/components/page/page_content/page_content.js +1 -2
- package/lib/components/page/page_content/page_content_body.js +1 -2
- package/lib/components/page/page_content/page_content_header.js +1 -2
- package/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/lib/components/page/page_section/page_section.js +15 -3
- package/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/page/page_template.js +3 -1
- package/lib/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/lib/components/page_template/page_template.js +18 -2
- package/lib/components/progress/progress.js +6 -1
- package/lib/components/provider/cache/cache_provider.js +3 -11
- package/lib/components/provider/provider.js +31 -6
- package/lib/components/resizable_container/resizable_panel.js +6 -1
- package/lib/components/side_nav/side_nav.js +5 -0
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/date_picker/super_date_picker/date_popover/date_popover_button.js +0 -1
- package/optimize/es/components/description_list/description_list_title.js +1 -1
- package/optimize/es/components/page/page_content/page_content.js +1 -2
- package/optimize/es/components/page/page_content/page_content_body.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header.js +1 -2
- package/optimize/es/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/es/components/page/page_section/page_section.js +4 -2
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/page/page_template.js +3 -1
- package/optimize/es/components/provider/cache/cache_provider.js +3 -9
- package/optimize/es/components/provider/provider.js +25 -2
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/page/page_content/page_content.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_body.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header.js +1 -2
- package/optimize/lib/components/page/page_content/page_content_header_section.js +1 -2
- package/optimize/lib/components/page/page_section/page_section.js +4 -2
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +1 -2
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/page/page_template.js +3 -1
- package/optimize/lib/components/provider/cache/cache_provider.js +3 -11
- package/optimize/lib/components/provider/provider.js +31 -6
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +1 -1
- package/src/components/datagrid/_data_grid_data_row.scss +7 -0
- package/test-env/components/button/button_display/_button_display.js +6 -1
- package/test-env/components/button/button_empty/button_empty.js +10 -1
- package/test-env/components/card/card.js +10 -1
- package/test-env/components/card/card_select.js +10 -1
- package/test-env/components/date_picker/auto_refresh/auto_refresh.js +6 -1
- package/test-env/components/date_picker/super_date_picker/date_popover/date_popover_button.js +6 -1
- package/test-env/components/description_list/description_list_title.js +1 -1
- package/test-env/components/expression/expression.js +12 -2
- package/test-env/components/header/header_links/header_link.js +10 -1
- package/test-env/components/image/image.js +6 -1
- package/test-env/components/notification/notification_event.js +10 -1
- package/test-env/components/page/page_content/page_content.js +1 -2
- package/test-env/components/page/page_content/page_content_body.js +1 -2
- package/test-env/components/page/page_content/page_content_header.js +1 -2
- package/test-env/components/page/page_content/page_content_header_section.js +1 -2
- package/test-env/components/page/page_section/page_section.js +15 -3
- package/test-env/components/page/page_side_bar/page_side_bar.js +1 -2
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/page/page_template.js +3 -1
- package/test-env/components/page_template/empty_prompt/page_empty_prompt.js +11 -1
- package/test-env/components/page_template/page_template.js +18 -2
- package/test-env/components/progress/progress.js +6 -1
- package/test-env/components/provider/cache/cache_provider.js +3 -11
- package/test-env/components/provider/provider.js +31 -6
- package/test-env/components/resizable_container/resizable_panel.js +6 -1
- package/test-env/components/side_nav/side_nav.js +5 -0
- package/test-env/services/theme/hooks.js +10 -15
package/eui.d.ts
CHANGED
|
@@ -2493,7 +2493,7 @@ declare module '@elastic/eui/src/components/button/button_empty/button_empty' {
|
|
|
2493
2493
|
/**
|
|
2494
2494
|
* Object of props passed to the <span/> wrapping the button's content
|
|
2495
2495
|
*/
|
|
2496
|
-
contentProps?: EuiButtonContentType;
|
|
2496
|
+
contentProps?: CommonProps & EuiButtonContentType;
|
|
2497
2497
|
} type EuiButtonEmptyPropsForAnchor = PropsForAnchor<CommonEuiButtonEmptyProps>; type EuiButtonEmptyPropsForButton = PropsForButton<CommonEuiButtonEmptyProps>;
|
|
2498
2498
|
export type EuiButtonEmptyProps = ExclusiveUnion<EuiButtonEmptyPropsForAnchor, EuiButtonEmptyPropsForButton>;
|
|
2499
2499
|
export const EuiButtonEmpty: FunctionComponent<EuiButtonEmptyProps>;
|
|
@@ -3752,7 +3752,7 @@ declare module '@elastic/eui/src/components/progress/progress' {
|
|
|
3752
3752
|
/**
|
|
3753
3753
|
* Object of props passed to the <span/> wrapping the determinate progress's label
|
|
3754
3754
|
*/
|
|
3755
|
-
labelProps?: HTMLAttributes<HTMLSpanElement>;
|
|
3755
|
+
labelProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
3756
3756
|
};
|
|
3757
3757
|
export const EuiProgress: FunctionComponent<ExclusiveUnion<Determinate, Indeterminate>>;
|
|
3758
3758
|
export {};
|
|
@@ -12304,12 +12304,13 @@ declare module '@elastic/eui/src/components/date_picker/super_date_picker/pretty
|
|
|
12304
12304
|
declare module '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_button' {
|
|
12305
12305
|
import { FunctionComponent, ButtonHTMLAttributes, MouseEventHandler } from 'react';
|
|
12306
12306
|
import { LocaleSpecifier } from 'moment';
|
|
12307
|
+
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
12307
12308
|
import { EuiPopoverProps } from '@elastic/eui/src/components/popover';
|
|
12308
12309
|
import { TimeOptions } from '@elastic/eui/src/components/date_picker/super_date_picker/time_options';
|
|
12309
12310
|
import { EuiDatePopoverContentProps } from '@elastic/eui/src/components/date_picker/super_date_picker/date_popover/date_popover_content';
|
|
12310
12311
|
export interface EuiDatePopoverButtonProps {
|
|
12311
12312
|
className?: string;
|
|
12312
|
-
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12313
|
+
buttonProps?: CommonProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
12313
12314
|
dateFormat: string;
|
|
12314
12315
|
isDisabled?: boolean;
|
|
12315
12316
|
isInvalid?: boolean;
|
|
@@ -13235,12 +13236,12 @@ declare module '@elastic/eui/src/components/expression/expression' {
|
|
|
13235
13236
|
* First part of the expression
|
|
13236
13237
|
*/
|
|
13237
13238
|
description: ReactNode;
|
|
13238
|
-
descriptionProps?: HTMLAttributes<HTMLSpanElement>;
|
|
13239
|
+
descriptionProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
13239
13240
|
/**
|
|
13240
13241
|
* Second part of the expression
|
|
13241
13242
|
*/
|
|
13242
13243
|
value?: ReactNode;
|
|
13243
|
-
valueProps?: HTMLAttributes<HTMLSpanElement>;
|
|
13244
|
+
valueProps?: CommonProps & HTMLAttributes<HTMLSpanElement>;
|
|
13244
13245
|
/**
|
|
13245
13246
|
* Color of the `description`
|
|
13246
13247
|
*/
|
|
@@ -13400,7 +13401,7 @@ declare module '@elastic/eui/src/components/button/button_display/_button_displa
|
|
|
13400
13401
|
/**
|
|
13401
13402
|
* Object of props passed to the <span/> wrapping the button's content
|
|
13402
13403
|
*/
|
|
13403
|
-
contentProps?: EuiButtonDisplayContentType;
|
|
13404
|
+
contentProps?: CommonProps & EuiButtonDisplayContentType;
|
|
13404
13405
|
style?: CSSProperties;
|
|
13405
13406
|
}
|
|
13406
13407
|
export type EuiButtonDisplayPropsForAnchor = PropsForAnchor<EuiButtonDisplayCommonProps, {
|
|
@@ -13829,7 +13830,7 @@ declare module '@elastic/eui/src/components/image/image_types' {
|
|
|
13829
13830
|
/**
|
|
13830
13831
|
* Props to add to the wrapping figure element
|
|
13831
13832
|
*/
|
|
13832
|
-
wrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
13833
|
+
wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
13833
13834
|
};
|
|
13834
13835
|
export type EuiImageWrapperProps = Pick<EuiImageProps, 'alt' | 'caption' | 'float' | 'margin' | 'hasShadow' | 'wrapperProps' | 'fullScreenIconColor' | 'allowFullScreen'> & {
|
|
13835
13836
|
isFullWidth: boolean;
|
|
@@ -15002,8 +15003,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content' {
|
|
|
15002
15003
|
role?: HTMLAttributes['role'] | null;
|
|
15003
15004
|
};
|
|
15004
15005
|
/**
|
|
15005
|
-
*
|
|
15006
|
-
* Use EuiPageSection instead
|
|
15006
|
+
* @deprecated Use EuiPageSection instead
|
|
15007
15007
|
*/
|
|
15008
15008
|
export const EuiPageContent_Deprecated: FunctionComponent<EuiPageContentProps>;
|
|
15009
15009
|
|
|
@@ -15021,8 +15021,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_body'
|
|
|
15021
15021
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15022
15022
|
}
|
|
15023
15023
|
/**
|
|
15024
|
-
*
|
|
15025
|
-
* Use EuiPageSection instead
|
|
15024
|
+
* @deprecated Use EuiPageSection instead
|
|
15026
15025
|
*/
|
|
15027
15026
|
export const EuiPageContentBody_Deprecated: FunctionComponent<EuiPageContentBodyProps>;
|
|
15028
15027
|
|
|
@@ -15038,8 +15037,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
15038
15037
|
responsive?: boolean;
|
|
15039
15038
|
}
|
|
15040
15039
|
/**
|
|
15041
|
-
*
|
|
15042
|
-
* Use EuiPageHeader instead
|
|
15040
|
+
* @deprecated Use EuiPageHeader instead
|
|
15043
15041
|
*/
|
|
15044
15042
|
export const EuiPageContentHeader_Deprecated: FunctionComponent<EuiPageContentHeaderProps>;
|
|
15045
15043
|
|
|
@@ -15050,8 +15048,7 @@ declare module '@elastic/eui/src/components/page/page_content/page_content_heade
|
|
|
15050
15048
|
export interface EuiPageContentHeaderSectionProps extends CommonProps, HTMLAttributes<HTMLDivElement> {
|
|
15051
15049
|
}
|
|
15052
15050
|
/**
|
|
15053
|
-
*
|
|
15054
|
-
* Use EuiPageHeader instead
|
|
15051
|
+
* @deprecated Use EuiPageHeader instead
|
|
15055
15052
|
*/
|
|
15056
15053
|
export const EuiPageContentHeaderSection_Deprecated: FunctionComponent<EuiPageContentHeaderSectionProps>;
|
|
15057
15054
|
|
|
@@ -15261,7 +15258,7 @@ declare module '@elastic/eui/src/components/page/page_section/page_section.style
|
|
|
15261
15258
|
|
|
15262
15259
|
}
|
|
15263
15260
|
declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
15264
|
-
import { FunctionComponent, HTMLAttributes } from 'react';
|
|
15261
|
+
import { FunctionComponent, ComponentType, HTMLAttributes } from 'react';
|
|
15265
15262
|
import { CommonProps } from '@elastic/eui/src/components/common';
|
|
15266
15263
|
import { _EuiPageRestrictWidth } from '@elastic/eui/src/components/page/_restrict_width';
|
|
15267
15264
|
import { _EuiPageBottomBorder } from '@elastic/eui/src/components/page/_bottom_border';
|
|
@@ -15288,8 +15285,12 @@ declare module '@elastic/eui/src/components/page/page_section/page_section' {
|
|
|
15288
15285
|
/**
|
|
15289
15286
|
* Passed down to the div wrapper of the section contents
|
|
15290
15287
|
*/
|
|
15291
|
-
contentProps?: HTMLAttributes<HTMLDivElement>;
|
|
15292
|
-
|
|
15288
|
+
contentProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
15289
|
+
/**
|
|
15290
|
+
* Sets which HTML element to render.
|
|
15291
|
+
*/
|
|
15292
|
+
component?: keyof JSX.IntrinsicElements | ComponentType;
|
|
15293
|
+
} & Omit<HTMLAttributes<Element>, 'color'>;
|
|
15293
15294
|
export const EuiPageSection: FunctionComponent<EuiPageSectionProps>;
|
|
15294
15295
|
|
|
15295
15296
|
}
|
|
@@ -15313,8 +15314,7 @@ declare module '@elastic/eui/src/components/page/page_side_bar/page_side_bar' {
|
|
|
15313
15314
|
paddingSize?: typeof PADDING_SIZES[number];
|
|
15314
15315
|
}
|
|
15315
15316
|
/**
|
|
15316
|
-
*
|
|
15317
|
-
* Use the new EuiPageSidebar instead
|
|
15317
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
15318
15318
|
*/
|
|
15319
15319
|
export const EuiPageSideBar_Deprecated: FunctionComponent<EuiPageSideBarProps>;
|
|
15320
15320
|
|
|
@@ -15442,7 +15442,9 @@ declare module '@elastic/eui/src/components/page/page_template' {
|
|
|
15442
15442
|
/**
|
|
15443
15443
|
* This component has been deprecated in favor of the new
|
|
15444
15444
|
* namespaced version. You can still import this component
|
|
15445
|
-
*
|
|
15445
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
15446
|
+
*
|
|
15447
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
15446
15448
|
*/
|
|
15447
15449
|
export const EuiPageTemplate_Deprecated: FunctionComponent<EuiPageTemplateProps_Deprecated>;
|
|
15448
15450
|
|
|
@@ -15665,7 +15667,7 @@ declare module '@elastic/eui/src/components/provider/cache/cache_provider' {
|
|
|
15665
15667
|
import { PropsWithChildren } from 'react';
|
|
15666
15668
|
import { EmotionCache } from '@emotion/cache';
|
|
15667
15669
|
export interface EuiCacheProviderProps {
|
|
15668
|
-
cache?: EmotionCache;
|
|
15670
|
+
cache?: false | EmotionCache;
|
|
15669
15671
|
}
|
|
15670
15672
|
export const EuiCacheProvider: ({ cache, children, }: PropsWithChildren<EuiCacheProviderProps>) => JSX.Element;
|
|
15671
15673
|
|
|
@@ -17321,7 +17323,7 @@ declare module '@elastic/eui/src/components/side_nav/side_nav' {
|
|
|
17321
17323
|
/**
|
|
17322
17324
|
* Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
|
|
17323
17325
|
*/
|
|
17324
|
-
headingProps?: EuiSideNavHeadingProps;
|
|
17326
|
+
headingProps?: CommonProps & EuiSideNavHeadingProps;
|
|
17325
17327
|
/**
|
|
17326
17328
|
* When called, toggles visibility of the navigation menu at mobile responsive widths. The callback should set the `isOpenOnMobile` prop to actually toggle navigation visibility.
|
|
17327
17329
|
*/
|
|
@@ -19310,7 +19312,7 @@ declare module '@elastic/eui/src/components/resizable_container/resizable_panel'
|
|
|
19310
19312
|
/**
|
|
19311
19313
|
* Props to add to the wrapping `.euiResizablePanel` div
|
|
19312
19314
|
*/
|
|
19313
|
-
wrapperProps?: HTMLAttributes<HTMLDivElement>;
|
|
19315
|
+
wrapperProps?: CommonProps & HTMLAttributes<HTMLDivElement>;
|
|
19314
19316
|
/**
|
|
19315
19317
|
* Padding to add directly to the wrapping `.euiResizablePanel` div
|
|
19316
19318
|
* Gives space around the actual panel.
|
package/i18ntokens.json
CHANGED
|
@@ -1941,11 +1941,11 @@
|
|
|
1941
1941
|
"highlighting": "string",
|
|
1942
1942
|
"loc": {
|
|
1943
1943
|
"start": {
|
|
1944
|
-
"line":
|
|
1944
|
+
"line": 93,
|
|
1945
1945
|
"column": 23
|
|
1946
1946
|
},
|
|
1947
1947
|
"end": {
|
|
1948
|
-
"line":
|
|
1948
|
+
"line": 97,
|
|
1949
1949
|
"column": 3
|
|
1950
1950
|
}
|
|
1951
1951
|
},
|
|
@@ -1957,11 +1957,11 @@
|
|
|
1957
1957
|
"highlighting": "string",
|
|
1958
1958
|
"loc": {
|
|
1959
1959
|
"start": {
|
|
1960
|
-
"line":
|
|
1960
|
+
"line": 98,
|
|
1961
1961
|
"column": 24
|
|
1962
1962
|
},
|
|
1963
1963
|
"end": {
|
|
1964
|
-
"line":
|
|
1964
|
+
"line": 102,
|
|
1965
1965
|
"column": 3
|
|
1966
1966
|
}
|
|
1967
1967
|
},
|
|
@@ -109,7 +109,12 @@ EuiButtonDisplay.propTypes = {
|
|
|
109
109
|
/**
|
|
110
110
|
* Object of props passed to the <span/> wrapping the button's content
|
|
111
111
|
*/
|
|
112
|
-
contentProps: _propTypes.default.
|
|
112
|
+
contentProps: _propTypes.default.shape({
|
|
113
|
+
className: _propTypes.default.string,
|
|
114
|
+
"aria-label": _propTypes.default.string,
|
|
115
|
+
"data-test-subj": _propTypes.default.string,
|
|
116
|
+
css: _propTypes.default.any
|
|
117
|
+
}),
|
|
113
118
|
style: _propTypes.default.any,
|
|
114
119
|
|
|
115
120
|
/**
|
|
@@ -202,7 +202,16 @@ EuiButtonEmpty.propTypes = {
|
|
|
202
202
|
/**
|
|
203
203
|
* Object of props passed to the <span/> wrapping the button's content
|
|
204
204
|
*/
|
|
205
|
-
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
208
|
+
*/
|
|
209
|
+
contentProps: _propTypes.default.shape({
|
|
210
|
+
className: _propTypes.default.string,
|
|
211
|
+
"aria-label": _propTypes.default.string,
|
|
212
|
+
"data-test-subj": _propTypes.default.string,
|
|
213
|
+
css: _propTypes.default.any
|
|
214
|
+
}),
|
|
206
215
|
|
|
207
216
|
/**
|
|
208
217
|
* Any `type` accepted by EuiIcon
|
|
@@ -417,7 +417,16 @@ EuiCard.propTypes = {
|
|
|
417
417
|
/**
|
|
418
418
|
* Object of props passed to the <span/> wrapping the button's content
|
|
419
419
|
*/
|
|
420
|
-
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
423
|
+
*/
|
|
424
|
+
contentProps: _propTypes.default.shape({
|
|
425
|
+
className: _propTypes.default.string,
|
|
426
|
+
"aria-label": _propTypes.default.string,
|
|
427
|
+
"data-test-subj": _propTypes.default.string,
|
|
428
|
+
css: _propTypes.default.any
|
|
429
|
+
}),
|
|
421
430
|
|
|
422
431
|
/**
|
|
423
432
|
* Any `type` accepted by EuiIcon
|
|
@@ -114,7 +114,16 @@ EuiCardSelect.propTypes = {
|
|
|
114
114
|
/**
|
|
115
115
|
* Object of props passed to the <span/> wrapping the button's content
|
|
116
116
|
*/
|
|
117
|
-
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
120
|
+
*/
|
|
121
|
+
contentProps: _propTypes.default.shape({
|
|
122
|
+
className: _propTypes.default.string,
|
|
123
|
+
"aria-label": _propTypes.default.string,
|
|
124
|
+
"data-test-subj": _propTypes.default.string,
|
|
125
|
+
css: _propTypes.default.any
|
|
126
|
+
}),
|
|
118
127
|
|
|
119
128
|
/**
|
|
120
129
|
* Any `type` accepted by EuiIcon
|
|
@@ -225,7 +225,12 @@ EuiAutoRefreshButton.propTypes = {
|
|
|
225
225
|
/**
|
|
226
226
|
* Object of props passed to the <span/> wrapping the button's content
|
|
227
227
|
*/
|
|
228
|
-
contentProps: _propTypes.default.
|
|
228
|
+
contentProps: _propTypes.default.shape({
|
|
229
|
+
className: _propTypes.default.string,
|
|
230
|
+
"aria-label": _propTypes.default.string,
|
|
231
|
+
"data-test-subj": _propTypes.default.string,
|
|
232
|
+
css: _propTypes.default.any
|
|
233
|
+
}),
|
|
229
234
|
|
|
230
235
|
/**
|
|
231
236
|
* Object of props passed to the <span/> wrapping the content's text (only if the children is a `string`)
|
|
@@ -103,7 +103,12 @@ var EuiDatePopoverButton = function EuiDatePopoverButton(props) {
|
|
|
103
103
|
exports.EuiDatePopoverButton = EuiDatePopoverButton;
|
|
104
104
|
EuiDatePopoverButton.propTypes = {
|
|
105
105
|
className: _propTypes.default.string,
|
|
106
|
-
buttonProps: _propTypes.default.
|
|
106
|
+
buttonProps: _propTypes.default.shape({
|
|
107
|
+
className: _propTypes.default.string,
|
|
108
|
+
"aria-label": _propTypes.default.string,
|
|
109
|
+
"data-test-subj": _propTypes.default.string,
|
|
110
|
+
css: _propTypes.default.any
|
|
111
|
+
}),
|
|
107
112
|
dateFormat: _propTypes.default.string.isRequired,
|
|
108
113
|
isDisabled: _propTypes.default.bool,
|
|
109
114
|
isInvalid: _propTypes.default.bool,
|
|
@@ -60,7 +60,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
60
60
|
|
|
61
61
|
var theme = (0, _services.useEuiTheme)();
|
|
62
62
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
63
|
-
var conditionalStyles = compressed && textStyle
|
|
63
|
+
var conditionalStyles = compressed && textStyle !== 'reverse' ? [styles.fontStyles.compressed] : [styles.fontStyles[textStyle]];
|
|
64
64
|
|
|
65
65
|
switch (type) {
|
|
66
66
|
case 'inline':
|
|
@@ -112,7 +112,12 @@ EuiExpression.propTypes = {
|
|
|
112
112
|
* First part of the expression
|
|
113
113
|
*/
|
|
114
114
|
description: _propTypes.default.node.isRequired,
|
|
115
|
-
descriptionProps: _propTypes.default.
|
|
115
|
+
descriptionProps: _propTypes.default.shape({
|
|
116
|
+
className: _propTypes.default.string,
|
|
117
|
+
"aria-label": _propTypes.default.string,
|
|
118
|
+
"data-test-subj": _propTypes.default.string,
|
|
119
|
+
css: _propTypes.default.any
|
|
120
|
+
}),
|
|
116
121
|
|
|
117
122
|
/**
|
|
118
123
|
* Second part of the expression
|
|
@@ -122,7 +127,12 @@ EuiExpression.propTypes = {
|
|
|
122
127
|
* Second part of the expression
|
|
123
128
|
*/
|
|
124
129
|
value: _propTypes.default.node,
|
|
125
|
-
valueProps: _propTypes.default.
|
|
130
|
+
valueProps: _propTypes.default.shape({
|
|
131
|
+
className: _propTypes.default.string,
|
|
132
|
+
"aria-label": _propTypes.default.string,
|
|
133
|
+
"data-test-subj": _propTypes.default.string,
|
|
134
|
+
css: _propTypes.default.any
|
|
135
|
+
}),
|
|
126
136
|
|
|
127
137
|
/**
|
|
128
138
|
* Color of the `description`
|
|
@@ -107,7 +107,16 @@ EuiHeaderLink.propTypes = {
|
|
|
107
107
|
/**
|
|
108
108
|
* Object of props passed to the <span/> wrapping the button's content
|
|
109
109
|
*/
|
|
110
|
-
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
113
|
+
*/
|
|
114
|
+
contentProps: _propTypes.default.shape({
|
|
115
|
+
className: _propTypes.default.string,
|
|
116
|
+
"aria-label": _propTypes.default.string,
|
|
117
|
+
"data-test-subj": _propTypes.default.string,
|
|
118
|
+
css: _propTypes.default.any
|
|
119
|
+
}),
|
|
111
120
|
|
|
112
121
|
/**
|
|
113
122
|
* Any `type` accepted by EuiIcon
|
|
@@ -186,5 +186,10 @@ EuiImage.propTypes = {
|
|
|
186
186
|
/**
|
|
187
187
|
* Props to add to the wrapping figure element
|
|
188
188
|
*/
|
|
189
|
-
wrapperProps: _propTypes.default.
|
|
189
|
+
wrapperProps: _propTypes.default.shape({
|
|
190
|
+
className: _propTypes.default.string,
|
|
191
|
+
"aria-label": _propTypes.default.string,
|
|
192
|
+
"data-test-subj": _propTypes.default.string,
|
|
193
|
+
css: _propTypes.default.any
|
|
194
|
+
})
|
|
190
195
|
};
|
|
@@ -263,7 +263,16 @@ EuiNotificationEvent.propTypes = {
|
|
|
263
263
|
/**
|
|
264
264
|
* Object of props passed to the <span/> wrapping the button's content
|
|
265
265
|
*/
|
|
266
|
-
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Object of props passed to the <span/> wrapping the button's content
|
|
269
|
+
*/
|
|
270
|
+
contentProps: _propTypes.default.shape({
|
|
271
|
+
className: _propTypes.default.string,
|
|
272
|
+
"aria-label": _propTypes.default.string,
|
|
273
|
+
"data-test-subj": _propTypes.default.string,
|
|
274
|
+
css: _propTypes.default.any
|
|
275
|
+
}),
|
|
267
276
|
|
|
268
277
|
/**
|
|
269
278
|
* Any `type` accepted by EuiIcon
|
|
@@ -33,8 +33,7 @@ var horizontalPositionToClassNameMap = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* Use EuiPageSection instead
|
|
36
|
+
* @deprecated Use EuiPageSection instead
|
|
38
37
|
*/
|
|
39
38
|
var EuiPageContent_Deprecated = function EuiPageContent_Deprecated(_ref) {
|
|
40
39
|
var verticalPosition = _ref.verticalPosition,
|
|
@@ -39,8 +39,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
39
39
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* Use EuiPageSection instead
|
|
42
|
+
* @deprecated Use EuiPageSection instead
|
|
44
43
|
*/
|
|
45
44
|
var EuiPageContentBody_Deprecated = function EuiPageContentBody_Deprecated(_ref) {
|
|
46
45
|
var children = _ref.children,
|
|
@@ -24,8 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Use EuiPageHeader instead
|
|
27
|
+
* @deprecated Use EuiPageHeader instead
|
|
29
28
|
*/
|
|
30
29
|
var EuiPageContentHeader_Deprecated = function EuiPageContentHeader_Deprecated(_ref) {
|
|
31
30
|
var children = _ref.children,
|
|
@@ -24,8 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Use EuiPageHeader instead
|
|
27
|
+
* @deprecated Use EuiPageHeader instead
|
|
29
28
|
*/
|
|
30
29
|
var EuiPageContentHeaderSection_Deprecated = function EuiPageContentHeaderSection_Deprecated(_ref) {
|
|
31
30
|
var children = _ref.children,
|
|
@@ -19,7 +19,7 @@ var _global_styling = require("../../../global_styling");
|
|
|
19
19
|
|
|
20
20
|
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
|
-
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps"];
|
|
22
|
+
var _excluded = ["children", "alignment", "restrictWidth", "bottomBorder", "paddingSize", "color", "grow", "contentProps", "component"];
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
@@ -43,6 +43,8 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
43
43
|
_ref$grow = _ref.grow,
|
|
44
44
|
grow = _ref$grow === void 0 ? false : _ref$grow,
|
|
45
45
|
contentProps = _ref.contentProps,
|
|
46
|
+
_ref$component = _ref.component,
|
|
47
|
+
Component = _ref$component === void 0 ? 'section' : _ref$component,
|
|
46
48
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
47
49
|
|
|
48
50
|
// Set max-width as a style prop
|
|
@@ -55,7 +57,7 @@ var EuiPageSection = function EuiPageSection(_ref) {
|
|
|
55
57
|
var cssStyles = [styles.euiPageSection, grow && styles.grow, inlinePadding[paddingSize], bottomBorder === 'extended' && styles.border, alignment && styles[alignment], colors[color]];
|
|
56
58
|
var contentStyles = (0, _page_section.euiPageSectionContentStyles)();
|
|
57
59
|
var cssContentStyles = [contentStyles.euiPageSection__content, blockPadding[paddingSize], bottomBorder === true && styles.border, alignment.toLowerCase().includes('center') && contentStyles.center, restrictWidth && contentStyles.restrictWidth];
|
|
58
|
-
return (0, _react2.jsx)(
|
|
60
|
+
return (0, _react2.jsx)(Component, _extends({
|
|
59
61
|
css: cssStyles
|
|
60
62
|
}, rest), (0, _react2.jsx)("div", _extends({
|
|
61
63
|
css: cssContentStyles
|
|
@@ -110,5 +112,15 @@ EuiPageSection.propTypes = {
|
|
|
110
112
|
/**
|
|
111
113
|
* Passed down to the div wrapper of the section contents
|
|
112
114
|
*/
|
|
113
|
-
contentProps: _propTypes.default.
|
|
115
|
+
contentProps: _propTypes.default.shape({
|
|
116
|
+
className: _propTypes.default.string,
|
|
117
|
+
"aria-label": _propTypes.default.string,
|
|
118
|
+
"data-test-subj": _propTypes.default.string,
|
|
119
|
+
css: _propTypes.default.any
|
|
120
|
+
}),
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sets which HTML element to render.
|
|
124
|
+
*/
|
|
125
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
114
126
|
};
|
|
@@ -35,8 +35,7 @@ var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
|
35
35
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* Use the new EuiPageSidebar instead
|
|
38
|
+
* @deprecated Use the new EuiPageSidebar in page/page_sidebar instead
|
|
40
39
|
*/
|
|
41
40
|
var EuiPageSideBar_Deprecated = function EuiPageSideBar_Deprecated(_ref) {
|
|
42
41
|
var children = _ref.children,
|
|
@@ -76,13 +76,17 @@ var EuiPageSidebar = function EuiPageSidebar(_ref) {
|
|
|
76
76
|
setInlineStyles = _useState2[1];
|
|
77
77
|
|
|
78
78
|
(0, _react.useEffect)(function () {
|
|
79
|
+
var updatedStyles = _objectSpread(_objectSpread({}, style), (0, _global_styling.logicalStyle)('min-width', isResponding ? '100%' : minWidth));
|
|
80
|
+
|
|
79
81
|
if (sticky) {
|
|
80
82
|
var _document$body$datase;
|
|
81
83
|
|
|
82
84
|
var euiHeaderFixedCounter = Number((_document$body$datase = document.body.dataset.fixedHeaders) !== null && _document$body$datase !== void 0 ? _document$body$datase : 0);
|
|
83
85
|
var offset = _typeof(sticky) === 'object' ? sticky === null || sticky === void 0 ? void 0 : sticky.offset : themeContext.euiTheme.base * 3 * euiHeaderFixedCounter;
|
|
84
|
-
|
|
86
|
+
updatedStyles = _objectSpread(_objectSpread(_objectSpread({}, updatedStyles), (0, _global_styling.logicalStyle)('top', offset)), (0, _global_styling.logicalStyle)('max-height', "calc(100vh - ".concat(offset, "px)")));
|
|
85
87
|
}
|
|
88
|
+
|
|
89
|
+
setInlineStyles(updatedStyles);
|
|
86
90
|
}, [style, sticky, themeContext.euiTheme.base, isResponding, minWidth]);
|
|
87
91
|
return (0, _react2.jsx)("div", _extends({
|
|
88
92
|
className: className,
|
|
@@ -53,7 +53,9 @@ exports.TEMPLATES = TEMPLATES;
|
|
|
53
53
|
/**
|
|
54
54
|
* This component has been deprecated in favor of the new
|
|
55
55
|
* namespaced version. You can still import this component
|
|
56
|
-
*
|
|
56
|
+
* until August 2023 by importing `as EuiPageTemplate`.
|
|
57
|
+
*
|
|
58
|
+
* @deprecated use EuiPageTemplate from page_template/page_template instead
|
|
57
59
|
*/
|
|
58
60
|
var EuiPageTemplate_Deprecated = function EuiPageTemplate_Deprecated(_ref) {
|
|
59
61
|
var _pageBodyProps2;
|
|
@@ -112,6 +112,16 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
112
112
|
/**
|
|
113
113
|
* Passed down to the div wrapper of the section contents
|
|
114
114
|
*/
|
|
115
|
-
contentProps: _propTypes.default.
|
|
115
|
+
contentProps: _propTypes.default.shape({
|
|
116
|
+
className: _propTypes.default.string,
|
|
117
|
+
"aria-label": _propTypes.default.string,
|
|
118
|
+
"data-test-subj": _propTypes.default.string,
|
|
119
|
+
css: _propTypes.default.any
|
|
120
|
+
}),
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Sets which HTML element to render.
|
|
124
|
+
*/
|
|
125
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
116
126
|
panelled: _propTypes.default.bool
|
|
117
127
|
};
|
|
@@ -321,7 +321,17 @@ _EuiPageSection.propTypes = {
|
|
|
321
321
|
/**
|
|
322
322
|
* Passed down to the div wrapper of the section contents
|
|
323
323
|
*/
|
|
324
|
-
contentProps: _propTypes.default.
|
|
324
|
+
contentProps: _propTypes.default.shape({
|
|
325
|
+
className: _propTypes.default.string,
|
|
326
|
+
"aria-label": _propTypes.default.string,
|
|
327
|
+
"data-test-subj": _propTypes.default.string,
|
|
328
|
+
css: _propTypes.default.any
|
|
329
|
+
}),
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Sets which HTML element to render.
|
|
333
|
+
*/
|
|
334
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired])
|
|
325
335
|
};
|
|
326
336
|
|
|
327
337
|
var _EuiPageHeader = function _EuiPageHeader(props) {
|
|
@@ -370,7 +380,13 @@ _EuiPageEmptyPrompt.propTypes = {
|
|
|
370
380
|
paddingSize: _propTypes.default.any,
|
|
371
381
|
alignment: _propTypes.default.any,
|
|
372
382
|
grow: _propTypes.default.bool,
|
|
373
|
-
contentProps: _propTypes.default.
|
|
383
|
+
contentProps: _propTypes.default.shape({
|
|
384
|
+
className: _propTypes.default.string,
|
|
385
|
+
"aria-label": _propTypes.default.string,
|
|
386
|
+
"data-test-subj": _propTypes.default.string,
|
|
387
|
+
css: _propTypes.default.any
|
|
388
|
+
}),
|
|
389
|
+
component: _propTypes.default.oneOfType([_propTypes.default.any.isRequired, _propTypes.default.elementType.isRequired]),
|
|
374
390
|
panelled: _propTypes.default.bool
|
|
375
391
|
};
|
|
376
392
|
|
|
@@ -163,5 +163,10 @@ EuiProgress.propTypes = {
|
|
|
163
163
|
/**
|
|
164
164
|
* Object of props passed to the <span/> wrapping the determinate progress's label
|
|
165
165
|
*/
|
|
166
|
-
labelProps: _propTypes.default.
|
|
166
|
+
labelProps: _propTypes.default.shape({
|
|
167
|
+
className: _propTypes.default.string,
|
|
168
|
+
"aria-label": _propTypes.default.string,
|
|
169
|
+
"data-test-subj": _propTypes.default.string,
|
|
170
|
+
css: _propTypes.default.any
|
|
171
|
+
})
|
|
167
172
|
};
|
|
@@ -7,8 +7,6 @@ exports.EuiCacheProvider = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
-
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
11
|
-
|
|
12
10
|
var _react2 = require("@emotion/react");
|
|
13
11
|
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -20,18 +18,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
20
18
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
21
19
|
* Side Public License, v 1.
|
|
22
20
|
*/
|
|
23
|
-
var defaultCache = (0, _cache.default)({
|
|
24
|
-
key: 'css'
|
|
25
|
-
});
|
|
26
|
-
defaultCache.compat = true;
|
|
27
|
-
|
|
28
21
|
var EuiCacheProvider = function EuiCacheProvider(_ref) {
|
|
29
|
-
var
|
|
30
|
-
cache = _ref$cache === void 0 ? defaultCache : _ref$cache,
|
|
22
|
+
var cache = _ref.cache,
|
|
31
23
|
children = _ref.children;
|
|
32
|
-
return (0, _react2.jsx)(_react2.CacheProvider, {
|
|
24
|
+
return children && cache ? (0, _react2.jsx)(_react2.CacheProvider, {
|
|
33
25
|
value: cache
|
|
34
|
-
}, children);
|
|
26
|
+
}, children) : (0, _react2.jsx)(_react.default.Fragment, null, children);
|
|
35
27
|
};
|
|
36
28
|
|
|
37
29
|
exports.EuiCacheProvider = EuiCacheProvider;
|