@elastic/eui 91.3.1 → 92.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 (160) hide show
  1. package/dist/eui_charts_theme.js.map +1 -1
  2. package/dist/eui_theme_dark.css +0 -513
  3. package/dist/eui_theme_dark.min.css +1 -1
  4. package/dist/eui_theme_light.css +0 -513
  5. package/dist/eui_theme_light.min.css +1 -1
  6. package/es/components/basic_table/basic_table.js +5 -5
  7. package/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  8. package/es/components/filter_group/filter_button.js +20 -13
  9. package/es/components/filter_group/filter_button.styles.js +11 -20
  10. package/es/components/flyout/flyout.js +4 -4
  11. package/es/components/flyout/flyout_resizable.js +127 -0
  12. package/es/components/flyout/flyout_resizable.styles.js +27 -0
  13. package/es/components/flyout/index.js +2 -1
  14. package/es/components/form/range/dual_range.js +15 -66
  15. package/es/components/form/range/range.js +6 -5
  16. package/es/components/form/range/range_slider.js +28 -22
  17. package/es/components/form/text_area/text_area.js +39 -3
  18. package/es/components/index.js +0 -2
  19. package/es/components/markdown_editor/markdown_editor.js +12 -13
  20. package/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  21. package/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  22. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +5 -0
  23. package/es/components/tree_view/tree_view.js +23 -25
  24. package/es/utils/prop_types/is.js +2 -2
  25. package/eui.d.ts +825 -1141
  26. package/i18ntokens.json +68 -338
  27. package/lib/components/basic_table/basic_table.js +5 -5
  28. package/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  29. package/lib/components/filter_group/filter_button.js +20 -13
  30. package/lib/components/filter_group/filter_button.styles.js +11 -20
  31. package/lib/components/flyout/flyout.js +4 -4
  32. package/lib/components/flyout/flyout_resizable.js +136 -0
  33. package/lib/components/flyout/flyout_resizable.styles.js +32 -0
  34. package/lib/components/flyout/index.js +8 -1
  35. package/lib/components/form/range/dual_range.js +15 -66
  36. package/lib/components/form/range/range.js +6 -5
  37. package/lib/components/form/range/range_slider.js +27 -21
  38. package/lib/components/form/text_area/text_area.js +42 -3
  39. package/lib/components/index.js +0 -22
  40. package/lib/components/markdown_editor/markdown_editor.js +12 -13
  41. package/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  42. package/lib/components/pagination/pagination_button.js +79 -2
  43. package/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  44. package/lib/components/tree_view/tree_view.js +23 -25
  45. package/lib/utils/prop_types/is.js +2 -2
  46. package/optimize/es/components/basic_table/basic_table.js +5 -5
  47. package/optimize/es/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  48. package/optimize/es/components/filter_group/filter_button.js +20 -13
  49. package/optimize/es/components/filter_group/filter_button.styles.js +11 -20
  50. package/optimize/es/components/flyout/flyout.js +4 -4
  51. package/optimize/es/components/flyout/flyout_resizable.js +121 -0
  52. package/optimize/es/components/flyout/flyout_resizable.styles.js +27 -0
  53. package/optimize/es/components/flyout/index.js +2 -1
  54. package/optimize/es/components/form/range/dual_range.js +15 -66
  55. package/optimize/es/components/form/range/range.js +6 -5
  56. package/optimize/es/components/form/range/range_slider.js +26 -21
  57. package/optimize/es/components/form/text_area/text_area.js +29 -3
  58. package/optimize/es/components/index.js +0 -2
  59. package/optimize/es/components/markdown_editor/markdown_editor.js +12 -13
  60. package/optimize/es/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  61. package/optimize/es/components/selectable/selectable_list/selectable_list_item.js +1 -1
  62. package/optimize/es/components/tree_view/tree_view.js +23 -25
  63. package/optimize/es/utils/prop_types/is.js +2 -2
  64. package/optimize/lib/components/basic_table/basic_table.js +5 -5
  65. package/optimize/lib/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  66. package/optimize/lib/components/filter_group/filter_button.js +20 -13
  67. package/optimize/lib/components/filter_group/filter_button.styles.js +11 -20
  68. package/optimize/lib/components/flyout/flyout.js +4 -4
  69. package/optimize/lib/components/flyout/flyout_resizable.js +131 -0
  70. package/optimize/lib/components/flyout/flyout_resizable.styles.js +32 -0
  71. package/optimize/lib/components/flyout/index.js +8 -1
  72. package/optimize/lib/components/form/range/dual_range.js +15 -66
  73. package/optimize/lib/components/form/range/range.js +6 -5
  74. package/optimize/lib/components/form/range/range_slider.js +26 -21
  75. package/optimize/lib/components/form/text_area/text_area.js +32 -3
  76. package/optimize/lib/components/index.js +0 -22
  77. package/optimize/lib/components/markdown_editor/markdown_editor.js +12 -13
  78. package/optimize/lib/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  79. package/optimize/lib/components/selectable/selectable_list/selectable_list_item.js +1 -1
  80. package/optimize/lib/components/tree_view/tree_view.js +23 -25
  81. package/optimize/lib/utils/prop_types/is.js +2 -2
  82. package/package.json +2 -2
  83. package/src/components/index.scss +0 -2
  84. package/test-env/components/basic_table/basic_table.js +5 -5
  85. package/test-env/components/drag_and_drop/drag_and_drop.a11y.js +1 -1
  86. package/test-env/components/filter_group/filter_button.js +20 -13
  87. package/test-env/components/filter_group/filter_button.styles.js +11 -20
  88. package/test-env/components/flyout/flyout_resizable.js +131 -0
  89. package/test-env/components/flyout/flyout_resizable.styles.js +32 -0
  90. package/test-env/components/flyout/index.js +8 -1
  91. package/test-env/components/form/range/dual_range.js +15 -66
  92. package/test-env/components/form/range/range.js +6 -5
  93. package/test-env/components/form/range/range_slider.js +27 -21
  94. package/test-env/components/form/text_area/text_area.js +42 -3
  95. package/test-env/components/index.js +0 -22
  96. package/test-env/components/markdown_editor/markdown_editor.js +12 -13
  97. package/test-env/components/page_template/bottom_bar/page_bottom_bar.js +1 -1
  98. package/test-env/components/pagination/pagination_button.js +79 -2
  99. package/test-env/components/selectable/selectable_list/selectable_list_item.js +1 -1
  100. package/test-env/components/tree_view/tree_view.js +23 -25
  101. package/test-env/utils/prop_types/is.js +2 -2
  102. package/es/components/control_bar/control_bar.a11y.js +0 -133
  103. package/es/components/control_bar/control_bar.js +0 -609
  104. package/es/components/control_bar/index.js +0 -9
  105. package/es/components/notification/index.js +0 -9
  106. package/es/components/notification/notification_event.a11y.js +0 -104
  107. package/es/components/notification/notification_event.js +0 -288
  108. package/es/components/notification/notification_event_messages.js +0 -79
  109. package/es/components/notification/notification_event_meta.js +0 -148
  110. package/es/components/notification/notification_event_read_button.js +0 -86
  111. package/es/components/notification/notification_event_read_icon.js +0 -77
  112. package/lib/components/control_bar/control_bar.a11y.js +0 -134
  113. package/lib/components/control_bar/control_bar.js +0 -441
  114. package/lib/components/control_bar/index.js +0 -12
  115. package/lib/components/notification/index.js +0 -12
  116. package/lib/components/notification/notification_event.a11y.js +0 -105
  117. package/lib/components/notification/notification_event.js +0 -297
  118. package/lib/components/notification/notification_event_messages.js +0 -88
  119. package/lib/components/notification/notification_event_meta.js +0 -157
  120. package/lib/components/notification/notification_event_read_button.js +0 -93
  121. package/lib/components/notification/notification_event_read_icon.js +0 -64
  122. package/optimize/es/components/control_bar/control_bar.a11y.js +0 -128
  123. package/optimize/es/components/control_bar/control_bar.js +0 -308
  124. package/optimize/es/components/control_bar/index.js +0 -9
  125. package/optimize/es/components/notification/index.js +0 -9
  126. package/optimize/es/components/notification/notification_event.a11y.js +0 -99
  127. package/optimize/es/components/notification/notification_event.js +0 -114
  128. package/optimize/es/components/notification/notification_event_messages.js +0 -63
  129. package/optimize/es/components/notification/notification_event_meta.js +0 -106
  130. package/optimize/es/components/notification/notification_event_read_button.js +0 -44
  131. package/optimize/es/components/notification/notification_event_read_icon.js +0 -44
  132. package/optimize/lib/components/control_bar/control_bar.a11y.js +0 -134
  133. package/optimize/lib/components/control_bar/control_bar.js +0 -301
  134. package/optimize/lib/components/control_bar/index.js +0 -12
  135. package/optimize/lib/components/notification/index.js +0 -12
  136. package/optimize/lib/components/notification/notification_event.a11y.js +0 -105
  137. package/optimize/lib/components/notification/notification_event.js +0 -123
  138. package/optimize/lib/components/notification/notification_event_messages.js +0 -74
  139. package/optimize/lib/components/notification/notification_event_meta.js +0 -117
  140. package/optimize/lib/components/notification/notification_event_read_button.js +0 -51
  141. package/optimize/lib/components/notification/notification_event_read_icon.js +0 -51
  142. package/src/components/control_bar/_control_bar.scss +0 -232
  143. package/src/components/control_bar/_index.scss +0 -2
  144. package/src/components/control_bar/_variables.scss +0 -12
  145. package/src/components/notification/_index.scss +0 -5
  146. package/src/components/notification/_notification_event.scss +0 -40
  147. package/src/components/notification/_notification_event_messages.scss +0 -17
  148. package/src/components/notification/_notification_event_meta.scss +0 -44
  149. package/src/components/notification/_notification_event_read_button.scss +0 -5
  150. package/src/components/notification/_notification_event_read_icon.scss +0 -12
  151. package/test-env/components/control_bar/control_bar.a11y.js +0 -134
  152. package/test-env/components/control_bar/control_bar.js +0 -436
  153. package/test-env/components/control_bar/index.js +0 -12
  154. package/test-env/components/notification/index.js +0 -12
  155. package/test-env/components/notification/notification_event.a11y.js +0 -105
  156. package/test-env/components/notification/notification_event.js +0 -296
  157. package/test-env/components/notification/notification_event_messages.js +0 -85
  158. package/test-env/components/notification/notification_event_meta.js +0 -154
  159. package/test-env/components/notification/notification_event_read_button.js +0 -92
  160. package/test-env/components/notification/notification_event_read_icon.js +0 -63
@@ -1,117 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.EuiNotificationEventMeta = void 0;
9
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- var _react = _interopRequireWildcard(require("react"));
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
- var _icon = require("../icon");
14
- var _badge = require("../badge");
15
- var _popover = require("../popover");
16
- var _button = require("../button");
17
- var _context_menu = require("../context_menu");
18
- var _i18n = require("../i18n");
19
- var _services = require("../../services");
20
- var _react2 = require("@emotion/react");
21
- 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); }
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
- /*
24
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
25
- * or more contributor license agreements. Licensed under the Elastic License
26
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
27
- * in compliance with, at your election, the Elastic License 2.0 or the Server
28
- * Side Public License, v 1.
29
- */
30
-
31
- var EuiNotificationEventMeta = function EuiNotificationEventMeta(_ref) {
32
- var id = _ref.id,
33
- iconType = _ref.iconType,
34
- type = _ref.type,
35
- time = _ref.time,
36
- _ref$badgeColor = _ref.badgeColor,
37
- badgeColor = _ref$badgeColor === void 0 ? 'hollow' : _ref$badgeColor,
38
- severity = _ref.severity,
39
- eventName = _ref.eventName,
40
- iconAriaLabel = _ref.iconAriaLabel,
41
- onOpenContextMenu = _ref.onOpenContextMenu;
42
- var _useState = (0, _react.useState)(false),
43
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
44
- isPopoverOpen = _useState2[0],
45
- setIsPopoverOpen = _useState2[1];
46
- var classes = (0, _classnames.default)('euiNotificationEventMeta', {
47
- 'euiNotificationEventMeta--hasContextMenu': onOpenContextMenu
48
- });
49
- var _useState3 = (0, _react.useState)([]),
50
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
51
- contextMenuItems = _useState4[0],
52
- setContextMenuItems = _useState4[1];
53
- var randomPopoverId = (0, _services.useGeneratedHtmlId)();
54
- var ariaAttribute = iconAriaLabel ? {
55
- 'aria-label': iconAriaLabel
56
- } : {
57
- 'aria-hidden': true
58
- };
59
- var onOpenPopover = function onOpenPopover() {
60
- setIsPopoverOpen(!isPopoverOpen);
61
- if (onOpenContextMenu) {
62
- setContextMenuItems(onOpenContextMenu());
63
- }
64
- };
65
- return (0, _react2.jsx)("div", {
66
- className: classes
67
- }, (0, _react2.jsx)("div", {
68
- className: "euiNotificationEventMeta__section"
69
- }, iconType && (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
70
- className: "euiNotificationEventMeta__icon",
71
- type: iconType
72
- }, ariaAttribute)), type && (0, _react2.jsx)(_badge.EuiBadge, {
73
- className: "euiNotificationEventMeta__badge",
74
- color: badgeColor
75
- }, severity ? "".concat(type, ": ").concat(severity) : type)), (0, _react2.jsx)("div", {
76
- className: "euiNotificationEventMeta__section"
77
- }, (0, _react2.jsx)("span", {
78
- className: "euiNotificationEventMeta__time"
79
- }, time)), onOpenContextMenu && (0, _react2.jsx)("div", {
80
- className: "euiNotificationEventMeta__contextMenuWrapper"
81
- }, (0, _react2.jsx)(_popover.EuiPopover, {
82
- id: randomPopoverId,
83
- ownFocus: true,
84
- repositionOnScroll: true,
85
- isOpen: isPopoverOpen,
86
- panelPaddingSize: "none",
87
- anchorPosition: "leftUp",
88
- button: (0, _react2.jsx)(_i18n.EuiI18n, {
89
- token: "euiNotificationEventMeta.contextMenuButton",
90
- default: "Menu for {eventName}",
91
- values: {
92
- eventName: eventName
93
- }
94
- }, function (contextMenuButton) {
95
- return (0, _react2.jsx)(_button.EuiButtonIcon, {
96
- "aria-label": contextMenuButton,
97
- "aria-controls": randomPopoverId,
98
- "aria-expanded": isPopoverOpen,
99
- "aria-haspopup": "true",
100
- iconType: "boxesVertical",
101
- color: "text",
102
- onClick: onOpenPopover,
103
- "data-test-subj": "".concat(id, "-notificationEventMetaButton")
104
- });
105
- }),
106
- closePopover: function closePopover() {
107
- return setIsPopoverOpen(false);
108
- }
109
- }, (0, _react2.jsx)("div", {
110
- onClick: function onClick() {
111
- return setIsPopoverOpen(false);
112
- }
113
- }, (0, _react2.jsx)(_context_menu.EuiContextMenuPanel, {
114
- items: contextMenuItems
115
- })))));
116
- };
117
- exports.EuiNotificationEventMeta = EuiNotificationEventMeta;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.EuiNotificationEventReadButton = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _button = require("../button");
12
- var _i18n = require("../i18n");
13
- var _classnames = _interopRequireDefault(require("classnames"));
14
- var _react2 = require("@emotion/react");
15
- var _excluded = ["id", "isRead", "onClick", "eventName"];
16
- /*
17
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
18
- * or more contributor license agreements. Licensed under the Elastic License
19
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
20
- * in compliance with, at your election, the Elastic License 2.0 or the Server
21
- * Side Public License, v 1.
22
- */
23
- var EuiNotificationEventReadButton = function EuiNotificationEventReadButton(_ref) {
24
- var id = _ref.id,
25
- isRead = _ref.isRead,
26
- onClick = _ref.onClick,
27
- eventName = _ref.eventName,
28
- rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
29
- var classesReadState = (0, _classnames.default)('euiNotificationEventReadButton', {
30
- 'euiNotificationEventReadButton--isRead': isRead
31
- });
32
- var markAsReadAria = (0, _i18n.useEuiI18n)('euiNotificationEventReadButton.markAsReadAria', 'Mark {eventName} as read', {
33
- eventName: eventName
34
- });
35
- var markAsUnreadAria = (0, _i18n.useEuiI18n)('euiNotificationEventReadButton.markAsUnreadAria', 'Mark {eventName} as unread', {
36
- eventName: eventName
37
- });
38
- var markAsRead = (0, _i18n.useEuiI18n)('euiNotificationEventReadButton.markAsRead', 'Mark as read');
39
- var markAsUnread = (0, _i18n.useEuiI18n)('euiNotificationEventReadButton.markAsUnread', 'Mark as unread');
40
- var buttonAriaLabel = isRead ? markAsUnreadAria : markAsReadAria;
41
- var buttonTitle = isRead ? markAsUnread : markAsRead;
42
- return (0, _react2.jsx)(_button.EuiButtonIcon, (0, _extends2.default)({
43
- iconType: "dot",
44
- "aria-label": buttonAriaLabel,
45
- title: buttonTitle,
46
- className: classesReadState,
47
- onClick: onClick,
48
- "data-test-subj": "".concat(id, "-notificationEventReadButton")
49
- }, rest));
50
- };
51
- exports.EuiNotificationEventReadButton = EuiNotificationEventReadButton;
@@ -1,51 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.EuiNotificationEventReadIcon = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _react = _interopRequireDefault(require("react"));
11
- var _i18n = require("../i18n");
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
- var _icon = require("../icon");
14
- var _react2 = require("@emotion/react");
15
- var _excluded = ["id", "isRead", "eventName"];
16
- /*
17
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
18
- * or more contributor license agreements. Licensed under the Elastic License
19
- * 2.0 and the Server Side Public License, v 1; you may not use this file except
20
- * in compliance with, at your election, the Elastic License 2.0 or the Server
21
- * Side Public License, v 1.
22
- */
23
- var EuiNotificationEventReadIcon = function EuiNotificationEventReadIcon(_ref) {
24
- var id = _ref.id,
25
- isRead = _ref.isRead,
26
- eventName = _ref.eventName,
27
- rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
- var classesReadState = (0, _classnames.default)('euiNotificationEventReadIcon', {
29
- 'euiNotificationEventReadIcon--isRead': isRead
30
- });
31
- var readAria = (0, _i18n.useEuiI18n)('euiNotificationEventReadIcon.readAria', '{eventName} is read', {
32
- eventName: eventName
33
- });
34
- var unreadAria = (0, _i18n.useEuiI18n)('euiNotificationEventReadIcon.unreadAria', '{eventName} is unread', {
35
- eventName: eventName
36
- });
37
- var readTitle = (0, _i18n.useEuiI18n)('euiNotificationEventReadIcon.read', 'Read');
38
- var unreadTitle = (0, _i18n.useEuiI18n)('euiNotificationEventReadIcon.unread', 'Unread');
39
- var iconAriaLabel = isRead ? readAria : unreadAria;
40
- var iconTitle = isRead ? readTitle : unreadTitle;
41
- return (0, _react2.jsx)("div", {
42
- className: classesReadState
43
- }, (0, _react2.jsx)(_icon.EuiIcon, (0, _extends2.default)({
44
- type: "dot",
45
- "aria-label": iconAriaLabel,
46
- title: iconTitle,
47
- color: "primary",
48
- "data-test-subj": "".concat(id, "-notificationEventReadIcon")
49
- }, rest)));
50
- };
51
- exports.EuiNotificationEventReadIcon = EuiNotificationEventReadIcon;
@@ -1,232 +0,0 @@
1
- .euiControlBar {
2
- background: $euiControlBarBackground;
3
- color: $euiControlBarText;
4
- display: flex;
5
- flex-direction: column;
6
- // This large box shadow helps prevent a flicker of dark
7
- // background when the content is shown and hidden
8
- box-shadow: inset 0 $euiControlBarInitialHeight 0 $euiControlBarBackground, inset 0 600rem 0 $euiPageBackgroundColor;
9
- bottom: 0;
10
- transform: translateY(0);
11
- height: $euiControlBarInitialHeight;
12
- max-height: $euiControlBarMaxHeight;
13
-
14
- &--fixed {
15
- position: fixed;
16
- z-index: $euiZMask;
17
- }
18
-
19
- &--absolute {
20
- position: absolute;
21
- z-index: $euiZLevel1;
22
- }
23
-
24
- &--relative {
25
- position: relative;
26
- }
27
-
28
- &-isOpen {
29
- animation-duration: $euiAnimSpeedNormal;
30
- animation-timing-function: $euiAnimSlightResistance;
31
- animation-fill-mode: forwards;
32
- }
33
-
34
- &-isOpen.euiControlBar--large {
35
- animation-name: euiControlBarOpenPanelLarge;
36
- height: $euiControlBarMaxHeight;
37
- bottom: map-get($euiControlBarHeights, 'l') * -1;
38
- }
39
-
40
- &-isOpen.euiControlBar--medium {
41
- animation-name: euiControlBarOpenPanelMedium;
42
- height: map-get($euiControlBarHeights, 'm');
43
- bottom: map-get($euiControlBarHeights, 'm') * -1;
44
- }
45
-
46
- &-isOpen.euiControlBar--small {
47
- animation-name: euiControlBarOpenPanelSmall;
48
- height: map-get($euiControlBarHeights, 's');
49
- bottom: map-get($euiControlBarHeights, 's') * -1;
50
- }
51
- }
52
-
53
- .euiControlBar__controls {
54
- height: $euiControlBarInitialHeight;
55
- width: 100%;
56
- display: flex;
57
- align-items: center;
58
- overflow-y: hidden; // Ensures the movement of buttons in :focus don't cause scrollbars
59
- overflow-x: auto;
60
- padding: 0 $euiSizeM;
61
- }
62
-
63
- .euiControlBar__content {
64
- @include euiScrollBar;
65
- overflow-y: auto;
66
- width: 100%;
67
- height: calc(100% - #{$euiControlBarInitialHeight});
68
- background-color: $euiPageBackgroundColor;
69
- animation-name: euiControlBarShowContent;
70
- animation-duration: $euiAnimSpeedSlow;
71
- animation-iteration-count: 1;
72
- animation-timing-function: $euiAnimSlightResistance;
73
- color: $euiColorDarkestShade;
74
- }
75
-
76
- // CONTROL TYPES
77
-
78
- .euiControlBar__icon {
79
- flex-shrink: 0;
80
- margin-left: $euiSizeS;
81
- margin-right: $euiSizeS;
82
- }
83
-
84
- .euiControlBar__buttonIcon {
85
- flex-shrink: 0;
86
- min-width: $euiControlBarInitialHeight;
87
- min-height: $euiControlBarInitialHeight;
88
- }
89
-
90
- .euiControlBar__button {
91
- flex-shrink: 0;
92
- border-radius: $euiBorderRadius / 2;
93
- margin-left: $euiSizeXS;
94
- font-size: $euiFontSizeS;
95
-
96
- &:enabled:hover {
97
- transform: none;
98
- box-shadow: none;
99
- }
100
-
101
- &:last-child {
102
- margin-right: $euiSizeXS;
103
- }
104
- }
105
-
106
- .euiControlBar__breadcrumbs {
107
- .euiBreadcrumb {
108
- &:not(:last-of-type) .euiBreadcrumb__content {
109
- color: makeHighContrastColor($euiTextSubduedColor, $euiControlBarBackground);
110
- }
111
-
112
- &::after {
113
- background: $euiControlBarBorderColor;
114
- }
115
- }
116
- }
117
-
118
- .euiControlBar__spacer {
119
- flex-grow: 1;
120
- height: 100%;
121
- }
122
-
123
- .euiControlBar__divider {
124
- flex-shrink: 0;
125
- height: 100%;
126
- width: 1px;
127
- background-color: $euiControlBarBorderColor;
128
- }
129
-
130
- .euiControlBar__text {
131
- @include euiTextTruncate;
132
- @include euiFontSizeS;
133
- padding: 0 $euiSizeS;
134
- color: $euiControlBarText;
135
-
136
- &:last-child {
137
- padding-right: 0;
138
- }
139
- }
140
-
141
- .euiControlBar__tab {
142
- @include euiTextTruncate;
143
- @include euiFontSizeS;
144
- color: $euiControlBarText;
145
- padding: 0 $euiSize;
146
- text-align: center;
147
- height: 100%;
148
-
149
- &:hover,
150
- &:focus {
151
- text-decoration: underline;
152
- cursor: pointer;
153
- }
154
-
155
- &.euiControlBar__tab--active {
156
- background-color: $euiPageBackgroundColor;
157
- box-shadow: inset 0 4px 0 makeHighContrastColor($euiColorPrimary, $euiColorLightestShade);
158
- color: makeHighContrastColor($euiColorPrimary, $euiColorLightestShade);
159
- }
160
- }
161
-
162
- @each $colorName, $colorValue in $euiButtonTypes {
163
- .euiControlBar__controls {
164
- .euiLink.euiLink--#{$colorName} {
165
- color: makeHighContrastColor($colorValue, $euiControlBarBackground);
166
-
167
- &:hover {
168
- color: tintOrShade($colorValue, 30%, 30%);
169
- }
170
- }
171
-
172
- .euiLink.euiLink--text {
173
- color: $euiColorGhost;
174
- }
175
-
176
- .euiControlBar__button.euiButton[class*='#{$colorName}']:enabled:not(.euiButton--fill) {
177
- color: makeHighContrastColor($colorValue, $euiControlBarBackground);
178
- border-color: makeHighContrastColor($colorValue, $euiControlBarBackground);
179
- }
180
-
181
- .euiButtonIcon[class*='#{$colorName}'] {
182
- color: makeHighContrastColor($colorValue, $euiControlBarBackground);
183
- }
184
- }
185
- }
186
-
187
- @include euiBreakpoint('xs', 's') {
188
- .euiControlBar:not(.euiControlBar--showOnMobile) {
189
- display: none;
190
- }
191
- }
192
-
193
- @keyframes euiControlBarOpenPanelLarge {
194
- 0% {
195
- // Accounts for the initial height offset from the top
196
- transform: translateY(calc((#{$euiControlBarInitialHeight} * 3) * -1));
197
- }
198
-
199
- 100% {
200
- transform: translateY(map-get($euiControlBarHeights, 'l') * -1);
201
- }
202
- }
203
-
204
- @keyframes euiControlBarOpenPanelMedium {
205
- 0% {
206
- transform: translateY(-$euiControlBarInitialHeight);
207
- }
208
-
209
- 100% {
210
- transform: translateY(map-get($euiControlBarHeights, 'm') * -1);
211
- }
212
- }
213
-
214
- @keyframes euiControlBarOpenPanelSmall {
215
- 0% {
216
- transform: translateY(-$euiControlBarInitialHeight);
217
- }
218
-
219
- 100% {
220
- transform: translateY(map-get($euiControlBarHeights, 's') * -1);
221
- }
222
- }
223
-
224
- @keyframes euiControlBarShowContent {
225
- 0% {
226
- opacity: 0;
227
- }
228
-
229
- 100% {
230
- opacity: 1;
231
- }
232
- }
@@ -1,2 +0,0 @@
1
- @import 'variables';
2
- @import 'control_bar';
@@ -1,12 +0,0 @@
1
- $euiControlBarBackground: lightOrDarkTheme($euiColorDarkestShade, $euiColorInk);
2
- $euiControlBarText: lighten(makeHighContrastColor($euiColorLightestShade, $euiControlBarBackground), 20%);
3
- $euiControlBarBorderColor: transparentize($euiColorGhost, .8);
4
- $euiControlBarInitialHeight: $euiSizeXXL;
5
- $euiControlBarMaxHeight: calc(100vh - #{$euiSize * 5});
6
-
7
- // Pixel heights ensure no blurriness caused by half pixel offsets
8
- $euiControlBarHeights: (
9
- s: $euiSize * 15,
10
- m: $euiSize * 30,
11
- l: 100vh,
12
- );
@@ -1,5 +0,0 @@
1
- @import './notification_event';
2
- @import './notification_event_meta';
3
- @import './notification_event_messages';
4
- @import './notification_event_read_button';
5
- @import './notification_event_read_icon';
@@ -1,40 +0,0 @@
1
- .euiNotificationEvent {
2
- display: flex;
3
- padding: $euiSizeM 0 $euiSizeM $euiSizeM;
4
- border-bottom: $euiBorderThin;
5
-
6
- &:last-child {
7
- border-bottom: none;
8
- }
9
-
10
- &--withReadState {
11
- padding: $euiSizeM 0 $euiSizeM $euiSizeS;
12
- }
13
- }
14
-
15
- .euiNotificationEvent__title {
16
- @include euiTitle('xs');
17
- display: flex;
18
-
19
- // ensure links get the right color
20
- &.euiLink {
21
- color: $euiLinkColor;
22
- }
23
-
24
- &--isRead {
25
- color: $euiColorDarkShade !important; // stylelint-disable-line declaration-no-important
26
- }
27
- }
28
-
29
- .euiNotificationEvent__readButton {
30
- margin-right: $euiSizeS;
31
- }
32
-
33
- .euiNotificationEvent__content {
34
- flex: 1;
35
-
36
- > * + * {
37
- margin-top: $euiSizeS;
38
- margin-right: $euiSizeM;
39
- }
40
- }
@@ -1,17 +0,0 @@
1
- .euiNotificationEventMessages {
2
- font-size: $euiFontSizeS;
3
-
4
- &__accordion {
5
- color: $euiColorDarkShade;
6
- }
7
-
8
- &__accordionButton {
9
- color: $euiLinkColor;
10
- }
11
-
12
- &__accordionContent {
13
- > * {
14
- padding-top: $euiSizeS;
15
- }
16
- }
17
- }
@@ -1,44 +0,0 @@
1
- .euiNotificationEventMeta {
2
- position: relative;
3
- display: flex;
4
- flex-direction: row;
5
- justify-content: space-between;
6
- align-items: center;
7
- flex-wrap: wrap;
8
- margin-right: $euiSizeXS;
9
- min-height: $euiSizeL; // ensures the same size of the read button to properly center align
10
-
11
- &--hasContextMenu {
12
- padding-right: $euiSizeL;
13
- }
14
-
15
- &__contextMenuWrapper {
16
- position: absolute;
17
- top: 0;
18
- right: 0;
19
- }
20
-
21
- &__section {
22
- margin-right: $euiSizeS;
23
-
24
- &:first-child {
25
- display: flex;
26
- flex: 1;
27
- align-items: center;
28
- }
29
- }
30
-
31
- &__icon {
32
- margin-right: $euiSizeS;
33
- }
34
-
35
- &__badge {
36
- max-width: 100%;
37
- display: inline-grid; // forces truncation of the badge
38
- }
39
-
40
- &__time {
41
- font-size: $euiFontSizeXS;
42
- color: $euiTextSubduedColor;
43
- }
44
- }
@@ -1,5 +0,0 @@
1
- .euiNotificationEventReadButton--isRead svg {
2
- fill: transparent;
3
- stroke-width: 1px;
4
- stroke: $euiBorderColor;
5
- }
@@ -1,12 +0,0 @@
1
- .euiNotificationEventReadIcon {
2
- display: flex;
3
- align-items: center;
4
- height: $euiSizeL;
5
- margin: 0 $euiSizeXS;
6
- }
7
-
8
- .euiNotificationEventReadIcon--isRead svg {
9
- fill: transparent;
10
- stroke-width: 1px;
11
- stroke: $euiBorderColor;
12
- }