@elastic/eui 108.0.0 → 109.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 (59) hide show
  1. package/es/components/basic_table/collapsed_item_actions.js +3 -1
  2. package/es/components/basic_table/default_item_action.js +7 -4
  3. package/es/components/button/button_group/button_group_button.js +2 -3
  4. package/es/components/datagrid/body/header/column_actions.js +5 -21
  5. package/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  6. package/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  7. package/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  8. package/es/components/form/file_picker/file_picker.styles.js +3 -3
  9. package/es/components/icon/assets/paper_clip.js +1 -1
  10. package/es/components/icon/assets/streams_wired.js +3 -2
  11. package/es/services/theme/high_contrast_overrides.js +5 -1
  12. package/eui.d.ts +16 -3
  13. package/lib/components/basic_table/collapsed_item_actions.js +3 -1
  14. package/lib/components/basic_table/default_item_action.js +7 -4
  15. package/lib/components/button/button_group/button_group_button.js +2 -3
  16. package/lib/components/datagrid/body/header/column_actions.js +5 -21
  17. package/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  18. package/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  19. package/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  20. package/lib/components/form/file_picker/file_picker.styles.js +3 -3
  21. package/lib/components/icon/assets/paper_clip.js +1 -1
  22. package/lib/components/icon/assets/streams_wired.js +3 -2
  23. package/lib/components/icon/svgs/paper_clip.svg +3 -3
  24. package/lib/services/theme/high_contrast_overrides.js +5 -1
  25. package/optimize/es/components/basic_table/collapsed_item_actions.js +3 -1
  26. package/optimize/es/components/basic_table/default_item_action.js +7 -4
  27. package/optimize/es/components/button/button_group/button_group_button.js +1 -2
  28. package/optimize/es/components/datagrid/body/header/column_actions.js +5 -21
  29. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  30. package/optimize/es/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -2
  31. package/optimize/es/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  32. package/optimize/es/components/form/file_picker/file_picker.styles.js +3 -3
  33. package/optimize/es/components/icon/assets/paper_clip.js +1 -1
  34. package/optimize/es/components/icon/assets/streams_wired.js +3 -2
  35. package/optimize/es/services/theme/high_contrast_overrides.js +5 -1
  36. package/optimize/lib/components/basic_table/collapsed_item_actions.js +3 -1
  37. package/optimize/lib/components/basic_table/default_item_action.js +7 -4
  38. package/optimize/lib/components/button/button_group/button_group_button.js +1 -2
  39. package/optimize/lib/components/datagrid/body/header/column_actions.js +5 -21
  40. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  41. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  42. package/optimize/lib/components/datagrid/body/header/data_grid_header_cell_wrapper.js +4 -2
  43. package/optimize/lib/components/form/file_picker/file_picker.styles.js +3 -3
  44. package/optimize/lib/components/icon/assets/paper_clip.js +1 -1
  45. package/optimize/lib/components/icon/assets/streams_wired.js +3 -2
  46. package/optimize/lib/components/icon/svgs/paper_clip.svg +3 -3
  47. package/optimize/lib/services/theme/high_contrast_overrides.js +5 -1
  48. package/package.json +4 -4
  49. package/test-env/components/basic_table/collapsed_item_actions.js +3 -1
  50. package/test-env/components/basic_table/default_item_action.js +7 -4
  51. package/test-env/components/button/button_group/button_group_button.js +2 -3
  52. package/test-env/components/datagrid/body/header/column_actions.js +5 -21
  53. package/test-env/components/datagrid/body/header/data_grid_header_cell.js +6 -4
  54. package/test-env/components/datagrid/body/header/data_grid_header_cell.styles.js +8 -1
  55. package/test-env/components/datagrid/body/header/data_grid_header_cell_wrapper.js +5 -2
  56. package/test-env/components/form/file_picker/file_picker.styles.js +3 -3
  57. package/test-env/components/icon/assets/paper_clip.js +1 -1
  58. package/test-env/components/icon/assets/streams_wired.js +3 -2
  59. package/test-env/services/theme/high_contrast_overrides.js +5 -1
@@ -82,7 +82,9 @@ export var CollapsedItemActions = function CollapsedItemActions(_ref) {
82
82
  },
83
83
  toolTipContent: toolTipContent,
84
84
  toolTipProps: {
85
- delay: 'long'
85
+ delay: 'long',
86
+ // Avoid screen-readers announcing the same text twice
87
+ disableScreenReaderOutput: typeof buttonContent === 'string' && buttonContent === toolTipContent
86
88
  }
87
89
  }, buttonContent));
88
90
  }
@@ -30,6 +30,12 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
30
30
  var icon = action.icon ? callWithItemIfFunction(item)(action.icon) : undefined;
31
31
  var actionContent = callWithItemIfFunction(item)(action.name);
32
32
  var tooltipContent = callWithItemIfFunction(item)(action.description);
33
+ var tooltipProps = {
34
+ content: tooltipContent,
35
+ delay: 'long',
36
+ // Avoid screen-readers announcing the same text twice
37
+ disableScreenReaderOutput: typeof actionContent === 'string' && actionContent === tooltipContent
38
+ };
33
39
  var href = callWithItemIfFunction(item)(action.href);
34
40
  var dataTestSubj = callWithItemIfFunction(item)(action['data-test-subj']);
35
41
  var ariaLabelId = useGeneratedHtmlId();
@@ -73,8 +79,5 @@ export var DefaultItemAction = function DefaultItemAction(_ref) {
73
79
  flush: "right"
74
80
  }, actionContent);
75
81
  }
76
- return enabled ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, {
77
- content: tooltipContent,
78
- delay: "long"
79
- }, button), ariaLabelledBy) : ___EmotionJSX(React.Fragment, null, button, ariaLabelledBy);
82
+ return enabled ? ___EmotionJSX(React.Fragment, null, ___EmotionJSX(EuiToolTip, tooltipProps, button), ariaLabelledBy) : ___EmotionJSX(React.Fragment, null, button, ariaLabelledBy);
80
83
  };
@@ -37,8 +37,7 @@ export var EuiButtonGroupButton = function EuiButtonGroupButton(_ref) {
37
37
  id = _ref.id,
38
38
  isDisabled = _ref.isDisabled,
39
39
  isIconOnly = _ref.isIconOnly,
40
- _ref$isSelected = _ref.isSelected,
41
- isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
40
+ isSelected = _ref.isSelected,
42
41
  label = _ref.label,
43
42
  value = _ref.value,
44
43
  size = _ref.size,
@@ -207,5 +206,5 @@ var EuiButtonGroupButtonWithToolTip = function EuiButtonGroupButtonWithToolTip(_
207
206
  EuiButtonGroupButtonWithToolTip.propTypes = {
208
207
  children: PropTypes.element.isRequired,
209
208
  wrapperCss: PropTypes.any.isRequired,
210
- isSelected: PropTypes.bool.isRequired
209
+ isSelected: PropTypes.bool
211
210
  };
@@ -83,16 +83,6 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
83
83
  var closePopover = useCallback(function () {
84
84
  setIsPopoverOpen(false);
85
85
  }, []);
86
- var _useState3 = useState(false),
87
- _useState4 = _slicedToArray(_useState3, 2),
88
- isActionsButtonFocused = _useState4[0],
89
- setIsActionsButtonFocused = _useState4[1];
90
- var onFocus = useCallback(function () {
91
- return setIsActionsButtonFocused(true);
92
- }, []);
93
- var onBlur = useCallback(function () {
94
- return setIsActionsButtonFocused(false);
95
- }, []);
96
86
  var actionsButtonAriaLabel = useEuiI18n('euiDataGridHeaderCell.actionsButtonAriaLabel', '{title}. Click to view column header actions.', {
97
87
  title: title
98
88
  });
@@ -107,10 +97,10 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
107
97
  /**
108
98
  * Props to set on parent EuiDataGridHeaderCell
109
99
  */
110
- var _useState5 = useState(false),
111
- _useState6 = _slicedToArray(_useState5, 2),
112
- isColumnMoving = _useState6[0],
113
- setIsColumnMoving = _useState6[1];
100
+ var _useState3 = useState(false),
101
+ _useState4 = _slicedToArray(_useState3, 2),
102
+ isColumnMoving = _useState4[0],
103
+ setIsColumnMoving = _useState4[1];
114
104
  useEffect(function () {
115
105
  setPropsFromColumnActions({
116
106
  className: isPopoverOpen ? 'euiDataGridHeaderCell--isActionsPopoverOpen' : '',
@@ -156,17 +146,11 @@ export var ColumnActions = /*#__PURE__*/memo(function (_ref) {
156
146
  iconType: "boxesVertical",
157
147
  iconSize: "s",
158
148
  color: "text",
159
- css: styles.euiDataGridHeaderCell__actions,
160
149
  className: "euiDataGridHeaderCell__button",
161
150
  onClick: togglePopover,
162
151
  buttonRef: actionsButtonRef,
163
- onFocus: onFocus,
164
- onBlur: onBlur,
165
- tabIndex: 0 // Override EuiButtonIcon's conditional tabindex based on aria-hidden
166
- ,
167
- "aria-hidden": hasFocusTrap && !isActionsButtonFocused ? 'true' // prevent the actions button from being read on cell focus
168
- : undefined,
169
152
  "aria-label": hasFocusTrap ? actionsButtonAriaLabel : actionsEnterKeyInstructions,
153
+ css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.end, ";label:ColumnActions;"],
170
154
  "data-test-subj": "dataGridHeaderCellActionButton-".concat(id)
171
155
  }),
172
156
  isOpen: isPopoverOpen,
@@ -54,6 +54,7 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
54
54
  var width = columnWidths[id] || defaultColumnWidth;
55
55
  var columnType = schema[id] ? schema[id].columnType : null;
56
56
  var hasColumnActions = useHasColumnActions(actions);
57
+ var cellContentId = "dataGridHeaderCellContent-".concat(id);
57
58
  var classes = classnames(_defineProperty(_defineProperty({}, "euiDataGridHeaderCell--".concat(columnType), columnType), 'euiDataGridHeaderCell--hasColumnActions', hasColumnActions), displayHeaderCellProps === null || displayHeaderCellProps === void 0 ? void 0 : displayHeaderCellProps.className);
58
59
  var styles = useEuiMemoizedStyles(euiDataGridHeaderCellStyles);
59
60
  var contentStyles = [styles.euiDataGridHeaderCell__content, (columnType === 'numeric' || columnType === 'currency') && styles.right];
@@ -97,8 +98,7 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
97
98
  isLastColumn: isLastColumn,
98
99
  width: width,
99
100
  "aria-sort": ariaSort,
100
- "aria-label": displayAsText && "".concat(displayAsText, ", ") // ensure cell text content is read first, if available
101
- ,
101
+ "aria-labelledby": cellContentId,
102
102
  "aria-describedby": classnames(sortingAriaId, dragProps === null || dragProps === void 0 ? void 0 : dragProps['aria-describedby']),
103
103
  "data-column-moving": propsFromColumnActions['data-column-moving'] || (dragProps === null || dragProps === void 0 ? void 0 : dragProps['data-column-moving']) || undefined
104
104
  }), function (hasFocusTrap) {
@@ -107,11 +107,13 @@ export var EuiDataGridHeaderCell = /*#__PURE__*/memo(function (_ref) {
107
107
  }, ___EmotionJSX(EuiIcon, {
108
108
  type: "grabOmnidirectional",
109
109
  size: "s",
110
- css: styles.euiDataGridHeaderCell__actions
110
+ css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"]
111
111
  })), ___EmotionJSX("div", {
112
112
  css: contentStyles,
113
113
  className: "euiDataGridHeaderCell__content",
114
- title: title
114
+ title: title,
115
+ id: cellContentId,
116
+ "aria-label": displayAsText ? displayAsText : typeof children === 'string' ? children : undefined
115
117
  }, children), sortingArrow, sortingScreenReaderText, hasColumnActions && ___EmotionJSX(ColumnActions, {
116
118
  index: index,
117
119
  id: id,
@@ -9,7 +9,6 @@
9
9
  import { css } from '@emotion/react';
10
10
  import { euiCanAnimate, euiTextTruncate, logicalCSS, logicalTextAlignCSS } from '../../../../global_styling';
11
11
  import { euiDataGridCellOutlineSelectors } from '../cell/data_grid_cell.styles';
12
-
13
12
  /**
14
13
  * Styles only applied to data header cell content, not control header cells
15
14
  */
@@ -17,11 +16,18 @@ export var euiDataGridHeaderCellStyles = function euiDataGridHeaderCellStyles(eu
17
16
  var euiTheme = euiThemeContext.euiTheme;
18
17
  var _euiDataGridCellOutli = euiDataGridCellOutlineSelectors('.euiDataGridHeaderCell'),
19
18
  header = _euiDataGridCellOutli.header;
19
+ var hideAnimation = function hideAnimation(margin, translateX) {
20
+ return "\n ".concat(header.hideActions, " & {\n ").concat(logicalCSS('margin-left', margin), "\n transform: translateX(").concat(translateX, ") scale(0.01);\n opacity: 0;\n }\n ");
21
+ };
20
22
  return {
21
23
  euiDataGridHeaderCell__content: /*#__PURE__*/css("flex-grow:1;", euiTextTruncate(), ";;label:euiDataGridHeaderCell__content;"),
22
24
  // Numeric and currency schemas are aligned to the right
23
25
  right: /*#__PURE__*/css(logicalTextAlignCSS('right'), ";;label:right;"),
24
26
  euiDataGridHeaderCell__popover: /*#__PURE__*/css(logicalCSS('margin-left', 'auto'), "line-height:0;;label:euiDataGridHeaderCell__popover;"),
25
- euiDataGridHeaderCell__actions: /*#__PURE__*/css("overflow:hidden;display:flex;", header.hideActions, " &{", logicalCSS('width', 0), " opacity:0;}", euiCanAnimate, "{transition:inline-size ", euiTheme.animation.fast, " ease-in,opacity ", euiTheme.animation.slow, " ease-in;transform:none!important;animation:none!important;};label:euiDataGridHeaderCell__actions;")
27
+ euiDataGridHeaderCell__actions: {
28
+ action: /*#__PURE__*/css("overflow:hidden;display:flex;max-inline-size:24px;", euiCanAnimate, "{transition:transform ", euiTheme.animation.fast, " ease-in,opacity ", euiTheme.animation.slow, " ease-in,margin-left ", euiTheme.animation.fast, " ease-in;animation:none!important;};label:action;"),
29
+ start: /*#__PURE__*/css(hideAnimation("-".concat(euiTheme.size.m), '0%'), ";;label:start;"),
30
+ end: /*#__PURE__*/css(hideAnimation("-".concat(euiTheme.size.l), '50%'), ";;label:end;")
31
+ }
26
32
  };
27
33
  };
@@ -1,4 +1,4 @@
1
- var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label"];
1
+ var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label", "aria-labelledby"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -41,6 +41,7 @@ export var EuiDataGridHeaderCellWrapper = function EuiDataGridHeaderCellWrapper(
41
41
  isDragging = _ref.isDragging,
42
42
  _onKeyDown = _ref.onKeyDown,
43
43
  ariaLabel = _ref['aria-label'],
44
+ ariaLabelledby = _ref['aria-labelledby'],
44
45
  rest = _objectWithoutProperties(_ref, _excluded);
45
46
  var classes = classnames('euiDataGridHeaderCell', className);
46
47
  var styles = useEuiMemoizedStyles(euiDataGridHeaderCellWrapperStyles);
@@ -106,7 +107,8 @@ export var EuiDataGridHeaderCellWrapper = function EuiDataGridHeaderCellWrapper(
106
107
  style: width != null ? {
107
108
  width: "".concat(width, "px")
108
109
  } : {},
109
- "aria-label": renderFocusTrap ? ariaLabel : undefined
110
+ "aria-label": renderFocusTrap ? ariaLabel : undefined,
111
+ "aria-labelledby": renderFocusTrap ? ariaLabelledby : undefined
110
112
  }, rest), ___EmotionJSX(HandleInteractiveChildren, {
111
113
  cellEl: isDragging ? null : headerEl,
112
114
  renderFocusTrap: isDragging ? false : renderFocusTrap,
@@ -122,6 +124,7 @@ EuiDataGridHeaderCellWrapper.propTypes = {
122
124
  width: PropTypes.oneOfType([PropTypes.number.isRequired, PropTypes.oneOf([null])]),
123
125
  className: PropTypes.string,
124
126
  "aria-label": PropTypes.any,
127
+ "aria-labelledby": PropTypes.any,
125
128
  hasColumnActions: PropTypes.bool,
126
129
  isDragging: PropTypes.bool,
127
130
  onKeyDown: PropTypes.any
@@ -43,7 +43,7 @@ export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
43
43
  fontSize = _euiFontSize.fontSize,
44
44
  lineHeight = _euiFontSize.lineHeight;
45
45
  return {
46
- euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : formVariables.borderHovered, ";--euiFormControlStateStyle:solid;}&:focus-within{", highContrastModeStyles(euiThemeContext, {
46
+ euiFilePicker: /*#__PURE__*/css("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : euiTheme.colors.borderInteractiveFormsHoverProminent, ";--euiFormControlStateStyle:", highContrastMode ? 'solid' : 'dashed', ";}&:focus-within{", highContrastModeStyles(euiThemeContext, {
47
47
  forced: "\n ".concat(euiFormControlShowBackgroundLine(euiThemeContext, formVariables.borderFocused), "\n ")
48
48
  }), ";};label:euiFilePicker;"),
49
49
  isDroppingFile: /*#__PURE__*/css("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
@@ -62,8 +62,8 @@ export var euiFilePickerStyles = function euiFilePickerStyles(euiThemeContext) {
62
62
  forced: "\n text-decoration: underline;\n "
63
63
  }), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
64
64
  },
65
- euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", formVariables.borderColor, ");", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
66
- disabled: /*#__PURE__*/css(formStyles.disabled, ";label:disabled;"),
65
+ euiFilePicker__prompt: /*#__PURE__*/css("pointer-events:none;font-size:", fontSize, ";line-height:1;", euiTextTruncate(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", euiTheme.colors.borderBaseProminent, ");", euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
66
+ disabled: /*#__PURE__*/css(formStyles.disabled, "--euiFormControlStateColor:transparent;;label:disabled;"),
67
67
  // Skip the css() on the default height to avoid generating a className
68
68
  uncompressed: formStyles.uncompressed,
69
69
  compressed: /*#__PURE__*/css(formStyles.compressed, ";label:compressed;"),
@@ -27,7 +27,7 @@ var EuiIconPaperClip = function EuiIconPaperClip(_ref) {
27
27
  }, props), title ? ___EmotionJSX("title", {
28
28
  id: titleId
29
29
  }, title) : null, ___EmotionJSX("path", {
30
- d: "M9.84 2.019 3.046 8.57c-.987.952-1.133 2.517-.199 3.516.951 1.021 2.58 1.106 3.64.19.034-.03.068-.061.1-.092l5.655-5.452a.484.484 0 0 0 0-.703.53.53 0 0 0-.729 0L5.92 11.421c-.572.551-1.505.657-2.131.163a1.455 1.455 0 0 1-.118-2.211l6.899-6.651a2.646 2.646 0 0 1 3.644 0 2.422 2.422 0 0 1 0 3.513L7.3 12.901c-1.333 1.285-3.497 1.493-4.95.336-1.54-1.22-1.764-3.411-.5-4.897a3.33 3.33 0 0 1 .238-.252l5.78-5.572a.484.484 0 0 0 0-.703.53.53 0 0 0-.73 0l-5.78 5.572a4.36 4.36 0 0 0 0 6.324c2.188 2.109 5.202 1.31 6.66-.095l6.925-6.676a3.39 3.39 0 0 0 0-4.92C13.534.66 11.25.66 9.841 2.019z"
30
+ d: "M7 11c0 .423.105.648.229.771.123.124.348.229.771.229.423 0 .648-.105.771-.229.124-.123.229-.348.229-.771V5h1v6c0 .577-.145 1.102-.521 1.479C9.102 12.854 8.577 13 8 13c-.577 0-1.102-.145-1.479-.521C6.145 12.101 6 11.577 6 11V4c0-.719.215-1.468.716-2.046C7.226 1.364 7.996 1 9 1c1.005 0 1.773.365 2.284.954.5.578.716 1.327.716 2.046v7c0 1.103-.345 2.11-1.043 2.845C10.255 14.583 9.242 15 8 15c-1.242 0-2.255-.417-2.957-1.155C4.345 13.11 4 12.103 4 11V4h1v7c0 .897.279 1.64.768 2.155C6.253 13.666 6.99 14 8 14c1.01 0 1.747-.334 2.232-.845.49-.515.768-1.258.768-2.155V4c0-.531-.16-1.032-.472-1.392C10.227 2.26 9.745 2 9 2s-1.227.26-1.528.608C7.16 2.968 7 3.47 7 4v7Z"
31
31
  }));
32
32
  };
33
33
  export var icon = EuiIconPaperClip;
@@ -22,17 +22,18 @@ var EuiIconStreamsWired = function EuiIconStreamsWired(_ref) {
22
22
  xmlns: "http://www.w3.org/2000/svg",
23
23
  width: 16,
24
24
  height: 16,
25
+ fill: "none",
25
26
  viewBox: "0 0 16 16",
26
27
  "aria-labelledby": titleId
27
28
  }, props), title ? ___EmotionJSX("title", {
28
29
  id: titleId
29
30
  }, title) : null, ___EmotionJSX("path", {
30
31
  fillRule: "evenodd",
31
- d: "M13.5 1a1.5 1.5 0 1 1-1.413 2H11.5A1.5 1.5 0 0 0 10 4.5v1c0 .564-.19 1.082-.504 1.5H9.5l-.048.06a2.58 2.58 0 0 1-.352.36c-.01.01-.021.017-.032.025a2.501 2.501 0 0 1-.142.108l-.043.03c-.055.036-.11.07-.168.103l-.047.024c-.057.03-.115.06-.175.085-.018.008-.036.014-.055.021A2.475 2.475 0 0 1 7.5 8h-.504c.315.418.504.936.504 1.5v1A1.5 1.5 0 0 0 9 12h3.087a1.5 1.5 0 1 1 0 1H9a2.5 2.5 0 0 1-2.5-2.5v-1A1.5 1.5 0 0 0 5 8H3.913a1.5 1.5 0 1 1 0-1H7.5A1.5 1.5 0 0 0 9 5.5v-1A2.5 2.5 0 0 1 11.5 2h.587A1.5 1.5 0 0 1 13.5 1Zm0 11a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm-11-5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm11-5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
32
+ d: "M13.5 1a1.5 1.5 0 1 1-1.413 2H11.5A1.5 1.5 0 0 0 10 4.5V6a2.49 2.49 0 0 1-.504 1.5H9.5l-.048.06a2.58 2.58 0 0 1-.352.36c-.01.01-.021.017-.032.025a2.496 2.496 0 0 1-.142.108l-.043.03c-.055.036-.11.07-.168.103l-.047.024c-.057.03-.115.06-.175.085-.018.008-.036.014-.055.021A2.475 2.475 0 0 1 7.5 8.5h-.504c.315.418.504.936.504 1.5v1.5A1.5 1.5 0 0 0 9 13h3.087a1.5 1.5 0 1 1 0 1H9a2.5 2.5 0 0 1-2.5-2.5V10A1.5 1.5 0 0 0 5 8.5H3.913a1.5 1.5 0 1 1 0-1H7.5A1.5 1.5 0 0 0 9 6V4.5A2.5 2.5 0 0 1 11.5 2h.587A1.5 1.5 0 0 1 13.5 1Zm0 12a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm-11-5.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Zm11-5.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
32
33
  clipRule: "evenodd"
33
34
  }), ___EmotionJSX("path", {
34
35
  fillRule: "evenodd",
35
- d: "M13.5 6a1.5 1.5 0 1 1-1.413 2H9.948c.293-.287.536-.625.714-1h1.425A1.5 1.5 0 0 1 13.5 6Zm0 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
36
+ d: "M13.5 6.5a1.5 1.5 0 1 1-1.413 2H9.948c.293-.287.536-.625.714-1h1.425a1.5 1.5 0 0 1 1.413-1Zm0 1a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z",
36
37
  clipRule: "evenodd"
37
38
  }));
38
39
  };
@@ -36,19 +36,23 @@ export var useHighContrastModifications = function useHighContrastModifications(
36
36
  borderBasePrimary: systemTheme.colors.textPrimary,
37
37
  borderBaseAccent: systemTheme.colors.textAccent,
38
38
  borderBaseAccentSecondary: systemTheme.colors.textAccentSecondary,
39
+ borderBaseNeutral: systemTheme.colors.textNeutral,
39
40
  borderBaseSuccess: systemTheme.colors.textSuccess,
40
41
  borderBaseWarning: systemTheme.colors.textWarning,
42
+ borderBaseRisk: systemTheme.colors.textRisk,
41
43
  borderBaseDanger: systemTheme.colors.textDanger,
42
44
  borderBasePlain: borderColor,
43
45
  borderBaseSubdued: borderColor,
46
+ borderBaseProminent: borderColor,
44
47
  borderBaseDisabled: systemTheme.colors.textDisabled,
45
48
  borderBaseFloating: borderColor,
46
- borderBaseFormsControl: borderColor,
47
49
  borderStrongPrimary: systemTheme.colors.textPrimary,
48
50
  borderStrongAccent: systemTheme.colors.textAccent,
49
51
  borderStrongAccentSecondary: systemTheme.colors.textAccentSecondary,
52
+ borderStrongNeutral: systemTheme.colors.textNeutral,
50
53
  borderStrongSuccess: systemTheme.colors.textSuccess,
51
54
  borderStrongWarning: systemTheme.colors.textWarning,
55
+ borderStrongRisk: systemTheme.colors.textRisk,
52
56
  borderStrongDanger: systemTheme.colors.textDanger
53
57
  };
54
58
  return {
package/eui.d.ts CHANGED
@@ -455,38 +455,46 @@ declare module '@elastic/eui/src/services/theme/high_contrast_overrides' {
455
455
  borderBasePrimary: string;
456
456
  borderBaseAccent: string;
457
457
  borderBaseAccentSecondary: string;
458
+ borderBaseNeutral: string;
458
459
  borderBaseSuccess: string;
459
460
  borderBaseWarning: string;
461
+ borderBaseRisk: string;
460
462
  borderBaseDanger: string;
461
463
  borderBasePlain: string;
462
464
  borderBaseSubdued: string;
465
+ borderBaseProminent: string;
463
466
  borderBaseDisabled: string;
464
467
  borderBaseFloating: string;
465
- borderBaseFormsControl: string;
466
468
  borderStrongPrimary: string;
467
469
  borderStrongAccent: string;
468
470
  borderStrongAccentSecondary: string;
471
+ borderStrongNeutral: string;
469
472
  borderStrongSuccess: string;
470
473
  borderStrongWarning: string;
474
+ borderStrongRisk: string;
471
475
  borderStrongDanger: string;
472
476
  };
473
477
  DARK: {
474
478
  borderBasePrimary: string;
475
479
  borderBaseAccent: string;
476
480
  borderBaseAccentSecondary: string;
481
+ borderBaseNeutral: string;
477
482
  borderBaseSuccess: string;
478
483
  borderBaseWarning: string;
484
+ borderBaseRisk: string;
479
485
  borderBaseDanger: string;
480
486
  borderBasePlain: string;
481
487
  borderBaseSubdued: string;
488
+ borderBaseProminent: string;
482
489
  borderBaseDisabled: string;
483
490
  borderBaseFloating: string;
484
- borderBaseFormsControl: string;
485
491
  borderStrongPrimary: string;
486
492
  borderStrongAccent: string;
487
493
  borderStrongAccentSecondary: string;
494
+ borderStrongNeutral: string;
488
495
  borderStrongSuccess: string;
489
496
  borderStrongWarning: string;
497
+ borderStrongRisk: string;
490
498
  borderStrongDanger: string;
491
499
  };
492
500
  };
@@ -15256,6 +15264,7 @@ declare module '@elastic/eui/src/components/datagrid/data_grid_types' {
15256
15264
  width?: number | null;
15257
15265
  className?: string;
15258
15266
  'aria-label'?: AriaAttributes['aria-label'];
15267
+ 'aria-labelledby'?: AriaAttributes['aria-labelledby'];
15259
15268
  hasColumnActions?: boolean;
15260
15269
  isDragging?: boolean;
15261
15270
  onKeyDown?: KeyboardEventHandler;
@@ -16639,7 +16648,11 @@ declare module '@elastic/eui/src/components/datagrid/body/header/data_grid_heade
16639
16648
  euiDataGridHeaderCell__content: import("@emotion/react").SerializedStyles;
16640
16649
  right: import("@emotion/react").SerializedStyles;
16641
16650
  euiDataGridHeaderCell__popover: import("@emotion/react").SerializedStyles;
16642
- euiDataGridHeaderCell__actions: import("@emotion/react").SerializedStyles;
16651
+ euiDataGridHeaderCell__actions: {
16652
+ action: import("@emotion/react").SerializedStyles;
16653
+ start: import("@emotion/react").SerializedStyles;
16654
+ end: import("@emotion/react").SerializedStyles;
16655
+ };
16643
16656
  };
16644
16657
 
16645
16658
  }
@@ -89,7 +89,9 @@ var CollapsedItemActions = exports.CollapsedItemActions = function CollapsedItem
89
89
  },
90
90
  toolTipContent: toolTipContent,
91
91
  toolTipProps: {
92
- delay: 'long'
92
+ delay: 'long',
93
+ // Avoid screen-readers announcing the same text twice
94
+ disableScreenReaderOutput: typeof buttonContent === 'string' && buttonContent === toolTipContent
93
95
  }
94
96
  }, buttonContent));
95
97
  }
@@ -39,6 +39,12 @@ var DefaultItemAction = exports.DefaultItemAction = function DefaultItemAction(_
39
39
  var icon = action.icon ? (0, _action_types.callWithItemIfFunction)(item)(action.icon) : undefined;
40
40
  var actionContent = (0, _action_types.callWithItemIfFunction)(item)(action.name);
41
41
  var tooltipContent = (0, _action_types.callWithItemIfFunction)(item)(action.description);
42
+ var tooltipProps = {
43
+ content: tooltipContent,
44
+ delay: 'long',
45
+ // Avoid screen-readers announcing the same text twice
46
+ disableScreenReaderOutput: typeof actionContent === 'string' && actionContent === tooltipContent
47
+ };
42
48
  var href = (0, _action_types.callWithItemIfFunction)(item)(action.href);
43
49
  var dataTestSubj = (0, _action_types.callWithItemIfFunction)(item)(action['data-test-subj']);
44
50
  var ariaLabelId = (0, _accessibility.useGeneratedHtmlId)();
@@ -82,8 +88,5 @@ var DefaultItemAction = exports.DefaultItemAction = function DefaultItemAction(_
82
88
  flush: "right"
83
89
  }, actionContent);
84
90
  }
85
- return enabled ? (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_tool_tip.EuiToolTip, {
86
- content: tooltipContent,
87
- delay: "long"
88
- }, button), ariaLabelledBy) : (0, _react2.jsx)(_react.default.Fragment, null, button, ariaLabelledBy);
91
+ return enabled ? (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_tool_tip.EuiToolTip, tooltipProps, button), ariaLabelledBy) : (0, _react2.jsx)(_react.default.Fragment, null, button, ariaLabelledBy);
89
92
  };
@@ -43,8 +43,7 @@ var EuiButtonGroupButton = exports.EuiButtonGroupButton = function EuiButtonGrou
43
43
  id = _ref.id,
44
44
  isDisabled = _ref.isDisabled,
45
45
  isIconOnly = _ref.isIconOnly,
46
- _ref$isSelected = _ref.isSelected,
47
- isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
46
+ isSelected = _ref.isSelected,
48
47
  label = _ref.label,
49
48
  value = _ref.value,
50
49
  size = _ref.size,
@@ -213,5 +212,5 @@ var EuiButtonGroupButtonWithToolTip = function EuiButtonGroupButtonWithToolTip(_
213
212
  EuiButtonGroupButtonWithToolTip.propTypes = {
214
213
  children: _propTypes.default.element.isRequired,
215
214
  wrapperCss: _propTypes.default.any.isRequired,
216
- isSelected: _propTypes.default.bool.isRequired
215
+ isSelected: _propTypes.default.bool
217
216
  };
@@ -89,16 +89,6 @@ var ColumnActions = exports.ColumnActions = /*#__PURE__*/(0, _react.memo)(functi
89
89
  var closePopover = (0, _react.useCallback)(function () {
90
90
  setIsPopoverOpen(false);
91
91
  }, []);
92
- var _useState3 = (0, _react.useState)(false),
93
- _useState4 = _slicedToArray(_useState3, 2),
94
- isActionsButtonFocused = _useState4[0],
95
- setIsActionsButtonFocused = _useState4[1];
96
- var onFocus = (0, _react.useCallback)(function () {
97
- return setIsActionsButtonFocused(true);
98
- }, []);
99
- var onBlur = (0, _react.useCallback)(function () {
100
- return setIsActionsButtonFocused(false);
101
- }, []);
102
92
  var actionsButtonAriaLabel = (0, _i18n.useEuiI18n)('euiDataGridHeaderCell.actionsButtonAriaLabel', '{title}. Click to view column header actions.', {
103
93
  title: title
104
94
  });
@@ -113,10 +103,10 @@ var ColumnActions = exports.ColumnActions = /*#__PURE__*/(0, _react.memo)(functi
113
103
  /**
114
104
  * Props to set on parent EuiDataGridHeaderCell
115
105
  */
116
- var _useState5 = (0, _react.useState)(false),
117
- _useState6 = _slicedToArray(_useState5, 2),
118
- isColumnMoving = _useState6[0],
119
- setIsColumnMoving = _useState6[1];
106
+ var _useState3 = (0, _react.useState)(false),
107
+ _useState4 = _slicedToArray(_useState3, 2),
108
+ isColumnMoving = _useState4[0],
109
+ setIsColumnMoving = _useState4[1];
120
110
  (0, _react.useEffect)(function () {
121
111
  setPropsFromColumnActions({
122
112
  className: isPopoverOpen ? 'euiDataGridHeaderCell--isActionsPopoverOpen' : '',
@@ -162,17 +152,11 @@ var ColumnActions = exports.ColumnActions = /*#__PURE__*/(0, _react.memo)(functi
162
152
  iconType: "boxesVertical",
163
153
  iconSize: "s",
164
154
  color: "text",
165
- css: styles.euiDataGridHeaderCell__actions,
166
155
  className: "euiDataGridHeaderCell__button",
167
156
  onClick: togglePopover,
168
157
  buttonRef: actionsButtonRef,
169
- onFocus: onFocus,
170
- onBlur: onBlur,
171
- tabIndex: 0 // Override EuiButtonIcon's conditional tabindex based on aria-hidden
172
- ,
173
- "aria-hidden": hasFocusTrap && !isActionsButtonFocused ? 'true' // prevent the actions button from being read on cell focus
174
- : undefined,
175
158
  "aria-label": hasFocusTrap ? actionsButtonAriaLabel : actionsEnterKeyInstructions,
159
+ css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.end, ";label:ColumnActions;"],
176
160
  "data-test-subj": "dataGridHeaderCellActionButton-".concat(id)
177
161
  }),
178
162
  isOpen: isPopoverOpen,
@@ -61,6 +61,7 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
61
61
  var width = columnWidths[id] || defaultColumnWidth;
62
62
  var columnType = schema[id] ? schema[id].columnType : null;
63
63
  var hasColumnActions = (0, _column_actions.useHasColumnActions)(actions);
64
+ var cellContentId = "dataGridHeaderCellContent-".concat(id);
64
65
  var classes = (0, _classnames2.default)(_defineProperty(_defineProperty({}, "euiDataGridHeaderCell--".concat(columnType), columnType), 'euiDataGridHeaderCell--hasColumnActions', hasColumnActions), displayHeaderCellProps === null || displayHeaderCellProps === void 0 ? void 0 : displayHeaderCellProps.className);
65
66
  var styles = (0, _services.useEuiMemoizedStyles)(_data_grid_header_cell.euiDataGridHeaderCellStyles);
66
67
  var contentStyles = [styles.euiDataGridHeaderCell__content, (columnType === 'numeric' || columnType === 'currency') && styles.right];
@@ -104,8 +105,7 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
104
105
  isLastColumn: isLastColumn,
105
106
  width: width,
106
107
  "aria-sort": ariaSort,
107
- "aria-label": displayAsText && "".concat(displayAsText, ", ") // ensure cell text content is read first, if available
108
- ,
108
+ "aria-labelledby": cellContentId,
109
109
  "aria-describedby": (0, _classnames2.default)(sortingAriaId, dragProps === null || dragProps === void 0 ? void 0 : dragProps['aria-describedby']),
110
110
  "data-column-moving": propsFromColumnActions['data-column-moving'] || (dragProps === null || dragProps === void 0 ? void 0 : dragProps['data-column-moving']) || undefined
111
111
  }), function (hasFocusTrap) {
@@ -114,11 +114,13 @@ var EuiDataGridHeaderCell = exports.EuiDataGridHeaderCell = /*#__PURE__*/(0, _re
114
114
  }, (0, _react2.jsx)(_icon.EuiIcon, {
115
115
  type: "grabOmnidirectional",
116
116
  size: "s",
117
- css: styles.euiDataGridHeaderCell__actions
117
+ css: [styles.euiDataGridHeaderCell__actions.action, styles.euiDataGridHeaderCell__actions.start, ";label:EuiDataGridHeaderCell;"]
118
118
  })), (0, _react2.jsx)("div", {
119
119
  css: contentStyles,
120
120
  className: "euiDataGridHeaderCell__content",
121
- title: title
121
+ title: title,
122
+ id: cellContentId,
123
+ "aria-label": displayAsText ? displayAsText : typeof children === 'string' ? children : undefined
122
124
  }, children), sortingArrow, sortingScreenReaderText, hasColumnActions && (0, _react2.jsx)(_column_actions.ColumnActions, {
123
125
  index: index,
124
126
  id: id,
@@ -22,11 +22,18 @@ var euiDataGridHeaderCellStyles = exports.euiDataGridHeaderCellStyles = function
22
22
  var euiTheme = euiThemeContext.euiTheme;
23
23
  var _euiDataGridCellOutli = (0, _data_grid_cell.euiDataGridCellOutlineSelectors)('.euiDataGridHeaderCell'),
24
24
  header = _euiDataGridCellOutli.header;
25
+ var hideAnimation = function hideAnimation(margin, translateX) {
26
+ return "\n ".concat(header.hideActions, " & {\n ").concat((0, _global_styling.logicalCSS)('margin-left', margin), "\n transform: translateX(").concat(translateX, ") scale(0.01);\n opacity: 0;\n }\n ");
27
+ };
25
28
  return {
26
29
  euiDataGridHeaderCell__content: /*#__PURE__*/(0, _react.css)("flex-grow:1;", (0, _global_styling.euiTextTruncate)(), ";;label:euiDataGridHeaderCell__content;"),
27
30
  // Numeric and currency schemas are aligned to the right
28
31
  right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalTextAlignCSS)('right'), ";;label:right;"),
29
32
  euiDataGridHeaderCell__popover: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', 'auto'), "line-height:0;;label:euiDataGridHeaderCell__popover;"),
30
- euiDataGridHeaderCell__actions: /*#__PURE__*/(0, _react.css)("overflow:hidden;display:flex;", header.hideActions, " &{", (0, _global_styling.logicalCSS)('width', 0), " opacity:0;}", _global_styling.euiCanAnimate, "{transition:inline-size ", euiTheme.animation.fast, " ease-in,opacity ", euiTheme.animation.slow, " ease-in;transform:none!important;animation:none!important;};label:euiDataGridHeaderCell__actions;")
33
+ euiDataGridHeaderCell__actions: {
34
+ action: /*#__PURE__*/(0, _react.css)("overflow:hidden;display:flex;max-inline-size:24px;", _global_styling.euiCanAnimate, "{transition:transform ", euiTheme.animation.fast, " ease-in,opacity ", euiTheme.animation.slow, " ease-in,margin-left ", euiTheme.animation.fast, " ease-in;animation:none!important;};label:action;"),
35
+ start: /*#__PURE__*/(0, _react.css)(hideAnimation("-".concat(euiTheme.size.m), '0%'), ";;label:start;"),
36
+ end: /*#__PURE__*/(0, _react.css)(hideAnimation("-".concat(euiTheme.size.l), '50%'), ";;label:end;")
37
+ }
31
38
  };
32
39
  };
@@ -13,7 +13,7 @@ var _focus = require("../../utils/focus");
13
13
  var _focus_utils = require("../cell/focus_utils");
14
14
  var _data_grid_header_cell_wrapper = require("./data_grid_header_cell_wrapper.styles");
15
15
  var _react2 = require("@emotion/react");
16
- var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label"];
16
+ var _excluded = ["id", "index", "isLastColumn", "width", "className", "children", "hasColumnActions", "isDragging", "onKeyDown", "aria-label", "aria-labelledby"];
17
17
  /*
18
18
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
19
19
  * or more contributor license agreements. Licensed under the Elastic License
@@ -49,6 +49,7 @@ var EuiDataGridHeaderCellWrapper = exports.EuiDataGridHeaderCellWrapper = functi
49
49
  isDragging = _ref.isDragging,
50
50
  _onKeyDown = _ref.onKeyDown,
51
51
  ariaLabel = _ref['aria-label'],
52
+ ariaLabelledby = _ref['aria-labelledby'],
52
53
  rest = _objectWithoutProperties(_ref, _excluded);
53
54
  var classes = (0, _classnames.default)('euiDataGridHeaderCell', className);
54
55
  var styles = (0, _services.useEuiMemoizedStyles)(_data_grid_header_cell_wrapper.euiDataGridHeaderCellWrapperStyles);
@@ -114,7 +115,8 @@ var EuiDataGridHeaderCellWrapper = exports.EuiDataGridHeaderCellWrapper = functi
114
115
  style: width != null ? {
115
116
  width: "".concat(width, "px")
116
117
  } : {},
117
- "aria-label": renderFocusTrap ? ariaLabel : undefined
118
+ "aria-label": renderFocusTrap ? ariaLabel : undefined,
119
+ "aria-labelledby": renderFocusTrap ? ariaLabelledby : undefined
118
120
  }, rest), (0, _react2.jsx)(_focus_utils.HandleInteractiveChildren, {
119
121
  cellEl: isDragging ? null : headerEl,
120
122
  renderFocusTrap: isDragging ? false : renderFocusTrap,
@@ -130,6 +132,7 @@ EuiDataGridHeaderCellWrapper.propTypes = {
130
132
  width: _propTypes.default.oneOfType([_propTypes.default.number.isRequired, _propTypes.default.oneOf([null])]),
131
133
  className: _propTypes.default.string,
132
134
  "aria-label": _propTypes.default.any,
135
+ "aria-labelledby": _propTypes.default.any,
133
136
  hasColumnActions: _propTypes.default.bool,
134
137
  isDragging: _propTypes.default.bool,
135
138
  onKeyDown: _propTypes.default.any
@@ -47,7 +47,7 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
47
47
  fontSize = _euiFontSize.fontSize,
48
48
  lineHeight = _euiFontSize.lineHeight;
49
49
  return {
50
- euiFilePicker: /*#__PURE__*/(0, _react.css)("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : formVariables.borderHovered, ";--euiFormControlStateStyle:solid;}&:focus-within{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
50
+ euiFilePicker: /*#__PURE__*/(0, _react.css)("--euiFormControlLeftIconsCount:1;position:relative;border-radius:", formVariables.controlBorderRadius, ";&:has(input:focus){--euiFormControlStateColor:", formVariables.borderFocused, ";}&:hover{--euiFormControlStateColor:", highContrastMode ? euiTheme.border.color : euiTheme.colors.borderInteractiveFormsHoverProminent, ";--euiFormControlStateStyle:", highContrastMode ? 'solid' : 'dashed', ";}&:focus-within{", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
51
51
  forced: "\n ".concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, formVariables.borderFocused), "\n ")
52
52
  }), ";};label:euiFilePicker;"),
53
53
  isDroppingFile: /*#__PURE__*/(0, _react.css)("--euiFormControlStateColor:", euiTheme.colors.borderStrongSuccess, ";--euiFormControlStateStyle:", highContrastMode === 'forced' ? 'solid' : 'dashed', ";background-color:", euiTheme.components.forms.backgroundDropping, ";;label:isDroppingFile;"),
@@ -66,8 +66,8 @@ var euiFilePickerStyles = exports.euiFilePickerStyles = function euiFilePickerSt
66
66
  forced: "\n text-decoration: underline;\n "
67
67
  }), ";}.euiFilePicker__icon{transform:scale(1.05);}}};label:largeInteractive;")
68
68
  },
69
- euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.euiTextTruncate)(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", formVariables.borderColor, ");", _global_styling.euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
70
- disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, ";label:disabled;"),
69
+ euiFilePicker__prompt: /*#__PURE__*/(0, _react.css)("pointer-events:none;font-size:", fontSize, ";line-height:1;", (0, _global_styling.euiTextTruncate)(), " color:", euiTheme.colors.textParagraph, ";border:", euiTheme.border.width.thin, " var(--euiFormControlStateStyle, dashed) var(--euiFormControlStateColor, ", euiTheme.colors.borderBaseProminent, ");", _global_styling.euiCanAnimate, "{transition:border-color ", euiTheme.animation.fast, " ease-in,background-color ", euiTheme.animation.fast, " ease-in;};label:euiFilePicker__prompt;"),
70
+ disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, "--euiFormControlStateColor:transparent;;label:disabled;"),
71
71
  // Skip the css() on the default height to avoid generating a className
72
72
  uncompressed: formStyles.uncompressed,
73
73
  compressed: /*#__PURE__*/(0, _react.css)(formStyles.compressed, ";label:compressed;"),
@@ -34,7 +34,7 @@ var EuiIconPaperClip = function EuiIconPaperClip(_ref) {
34
34
  }, props), title ? (0, _react2.jsx)("title", {
35
35
  id: titleId
36
36
  }, title) : null, (0, _react2.jsx)("path", {
37
- d: "M9.84 2.019 3.046 8.57c-.987.952-1.133 2.517-.199 3.516.951 1.021 2.58 1.106 3.64.19.034-.03.068-.061.1-.092l5.655-5.452a.484.484 0 0 0 0-.703.53.53 0 0 0-.729 0L5.92 11.421c-.572.551-1.505.657-2.131.163a1.455 1.455 0 0 1-.118-2.211l6.899-6.651a2.646 2.646 0 0 1 3.644 0 2.422 2.422 0 0 1 0 3.513L7.3 12.901c-1.333 1.285-3.497 1.493-4.95.336-1.54-1.22-1.764-3.411-.5-4.897a3.33 3.33 0 0 1 .238-.252l5.78-5.572a.484.484 0 0 0 0-.703.53.53 0 0 0-.73 0l-5.78 5.572a4.36 4.36 0 0 0 0 6.324c2.188 2.109 5.202 1.31 6.66-.095l6.925-6.676a3.39 3.39 0 0 0 0-4.92C13.534.66 11.25.66 9.841 2.019z"
37
+ d: "M7 11c0 .423.105.648.229.771.123.124.348.229.771.229.423 0 .648-.105.771-.229.124-.123.229-.348.229-.771V5h1v6c0 .577-.145 1.102-.521 1.479C9.102 12.854 8.577 13 8 13c-.577 0-1.102-.145-1.479-.521C6.145 12.101 6 11.577 6 11V4c0-.719.215-1.468.716-2.046C7.226 1.364 7.996 1 9 1c1.005 0 1.773.365 2.284.954.5.578.716 1.327.716 2.046v7c0 1.103-.345 2.11-1.043 2.845C10.255 14.583 9.242 15 8 15c-1.242 0-2.255-.417-2.957-1.155C4.345 13.11 4 12.103 4 11V4h1v7c0 .897.279 1.64.768 2.155C6.253 13.666 6.99 14 8 14c1.01 0 1.747-.334 2.232-.845.49-.515.768-1.258.768-2.155V4c0-.531-.16-1.032-.472-1.392C10.227 2.26 9.745 2 9 2s-1.227.26-1.528.608C7.16 2.968 7 3.47 7 4v7Z"
38
38
  }));
39
39
  };
40
40
  var icon = exports.icon = EuiIconPaperClip;