@elastic/eui 64.0.0 → 64.0.3
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 +7 -313
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7 -313
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- 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/header/header_section/header_section_item.js +4 -3
- package/es/components/image/image.js +6 -1
- package/es/components/image/image_button.styles.js +1 -1
- package/es/components/link/link.styles.js +6 -5
- 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/components/text/text.styles.js +1 -1
- package/es/components/toast/global_toast_list.styles.js +2 -2
- package/es/global_styling/functions/logicals.js +16 -2
- package/es/global_styling/mixins/_helpers.js +11 -4
- package/es/global_styling/mixins/_states.js +3 -4
- package/es/global_styling/mixins/_typography.js +3 -1
- package/es/global_styling/reset/global_styles.js +1 -1
- package/es/global_styling/utility/utility.js +10 -2
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +98 -79
- package/i18ntokens.json +8 -8
- package/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- 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/header/header_section/header_section_item.js +4 -3
- package/lib/components/image/image.js +6 -1
- package/lib/components/image/image_button.styles.js +1 -1
- package/lib/components/link/link.styles.js +6 -5
- 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/components/text/text.styles.js +1 -1
- package/lib/components/toast/global_toast_list.styles.js +1 -1
- package/lib/global_styling/functions/logicals.js +21 -4
- package/lib/global_styling/mixins/_helpers.js +17 -6
- package/lib/global_styling/mixins/_states.js +3 -4
- package/lib/global_styling/mixins/_typography.js +4 -1
- package/lib/global_styling/reset/global_styles.js +1 -1
- package/lib/global_styling/utility/utility.js +16 -3
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/es/components/breadcrumbs/breadcrumb.styles.js +2 -2
- 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/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/image/image_button.styles.js +1 -1
- package/optimize/es/components/link/link.styles.js +6 -5
- 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/components/text/text.styles.js +1 -1
- package/optimize/es/components/toast/global_toast_list.styles.js +2 -2
- package/optimize/es/global_styling/functions/logicals.js +16 -2
- package/optimize/es/global_styling/mixins/_helpers.js +11 -4
- package/optimize/es/global_styling/mixins/_states.js +3 -4
- package/optimize/es/global_styling/mixins/_typography.js +3 -1
- package/optimize/es/global_styling/reset/global_styles.js +1 -1
- package/optimize/es/global_styling/utility/utility.js +10 -2
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/basic_table/collapsed_item_actions.js +1 -2
- package/optimize/lib/components/breadcrumbs/breadcrumb.styles.js +2 -2
- package/optimize/lib/components/description_list/description_list_title.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/image/image_button.styles.js +1 -1
- package/optimize/lib/components/link/link.styles.js +6 -5
- 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/components/text/text.styles.js +1 -1
- package/optimize/lib/components/toast/global_toast_list.styles.js +1 -1
- package/optimize/lib/global_styling/functions/logicals.js +21 -4
- package/optimize/lib/global_styling/mixins/_helpers.js +17 -6
- package/optimize/lib/global_styling/mixins/_states.js +3 -4
- package/optimize/lib/global_styling/mixins/_typography.js +4 -1
- package/optimize/lib/global_styling/reset/global_styles.js +1 -1
- package/optimize/lib/global_styling/utility/utility.js +16 -3
- 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/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/global_styling/mixins/_helpers.scss +9 -0
- package/src/global_styling/utility/_utility.scss +0 -127
- package/test-env/components/basic_table/collapsed_item_actions.js +1 -2
- package/test-env/components/breadcrumbs/breadcrumb.styles.js +2 -2
- 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/header/header_section/header_section_item.js +4 -3
- package/test-env/components/image/image.js +6 -1
- package/test-env/components/image/image_button.styles.js +1 -1
- package/test-env/components/link/link.styles.js +6 -5
- 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/components/text/text.styles.js +1 -1
- package/test-env/components/toast/global_toast_list.styles.js +1 -1
- package/test-env/global_styling/functions/logicals.js +21 -4
- package/test-env/global_styling/mixins/_helpers.js +17 -6
- package/test-env/global_styling/mixins/_states.js +3 -4
- package/test-env/global_styling/mixins/_typography.js +4 -1
- package/test-env/global_styling/reset/global_styles.js +1 -1
- package/test-env/global_styling/utility/utility.js +16 -3
- package/test-env/services/theme/hooks.js +10 -15
|
@@ -55,8 +55,8 @@ var euiBreadcrumbContentStyles = function euiBreadcrumbContentStyles(euiThemeCon
|
|
|
55
55
|
isTruncated: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)("".concat(parseFloat(euiTheme.size.base) * 10, "px")), ";;label:isTruncated;"),
|
|
56
56
|
isTruncatedLast: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)('none'), ";;label:isTruncatedLast;"),
|
|
57
57
|
// Types
|
|
58
|
-
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(
|
|
59
|
-
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";background-color:", (0, _color.transparentize)(euiTheme.colors.darkestShade, 0.2), ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", euiTheme.colors.darkestShade, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", (0, _color.transparentize)(euiTheme.colors.primary, 0.2), ";color:", euiTheme.colors.link, ";:focus{", (0, _global_styling.euiFocusRing)(
|
|
58
|
+
page: /*#__PURE__*/(0, _react.css)("&:is(a):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";}&:is(button):focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'center'), ";};label:page;"),
|
|
59
|
+
application: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 'xs'), ";background-color:", (0, _color.transparentize)(euiTheme.colors.darkestShade, 0.2), ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%,\n ", euiTheme.size.s, " 50%\n );color:", euiTheme.colors.darkestShade, ";line-height:", euiTheme.size.base, ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.base), " &:is(a),&:is(button){background-color:", (0, _color.transparentize)(euiTheme.colors.primary, 0.2), ";color:", euiTheme.colors.link, ";:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'inset'), ";:focus-visible{border-radius:", euiTheme.border.radius.medium, ";clip-path:none;}}};label:application;"),
|
|
60
60
|
applicationStyles: {
|
|
61
61
|
onlyChild: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";clip-path:none;", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.m), ",;;label:onlyChild;"),
|
|
62
62
|
firstChild: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, " 0 0 ", euiTheme.border.radius.medium, ";clip-path:polygon(\n 0 0,\n calc(100% - ", euiTheme.size.s, ") 0,\n 100% 50%,\n calc(100% - ", euiTheme.size.s, ") 100%,\n 0 100%\n );", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.m), ",;;label:firstChild;"),
|
|
@@ -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
|
|
@@ -36,10 +36,11 @@ var EuiHeaderSectionItem = function EuiHeaderSectionItem(_ref) {
|
|
|
36
36
|
className = _ref.className,
|
|
37
37
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
38
38
|
|
|
39
|
-
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className);
|
|
40
|
-
|
|
39
|
+
var classes = (0, _classnames.default)('euiHeaderSectionItem', borderToClassNameMap[border], className); // we check if there is any children and if not, we don't render anything
|
|
40
|
+
|
|
41
|
+
return children ? (0, _react2.jsx)("div", _extends({
|
|
41
42
|
className: classes
|
|
42
|
-
}, rest), children);
|
|
43
|
+
}, rest), children) : null;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
exports.EuiHeaderSectionItem = EuiHeaderSectionItem;
|
|
@@ -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
|
};
|
|
@@ -17,7 +17,7 @@ var euiImageButtonStyles = function euiImageButtonStyles(euiThemeContext) {
|
|
|
17
17
|
var euiTheme = euiThemeContext.euiTheme;
|
|
18
18
|
return {
|
|
19
19
|
// Base
|
|
20
|
-
euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(
|
|
20
|
+
euiImageButton: /*#__PURE__*/(0, _react.css)("position:relative;cursor:pointer;text-align:match-parent;line-height:0;&::before{opacity:0;content:'';pointer-events:none;position:absolute;top:0;bottom:0;left:0;right:0;", _global_styling.euiCanAnimate, "{transition:opacity ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}}&:hover,&:focus{&::before{opacity:1;}[class*='euiImageButton__icon']{opacity:1;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), ";};label:euiImageButton;"),
|
|
21
21
|
fullWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:fullWidth;"),
|
|
22
22
|
shadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _mixins.euiShadow)(euiThemeContext, 's'), ";};label:shadowHover;"),
|
|
23
23
|
hasShadowHover: /*#__PURE__*/(0, _react.css)("&::before{", (0, _mixins.euiShadow)(euiThemeContext, 'm'), ";};label:hasShadowHover;")
|
|
@@ -27,8 +27,9 @@ var euiLinkFocusCSS = function euiLinkFocusCSS(euiTheme) {
|
|
|
27
27
|
|
|
28
28
|
exports.euiLinkFocusCSS = euiLinkFocusCSS;
|
|
29
29
|
|
|
30
|
-
var euiLinkCSS = function euiLinkCSS(
|
|
31
|
-
|
|
30
|
+
var euiLinkCSS = function euiLinkCSS(euiThemeContext) {
|
|
31
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
32
|
+
return "\n font-weight: ".concat(euiTheme.font.weight.medium, ";\n text-align: left;\n\n &:hover {\n ").concat(euiLinkHoverCSS(), "\n }\n\n &:focus {\n ").concat((0, _global_styling.euiFocusRing)(euiThemeContext, 'outset'), "\n ").concat(euiLinkFocusCSS(euiTheme), "\n }\n ");
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
exports.euiLinkCSS = euiLinkCSS;
|
|
@@ -42,10 +43,10 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
42
43
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
44
|
};
|
|
44
45
|
|
|
45
|
-
var euiLinkStyles = function euiLinkStyles(
|
|
46
|
-
var euiTheme =
|
|
46
|
+
var euiLinkStyles = function euiLinkStyles(euiThemeContext) {
|
|
47
|
+
var euiTheme = euiThemeContext.euiTheme;
|
|
47
48
|
return {
|
|
48
|
-
euiLink: /*#__PURE__*/(0, _react.css)(euiLinkCSS(
|
|
49
|
+
euiLink: /*#__PURE__*/(0, _react.css)(euiLinkCSS(euiThemeContext), " user-select:text;&[target='_blank']{position:relative;};label:euiLink;"),
|
|
49
50
|
disabled: _ref,
|
|
50
51
|
// Color styles
|
|
51
52
|
primary: /*#__PURE__*/(0, _react.css)(_colorCSS(euiTheme.colors.primaryText), ";label:primary;"),
|
|
@@ -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;
|
|
@@ -7,6 +7,8 @@ exports.EuiProvider = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _cache = _interopRequireDefault(require("@emotion/cache"));
|
|
11
|
+
|
|
10
12
|
var _global_styles = require("../../global_styling/reset/global_styles");
|
|
11
13
|
|
|
12
14
|
var _utility = require("../../global_styling/utility/utility");
|
|
@@ -15,7 +17,7 @@ var _services = require("../../services");
|
|
|
15
17
|
|
|
16
18
|
var _themes = require("../../themes");
|
|
17
19
|
|
|
18
|
-
var
|
|
20
|
+
var _cache2 = require("./cache");
|
|
19
21
|
|
|
20
22
|
var _react2 = require("@emotion/react");
|
|
21
23
|
|
|
@@ -32,8 +34,16 @@ var isEmotionCacheObject = function isEmotionCacheObject(obj) {
|
|
|
32
34
|
return obj.hasOwnProperty('key');
|
|
33
35
|
};
|
|
34
36
|
|
|
37
|
+
var fallbackCache = (0, _cache.default)({
|
|
38
|
+
key: 'css'
|
|
39
|
+
});
|
|
40
|
+
fallbackCache.compat = true;
|
|
41
|
+
|
|
35
42
|
var EuiProvider = function EuiProvider(_ref) {
|
|
36
|
-
var
|
|
43
|
+
var _defaultCache;
|
|
44
|
+
|
|
45
|
+
var _ref$cache = _ref.cache,
|
|
46
|
+
cache = _ref$cache === void 0 ? fallbackCache : _ref$cache,
|
|
37
47
|
_ref$theme = _ref.theme,
|
|
38
48
|
theme = _ref$theme === void 0 ? _themes.EuiThemeAmsterdam : _ref$theme,
|
|
39
49
|
_ref$globalStyles = _ref.globalStyles,
|
|
@@ -49,24 +59,39 @@ var EuiProvider = function EuiProvider(_ref) {
|
|
|
49
59
|
|
|
50
60
|
if (cache) {
|
|
51
61
|
if (isEmotionCacheObject(cache)) {
|
|
62
|
+
cache.compat = true;
|
|
52
63
|
defaultCache = cache;
|
|
53
64
|
} else {
|
|
65
|
+
if (cache.default) {
|
|
66
|
+
cache.default.compat = true;
|
|
67
|
+
}
|
|
68
|
+
|
|
54
69
|
defaultCache = cache.default;
|
|
70
|
+
|
|
71
|
+
if (cache.global) {
|
|
72
|
+
cache.global.compat = true;
|
|
73
|
+
}
|
|
74
|
+
|
|
55
75
|
globalCache = cache.global;
|
|
76
|
+
|
|
77
|
+
if (cache.utility) {
|
|
78
|
+
cache.utility.compat = true;
|
|
79
|
+
}
|
|
80
|
+
|
|
56
81
|
utilityCache = cache.utility;
|
|
57
82
|
}
|
|
58
83
|
}
|
|
59
84
|
|
|
60
|
-
return (0, _react2.jsx)(
|
|
61
|
-
cache: defaultCache
|
|
85
|
+
return (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
86
|
+
cache: (_defaultCache = defaultCache) !== null && _defaultCache !== void 0 ? _defaultCache : fallbackCache
|
|
62
87
|
}, (0, _react2.jsx)(_services.EuiThemeProvider, {
|
|
63
88
|
theme: theme !== null && theme !== void 0 ? theme : undefined,
|
|
64
89
|
colorMode: colorMode,
|
|
65
90
|
modify: modify
|
|
66
|
-
}, theme && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(
|
|
91
|
+
}, theme && (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
67
92
|
cache: globalCache,
|
|
68
93
|
children: Globals && (0, _react2.jsx)(Globals, null)
|
|
69
|
-
}), (0, _react2.jsx)(
|
|
94
|
+
}), (0, _react2.jsx)(_cache2.EuiCacheProvider, {
|
|
70
95
|
cache: utilityCache,
|
|
71
96
|
children: Utilities && (0, _react2.jsx)(Utilities, null)
|
|
72
97
|
})), (0, _react2.jsx)(_services.CurrentEuiBreakpointProvider, null, children)));
|
|
@@ -355,7 +355,12 @@ EuiResizablePanel.propTypes = {
|
|
|
355
355
|
/**
|
|
356
356
|
* Props to add to the wrapping `.euiResizablePanel` div
|
|
357
357
|
*/
|
|
358
|
-
wrapperProps: _propTypes.default.
|
|
358
|
+
wrapperProps: _propTypes.default.shape({
|
|
359
|
+
className: _propTypes.default.string,
|
|
360
|
+
"aria-label": _propTypes.default.string,
|
|
361
|
+
"data-test-subj": _propTypes.default.string,
|
|
362
|
+
css: _propTypes.default.any
|
|
363
|
+
}),
|
|
359
364
|
|
|
360
365
|
/**
|
|
361
366
|
* Padding to add directly to the wrapping `.euiResizablePanel` div
|
|
@@ -272,6 +272,11 @@ EuiSideNav.propTypes = {
|
|
|
272
272
|
* Adds a couple extra #EuiSideNavHeading props and extends the props of EuiTitle that wraps the `heading`
|
|
273
273
|
*/
|
|
274
274
|
headingProps: _propTypes.default.shape({
|
|
275
|
+
className: _propTypes.default.string,
|
|
276
|
+
"aria-label": _propTypes.default.string,
|
|
277
|
+
"data-test-subj": _propTypes.default.string,
|
|
278
|
+
css: _propTypes.default.any,
|
|
279
|
+
|
|
275
280
|
/**
|
|
276
281
|
* The actual HTML heading element to wrap the `heading`.
|
|
277
282
|
* Default is `h2`
|
|
@@ -74,7 +74,7 @@ var euiScaleText = function euiScaleText(euiThemeContext, options) {
|
|
|
74
74
|
var euiTextStyles = function euiTextStyles(euiThemeContext) {
|
|
75
75
|
var euiTheme = euiThemeContext.euiTheme;
|
|
76
76
|
return {
|
|
77
|
-
euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(
|
|
77
|
+
euiText: /*#__PURE__*/(0, _react.css)(euiText(euiTheme, true), ";clear:both;a:not([class]){", (0, _link.euiLinkCSS)(euiThemeContext), ";}img{display:block;", (0, _global_styling.logicalCSS)('max-width', '100%'), ";}ul{list-style:disc;}ol{list-style:decimal;}blockquote:not(.euiMarkdownFormat__blockquote){position:relative;", (0, _global_styling.logicalTextAlignCSS)('center'), " ", (0, _global_styling.logicalCSS)('margin-horizontal', 'auto'), " font-family:", euiTheme.font.familySerif, ";font-style:italic;letter-spacing:normal;p:last-child{", (0, _global_styling.logicalCSS)('margin-bottom', '0'), ";}&:before,&:after{position:absolute;content:'';", (0, _global_styling.logicalCSS)('height', euiTheme.border.width.thick), " ", (0, _global_styling.logicalCSS)('width', '50%'), " ", (0, _global_styling.logicalCSS)('left', '25%'), " ", (0, _global_styling.logicalCSS)('right', '25%'), " background:", euiTheme.colors.darkShade, ";}&:before{", (0, _global_styling.logicalCSS)('top', '0'), ";}&:after{", (0, _global_styling.logicalCSS)('bottom', '0'), ";}}h1{", (0, _title.euiTitle)(euiThemeContext, 'l'), ";}h2{", (0, _title.euiTitle)(euiThemeContext, 'm'), ";}h3{", (0, _title.euiTitle)(euiThemeContext, 's'), ";}h4,dt{", (0, _title.euiTitle)(euiThemeContext, 'xs'), ";}h5{", (0, _title.euiTitle)(euiThemeContext, 'xxs'), ";}h6{", (0, _title.euiTitle)(euiThemeContext, 'xxxs'), " text-transform:uppercase;}h1,h2,h3,h4,h5,h6,dt{color:inherit;}pre:not(.euiCodeBlock__pre){white-space:pre-wrap;background:", (0, _global_styling.euiBackgroundColor)(euiThemeContext, 'subdued'), ";color:", euiTheme.colors.text, ";}pre:not(.euiCodeBlock__pre),pre:not(.euiCodeBlock__pre) code{display:block;}>:last-child{", (0, _global_styling.logicalCSS)('margin-bottom', '0 !important'), ";}kbd{position:relative;display:inline-block;", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xxs), " ", (0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.xs), " line-height:1;border:", euiTheme.border.width.thin, " solid ", euiTheme.colors.text, ";border-radius:calc(", euiTheme.border.radius.small, " / 2);};label:euiText;"),
|
|
78
78
|
constrainedWidth: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-width', euiTextConstrainedMaxWidth), ";;label:constrainedWidth;"),
|
|
79
79
|
// Sizes
|
|
80
80
|
m: /*#__PURE__*/(0, _react.css)(euiScaleText(euiThemeContext, {
|
|
@@ -22,7 +22,7 @@ var euiGlobalToastListStyles = function euiGlobalToastListStyles(euiThemeContext
|
|
|
22
22
|
* 2. Allow some padding for shadow
|
|
23
23
|
*/
|
|
24
24
|
// Base
|
|
25
|
-
euiGlobalToastList: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), " display:flex;flex-direction:column;align-items:stretch;position:fixed;z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('bottom', 0), ";", (0, _global_styling.logicalCSS)('width', "".concat(euiToastWidth + euiTheme.base * 5, "px")), ";", (0, _global_styling.logicalCSS)('max-height', '100vh'), ";
|
|
25
|
+
euiGlobalToastList: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiScrollBarStyles)(euiThemeContext), " display:flex;flex-direction:column;align-items:stretch;position:fixed;z-index:", euiTheme.levels.toast, ";", (0, _global_styling.logicalCSS)('bottom', 0), ";", (0, _global_styling.logicalCSS)('width', "".concat(euiToastWidth + euiTheme.base * 5, "px")), ";", (0, _global_styling.logicalCSS)('max-height', '100vh'), ";", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'auto'), ";scrollbar-width:none;&::-webkit-scrollbar{", (0, _global_styling.logicalSizeCSS)(0, 0), ";}&:not(:empty){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.base), ";", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.base), ";", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.base), ";}", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs', 's']), "{&:not(:empty){", (0, _global_styling.logicalCSS)('left', 0), ";", (0, _global_styling.logicalCSS)('width', '100%'), ";}};label:euiGlobalToastList;"),
|
|
26
26
|
// Variants
|
|
27
27
|
right: /*#__PURE__*/(0, _react.css)("&:not(:empty){", (0, _global_styling.logicalCSS)('right', 0), ";", (0, _global_styling.logicalCSS)('padding-left', "".concat(euiTheme.base * 4, "px")), ";}", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs', 's']), "{&:not(:empty){", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.base), ";}};label:right;"),
|
|
28
28
|
left: /*#__PURE__*/(0, _react.css)("&:not(:empty){", (0, _global_styling.logicalCSS)('left', 0), ";", (0, _global_styling.logicalCSS)('padding-right', "".concat(euiTheme.base * 4, "px")), ";}", (0, _global_styling.euiBreakpoint)(euiThemeContext, ['xs', 's']), "{&:not(:empty){", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.base), ";}};label:left;")
|