@elastic/eui 117.0.0 → 117.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/es/components/flyout/_flyout_resize_button.styles.js +2 -2
- package/es/components/flyout/flyout.styles.js +2 -2
- package/es/components/icon/icon_map.js +1881 -913
- package/es/components/panel/panel.styles.js +3 -3
- package/es/components/panel/split_panel/split_panel.styles.js +4 -4
- package/es/components/search_bar/query/execute_ast.js +4 -6
- package/es/test/rtl/render_hook.js +10 -3
- package/eui.d.ts +483 -457
- package/lib/components/flyout/_flyout_resize_button.styles.js +2 -2
- package/lib/components/flyout/flyout.styles.js +2 -2
- package/lib/components/icon/icon_map.js +1882 -914
- package/lib/components/panel/panel.styles.js +3 -3
- package/lib/components/panel/split_panel/split_panel.styles.js +4 -4
- package/lib/components/search_bar/query/execute_ast.js +4 -6
- package/lib/test/rtl/render_hook.js +10 -3
- package/optimize/es/components/flyout/_flyout_resize_button.styles.js +2 -2
- package/optimize/es/components/flyout/flyout.styles.js +2 -2
- package/optimize/es/components/icon/icon_map.js +1876 -913
- package/optimize/es/components/panel/panel.styles.js +3 -3
- package/optimize/es/components/panel/split_panel/split_panel.styles.js +4 -4
- package/optimize/es/components/search_bar/query/execute_ast.js +4 -6
- package/optimize/es/test/rtl/render_hook.js +10 -3
- package/optimize/lib/components/flyout/_flyout_resize_button.styles.js +2 -2
- package/optimize/lib/components/flyout/flyout.styles.js +2 -2
- package/optimize/lib/components/icon/icon_map.js +1877 -914
- package/optimize/lib/components/panel/panel.styles.js +3 -3
- package/optimize/lib/components/panel/split_panel/split_panel.styles.js +4 -4
- package/optimize/lib/components/search_bar/query/execute_ast.js +4 -6
- package/optimize/lib/test/rtl/render_hook.js +10 -3
- package/package.json +3 -21
- package/test-env/components/flyout/_flyout_resize_button.styles.js +2 -2
- package/test-env/components/flyout/flyout.styles.js +2 -2
- package/test-env/components/icon/icon_map.js +1877 -914
- package/test-env/components/panel/panel.styles.js +3 -3
- package/test-env/components/panel/split_panel/split_panel.styles.js +4 -4
- package/test-env/components/search_bar/query/execute_ast.js +4 -6
- package/test-env/test/rtl/render_hook.js +10 -3
|
@@ -57,10 +57,10 @@ var euiPanelStyles = exports.euiPanelStyles = function euiPanelStyles(euiThemeCo
|
|
|
57
57
|
m: /*#__PURE__*/(0, _react.css)("border-radius:", euiTheme.border.radius.medium, ";;label:m;")
|
|
58
58
|
},
|
|
59
59
|
// Setup interactive behavior
|
|
60
|
-
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, "
|
|
61
|
-
none: (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, '
|
|
60
|
+
isClickable: /*#__PURE__*/(0, _react.css)(_global_styling.euiCanAnimate, "{transition:box-shadow ", euiTheme.animation.fast, " ", euiTheme.animation.resistance, ";}&:enabled{display:block;", (0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalTextAlignCSS)('left'), ";}&:hover,&:focus{", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
|
|
61
|
+
none: (0, _euiThemeCommon.euiShadowHover)(euiThemeContext, 'm'),
|
|
62
62
|
// Windows high contrast themes ignore box-shadows - use a filter workaround instead
|
|
63
63
|
preferred: "\n &:not(.euiPanel--transparent) {\n filter: drop-shadow(0 ".concat(euiTheme.border.width.thick, " 0 ").concat(euiTheme.border.color, ");\n }\n ")
|
|
64
|
-
}), "
|
|
64
|
+
}), " cursor:pointer;};label:isClickable;")
|
|
65
65
|
};
|
|
66
66
|
};
|
|
@@ -34,11 +34,11 @@ var euiSplitPanelOuterStyles = exports.euiSplitPanelOuterStyles = {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
var _ref = process.env.NODE_ENV === "production" ? {
|
|
37
|
-
name: "
|
|
38
|
-
styles: "flex-basis:0%;
|
|
37
|
+
name: "12dwu7m-euiSplitPanelInner",
|
|
38
|
+
styles: "flex-basis:0%;box-shadow:none!important;label:euiSplitPanelInner;"
|
|
39
39
|
} : {
|
|
40
|
-
name: "
|
|
41
|
-
styles: "flex-basis:0%;
|
|
40
|
+
name: "12dwu7m-euiSplitPanelInner",
|
|
41
|
+
styles: "flex-basis:0%;box-shadow:none!important;label:euiSplitPanelInner;",
|
|
42
42
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
43
43
|
};
|
|
44
44
|
var euiSplitPanelInnerStyles = exports.euiSplitPanelInnerStyles = function euiSplitPanelInnerStyles(euiThemeContext) {
|
|
@@ -50,15 +50,13 @@ var fieldClauseMatcher = function fieldClauseMatcher(item, field) {
|
|
|
50
50
|
// unknown matcher
|
|
51
51
|
return true;
|
|
52
52
|
}
|
|
53
|
-
if (!_ast.AST.Match.isMust(match)) {
|
|
54
|
-
operator = function operator(value, token) {
|
|
55
|
-
return !nameToOperatorMap[clause.operator](value, token);
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
53
|
var itemValue = (0, _objects.get)(item, field);
|
|
59
|
-
var
|
|
54
|
+
var positiveHit = (0, _predicate.isArray)(value) ? value.some(function (v) {
|
|
60
55
|
return operator(itemValue, v);
|
|
61
56
|
}) : operator(itemValue, value);
|
|
57
|
+
// For must_not clauses, negate the aggregate result so that
|
|
58
|
+
// `-field:(a or b)` means "not a AND not b", not "not a OR not b".
|
|
59
|
+
var hit = _ast.AST.Match.isMust(match) ? positiveHit : !positiveHit;
|
|
62
60
|
if (explain && hit) {
|
|
63
61
|
explain.push({
|
|
64
62
|
hit: hit,
|
|
@@ -14,11 +14,18 @@ exports.renderHookAct = exports.renderHook = void 0;
|
|
|
14
14
|
|
|
15
15
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* `@testing-library/react` ships `renderHook`/`act` from v13.1+ (React 18+),
|
|
19
|
+
* so consumers on React 18 never need `@testing-library/react-hooks`.
|
|
20
|
+
* React 17 setups resolve an older `@testing-library/react` without
|
|
21
|
+
* `renderHook` and fall back accordingly.
|
|
22
|
+
*/
|
|
23
|
+
var rtl = require('@testing-library/react');
|
|
17
24
|
var renderHook;
|
|
18
25
|
var renderHookAct;
|
|
19
|
-
if (
|
|
20
|
-
exports.renderHook = renderHook =
|
|
21
|
-
exports.renderHookAct = renderHookAct =
|
|
26
|
+
if (typeof rtl.renderHook === 'function') {
|
|
27
|
+
exports.renderHook = renderHook = rtl.renderHook;
|
|
28
|
+
exports.renderHookAct = renderHookAct = rtl.act;
|
|
22
29
|
} else {
|
|
23
30
|
exports.renderHook = renderHook = require('@testing-library/react-hooks/dom').renderHook;
|
|
24
31
|
exports.renderHookAct = renderHookAct = require('@testing-library/react-hooks/dom').act;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "117.
|
|
4
|
+
"version": "117.1.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@elastic/eui-theme-common": "10.0.0",
|
|
58
|
-
"@elastic/prismjs-esql": "^
|
|
58
|
+
"@elastic/prismjs-esql": "^4.13.0",
|
|
59
59
|
"@hello-pangea/dnd": "^16.6.0",
|
|
60
60
|
"@types/lodash": "^4.14.202",
|
|
61
61
|
"@types/numeral": "^2.0.5",
|
|
@@ -107,9 +107,8 @@
|
|
|
107
107
|
"@cypress/react": "^7.0.3",
|
|
108
108
|
"@cypress/react18": "^2.0.0",
|
|
109
109
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
110
|
-
"@elastic/charts": "^64.1.0",
|
|
111
110
|
"@elastic/datemath": "^5.0.3",
|
|
112
|
-
"@elastic/eslint-plugin-eui": "2.14.
|
|
111
|
+
"@elastic/eslint-plugin-eui": "2.14.1",
|
|
113
112
|
"@elastic/eui-illustrations": "1.0.0",
|
|
114
113
|
"@elastic/eui-theme-borealis": "8.0.0",
|
|
115
114
|
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
@@ -140,7 +139,6 @@
|
|
|
140
139
|
"@testing-library/react-17": "npm:@testing-library/react@^12.1.5",
|
|
141
140
|
"@testing-library/react-hooks": "^7.0.2",
|
|
142
141
|
"@testing-library/user-event": "^13.5.0",
|
|
143
|
-
"@types/cheerio": "^0.22.31",
|
|
144
142
|
"@types/chroma-js": "^2.4.0",
|
|
145
143
|
"@types/classnames": "^2.3.1",
|
|
146
144
|
"@types/enzyme": "^3.10.5",
|
|
@@ -150,7 +148,6 @@
|
|
|
150
148
|
"@types/react": "^18.2.14",
|
|
151
149
|
"@types/react-dom": "^18.2.6",
|
|
152
150
|
"@types/react-is": "^17.0.3",
|
|
153
|
-
"@types/react-router-dom": "^5.3.3",
|
|
154
151
|
"@types/stylis": "^4.2.1",
|
|
155
152
|
"@types/testing-library__jest-dom": "^5.14.3",
|
|
156
153
|
"@types/url-parse": "^1.4.8",
|
|
@@ -169,11 +166,8 @@
|
|
|
169
166
|
"babel-plugin-pegjs-inline-precompile": "^0.1.1",
|
|
170
167
|
"buffer": "^6.0.3",
|
|
171
168
|
"buildkite-test-collector": "^1.7.2",
|
|
172
|
-
"cache-loader": "^4.1.0",
|
|
173
|
-
"circular-dependency-plugin": "^5.2.2",
|
|
174
169
|
"core-js": "^3.6.5",
|
|
175
170
|
"cross-env": "^7.0.2",
|
|
176
|
-
"css-loader": "^6.7.1",
|
|
177
171
|
"cssnano": "^4.1.10",
|
|
178
172
|
"cypress": "^13.3.1",
|
|
179
173
|
"cypress-axe": "^1.0.0",
|
|
@@ -197,13 +191,8 @@
|
|
|
197
191
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
198
192
|
"eslint-plugin-storybook": "^0.9.0",
|
|
199
193
|
"expose-gc": "^1.0.0",
|
|
200
|
-
"file-loader": "^6.1.0",
|
|
201
194
|
"findup": "^0.1.5",
|
|
202
|
-
"fork-ts-checker-webpack-plugin": "^5.1.0",
|
|
203
|
-
"get-port": "^5.1.1",
|
|
204
195
|
"glob": "^11.0.3",
|
|
205
|
-
"html-format": "^1.0.1",
|
|
206
|
-
"html-webpack-plugin": "^5.5.0",
|
|
207
196
|
"inquirer": "^9.1.4",
|
|
208
197
|
"jest": "^29.7.0",
|
|
209
198
|
"jest-cli": "^29.7.0",
|
|
@@ -216,31 +205,24 @@
|
|
|
216
205
|
"postcss": "^8.4.19",
|
|
217
206
|
"postcss-cli": "^7.1.2",
|
|
218
207
|
"postcss-inline-svg": "^4.1.0",
|
|
219
|
-
"postcss-loader": "^7.0.1",
|
|
220
208
|
"postcss-styled-syntax": "^0.4.0",
|
|
221
209
|
"prettier": "^2.8.8",
|
|
222
210
|
"process": "^0.11.10",
|
|
223
|
-
"raw-loader": "^4.0.1",
|
|
224
211
|
"react": "^18.2.0",
|
|
225
212
|
"react-17": "npm:react@^17.0.2",
|
|
226
213
|
"react-docgen-typescript": "^2.2.2",
|
|
227
214
|
"react-dom": "^18.2.0",
|
|
228
215
|
"react-dom-17": "npm:react-dom@^17.0.2",
|
|
229
|
-
"react-router-dom": "^5.3.4",
|
|
230
216
|
"resolve": "^1.17.0",
|
|
231
217
|
"rimraf": "^3.0.2",
|
|
232
218
|
"sass": "^1.56.1",
|
|
233
|
-
"sass-loader": "^13.2.0",
|
|
234
219
|
"shelljs": "^0.8.4",
|
|
235
220
|
"storybook": "^8.4.5",
|
|
236
|
-
"style-loader": "^3.3.1",
|
|
237
221
|
"stylelint": "^15.7.0",
|
|
238
222
|
"stylelint-config-prettier-scss": "^1.0.0",
|
|
239
223
|
"stylelint-config-standard": "^33.0.0",
|
|
240
224
|
"stylelint-config-standard-scss": "^9.0.0",
|
|
241
|
-
"terser-webpack-plugin": "^5.3.5",
|
|
242
225
|
"typescript": "^5.8.3",
|
|
243
|
-
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
244
226
|
"webpack": "^5.74.0",
|
|
245
227
|
"webpack-cli": "^4.10.0",
|
|
246
228
|
"webpack-dev-server": "^4.10.0",
|
|
@@ -54,8 +54,8 @@ var euiFlyoutResizeButtonStyles = exports.euiFlyoutResizeButtonStyles = function
|
|
|
54
54
|
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', 0), ";;label:right;")
|
|
55
55
|
},
|
|
56
56
|
push: {
|
|
57
|
-
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('right', "-".concat(euiTheme.border.width.
|
|
58
|
-
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', "-".concat(euiTheme.border.width.
|
|
57
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('right', "-".concat(euiTheme.border.width.thin)), ";;label:left;"),
|
|
58
|
+
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('left', "-".concat(euiTheme.border.width.thin)), ";;label:right;")
|
|
59
59
|
},
|
|
60
60
|
noOverlay: {
|
|
61
61
|
root: _ref3,
|
|
@@ -73,8 +73,8 @@ var euiFlyoutStyles = exports.euiFlyoutStyles = function euiFlyoutStyles(euiThem
|
|
|
73
73
|
},
|
|
74
74
|
push: {
|
|
75
75
|
push: /*#__PURE__*/(0, _react.css)("clip-path:none;z-index:", Number(euiTheme.levels.flyout) - 1, ";;label:push;"),
|
|
76
|
-
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.
|
|
77
|
-
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-right', euiTheme.border.
|
|
76
|
+
right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-left', euiTheme.border.thin), ";;label:right;"),
|
|
77
|
+
left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('border-right', euiTheme.border.thin), ";;label:left;")
|
|
78
78
|
},
|
|
79
79
|
noAnimation: _ref,
|
|
80
80
|
// Padding
|