@elastic/eui 95.12.0 → 96.0.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 (99) hide show
  1. package/es/components/breadcrumbs/_breadcrumb_content.js +2 -0
  2. package/es/components/breadcrumbs/breadcrumbs.js +2 -0
  3. package/es/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  4. package/es/components/datagrid/controls/column_selector.js +2 -2
  5. package/es/components/datagrid/controls/column_selector.styles.js +2 -2
  6. package/es/components/datagrid/controls/column_sorting.js +0 -1
  7. package/es/components/datagrid/controls/column_sorting.styles.js +2 -2
  8. package/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
  9. package/es/components/drag_and_drop/draggable.js +15 -2
  10. package/es/components/header/header_breadcrumbs/header_breadcrumbs.js +2 -0
  11. package/es/components/header/header_links/header_links.js +2 -0
  12. package/es/components/page/page_header/page_header_content.js +32 -31
  13. package/es/components/page/page_header/page_header_content.styles.js +28 -16
  14. package/es/components/popover/popover.js +2 -0
  15. package/es/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  16. package/es/components/search_bar/search_box.js +2 -3
  17. package/es/components/tour/tour_step.js +2 -0
  18. package/eui.d.ts +23 -6
  19. package/i18ntokens.json +56 -56
  20. package/lib/components/breadcrumbs/_breadcrumb_content.js +2 -0
  21. package/lib/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  22. package/lib/components/datagrid/controls/column_selector.js +2 -2
  23. package/lib/components/datagrid/controls/column_selector.styles.js +1 -1
  24. package/lib/components/datagrid/controls/column_sorting.js +0 -1
  25. package/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  26. package/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
  27. package/lib/components/drag_and_drop/draggable.js +15 -2
  28. package/lib/components/page/page_header/page_header_content.js +29 -30
  29. package/lib/components/page/page_header/page_header_content.styles.js +28 -16
  30. package/lib/components/popover/popover.js +2 -0
  31. package/lib/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  32. package/lib/components/search_bar/search_box.js +1 -2
  33. package/optimize/es/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  34. package/optimize/es/components/datagrid/controls/column_selector.js +2 -2
  35. package/optimize/es/components/datagrid/controls/column_selector.styles.js +2 -2
  36. package/optimize/es/components/datagrid/controls/column_sorting.js +0 -1
  37. package/optimize/es/components/datagrid/controls/column_sorting.styles.js +2 -2
  38. package/optimize/es/components/datagrid/controls/column_sorting_draggable.js +2 -1
  39. package/optimize/es/components/drag_and_drop/draggable.js +6 -2
  40. package/optimize/es/components/page/page_header/page_header_content.js +26 -28
  41. package/optimize/es/components/page/page_header/page_header_content.styles.js +28 -16
  42. package/optimize/es/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  43. package/optimize/es/components/search_bar/search_box.js +2 -3
  44. package/optimize/lib/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  45. package/optimize/lib/components/datagrid/controls/column_selector.js +2 -2
  46. package/optimize/lib/components/datagrid/controls/column_selector.styles.js +1 -1
  47. package/optimize/lib/components/datagrid/controls/column_sorting.js +0 -1
  48. package/optimize/lib/components/datagrid/controls/column_sorting.styles.js +1 -1
  49. package/optimize/lib/components/datagrid/controls/column_sorting_draggable.js +2 -1
  50. package/optimize/lib/components/drag_and_drop/draggable.js +6 -2
  51. package/optimize/lib/components/page/page_header/page_header_content.js +25 -27
  52. package/optimize/lib/components/page/page_header/page_header_content.styles.js +28 -16
  53. package/optimize/lib/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  54. package/optimize/lib/components/search_bar/search_box.js +1 -2
  55. package/package.json +1 -1
  56. package/src/global_styling/mixins/_form.scss +0 -245
  57. package/src/global_styling/mixins/_index.scss +0 -3
  58. package/src/global_styling/mixins/_states.scss +0 -33
  59. package/src/global_styling/mixins/_tool_tip.scss +4 -4
  60. package/src/global_styling/variables/_buttons.scss +4 -5
  61. package/src/global_styling/variables/_form.scss +0 -38
  62. package/src/global_styling/variables/_index.scss +0 -3
  63. package/src/themes/amsterdam/global_styling/mixins/_index.scss +0 -3
  64. package/src/themes/amsterdam/global_styling/mixins/_states.scss +0 -33
  65. package/src/themes/amsterdam/global_styling/variables/_index.scss +0 -2
  66. package/test-env/components/breadcrumbs/_breadcrumb_content.js +2 -0
  67. package/test-env/components/datagrid/body/cell/data_grid_cell.styles.js +3 -1
  68. package/test-env/components/datagrid/controls/column_selector.js +2 -2
  69. package/test-env/components/datagrid/controls/column_selector.styles.js +1 -1
  70. package/test-env/components/datagrid/controls/column_sorting.js +0 -1
  71. package/test-env/components/datagrid/controls/column_sorting.styles.js +1 -1
  72. package/test-env/components/datagrid/controls/column_sorting_draggable.js +2 -1
  73. package/test-env/components/drag_and_drop/draggable.js +15 -2
  74. package/test-env/components/page/page_header/page_header_content.js +29 -30
  75. package/test-env/components/page/page_header/page_header_content.styles.js +28 -16
  76. package/test-env/components/popover/popover.js +2 -0
  77. package/test-env/components/provider/system_color_mode/system_color_mode_provider.js +3 -3
  78. package/test-env/components/search_bar/search_box.js +1 -2
  79. package/dist/eui_theme_dark.css +0 -173
  80. package/dist/eui_theme_dark.min.css +0 -1
  81. package/dist/eui_theme_light.css +0 -173
  82. package/dist/eui_theme_light.min.css +0 -1
  83. package/src/global_styling/mixins/_link.scss +0 -11
  84. package/src/global_styling/mixins/_loading.scss +0 -6
  85. package/src/global_styling/mixins/_range.scss +0 -62
  86. package/src/global_styling/variables/_page.scss +0 -2
  87. package/src/global_styling/variables/_panel.scss +0 -21
  88. package/src/global_styling/variables/_tool_tip.scss +0 -9
  89. package/src/themes/amsterdam/global_styling/mixins/_link.scss +0 -23
  90. package/src/themes/amsterdam/global_styling/variables/_buttons.scss +0 -4
  91. package/src/themes/amsterdam/global_styling/variables/_page.scss +0 -1
  92. package/src/themes/legacy/_colors_dark.scss +0 -49
  93. package/src/themes/legacy/_colors_light.scss +0 -49
  94. package/src/themes/legacy/_globals.scss +0 -11
  95. package/src/themes/legacy/legacy_dark.scss +0 -11
  96. package/src/themes/legacy/legacy_light.scss +0 -11
  97. package/src/themes/legacy/reset/_index.scss +0 -2
  98. package/src/themes/legacy/reset/_reset.scss +0 -161
  99. package/src/themes/legacy/reset/_scrollbar.scss +0 -6
@@ -14,6 +14,14 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
14
14
  * Side Public License, v 1.
15
15
  */
16
16
  var _ref = process.env.NODE_ENV === "production" ? {
17
+ name: "1574q9m-euiPageHeaderContent__top",
18
+ styles: "container-type:inline-size;label:euiPageHeaderContent__top;"
19
+ } : {
20
+ name: "1574q9m-euiPageHeaderContent__top",
21
+ styles: "container-type:inline-size;label:euiPageHeaderContent__top;",
22
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
+ };
24
+ var _ref2 = process.env.NODE_ENV === "production" ? {
17
25
  name: "1ajq27l-responsiveReverse",
18
26
  styles: "flex-direction:column-reverse;align-items:flex-start;label:responsiveReverse;"
19
27
  } : {
@@ -21,7 +29,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
21
29
  styles: "flex-direction:column-reverse;align-items:flex-start;label:responsiveReverse;",
22
30
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
23
31
  };
24
- var _ref2 = process.env.NODE_ENV === "production" ? {
32
+ var _ref3 = process.env.NODE_ENV === "production" ? {
25
33
  name: "177mkz8-responsive",
26
34
  styles: "flex-direction:column;align-items:flex-start;label:responsive;"
27
35
  } : {
@@ -29,7 +37,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
29
37
  styles: "flex-direction:column;align-items:flex-start;label:responsive;",
30
38
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
31
39
  };
32
- var _ref3 = process.env.NODE_ENV === "production" ? {
40
+ var _ref4 = process.env.NODE_ENV === "production" ? {
33
41
  name: "1uwc4oj-stretch",
34
42
  styles: "align-items:stretch;label:stretch;"
35
43
  } : {
@@ -37,7 +45,7 @@ var _ref3 = process.env.NODE_ENV === "production" ? {
37
45
  styles: "align-items:stretch;label:stretch;",
38
46
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
39
47
  };
40
- var _ref4 = process.env.NODE_ENV === "production" ? {
48
+ var _ref5 = process.env.NODE_ENV === "production" ? {
41
49
  name: "8391db-center",
42
50
  styles: "align-items:center;label:center;"
43
51
  } : {
@@ -45,7 +53,7 @@ var _ref4 = process.env.NODE_ENV === "production" ? {
45
53
  styles: "align-items:center;label:center;",
46
54
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
47
55
  };
48
- var _ref5 = process.env.NODE_ENV === "production" ? {
56
+ var _ref6 = process.env.NODE_ENV === "production" ? {
49
57
  name: "1msaet2-bottom",
50
58
  styles: "align-items:flex-end;label:bottom;"
51
59
  } : {
@@ -53,7 +61,7 @@ var _ref5 = process.env.NODE_ENV === "production" ? {
53
61
  styles: "align-items:flex-end;label:bottom;",
54
62
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
55
63
  };
56
- var _ref6 = process.env.NODE_ENV === "production" ? {
64
+ var _ref7 = process.env.NODE_ENV === "production" ? {
57
65
  name: "1gnwbvd-top",
58
66
  styles: "align-items:flex-start;label:top;"
59
67
  } : {
@@ -61,21 +69,25 @@ var _ref6 = process.env.NODE_ENV === "production" ? {
61
69
  styles: "align-items:flex-start;label:top;",
62
70
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
63
71
  };
64
- var euiPageHeaderContentStyles = exports.euiPageHeaderContentStyles = function euiPageHeaderContentStyles(_ref7) {
65
- var euiTheme = _ref7.euiTheme;
72
+ var euiPageHeaderContentStyles = exports.euiPageHeaderContentStyles = function euiPageHeaderContentStyles(_ref8) {
73
+ var euiTheme = _ref8.euiTheme;
66
74
  return {
67
75
  euiPageHeaderContent: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), " ", (0, _global_styling.logicalCSS)('margin-horizontal', 'auto'), ";;label:euiPageHeaderContent;"),
68
76
  // alignItems
69
- top: _ref6,
70
- bottom: _ref5,
71
- center: _ref4,
72
- stretch: _ref3,
77
+ top: _ref7,
78
+ bottom: _ref6,
79
+ center: _ref5,
80
+ stretch: _ref4,
73
81
  // Children only (legacy) expects EuiPageHeaderSections as children
74
- flex: /*#__PURE__*/(0, _react.css)("flex-direction:row;display:flex;gap:", euiTheme.size.base, ";justify-content:space-between;;label:flex;"),
75
- // Responsive (what to do at the smaller breakpoint)
76
- responsive: _ref2,
77
- responsiveReverse: _ref,
78
- // Content
82
+ childrenOnly: {
83
+ flex: /*#__PURE__*/(0, _react.css)("flex-direction:row;display:flex;gap:", euiTheme.size.base, ";justify-content:space-between;;label:flex;"),
84
+ // Responsive (what to do at the smaller breakpoint)
85
+ responsive: _ref3,
86
+ responsiveReverse: _ref2
87
+ },
88
+ euiPageHeaderContent__top: _ref,
89
+ euiPageHeaderContent__leftSideItems: /*#__PURE__*/(0, _react.css)("@container (max-width: ", euiTheme.breakpoint.m, "px){", (0, _global_styling.logicalCSS)('min-width', '50%'), ";};label:euiPageHeaderContent__leftSideItems;"),
90
+ euiPageHeaderContent__rightSideItems: /*#__PURE__*/(0, _react.css)("flex:0 1 auto;align-content:flex-start;@container (min-width: ", euiTheme.breakpoint.m, "px){", (0, _global_styling.logicalCSS)('max-width', '50%'), " justify-content:flex-end;};label:euiPageHeaderContent__rightSideItems;"),
79
91
  euiPageHeaderContent__titleIcon: /*#__PURE__*/(0, _react.css)("position:relative;", (0, _global_styling.logicalCSS)('top', "-".concat(euiTheme.size.xs)), " ", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.base), ";;label:euiPageHeaderContent__titleIcon;")
80
92
  };
81
93
  };
@@ -18,10 +18,10 @@ var _react = require("react");
18
18
  var COLOR_MODE_MEDIA_QUERY = exports.COLOR_MODE_MEDIA_QUERY = '(prefers-color-scheme: dark)';
19
19
  var EuiSystemColorModeProvider = exports.EuiSystemColorModeProvider = function EuiSystemColorModeProvider(_ref) {
20
20
  var children = _ref.children;
21
- // Use optional chaining here for SSR or test environments
21
+ // Check typeof and use optional chaining for SSR or test environments
22
22
  var _useState = (0, _react.useState)(function () {
23
- var _window, _window$matchMedia;
24
- return (_window = window) !== null && _window !== void 0 && (_window$matchMedia = _window.matchMedia) !== null && _window$matchMedia !== void 0 && _window$matchMedia.call(_window, COLOR_MODE_MEDIA_QUERY).matches ? 'DARK' : 'LIGHT';
23
+ var _window$matchMedia, _window;
24
+ return typeof window !== 'undefined' && (_window$matchMedia = (_window = window).matchMedia) !== null && _window$matchMedia !== void 0 && (_window$matchMedia = _window$matchMedia.call(_window, COLOR_MODE_MEDIA_QUERY)) !== null && _window$matchMedia !== void 0 && _window$matchMedia.matches ? 'DARK' : 'LIGHT';
25
25
  }),
26
26
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
27
27
  systemColorMode = _useState2[0],
@@ -9,7 +9,6 @@ exports.EuiSearchBox = void 0;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _services = require("../../services");
13
12
  var _i18n = require("../i18n");
14
13
  var _form = require("../form");
15
14
  var _popover = require("../popover");
@@ -31,7 +30,7 @@ var EuiSearchBox = exports.EuiSearchBox = function EuiSearchBox(_ref) {
31
30
  hint = _ref.hint,
32
31
  rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
33
32
  var _inputRef = (0, _react.useRef)(null);
34
- (0, _services.useUpdateEffect)(function () {
33
+ (0, _react.useLayoutEffect)(function () {
35
34
  if (_inputRef.current) {
36
35
  _inputRef.current.value = query;
37
36
  _inputRef.current.dispatchEvent(new Event('change'));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elastic/eui",
3
3
  "description": "Elastic UI Component Library",
4
- "version": "95.12.0",
4
+ "version": "96.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "lib",
7
7
  "module": "es",
@@ -1,108 +1,3 @@
1
- @mixin euiFormControlLayoutPadding($numOfIcons, $side: 'right', $compressed: false) {
2
- $iconSize: $euiSize;
3
- $iconPadding: $euiFormControlPadding;
4
- $marginBetweenIcons: $euiFormControlPadding / 2;
5
-
6
- @if ($compressed) {
7
- $iconPadding: $euiFormControlCompressedPadding;
8
- }
9
-
10
- @if variable-exists(numOfIcons) == false {
11
- @error '$numOfIcons:integer (1-3) must be provided to @mixin euiFormControlLayoutPadding().';
12
- } @else if $numOfIcons == 1 {
13
- padding-#{$side}: $iconPadding + $iconSize + $iconPadding;
14
- } @else if $numOfIcons == 2 {
15
- padding-#{$side}: $iconPadding + $iconSize + $marginBetweenIcons + $iconSize + $iconPadding;
16
- } @else if $numOfIcons == 3 {
17
- padding-#{$side}: $iconPadding + $iconSize + $marginBetweenIcons + $iconSize + $marginBetweenIcons + $iconSize + $iconPadding;
18
- }
19
- }
20
-
21
- @mixin euiPlaceholderPerBrowser {
22
- // stylelint-disable selector-no-vendor-prefix
23
- // Each prefix must be its own content block
24
- &::-webkit-input-placeholder { @content; opacity: 1; }
25
- &::-moz-placeholder { @content; opacity: 1; }
26
- &:-ms-input-placeholder { @content; opacity: 1; }
27
- &:-moz-placeholder { @content; opacity: 1; }
28
- &::placeholder { @content; opacity: 1; }
29
- }
30
-
31
- @function euiFormControlGradient($color: $euiColorPrimary) {
32
- @return linear-gradient(to top,
33
- $color,
34
- $color 2px,
35
- transparent 2px,
36
- transparent 100%
37
- );
38
- }
39
-
40
- @mixin euiFormControlText {
41
- @include euiFont;
42
- font-size: $euiFontSizeS;
43
- color: $euiTextColor;
44
-
45
- @include euiPlaceholderPerBrowser {
46
- color: $euiFormControlPlaceholderText;
47
- }
48
- }
49
-
50
- @mixin euiFormControlSize(
51
- $height: $euiFormControlHeight,
52
- $includeAlternates: false
53
- ) {
54
- // Default
55
- max-width: $euiFormMaxWidth;
56
- width: 100%;
57
- height: $height;
58
-
59
- @if ($includeAlternates) {
60
- &--fullWidth {
61
- max-width: 100%;
62
- }
63
-
64
- &--compressed {
65
- height: $euiFormControlCompressedHeight;
66
- }
67
-
68
- &--inGroup {
69
- height: 100%;
70
- }
71
- }
72
- }
73
-
74
- @mixin euiFormControlWithIcon($isIconOptional: false, $side: 'left', $compressed: false) {
75
- @if ($isIconOptional) {
76
- @at-root {
77
- #{&}--withIcon {
78
- @include euiFormControlLayoutPadding(1, $side, $compressed);
79
- }
80
- }
81
- } @else {
82
- @include euiFormControlLayoutPadding(1, $side, $compressed);
83
- }
84
- }
85
-
86
- @mixin euiFormControlIsLoading($isNextToIcon: false) {
87
- @at-root {
88
- #{&}-isLoading {
89
- @if ($isNextToIcon) {
90
- @include euiFormControlLayoutPadding(2);
91
- } @else {
92
- @include euiFormControlLayoutPadding(1);
93
- }
94
- }
95
-
96
- #{&}-isLoading#{&}--compressed {
97
- @if ($isNextToIcon) {
98
- @include euiFormControlLayoutPadding(2, $compressed: true);
99
- } @else {
100
- @include euiFormControlLayoutPadding(1, $compressed: true);
101
- }
102
- }
103
- }
104
- }
105
-
106
1
  // 1. Must supply both values to background-size or some browsers apply the single value to both directions
107
2
 
108
3
  @mixin euiFormControlDefaultShadow($borderOnly: false) {
@@ -131,143 +26,3 @@
131
26
  transition-property: box-shadow, background-image, background-size;
132
27
  }
133
28
  }
134
-
135
- @mixin euiFormControlFocusStyle($borderOnly: false) {
136
- background-color: tintOrShade($euiColorEmptyShade, 0%, 40%);
137
- background-image: euiFormControlGradient();
138
- background-size: 100% 100%; // 1
139
- outline: none; // Blanket remove all outlines relying on our own bottom border
140
-
141
- @if ($borderOnly) {
142
- box-shadow: inset 0 0 0 1px $euiFormBorderColor;
143
- } @else {
144
- box-shadow: inset 0 0 0 1px $euiFormBorderColor;
145
- }
146
- }
147
-
148
- @mixin euiFormControlInvalidStyle {
149
- background-image: euiFormControlGradient($euiColorDanger);
150
- background-size: 100%;
151
- }
152
-
153
- @mixin euiFormControlDisabledTextStyle {
154
- color: $euiFormControlDisabledColor;
155
- -webkit-text-fill-color: $euiFormControlDisabledColor; // Required for Safari
156
- }
157
-
158
- @mixin euiFormControlDisabledStyle {
159
- @include euiFormControlDisabledTextStyle;
160
- cursor: not-allowed;
161
- background: $euiFormBackgroundDisabledColor;
162
- box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
163
-
164
- @include euiPlaceholderPerBrowser {
165
- color: $euiFormControlDisabledColor;
166
- }
167
- }
168
-
169
- @mixin euiFormControlReadOnlyStyle {
170
- cursor: default;
171
- color: $euiTextColor;
172
- -webkit-text-fill-color: $euiTextColor; // Required for Safari
173
- // Use transparency since there is no border and in case form is on a non-white background
174
- background: $euiFormBackgroundReadOnlyColor;
175
- border-color: transparent;
176
- box-shadow: inset 0 0 0 1px $euiFormBorderDisabledColor;
177
- }
178
-
179
- // 2. Override invalid state with focus state.
180
-
181
- @mixin euiFormControlStyle($borderOnly: false, $includeStates: true, $includeSizes: true) {
182
- @include euiFormControlSize($includeAlternates: $includeSizes);
183
- @include euiFormControlDefaultShadow;
184
- @include euiFormControlText;
185
-
186
- border: none;
187
- border-radius: $euiFormControlBorderRadius;
188
- padding: $euiFormControlPadding;
189
-
190
- @if ($includeStates) {
191
- &:invalid { // 2
192
- @include euiFormControlInvalidStyle;
193
- }
194
-
195
- &:focus { // 2
196
- @include euiFormControlFocusStyle;
197
- }
198
-
199
- &:disabled {
200
- @include euiFormControlDisabledStyle;
201
- }
202
-
203
- &[readOnly] {
204
- @include euiFormControlReadOnlyStyle;
205
- }
206
-
207
- // Needs to be set for autofill
208
- &:-webkit-autofill {
209
- -webkit-text-fill-color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
210
-
211
- ~ .euiFormControlLayoutIcons {
212
- color: lightOrDarkTheme($euiColorDarkestShade, $euiColorLightShade);
213
- }
214
- }
215
- }
216
-
217
- @if ($includeSizes) {
218
- &--compressed {
219
- @include euiFormControlStyleCompressed($borderOnly, $includeStates);
220
- }
221
-
222
- &--inGroup {
223
- // stylelint-disable-next-line declaration-no-important
224
- box-shadow: none !important;
225
- border-radius: 0;
226
- }
227
- }
228
- }
229
-
230
- @mixin euiFormControlStyleCompressed($borderOnly: false, $includeStates: true) {
231
- @include euiFormControlDefaultShadow($borderOnly: true);
232
- padding: $euiFormControlCompressedPadding;
233
- border-radius: $euiFormControlCompressedBorderRadius;
234
-
235
- @if ($includeStates) {
236
- &:invalid { // 2
237
- @include euiFormControlInvalidStyle;
238
- }
239
-
240
- &:focus { // 2
241
- @include euiFormControlFocusStyle($borderOnly: true);
242
- }
243
-
244
- &:disabled {
245
- @include euiFormControlDisabledStyle;
246
- }
247
-
248
- &[readOnly] {
249
- @include euiFormControlReadOnlyStyle;
250
- }
251
- }
252
- }
253
-
254
- @mixin euiHiddenSelectableInput {
255
- position: absolute;
256
- // stylelint-disable-next-line declaration-no-important
257
- opacity: 0 !important; // Make sure it's still hidden when :disabled
258
- width: 100%;
259
- height: 100%;
260
- cursor: pointer;
261
- }
262
-
263
- // Adjusts form controls border radius
264
- @mixin euiFormControlSideBorderRadius($borderRadius, $side, $internal: false) {
265
- @if $internal == true {
266
- $borderRadius: $borderRadius - 1;
267
- }
268
- @if $side == 'left' {
269
- border-radius: $borderRadius 0 0 $borderRadius;
270
- } @else if $side == 'right' {
271
- border-radius: 0 $borderRadius $borderRadius 0;
272
- }
273
- }
@@ -7,8 +7,5 @@
7
7
 
8
8
  @import 'button';
9
9
  @import 'form';
10
- @import 'loading';
11
- @import 'link';
12
10
  @import 'panel';
13
- @import 'range';
14
11
  @import 'tool_tip';
@@ -15,36 +15,3 @@
15
15
  @mixin euiFocusBackground($color: $euiColorPrimary) {
16
16
  background-color: tintOrShade($euiColorPrimary, ((1 - $euiFocusTransparency) * 100%), ((1 - $euiFocusTransparency) * 100%));
17
17
  }
18
-
19
- @mixin euiHoverState {
20
- cursor: pointer;
21
- text-decoration: underline;
22
- }
23
-
24
- @mixin euiFocusState($color: $euiColorPrimary) {
25
- @include euiHoverState;
26
- @include euiFocusBackground($color);
27
- }
28
-
29
- @mixin euiDisabledState($color: $euiButtonColorDisabledText) {
30
- cursor: not-allowed;
31
- text-decoration: none;
32
-
33
- @if ($color) {
34
- color: $color;
35
- }
36
- }
37
-
38
- @mixin euiInteractiveStates($focusColor: $euiColorPrimary, $disabledColor: $euiButtonColorDisabledText) {
39
- &:hover {
40
- @include euiHoverState;
41
- }
42
-
43
- &:focus {
44
- @include euiFocusState($focusColor);
45
- }
46
-
47
- &:disabled {
48
- @include euiDisabledState($disabledColor);
49
- }
50
- }
@@ -1,5 +1,9 @@
1
1
  @mixin euiToolTipStyle($size: null) {
2
2
  @include euiBottomShadow($color: $euiColorInk);
3
+
4
+ $euiTooltipBackgroundColor: tintOrShade($euiColorFullShade, 25%, 100%) !default;
5
+ $euiTooltipBorderColor: tintOrShade($euiColorFullShade, 35%, 80%) !default;
6
+
3
7
  border-radius: $euiBorderRadius;
4
8
  background-color: $euiTooltipBackgroundColor;
5
9
  color: $euiColorGhost;
@@ -19,7 +23,3 @@
19
23
  padding-bottom: $euiSizeXS;
20
24
  margin-bottom: $euiSizeXS;
21
25
  }
22
-
23
- @mixin euiToolTipAnimation($side: 'top') {
24
- animation: #{map-get($euiTooltipAnimations, $side)} $euiAnimSpeedSlow ease-out 0s forwards;
25
- }
@@ -2,11 +2,6 @@ $euiButtonHeight: $euiSizeXXL !default;
2
2
  $euiButtonHeightSmall: $euiSizeXL !default;
3
3
  $euiButtonHeightXSmall: $euiSizeL !default;
4
4
 
5
- $euiButtonColorDisabled: tintOrShade($euiTextColor, 70%, 70%) !default;
6
- // Only increase the contrast of background color to text to 2.0 for disabled
7
- $euiButtonColorDisabledText: makeDisabledContrastColor($euiButtonColorDisabled) !default;
8
- $euiButtonColorGhostDisabled: lightOrDarkTheme($euiColorDarkShade, $euiColorLightShade) !default;
9
-
10
5
  // Modifier naming and colors.
11
6
  $euiButtonTypes: (
12
7
  primary: $euiColorPrimary,
@@ -17,3 +12,7 @@ $euiButtonTypes: (
17
12
  ghost: $euiColorGhost, // Ghost is special, and does not care about theming.
18
13
  text: $euiColorDarkShade, // Reserved for special use cases
19
14
  ) !default;
15
+
16
+ // TODO: Remove this once elastic-charts no longer uses this variable
17
+ // @see https://github.com/elastic/elastic-charts/pull/2528
18
+ $euiButtonColorDisabledText: $euiColorDisabledText;
@@ -19,41 +19,3 @@ $euiFormControlBoxShadow: 0 0 transparent !default;
19
19
  $euiFormControlPlaceholderText: makeHighContrastColor($euiTextSubduedColor, $euiFormBackgroundColor) !default;
20
20
  $euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 15%) !default;
21
21
  $euiFormInputGroupBorder: none !default;
22
-
23
- // Icons sizes
24
- $euiFormControlIconSizes: (
25
- small: $euiSizeM,
26
- medium: $euiSize,
27
- large: $euiSizeL,
28
- xLarge: $euiSizeXL,
29
- xxLarge: $euiSizeXXL
30
- );
31
-
32
- // Control Layout
33
- $euiFormControlLayoutGroupInputHeight: $euiFormControlHeight - 2px !default;
34
- $euiFormControlLayoutGroupInputCompressedHeight: $euiFormControlCompressedHeight - 2px !default;
35
- $euiFormControlLayoutGroupInputCompressedBorderRadius: $euiFormControlCompressedBorderRadius / 2 !default;
36
-
37
- // Range
38
- $euiRangeTrackColor: $euiColorLightShade !default;
39
- $euiRangeHighlightColor: $euiColorDarkShade !default;
40
-
41
- $euiRangeThumbHeight: $euiSize !default;
42
- $euiRangeThumbWidth: $euiSize !default;
43
- $euiRangeThumbBorderColor: $euiColorEmptyShade !default;
44
- $euiRangeThumbBackgroundColor: $euiRangeHighlightColor;
45
-
46
- $euiRangeTrackWidth: 100% !default;
47
- $euiRangeTrackHeight: $euiSizeM / 2 !default;
48
- $euiRangeTrackCompressedHeight: $euiSizeXS;
49
- $euiRangeTrackBorderWidth: 0 !default;
50
- $euiRangeTrackBorderColor: $euiRangeTrackColor !default;
51
- $euiRangeTrackRadius: $euiBorderRadius !default;
52
-
53
- $euiRangeDisabledOpacity: .25 !default;
54
-
55
- $euiRangeHighlightHeight: $euiRangeTrackHeight !default;
56
- $euiRangeHighlightCompressedHeight: $euiRangeTrackCompressedHeight !default;
57
-
58
- $euiRangeHeight: $euiFormControlHeight !default;
59
- $euiRangeCompressedHeight: $euiFormControlCompressedHeight !default;
@@ -21,6 +21,3 @@
21
21
 
22
22
  @import 'buttons';
23
23
  @import 'form';
24
- @import 'page';
25
- @import 'panel';
26
- @import 'tool_tip';
@@ -9,8 +9,5 @@
9
9
 
10
10
  @import '../../../../global_styling/mixins/button';
11
11
  @import '../../../../global_styling/mixins/form';
12
- @import '../../../../global_styling/mixins/loading';
13
- @import 'link';
14
12
  @import '../../../../global_styling/mixins/panel';
15
- @import '../../../../global_styling/mixins/range';
16
13
  @import '../../../../global_styling/mixins/tool_tip';
@@ -39,36 +39,3 @@
39
39
  @mixin euiFocusBackground($color: $euiColorPrimary) {
40
40
  background-color: transparentize($color, $euiFocusTransparency);
41
41
  }
42
-
43
- @mixin euiHoverState {
44
- cursor: pointer;
45
- text-decoration: underline;
46
- }
47
-
48
- @mixin euiFocusState($color: $euiColorPrimary) {
49
- @include euiHoverState;
50
- @include euiFocusBackground($color);
51
- }
52
-
53
- @mixin euiDisabledState($color: $euiButtonColorDisabledText) {
54
- cursor: not-allowed;
55
- text-decoration: none;
56
-
57
- @if ($color) {
58
- color: $color;
59
- }
60
- }
61
-
62
- @mixin euiInteractiveStates($focusColor: $euiColorPrimary, $disabledColor: $euiButtonColorDisabledText) {
63
- &:hover {
64
- @include euiHoverState;
65
- }
66
-
67
- &:focus {
68
- @include euiFocusState($focusColor);
69
- }
70
-
71
- &:disabled {
72
- @include euiDisabledState($disabledColor);
73
- }
74
- }
@@ -2,6 +2,4 @@
2
2
  @import '../../../../global_styling/variables/index';
3
3
  @import 'states';
4
4
 
5
- @import 'buttons';
6
- @import 'page';
7
5
  @import 'typography';
@@ -251,6 +251,8 @@ EuiBreadcrumbContent.propTypes = {
251
251
  /**
252
252
  * Must be set to true if using `EuiDragDropContext` within a popover,
253
253
  * otherwise your nested drag & drop will have incorrect positioning
254
+ *
255
+ * @deprecated - use `usePortal` prop on children `EuiDraggable` components instead.
254
256
  */
255
257
  hasDragDrop: _propTypes.default.bool,
256
258
  /**
@@ -108,7 +108,9 @@ var euiDataGridRowCellStyles = exports.euiDataGridRowCellStyles = function euiDa
108
108
  defaultHeight: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', '100%'), ";;label:defaultHeight;"),
109
109
  // Control columns should be vertically centered with the *first line* of text
110
110
  // for both single and multi-line heights (see https://github.com/elastic/eui/issues/7897)
111
- controlColumn: /*#__PURE__*/(0, _react.css)("display:inline-flex;align-items:start;gap:", euiTheme.size.xxs, ";vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;.euiDataGrid--fontSizeSmall &:where(.euiDataGridRowCell__content--defaultHeight){", (0, _global_styling.logicalCSS)('height', '100%'), " align-items:center;}.euiCheckbox:not(:has(label)){display:inline;.euiCheckbox__square{display:inline-flex;vertical-align:text-bottom;@supports (vertical-align: -moz-middle-with-baseline){vertical-align:sub;}}};label:controlColumn;")
111
+ controlColumn: /*#__PURE__*/(0, _react.css)(
112
+ // ❗ For some reason Chromium browsers will scrollbar stutter without this :|||
113
+ (0, _global_styling.logicalCSS)('max-height', '100%'), " display:inline-flex;align-items:start;gap:", euiTheme.size.xxs, ";vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;.euiDataGrid--fontSizeSmall &:where(.euiDataGridRowCell__content--defaultHeight){", (0, _global_styling.logicalCSS)('height', '100%'), " align-items:center;}.euiCheckbox:not(:has(label)){display:inline;.euiCheckbox__square{display:inline-flex;vertical-align:text-bottom;@supports (vertical-align: -moz-middle-with-baseline){vertical-align:sub;}}};label:controlColumn;")
112
114
  }
113
115
  };
114
116
  };
@@ -104,7 +104,6 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
104
104
  },
105
105
  anchorPosition: "downLeft",
106
106
  panelPaddingSize: "none",
107
- hasDragDrop: true,
108
107
  button: (0, _react2.jsx)(_data_grid_toolbar_control.EuiDataGridToolbarControl, {
109
108
  badgeContent: numberOfHiddenFields > 0 ? "".concat(orderedVisibleColumns.length, "/").concat(availableColumns.length) : availableColumns.length,
110
109
  iconType: "tableDensityNormal",
@@ -148,7 +147,8 @@ var useDataGridColumnSelector = exports.useDataGridColumnSelector = function use
148
147
  index: index,
149
148
  isDragDisabled: !isDragEnabled,
150
149
  hasInteractiveChildren: true,
151
- customDragHandle: true
150
+ customDragHandle: true,
151
+ usePortal: true
152
152
  }, function (provided, state) {
153
153
  return (0, _react2.jsx)("div", {
154
154
  css: styles.euiDataGridColumnSelector__item,
@@ -22,7 +22,7 @@ var euiDataGridColumnSelectorStyles = exports.euiDataGridColumnSelectorStyles =
22
22
  });
23
23
  var maxResponsiveHeight = "min(".concat(maxStaticHeight, ", 50vh)");
24
24
  return {
25
- euiDataGridColumnSelector: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiYScroll)(euiThemeContext), " ", (0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " padding:", euiTheme.size.s, ";;label:euiDataGridColumnSelector;"),
25
+ euiDataGridColumnSelector: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiYScrollWithShadows)(euiThemeContext), " ", (0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " padding:", euiTheme.size.s, ";;label:euiDataGridColumnSelector;"),
26
26
  euiDataGridColumnSelector__item: /*#__PURE__*/(0, _react.css)("padding:", euiTheme.size.xs, ";&.euiDataGridColumnSelector__item-isDragging{", (0, _themes.euiShadowLarge)(euiThemeContext), " background-color:", euiTheme.colors.emptyShade, ";};label:euiDataGridColumnSelector__item;")
27
27
  };
28
28
  };
@@ -142,7 +142,6 @@ var DataGridSortingControl = exports.DataGridSortingControl = /*#__PURE__*/(0, _
142
142
  },
143
143
  anchorPosition: "downLeft",
144
144
  panelPaddingSize: "s",
145
- hasDragDrop: true,
146
145
  button: (0, _react2.jsx)(_data_grid_toolbar_control.EuiDataGridToolbarControl, {
147
146
  badgeContent: sorting.columns.length,
148
147
  iconType: "sortable",
@@ -25,7 +25,7 @@ var euiDataGridColumnSortingStyles = exports.euiDataGridColumnSortingStyles = fu
25
25
  /**
26
26
  * Sorted fields
27
27
  */
28
- euiDataGridColumnSorting: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "margin:-", euiTheme.size.s, ";", (0, _global_styling.euiYScroll)(euiThemeContext), ";;label:euiDataGridColumnSorting;"),
28
+ euiDataGridColumnSorting: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('max-height', maxResponsiveHeight), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "margin:-", euiTheme.size.s, ";", (0, _global_styling.euiYScrollWithShadows)(euiThemeContext), ";;label:euiDataGridColumnSorting;"),
29
29
  euiDataGridColumnSorting__item: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-horizontal', euiTheme.size.s), " &.euiDataGridColumnSorting__item-isDragging{", (0, _themes.euiShadowLarge)(euiThemeContext), " background-color:", euiTheme.colors.emptyShade, ";};label:euiDataGridColumnSorting__item;"),
30
30
  euiDataGridColumnSorting__name: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('padding-right', euiTheme.size.xs), " ", (0, _global_styling.euiMinBreakpoint)(euiThemeContext, 'm'), "{", (0, _global_styling.logicalCSS)('padding-right', euiTheme.size.l), ";};label:euiDataGridColumnSorting__name;"),
31
31
  euiDataGridColumnSorting__order: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiMinBreakpoint)(euiThemeContext, 'm'), "{", (0, _global_styling.logicalCSS)('min-width', (0, _global_styling.mathWithUnits)(euiTheme.size.xxl, function (x) {
@@ -92,7 +92,8 @@ var EuiDataGridColumnSortingDraggable = exports.EuiDataGridColumnSortingDraggabl
92
92
  draggableId: id,
93
93
  index: index,
94
94
  hasInteractiveChildren: true,
95
- customDragHandle: true
95
+ customDragHandle: true,
96
+ usePortal: true
96
97
  }, rest), function (provided, state) {
97
98
  return (0, _react2.jsx)(_flex.EuiFlexGroup, {
98
99
  css: styles.euiDataGridColumnSorting__item,