@zendeskgarden/react-dropdowns.legacy 9.0.0-next.9 → 9.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 (58) hide show
  1. package/dist/esm/elements/Autocomplete/Autocomplete.js +1 -1
  2. package/dist/esm/elements/Menu/Items/AddItem.js +3 -3
  3. package/dist/esm/elements/Menu/Items/HeaderItem.js +8 -3
  4. package/dist/esm/elements/Menu/Items/Item.js +16 -15
  5. package/dist/esm/elements/Menu/Items/ItemMeta.js +2 -2
  6. package/dist/esm/elements/Menu/Items/MediaBody.js +1 -1
  7. package/dist/esm/elements/Menu/Items/MediaFigure.js +1 -1
  8. package/dist/esm/elements/Menu/Items/NextItem.js +4 -4
  9. package/dist/esm/elements/Menu/Items/PreviousItem.js +4 -4
  10. package/dist/esm/elements/Menu/Menu.js +54 -55
  11. package/dist/esm/elements/Multiselect/Multiselect.js +7 -7
  12. package/dist/esm/elements/Select/Select.js +1 -1
  13. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +1 -1
  14. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  15. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
  16. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
  17. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +1 -1
  18. package/dist/esm/styled/items/StyledAddItem.js +6 -6
  19. package/dist/esm/styled/items/StyledItem.js +21 -14
  20. package/dist/esm/styled/items/StyledItemIcon.js +6 -6
  21. package/dist/esm/styled/items/StyledItemMeta.js +6 -6
  22. package/dist/esm/styled/items/StyledNextIcon.js +6 -6
  23. package/dist/esm/styled/items/StyledNextItem.js +2 -5
  24. package/dist/esm/styled/items/StyledPreviousIcon.js +6 -6
  25. package/dist/esm/styled/items/StyledPreviousItem.js +2 -5
  26. package/dist/esm/styled/items/header/StyledHeaderIcon.js +6 -6
  27. package/dist/esm/styled/items/header/StyledHeaderItem.js +3 -6
  28. package/dist/esm/styled/items/media/StyledMediaBody.js +2 -5
  29. package/dist/esm/styled/items/media/StyledMediaFigure.js +4 -9
  30. package/dist/esm/styled/items/media/StyledMediaItem.js +2 -5
  31. package/dist/esm/styled/menu/StyledMenu.js +7 -10
  32. package/dist/esm/styled/menu/StyledMenuWrapper.js +8 -11
  33. package/dist/esm/styled/menu/StyledSeparator.js +6 -6
  34. package/dist/esm/styled/multiselect/StyledMultiselectInput.js +2 -5
  35. package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +2 -5
  36. package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +5 -8
  37. package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +6 -6
  38. package/dist/esm/styled/select/StyledFauxInput.js +2 -5
  39. package/dist/esm/styled/select/StyledInput.js +2 -5
  40. package/dist/esm/styled/select/StyledSelect.js +2 -5
  41. package/dist/index.cjs.js +198 -229
  42. package/dist/typings/styled/items/StyledItem.d.ts +3 -3
  43. package/dist/typings/styled/items/StyledItemIcon.d.ts +3 -3
  44. package/dist/typings/styled/items/StyledItemMeta.d.ts +2 -2
  45. package/dist/typings/styled/items/StyledNextIcon.d.ts +1 -1
  46. package/dist/typings/styled/items/StyledPreviousIcon.d.ts +1 -1
  47. package/dist/typings/styled/items/header/StyledHeaderItem.d.ts +2 -2
  48. package/dist/typings/styled/items/media/StyledMediaBody.d.ts +1 -1
  49. package/dist/typings/styled/items/media/StyledMediaFigure.d.ts +13 -13
  50. package/dist/typings/styled/menu/StyledMenu.d.ts +5 -5
  51. package/dist/typings/styled/menu/StyledMenuWrapper.d.ts +5 -5
  52. package/dist/typings/styled/multiselect/StyledMultiselectInput.d.ts +0 -1
  53. package/dist/typings/styled/multiselect/StyledMultiselectItemsContainer.d.ts +2 -2
  54. package/dist/typings/styled/multiselect/StyledMultiselectMoreAnchor.d.ts +2 -2
  55. package/dist/typings/styled/select/StyledFauxInput.d.ts +4 -11
  56. package/dist/typings/styled/select/StyledInput.d.ts +0 -1
  57. package/dist/typings/utils/garden-placements.d.ts +2 -1
  58. package/package.json +8 -8
package/dist/index.cjs.js CHANGED
@@ -289,108 +289,110 @@ function getMenuPosition(popperPlacement) {
289
289
  const COMPONENT_ID$m = 'dropdowns.menu';
290
290
  const StyledMenu = styled__default.default.ul.attrs(props => ({
291
291
  'data-garden-id': COMPONENT_ID$m,
292
- 'data-garden-version': '9.0.0-next.9',
293
- className: props.isAnimated && 'is-animated'
292
+ 'data-garden-version': '9.1.0',
293
+ className: props.$isAnimated && 'is-animated'
294
294
  })).withConfig({
295
295
  displayName: "StyledMenu",
296
296
  componentId: "sc-lzt5u6-0"
297
- })(["position:static !important;max-height:", ";overflow-y:auto;", ";", ";"], props => props.maxHeight, props => props.hasArrow && reactTheming.arrowStyles(getArrowPosition(props.placement), {
298
- size: `${props.theme.space.base * 2}px`,
299
- inset: '2px',
300
- animationModifier: props.isAnimated ? '.is-animated' : undefined
297
+ })(["position:static !important;max-height:", ";overflow-y:auto;", ";", ";"], props => props.$maxHeight, props => props.$hasArrow && reactTheming.arrowStyles(getArrowPosition(props.$placement), {
298
+ size: `${props.theme.space.base * 1.5}px`,
299
+ inset: '1px',
300
+ animationModifier: props.$isAnimated ? '.is-animated' : undefined
301
301
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
302
- StyledMenu.defaultProps = {
303
- theme: reactTheming.DEFAULT_THEME
304
- };
305
302
 
306
303
  const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
307
304
  const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
308
305
  'data-garden-id': COMPONENT_ID$l,
309
- 'data-garden-version': '9.0.0-next.9',
310
- className: props.isAnimated && 'is-animated'
306
+ 'data-garden-version': '9.1.0',
307
+ className: props.$isAnimated && 'is-animated'
311
308
  })).withConfig({
312
309
  displayName: "StyledMenuWrapper",
313
310
  componentId: "sc-u70fn3-0"
314
- })(["", ";", ";"], props => reactTheming.menuStyles(getMenuPosition(props.placement), {
311
+ })(["", ";", ";"], props => reactTheming.menuStyles(getMenuPosition(props.$placement), {
315
312
  theme: props.theme,
316
- hidden: props.isHidden,
317
- margin: `${props.theme.space.base * (props.hasArrow ? 2 : 1)}px`,
318
- zIndex: props.zIndex,
319
- animationModifier: props.isAnimated ? '.is-animated' : undefined
313
+ hidden: props.$isHidden,
314
+ margin: `${props.theme.space.base * (props.$hasArrow ? 2 : 1)}px`,
315
+ zIndex: props.$zIndex,
316
+ animationModifier: props.$isAnimated ? '.is-animated' : undefined
320
317
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
321
- StyledMenuWrapper.defaultProps = {
322
- theme: reactTheming.DEFAULT_THEME
323
- };
324
318
 
325
319
  const COMPONENT_ID$k = 'dropdowns.separator';
326
320
  const StyledSeparator = styled__default.default.li.attrs({
327
321
  'data-garden-id': COMPONENT_ID$k,
328
- 'data-garden-version': '9.0.0-next.9',
322
+ 'data-garden-version': '9.1.0',
329
323
  role: 'separator'
330
324
  }).withConfig({
331
325
  displayName: "StyledSeparator",
332
326
  componentId: "sc-oncsf0-0"
333
- })(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.getColorV8('neutralHue', 200, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
334
- StyledSeparator.defaultProps = {
335
- theme: reactTheming.DEFAULT_THEME
336
- };
327
+ })(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.getColor({
328
+ theme: props.theme,
329
+ variable: 'border.subtle'
330
+ })}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
337
331
 
338
332
  const COMPONENT_ID$j = 'dropdowns.item';
339
333
  const getItemPaddingVertical = props => {
340
- if (props.isCompact) {
334
+ if (props.$isCompact) {
341
335
  return `${props.theme.space.base}px`;
342
336
  }
343
337
  return `${props.theme.space.base * 2}px`;
344
338
  };
345
339
  const getColorStyles = props => {
340
+ const backgroundColor = props.$isFocused ? reactTheming.getColor({
341
+ theme: props.theme,
342
+ variable: 'background.primaryEmphasis',
343
+ transparency: props.theme.opacity[100]
344
+ }) : 'inherit';
346
345
  let foregroundColor;
347
- let backgroundColor;
348
346
  if (props.disabled) {
349
- foregroundColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
350
- } else if (props.isDanger) {
351
- foregroundColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
352
- backgroundColor = props.isFocused ? polished.rgba(foregroundColor, 0.08) : 'inherit';
347
+ foregroundColor = reactTheming.getColor({
348
+ theme: props.theme,
349
+ variable: 'foreground.disabled'
350
+ });
351
+ } else if (props.$isDanger) {
352
+ foregroundColor = reactTheming.getColor({
353
+ theme: props.theme,
354
+ variable: 'foreground.danger'
355
+ });
353
356
  } else {
354
- foregroundColor = reactTheming.getColorV8('foreground', 600 , props.theme);
355
- backgroundColor = props.isFocused ? reactTheming.getColorV8('primaryHue', 600, props.theme, 0.08) : 'inherit';
357
+ foregroundColor = reactTheming.getColor({
358
+ theme: props.theme,
359
+ variable: 'foreground.default'
360
+ });
356
361
  }
357
362
  return styled.css(["background-color:", ";color:", ";& a,& a:hover,& a:focus,& a:active{color:inherit;}"], backgroundColor, foregroundColor);
358
363
  };
359
364
  const StyledItem = styled__default.default.li.attrs(props => ({
360
365
  'data-garden-id': COMPONENT_ID$j,
361
- 'data-garden-version': '9.0.0-next.9',
366
+ 'data-garden-version': '9.1.0',
362
367
  'aria-disabled': props.disabled
363
368
  })).withConfig({
364
369
  displayName: "StyledItem",
365
370
  componentId: "sc-x4h8aw-0"
366
371
  })(["display:block;position:relative;z-index:0;cursor:", ";padding:", " ", "px;text-decoration:none;line-height:", "px;word-wrap:break-word;user-select:none;&:first-child{margin-top:", "px;}&:last-child{margin-bottom:", "px;}&:focus{outline:none;}& a,& a:hover,& a:focus,& a:active{text-decoration:none;}", ";", ";"], props => props.disabled ? 'default' : 'pointer', props => getItemPaddingVertical(props), props => props.theme.space.base * 9, props => props.theme.space.base * 5, props => props.theme.space.base, props => props.theme.space.base, props => getColorStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
367
- StyledItem.defaultProps = {
368
- theme: reactTheming.DEFAULT_THEME
369
- };
370
372
 
371
373
  const COMPONENT_ID$i = 'dropdowns.add_item';
372
374
  const StyledAddItem = styled__default.default(StyledItem).attrs({
373
375
  'data-garden-id': COMPONENT_ID$i,
374
- 'data-garden-version': '9.0.0-next.9'
376
+ 'data-garden-version': '9.1.0'
375
377
  }).withConfig({
376
378
  displayName: "StyledAddItem",
377
379
  componentId: "sc-mlto71-0"
378
- })(["color:", ";", ";"], props => !props.disabled && reactTheming.getColorV8('primaryHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
379
- StyledAddItem.defaultProps = {
380
- theme: reactTheming.DEFAULT_THEME
381
- };
380
+ })(["color:", ";", ";"], props => !props.disabled && reactTheming.getColor({
381
+ theme: props.theme,
382
+ variable: 'foreground.primary'
383
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
382
384
 
383
385
  const COMPONENT_ID$h = 'dropdowns.item_meta';
384
386
  const StyledItemMeta = styled__default.default.span.attrs({
385
387
  'data-garden-id': COMPONENT_ID$h,
386
- 'data-garden-version': '9.0.0-next.9'
388
+ 'data-garden-version': '9.1.0'
387
389
  }).withConfig({
388
390
  displayName: "StyledItemMeta",
389
391
  componentId: "sc-1m3x8m1-0"
390
- })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => reactTheming.getColorV8('neutralHue', props.isDisabled ? 400 : 600, props.theme), props => props.theme.fontSizes.sm, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
391
- StyledItemMeta.defaultProps = {
392
- theme: reactTheming.DEFAULT_THEME
393
- };
392
+ })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.$isCompact ? 3 : 4), props => reactTheming.getColor({
393
+ theme: props.theme,
394
+ variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.subtle'
395
+ }), props => props.theme.fontSizes.sm, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
394
396
 
395
397
  const COMPONENT_ID$g = 'dropdowns.item_icon';
396
398
  const getSizeStyles = props => {
@@ -398,29 +400,26 @@ const getSizeStyles = props => {
398
400
  };
399
401
  const StyledItemIcon = styled__default.default.div.attrs({
400
402
  'data-garden-id': COMPONENT_ID$g,
401
- 'data-garden-version': '9.0.0-next.9'
403
+ 'data-garden-version': '9.1.0'
402
404
  }).withConfig({
403
405
  displayName: "StyledItemIcon",
404
406
  componentId: "sc-pspm80-0"
405
- })(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.isVisible ? '1' : '0', props => props.isDisabled ? 'inherit' : reactTheming.getColorV8('primaryHue', 600, props.theme), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
406
- StyledItemIcon.defaultProps = {
407
- theme: reactTheming.DEFAULT_THEME
408
- };
407
+ })(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.$isVisible ? '1' : '0', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
408
+ theme: props.theme,
409
+ variable: 'foreground.primary'
410
+ }), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
409
411
 
410
412
  const COMPONENT_ID$f = 'dropdowns.next_item';
411
413
  const StyledNextItem = styled__default.default(StyledItem).attrs({
412
414
  'data-garden-id': COMPONENT_ID$f,
413
- 'data-garden-version': '9.0.0-next.9'
415
+ 'data-garden-version': '9.1.0'
414
416
  }).withConfig({
415
417
  displayName: "StyledNextItem",
416
418
  componentId: "sc-1wrjlge-0"
417
419
  })(["", "{right:", ";left:", ";}", ";"], StyledItemIcon, props => props.theme.rtl ? 'auto' : `${props.theme.space.base * 3}px`, props => props.theme.rtl ? `${props.theme.space.base * 3}px` : 'auto', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
418
- StyledNextItem.defaultProps = {
419
- theme: reactTheming.DEFAULT_THEME
420
- };
421
420
 
422
421
  var _path$4;
423
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
422
+ function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
424
423
  var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
425
424
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
426
425
  xmlns: "http://www.w3.org/2000/svg",
@@ -442,32 +441,29 @@ const NextIconComponent = _ref => {
442
441
  } = _ref;
443
442
  return React__namespace.default.createElement(SvgChevronRightStroke, {
444
443
  "data-garden-id": COMPONENT_ID$e,
445
- "data-garden-version": '9.0.0-next.9',
444
+ "data-garden-version": '9.1.0',
446
445
  className: className
447
446
  });
448
447
  };
449
448
  const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
450
449
  displayName: "StyledNextIcon",
451
450
  componentId: "sc-1nzkdnq-0"
452
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColorV8('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
453
- StyledNextIcon.defaultProps = {
454
- theme: reactTheming.DEFAULT_THEME
455
- };
451
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
452
+ theme: props.theme,
453
+ variable: 'foreground.disabled'
454
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
456
455
 
457
456
  const COMPONENT_ID$d = 'dropdowns.previous_item';
458
457
  const StyledPreviousItem = styled__default.default(StyledItem).attrs({
459
458
  'data-garden-id': COMPONENT_ID$d,
460
- 'data-garden-version': '9.0.0-next.9'
459
+ 'data-garden-version': '9.1.0'
461
460
  }).withConfig({
462
461
  displayName: "StyledPreviousItem",
463
462
  componentId: "sc-1qv9jwe-0"
464
463
  })(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
465
- StyledPreviousItem.defaultProps = {
466
- theme: reactTheming.DEFAULT_THEME
467
- };
468
464
 
469
465
  var _path$3;
470
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
466
+ function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
471
467
  var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
472
468
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
473
469
  xmlns: "http://www.w3.org/2000/svg",
@@ -489,134 +485,111 @@ const PreviousIconComponent = _ref => {
489
485
  } = _ref;
490
486
  return React__namespace.default.createElement(SvgChevronLeftStroke, {
491
487
  "data-garden-id": COMPONENT_ID$c,
492
- "data-garden-version": '9.0.0-next.9',
488
+ "data-garden-version": '9.1.0',
493
489
  className: className
494
490
  });
495
491
  };
496
492
  const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withConfig({
497
493
  displayName: "StyledPreviousIcon",
498
494
  componentId: "sc-1n1t07s-0"
499
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColorV8('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
500
- StyledPreviousIcon.defaultProps = {
501
- theme: reactTheming.DEFAULT_THEME
502
- };
495
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
496
+ theme: props.theme,
497
+ variable: 'foreground.subtle'
498
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
503
499
 
504
500
  const COMPONENT_ID$b = 'dropdowns.header_icon';
505
501
  const StyledHeaderIcon = styled__default.default.div.attrs({
506
502
  'data-garden-id': COMPONENT_ID$b,
507
- 'data-garden-version': '9.0.0-next.9'
503
+ 'data-garden-version': '9.1.0'
508
504
  }).withConfig({
509
505
  displayName: "StyledHeaderIcon",
510
506
  componentId: "sc-ow8s45-0"
511
- })(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => reactTheming.getColorV8('neutralHue', 600, props.theme), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
512
- StyledHeaderIcon.defaultProps = {
513
- theme: reactTheming.DEFAULT_THEME
514
- };
507
+ })(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => reactTheming.getColor({
508
+ theme: props.theme,
509
+ variable: 'foreground.subtle'
510
+ }), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
515
511
 
516
512
  const COMPONENT_ID$a = 'dropdowns.header_item';
517
513
  const getHorizontalPadding = props => {
518
- if (props.hasIcon) {
514
+ if (props.$hasIcon) {
519
515
  return undefined;
520
516
  }
521
517
  return `${props.theme.space.base * 3}px`;
522
518
  };
523
519
  const StyledHeaderItem = styled__default.default(StyledItem).attrs({
524
520
  'data-garden-id': COMPONENT_ID$a,
525
- 'data-garden-version': '9.0.0-next.9'
521
+ 'data-garden-version': '9.1.0'
526
522
  }).withConfig({
527
523
  displayName: "StyledHeaderItem",
528
524
  componentId: "sc-1xosinr-0"
529
525
  })(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$a, props));
530
- StyledHeaderItem.defaultProps = {
531
- theme: reactTheming.DEFAULT_THEME
532
- };
533
526
 
534
527
  const COMPONENT_ID$9 = 'dropdowns.media_body';
535
528
  const StyledMediaBody = styled__default.default.div.attrs({
536
529
  'data-garden-id': COMPONENT_ID$9,
537
- 'data-garden-version': '9.0.0-next.9'
530
+ 'data-garden-version': '9.1.0'
538
531
  }).withConfig({
539
532
  displayName: "StyledMediaBody",
540
533
  componentId: "sc-133sssc-0"
541
534
  })(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
542
- StyledMediaBody.defaultProps = {
543
- theme: reactTheming.DEFAULT_THEME
544
- };
545
535
 
546
536
  const COMPONENT_ID$8 = 'dropdowns.media_figure';
547
537
  const StyledMediaFigure = styled__default.default(
548
538
  _ref => {
549
539
  let {
550
540
  children,
551
- isCompact,
541
+ $isCompact,
552
542
  theme,
553
543
  ...props
554
544
  } = _ref;
555
- return (
556
- React__namespace.default.cloneElement(React.Children.only(children), props)
557
- );
545
+ return React__namespace.default.cloneElement(React.Children.only(children), props);
558
546
  }).attrs({
559
547
  'data-garden-id': COMPONENT_ID$8,
560
- 'data-garden-version': '9.0.0-next.9'
548
+ 'data-garden-version': '9.1.0'
561
549
  }).withConfig({
562
550
  displayName: "StyledMediaFigure",
563
551
  componentId: "sc-16vz3xj-0"
564
552
  })(["float:", ";margin-top:", "px !important;width:", ";height:", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 0.5, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
565
- StyledMediaFigure.defaultProps = {
566
- theme: reactTheming.DEFAULT_THEME
567
- };
568
553
 
569
554
  const COMPONENT_ID$7 = 'dropdowns.media_item';
570
555
  const StyledMediaItem = styled__default.default(StyledItem).attrs({
571
556
  'data-garden-id': COMPONENT_ID$7,
572
- 'data-garden-version': '9.0.0-next.9'
557
+ 'data-garden-version': '9.1.0'
573
558
  }).withConfig({
574
559
  displayName: "StyledMediaItem",
575
560
  componentId: "sc-af4509-0"
576
561
  })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
577
- StyledMediaItem.defaultProps = {
578
- theme: reactTheming.DEFAULT_THEME
579
- };
580
562
 
581
563
  const COMPONENT_ID$6 = 'dropdowns.faux_input';
582
564
  const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
583
565
  'data-garden-id': COMPONENT_ID$6,
584
- 'data-garden-version': '9.0.0-next.9',
566
+ 'data-garden-version': '9.1.0',
585
567
  mediaLayout: true,
586
568
  theme: props.theme
587
569
  })).withConfig({
588
570
  displayName: "StyledFauxInput",
589
571
  componentId: "sc-bk8odf-0"
590
572
  })(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
591
- StyledFauxInput.defaultProps = {
592
- theme: reactTheming.DEFAULT_THEME
593
- };
594
573
 
595
574
  const COMPONENT_ID$5 = 'dropdowns.input';
596
575
  const hiddenStyling = styled.css(["position:fixed;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
597
576
  const StyledInput = styled__default.default(reactForms.Input).attrs({
598
577
  'data-garden-id': COMPONENT_ID$5,
599
- 'data-garden-version': '9.0.0-next.9',
578
+ 'data-garden-version': '9.1.0',
600
579
  isBare: true
601
580
  }).withConfig({
602
581
  displayName: "StyledInput",
603
582
  componentId: "sc-kykaw8-0"
604
583
  })(["", ";", ";"], props => props.isHidden && hiddenStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
605
- StyledInput.defaultProps = {
606
- theme: reactTheming.DEFAULT_THEME
607
- };
608
584
 
609
585
  const COMPONENT_ID$4 = 'dropdowns.select';
610
586
  const StyledSelect = styled__default.default.div.attrs({
611
587
  'data-garden-id': COMPONENT_ID$4,
612
- 'data-garden-version': '9.0.0-next.9'
588
+ 'data-garden-version': '9.1.0'
613
589
  }).withConfig({
614
590
  displayName: "StyledSelect",
615
591
  componentId: "sc-xf4qjv-0"
616
592
  })(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
617
- StyledSelect.defaultProps = {
618
- theme: reactTheming.DEFAULT_THEME
619
- };
620
593
 
621
594
  const COMPONENT_ID$3 = 'dropdowns.multiselect_input';
622
595
  const visibleStyling = props => {
@@ -630,24 +603,21 @@ const visibleStyling = props => {
630
603
  };
631
604
  const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
632
605
  'data-garden-id': COMPONENT_ID$3,
633
- 'data-garden-version': '9.0.0-next.9',
606
+ 'data-garden-version': '9.1.0',
634
607
  isBare: true
635
608
  }).withConfig({
636
609
  displayName: "StyledMultiselectInput",
637
610
  componentId: "sc-iiow29-0"
638
611
  })(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
639
- StyledMultiselectInput.defaultProps = {
640
- theme: reactTheming.DEFAULT_THEME
641
- };
642
612
 
643
613
  const COMPONENT_ID$2 = 'dropdowns.multiselect_items_container';
644
614
  const sizeStyles = props => {
645
615
  let margin;
646
616
  let padding;
647
- if (!props.isBare) {
648
- const marginVertical = props.isCompact ? `-${props.theme.space.base * 1.5}px` : `-${props.theme.space.base * 2.5}px`;
617
+ if (!props.$isBare) {
618
+ const marginVertical = props.$isCompact ? `-${props.theme.space.base * 1.5}px` : `-${props.theme.space.base * 2.5}px`;
649
619
  margin = `${marginVertical} 0`;
650
- const paddingVertical = props.isCompact ? '3px' : '1px';
620
+ const paddingVertical = props.$isCompact ? '3px' : '1px';
651
621
  const paddingEnd = `${props.theme.space.base}px`;
652
622
  padding = `${paddingVertical} ${props.theme.rtl ? 0 : paddingEnd} ${paddingVertical} ${props.theme.rtl ? paddingEnd : 0}`;
653
623
  }
@@ -655,38 +625,32 @@ const sizeStyles = props => {
655
625
  };
656
626
  const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
657
627
  'data-garden-id': COMPONENT_ID$2,
658
- 'data-garden-version': '9.0.0-next.9'
628
+ 'data-garden-version': '9.1.0'
659
629
  }).withConfig({
660
630
  displayName: "StyledMultiselectItemsContainer",
661
631
  componentId: "sc-1dxwjyz-0"
662
632
  })(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
663
- StyledMultiselectItemsContainer.defaultProps = {
664
- theme: reactTheming.DEFAULT_THEME
665
- };
666
633
 
667
634
  const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
668
635
  const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
669
636
  'data-garden-id': COMPONENT_ID$1,
670
- 'data-garden-version': '9.0.0-next.9'
637
+ 'data-garden-version': '9.1.0'
671
638
  }).withConfig({
672
639
  displayName: "StyledMultiselectItemWrapper",
673
640
  componentId: "sc-vgr7nd-0"
674
641
  })(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
675
- StyledMultiselectItemWrapper.defaultProps = {
676
- theme: reactTheming.DEFAULT_THEME
677
- };
678
642
 
679
643
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
680
644
  const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
681
645
  'data-garden-id': COMPONENT_ID,
682
- 'data-garden-version': '9.0.0-next.9'
646
+ 'data-garden-version': '9.1.0'
683
647
  }).withConfig({
684
648
  displayName: "StyledMultiselectMoreAnchor",
685
649
  componentId: "sc-pkakky-0"
686
- })(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.isCompact ? 0.75 : 1.5), props => props.isCompact ? '1em' : reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isDisabled ? reactTheming.getColorV8('neutralHue', 400, props.theme) : reactTheming.getColorV8('primaryHue', 600, props.theme), props => !props.isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
687
- StyledMultiselectMoreAnchor.defaultProps = {
688
- theme: reactTheming.DEFAULT_THEME
689
- };
650
+ })(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.$isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.$isCompact ? 0.75 : 1.5), props => props.$isCompact ? '1em' : reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColor({
651
+ theme: props.theme,
652
+ variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.primary'
653
+ }), props => !props.$isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
690
654
 
691
655
  const Trigger = _ref => {
692
656
  let {
@@ -838,7 +802,7 @@ Trigger.defaultProps = {
838
802
  };
839
803
 
840
804
  var _path$2;
841
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
805
+ function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
842
806
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
843
807
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
844
808
  xmlns: "http://www.w3.org/2000/svg",
@@ -929,7 +893,7 @@ const Autocomplete = React.forwardRef((_ref, ref) => {
929
893
  reactMergeRefs.mergeRefs([triggerRef, ref])(selectRef);
930
894
  popperReferenceElementRef.current = selectRef;
931
895
  }
932
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
896
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
933
897
  isHovered: isHovered || isLabelHovered && !isOpen,
934
898
  isFocused: isContainerFocused,
935
899
  isDisabled: props.disabled
@@ -1232,18 +1196,18 @@ const Multiselect = React__namespace.default.forwardRef((_ref, ref) => {
1232
1196
  }), {
1233
1197
  size: props.isCompact ? 'medium' : 'large'
1234
1198
  });
1235
- output.push( React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1199
+ output.push(React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1236
1200
  key: x
1237
1201
  }, renderedItem));
1238
1202
  } else {
1239
1203
  output.push(renderSelectableItem(item, x));
1240
1204
  }
1241
1205
  } else if (!isFocused && !inputValue || props.disabled) {
1242
- output.push( React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1206
+ output.push(React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1243
1207
  key: "more-anchor"
1244
1208
  }, React__namespace.default.createElement(StyledMultiselectMoreAnchor, {
1245
- isCompact: props.isCompact,
1246
- isDisabled: props.disabled
1209
+ $isCompact: props.isCompact,
1210
+ $isDisabled: props.disabled
1247
1211
  }, renderShowMore ? renderShowMore(itemValues.length - x) : `+ ${itemValues.length - x} more`)));
1248
1212
  break;
1249
1213
  } else {
@@ -1269,13 +1233,13 @@ const Multiselect = React__namespace.default.forwardRef((_ref, ref) => {
1269
1233
  popperReference(selectRef);
1270
1234
  reactMergeRefs.mergeRefs([triggerRef, popperReferenceElementRef, ref])(selectRef);
1271
1235
  }
1272
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1236
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1273
1237
  isHovered: isHovered || isLabelHovered && !isOpen,
1274
1238
  isFocused: isContainerFocused,
1275
1239
  isDisabled: props.disabled
1276
1240
  }, start), React__namespace.default.createElement(StyledMultiselectItemsContainer, {
1277
- isBare: props.isBare,
1278
- isCompact: props.isCompact
1241
+ $isBare: props.isBare,
1242
+ $isCompact: props.isCompact
1279
1243
  }, items, React__namespace.default.createElement(StyledMultiselectInput, getInputProps({
1280
1244
  disabled: props.disabled,
1281
1245
  onFocus: () => {
@@ -1451,7 +1415,7 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
1451
1415
  popperReference(selectRef);
1452
1416
  reactMergeRefs.mergeRefs([triggerRef, ref, popperReferenceElementRef])(selectRef);
1453
1417
  }
1454
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1418
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1455
1419
  isHovered: isHovered || isLabelHovered && !isOpen,
1456
1420
  isFocused: isContainerFocused,
1457
1421
  isDisabled: props.disabled
@@ -1566,17 +1530,18 @@ const useMenuContext = () => {
1566
1530
 
1567
1531
  const Menu = React.forwardRef((props, menuRef) => {
1568
1532
  const {
1569
- placement,
1570
- popperModifiers,
1533
+ appendToNode,
1534
+ children,
1571
1535
  eventsEnabled,
1536
+ hasArrow,
1572
1537
  isAnimated,
1538
+ isCompact,
1573
1539
  maxHeight,
1540
+ placement,
1541
+ popperModifiers,
1574
1542
  style: menuStyle,
1575
1543
  zIndex,
1576
- isCompact,
1577
- children,
1578
- appendToNode,
1579
- ...otherProps
1544
+ ...other
1580
1545
  } = props;
1581
1546
  const {
1582
1547
  hasMenuRef,
@@ -1614,55 +1579,53 @@ const Menu = React.forwardRef((props, menuRef) => {
1614
1579
  previousIndexRef.current = undefined;
1615
1580
  itemSearchRegistry.current = [];
1616
1581
  const popperPlacement = themeContext.rtl ? getRtlPopperPlacement(placement) : getPopperPlacement(placement);
1617
- return (
1618
- React__namespace.default.createElement(MenuContext.Provider, {
1619
- value: {
1620
- itemIndexRef,
1621
- isCompact
1622
- }
1623
- }, React__namespace.default.createElement(reactPopper.Popper, {
1624
- placement: popperPlacement,
1625
- modifiers: popperModifiers
1626
- ,
1627
- eventsEnabled: isOpen && eventsEnabled
1628
- }, _ref => {
1629
- let {
1630
- ref,
1631
- style,
1632
- scheduleUpdate,
1633
- placement: currentPlacement
1634
- } = _ref;
1635
- let computedStyle = menuStyle;
1636
- scheduleUpdateRef.current = scheduleUpdate;
1637
- if ((isOpen || isVisible) && popperReferenceElementRef.current && popperReferenceElementRef.current.getBoundingClientRect) {
1638
- computedStyle = {
1639
- width: popperReferenceElementRef.current.getBoundingClientRect().width,
1640
- ...menuStyle
1641
- };
1642
- }
1643
- const menuProps = getMenuProps({
1644
- role: hasMenuRef.current ? 'menu' : 'listbox',
1645
- placement: currentPlacement,
1646
- isAnimated: isAnimated && (isOpen || isVisible),
1647
- ...otherProps
1648
- });
1649
- const menu = React__namespace.default.createElement(StyledMenuWrapper, {
1650
- ref: isOpen ? ref : undefined,
1651
- hasArrow: menuProps.hasArrow,
1652
- placement: menuProps.placement,
1653
- style: style,
1654
- isHidden: !isOpen,
1655
- isAnimated: menuProps.isAnimated,
1656
- zIndex: zIndex
1657
- }, React__namespace.default.createElement(StyledMenu, Object.assign({
1658
- ref: menuRef,
1659
- isCompact: isCompact,
1660
- maxHeight: maxHeight,
1661
- style: computedStyle
1662
- }, menuProps), (isOpen || isVisible) && children));
1663
- return appendToNode ? reactDom.createPortal(menu, appendToNode) : menu;
1664
- }))
1665
- );
1582
+ return React__namespace.default.createElement(MenuContext.Provider, {
1583
+ value: {
1584
+ itemIndexRef,
1585
+ isCompact
1586
+ }
1587
+ }, React__namespace.default.createElement(reactPopper.Popper, {
1588
+ placement: popperPlacement,
1589
+ modifiers: popperModifiers
1590
+ ,
1591
+ eventsEnabled: !!(isOpen && eventsEnabled)
1592
+ }, _ref => {
1593
+ let {
1594
+ ref,
1595
+ style,
1596
+ scheduleUpdate,
1597
+ placement: currentPlacement
1598
+ } = _ref;
1599
+ let computedStyle = menuStyle;
1600
+ scheduleUpdateRef.current = scheduleUpdate;
1601
+ if ((isOpen || isVisible) && popperReferenceElementRef.current && popperReferenceElementRef.current.getBoundingClientRect) {
1602
+ computedStyle = {
1603
+ width: popperReferenceElementRef.current.getBoundingClientRect().width,
1604
+ ...menuStyle
1605
+ };
1606
+ }
1607
+ const menuProps = getMenuProps({
1608
+ role: hasMenuRef.current ? 'menu' : 'listbox',
1609
+ ...other
1610
+ });
1611
+ const sharedProps = {
1612
+ $hasArrow: hasArrow,
1613
+ $isAnimated: isAnimated ? isOpen || isVisible : false,
1614
+ $isCompact: isCompact,
1615
+ $maxHeight: maxHeight,
1616
+ $placement: currentPlacement
1617
+ };
1618
+ const menu = React__namespace.default.createElement(StyledMenuWrapper, Object.assign({
1619
+ ref: isOpen ? ref : undefined,
1620
+ $isHidden: !isOpen,
1621
+ $zIndex: zIndex,
1622
+ style: style
1623
+ }, sharedProps), React__namespace.default.createElement(StyledMenu, Object.assign({
1624
+ ref: menuRef,
1625
+ style: computedStyle
1626
+ }, sharedProps, menuProps), !!(isOpen || isVisible) && children));
1627
+ return appendToNode ? reactDom.createPortal(menu, appendToNode) : menu;
1628
+ }));
1666
1629
  });
1667
1630
  Menu.displayName = 'Menu';
1668
1631
  Menu.propTypes = {
@@ -1690,7 +1653,7 @@ const Separator = React__namespace.default.forwardRef((props, ref) => React__nam
1690
1653
  Separator.displayName = 'Separator';
1691
1654
 
1692
1655
  var _path$1;
1693
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
1656
+ function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
1694
1657
  var SvgPlusStroke = function SvgPlusStroke(props) {
1695
1658
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
1696
1659
  xmlns: "http://www.w3.org/2000/svg",
@@ -1707,7 +1670,7 @@ var SvgPlusStroke = function SvgPlusStroke(props) {
1707
1670
  };
1708
1671
 
1709
1672
  var _path;
1710
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1673
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
1711
1674
  var SvgCheckLgStroke = function SvgCheckLgStroke(props) {
1712
1675
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1713
1676
  xmlns: "http://www.w3.org/2000/svg",
@@ -1742,7 +1705,7 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1742
1705
  component = StyledItem,
1743
1706
  hasIcon,
1744
1707
  children,
1745
- ...props
1708
+ ...other
1746
1709
  } = _ref;
1747
1710
  const {
1748
1711
  selectedItems,
@@ -1803,31 +1766,32 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1803
1766
  }, React__namespace.default.createElement(Component, Object.assign({
1804
1767
  ref: ref,
1805
1768
  disabled: disabled,
1806
- isDanger: isDanger,
1807
- isCompact: isCompact
1808
- }, props), isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1809
- isCompact: isCompact,
1810
- isVisible: isSelected,
1811
- isDisabled: disabled
1769
+ $isDanger: isDanger,
1770
+ $isCompact: isCompact
1771
+ }, other), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1772
+ $isCompact: isCompact,
1773
+ $isVisible: isSelected,
1774
+ $isDisabled: disabled
1812
1775
  }, React__namespace.default.createElement(SvgCheckLgStroke, null)), children));
1813
1776
  }
1814
1777
  itemIndexRef.current++;
1815
1778
  return React__namespace.default.createElement(ItemContext.Provider, {
1816
1779
  value: contextValue
1817
- }, React__namespace.default.createElement(Component, getItemProps({
1780
+ }, React__namespace.default.createElement(Component, Object.assign({
1781
+ $isCompact: isCompact,
1782
+ $isDanger: isDanger,
1783
+ $isFocused: isFocused
1784
+ }, getItemProps({
1818
1785
  item: value,
1819
- isFocused,
1820
1786
  ref,
1821
- isCompact,
1822
- isDanger,
1823
1787
  ...(hasMenuRef.current && {
1824
1788
  role: 'menuitem',
1825
1789
  'aria-selected': null
1826
1790
  }),
1827
- ...props
1828
- }), isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1829
- isCompact: isCompact,
1830
- isVisible: isSelected
1791
+ ...other
1792
+ })), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1793
+ $isCompact: isCompact,
1794
+ $isVisible: isSelected
1831
1795
  }, React__namespace.default.createElement(SvgCheckLgStroke, null)), children));
1832
1796
  });
1833
1797
  Item.displayName = 'Item';
@@ -1849,9 +1813,9 @@ const AddItemComponent = React__namespace.default.forwardRef((_ref, ref) => {
1849
1813
  ref: ref,
1850
1814
  disabled: disabled
1851
1815
  }, props), React__namespace.default.createElement(StyledItemIcon, {
1852
- isCompact: isCompact,
1853
- isVisible: true,
1854
- isDisabled: disabled
1816
+ $isCompact: isCompact,
1817
+ $isVisible: true,
1818
+ $isDisabled: disabled
1855
1819
  }, React__namespace.default.createElement(SvgPlusStroke, null)), children);
1856
1820
  });
1857
1821
  const AddItem = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(Item, Object.assign({
@@ -1877,14 +1841,19 @@ const HeaderIcon = React__namespace.default.forwardRef((props, ref) => {
1877
1841
  });
1878
1842
  HeaderIcon.displayName = 'HeaderIcon';
1879
1843
 
1880
- const HeaderItem = React__namespace.default.forwardRef((props, ref) => {
1844
+ const HeaderItem = React__namespace.default.forwardRef((_ref, ref) => {
1845
+ let {
1846
+ hasIcon,
1847
+ ...other
1848
+ } = _ref;
1881
1849
  const {
1882
1850
  isCompact
1883
1851
  } = useMenuContext();
1884
1852
  return React__namespace.default.createElement(StyledHeaderItem, Object.assign({
1885
1853
  ref: ref,
1886
- isCompact: isCompact
1887
- }, props));
1854
+ $isCompact: isCompact,
1855
+ $hasIcon: hasIcon
1856
+ }, other));
1888
1857
  });
1889
1858
  HeaderItem.displayName = 'HeaderItem';
1890
1859
 
@@ -1897,8 +1866,8 @@ const ItemMeta = React__namespace.default.forwardRef((props, ref) => {
1897
1866
  } = useItemContext();
1898
1867
  return React__namespace.default.createElement(StyledItemMeta, Object.assign({
1899
1868
  ref: ref,
1900
- isCompact: isCompact,
1901
- isDisabled: isDisabled
1869
+ $isCompact: isCompact,
1870
+ $isDisabled: isDisabled
1902
1871
  }, props));
1903
1872
  });
1904
1873
  ItemMeta.displayName = 'ItemMeta';
@@ -1909,7 +1878,7 @@ const MediaBody = React__namespace.default.forwardRef((props, ref) => {
1909
1878
  } = useMenuContext();
1910
1879
  return React__namespace.default.createElement(StyledMediaBody, Object.assign({
1911
1880
  ref: ref,
1912
- isCompact: isCompact
1881
+ $isCompact: isCompact
1913
1882
  }, props));
1914
1883
  });
1915
1884
  MediaBody.displayName = 'MediaBody';
@@ -1919,7 +1888,7 @@ const MediaFigure = props => {
1919
1888
  isCompact
1920
1889
  } = useMenuContext();
1921
1890
  return React__namespace.default.createElement(StyledMediaFigure, Object.assign({
1922
- isCompact: isCompact
1891
+ $isCompact: isCompact
1923
1892
  }, props));
1924
1893
  };
1925
1894
 
@@ -1946,11 +1915,11 @@ const NextItemComponent = React__namespace.default.forwardRef((_ref, ref) => {
1946
1915
  ref: ref,
1947
1916
  disabled: disabled
1948
1917
  }, props), React__namespace.default.createElement(StyledItemIcon, {
1949
- isCompact: isCompact,
1950
- isDisabled: disabled,
1951
- isVisible: true
1918
+ $isCompact: isCompact,
1919
+ $isDisabled: disabled,
1920
+ $isVisible: true
1952
1921
  }, React__namespace.default.createElement(StyledNextIcon, {
1953
- isDisabled: disabled
1922
+ $isDisabled: disabled
1954
1923
  })), children);
1955
1924
  });
1956
1925
  const NextItem = React__namespace.default.forwardRef((_ref2, ref) => {
@@ -2000,11 +1969,11 @@ const PreviousItemComponent = React__namespace.default.forwardRef((_ref, ref) =>
2000
1969
  ref: ref,
2001
1970
  disabled: disabled
2002
1971
  }, props), React__namespace.default.createElement(StyledItemIcon, {
2003
- isCompact: isCompact,
2004
- isDisabled: disabled,
2005
- isVisible: true
1972
+ $isCompact: isCompact,
1973
+ $isDisabled: disabled,
1974
+ $isVisible: true
2006
1975
  }, React__namespace.default.createElement(StyledPreviousIcon, {
2007
- isDisabled: disabled
1976
+ $isDisabled: disabled
2008
1977
  })), children);
2009
1978
  });
2010
1979
  const PreviousItem = React__namespace.default.forwardRef((_ref2, ref) => {