@elastic/eui 71.0.0 → 71.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/README.md +0 -7
- package/dist/eui_theme_dark.css +7694 -5793
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +7736 -5835
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/datagrid/data_grid.a11y.js +251 -0
- package/es/components/date_picker/date_picker.a11y.js +83 -0
- package/es/components/delay_hide/delay_hide.a11y.js +106 -0
- package/es/components/delay_render/delay_render.a11y.js +106 -0
- package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/es/components/error_boundary/error_boundary.js +45 -27
- package/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/es/components/page/page_template.js +1 -15
- package/eui.d.ts +19 -11
- package/i18ntokens.json +4 -4
- package/lib/components/datagrid/data_grid.a11y.js +255 -0
- package/lib/components/date_picker/date_picker.a11y.js +89 -0
- package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/lib/components/error_boundary/error_boundary.js +49 -29
- package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/lib/components/page/page_template.js +1 -15
- package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
- package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
- package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
- package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
- package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
- package/optimize/es/components/error_boundary/error_boundary.js +37 -26
- package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
- package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
- package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
- package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
- package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
- package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
- package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
- package/package.json +11 -14
- package/src/components/basic_table/_basic_table.scss +1 -4
- package/src/components/button/button_empty/_button_empty.scss +2 -4
- package/src/components/button/button_group/_button_group.scss +1 -1
- package/src/components/button/button_group/_button_group_button.scss +3 -4
- package/src/components/button/button_icon/_button_icon.scss +0 -3
- package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
- package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
- package/src/components/color_picker/_color_picker.scss +3 -2
- package/src/components/color_picker/_hue.scss +7 -7
- package/src/components/color_picker/_saturation.scss +1 -1
- package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
- package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
- package/src/components/combo_box/_combo_box.scss +7 -6
- package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
- package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
- package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
- package/src/components/control_bar/_variables.scss +0 -1
- package/src/components/datagrid/_data_grid_data_row.scss +4 -5
- package/src/components/datagrid/_mixins.scss +1 -1
- package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
- package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
- package/src/components/date_picker/_date_picker_range.scss +1 -1
- package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
- package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
- package/src/components/drag_and_drop/_draggable.scss +3 -5
- package/src/components/drag_and_drop/_droppable.scss +1 -1
- package/src/components/empty_prompt/_empty_prompt.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +2 -2
- package/src/components/filter_group/_filter_select_item.scss +0 -1
- package/src/components/form/checkbox/_checkbox.scss +5 -3
- package/src/components/form/described_form_group/_described_form_group.scss +0 -1
- package/src/components/form/field_password/_field_password.scss +1 -1
- package/src/components/form/field_search/_field_search.scss +1 -1
- package/src/components/form/file_picker/_file_picker.scss +1 -2
- package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
- package/src/components/form/form_row/_form_row.scss +3 -0
- package/src/components/form/radio/_radio.scss +5 -3
- package/src/components/form/select/_select.scss +1 -1
- package/src/components/form/switch/_switch.scss +3 -1
- package/src/components/header/_mixins.scss +1 -1
- package/src/components/header/header_section/_header_section_item.scss +4 -4
- package/src/components/header/header_section/_header_section_item_button.scss +0 -1
- package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
- package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
- package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
- package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
- package/src/components/markdown_editor/_markdown_format.scss +4 -2
- package/src/components/notification/_notification_event.scss +2 -2
- package/src/components/page/page_content/_page_content_body.scss +0 -1
- package/src/components/page/page_content/_page_content_header_section.scss +0 -1
- package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
- package/src/components/panel/split_panel/_split_panel.scss +2 -2
- package/src/components/resizable_container/_resizable_button.scss +31 -31
- package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
- package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
- package/src/components/side_nav/_mixins.scss +1 -1
- package/src/components/side_nav/_side_nav.scss +2 -1
- package/src/components/side_nav/_side_nav_item.scss +2 -3
- package/src/components/steps/_steps.scss +2 -1
- package/src/components/suggest/_suggest_input.scss +1 -1
- package/src/components/suggest/_suggest_item.scss +4 -3
- package/src/components/table/_responsive.scss +5 -3
- package/src/components/table/_table.scss +2 -4
- package/src/components/table/mobile/_mobile.scss +0 -2
- package/src/components/tree_view/tree_view.scss +2 -2
- package/src/global_styling/mixins/_form.scss +7 -18
- package/src/global_styling/mixins/_header.scss +2 -2
- package/src/global_styling/mixins/_helpers.scss +1 -2
- package/src/global_styling/mixins/_icons.scss +1 -1
- package/src/global_styling/mixins/_range.scss +4 -8
- package/src/global_styling/mixins/_responsive.scss +3 -8
- package/src/global_styling/mixins/_shadow.scss +5 -9
- package/src/global_styling/mixins/_states.scss +2 -2
- package/src/global_styling/mixins/_typography.scss +16 -19
- package/src/global_styling/variables/_colors_vis.scss +1 -1
- package/src/global_styling/variables/_typography.scss +1 -3
- package/src/themes/amsterdam/_colors_dark.scss +2 -1
- package/src/themes/amsterdam/_colors_light.scss +2 -0
- package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
- package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
- package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
- package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
- package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
- package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
- package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
- package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
- package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
- package/src/themes/amsterdam/overrides/_header.scss +2 -2
- package/src/themes/amsterdam/overrides/_hue.scss +6 -6
- package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
- package/src/themes/amsterdam/overrides/_steps.scss +1 -2
- package/src/themes/legacy/_colors_dark.scss +2 -1
- package/src/themes/legacy/_colors_light.scss +2 -0
- package/src/themes/legacy/reset/_reset.scss +8 -7
- package/test-env/components/datagrid/data_grid.a11y.js +248 -0
- package/test-env/components/date_picker/date_picker.a11y.js +87 -0
- package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
- package/test-env/components/delay_render/delay_render.a11y.js +111 -0
- package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
- package/test-env/components/error_boundary/error_boundary.js +48 -28
- package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
- package/test-env/components/page/page_template.js +1 -15
- package/scripts/postinstall.js +0 -9
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.EuiErrorMessage = exports.EuiErrorBoundary = void 0;
|
|
11
11
|
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
|
|
@@ -39,7 +39,8 @@ var _error_boundary = require("./error_boundary.styles");
|
|
|
39
39
|
|
|
40
40
|
var _react2 = require("@emotion/react");
|
|
41
41
|
|
|
42
|
-
var _excluded = ["
|
|
42
|
+
var _excluded = ["children"],
|
|
43
|
+
_excluded2 = ["errorMessage", "className", "data-test-subj"];
|
|
43
44
|
|
|
44
45
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
45
46
|
|
|
@@ -49,15 +50,15 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
49
50
|
|
|
50
51
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
51
52
|
|
|
52
|
-
var
|
|
53
|
-
(0, _inherits2.default)(
|
|
53
|
+
var EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
54
|
+
(0, _inherits2.default)(EuiErrorBoundary, _Component);
|
|
54
55
|
|
|
55
|
-
var _super = _createSuper(
|
|
56
|
+
var _super = _createSuper(EuiErrorBoundary);
|
|
56
57
|
|
|
57
|
-
function
|
|
58
|
+
function EuiErrorBoundary(props) {
|
|
58
59
|
var _this;
|
|
59
60
|
|
|
60
|
-
(0, _classCallCheck2.default)(this,
|
|
61
|
+
(0, _classCallCheck2.default)(this, EuiErrorBoundary);
|
|
61
62
|
_this = _super.call(this, props);
|
|
62
63
|
var errorState = {
|
|
63
64
|
hasError: false,
|
|
@@ -67,7 +68,7 @@ var _EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
67
68
|
return _this;
|
|
68
69
|
}
|
|
69
70
|
|
|
70
|
-
(0, _createClass2.default)(
|
|
71
|
+
(0, _createClass2.default)(EuiErrorBoundary, [{
|
|
71
72
|
key: "componentDidCatch",
|
|
72
73
|
value: function componentDidCatch(_ref) {
|
|
73
74
|
var message = _ref.message,
|
|
@@ -87,34 +88,46 @@ var _EuiErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
|
87
88
|
key: "render",
|
|
88
89
|
value: function render() {
|
|
89
90
|
var _this$props = this.props,
|
|
90
|
-
className = _this$props.className,
|
|
91
91
|
children = _this$props.children,
|
|
92
|
-
_dataTestSubj = _this$props['data-test-subj'],
|
|
93
|
-
theme = _this$props.theme,
|
|
94
92
|
rest = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
|
|
95
|
-
var dataTestSubj = (0, _classnames.default)('euiErrorBoundary', _dataTestSubj);
|
|
96
|
-
var styles = (0, _error_boundary.euiErrorBoundaryStyles)(theme);
|
|
97
93
|
|
|
98
94
|
if (this.state.hasError) {
|
|
99
95
|
// You can render any custom fallback UI
|
|
100
|
-
return (0, _react2.jsx)(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
"data-test-subj": dataTestSubj
|
|
104
|
-
}, rest), (0, _react2.jsx)(_code.EuiCodeBlock, null, (0, _react2.jsx)(_title.EuiTitle, {
|
|
105
|
-
size: "xs"
|
|
106
|
-
}, (0, _react2.jsx)("p", null, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
107
|
-
token: "euiErrorBoundary.error",
|
|
108
|
-
default: "Error"
|
|
109
|
-
}))), this.state.error));
|
|
96
|
+
return (0, _react2.jsx)(EuiErrorMessage, (0, _extends2.default)({}, rest, {
|
|
97
|
+
errorMessage: this.state.error
|
|
98
|
+
}));
|
|
110
99
|
}
|
|
111
100
|
|
|
112
101
|
return children;
|
|
113
102
|
}
|
|
114
103
|
}]);
|
|
115
|
-
return
|
|
104
|
+
return EuiErrorBoundary;
|
|
116
105
|
}(_react.Component);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Split out into a separate styling-only component for easier use of hooks,
|
|
108
|
+
* and also for internal re-use by EUI's docs/playgrounds
|
|
109
|
+
*/
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
exports.EuiErrorBoundary = EuiErrorBoundary;
|
|
113
|
+
|
|
114
|
+
var EuiErrorMessage = function EuiErrorMessage(_ref2) {
|
|
115
|
+
var errorMessage = _ref2.errorMessage,
|
|
116
|
+
className = _ref2.className,
|
|
117
|
+
dataTestSubj = _ref2['data-test-subj'],
|
|
118
|
+
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded2);
|
|
119
|
+
var euiTheme = (0, _services.useEuiTheme)();
|
|
120
|
+
var styles = (0, _error_boundary.euiErrorBoundaryStyles)(euiTheme);
|
|
121
|
+
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
122
|
+
css: styles.euiErrorBoundary,
|
|
123
|
+
className: (0, _classnames.default)('euiErrorBoundary', className),
|
|
124
|
+
"data-test-subj": (0, _classnames.default)('euiErrorBoundary', dataTestSubj)
|
|
125
|
+
}, rest), (0, _react2.jsx)(_code.EuiCodeBlock, null, (0, _react2.jsx)(_title.EuiTitle, {
|
|
126
|
+
size: "xs"
|
|
127
|
+
}, (0, _react2.jsx)("p", null, (0, _react2.jsx)(_i18n.EuiI18n, {
|
|
128
|
+
token: "euiErrorBoundary.error",
|
|
129
|
+
default: "Error"
|
|
130
|
+
}))), errorMessage));
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
exports.EuiErrorMessage = EuiErrorMessage;
|
|
@@ -27,6 +27,10 @@ var paddingSizeToClassNameMap = {
|
|
|
27
27
|
l: 'euiPageSideBar--paddingLarge'
|
|
28
28
|
};
|
|
29
29
|
var PADDING_SIZES = (0, _common.keysOf)(paddingSizeToClassNameMap);
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use the new EuiPageSidebarProps in page/page_sidebar instead
|
|
32
|
+
*/
|
|
33
|
+
|
|
30
34
|
exports.PADDING_SIZES = PADDING_SIZES;
|
|
31
35
|
|
|
32
36
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/eui",
|
|
3
3
|
"description": "Elastic UI Component Library",
|
|
4
|
-
"version": "71.
|
|
4
|
+
"version": "71.1.0",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "lib",
|
|
7
7
|
"module": "es",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"lint-fix": "yarn lint-es-fix",
|
|
27
27
|
"lint-es": "eslint --cache \"{src,src-docs}/**/*.{ts,tsx,js}\" --max-warnings 0",
|
|
28
28
|
"lint-es-fix": "yarn lint-es --fix",
|
|
29
|
-
"lint-sass": "
|
|
30
|
-
"lint-sass-fix": "
|
|
29
|
+
"lint-sass": "yarn stylelint \"**/*.scss\"",
|
|
30
|
+
"lint-sass-fix": "yarn stylelint \"**/*.scss\" --fix",
|
|
31
31
|
"test": "yarn lint && yarn test-unit",
|
|
32
32
|
"test-ci": "yarn test && yarn test-cypress",
|
|
33
33
|
"test-unit": "cross-env NODE_ENV=test jest --config ./scripts/jest/config.json",
|
|
@@ -44,8 +44,7 @@
|
|
|
44
44
|
"start-test-server-and-a11y-test": "cross-env WAIT_ON_TIMEOUT=600000 start-server-and-test start-test-server http-get://localhost:9999 test-a11y",
|
|
45
45
|
"yo-doc": "yo ./generator-eui/app/documentation.js",
|
|
46
46
|
"yo-changelog": "yo ./generator-eui/changelog/index.js",
|
|
47
|
-
"release": "node ./scripts/release.js"
|
|
48
|
-
"postinstall": "node ./scripts/postinstall.js"
|
|
47
|
+
"release": "node ./scripts/release.js"
|
|
49
48
|
},
|
|
50
49
|
"repository": {
|
|
51
50
|
"type": "git",
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
"resolutions": {
|
|
55
54
|
"**/prismjs": "1.27.0",
|
|
56
55
|
"**/trim": "0.0.3",
|
|
57
|
-
"**/node-sass": "^6.0.1",
|
|
58
56
|
"**/react": "^17.0.0",
|
|
59
57
|
"**/known-css-properties": "0.24.0"
|
|
60
58
|
},
|
|
@@ -202,22 +200,20 @@
|
|
|
202
200
|
"glob": "^7.1.6",
|
|
203
201
|
"html-format": "^1.0.1",
|
|
204
202
|
"html-webpack-plugin": "^5.5.0",
|
|
203
|
+
"inquirer": "^9.1.4",
|
|
205
204
|
"jest": "^24.1.0",
|
|
206
205
|
"jest-cli": "^24.1.0",
|
|
207
206
|
"moment": "^2.27.0",
|
|
208
207
|
"moment-timezone": "^0.5.31",
|
|
209
|
-
"node-sass": "^6.0.1",
|
|
210
|
-
"nodegit": "^0.28.0-alpha.10",
|
|
211
208
|
"path": "^0.12.7",
|
|
212
209
|
"pegjs": "^0.10.0",
|
|
210
|
+
"postcss": "^8.4.19",
|
|
213
211
|
"postcss-cli": "^7.1.2",
|
|
214
212
|
"postcss-inline-svg": "^4.1.0",
|
|
215
213
|
"postcss-loader": "^7.0.1",
|
|
216
214
|
"pre-commit": "^1.2.2",
|
|
217
215
|
"prettier": "^2.1.2",
|
|
218
|
-
"prettier-stylelint": "^0.4.2",
|
|
219
216
|
"process": "^0.11.10",
|
|
220
|
-
"prompt": "^1.0.0",
|
|
221
217
|
"prop-types": "^15.6.0",
|
|
222
218
|
"puppeteer": "^5.5.0",
|
|
223
219
|
"raw-loader": "^4.0.1",
|
|
@@ -235,12 +231,14 @@
|
|
|
235
231
|
"redux-thunk": "^2.3.0",
|
|
236
232
|
"resolve": "^1.17.0",
|
|
237
233
|
"rimraf": "^3.0.2",
|
|
238
|
-
"sass
|
|
239
|
-
"sass-
|
|
240
|
-
"sass-loader": "^13.0.2",
|
|
234
|
+
"sass": "^1.56.1",
|
|
235
|
+
"sass-loader": "^13.2.0",
|
|
241
236
|
"shelljs": "^0.8.4",
|
|
242
237
|
"start-server-and-test": "^1.11.3",
|
|
243
238
|
"style-loader": "^3.3.1",
|
|
239
|
+
"stylelint": "^14.15.0",
|
|
240
|
+
"stylelint-config-prettier-scss": "^0.0.1",
|
|
241
|
+
"stylelint-config-standard-scss": "^6.1.0",
|
|
244
242
|
"terser-webpack-plugin": "^5.3.5",
|
|
245
243
|
"typescript": "4.5.3",
|
|
246
244
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
@@ -270,7 +268,6 @@
|
|
|
270
268
|
"lib",
|
|
271
269
|
"licenses",
|
|
272
270
|
"optimize",
|
|
273
|
-
"scripts/postinstall.js",
|
|
274
271
|
"src/**/*.scss",
|
|
275
272
|
"test-env",
|
|
276
273
|
"eui.d.ts",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.euiBasicTable {
|
|
2
|
-
|
|
3
2
|
&-loading {
|
|
4
3
|
position: relative;
|
|
5
4
|
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
overflow: hidden;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
tbody
|
|
9
|
+
tbody::before {
|
|
11
10
|
position: absolute;
|
|
12
11
|
content: '';
|
|
13
12
|
width: 100%;
|
|
@@ -16,11 +15,9 @@
|
|
|
16
15
|
animation: euiBasicTableLoading 1000ms linear;
|
|
17
16
|
animation-iteration-count: infinite;
|
|
18
17
|
}
|
|
19
|
-
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
|
|
24
21
|
@keyframes euiBasicTableLoading {
|
|
25
22
|
from {
|
|
26
23
|
left: 0;
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
@include euiButton;
|
|
8
8
|
border-radius: $euiBorderRadius;
|
|
9
9
|
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
animation: none !important; /* 1 */
|
|
10
|
+
transform: none !important; /* 1 */ // stylelint-disable-line declaration-no-important
|
|
11
|
+
animation: none !important; /* 1 */ // stylelint-disable-line declaration-no-important
|
|
13
12
|
transition-timing-function: ease-in; /* 2 */
|
|
14
13
|
transition-duration: $euiAnimSpeedFast; /* 2 */
|
|
15
14
|
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
|
|
47
45
|
.euiButtonEmpty--flushLeft,
|
|
48
46
|
.euiButtonEmpty--flushRight,
|
|
49
47
|
.euiButtonEmpty--flushBoth {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
.euiButtonGroup--compressed {
|
|
31
31
|
.euiButtonGroup__buttons {
|
|
32
|
-
box-shadow: none !important; //
|
|
32
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
33
33
|
border-radius: $euiFormControlCompressedBorderRadius;
|
|
34
34
|
background-color: $euiFormBackgroundColor;
|
|
35
35
|
height: $euiFormControlCompressedHeight;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// This file has lots of modifiers and is somewhat nesty by nature
|
|
2
|
-
//
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
3
|
|
|
4
4
|
.euiButtonGroupButton {
|
|
5
5
|
@include euiButtonBase;
|
|
6
6
|
@include euiFont;
|
|
7
7
|
@include euiFontSize;
|
|
8
8
|
|
|
9
|
-
// sass-lint:disable-block indentation
|
|
10
9
|
transition: background-color $euiAnimSpeedNormal ease-in-out,
|
|
11
|
-
color $euiAnimSpeedNormal ease-in-out;
|
|
10
|
+
color $euiAnimSpeedNormal ease-in-out; // stylelint-disable-line indentation
|
|
12
11
|
|
|
13
12
|
// Allow button to shrink and truncate
|
|
14
13
|
min-width: 0;
|
|
@@ -58,7 +57,7 @@
|
|
|
58
57
|
.euiButtonGroup--medium,
|
|
59
58
|
.euiButtonGroup--small {
|
|
60
59
|
.euiButtonGroupButton {
|
|
61
|
-
border-radius: 0 !important; //
|
|
60
|
+
border-radius: 0 !important; // stylelint-disable-line declaration-no-important
|
|
62
61
|
font-weight: $euiButtonFontWeight;
|
|
63
62
|
|
|
64
63
|
&:focus,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// Forcing better contrast of focus state on EuiAccordion toggle icon
|
|
23
23
|
.euiCollapsibleNavGroup__heading:focus .euiAccordion__iconWrapper {
|
|
24
24
|
color: $euiCollapsibleNavGroupDarkHighContrastColor;
|
|
25
|
-
animation-name: euiCollapsibleNavGroupDarkFocusRingAnimate !important; //
|
|
25
|
+
animation-name: euiCollapsibleNavGroupDarkFocusRingAnimate !important; // stylelint-disable-line declaration-no-important
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.euiCollapsibleNavGroup__title {
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
|
|
38
38
|
.euiColorPicker__popoverPanel--pickerOnly {
|
|
39
39
|
// Override of EuiPanel padding
|
|
40
|
-
//
|
|
40
|
+
// stylelint-disable-next-line declaration-no-important
|
|
41
41
|
padding-bottom: 0 !important;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
//
|
|
44
|
+
// stylelint-disable declaration-no-important
|
|
45
45
|
.euiColorPicker__input--inGroup {
|
|
46
46
|
height: $euiFormControlLayoutGroupInputHeight !important;
|
|
47
47
|
box-shadow: none !important;
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
border-radius: 0;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
// stylelint-enable declaration-no-important
|
|
55
56
|
|
|
56
57
|
.euiColorPicker__alphaRange {
|
|
57
58
|
.euiRangeInput {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This wraps the range. It is needed because there is no way to do a linear gradient in ie11 for the track
|
|
2
2
|
.euiHue {
|
|
3
|
-
//
|
|
3
|
+
// stylelint-disable color-no-hex
|
|
4
4
|
background: linear-gradient(to right,
|
|
5
5
|
#FF3232 0%,
|
|
6
6
|
#FFF130 20%,
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
#282CFF 71%,
|
|
10
10
|
#FF28FB 88%,
|
|
11
11
|
#FF0094 100%
|
|
12
|
-
|
|
12
|
+
);
|
|
13
|
+
// stylelint-enable color-no-hex
|
|
13
14
|
height: $euiSizeL;
|
|
14
15
|
margin: $euiSizeXS 0;
|
|
15
16
|
position: relative;
|
|
16
17
|
|
|
17
18
|
// To make our fake range skinny, we add some pseudo borders to fake the height of the gradient
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
&::before,
|
|
20
|
+
&::after {
|
|
20
21
|
content: '';
|
|
21
22
|
left: 0;
|
|
22
23
|
position: absolute;
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
width: 100%;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
&::after {
|
|
29
30
|
bottom: 0;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
@@ -45,11 +46,10 @@
|
|
|
45
46
|
background: transparent;
|
|
46
47
|
z-index: 2; // Needed to place the thumb above the :after pseudo border from .euiRange
|
|
47
48
|
|
|
48
|
-
|
|
49
49
|
// Resets for the range
|
|
50
50
|
|
|
51
51
|
// Disable linter for these very unique vendor controls
|
|
52
|
-
//
|
|
52
|
+
// stylelint-disable property-no-vendor-prefix, selector-no-vendor-prefix
|
|
53
53
|
&::-webkit-slider-thumb {
|
|
54
54
|
-webkit-appearance: none;
|
|
55
55
|
margin-top: 0;
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
// Background color can potentially have opacity
|
|
60
60
|
// Pseudo element placed below the thumb to prevent the track from showing through
|
|
61
|
-
|
|
61
|
+
&::before {
|
|
62
62
|
content: '';
|
|
63
63
|
display: block;
|
|
64
64
|
position: absolute;
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.euiColorStopThumb.euiRangeThumb:not(:disabled) {
|
|
75
|
-
// sass-lint:disable-block no-color-literals, indentation
|
|
76
75
|
top: 0;
|
|
77
76
|
margin-top: 0;
|
|
78
77
|
pointer-events: auto;
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
.euiColorStopPopover-isLoadingPanel {
|
|
92
|
-
//
|
|
91
|
+
// stylelint-disable-next-line declaration-no-important
|
|
93
92
|
visibility: hidden !important; // Overrides a stateful class on EuiPopover -> EuiPanel
|
|
94
93
|
}
|
|
95
94
|
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// TODO: Address nesting during Emotion conversion, if possible
|
|
2
|
+
// stylelint-disable max-nesting-depth
|
|
3
|
+
|
|
1
4
|
.euiComboBox {
|
|
2
5
|
@include euiFormControlSize(auto, $includeAlternates: true);
|
|
3
6
|
position: relative;
|
|
@@ -21,7 +24,6 @@
|
|
|
21
24
|
display: flex; /* 1 */
|
|
22
25
|
outline: none; // Fixes an intermittent focus ring in Firefox
|
|
23
26
|
|
|
24
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
25
27
|
// to override the padding added above
|
|
26
28
|
@include euiFormControlLayoutPadding(1); /* 2 */
|
|
27
29
|
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
* 5. Prevent a lot of input from causing the react-input-autosize to overflow the container.
|
|
72
74
|
*/
|
|
73
75
|
.euiComboBox__input {
|
|
74
|
-
//
|
|
76
|
+
// stylelint-disable-next-line declaration-no-important
|
|
75
77
|
display: inline-flex !important; /* 1 */
|
|
76
78
|
height: $euiSizeXL; /* 2 */
|
|
77
79
|
overflow: hidden; /* 5 */
|
|
@@ -107,9 +109,9 @@
|
|
|
107
109
|
|
|
108
110
|
&.euiComboBox-isDisabled {
|
|
109
111
|
.euiComboBox__inputWrap {
|
|
110
|
-
//
|
|
112
|
+
// stylelint-disable property-no-vendor-prefix
|
|
111
113
|
@include euiFormControlDisabledStyle;
|
|
112
|
-
-webkit-text-fill-color: unset; // overrides $euiFormControlDisabledColor because the color doesn't work with multiple background colors
|
|
114
|
+
-webkit-text-fill-color: unset; // overrides $euiFormControlDisabledColor because the color doesn't work with multiple background colors
|
|
113
115
|
}
|
|
114
116
|
|
|
115
117
|
.euiComboBoxPlaceholder,
|
|
@@ -129,7 +131,6 @@
|
|
|
129
131
|
padding-top: 0;
|
|
130
132
|
padding-bottom: 0;
|
|
131
133
|
|
|
132
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
133
134
|
@include euiFormControlLayoutPadding(1, $compressed: true); /* 2 */
|
|
134
135
|
|
|
135
136
|
&.euiComboBox__inputWrap-isClearable {
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
// Overrides the euiFormControlLayout prepend and append height that is 100%
|
|
154
155
|
.euiFormControlLayout__prepend,
|
|
155
156
|
.euiFormControlLayout__append {
|
|
156
|
-
//
|
|
157
|
+
// stylelint-disable-next-line declaration-no-important
|
|
157
158
|
height: auto !important;
|
|
158
159
|
}
|
|
159
160
|
}
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
// Ensure that no input states are visible on the hidden input
|
|
5
5
|
input {
|
|
6
|
-
//
|
|
6
|
+
// stylelint-disable declaration-no-important
|
|
7
7
|
border: none !important;
|
|
8
8
|
box-shadow: none !important;
|
|
9
9
|
outline: none !important;
|
|
10
|
+
// stylelint-enable declaration-no-important
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
.euiComboBoxOptionsList {
|
|
6
6
|
// Remove transforms from popover panel
|
|
7
|
-
transform: none !important; //
|
|
7
|
+
transform: none !important; // stylelint-disable-line declaration-no-important
|
|
8
8
|
top: 0;
|
|
9
9
|
|
|
10
10
|
.euiFilterSelectItem__content {
|
|
11
|
-
//
|
|
12
|
-
margin-block: 0 !important;
|
|
11
|
+
margin-block: 0 !important; // stylelint-disable-line declaration-no-important
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
.euiDataGridRowCell__popover {
|
|
101
101
|
@include euiScrollBar;
|
|
102
102
|
overflow: auto;
|
|
103
|
-
//
|
|
103
|
+
// stylelint-disable declaration-no-important
|
|
104
104
|
max-width: 400px !important;
|
|
105
105
|
max-height: 400px !important;
|
|
106
106
|
z-index: $euiZDataGridCellPopover !important;
|
|
107
|
+
// stylelint-enable declaration-no-important
|
|
107
108
|
// Workaround for a Safari CSS bug when using both `overflow: auto` & `filter: drop-shadow`
|
|
108
109
|
// (see https://github.com/elastic/eui/issues/6151)
|
|
109
110
|
// Disables the default EuiPopover filter drop-shadow and uses box-shadow instead,
|
|
110
111
|
// since we don't use the popover arrow in any case for cell popovers
|
|
111
112
|
filter: none;
|
|
112
|
-
// sass-lint:disable-block mixins-before-declarations
|
|
113
113
|
@include euiBottomShadow; // TODO: Convert to euiShadowMedium() in Emotion
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
// Have to take out the generic transition so it is instaneous on focus
|
|
157
157
|
transition: none;
|
|
158
158
|
// Disable filled button box-shadows on legacy theme - they're unnecessary when this small in a datagrid
|
|
159
|
-
box-shadow: none !important; //
|
|
159
|
+
box-shadow: none !important; // stylelint-disable-line declaration-no-important
|
|
160
160
|
// Remove filled button borders on legacy theme - this way we don't need to animate the border
|
|
161
161
|
border: none;
|
|
162
162
|
}
|
|
@@ -184,8 +184,7 @@
|
|
|
184
184
|
// Border alternates
|
|
185
185
|
@include euiDataGridStyles(bordersNone) {
|
|
186
186
|
@include euiDataGridRowCell {
|
|
187
|
-
//
|
|
188
|
-
border-color: transparent !important;
|
|
187
|
+
border-color: transparent !important; // stylelint-disable-line declaration-no-important
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
|
|
@@ -67,7 +67,7 @@ $euiDataGridStyles: (
|
|
|
67
67
|
border: $euiBorderWidthThick solid $euiFocusRingColor;
|
|
68
68
|
border-radius: $euiBorderRadiusSmall;
|
|
69
69
|
z-index: 2; // We want this to be on top of all the content
|
|
70
|
-
pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
|
|
70
|
+
pointer-events: none; // Because we put it with a higher z-index we don't want to make it clickable this way we allow selecting the content behind
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
@include euiDataGridStyles(footerOverline) {
|
|
19
19
|
@include euiDataGridFooterCell {
|
|
20
20
|
border-top: $euiBorderThick;
|
|
21
|
-
//
|
|
21
|
+
// stylelint-disable declaration-no-important
|
|
22
22
|
border-top-color: $euiTextColor !important;
|
|
23
23
|
background: $euiColorEmptyShade !important;
|
|
24
|
+
// stylelint-enable declaration-no-important
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// Resizer straddles the column border and is an invisible hitzone for dragging
|
|
2
2
|
.euiDataGridColumnResizer {
|
|
3
3
|
position: absolute;
|
|
4
4
|
top: 0;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
z-index: 2; // Needs to be a level above the cells themselves in case of overlaps
|
|
11
11
|
|
|
12
12
|
// Center a vertical line within the button above
|
|
13
|
-
|
|
13
|
+
&::after {
|
|
14
14
|
content: '';
|
|
15
15
|
position: absolute;
|
|
16
16
|
left: $euiSizeS - 1px;
|
|
@@ -35,12 +35,11 @@
|
|
|
35
35
|
// we don't use negative positioning and the borders from the cell will match the container.
|
|
36
36
|
@include euiDataGridHeaderCell {
|
|
37
37
|
&:last-child {
|
|
38
|
-
|
|
39
38
|
.euiDataGridColumnResizer {
|
|
40
39
|
right: 0;
|
|
41
40
|
width: $euiSize / 2;
|
|
42
41
|
|
|
43
|
-
|
|
42
|
+
&::after {
|
|
44
43
|
left: auto;
|
|
45
44
|
right: 0;
|
|
46
45
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
.euiDataGridColumnSorting__item {
|
|
2
|
-
|
|
3
2
|
&-isDragging {
|
|
4
3
|
@include euiBottomShadow;
|
|
5
4
|
background: $euiColorEmptyShade;
|
|
@@ -35,8 +34,8 @@
|
|
|
35
34
|
border: none;
|
|
36
35
|
|
|
37
36
|
// Hack to overwrite some nested, unreachable component code with button groups
|
|
38
|
-
// sass-lint:disable-block no-important
|
|
39
37
|
button {
|
|
38
|
+
// stylelint-disable-next-line declaration-no-important
|
|
40
39
|
font-size: $euiFontSizeXS !important;
|
|
41
40
|
}
|
|
42
41
|
}
|