@elastic/eui 65.0.2 → 66.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +24 -196
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +24 -196
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +13 -2
- package/es/components/basic_table/in_memory_table.js +13 -2
- package/es/components/card/card.styles.js +2 -2
- package/es/components/combo_box/combo_box.js +2 -15
- package/es/components/datagrid/body/data_grid_body.js +17 -6
- package/es/components/datagrid/body/data_grid_cell.js +29 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/es/components/datagrid/data_grid.js +17 -6
- package/es/components/datagrid/utils/in_memory.js +17 -6
- package/es/components/description_list/description_list.js +11 -3
- package/es/components/description_list/description_list_context.js +2 -1
- package/es/components/description_list/description_list_description.js +3 -1
- package/es/components/description_list/description_list_description.styles.js +5 -2
- package/es/components/description_list/description_list_title.js +3 -2
- package/es/components/description_list/description_list_title.styles.js +7 -3
- package/es/components/description_list/description_list_types.js +2 -1
- package/es/components/form/field_search/field_search.js +6 -16
- package/es/components/form/range/range_input.js +1 -1
- package/es/components/header/header_section/header_section_item.js +4 -3
- package/es/components/icon/icon.js +1 -9
- package/es/components/list_group/list_group.js +7 -1
- package/es/components/list_group/list_group_item.js +10 -3
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/es/components/modal/modal.js +1 -3
- package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/table/table_row_cell.js +4 -6
- package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/es/global_styling/mixins/_typography.js +1 -1
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +29 -10
- package/i18ntokens.json +18 -18
- package/lib/components/basic_table/basic_table.js +13 -2
- package/lib/components/basic_table/in_memory_table.js +13 -2
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/combo_box/combo_box.js +2 -15
- package/lib/components/datagrid/body/data_grid_body.js +17 -6
- package/lib/components/datagrid/body/data_grid_cell.js +29 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/lib/components/datagrid/data_grid.js +17 -6
- package/lib/components/datagrid/utils/in_memory.js +17 -6
- package/lib/components/description_list/description_list.js +11 -3
- package/lib/components/description_list/description_list_context.js +2 -1
- package/lib/components/description_list/description_list_description.js +3 -1
- package/lib/components/description_list/description_list_description.styles.js +5 -2
- package/lib/components/description_list/description_list_title.js +3 -2
- package/lib/components/description_list/description_list_title.styles.js +7 -3
- package/lib/components/description_list/description_list_types.js +4 -2
- package/lib/components/form/field_search/field_search.js +6 -16
- package/lib/components/form/range/range_input.js +1 -1
- package/lib/components/header/header_section/header_section_item.js +4 -3
- package/lib/components/icon/icon.js +1 -9
- package/lib/components/list_group/list_group.js +7 -1
- package/lib/components/list_group/list_group_item.js +10 -3
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/lib/components/modal/modal.js +1 -3
- package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/table/table_row_cell.js +4 -6
- package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/lib/global_styling/mixins/_typography.js +1 -1
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/card/card.styles.js +2 -2
- package/optimize/es/components/combo_box/combo_box.js +2 -15
- package/optimize/es/components/description_list/description_list.js +5 -2
- package/optimize/es/components/description_list/description_list_context.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/es/components/description_list/description_list_title.js +3 -2
- package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/es/components/description_list/description_list_types.js +2 -1
- package/optimize/es/components/form/field_search/field_search.js +6 -16
- package/optimize/es/components/form/range/range_input.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/icon/icon.js +1 -9
- package/optimize/es/components/list_group/list_group_item.js +3 -2
- package/optimize/es/components/modal/modal.js +1 -3
- package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/es/global_styling/mixins/_typography.js +1 -1
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/combo_box/combo_box.js +2 -15
- package/optimize/lib/components/description_list/description_list.js +5 -2
- package/optimize/lib/components/description_list/description_list_context.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +3 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/lib/components/description_list/description_list_title.js +3 -2
- package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/lib/components/description_list/description_list_types.js +4 -2
- package/optimize/lib/components/form/field_search/field_search.js +6 -16
- package/optimize/lib/components/form/range/range_input.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/icon/icon.js +1 -9
- package/optimize/lib/components/list_group/list_group_item.js +3 -2
- package/optimize/lib/components/modal/modal.js +1 -3
- package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/lib/global_styling/mixins/_typography.js +1 -1
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +1 -1
- package/src/components/badge/_badge.scss +0 -5
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +3 -1
- package/src/components/flex/_flex_group.scss +2 -11
- package/src/components/flex/_flex_item.scss +0 -6
- package/src/components/form/field_search/_field_search.scss +0 -5
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
- package/src/components/form/form_row/_form_row.scss +0 -1
- package/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/components/list_group/_list_group_item.scss +3 -25
- package/src/components/modal/_modal.scss +5 -20
- package/src/components/page/page_content/_page_content.scss +0 -1
- package/src/components/table/_responsive.scss +0 -1
- package/src/components/table/_table.scss +0 -5
- package/src/global_styling/mixins/_form.scss +0 -4
- package/src/global_styling/mixins/_helpers.scss +0 -8
- package/src/global_styling/mixins/_typography.scss +1 -5
- package/src/global_styling/utility/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.js +13 -2
- package/test-env/components/basic_table/in_memory_table.js +13 -2
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/combo_box/combo_box.js +2 -15
- package/test-env/components/datagrid/body/data_grid_body.js +17 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/test-env/components/datagrid/data_grid.js +17 -6
- package/test-env/components/datagrid/utils/in_memory.js +17 -6
- package/test-env/components/description_list/description_list.js +11 -3
- package/test-env/components/description_list/description_list_context.js +2 -1
- package/test-env/components/description_list/description_list_description.js +3 -1
- package/test-env/components/description_list/description_list_description.styles.js +5 -2
- package/test-env/components/description_list/description_list_title.js +3 -2
- package/test-env/components/description_list/description_list_title.styles.js +7 -3
- package/test-env/components/description_list/description_list_types.js +4 -2
- package/test-env/components/form/field_search/field_search.js +6 -16
- package/test-env/components/form/range/range_input.js +1 -1
- package/test-env/components/header/header_section/header_section_item.js +4 -3
- package/test-env/components/list_group/list_group.js +7 -1
- package/test-env/components/list_group/list_group_item.js +10 -3
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/test-env/components/modal/modal.js +1 -3
- package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/table/table_row_cell.js +4 -6
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/test-env/global_styling/mixins/_typography.js +1 -1
- package/test-env/services/theme/hooks.js +10 -15
- package/src/global_styling/utility/_utility.scss +0 -15
|
@@ -672,6 +672,11 @@ EuiInMemoryTable.propTypes = {
|
|
|
672
672
|
*/
|
|
673
673
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
674
674
|
isExpander: _propTypes.default.bool,
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
678
|
+
* long text correctly.
|
|
679
|
+
*/
|
|
675
680
|
textOnly: _propTypes.default.bool,
|
|
676
681
|
|
|
677
682
|
/**
|
|
@@ -945,11 +950,17 @@ EuiInMemoryTable.propTypes = {
|
|
|
945
950
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
946
951
|
|
|
947
952
|
/**
|
|
948
|
-
* Applied to table cells
|
|
953
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
954
|
+
*
|
|
955
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
956
|
+
* long text correctly.
|
|
949
957
|
*/
|
|
950
958
|
|
|
951
959
|
/**
|
|
952
|
-
* Applied to table cells
|
|
960
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
961
|
+
*
|
|
962
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
963
|
+
* long text correctly.
|
|
953
964
|
*/
|
|
954
965
|
textOnly: _propTypes.default.bool,
|
|
955
966
|
message: _propTypes.default.node,
|
|
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
|
|
|
87
87
|
euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
|
|
88
88
|
euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
|
|
89
89
|
top: {
|
|
90
|
-
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('
|
|
90
|
+
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
|
|
91
91
|
layout: {
|
|
92
92
|
vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
|
|
93
93
|
horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
|
|
94
94
|
},
|
|
95
95
|
disabled: _ref2
|
|
96
96
|
},
|
|
97
|
-
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.
|
|
97
|
+
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
|
|
98
98
|
icon: {
|
|
99
99
|
euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
|
|
100
100
|
withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
|
|
@@ -106,17 +106,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
106
106
|
_defineProperty(_assertThisInitialized(_this), "comboBoxRefInstance", null);
|
|
107
107
|
|
|
108
108
|
_defineProperty(_assertThisInitialized(_this), "comboBoxRefCallback", function (ref) {
|
|
109
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
110
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
111
|
-
if (_this.comboBoxRefInstance) {
|
|
112
|
-
_this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
109
|
_this.comboBoxRefInstance = ref;
|
|
116
110
|
|
|
117
111
|
if (_this.comboBoxRefInstance) {
|
|
118
|
-
_this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
|
|
119
|
-
|
|
120
112
|
var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
|
|
121
113
|
|
|
122
114
|
_this.setState({
|
|
@@ -425,13 +417,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
425
417
|
|
|
426
418
|
_defineProperty(_assertThisInitialized(_this), "onContainerBlur", function (event) {
|
|
427
419
|
// close the options list, unless the user clicked on an option
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
|
|
431
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
|
|
432
|
-
*/
|
|
433
|
-
var focusEvent = event;
|
|
434
|
-
var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
|
|
420
|
+
var relatedTarget = event.relatedTarget;
|
|
435
421
|
|
|
436
422
|
var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
|
|
437
423
|
|
|
@@ -876,6 +862,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
876
862
|
className: classes,
|
|
877
863
|
"data-test-subj": dataTestSubj,
|
|
878
864
|
onKeyDown: this.onKeyDown,
|
|
865
|
+
onBlur: this.onContainerBlur,
|
|
879
866
|
ref: this.comboBoxRefCallback
|
|
880
867
|
}), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
|
|
881
868
|
autoSizeInputRef: this.autoSizeInputRefCallback,
|
|
@@ -712,7 +712,13 @@ EuiDataGridBody.propTypes = {
|
|
|
712
712
|
* Pass-through ref reference specifically for targeting
|
|
713
713
|
* instances where the item content is rendered as a `button`
|
|
714
714
|
*/
|
|
715
|
-
buttonRef: _propTypes.default.any
|
|
715
|
+
buttonRef: _propTypes.default.any,
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
719
|
+
* By default the text will be same as the label text.
|
|
720
|
+
*/
|
|
721
|
+
toolTipText: _propTypes.default.string
|
|
716
722
|
}).isRequired]),
|
|
717
723
|
|
|
718
724
|
/**
|
|
@@ -756,7 +762,8 @@ EuiDataGridBody.propTypes = {
|
|
|
756
762
|
}),
|
|
757
763
|
onClick: _propTypes.default.func,
|
|
758
764
|
wrapText: _propTypes.default.bool,
|
|
759
|
-
buttonRef: _propTypes.default.any
|
|
765
|
+
buttonRef: _propTypes.default.any,
|
|
766
|
+
toolTipText: _propTypes.default.string
|
|
760
767
|
}).isRequired]),
|
|
761
768
|
|
|
762
769
|
/**
|
|
@@ -800,7 +807,8 @@ EuiDataGridBody.propTypes = {
|
|
|
800
807
|
}),
|
|
801
808
|
onClick: _propTypes.default.func,
|
|
802
809
|
wrapText: _propTypes.default.bool,
|
|
803
|
-
buttonRef: _propTypes.default.any
|
|
810
|
+
buttonRef: _propTypes.default.any,
|
|
811
|
+
toolTipText: _propTypes.default.string
|
|
804
812
|
}).isRequired]),
|
|
805
813
|
|
|
806
814
|
/**
|
|
@@ -844,7 +852,8 @@ EuiDataGridBody.propTypes = {
|
|
|
844
852
|
}),
|
|
845
853
|
onClick: _propTypes.default.func,
|
|
846
854
|
wrapText: _propTypes.default.bool,
|
|
847
|
-
buttonRef: _propTypes.default.any
|
|
855
|
+
buttonRef: _propTypes.default.any,
|
|
856
|
+
toolTipText: _propTypes.default.string
|
|
848
857
|
}).isRequired]),
|
|
849
858
|
|
|
850
859
|
/**
|
|
@@ -888,7 +897,8 @@ EuiDataGridBody.propTypes = {
|
|
|
888
897
|
}),
|
|
889
898
|
onClick: _propTypes.default.func,
|
|
890
899
|
wrapText: _propTypes.default.bool,
|
|
891
|
-
buttonRef: _propTypes.default.any
|
|
900
|
+
buttonRef: _propTypes.default.any,
|
|
901
|
+
toolTipText: _propTypes.default.string
|
|
892
902
|
}).isRequired]),
|
|
893
903
|
|
|
894
904
|
/**
|
|
@@ -932,7 +942,8 @@ EuiDataGridBody.propTypes = {
|
|
|
932
942
|
}),
|
|
933
943
|
onClick: _propTypes.default.func,
|
|
934
944
|
wrapText: _propTypes.default.bool,
|
|
935
|
-
buttonRef: _propTypes.default.any
|
|
945
|
+
buttonRef: _propTypes.default.any,
|
|
946
|
+
toolTipText: _propTypes.default.string
|
|
936
947
|
}).isRequired)
|
|
937
948
|
}).isRequired]),
|
|
938
949
|
|
|
@@ -307,7 +307,13 @@ EuiDataGridCellContent.propTypes = {
|
|
|
307
307
|
* Pass-through ref reference specifically for targeting
|
|
308
308
|
* instances where the item content is rendered as a `button`
|
|
309
309
|
*/
|
|
310
|
-
buttonRef: _propTypes.default.any
|
|
310
|
+
buttonRef: _propTypes.default.any,
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
314
|
+
* By default the text will be same as the label text.
|
|
315
|
+
*/
|
|
316
|
+
toolTipText: _propTypes.default.string
|
|
311
317
|
}).isRequired]),
|
|
312
318
|
|
|
313
319
|
/**
|
|
@@ -351,7 +357,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
351
357
|
}),
|
|
352
358
|
onClick: _propTypes.default.func,
|
|
353
359
|
wrapText: _propTypes.default.bool,
|
|
354
|
-
buttonRef: _propTypes.default.any
|
|
360
|
+
buttonRef: _propTypes.default.any,
|
|
361
|
+
toolTipText: _propTypes.default.string
|
|
355
362
|
}).isRequired]),
|
|
356
363
|
|
|
357
364
|
/**
|
|
@@ -395,7 +402,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
395
402
|
}),
|
|
396
403
|
onClick: _propTypes.default.func,
|
|
397
404
|
wrapText: _propTypes.default.bool,
|
|
398
|
-
buttonRef: _propTypes.default.any
|
|
405
|
+
buttonRef: _propTypes.default.any,
|
|
406
|
+
toolTipText: _propTypes.default.string
|
|
399
407
|
}).isRequired]),
|
|
400
408
|
|
|
401
409
|
/**
|
|
@@ -439,7 +447,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
439
447
|
}),
|
|
440
448
|
onClick: _propTypes.default.func,
|
|
441
449
|
wrapText: _propTypes.default.bool,
|
|
442
|
-
buttonRef: _propTypes.default.any
|
|
450
|
+
buttonRef: _propTypes.default.any,
|
|
451
|
+
toolTipText: _propTypes.default.string
|
|
443
452
|
}).isRequired]),
|
|
444
453
|
|
|
445
454
|
/**
|
|
@@ -483,7 +492,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
483
492
|
}),
|
|
484
493
|
onClick: _propTypes.default.func,
|
|
485
494
|
wrapText: _propTypes.default.bool,
|
|
486
|
-
buttonRef: _propTypes.default.any
|
|
495
|
+
buttonRef: _propTypes.default.any,
|
|
496
|
+
toolTipText: _propTypes.default.string
|
|
487
497
|
}).isRequired]),
|
|
488
498
|
|
|
489
499
|
/**
|
|
@@ -527,7 +537,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
527
537
|
}),
|
|
528
538
|
onClick: _propTypes.default.func,
|
|
529
539
|
wrapText: _propTypes.default.bool,
|
|
530
|
-
buttonRef: _propTypes.default.any
|
|
540
|
+
buttonRef: _propTypes.default.any,
|
|
541
|
+
toolTipText: _propTypes.default.string
|
|
531
542
|
}).isRequired)
|
|
532
543
|
}).isRequired]),
|
|
533
544
|
|
|
@@ -1352,7 +1363,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1352
1363
|
}),
|
|
1353
1364
|
onClick: _propTypes.default.func,
|
|
1354
1365
|
wrapText: _propTypes.default.bool,
|
|
1355
|
-
buttonRef: _propTypes.default.any
|
|
1366
|
+
buttonRef: _propTypes.default.any,
|
|
1367
|
+
toolTipText: _propTypes.default.string
|
|
1356
1368
|
}).isRequired]),
|
|
1357
1369
|
|
|
1358
1370
|
/**
|
|
@@ -1396,7 +1408,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1396
1408
|
}),
|
|
1397
1409
|
onClick: _propTypes.default.func,
|
|
1398
1410
|
wrapText: _propTypes.default.bool,
|
|
1399
|
-
buttonRef: _propTypes.default.any
|
|
1411
|
+
buttonRef: _propTypes.default.any,
|
|
1412
|
+
toolTipText: _propTypes.default.string
|
|
1400
1413
|
}).isRequired]),
|
|
1401
1414
|
|
|
1402
1415
|
/**
|
|
@@ -1440,7 +1453,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1440
1453
|
}),
|
|
1441
1454
|
onClick: _propTypes.default.func,
|
|
1442
1455
|
wrapText: _propTypes.default.bool,
|
|
1443
|
-
buttonRef: _propTypes.default.any
|
|
1456
|
+
buttonRef: _propTypes.default.any,
|
|
1457
|
+
toolTipText: _propTypes.default.string
|
|
1444
1458
|
}).isRequired]),
|
|
1445
1459
|
|
|
1446
1460
|
/**
|
|
@@ -1484,7 +1498,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1484
1498
|
}),
|
|
1485
1499
|
onClick: _propTypes.default.func,
|
|
1486
1500
|
wrapText: _propTypes.default.bool,
|
|
1487
|
-
buttonRef: _propTypes.default.any
|
|
1501
|
+
buttonRef: _propTypes.default.any,
|
|
1502
|
+
toolTipText: _propTypes.default.string
|
|
1488
1503
|
}).isRequired]),
|
|
1489
1504
|
|
|
1490
1505
|
/**
|
|
@@ -1528,7 +1543,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1528
1543
|
}),
|
|
1529
1544
|
onClick: _propTypes.default.func,
|
|
1530
1545
|
wrapText: _propTypes.default.bool,
|
|
1531
|
-
buttonRef: _propTypes.default.any
|
|
1546
|
+
buttonRef: _propTypes.default.any,
|
|
1547
|
+
toolTipText: _propTypes.default.string
|
|
1532
1548
|
}).isRequired]),
|
|
1533
1549
|
|
|
1534
1550
|
/**
|
|
@@ -1572,7 +1588,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1572
1588
|
}),
|
|
1573
1589
|
onClick: _propTypes.default.func,
|
|
1574
1590
|
wrapText: _propTypes.default.bool,
|
|
1575
|
-
buttonRef: _propTypes.default.any
|
|
1591
|
+
buttonRef: _propTypes.default.any,
|
|
1592
|
+
toolTipText: _propTypes.default.string
|
|
1576
1593
|
}).isRequired)
|
|
1577
1594
|
}).isRequired]),
|
|
1578
1595
|
|
|
@@ -379,7 +379,13 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
379
379
|
* Pass-through ref reference specifically for targeting
|
|
380
380
|
* instances where the item content is rendered as a `button`
|
|
381
381
|
*/
|
|
382
|
-
buttonRef: _propTypes.default.any
|
|
382
|
+
buttonRef: _propTypes.default.any,
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
386
|
+
* By default the text will be same as the label text.
|
|
387
|
+
*/
|
|
388
|
+
toolTipText: _propTypes.default.string
|
|
383
389
|
}).isRequired]),
|
|
384
390
|
|
|
385
391
|
/**
|
|
@@ -423,7 +429,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
423
429
|
}),
|
|
424
430
|
onClick: _propTypes.default.func,
|
|
425
431
|
wrapText: _propTypes.default.bool,
|
|
426
|
-
buttonRef: _propTypes.default.any
|
|
432
|
+
buttonRef: _propTypes.default.any,
|
|
433
|
+
toolTipText: _propTypes.default.string
|
|
427
434
|
}).isRequired]),
|
|
428
435
|
|
|
429
436
|
/**
|
|
@@ -467,7 +474,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
467
474
|
}),
|
|
468
475
|
onClick: _propTypes.default.func,
|
|
469
476
|
wrapText: _propTypes.default.bool,
|
|
470
|
-
buttonRef: _propTypes.default.any
|
|
477
|
+
buttonRef: _propTypes.default.any,
|
|
478
|
+
toolTipText: _propTypes.default.string
|
|
471
479
|
}).isRequired]),
|
|
472
480
|
|
|
473
481
|
/**
|
|
@@ -511,7 +519,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
511
519
|
}),
|
|
512
520
|
onClick: _propTypes.default.func,
|
|
513
521
|
wrapText: _propTypes.default.bool,
|
|
514
|
-
buttonRef: _propTypes.default.any
|
|
522
|
+
buttonRef: _propTypes.default.any,
|
|
523
|
+
toolTipText: _propTypes.default.string
|
|
515
524
|
}).isRequired]),
|
|
516
525
|
|
|
517
526
|
/**
|
|
@@ -555,7 +564,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
555
564
|
}),
|
|
556
565
|
onClick: _propTypes.default.func,
|
|
557
566
|
wrapText: _propTypes.default.bool,
|
|
558
|
-
buttonRef: _propTypes.default.any
|
|
567
|
+
buttonRef: _propTypes.default.any,
|
|
568
|
+
toolTipText: _propTypes.default.string
|
|
559
569
|
}).isRequired]),
|
|
560
570
|
|
|
561
571
|
/**
|
|
@@ -599,7 +609,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
599
609
|
}),
|
|
600
610
|
onClick: _propTypes.default.func,
|
|
601
611
|
wrapText: _propTypes.default.bool,
|
|
602
|
-
buttonRef: _propTypes.default.any
|
|
612
|
+
buttonRef: _propTypes.default.any,
|
|
613
|
+
toolTipText: _propTypes.default.string
|
|
603
614
|
}).isRequired)
|
|
604
615
|
}).isRequired]),
|
|
605
616
|
|
|
@@ -326,7 +326,13 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
326
326
|
* Pass-through ref reference specifically for targeting
|
|
327
327
|
* instances where the item content is rendered as a `button`
|
|
328
328
|
*/
|
|
329
|
-
buttonRef: _propTypes.default.any
|
|
329
|
+
buttonRef: _propTypes.default.any,
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
333
|
+
* By default the text will be same as the label text.
|
|
334
|
+
*/
|
|
335
|
+
toolTipText: _propTypes.default.string
|
|
330
336
|
}).isRequired]),
|
|
331
337
|
|
|
332
338
|
/**
|
|
@@ -370,7 +376,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
370
376
|
}),
|
|
371
377
|
onClick: _propTypes.default.func,
|
|
372
378
|
wrapText: _propTypes.default.bool,
|
|
373
|
-
buttonRef: _propTypes.default.any
|
|
379
|
+
buttonRef: _propTypes.default.any,
|
|
380
|
+
toolTipText: _propTypes.default.string
|
|
374
381
|
}).isRequired]),
|
|
375
382
|
|
|
376
383
|
/**
|
|
@@ -414,7 +421,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
414
421
|
}),
|
|
415
422
|
onClick: _propTypes.default.func,
|
|
416
423
|
wrapText: _propTypes.default.bool,
|
|
417
|
-
buttonRef: _propTypes.default.any
|
|
424
|
+
buttonRef: _propTypes.default.any,
|
|
425
|
+
toolTipText: _propTypes.default.string
|
|
418
426
|
}).isRequired]),
|
|
419
427
|
|
|
420
428
|
/**
|
|
@@ -458,7 +466,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
458
466
|
}),
|
|
459
467
|
onClick: _propTypes.default.func,
|
|
460
468
|
wrapText: _propTypes.default.bool,
|
|
461
|
-
buttonRef: _propTypes.default.any
|
|
469
|
+
buttonRef: _propTypes.default.any,
|
|
470
|
+
toolTipText: _propTypes.default.string
|
|
462
471
|
}).isRequired]),
|
|
463
472
|
|
|
464
473
|
/**
|
|
@@ -502,7 +511,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
502
511
|
}),
|
|
503
512
|
onClick: _propTypes.default.func,
|
|
504
513
|
wrapText: _propTypes.default.bool,
|
|
505
|
-
buttonRef: _propTypes.default.any
|
|
514
|
+
buttonRef: _propTypes.default.any,
|
|
515
|
+
toolTipText: _propTypes.default.string
|
|
506
516
|
}).isRequired]),
|
|
507
517
|
|
|
508
518
|
/**
|
|
@@ -546,7 +556,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
546
556
|
}),
|
|
547
557
|
onClick: _propTypes.default.func,
|
|
548
558
|
wrapText: _propTypes.default.bool,
|
|
549
|
-
buttonRef: _propTypes.default.any
|
|
559
|
+
buttonRef: _propTypes.default.any,
|
|
560
|
+
toolTipText: _propTypes.default.string
|
|
550
561
|
}).isRequired)
|
|
551
562
|
}).isRequired]),
|
|
552
563
|
|
|
@@ -632,7 +632,13 @@ EuiDataGrid.propTypes = {
|
|
|
632
632
|
* Pass-through ref reference specifically for targeting
|
|
633
633
|
* instances where the item content is rendered as a `button`
|
|
634
634
|
*/
|
|
635
|
-
buttonRef: _propTypes.default.any
|
|
635
|
+
buttonRef: _propTypes.default.any,
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
639
|
+
* By default the text will be same as the label text.
|
|
640
|
+
*/
|
|
641
|
+
toolTipText: _propTypes.default.string
|
|
636
642
|
}).isRequired]),
|
|
637
643
|
|
|
638
644
|
/**
|
|
@@ -676,7 +682,8 @@ EuiDataGrid.propTypes = {
|
|
|
676
682
|
}),
|
|
677
683
|
onClick: _propTypes.default.func,
|
|
678
684
|
wrapText: _propTypes.default.bool,
|
|
679
|
-
buttonRef: _propTypes.default.any
|
|
685
|
+
buttonRef: _propTypes.default.any,
|
|
686
|
+
toolTipText: _propTypes.default.string
|
|
680
687
|
}).isRequired]),
|
|
681
688
|
|
|
682
689
|
/**
|
|
@@ -720,7 +727,8 @@ EuiDataGrid.propTypes = {
|
|
|
720
727
|
}),
|
|
721
728
|
onClick: _propTypes.default.func,
|
|
722
729
|
wrapText: _propTypes.default.bool,
|
|
723
|
-
buttonRef: _propTypes.default.any
|
|
730
|
+
buttonRef: _propTypes.default.any,
|
|
731
|
+
toolTipText: _propTypes.default.string
|
|
724
732
|
}).isRequired]),
|
|
725
733
|
|
|
726
734
|
/**
|
|
@@ -764,7 +772,8 @@ EuiDataGrid.propTypes = {
|
|
|
764
772
|
}),
|
|
765
773
|
onClick: _propTypes.default.func,
|
|
766
774
|
wrapText: _propTypes.default.bool,
|
|
767
|
-
buttonRef: _propTypes.default.any
|
|
775
|
+
buttonRef: _propTypes.default.any,
|
|
776
|
+
toolTipText: _propTypes.default.string
|
|
768
777
|
}).isRequired]),
|
|
769
778
|
|
|
770
779
|
/**
|
|
@@ -808,7 +817,8 @@ EuiDataGrid.propTypes = {
|
|
|
808
817
|
}),
|
|
809
818
|
onClick: _propTypes.default.func,
|
|
810
819
|
wrapText: _propTypes.default.bool,
|
|
811
|
-
buttonRef: _propTypes.default.any
|
|
820
|
+
buttonRef: _propTypes.default.any,
|
|
821
|
+
toolTipText: _propTypes.default.string
|
|
812
822
|
}).isRequired]),
|
|
813
823
|
|
|
814
824
|
/**
|
|
@@ -852,7 +862,8 @@ EuiDataGrid.propTypes = {
|
|
|
852
862
|
}),
|
|
853
863
|
onClick: _propTypes.default.func,
|
|
854
864
|
wrapText: _propTypes.default.bool,
|
|
855
|
-
buttonRef: _propTypes.default.any
|
|
865
|
+
buttonRef: _propTypes.default.any,
|
|
866
|
+
toolTipText: _propTypes.default.string
|
|
856
867
|
}).isRequired)
|
|
857
868
|
}).isRequired]),
|
|
858
869
|
|
|
@@ -426,7 +426,13 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
426
426
|
* Pass-through ref reference specifically for targeting
|
|
427
427
|
* instances where the item content is rendered as a `button`
|
|
428
428
|
*/
|
|
429
|
-
buttonRef: _propTypes.default.any
|
|
429
|
+
buttonRef: _propTypes.default.any,
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
433
|
+
* By default the text will be same as the label text.
|
|
434
|
+
*/
|
|
435
|
+
toolTipText: _propTypes.default.string
|
|
430
436
|
}).isRequired]),
|
|
431
437
|
|
|
432
438
|
/**
|
|
@@ -470,7 +476,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
470
476
|
}),
|
|
471
477
|
onClick: _propTypes.default.func,
|
|
472
478
|
wrapText: _propTypes.default.bool,
|
|
473
|
-
buttonRef: _propTypes.default.any
|
|
479
|
+
buttonRef: _propTypes.default.any,
|
|
480
|
+
toolTipText: _propTypes.default.string
|
|
474
481
|
}).isRequired]),
|
|
475
482
|
|
|
476
483
|
/**
|
|
@@ -514,7 +521,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
514
521
|
}),
|
|
515
522
|
onClick: _propTypes.default.func,
|
|
516
523
|
wrapText: _propTypes.default.bool,
|
|
517
|
-
buttonRef: _propTypes.default.any
|
|
524
|
+
buttonRef: _propTypes.default.any,
|
|
525
|
+
toolTipText: _propTypes.default.string
|
|
518
526
|
}).isRequired]),
|
|
519
527
|
|
|
520
528
|
/**
|
|
@@ -558,7 +566,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
558
566
|
}),
|
|
559
567
|
onClick: _propTypes.default.func,
|
|
560
568
|
wrapText: _propTypes.default.bool,
|
|
561
|
-
buttonRef: _propTypes.default.any
|
|
569
|
+
buttonRef: _propTypes.default.any,
|
|
570
|
+
toolTipText: _propTypes.default.string
|
|
562
571
|
}).isRequired]),
|
|
563
572
|
|
|
564
573
|
/**
|
|
@@ -602,7 +611,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
602
611
|
}),
|
|
603
612
|
onClick: _propTypes.default.func,
|
|
604
613
|
wrapText: _propTypes.default.bool,
|
|
605
|
-
buttonRef: _propTypes.default.any
|
|
614
|
+
buttonRef: _propTypes.default.any,
|
|
615
|
+
toolTipText: _propTypes.default.string
|
|
606
616
|
}).isRequired]),
|
|
607
617
|
|
|
608
618
|
/**
|
|
@@ -646,7 +656,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
646
656
|
}),
|
|
647
657
|
onClick: _propTypes.default.func,
|
|
648
658
|
wrapText: _propTypes.default.bool,
|
|
649
|
-
buttonRef: _propTypes.default.any
|
|
659
|
+
buttonRef: _propTypes.default.any,
|
|
660
|
+
toolTipText: _propTypes.default.string
|
|
650
661
|
}).isRequired)
|
|
651
662
|
}).isRequired]),
|
|
652
663
|
|
|
@@ -23,7 +23,7 @@ var _description_list_context = require("./description_list_context");
|
|
|
23
23
|
|
|
24
24
|
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
|
-
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type"];
|
|
26
|
+
var _excluded = ["align", "children", "className", "compressed", "descriptionProps", "listItems", "textStyle", "titleProps", "type", "gutterSize"];
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
29
|
|
|
@@ -47,6 +47,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
47
47
|
titleProps = _ref.titleProps,
|
|
48
48
|
_ref$type = _ref.type,
|
|
49
49
|
type = _ref$type === void 0 ? 'row' : _ref$type,
|
|
50
|
+
_ref$gutterSize = _ref.gutterSize,
|
|
51
|
+
gutterSize = _ref$gutterSize === void 0 ? 'm' : _ref$gutterSize,
|
|
50
52
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
51
53
|
|
|
52
54
|
var euiTheme = (0, _services.useEuiTheme)();
|
|
@@ -72,7 +74,8 @@ var EuiDescriptionList = function EuiDescriptionList(_ref) {
|
|
|
72
74
|
type: type,
|
|
73
75
|
compressed: compressed,
|
|
74
76
|
textStyle: textStyle,
|
|
75
|
-
align: align
|
|
77
|
+
align: align,
|
|
78
|
+
gutterSize: gutterSize
|
|
76
79
|
}
|
|
77
80
|
}, (0, _react2.jsx)("dl", _extends({
|
|
78
81
|
className: classes,
|
|
@@ -132,5 +135,10 @@ EuiDescriptionList.propTypes = {
|
|
|
132
135
|
"aria-label": _propTypes.default.string,
|
|
133
136
|
"data-test-subj": _propTypes.default.string,
|
|
134
137
|
css: _propTypes.default.any
|
|
135
|
-
})
|
|
138
|
+
}),
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Vertical spacing added between `EuiDescriptionList` elements
|
|
142
|
+
*/
|
|
143
|
+
gutterSize: _propTypes.default.any
|
|
136
144
|
};
|
|
@@ -17,7 +17,8 @@ var _react = require("react");
|
|
|
17
17
|
var contextDefaults = {
|
|
18
18
|
type: 'row',
|
|
19
19
|
textStyle: 'normal',
|
|
20
|
-
align: 'left'
|
|
20
|
+
align: 'left',
|
|
21
|
+
gutterSize: 'm'
|
|
21
22
|
};
|
|
22
23
|
exports.contextDefaults = contextDefaults;
|
|
23
24
|
var EuiDescriptionListContext = /*#__PURE__*/(0, _react.createContext)(contextDefaults);
|
|
@@ -56,7 +56,8 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
|
|
|
56
56
|
type = _useContext.type,
|
|
57
57
|
textStyle = _useContext.textStyle,
|
|
58
58
|
compressed = _useContext.compressed,
|
|
59
|
-
align = _useContext.align
|
|
59
|
+
align = _useContext.align,
|
|
60
|
+
gutterSize = _useContext.gutterSize;
|
|
60
61
|
|
|
61
62
|
var theme = (0, _services.useEuiTheme)();
|
|
62
63
|
var styles = (0, _description_list_description.euiDescriptionListDescriptionStyles)(theme);
|
|
@@ -73,6 +74,7 @@ var EuiDescriptionListDescription = function EuiDescriptionListDescription(_ref)
|
|
|
73
74
|
conditionalStyles.push(styles.left);
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
conditionalStyles.push(styles[gutterSize]);
|
|
76
78
|
break;
|
|
77
79
|
}
|
|
78
80
|
|
|
@@ -24,7 +24,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
24
24
|
|
|
25
25
|
var euiDescriptionListDescriptionStyles = function euiDescriptionListDescriptionStyles(euiThemeContext) {
|
|
26
26
|
var euiTheme = euiThemeContext.euiTheme;
|
|
27
|
-
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "
|
|
27
|
+
var columnDisplay = "\n ".concat((0, _global_styling.logicalCSS)('width', '50%'), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n ");
|
|
28
28
|
return {
|
|
29
29
|
euiDescriptionList__description: /*#__PURE__*/(0, _react.css)(";label:euiDescriptionList__description;"),
|
|
30
30
|
// Types
|
|
@@ -44,7 +44,10 @@ var euiDescriptionListDescriptionStyles = function euiDescriptionListDescription
|
|
|
44
44
|
normal: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiFontSize)(euiThemeContext, 's'), ";;label:normal;")
|
|
45
45
|
},
|
|
46
46
|
// Column types should align description text to the left when EuiDecriptionList is centered
|
|
47
|
-
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;")
|
|
47
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('left'), ";;label:left;"),
|
|
48
|
+
// Gutter
|
|
49
|
+
s: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.s), ";};label:s;"),
|
|
50
|
+
m: /*#__PURE__*/(0, _react.css)("&:not(:first-of-type){", (0, _global_styling.logicalCSS)('margin-top', euiTheme.size.base), ";};label:m;")
|
|
48
51
|
};
|
|
49
52
|
};
|
|
50
53
|
|
|
@@ -56,7 +56,8 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
56
56
|
type = _useContext.type,
|
|
57
57
|
textStyle = _useContext.textStyle,
|
|
58
58
|
compressed = _useContext.compressed,
|
|
59
|
-
align = _useContext.align
|
|
59
|
+
align = _useContext.align,
|
|
60
|
+
gutterSize = _useContext.gutterSize;
|
|
60
61
|
|
|
61
62
|
var theme = (0, _services.useEuiTheme)();
|
|
62
63
|
var styles = (0, _description_list_title.euiDescriptionListTitleStyles)(theme);
|
|
@@ -76,7 +77,7 @@ var EuiDescriptionListTitle = function EuiDescriptionListTitle(_ref) {
|
|
|
76
77
|
break;
|
|
77
78
|
}
|
|
78
79
|
|
|
79
|
-
var cssStyles = [styles.euiDescriptionList__title, styles[type]].concat(_toConsumableArray(conditionalStyles));
|
|
80
|
+
var cssStyles = [styles.euiDescriptionList__title, styles[type], styles[gutterSize]].concat(_toConsumableArray(conditionalStyles));
|
|
80
81
|
var classes = (0, _classnames.default)('euiDescriptionList__title', className);
|
|
81
82
|
return (0, _react2.jsx)("dt", _extends({
|
|
82
83
|
className: classes,
|