@elastic/eui 72.0.0 → 72.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_charts_theme.js +13 -1
- package/dist/eui_charts_theme.js.map +1 -1
- package/dist/eui_theme_dark.css +0 -148
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +0 -148
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +2 -2
- package/es/components/basic_table/in_memory_table.js +3 -6
- package/es/components/basic_table/table.a11y.js +128 -0
- package/es/components/color_picker/color_picker.styles.js +16 -0
- package/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/es/components/form/range/range_highlight.styles.js +1 -1
- package/es/components/form/range/range_levels.styles.js +1 -1
- package/es/components/form/range/range_track.js +5 -2
- package/es/components/image/image.a11y.js +55 -0
- package/es/components/key_pad_menu/key_pad_menu.a11y.js +158 -0
- package/es/components/popover/popover.js +2 -2
- package/es/components/table/table_footer_cell.js +1 -1
- package/es/components/table/table_header_cell.js +1 -1
- package/es/components/table/table_row_cell.js +2 -2
- package/es/services/color/manipulation.js +9 -0
- package/es/services/index.js +11 -11
- package/eui.d.ts +154 -106
- package/i18ntokens.json +16 -16
- package/lib/components/basic_table/basic_table.js +2 -2
- package/lib/components/basic_table/in_memory_table.js +3 -6
- package/lib/components/basic_table/table.a11y.js +139 -0
- package/lib/components/color_picker/color_picker.styles.js +26 -0
- package/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/lib/components/form/range/range_highlight.styles.js +1 -1
- package/lib/components/form/range/range_levels.styles.js +1 -1
- package/lib/components/form/range/range_track.js +6 -2
- package/lib/components/image/image.a11y.js +61 -0
- package/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/lib/components/popover/popover.js +2 -2
- package/lib/components/table/table_footer_cell.js +1 -1
- package/lib/components/table/table_header_cell.js +1 -1
- package/lib/components/table/table_row_cell.js +2 -2
- package/lib/services/color/manipulation.js +14 -2
- package/lib/services/index.js +65 -58
- package/optimize/es/components/basic_table/table.a11y.js +128 -0
- package/optimize/es/components/color_picker/color_picker.styles.js +16 -0
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.js +19 -7
- package/optimize/es/components/color_picker/color_stops/color_stop_thumb.styles.js +59 -0
- package/optimize/es/components/color_picker/color_stops/color_stops.js +25 -15
- package/optimize/es/components/color_picker/color_stops/color_stops.styles.js +65 -0
- package/optimize/es/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/es/components/form/range/range_levels.styles.js +1 -1
- package/optimize/es/components/form/range/range_track.js +5 -2
- package/optimize/es/components/image/image.a11y.js +55 -0
- package/optimize/es/components/key_pad_menu/key_pad_menu.a11y.js +148 -0
- package/optimize/es/components/popover/popover.js +2 -2
- package/optimize/es/services/color/manipulation.js +9 -0
- package/optimize/es/services/index.js +11 -11
- package/optimize/lib/components/basic_table/table.a11y.js +139 -0
- package/optimize/lib/components/color_picker/color_picker.styles.js +26 -0
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/optimize/lib/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/optimize/lib/components/color_picker/color_stops/color_stops.js +25 -14
- package/optimize/lib/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/optimize/lib/components/form/range/range_highlight.styles.js +1 -1
- package/optimize/lib/components/form/range/range_levels.styles.js +1 -1
- package/optimize/lib/components/form/range/range_track.js +6 -2
- package/optimize/lib/components/image/image.a11y.js +61 -0
- package/optimize/lib/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/optimize/lib/components/popover/popover.js +2 -2
- package/optimize/lib/services/color/manipulation.js +14 -2
- package/optimize/lib/services/index.js +65 -58
- package/package.json +1 -1
- package/src/components/color_picker/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.js +2 -2
- package/test-env/components/basic_table/in_memory_table.js +3 -6
- package/test-env/components/basic_table/table.a11y.js +139 -0
- package/test-env/components/color_picker/color_picker.styles.js +26 -0
- package/test-env/components/color_picker/color_stops/color_stop_thumb.js +19 -6
- package/test-env/components/color_picker/color_stops/color_stop_thumb.styles.js +69 -0
- package/test-env/components/color_picker/color_stops/color_stops.js +25 -14
- package/test-env/components/color_picker/color_stops/color_stops.styles.js +73 -0
- package/test-env/components/form/range/range_highlight.styles.js +1 -1
- package/test-env/components/form/range/range_levels.styles.js +1 -1
- package/test-env/components/form/range/range_track.js +6 -2
- package/test-env/components/image/image.a11y.js +61 -0
- package/test-env/components/key_pad_menu/key_pad_menu.a11y.js +163 -0
- package/test-env/components/popover/popover.js +2 -2
- package/test-env/components/table/table_footer_cell.js +1 -1
- package/test-env/components/table/table_header_cell.js +1 -1
- package/test-env/components/table/table_row_cell.js +2 -2
- package/test-env/services/color/manipulation.js +14 -2
- package/test-env/services/index.js +65 -58
- package/src/components/color_picker/color_stops/_color_stops.scss +0 -101
- package/src/components/color_picker/color_stops/_index.scss +0 -1
- package/src/themes/amsterdam/overrides/_color_stops.scss +0 -58
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
|
|
5
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
+
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8
|
+
|
|
9
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
15
|
+
* or more contributor license agreements. Licensed under the Elastic License
|
|
16
|
+
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
17
|
+
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
18
|
+
* Side Public License, v 1.
|
|
19
|
+
*/
|
|
20
|
+
/// <reference types="../../../cypress/support"/>
|
|
21
|
+
import React, { useState } from 'react';
|
|
22
|
+
import { EuiKeyPadMenu } from './key_pad_menu';
|
|
23
|
+
import { EuiKeyPadMenuItem } from './key_pad_menu_item';
|
|
24
|
+
import { EuiIcon } from '../icon';
|
|
25
|
+
import { useGeneratedHtmlId } from '../../services';
|
|
26
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
27
|
+
|
|
28
|
+
var KeyPadMenu = function KeyPadMenu() {
|
|
29
|
+
var keypadButtonId__1 = useGeneratedHtmlId({
|
|
30
|
+
prefix: 'keypadButton',
|
|
31
|
+
suffix: 'first'
|
|
32
|
+
});
|
|
33
|
+
var keypadButtonId__2 = useGeneratedHtmlId({
|
|
34
|
+
prefix: 'keypadButton',
|
|
35
|
+
suffix: 'second'
|
|
36
|
+
});
|
|
37
|
+
var keypadButtonId__3 = useGeneratedHtmlId({
|
|
38
|
+
prefix: 'keypadButton',
|
|
39
|
+
suffix: 'third'
|
|
40
|
+
});
|
|
41
|
+
var keypadButtonId__4 = useGeneratedHtmlId({
|
|
42
|
+
prefix: 'keypadButton',
|
|
43
|
+
suffix: 'fourth'
|
|
44
|
+
});
|
|
45
|
+
var keypadButtonId__5 = useGeneratedHtmlId({
|
|
46
|
+
prefix: 'keypadButton',
|
|
47
|
+
suffix: 'fifth'
|
|
48
|
+
});
|
|
49
|
+
var keypadButtonId__6 = useGeneratedHtmlId({
|
|
50
|
+
prefix: 'keypadButton',
|
|
51
|
+
suffix: 'sixth'
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
var _useState = useState(keypadButtonId__6),
|
|
55
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
56
|
+
selectedID = _useState2[0],
|
|
57
|
+
setSelectedID = _useState2[1];
|
|
58
|
+
|
|
59
|
+
return ___EmotionJSX("div", {
|
|
60
|
+
"aria-label": "Menu keypad"
|
|
61
|
+
}, ___EmotionJSX(EuiKeyPadMenu, null, ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
62
|
+
"data-test-subj": "cy-keypad-button-1",
|
|
63
|
+
id: keypadButtonId__1,
|
|
64
|
+
label: "Button 1",
|
|
65
|
+
isSelected: selectedID === keypadButtonId__1,
|
|
66
|
+
onClick: function onClick() {
|
|
67
|
+
return setSelectedID(keypadButtonId__1);
|
|
68
|
+
}
|
|
69
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
70
|
+
type: "grid",
|
|
71
|
+
size: "l"
|
|
72
|
+
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
73
|
+
"data-test-subj": "cy-keypad-button-2",
|
|
74
|
+
id: keypadButtonId__2,
|
|
75
|
+
label: "Button 2",
|
|
76
|
+
isSelected: selectedID === keypadButtonId__2,
|
|
77
|
+
onClick: function onClick() {
|
|
78
|
+
return setSelectedID(keypadButtonId__2);
|
|
79
|
+
}
|
|
80
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
81
|
+
type: "grid",
|
|
82
|
+
size: "l"
|
|
83
|
+
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
84
|
+
"data-test-subj": "cy-keypad-button-3",
|
|
85
|
+
id: keypadButtonId__3,
|
|
86
|
+
label: "Button 3",
|
|
87
|
+
isSelected: selectedID === keypadButtonId__3,
|
|
88
|
+
onClick: function onClick() {
|
|
89
|
+
return setSelectedID(keypadButtonId__3);
|
|
90
|
+
}
|
|
91
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
92
|
+
type: "grid",
|
|
93
|
+
size: "l"
|
|
94
|
+
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
95
|
+
"data-test-subj": "cy-keypad-link-1",
|
|
96
|
+
id: keypadButtonId__4,
|
|
97
|
+
label: "Link 1",
|
|
98
|
+
href: "#/navigation/key-pad-menu",
|
|
99
|
+
isSelected: selectedID === keypadButtonId__4,
|
|
100
|
+
onClick: function onClick() {
|
|
101
|
+
return setSelectedID(keypadButtonId__4);
|
|
102
|
+
}
|
|
103
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
104
|
+
type: "link",
|
|
105
|
+
size: "l"
|
|
106
|
+
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
107
|
+
"data-test-subj": "cy-keypad-link-2",
|
|
108
|
+
id: keypadButtonId__5,
|
|
109
|
+
label: "Link 2",
|
|
110
|
+
href: "#/navigation/key-pad-menu",
|
|
111
|
+
isSelected: selectedID === keypadButtonId__5,
|
|
112
|
+
onClick: function onClick() {
|
|
113
|
+
return setSelectedID(keypadButtonId__5);
|
|
114
|
+
}
|
|
115
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
116
|
+
type: "link",
|
|
117
|
+
size: "l"
|
|
118
|
+
})), ___EmotionJSX(EuiKeyPadMenuItem, {
|
|
119
|
+
"data-test-subj": "cy-keypad-link-3",
|
|
120
|
+
id: keypadButtonId__6,
|
|
121
|
+
label: "Disabled Link 3",
|
|
122
|
+
isDisabled: true,
|
|
123
|
+
isSelected: selectedID === keypadButtonId__6
|
|
124
|
+
}, ___EmotionJSX(EuiIcon, {
|
|
125
|
+
type: "link",
|
|
126
|
+
size: "l"
|
|
127
|
+
}))));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
beforeEach(function () {
|
|
131
|
+
cy.realMount(___EmotionJSX(KeyPadMenu, null));
|
|
132
|
+
cy.get('div[aria-label="Menu keypad"]').should('exist');
|
|
133
|
+
});
|
|
134
|
+
describe('EuiKeyPadMenu', function () {
|
|
135
|
+
describe('Automated accessibility check', function () {
|
|
136
|
+
it('has zero violations on first render', function () {
|
|
137
|
+
cy.checkAxe();
|
|
138
|
+
});
|
|
139
|
+
it('has zero violations on item click', function () {
|
|
140
|
+
cy.get('a[data-test-subj="cy-keypad-link-2"]').realClick();
|
|
141
|
+
cy.get('a[data-test-subj="cy-keypad-link-2"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
142
|
+
cy.checkAxe();
|
|
143
|
+
});
|
|
144
|
+
it('has zero violations on item keypress', function () {
|
|
145
|
+
cy.repeatRealPress('Tab', 3);
|
|
146
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('have.focus');
|
|
147
|
+
cy.realPress('Space');
|
|
148
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
149
|
+
cy.checkAxe();
|
|
150
|
+
cy.realPress(['Shift', 'Tab']);
|
|
151
|
+
cy.get('button[data-test-subj="cy-keypad-button-2"]').should('have.focus');
|
|
152
|
+
cy.realPress('Space');
|
|
153
|
+
cy.get('button[data-test-subj="cy-keypad-button-2"]').should('have.class', 'euiKeyPadMenuItem-isSelected');
|
|
154
|
+
cy.get('button[data-test-subj="cy-keypad-button-3"]').should('not.have.class', 'euiKeyPadMenuItem-isSelected');
|
|
155
|
+
cy.checkAxe();
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
});
|
|
@@ -508,13 +508,13 @@ export var EuiPopover = /*#__PURE__*/function (_Component) {
|
|
|
508
508
|
panel = ___EmotionJSX(EuiPortal, {
|
|
509
509
|
insert: insert
|
|
510
510
|
}, ___EmotionJSX(EuiFocusTrap, _extends({
|
|
511
|
-
clickOutsideDisables: true
|
|
511
|
+
clickOutsideDisables: true,
|
|
512
|
+
onClickOutside: this.onClickOutside
|
|
512
513
|
}, focusTrapProps, {
|
|
513
514
|
returnFocus: returnFocus // Ignore temporary state of indecisive focus
|
|
514
515
|
,
|
|
515
516
|
initialFocus: initialFocus,
|
|
516
517
|
onDeactivation: onTrapDeactivation,
|
|
517
|
-
onClickOutside: this.onClickOutside,
|
|
518
518
|
onEscapeKey: this.onEscapeKey,
|
|
519
519
|
disabled: !ownFocus || !this.state.isOpenStable || this.state.isClosing
|
|
520
520
|
}), ___EmotionJSX(EuiPopoverPanel, _extends({}, panelProps, {
|
|
@@ -48,6 +48,6 @@ EuiTableFooterCell.propTypes = {
|
|
|
48
48
|
"aria-label": PropTypes.string,
|
|
49
49
|
"data-test-subj": PropTypes.string,
|
|
50
50
|
css: PropTypes.any,
|
|
51
|
-
align: PropTypes.
|
|
51
|
+
align: PropTypes.any,
|
|
52
52
|
width: PropTypes.oneOfType([PropTypes.string.isRequired, PropTypes.number.isRequired])
|
|
53
53
|
};
|
|
@@ -139,7 +139,7 @@ EuiTableHeaderCell.propTypes = {
|
|
|
139
139
|
"aria-label": PropTypes.string,
|
|
140
140
|
"data-test-subj": PropTypes.string,
|
|
141
141
|
css: PropTypes.any,
|
|
142
|
-
align: PropTypes.
|
|
142
|
+
align: PropTypes.any,
|
|
143
143
|
isSortAscending: PropTypes.bool,
|
|
144
144
|
isSorted: PropTypes.bool,
|
|
145
145
|
|
|
@@ -195,7 +195,7 @@ EuiTableRowCell.propTypes = {
|
|
|
195
195
|
/**
|
|
196
196
|
* Horizontal alignment of the text in the cell
|
|
197
197
|
*/
|
|
198
|
-
align: PropTypes.
|
|
198
|
+
align: PropTypes.any,
|
|
199
199
|
|
|
200
200
|
/**
|
|
201
201
|
* _Should only be used for action cells_
|
|
@@ -217,7 +217,7 @@ EuiTableRowCell.propTypes = {
|
|
|
217
217
|
/**
|
|
218
218
|
* Horizontal alignment of the text in the cell
|
|
219
219
|
*/
|
|
220
|
-
align: PropTypes.
|
|
220
|
+
align: PropTypes.any,
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* _Should only be used for action cells_
|
|
@@ -97,4 +97,13 @@ export var lightness = function lightness(color) {
|
|
|
97
97
|
|
|
98
98
|
export var darken = function darken(color, amount) {
|
|
99
99
|
return chroma(color).darken(amount).hex();
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Returns the brighten value of a color. 0-100
|
|
103
|
+
* @param color - Color to manipulate
|
|
104
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
export var brighten = function brighten(color, amount) {
|
|
108
|
+
return chroma(color).brighten(amount).hex();
|
|
100
109
|
};
|
package/es/services/index.js
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
*/
|
|
8
8
|
// Export all keys under a `keys` named variable
|
|
9
9
|
import * as keys from './keys';
|
|
10
|
-
export { keys };
|
|
11
10
|
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId } from './accessibility';
|
|
12
|
-
export { LEFT_ALIGNMENT, RIGHT_ALIGNMENT
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
11
|
+
export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from './alignment';
|
|
12
|
+
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint } from './breakpoint';
|
|
13
|
+
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, wcagContrastMin } from './color';
|
|
15
14
|
export { useColorPickerState, useColorStopsState } from './color_picker';
|
|
16
15
|
export * from './console';
|
|
17
16
|
export { copyToClipboard } from './copy_to_clipboard';
|
|
18
17
|
export * from './findElement';
|
|
19
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText
|
|
18
|
+
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText } from './format';
|
|
19
|
+
export * from './hooks';
|
|
20
20
|
export { isEvenlyDivisibleBy, isWithinRange } from './number';
|
|
21
21
|
export { Pager } from './paging';
|
|
22
|
+
export { calculatePopoverPosition, findPopoverPosition } from './popover';
|
|
22
23
|
export { Random } from './random';
|
|
23
24
|
export { getSecureRelForTarget } from './security';
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
25
|
+
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType } from './sort';
|
|
26
|
+
export { slugify, toInitials, toSentenceCase } from './string';
|
|
27
|
+
export * from './theme';
|
|
28
|
+
export { throttle } from './throttle';
|
|
27
29
|
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame } from './transition';
|
|
28
30
|
export { EuiWindowEvent } from './window_event';
|
|
29
|
-
export
|
|
30
|
-
export { throttle } from './throttle';
|
|
31
|
-
export * from './theme';
|
|
31
|
+
export { keys };
|
package/eui.d.ts
CHANGED
|
@@ -4587,7 +4587,7 @@ declare module '@elastic/eui/src/components/popover/popover' {
|
|
|
4587
4587
|
/**
|
|
4588
4588
|
* Object of props passed to EuiFocusTrap
|
|
4589
4589
|
*/
|
|
4590
|
-
focusTrapProps?: Pick<EuiFocusTrapProps, 'clickOutsideDisables' | 'noIsolation' | 'scrollLock' | 'shards'>;
|
|
4590
|
+
focusTrapProps?: Pick<EuiFocusTrapProps, 'clickOutsideDisables' | 'onClickOutside' | 'noIsolation' | 'scrollLock' | 'shards'>;
|
|
4591
4591
|
/**
|
|
4592
4592
|
* Show arrow indicating to originating button
|
|
4593
4593
|
*/
|
|
@@ -6433,6 +6433,29 @@ declare module '@elastic/eui/src/components/color_picker/color_picker' {
|
|
|
6433
6433
|
export const EuiColorPicker: FunctionComponent<EuiColorPickerProps>;
|
|
6434
6434
|
export {};
|
|
6435
6435
|
|
|
6436
|
+
}
|
|
6437
|
+
declare module '@elastic/eui/src/components/color_picker/color_picker.styles' {
|
|
6438
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6439
|
+
export const euiColorPickerVariables: (euiThemeContext: UseEuiTheme) => {
|
|
6440
|
+
width: string;
|
|
6441
|
+
};
|
|
6442
|
+
|
|
6443
|
+
}
|
|
6444
|
+
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb.styles' {
|
|
6445
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6446
|
+
export const euiColorStopThumbStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6447
|
+
euiColorStopThumb: import("@emotion/utils").SerializedStyles;
|
|
6448
|
+
isPopoverOpen: import("@emotion/utils").SerializedStyles;
|
|
6449
|
+
};
|
|
6450
|
+
export const euiColorStopThumbPopoverStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6451
|
+
euiColorStopThumbPopover: import("@emotion/utils").SerializedStyles;
|
|
6452
|
+
isLoadingPanel: import("@emotion/utils").SerializedStyles;
|
|
6453
|
+
hasFocus: import("@emotion/utils").SerializedStyles;
|
|
6454
|
+
};
|
|
6455
|
+
export const euiColorStopStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6456
|
+
euiColorStop: import("@emotion/utils").SerializedStyles;
|
|
6457
|
+
};
|
|
6458
|
+
|
|
6436
6459
|
}
|
|
6437
6460
|
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_thumb' {
|
|
6438
6461
|
import { FunctionComponent, CSSProperties } from 'react';
|
|
@@ -6473,6 +6496,25 @@ declare module '@elastic/eui/src/components/color_picker/color_stops/color_stop_
|
|
|
6473
6496
|
export const EuiColorStopThumb: FunctionComponent<EuiColorStopThumbProps>;
|
|
6474
6497
|
export {};
|
|
6475
6498
|
|
|
6499
|
+
}
|
|
6500
|
+
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stops.styles' {
|
|
6501
|
+
import { UseEuiTheme } from '@elastic/eui/src/services';
|
|
6502
|
+
export const euiColorStopsStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6503
|
+
euiColorStops: import("@emotion/utils").SerializedStyles;
|
|
6504
|
+
isEnabled: import("@emotion/utils").SerializedStyles;
|
|
6505
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
6506
|
+
isHoverDisabled: import("@emotion/utils").SerializedStyles;
|
|
6507
|
+
isReadOnly: import("@emotion/utils").SerializedStyles;
|
|
6508
|
+
isDragging: import("@emotion/utils").SerializedStyles;
|
|
6509
|
+
euiColorStops__track: import("@emotion/utils").SerializedStyles;
|
|
6510
|
+
euiColorStops__addTarget: import("@emotion/utils").SerializedStyles;
|
|
6511
|
+
};
|
|
6512
|
+
export const euiColorStopsAddContainerStyles: (euiThemeContext: UseEuiTheme) => {
|
|
6513
|
+
euiColorStopsAddContainer: import("@emotion/utils").SerializedStyles;
|
|
6514
|
+
isEnabled: import("@emotion/utils").SerializedStyles;
|
|
6515
|
+
isDisabled: import("@emotion/utils").SerializedStyles;
|
|
6516
|
+
};
|
|
6517
|
+
|
|
6476
6518
|
}
|
|
6477
6519
|
declare module '@elastic/eui/src/components/color_picker/color_stops/color_stops' {
|
|
6478
6520
|
import { FunctionComponent } from 'react';
|
|
@@ -6586,6 +6628,12 @@ declare module '@elastic/eui/src/services/color/manipulation' {
|
|
|
6586
6628
|
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6587
6629
|
*/
|
|
6588
6630
|
export const darken: (color: string, amount: number) => string;
|
|
6631
|
+
/**
|
|
6632
|
+
* Returns the brighten value of a color. 0-100
|
|
6633
|
+
* @param color - Color to manipulate
|
|
6634
|
+
* @param amount - Amount to change in absolute terms. 0-1.
|
|
6635
|
+
*/
|
|
6636
|
+
export const brighten: (color: string, amount: number) => string;
|
|
6589
6637
|
|
|
6590
6638
|
}
|
|
6591
6639
|
declare module '@elastic/eui/src/services/color/contrast' {
|
|
@@ -7203,6 +7251,54 @@ declare module '@elastic/eui/src/services/format' {
|
|
|
7203
7251
|
export { formatNumber } from '@elastic/eui/src/services/format/format_number';
|
|
7204
7252
|
export { formatText } from '@elastic/eui/src/services/format/format_text';
|
|
7205
7253
|
|
|
7254
|
+
}
|
|
7255
|
+
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7256
|
+
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7257
|
+
|
|
7258
|
+
}
|
|
7259
|
+
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7260
|
+
|
|
7261
|
+
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7262
|
+
|
|
7263
|
+
}
|
|
7264
|
+
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7265
|
+
import { MutableRefObject, Ref } from 'react';
|
|
7266
|
+
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7267
|
+
|
|
7268
|
+
}
|
|
7269
|
+
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7270
|
+
export const useForceRender: () => () => void;
|
|
7271
|
+
|
|
7272
|
+
}
|
|
7273
|
+
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7274
|
+
import { MutableRefObject } from 'react';
|
|
7275
|
+
/**
|
|
7276
|
+
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7277
|
+
* value up-to-date on every render cycle.
|
|
7278
|
+
*/
|
|
7279
|
+
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7280
|
+
|
|
7281
|
+
}
|
|
7282
|
+
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7283
|
+
import { MouseEvent, TouchEvent } from 'react';
|
|
7284
|
+
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7285
|
+
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7286
|
+
x: number;
|
|
7287
|
+
y: number;
|
|
7288
|
+
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7289
|
+
(e: MouseEvent<T>) => void,
|
|
7290
|
+
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7291
|
+
];
|
|
7292
|
+
|
|
7293
|
+
}
|
|
7294
|
+
declare module '@elastic/eui/src/services/hooks' {
|
|
7295
|
+
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7296
|
+
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7297
|
+
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7298
|
+
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7299
|
+
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7300
|
+
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7301
|
+
|
|
7206
7302
|
}
|
|
7207
7303
|
declare module '@elastic/eui/src/services/paging/pager' {
|
|
7208
7304
|
export class Pager {
|
|
@@ -7286,50 +7382,6 @@ declare module '@elastic/eui/src/services/security/get_secure_rel_for_target' {
|
|
|
7286
7382
|
declare module '@elastic/eui/src/services/security' {
|
|
7287
7383
|
export { getSecureRelForTarget } from '@elastic/eui/src/services/security/get_secure_rel_for_target';
|
|
7288
7384
|
|
|
7289
|
-
}
|
|
7290
|
-
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7291
|
-
/**
|
|
7292
|
-
* This function calculates the initials/acronym for a given name.
|
|
7293
|
-
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7294
|
-
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7295
|
-
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7296
|
-
* It will pass back the characters with the same casing as the original string
|
|
7297
|
-
* unless otherwise specified.
|
|
7298
|
-
*
|
|
7299
|
-
* @param {string} name The full name of the item to turn into initials
|
|
7300
|
-
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7301
|
-
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7302
|
-
* @returns {string} True if the color is dark, false otherwise.
|
|
7303
|
-
*/
|
|
7304
|
-
export const MAX_INITIALS = 2;
|
|
7305
|
-
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7306
|
-
|
|
7307
|
-
}
|
|
7308
|
-
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7309
|
-
/**
|
|
7310
|
-
* This function returns the same string with the first letter of the first word capitalized.
|
|
7311
|
-
*
|
|
7312
|
-
* @param {string} string The input string
|
|
7313
|
-
*/
|
|
7314
|
-
export function toSentenceCase(string: string): string;
|
|
7315
|
-
|
|
7316
|
-
}
|
|
7317
|
-
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7318
|
-
/**
|
|
7319
|
-
* Lowercases input and replaces spaces with hyphens:
|
|
7320
|
-
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7321
|
-
*
|
|
7322
|
-
* @param {string} string The starting string
|
|
7323
|
-
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7324
|
-
*/
|
|
7325
|
-
export function slugify(str: string): string;
|
|
7326
|
-
|
|
7327
|
-
}
|
|
7328
|
-
declare module '@elastic/eui/src/services/string' {
|
|
7329
|
-
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7330
|
-
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7331
|
-
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7332
|
-
|
|
7333
7385
|
}
|
|
7334
7386
|
declare module '@elastic/eui/src/services/sort/sort_direction' {
|
|
7335
7387
|
import PropTypes from 'prop-types'; const ASC: "asc"; const DESC: "desc";
|
|
@@ -7441,6 +7493,50 @@ declare module '@elastic/eui/src/services/sort' {
|
|
|
7441
7493
|
export { PropertySortType } from '@elastic/eui/src/services/sort/property_sort';
|
|
7442
7494
|
export { Comparators } from '@elastic/eui/src/services/sort/comparators';
|
|
7443
7495
|
|
|
7496
|
+
}
|
|
7497
|
+
declare module '@elastic/eui/src/services/string/to_initials' {
|
|
7498
|
+
/**
|
|
7499
|
+
* This function calculates the initials/acronym for a given name.
|
|
7500
|
+
* It defaults to only 2 characters and will take the first character (of each word).
|
|
7501
|
+
* If only one word is supplied for the name, it will only pass back the first letter of the word,
|
|
7502
|
+
* unless forced to 2 letters by setting `initialsLength` to `2`.
|
|
7503
|
+
* It will pass back the characters with the same casing as the original string
|
|
7504
|
+
* unless otherwise specified.
|
|
7505
|
+
*
|
|
7506
|
+
* @param {string} name The full name of the item to turn into initials
|
|
7507
|
+
* @param {number} initialsLength (Optional) How many characters to show (max 2 allowed)
|
|
7508
|
+
* @param {string} initials (Optional) Custom initials (max 2 characters)
|
|
7509
|
+
* @returns {string} True if the color is dark, false otherwise.
|
|
7510
|
+
*/
|
|
7511
|
+
export const MAX_INITIALS = 2;
|
|
7512
|
+
export function toInitials(name: string, initialsLength?: 1 | 2, initials?: string): string | null;
|
|
7513
|
+
|
|
7514
|
+
}
|
|
7515
|
+
declare module '@elastic/eui/src/services/string/to_case' {
|
|
7516
|
+
/**
|
|
7517
|
+
* This function returns the same string with the first letter of the first word capitalized.
|
|
7518
|
+
*
|
|
7519
|
+
* @param {string} string The input string
|
|
7520
|
+
*/
|
|
7521
|
+
export function toSentenceCase(string: string): string;
|
|
7522
|
+
|
|
7523
|
+
}
|
|
7524
|
+
declare module '@elastic/eui/src/services/string/slugify' {
|
|
7525
|
+
/**
|
|
7526
|
+
* Lowercases input and replaces spaces with hyphens:
|
|
7527
|
+
* e.g. 'GridView Example' -> 'gridview-example'
|
|
7528
|
+
*
|
|
7529
|
+
* @param {string} string The starting string
|
|
7530
|
+
* @returns {string} Lowercase, dashed version of the starting staring
|
|
7531
|
+
*/
|
|
7532
|
+
export function slugify(str: string): string;
|
|
7533
|
+
|
|
7534
|
+
}
|
|
7535
|
+
declare module '@elastic/eui/src/services/string' {
|
|
7536
|
+
export { toInitials } from '@elastic/eui/src/services/string/to_initials';
|
|
7537
|
+
export { toSentenceCase } from '@elastic/eui/src/services/string/to_case';
|
|
7538
|
+
export { slugify } from '@elastic/eui/src/services/string/slugify';
|
|
7539
|
+
|
|
7444
7540
|
}
|
|
7445
7541
|
declare module '@elastic/eui/src/services/transition/transition' {
|
|
7446
7542
|
export const getTransitionTimings: (element: Element) => {
|
|
@@ -7476,84 +7572,36 @@ declare module '@elastic/eui/src/services/window_event/window_event' {
|
|
|
7476
7572
|
declare module '@elastic/eui/src/services/window_event' {
|
|
7477
7573
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event/window_event';
|
|
7478
7574
|
|
|
7479
|
-
}
|
|
7480
|
-
declare module '@elastic/eui/src/services/hooks/useUpdateEffect' {
|
|
7481
|
-
export const useUpdateEffect: (effect: Function, deps: unknown[]) => void;
|
|
7482
|
-
|
|
7483
|
-
}
|
|
7484
|
-
declare module '@elastic/eui/src/services/hooks/useDependentState' {
|
|
7485
|
-
|
|
7486
|
-
export function useDependentState<T>(valueFn: (previousState: undefined | T) => T, deps: unknown[]): readonly [T, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
7487
|
-
|
|
7488
|
-
}
|
|
7489
|
-
declare module '@elastic/eui/src/services/hooks/useCombinedRefs' {
|
|
7490
|
-
import { MutableRefObject, Ref } from 'react';
|
|
7491
|
-
export const useCombinedRefs: <T>(refs: (Ref<T> | MutableRefObject<T | undefined> | undefined)[]) => (node: T) => void;
|
|
7492
|
-
|
|
7493
|
-
}
|
|
7494
|
-
declare module '@elastic/eui/src/services/hooks/useForceRender' {
|
|
7495
|
-
export const useForceRender: () => () => void;
|
|
7496
|
-
|
|
7497
|
-
}
|
|
7498
|
-
declare module '@elastic/eui/src/services/hooks/useLatest' {
|
|
7499
|
-
import { MutableRefObject } from 'react';
|
|
7500
|
-
/**
|
|
7501
|
-
* Wraps the given `value` into a `MutableRefObject` and keeps the `current`
|
|
7502
|
-
* value up-to-date on every render cycle.
|
|
7503
|
-
*/
|
|
7504
|
-
export function useLatest<Value>(value: Value): MutableRefObject<Value | null>;
|
|
7505
|
-
|
|
7506
|
-
}
|
|
7507
|
-
declare module '@elastic/eui/src/services/hooks/useMouseMove' {
|
|
7508
|
-
import { MouseEvent, TouchEvent } from 'react';
|
|
7509
|
-
export function isMouseEvent<T = HTMLDivElement>(event: MouseEvent<T> | TouchEvent<T>): event is MouseEvent<T>;
|
|
7510
|
-
export function useMouseMove<T = HTMLDivElement>(handleChange: (location: {
|
|
7511
|
-
x: number;
|
|
7512
|
-
y: number;
|
|
7513
|
-
}, isFirstInteraction?: boolean) => void, interactionConditional?: any): [
|
|
7514
|
-
(e: MouseEvent<T>) => void,
|
|
7515
|
-
(e: MouseEvent<T> | TouchEvent<T>, isFirstInteraction?: boolean) => void
|
|
7516
|
-
];
|
|
7517
|
-
|
|
7518
|
-
}
|
|
7519
|
-
declare module '@elastic/eui/src/services/hooks' {
|
|
7520
|
-
export * from '@elastic/eui/src/services/hooks/useDependentState';
|
|
7521
|
-
export * from '@elastic/eui/src/services/hooks/useCombinedRefs';
|
|
7522
|
-
export * from '@elastic/eui/src/services/hooks/useForceRender';
|
|
7523
|
-
export * from '@elastic/eui/src/services/hooks/useLatest';
|
|
7524
|
-
export * from '@elastic/eui/src/services/hooks/useMouseMove';
|
|
7525
|
-
export * from '@elastic/eui/src/services/hooks/useUpdateEffect';
|
|
7526
|
-
|
|
7527
7575
|
}
|
|
7528
7576
|
declare module '@elastic/eui/src/services' {
|
|
7529
7577
|
import * as keys from '@elastic/eui/src/services/keys';
|
|
7530
|
-
export { keys };
|
|
7531
7578
|
export { accessibleClickKeys, cascadingMenuKeys, comboBoxKeys, htmlIdGenerator, useGeneratedHtmlId, } from '@elastic/eui/src/services/accessibility';
|
|
7579
|
+
export { CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT } from '@elastic/eui/src/services/alignment';
|
|
7532
7580
|
export type { HorizontalAlignment } from '@elastic/eui/src/services/alignment';
|
|
7533
|
-
export {
|
|
7581
|
+
export { CurrentEuiBreakpointContext, CurrentEuiBreakpointProvider, useCurrentEuiBreakpoint, useIsWithinBreakpoints, useIsWithinMaxBreakpoint, useIsWithinMinBreakpoint, } from '@elastic/eui/src/services/breakpoint';
|
|
7534
7582
|
export type { EuiBreakpointSize } from '@elastic/eui/src/services/breakpoint';
|
|
7535
|
-
export {
|
|
7583
|
+
export { brighten, calculateContrast, calculateLuminance, colorPalette, darken, DEFAULT_VISUALIZATION_COLOR, desaturate, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteComplimentary, euiPaletteCool, euiPaletteForDarkBackground, euiPaletteForLightBackground, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteGray, euiPaletteNegative, euiPalettePositive, euiPaletteWarm, getSteppedGradient, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, isColorDark, isValidHex, lightness, makeDisabledContrastColor, makeHighContrastColor, rgbToHex, rgbToHsv, saturate, shade, shadeOrTint, tint, tintOrShade, transparentize, VISUALIZATION_COLORS, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7536
7584
|
export type { HSV } from '@elastic/eui/src/services/color';
|
|
7537
|
-
export { isColorDark, isValidHex, calculateContrast, calculateLuminance, hexToHsv, hexToRgb, hsvToHex, hsvToRgb, rgbToHex, rgbToHsv, VISUALIZATION_COLORS, DEFAULT_VISUALIZATION_COLOR, colorPalette, euiPaletteForLightBackground, euiPaletteForDarkBackground, euiPaletteColorBlind, euiPaletteColorBlindBehindText, euiPaletteForStatus, euiPaletteForTemperature, euiPaletteComplimentary, euiPaletteNegative, euiPalettePositive, euiPaletteCool, euiPaletteWarm, euiPaletteGray, getSteppedGradient, transparentize, tint, shade, tintOrShade, shadeOrTint, saturate, desaturate, lightness, darken, makeHighContrastColor, makeDisabledContrastColor, wcagContrastMin, } from '@elastic/eui/src/services/color';
|
|
7538
|
-
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7539
7585
|
export { useColorPickerState, useColorStopsState } from '@elastic/eui/src/services/color_picker';
|
|
7586
|
+
export type { EuiSetColorMethod } from '@elastic/eui/src/services/color_picker';
|
|
7540
7587
|
export * from '@elastic/eui/src/services/console';
|
|
7541
7588
|
export { copyToClipboard } from '@elastic/eui/src/services/copy_to_clipboard';
|
|
7542
7589
|
export * from '@elastic/eui/src/services/findElement';
|
|
7543
|
-
export { formatAuto, formatBoolean, formatDate, formatNumber, formatText,
|
|
7590
|
+
export { dateFormatAliases, formatAuto, formatBoolean, formatDate, formatNumber, formatText, } from '@elastic/eui/src/services/format';
|
|
7591
|
+
export * from '@elastic/eui/src/services/hooks';
|
|
7544
7592
|
export { isEvenlyDivisibleBy, isWithinRange } from '@elastic/eui/src/services/number';
|
|
7545
7593
|
export { Pager } from '@elastic/eui/src/services/paging';
|
|
7594
|
+
export { calculatePopoverPosition, findPopoverPosition } from '@elastic/eui/src/services/popover';
|
|
7546
7595
|
export { Random } from '@elastic/eui/src/services/random';
|
|
7547
7596
|
export { getSecureRelForTarget } from '@elastic/eui/src/services/security';
|
|
7548
|
-
export {
|
|
7549
|
-
export type {
|
|
7550
|
-
export {
|
|
7551
|
-
export
|
|
7597
|
+
export { Comparators, PropertySortType, SortableProperties, SortDirection, SortDirectionType, } from '@elastic/eui/src/services/sort';
|
|
7598
|
+
export type { Direction, PropertySort } from '@elastic/eui/src/services/sort';
|
|
7599
|
+
export { slugify, toInitials, toSentenceCase } from '@elastic/eui/src/services/string';
|
|
7600
|
+
export * from '@elastic/eui/src/services/theme';
|
|
7601
|
+
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7552
7602
|
export { getDurationAndPerformOnFrame, getTransitionTimings, getWaitDuration, performOnFrame, } from '@elastic/eui/src/services/transition';
|
|
7553
7603
|
export { EuiWindowEvent } from '@elastic/eui/src/services/window_event';
|
|
7554
|
-
export
|
|
7555
|
-
export { throttle } from '@elastic/eui/src/services/throttle';
|
|
7556
|
-
export * from '@elastic/eui/src/services/theme';
|
|
7604
|
+
export { keys };
|
|
7557
7605
|
|
|
7558
7606
|
}
|
|
7559
7607
|
declare module '@elastic/eui/src/global_styling/mixins/_color' {
|