@elastic/eui 105.0.0 → 106.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 (233) hide show
  1. package/dist/eui_theme_amsterdam_dark.json +2 -0
  2. package/dist/eui_theme_amsterdam_dark.json.d.ts +2 -0
  3. package/dist/eui_theme_amsterdam_light.json +2 -0
  4. package/dist/eui_theme_amsterdam_light.json.d.ts +2 -0
  5. package/dist/eui_theme_borealis_dark.json +2 -0
  6. package/dist/eui_theme_borealis_dark.json.d.ts +2 -0
  7. package/dist/eui_theme_borealis_light.json +10 -8
  8. package/dist/eui_theme_borealis_light.json.d.ts +2 -0
  9. package/es/components/combo_box/combo_box_input/combo_box_input.js +65 -61
  10. package/es/components/combo_box/combo_box_input/combo_box_input.styles.js +6 -4
  11. package/es/components/date_picker/date_picker.styles.js +4 -1
  12. package/es/components/date_picker/date_picker_range.js +3 -2
  13. package/es/components/date_picker/date_picker_range.styles.js +11 -4
  14. package/es/components/date_picker/super_date_picker/super_date_picker.styles.js +23 -14
  15. package/es/components/flyout/_flyout_close_button.styles.js +10 -1
  16. package/es/components/flyout/flyout_child.js +8 -3
  17. package/es/components/flyout/flyout_child.styles.js +3 -2
  18. package/es/components/flyout/sessions/flyout_provider.js +7 -21
  19. package/es/components/flyout/sessions/flyout_reducer.js +5 -26
  20. package/es/components/flyout/sessions/use_eui_flyout.js +21 -10
  21. package/es/components/form/field_number/field_number.styles.js +4 -1
  22. package/es/components/form/field_text/field_text.styles.js +4 -1
  23. package/es/components/form/file_picker/file_picker.js +107 -101
  24. package/es/components/form/file_picker/file_picker.styles.js +18 -17
  25. package/es/components/form/form.styles.js +72 -22
  26. package/es/components/form/form_control_layout/form_control_layout.styles.js +28 -17
  27. package/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +7 -7
  28. package/es/components/form/form_control_layout/form_control_layout_delimited.js +10 -7
  29. package/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +34 -29
  30. package/es/components/form/form_control_layout/form_control_layout_icons.js +35 -20
  31. package/es/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -6
  32. package/es/components/form/form_error_text/form_error_text.styles.js +3 -1
  33. package/es/components/form/form_label/form_label.styles.js +4 -2
  34. package/es/components/header/header.styles.js +5 -3
  35. package/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +6 -3
  36. package/es/components/progress/progress.a11y.js +7 -7
  37. package/es/components/progress/progress.js +18 -27
  38. package/es/components/selectable/selectable_templates/selectable_template_sitewide.js +59 -23
  39. package/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +8 -2
  40. package/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +63 -0
  41. package/es/global_styling/mixins/_button.js +1 -1
  42. package/es/services/color/eui_palettes.js +26 -0
  43. package/es/services/color/vis_color_store.js +1 -1
  44. package/es/services/color/visualization_colors.js +4 -0
  45. package/es/services/theme/provider.js +13 -6
  46. package/es/themes/amsterdam/global_styling/variables/_colors.js +8 -3
  47. package/es/themes/amsterdam/global_styling/variables/_forms.js +96 -53
  48. package/es/themes/amsterdam/theme.js +2 -1
  49. package/es/themes/json/eui_theme_amsterdam_dark.json +2 -0
  50. package/es/themes/json/eui_theme_amsterdam_light.json +2 -0
  51. package/es/themes/json/eui_theme_borealis_dark.json +2 -0
  52. package/es/themes/json/eui_theme_borealis_light.json +10 -8
  53. package/eui.d.ts +461 -376
  54. package/i18ntokens.json +3595 -3523
  55. package/lib/components/combo_box/combo_box_input/combo_box_input.js +64 -60
  56. package/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +6 -4
  57. package/lib/components/date_picker/date_picker.styles.js +4 -1
  58. package/lib/components/date_picker/date_picker_range.js +3 -2
  59. package/lib/components/date_picker/date_picker_range.styles.js +11 -4
  60. package/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +21 -12
  61. package/lib/components/flyout/_flyout_close_button.styles.js +10 -3
  62. package/lib/components/flyout/flyout_child.js +8 -3
  63. package/lib/components/flyout/flyout_child.styles.js +3 -2
  64. package/lib/components/flyout/sessions/flyout_provider.js +7 -21
  65. package/lib/components/flyout/sessions/flyout_reducer.js +5 -26
  66. package/lib/components/flyout/sessions/use_eui_flyout.js +21 -10
  67. package/lib/components/form/field_number/field_number.styles.js +4 -1
  68. package/lib/components/form/field_text/field_text.styles.js +4 -1
  69. package/lib/components/form/file_picker/file_picker.js +106 -100
  70. package/lib/components/form/file_picker/file_picker.styles.js +16 -15
  71. package/lib/components/form/form.styles.js +72 -22
  72. package/lib/components/form/form_control_layout/form_control_layout.styles.js +28 -17
  73. package/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +7 -7
  74. package/lib/components/form/form_control_layout/form_control_layout_delimited.js +9 -6
  75. package/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +34 -27
  76. package/lib/components/form/form_control_layout/form_control_layout_icons.js +34 -19
  77. package/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -6
  78. package/lib/components/form/form_error_text/form_error_text.styles.js +3 -1
  79. package/lib/components/form/form_label/form_label.styles.js +4 -2
  80. package/lib/components/header/header.styles.js +4 -2
  81. package/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +6 -3
  82. package/lib/components/progress/progress.a11y.js +7 -7
  83. package/lib/components/progress/progress.js +18 -27
  84. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +57 -21
  85. package/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +9 -3
  86. package/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +69 -0
  87. package/lib/global_styling/mixins/_button.js +1 -1
  88. package/lib/services/color/eui_palettes.js +26 -0
  89. package/lib/services/color/vis_color_store.js +1 -1
  90. package/lib/services/color/visualization_colors.js +3 -0
  91. package/lib/services/theme/provider.js +13 -6
  92. package/lib/themes/amsterdam/global_styling/variables/_colors.js +8 -3
  93. package/lib/themes/amsterdam/global_styling/variables/_forms.js +96 -53
  94. package/lib/themes/amsterdam/theme.js +2 -1
  95. package/lib/themes/json/eui_theme_amsterdam_dark.json +2 -0
  96. package/lib/themes/json/eui_theme_amsterdam_light.json +2 -0
  97. package/lib/themes/json/eui_theme_borealis_dark.json +2 -0
  98. package/lib/themes/json/eui_theme_borealis_light.json +10 -8
  99. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.js +65 -61
  100. package/optimize/es/components/combo_box/combo_box_input/combo_box_input.styles.js +6 -4
  101. package/optimize/es/components/date_picker/date_picker.styles.js +4 -1
  102. package/optimize/es/components/date_picker/date_picker_range.js +3 -2
  103. package/optimize/es/components/date_picker/date_picker_range.styles.js +11 -4
  104. package/optimize/es/components/date_picker/super_date_picker/super_date_picker.styles.js +23 -14
  105. package/optimize/es/components/flyout/_flyout_close_button.styles.js +10 -1
  106. package/optimize/es/components/flyout/flyout_child.js +4 -3
  107. package/optimize/es/components/flyout/flyout_child.styles.js +3 -2
  108. package/optimize/es/components/flyout/sessions/flyout_provider.js +7 -21
  109. package/optimize/es/components/flyout/sessions/flyout_reducer.js +5 -26
  110. package/optimize/es/components/flyout/sessions/use_eui_flyout.js +21 -10
  111. package/optimize/es/components/form/field_number/field_number.styles.js +4 -1
  112. package/optimize/es/components/form/field_text/field_text.styles.js +4 -1
  113. package/optimize/es/components/form/file_picker/file_picker.js +107 -101
  114. package/optimize/es/components/form/file_picker/file_picker.styles.js +18 -17
  115. package/optimize/es/components/form/form.styles.js +72 -22
  116. package/optimize/es/components/form/form_control_layout/form_control_layout.styles.js +28 -17
  117. package/optimize/es/components/form/form_control_layout/form_control_layout_clear_button.styles.js +7 -7
  118. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.js +10 -7
  119. package/optimize/es/components/form/form_control_layout/form_control_layout_delimited.styles.js +34 -29
  120. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.js +35 -20
  121. package/optimize/es/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -6
  122. package/optimize/es/components/form/form_error_text/form_error_text.styles.js +3 -1
  123. package/optimize/es/components/form/form_label/form_label.styles.js +4 -2
  124. package/optimize/es/components/header/header.styles.js +5 -3
  125. package/optimize/es/components/markdown_editor/markdown_editor_drop_zone.styles.js +6 -3
  126. package/optimize/es/components/progress/progress.a11y.js +7 -7
  127. package/optimize/es/components/progress/progress.js +18 -27
  128. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.js +47 -22
  129. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +8 -2
  130. package/optimize/es/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +52 -0
  131. package/optimize/es/global_styling/mixins/_button.js +1 -1
  132. package/optimize/es/services/color/eui_palettes.js +26 -0
  133. package/optimize/es/services/color/vis_color_store.js +1 -1
  134. package/optimize/es/services/color/visualization_colors.js +4 -0
  135. package/optimize/es/services/theme/provider.js +13 -6
  136. package/optimize/es/themes/amsterdam/global_styling/variables/_colors.js +8 -3
  137. package/optimize/es/themes/amsterdam/global_styling/variables/_forms.js +96 -53
  138. package/optimize/es/themes/amsterdam/theme.js +2 -1
  139. package/optimize/es/themes/json/eui_theme_amsterdam_dark.json +2 -0
  140. package/optimize/es/themes/json/eui_theme_amsterdam_light.json +2 -0
  141. package/optimize/es/themes/json/eui_theme_borealis_dark.json +2 -0
  142. package/optimize/es/themes/json/eui_theme_borealis_light.json +10 -8
  143. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.js +64 -60
  144. package/optimize/lib/components/combo_box/combo_box_input/combo_box_input.styles.js +6 -4
  145. package/optimize/lib/components/date_picker/date_picker.styles.js +4 -1
  146. package/optimize/lib/components/date_picker/date_picker_range.js +3 -2
  147. package/optimize/lib/components/date_picker/date_picker_range.styles.js +11 -4
  148. package/optimize/lib/components/date_picker/super_date_picker/super_date_picker.styles.js +21 -12
  149. package/optimize/lib/components/flyout/_flyout_close_button.styles.js +10 -3
  150. package/optimize/lib/components/flyout/flyout_child.js +4 -3
  151. package/optimize/lib/components/flyout/flyout_child.styles.js +3 -2
  152. package/optimize/lib/components/flyout/sessions/flyout_provider.js +7 -21
  153. package/optimize/lib/components/flyout/sessions/flyout_reducer.js +5 -26
  154. package/optimize/lib/components/flyout/sessions/use_eui_flyout.js +21 -10
  155. package/optimize/lib/components/form/field_number/field_number.styles.js +4 -1
  156. package/optimize/lib/components/form/field_text/field_text.styles.js +4 -1
  157. package/optimize/lib/components/form/file_picker/file_picker.js +106 -100
  158. package/optimize/lib/components/form/file_picker/file_picker.styles.js +16 -15
  159. package/optimize/lib/components/form/form.styles.js +72 -22
  160. package/optimize/lib/components/form/form_control_layout/form_control_layout.styles.js +28 -17
  161. package/optimize/lib/components/form/form_control_layout/form_control_layout_clear_button.styles.js +7 -7
  162. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.js +9 -6
  163. package/optimize/lib/components/form/form_control_layout/form_control_layout_delimited.styles.js +34 -27
  164. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.js +34 -19
  165. package/optimize/lib/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -6
  166. package/optimize/lib/components/form/form_error_text/form_error_text.styles.js +3 -1
  167. package/optimize/lib/components/form/form_label/form_label.styles.js +4 -2
  168. package/optimize/lib/components/header/header.styles.js +4 -2
  169. package/optimize/lib/components/markdown_editor/markdown_editor_drop_zone.styles.js +6 -3
  170. package/optimize/lib/components/progress/progress.a11y.js +7 -7
  171. package/optimize/lib/components/progress/progress.js +18 -27
  172. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.js +45 -20
  173. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +9 -3
  174. package/optimize/lib/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +58 -0
  175. package/optimize/lib/global_styling/mixins/_button.js +1 -1
  176. package/optimize/lib/services/color/eui_palettes.js +26 -0
  177. package/optimize/lib/services/color/vis_color_store.js +1 -1
  178. package/optimize/lib/services/color/visualization_colors.js +3 -0
  179. package/optimize/lib/services/theme/provider.js +13 -6
  180. package/optimize/lib/themes/amsterdam/global_styling/variables/_colors.js +8 -3
  181. package/optimize/lib/themes/amsterdam/global_styling/variables/_forms.js +96 -53
  182. package/optimize/lib/themes/amsterdam/theme.js +2 -1
  183. package/optimize/lib/themes/json/eui_theme_amsterdam_dark.json +2 -0
  184. package/optimize/lib/themes/json/eui_theme_amsterdam_light.json +2 -0
  185. package/optimize/lib/themes/json/eui_theme_borealis_dark.json +2 -0
  186. package/optimize/lib/themes/json/eui_theme_borealis_light.json +10 -8
  187. package/package.json +12 -10
  188. package/src/themes/amsterdam/_colors_dark.scss +3 -0
  189. package/src/themes/amsterdam/_colors_light.scss +3 -0
  190. package/test-env/components/combo_box/combo_box_input/combo_box_input.js +64 -60
  191. package/test-env/components/combo_box/combo_box_input/combo_box_input.styles.js +6 -4
  192. package/test-env/components/date_picker/date_picker.styles.js +4 -1
  193. package/test-env/components/date_picker/date_picker_range.js +3 -2
  194. package/test-env/components/date_picker/date_picker_range.styles.js +11 -4
  195. package/test-env/components/date_picker/super_date_picker/super_date_picker.styles.js +21 -12
  196. package/test-env/components/flyout/_flyout_close_button.styles.js +10 -3
  197. package/test-env/components/flyout/flyout_child.js +8 -3
  198. package/test-env/components/flyout/flyout_child.styles.js +3 -2
  199. package/test-env/components/flyout/sessions/flyout_provider.js +7 -21
  200. package/test-env/components/flyout/sessions/flyout_reducer.js +5 -26
  201. package/test-env/components/flyout/sessions/use_eui_flyout.js +21 -10
  202. package/test-env/components/form/field_number/field_number.styles.js +4 -1
  203. package/test-env/components/form/field_text/field_text.styles.js +4 -1
  204. package/test-env/components/form/file_picker/file_picker.js +106 -100
  205. package/test-env/components/form/file_picker/file_picker.styles.js +16 -15
  206. package/test-env/components/form/form.styles.js +72 -22
  207. package/test-env/components/form/form_control_layout/form_control_layout.styles.js +28 -17
  208. package/test-env/components/form/form_control_layout/form_control_layout_clear_button.styles.js +7 -7
  209. package/test-env/components/form/form_control_layout/form_control_layout_delimited.js +9 -6
  210. package/test-env/components/form/form_control_layout/form_control_layout_delimited.styles.js +34 -27
  211. package/test-env/components/form/form_control_layout/form_control_layout_icons.js +34 -19
  212. package/test-env/components/form/form_control_layout/form_control_layout_icons.styles.js +6 -6
  213. package/test-env/components/form/form_error_text/form_error_text.styles.js +3 -1
  214. package/test-env/components/form/form_label/form_label.styles.js +4 -2
  215. package/test-env/components/header/header.styles.js +4 -2
  216. package/test-env/components/markdown_editor/markdown_editor_drop_zone.styles.js +6 -3
  217. package/test-env/components/progress/progress.a11y.js +7 -7
  218. package/test-env/components/progress/progress.js +18 -27
  219. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.js +57 -21
  220. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide.styles.js +9 -3
  221. package/test-env/components/selectable/selectable_templates/selectable_template_sitewide_popover.js +68 -0
  222. package/test-env/global_styling/mixins/_button.js +1 -1
  223. package/test-env/services/color/eui_palettes.js +26 -0
  224. package/test-env/services/color/vis_color_store.js +1 -1
  225. package/test-env/services/color/visualization_colors.js +3 -0
  226. package/test-env/services/theme/provider.js +13 -6
  227. package/test-env/themes/amsterdam/global_styling/variables/_colors.js +8 -3
  228. package/test-env/themes/amsterdam/global_styling/variables/_forms.js +96 -53
  229. package/test-env/themes/amsterdam/theme.js +2 -1
  230. package/test-env/themes/json/eui_theme_amsterdam_dark.json +2 -0
  231. package/test-env/themes/json/eui_theme_amsterdam_light.json +2 -0
  232. package/test-env/themes/json/eui_theme_borealis_dark.json +2 -0
  233. package/test-env/themes/json/eui_theme_borealis_light.json +10 -8
@@ -255,66 +255,70 @@ var EuiComboBoxInput = exports.EuiComboBoxInput = /*#__PURE__*/function (_Compon
255
255
  var wrapClasses = (0, _classnames.default)('euiComboBox__inputWrap', {
256
256
  'euiComboBox__inputWrap--plainText': this.asPlainText
257
257
  });
258
- return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
259
- var styles = stylesMemoizer(_combo_box_input.euiComboBoxInputStyles);
260
- var cssStyles = [styles.euiComboBoxInputWrapper, !singleSelection && styles.multiSelect, compressed ? styles.compressed : styles.uncompressed].concat(_toConsumableArray(_this2.asPlainText || showPlaceholder ? [styles.plainText.plainText, compressed ? styles.plainText.compressed : styles.plainText.uncompressed] : []), [isDisabled ? styles.disabled : isInvalid ? styles.invalid : isListOpen ? styles.open : undefined, isInGroup && styles.inGroup]);
261
- var formLayoutStyles = [styles.formLayout.euiComboBox__formControlLayout, !singleSelection && styles.formLayout.multiSelect];
262
- return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, _extends({
263
- icon: icon
264
- }, clickProps, {
265
- inputId: id,
266
- isLoading: isLoading,
267
- isInvalid: isInvalid,
268
- isDisabled: isDisabled,
269
- compressed: compressed,
270
- fullWidth: fullWidth,
271
- prepend: prepend,
272
- append: append,
273
- css: formLayoutStyles
274
- }), (0, _react2.jsx)("div", {
275
- css: cssStyles,
276
- className: wrapClasses,
277
- "data-test-subj": "comboBoxInput",
278
- onClick: onClick,
279
- tabIndex: -1 // becomes onBlur event's relatedTarget, otherwise relatedTarget is null when clicking on this div
280
- }, _this2.renderPills(), (0, _react2.jsx)(_utils.EuiComboBoxOptionAppendPrepend, {
281
- option: _this2.asPlainText ? selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions[0] : undefined,
282
- classNamePrefix: "euiComboBoxPlainTextSelection",
283
- marginSize: "xxs"
284
- }, (0, _react2.jsx)("input", {
285
- "aria-activedescendant": focusedOptionId,
286
- "aria-autocomplete": "list",
287
- "aria-controls": isListOpen ? rootId('listbox') : '',
288
- "aria-expanded": isListOpen,
289
- "aria-label": ariaLabel,
290
- "aria-labelledby": ariaLabelledby,
291
- "aria-describedby": ariaDescribedby,
292
- "aria-invalid": isInvalid,
293
- "aria-haspopup": "listbox",
294
- css: styles.euiComboBoxInput,
295
- className: "euiComboBox__input",
296
- "data-test-subj": "comboBoxSearchInput",
297
- disabled: isDisabled,
298
- id: id,
299
- onBlur: _this2.onBlur,
300
- onChange: function onChange(event) {
301
- return _onChange(event.target.value);
302
- },
303
- onFocus: _this2.onFocus,
304
- onKeyDown: _this2.onKeyDown,
305
- ref: _this2.inputRefCallback,
306
- role: "combobox",
307
- style: {
308
- inlineSize: _this2.asPlainText || showPlaceholder ? '100%' : _this2.state.inputWidth
309
- },
310
- placeholder: showPlaceholder ? placeholder : undefined,
311
- value: _this2.searchValue,
312
- autoFocus: autoFocus,
313
- autoComplete: "off"
314
- // Force the menu to re-open on every input click - only necessary when plain text
315
- ,
316
- onClick: _this2.asPlainText ? onFocus : undefined // Type shenanigans - event should be mostly the same
317
- })), removeOptionMessage));
258
+ return (0, _react2.jsx)(_services.RenderWithEuiTheme, null, function (euiThemeContext) {
259
+ return (0, _react2.jsx)(_services.RenderWithEuiStylesMemoizer, null, function (stylesMemoizer) {
260
+ var styles = stylesMemoizer(_combo_box_input.euiComboBoxInputStyles);
261
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
262
+ var stateCss = isRefreshVariant ? isListOpen ? styles.open : isInvalid ? styles.invalid : undefined : isInvalid ? styles.invalid : isListOpen ? styles.open : undefined;
263
+ var cssStyles = [styles.euiComboBoxInputWrapper, !singleSelection && styles.multiSelect, compressed ? styles.compressed : styles.uncompressed].concat(_toConsumableArray(_this2.asPlainText || showPlaceholder ? [styles.plainText.plainText, compressed ? styles.plainText.compressed : styles.plainText.uncompressed] : []), [isDisabled ? styles.disabled : stateCss, isInGroup && styles.inGroup]);
264
+ var formLayoutStyles = [styles.formLayout.euiComboBox__formControlLayout, !singleSelection && styles.formLayout.multiSelect];
265
+ return (0, _react2.jsx)(_form_control_layout.EuiFormControlLayout, _extends({
266
+ icon: icon
267
+ }, clickProps, {
268
+ inputId: id,
269
+ isLoading: isLoading,
270
+ isInvalid: isInvalid,
271
+ isDisabled: isDisabled,
272
+ compressed: compressed,
273
+ fullWidth: fullWidth,
274
+ prepend: prepend,
275
+ append: append,
276
+ css: formLayoutStyles
277
+ }), (0, _react2.jsx)("div", {
278
+ css: cssStyles,
279
+ className: wrapClasses,
280
+ "data-test-subj": "comboBoxInput",
281
+ onClick: onClick,
282
+ tabIndex: -1 // becomes onBlur event's relatedTarget, otherwise relatedTarget is null when clicking on this div
283
+ }, _this2.renderPills(), (0, _react2.jsx)(_utils.EuiComboBoxOptionAppendPrepend, {
284
+ option: _this2.asPlainText ? selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions[0] : undefined,
285
+ classNamePrefix: "euiComboBoxPlainTextSelection",
286
+ marginSize: "xxs"
287
+ }, (0, _react2.jsx)("input", {
288
+ "aria-activedescendant": focusedOptionId,
289
+ "aria-autocomplete": "list",
290
+ "aria-controls": isListOpen ? rootId('listbox') : '',
291
+ "aria-expanded": isListOpen,
292
+ "aria-label": ariaLabel,
293
+ "aria-labelledby": ariaLabelledby,
294
+ "aria-describedby": ariaDescribedby,
295
+ "aria-invalid": isInvalid,
296
+ "aria-haspopup": "listbox",
297
+ css: styles.euiComboBoxInput,
298
+ className: "euiComboBox__input",
299
+ "data-test-subj": "comboBoxSearchInput",
300
+ disabled: isDisabled,
301
+ id: id,
302
+ onBlur: _this2.onBlur,
303
+ onChange: function onChange(event) {
304
+ return _onChange(event.target.value);
305
+ },
306
+ onFocus: _this2.onFocus,
307
+ onKeyDown: _this2.onKeyDown,
308
+ ref: _this2.inputRefCallback,
309
+ role: "combobox",
310
+ style: {
311
+ inlineSize: _this2.asPlainText || showPlaceholder ? '100%' : _this2.state.inputWidth
312
+ },
313
+ placeholder: showPlaceholder ? placeholder : undefined,
314
+ value: _this2.searchValue,
315
+ autoFocus: autoFocus,
316
+ autoComplete: "off"
317
+ // Force the menu to re-open on every input click - only necessary when plain text
318
+ ,
319
+ onClick: _this2.asPlainText ? onFocus : undefined // Type shenanigans - event should be mostly the same
320
+ })), removeOptionMessage));
321
+ });
318
322
  });
319
323
  }
320
324
  }]);
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.euiComboBoxInputStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
+ var _services = require("../../../services");
8
9
  var _global_styling = require("../../../global_styling");
9
10
  var _form = require("../../form/form.styles");
10
11
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -32,12 +33,13 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
32
33
  };
33
34
  var euiComboBoxInputStyles = exports.euiComboBoxInputStyles = function euiComboBoxInputStyles(euiThemeContext) {
34
35
  var euiTheme = euiThemeContext.euiTheme;
36
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
35
37
  var formStyles = (0, _form.euiFormControlStyles)(euiThemeContext);
36
38
  return {
37
39
  // Wrapper which visually mimics a form control
38
- euiComboBoxInputWrapper: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDefaultShadow)(euiThemeContext), " display:flex;;label:euiComboBoxInputWrapper;"),
40
+ euiComboBoxInputWrapper: /*#__PURE__*/(0, _react.css)((0, _form.euiFormControlDefaultShadow)(euiThemeContext), " display:flex;", isRefreshVariant && "\n &:focus-within {\n ".concat(formStyles.focus, "\n }\n "), ";;label:euiComboBoxInputWrapper;"),
39
41
  multiSelect: _ref2,
40
- uncompressed: "\n ".concat(formStyles.uncompressed, "\n ").concat((0, _global_styling.logicalCSS)('height', 'auto'), "\n ").concat((0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', euiTheme.size.s), "\n column-gap: ").concat(euiTheme.size.s, ";\n row-gap: ").concat(euiTheme.size.xs, ";\n "),
42
+ uncompressed: "\n ".concat(formStyles.uncompressed, "\n ").concat((0, _global_styling.logicalCSS)('height', 'auto'), "\n ").concat((0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.s), "\n ").concat((0, _global_styling.logicalCSS)('padding-left', isRefreshVariant ? euiTheme.size.m : euiTheme.size.s), "\n column-gap: ").concat(euiTheme.size.s, ";\n row-gap: ").concat(euiTheme.size.xs, ";\n "),
41
43
  compressed: /*#__PURE__*/(0, _react.css)(formStyles.compressed, " ", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-vertical', euiTheme.size.xs), " ", (0, _global_styling.logicalCSS)('padding-left', euiTheme.size.xs), " column-gap:", euiTheme.size.xs, ";row-gap:", euiTheme.size.xxs, ";;label:compressed;"),
42
44
  plainText: {
43
45
  plainText: _ref,
@@ -46,10 +48,10 @@ var euiComboBoxInputStyles = exports.euiComboBoxInputStyles = function euiComboB
46
48
  },
47
49
  invalid: /*#__PURE__*/(0, _react.css)(formStyles.invalid, ";label:invalid;"),
48
50
  disabled: /*#__PURE__*/(0, _react.css)(formStyles.disabled, ";label:disabled;"),
49
- open: /*#__PURE__*/(0, _react.css)(formStyles.focus, ";label:open;"),
51
+ open: /*#__PURE__*/(0, _react.css)(formStyles.focus, ";;label:open;"),
50
52
  inGroup: /*#__PURE__*/(0, _react.css)(formStyles.inGroup, ";label:inGroup;"),
51
53
  // Actual input element, which has variable width depending on its value
52
- euiComboBoxInput: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.l), " ", (0, _global_styling.logicalCSS)('min-width', '2px'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), (0, _form.euiFormControlText)(euiThemeContext), " background:transparent;&:disabled{color:", euiTheme.colors.disabledText, ";}appearance:none!important;border:none!important;box-shadow:none!important;outline:none!important;;label:euiComboBoxInput;"),
54
+ euiComboBoxInput: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('height', euiTheme.size.l), " ", (0, _global_styling.logicalCSS)('min-width', '2px'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), (0, _form.euiFormControlText)(euiThemeContext), " background:transparent;&:disabled{color:", euiTheme.colors.textDisabled, ";}appearance:none!important;border:none!important;box-shadow:none!important;outline:none!important;;label:euiComboBoxInput;"),
53
55
  // EuiFormControlLayout overrides
54
56
  formLayout: {
55
57
  euiComboBox__formControlLayout: /*#__PURE__*/(0, _react.css)(";label:euiComboBox__formControlLayout;"),
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.euiDatePickerStyles = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
+ var _services = require("../../services");
9
10
  var _global_styling = require("../../global_styling");
10
11
  var _form = require("../form/form.styles");
11
12
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
@@ -25,10 +26,12 @@ var _ref = process.env.NODE_ENV === "production" ? {
25
26
  };
26
27
  var euiDatePickerStyles = exports.euiDatePickerStyles = function euiDatePickerStyles(euiThemeContext) {
27
28
  var euiTheme = euiThemeContext.euiTheme;
29
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
30
+ var inlineStyles = "\n /* removes form layout border */\n &::after {\n display: none;\n }\n ";
28
31
  return {
29
32
  euiDatePicker: _ref,
30
33
  inline: {
31
- inline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " border:none;padding:0;}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";};label:inline;"),
34
+ inline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " border:none;padding:0;", isRefreshVariant && inlineStyles, ";}.euiFormControlLayout__childrenWrapper{flex-direction:column;}.euiFormControlLayoutIcons{justify-content:center;", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";};label:inline;"),
32
35
  // Skip css`` to avoid generating an Emotion className
33
36
  noShadow: "\n .euiFormControlLayout {\n background-color: transparent;\n }\n ",
34
37
  shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout{background-color:", euiTheme.colors.emptyShade, ";", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext, {
@@ -53,8 +53,9 @@ var EuiDatePickerRange = exports.EuiDatePickerRange = function EuiDatePickerRang
53
53
  var fullWidth = _fullWidth && !inline;
54
54
  var compressed = _compressed && !inline;
55
55
  var classes = (0, _classnames.default)('euiDatePickerRange', className);
56
+ var styles = (0, _services.useEuiMemoizedStyles)(_date_picker_range.euiDatePickerRangeStyles);
56
57
  var inlineStyles = (0, _services.useEuiMemoizedStyles)(_date_picker_range.euiDatePickerRangeInlineStyles);
57
- var cssStyles = !inline ? _date_picker_range.euiDatePickerRangeStyles.euiDatePickerRange : [inlineStyles.euiDatePickerRangeInline,
58
+ var cssStyles = !inline ? styles.euiDatePickerRange : [inlineStyles.euiDatePickerRangeInline,
58
59
  // Determine the inline container query to use based on the width of the react-datepicker
59
60
  startDateControl !== null && startDateControl !== void 0 && startDateControl.props.showTimeSelect || endDateControl !== null && endDateControl !== void 0 && endDateControl.props.showTimeSelect ? inlineStyles.responsiveWithTimeSelect : inlineStyles.responsive, shadow && inlineStyles.shadow];
60
61
  var startControl = startDateControl;
@@ -110,7 +111,7 @@ var EuiDatePickerRange = exports.EuiDatePickerRange = function EuiDatePickerRang
110
111
  if (iconType === true) return 'calendar';
111
112
  return iconType;
112
113
  }, [iconType, inline]);
113
- return (0, _react2.jsx)("span", _extends({
114
+ return (0, _react2.jsx)("div", _extends({
114
115
  className: classes,
115
116
  css: cssStyles
116
117
  }, rest), (0, _react2.jsx)(_form.EuiFormControlLayoutDelimited, {
@@ -7,6 +7,8 @@ exports.euiDatePickerRangeStyles = exports.euiDatePickerRangeInlineStyles = void
7
7
  var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
9
  var _global_styling = require("../../global_styling");
10
+ var _services = require("../../services");
11
+ var _form = require("../form/form.styles");
10
12
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
11
13
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
12
14
  * or more contributor license agreements. Licensed under the Elastic License
@@ -14,8 +16,12 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
14
16
  * in compliance with, at your election, the Elastic License 2.0 or the Server
15
17
  * Side Public License, v 1.
16
18
  */
17
- var euiDatePickerRangeStyles = exports.euiDatePickerRangeStyles = {
18
- euiDatePickerRange: /*#__PURE__*/(0, _react.css)(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", (0, _global_styling.logicalCSS)('height', '100%'), ";}.euiPopover{flex:1;};label:euiDatePickerRange;")
19
+ var euiDatePickerRangeStyles = exports.euiDatePickerRangeStyles = function euiDatePickerRangeStyles(euiThemeContext) {
20
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
21
+ var refreshStyles = "\n .euiPopover:last-child {\n ".concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n\n * {\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n }\n ");
22
+ return {
23
+ euiDatePickerRange: /*#__PURE__*/(0, _react.css)(".euiPopover,.react-datepicker__input-container,.euiDatePicker{", (0, _global_styling.logicalCSS)('height', '100%'), ";}.euiPopover{flex:1;}", isRefreshVariant && refreshStyles, ";;label:euiDatePickerRange;")
24
+ };
19
25
  };
20
26
  var _ref = process.env.NODE_ENV === "production" ? {
21
27
  name: "bicgs9-noShadow",
@@ -27,6 +33,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
27
33
  };
28
34
  var euiDatePickerRangeInlineStyles = exports.euiDatePickerRangeInlineStyles = function euiDatePickerRangeInlineStyles(euiThemeContext) {
29
35
  var euiTheme = euiThemeContext.euiTheme;
36
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
30
37
 
31
38
  // Use a container query to stack date pickers vertically if the container is
32
39
  // not wide enough to fit both. We need a fn for this to render two width queries,
@@ -36,12 +43,12 @@ var euiDatePickerRangeInlineStyles = exports.euiDatePickerRangeInlineStyles = fu
36
43
  return "\n display: block;\n container-type: inline-size;\n\n .euiFormControlLayout__childrenWrapper {\n /* Use static px widths for now, since render behavior comes from a third party library */\n @container (max-width: ".concat(datePickerWidth * 2 + delimiterWidth, "px) {\n /* Unset grid display */\n display: block !important;\n\n /* Center and point the default delimiter arrow downwards */\n .euiFormControlLayoutDelimited__delimiter .euiIcon {\n transform: rotate(90deg);\n margin-inline: auto;\n }\n }\n }");
37
44
  };
38
45
  return {
39
- euiDatePickerRangeInline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " border:none;padding:0;.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
46
+ euiDatePickerRangeInline: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('width', 'fit-content'), " ", (0, _global_styling.logicalCSS)('max-width', '100%'), " border:none;padding:0;", isRefreshVariant && "\n &::after {\n display: none;\n }\n ", ";.euiFormControlLayout__childrenWrapper{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto;align-items:stretch;background-color:transparent;}.euiFormControlLayoutIcons{justify-content:center;grid-column:1/span 3;", (0, _global_styling.logicalCSS)('height', 'auto'), " ", (0, _global_styling.logicalCSS)('padding-bottom', euiTheme.size.s), ";}}.react-datepicker{position:relative;};label:euiDatePickerRangeInline;"),
40
47
  responsive: /*#__PURE__*/(0, _react.css)(containerQuery(268), ";;label:responsive;"),
41
48
  responsiveWithTimeSelect: /*#__PURE__*/(0, _react.css)(containerQuery(374), ";;label:responsiveWithTimeSelect;"),
42
49
  shadow: /*#__PURE__*/(0, _react.css)(".euiFormControlLayoutDelimited{", (0, _euiThemeCommon.euiShadowMedium)(euiThemeContext, {
43
50
  borderAllInHighContrastMode: true
44
- }), ";};label:shadow;"),
51
+ }), " ", isRefreshVariant && "\n /* the form layout is not part of the interactive behavior but rather a container in this variant */\n ".concat((0, _form.disableFormControlHoverStyles)(), "\n\n .euiFormControlLayout__childrenWrapper {\n box-shadow: none;\n ").concat((0, _form.disableFormControlHoverStyles)(), "\n }\n "), ";};label:shadow;"),
45
52
  // Applied directly to EuiFormControlLayout so we can check if `disabled`
46
53
  // and allow the disabled background-color to take precedence
47
54
  formLayout: {
@@ -26,6 +26,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
26
26
  };
27
27
  var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSuperDatePickerStyles(euiThemeContext) {
28
28
  var euiTheme = euiThemeContext.euiTheme;
29
+ var isRefreshVariant = (0, _services.isEuiThemeRefreshVariant)(euiThemeContext, 'formVariant');
29
30
  var forms = (0, _form.euiFormVariables)(euiThemeContext);
30
31
  var inputWidth = euiTheme.base * 30;
31
32
  var buttonWidth = euiTheme.base * 7; // @see _button_display.styles.ts
@@ -45,6 +46,18 @@ var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSu
45
46
  // Needs updating colors
46
47
  var needsUpdatingBackgroundColor = euiTheme.components.superDatePickerBackgroundSuccees;
47
48
  var needsUpdatingTextColor = (0, _services.makeHighContrastColor)(euiTheme.colors.success)(needsUpdatingBackgroundColor);
49
+ var formLayoutStyles = "\n /* using wrapper hover styles instead */\n .euiDatePopoverButton:not(.euiDatePopoverButton-isSelected):hover {\n outline: none;\n }\n\n .euiPopover {\n /* mimic input border-radius */\n border-radius: ".concat(forms.controlBorderRadius, ";\n\n &:first-child {\n ").concat((0, _global_styling.logicalCSS)('border-top-left-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-left-radius', 'inherit'), "\n }\n\n &:last-child {\n ").concat((0, _global_styling.logicalCSS)('border-top-right-radius', 'inherit'), "\n ").concat((0, _global_styling.logicalCSS)('border-bottom-right-radius', 'inherit'), "\n }\n }\n\n .euiDatePopoverButton {\n background-color: transparent;\n border-radius: inherit;\n }\n ");
50
+ var popoverButtonFocusStyles = isRefreshVariant ? "\n ".concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.primary, ";\n ").concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, euiTheme.colors.primary), "\n ");
51
+ var invalidStyles = isRefreshVariant ? "\n &:has(.euiPopover-isOpen, .euiDatePopoverButton:focus) {\n --euiFormControlStateColor: ".concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n\n &:not(:has(.euiPopover-isOpen, .euiDatePopoverButton:focus)) {\n ").concat((0, _form.euiFormControlInvalidStyles)(euiThemeContext), "\n }\n\n .euiDatePopoverButton:focus,\n .euiPopover-isOpen .euiDatePopoverButton {\n ").concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n }\n ") : "\n ".concat((0, _form.euiFormControlInvalidStyles)(euiThemeContext), "\n ");
52
+ var needsUpdatingStyles = "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n --euiFormControlStateHoverColor: ").concat(euiTheme.colors.success, ";\n --euiFormControlStateWidth: ").concat(euiTheme.border.width.thin, ";\n ").concat(_form.euiFormControlHighlightBorderStyles, "\n \n &:has(.euiPopover-isOpen),\n &:focus-within {\n --euiFormControlStateColor: ").concat(forms.borderColor, ";\n --euiFormControlStateHoverColor: ").concat(forms.borderHovered, ";\n }\n ");
53
+ var needsUpdatingPopoverButtonFocusStyles = isRefreshVariant ? "\n ".concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n ") : "\n --euiFormControlStateColor: ".concat(euiTheme.colors.success, ";\n ").concat((0, _form.euiFormControlShowBackgroundLine)(euiThemeContext, euiTheme.colors.success), "\n\n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
54
+ // Force the fill color of all icons/svgs to give a bit more indication of state,
55
+ // since Windows high contrast themes otherwise override background/text color
56
+ forced: "\n svg,\n & + * svg {\n fill: ".concat(euiTheme.colors.success, ";\n }\n ")
57
+ }), "\n ");
58
+ var prettyFormatStyles = "\n --euiFormControlStateHoverColor: ".concat(forms.borderHovered, ";\n ").concat((0, _form.euiFormControlDefaultShadow)(euiThemeContext), "\n \n ").concat((0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
59
+ preferred: "\n border: none;\n "
60
+ }), "\n\n &:focus {\n ").concat((0, _form.euiFormControlFocusStyles)(euiThemeContext), "\n }\n ");
48
61
  return {
49
62
  euiSuperDatePicker: /*#__PURE__*/(0, _react.css)("display:flex;gap:", gap, ";", (0, _global_styling.logicalCSS)('max-width', '100%'), " ", (0, _global_styling.euiMaxBreakpoint)(euiThemeContext, 'm'), "{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiSuperDatePicker;"),
50
63
  widths: {
@@ -69,27 +82,23 @@ var euiSuperDatePickerStyles = exports.euiSuperDatePickerStyles = function euiSu
69
82
  isQuickSelectOnly: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('min-width', 0), ".euiFormControlLayout__prepend{", (0, _global_styling.logicalCSS)('max-width', 'none'), ";};label:isQuickSelectOnly;"),
70
83
  euiSuperDatePicker__range: _ref,
71
84
  euiSuperDatePicker__rangeInput: /*#__PURE__*/(0, _react.css)("flex-grow:1;", (0, _global_styling.logicalCSS)('width', 'auto'), " overflow:hidden;;label:euiSuperDatePicker__rangeInput;"),
72
- euiSuperDatePicker__prettyFormat: /*#__PURE__*/(0, _react.css)(_buttonStyles(euiThemeContext), " text-align:start;;label:euiSuperDatePicker__prettyFormat;"),
85
+ euiSuperDatePicker__prettyFormat: /*#__PURE__*/(0, _react.css)(_buttonStyles(euiThemeContext), " text-align:start;", isRefreshVariant && prettyFormatStyles, ";;label:euiSuperDatePicker__prettyFormat;"),
73
86
  // Form states
74
87
  states: {
75
- euiSuperDatePicker__formControlLayout: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
88
+ euiSuperDatePicker__formControlLayout: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{--euiFormControlStateHoverColor:", forms.borderHovered, ";", (0, _form.euiFormControlDefaultShadow)(euiThemeContext), " ", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
76
89
  none: 'box-shadow: none;',
77
90
  preferred: 'border: none;'
78
- }), ";};label:euiSuperDatePicker__formControlLayout;"),
79
- default: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
91
+ }), " ", isRefreshVariant && formLayoutStyles, ";};label:euiSuperDatePicker__formControlLayout;"),
92
+ default: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", forms.textColor, ";background-color:", forms.backgroundColor, ";}.euiDatePopoverButton{--euiFormControlStateHoverColor:", forms.borderHovered, ";", !isRefreshVariant && (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
80
93
  withBorder: false,
81
94
  withBackgroundColor: false
82
- }), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.primary, ";", (0, _form.euiFormControlShowBackgroundUnderline)(euiThemeContext, euiTheme.colors.primary), ";};label:default;"),
95
+ }), " box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", popoverButtonFocusStyles, ";};label:default;"),
83
96
  disabled: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{", (0, _form.euiFormControlDisabledStyles)(euiThemeContext), ";};label:disabled;"),
84
- invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", (0, _form.euiFormControlInvalidStyles)(euiThemeContext), ";};label:invalid;"),
85
- needsUpdating: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
97
+ invalid: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", euiTheme.colors.textDanger, ";background-color:", forms.backgroundColor, ";", invalidStyles, ";};label:invalid;"),
98
+ needsUpdating: /*#__PURE__*/(0, _react.css)(".euiFormControlLayout__childrenWrapper{color:", needsUpdatingTextColor, ";background-color:", needsUpdatingBackgroundColor, ";", isRefreshVariant && needsUpdatingStyles, ";}.euiFormControlLayoutDelimited__delimiter{color:inherit;}.euiDatePopoverButton{", (0, _form.euiFormControlDefaultShadow)(euiThemeContext, {
86
99
  withBorder: false,
87
100
  withBackgroundColor: false
88
- }), ";}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{--euiFormControlStateColor:", euiTheme.colors.success, ";", (0, _form.euiFormControlShowBackgroundUnderline)(euiThemeContext, euiTheme.colors.success), ";}", (0, _high_contrast.highContrastModeStyles)(euiThemeContext, {
89
- // Force the fill color of all icons/svgs to give a bit more indication of state,
90
- // since Windows high contrast themes otherwise override background/text color
91
- forced: "\n svg,\n & + * svg {\n fill: ".concat(euiTheme.colors.success, ";\n }\n ")
92
- }), ";;label:needsUpdating;")
101
+ }), " background-color:inherit;box-shadow:none;}.euiDatePopoverButton:focus,.euiPopover-isOpen .euiDatePopoverButton{", needsUpdatingPopoverButtonFocusStyles, ";};label:needsUpdating;")
93
102
  }
94
103
  };
95
104
  };
@@ -8,19 +8,26 @@ var _react = require("@emotion/react");
8
8
  var _euiThemeCommon = require("@elastic/eui-theme-common");
9
9
  var _global_styling = require("../../global_styling");
10
10
  var _flyout = require("./flyout.styles");
11
- /*
11
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; } /*
12
12
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
13
13
  * or more contributor license agreements. Licensed under the Elastic License
14
14
  * 2.0 and the Server Side Public License, v 1; you may not use this file except
15
15
  * in compliance with, at your election, the Elastic License 2.0 or the Server
16
16
  * Side Public License, v 1.
17
17
  */
18
-
18
+ var _ref = process.env.NODE_ENV === "production" ? {
19
+ name: "1ffeobd-inside",
20
+ styles: "background-color:transparent;label:inside;"
21
+ } : {
22
+ name: "1ffeobd-inside",
23
+ styles: "background-color:transparent;label:inside;",
24
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
25
+ };
19
26
  var euiFlyoutCloseButtonStyles = exports.euiFlyoutCloseButtonStyles = function euiFlyoutCloseButtonStyles(euiThemeContext) {
20
27
  var euiTheme = euiThemeContext.euiTheme;
21
28
  return {
22
29
  euiFlyout__closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('right', euiTheme.size.s), " ", (0, _global_styling.logicalCSS)('top', euiTheme.size.s), " z-index:3;;label:euiFlyout__closeButton;"),
23
- inside: /*#__PURE__*/(0, _react.css)("background-color:", euiTheme.components.flyoutCloseButtonInsideBackground, ";;label:inside;"),
30
+ inside: _ref,
24
31
  outside: /*#__PURE__*/(0, _react.css)((0, _euiThemeCommon.euiShadowXLarge)(euiThemeContext, {
25
32
  borderAllInHighContrastMode: true
26
33
  }), "animation:none!important;;label:outside;"),
@@ -15,7 +15,7 @@ var _flyout_context = require("./flyout_context");
15
15
  var _flyout_body = require("./flyout_body");
16
16
  var _focus_trap = require("../focus_trap");
17
17
  var _react2 = require("@emotion/react");
18
- var _excluded = ["children", "className", "banner", "hideCloseButton", "onClose", "scrollableTabIndex", "size"];
18
+ var _excluded = ["children", "backgroundStyle", "className", "banner", "hideCloseButton", "onClose", "scrollableTabIndex", "size"];
19
19
  /*
20
20
  * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
21
21
  * or more contributor license agreements. Licensed under the Elastic License
@@ -38,6 +38,8 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
38
38
  */
39
39
  var EuiFlyoutChild = exports.EuiFlyoutChild = function EuiFlyoutChild(_ref) {
40
40
  var children = _ref.children,
41
+ _ref$backgroundStyle = _ref.backgroundStyle,
42
+ backgroundStyle = _ref$backgroundStyle === void 0 ? 'default' : _ref$backgroundStyle,
41
43
  className = _ref.className,
42
44
  banner = _ref.banner,
43
45
  _ref$hideCloseButton = _ref.hideCloseButton,
@@ -130,7 +132,7 @@ var EuiFlyoutChild = exports.EuiFlyoutChild = function EuiFlyoutChild(_ref) {
130
132
  var styles = (0, _services.useEuiMemoizedStyles)(_flyout_child.euiFlyoutChildStyles);
131
133
  var childLayoutMode = flyoutContext.childLayoutMode,
132
134
  parentFlyoutRef = flyoutContext.parentFlyoutRef;
133
- var flyoutChildCss = [styles.euiFlyoutChild, size === 's' ? styles.s : styles.m, childLayoutMode === 'side-by-side' ? styles.sidePosition : styles.stackedPosition];
135
+ var flyoutChildCss = [styles.euiFlyoutChild, backgroundStyle === 'shaded' ? styles.backgroundShaded : styles.backgroundDefault, size === 's' ? styles.s : styles.m, childLayoutMode === 'side-by-side' ? styles.sidePosition : styles.stackedPosition];
134
136
  return (0, _react2.jsx)(_focus_trap.EuiFocusTrap, {
135
137
  returnFocus: function returnFocus() {
136
138
  if (parentFlyoutRef !== null && parentFlyoutRef !== void 0 && parentFlyoutRef.current) {
@@ -157,7 +159,6 @@ var EuiFlyoutChild = exports.EuiFlyoutChild = function EuiFlyoutChild(_ref) {
157
159
  className: "euiScreenReaderOnly"
158
160
  }, flyoutTitleText), !hideCloseButton && (0, _react2.jsx)(_flyout_close_button.EuiFlyoutCloseButton, {
159
161
  className: "euiFlyoutChild__closeButton",
160
- css: styles.closeButton,
161
162
  onClose: handleClose,
162
163
  side: "right",
163
164
  closeButtonPosition: "inside",
@@ -205,6 +206,10 @@ EuiFlyoutChild.propTypes = {
205
206
  * @default 's'
206
207
  */
207
208
  size: _propTypes.default.oneOf(["s", "m"]),
209
+ /*
210
+ * The background of the child flyout can be optionally shaded. Use `shaded` to add the shading.
211
+ */
212
+ backgroundStyle: _propTypes.default.oneOf(["shaded", "default"]),
208
213
  /**
209
214
  * Children are implicitly part of FunctionComponent, but good to have if props type is standalone.
210
215
  */
@@ -19,13 +19,14 @@ var euiFlyoutChildStyles = exports.euiFlyoutChildStyles = function euiFlyoutChil
19
19
  var euiTheme = euiThemeContext.euiTheme;
20
20
  return {
21
21
  // Base styles for the child flyout
22
- euiFlyoutChild: /*#__PURE__*/(0, _react.css)("position:absolute;inset-block-start:0;inset-inline-start:0;block-size:100%;background:", euiTheme.colors.backgroundBaseSubdued, ";display:flex;flex-direction:column;", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'hidden'), " ", (0, _global_styling.logicalCSS)('height', '100%'), " z-index:", Number(euiTheme.levels.flyout) + 1, ";border-inline-start:", euiTheme.border.thin, ";", (0, _flyout.maxedFlyoutWidth)(euiThemeContext), ";;label:euiFlyoutChild;"),
22
+ euiFlyoutChild: /*#__PURE__*/(0, _react.css)("position:absolute;inset-block-start:0;inset-inline-start:0;block-size:100%;display:flex;flex-direction:column;", (0, _global_styling.logicalCSSWithFallback)('overflow-y', 'hidden'), " ", (0, _global_styling.logicalCSS)('height', '100%'), " z-index:", Number(euiTheme.levels.flyout) + 1, ";border-inline-start:", euiTheme.border.thin, ";", (0, _flyout.maxedFlyoutWidth)(euiThemeContext), ";;label:euiFlyoutChild;"),
23
+ backgroundDefault: /*#__PURE__*/(0, _react.css)("background:", euiTheme.colors.backgroundBasePlain, ";;label:backgroundDefault;"),
24
+ backgroundShaded: /*#__PURE__*/(0, _react.css)("background:", euiTheme.colors.backgroundBaseSubdued, ";;label:backgroundShaded;"),
23
25
  // Position variants based on screen size
24
26
  sidePosition: /*#__PURE__*/(0, _react.css)("transform:translateX(-100%);border-inline-end:", euiTheme.border.thin, ";;label:sidePosition;"),
25
27
  stackedPosition: /*#__PURE__*/(0, _react.css)("inset-inline-end:0;inline-size:100%;border-block-end:", euiTheme.border.thin, ";;label:stackedPosition;"),
26
28
  s: /*#__PURE__*/(0, _react.css)((0, _flyout.composeFlyoutSizing)(euiThemeContext, 's'), ";;label:s;"),
27
29
  m: /*#__PURE__*/(0, _react.css)((0, _flyout.composeFlyoutSizing)(euiThemeContext, 'm'), ";;label:m;"),
28
- closeButton: /*#__PURE__*/(0, _react.css)("position:absolute;inset-block-start:", euiTheme.size.s, ";inset-inline-end:", euiTheme.size.s, ";z-index:1;;label:closeButton;"),
29
30
  overflow: {
30
31
  overflow: /*#__PURE__*/(0, _react.css)("flex-grow:1;display:flex;flex-direction:column;", (0, _global_styling.euiYScroll)(euiThemeContext), ";;label:overflow;"),
31
32
  wrapper: /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;flex-grow:1;", (0, _global_styling.logicalCSS)('overflow-x', 'auto'), ";;label:wrapper;")
@@ -51,7 +51,8 @@ var useEuiFlyoutSessionContext = exports.useEuiFlyoutSessionContext = function u
51
51
  var EuiFlyoutSessionProvider = exports.EuiFlyoutSessionProvider = function EuiFlyoutSessionProvider(_ref) {
52
52
  var children = _ref.children,
53
53
  renderMainFlyoutContent = _ref.renderMainFlyoutContent,
54
- renderChildFlyoutContent = _ref.renderChildFlyoutContent;
54
+ renderChildFlyoutContent = _ref.renderChildFlyoutContent,
55
+ onUnmount = _ref.onUnmount;
55
56
  var _useReducer = (0, _react.useReducer)(_flyout_reducer.flyoutReducer, _flyout_reducer.initialFlyoutState),
56
57
  _useReducer2 = _slicedToArray(_useReducer, 2),
57
58
  state = _useReducer2[0],
@@ -70,29 +71,13 @@ var EuiFlyoutSessionProvider = exports.EuiFlyoutSessionProvider = function EuiFl
70
71
  var mainFlyoutContentNode = null;
71
72
  var childFlyoutContentNode = null;
72
73
  if (activeFlyoutGroup) {
73
- var mainRenderContext = {
74
- flyoutProps: activeFlyoutGroup.config.mainFlyoutProps || {},
75
- flyoutSize: activeFlyoutGroup.config.mainSize,
76
- flyoutType: 'main',
77
- dispatch: dispatch,
74
+ var renderContext = {
78
75
  activeFlyoutGroup: activeFlyoutGroup,
79
- onCloseFlyout: handleClose,
80
- onCloseChildFlyout: handleCloseChild,
81
76
  meta: activeFlyoutGroup.meta
82
77
  };
83
- mainFlyoutContentNode = renderMainFlyoutContent(mainRenderContext);
78
+ mainFlyoutContentNode = renderMainFlyoutContent(renderContext);
84
79
  if (activeFlyoutGroup.isChildOpen && renderChildFlyoutContent) {
85
- var childRenderContext = {
86
- flyoutProps: activeFlyoutGroup.config.childFlyoutProps || {},
87
- flyoutSize: activeFlyoutGroup.config.childSize,
88
- flyoutType: 'child',
89
- dispatch: dispatch,
90
- activeFlyoutGroup: activeFlyoutGroup,
91
- onCloseFlyout: handleClose,
92
- onCloseChildFlyout: handleCloseChild,
93
- meta: activeFlyoutGroup.meta
94
- };
95
- childFlyoutContentNode = renderChildFlyoutContent(childRenderContext);
80
+ childFlyoutContentNode = renderChildFlyoutContent(renderContext);
96
81
  } else if (activeFlyoutGroup.isChildOpen && !renderChildFlyoutContent) {
97
82
  console.warn('EuiFlyoutSessionProvider: A child flyout is open, but renderChildFlyoutContent was not provided.');
98
83
  }
@@ -103,7 +88,8 @@ var EuiFlyoutSessionProvider = exports.EuiFlyoutSessionProvider = function EuiFl
103
88
  return (0, _react2.jsx)(EuiFlyoutSessionContext.Provider, {
104
89
  value: {
105
90
  state: state,
106
- dispatch: dispatch
91
+ dispatch: dispatch,
92
+ onUnmount: onUnmount
107
93
  }
108
94
  }, children, (activeFlyoutGroup === null || activeFlyoutGroup === void 0 ? void 0 : activeFlyoutGroup.isMainOpen) && (0, _react2.jsx)(_index.EuiFlyout, _extends({
109
95
  onClose: handleClose,
@@ -72,8 +72,7 @@ function flyoutReducer(state, action) {
72
72
  var _state$activeFlyoutGr, _state$activeFlyoutGr2;
73
73
  var _action$payload = action.payload,
74
74
  size = _action$payload.size,
75
- flyoutProps = _action$payload.flyoutProps,
76
- onUnmount = _action$payload.onUnmount;
75
+ flyoutProps = _action$payload.flyoutProps;
77
76
  var newHistory = _toConsumableArray(state.history);
78
77
  if (state.activeFlyoutGroup) {
79
78
  newHistory.push(state.activeFlyoutGroup);
@@ -87,8 +86,6 @@ function flyoutReducer(state, action) {
87
86
  mainFlyoutProps: flyoutProps,
88
87
  childFlyoutProps: {}
89
88
  },
90
- mainOnUnmount: onUnmount,
91
- childOnUnmount: undefined,
92
89
  meta: action.payload.meta !== undefined ? ((_state$activeFlyoutGr = state.activeFlyoutGroup) === null || _state$activeFlyoutGr === void 0 ? void 0 : _state$activeFlyoutGr.meta) !== undefined ? _objectSpread(_objectSpread({}, state.activeFlyoutGroup.meta), action.payload.meta) : action.payload.meta : (_state$activeFlyoutGr2 = state.activeFlyoutGroup) === null || _state$activeFlyoutGr2 === void 0 ? void 0 : _state$activeFlyoutGr2.meta
93
90
  };
94
91
  return {
@@ -104,15 +101,13 @@ function flyoutReducer(state, action) {
104
101
  }
105
102
  var _action$payload2 = action.payload,
106
103
  _size = _action$payload2.size,
107
- _flyoutProps = _action$payload2.flyoutProps,
108
- _onUnmount = _action$payload2.onUnmount;
104
+ _flyoutProps = _action$payload2.flyoutProps;
109
105
  var updatedActiveGroup = _objectSpread(_objectSpread({}, state.activeFlyoutGroup), {}, {
110
106
  isChildOpen: true,
111
107
  config: _objectSpread(_objectSpread({}, state.activeFlyoutGroup.config), {}, {
112
108
  childSize: _size,
113
109
  childFlyoutProps: _flyoutProps
114
110
  }),
115
- childOnUnmount: _onUnmount,
116
111
  meta: action.payload.meta !== undefined ? state.activeFlyoutGroup.meta !== undefined ? _objectSpread(_objectSpread({}, state.activeFlyoutGroup.meta), action.payload.meta) : action.payload.meta : state.activeFlyoutGroup.meta
117
112
  });
118
113
  return {
@@ -141,8 +136,6 @@ function flyoutReducer(state, action) {
141
136
  mainFlyoutProps: main.flyoutProps,
142
137
  childFlyoutProps: child.flyoutProps
143
138
  },
144
- mainOnUnmount: main.onUnmount,
145
- childOnUnmount: child.onUnmount,
146
139
  meta: meta
147
140
  };
148
141
  return {
@@ -152,18 +145,15 @@ function flyoutReducer(state, action) {
152
145
  }
153
146
  case 'CLOSE_CHILD_FLYOUT':
154
147
  {
155
- var _state$activeFlyoutGr3, _state$activeFlyoutGr4;
156
148
  if (!state.activeFlyoutGroup || !state.activeFlyoutGroup.isChildOpen) {
157
149
  console.warn('Cannot close child flyout: no child is open or no active group.');
158
150
  return state;
159
151
  }
160
- (_state$activeFlyoutGr3 = (_state$activeFlyoutGr4 = state.activeFlyoutGroup).childOnUnmount) === null || _state$activeFlyoutGr3 === void 0 || _state$activeFlyoutGr3.call(_state$activeFlyoutGr4);
161
152
  var _updatedActiveGroup = _objectSpread(_objectSpread({}, state.activeFlyoutGroup), {}, {
162
153
  isChildOpen: false,
163
154
  config: _objectSpread(_objectSpread({}, state.activeFlyoutGroup.config), {}, {
164
155
  childFlyoutProps: {}
165
- }),
166
- childOnUnmount: undefined
156
+ })
167
157
  });
168
158
  return {
169
159
  history: state.history,
@@ -172,13 +162,7 @@ function flyoutReducer(state, action) {
172
162
  }
173
163
  case 'GO_BACK':
174
164
  {
175
- var _state$activeFlyoutGr7, _state$activeFlyoutGr8;
176
165
  if (!state.activeFlyoutGroup) return initialFlyoutState;
177
- if (state.activeFlyoutGroup.isChildOpen) {
178
- var _state$activeFlyoutGr5, _state$activeFlyoutGr6;
179
- (_state$activeFlyoutGr5 = (_state$activeFlyoutGr6 = state.activeFlyoutGroup).childOnUnmount) === null || _state$activeFlyoutGr5 === void 0 || _state$activeFlyoutGr5.call(_state$activeFlyoutGr6);
180
- }
181
- (_state$activeFlyoutGr7 = (_state$activeFlyoutGr8 = state.activeFlyoutGroup).mainOnUnmount) === null || _state$activeFlyoutGr7 === void 0 || _state$activeFlyoutGr7.call(_state$activeFlyoutGr8);
182
166
 
183
167
  // Restore from history or return to initial state
184
168
  if (state.history.length > 0) {
@@ -198,14 +182,9 @@ function flyoutReducer(state, action) {
198
182
  console.warn('Cannot update config: no active flyout group.');
199
183
  return state;
200
184
  }
201
- var _action$payload4 = action.payload,
202
- configChanges = _action$payload4.configChanges,
203
- newMainOnUnmount = _action$payload4.newMainOnUnmount,
204
- newChildOnUnmount = _action$payload4.newChildOnUnmount;
185
+ var configChanges = action.payload.configChanges;
205
186
  var _updatedActiveGroup2 = _objectSpread(_objectSpread({}, state.activeFlyoutGroup), {}, {
206
- config: _objectSpread(_objectSpread({}, state.activeFlyoutGroup.config), configChanges),
207
- mainOnUnmount: newMainOnUnmount !== undefined ? newMainOnUnmount : state.activeFlyoutGroup.mainOnUnmount,
208
- childOnUnmount: newChildOnUnmount !== undefined ? newChildOnUnmount : state.activeFlyoutGroup.childOnUnmount
187
+ config: _objectSpread(_objectSpread({}, state.activeFlyoutGroup.config), configChanges)
209
188
  });
210
189
  var finalUpdatedActiveGroup = applySizeConstraints(_updatedActiveGroup2);
211
190
  return _objectSpread(_objectSpread({}, state), {}, {