@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.
Files changed (147) hide show
  1. package/README.md +0 -7
  2. package/dist/eui_theme_dark.css +7694 -5793
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +7736 -5835
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/datagrid/data_grid.a11y.js +251 -0
  7. package/es/components/date_picker/date_picker.a11y.js +83 -0
  8. package/es/components/delay_hide/delay_hide.a11y.js +106 -0
  9. package/es/components/delay_render/delay_render.a11y.js +106 -0
  10. package/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  11. package/es/components/error_boundary/error_boundary.js +45 -27
  12. package/es/components/page/page_side_bar/page_side_bar.js +3 -0
  13. package/es/components/page/page_template.js +1 -15
  14. package/eui.d.ts +19 -11
  15. package/i18ntokens.json +4 -4
  16. package/lib/components/datagrid/data_grid.a11y.js +255 -0
  17. package/lib/components/date_picker/date_picker.a11y.js +89 -0
  18. package/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  19. package/lib/components/delay_render/delay_render.a11y.js +111 -0
  20. package/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  21. package/lib/components/error_boundary/error_boundary.js +49 -29
  22. package/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  23. package/lib/components/page/page_template.js +1 -15
  24. package/optimize/es/components/datagrid/data_grid.a11y.js +234 -0
  25. package/optimize/es/components/date_picker/date_picker.a11y.js +73 -0
  26. package/optimize/es/components/delay_hide/delay_hide.a11y.js +96 -0
  27. package/optimize/es/components/delay_render/delay_render.a11y.js +96 -0
  28. package/optimize/es/components/empty_prompt/empty_prompt.a11y.js +63 -0
  29. package/optimize/es/components/error_boundary/error_boundary.js +37 -26
  30. package/optimize/es/components/page/page_side_bar/page_side_bar.js +3 -0
  31. package/optimize/lib/components/datagrid/data_grid.a11y.js +248 -0
  32. package/optimize/lib/components/date_picker/date_picker.a11y.js +87 -0
  33. package/optimize/lib/components/delay_hide/delay_hide.a11y.js +111 -0
  34. package/optimize/lib/components/delay_render/delay_render.a11y.js +111 -0
  35. package/optimize/lib/components/empty_prompt/empty_prompt.a11y.js +72 -0
  36. package/optimize/lib/components/error_boundary/error_boundary.js +41 -28
  37. package/optimize/lib/components/page/page_side_bar/page_side_bar.js +4 -0
  38. package/package.json +11 -14
  39. package/src/components/basic_table/_basic_table.scss +1 -4
  40. package/src/components/button/button_empty/_button_empty.scss +2 -4
  41. package/src/components/button/button_group/_button_group.scss +1 -1
  42. package/src/components/button/button_group/_button_group_button.scss +3 -4
  43. package/src/components/button/button_icon/_button_icon.scss +0 -3
  44. package/src/components/collapsible_nav/_collapsible_nav.scss +1 -1
  45. package/src/components/collapsible_nav/collapsible_nav_group/_collapsible_nav_group.scss +1 -1
  46. package/src/components/color_picker/_color_picker.scss +3 -2
  47. package/src/components/color_picker/_hue.scss +7 -7
  48. package/src/components/color_picker/_saturation.scss +1 -1
  49. package/src/components/color_picker/color_palette_display/_mixins.scss +1 -1
  50. package/src/components/color_picker/color_stops/_color_stops.scss +2 -3
  51. package/src/components/combo_box/_combo_box.scss +7 -6
  52. package/src/components/combo_box/combo_box_input/_combo_box_input.scss +2 -1
  53. package/src/components/combo_box/combo_box_input/_combo_box_placeholder.scss +1 -1
  54. package/src/components/combo_box/combo_box_options_list/_combo_box_options_list.scss +2 -3
  55. package/src/components/control_bar/_variables.scss +0 -1
  56. package/src/components/datagrid/_data_grid_data_row.scss +4 -5
  57. package/src/components/datagrid/_mixins.scss +1 -1
  58. package/src/components/datagrid/body/_data_grid_footer_row.scss +2 -1
  59. package/src/components/datagrid/body/header/_data_grid_column_resizer.scss +3 -4
  60. package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
  61. package/src/components/datagrid/controls/_data_grid_column_sorting.scss +1 -2
  62. package/src/components/date_picker/_date_picker_range.scss +1 -1
  63. package/src/components/date_picker/super_date_picker/_super_date_picker.scss +1 -4
  64. package/src/components/date_picker/super_date_picker/quick_select_popover/_quick_select_popover.scss +1 -1
  65. package/src/components/drag_and_drop/_draggable.scss +3 -5
  66. package/src/components/drag_and_drop/_droppable.scss +1 -1
  67. package/src/components/empty_prompt/_empty_prompt.scss +1 -1
  68. package/src/components/filter_group/_filter_group.scss +2 -2
  69. package/src/components/filter_group/_filter_select_item.scss +0 -1
  70. package/src/components/form/checkbox/_checkbox.scss +5 -3
  71. package/src/components/form/described_form_group/_described_form_group.scss +0 -1
  72. package/src/components/form/field_password/_field_password.scss +1 -1
  73. package/src/components/form/field_search/_field_search.scss +1 -1
  74. package/src/components/form/file_picker/_file_picker.scss +1 -2
  75. package/src/components/form/form_control_layout/_form_control_layout.scss +6 -7
  76. package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +4 -6
  77. package/src/components/form/form_row/_form_row.scss +3 -0
  78. package/src/components/form/radio/_radio.scss +5 -3
  79. package/src/components/form/select/_select.scss +1 -1
  80. package/src/components/form/switch/_switch.scss +3 -1
  81. package/src/components/header/_mixins.scss +1 -1
  82. package/src/components/header/header_section/_header_section_item.scss +4 -4
  83. package/src/components/header/header_section/_header_section_item_button.scss +0 -1
  84. package/src/components/key_pad_menu/_key_pad_menu_item.scss +2 -7
  85. package/src/components/markdown_editor/_markdown_editor_drop_zone.scss +4 -4
  86. package/src/components/markdown_editor/_markdown_editor_footer.scss +1 -1
  87. package/src/components/markdown_editor/_markdown_editor_text_area.scss +2 -3
  88. package/src/components/markdown_editor/_markdown_format.scss +4 -2
  89. package/src/components/notification/_notification_event.scss +2 -2
  90. package/src/components/page/page_content/_page_content_body.scss +0 -1
  91. package/src/components/page/page_content/_page_content_header_section.scss +0 -1
  92. package/src/components/page/page_side_bar/_page_side_bar.scss +0 -1
  93. package/src/components/panel/split_panel/_split_panel.scss +2 -2
  94. package/src/components/resizable_container/_resizable_button.scss +31 -31
  95. package/src/components/resizable_container/_resizable_collapse_button.scss +9 -9
  96. package/src/components/selectable/selectable_templates/_selectable_template_sitewide_option.scss +1 -1
  97. package/src/components/side_nav/_mixins.scss +1 -1
  98. package/src/components/side_nav/_side_nav.scss +2 -1
  99. package/src/components/side_nav/_side_nav_item.scss +2 -3
  100. package/src/components/steps/_steps.scss +2 -1
  101. package/src/components/suggest/_suggest_input.scss +1 -1
  102. package/src/components/suggest/_suggest_item.scss +4 -3
  103. package/src/components/table/_responsive.scss +5 -3
  104. package/src/components/table/_table.scss +2 -4
  105. package/src/components/table/mobile/_mobile.scss +0 -2
  106. package/src/components/tree_view/tree_view.scss +2 -2
  107. package/src/global_styling/mixins/_form.scss +7 -18
  108. package/src/global_styling/mixins/_header.scss +2 -2
  109. package/src/global_styling/mixins/_helpers.scss +1 -2
  110. package/src/global_styling/mixins/_icons.scss +1 -1
  111. package/src/global_styling/mixins/_range.scss +4 -8
  112. package/src/global_styling/mixins/_responsive.scss +3 -8
  113. package/src/global_styling/mixins/_shadow.scss +5 -9
  114. package/src/global_styling/mixins/_states.scss +2 -2
  115. package/src/global_styling/mixins/_typography.scss +16 -19
  116. package/src/global_styling/variables/_colors_vis.scss +1 -1
  117. package/src/global_styling/variables/_typography.scss +1 -3
  118. package/src/themes/amsterdam/_colors_dark.scss +2 -1
  119. package/src/themes/amsterdam/_colors_light.scss +2 -0
  120. package/src/themes/amsterdam/global_styling/mixins/_link.scss +1 -1
  121. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -1
  122. package/src/themes/amsterdam/global_styling/mixins/_typography.scss +1 -2
  123. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_days.scss +0 -1
  124. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_month_year.scss +0 -1
  125. package/src/themes/amsterdam/global_styling/react_date_picker/_date_picker_times.scss +3 -4
  126. package/src/themes/amsterdam/global_styling/react_date_picker/_mixins.scss +0 -1
  127. package/src/themes/amsterdam/global_styling/variables/_typography.scss +1 -2
  128. package/src/themes/amsterdam/overrides/_color_stops.scss +4 -5
  129. package/src/themes/amsterdam/overrides/_combo_box.scss +3 -0
  130. package/src/themes/amsterdam/overrides/_form_control_layout.scss +3 -0
  131. package/src/themes/amsterdam/overrides/_form_control_layout_delimited.scss +5 -4
  132. package/src/themes/amsterdam/overrides/_header.scss +2 -2
  133. package/src/themes/amsterdam/overrides/_hue.scss +6 -6
  134. package/src/themes/amsterdam/overrides/_key_pad_menu.scss +2 -2
  135. package/src/themes/amsterdam/overrides/_steps.scss +1 -2
  136. package/src/themes/legacy/_colors_dark.scss +2 -1
  137. package/src/themes/legacy/_colors_light.scss +2 -0
  138. package/src/themes/legacy/reset/_reset.scss +8 -7
  139. package/test-env/components/datagrid/data_grid.a11y.js +248 -0
  140. package/test-env/components/date_picker/date_picker.a11y.js +87 -0
  141. package/test-env/components/delay_hide/delay_hide.a11y.js +111 -0
  142. package/test-env/components/delay_render/delay_render.a11y.js +111 -0
  143. package/test-env/components/empty_prompt/empty_prompt.a11y.js +72 -0
  144. package/test-env/components/error_boundary/error_boundary.js +48 -28
  145. package/test-env/components/page/page_side_bar/page_side_bar.js +4 -0
  146. package/test-env/components/page/page_template.js +1 -15
  147. 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._EuiErrorBoundary = exports.EuiErrorBoundary = void 0;
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 = ["className", "children", "data-test-subj", "theme"];
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 _EuiErrorBoundary = /*#__PURE__*/function (_Component) {
53
- (0, _inherits2.default)(_EuiErrorBoundary, _Component);
53
+ var EuiErrorBoundary = /*#__PURE__*/function (_Component) {
54
+ (0, _inherits2.default)(EuiErrorBoundary, _Component);
54
55
 
55
- var _super = _createSuper(_EuiErrorBoundary);
56
+ var _super = _createSuper(EuiErrorBoundary);
56
57
 
57
- function _EuiErrorBoundary(props) {
58
+ function EuiErrorBoundary(props) {
58
59
  var _this;
59
60
 
60
- (0, _classCallCheck2.default)(this, _EuiErrorBoundary);
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)(_EuiErrorBoundary, [{
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)("div", (0, _extends2.default)({
101
- css: styles.euiErrorBoundary,
102
- className: (0, _classnames.default)('euiErrorBoundary', className),
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 _EuiErrorBoundary;
104
+ return EuiErrorBoundary;
116
105
  }(_react.Component);
117
-
118
- exports._EuiErrorBoundary = _EuiErrorBoundary;
119
- var EuiErrorBoundary = (0, _services.withEuiTheme)(_EuiErrorBoundary);
120
- exports.EuiErrorBoundary = EuiErrorBoundary;
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.0.0",
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": "sass-lint -v --max-warnings 0",
30
- "lint-sass-fix": "sass-lint-auto-fix -c ./.sass-lint-fix.yml",
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-lint": "^1.13.1",
239
- "sass-lint-auto-fix": "^0.21.2",
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:before {
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
- // sass-lint:disable-block no-important
11
- transform: none !important; /* 1 */
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; // sass-lint:disable-line no-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
- // sass-lint:disable nesting-depth
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; // sass-lint:disable-line no-important
60
+ border-radius: 0 !important; // stylelint-disable-line declaration-no-important
62
61
  font-weight: $euiButtonFontWeight;
63
62
 
64
63
  &:focus,
@@ -1,6 +1,3 @@
1
- // This file has lots of modifiers and is somewhat nesty by nature
2
- // sass-lint:disable nesting-depth
3
-
4
1
  .euiButtonIcon {
5
2
  @include euiButton;
6
3
 
@@ -1,5 +1,5 @@
1
1
  // Extends <EuiFlyout>
2
2
 
3
3
  .euiCollapsibleNav:not([class*='push']) {
4
- z-index: $euiZNavigation !important; // sass-lint:disable-line no-important
4
+ z-index: $euiZNavigation !important; // stylelint-disable-line declaration-no-important
5
5
  }
@@ -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; // sass-lint:disable-line no-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
- // sass-lint:disable no-important
40
+ // stylelint-disable-next-line declaration-no-important
41
41
  padding-bottom: 0 !important;
42
42
  }
43
43
 
44
- // sass-lint:disable no-important
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
- // sass-lint:disable-block no-color-literals
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
- &:before,
19
- &:after {
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
- &:after {
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
- // sass-lint:disable-block no-vendor-prefixes
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;
@@ -34,7 +34,7 @@
34
34
  margin-left: $euiColorPickerIndicatorSize * -.5;
35
35
  border: 1px solid $euiColorDarkestShade;
36
36
 
37
- &:before {
37
+ &::before {
38
38
  content: '';
39
39
  position: absolute;
40
40
  top: 0;
@@ -8,7 +8,7 @@
8
8
 
9
9
  position: relative;
10
10
 
11
- &:after {
11
+ &::after {
12
12
  position: absolute;
13
13
  top: 0;
14
14
  left: 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
- &:before {
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
- // sass-lint:disable-block no-important
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
- // sass-lint:disable-block no-important
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
- // sass-lint:disable-block no-vendor-prefixes
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
- // sass-lint:disable-block no-important
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
- // sass-lint:disable-block no-important
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
  }
@@ -7,5 +7,5 @@
7
7
  padding-left: $euiSizeXS;
8
8
  line-height: $euiSizeXL;
9
9
  color: $euiFormControlPlaceholderText;
10
- margin-bottom: 0 !important; // sass-lint:disable-line no-important
10
+ margin-bottom: 0 !important; // stylelint-disable-line declaration-no-important
11
11
  }
@@ -4,12 +4,11 @@
4
4
  */
5
5
  .euiComboBoxOptionsList {
6
6
  // Remove transforms from popover panel
7
- transform: none !important; // sass-lint:disable-line no-important
7
+ transform: none !important; // stylelint-disable-line declaration-no-important
8
8
  top: 0;
9
9
 
10
10
  .euiFilterSelectItem__content {
11
- // sass-lint:disable no-important
12
- margin-block: 0 !important;
11
+ margin-block: 0 !important; // stylelint-disable-line declaration-no-important
13
12
  }
14
13
  }
15
14
 
@@ -10,4 +10,3 @@ $euiControlBarHeights: (
10
10
  m: $euiSize * 30,
11
11
  l: 100vh,
12
12
  );
13
-
@@ -100,16 +100,16 @@
100
100
  .euiDataGridRowCell__popover {
101
101
  @include euiScrollBar;
102
102
  overflow: auto;
103
- // sass-lint:disable-block no-important
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; // sass-lint:disable-line no-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
- // sass-lint:disable-block no-important
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
- // sass-lint:disable-block no-important
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
- // Resizer straddles the column border and is an invisible hitzone for dragging
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
- &:after {
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
- &:after {
42
+ &::after {
44
43
  left: auto;
45
44
  right: 0;
46
45
  }
@@ -73,7 +73,7 @@
73
73
  }
74
74
 
75
75
  .euiDataGridHeader__action--selected {
76
- // sass-lint:disable-block no-important
76
+ // stylelint-disable-next-line declaration-no-important
77
77
  font-weight: $euiFontWeightBold !important;
78
78
  }
79
79
 
@@ -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
  }