@bigbinary/neeto-molecules 3.6.3 → 3.7.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 (203) hide show
  1. package/dist/BrowserSupport.js +2 -2
  2. package/dist/BrowserSupport.js.map +1 -1
  3. package/dist/Builder.js.map +1 -1
  4. package/dist/CalendarView.js.map +1 -1
  5. package/dist/{Chevron-10919a09.js → Chevron-a5e99340.js} +5 -5
  6. package/dist/{Chevron-10919a09.js.map → Chevron-a5e99340.js.map} +1 -1
  7. package/dist/ConfigurePageSidebar.js +1 -1
  8. package/dist/ConfigurePageSidebar.js.map +1 -1
  9. package/dist/Container.js +4 -3
  10. package/dist/Container.js.map +1 -1
  11. package/dist/CopyToClipboardButton.js +0 -1
  12. package/dist/CopyToClipboardButton.js.map +1 -1
  13. package/dist/CustomDomain.js +1 -1
  14. package/dist/CustomDomain.js.map +1 -1
  15. package/dist/CustomDomainDashboard.js +3 -2
  16. package/dist/CustomDomainDashboard.js.map +1 -1
  17. package/dist/DateRangeFilter.js.map +1 -1
  18. package/dist/DeleteArchiveModal.js.map +1 -1
  19. package/dist/DeviceIncompatibilityMessage.js +23 -24
  20. package/dist/DeviceIncompatibilityMessage.js.map +1 -1
  21. package/dist/DocumentEditor.js.map +1 -1
  22. package/dist/DownloadMobileAppCallout.js +2 -2
  23. package/dist/DynamicVariables.js.map +1 -1
  24. package/dist/EmailForm.js +2 -2
  25. package/dist/EmailForm.js.map +1 -1
  26. package/dist/EmailPreview.js +9 -8
  27. package/dist/EmailPreview.js.map +1 -1
  28. package/dist/EmojiPicker.js.map +1 -1
  29. package/dist/EmojiReactions.js.map +1 -1
  30. package/dist/ErrorPage.js +21 -21
  31. package/dist/ErrorPage.js.map +1 -1
  32. package/dist/FileUpload.js +1 -1
  33. package/dist/FileUpload.js.map +1 -1
  34. package/dist/FloatingActionMenu.js +2 -2
  35. package/dist/FloatingActionMenu.js.map +1 -1
  36. package/dist/HelpPopover.js.map +1 -1
  37. package/dist/IconPicker.js.map +1 -1
  38. package/dist/InlineInput.js +1 -1
  39. package/dist/InlineInput.js.map +1 -1
  40. package/dist/IntegrationCard.js.map +1 -1
  41. package/dist/IpRestriction.js +2 -2
  42. package/dist/IpRestriction.js.map +1 -1
  43. package/dist/KeyboardShortcuts.js +2 -2
  44. package/dist/KeyboardShortcuts.js.map +1 -1
  45. package/dist/LoginPage.js +2 -2
  46. package/dist/LoginPage.js.map +1 -1
  47. package/dist/MenuBar.js +52 -750
  48. package/dist/MenuBar.js.map +1 -1
  49. package/dist/Metadata.js.map +1 -1
  50. package/dist/NavigationHeader.js.map +1 -1
  51. package/dist/NeetoWidget.js +9 -6
  52. package/dist/NeetoWidget.js.map +1 -1
  53. package/dist/Onboarding.js +1 -1
  54. package/dist/Onboarding.js.map +1 -1
  55. package/dist/OptionFields.js +3 -3
  56. package/dist/OptionFields.js.map +1 -1
  57. package/dist/PageLoader.js +1 -1
  58. package/dist/PhoneNumber.js +3 -3
  59. package/dist/ProductEmbed.js.map +1 -1
  60. package/dist/PublishBlock.js +1 -1
  61. package/dist/PublishBlock.js.map +1 -1
  62. package/dist/PublishYourItem.js +4 -3
  63. package/dist/PublishYourItem.js.map +1 -1
  64. package/dist/Rename.js.map +1 -1
  65. package/dist/ResponsiveDevicePicker.js.map +1 -1
  66. package/dist/Schedule.js +4 -5
  67. package/dist/Schedule.js.map +1 -1
  68. package/dist/SendToFields.js +6 -4
  69. package/dist/SendToFields.js.map +1 -1
  70. package/dist/SessionEnvironment.js +2 -2
  71. package/dist/SessionEnvironment.js.map +1 -1
  72. package/dist/ShareRecordingPane.js.map +1 -1
  73. package/dist/ShareViaEmail.js +2 -2
  74. package/dist/ShareViaEmail.js.map +1 -1
  75. package/dist/ShareViaLink.js.map +1 -1
  76. package/dist/Sidebar.js +2 -2
  77. package/dist/Sidebar.js.map +1 -1
  78. package/dist/StatusDropdown.js.map +1 -1
  79. package/dist/StickyRibbonsContainer.js.map +1 -1
  80. package/dist/SubHeader.js.map +1 -1
  81. package/dist/SuffixedInput.js +0 -1
  82. package/dist/SuffixedInput.js.map +1 -1
  83. package/dist/Taxonomy.js +2 -1
  84. package/dist/Taxonomy.js.map +1 -1
  85. package/dist/TimezoneMismatchModal.js.map +1 -1
  86. package/dist/ToggleFeatureCard.js.map +1 -1
  87. package/dist/_commonjsHelpers-1789f0cf.js +8 -0
  88. package/dist/_commonjsHelpers-1789f0cf.js.map +1 -0
  89. package/dist/cjs/BrowserSupport.js +2 -2
  90. package/dist/cjs/BrowserSupport.js.map +1 -1
  91. package/dist/cjs/Builder.js.map +1 -1
  92. package/dist/cjs/CalendarView.js.map +1 -1
  93. package/dist/cjs/{Chevron-983364d7.js → Chevron-bb98447f.js} +5 -5
  94. package/dist/cjs/{Chevron-983364d7.js.map → Chevron-bb98447f.js.map} +1 -1
  95. package/dist/cjs/ConfigurePageSidebar.js +1 -1
  96. package/dist/cjs/ConfigurePageSidebar.js.map +1 -1
  97. package/dist/cjs/Container.js +4 -3
  98. package/dist/cjs/Container.js.map +1 -1
  99. package/dist/cjs/CopyToClipboardButton.js +0 -1
  100. package/dist/cjs/CopyToClipboardButton.js.map +1 -1
  101. package/dist/cjs/CustomDomain.js +1 -1
  102. package/dist/cjs/CustomDomain.js.map +1 -1
  103. package/dist/cjs/CustomDomainDashboard.js +3 -2
  104. package/dist/cjs/CustomDomainDashboard.js.map +1 -1
  105. package/dist/cjs/DateRangeFilter.js.map +1 -1
  106. package/dist/cjs/DeleteArchiveModal.js.map +1 -1
  107. package/dist/cjs/DeviceIncompatibilityMessage.js +23 -24
  108. package/dist/cjs/DeviceIncompatibilityMessage.js.map +1 -1
  109. package/dist/cjs/DocumentEditor.js.map +1 -1
  110. package/dist/cjs/DownloadMobileAppCallout.js +2 -2
  111. package/dist/cjs/DynamicVariables.js.map +1 -1
  112. package/dist/cjs/EmailForm.js +2 -2
  113. package/dist/cjs/EmailForm.js.map +1 -1
  114. package/dist/cjs/EmailPreview.js +9 -8
  115. package/dist/cjs/EmailPreview.js.map +1 -1
  116. package/dist/cjs/EmojiPicker.js.map +1 -1
  117. package/dist/cjs/EmojiReactions.js.map +1 -1
  118. package/dist/cjs/ErrorPage.js +21 -21
  119. package/dist/cjs/ErrorPage.js.map +1 -1
  120. package/dist/cjs/FileUpload.js +1 -1
  121. package/dist/cjs/FileUpload.js.map +1 -1
  122. package/dist/cjs/FloatingActionMenu.js +2 -2
  123. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  124. package/dist/cjs/HelpPopover.js.map +1 -1
  125. package/dist/cjs/IconPicker.js.map +1 -1
  126. package/dist/cjs/InlineInput.js +1 -1
  127. package/dist/cjs/InlineInput.js.map +1 -1
  128. package/dist/cjs/IntegrationCard.js.map +1 -1
  129. package/dist/cjs/IpRestriction.js +2 -2
  130. package/dist/cjs/IpRestriction.js.map +1 -1
  131. package/dist/cjs/KeyboardShortcuts.js +2 -2
  132. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  133. package/dist/cjs/LoginPage.js +2 -2
  134. package/dist/cjs/LoginPage.js.map +1 -1
  135. package/dist/cjs/MenuBar.js +57 -756
  136. package/dist/cjs/MenuBar.js.map +1 -1
  137. package/dist/cjs/Metadata.js.map +1 -1
  138. package/dist/cjs/NavigationHeader.js.map +1 -1
  139. package/dist/cjs/NeetoWidget.js +9 -6
  140. package/dist/cjs/NeetoWidget.js.map +1 -1
  141. package/dist/cjs/Onboarding.js +1 -1
  142. package/dist/cjs/Onboarding.js.map +1 -1
  143. package/dist/cjs/OptionFields.js +3 -3
  144. package/dist/cjs/OptionFields.js.map +1 -1
  145. package/dist/cjs/PageLoader.js +1 -1
  146. package/dist/cjs/PhoneNumber.js +2 -2
  147. package/dist/cjs/ProductEmbed.js.map +1 -1
  148. package/dist/cjs/PublishBlock.js +1 -1
  149. package/dist/cjs/PublishBlock.js.map +1 -1
  150. package/dist/cjs/PublishYourItem.js +4 -3
  151. package/dist/cjs/PublishYourItem.js.map +1 -1
  152. package/dist/cjs/Rename.js.map +1 -1
  153. package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
  154. package/dist/cjs/Schedule.js +4 -5
  155. package/dist/cjs/Schedule.js.map +1 -1
  156. package/dist/cjs/SendToFields.js +6 -4
  157. package/dist/cjs/SendToFields.js.map +1 -1
  158. package/dist/cjs/SessionEnvironment.js +2 -2
  159. package/dist/cjs/SessionEnvironment.js.map +1 -1
  160. package/dist/cjs/ShareRecordingPane.js.map +1 -1
  161. package/dist/cjs/ShareViaEmail.js +2 -2
  162. package/dist/cjs/ShareViaEmail.js.map +1 -1
  163. package/dist/cjs/ShareViaLink.js.map +1 -1
  164. package/dist/cjs/Sidebar.js +2 -2
  165. package/dist/cjs/Sidebar.js.map +1 -1
  166. package/dist/cjs/StatusDropdown.js.map +1 -1
  167. package/dist/cjs/StickyRibbonsContainer.js.map +1 -1
  168. package/dist/cjs/SubHeader.js.map +1 -1
  169. package/dist/cjs/SuffixedInput.js +0 -1
  170. package/dist/cjs/SuffixedInput.js.map +1 -1
  171. package/dist/cjs/Taxonomy.js +2 -1
  172. package/dist/cjs/Taxonomy.js.map +1 -1
  173. package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
  174. package/dist/cjs/ToggleFeatureCard.js.map +1 -1
  175. package/dist/cjs/_commonjsHelpers-b3309d7b.js +11 -0
  176. package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
  177. package/dist/{index-e5588516.js → cjs/index-57253dc4.js} +14 -9
  178. package/dist/cjs/{index-248c4f4c.js.map → index-57253dc4.js.map} +1 -1
  179. package/dist/cjs/{index-19068c9b.js → index-c954eb94.js} +1 -1
  180. package/dist/cjs/{index-19068c9b.js.map → index-c954eb94.js.map} +1 -1
  181. package/dist/cjs/{phone-number-b28bc9dd.js → phone-number-7119ec88.js} +10 -7
  182. package/dist/cjs/phone-number-7119ec88.js.map +1 -0
  183. package/dist/cjs/{platform-628b3bd8.js → platform-4e0a3b75.js} +6 -4
  184. package/dist/cjs/{platform-628b3bd8.js.map → platform-4e0a3b75.js.map} +1 -1
  185. package/dist/cjs/useColumns-8894f767.js.map +1 -1
  186. package/dist/{index-d8900f6b.js → index-10ee76b9.js} +1 -1
  187. package/dist/{index-d8900f6b.js.map → index-10ee76b9.js.map} +1 -1
  188. package/dist/{cjs/index-248c4f4c.js → index-1f87fe13.js} +11 -10
  189. package/dist/{index-e5588516.js.map → index-1f87fe13.js.map} +1 -1
  190. package/dist/{phone-number-1d33eea1.js → phone-number-aa7dd15f.js} +10 -7
  191. package/dist/phone-number-aa7dd15f.js.map +1 -0
  192. package/dist/{platform-e221afea.js → platform-9320726a.js} +6 -4
  193. package/dist/{platform-e221afea.js.map → platform-9320726a.js.map} +1 -1
  194. package/dist/styles/page-loader.css +1 -1
  195. package/dist/styles/page-loader.js +1 -1
  196. package/dist/useColumns-13263cd8.js.map +1 -1
  197. package/package.json +87 -84
  198. package/dist/_commonjsHelpers-1c8beb5f.js +0 -4
  199. package/dist/_commonjsHelpers-1c8beb5f.js.map +0 -1
  200. package/dist/cjs/_commonjsHelpers-68cdf74f.js +0 -6
  201. package/dist/cjs/_commonjsHelpers-68cdf74f.js.map +0 -1
  202. package/dist/cjs/phone-number-b28bc9dd.js.map +0 -1
  203. package/dist/phone-number-1d33eea1.js.map +0 -1
package/dist/MenuBar.js CHANGED
@@ -2,13 +2,6 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import classnames from 'classnames';
4
4
  import Typography from '@bigbinary/neetoui/Typography';
5
- import _extends from '@babel/runtime/helpers/esm/extends';
6
- import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
7
- import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
8
- import { p as propTypes } from './index-e5588516.js';
9
- import React__default, { Children, isValidElement, cloneElement } from 'react';
10
- import ReactDOM from 'react-dom';
11
- import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';
12
5
  import Plus from '@bigbinary/neeto-icons/Plus';
13
6
  import Button from '@bigbinary/neetoui/Button';
14
7
  import { n } from './inject-css-c86de496.js';
@@ -20,7 +13,14 @@ import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
20
13
  import Search$1 from '@bigbinary/neeto-icons/Search';
21
14
  import Close from '@bigbinary/neeto-icons/Close';
22
15
  import Input from '@bigbinary/neetoui/Input';
16
+ import { P as PropTypes } from './index-1f87fe13.js';
23
17
  import { omit } from 'ramda';
18
+ import _extends from '@babel/runtime/helpers/esm/extends';
19
+ import _objectWithoutPropertiesLoose from '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
20
+ import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
21
+ import React__default from 'react';
22
+ import ReactDOM from 'react-dom';
23
+ import './_commonjsHelpers-1789f0cf.js';
24
24
 
25
25
  /**
26
26
  * Checks if a given element has a CSS class.
@@ -69,22 +69,22 @@ var config = {
69
69
  disabled: false
70
70
  };
71
71
 
72
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.shape({
73
- enter: propTypes.exports.number,
74
- exit: propTypes.exports.number,
75
- appear: propTypes.exports.number
72
+ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
73
+ enter: PropTypes.number,
74
+ exit: PropTypes.number,
75
+ appear: PropTypes.number
76
76
  }).isRequired]) : null;
77
- var classNamesShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.shape({
78
- enter: propTypes.exports.string,
79
- exit: propTypes.exports.string,
80
- active: propTypes.exports.string
81
- }), propTypes.exports.shape({
82
- enter: propTypes.exports.string,
83
- enterDone: propTypes.exports.string,
84
- enterActive: propTypes.exports.string,
85
- exit: propTypes.exports.string,
86
- exitDone: propTypes.exports.string,
87
- exitActive: propTypes.exports.string
77
+ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
78
+ enter: PropTypes.string,
79
+ exit: PropTypes.string,
80
+ active: PropTypes.string
81
+ }), PropTypes.shape({
82
+ enter: PropTypes.string,
83
+ enterDone: PropTypes.string,
84
+ enterActive: PropTypes.string,
85
+ exit: PropTypes.string,
86
+ exitDone: PropTypes.string,
87
+ exitActive: PropTypes.string
88
88
  })]) : null;
89
89
 
90
90
  var TransitionGroupContext = React__default.createContext(null);
@@ -511,10 +511,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
511
511
  * (see
512
512
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
513
513
  */
514
- nodeRef: propTypes.exports.shape({
515
- current: typeof Element === 'undefined' ? propTypes.exports.any : function (propValue, key, componentName, location, propFullName, secret) {
514
+ nodeRef: PropTypes.shape({
515
+ current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {
516
516
  var value = propValue[key];
517
- return propTypes.exports.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
517
+ return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
518
518
  }
519
519
  }),
520
520
 
@@ -532,12 +532,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
532
532
  * </Transition>
533
533
  * ```
534
534
  */
535
- children: propTypes.exports.oneOfType([propTypes.exports.func.isRequired, propTypes.exports.element.isRequired]).isRequired,
535
+ children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
536
536
 
537
537
  /**
538
538
  * Show the component; triggers the enter or exit states
539
539
  */
540
- in: propTypes.exports.bool,
540
+ in: PropTypes.bool,
541
541
 
542
542
  /**
543
543
  * By default the child component is mounted immediately along with
@@ -545,13 +545,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
545
545
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
546
546
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
547
547
  */
548
- mountOnEnter: propTypes.exports.bool,
548
+ mountOnEnter: PropTypes.bool,
549
549
 
550
550
  /**
551
551
  * By default the child component stays mounted after it reaches the `'exited'` state.
552
552
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
553
553
  */
554
- unmountOnExit: propTypes.exports.bool,
554
+ unmountOnExit: PropTypes.bool,
555
555
 
556
556
  /**
557
557
  * By default the child component does not perform the enter transition when
@@ -564,17 +564,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
564
564
  * > additional `.appear-*` classes, that way you can choose to style it
565
565
  * > differently.
566
566
  */
567
- appear: propTypes.exports.bool,
567
+ appear: PropTypes.bool,
568
568
 
569
569
  /**
570
570
  * Enable or disable enter transitions.
571
571
  */
572
- enter: propTypes.exports.bool,
572
+ enter: PropTypes.bool,
573
573
 
574
574
  /**
575
575
  * Enable or disable exit transitions.
576
576
  */
577
- exit: propTypes.exports.bool,
577
+ exit: PropTypes.bool,
578
578
 
579
579
  /**
580
580
  * The duration of the transition, in milliseconds.
@@ -627,7 +627,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
627
627
  * }}
628
628
  * ```
629
629
  */
630
- addEndListener: propTypes.exports.func,
630
+ addEndListener: PropTypes.func,
631
631
 
632
632
  /**
633
633
  * Callback fired before the "entering" status is applied. An extra parameter
@@ -637,7 +637,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
637
637
  *
638
638
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
639
639
  */
640
- onEnter: propTypes.exports.func,
640
+ onEnter: PropTypes.func,
641
641
 
642
642
  /**
643
643
  * Callback fired after the "entering" status is applied. An extra parameter
@@ -647,7 +647,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
647
647
  *
648
648
  * @type Function(node: HtmlElement, isAppearing: bool)
649
649
  */
650
- onEntering: propTypes.exports.func,
650
+ onEntering: PropTypes.func,
651
651
 
652
652
  /**
653
653
  * Callback fired after the "entered" status is applied. An extra parameter
@@ -657,7 +657,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
657
657
  *
658
658
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
659
659
  */
660
- onEntered: propTypes.exports.func,
660
+ onEntered: PropTypes.func,
661
661
 
662
662
  /**
663
663
  * Callback fired before the "exiting" status is applied.
@@ -666,7 +666,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
666
666
  *
667
667
  * @type Function(node: HtmlElement) -> void
668
668
  */
669
- onExit: propTypes.exports.func,
669
+ onExit: PropTypes.func,
670
670
 
671
671
  /**
672
672
  * Callback fired after the "exiting" status is applied.
@@ -675,7 +675,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
675
675
  *
676
676
  * @type Function(node: HtmlElement) -> void
677
677
  */
678
- onExiting: propTypes.exports.func,
678
+ onExiting: PropTypes.func,
679
679
 
680
680
  /**
681
681
  * Callback fired after the "exited" status is applied.
@@ -684,7 +684,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
684
684
  *
685
685
  * @type Function(node: HtmlElement) -> void
686
686
  */
687
- onExited: propTypes.exports.func
687
+ onExited: PropTypes.func
688
688
  } : {}; // Name the function so it is clearer in the documentation
689
689
 
690
690
  function noop() {}
@@ -708,6 +708,7 @@ Transition.EXITED = EXITED;
708
708
  Transition.ENTERING = ENTERING;
709
709
  Transition.ENTERED = ENTERED;
710
710
  Transition.EXITING = EXITING;
711
+ var Transition$1 = Transition;
711
712
 
712
713
  var _addClass = function addClass$1(node, classes) {
713
714
  return node && classes && classes.split(' ').forEach(function (c) {
@@ -963,7 +964,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
963
964
  _this$props.classNames;
964
965
  var props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
965
966
 
966
- return /*#__PURE__*/React__default.createElement(Transition, _extends({}, props, {
967
+ return /*#__PURE__*/React__default.createElement(Transition$1, _extends({}, props, {
967
968
  onEnter: this.onEnter,
968
969
  onEntered: this.onEntered,
969
970
  onEntering: this.onEntering,
@@ -979,7 +980,7 @@ var CSSTransition = /*#__PURE__*/function (_React$Component) {
979
980
  CSSTransition.defaultProps = {
980
981
  classNames: ''
981
982
  };
982
- CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, Transition.propTypes, {
983
+ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, Transition$1.propTypes, {
983
984
  /**
984
985
  * The animation classNames applied to the component as it appears, enters,
985
986
  * exits or has finished the transition. A single name can be provided, which
@@ -1058,7 +1059,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1058
1059
  *
1059
1060
  * @type Function(node: HtmlElement, isAppearing: bool)
1060
1061
  */
1061
- onEnter: propTypes.exports.func,
1062
+ onEnter: PropTypes.func,
1062
1063
 
1063
1064
  /**
1064
1065
  * A `<Transition>` callback fired immediately after the 'enter-active' or
@@ -1068,7 +1069,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1068
1069
  *
1069
1070
  * @type Function(node: HtmlElement, isAppearing: bool)
1070
1071
  */
1071
- onEntering: propTypes.exports.func,
1072
+ onEntering: PropTypes.func,
1072
1073
 
1073
1074
  /**
1074
1075
  * A `<Transition>` callback fired immediately after the 'enter' or
@@ -1078,7 +1079,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1078
1079
  *
1079
1080
  * @type Function(node: HtmlElement, isAppearing: bool)
1080
1081
  */
1081
- onEntered: propTypes.exports.func,
1082
+ onEntered: PropTypes.func,
1082
1083
 
1083
1084
  /**
1084
1085
  * A `<Transition>` callback fired immediately after the 'exit' class is
@@ -1088,7 +1089,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1088
1089
  *
1089
1090
  * @type Function(node: HtmlElement)
1090
1091
  */
1091
- onExit: propTypes.exports.func,
1092
+ onExit: PropTypes.func,
1092
1093
 
1093
1094
  /**
1094
1095
  * A `<Transition>` callback fired immediately after the 'exit-active' is applied.
@@ -1097,7 +1098,7 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1097
1098
  *
1098
1099
  * @type Function(node: HtmlElement)
1099
1100
  */
1100
- onExiting: propTypes.exports.func,
1101
+ onExiting: PropTypes.func,
1101
1102
 
1102
1103
  /**
1103
1104
  * A `<Transition>` callback fired immediately after the 'exit' classes
@@ -1107,708 +1108,9 @@ CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, T
1107
1108
  *
1108
1109
  * @type Function(node: HtmlElement)
1109
1110
  */
1110
- onExited: propTypes.exports.func
1111
+ onExited: PropTypes.func
1111
1112
  }) : {};
1112
-
1113
- /**
1114
- * Given `this.props.children`, return an object mapping key to child.
1115
- *
1116
- * @param {*} children `this.props.children`
1117
- * @return {object} Mapping of key to child
1118
- */
1119
-
1120
- function getChildMapping(children, mapFn) {
1121
- var mapper = function mapper(child) {
1122
- return mapFn && isValidElement(child) ? mapFn(child) : child;
1123
- };
1124
-
1125
- var result = Object.create(null);
1126
- if (children) Children.map(children, function (c) {
1127
- return c;
1128
- }).forEach(function (child) {
1129
- // run the map function here instead so that the key is the computed one
1130
- result[child.key] = mapper(child);
1131
- });
1132
- return result;
1133
- }
1134
- /**
1135
- * When you're adding or removing children some may be added or removed in the
1136
- * same render pass. We want to show *both* since we want to simultaneously
1137
- * animate elements in and out. This function takes a previous set of keys
1138
- * and a new set of keys and merges them with its best guess of the correct
1139
- * ordering. In the future we may expose some of the utilities in
1140
- * ReactMultiChild to make this easy, but for now React itself does not
1141
- * directly have this concept of the union of prevChildren and nextChildren
1142
- * so we implement it here.
1143
- *
1144
- * @param {object} prev prev children as returned from
1145
- * `ReactTransitionChildMapping.getChildMapping()`.
1146
- * @param {object} next next children as returned from
1147
- * `ReactTransitionChildMapping.getChildMapping()`.
1148
- * @return {object} a key set that contains all keys in `prev` and all keys
1149
- * in `next` in a reasonable order.
1150
- */
1151
-
1152
- function mergeChildMappings(prev, next) {
1153
- prev = prev || {};
1154
- next = next || {};
1155
-
1156
- function getValueForKey(key) {
1157
- return key in next ? next[key] : prev[key];
1158
- } // For each key of `next`, the list of keys to insert before that key in
1159
- // the combined list
1160
-
1161
-
1162
- var nextKeysPending = Object.create(null);
1163
- var pendingKeys = [];
1164
-
1165
- for (var prevKey in prev) {
1166
- if (prevKey in next) {
1167
- if (pendingKeys.length) {
1168
- nextKeysPending[prevKey] = pendingKeys;
1169
- pendingKeys = [];
1170
- }
1171
- } else {
1172
- pendingKeys.push(prevKey);
1173
- }
1174
- }
1175
-
1176
- var i;
1177
- var childMapping = {};
1178
-
1179
- for (var nextKey in next) {
1180
- if (nextKeysPending[nextKey]) {
1181
- for (i = 0; i < nextKeysPending[nextKey].length; i++) {
1182
- var pendingNextKey = nextKeysPending[nextKey][i];
1183
- childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
1184
- }
1185
- }
1186
-
1187
- childMapping[nextKey] = getValueForKey(nextKey);
1188
- } // Finally, add the keys which didn't appear before any key in `next`
1189
-
1190
-
1191
- for (i = 0; i < pendingKeys.length; i++) {
1192
- childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
1193
- }
1194
-
1195
- return childMapping;
1196
- }
1197
-
1198
- function getProp(child, prop, props) {
1199
- return props[prop] != null ? props[prop] : child.props[prop];
1200
- }
1201
-
1202
- function getInitialChildMapping(props, onExited) {
1203
- return getChildMapping(props.children, function (child) {
1204
- return cloneElement(child, {
1205
- onExited: onExited.bind(null, child),
1206
- in: true,
1207
- appear: getProp(child, 'appear', props),
1208
- enter: getProp(child, 'enter', props),
1209
- exit: getProp(child, 'exit', props)
1210
- });
1211
- });
1212
- }
1213
- function getNextChildMapping(nextProps, prevChildMapping, onExited) {
1214
- var nextChildMapping = getChildMapping(nextProps.children);
1215
- var children = mergeChildMappings(prevChildMapping, nextChildMapping);
1216
- Object.keys(children).forEach(function (key) {
1217
- var child = children[key];
1218
- if (!isValidElement(child)) return;
1219
- var hasPrev = (key in prevChildMapping);
1220
- var hasNext = (key in nextChildMapping);
1221
- var prevChild = prevChildMapping[key];
1222
- var isLeaving = isValidElement(prevChild) && !prevChild.props.in; // item is new (entering)
1223
-
1224
- if (hasNext && (!hasPrev || isLeaving)) {
1225
- // console.log('entering', key)
1226
- children[key] = cloneElement(child, {
1227
- onExited: onExited.bind(null, child),
1228
- in: true,
1229
- exit: getProp(child, 'exit', nextProps),
1230
- enter: getProp(child, 'enter', nextProps)
1231
- });
1232
- } else if (!hasNext && hasPrev && !isLeaving) {
1233
- // item is old (exiting)
1234
- // console.log('leaving', key)
1235
- children[key] = cloneElement(child, {
1236
- in: false
1237
- });
1238
- } else if (hasNext && hasPrev && isValidElement(prevChild)) {
1239
- // item hasn't changed transition states
1240
- // copy over the last transition props;
1241
- // console.log('unchanged', key)
1242
- children[key] = cloneElement(child, {
1243
- onExited: onExited.bind(null, child),
1244
- in: prevChild.props.in,
1245
- exit: getProp(child, 'exit', nextProps),
1246
- enter: getProp(child, 'enter', nextProps)
1247
- });
1248
- }
1249
- });
1250
- return children;
1251
- }
1252
-
1253
- var values = Object.values || function (obj) {
1254
- return Object.keys(obj).map(function (k) {
1255
- return obj[k];
1256
- });
1257
- };
1258
-
1259
- var defaultProps = {
1260
- component: 'div',
1261
- childFactory: function childFactory(child) {
1262
- return child;
1263
- }
1264
- };
1265
- /**
1266
- * The `<TransitionGroup>` component manages a set of transition components
1267
- * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
1268
- * components, `<TransitionGroup>` is a state machine for managing the mounting
1269
- * and unmounting of components over time.
1270
- *
1271
- * Consider the example below. As items are removed or added to the TodoList the
1272
- * `in` prop is toggled automatically by the `<TransitionGroup>`.
1273
- *
1274
- * Note that `<TransitionGroup>` does not define any animation behavior!
1275
- * Exactly _how_ a list item animates is up to the individual transition
1276
- * component. This means you can mix and match animations across different list
1277
- * items.
1278
- */
1279
-
1280
- var TransitionGroup = /*#__PURE__*/function (_React$Component) {
1281
- _inheritsLoose(TransitionGroup, _React$Component);
1282
-
1283
- function TransitionGroup(props, context) {
1284
- var _this;
1285
-
1286
- _this = _React$Component.call(this, props, context) || this;
1287
-
1288
- var handleExited = _this.handleExited.bind(_assertThisInitialized(_this)); // Initial children should all be entering, dependent on appear
1289
-
1290
-
1291
- _this.state = {
1292
- contextValue: {
1293
- isMounting: true
1294
- },
1295
- handleExited: handleExited,
1296
- firstRender: true
1297
- };
1298
- return _this;
1299
- }
1300
-
1301
- var _proto = TransitionGroup.prototype;
1302
-
1303
- _proto.componentDidMount = function componentDidMount() {
1304
- this.mounted = true;
1305
- this.setState({
1306
- contextValue: {
1307
- isMounting: false
1308
- }
1309
- });
1310
- };
1311
-
1312
- _proto.componentWillUnmount = function componentWillUnmount() {
1313
- this.mounted = false;
1314
- };
1315
-
1316
- TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
1317
- var prevChildMapping = _ref.children,
1318
- handleExited = _ref.handleExited,
1319
- firstRender = _ref.firstRender;
1320
- return {
1321
- children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
1322
- firstRender: false
1323
- };
1324
- } // node is `undefined` when user provided `nodeRef` prop
1325
- ;
1326
-
1327
- _proto.handleExited = function handleExited(child, node) {
1328
- var currentChildMapping = getChildMapping(this.props.children);
1329
- if (child.key in currentChildMapping) return;
1330
-
1331
- if (child.props.onExited) {
1332
- child.props.onExited(node);
1333
- }
1334
-
1335
- if (this.mounted) {
1336
- this.setState(function (state) {
1337
- var children = _extends({}, state.children);
1338
-
1339
- delete children[child.key];
1340
- return {
1341
- children: children
1342
- };
1343
- });
1344
- }
1345
- };
1346
-
1347
- _proto.render = function render() {
1348
- var _this$props = this.props,
1349
- Component = _this$props.component,
1350
- childFactory = _this$props.childFactory,
1351
- props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
1352
-
1353
- var contextValue = this.state.contextValue;
1354
- var children = values(this.state.children).map(childFactory);
1355
- delete props.appear;
1356
- delete props.enter;
1357
- delete props.exit;
1358
-
1359
- if (Component === null) {
1360
- return /*#__PURE__*/React__default.createElement(TransitionGroupContext.Provider, {
1361
- value: contextValue
1362
- }, children);
1363
- }
1364
-
1365
- return /*#__PURE__*/React__default.createElement(TransitionGroupContext.Provider, {
1366
- value: contextValue
1367
- }, /*#__PURE__*/React__default.createElement(Component, props, children));
1368
- };
1369
-
1370
- return TransitionGroup;
1371
- }(React__default.Component);
1372
-
1373
- TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
1374
- /**
1375
- * `<TransitionGroup>` renders a `<div>` by default. You can change this
1376
- * behavior by providing a `component` prop.
1377
- * If you use React v16+ and would like to avoid a wrapping `<div>` element
1378
- * you can pass in `component={null}`. This is useful if the wrapping div
1379
- * borks your css styles.
1380
- */
1381
- component: propTypes.exports.any,
1382
-
1383
- /**
1384
- * A set of `<Transition>` components, that are toggled `in` and out as they
1385
- * leave. the `<TransitionGroup>` will inject specific transition props, so
1386
- * remember to spread them through if you are wrapping the `<Transition>` as
1387
- * with our `<Fade>` example.
1388
- *
1389
- * While this component is meant for multiple `Transition` or `CSSTransition`
1390
- * children, sometimes you may want to have a single transition child with
1391
- * content that you want to be transitioned out and in when you change it
1392
- * (e.g. routes, images etc.) In that case you can change the `key` prop of
1393
- * the transition child as you change its content, this will cause
1394
- * `TransitionGroup` to transition the child out and back in.
1395
- */
1396
- children: propTypes.exports.node,
1397
-
1398
- /**
1399
- * A convenience prop that enables or disables appear animations
1400
- * for all children. Note that specifying this will override any defaults set
1401
- * on individual children Transitions.
1402
- */
1403
- appear: propTypes.exports.bool,
1404
-
1405
- /**
1406
- * A convenience prop that enables or disables enter animations
1407
- * for all children. Note that specifying this will override any defaults set
1408
- * on individual children Transitions.
1409
- */
1410
- enter: propTypes.exports.bool,
1411
-
1412
- /**
1413
- * A convenience prop that enables or disables exit animations
1414
- * for all children. Note that specifying this will override any defaults set
1415
- * on individual children Transitions.
1416
- */
1417
- exit: propTypes.exports.bool,
1418
-
1419
- /**
1420
- * You may need to apply reactive updates to a child as it is exiting.
1421
- * This is generally done by using `cloneElement` however in the case of an exiting
1422
- * child the element has already been removed and not accessible to the consumer.
1423
- *
1424
- * If you do need to update a child as it leaves you can provide a `childFactory`
1425
- * to wrap every child, even the ones that are leaving.
1426
- *
1427
- * @type Function(child: ReactElement) -> ReactElement
1428
- */
1429
- childFactory: propTypes.exports.func
1430
- } : {};
1431
- TransitionGroup.defaultProps = defaultProps;
1432
-
1433
- /**
1434
- * The `<ReplaceTransition>` component is a specialized `Transition` component
1435
- * that animates between two children.
1436
- *
1437
- * ```jsx
1438
- * <ReplaceTransition in>
1439
- * <Fade><div>I appear first</div></Fade>
1440
- * <Fade><div>I replace the above</div></Fade>
1441
- * </ReplaceTransition>
1442
- * ```
1443
- */
1444
-
1445
- var ReplaceTransition = /*#__PURE__*/function (_React$Component) {
1446
- _inheritsLoose(ReplaceTransition, _React$Component);
1447
-
1448
- function ReplaceTransition() {
1449
- var _this;
1450
-
1451
- for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
1452
- _args[_key] = arguments[_key];
1453
- }
1454
-
1455
- _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
1456
-
1457
- _this.handleEnter = function () {
1458
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1459
- args[_key2] = arguments[_key2];
1460
- }
1461
-
1462
- return _this.handleLifecycle('onEnter', 0, args);
1463
- };
1464
-
1465
- _this.handleEntering = function () {
1466
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1467
- args[_key3] = arguments[_key3];
1468
- }
1469
-
1470
- return _this.handleLifecycle('onEntering', 0, args);
1471
- };
1472
-
1473
- _this.handleEntered = function () {
1474
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1475
- args[_key4] = arguments[_key4];
1476
- }
1477
-
1478
- return _this.handleLifecycle('onEntered', 0, args);
1479
- };
1480
-
1481
- _this.handleExit = function () {
1482
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
1483
- args[_key5] = arguments[_key5];
1484
- }
1485
-
1486
- return _this.handleLifecycle('onExit', 1, args);
1487
- };
1488
-
1489
- _this.handleExiting = function () {
1490
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
1491
- args[_key6] = arguments[_key6];
1492
- }
1493
-
1494
- return _this.handleLifecycle('onExiting', 1, args);
1495
- };
1496
-
1497
- _this.handleExited = function () {
1498
- for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
1499
- args[_key7] = arguments[_key7];
1500
- }
1501
-
1502
- return _this.handleLifecycle('onExited', 1, args);
1503
- };
1504
-
1505
- return _this;
1506
- }
1507
-
1508
- var _proto = ReplaceTransition.prototype;
1509
-
1510
- _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {
1511
- var _child$props;
1512
-
1513
- var children = this.props.children;
1514
- var child = React__default.Children.toArray(children)[idx];
1515
- if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
1516
-
1517
- if (this.props[handler]) {
1518
- var maybeNode = child.props.nodeRef ? undefined : ReactDOM.findDOMNode(this);
1519
- this.props[handler](maybeNode);
1520
- }
1521
- };
1522
-
1523
- _proto.render = function render() {
1524
- var _this$props = this.props,
1525
- children = _this$props.children,
1526
- inProp = _this$props.in,
1527
- props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
1528
-
1529
- var _React$Children$toArr = React__default.Children.toArray(children),
1530
- first = _React$Children$toArr[0],
1531
- second = _React$Children$toArr[1];
1532
-
1533
- delete props.onEnter;
1534
- delete props.onEntering;
1535
- delete props.onEntered;
1536
- delete props.onExit;
1537
- delete props.onExiting;
1538
- delete props.onExited;
1539
- return /*#__PURE__*/React__default.createElement(TransitionGroup, props, inProp ? React__default.cloneElement(first, {
1540
- key: 'first',
1541
- onEnter: this.handleEnter,
1542
- onEntering: this.handleEntering,
1543
- onEntered: this.handleEntered
1544
- }) : React__default.cloneElement(second, {
1545
- key: 'second',
1546
- onEnter: this.handleExit,
1547
- onEntering: this.handleExiting,
1548
- onEntered: this.handleExited
1549
- }));
1550
- };
1551
-
1552
- return ReplaceTransition;
1553
- }(React__default.Component);
1554
-
1555
- ReplaceTransition.propTypes = process.env.NODE_ENV !== "production" ? {
1556
- in: propTypes.exports.bool.isRequired,
1557
- children: function children(props, propName) {
1558
- if (React__default.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
1559
- return null;
1560
- }
1561
- } : {};
1562
-
1563
- var _leaveRenders, _enterRenders;
1564
-
1565
- function areChildrenDifferent(oldChildren, newChildren) {
1566
- if (oldChildren === newChildren) return false;
1567
-
1568
- if (React__default.isValidElement(oldChildren) && React__default.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {
1569
- return false;
1570
- }
1571
-
1572
- return true;
1573
- }
1574
- /**
1575
- * Enum of modes for SwitchTransition component
1576
- * @enum { string }
1577
- */
1578
-
1579
-
1580
- var modes = {
1581
- out: 'out-in',
1582
- in: 'in-out'
1583
- };
1584
-
1585
- var callHook = function callHook(element, name, cb) {
1586
- return function () {
1587
- var _element$props;
1588
-
1589
- element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);
1590
- cb();
1591
- };
1592
- };
1593
-
1594
- var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {
1595
- var current = _ref.current,
1596
- changeState = _ref.changeState;
1597
- return React__default.cloneElement(current, {
1598
- in: false,
1599
- onExited: callHook(current, 'onExited', function () {
1600
- changeState(ENTERING, null);
1601
- })
1602
- });
1603
- }, _leaveRenders[modes.in] = function (_ref2) {
1604
- var current = _ref2.current,
1605
- changeState = _ref2.changeState,
1606
- children = _ref2.children;
1607
- return [current, React__default.cloneElement(children, {
1608
- in: true,
1609
- onEntered: callHook(children, 'onEntered', function () {
1610
- changeState(ENTERING);
1611
- })
1612
- })];
1613
- }, _leaveRenders);
1614
- var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {
1615
- var children = _ref3.children,
1616
- changeState = _ref3.changeState;
1617
- return React__default.cloneElement(children, {
1618
- in: true,
1619
- onEntered: callHook(children, 'onEntered', function () {
1620
- changeState(ENTERED, React__default.cloneElement(children, {
1621
- in: true
1622
- }));
1623
- })
1624
- });
1625
- }, _enterRenders[modes.in] = function (_ref4) {
1626
- var current = _ref4.current,
1627
- children = _ref4.children,
1628
- changeState = _ref4.changeState;
1629
- return [React__default.cloneElement(current, {
1630
- in: false,
1631
- onExited: callHook(current, 'onExited', function () {
1632
- changeState(ENTERED, React__default.cloneElement(children, {
1633
- in: true
1634
- }));
1635
- })
1636
- }), React__default.cloneElement(children, {
1637
- in: true
1638
- })];
1639
- }, _enterRenders);
1640
- /**
1641
- * A transition component inspired by the [vue transition modes](https://vuejs.org/v2/guide/transitions.html#Transition-Modes).
1642
- * You can use it when you want to control the render between state transitions.
1643
- * Based on the selected mode and the child's key which is the `Transition` or `CSSTransition` component, the `SwitchTransition` makes a consistent transition between them.
1644
- *
1645
- * If the `out-in` mode is selected, the `SwitchTransition` waits until the old child leaves and then inserts a new child.
1646
- * If the `in-out` mode is selected, the `SwitchTransition` inserts a new child first, waits for the new child to enter and then removes the old child.
1647
- *
1648
- * **Note**: If you want the animation to happen simultaneously
1649
- * (that is, to have the old child removed and a new child inserted **at the same time**),
1650
- * you should use
1651
- * [`TransitionGroup`](https://reactcommunity.org/react-transition-group/transition-group)
1652
- * instead.
1653
- *
1654
- * ```jsx
1655
- * function App() {
1656
- * const [state, setState] = useState(false);
1657
- * return (
1658
- * <SwitchTransition>
1659
- * <CSSTransition
1660
- * key={state ? "Goodbye, world!" : "Hello, world!"}
1661
- * addEndListener={(node, done) => node.addEventListener("transitionend", done, false)}
1662
- * classNames='fade'
1663
- * >
1664
- * <button onClick={() => setState(state => !state)}>
1665
- * {state ? "Goodbye, world!" : "Hello, world!"}
1666
- * </button>
1667
- * </CSSTransition>
1668
- * </SwitchTransition>
1669
- * );
1670
- * }
1671
- * ```
1672
- *
1673
- * ```css
1674
- * .fade-enter{
1675
- * opacity: 0;
1676
- * }
1677
- * .fade-exit{
1678
- * opacity: 1;
1679
- * }
1680
- * .fade-enter-active{
1681
- * opacity: 1;
1682
- * }
1683
- * .fade-exit-active{
1684
- * opacity: 0;
1685
- * }
1686
- * .fade-enter-active,
1687
- * .fade-exit-active{
1688
- * transition: opacity 500ms;
1689
- * }
1690
- * ```
1691
- */
1692
-
1693
- var SwitchTransition = /*#__PURE__*/function (_React$Component) {
1694
- _inheritsLoose(SwitchTransition, _React$Component);
1695
-
1696
- function SwitchTransition() {
1697
- var _this;
1698
-
1699
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1700
- args[_key] = arguments[_key];
1701
- }
1702
-
1703
- _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
1704
- _this.state = {
1705
- status: ENTERED,
1706
- current: null
1707
- };
1708
- _this.appeared = false;
1709
-
1710
- _this.changeState = function (status, current) {
1711
- if (current === void 0) {
1712
- current = _this.state.current;
1713
- }
1714
-
1715
- _this.setState({
1716
- status: status,
1717
- current: current
1718
- });
1719
- };
1720
-
1721
- return _this;
1722
- }
1723
-
1724
- var _proto = SwitchTransition.prototype;
1725
-
1726
- _proto.componentDidMount = function componentDidMount() {
1727
- this.appeared = true;
1728
- };
1729
-
1730
- SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
1731
- if (props.children == null) {
1732
- return {
1733
- current: null
1734
- };
1735
- }
1736
-
1737
- if (state.status === ENTERING && props.mode === modes.in) {
1738
- return {
1739
- status: ENTERING
1740
- };
1741
- }
1742
-
1743
- if (state.current && areChildrenDifferent(state.current, props.children)) {
1744
- return {
1745
- status: EXITING
1746
- };
1747
- }
1748
-
1749
- return {
1750
- current: React__default.cloneElement(props.children, {
1751
- in: true
1752
- })
1753
- };
1754
- };
1755
-
1756
- _proto.render = function render() {
1757
- var _this$props = this.props,
1758
- children = _this$props.children,
1759
- mode = _this$props.mode,
1760
- _this$state = this.state,
1761
- status = _this$state.status,
1762
- current = _this$state.current;
1763
- var data = {
1764
- children: children,
1765
- current: current,
1766
- changeState: this.changeState,
1767
- status: status
1768
- };
1769
- var component;
1770
-
1771
- switch (status) {
1772
- case ENTERING:
1773
- component = enterRenders[mode](data);
1774
- break;
1775
-
1776
- case EXITING:
1777
- component = leaveRenders[mode](data);
1778
- break;
1779
-
1780
- case ENTERED:
1781
- component = current;
1782
- }
1783
-
1784
- return /*#__PURE__*/React__default.createElement(TransitionGroupContext.Provider, {
1785
- value: {
1786
- isMounting: !this.appeared
1787
- }
1788
- }, component);
1789
- };
1790
-
1791
- return SwitchTransition;
1792
- }(React__default.Component);
1793
-
1794
- SwitchTransition.propTypes = process.env.NODE_ENV !== "production" ? {
1795
- /**
1796
- * Transition modes.
1797
- * `out-in`: Current element transitions out first, then when complete, the new element transitions in.
1798
- * `in-out`: New element transitions in first, then when complete, the current element transitions out.
1799
- *
1800
- * @type {'out-in'|'in-out'}
1801
- */
1802
- mode: propTypes.exports.oneOf([modes.in, modes.out]),
1803
-
1804
- /**
1805
- * Any `Transition` or `CSSTransition` component.
1806
- */
1807
- children: propTypes.exports.oneOfType([propTypes.exports.element.isRequired])
1808
- } : {};
1809
- SwitchTransition.defaultProps = {
1810
- mode: modes.out
1811
- };
1113
+ var CSSTransition$1 = CSSTransition;
1812
1114
 
1813
1115
  var css = ".neeto-molecules-menubar__wrapper{background-color:rgb(var(--neeto-ui-white))!important;border-right:1px solid rgb(var(--neeto-ui-gray-200));flex-shrink:0;overflow:hidden;transition:all .3s}.neeto-molecules-menubar__container{height:100vh;overflow-y:auto;padding:32px!important;width:324px}@media screen and (max-width:1024px){.neeto-molecules-menubar__container{padding:40px 24px 24px!important;width:280px}}@media screen and (max-width:768px){.neeto-molecules-menubar__container{padding:40px 20px 24px!important;width:240px}}.neeto-molecules-menubar__title{margin-bottom:16px}.neeto-molecules-menubar__search{align-items:center;display:flex;gap:4px;margin-bottom:20px}.neeto-molecules-menubar__subtitle{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px;margin-top:20px}.neeto-molecules-menubar__subtitle-actions{align-items:center;display:flex;gap:4px}.neeto-molecules-menubar__add-new-wrap,.neeto-molecules-menubar__block{margin-bottom:8px;padding:7px 8px}.neeto-molecules-menubar__block{align-items:center;border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;display:flex;justify-content:space-between;text-align:left;transition:all .3s;width:100%}.neeto-molecules-menubar__block:active,.neeto-molecules-menubar__block:focus,.neeto-molecules-menubar__block:focus-visible,.neeto-molecules-menubar__block:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none;text-decoration:none}.neeto-molecules-menubar__block--active{background-color:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-100));box-shadow:none;position:relative}.neeto-molecules-menubar__block--active:after{background-color:rgb(var(--neeto-ui-primary-500));border-bottom-left-radius:var(--neeto-ui-rounded);border-top-left-radius:var(--neeto-ui-rounded);content:\"\";height:100%;left:-1px;position:absolute;top:0;width:3px}.neeto-molecules-menubar__block--active:active,.neeto-molecules-menubar__block--active:focus,.neeto-molecules-menubar__block--active:focus-visible,.neeto-molecules-menubar__block--active:hover{background-color:rgb(var(--neeto-ui-primary-100))}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-label{align-items:center;display:flex}.neeto-molecules-menubar__block .neeto-molecules-menubar__block-icon{margin-right:4px}.neeto-molecules-menubar__item{border:thin solid transparent;border-radius:var(--neeto-ui-rounded);cursor:pointer;margin-bottom:8px;padding:12px;text-align:left;transition:all .3s;width:100%}@media screen and (max-width:1024px){.neeto-molecules-menubar__item{padding:10px}}@media screen and (max-width:768px){.neeto-molecules-menubar__item{padding:8px}}.neeto-molecules-menubar__item:active,.neeto-molecules-menubar__item:focus,.neeto-molecules-menubar__item:focus-visible,.neeto-molecules-menubar__item:hover{background-color:rgb(var(--neeto-ui-gray-200));outline:none}.neeto-molecules-menubar__item--active{background-color:rgb(var(--neeto-ui-white));border-color:rgb(var(--neeto-ui-gray-300));box-shadow:var(--neeto-ui-shadow-xs);color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-menubar__item--active:active,.neeto-molecules-menubar__item--active:focus,.neeto-molecules-menubar__item--active:focus-visible,.neeto-molecules-menubar__item--active:hover{background-color:rgb(var(--neeto-ui-white))}.neeto-molecules-menubar-enter.neeto-molecules-menubar__wrapper{width:0}.neeto-molecules-menubar-enter-active.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-enter-done.neeto-molecules-menubar__wrapper,.neeto-molecules-menubar-exit.neeto-molecules-menubar__wrapper{width:324px}.neeto-molecules-menubar-exit-active.neeto-molecules-menubar__wrapper{width:0}";
1814
1116
  n(css,{});
@@ -1955,11 +1257,11 @@ Search.propTypes = {
1955
1257
  /**
1956
1258
  * To specify whether the search field is collapsed.
1957
1259
  */
1958
- isCollapsed: propTypes.exports.bool,
1260
+ isCollapsed: PropTypes.bool,
1959
1261
  /**
1960
1262
  * To provide a callback function on collapse of the search field.
1961
1263
  */
1962
- onCollapse: propTypes.exports.func
1264
+ onCollapse: PropTypes.func
1963
1265
  };
1964
1266
 
1965
1267
  var _excluded$1 = ["children", "iconProps"];
@@ -1994,7 +1296,7 @@ var MenuBar = function MenuBar(_ref) {
1994
1296
  _ref$className = _ref.className,
1995
1297
  className = _ref$className === void 0 ? "" : _ref$className,
1996
1298
  otherProps = _objectWithoutProperties(_ref, _excluded);
1997
- return /*#__PURE__*/jsx(CSSTransition, {
1299
+ return /*#__PURE__*/jsx(CSSTransition$1, {
1998
1300
  unmountOnExit: true,
1999
1301
  classNames: "neeto-molecules-menubar",
2000
1302
  "in": showMenu,