@zendeskgarden/react-dropdowns.legacy 9.0.0 → 9.1.1

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 (49) hide show
  1. package/LICENSE.md +176 -0
  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 +6 -6
  12. package/dist/esm/styled/items/StyledAddItem.js +1 -1
  13. package/dist/esm/styled/items/StyledItem.js +4 -4
  14. package/dist/esm/styled/items/StyledItemIcon.js +2 -2
  15. package/dist/esm/styled/items/StyledItemMeta.js +3 -3
  16. package/dist/esm/styled/items/StyledNextIcon.js +2 -2
  17. package/dist/esm/styled/items/StyledNextItem.js +1 -1
  18. package/dist/esm/styled/items/StyledPreviousIcon.js +2 -2
  19. package/dist/esm/styled/items/StyledPreviousItem.js +1 -1
  20. package/dist/esm/styled/items/header/StyledHeaderIcon.js +1 -1
  21. package/dist/esm/styled/items/header/StyledHeaderItem.js +2 -2
  22. package/dist/esm/styled/items/media/StyledMediaBody.js +1 -1
  23. package/dist/esm/styled/items/media/StyledMediaFigure.js +3 -5
  24. package/dist/esm/styled/items/media/StyledMediaItem.js +1 -1
  25. package/dist/esm/styled/menu/StyledMenu.js +4 -4
  26. package/dist/esm/styled/menu/StyledMenuWrapper.js +7 -7
  27. package/dist/esm/styled/menu/StyledSeparator.js +1 -1
  28. package/dist/esm/styled/multiselect/StyledMultiselectInput.js +1 -1
  29. package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +1 -1
  30. package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +4 -4
  31. package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +4 -4
  32. package/dist/esm/styled/select/StyledFauxInput.js +1 -1
  33. package/dist/esm/styled/select/StyledInput.js +1 -1
  34. package/dist/esm/styled/select/StyledSelect.js +1 -1
  35. package/dist/index.cjs.js +148 -145
  36. package/dist/typings/styled/items/StyledItem.d.ts +3 -3
  37. package/dist/typings/styled/items/StyledItemIcon.d.ts +3 -3
  38. package/dist/typings/styled/items/StyledItemMeta.d.ts +2 -2
  39. package/dist/typings/styled/items/StyledNextIcon.d.ts +1 -1
  40. package/dist/typings/styled/items/StyledPreviousIcon.d.ts +1 -1
  41. package/dist/typings/styled/items/header/StyledHeaderItem.d.ts +2 -2
  42. package/dist/typings/styled/items/media/StyledMediaBody.d.ts +1 -1
  43. package/dist/typings/styled/items/media/StyledMediaFigure.d.ts +4 -3
  44. package/dist/typings/styled/menu/StyledMenu.d.ts +5 -5
  45. package/dist/typings/styled/menu/StyledMenuWrapper.d.ts +5 -5
  46. package/dist/typings/styled/multiselect/StyledMultiselectItemsContainer.d.ts +2 -2
  47. package/dist/typings/styled/multiselect/StyledMultiselectMoreAnchor.d.ts +2 -2
  48. package/dist/typings/styled/select/StyledFauxInput.d.ts +2 -2
  49. package/package.json +6 -5
package/dist/index.cjs.js CHANGED
@@ -289,37 +289,37 @@ 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',
293
- className: props.isAnimated && 'is-animated'
292
+ 'data-garden-version': '9.1.1',
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), {
297
+ })(["position:static !important;max-height:", ";overflow-y:auto;", ";", ";"], props => props.$maxHeight, props => props.$hasArrow && reactTheming.arrowStyles(getArrowPosition(props.$placement), {
298
298
  size: `${props.theme.space.base * 1.5}px`,
299
299
  inset: '1px',
300
- animationModifier: props.isAnimated ? '.is-animated' : undefined
300
+ animationModifier: props.$isAnimated ? '.is-animated' : undefined
301
301
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$m, props));
302
302
 
303
303
  const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
304
304
  const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
305
305
  'data-garden-id': COMPONENT_ID$l,
306
- 'data-garden-version': '9.0.0',
307
- className: props.isAnimated && 'is-animated'
306
+ 'data-garden-version': '9.1.1',
307
+ className: props.$isAnimated && 'is-animated'
308
308
  })).withConfig({
309
309
  displayName: "StyledMenuWrapper",
310
310
  componentId: "sc-u70fn3-0"
311
- })(["", ";", ";"], props => reactTheming.menuStyles(getMenuPosition(props.placement), {
311
+ })(["", ";", ";"], props => reactTheming.menuStyles(getMenuPosition(props.$placement), {
312
312
  theme: props.theme,
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
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
317
317
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
318
318
 
319
319
  const COMPONENT_ID$k = 'dropdowns.separator';
320
320
  const StyledSeparator = styled__default.default.li.attrs({
321
321
  'data-garden-id': COMPONENT_ID$k,
322
- 'data-garden-version': '9.0.0',
322
+ 'data-garden-version': '9.1.1',
323
323
  role: 'separator'
324
324
  }).withConfig({
325
325
  displayName: "StyledSeparator",
@@ -331,13 +331,13 @@ const StyledSeparator = styled__default.default.li.attrs({
331
331
 
332
332
  const COMPONENT_ID$j = 'dropdowns.item';
333
333
  const getItemPaddingVertical = props => {
334
- if (props.isCompact) {
334
+ if (props.$isCompact) {
335
335
  return `${props.theme.space.base}px`;
336
336
  }
337
337
  return `${props.theme.space.base * 2}px`;
338
338
  };
339
339
  const getColorStyles = props => {
340
- const backgroundColor = props.isFocused ? reactTheming.getColor({
340
+ const backgroundColor = props.$isFocused ? reactTheming.getColor({
341
341
  theme: props.theme,
342
342
  variable: 'background.primaryEmphasis',
343
343
  transparency: props.theme.opacity[100]
@@ -348,7 +348,7 @@ const getColorStyles = props => {
348
348
  theme: props.theme,
349
349
  variable: 'foreground.disabled'
350
350
  });
351
- } else if (props.isDanger) {
351
+ } else if (props.$isDanger) {
352
352
  foregroundColor = reactTheming.getColor({
353
353
  theme: props.theme,
354
354
  variable: 'foreground.danger'
@@ -363,7 +363,7 @@ const getColorStyles = props => {
363
363
  };
364
364
  const StyledItem = styled__default.default.li.attrs(props => ({
365
365
  'data-garden-id': COMPONENT_ID$j,
366
- 'data-garden-version': '9.0.0',
366
+ 'data-garden-version': '9.1.1',
367
367
  'aria-disabled': props.disabled
368
368
  })).withConfig({
369
369
  displayName: "StyledItem",
@@ -373,7 +373,7 @@ const StyledItem = styled__default.default.li.attrs(props => ({
373
373
  const COMPONENT_ID$i = 'dropdowns.add_item';
374
374
  const StyledAddItem = styled__default.default(StyledItem).attrs({
375
375
  'data-garden-id': COMPONENT_ID$i,
376
- 'data-garden-version': '9.0.0'
376
+ 'data-garden-version': '9.1.1'
377
377
  }).withConfig({
378
378
  displayName: "StyledAddItem",
379
379
  componentId: "sc-mlto71-0"
@@ -385,13 +385,13 @@ const StyledAddItem = styled__default.default(StyledItem).attrs({
385
385
  const COMPONENT_ID$h = 'dropdowns.item_meta';
386
386
  const StyledItemMeta = styled__default.default.span.attrs({
387
387
  'data-garden-id': COMPONENT_ID$h,
388
- 'data-garden-version': '9.0.0'
388
+ 'data-garden-version': '9.1.1'
389
389
  }).withConfig({
390
390
  displayName: "StyledItemMeta",
391
391
  componentId: "sc-1m3x8m1-0"
392
- })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => reactTheming.getColor({
392
+ })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.$isCompact ? 3 : 4), props => reactTheming.getColor({
393
393
  theme: props.theme,
394
- variable: props.isDisabled ? 'foreground.disabled' : 'foreground.subtle'
394
+ variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.subtle'
395
395
  }), props => props.theme.fontSizes.sm, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
396
396
 
397
397
  const COMPONENT_ID$g = 'dropdowns.item_icon';
@@ -400,11 +400,11 @@ const getSizeStyles = props => {
400
400
  };
401
401
  const StyledItemIcon = styled__default.default.div.attrs({
402
402
  'data-garden-id': COMPONENT_ID$g,
403
- 'data-garden-version': '9.0.0'
403
+ 'data-garden-version': '9.1.1'
404
404
  }).withConfig({
405
405
  displayName: "StyledItemIcon",
406
406
  componentId: "sc-pspm80-0"
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({
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
408
  theme: props.theme,
409
409
  variable: 'foreground.primary'
410
410
  }), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
@@ -412,7 +412,7 @@ const StyledItemIcon = styled__default.default.div.attrs({
412
412
  const COMPONENT_ID$f = 'dropdowns.next_item';
413
413
  const StyledNextItem = styled__default.default(StyledItem).attrs({
414
414
  'data-garden-id': COMPONENT_ID$f,
415
- 'data-garden-version': '9.0.0'
415
+ 'data-garden-version': '9.1.1'
416
416
  }).withConfig({
417
417
  displayName: "StyledNextItem",
418
418
  componentId: "sc-1wrjlge-0"
@@ -441,14 +441,14 @@ const NextIconComponent = _ref => {
441
441
  } = _ref;
442
442
  return React__namespace.default.createElement(SvgChevronRightStroke, {
443
443
  "data-garden-id": COMPONENT_ID$e,
444
- "data-garden-version": '9.0.0',
444
+ "data-garden-version": '9.1.1',
445
445
  className: className
446
446
  });
447
447
  };
448
448
  const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
449
449
  displayName: "StyledNextIcon",
450
450
  componentId: "sc-1nzkdnq-0"
451
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor({
451
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
452
452
  theme: props.theme,
453
453
  variable: 'foreground.disabled'
454
454
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
@@ -456,7 +456,7 @@ const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
456
456
  const COMPONENT_ID$d = 'dropdowns.previous_item';
457
457
  const StyledPreviousItem = styled__default.default(StyledItem).attrs({
458
458
  'data-garden-id': COMPONENT_ID$d,
459
- 'data-garden-version': '9.0.0'
459
+ 'data-garden-version': '9.1.1'
460
460
  }).withConfig({
461
461
  displayName: "StyledPreviousItem",
462
462
  componentId: "sc-1qv9jwe-0"
@@ -485,14 +485,14 @@ const PreviousIconComponent = _ref => {
485
485
  } = _ref;
486
486
  return React__namespace.default.createElement(SvgChevronLeftStroke, {
487
487
  "data-garden-id": COMPONENT_ID$c,
488
- "data-garden-version": '9.0.0',
488
+ "data-garden-version": '9.1.1',
489
489
  className: className
490
490
  });
491
491
  };
492
492
  const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withConfig({
493
493
  displayName: "StyledPreviousIcon",
494
494
  componentId: "sc-1n1t07s-0"
495
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor({
495
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
496
496
  theme: props.theme,
497
497
  variable: 'foreground.subtle'
498
498
  }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
@@ -500,7 +500,7 @@ const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withCo
500
500
  const COMPONENT_ID$b = 'dropdowns.header_icon';
501
501
  const StyledHeaderIcon = styled__default.default.div.attrs({
502
502
  'data-garden-id': COMPONENT_ID$b,
503
- 'data-garden-version': '9.0.0'
503
+ 'data-garden-version': '9.1.1'
504
504
  }).withConfig({
505
505
  displayName: "StyledHeaderIcon",
506
506
  componentId: "sc-ow8s45-0"
@@ -511,14 +511,14 @@ const StyledHeaderIcon = styled__default.default.div.attrs({
511
511
 
512
512
  const COMPONENT_ID$a = 'dropdowns.header_item';
513
513
  const getHorizontalPadding = props => {
514
- if (props.hasIcon) {
514
+ if (props.$hasIcon) {
515
515
  return undefined;
516
516
  }
517
517
  return `${props.theme.space.base * 3}px`;
518
518
  };
519
519
  const StyledHeaderItem = styled__default.default(StyledItem).attrs({
520
520
  'data-garden-id': COMPONENT_ID$a,
521
- 'data-garden-version': '9.0.0'
521
+ 'data-garden-version': '9.1.1'
522
522
  }).withConfig({
523
523
  displayName: "StyledHeaderItem",
524
524
  componentId: "sc-1xosinr-0"
@@ -527,7 +527,7 @@ const StyledHeaderItem = styled__default.default(StyledItem).attrs({
527
527
  const COMPONENT_ID$9 = 'dropdowns.media_body';
528
528
  const StyledMediaBody = styled__default.default.div.attrs({
529
529
  'data-garden-id': COMPONENT_ID$9,
530
- 'data-garden-version': '9.0.0'
530
+ 'data-garden-version': '9.1.1'
531
531
  }).withConfig({
532
532
  displayName: "StyledMediaBody",
533
533
  componentId: "sc-133sssc-0"
@@ -538,16 +538,14 @@ const StyledMediaFigure = styled__default.default(
538
538
  _ref => {
539
539
  let {
540
540
  children,
541
- isCompact,
541
+ $isCompact,
542
542
  theme,
543
543
  ...props
544
544
  } = _ref;
545
- return (
546
- React__namespace.default.cloneElement(React.Children.only(children), props)
547
- );
545
+ return React__namespace.default.cloneElement(React.Children.only(children), props);
548
546
  }).attrs({
549
547
  'data-garden-id': COMPONENT_ID$8,
550
- 'data-garden-version': '9.0.0'
548
+ 'data-garden-version': '9.1.1'
551
549
  }).withConfig({
552
550
  displayName: "StyledMediaFigure",
553
551
  componentId: "sc-16vz3xj-0"
@@ -556,7 +554,7 @@ _ref => {
556
554
  const COMPONENT_ID$7 = 'dropdowns.media_item';
557
555
  const StyledMediaItem = styled__default.default(StyledItem).attrs({
558
556
  'data-garden-id': COMPONENT_ID$7,
559
- 'data-garden-version': '9.0.0'
557
+ 'data-garden-version': '9.1.1'
560
558
  }).withConfig({
561
559
  displayName: "StyledMediaItem",
562
560
  componentId: "sc-af4509-0"
@@ -565,7 +563,7 @@ const StyledMediaItem = styled__default.default(StyledItem).attrs({
565
563
  const COMPONENT_ID$6 = 'dropdowns.faux_input';
566
564
  const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
567
565
  'data-garden-id': COMPONENT_ID$6,
568
- 'data-garden-version': '9.0.0',
566
+ 'data-garden-version': '9.1.1',
569
567
  mediaLayout: true,
570
568
  theme: props.theme
571
569
  })).withConfig({
@@ -577,7 +575,7 @@ const COMPONENT_ID$5 = 'dropdowns.input';
577
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;"]);
578
576
  const StyledInput = styled__default.default(reactForms.Input).attrs({
579
577
  'data-garden-id': COMPONENT_ID$5,
580
- 'data-garden-version': '9.0.0',
578
+ 'data-garden-version': '9.1.1',
581
579
  isBare: true
582
580
  }).withConfig({
583
581
  displayName: "StyledInput",
@@ -587,7 +585,7 @@ const StyledInput = styled__default.default(reactForms.Input).attrs({
587
585
  const COMPONENT_ID$4 = 'dropdowns.select';
588
586
  const StyledSelect = styled__default.default.div.attrs({
589
587
  'data-garden-id': COMPONENT_ID$4,
590
- 'data-garden-version': '9.0.0'
588
+ 'data-garden-version': '9.1.1'
591
589
  }).withConfig({
592
590
  displayName: "StyledSelect",
593
591
  componentId: "sc-xf4qjv-0"
@@ -605,7 +603,7 @@ const visibleStyling = props => {
605
603
  };
606
604
  const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
607
605
  'data-garden-id': COMPONENT_ID$3,
608
- 'data-garden-version': '9.0.0',
606
+ 'data-garden-version': '9.1.1',
609
607
  isBare: true
610
608
  }).withConfig({
611
609
  displayName: "StyledMultiselectInput",
@@ -616,10 +614,10 @@ const COMPONENT_ID$2 = 'dropdowns.multiselect_items_container';
616
614
  const sizeStyles = props => {
617
615
  let margin;
618
616
  let padding;
619
- if (!props.isBare) {
620
- 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`;
621
619
  margin = `${marginVertical} 0`;
622
- const paddingVertical = props.isCompact ? '3px' : '1px';
620
+ const paddingVertical = props.$isCompact ? '3px' : '1px';
623
621
  const paddingEnd = `${props.theme.space.base}px`;
624
622
  padding = `${paddingVertical} ${props.theme.rtl ? 0 : paddingEnd} ${paddingVertical} ${props.theme.rtl ? paddingEnd : 0}`;
625
623
  }
@@ -627,7 +625,7 @@ const sizeStyles = props => {
627
625
  };
628
626
  const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
629
627
  'data-garden-id': COMPONENT_ID$2,
630
- 'data-garden-version': '9.0.0'
628
+ 'data-garden-version': '9.1.1'
631
629
  }).withConfig({
632
630
  displayName: "StyledMultiselectItemsContainer",
633
631
  componentId: "sc-1dxwjyz-0"
@@ -636,7 +634,7 @@ const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
636
634
  const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
637
635
  const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
638
636
  'data-garden-id': COMPONENT_ID$1,
639
- 'data-garden-version': '9.0.0'
637
+ 'data-garden-version': '9.1.1'
640
638
  }).withConfig({
641
639
  displayName: "StyledMultiselectItemWrapper",
642
640
  componentId: "sc-vgr7nd-0"
@@ -645,14 +643,14 @@ const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
645
643
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
646
644
  const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
647
645
  'data-garden-id': COMPONENT_ID,
648
- 'data-garden-version': '9.0.0'
646
+ 'data-garden-version': '9.1.1'
649
647
  }).withConfig({
650
648
  displayName: "StyledMultiselectMoreAnchor",
651
649
  componentId: "sc-pkakky-0"
652
- })(["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({
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({
653
651
  theme: props.theme,
654
- variable: props.isDisabled ? 'foreground.disabled' : 'foreground.primary'
655
- }), props => !props.isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
652
+ variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.primary'
653
+ }), props => !props.$isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
656
654
 
657
655
  const Trigger = _ref => {
658
656
  let {
@@ -1198,18 +1196,18 @@ const Multiselect = React__namespace.default.forwardRef((_ref, ref) => {
1198
1196
  }), {
1199
1197
  size: props.isCompact ? 'medium' : 'large'
1200
1198
  });
1201
- output.push( React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1199
+ output.push(React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1202
1200
  key: x
1203
1201
  }, renderedItem));
1204
1202
  } else {
1205
1203
  output.push(renderSelectableItem(item, x));
1206
1204
  }
1207
1205
  } else if (!isFocused && !inputValue || props.disabled) {
1208
- output.push( React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1206
+ output.push(React__namespace.default.createElement(StyledMultiselectItemWrapper, {
1209
1207
  key: "more-anchor"
1210
1208
  }, React__namespace.default.createElement(StyledMultiselectMoreAnchor, {
1211
- isCompact: props.isCompact,
1212
- isDisabled: props.disabled
1209
+ $isCompact: props.isCompact,
1210
+ $isDisabled: props.disabled
1213
1211
  }, renderShowMore ? renderShowMore(itemValues.length - x) : `+ ${itemValues.length - x} more`)));
1214
1212
  break;
1215
1213
  } else {
@@ -1240,8 +1238,8 @@ const Multiselect = React__namespace.default.forwardRef((_ref, ref) => {
1240
1238
  isFocused: isContainerFocused,
1241
1239
  isDisabled: props.disabled
1242
1240
  }, start), React__namespace.default.createElement(StyledMultiselectItemsContainer, {
1243
- isBare: props.isBare,
1244
- isCompact: props.isCompact
1241
+ $isBare: props.isBare,
1242
+ $isCompact: props.isCompact
1245
1243
  }, items, React__namespace.default.createElement(StyledMultiselectInput, getInputProps({
1246
1244
  disabled: props.disabled,
1247
1245
  onFocus: () => {
@@ -1532,17 +1530,18 @@ const useMenuContext = () => {
1532
1530
 
1533
1531
  const Menu = React.forwardRef((props, menuRef) => {
1534
1532
  const {
1535
- placement,
1536
- popperModifiers,
1533
+ appendToNode,
1534
+ children,
1537
1535
  eventsEnabled,
1536
+ hasArrow,
1538
1537
  isAnimated,
1538
+ isCompact,
1539
1539
  maxHeight,
1540
+ placement,
1541
+ popperModifiers,
1540
1542
  style: menuStyle,
1541
1543
  zIndex,
1542
- isCompact,
1543
- children,
1544
- appendToNode,
1545
- ...otherProps
1544
+ ...other
1546
1545
  } = props;
1547
1546
  const {
1548
1547
  hasMenuRef,
@@ -1580,55 +1579,53 @@ const Menu = React.forwardRef((props, menuRef) => {
1580
1579
  previousIndexRef.current = undefined;
1581
1580
  itemSearchRegistry.current = [];
1582
1581
  const popperPlacement = themeContext.rtl ? getRtlPopperPlacement(placement) : getPopperPlacement(placement);
1583
- return (
1584
- React__namespace.default.createElement(MenuContext.Provider, {
1585
- value: {
1586
- itemIndexRef,
1587
- isCompact
1588
- }
1589
- }, React__namespace.default.createElement(reactPopper.Popper, {
1590
- placement: popperPlacement,
1591
- modifiers: popperModifiers
1592
- ,
1593
- eventsEnabled: !!(isOpen && eventsEnabled)
1594
- }, _ref => {
1595
- let {
1596
- ref,
1597
- style,
1598
- scheduleUpdate,
1599
- placement: currentPlacement
1600
- } = _ref;
1601
- let computedStyle = menuStyle;
1602
- scheduleUpdateRef.current = scheduleUpdate;
1603
- if ((isOpen || isVisible) && popperReferenceElementRef.current && popperReferenceElementRef.current.getBoundingClientRect) {
1604
- computedStyle = {
1605
- width: popperReferenceElementRef.current.getBoundingClientRect().width,
1606
- ...menuStyle
1607
- };
1608
- }
1609
- const menuProps = getMenuProps({
1610
- role: hasMenuRef.current ? 'menu' : 'listbox',
1611
- placement: currentPlacement,
1612
- isAnimated: isAnimated && (isOpen || isVisible),
1613
- ...otherProps
1614
- });
1615
- const menu = React__namespace.default.createElement(StyledMenuWrapper, {
1616
- ref: isOpen ? ref : undefined,
1617
- hasArrow: menuProps.hasArrow,
1618
- placement: menuProps.placement,
1619
- style: style,
1620
- isHidden: !isOpen,
1621
- isAnimated: menuProps.isAnimated,
1622
- zIndex: zIndex
1623
- }, React__namespace.default.createElement(StyledMenu, Object.assign({
1624
- ref: menuRef,
1625
- isCompact: isCompact,
1626
- maxHeight: maxHeight,
1627
- style: computedStyle
1628
- }, menuProps), !!(isOpen || isVisible) && children));
1629
- return appendToNode ? reactDom.createPortal(menu, appendToNode) : menu;
1630
- }))
1631
- );
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
+ }));
1632
1629
  });
1633
1630
  Menu.displayName = 'Menu';
1634
1631
  Menu.propTypes = {
@@ -1708,7 +1705,7 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1708
1705
  component = StyledItem,
1709
1706
  hasIcon,
1710
1707
  children,
1711
- ...props
1708
+ ...other
1712
1709
  } = _ref;
1713
1710
  const {
1714
1711
  selectedItems,
@@ -1769,31 +1766,32 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1769
1766
  }, React__namespace.default.createElement(Component, Object.assign({
1770
1767
  ref: ref,
1771
1768
  disabled: disabled,
1772
- isDanger: isDanger,
1773
- isCompact: isCompact
1774
- }, props), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1775
- isCompact: isCompact,
1776
- isVisible: isSelected,
1777
- 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
1778
1775
  }, React__namespace.default.createElement(SvgCheckLgStroke, null)), children));
1779
1776
  }
1780
1777
  itemIndexRef.current++;
1781
1778
  return React__namespace.default.createElement(ItemContext.Provider, {
1782
1779
  value: contextValue
1783
- }, 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({
1784
1785
  item: value,
1785
- isFocused,
1786
1786
  ref,
1787
- isCompact,
1788
- isDanger,
1789
1787
  ...(hasMenuRef.current && {
1790
1788
  role: 'menuitem',
1791
1789
  'aria-selected': null
1792
1790
  }),
1793
- ...props
1794
- }), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1795
- isCompact: isCompact,
1796
- isVisible: isSelected
1791
+ ...other
1792
+ })), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1793
+ $isCompact: isCompact,
1794
+ $isVisible: isSelected
1797
1795
  }, React__namespace.default.createElement(SvgCheckLgStroke, null)), children));
1798
1796
  });
1799
1797
  Item.displayName = 'Item';
@@ -1815,9 +1813,9 @@ const AddItemComponent = React__namespace.default.forwardRef((_ref, ref) => {
1815
1813
  ref: ref,
1816
1814
  disabled: disabled
1817
1815
  }, props), React__namespace.default.createElement(StyledItemIcon, {
1818
- isCompact: isCompact,
1819
- isVisible: true,
1820
- isDisabled: disabled
1816
+ $isCompact: isCompact,
1817
+ $isVisible: true,
1818
+ $isDisabled: disabled
1821
1819
  }, React__namespace.default.createElement(SvgPlusStroke, null)), children);
1822
1820
  });
1823
1821
  const AddItem = React__namespace.default.forwardRef((props, ref) => React__namespace.default.createElement(Item, Object.assign({
@@ -1843,14 +1841,19 @@ const HeaderIcon = React__namespace.default.forwardRef((props, ref) => {
1843
1841
  });
1844
1842
  HeaderIcon.displayName = 'HeaderIcon';
1845
1843
 
1846
- 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;
1847
1849
  const {
1848
1850
  isCompact
1849
1851
  } = useMenuContext();
1850
1852
  return React__namespace.default.createElement(StyledHeaderItem, Object.assign({
1851
1853
  ref: ref,
1852
- isCompact: isCompact
1853
- }, props));
1854
+ $isCompact: isCompact,
1855
+ $hasIcon: hasIcon
1856
+ }, other));
1854
1857
  });
1855
1858
  HeaderItem.displayName = 'HeaderItem';
1856
1859
 
@@ -1863,8 +1866,8 @@ const ItemMeta = React__namespace.default.forwardRef((props, ref) => {
1863
1866
  } = useItemContext();
1864
1867
  return React__namespace.default.createElement(StyledItemMeta, Object.assign({
1865
1868
  ref: ref,
1866
- isCompact: isCompact,
1867
- isDisabled: isDisabled
1869
+ $isCompact: isCompact,
1870
+ $isDisabled: isDisabled
1868
1871
  }, props));
1869
1872
  });
1870
1873
  ItemMeta.displayName = 'ItemMeta';
@@ -1875,7 +1878,7 @@ const MediaBody = React__namespace.default.forwardRef((props, ref) => {
1875
1878
  } = useMenuContext();
1876
1879
  return React__namespace.default.createElement(StyledMediaBody, Object.assign({
1877
1880
  ref: ref,
1878
- isCompact: isCompact
1881
+ $isCompact: isCompact
1879
1882
  }, props));
1880
1883
  });
1881
1884
  MediaBody.displayName = 'MediaBody';
@@ -1885,7 +1888,7 @@ const MediaFigure = props => {
1885
1888
  isCompact
1886
1889
  } = useMenuContext();
1887
1890
  return React__namespace.default.createElement(StyledMediaFigure, Object.assign({
1888
- isCompact: isCompact
1891
+ $isCompact: isCompact
1889
1892
  }, props));
1890
1893
  };
1891
1894
 
@@ -1912,11 +1915,11 @@ const NextItemComponent = React__namespace.default.forwardRef((_ref, ref) => {
1912
1915
  ref: ref,
1913
1916
  disabled: disabled
1914
1917
  }, props), React__namespace.default.createElement(StyledItemIcon, {
1915
- isCompact: isCompact,
1916
- isDisabled: disabled,
1917
- isVisible: true
1918
+ $isCompact: isCompact,
1919
+ $isDisabled: disabled,
1920
+ $isVisible: true
1918
1921
  }, React__namespace.default.createElement(StyledNextIcon, {
1919
- isDisabled: disabled
1922
+ $isDisabled: disabled
1920
1923
  })), children);
1921
1924
  });
1922
1925
  const NextItem = React__namespace.default.forwardRef((_ref2, ref) => {
@@ -1966,11 +1969,11 @@ const PreviousItemComponent = React__namespace.default.forwardRef((_ref, ref) =>
1966
1969
  ref: ref,
1967
1970
  disabled: disabled
1968
1971
  }, props), React__namespace.default.createElement(StyledItemIcon, {
1969
- isCompact: isCompact,
1970
- isDisabled: disabled,
1971
- isVisible: true
1972
+ $isCompact: isCompact,
1973
+ $isDisabled: disabled,
1974
+ $isVisible: true
1972
1975
  }, React__namespace.default.createElement(StyledPreviousIcon, {
1973
- isDisabled: disabled
1976
+ $isDisabled: disabled
1974
1977
  })), children);
1975
1978
  });
1976
1979
  const PreviousItem = React__namespace.default.forwardRef((_ref2, ref) => {
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import { ThemeProps, DefaultTheme } from 'styled-components';
8
8
  export interface IStyledItemProps {
9
- isFocused?: boolean;
10
- isCompact?: boolean;
11
- isDanger?: boolean;
9
+ $isFocused?: boolean;
10
+ $isCompact?: boolean;
11
+ $isDanger?: boolean;
12
12
  disabled?: boolean;
13
13
  checked?: boolean;
14
14
  }
@@ -6,9 +6,9 @@
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledItemIconProps {
9
- isCompact?: boolean;
10
- isVisible?: boolean;
11
- isDisabled?: boolean;
9
+ $isCompact?: boolean;
10
+ $isVisible?: boolean;
11
+ $isDisabled?: boolean;
12
12
  }
13
13
  export declare const StyledItemIcon: import("styled-components").StyledComponent<"div", DefaultTheme, {
14
14
  'data-garden-id': string;