@ilo-org/react 0.10.6 → 0.12.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 (246) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/lib/cjs/AccordionCtx-be704051.js +9 -0
  3. package/lib/cjs/{GlobalCtx-97e4b433.js → GlobalCtx-10114bdd.js} +2 -2
  4. package/lib/cjs/ListCtx-14aa546f.js +9 -0
  5. package/lib/cjs/TagCtx-690a1d54.js +7 -0
  6. package/lib/cjs/components/Accordion/Accordion.js +6 -6
  7. package/lib/cjs/components/Accordion/AccordionButton.js +5 -5
  8. package/lib/cjs/components/Accordion/AccordionItem.js +2 -2
  9. package/lib/cjs/components/Accordion/AccordionPanel.js +8 -8
  10. package/lib/cjs/components/Accordion/index.js +2 -2
  11. package/lib/cjs/components/Breadcrumb/Breadcrumb.js +5 -5
  12. package/lib/cjs/components/Breadcrumb/index.js +1 -1
  13. package/lib/cjs/components/Button/Button.js +1 -1
  14. package/lib/cjs/components/Button/index.js +1 -1
  15. package/lib/cjs/components/Callout/Callout.js +4 -4
  16. package/lib/cjs/components/Callout/index.js +1 -1
  17. package/lib/cjs/components/Cards/Card.js +40 -0
  18. package/lib/cjs/components/Cards/CardGroup.js +33 -0
  19. package/lib/cjs/components/Cards/DataCard/index.js +27 -0
  20. package/lib/cjs/components/Cards/DetailCard/index.js +20 -0
  21. package/lib/cjs/components/Cards/FactlistCard/index.js +23 -0
  22. package/lib/cjs/components/Cards/FeatureCard/index.js +24 -0
  23. package/lib/cjs/components/Cards/MultilinkCard/index.js +24 -0
  24. package/lib/cjs/components/Cards/PromoCard/index.js +23 -0
  25. package/lib/cjs/components/Cards/StatCard/index.js +21 -0
  26. package/lib/cjs/components/Cards/TextCard/index.js +25 -0
  27. package/lib/cjs/components/Cards/index.js +37 -0
  28. package/lib/cjs/components/Checkbox/Checkbox.js +5 -5
  29. package/lib/cjs/components/Checkbox/index.js +1 -1
  30. package/lib/cjs/components/Collapse/Collapse.js +1194 -44
  31. package/lib/cjs/components/Collapse/index.js +0 -1
  32. package/lib/cjs/components/ContextMenu/ContextMenu.js +1 -1
  33. package/lib/cjs/components/ContextMenu/index.js +1 -1
  34. package/lib/cjs/components/Credit/Credit.js +3 -3
  35. package/lib/cjs/components/Credit/index.js +1 -1
  36. package/lib/cjs/components/DatePicker/DatePicker.js +4 -4
  37. package/lib/cjs/components/DatePicker/index.js +1 -1
  38. package/lib/cjs/components/Dropdown/Dropdown.js +5 -5
  39. package/lib/cjs/components/Dropdown/index.js +1 -1
  40. package/lib/cjs/components/Empty/Empty.js +1 -1
  41. package/lib/cjs/components/Empty/index.js +1 -1
  42. package/lib/cjs/components/Fieldset/Fieldset.js +5 -5
  43. package/lib/cjs/components/Fieldset/index.js +1 -1
  44. package/lib/cjs/components/FileUpload/FileUpload.js +5 -5
  45. package/lib/cjs/components/FileUpload/index.js +1 -1
  46. package/lib/cjs/components/Footer/Footer.js +1 -1
  47. package/lib/cjs/components/Footer/index.js +1 -1
  48. package/lib/cjs/components/Form/Form.js +3 -3
  49. package/lib/cjs/components/Form/index.js +1 -1
  50. package/lib/cjs/components/FormControl/FormControl.js +7 -7
  51. package/lib/cjs/components/FormControl/index.js +1 -1
  52. package/lib/cjs/components/GlobalProvider/GlobalProvider.js +1 -1
  53. package/lib/cjs/components/GlobalProvider/index.js +1 -1
  54. package/lib/cjs/components/Heading/Heading.js +1 -1
  55. package/lib/cjs/components/Heading/index.js +1 -1
  56. package/lib/cjs/components/Hero/Hero.js +1 -1
  57. package/lib/cjs/components/Hero/HeroCard.js +1 -1
  58. package/lib/cjs/components/Hero/index.js +1 -1
  59. package/lib/cjs/components/Icon/Icon.js +3 -3
  60. package/lib/cjs/components/Icon/index.js +1 -1
  61. package/lib/cjs/components/Image/Image.js +1 -1
  62. package/lib/cjs/components/Image/index.js +1 -1
  63. package/lib/cjs/components/Input/Input.js +1 -1
  64. package/lib/cjs/components/Input/index.js +1 -1
  65. package/lib/cjs/components/Link/Link.js +1 -1
  66. package/lib/cjs/components/Link/index.js +1 -1
  67. package/lib/cjs/components/LinkList/LinkList.js +2 -2
  68. package/lib/cjs/components/LinkList/index.js +1 -1
  69. package/lib/cjs/components/List/List.js +4 -4
  70. package/lib/cjs/components/List/ListItem.js +2 -2
  71. package/lib/cjs/components/List/index.js +2 -2
  72. package/lib/cjs/components/Loading/Loading.js +1 -1
  73. package/lib/cjs/components/Loading/index.js +1 -1
  74. package/lib/cjs/components/LocalNav/LocalNav.js +4 -4
  75. package/lib/cjs/components/LocalNav/index.js +1 -1
  76. package/lib/cjs/components/Logo/Logo.js +15 -15
  77. package/lib/cjs/components/Logo/index.js +1 -1
  78. package/lib/cjs/components/LogoGrid/LogoGrid.js +1 -1
  79. package/lib/cjs/components/LogoGrid/index.js +1 -1
  80. package/lib/cjs/components/Navigation/Navigation.js +6 -6
  81. package/lib/cjs/components/Navigation/index.js +1 -1
  82. package/lib/cjs/components/Notification/Notification.js +3 -3
  83. package/lib/cjs/components/Notification/index.js +1 -1
  84. package/lib/cjs/components/NumberPicker/NumberPicker.js +4 -4
  85. package/lib/cjs/components/NumberPicker/index.js +1 -1
  86. package/lib/cjs/components/Pagination/Pagination.js +1 -1
  87. package/lib/cjs/components/Pagination/index.js +1 -1
  88. package/lib/cjs/components/Profile/Profile.js +1 -1
  89. package/lib/cjs/components/Profile/index.js +1 -1
  90. package/lib/cjs/components/Radio/Radio.js +5 -5
  91. package/lib/cjs/components/Radio/index.js +1 -1
  92. package/lib/cjs/components/ReadMore/ReadMore.js +4 -4
  93. package/lib/cjs/components/ReadMore/index.js +1 -1
  94. package/lib/cjs/components/RichText/RichText.js +1 -1
  95. package/lib/cjs/components/RichText/index.js +1 -1
  96. package/lib/cjs/components/SearchField/SearchField.js +3 -3
  97. package/lib/cjs/components/SearchField/index.js +1 -1
  98. package/lib/cjs/components/SocialMedia/SocialMedia.js +1 -1
  99. package/lib/cjs/components/SocialMedia/index.js +1 -1
  100. package/lib/cjs/components/TableOfContents/TableOfContents.js +1 -1
  101. package/lib/cjs/components/TableOfContents/index.js +1 -1
  102. package/lib/cjs/components/Tabs/Tabs.args.js +156 -0
  103. package/lib/cjs/components/Tabs/Tabs.js +24 -0
  104. package/lib/cjs/components/Tabs/index.js +15 -0
  105. package/lib/cjs/components/Tag/Tag.js +4 -4
  106. package/lib/cjs/components/Tag/TagSet.js +6 -6
  107. package/lib/cjs/components/Tag/index.js +2 -2
  108. package/lib/cjs/components/TextInput/TextInput.js +4 -4
  109. package/lib/cjs/components/TextInput/index.js +1 -1
  110. package/lib/cjs/components/Textarea/Textarea.js +4 -4
  111. package/lib/cjs/components/Textarea/index.js +1 -1
  112. package/lib/cjs/components/Toggle/Toggle.js +4 -4
  113. package/lib/cjs/components/Toggle/index.js +1 -1
  114. package/lib/cjs/components/Tooltip/Tooltip.js +5 -5
  115. package/lib/cjs/components/Tooltip/index.js +1 -1
  116. package/lib/cjs/components/Video/Video.js +11 -12
  117. package/lib/cjs/components/Video/VideoPlayer.js +55 -13
  118. package/lib/cjs/components/Video/index.js +6 -8
  119. package/lib/cjs/components/index.js +21 -12
  120. package/lib/cjs/hooks/index.js +1 -1
  121. package/lib/cjs/hooks/useGlobalSettings.js +3 -3
  122. package/lib/cjs/hooks/usePrevious.js +3 -3
  123. package/lib/cjs/hooks/useVideoPlayer.js +7 -7
  124. package/lib/cjs/index.js +21 -12
  125. package/lib/esm/components/Cards/Card.js +38 -0
  126. package/lib/esm/components/{Card → Cards}/CardGroup.js +14 -6
  127. package/lib/esm/components/Cards/DataCard/index.js +25 -0
  128. package/lib/esm/components/Cards/DetailCard/index.js +18 -0
  129. package/lib/esm/components/Cards/FactlistCard/index.js +21 -0
  130. package/lib/esm/components/Cards/FeatureCard/index.js +22 -0
  131. package/lib/esm/components/Cards/MultilinkCard/index.js +22 -0
  132. package/lib/esm/components/Cards/PromoCard/index.js +21 -0
  133. package/lib/esm/components/Cards/StatCard/index.js +19 -0
  134. package/lib/esm/components/Cards/TextCard/index.js +23 -0
  135. package/lib/esm/components/Cards/index.js +22 -0
  136. package/lib/esm/components/Collapse/Collapse.js +1156 -6
  137. package/lib/esm/components/Collapse/index.js +0 -1
  138. package/lib/esm/components/FileUpload/FileUpload.js +3 -3
  139. package/lib/esm/components/LinkList/LinkList.js +1 -1
  140. package/lib/esm/components/NumberPicker/NumberPicker.js +3 -3
  141. package/lib/esm/components/Radio/Radio.js +3 -3
  142. package/lib/esm/components/Tabs/Tabs.args.js +154 -0
  143. package/lib/esm/components/Tabs/Tabs.js +22 -0
  144. package/lib/esm/components/Tabs/index.js +9 -0
  145. package/lib/esm/components/TextInput/TextInput.js +3 -3
  146. package/lib/esm/components/Textarea/Textarea.js +3 -3
  147. package/lib/esm/components/Video/Video.js +10 -11
  148. package/lib/esm/components/Video/VideoPlayer.js +57 -11
  149. package/lib/esm/components/Video/index.js +5 -7
  150. package/lib/esm/components/index.js +14 -6
  151. package/lib/esm/index.js +14 -6
  152. package/lib/types/react/src/components/Cards/Card.props.d.ts +307 -0
  153. package/lib/types/react/src/components/{Card → Cards}/CardGroup.props.d.ts +1 -1
  154. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +4 -0
  155. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +4 -0
  156. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +4 -0
  157. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +4 -0
  158. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +4 -0
  159. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +4 -0
  160. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +4 -0
  161. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +4 -0
  162. package/lib/types/react/src/components/Cards/index.d.ts +11 -0
  163. package/lib/types/react/src/components/Tabs/Tabs.args.d.ts +10 -0
  164. package/lib/types/react/src/components/Tabs/Tabs.d.ts +4 -0
  165. package/lib/types/react/src/components/Tabs/Tabs.props.d.ts +12 -0
  166. package/lib/types/react/src/components/Tabs/index.d.ts +1 -0
  167. package/lib/types/react/src/components/Video/Video.d.ts +2 -2
  168. package/lib/types/react/src/components/Video/Video.props.d.ts +5 -43
  169. package/lib/types/react/src/components/Video/VideoPlayer.d.ts +3 -3
  170. package/lib/types/react/src/components/Video/VideoPlayer.props.d.ts +6 -31
  171. package/lib/types/react/src/components/index.d.ts +2 -1
  172. package/lib/types/react/src/types/index.d.ts +3 -3
  173. package/package.json +9 -7
  174. package/src/components/{Card → Cards}/Card.args.ts +41 -36
  175. package/src/components/Cards/Card.props.ts +382 -0
  176. package/src/components/Cards/Card.tsx +36 -0
  177. package/src/components/{Card → Cards}/CardGroup.args.ts +26 -26
  178. package/src/components/{Card → Cards}/CardGroup.props.ts +1 -1
  179. package/src/components/{Card → Cards}/CardGroup.tsx +12 -13
  180. package/src/components/Cards/DataCard/index.tsx +107 -0
  181. package/src/components/Cards/DetailCard/index.tsx +62 -0
  182. package/src/components/Cards/FactlistCard/index.tsx +42 -0
  183. package/src/components/Cards/FeatureCard/index.tsx +69 -0
  184. package/src/components/Cards/MultilinkCard/index.tsx +76 -0
  185. package/src/components/Cards/PromoCard/index.tsx +60 -0
  186. package/src/components/Cards/StatCard/index.tsx +36 -0
  187. package/src/components/Cards/TextCard/index.tsx +63 -0
  188. package/src/components/Cards/index.ts +22 -0
  189. package/src/components/LinkList/LinkList.tsx +1 -1
  190. package/src/components/Tabs/Tabs.args.tsx +201 -0
  191. package/src/components/Tabs/Tabs.props.ts +13 -0
  192. package/src/components/Tabs/Tabs.tsx +60 -0
  193. package/src/components/Tabs/index.ts +1 -0
  194. package/src/components/Video/Video.args.ts +18 -24
  195. package/src/components/Video/Video.props.ts +5 -47
  196. package/src/components/Video/Video.tsx +24 -19
  197. package/src/components/Video/VideoPlayer.props.ts +7 -38
  198. package/src/components/Video/VideoPlayer.tsx +67 -322
  199. package/src/components/index.ts +2 -1
  200. package/src/declarations.d.ts +22 -0
  201. package/src/types/index.ts +4 -4
  202. package/lib/cjs/AccordionCtx-fe08ff45.js +0 -9
  203. package/lib/cjs/DailyMotion-17b56ecb.js +0 -259
  204. package/lib/cjs/Facebook-0c8d86ee.js +0 -239
  205. package/lib/cjs/FilePlayer-01d6dc08.js +0 -596
  206. package/lib/cjs/Kaltura-40e8e581.js +0 -235
  207. package/lib/cjs/ListCtx-7db7fe04.js +0 -9
  208. package/lib/cjs/Mixcloud-e23f49d6.js +0 -222
  209. package/lib/cjs/Preview-8e490f54.js +0 -227
  210. package/lib/cjs/SoundCloud-2500b6cb.js +0 -249
  211. package/lib/cjs/Streamable-00723065.js +0 -234
  212. package/lib/cjs/TagCtx-929c7753.js +0 -7
  213. package/lib/cjs/Twitch-2c5c5733.js +0 -244
  214. package/lib/cjs/VideoPlayer-5f0a64c6.js +0 -2067
  215. package/lib/cjs/Vidyard-d36d6c45.js +0 -237
  216. package/lib/cjs/Vimeo-d311e3b8.js +0 -285
  217. package/lib/cjs/Wistia-318b4e43.js +0 -288
  218. package/lib/cjs/YouTube-a3796a55.js +0 -377
  219. package/lib/cjs/components/Card/Card.js +0 -43
  220. package/lib/cjs/components/Card/CardGroup.js +0 -25
  221. package/lib/cjs/components/Card/index.js +0 -21
  222. package/lib/cjs/index-0af02e81.js +0 -1154
  223. package/lib/esm/DailyMotion-989c2db3.js +0 -257
  224. package/lib/esm/Facebook-04e9cc59.js +0 -237
  225. package/lib/esm/FilePlayer-0789336d.js +0 -594
  226. package/lib/esm/Kaltura-a9ed37a9.js +0 -233
  227. package/lib/esm/Mixcloud-5a3b4353.js +0 -220
  228. package/lib/esm/Preview-7ca1835e.js +0 -225
  229. package/lib/esm/SoundCloud-47bccd79.js +0 -247
  230. package/lib/esm/Streamable-ee762126.js +0 -232
  231. package/lib/esm/Twitch-3cd4b54b.js +0 -242
  232. package/lib/esm/VideoPlayer-96c2b20c.js +0 -2062
  233. package/lib/esm/Vidyard-258ab0ef.js +0 -235
  234. package/lib/esm/Vimeo-4b29b580.js +0 -283
  235. package/lib/esm/Wistia-3cbce669.js +0 -286
  236. package/lib/esm/YouTube-db52da1c.js +0 -375
  237. package/lib/esm/components/Card/Card.js +0 -41
  238. package/lib/esm/components/Card/index.js +0 -14
  239. package/lib/esm/index-623ce3f5.js +0 -1152
  240. package/lib/types/react/src/components/Card/Card.props.d.ts +0 -110
  241. package/lib/types/react/src/components/Card/index.d.ts +0 -2
  242. package/src/components/Card/Card.props.ts +0 -142
  243. package/src/components/Card/Card.tsx +0 -183
  244. package/src/components/Card/index.ts +0 -2
  245. /package/lib/types/react/src/components/{Card → Cards}/Card.d.ts +0 -0
  246. /package/lib/types/react/src/components/{Card → Cards}/CardGroup.d.ts +0 -0
@@ -3,8 +3,7 @@
3
3
  var tslib = require('tslib');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var classNames = require('classnames');
6
- var require$$0 = require('react');
7
- var index = require('../../index-0af02e81.js');
6
+ var React = require('react');
8
7
  var ReactDOM = require('react-dom');
9
8
  var utils_createChainedFunction = require('../../utils/createChainedFunction.js');
10
9
  var utils_getDefaultDimensionValue = require('../../utils/getDefaultDimensionValue.js');
@@ -39,29 +38,1180 @@ function _inheritsLoose(subClass, superClass) {
39
38
  _setPrototypeOf(subClass, superClass);
40
39
  }
41
40
 
41
+ var propTypes = {exports: {}};
42
+
43
+ var reactIs = {exports: {}};
44
+
45
+ var reactIs_production_min = {};
46
+
47
+ /** @license React v16.13.1
48
+ * react-is.production.min.js
49
+ *
50
+ * Copyright (c) Facebook, Inc. and its affiliates.
51
+ *
52
+ * This source code is licensed under the MIT license found in the
53
+ * LICENSE file in the root directory of this source tree.
54
+ */
55
+
56
+ var hasRequiredReactIs_production_min;
57
+
58
+ function requireReactIs_production_min () {
59
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
60
+ hasRequiredReactIs_production_min = 1;
61
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
62
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
63
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
64
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
65
+ reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
66
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
67
+ return reactIs_production_min;
68
+ }
69
+
70
+ var reactIs_development = {};
71
+
72
+ /** @license React v16.13.1
73
+ * react-is.development.js
74
+ *
75
+ * Copyright (c) Facebook, Inc. and its affiliates.
76
+ *
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */
80
+
81
+ var hasRequiredReactIs_development;
82
+
83
+ function requireReactIs_development () {
84
+ if (hasRequiredReactIs_development) return reactIs_development;
85
+ hasRequiredReactIs_development = 1;
86
+
87
+
88
+
89
+ if (process.env.NODE_ENV !== "production") {
90
+ (function() {
91
+
92
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
93
+ // nor polyfill, then a plain number is used for performance.
94
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
95
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
96
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
97
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
98
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
99
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
100
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
101
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
102
+ // (unstable) APIs that have been removed. Can we remove the symbols?
103
+
104
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
105
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
106
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
107
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
108
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
109
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
110
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
111
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
112
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
113
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
114
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
115
+
116
+ function isValidElementType(type) {
117
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
118
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
119
+ }
120
+
121
+ function typeOf(object) {
122
+ if (typeof object === 'object' && object !== null) {
123
+ var $$typeof = object.$$typeof;
124
+
125
+ switch ($$typeof) {
126
+ case REACT_ELEMENT_TYPE:
127
+ var type = object.type;
128
+
129
+ switch (type) {
130
+ case REACT_ASYNC_MODE_TYPE:
131
+ case REACT_CONCURRENT_MODE_TYPE:
132
+ case REACT_FRAGMENT_TYPE:
133
+ case REACT_PROFILER_TYPE:
134
+ case REACT_STRICT_MODE_TYPE:
135
+ case REACT_SUSPENSE_TYPE:
136
+ return type;
137
+
138
+ default:
139
+ var $$typeofType = type && type.$$typeof;
140
+
141
+ switch ($$typeofType) {
142
+ case REACT_CONTEXT_TYPE:
143
+ case REACT_FORWARD_REF_TYPE:
144
+ case REACT_LAZY_TYPE:
145
+ case REACT_MEMO_TYPE:
146
+ case REACT_PROVIDER_TYPE:
147
+ return $$typeofType;
148
+
149
+ default:
150
+ return $$typeof;
151
+ }
152
+
153
+ }
154
+
155
+ case REACT_PORTAL_TYPE:
156
+ return $$typeof;
157
+ }
158
+ }
159
+
160
+ return undefined;
161
+ } // AsyncMode is deprecated along with isAsyncMode
162
+
163
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
164
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
165
+ var ContextConsumer = REACT_CONTEXT_TYPE;
166
+ var ContextProvider = REACT_PROVIDER_TYPE;
167
+ var Element = REACT_ELEMENT_TYPE;
168
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
169
+ var Fragment = REACT_FRAGMENT_TYPE;
170
+ var Lazy = REACT_LAZY_TYPE;
171
+ var Memo = REACT_MEMO_TYPE;
172
+ var Portal = REACT_PORTAL_TYPE;
173
+ var Profiler = REACT_PROFILER_TYPE;
174
+ var StrictMode = REACT_STRICT_MODE_TYPE;
175
+ var Suspense = REACT_SUSPENSE_TYPE;
176
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
177
+
178
+ function isAsyncMode(object) {
179
+ {
180
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
181
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
182
+
183
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
184
+ }
185
+ }
186
+
187
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
188
+ }
189
+ function isConcurrentMode(object) {
190
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
191
+ }
192
+ function isContextConsumer(object) {
193
+ return typeOf(object) === REACT_CONTEXT_TYPE;
194
+ }
195
+ function isContextProvider(object) {
196
+ return typeOf(object) === REACT_PROVIDER_TYPE;
197
+ }
198
+ function isElement(object) {
199
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
200
+ }
201
+ function isForwardRef(object) {
202
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
203
+ }
204
+ function isFragment(object) {
205
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
206
+ }
207
+ function isLazy(object) {
208
+ return typeOf(object) === REACT_LAZY_TYPE;
209
+ }
210
+ function isMemo(object) {
211
+ return typeOf(object) === REACT_MEMO_TYPE;
212
+ }
213
+ function isPortal(object) {
214
+ return typeOf(object) === REACT_PORTAL_TYPE;
215
+ }
216
+ function isProfiler(object) {
217
+ return typeOf(object) === REACT_PROFILER_TYPE;
218
+ }
219
+ function isStrictMode(object) {
220
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
221
+ }
222
+ function isSuspense(object) {
223
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
224
+ }
225
+
226
+ reactIs_development.AsyncMode = AsyncMode;
227
+ reactIs_development.ConcurrentMode = ConcurrentMode;
228
+ reactIs_development.ContextConsumer = ContextConsumer;
229
+ reactIs_development.ContextProvider = ContextProvider;
230
+ reactIs_development.Element = Element;
231
+ reactIs_development.ForwardRef = ForwardRef;
232
+ reactIs_development.Fragment = Fragment;
233
+ reactIs_development.Lazy = Lazy;
234
+ reactIs_development.Memo = Memo;
235
+ reactIs_development.Portal = Portal;
236
+ reactIs_development.Profiler = Profiler;
237
+ reactIs_development.StrictMode = StrictMode;
238
+ reactIs_development.Suspense = Suspense;
239
+ reactIs_development.isAsyncMode = isAsyncMode;
240
+ reactIs_development.isConcurrentMode = isConcurrentMode;
241
+ reactIs_development.isContextConsumer = isContextConsumer;
242
+ reactIs_development.isContextProvider = isContextProvider;
243
+ reactIs_development.isElement = isElement;
244
+ reactIs_development.isForwardRef = isForwardRef;
245
+ reactIs_development.isFragment = isFragment;
246
+ reactIs_development.isLazy = isLazy;
247
+ reactIs_development.isMemo = isMemo;
248
+ reactIs_development.isPortal = isPortal;
249
+ reactIs_development.isProfiler = isProfiler;
250
+ reactIs_development.isStrictMode = isStrictMode;
251
+ reactIs_development.isSuspense = isSuspense;
252
+ reactIs_development.isValidElementType = isValidElementType;
253
+ reactIs_development.typeOf = typeOf;
254
+ })();
255
+ }
256
+ return reactIs_development;
257
+ }
258
+
259
+ var hasRequiredReactIs;
260
+
261
+ function requireReactIs () {
262
+ if (hasRequiredReactIs) return reactIs.exports;
263
+ hasRequiredReactIs = 1;
264
+ (function (module) {
265
+
266
+ if (process.env.NODE_ENV === 'production') {
267
+ module.exports = requireReactIs_production_min();
268
+ } else {
269
+ module.exports = requireReactIs_development();
270
+ }
271
+ } (reactIs));
272
+ return reactIs.exports;
273
+ }
274
+
275
+ /*
276
+ object-assign
277
+ (c) Sindre Sorhus
278
+ @license MIT
279
+ */
280
+
281
+ var objectAssign;
282
+ var hasRequiredObjectAssign;
283
+
284
+ function requireObjectAssign () {
285
+ if (hasRequiredObjectAssign) return objectAssign;
286
+ hasRequiredObjectAssign = 1;
287
+ /* eslint-disable no-unused-vars */
288
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
289
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
290
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
291
+
292
+ function toObject(val) {
293
+ if (val === null || val === undefined) {
294
+ throw new TypeError('Object.assign cannot be called with null or undefined');
295
+ }
296
+
297
+ return Object(val);
298
+ }
299
+
300
+ function shouldUseNative() {
301
+ try {
302
+ if (!Object.assign) {
303
+ return false;
304
+ }
305
+
306
+ // Detect buggy property enumeration order in older V8 versions.
307
+
308
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
309
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
310
+ test1[5] = 'de';
311
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
312
+ return false;
313
+ }
314
+
315
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
316
+ var test2 = {};
317
+ for (var i = 0; i < 10; i++) {
318
+ test2['_' + String.fromCharCode(i)] = i;
319
+ }
320
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
321
+ return test2[n];
322
+ });
323
+ if (order2.join('') !== '0123456789') {
324
+ return false;
325
+ }
326
+
327
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
328
+ var test3 = {};
329
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
330
+ test3[letter] = letter;
331
+ });
332
+ if (Object.keys(Object.assign({}, test3)).join('') !==
333
+ 'abcdefghijklmnopqrst') {
334
+ return false;
335
+ }
336
+
337
+ return true;
338
+ } catch (err) {
339
+ // We don't expect any of the above to throw, but better to be safe.
340
+ return false;
341
+ }
342
+ }
343
+
344
+ objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
345
+ var from;
346
+ var to = toObject(target);
347
+ var symbols;
348
+
349
+ for (var s = 1; s < arguments.length; s++) {
350
+ from = Object(arguments[s]);
351
+
352
+ for (var key in from) {
353
+ if (hasOwnProperty.call(from, key)) {
354
+ to[key] = from[key];
355
+ }
356
+ }
357
+
358
+ if (getOwnPropertySymbols) {
359
+ symbols = getOwnPropertySymbols(from);
360
+ for (var i = 0; i < symbols.length; i++) {
361
+ if (propIsEnumerable.call(from, symbols[i])) {
362
+ to[symbols[i]] = from[symbols[i]];
363
+ }
364
+ }
365
+ }
366
+ }
367
+
368
+ return to;
369
+ };
370
+ return objectAssign;
371
+ }
372
+
373
+ /**
374
+ * Copyright (c) 2013-present, Facebook, Inc.
375
+ *
376
+ * This source code is licensed under the MIT license found in the
377
+ * LICENSE file in the root directory of this source tree.
378
+ */
379
+
380
+ var ReactPropTypesSecret_1;
381
+ var hasRequiredReactPropTypesSecret;
382
+
383
+ function requireReactPropTypesSecret () {
384
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
385
+ hasRequiredReactPropTypesSecret = 1;
386
+
387
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
388
+
389
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
390
+ return ReactPropTypesSecret_1;
391
+ }
392
+
393
+ /**
394
+ * Copyright (c) 2013-present, Facebook, Inc.
395
+ *
396
+ * This source code is licensed under the MIT license found in the
397
+ * LICENSE file in the root directory of this source tree.
398
+ */
399
+
400
+ var checkPropTypes_1;
401
+ var hasRequiredCheckPropTypes;
402
+
403
+ function requireCheckPropTypes () {
404
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
405
+ hasRequiredCheckPropTypes = 1;
406
+
407
+ var printWarning = function() {};
408
+
409
+ if (process.env.NODE_ENV !== 'production') {
410
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
411
+ var loggedTypeFailures = {};
412
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
413
+
414
+ printWarning = function(text) {
415
+ var message = 'Warning: ' + text;
416
+ if (typeof console !== 'undefined') {
417
+ console.error(message);
418
+ }
419
+ try {
420
+ // --- Welcome to debugging React ---
421
+ // This error was thrown as a convenience so that you can use this stack
422
+ // to find the callsite that caused this warning to fire.
423
+ throw new Error(message);
424
+ } catch (x) {}
425
+ };
426
+ }
427
+
428
+ /**
429
+ * Assert that the values match with the type specs.
430
+ * Error messages are memorized and will only be shown once.
431
+ *
432
+ * @param {object} typeSpecs Map of name to a ReactPropType
433
+ * @param {object} values Runtime values that need to be type-checked
434
+ * @param {string} location e.g. "prop", "context", "child context"
435
+ * @param {string} componentName Name of the component for error messages.
436
+ * @param {?Function} getStack Returns the component stack.
437
+ * @private
438
+ */
439
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
440
+ if (process.env.NODE_ENV !== 'production') {
441
+ for (var typeSpecName in typeSpecs) {
442
+ if (has(typeSpecs, typeSpecName)) {
443
+ var error;
444
+ // Prop type validation may throw. In case they do, we don't want to
445
+ // fail the render phase where it didn't fail before. So we log it.
446
+ // After these have been cleaned up, we'll let them throw.
447
+ try {
448
+ // This is intentionally an invariant that gets caught. It's the same
449
+ // behavior as without this statement except with a better message.
450
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
451
+ var err = Error(
452
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
453
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
454
+ );
455
+ err.name = 'Invariant Violation';
456
+ throw err;
457
+ }
458
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
459
+ } catch (ex) {
460
+ error = ex;
461
+ }
462
+ if (error && !(error instanceof Error)) {
463
+ printWarning(
464
+ (componentName || 'React class') + ': type specification of ' +
465
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
466
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
467
+ 'You may have forgotten to pass an argument to the type checker ' +
468
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
469
+ 'shape all require an argument).'
470
+ );
471
+ }
472
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
473
+ // Only monitor this failure once because there tends to be a lot of the
474
+ // same error.
475
+ loggedTypeFailures[error.message] = true;
476
+
477
+ var stack = getStack ? getStack() : '';
478
+
479
+ printWarning(
480
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
481
+ );
482
+ }
483
+ }
484
+ }
485
+ }
486
+ }
487
+
488
+ /**
489
+ * Resets warning cache when testing.
490
+ *
491
+ * @private
492
+ */
493
+ checkPropTypes.resetWarningCache = function() {
494
+ if (process.env.NODE_ENV !== 'production') {
495
+ loggedTypeFailures = {};
496
+ }
497
+ };
498
+
499
+ checkPropTypes_1 = checkPropTypes;
500
+ return checkPropTypes_1;
501
+ }
502
+
503
+ /**
504
+ * Copyright (c) 2013-present, Facebook, Inc.
505
+ *
506
+ * This source code is licensed under the MIT license found in the
507
+ * LICENSE file in the root directory of this source tree.
508
+ */
509
+
510
+ var factoryWithTypeCheckers;
511
+ var hasRequiredFactoryWithTypeCheckers;
512
+
513
+ function requireFactoryWithTypeCheckers () {
514
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
515
+ hasRequiredFactoryWithTypeCheckers = 1;
516
+
517
+ var ReactIs = requireReactIs();
518
+ var assign = requireObjectAssign();
519
+
520
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
521
+ var checkPropTypes = requireCheckPropTypes();
522
+
523
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
524
+ var printWarning = function() {};
525
+
526
+ if (process.env.NODE_ENV !== 'production') {
527
+ printWarning = function(text) {
528
+ var message = 'Warning: ' + text;
529
+ if (typeof console !== 'undefined') {
530
+ console.error(message);
531
+ }
532
+ try {
533
+ // --- Welcome to debugging React ---
534
+ // This error was thrown as a convenience so that you can use this stack
535
+ // to find the callsite that caused this warning to fire.
536
+ throw new Error(message);
537
+ } catch (x) {}
538
+ };
539
+ }
540
+
541
+ function emptyFunctionThatReturnsNull() {
542
+ return null;
543
+ }
544
+
545
+ factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
546
+ /* global Symbol */
547
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
548
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
549
+
550
+ /**
551
+ * Returns the iterator method function contained on the iterable object.
552
+ *
553
+ * Be sure to invoke the function with the iterable as context:
554
+ *
555
+ * var iteratorFn = getIteratorFn(myIterable);
556
+ * if (iteratorFn) {
557
+ * var iterator = iteratorFn.call(myIterable);
558
+ * ...
559
+ * }
560
+ *
561
+ * @param {?object} maybeIterable
562
+ * @return {?function}
563
+ */
564
+ function getIteratorFn(maybeIterable) {
565
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
566
+ if (typeof iteratorFn === 'function') {
567
+ return iteratorFn;
568
+ }
569
+ }
570
+
571
+ /**
572
+ * Collection of methods that allow declaration and validation of props that are
573
+ * supplied to React components. Example usage:
574
+ *
575
+ * var Props = require('ReactPropTypes');
576
+ * var MyArticle = React.createClass({
577
+ * propTypes: {
578
+ * // An optional string prop named "description".
579
+ * description: Props.string,
580
+ *
581
+ * // A required enum prop named "category".
582
+ * category: Props.oneOf(['News','Photos']).isRequired,
583
+ *
584
+ * // A prop named "dialog" that requires an instance of Dialog.
585
+ * dialog: Props.instanceOf(Dialog).isRequired
586
+ * },
587
+ * render: function() { ... }
588
+ * });
589
+ *
590
+ * A more formal specification of how these methods are used:
591
+ *
592
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
593
+ * decl := ReactPropTypes.{type}(.isRequired)?
594
+ *
595
+ * Each and every declaration produces a function with the same signature. This
596
+ * allows the creation of custom validation functions. For example:
597
+ *
598
+ * var MyLink = React.createClass({
599
+ * propTypes: {
600
+ * // An optional string or URI prop named "href".
601
+ * href: function(props, propName, componentName) {
602
+ * var propValue = props[propName];
603
+ * if (propValue != null && typeof propValue !== 'string' &&
604
+ * !(propValue instanceof URI)) {
605
+ * return new Error(
606
+ * 'Expected a string or an URI for ' + propName + ' in ' +
607
+ * componentName
608
+ * );
609
+ * }
610
+ * }
611
+ * },
612
+ * render: function() {...}
613
+ * });
614
+ *
615
+ * @internal
616
+ */
617
+
618
+ var ANONYMOUS = '<<anonymous>>';
619
+
620
+ // Important!
621
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
622
+ var ReactPropTypes = {
623
+ array: createPrimitiveTypeChecker('array'),
624
+ bool: createPrimitiveTypeChecker('boolean'),
625
+ func: createPrimitiveTypeChecker('function'),
626
+ number: createPrimitiveTypeChecker('number'),
627
+ object: createPrimitiveTypeChecker('object'),
628
+ string: createPrimitiveTypeChecker('string'),
629
+ symbol: createPrimitiveTypeChecker('symbol'),
630
+
631
+ any: createAnyTypeChecker(),
632
+ arrayOf: createArrayOfTypeChecker,
633
+ element: createElementTypeChecker(),
634
+ elementType: createElementTypeTypeChecker(),
635
+ instanceOf: createInstanceTypeChecker,
636
+ node: createNodeChecker(),
637
+ objectOf: createObjectOfTypeChecker,
638
+ oneOf: createEnumTypeChecker,
639
+ oneOfType: createUnionTypeChecker,
640
+ shape: createShapeTypeChecker,
641
+ exact: createStrictShapeTypeChecker,
642
+ };
643
+
644
+ /**
645
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
646
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
647
+ */
648
+ /*eslint-disable no-self-compare*/
649
+ function is(x, y) {
650
+ // SameValue algorithm
651
+ if (x === y) {
652
+ // Steps 1-5, 7-10
653
+ // Steps 6.b-6.e: +0 != -0
654
+ return x !== 0 || 1 / x === 1 / y;
655
+ } else {
656
+ // Step 6.a: NaN == NaN
657
+ return x !== x && y !== y;
658
+ }
659
+ }
660
+ /*eslint-enable no-self-compare*/
661
+
662
+ /**
663
+ * We use an Error-like object for backward compatibility as people may call
664
+ * PropTypes directly and inspect their output. However, we don't use real
665
+ * Errors anymore. We don't inspect their stack anyway, and creating them
666
+ * is prohibitively expensive if they are created too often, such as what
667
+ * happens in oneOfType() for any type before the one that matched.
668
+ */
669
+ function PropTypeError(message) {
670
+ this.message = message;
671
+ this.stack = '';
672
+ }
673
+ // Make `instanceof Error` still work for returned errors.
674
+ PropTypeError.prototype = Error.prototype;
675
+
676
+ function createChainableTypeChecker(validate) {
677
+ if (process.env.NODE_ENV !== 'production') {
678
+ var manualPropTypeCallCache = {};
679
+ var manualPropTypeWarningCount = 0;
680
+ }
681
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
682
+ componentName = componentName || ANONYMOUS;
683
+ propFullName = propFullName || propName;
684
+
685
+ if (secret !== ReactPropTypesSecret) {
686
+ if (throwOnDirectAccess) {
687
+ // New behavior only for users of `prop-types` package
688
+ var err = new Error(
689
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
690
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
691
+ 'Read more at http://fb.me/use-check-prop-types'
692
+ );
693
+ err.name = 'Invariant Violation';
694
+ throw err;
695
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
696
+ // Old behavior for people using React.PropTypes
697
+ var cacheKey = componentName + ':' + propName;
698
+ if (
699
+ !manualPropTypeCallCache[cacheKey] &&
700
+ // Avoid spamming the console because they are often not actionable except for lib authors
701
+ manualPropTypeWarningCount < 3
702
+ ) {
703
+ printWarning(
704
+ 'You are manually calling a React.PropTypes validation ' +
705
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
706
+ 'and will throw in the standalone `prop-types` package. ' +
707
+ 'You may be seeing this warning due to a third-party PropTypes ' +
708
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
709
+ );
710
+ manualPropTypeCallCache[cacheKey] = true;
711
+ manualPropTypeWarningCount++;
712
+ }
713
+ }
714
+ }
715
+ if (props[propName] == null) {
716
+ if (isRequired) {
717
+ if (props[propName] === null) {
718
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
719
+ }
720
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
721
+ }
722
+ return null;
723
+ } else {
724
+ return validate(props, propName, componentName, location, propFullName);
725
+ }
726
+ }
727
+
728
+ var chainedCheckType = checkType.bind(null, false);
729
+ chainedCheckType.isRequired = checkType.bind(null, true);
730
+
731
+ return chainedCheckType;
732
+ }
733
+
734
+ function createPrimitiveTypeChecker(expectedType) {
735
+ function validate(props, propName, componentName, location, propFullName, secret) {
736
+ var propValue = props[propName];
737
+ var propType = getPropType(propValue);
738
+ if (propType !== expectedType) {
739
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
740
+ // check, but we can offer a more precise error message here rather than
741
+ // 'of type `object`'.
742
+ var preciseType = getPreciseType(propValue);
743
+
744
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
745
+ }
746
+ return null;
747
+ }
748
+ return createChainableTypeChecker(validate);
749
+ }
750
+
751
+ function createAnyTypeChecker() {
752
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
753
+ }
754
+
755
+ function createArrayOfTypeChecker(typeChecker) {
756
+ function validate(props, propName, componentName, location, propFullName) {
757
+ if (typeof typeChecker !== 'function') {
758
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
759
+ }
760
+ var propValue = props[propName];
761
+ if (!Array.isArray(propValue)) {
762
+ var propType = getPropType(propValue);
763
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
764
+ }
765
+ for (var i = 0; i < propValue.length; i++) {
766
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
767
+ if (error instanceof Error) {
768
+ return error;
769
+ }
770
+ }
771
+ return null;
772
+ }
773
+ return createChainableTypeChecker(validate);
774
+ }
775
+
776
+ function createElementTypeChecker() {
777
+ function validate(props, propName, componentName, location, propFullName) {
778
+ var propValue = props[propName];
779
+ if (!isValidElement(propValue)) {
780
+ var propType = getPropType(propValue);
781
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
782
+ }
783
+ return null;
784
+ }
785
+ return createChainableTypeChecker(validate);
786
+ }
787
+
788
+ function createElementTypeTypeChecker() {
789
+ function validate(props, propName, componentName, location, propFullName) {
790
+ var propValue = props[propName];
791
+ if (!ReactIs.isValidElementType(propValue)) {
792
+ var propType = getPropType(propValue);
793
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
794
+ }
795
+ return null;
796
+ }
797
+ return createChainableTypeChecker(validate);
798
+ }
799
+
800
+ function createInstanceTypeChecker(expectedClass) {
801
+ function validate(props, propName, componentName, location, propFullName) {
802
+ if (!(props[propName] instanceof expectedClass)) {
803
+ var expectedClassName = expectedClass.name || ANONYMOUS;
804
+ var actualClassName = getClassName(props[propName]);
805
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
806
+ }
807
+ return null;
808
+ }
809
+ return createChainableTypeChecker(validate);
810
+ }
811
+
812
+ function createEnumTypeChecker(expectedValues) {
813
+ if (!Array.isArray(expectedValues)) {
814
+ if (process.env.NODE_ENV !== 'production') {
815
+ if (arguments.length > 1) {
816
+ printWarning(
817
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
818
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
819
+ );
820
+ } else {
821
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
822
+ }
823
+ }
824
+ return emptyFunctionThatReturnsNull;
825
+ }
826
+
827
+ function validate(props, propName, componentName, location, propFullName) {
828
+ var propValue = props[propName];
829
+ for (var i = 0; i < expectedValues.length; i++) {
830
+ if (is(propValue, expectedValues[i])) {
831
+ return null;
832
+ }
833
+ }
834
+
835
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
836
+ var type = getPreciseType(value);
837
+ if (type === 'symbol') {
838
+ return String(value);
839
+ }
840
+ return value;
841
+ });
842
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
843
+ }
844
+ return createChainableTypeChecker(validate);
845
+ }
846
+
847
+ function createObjectOfTypeChecker(typeChecker) {
848
+ function validate(props, propName, componentName, location, propFullName) {
849
+ if (typeof typeChecker !== 'function') {
850
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
851
+ }
852
+ var propValue = props[propName];
853
+ var propType = getPropType(propValue);
854
+ if (propType !== 'object') {
855
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
856
+ }
857
+ for (var key in propValue) {
858
+ if (has(propValue, key)) {
859
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
860
+ if (error instanceof Error) {
861
+ return error;
862
+ }
863
+ }
864
+ }
865
+ return null;
866
+ }
867
+ return createChainableTypeChecker(validate);
868
+ }
869
+
870
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
871
+ if (!Array.isArray(arrayOfTypeCheckers)) {
872
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
873
+ return emptyFunctionThatReturnsNull;
874
+ }
875
+
876
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
877
+ var checker = arrayOfTypeCheckers[i];
878
+ if (typeof checker !== 'function') {
879
+ printWarning(
880
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
881
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
882
+ );
883
+ return emptyFunctionThatReturnsNull;
884
+ }
885
+ }
886
+
887
+ function validate(props, propName, componentName, location, propFullName) {
888
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
889
+ var checker = arrayOfTypeCheckers[i];
890
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
891
+ return null;
892
+ }
893
+ }
894
+
895
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
896
+ }
897
+ return createChainableTypeChecker(validate);
898
+ }
899
+
900
+ function createNodeChecker() {
901
+ function validate(props, propName, componentName, location, propFullName) {
902
+ if (!isNode(props[propName])) {
903
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
904
+ }
905
+ return null;
906
+ }
907
+ return createChainableTypeChecker(validate);
908
+ }
909
+
910
+ function createShapeTypeChecker(shapeTypes) {
911
+ function validate(props, propName, componentName, location, propFullName) {
912
+ var propValue = props[propName];
913
+ var propType = getPropType(propValue);
914
+ if (propType !== 'object') {
915
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
916
+ }
917
+ for (var key in shapeTypes) {
918
+ var checker = shapeTypes[key];
919
+ if (!checker) {
920
+ continue;
921
+ }
922
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
923
+ if (error) {
924
+ return error;
925
+ }
926
+ }
927
+ return null;
928
+ }
929
+ return createChainableTypeChecker(validate);
930
+ }
931
+
932
+ function createStrictShapeTypeChecker(shapeTypes) {
933
+ function validate(props, propName, componentName, location, propFullName) {
934
+ var propValue = props[propName];
935
+ var propType = getPropType(propValue);
936
+ if (propType !== 'object') {
937
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
938
+ }
939
+ // We need to check all keys in case some are required but missing from
940
+ // props.
941
+ var allKeys = assign({}, props[propName], shapeTypes);
942
+ for (var key in allKeys) {
943
+ var checker = shapeTypes[key];
944
+ if (!checker) {
945
+ return new PropTypeError(
946
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
947
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
948
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
949
+ );
950
+ }
951
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
952
+ if (error) {
953
+ return error;
954
+ }
955
+ }
956
+ return null;
957
+ }
958
+
959
+ return createChainableTypeChecker(validate);
960
+ }
961
+
962
+ function isNode(propValue) {
963
+ switch (typeof propValue) {
964
+ case 'number':
965
+ case 'string':
966
+ case 'undefined':
967
+ return true;
968
+ case 'boolean':
969
+ return !propValue;
970
+ case 'object':
971
+ if (Array.isArray(propValue)) {
972
+ return propValue.every(isNode);
973
+ }
974
+ if (propValue === null || isValidElement(propValue)) {
975
+ return true;
976
+ }
977
+
978
+ var iteratorFn = getIteratorFn(propValue);
979
+ if (iteratorFn) {
980
+ var iterator = iteratorFn.call(propValue);
981
+ var step;
982
+ if (iteratorFn !== propValue.entries) {
983
+ while (!(step = iterator.next()).done) {
984
+ if (!isNode(step.value)) {
985
+ return false;
986
+ }
987
+ }
988
+ } else {
989
+ // Iterator will provide entry [k,v] tuples rather than values.
990
+ while (!(step = iterator.next()).done) {
991
+ var entry = step.value;
992
+ if (entry) {
993
+ if (!isNode(entry[1])) {
994
+ return false;
995
+ }
996
+ }
997
+ }
998
+ }
999
+ } else {
1000
+ return false;
1001
+ }
1002
+
1003
+ return true;
1004
+ default:
1005
+ return false;
1006
+ }
1007
+ }
1008
+
1009
+ function isSymbol(propType, propValue) {
1010
+ // Native Symbol.
1011
+ if (propType === 'symbol') {
1012
+ return true;
1013
+ }
1014
+
1015
+ // falsy value can't be a Symbol
1016
+ if (!propValue) {
1017
+ return false;
1018
+ }
1019
+
1020
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1021
+ if (propValue['@@toStringTag'] === 'Symbol') {
1022
+ return true;
1023
+ }
1024
+
1025
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1026
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1027
+ return true;
1028
+ }
1029
+
1030
+ return false;
1031
+ }
1032
+
1033
+ // Equivalent of `typeof` but with special handling for array and regexp.
1034
+ function getPropType(propValue) {
1035
+ var propType = typeof propValue;
1036
+ if (Array.isArray(propValue)) {
1037
+ return 'array';
1038
+ }
1039
+ if (propValue instanceof RegExp) {
1040
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1041
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1042
+ // passes PropTypes.object.
1043
+ return 'object';
1044
+ }
1045
+ if (isSymbol(propType, propValue)) {
1046
+ return 'symbol';
1047
+ }
1048
+ return propType;
1049
+ }
1050
+
1051
+ // This handles more types than `getPropType`. Only used for error messages.
1052
+ // See `createPrimitiveTypeChecker`.
1053
+ function getPreciseType(propValue) {
1054
+ if (typeof propValue === 'undefined' || propValue === null) {
1055
+ return '' + propValue;
1056
+ }
1057
+ var propType = getPropType(propValue);
1058
+ if (propType === 'object') {
1059
+ if (propValue instanceof Date) {
1060
+ return 'date';
1061
+ } else if (propValue instanceof RegExp) {
1062
+ return 'regexp';
1063
+ }
1064
+ }
1065
+ return propType;
1066
+ }
1067
+
1068
+ // Returns a string that is postfixed to a warning about an invalid type.
1069
+ // For example, "undefined" or "of type array"
1070
+ function getPostfixForTypeWarning(value) {
1071
+ var type = getPreciseType(value);
1072
+ switch (type) {
1073
+ case 'array':
1074
+ case 'object':
1075
+ return 'an ' + type;
1076
+ case 'boolean':
1077
+ case 'date':
1078
+ case 'regexp':
1079
+ return 'a ' + type;
1080
+ default:
1081
+ return type;
1082
+ }
1083
+ }
1084
+
1085
+ // Returns class name of the object, if any.
1086
+ function getClassName(propValue) {
1087
+ if (!propValue.constructor || !propValue.constructor.name) {
1088
+ return ANONYMOUS;
1089
+ }
1090
+ return propValue.constructor.name;
1091
+ }
1092
+
1093
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1094
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1095
+ ReactPropTypes.PropTypes = ReactPropTypes;
1096
+
1097
+ return ReactPropTypes;
1098
+ };
1099
+ return factoryWithTypeCheckers;
1100
+ }
1101
+
1102
+ /**
1103
+ * Copyright (c) 2013-present, Facebook, Inc.
1104
+ *
1105
+ * This source code is licensed under the MIT license found in the
1106
+ * LICENSE file in the root directory of this source tree.
1107
+ */
1108
+
1109
+ var factoryWithThrowingShims;
1110
+ var hasRequiredFactoryWithThrowingShims;
1111
+
1112
+ function requireFactoryWithThrowingShims () {
1113
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1114
+ hasRequiredFactoryWithThrowingShims = 1;
1115
+
1116
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
1117
+
1118
+ function emptyFunction() {}
1119
+ function emptyFunctionWithReset() {}
1120
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1121
+
1122
+ factoryWithThrowingShims = function() {
1123
+ function shim(props, propName, componentName, location, propFullName, secret) {
1124
+ if (secret === ReactPropTypesSecret) {
1125
+ // It is still safe when called from React.
1126
+ return;
1127
+ }
1128
+ var err = new Error(
1129
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1130
+ 'Use PropTypes.checkPropTypes() to call them. ' +
1131
+ 'Read more at http://fb.me/use-check-prop-types'
1132
+ );
1133
+ err.name = 'Invariant Violation';
1134
+ throw err;
1135
+ } shim.isRequired = shim;
1136
+ function getShim() {
1137
+ return shim;
1138
+ } // Important!
1139
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1140
+ var ReactPropTypes = {
1141
+ array: shim,
1142
+ bool: shim,
1143
+ func: shim,
1144
+ number: shim,
1145
+ object: shim,
1146
+ string: shim,
1147
+ symbol: shim,
1148
+
1149
+ any: shim,
1150
+ arrayOf: getShim,
1151
+ element: shim,
1152
+ elementType: shim,
1153
+ instanceOf: getShim,
1154
+ node: shim,
1155
+ objectOf: getShim,
1156
+ oneOf: getShim,
1157
+ oneOfType: getShim,
1158
+ shape: getShim,
1159
+ exact: getShim,
1160
+
1161
+ checkPropTypes: emptyFunctionWithReset,
1162
+ resetWarningCache: emptyFunction
1163
+ };
1164
+
1165
+ ReactPropTypes.PropTypes = ReactPropTypes;
1166
+
1167
+ return ReactPropTypes;
1168
+ };
1169
+ return factoryWithThrowingShims;
1170
+ }
1171
+
1172
+ /**
1173
+ * Copyright (c) 2013-present, Facebook, Inc.
1174
+ *
1175
+ * This source code is licensed under the MIT license found in the
1176
+ * LICENSE file in the root directory of this source tree.
1177
+ */
1178
+
1179
+ if (process.env.NODE_ENV !== 'production') {
1180
+ var ReactIs = requireReactIs();
1181
+
1182
+ // By explicitly using `prop-types` you are opting into new development behavior.
1183
+ // http://fb.me/prop-types-in-prod
1184
+ var throwOnDirectAccess = true;
1185
+ propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1186
+ } else {
1187
+ // By explicitly using `prop-types` you are opting into new production behavior.
1188
+ // http://fb.me/prop-types-in-prod
1189
+ propTypes.exports = requireFactoryWithThrowingShims()();
1190
+ }
1191
+
42
1192
  var config = {
43
1193
  disabled: false
44
1194
  };
45
1195
 
46
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? index.propTypes.exports.oneOfType([index.propTypes.exports.number, index.propTypes.exports.shape({
47
- enter: index.propTypes.exports.number,
48
- exit: index.propTypes.exports.number,
49
- appear: index.propTypes.exports.number
1196
+ var timeoutsShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.shape({
1197
+ enter: propTypes.exports.number,
1198
+ exit: propTypes.exports.number,
1199
+ appear: propTypes.exports.number
50
1200
  }).isRequired]) : null;
51
- process.env.NODE_ENV !== 'production' ? index.propTypes.exports.oneOfType([index.propTypes.exports.string, index.propTypes.exports.shape({
52
- enter: index.propTypes.exports.string,
53
- exit: index.propTypes.exports.string,
54
- active: index.propTypes.exports.string
55
- }), index.propTypes.exports.shape({
56
- enter: index.propTypes.exports.string,
57
- enterDone: index.propTypes.exports.string,
58
- enterActive: index.propTypes.exports.string,
59
- exit: index.propTypes.exports.string,
60
- exitDone: index.propTypes.exports.string,
61
- exitActive: index.propTypes.exports.string
1201
+ process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.shape({
1202
+ enter: propTypes.exports.string,
1203
+ exit: propTypes.exports.string,
1204
+ active: propTypes.exports.string
1205
+ }), propTypes.exports.shape({
1206
+ enter: propTypes.exports.string,
1207
+ enterDone: propTypes.exports.string,
1208
+ enterActive: propTypes.exports.string,
1209
+ exit: propTypes.exports.string,
1210
+ exitDone: propTypes.exports.string,
1211
+ exitActive: propTypes.exports.string
62
1212
  })]) : null;
63
1213
 
64
- var TransitionGroupContext = require$$0.createContext(null);
1214
+ var TransitionGroupContext = React.createContext(null);
65
1215
 
66
1216
  var UNMOUNTED = 'unmounted';
67
1217
  var EXITED = 'exited';
@@ -451,14 +1601,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
451
1601
  return (
452
1602
  /*#__PURE__*/
453
1603
  // allows for nested Transitions
454
- require$$0.createElement(TransitionGroupContext.Provider, {
1604
+ React.createElement(TransitionGroupContext.Provider, {
455
1605
  value: null
456
- }, typeof children === 'function' ? children(status, childProps) : require$$0.cloneElement(require$$0.Children.only(children), childProps))
1606
+ }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
457
1607
  );
458
1608
  };
459
1609
 
460
1610
  return Transition;
461
- }(require$$0.Component);
1611
+ }(React.Component);
462
1612
 
463
1613
  Transition.contextType = TransitionGroupContext;
464
1614
  Transition.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -473,8 +1623,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
473
1623
  * (see
474
1624
  * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
475
1625
  */
476
- nodeRef: index.propTypes.exports.shape({
477
- current: typeof Element === 'undefined' ? index.propTypes.exports.any : index.propTypes.exports.instanceOf(Element)
1626
+ nodeRef: propTypes.exports.shape({
1627
+ current: typeof Element === 'undefined' ? propTypes.exports.any : propTypes.exports.instanceOf(Element)
478
1628
  }),
479
1629
 
480
1630
  /**
@@ -491,12 +1641,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
491
1641
  * </Transition>
492
1642
  * ```
493
1643
  */
494
- children: index.propTypes.exports.oneOfType([index.propTypes.exports.func.isRequired, index.propTypes.exports.element.isRequired]).isRequired,
1644
+ children: propTypes.exports.oneOfType([propTypes.exports.func.isRequired, propTypes.exports.element.isRequired]).isRequired,
495
1645
 
496
1646
  /**
497
1647
  * Show the component; triggers the enter or exit states
498
1648
  */
499
- in: index.propTypes.exports.bool,
1649
+ in: propTypes.exports.bool,
500
1650
 
501
1651
  /**
502
1652
  * By default the child component is mounted immediately along with
@@ -504,13 +1654,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
504
1654
  * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
505
1655
  * mounted, even on "exited", unless you also specify `unmountOnExit`.
506
1656
  */
507
- mountOnEnter: index.propTypes.exports.bool,
1657
+ mountOnEnter: propTypes.exports.bool,
508
1658
 
509
1659
  /**
510
1660
  * By default the child component stays mounted after it reaches the `'exited'` state.
511
1661
  * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
512
1662
  */
513
- unmountOnExit: index.propTypes.exports.bool,
1663
+ unmountOnExit: propTypes.exports.bool,
514
1664
 
515
1665
  /**
516
1666
  * By default the child component does not perform the enter transition when
@@ -523,17 +1673,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
523
1673
  * > additional `.appear-*` classes, that way you can choose to style it
524
1674
  * > differently.
525
1675
  */
526
- appear: index.propTypes.exports.bool,
1676
+ appear: propTypes.exports.bool,
527
1677
 
528
1678
  /**
529
1679
  * Enable or disable enter transitions.
530
1680
  */
531
- enter: index.propTypes.exports.bool,
1681
+ enter: propTypes.exports.bool,
532
1682
 
533
1683
  /**
534
1684
  * Enable or disable exit transitions.
535
1685
  */
536
- exit: index.propTypes.exports.bool,
1686
+ exit: propTypes.exports.bool,
537
1687
 
538
1688
  /**
539
1689
  * The duration of the transition, in milliseconds.
@@ -586,7 +1736,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
586
1736
  * }}
587
1737
  * ```
588
1738
  */
589
- addEndListener: index.propTypes.exports.func,
1739
+ addEndListener: propTypes.exports.func,
590
1740
 
591
1741
  /**
592
1742
  * Callback fired before the "entering" status is applied. An extra parameter
@@ -596,7 +1746,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
596
1746
  *
597
1747
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
598
1748
  */
599
- onEnter: index.propTypes.exports.func,
1749
+ onEnter: propTypes.exports.func,
600
1750
 
601
1751
  /**
602
1752
  * Callback fired after the "entering" status is applied. An extra parameter
@@ -606,7 +1756,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
606
1756
  *
607
1757
  * @type Function(node: HtmlElement, isAppearing: bool)
608
1758
  */
609
- onEntering: index.propTypes.exports.func,
1759
+ onEntering: propTypes.exports.func,
610
1760
 
611
1761
  /**
612
1762
  * Callback fired after the "entered" status is applied. An extra parameter
@@ -616,7 +1766,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
616
1766
  *
617
1767
  * @type Function(node: HtmlElement, isAppearing: bool) -> void
618
1768
  */
619
- onEntered: index.propTypes.exports.func,
1769
+ onEntered: propTypes.exports.func,
620
1770
 
621
1771
  /**
622
1772
  * Callback fired before the "exiting" status is applied.
@@ -625,7 +1775,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
625
1775
  *
626
1776
  * @type Function(node: HtmlElement) -> void
627
1777
  */
628
- onExit: index.propTypes.exports.func,
1778
+ onExit: propTypes.exports.func,
629
1779
 
630
1780
  /**
631
1781
  * Callback fired after the "exiting" status is applied.
@@ -634,7 +1784,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
634
1784
  *
635
1785
  * @type Function(node: HtmlElement) -> void
636
1786
  */
637
- onExiting: index.propTypes.exports.func,
1787
+ onExiting: propTypes.exports.func,
638
1788
 
639
1789
  /**
640
1790
  * Callback fired after the "exited" status is applied.
@@ -643,7 +1793,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
643
1793
  *
644
1794
  * @type Function(node: HtmlElement) -> void
645
1795
  */
646
- onExited: index.propTypes.exports.func
1796
+ onExited: propTypes.exports.func
647
1797
  } : {}; // Name the function so it is clearer in the documentation
648
1798
 
649
1799
  function noop() {}
@@ -674,36 +1824,36 @@ const collapseStyles = {
674
1824
  [ENTERING]: "expanding",
675
1825
  [ENTERED]: "collapse show",
676
1826
  };
677
- const Collapse = require$$0.forwardRef((_a, ref) => {
1827
+ const Collapse = React.forwardRef((_a, ref) => {
678
1828
  var { dimension = "height", panelIn = false, getDimensionValue = utils_getDefaultDimensionValue, timeout = 300, onEnter, onEntering, onEntered, onExit, onExiting, className, children, role } = _a, rest = tslib.__rest(_a, ["dimension", "panelIn", "getDimensionValue", "timeout", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "role"]);
679
1829
  /* Compute dimension */
680
1830
  const computedDimension = typeof dimension === "function" ? dimension() : dimension;
681
1831
  /* -- Expanding -- */
682
- const handleEnter = require$$0.useMemo(() => utils_createChainedFunction((elem) => {
1832
+ const handleEnter = React.useMemo(() => utils_createChainedFunction((elem) => {
683
1833
  elem.style[computedDimension] = "0";
684
1834
  elem.style.transitionDuration = `${timeout + 50}ms`;
685
1835
  }, onEnter), [computedDimension, onEnter, timeout]);
686
- const handleEntering = require$$0.useMemo(() => utils_createChainedFunction((elem) => {
1836
+ const handleEntering = React.useMemo(() => utils_createChainedFunction((elem) => {
687
1837
  const scroll = `scroll${computedDimension[0].toUpperCase()}${computedDimension.slice(1)}`;
688
1838
  elem.style[computedDimension] = `${elem[scroll]}px`;
689
1839
  elem.style.transitionDuration = `${timeout + 50}ms`;
690
1840
  }, onEntering), [computedDimension, onEntering, timeout]);
691
- const handleEntered = require$$0.useMemo(() => utils_createChainedFunction((elem) => {
1841
+ const handleEntered = React.useMemo(() => utils_createChainedFunction((elem) => {
692
1842
  elem.style[computedDimension] = "none";
693
1843
  elem.style.transitionDuration = `${timeout + 50}ms`;
694
1844
  }, onEntered), [computedDimension, onEntered, timeout]);
695
1845
  /* -- Collapsing -- */
696
- const handleExit = require$$0.useMemo(() => utils_createChainedFunction((elem) => {
1846
+ const handleExit = React.useMemo(() => utils_createChainedFunction((elem) => {
697
1847
  elem.style[computedDimension] = `${getDimensionValue(computedDimension, elem)}px`;
698
1848
  utils_triggerBrowserReflow(elem);
699
1849
  elem.style.transitionDuration = `${timeout + 50}ms`;
700
1850
  }, onExit), [onExit, getDimensionValue, computedDimension, timeout]);
701
- const handleExiting = require$$0.useMemo(() => utils_createChainedFunction((elem) => {
1851
+ const handleExiting = React.useMemo(() => utils_createChainedFunction((elem) => {
702
1852
  elem.style[computedDimension] = "0px";
703
1853
  elem.style.transitionDuration = `${timeout + 50}ms`;
704
1854
  }, onExiting), [computedDimension, onExiting, timeout]);
705
1855
  return (jsxRuntime.jsx(Transition, Object.assign({ nodeRef: ref, addEndListener: utils_transitionEndListener }, rest, { "aria-expanded": role ? panelIn : null, onEnter: handleEnter, onEntering: handleEntering, onEntered: handleEntered, onExit: handleExit, onExiting: handleExiting, in: panelIn }, { children: (state, innerProps) => {
706
- return require$$0.cloneElement(children, Object.assign(Object.assign({}, innerProps), { className: classNames(className, children.props.className, collapseStyles[state], computedDimension === "width" && "collapse-horizontal") }));
1856
+ return React.cloneElement(children, Object.assign(Object.assign({}, innerProps), { className: classNames(className, children.props.className, collapseStyles[state], computedDimension === "width" && "collapse-horizontal") }));
707
1857
  } })));
708
1858
  });
709
1859