@zendeskgarden/react-dropdowns 8.74.3 → 8.75.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.
package/dist/index.cjs.js CHANGED
@@ -306,7 +306,7 @@ function getMenuPosition(popperPlacement) {
306
306
  const COMPONENT_ID$m = 'dropdowns.menu';
307
307
  const StyledMenu = styled__default.default.ul.attrs(props => ({
308
308
  'data-garden-id': COMPONENT_ID$m,
309
- 'data-garden-version': '8.74.3',
309
+ 'data-garden-version': '8.75.0',
310
310
  className: props.isAnimated && 'is-animated'
311
311
  })).withConfig({
312
312
  displayName: "StyledMenu",
@@ -323,7 +323,7 @@ StyledMenu.defaultProps = {
323
323
  const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
324
324
  const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
325
325
  'data-garden-id': COMPONENT_ID$l,
326
- 'data-garden-version': '8.74.3',
326
+ 'data-garden-version': '8.75.0',
327
327
  className: props.isAnimated && 'is-animated'
328
328
  })).withConfig({
329
329
  displayName: "StyledMenuWrapper",
@@ -342,12 +342,12 @@ StyledMenuWrapper.defaultProps = {
342
342
  const COMPONENT_ID$k = 'dropdowns.separator';
343
343
  const StyledSeparator = styled__default.default.li.attrs({
344
344
  'data-garden-id': COMPONENT_ID$k,
345
- 'data-garden-version': '8.74.3',
345
+ 'data-garden-version': '8.75.0',
346
346
  role: 'separator'
347
347
  }).withConfig({
348
348
  displayName: "StyledSeparator",
349
349
  componentId: "sc-1mrnp18-0"
350
- })(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 200, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
350
+ })(["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));
351
351
  StyledSeparator.defaultProps = {
352
352
  theme: reactTheming.DEFAULT_THEME
353
353
  };
@@ -359,28 +359,28 @@ const getItemPaddingVertical = props => {
359
359
  }
360
360
  return `${props.theme.space.base * 2}px`;
361
361
  };
362
- const getColorStyles = props => {
362
+ const getColorV8Styles = props => {
363
363
  let foregroundColor;
364
364
  let backgroundColor;
365
365
  if (props.disabled) {
366
- foregroundColor = reactTheming.getColor('neutralHue', 400, props.theme);
366
+ foregroundColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
367
367
  } else if (props.isDanger) {
368
- foregroundColor = reactTheming.getColor('dangerHue', 600, props.theme);
368
+ foregroundColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
369
369
  backgroundColor = props.isFocused ? polished.rgba(foregroundColor, 0.08) : 'inherit';
370
370
  } else {
371
- foregroundColor = props.theme.colors.foreground;
372
- backgroundColor = props.isFocused ? reactTheming.getColor('primaryHue', 600, props.theme, 0.08) : 'inherit';
371
+ foregroundColor = reactTheming.getColorV8('foreground', 600 , props.theme);
372
+ backgroundColor = props.isFocused ? reactTheming.getColorV8('primaryHue', 600, props.theme, 0.08) : 'inherit';
373
373
  }
374
374
  return styled.css(["background-color:", ";color:", ";& a,& a:hover,& a:focus,& a:active{color:inherit;}"], backgroundColor, foregroundColor);
375
375
  };
376
376
  const StyledItem = styled__default.default.li.attrs(props => ({
377
377
  'data-garden-id': COMPONENT_ID$j,
378
- 'data-garden-version': '8.74.3',
378
+ 'data-garden-version': '8.75.0',
379
379
  'aria-disabled': props.disabled
380
380
  })).withConfig({
381
381
  displayName: "StyledItem",
382
382
  componentId: "sc-1xeog7q-0"
383
- })(["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));
383
+ })(["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 => getColorV8Styles(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$j, props));
384
384
  StyledItem.defaultProps = {
385
385
  theme: reactTheming.DEFAULT_THEME
386
386
  };
@@ -388,11 +388,11 @@ StyledItem.defaultProps = {
388
388
  const COMPONENT_ID$i = 'dropdowns.add_item';
389
389
  const StyledAddItem = styled__default.default(StyledItem).attrs({
390
390
  'data-garden-id': COMPONENT_ID$i,
391
- 'data-garden-version': '8.74.3'
391
+ 'data-garden-version': '8.75.0'
392
392
  }).withConfig({
393
393
  displayName: "StyledAddItem",
394
394
  componentId: "sc-ekqk50-0"
395
- })(["color:", ";", ";"], props => !props.disabled && reactTheming.getColor('primaryHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
395
+ })(["color:", ";", ";"], props => !props.disabled && reactTheming.getColorV8('primaryHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
396
396
  StyledAddItem.defaultProps = {
397
397
  theme: reactTheming.DEFAULT_THEME
398
398
  };
@@ -400,11 +400,11 @@ StyledAddItem.defaultProps = {
400
400
  const COMPONENT_ID$h = 'dropdowns.item_meta';
401
401
  const StyledItemMeta = styled__default.default.span.attrs({
402
402
  'data-garden-id': COMPONENT_ID$h,
403
- 'data-garden-version': '8.74.3'
403
+ 'data-garden-version': '8.75.0'
404
404
  }).withConfig({
405
405
  displayName: "StyledItemMeta",
406
406
  componentId: "sc-k6xy28-0"
407
- })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => reactTheming.getColor('neutralHue', props.isDisabled ? 400 : 600, props.theme), props => props.theme.fontSizes.sm, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
407
+ })(["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));
408
408
  StyledItemMeta.defaultProps = {
409
409
  theme: reactTheming.DEFAULT_THEME
410
410
  };
@@ -415,11 +415,11 @@ const getSizeStyles = props => {
415
415
  };
416
416
  const StyledItemIcon = styled__default.default.div.attrs({
417
417
  'data-garden-id': COMPONENT_ID$g,
418
- 'data-garden-version': '8.74.3'
418
+ 'data-garden-version': '8.75.0'
419
419
  }).withConfig({
420
420
  displayName: "StyledItemIcon",
421
421
  componentId: "sc-1v0ty11-0"
422
- })(["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('primaryHue', 600, props.theme), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
422
+ })(["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);
423
423
  StyledItemIcon.defaultProps = {
424
424
  theme: reactTheming.DEFAULT_THEME
425
425
  };
@@ -427,7 +427,7 @@ StyledItemIcon.defaultProps = {
427
427
  const COMPONENT_ID$f = 'dropdowns.next_item';
428
428
  const StyledNextItem = styled__default.default(StyledItem).attrs({
429
429
  'data-garden-id': COMPONENT_ID$f,
430
- 'data-garden-version': '8.74.3'
430
+ 'data-garden-version': '8.75.0'
431
431
  }).withConfig({
432
432
  displayName: "StyledNextItem",
433
433
  componentId: "sc-1bcygn5-0"
@@ -459,14 +459,14 @@ const NextIconComponent = _ref => {
459
459
  } = _ref;
460
460
  return React__namespace.default.createElement(SvgChevronRightStroke, {
461
461
  "data-garden-id": COMPONENT_ID$e,
462
- "data-garden-version": '8.74.3',
462
+ "data-garden-version": '8.75.0',
463
463
  className: className
464
464
  });
465
465
  };
466
466
  const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
467
467
  displayName: "StyledNextIcon",
468
468
  componentId: "sc-1rinki2-0"
469
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
469
+ })(["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));
470
470
  StyledNextIcon.defaultProps = {
471
471
  theme: reactTheming.DEFAULT_THEME
472
472
  };
@@ -474,7 +474,7 @@ StyledNextIcon.defaultProps = {
474
474
  const COMPONENT_ID$d = 'dropdowns.previous_item';
475
475
  const StyledPreviousItem = styled__default.default(StyledItem).attrs({
476
476
  'data-garden-id': COMPONENT_ID$d,
477
- 'data-garden-version': '8.74.3'
477
+ 'data-garden-version': '8.75.0'
478
478
  }).withConfig({
479
479
  displayName: "StyledPreviousItem",
480
480
  componentId: "sc-1nmdds9-0"
@@ -506,14 +506,14 @@ const PreviousIconComponent = _ref => {
506
506
  } = _ref;
507
507
  return React__namespace.default.createElement(SvgChevronLeftStroke, {
508
508
  "data-garden-id": COMPONENT_ID$c,
509
- "data-garden-version": '8.74.3',
509
+ "data-garden-version": '8.75.0',
510
510
  className: className
511
511
  });
512
512
  };
513
513
  const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withConfig({
514
514
  displayName: "StyledPreviousIcon",
515
515
  componentId: "sc-czfwj7-0"
516
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
516
+ })(["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));
517
517
  StyledPreviousIcon.defaultProps = {
518
518
  theme: reactTheming.DEFAULT_THEME
519
519
  };
@@ -521,11 +521,11 @@ StyledPreviousIcon.defaultProps = {
521
521
  const COMPONENT_ID$b = 'dropdowns.header_icon';
522
522
  const StyledHeaderIcon = styled__default.default.div.attrs({
523
523
  'data-garden-id': COMPONENT_ID$b,
524
- 'data-garden-version': '8.74.3'
524
+ 'data-garden-version': '8.75.0'
525
525
  }).withConfig({
526
526
  displayName: "StyledHeaderIcon",
527
527
  componentId: "sc-1fl6nsz-0"
528
- })(["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('neutralHue', 600, props.theme), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
528
+ })(["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));
529
529
  StyledHeaderIcon.defaultProps = {
530
530
  theme: reactTheming.DEFAULT_THEME
531
531
  };
@@ -539,7 +539,7 @@ const getHorizontalPadding = props => {
539
539
  };
540
540
  const StyledHeaderItem = styled__default.default(StyledItem).attrs({
541
541
  'data-garden-id': COMPONENT_ID$a,
542
- 'data-garden-version': '8.74.3'
542
+ 'data-garden-version': '8.75.0'
543
543
  }).withConfig({
544
544
  displayName: "StyledHeaderItem",
545
545
  componentId: "sc-137filx-0"
@@ -551,7 +551,7 @@ StyledHeaderItem.defaultProps = {
551
551
  const COMPONENT_ID$9 = 'dropdowns.media_body';
552
552
  const StyledMediaBody = styled__default.default.div.attrs({
553
553
  'data-garden-id': COMPONENT_ID$9,
554
- 'data-garden-version': '8.74.3'
554
+ 'data-garden-version': '8.75.0'
555
555
  }).withConfig({
556
556
  displayName: "StyledMediaBody",
557
557
  componentId: "sc-36j7ef-0"
@@ -574,7 +574,7 @@ _ref => {
574
574
  );
575
575
  }).attrs({
576
576
  'data-garden-id': COMPONENT_ID$8,
577
- 'data-garden-version': '8.74.3'
577
+ 'data-garden-version': '8.75.0'
578
578
  }).withConfig({
579
579
  displayName: "StyledMediaFigure",
580
580
  componentId: "sc-2f2x8x-0"
@@ -586,7 +586,7 @@ StyledMediaFigure.defaultProps = {
586
586
  const COMPONENT_ID$7 = 'dropdowns.media_item';
587
587
  const StyledMediaItem = styled__default.default(StyledItem).attrs({
588
588
  'data-garden-id': COMPONENT_ID$7,
589
- 'data-garden-version': '8.74.3'
589
+ 'data-garden-version': '8.75.0'
590
590
  }).withConfig({
591
591
  displayName: "StyledMediaItem",
592
592
  componentId: "sc-ikwshz-0"
@@ -598,7 +598,7 @@ StyledMediaItem.defaultProps = {
598
598
  const COMPONENT_ID$6 = 'dropdowns.faux_input';
599
599
  const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
600
600
  'data-garden-id': COMPONENT_ID$6,
601
- 'data-garden-version': '8.74.3',
601
+ 'data-garden-version': '8.75.0',
602
602
  mediaLayout: true,
603
603
  theme: props.theme
604
604
  })).withConfig({
@@ -613,7 +613,7 @@ const COMPONENT_ID$5 = 'dropdowns.input';
613
613
  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;"]);
614
614
  const StyledInput = styled__default.default(reactForms.Input).attrs({
615
615
  'data-garden-id': COMPONENT_ID$5,
616
- 'data-garden-version': '8.74.3',
616
+ 'data-garden-version': '8.75.0',
617
617
  isBare: true
618
618
  }).withConfig({
619
619
  displayName: "StyledInput",
@@ -626,7 +626,7 @@ StyledInput.defaultProps = {
626
626
  const COMPONENT_ID$4 = 'dropdowns.select';
627
627
  const StyledSelect = styled__default.default.div.attrs({
628
628
  'data-garden-id': COMPONENT_ID$4,
629
- 'data-garden-version': '8.74.3'
629
+ 'data-garden-version': '8.75.0'
630
630
  }).withConfig({
631
631
  displayName: "StyledSelect",
632
632
  componentId: "sc-xifmwj-0"
@@ -647,7 +647,7 @@ const visibleStyling = props => {
647
647
  };
648
648
  const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
649
649
  'data-garden-id': COMPONENT_ID$3,
650
- 'data-garden-version': '8.74.3',
650
+ 'data-garden-version': '8.75.0',
651
651
  isBare: true
652
652
  }).withConfig({
653
653
  displayName: "StyledMultiselectInput",
@@ -672,7 +672,7 @@ const sizeStyles = props => {
672
672
  };
673
673
  const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
674
674
  'data-garden-id': COMPONENT_ID$2,
675
- 'data-garden-version': '8.74.3'
675
+ 'data-garden-version': '8.75.0'
676
676
  }).withConfig({
677
677
  displayName: "StyledMultiselectItemsContainer",
678
678
  componentId: "sc-1jzhet8-0"
@@ -684,7 +684,7 @@ StyledMultiselectItemsContainer.defaultProps = {
684
684
  const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
685
685
  const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
686
686
  'data-garden-id': COMPONENT_ID$1,
687
- 'data-garden-version': '8.74.3'
687
+ 'data-garden-version': '8.75.0'
688
688
  }).withConfig({
689
689
  displayName: "StyledMultiselectItemWrapper",
690
690
  componentId: "sc-1rb2bye-0"
@@ -696,11 +696,11 @@ StyledMultiselectItemWrapper.defaultProps = {
696
696
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
697
697
  const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
698
698
  'data-garden-id': COMPONENT_ID,
699
- 'data-garden-version': '8.74.3'
699
+ 'data-garden-version': '8.75.0'
700
700
  }).withConfig({
701
701
  displayName: "StyledMultiselectMoreAnchor",
702
702
  componentId: "sc-1m9v46e-0"
703
- })(["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.getColor('neutralHue', 400, props.theme) : reactTheming.getColor('primaryHue', 600, props.theme), props => !props.isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
703
+ })(["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));
704
704
  StyledMultiselectMoreAnchor.defaultProps = {
705
705
  theme: reactTheming.DEFAULT_THEME
706
706
  };
package/dist/index.esm.js CHANGED
@@ -13,7 +13,7 @@ import Downshift from 'downshift';
13
13
  export { resetIdCounter } from 'downshift';
14
14
  import { Manager, Reference, Popper } from 'react-popper';
15
15
  import { composeEventHandlers, KEY_CODES } from '@zendeskgarden/container-utilities';
16
- import { arrowStyles, retrieveComponentStyles, DEFAULT_THEME, menuStyles, getColor, getLineHeight, useDocument } from '@zendeskgarden/react-theming';
16
+ import { arrowStyles, retrieveComponentStyles, DEFAULT_THEME, menuStyles, getColorV8, getLineHeight, useDocument } from '@zendeskgarden/react-theming';
17
17
  import { rgba, math } from 'polished';
18
18
  import { FauxInput, Input, VALIDATION, MediaInput, Field as Field$1, Hint as Hint$1, Label as Label$1, Message as Message$1 } from '@zendeskgarden/react-forms';
19
19
  import mergeRefs from 'react-merge-refs';
@@ -280,7 +280,7 @@ function getMenuPosition(popperPlacement) {
280
280
  const COMPONENT_ID$m = 'dropdowns.menu';
281
281
  const StyledMenu = styled.ul.attrs(props => ({
282
282
  'data-garden-id': COMPONENT_ID$m,
283
- 'data-garden-version': '8.74.3',
283
+ 'data-garden-version': '8.75.0',
284
284
  className: props.isAnimated && 'is-animated'
285
285
  })).withConfig({
286
286
  displayName: "StyledMenu",
@@ -297,7 +297,7 @@ StyledMenu.defaultProps = {
297
297
  const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
298
298
  const StyledMenuWrapper = styled.div.attrs(props => ({
299
299
  'data-garden-id': COMPONENT_ID$l,
300
- 'data-garden-version': '8.74.3',
300
+ 'data-garden-version': '8.75.0',
301
301
  className: props.isAnimated && 'is-animated'
302
302
  })).withConfig({
303
303
  displayName: "StyledMenuWrapper",
@@ -316,12 +316,12 @@ StyledMenuWrapper.defaultProps = {
316
316
  const COMPONENT_ID$k = 'dropdowns.separator';
317
317
  const StyledSeparator = styled.li.attrs({
318
318
  'data-garden-id': COMPONENT_ID$k,
319
- 'data-garden-version': '8.74.3',
319
+ 'data-garden-version': '8.75.0',
320
320
  role: 'separator'
321
321
  }).withConfig({
322
322
  displayName: "StyledSeparator",
323
323
  componentId: "sc-1mrnp18-0"
324
- })(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${getColor('neutralHue', 200, props.theme)}`, props => retrieveComponentStyles(COMPONENT_ID$k, props));
324
+ })(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${getColorV8('neutralHue', 200, props.theme)}`, props => retrieveComponentStyles(COMPONENT_ID$k, props));
325
325
  StyledSeparator.defaultProps = {
326
326
  theme: DEFAULT_THEME
327
327
  };
@@ -333,28 +333,28 @@ const getItemPaddingVertical = props => {
333
333
  }
334
334
  return `${props.theme.space.base * 2}px`;
335
335
  };
336
- const getColorStyles = props => {
336
+ const getColorV8Styles = props => {
337
337
  let foregroundColor;
338
338
  let backgroundColor;
339
339
  if (props.disabled) {
340
- foregroundColor = getColor('neutralHue', 400, props.theme);
340
+ foregroundColor = getColorV8('neutralHue', 400, props.theme);
341
341
  } else if (props.isDanger) {
342
- foregroundColor = getColor('dangerHue', 600, props.theme);
342
+ foregroundColor = getColorV8('dangerHue', 600, props.theme);
343
343
  backgroundColor = props.isFocused ? rgba(foregroundColor, 0.08) : 'inherit';
344
344
  } else {
345
- foregroundColor = props.theme.colors.foreground;
346
- backgroundColor = props.isFocused ? getColor('primaryHue', 600, props.theme, 0.08) : 'inherit';
345
+ foregroundColor = getColorV8('foreground', 600 , props.theme);
346
+ backgroundColor = props.isFocused ? getColorV8('primaryHue', 600, props.theme, 0.08) : 'inherit';
347
347
  }
348
348
  return css(["background-color:", ";color:", ";& a,& a:hover,& a:focus,& a:active{color:inherit;}"], backgroundColor, foregroundColor);
349
349
  };
350
350
  const StyledItem = styled.li.attrs(props => ({
351
351
  'data-garden-id': COMPONENT_ID$j,
352
- 'data-garden-version': '8.74.3',
352
+ 'data-garden-version': '8.75.0',
353
353
  'aria-disabled': props.disabled
354
354
  })).withConfig({
355
355
  displayName: "StyledItem",
356
356
  componentId: "sc-1xeog7q-0"
357
- })(["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 => retrieveComponentStyles(COMPONENT_ID$j, props));
357
+ })(["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 => getColorV8Styles(props), props => retrieveComponentStyles(COMPONENT_ID$j, props));
358
358
  StyledItem.defaultProps = {
359
359
  theme: DEFAULT_THEME
360
360
  };
@@ -362,11 +362,11 @@ StyledItem.defaultProps = {
362
362
  const COMPONENT_ID$i = 'dropdowns.add_item';
363
363
  const StyledAddItem = styled(StyledItem).attrs({
364
364
  'data-garden-id': COMPONENT_ID$i,
365
- 'data-garden-version': '8.74.3'
365
+ 'data-garden-version': '8.75.0'
366
366
  }).withConfig({
367
367
  displayName: "StyledAddItem",
368
368
  componentId: "sc-ekqk50-0"
369
- })(["color:", ";", ";"], props => !props.disabled && getColor('primaryHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$i, props));
369
+ })(["color:", ";", ";"], props => !props.disabled && getColorV8('primaryHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$i, props));
370
370
  StyledAddItem.defaultProps = {
371
371
  theme: DEFAULT_THEME
372
372
  };
@@ -374,11 +374,11 @@ StyledAddItem.defaultProps = {
374
374
  const COMPONENT_ID$h = 'dropdowns.item_meta';
375
375
  const StyledItemMeta = styled.span.attrs({
376
376
  'data-garden-id': COMPONENT_ID$h,
377
- 'data-garden-version': '8.74.3'
377
+ 'data-garden-version': '8.75.0'
378
378
  }).withConfig({
379
379
  displayName: "StyledItemMeta",
380
380
  componentId: "sc-k6xy28-0"
381
- })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => getColor('neutralHue', props.isDisabled ? 400 : 600, props.theme), props => props.theme.fontSizes.sm, props => retrieveComponentStyles(COMPONENT_ID$h, props));
381
+ })(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => getColorV8('neutralHue', props.isDisabled ? 400 : 600, props.theme), props => props.theme.fontSizes.sm, props => retrieveComponentStyles(COMPONENT_ID$h, props));
382
382
  StyledItemMeta.defaultProps = {
383
383
  theme: DEFAULT_THEME
384
384
  };
@@ -389,11 +389,11 @@ const getSizeStyles = props => {
389
389
  };
390
390
  const StyledItemIcon = styled.div.attrs({
391
391
  'data-garden-id': COMPONENT_ID$g,
392
- 'data-garden-version': '8.74.3'
392
+ 'data-garden-version': '8.75.0'
393
393
  }).withConfig({
394
394
  displayName: "StyledItemIcon",
395
395
  componentId: "sc-1v0ty11-0"
396
- })(["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' : getColor('primaryHue', 600, props.theme), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
396
+ })(["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' : getColorV8('primaryHue', 600, props.theme), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
397
397
  StyledItemIcon.defaultProps = {
398
398
  theme: DEFAULT_THEME
399
399
  };
@@ -401,7 +401,7 @@ StyledItemIcon.defaultProps = {
401
401
  const COMPONENT_ID$f = 'dropdowns.next_item';
402
402
  const StyledNextItem = styled(StyledItem).attrs({
403
403
  'data-garden-id': COMPONENT_ID$f,
404
- 'data-garden-version': '8.74.3'
404
+ 'data-garden-version': '8.75.0'
405
405
  }).withConfig({
406
406
  displayName: "StyledNextItem",
407
407
  componentId: "sc-1bcygn5-0"
@@ -433,14 +433,14 @@ const NextIconComponent = _ref => {
433
433
  } = _ref;
434
434
  return React__default.createElement(SvgChevronRightStroke, {
435
435
  "data-garden-id": COMPONENT_ID$e,
436
- "data-garden-version": '8.74.3',
436
+ "data-garden-version": '8.75.0',
437
437
  className: className
438
438
  });
439
439
  };
440
440
  const StyledNextIcon = styled(NextIconComponent).withConfig({
441
441
  displayName: "StyledNextIcon",
442
442
  componentId: "sc-1rinki2-0"
443
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColor('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$e, props));
443
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColorV8('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$e, props));
444
444
  StyledNextIcon.defaultProps = {
445
445
  theme: DEFAULT_THEME
446
446
  };
@@ -448,7 +448,7 @@ StyledNextIcon.defaultProps = {
448
448
  const COMPONENT_ID$d = 'dropdowns.previous_item';
449
449
  const StyledPreviousItem = styled(StyledItem).attrs({
450
450
  'data-garden-id': COMPONENT_ID$d,
451
- 'data-garden-version': '8.74.3'
451
+ 'data-garden-version': '8.75.0'
452
452
  }).withConfig({
453
453
  displayName: "StyledPreviousItem",
454
454
  componentId: "sc-1nmdds9-0"
@@ -480,14 +480,14 @@ const PreviousIconComponent = _ref => {
480
480
  } = _ref;
481
481
  return React__default.createElement(SvgChevronLeftStroke, {
482
482
  "data-garden-id": COMPONENT_ID$c,
483
- "data-garden-version": '8.74.3',
483
+ "data-garden-version": '8.75.0',
484
484
  className: className
485
485
  });
486
486
  };
487
487
  const StyledPreviousIcon = styled(PreviousIconComponent).withConfig({
488
488
  displayName: "StyledPreviousIcon",
489
489
  componentId: "sc-czfwj7-0"
490
- })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColor('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$c, props));
490
+ })(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColorV8('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID$c, props));
491
491
  StyledPreviousIcon.defaultProps = {
492
492
  theme: DEFAULT_THEME
493
493
  };
@@ -495,11 +495,11 @@ StyledPreviousIcon.defaultProps = {
495
495
  const COMPONENT_ID$b = 'dropdowns.header_icon';
496
496
  const StyledHeaderIcon = styled.div.attrs({
497
497
  'data-garden-id': COMPONENT_ID$b,
498
- 'data-garden-version': '8.74.3'
498
+ 'data-garden-version': '8.75.0'
499
499
  }).withConfig({
500
500
  displayName: "StyledHeaderIcon",
501
501
  componentId: "sc-1fl6nsz-0"
502
- })(["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 => getColor('neutralHue', 600, props.theme), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$b, props));
502
+ })(["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 => getColorV8('neutralHue', 600, props.theme), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID$b, props));
503
503
  StyledHeaderIcon.defaultProps = {
504
504
  theme: DEFAULT_THEME
505
505
  };
@@ -513,7 +513,7 @@ const getHorizontalPadding = props => {
513
513
  };
514
514
  const StyledHeaderItem = styled(StyledItem).attrs({
515
515
  'data-garden-id': COMPONENT_ID$a,
516
- 'data-garden-version': '8.74.3'
516
+ 'data-garden-version': '8.75.0'
517
517
  }).withConfig({
518
518
  displayName: "StyledHeaderItem",
519
519
  componentId: "sc-137filx-0"
@@ -525,7 +525,7 @@ StyledHeaderItem.defaultProps = {
525
525
  const COMPONENT_ID$9 = 'dropdowns.media_body';
526
526
  const StyledMediaBody = styled.div.attrs({
527
527
  'data-garden-id': COMPONENT_ID$9,
528
- 'data-garden-version': '8.74.3'
528
+ 'data-garden-version': '8.75.0'
529
529
  }).withConfig({
530
530
  displayName: "StyledMediaBody",
531
531
  componentId: "sc-36j7ef-0"
@@ -548,7 +548,7 @@ _ref => {
548
548
  );
549
549
  }).attrs({
550
550
  'data-garden-id': COMPONENT_ID$8,
551
- 'data-garden-version': '8.74.3'
551
+ 'data-garden-version': '8.75.0'
552
552
  }).withConfig({
553
553
  displayName: "StyledMediaFigure",
554
554
  componentId: "sc-2f2x8x-0"
@@ -560,7 +560,7 @@ StyledMediaFigure.defaultProps = {
560
560
  const COMPONENT_ID$7 = 'dropdowns.media_item';
561
561
  const StyledMediaItem = styled(StyledItem).attrs({
562
562
  'data-garden-id': COMPONENT_ID$7,
563
- 'data-garden-version': '8.74.3'
563
+ 'data-garden-version': '8.75.0'
564
564
  }).withConfig({
565
565
  displayName: "StyledMediaItem",
566
566
  componentId: "sc-ikwshz-0"
@@ -572,7 +572,7 @@ StyledMediaItem.defaultProps = {
572
572
  const COMPONENT_ID$6 = 'dropdowns.faux_input';
573
573
  const StyledFauxInput = styled(FauxInput).attrs(props => ({
574
574
  'data-garden-id': COMPONENT_ID$6,
575
- 'data-garden-version': '8.74.3',
575
+ 'data-garden-version': '8.75.0',
576
576
  mediaLayout: true,
577
577
  theme: props.theme
578
578
  })).withConfig({
@@ -587,7 +587,7 @@ const COMPONENT_ID$5 = 'dropdowns.input';
587
587
  const hiddenStyling = css(["position:fixed;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
588
588
  const StyledInput = styled(Input).attrs({
589
589
  'data-garden-id': COMPONENT_ID$5,
590
- 'data-garden-version': '8.74.3',
590
+ 'data-garden-version': '8.75.0',
591
591
  isBare: true
592
592
  }).withConfig({
593
593
  displayName: "StyledInput",
@@ -600,7 +600,7 @@ StyledInput.defaultProps = {
600
600
  const COMPONENT_ID$4 = 'dropdowns.select';
601
601
  const StyledSelect = styled.div.attrs({
602
602
  'data-garden-id': COMPONENT_ID$4,
603
- 'data-garden-version': '8.74.3'
603
+ 'data-garden-version': '8.75.0'
604
604
  }).withConfig({
605
605
  displayName: "StyledSelect",
606
606
  componentId: "sc-xifmwj-0"
@@ -621,7 +621,7 @@ const visibleStyling = props => {
621
621
  };
622
622
  const StyledMultiselectInput = styled(StyledInput).attrs({
623
623
  'data-garden-id': COMPONENT_ID$3,
624
- 'data-garden-version': '8.74.3',
624
+ 'data-garden-version': '8.75.0',
625
625
  isBare: true
626
626
  }).withConfig({
627
627
  displayName: "StyledMultiselectInput",
@@ -646,7 +646,7 @@ const sizeStyles = props => {
646
646
  };
647
647
  const StyledMultiselectItemsContainer = styled.div.attrs({
648
648
  'data-garden-id': COMPONENT_ID$2,
649
- 'data-garden-version': '8.74.3'
649
+ 'data-garden-version': '8.75.0'
650
650
  }).withConfig({
651
651
  displayName: "StyledMultiselectItemsContainer",
652
652
  componentId: "sc-1jzhet8-0"
@@ -658,7 +658,7 @@ StyledMultiselectItemsContainer.defaultProps = {
658
658
  const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
659
659
  const StyledMultiselectItemWrapper = styled.div.attrs({
660
660
  'data-garden-id': COMPONENT_ID$1,
661
- 'data-garden-version': '8.74.3'
661
+ 'data-garden-version': '8.75.0'
662
662
  }).withConfig({
663
663
  displayName: "StyledMultiselectItemWrapper",
664
664
  componentId: "sc-1rb2bye-0"
@@ -670,11 +670,11 @@ StyledMultiselectItemWrapper.defaultProps = {
670
670
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
671
671
  const StyledMultiselectMoreAnchor = styled.div.attrs({
672
672
  'data-garden-id': COMPONENT_ID,
673
- 'data-garden-version': '8.74.3'
673
+ 'data-garden-version': '8.75.0'
674
674
  }).withConfig({
675
675
  displayName: "StyledMultiselectMoreAnchor",
676
676
  componentId: "sc-1m9v46e-0"
677
- })(["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' : getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isDisabled ? getColor('neutralHue', 400, props.theme) : getColor('primaryHue', 600, props.theme), props => !props.isDisabled && 'underline', props => retrieveComponentStyles(COMPONENT_ID, props));
677
+ })(["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' : getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isDisabled ? getColorV8('neutralHue', 400, props.theme) : getColorV8('primaryHue', 600, props.theme), props => !props.isDisabled && 'underline', props => retrieveComponentStyles(COMPONENT_ID, props));
678
678
  StyledMultiselectMoreAnchor.defaultProps = {
679
679
  theme: DEFAULT_THEME
680
680
  };
@@ -74,7 +74,7 @@ export declare const StyledMediaFigure: import("styled-components").StyledCompon
74
74
  "aria-colindextext"?: string | undefined;
75
75
  "aria-colspan"?: number | undefined;
76
76
  "aria-controls"?: string | undefined;
77
- "aria-current"?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
77
+ "aria-current"?: boolean | "time" | "step" | "true" | "false" | "date" | "page" | "location" | undefined;
78
78
  "aria-describedby"?: string | undefined;
79
79
  "aria-description"?: string | undefined;
80
80
  "aria-details"?: string | undefined;
@@ -257,9 +257,7 @@ export declare const StyledMediaFigure: import("styled-components").StyledCompon
257
257
  onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
258
258
  onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
259
259
  onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
260
- onPointerEnterCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
261
260
  onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
262
- onPointerLeaveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
263
261
  onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
264
262
  onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
265
263
  onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-dropdowns",
3
- "version": "8.74.3",
3
+ "version": "8.75.0",
4
4
  "description": "Components relating to dropdowns in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@zendeskgarden/container-selection": "^2.0.0",
25
25
  "@zendeskgarden/container-utilities": "^1.0.14",
26
- "@zendeskgarden/react-forms": "^8.74.3",
26
+ "@zendeskgarden/react-forms": "^8.75.0",
27
27
  "downshift": "^7.0.0",
28
28
  "polished": "^4.0.0",
29
29
  "prop-types": "^15.5.7",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/lodash.debounce": "4.0.9",
41
- "@zendeskgarden/react-theming": "^8.74.3",
41
+ "@zendeskgarden/react-theming": "^8.75.0",
42
42
  "@zendeskgarden/svg-icons": "7.0.0",
43
43
  "lodash.debounce": "4.0.8"
44
44
  },
@@ -52,5 +52,5 @@
52
52
  "access": "public"
53
53
  },
54
54
  "zendeskgarden:src": "src/index.ts",
55
- "gitHead": "2ae5e421f4bad609f443d6b227e00b6d8e77a06d"
55
+ "gitHead": "56a54793a611efc223b8e36262d428365613c853"
56
56
  }