@zendeskgarden/react-dropdowns.legacy 9.0.0-next.9 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/esm/elements/Autocomplete/Autocomplete.js +1 -1
  2. package/dist/esm/elements/Menu/Items/Item.js +2 -2
  3. package/dist/esm/elements/Menu/Menu.js +2 -2
  4. package/dist/esm/elements/Multiselect/Multiselect.js +1 -1
  5. package/dist/esm/elements/Select/Select.js +1 -1
  6. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +1 -1
  7. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
  8. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
  9. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
  10. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +1 -1
  11. package/dist/esm/styled/items/StyledAddItem.js +6 -6
  12. package/dist/esm/styled/items/StyledItem.js +19 -12
  13. package/dist/esm/styled/items/StyledItemIcon.js +6 -6
  14. package/dist/esm/styled/items/StyledItemMeta.js +6 -6
  15. package/dist/esm/styled/items/StyledNextIcon.js +6 -6
  16. package/dist/esm/styled/items/StyledNextItem.js +2 -5
  17. package/dist/esm/styled/items/StyledPreviousIcon.js +6 -6
  18. package/dist/esm/styled/items/StyledPreviousItem.js +2 -5
  19. package/dist/esm/styled/items/header/StyledHeaderIcon.js +6 -6
  20. package/dist/esm/styled/items/header/StyledHeaderItem.js +2 -5
  21. package/dist/esm/styled/items/media/StyledMediaBody.js +2 -5
  22. package/dist/esm/styled/items/media/StyledMediaFigure.js +2 -5
  23. package/dist/esm/styled/items/media/StyledMediaItem.js +2 -5
  24. package/dist/esm/styled/menu/StyledMenu.js +4 -7
  25. package/dist/esm/styled/menu/StyledMenuWrapper.js +2 -5
  26. package/dist/esm/styled/menu/StyledSeparator.js +6 -6
  27. package/dist/esm/styled/multiselect/StyledMultiselectInput.js +2 -5
  28. package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +2 -5
  29. package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +2 -5
  30. package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +6 -6
  31. package/dist/esm/styled/select/StyledFauxInput.js +2 -5
  32. package/dist/esm/styled/select/StyledInput.js +2 -5
  33. package/dist/esm/styled/select/StyledSelect.js +2 -5
  34. package/dist/index.cjs.js +86 -120
  35. package/dist/typings/styled/items/media/StyledMediaFigure.d.ts +9 -10
  36. package/dist/typings/styled/multiselect/StyledMultiselectInput.d.ts +0 -1
  37. package/dist/typings/styled/select/StyledFauxInput.d.ts +2 -9
  38. package/dist/typings/styled/select/StyledInput.d.ts +0 -1
  39. package/dist/typings/utils/garden-placements.d.ts +2 -1
  40. package/package.json +8 -9
  41. package/LICENSE.md +0 -176
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'dropdowns.multiselect_items_container';
11
11
  const sizeStyles = props => {
@@ -22,13 +22,10 @@ const sizeStyles = props => {
22
22
  };
23
23
  const StyledMultiselectItemsContainer = styled.div.attrs({
24
24
  'data-garden-id': COMPONENT_ID,
25
- 'data-garden-version': '9.0.0-next.9'
25
+ 'data-garden-version': '9.0.0'
26
26
  }).withConfig({
27
27
  displayName: "StyledMultiselectItemsContainer",
28
28
  componentId: "sc-1dxwjyz-0"
29
29
  })(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
30
- StyledMultiselectItemsContainer.defaultProps = {
31
- theme: DEFAULT_THEME
32
- };
33
30
 
34
31
  export { StyledMultiselectItemsContainer };
@@ -5,18 +5,18 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { getLineHeight, getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { getLineHeight, getColor, retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
11
11
  const StyledMultiselectMoreAnchor = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.9'
13
+ 'data-garden-version': '9.0.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledMultiselectMoreAnchor",
16
16
  componentId: "sc-pkakky-0"
17
- })(["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));
18
- StyledMultiselectMoreAnchor.defaultProps = {
19
- theme: DEFAULT_THEME
20
- };
17
+ })(["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 => getColor({
18
+ theme: props.theme,
19
+ variable: props.isDisabled ? 'foreground.disabled' : 'foreground.primary'
20
+ }), props => !props.isDisabled && 'underline', props => retrieveComponentStyles(COMPONENT_ID, props));
21
21
 
22
22
  export { StyledMultiselectMoreAnchor };
@@ -5,21 +5,18 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
  import { FauxInput } from '@zendeskgarden/react-forms';
10
10
 
11
11
  const COMPONENT_ID = 'dropdowns.faux_input';
12
12
  const StyledFauxInput = styled(FauxInput).attrs(props => ({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.0.0-next.9',
14
+ 'data-garden-version': '9.0.0',
15
15
  mediaLayout: true,
16
16
  theme: props.theme
17
17
  })).withConfig({
18
18
  displayName: "StyledFauxInput",
19
19
  componentId: "sc-bk8odf-0"
20
20
  })(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36), props => retrieveComponentStyles(COMPONENT_ID, props));
21
- StyledFauxInput.defaultProps = {
22
- theme: DEFAULT_THEME
23
- };
24
21
 
25
22
  export { StyledFauxInput };
@@ -6,20 +6,17 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { Input } from '@zendeskgarden/react-forms';
9
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
11
  const COMPONENT_ID = 'dropdowns.input';
12
12
  const hiddenStyling = css(["position:fixed;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
13
13
  const StyledInput = styled(Input).attrs({
14
14
  'data-garden-id': COMPONENT_ID,
15
- 'data-garden-version': '9.0.0-next.9',
15
+ 'data-garden-version': '9.0.0',
16
16
  isBare: true
17
17
  }).withConfig({
18
18
  displayName: "StyledInput",
19
19
  componentId: "sc-kykaw8-0"
20
20
  })(["", ";", ";"], props => props.isHidden && hiddenStyling, props => retrieveComponentStyles(COMPONENT_ID, props));
21
- StyledInput.defaultProps = {
22
- theme: DEFAULT_THEME
23
- };
24
21
 
25
22
  export { StyledInput };
@@ -5,18 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
8
+ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'dropdowns.select';
11
11
  const StyledSelect = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.9'
13
+ 'data-garden-version': '9.0.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledSelect",
16
16
  componentId: "sc-xf4qjv-0"
17
17
  })(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
- StyledSelect.defaultProps = {
19
- theme: DEFAULT_THEME
20
- };
21
18
 
22
19
  export { StyledSelect };
package/dist/index.cjs.js CHANGED
@@ -289,24 +289,21 @@ 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',
292
+ 'data-garden-version': '9.0.0',
293
293
  className: props.isAnimated && 'is-animated'
294
294
  })).withConfig({
295
295
  displayName: "StyledMenu",
296
296
  componentId: "sc-lzt5u6-0"
297
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',
298
+ size: `${props.theme.space.base * 1.5}px`,
299
+ inset: '1px',
300
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',
306
+ 'data-garden-version': '9.0.0',
310
307
  className: props.isAnimated && 'is-animated'
311
308
  })).withConfig({
312
309
  displayName: "StyledMenuWrapper",
@@ -318,22 +315,19 @@ const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
318
315
  zIndex: props.zIndex,
319
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.0.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 => {
@@ -343,54 +337,62 @@ const getItemPaddingVertical = props => {
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);
347
+ foregroundColor = reactTheming.getColor({
348
+ theme: props.theme,
349
+ variable: 'foreground.disabled'
350
+ });
350
351
  } else if (props.isDanger) {
351
- foregroundColor = reactTheming.getColorV8('dangerHue', 600, props.theme);
352
- backgroundColor = props.isFocused ? polished.rgba(foregroundColor, 0.08) : 'inherit';
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.0.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.0.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.0.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.0.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.0.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.0.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.0.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,29 +485,29 @@ 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.0.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.0.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 => {
@@ -522,26 +518,20 @@ const getHorizontalPadding = props => {
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.0.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.0.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(
@@ -557,66 +547,51 @@ _ref => {
557
547
  );
558
548
  }).attrs({
559
549
  'data-garden-id': COMPONENT_ID$8,
560
- 'data-garden-version': '9.0.0-next.9'
550
+ 'data-garden-version': '9.0.0'
561
551
  }).withConfig({
562
552
  displayName: "StyledMediaFigure",
563
553
  componentId: "sc-16vz3xj-0"
564
554
  })(["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
555
 
569
556
  const COMPONENT_ID$7 = 'dropdowns.media_item';
570
557
  const StyledMediaItem = styled__default.default(StyledItem).attrs({
571
558
  'data-garden-id': COMPONENT_ID$7,
572
- 'data-garden-version': '9.0.0-next.9'
559
+ 'data-garden-version': '9.0.0'
573
560
  }).withConfig({
574
561
  displayName: "StyledMediaItem",
575
562
  componentId: "sc-af4509-0"
576
563
  })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
577
- StyledMediaItem.defaultProps = {
578
- theme: reactTheming.DEFAULT_THEME
579
- };
580
564
 
581
565
  const COMPONENT_ID$6 = 'dropdowns.faux_input';
582
566
  const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
583
567
  'data-garden-id': COMPONENT_ID$6,
584
- 'data-garden-version': '9.0.0-next.9',
568
+ 'data-garden-version': '9.0.0',
585
569
  mediaLayout: true,
586
570
  theme: props.theme
587
571
  })).withConfig({
588
572
  displayName: "StyledFauxInput",
589
573
  componentId: "sc-bk8odf-0"
590
574
  })(["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
575
 
595
576
  const COMPONENT_ID$5 = 'dropdowns.input';
596
577
  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
578
  const StyledInput = styled__default.default(reactForms.Input).attrs({
598
579
  'data-garden-id': COMPONENT_ID$5,
599
- 'data-garden-version': '9.0.0-next.9',
580
+ 'data-garden-version': '9.0.0',
600
581
  isBare: true
601
582
  }).withConfig({
602
583
  displayName: "StyledInput",
603
584
  componentId: "sc-kykaw8-0"
604
585
  })(["", ";", ";"], props => props.isHidden && hiddenStyling, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
605
- StyledInput.defaultProps = {
606
- theme: reactTheming.DEFAULT_THEME
607
- };
608
586
 
609
587
  const COMPONENT_ID$4 = 'dropdowns.select';
610
588
  const StyledSelect = styled__default.default.div.attrs({
611
589
  'data-garden-id': COMPONENT_ID$4,
612
- 'data-garden-version': '9.0.0-next.9'
590
+ 'data-garden-version': '9.0.0'
613
591
  }).withConfig({
614
592
  displayName: "StyledSelect",
615
593
  componentId: "sc-xf4qjv-0"
616
594
  })(["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
595
 
621
596
  const COMPONENT_ID$3 = 'dropdowns.multiselect_input';
622
597
  const visibleStyling = props => {
@@ -630,15 +605,12 @@ const visibleStyling = props => {
630
605
  };
631
606
  const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
632
607
  'data-garden-id': COMPONENT_ID$3,
633
- 'data-garden-version': '9.0.0-next.9',
608
+ 'data-garden-version': '9.0.0',
634
609
  isBare: true
635
610
  }).withConfig({
636
611
  displayName: "StyledMultiselectInput",
637
612
  componentId: "sc-iiow29-0"
638
613
  })(["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
614
 
643
615
  const COMPONENT_ID$2 = 'dropdowns.multiselect_items_container';
644
616
  const sizeStyles = props => {
@@ -655,38 +627,32 @@ const sizeStyles = props => {
655
627
  };
656
628
  const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
657
629
  'data-garden-id': COMPONENT_ID$2,
658
- 'data-garden-version': '9.0.0-next.9'
630
+ 'data-garden-version': '9.0.0'
659
631
  }).withConfig({
660
632
  displayName: "StyledMultiselectItemsContainer",
661
633
  componentId: "sc-1dxwjyz-0"
662
634
  })(["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
635
 
667
636
  const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
668
637
  const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
669
638
  'data-garden-id': COMPONENT_ID$1,
670
- 'data-garden-version': '9.0.0-next.9'
639
+ 'data-garden-version': '9.0.0'
671
640
  }).withConfig({
672
641
  displayName: "StyledMultiselectItemWrapper",
673
642
  componentId: "sc-vgr7nd-0"
674
643
  })(["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
644
 
679
645
  const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
680
646
  const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
681
647
  'data-garden-id': COMPONENT_ID,
682
- 'data-garden-version': '9.0.0-next.9'
648
+ 'data-garden-version': '9.0.0'
683
649
  }).withConfig({
684
650
  displayName: "StyledMultiselectMoreAnchor",
685
651
  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
- };
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({
653
+ theme: props.theme,
654
+ variable: props.isDisabled ? 'foreground.disabled' : 'foreground.primary'
655
+ }), props => !props.isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
690
656
 
691
657
  const Trigger = _ref => {
692
658
  let {
@@ -838,7 +804,7 @@ Trigger.defaultProps = {
838
804
  };
839
805
 
840
806
  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); }
807
+ 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
808
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
843
809
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
844
810
  xmlns: "http://www.w3.org/2000/svg",
@@ -929,7 +895,7 @@ const Autocomplete = React.forwardRef((_ref, ref) => {
929
895
  reactMergeRefs.mergeRefs([triggerRef, ref])(selectRef);
930
896
  popperReferenceElementRef.current = selectRef;
931
897
  }
932
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
898
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
933
899
  isHovered: isHovered || isLabelHovered && !isOpen,
934
900
  isFocused: isContainerFocused,
935
901
  isDisabled: props.disabled
@@ -1269,7 +1235,7 @@ const Multiselect = React__namespace.default.forwardRef((_ref, ref) => {
1269
1235
  popperReference(selectRef);
1270
1236
  reactMergeRefs.mergeRefs([triggerRef, popperReferenceElementRef, ref])(selectRef);
1271
1237
  }
1272
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1238
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1273
1239
  isHovered: isHovered || isLabelHovered && !isOpen,
1274
1240
  isFocused: isContainerFocused,
1275
1241
  isDisabled: props.disabled
@@ -1451,7 +1417,7 @@ const Select = React__namespace.default.forwardRef((_ref, ref) => {
1451
1417
  popperReference(selectRef);
1452
1418
  reactMergeRefs.mergeRefs([triggerRef, ref, popperReferenceElementRef])(selectRef);
1453
1419
  }
1454
- }), start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1420
+ }), !!start && React__namespace.default.createElement(StyledFauxInput.StartIcon, {
1455
1421
  isHovered: isHovered || isLabelHovered && !isOpen,
1456
1422
  isFocused: isContainerFocused,
1457
1423
  isDisabled: props.disabled
@@ -1624,7 +1590,7 @@ const Menu = React.forwardRef((props, menuRef) => {
1624
1590
  placement: popperPlacement,
1625
1591
  modifiers: popperModifiers
1626
1592
  ,
1627
- eventsEnabled: isOpen && eventsEnabled
1593
+ eventsEnabled: !!(isOpen && eventsEnabled)
1628
1594
  }, _ref => {
1629
1595
  let {
1630
1596
  ref,
@@ -1659,7 +1625,7 @@ const Menu = React.forwardRef((props, menuRef) => {
1659
1625
  isCompact: isCompact,
1660
1626
  maxHeight: maxHeight,
1661
1627
  style: computedStyle
1662
- }, menuProps), (isOpen || isVisible) && children));
1628
+ }, menuProps), !!(isOpen || isVisible) && children));
1663
1629
  return appendToNode ? reactDom.createPortal(menu, appendToNode) : menu;
1664
1630
  }))
1665
1631
  );
@@ -1690,7 +1656,7 @@ const Separator = React__namespace.default.forwardRef((props, ref) => React__nam
1690
1656
  Separator.displayName = 'Separator';
1691
1657
 
1692
1658
  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); }
1659
+ 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
1660
  var SvgPlusStroke = function SvgPlusStroke(props) {
1695
1661
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
1696
1662
  xmlns: "http://www.w3.org/2000/svg",
@@ -1707,7 +1673,7 @@ var SvgPlusStroke = function SvgPlusStroke(props) {
1707
1673
  };
1708
1674
 
1709
1675
  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); }
1676
+ 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
1677
  var SvgCheckLgStroke = function SvgCheckLgStroke(props) {
1712
1678
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1713
1679
  xmlns: "http://www.w3.org/2000/svg",
@@ -1805,7 +1771,7 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1805
1771
  disabled: disabled,
1806
1772
  isDanger: isDanger,
1807
1773
  isCompact: isCompact
1808
- }, props), isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1774
+ }, props), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1809
1775
  isCompact: isCompact,
1810
1776
  isVisible: isSelected,
1811
1777
  isDisabled: disabled
@@ -1825,7 +1791,7 @@ const Item = React__namespace.default.forwardRef((_ref, forwardRef) => {
1825
1791
  'aria-selected': null
1826
1792
  }),
1827
1793
  ...props
1828
- }), isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1794
+ }), !!isSelected && !hasIcon && React__namespace.default.createElement(StyledItemIcon, {
1829
1795
  isCompact: isCompact,
1830
1796
  isVisible: isSelected
1831
1797
  }, React__namespace.default.createElement(SvgCheckLgStroke, null)), children));