@elastic/eui 112.0.0 → 112.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/es/components/badge/badge.js +12 -3
  2. package/es/components/badge/badge.styles.js +47 -21
  3. package/es/components/badge/beta_badge/beta_badge.styles.js +2 -2
  4. package/es/components/badge/color_utils.js +20 -7
  5. package/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
  6. package/es/components/button/button.js +2 -1
  7. package/es/components/button/button_empty/button_empty.js +2 -1
  8. package/es/components/context_menu/context_menu.js +20 -7
  9. package/es/components/date_picker/super_date_picker/super_date_picker.js +7 -0
  10. package/es/components/date_picker/super_date_picker/time_window_buttons.js +74 -25
  11. package/es/components/description_list/description_list.js +2 -1
  12. package/es/components/description_list/description_list_description.js +2 -1
  13. package/es/components/description_list/description_list_title.js +2 -1
  14. package/es/components/empty_prompt/empty_prompt.js +2 -1
  15. package/es/components/flex/flex_grid.js +2 -1
  16. package/es/components/flyout/flyout.component.js +31 -26
  17. package/es/components/icon/assets/timeline.js +3 -1
  18. package/es/components/icon/icon.js +2 -1
  19. package/es/components/image/image.js +2 -1
  20. package/es/components/loading/loading_logo.js +2 -1
  21. package/es/components/page/page_section/page_section.js +2 -1
  22. package/es/components/page/page_sidebar/page_sidebar.js +2 -1
  23. package/es/components/page_template/page_template.js +6 -0
  24. package/es/components/panel/panel.js +4 -3
  25. package/es/components/selectable/selectable_list/selectable_list.js +8 -2
  26. package/es/components/selectable/selectable_list/selectable_list_item.js +6 -0
  27. package/eui.d.ts +236 -441
  28. package/i18ntokens.json +803 -749
  29. package/lib/components/badge/badge.js +12 -3
  30. package/lib/components/badge/badge.styles.js +46 -20
  31. package/lib/components/badge/beta_badge/beta_badge.styles.js +2 -2
  32. package/lib/components/badge/color_utils.js +21 -8
  33. package/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
  34. package/lib/components/button/button.js +2 -1
  35. package/lib/components/button/button_empty/button_empty.js +2 -1
  36. package/lib/components/context_menu/context_menu.js +20 -7
  37. package/lib/components/date_picker/super_date_picker/super_date_picker.js +7 -0
  38. package/lib/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
  39. package/lib/components/description_list/description_list.js +2 -1
  40. package/lib/components/description_list/description_list_description.js +2 -1
  41. package/lib/components/description_list/description_list_title.js +2 -1
  42. package/lib/components/empty_prompt/empty_prompt.js +2 -1
  43. package/lib/components/flex/flex_grid.js +2 -1
  44. package/lib/components/flyout/flyout.component.js +38 -33
  45. package/lib/components/icon/assets/timeline.js +3 -1
  46. package/lib/components/icon/icon.js +2 -1
  47. package/lib/components/icon/svgs/timeline.svg +2 -1
  48. package/lib/components/image/image.js +2 -1
  49. package/lib/components/loading/loading_logo.js +2 -1
  50. package/lib/components/page/page_section/page_section.js +2 -1
  51. package/lib/components/page/page_sidebar/page_sidebar.js +2 -1
  52. package/lib/components/page_template/page_template.js +6 -0
  53. package/lib/components/panel/panel.js +4 -3
  54. package/lib/components/selectable/selectable_list/selectable_list.js +8 -2
  55. package/lib/components/selectable/selectable_list/selectable_list_item.js +6 -0
  56. package/optimize/es/components/badge/badge.js +6 -3
  57. package/optimize/es/components/badge/badge.styles.js +47 -21
  58. package/optimize/es/components/badge/beta_badge/beta_badge.styles.js +2 -2
  59. package/optimize/es/components/badge/color_utils.js +20 -7
  60. package/optimize/es/components/badge/notification_badge/badge_notification.styles.js +1 -1
  61. package/optimize/es/components/button/button.js +2 -1
  62. package/optimize/es/components/button/button_empty/button_empty.js +2 -1
  63. package/optimize/es/components/context_menu/context_menu.js +15 -6
  64. package/optimize/es/components/date_picker/super_date_picker/time_window_buttons.js +74 -25
  65. package/optimize/es/components/description_list/description_list.js +2 -1
  66. package/optimize/es/components/description_list/description_list_description.js +2 -1
  67. package/optimize/es/components/description_list/description_list_title.js +2 -1
  68. package/optimize/es/components/empty_prompt/empty_prompt.js +2 -1
  69. package/optimize/es/components/flex/flex_grid.js +2 -1
  70. package/optimize/es/components/flyout/flyout.component.js +31 -26
  71. package/optimize/es/components/icon/assets/timeline.js +3 -1
  72. package/optimize/es/components/icon/icon.js +2 -1
  73. package/optimize/es/components/image/image.js +2 -1
  74. package/optimize/es/components/loading/loading_logo.js +2 -1
  75. package/optimize/es/components/page/page_section/page_section.js +2 -1
  76. package/optimize/es/components/page/page_sidebar/page_sidebar.js +2 -1
  77. package/optimize/es/components/page_template/page_template.js +6 -0
  78. package/optimize/es/components/panel/panel.js +1 -0
  79. package/optimize/es/components/selectable/selectable_list/selectable_list.js +2 -2
  80. package/optimize/lib/components/badge/badge.js +6 -3
  81. package/optimize/lib/components/badge/badge.styles.js +46 -20
  82. package/optimize/lib/components/badge/beta_badge/beta_badge.styles.js +2 -2
  83. package/optimize/lib/components/badge/color_utils.js +21 -8
  84. package/optimize/lib/components/badge/notification_badge/badge_notification.styles.js +1 -1
  85. package/optimize/lib/components/button/button.js +2 -1
  86. package/optimize/lib/components/button/button_empty/button_empty.js +2 -1
  87. package/optimize/lib/components/context_menu/context_menu.js +15 -6
  88. package/optimize/lib/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
  89. package/optimize/lib/components/description_list/description_list.js +2 -1
  90. package/optimize/lib/components/description_list/description_list_description.js +2 -1
  91. package/optimize/lib/components/description_list/description_list_title.js +2 -1
  92. package/optimize/lib/components/empty_prompt/empty_prompt.js +2 -1
  93. package/optimize/lib/components/flex/flex_grid.js +2 -1
  94. package/optimize/lib/components/flyout/flyout.component.js +38 -33
  95. package/optimize/lib/components/icon/assets/timeline.js +3 -1
  96. package/optimize/lib/components/icon/icon.js +2 -1
  97. package/optimize/lib/components/icon/svgs/timeline.svg +2 -1
  98. package/optimize/lib/components/image/image.js +2 -1
  99. package/optimize/lib/components/loading/loading_logo.js +2 -1
  100. package/optimize/lib/components/page/page_section/page_section.js +2 -1
  101. package/optimize/lib/components/page/page_sidebar/page_sidebar.js +2 -1
  102. package/optimize/lib/components/page_template/page_template.js +6 -0
  103. package/optimize/lib/components/panel/panel.js +1 -0
  104. package/optimize/lib/components/selectable/selectable_list/selectable_list.js +2 -2
  105. package/package.json +3 -3
  106. package/test-env/components/badge/badge.js +12 -3
  107. package/test-env/components/badge/badge.styles.js +46 -20
  108. package/test-env/components/badge/beta_badge/beta_badge.styles.js +2 -2
  109. package/test-env/components/badge/color_utils.js +21 -8
  110. package/test-env/components/badge/notification_badge/badge_notification.styles.js +1 -1
  111. package/test-env/components/button/button.js +2 -1
  112. package/test-env/components/button/button_empty/button_empty.js +2 -1
  113. package/test-env/components/context_menu/context_menu.js +20 -7
  114. package/test-env/components/date_picker/super_date_picker/super_date_picker.js +7 -0
  115. package/test-env/components/date_picker/super_date_picker/time_window_buttons.js +75 -26
  116. package/test-env/components/description_list/description_list.js +2 -1
  117. package/test-env/components/description_list/description_list_description.js +2 -1
  118. package/test-env/components/description_list/description_list_title.js +2 -1
  119. package/test-env/components/empty_prompt/empty_prompt.js +2 -1
  120. package/test-env/components/flex/flex_grid.js +2 -1
  121. package/test-env/components/flyout/flyout.component.js +38 -33
  122. package/test-env/components/icon/assets/timeline.js +3 -1
  123. package/test-env/components/image/image.js +2 -1
  124. package/test-env/components/loading/loading_logo.js +2 -1
  125. package/test-env/components/page/page_section/page_section.js +2 -1
  126. package/test-env/components/page/page_sidebar/page_sidebar.js +2 -1
  127. package/test-env/components/page_template/page_template.js +6 -0
  128. package/test-env/components/panel/panel.js +4 -3
  129. package/test-env/components/selectable/selectable_list/selectable_list.js +8 -2
  130. package/test-env/components/selectable/selectable_list/selectable_list_item.js +6 -0
@@ -33,28 +33,54 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
33
33
  var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeContext) {
34
34
  var euiTheme = euiThemeContext.euiTheme;
35
35
  var badgeColors = (0, _color_utils.euiBadgeColors)(euiThemeContext);
36
+ var defaultBadgeColors = badgeColors.fill.default;
36
37
  var setBadgeColorVars = function setBadgeColorVars(colors) {
37
- return "\n --euiBadgeTextColor: ".concat(colors.color, ";\n --euiBadgeBackgroundColor: ").concat(colors.backgroundColor, ";\n ");
38
+ return "\n --euiBadgeTextColor: ".concat(colors.color, ";\n --euiBadgeBackgroundColor: ").concat(colors.backgroundColor, ";\n ").concat(colors.border ? "--euiBadgeBorder: ".concat(colors.border, ";") : '', "\n ");
38
39
  };
40
+ var inlinePadding = (0, _global_styling.mathWithUnits)(
41
+ // Account for the (usually transparent) border so that the visual
42
+ // padding is of size s
43
+ [euiTheme.size.s, euiTheme.border.width.thin], function (size, borderWidth) {
44
+ return size - borderWidth;
45
+ });
39
46
  return {
40
- euiBadge: /*#__PURE__*/(0, _react.css)("display:inline-block;vertical-align:middle;", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(euiTheme.size.s)), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs').fontSize, ";line-height:", (0, _global_styling.mathWithUnits)(
47
+ euiBadge: /*#__PURE__*/(0, _react.css)("display:inline-block;vertical-align:middle;", (0, _global_styling.logicalShorthandCSS)('padding', "0 ".concat(inlinePadding)), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " font-size:", (0, _global_styling.euiFontSize)(euiThemeContext, 'xs').fontSize, ";line-height:", (0, _global_styling.mathWithUnits)(
41
48
  // Account for the border
42
49
  [euiTheme.size.base, euiTheme.border.width.thin], function (x, y) {
43
50
  return x + y * 2;
44
- }), ";font-weight:", euiTheme.font.weight.medium, ";white-space:nowrap;text-decoration:none;cursor:inherit;border:", euiTheme.border.width.thin, " solid transparent;border-radius:", (0, _global_styling.mathWithUnits)(euiTheme.border.radius.medium, function (x) {
45
- return x / 2;
46
- }), ";", (0, _global_styling.logicalTextAlignCSS)('left'), "color:var(--euiBadgeTextColor, ", badgeColors.default.color, ");background-color:var(\n --euiBadgeBackgroundColor,\n ", badgeColors.default.backgroundColor, "\n );*::selection{color:var(\n --euiBadgeBackgroundColor,\n ", badgeColors.default.backgroundColor, "\n );background-color:var(\n --euiBadgeTextColor,\n ", badgeColors.default.color, "\n );}&:focus-within{", (0, _global_styling.euiFocusRing)(euiThemeContext), ";}&+.euiBadge{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";};label:euiBadge;"),
51
+ }), ";font-weight:", euiTheme.font.weight.medium, ";white-space:nowrap;text-decoration:none;cursor:inherit;border:", euiTheme.border.width.thin, " solid transparent;border-radius:", euiTheme.size.l, ";", (0, _global_styling.logicalTextAlignCSS)('left'), "color:var(--euiBadgeTextColor, ", defaultBadgeColors.color, ");background-color:var(\n --euiBadgeBackgroundColor,\n ", defaultBadgeColors.backgroundColor, "\n );", (0, _global_styling.highContrastModeStyles)(euiThemeContext, {
52
+ preferred: "border: var(--euiBadgeBorder, ".concat(euiTheme.border.thin, ");")
53
+ }), "*::selection{color:var(\n --euiBadgeBackgroundColor,\n ", defaultBadgeColors.backgroundColor, "\n );background-color:var(--euiBadgeTextColor, ", defaultBadgeColors.color, ");}&:focus-within{", (0, _global_styling.euiFocusRing)(euiThemeContext), ";}&+.euiBadge{", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";};label:euiBadge;"),
54
+ iconOnly: /*#__PURE__*/(0, _react.css)("padding-inline:", (0, _global_styling.mathWithUnits)(
55
+ // Account for the border
56
+ [euiTheme.size.xs, euiTheme.border.width.thin], function (size, borderWidth) {
57
+ return size - borderWidth;
58
+ }), ";;label:iconOnly;"),
47
59
  clickable: /*#__PURE__*/(0, _react.css)("&:not(:disabled){&:hover,&:focus{text-decoration:underline;}}&:focus{", (0, _global_styling.euiFocusRing)(euiThemeContext), ";}&:disabled{cursor:not-allowed;};label:clickable;"),
48
- // Colors
49
- default: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.default), " border-color:", badgeColors.default.borderColor, ";;label:default;"),
50
- hollow: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
51
- primary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.primary), ";label:primary;"),
52
- accent: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.accent), ";label:accent;"),
53
- neutral: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.neutral), ";label:neutral;"),
54
- success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.success), ";label:success;"),
55
- warning: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.warning), ";label:warning;"),
56
- risk: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.risk), ";label:risk;"),
57
- danger: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.danger), ";label:danger;"),
60
+ colors: {
61
+ fill: {
62
+ default: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.default), " border-color:", badgeColors.fill.default.borderColor, ";;label:default;"),
63
+ hollow: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
64
+ primary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.primary), ";label:primary;"),
65
+ accent: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.accent), ";label:accent;"),
66
+ neutral: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.neutral), ";label:neutral;"),
67
+ success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.success), ";label:success;"),
68
+ warning: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.warning), ";label:warning;"),
69
+ risk: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.risk), ";label:risk;"),
70
+ danger: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.fill.danger), ";label:danger;")
71
+ },
72
+ base: {
73
+ default: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.default), " border-color:", badgeColors.base.default.borderColor, ";;label:default;"),
74
+ hollow: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.hollow), " border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
75
+ primary: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.primary), ";label:primary;"),
76
+ accent: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.accent), ";label:accent;"),
77
+ neutral: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.neutral), ";label:neutral;"),
78
+ success: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.success), ";label:success;"),
79
+ warning: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.warning), ";label:warning;"),
80
+ risk: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.risk), ";label:risk;"),
81
+ danger: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.base.danger), ";label:danger;")
82
+ }
83
+ },
58
84
  disabled: /*#__PURE__*/(0, _react.css)(setBadgeColorVars(badgeColors.disabled), " border-color:", badgeColors.disabled.borderColor, ";*::selection{color:", euiTheme.colors.emptyShade, ";};label:disabled;"),
59
85
  // Content wrapper
60
86
  euiBadge__content: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)(
@@ -64,20 +90,20 @@ var euiBadgeStyles = exports.euiBadgeStyles = function euiBadgeStyles(euiThemeCo
64
90
  }))), " display:flex;align-items:center;overflow:hidden;;label:euiBadge__content;"),
65
91
  // Text
66
92
  text: {
67
- euiBadge__text: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " cursor:inherit;;label:euiBadge__text;"),
93
+ euiBadge__text: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " padding-inline:", euiTheme.size.xxs, ";cursor:inherit;;label:euiBadge__text;"),
68
94
  clickable: _ref2
69
95
  },
70
96
  // Icon
71
97
  icon: {
72
98
  euiBadge__icon: /*#__PURE__*/(0, _react.css)(";label:euiBadge__icon;"),
73
- right: /*#__PURE__*/(0, _react.css)("&:not(:only-child){", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";};label:right;"),
74
- left: /*#__PURE__*/(0, _react.css)("&:not(:only-child){", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xs), ";};label:left;")
99
+ right: /*#__PURE__*/(0, _react.css)("&:not(:only-child){", (0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xxs), ";};label:right;"),
100
+ left: /*#__PURE__*/(0, _react.css)("&:not(:only-child){", (0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xxs), ";};label:left;")
75
101
  },
76
102
  // Clickable icons (iconOnClick)
77
103
  iconButton: {
78
104
  euiBadge__iconButton: _ref,
79
- right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xs), ";;label:right;"),
80
- left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xs), ";;label:left;")
105
+ right: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-left', euiTheme.size.xxs), ";;label:right;"),
106
+ left: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-right', euiTheme.size.xxs), ";;label:left;")
81
107
  },
82
108
  // Used in badges with both onClick & iconOnClick
83
109
  euiBadge__childButton: /*#__PURE__*/(0, _react.css)((0, _global_styling.euiTextTruncate)(), " text-align:inherit;font-weight:inherit;line-height:inherit;color:inherit;&:disabled{cursor:not-allowed;}&:not(:disabled){&:hover,&:focus{text-decoration:underline;}};label:euiBadge__childButton;")
@@ -53,10 +53,10 @@ var euiBetaBadgeStyles = exports.euiBetaBadgeStyles = function euiBetaBadgeStyle
53
53
  color: colorMode === 'DARK' ? euiTheme.colors.ghost : euiTheme.colors.ink
54
54
  }), ";};label:euiBetaBadge;"),
55
55
  // Colors
56
- accent: /*#__PURE__*/(0, _react.css)(badgeColors.accent, ";label:accent;"),
56
+ accent: /*#__PURE__*/(0, _react.css)(badgeColors.fill.accent, ";label:accent;"),
57
57
  subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;"),
58
58
  hollow: /*#__PURE__*/(0, _react.css)("color:", badgeColors.hollow.color, ";background-color:", badgeColors.hollow.backgroundColor, ";border-color:", badgeColors.hollow.borderColor, ";;label:hollow;"),
59
- warning: /*#__PURE__*/(0, _react.css)(badgeColors.warning, ";label:warning;"),
59
+ warning: /*#__PURE__*/(0, _react.css)(badgeColors.fill.warning, ";label:warning;"),
60
60
  // Font sizes
61
61
  m: /*#__PURE__*/(0, _react.css)("font-size:", (0, _global_styling.euiFontSizeFromScale)('xs', euiTheme), ";line-height:", badgeSizes.m, ";;label:m;"),
62
62
  s: /*#__PURE__*/(0, _react.css)("font-size:0.7rem;line-height:", badgeSizes.s, ";;label:s;"),
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.getTextColor = exports.getIsValidColor = exports.getColorContrast = exports.getBadgeColors = exports.euiBadgeColors = void 0;
7
+ exports.getTextColor = exports.getIsValidColor = exports.getBadgeColors = exports.euiBadgeColors = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
10
  var _chromaJs = _interopRequireDefault(require("chroma-js"));
@@ -23,7 +23,7 @@ var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeCo
23
23
  var euiTheme = euiThemeContext.euiTheme,
24
24
  highContrastMode = euiThemeContext.highContrastMode;
25
25
  var badgeColorsAccentText = getBadgeColors(euiThemeContext, euiTheme.colors.textAccent);
26
- return {
26
+ var fill = {
27
27
  // Colors shared between buttons and badges
28
28
  primary: (0, _button.euiButtonFillColor)(euiThemeContext, 'primary'),
29
29
  neutral: (0, _button.euiButtonFillColor)(euiThemeContext, 'neutral'),
@@ -32,12 +32,28 @@ var euiBadgeColors = exports.euiBadgeColors = function euiBadgeColors(euiThemeCo
32
32
  risk: (0, _button.euiButtonFillColor)(euiThemeContext, 'risk'),
33
33
  danger: (0, _button.euiButtonFillColor)(euiThemeContext, 'danger'),
34
34
  accent: (0, _button.euiButtonFillColor)(euiThemeContext, 'accent'),
35
- disabled: _objectSpread(_objectSpread({}, (0, _button.euiButtonColor)(euiThemeContext, 'disabled')), {}, {
36
- borderColor: highContrastMode ? euiTheme.colors.textDisabled : ''
37
- }),
38
35
  // Colors unique to badges
39
36
  default: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.components.badgeBackground)), {}, {
40
37
  borderColor: highContrastMode ? euiTheme.border.color : ''
38
+ })
39
+ };
40
+ var base = {
41
+ primary: (0, _button.euiButtonColor)(euiThemeContext, 'primary'),
42
+ neutral: (0, _button.euiButtonColor)(euiThemeContext, 'neutral'),
43
+ success: (0, _button.euiButtonColor)(euiThemeContext, 'success'),
44
+ warning: (0, _button.euiButtonColor)(euiThemeContext, 'warning'),
45
+ risk: (0, _button.euiButtonColor)(euiThemeContext, 'risk'),
46
+ danger: (0, _button.euiButtonColor)(euiThemeContext, 'danger'),
47
+ accent: (0, _button.euiButtonColor)(euiThemeContext, 'accent'),
48
+ default: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.backgroundLightText)), {}, {
49
+ borderColor: highContrastMode ? euiTheme.border.color : ''
50
+ })
51
+ };
52
+ return {
53
+ fill: fill,
54
+ base: base,
55
+ disabled: _objectSpread(_objectSpread({}, (0, _button.euiButtonColor)(euiThemeContext, 'disabled')), {}, {
56
+ borderColor: highContrastMode ? euiTheme.colors.textDisabled : ''
41
57
  }),
42
58
  // Hollow has a border and is used for autocompleters and beta badges
43
59
  hollow: _objectSpread(_objectSpread({}, getBadgeColors(euiThemeContext, euiTheme.colors.emptyShade)), {}, {
@@ -64,9 +80,6 @@ var getTextColor = exports.getTextColor = function getTextColor(_ref, bgColor) {
64
80
  var textColor = _services.isColorDark.apply(void 0, (0, _toConsumableArray2.default)((0, _chromaJs.default)(bgColor).rgb())) ? euiTheme.colors.ghost : euiTheme.colors.ink;
65
81
  return textColor;
66
82
  };
67
- var getColorContrast = exports.getColorContrast = function getColorContrast(textColor, color) {
68
- return _chromaJs.default.contrast(textColor, color);
69
- };
70
83
  var getIsValidColor = exports.getIsValidColor = function getIsValidColor(color) {
71
84
  return (0, _utils.chromaValid)((0, _utils.parseColor)(color || '') || '');
72
85
  };
@@ -33,7 +33,7 @@ var euiNotificationBadgeStyles = exports.euiNotificationBadgeStyles = function e
33
33
  })), " ", (0, _global_styling.logicalCSS)('min-width', euiTheme.size.l), ";;label:m;"),
34
34
  // Colors
35
35
  accent: /*#__PURE__*/(0, _react.css)(badgeColors.accentText, ";label:accent;"),
36
- success: /*#__PURE__*/(0, _react.css)(badgeColors.success, ";label:success;"),
36
+ success: /*#__PURE__*/(0, _react.css)(badgeColors.fill.success, ";label:success;"),
37
37
  subdued: /*#__PURE__*/(0, _react.css)(badgeColors.subdued, ";label:subdued;")
38
38
  };
39
39
  };
@@ -55,4 +55,5 @@ var EuiButton = exports.EuiButton = function EuiButton(_ref) {
55
55
  ref: buttonRef,
56
56
  size: size
57
57
  }, rest));
58
- };
58
+ };
59
+ EuiButton.displayName = 'EuiButton';
@@ -123,4 +123,5 @@ var EuiButtonEmpty = exports.EuiButtonEmpty = function EuiButtonEmpty(_ref) {
123
123
  ref: setCombinedRef,
124
124
  "aria-pressed": isSelected
125
125
  }, rest, disabledButtonProps), innerNode);
126
- };
126
+ };
127
+ EuiButtonEmpty.displayName = 'EuiButtonEmpty';
@@ -24,7 +24,8 @@ var _context_menu = require("./context_menu.styles");
24
24
  var _react2 = require("@emotion/react");
25
25
  var _excluded = ["isSeparator", "key"],
26
26
  _excluded2 = ["panel", "name", "key", "icon", "onClick"],
27
- _excluded3 = ["stylesMemoizer", "panels", "onPanelChange", "className", "initialPanelId", "size"];
27
+ _excluded3 = ["id", "title", "items", "content", "width", "initialFocusedItemIndex", "size"],
28
+ _excluded4 = ["stylesMemoizer", "panels", "onPanelChange", "className", "initialPanelId", "size"];
28
29
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
29
30
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
30
31
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -253,6 +254,14 @@ var EuiContextMenuClass = exports.EuiContextMenuClass = /*#__PURE__*/function (_
253
254
  if (!panel) {
254
255
  return;
255
256
  }
257
+ var _id = panel.id,
258
+ title = panel.title,
259
+ _items = panel.items,
260
+ content = panel.content,
261
+ _width = panel.width,
262
+ initialFocusedItemIndex = panel.initialFocusedItemIndex,
263
+ _size = panel.size,
264
+ rest = (0, _objectWithoutProperties2.default)(panel, _excluded3);
256
265
 
257
266
  // As above, we need to wait for EuiOutsideClickDetector to complete its logic before
258
267
  // re-rendering via showPanel.
@@ -266,22 +275,22 @@ var EuiContextMenuClass = exports.EuiContextMenuClass = /*#__PURE__*/function (_
266
275
  position: 'absolute',
267
276
  label: 'euiContextMenu__panel'
268
277
  };
269
- return (0, _react2.jsx)(_context_menu_panel.EuiContextMenuPanel, {
278
+ return (0, _react2.jsx)(_context_menu_panel.EuiContextMenuPanel, (0, _extends2.default)({
270
279
  key: panelId,
271
280
  size: this.props.size,
272
281
  css: cssStyles,
273
282
  onHeightChange: transitionType === 'in' ? this.onIncomingPanelHeightChange : undefined,
274
283
  onTransitionComplete: transitionType === 'out' ? this.onOutGoingPanelTransitionComplete : undefined,
275
- title: panel.title,
284
+ title: title,
276
285
  onClose: onClose,
277
286
  transitionType: this.state.isOutgoingPanelVisible ? transitionType : undefined,
278
287
  transitionDirection: this.state.isOutgoingPanelVisible ? this.state.transitionDirection : undefined,
279
288
  items: this.state.idToRenderedItemsMap[panelId],
280
- initialFocusedItemIndex: this.state.isUsingKeyboardToNavigate ? this.state.focusedItemIndex : panel.initialFocusedItemIndex,
289
+ initialFocusedItemIndex: this.state.isUsingKeyboardToNavigate ? this.state.focusedItemIndex : initialFocusedItemIndex,
281
290
  onUseKeyboardToNavigate: this.onUseKeyboardToNavigate,
282
291
  showNextPanel: this.showNextPanel,
283
292
  showPreviousPanel: this.showPreviousPanel
284
- }, panel.content);
293
+ }, rest), content);
285
294
  }
286
295
  }, {
287
296
  key: "render",
@@ -293,7 +302,7 @@ var EuiContextMenuClass = exports.EuiContextMenuClass = /*#__PURE__*/function (_
293
302
  className = _this$props2.className,
294
303
  initialPanelId = _this$props2.initialPanelId,
295
304
  size = _this$props2.size,
296
- rest = (0, _objectWithoutProperties2.default)(_this$props2, _excluded3);
305
+ rest = (0, _objectWithoutProperties2.default)(_this$props2, _excluded4);
297
306
  var incomingPanel = this.renderPanel(this.state.incomingPanelId, 'in');
298
307
  var outgoingPanel;
299
308
  if (this.state.isOutgoingPanelVisible) {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.ZOOM_FACTOR_DEFAULT = exports.EuiTimeWindowButtons = void 0;
7
+ exports.ZOOM_FACTOR_DEFAULT = exports.ZOOM_DELTA_FALLBACK_MS = exports.EuiTimeWindowButtons = void 0;
8
8
  exports.useEuiTimeWindow = useEuiTimeWindow;
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _datemath = _interopRequireDefault(require("@elastic/datemath"));
@@ -25,6 +25,7 @@ var _react2 = require("@emotion/react");
25
25
  */
26
26
 
27
27
  var ZOOM_FACTOR_DEFAULT = exports.ZOOM_FACTOR_DEFAULT = 0.5;
28
+ var ZOOM_DELTA_FALLBACK_MS = exports.ZOOM_DELTA_FALLBACK_MS = 500;
28
29
  /**
29
30
  * Button group with time window controls for shifting the time window
30
31
  * forwards and backwards, and zooming out.
@@ -37,6 +38,8 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
37
38
  isDisabled = _ref.isDisabled,
38
39
  _ref$showZoomOut = _ref.showZoomOut,
39
40
  showZoomOut = _ref$showZoomOut === void 0 ? true : _ref$showZoomOut,
41
+ _ref$showZoomIn = _ref.showZoomIn,
42
+ showZoomIn = _ref$showZoomIn === void 0 ? false : _ref$showZoomIn,
40
43
  _ref$showShiftArrows = _ref.showShiftArrows,
41
44
  showShiftArrows = _ref$showShiftArrows === void 0 ? true : _ref$showShiftArrows,
42
45
  _ref$zoomFactor = _ref.zoomFactor,
@@ -52,16 +55,29 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
52
55
  isInvalid = _useEuiTimeWindow.isInvalid,
53
56
  stepForward = _useEuiTimeWindow.stepForward,
54
57
  stepBackward = _useEuiTimeWindow.stepBackward,
55
- expandWindow = _useEuiTimeWindow.expandWindow;
58
+ expandWindow = _useEuiTimeWindow.expandWindow,
59
+ shrinkWindow = _useEuiTimeWindow.shrinkWindow,
60
+ isWindowDurationZero = _useEuiTimeWindow.isWindowDurationZero;
61
+ var previousDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.previousDescription', 'Previous {displayInterval}', {
62
+ displayInterval: displayInterval
63
+ });
64
+ var nextDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.nextDescription', 'Next {displayInterval}', {
65
+ displayInterval: displayInterval
66
+ });
56
67
  var invalidShiftDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.invalidShiftLabel', 'Cannot shift invalid time window');
68
+ var invalidZoomInDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.invalidZoomInLabel', 'Cannot zoom in invalid time window');
69
+ var cannotZoomInDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.cannotZoomInLabel', 'Cannot zoom in any further');
57
70
  var invalidZoomOutDescription = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.invalidZoomOutLabel', 'Cannot zoom out invalid time window');
58
71
  var previousId = (0, _services.useGeneratedHtmlId)({
59
72
  prefix: 'previous'
60
73
  });
61
74
  var previousLabel = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.previousLabel', 'Previous');
62
- var previousTooltipContent = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.previousDescription', 'Previous {displayInterval}', {
63
- displayInterval: displayInterval
75
+ var previousTooltipContent = isInvalid ? invalidShiftDescription : previousDescription;
76
+ var zoomInId = (0, _services.useGeneratedHtmlId)({
77
+ prefix: 'zoom_in'
64
78
  });
79
+ var zoomInLabel = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.zoomInLabel', 'Zoom in');
80
+ var zoomInTooltipContent = isInvalid ? invalidZoomInDescription : isWindowDurationZero ? cannotZoomInDescription : zoomInLabel;
65
81
  var zoomOutId = (0, _services.useGeneratedHtmlId)({
66
82
  prefix: 'zoom_out'
67
83
  });
@@ -71,10 +87,8 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
71
87
  prefix: 'next'
72
88
  });
73
89
  var nextLabel = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.nextLabel', 'Next');
74
- var nextTooltipContent = (0, _i18n.useEuiI18n)('euiTimeWindowButtons.nextDescription', 'Next {displayInterval}', {
75
- displayInterval: displayInterval
76
- });
77
- if (!showZoomOut && !showShiftArrows) return null;
90
+ var nextTooltipContent = isInvalid ? invalidShiftDescription : nextDescription;
91
+ if (!showZoomIn && !showZoomOut && !showShiftArrows) return null;
78
92
  return (0, _react2.jsx)("div", {
79
93
  className: "euiSuperDatePicker__timeWindowButtons",
80
94
  css: [styles.euiButtonGroup__buttons, styles[buttonSize], ";label:EuiTimeWindowButtons;"],
@@ -84,15 +98,30 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
84
98
  "data-test-subj": "timeWindowButtonsPrevious",
85
99
  label: previousLabel,
86
100
  title: "",
87
- toolTipContent: !isDisabled && (isInvalid ? invalidShiftDescription : previousTooltipContent),
101
+ toolTipContent: !isDisabled && previousTooltipContent,
88
102
  color: buttonColor,
89
103
  size: buttonSize,
90
104
  iconType: "arrowLeft",
91
105
  iconSize: iconSize,
92
106
  isIconOnly: true,
93
- isSelected: false,
94
- isDisabled: isDisabled,
107
+ isDisabled: isWindowDurationZero || isDisabled,
95
108
  onClick: stepBackward
109
+ }), showZoomIn && (0, _react2.jsx)(_button_group_button.EuiButtonGroupButton, {
110
+ id: zoomInId,
111
+ "data-test-subj": "timeWindowButtonsZoomIn",
112
+ label: zoomInLabel,
113
+ title: "",
114
+ toolTipContent: !isDisabled && zoomInTooltipContent,
115
+ toolTipProps: {
116
+ disableScreenReaderOutput: zoomInLabel === zoomInTooltipContent
117
+ },
118
+ color: buttonColor,
119
+ size: buttonSize,
120
+ iconType: "magnifyWithPlus",
121
+ iconSize: iconSize,
122
+ isIconOnly: true,
123
+ isDisabled: isWindowDurationZero || isDisabled,
124
+ onClick: shrinkWindow
96
125
  }), showZoomOut && (0, _react2.jsx)(_button_group_button.EuiButtonGroupButton, {
97
126
  id: zoomOutId,
98
127
  "data-test-subj": "timeWindowButtonsZoomOut",
@@ -107,7 +136,6 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
107
136
  iconType: "magnifyWithMinus",
108
137
  iconSize: iconSize,
109
138
  isIconOnly: true,
110
- isSelected: false,
111
139
  isDisabled: isDisabled,
112
140
  onClick: expandWindow
113
141
  }), showShiftArrows && (0, _react2.jsx)(_button_group_button.EuiButtonGroupButton, {
@@ -115,14 +143,13 @@ var EuiTimeWindowButtons = exports.EuiTimeWindowButtons = function EuiTimeWindow
115
143
  "data-test-subj": "timeWindowButtonsNext",
116
144
  label: nextLabel,
117
145
  title: "",
118
- toolTipContent: !isDisabled && (isInvalid ? invalidShiftDescription : nextTooltipContent),
146
+ toolTipContent: !isDisabled && nextTooltipContent,
119
147
  color: buttonColor,
120
148
  size: buttonSize,
121
149
  iconType: "arrowRight",
122
150
  iconSize: iconSize,
123
151
  isIconOnly: true,
124
- isSelected: false,
125
- isDisabled: isDisabled,
152
+ isDisabled: isWindowDurationZero || isDisabled,
126
153
  onClick: stepForward
127
154
  }));
128
155
  };
@@ -137,9 +164,10 @@ function useEuiTimeWindow(start, end, apply, options) {
137
164
  roundUp: true
138
165
  });
139
166
  var isInvalid = !min || !min.isValid() || !max || !max.isValid();
140
- var windowDuration = isInvalid ? 1 : max.diff(min);
167
+ var windowDuration = isInvalid ? -1 : max.diff(min);
168
+ var isWindowDurationZero = windowDuration === 0;
141
169
  var zoomFactor = getPercentageMultiplier((_options$zoomFactor = options === null || options === void 0 ? void 0 : options.zoomFactor) !== null && _options$zoomFactor !== void 0 ? _options$zoomFactor : ZOOM_FACTOR_DEFAULT);
142
- var zoomAddition = windowDuration * (zoomFactor / 2); // Gets added to each end, that's why it's split in half
170
+ var zoomDelta = windowDuration * (zoomFactor / 2); // Gets added to each end, that's why it's split in half
143
171
  var prettyInterval = (0, _pretty_interval.usePrettyInterval)(false, windowDuration);
144
172
  var displayInterval = isInvalid ? '' : prettyInterval;
145
173
  if (!isInvalid && !(0, _relative_utils.isRelativeToNow)(start, end) && !isExactMinuteRange(windowDuration)) {
@@ -150,17 +178,19 @@ function useEuiTimeWindow(start, end, apply, options) {
150
178
  isInvalid: isInvalid,
151
179
  stepForward: stepForward,
152
180
  stepBackward: stepBackward,
153
- expandWindow: expandWindow
181
+ expandWindow: expandWindow,
182
+ shrinkWindow: shrinkWindow,
183
+ isWindowDurationZero: isWindowDurationZero
154
184
  };
155
185
  function stepForward() {
156
- if (isInvalid) return;
186
+ if (isInvalid || isWindowDurationZero) return;
157
187
  apply({
158
188
  start: (0, _moment.default)(max).toISOString(),
159
189
  end: (0, _moment.default)(max).add(windowDuration, 'ms').toISOString()
160
190
  });
161
191
  }
162
192
  function stepBackward() {
163
- if (isInvalid) return;
193
+ if (isInvalid || isWindowDurationZero) return;
164
194
  apply({
165
195
  start: (0, _moment.default)(min).subtract(windowDuration, 'ms').toISOString(),
166
196
  end: (0, _moment.default)(min).toISOString()
@@ -168,20 +198,39 @@ function useEuiTimeWindow(start, end, apply, options) {
168
198
  }
169
199
  function expandWindow() {
170
200
  if (isInvalid) return;
201
+ // when the window is 0 it'll remain 0 unless we help it a little
202
+ var addition = zoomDelta === 0 ? ZOOM_DELTA_FALLBACK_MS : zoomDelta;
171
203
  apply({
172
- start: (0, _moment.default)(min).subtract(zoomAddition, 'ms').toISOString(),
173
- end: (0, _moment.default)(max).add(zoomAddition, 'ms').toISOString()
204
+ start: (0, _moment.default)(min).subtract(addition, 'ms').toISOString(),
205
+ end: (0, _moment.default)(max).add(addition, 'ms').toISOString()
206
+ });
207
+ }
208
+ function shrinkWindow() {
209
+ if (isInvalid || isWindowDurationZero) return;
210
+ apply({
211
+ start: (0, _moment.default)(min).add(zoomDelta, 'ms').toISOString(),
212
+ end: (0, _moment.default)(max).subtract(zoomDelta, 'ms').toISOString()
174
213
  });
175
214
  }
176
215
  }
177
216
 
178
217
  /**
179
- * Get a number out of either 0.2 or "20%"
218
+ * Convert strings with % to a multiplier e.g. "50%" = 0.5
219
+ * Strings without % are returned as-is as number
180
220
  */
181
221
  function getPercentageMultiplier(value) {
182
- var result = typeof value === 'number' ? value : parseFloat(String(value).replace('%', '').trim());
183
- if (isNaN(result)) throw new TypeError('Please provide a valid number or percentage string e.g. "25%"');
184
- return result > 1 ? result / 100 : result;
222
+ if (typeof value === 'string' && value.includes('%')) {
223
+ var parsed = parseFloat(value.replace('%', '').trim());
224
+ if (isNaN(parsed)) {
225
+ throw new TypeError('Invalid percentage string');
226
+ }
227
+ return parsed / 100;
228
+ }
229
+ var result = typeof value === 'number' ? value : parseFloat(String(value));
230
+ if (isNaN(result)) {
231
+ throw new TypeError('Please provide a valid number or percentage string e.g. "25%"');
232
+ }
233
+ return result;
185
234
  }
186
235
 
187
236
  /**
@@ -101,4 +101,5 @@ var EuiDescriptionList = exports.EuiDescriptionList = function EuiDescriptionLis
101
101
  }, rest, {
102
102
  "data-type": _type
103
103
  }), listItems ? renderedListItems : children));
104
- };
104
+ };
105
+ EuiDescriptionList.displayName = 'EuiDescriptionList';
@@ -53,4 +53,5 @@ var EuiDescriptionListDescription = exports.EuiDescriptionListDescription = func
53
53
  className: classes,
54
54
  css: cssStyles
55
55
  }, rest), children);
56
- };
56
+ };
57
+ EuiDescriptionListDescription.displayName = 'EuiDescriptionListDescription';
@@ -57,4 +57,5 @@ var EuiDescriptionListTitle = exports.EuiDescriptionListTitle = function EuiDesc
57
57
  className: classes,
58
58
  css: cssStyles
59
59
  }, rest), children);
60
- };
60
+ };
61
+ EuiDescriptionListTitle.displayName = 'EuiDescriptionListTitle';
@@ -122,4 +122,5 @@ var EuiEmptyPrompt = exports.EuiEmptyPrompt = function EuiEmptyPrompt(_ref) {
122
122
  }, body), actionsNode && (body || title) && (0, _react2.jsx)(_spacer.EuiSpacer, {
123
123
  size: "l"
124
124
  }), actionsNode)), footerNode);
125
- };
125
+ };
126
+ EuiEmptyPrompt.displayName = 'EuiEmptyPrompt';
@@ -62,4 +62,5 @@ var EuiFlexGrid = exports.EuiFlexGrid = function EuiFlexGrid(_ref) {
62
62
  className: classes,
63
63
  style: columnDirectionStyles ? _objectSpread(_objectSpread({}, style), columnDirectionStyles) : style
64
64
  }, rest), children);
65
- };
65
+ };
66
+ EuiFlexGrid.displayName = 'EuiFlexGrid';