@elastic/eui 103.0.0 → 103.1.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_amsterdam_dark.json +8 -8
- package/dist/eui_theme_amsterdam_light.json +8 -8
- package/es/components/card/checkable_card/checkable_card.js +4 -2
- package/es/components/combo_box/combo_box.js +4 -2
- package/es/components/combo_box/combo_box_input/combo_box_input.js +4 -1
- package/es/components/datagrid/controls/fullscreen_selector.js +11 -6
- package/es/components/datagrid/data_grid.js +3 -2
- package/es/components/form/checkbox/checkbox.js +1 -1
- package/es/themes/amsterdam/global_styling/variables/_colors.js +200 -216
- package/es/themes/amsterdam/global_styling/variables/_colors_vis.js +1 -1
- package/es/themes/json/eui_theme_amsterdam_dark.json +8 -8
- package/es/themes/json/eui_theme_amsterdam_light.json +8 -8
- package/eui.d.ts +8 -3
- package/lib/components/card/checkable_card/checkable_card.js +4 -2
- package/lib/components/combo_box/combo_box.js +4 -2
- package/lib/components/combo_box/combo_box_input/combo_box_input.js +4 -1
- package/lib/components/datagrid/controls/fullscreen_selector.js +11 -6
- package/lib/components/datagrid/data_grid.js +3 -2
- package/lib/components/form/checkbox/checkbox.js +1 -1
- package/lib/themes/amsterdam/global_styling/variables/_colors.js +200 -216
- package/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +5 -5
- package/lib/themes/json/eui_theme_amsterdam_dark.json +8 -8
- package/lib/themes/json/eui_theme_amsterdam_light.json +8 -8
- package/optimize/es/components/card/checkable_card/checkable_card.js +4 -2
- package/optimize/es/components/combo_box/combo_box.js +4 -2
- package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/es/components/datagrid/controls/fullscreen_selector.js +11 -6
- package/optimize/es/components/datagrid/data_grid.js +3 -2
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +200 -216
- package/optimize/es/themes/amsterdam/global_styling/variables/_colors_vis.js +1 -1
- package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +8 -8
- package/optimize/es/themes/json/eui_theme_amsterdam_light.json +8 -8
- package/optimize/lib/components/card/checkable_card/checkable_card.js +4 -2
- package/optimize/lib/components/combo_box/combo_box.js +4 -2
- package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +3 -1
- package/optimize/lib/components/datagrid/controls/fullscreen_selector.js +11 -6
- package/optimize/lib/components/datagrid/data_grid.js +3 -2
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +200 -216
- package/optimize/lib/themes/amsterdam/global_styling/variables/_colors_vis.js +5 -5
- package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +8 -8
- package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +8 -8
- package/package.json +2 -2
- package/src/themes/amsterdam/_colors_dark.scss +8 -8
- package/src/themes/amsterdam/_colors_light.scss +8 -8
- package/test-env/components/card/checkable_card/checkable_card.js +4 -2
- package/test-env/components/combo_box/combo_box.js +4 -2
- package/test-env/components/combo_box/combo_box_input/combo_box_input.js +4 -1
- package/test-env/components/datagrid/controls/fullscreen_selector.js +11 -6
- package/test-env/components/datagrid/data_grid.js +3 -2
- package/test-env/components/form/checkbox/checkbox.js +1 -1
- package/test-env/themes/amsterdam/global_styling/variables/_colors.js +200 -216
- package/test-env/themes/amsterdam/global_styling/variables/_colors_vis.js +5 -5
- package/test-env/themes/json/eui_theme_amsterdam_dark.json +8 -8
- package/test-env/themes/json/eui_theme_amsterdam_light.json +8 -8
- package/package/eui.d.ts +0 -29802
- package/temp/package/eui.d.ts +0 -29802
|
@@ -27,7 +27,7 @@ var _combo_box_input = require("./combo_box_input/combo_box_input");
|
|
|
27
27
|
var _combo_box_options_list = require("./combo_box_options_list");
|
|
28
28
|
var _combo_box = require("./combo_box.styles");
|
|
29
29
|
var _react2 = require("@emotion/react");
|
|
30
|
-
var _excluded = ["data-test-subj", "async", "className", "compressed", "customOptionText", "fullWidth", "id", "inputRef", "isCaseSensitive", "isClearable", "isDisabled", "isInvalid", "isLoading", "noSuggestions", "onBlur", "onChange", "onCreateOption", "onSearchChange", "options", "placeholder", "renderOption", "rowHeight", "selectedOptions", "singleSelection", "prepend", "sortMatchesBy", "delimiter", "append", "autoFocus", "truncationProps", "inputPopoverProps", "optionMatcher", "aria-label", "aria-labelledby"];
|
|
30
|
+
var _excluded = ["data-test-subj", "async", "className", "compressed", "customOptionText", "fullWidth", "id", "inputRef", "isCaseSensitive", "isClearable", "isDisabled", "isInvalid", "isLoading", "noSuggestions", "onBlur", "onChange", "onCreateOption", "onSearchChange", "options", "placeholder", "renderOption", "rowHeight", "selectedOptions", "singleSelection", "prepend", "sortMatchesBy", "delimiter", "append", "autoFocus", "truncationProps", "inputPopoverProps", "optionMatcher", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
31
31
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
32
32
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
33
33
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -482,6 +482,7 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
482
482
|
optionMatcher = _this$props11.optionMatcher,
|
|
483
483
|
ariaLabel = _this$props11['aria-label'],
|
|
484
484
|
ariaLabelledby = _this$props11['aria-labelledby'],
|
|
485
|
+
ariaDescribedby = _this$props11['aria-describedby'],
|
|
485
486
|
rest = (0, _objectWithoutProperties2.default)(_this$props11, _excluded);
|
|
486
487
|
var _this$state2 = this.state,
|
|
487
488
|
activeOptionIndex = _this$state2.activeOptionIndex,
|
|
@@ -601,7 +602,8 @@ var EuiComboBox = exports.EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
601
602
|
isInvalid: markAsInvalid,
|
|
602
603
|
autoFocus: autoFocus,
|
|
603
604
|
"aria-label": ariaLabel,
|
|
604
|
-
"aria-labelledby": ariaLabelledby
|
|
605
|
+
"aria-labelledby": ariaLabelledby,
|
|
606
|
+
"aria-describedby": ariaDescribedby
|
|
605
607
|
})
|
|
606
608
|
}), optionsList));
|
|
607
609
|
})
|
|
@@ -202,7 +202,8 @@ var EuiComboBoxInput = exports.EuiComboBoxInput = /*#__PURE__*/function (_Compon
|
|
|
202
202
|
isInvalid = _this$props5.isInvalid,
|
|
203
203
|
autoFocus = _this$props5.autoFocus,
|
|
204
204
|
ariaLabel = _this$props5['aria-label'],
|
|
205
|
-
ariaLabelledby = _this$props5['aria-labelledby']
|
|
205
|
+
ariaLabelledby = _this$props5['aria-labelledby'],
|
|
206
|
+
ariaDescribedby = _this$props5['aria-describedby'];
|
|
206
207
|
var removeOptionMessage;
|
|
207
208
|
var removeOptionMessageId;
|
|
208
209
|
if (this.state.hasFocus) {
|
|
@@ -276,6 +277,7 @@ var EuiComboBoxInput = exports.EuiComboBoxInput = /*#__PURE__*/function (_Compon
|
|
|
276
277
|
"aria-expanded": isListOpen,
|
|
277
278
|
"aria-label": ariaLabel,
|
|
278
279
|
"aria-labelledby": ariaLabelledby,
|
|
280
|
+
"aria-describedby": ariaDescribedby,
|
|
279
281
|
"aria-invalid": isInvalid,
|
|
280
282
|
"aria-haspopup": "listbox",
|
|
281
283
|
css: styles.euiComboBoxInput,
|
|
@@ -25,11 +25,17 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var GRID_IS_FULLSCREEN_CLASSNAME = 'euiDataGrid__restrictBody';
|
|
28
|
-
var useDataGridFullScreenSelector = exports.useDataGridFullScreenSelector = function useDataGridFullScreenSelector() {
|
|
28
|
+
var useDataGridFullScreenSelector = exports.useDataGridFullScreenSelector = function useDataGridFullScreenSelector(onFullScreenChange) {
|
|
29
29
|
var _useState = (0, _react.useState)(false),
|
|
30
30
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
31
31
|
isFullScreen = _useState2[0],
|
|
32
32
|
setIsFullScreen = _useState2[1];
|
|
33
|
+
var toggleFullScreen = (0, _react.useCallback)(function () {
|
|
34
|
+
setIsFullScreen(function (prevValue) {
|
|
35
|
+
onFullScreenChange === null || onFullScreenChange === void 0 || onFullScreenChange(!prevValue);
|
|
36
|
+
return !prevValue;
|
|
37
|
+
});
|
|
38
|
+
}, [onFullScreenChange]);
|
|
33
39
|
var _useEuiI18n = (0, _i18n.useEuiI18n)(['euiFullscreenSelector.fullscreenButton', 'euiFullscreenSelector.fullscreenButtonActive'], ['Enter fullscreen', 'Exit fullscreen']),
|
|
34
40
|
_useEuiI18n2 = (0, _slicedToArray2.default)(_useEuiI18n, 2),
|
|
35
41
|
fullScreenButton = _useEuiI18n2[0],
|
|
@@ -44,22 +50,21 @@ var useDataGridFullScreenSelector = exports.useDataGridFullScreenSelector = func
|
|
|
44
50
|
color: "text",
|
|
45
51
|
"aria-pressed": isFullScreen,
|
|
46
52
|
"data-test-subj": "dataGridFullScreenButton",
|
|
47
|
-
onClick:
|
|
48
|
-
return setIsFullScreen(!isFullScreen);
|
|
49
|
-
},
|
|
53
|
+
onClick: toggleFullScreen,
|
|
50
54
|
"aria-label": isFullScreen ? fullScreenButtonActive : fullScreenButton
|
|
51
55
|
}));
|
|
52
|
-
}, [isFullScreen, fullScreenButton,
|
|
56
|
+
}, [isFullScreen, fullScreenButtonActive, fullScreenButton, toggleFullScreen]);
|
|
53
57
|
var handleGridKeyDown = (0, _react.useCallback)(function (event) {
|
|
54
58
|
switch (event.key) {
|
|
55
59
|
case _services.keys.ESCAPE:
|
|
56
60
|
if (isFullScreen) {
|
|
57
61
|
event.preventDefault();
|
|
58
62
|
setIsFullScreen(false);
|
|
63
|
+
onFullScreenChange === null || onFullScreenChange === void 0 || onFullScreenChange(false);
|
|
59
64
|
}
|
|
60
65
|
break;
|
|
61
66
|
}
|
|
62
|
-
}, [isFullScreen]);
|
|
67
|
+
}, [isFullScreen, onFullScreenChange]);
|
|
63
68
|
var styles = (0, _services.useEuiMemoizedStyles)(_fullscreen_selector.euiDataGridFullScreenStyles);
|
|
64
69
|
(0, _react.useEffect)(function () {
|
|
65
70
|
// When the data grid is fullscreen, we add a class to the body to remove the extra scrollbar and stay above any fixed headers
|
|
@@ -32,7 +32,7 @@ var _ref = require("./utils/ref");
|
|
|
32
32
|
var _data_grid_types = require("./data_grid_types");
|
|
33
33
|
var _data_grid = require("./data_grid.styles");
|
|
34
34
|
var _react2 = require("@emotion/react");
|
|
35
|
-
var _excluded = ["leadingControlColumns", "trailingControlColumns", "columns", "columnVisibility", "schemaDetectors", "rowCount", "renderCellValue", "cellContext", "renderCellPopover", "renderFooterCellValue", "className", "gridStyle", "toolbarVisibility", "pagination", "sorting", "inMemory", "onColumnResize", "minSizeForControls", "height", "width", "rowHeightsOptions", "virtualizationOptions", "renderCustomGridBody", "renderCustomToolbar"];
|
|
35
|
+
var _excluded = ["leadingControlColumns", "trailingControlColumns", "columns", "columnVisibility", "schemaDetectors", "rowCount", "renderCellValue", "cellContext", "renderCellPopover", "renderFooterCellValue", "className", "gridStyle", "toolbarVisibility", "pagination", "sorting", "inMemory", "onColumnResize", "minSizeForControls", "height", "width", "rowHeightsOptions", "virtualizationOptions", "renderCustomGridBody", "renderCustomToolbar", "onFullScreenChange"];
|
|
36
36
|
/*
|
|
37
37
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
38
38
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
@@ -102,6 +102,7 @@ var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)( /*#__PURE
|
|
|
102
102
|
virtualizationOptions = props.virtualizationOptions,
|
|
103
103
|
renderCustomGridBody = props.renderCustomGridBody,
|
|
104
104
|
renderCustomToolbar = props.renderCustomToolbar,
|
|
105
|
+
onFullScreenChange = props.onFullScreenChange,
|
|
105
106
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
106
107
|
|
|
107
108
|
/**
|
|
@@ -244,7 +245,7 @@ var EuiDataGrid = exports.EuiDataGrid = /*#__PURE__*/(0, _react.memo)( /*#__PURE
|
|
|
244
245
|
var showToolbar = !!toolbarVisibility;
|
|
245
246
|
var _useDataGridKeyboardS = (0, _controls.useDataGridKeyboardShortcuts)(),
|
|
246
247
|
keyboardShortcuts = _useDataGridKeyboardS.keyboardShortcuts;
|
|
247
|
-
var _useDataGridFullScree = (0, _controls.useDataGridFullScreenSelector)(),
|
|
248
|
+
var _useDataGridFullScree = (0, _controls.useDataGridFullScreenSelector)(onFullScreenChange),
|
|
248
249
|
isFullScreen = _useDataGridFullScree.isFullScreen,
|
|
249
250
|
setIsFullScreen = _useDataGridFullScree.setIsFullScreen,
|
|
250
251
|
fullScreenSelector = _useDataGridFullScree.fullScreenSelector,
|