@ntbjs/react-components 2.0.0-rc.12 → 2.0.0-rc.26

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 (559) hide show
  1. package/build/ActionButton-03dc5f67.js +92 -0
  2. package/build/Alert-8a511bdc.js +138 -0
  3. package/build/AssetAction-d081e4b7.js +2377 -0
  4. package/build/AssetPreviewTopBar-623cfa18.js +152 -0
  5. package/build/Badge-aa4cd9c1.js +221 -0
  6. package/build/Button-2e26f5da.js +449 -0
  7. package/build/Checkbox-0b8faf49.js +220 -0
  8. package/build/CompactAutocompleteSelect-797778cb.js +555 -0
  9. package/build/CompactStarRating-da21b53f.js +436 -0
  10. package/build/CompactTextInput-d56aec71.js +541 -0
  11. package/build/ContextMenu-82f9d728.js +33 -0
  12. package/build/ContextMenuItem-3967010d.js +152 -0
  13. package/build/InfoCard-d0fdf377.js +132 -0
  14. package/build/InputGroup-8d4a4644.js +30 -0
  15. package/build/Instructions-af191987.js +274 -0
  16. package/build/MultiLevelCheckboxSelect-d229cf98.js +632 -0
  17. package/build/MultiSelect-d7920eb1.js +470 -0
  18. package/build/Popover-c4be47ea.js +241 -0
  19. package/build/ProgressBar-2d26c1fb.js +217 -0
  20. package/build/Radio-150fb2c9.js +141 -0
  21. package/build/SectionSeparator-e06c7660.js +38 -0
  22. package/build/Switch-d2d6e9ec.js +167 -0
  23. package/build/Tab-ccbca1f2.js +39 -0
  24. package/build/Tabs-b06c0e24.js +166 -0
  25. package/build/TextArea-26d3c8a1.js +619 -0
  26. package/build/TextInput-3a567daa.js +372 -0
  27. package/build/Tooltip-d5882b82.js +73 -0
  28. package/build/VerificationStatusIcon-9876b68f.js +120 -0
  29. package/{esm/node_modules/@babel/runtime/helpers/esm/extends.js → build/_rollupPluginBabelHelpers-4b342fad.js} +3 -1
  30. package/build/arrow-forward-d7c77ae3.js +37 -0
  31. package/build/close-1751121a.js +37 -0
  32. package/build/data/Alert/index.js +12 -0
  33. package/build/data/Badge/index.js +11 -0
  34. package/build/data/Popover/index.js +16 -0
  35. package/build/data/Tab/index.js +11 -0
  36. package/build/data/Tabs/index.js +13 -0
  37. package/build/data/Tooltip/index.js +13 -0
  38. package/build/data/index.js +30 -0
  39. package/{esm/node_modules/prop-types/factoryWithTypeCheckers.js → build/defaultTheme-d9a7342e.js} +582 -17
  40. package/build/edit-note-cefe2215.js +37 -0
  41. package/build/expand-more-d74e2bd2.js +37 -0
  42. package/build/icons/add-circle.svg +3 -0
  43. package/build/icons/add.svg +3 -0
  44. package/build/icons/album.svg +3 -0
  45. package/build/icons/arrow-back.svg +4 -0
  46. package/build/icons/arrow-drop-down.svg +4 -0
  47. package/build/icons/arrow-forward.svg +3 -0
  48. package/build/icons/audio.svg +3 -0
  49. package/build/icons/bell.svg +3 -0
  50. package/build/icons/check-circle-filled.svg +3 -0
  51. package/build/icons/check-rectangle-filled.svg +3 -0
  52. package/build/icons/check.svg +3 -0
  53. package/build/icons/clear-circle-filled.svg +14 -0
  54. package/build/icons/close.svg +4 -0
  55. package/build/icons/corporate.svg +3 -0
  56. package/build/icons/delete-context-menu.svg +4 -0
  57. package/build/icons/delete.svg +3 -0
  58. package/build/icons/design-services.svg +4 -0
  59. package/build/icons/download.svg +3 -0
  60. package/build/icons/edit-note.svg +4 -0
  61. package/build/icons/edit.svg +3 -0
  62. package/build/icons/expand-more.svg +4 -0
  63. package/build/icons/file.svg +3 -0
  64. package/build/icons/ftp.svg +3 -0
  65. package/build/icons/gear.svg +3 -0
  66. package/build/icons/headset.svg +1 -0
  67. package/build/icons/index.js +79 -0
  68. package/build/icons/layers.svg +3 -0
  69. package/build/icons/library-add.svg +3 -0
  70. package/build/icons/link.svg +4 -0
  71. package/build/icons/pdf.svg +3 -0
  72. package/build/icons/play.svg +3 -0
  73. package/build/icons/remove-circle.svg +3 -0
  74. package/build/icons/search.svg +3 -0
  75. package/build/icons/share.svg +3 -0
  76. package/build/icons/shopping_cart_add.svg +3 -0
  77. package/build/icons/star-filled.svg +3 -0
  78. package/build/icons/star.svg +3 -0
  79. package/build/icons/triangle-right.svg +4 -0
  80. package/build/icons/verification.svg +3 -0
  81. package/build/icons/warning-circle.svg +3 -0
  82. package/build/icons/warning-triangle.svg +3 -0
  83. package/build/inputs/ActionButton/index.js +12 -0
  84. package/build/inputs/Button/index.js +19 -0
  85. package/build/inputs/Checkbox/index.js +12 -0
  86. package/build/inputs/CompactAutocompleteSelect/index.js +29 -0
  87. package/build/inputs/CompactStarRating/index.js +23 -0
  88. package/build/inputs/CompactTextInput/index.js +25 -0
  89. package/build/inputs/MultiSelect/index.js +16 -0
  90. package/build/inputs/Radio/index.js +13 -0
  91. package/build/inputs/Switch/index.js +12 -0
  92. package/build/inputs/TextArea/index.js +26 -0
  93. package/build/inputs/TextInput/index.js +15 -0
  94. package/build/inputs/index.js +60 -0
  95. package/build/layout/InputGroup/index.js +11 -0
  96. package/build/layout/SectionSeparator/index.js +11 -0
  97. package/build/layout/index.js +15 -0
  98. package/build/shift-away-subtle-158617af.js +9 -0
  99. package/build/styles/all.scss +3 -0
  100. package/build/styles/config.scss +38 -0
  101. package/build/styles/utils/colors.scss +15 -0
  102. package/build/styles/utils/theme.scss +33 -0
  103. package/build/widgets/AssetGallery/index.js +55 -0
  104. package/build/widgets/AssetPreview/AssetPreviewTopBar/index.js +12 -0
  105. package/build/widgets/ContextMenu/ContextMenuItem/index.js +11 -0
  106. package/build/widgets/ContextMenu/ContextMenuItemsGroup/index.js +44 -0
  107. package/build/widgets/ContextMenu/index.js +11 -0
  108. package/build/widgets/InfoCard/index.js +12 -0
  109. package/build/widgets/Instructions/index.js +33 -0
  110. package/build/widgets/ProgressBar/index.js +12 -0
  111. package/build/widgets/index.js +65 -0
  112. package/package.json +45 -58
  113. package/styles/all.scss +3 -3
  114. package/styles/config.scss +1 -0
  115. package/styles/utils/colors.scss +1 -1
  116. package/styles/utils/theme.scss +0 -2
  117. package/.eslintrc +0 -19
  118. package/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -84
  119. package/cjs/_virtual/index.js +0 -7
  120. package/cjs/_virtual/index2.js +0 -7
  121. package/cjs/_virtual/index3.js +0 -7
  122. package/cjs/_virtual/index4.js +0 -7
  123. package/cjs/_virtual/index5.js +0 -7
  124. package/cjs/_virtual/react-dom.development.js +0 -7
  125. package/cjs/_virtual/react-dom.production.js +0 -7
  126. package/cjs/_virtual/react-is.development.js +0 -7
  127. package/cjs/_virtual/react-is.development2.js +0 -7
  128. package/cjs/_virtual/react-is.production.min.js +0 -7
  129. package/cjs/_virtual/react-is.production.min2.js +0 -7
  130. package/cjs/_virtual/react.development.js +0 -7
  131. package/cjs/_virtual/react.production.js +0 -7
  132. package/cjs/components/data/Alert/Alert.js +0 -81
  133. package/cjs/components/data/Alert/Alert.styled.js +0 -72
  134. package/cjs/components/data/Alert/data/Alert/index.js +0 -9
  135. package/cjs/components/data/Badge/Badge.js +0 -93
  136. package/cjs/components/data/Badge/Badge.styled.js +0 -156
  137. package/cjs/components/data/Badge/data/Badge/index.js +0 -9
  138. package/cjs/components/data/Popover/Popover.js +0 -102
  139. package/cjs/components/data/Popover/Popover.styled.js +0 -159
  140. package/cjs/components/data/Popover/data/Popover/index.js +0 -9
  141. package/cjs/components/data/Tab/Tab.js +0 -31
  142. package/cjs/components/data/Tab/Tab.styled.js +0 -22
  143. package/cjs/components/data/Tab/data/Tab/index.js +0 -9
  144. package/cjs/components/data/Tabs/Tabs.js +0 -91
  145. package/cjs/components/data/Tabs/Tabs.styled.js +0 -97
  146. package/cjs/components/data/Tabs/data/Tabs/index.js +0 -9
  147. package/cjs/components/data/Tooltip/Tooltip.js +0 -50
  148. package/cjs/components/data/Tooltip/Tooltip.styled.js +0 -38
  149. package/cjs/components/data/Tooltip/data/Tooltip/index.js +0 -9
  150. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -42
  151. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -79
  152. package/cjs/components/data/data/index.js +0 -21
  153. package/cjs/components/inputs/ActionButton/ActionButton.js +0 -42
  154. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +0 -66
  155. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -9
  156. package/cjs/components/inputs/Button/Button.js +0 -188
  157. package/cjs/components/inputs/Button/Button.styled.js +0 -294
  158. package/cjs/components/inputs/Button/inputs/Button/index.js +0 -9
  159. package/cjs/components/inputs/Checkbox/Checkbox.js +0 -102
  160. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +0 -145
  161. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -9
  162. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -268
  163. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -352
  164. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -9
  165. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +0 -178
  166. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -258
  167. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -9
  168. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +0 -187
  169. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -352
  170. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -9
  171. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -253
  172. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -89
  173. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -185
  174. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -122
  175. package/cjs/components/inputs/MultiSelect/MultiSelect.js +0 -251
  176. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +0 -279
  177. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -9
  178. package/cjs/components/inputs/Radio/Radio.js +0 -67
  179. package/cjs/components/inputs/Radio/Radio.styled.js +0 -93
  180. package/cjs/components/inputs/Radio/inputs/Radio/index.js +0 -9
  181. package/cjs/components/inputs/Switch/Switch.js +0 -69
  182. package/cjs/components/inputs/Switch/Switch.styled.js +0 -123
  183. package/cjs/components/inputs/Switch/inputs/Switch/index.js +0 -9
  184. package/cjs/components/inputs/TextArea/TextArea.js +0 -186
  185. package/cjs/components/inputs/TextArea/TextArea.styled.js +0 -455
  186. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +0 -9
  187. package/cjs/components/inputs/TextInput/TextInput.js +0 -147
  188. package/cjs/components/inputs/TextInput/TextInput.styled.js +0 -276
  189. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +0 -9
  190. package/cjs/components/inputs/inputs/index.js +0 -33
  191. package/cjs/components/layout/InputGroup/InputGroup.js +0 -26
  192. package/cjs/components/layout/InputGroup/InputGroup.styled.js +0 -18
  193. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +0 -9
  194. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +0 -29
  195. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -21
  196. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -9
  197. package/cjs/components/layout/layout/index.js +0 -11
  198. package/cjs/components/widgets/AssetAction/AssetAction.js +0 -106
  199. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +0 -58
  200. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -35
  201. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -24
  202. package/cjs/components/widgets/AssetGallery/AssetGallery.js +0 -102
  203. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -392
  204. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -43
  205. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -402
  206. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -338
  207. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -396
  208. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -328
  209. package/cjs/components/widgets/AssetGallery/asset.propType.js +0 -58
  210. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -9
  211. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -50
  212. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -96
  213. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -9
  214. package/cjs/components/widgets/ContextMenu/ContextMenu.js +0 -28
  215. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +0 -19
  216. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -50
  217. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -93
  218. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -9
  219. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -28
  220. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -30
  221. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -9
  222. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -9
  223. package/cjs/components/widgets/InfoCard/InfoCard.js +0 -39
  224. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +0 -110
  225. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -9
  226. package/cjs/components/widgets/Instructions/Instructions.js +0 -217
  227. package/cjs/components/widgets/Instructions/Instructions.styled.js +0 -47
  228. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +0 -9
  229. package/cjs/components/widgets/ProgressBar/ProgressBar.js +0 -58
  230. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +0 -154
  231. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -9
  232. package/cjs/components/widgets/SummaryCard/SummaryCard.js +0 -92
  233. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +0 -142
  234. package/cjs/components/widgets/widgets/index.js +0 -25
  235. package/cjs/hooks/useEventListner.js +0 -26
  236. package/cjs/hooks/useIsomorphicLayoutEffect.js +0 -11
  237. package/cjs/hooks/useOnClickOutside.js +0 -17
  238. package/cjs/icons/arrow-back.svg.js +0 -20
  239. package/cjs/icons/arrow-forward.svg.js +0 -20
  240. package/cjs/icons/check-rectangle-filled.svg.js +0 -20
  241. package/cjs/icons/close.svg.js +0 -20
  242. package/cjs/icons/edit-note.svg.js +0 -20
  243. package/cjs/icons/expand-more.svg.js +0 -20
  244. package/cjs/icons/headset.svg.js +0 -20
  245. package/cjs/icons/layers.svg.js +0 -20
  246. package/cjs/icons/link.svg.js +0 -20
  247. package/cjs/icons/play.svg.js +0 -20
  248. package/cjs/icons/search.svg.js +0 -20
  249. package/cjs/icons/star-filled.svg.js +0 -20
  250. package/cjs/icons/star.svg.js +0 -20
  251. package/cjs/icons/triangle-right.svg.js +0 -20
  252. package/cjs/icons/verification.svg.js +0 -20
  253. package/cjs/icons/warning-circle.svg.js +0 -20
  254. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -11
  255. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -9
  256. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -11
  257. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -10
  258. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -9
  259. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -19
  260. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -22
  261. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -16
  262. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -15
  263. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -11
  264. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -20
  265. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -14
  266. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -9
  267. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -33
  268. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -9
  269. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -9
  270. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -29
  271. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -19
  272. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -15
  273. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -14
  274. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -11
  275. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -14
  276. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -13
  277. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -14
  278. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -18
  279. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -13
  280. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -15
  281. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -15
  282. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -445
  283. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -59
  284. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -13
  285. package/cjs/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -116
  286. package/cjs/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -63
  287. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -240
  288. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -144
  289. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -56
  290. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -14
  291. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -51
  292. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -907
  293. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -374
  294. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -128
  295. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -165
  296. package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -46
  297. package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -41
  298. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -24
  299. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -186
  300. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  301. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
  302. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +0 -55
  303. package/cjs/node_modules/object-assign/index.js +0 -94
  304. package/cjs/node_modules/prop-types/checkPropTypes.js +0 -110
  305. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +0 -69
  306. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +0 -621
  307. package/cjs/node_modules/prop-types/index.js +0 -33
  308. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -16
  309. package/cjs/node_modules/prop-types/lib/has.js +0 -7
  310. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
  311. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
  312. package/cjs/node_modules/prop-types/node_modules/react-is/index.js +0 -13
  313. package/cjs/node_modules/react/cjs/react.development.js +0 -1246
  314. package/cjs/node_modules/react/cjs/react.production.js +0 -552
  315. package/cjs/node_modules/react/index.js +0 -19
  316. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +0 -432
  317. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +0 -218
  318. package/cjs/node_modules/react-dom/index.js +0 -44
  319. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -6
  320. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -23
  321. package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2653
  322. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1426
  323. package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -101
  324. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -78
  325. package/cjs/node_modules/style-inject/dist/style-inject.es.js +0 -32
  326. package/cjs/node_modules/stylis/src/Enum.js +0 -24
  327. package/cjs/node_modules/stylis/src/Middleware.js +0 -37
  328. package/cjs/node_modules/stylis/src/Parser.js +0 -201
  329. package/cjs/node_modules/stylis/src/Serializer.js +0 -43
  330. package/cjs/node_modules/stylis/src/Tokenizer.js +0 -243
  331. package/cjs/node_modules/stylis/src/Utility.js +0 -134
  332. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -6
  333. package/cjs/node_modules/tippy.js/dist/tippy.css.js +0 -6
  334. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -10
  335. package/cjs/styles/utils/colors.scss.js +0 -11
  336. package/cjs/utils/dateTime.js +0 -20
  337. package/cjs/utils/defaultTheme.js +0 -52
  338. package/doctor-storybook.log +0 -20
  339. package/esm/_virtual/_rollupPluginBabelHelpers.js +0 -74
  340. package/esm/_virtual/index.js +0 -3
  341. package/esm/_virtual/index2.js +0 -3
  342. package/esm/_virtual/index3.js +0 -3
  343. package/esm/_virtual/index4.js +0 -3
  344. package/esm/_virtual/index5.js +0 -3
  345. package/esm/_virtual/react-dom.development.js +0 -3
  346. package/esm/_virtual/react-dom.production.js +0 -3
  347. package/esm/_virtual/react-is.development.js +0 -3
  348. package/esm/_virtual/react-is.development2.js +0 -3
  349. package/esm/_virtual/react-is.production.min.js +0 -3
  350. package/esm/_virtual/react-is.production.min2.js +0 -3
  351. package/esm/_virtual/react.development.js +0 -3
  352. package/esm/_virtual/react.production.js +0 -3
  353. package/esm/components/data/Alert/Alert.js +0 -77
  354. package/esm/components/data/Alert/Alert.styled.js +0 -63
  355. package/esm/components/data/Alert/data/Alert/index.js +0 -1
  356. package/esm/components/data/Badge/Badge.js +0 -89
  357. package/esm/components/data/Badge/Badge.styled.js +0 -145
  358. package/esm/components/data/Badge/data/Badge/index.js +0 -1
  359. package/esm/components/data/Popover/Popover.js +0 -94
  360. package/esm/components/data/Popover/Popover.styled.js +0 -150
  361. package/esm/components/data/Popover/data/Popover/index.js +0 -1
  362. package/esm/components/data/Tab/Tab.js +0 -27
  363. package/esm/components/data/Tab/Tab.styled.js +0 -14
  364. package/esm/components/data/Tab/data/Tab/index.js +0 -1
  365. package/esm/components/data/Tabs/Tabs.js +0 -87
  366. package/esm/components/data/Tabs/Tabs.styled.js +0 -85
  367. package/esm/components/data/Tabs/data/Tabs/index.js +0 -1
  368. package/esm/components/data/Tooltip/Tooltip.js +0 -46
  369. package/esm/components/data/Tooltip/Tooltip.styled.js +0 -29
  370. package/esm/components/data/Tooltip/data/Tooltip/index.js +0 -1
  371. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +0 -38
  372. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +0 -69
  373. package/esm/components/data/data/index.js +0 -7
  374. package/esm/components/inputs/ActionButton/ActionButton.js +0 -38
  375. package/esm/components/inputs/ActionButton/ActionButton.styled.js +0 -58
  376. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +0 -1
  377. package/esm/components/inputs/Button/Button.js +0 -184
  378. package/esm/components/inputs/Button/Button.styled.js +0 -277
  379. package/esm/components/inputs/Button/inputs/Button/index.js +0 -1
  380. package/esm/components/inputs/Checkbox/Checkbox.js +0 -98
  381. package/esm/components/inputs/Checkbox/Checkbox.styled.js +0 -132
  382. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +0 -1
  383. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +0 -264
  384. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +0 -324
  385. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +0 -1
  386. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +0 -174
  387. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +0 -245
  388. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +0 -1
  389. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +0 -183
  390. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +0 -335
  391. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +0 -1
  392. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +0 -247
  393. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +0 -75
  394. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +0 -181
  395. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +0 -104
  396. package/esm/components/inputs/MultiSelect/MultiSelect.js +0 -247
  397. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +0 -251
  398. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +0 -1
  399. package/esm/components/inputs/Radio/Radio.js +0 -63
  400. package/esm/components/inputs/Radio/Radio.styled.js +0 -84
  401. package/esm/components/inputs/Radio/inputs/Radio/index.js +0 -1
  402. package/esm/components/inputs/Switch/Switch.js +0 -65
  403. package/esm/components/inputs/Switch/Switch.styled.js +0 -110
  404. package/esm/components/inputs/Switch/inputs/Switch/index.js +0 -1
  405. package/esm/components/inputs/TextArea/TextArea.js +0 -182
  406. package/esm/components/inputs/TextArea/TextArea.styled.js +0 -437
  407. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +0 -1
  408. package/esm/components/inputs/TextInput/TextInput.js +0 -143
  409. package/esm/components/inputs/TextInput/TextInput.styled.js +0 -261
  410. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +0 -1
  411. package/esm/components/inputs/inputs/index.js +0 -13
  412. package/esm/components/layout/InputGroup/InputGroup.js +0 -22
  413. package/esm/components/layout/InputGroup/InputGroup.styled.js +0 -10
  414. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +0 -1
  415. package/esm/components/layout/SectionSeparator/SectionSeparator.js +0 -25
  416. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +0 -13
  417. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +0 -1
  418. package/esm/components/layout/layout/index.js +0 -2
  419. package/esm/components/widgets/AssetAction/AssetAction.js +0 -102
  420. package/esm/components/widgets/AssetAction/AssetAction.styled.js +0 -46
  421. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +0 -31
  422. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +0 -16
  423. package/esm/components/widgets/AssetGallery/AssetGallery.js +0 -98
  424. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +0 -384
  425. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +0 -33
  426. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +0 -398
  427. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +0 -311
  428. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +0 -392
  429. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +0 -302
  430. package/esm/components/widgets/AssetGallery/asset.propType.js +0 -53
  431. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +0 -1
  432. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +0 -46
  433. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +0 -84
  434. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -1
  435. package/esm/components/widgets/ContextMenu/ContextMenu.js +0 -24
  436. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +0 -11
  437. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +0 -46
  438. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +0 -83
  439. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +0 -1
  440. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +0 -24
  441. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +0 -22
  442. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -1
  443. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +0 -1
  444. package/esm/components/widgets/InfoCard/InfoCard.js +0 -35
  445. package/esm/components/widgets/InfoCard/InfoCard.styled.js +0 -94
  446. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +0 -1
  447. package/esm/components/widgets/Instructions/Instructions.js +0 -213
  448. package/esm/components/widgets/Instructions/Instructions.styled.js +0 -36
  449. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +0 -1
  450. package/esm/components/widgets/ProgressBar/ProgressBar.js +0 -54
  451. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +0 -137
  452. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +0 -1
  453. package/esm/components/widgets/SummaryCard/SummaryCard.js +0 -88
  454. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +0 -124
  455. package/esm/components/widgets/widgets/index.js +0 -9
  456. package/esm/hooks/useEventListner.js +0 -22
  457. package/esm/hooks/useIsomorphicLayoutEffect.js +0 -7
  458. package/esm/hooks/useOnClickOutside.js +0 -13
  459. package/esm/icons/arrow-back.svg.js +0 -16
  460. package/esm/icons/arrow-forward.svg.js +0 -16
  461. package/esm/icons/check-rectangle-filled.svg.js +0 -16
  462. package/esm/icons/close.svg.js +0 -16
  463. package/esm/icons/edit-note.svg.js +0 -16
  464. package/esm/icons/expand-more.svg.js +0 -16
  465. package/esm/icons/headset.svg.js +0 -16
  466. package/esm/icons/layers.svg.js +0 -16
  467. package/esm/icons/link.svg.js +0 -16
  468. package/esm/icons/play.svg.js +0 -16
  469. package/esm/icons/search.svg.js +0 -16
  470. package/esm/icons/star-filled.svg.js +0 -16
  471. package/esm/icons/star.svg.js +0 -16
  472. package/esm/icons/triangle-right.svg.js +0 -16
  473. package/esm/icons/verification.svg.js +0 -16
  474. package/esm/icons/warning-circle.svg.js +0 -16
  475. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -7
  476. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -5
  477. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -7
  478. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -6
  479. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -5
  480. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -15
  481. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -18
  482. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -12
  483. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -7
  484. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -16
  485. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -10
  486. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -5
  487. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -29
  488. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -5
  489. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -5
  490. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -25
  491. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -15
  492. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -11
  493. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -10
  494. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -7
  495. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -10
  496. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -9
  497. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -10
  498. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -14
  499. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -9
  500. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -11
  501. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -11
  502. package/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -441
  503. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -55
  504. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
  505. package/esm/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +0 -107
  506. package/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +0 -56
  507. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -236
  508. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -140
  509. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -52
  510. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +0 -10
  511. package/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -45
  512. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +0 -894
  513. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +0 -370
  514. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +0 -110
  515. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +0 -138
  516. package/esm/node_modules/@restart/hooks/esm/useMergedRefs.js +0 -41
  517. package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +0 -37
  518. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -22
  519. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +0 -181
  520. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  521. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
  522. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +0 -51
  523. package/esm/node_modules/object-assign/index.js +0 -90
  524. package/esm/node_modules/prop-types/checkPropTypes.js +0 -106
  525. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +0 -65
  526. package/esm/node_modules/prop-types/index.js +0 -29
  527. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -12
  528. package/esm/node_modules/prop-types/lib/has.js +0 -3
  529. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
  530. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
  531. package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
  532. package/esm/node_modules/react/cjs/react.development.js +0 -1244
  533. package/esm/node_modules/react/cjs/react.production.js +0 -547
  534. package/esm/node_modules/react/index.js +0 -15
  535. package/esm/node_modules/react-dom/cjs/react-dom.development.js +0 -427
  536. package/esm/node_modules/react-dom/cjs/react-dom.production.js +0 -213
  537. package/esm/node_modules/react-dom/index.js +0 -42
  538. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +0 -4
  539. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +0 -19
  540. package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +0 -2644
  541. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +0 -1385
  542. package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +0 -97
  543. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +0 -74
  544. package/esm/node_modules/style-inject/dist/style-inject.es.js +0 -28
  545. package/esm/node_modules/stylis/src/Enum.js +0 -12
  546. package/esm/node_modules/stylis/src/Middleware.js +0 -32
  547. package/esm/node_modules/stylis/src/Parser.js +0 -193
  548. package/esm/node_modules/stylis/src/Serializer.js +0 -38
  549. package/esm/node_modules/stylis/src/Tokenizer.js +0 -223
  550. package/esm/node_modules/stylis/src/Utility.js +0 -117
  551. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +0 -4
  552. package/esm/node_modules/tippy.js/dist/tippy.css.js +0 -4
  553. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
  554. package/esm/ssr/ssr/index.js +0 -1
  555. package/esm/styles/utils/colors.scss.js +0 -7
  556. package/esm/utils/dateTime.js +0 -16
  557. package/esm/utils/defaultTheme.js +0 -47
  558. package/migration-storybook.log +0 -392
  559. /package/{cjs/ssr → build}/ssr/index.js +0 -0
@@ -1,46 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('../../../react/index.js');
6
- var index = require('../../../../_virtual/index.js');
7
-
8
- var toFnRef = function toFnRef(ref) {
9
- return !ref || typeof ref === 'function' ? ref : function (value) {
10
- ref.current = value;
11
- };
12
- };
13
-
14
- function mergeRefs(refA, refB) {
15
- var a = toFnRef(refA);
16
- var b = toFnRef(refB);
17
- return function (value) {
18
- if (a) a(value);
19
- if (b) b(value);
20
- };
21
- }
22
- /**
23
- * Create and returns a single callback ref composed from two other Refs.
24
- *
25
- * ```tsx
26
- * const Button = React.forwardRef((props, ref) => {
27
- * const [element, attachRef] = useCallbackRef<HTMLButtonElement>();
28
- * const mergedRef = useMergedRefs(ref, attachRef);
29
- *
30
- * return <button ref={mergedRef} {...props}/>
31
- * })
32
- * ```
33
- *
34
- * @param refA A Callback or mutable Ref
35
- * @param refB A Callback or mutable Ref
36
- * @category refs
37
- */
38
-
39
- function useMergedRefs(refA, refB) {
40
- return index.react.exports.useMemo(function () {
41
- return mergeRefs(refA, refB);
42
- }, [refA, refB]);
43
- }
44
-
45
- exports["default"] = useMergedRefs;
46
- exports.mergeRefs = mergeRefs;
@@ -1,41 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- require('../../../react/index.js');
6
- var index = require('../../../../_virtual/index.js');
7
-
8
- /**
9
- * Runs an effect only when the dependencies have changed, skipping the
10
- * initial "on mount" run. Caution, if the dependency list never changes,
11
- * the effect is **never run**
12
- *
13
- * ```ts
14
- * const ref = useRef<HTMLInput>(null);
15
- *
16
- * // focuses an element only if the focus changes, and not on mount
17
- * useUpdateEffect(() => {
18
- * const element = ref.current?.children[focusedIdx] as HTMLElement
19
- *
20
- * element?.focus()
21
- *
22
- * }, [focusedIndex])
23
- * ```
24
- * @param effect An effect to run on mount
25
- *
26
- * @category effects
27
- */
28
-
29
- function useUpdateEffect(fn, deps) {
30
- var isFirst = index.react.exports.useRef(true);
31
- index.react.exports.useEffect(function () {
32
- if (isFirst.current) {
33
- isFirst.current = false;
34
- return;
35
- }
36
-
37
- return fn();
38
- }, deps);
39
- }
40
-
41
- exports["default"] = useUpdateEffect;
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- require('../node_modules/react-is/index.js');
4
- var index = require('../../../_virtual/index5.js');
5
-
6
- var reactIs = index.reactIs.exports;
7
- var FORWARD_REF_STATICS = {
8
- '$$typeof': true,
9
- render: true,
10
- defaultProps: true,
11
- displayName: true,
12
- propTypes: true
13
- };
14
- var MEMO_STATICS = {
15
- '$$typeof': true,
16
- compare: true,
17
- defaultProps: true,
18
- displayName: true,
19
- propTypes: true,
20
- type: true
21
- };
22
- var TYPE_STATICS = {};
23
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
24
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
@@ -1,186 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var reactIs_development = require('../../../../../_virtual/react-is.development2.js');
6
-
7
- /** @license React v16.13.1
8
- * react-is.development.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
-
16
-
17
-
18
- if (process.env.NODE_ENV !== "production") {
19
- (function() {
20
-
21
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
22
- // nor polyfill, then a plain number is used for performance.
23
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
24
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
25
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
26
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
27
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
28
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
30
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
31
- // (unstable) APIs that have been removed. Can we remove the symbols?
32
-
33
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
34
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
35
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
36
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
37
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
38
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
39
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
40
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
41
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
42
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
43
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
44
-
45
- function isValidElementType(type) {
46
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
47
- 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);
48
- }
49
-
50
- function typeOf(object) {
51
- if (typeof object === 'object' && object !== null) {
52
- var $$typeof = object.$$typeof;
53
-
54
- switch ($$typeof) {
55
- case REACT_ELEMENT_TYPE:
56
- var type = object.type;
57
-
58
- switch (type) {
59
- case REACT_ASYNC_MODE_TYPE:
60
- case REACT_CONCURRENT_MODE_TYPE:
61
- case REACT_FRAGMENT_TYPE:
62
- case REACT_PROFILER_TYPE:
63
- case REACT_STRICT_MODE_TYPE:
64
- case REACT_SUSPENSE_TYPE:
65
- return type;
66
-
67
- default:
68
- var $$typeofType = type && type.$$typeof;
69
-
70
- switch ($$typeofType) {
71
- case REACT_CONTEXT_TYPE:
72
- case REACT_FORWARD_REF_TYPE:
73
- case REACT_LAZY_TYPE:
74
- case REACT_MEMO_TYPE:
75
- case REACT_PROVIDER_TYPE:
76
- return $$typeofType;
77
-
78
- default:
79
- return $$typeof;
80
- }
81
-
82
- }
83
-
84
- case REACT_PORTAL_TYPE:
85
- return $$typeof;
86
- }
87
- }
88
-
89
- return undefined;
90
- } // AsyncMode is deprecated along with isAsyncMode
91
-
92
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
93
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
94
- var ContextConsumer = REACT_CONTEXT_TYPE;
95
- var ContextProvider = REACT_PROVIDER_TYPE;
96
- var Element = REACT_ELEMENT_TYPE;
97
- var ForwardRef = REACT_FORWARD_REF_TYPE;
98
- var Fragment = REACT_FRAGMENT_TYPE;
99
- var Lazy = REACT_LAZY_TYPE;
100
- var Memo = REACT_MEMO_TYPE;
101
- var Portal = REACT_PORTAL_TYPE;
102
- var Profiler = REACT_PROFILER_TYPE;
103
- var StrictMode = REACT_STRICT_MODE_TYPE;
104
- var Suspense = REACT_SUSPENSE_TYPE;
105
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
106
-
107
- function isAsyncMode(object) {
108
- {
109
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
110
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
111
-
112
- 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.');
113
- }
114
- }
115
-
116
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
117
- }
118
- function isConcurrentMode(object) {
119
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
120
- }
121
- function isContextConsumer(object) {
122
- return typeOf(object) === REACT_CONTEXT_TYPE;
123
- }
124
- function isContextProvider(object) {
125
- return typeOf(object) === REACT_PROVIDER_TYPE;
126
- }
127
- function isElement(object) {
128
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
129
- }
130
- function isForwardRef(object) {
131
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
132
- }
133
- function isFragment(object) {
134
- return typeOf(object) === REACT_FRAGMENT_TYPE;
135
- }
136
- function isLazy(object) {
137
- return typeOf(object) === REACT_LAZY_TYPE;
138
- }
139
- function isMemo(object) {
140
- return typeOf(object) === REACT_MEMO_TYPE;
141
- }
142
- function isPortal(object) {
143
- return typeOf(object) === REACT_PORTAL_TYPE;
144
- }
145
- function isProfiler(object) {
146
- return typeOf(object) === REACT_PROFILER_TYPE;
147
- }
148
- function isStrictMode(object) {
149
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
150
- }
151
- function isSuspense(object) {
152
- return typeOf(object) === REACT_SUSPENSE_TYPE;
153
- }
154
-
155
- reactIs_development.__exports.AsyncMode = AsyncMode;
156
- reactIs_development.__exports.ConcurrentMode = ConcurrentMode;
157
- reactIs_development.__exports.ContextConsumer = ContextConsumer;
158
- reactIs_development.__exports.ContextProvider = ContextProvider;
159
- reactIs_development.__exports.Element = Element;
160
- reactIs_development.__exports.ForwardRef = ForwardRef;
161
- reactIs_development.__exports.Fragment = Fragment;
162
- reactIs_development.__exports.Lazy = Lazy;
163
- reactIs_development.__exports.Memo = Memo;
164
- reactIs_development.__exports.Portal = Portal;
165
- reactIs_development.__exports.Profiler = Profiler;
166
- reactIs_development.__exports.StrictMode = StrictMode;
167
- reactIs_development.__exports.Suspense = Suspense;
168
- reactIs_development.__exports.isAsyncMode = isAsyncMode;
169
- reactIs_development.__exports.isConcurrentMode = isConcurrentMode;
170
- reactIs_development.__exports.isContextConsumer = isContextConsumer;
171
- reactIs_development.__exports.isContextProvider = isContextProvider;
172
- reactIs_development.__exports.isElement = isElement;
173
- reactIs_development.__exports.isForwardRef = isForwardRef;
174
- reactIs_development.__exports.isFragment = isFragment;
175
- reactIs_development.__exports.isLazy = isLazy;
176
- reactIs_development.__exports.isMemo = isMemo;
177
- reactIs_development.__exports.isPortal = isPortal;
178
- reactIs_development.__exports.isProfiler = isProfiler;
179
- reactIs_development.__exports.isStrictMode = isStrictMode;
180
- reactIs_development.__exports.isSuspense = isSuspense;
181
- reactIs_development.__exports.isValidElementType = isValidElementType;
182
- reactIs_development.__exports.typeOf = typeOf;
183
- })();
184
- }
185
-
186
- exports["default"] = reactIs_development.__exports;
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var reactIs_production_min = require('../../../../../_virtual/react-is.production.min2.js');
6
-
7
- /** @license React v16.13.1
8
- * react-is.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- 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?
16
- 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;
17
- 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.__exports.AsyncMode=l;reactIs_production_min.__exports.ConcurrentMode=m;reactIs_production_min.__exports.ContextConsumer=k;reactIs_production_min.__exports.ContextProvider=h;reactIs_production_min.__exports.Element=c;reactIs_production_min.__exports.ForwardRef=n;reactIs_production_min.__exports.Fragment=e;reactIs_production_min.__exports.Lazy=t;reactIs_production_min.__exports.Memo=r;reactIs_production_min.__exports.Portal=d;
18
- reactIs_production_min.__exports.Profiler=g;reactIs_production_min.__exports.StrictMode=f;reactIs_production_min.__exports.Suspense=p;reactIs_production_min.__exports.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.__exports.isConcurrentMode=A;reactIs_production_min.__exports.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.__exports.isContextProvider=function(a){return z(a)===h};reactIs_production_min.__exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.__exports.isForwardRef=function(a){return z(a)===n};reactIs_production_min.__exports.isFragment=function(a){return z(a)===e};reactIs_production_min.__exports.isLazy=function(a){return z(a)===t};
19
- reactIs_production_min.__exports.isMemo=function(a){return z(a)===r};reactIs_production_min.__exports.isPortal=function(a){return z(a)===d};reactIs_production_min.__exports.isProfiler=function(a){return z(a)===g};reactIs_production_min.__exports.isStrictMode=function(a){return z(a)===f};reactIs_production_min.__exports.isSuspense=function(a){return z(a)===p};
20
- reactIs_production_min.__exports.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.__exports.typeOf=z;
21
-
22
- exports["default"] = reactIs_production_min.__exports;
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('../../../../_virtual/index5.js');
4
- require('./cjs/react-is.production.min.js');
5
- require('./cjs/react-is.development.js');
6
- var reactIs_production_min = require('../../../../_virtual/react-is.production.min2.js');
7
- var reactIs_development = require('../../../../_virtual/react-is.development2.js');
8
-
9
- if (process.env.NODE_ENV === 'production') {
10
- index.reactIs.exports = reactIs_production_min.__exports;
11
- } else {
12
- index.reactIs.exports = reactIs_development.__exports;
13
- }
@@ -1,55 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var safeIsNaN = Number.isNaN ||
6
- function ponyfill(value) {
7
- return typeof value === 'number' && value !== value;
8
- };
9
- function isEqual(first, second) {
10
- if (first === second) {
11
- return true;
12
- }
13
- if (safeIsNaN(first) && safeIsNaN(second)) {
14
- return true;
15
- }
16
- return false;
17
- }
18
- function areInputsEqual(newInputs, lastInputs) {
19
- if (newInputs.length !== lastInputs.length) {
20
- return false;
21
- }
22
- for (var i = 0; i < newInputs.length; i++) {
23
- if (!isEqual(newInputs[i], lastInputs[i])) {
24
- return false;
25
- }
26
- }
27
- return true;
28
- }
29
-
30
- function memoizeOne(resultFn, isEqual) {
31
- if (isEqual === void 0) { isEqual = areInputsEqual; }
32
- var cache = null;
33
- function memoized() {
34
- var newArgs = [];
35
- for (var _i = 0; _i < arguments.length; _i++) {
36
- newArgs[_i] = arguments[_i];
37
- }
38
- if (cache && cache.lastThis === this && isEqual(newArgs, cache.lastArgs)) {
39
- return cache.lastResult;
40
- }
41
- var lastResult = resultFn.apply(this, newArgs);
42
- cache = {
43
- lastResult: lastResult,
44
- lastArgs: newArgs,
45
- lastThis: this,
46
- };
47
- return lastResult;
48
- }
49
- memoized.clear = function clear() {
50
- cache = null;
51
- };
52
- return memoized;
53
- }
54
-
55
- exports["default"] = memoizeOne;
@@ -1,94 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- /*
6
- object-assign
7
- (c) Sindre Sorhus
8
- @license MIT
9
- */
10
- /* eslint-disable no-unused-vars */
11
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
12
- var hasOwnProperty = Object.prototype.hasOwnProperty;
13
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
14
-
15
- function toObject(val) {
16
- if (val === null || val === undefined) {
17
- throw new TypeError('Object.assign cannot be called with null or undefined');
18
- }
19
-
20
- return Object(val);
21
- }
22
-
23
- function shouldUseNative() {
24
- try {
25
- if (!Object.assign) {
26
- return false;
27
- }
28
-
29
- // Detect buggy property enumeration order in older V8 versions.
30
-
31
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
32
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
33
- test1[5] = 'de';
34
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
35
- return false;
36
- }
37
-
38
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
39
- var test2 = {};
40
- for (var i = 0; i < 10; i++) {
41
- test2['_' + String.fromCharCode(i)] = i;
42
- }
43
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
44
- return test2[n];
45
- });
46
- if (order2.join('') !== '0123456789') {
47
- return false;
48
- }
49
-
50
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
51
- var test3 = {};
52
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
53
- test3[letter] = letter;
54
- });
55
- if (Object.keys(Object.assign({}, test3)).join('') !==
56
- 'abcdefghijklmnopqrst') {
57
- return false;
58
- }
59
-
60
- return true;
61
- } catch (err) {
62
- // We don't expect any of the above to throw, but better to be safe.
63
- return false;
64
- }
65
- }
66
-
67
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
68
- var from;
69
- var to = toObject(target);
70
- var symbols;
71
-
72
- for (var s = 1; s < arguments.length; s++) {
73
- from = Object(arguments[s]);
74
-
75
- for (var key in from) {
76
- if (hasOwnProperty.call(from, key)) {
77
- to[key] = from[key];
78
- }
79
- }
80
-
81
- if (getOwnPropertySymbols) {
82
- symbols = getOwnPropertySymbols(from);
83
- for (var i = 0; i < symbols.length; i++) {
84
- if (propIsEnumerable.call(from, symbols[i])) {
85
- to[symbols[i]] = from[symbols[i]];
86
- }
87
- }
88
- }
89
- }
90
-
91
- return to;
92
- };
93
-
94
- exports["default"] = objectAssign;
@@ -1,110 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
6
- var has$1 = require('./lib/has.js');
7
-
8
- /**
9
- * Copyright (c) 2013-present, Facebook, Inc.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
-
15
- var printWarning = function() {};
16
-
17
- if (process.env.NODE_ENV !== 'production') {
18
- var ReactPropTypesSecret = ReactPropTypesSecret$1["default"];
19
- var loggedTypeFailures = {};
20
- var has = has$1["default"];
21
-
22
- printWarning = function(text) {
23
- var message = 'Warning: ' + text;
24
- if (typeof console !== 'undefined') {
25
- console.error(message);
26
- }
27
- try {
28
- // --- Welcome to debugging React ---
29
- // This error was thrown as a convenience so that you can use this stack
30
- // to find the callsite that caused this warning to fire.
31
- throw new Error(message);
32
- } catch (x) { /**/ }
33
- };
34
- }
35
-
36
- /**
37
- * Assert that the values match with the type specs.
38
- * Error messages are memorized and will only be shown once.
39
- *
40
- * @param {object} typeSpecs Map of name to a ReactPropType
41
- * @param {object} values Runtime values that need to be type-checked
42
- * @param {string} location e.g. "prop", "context", "child context"
43
- * @param {string} componentName Name of the component for error messages.
44
- * @param {?Function} getStack Returns the component stack.
45
- * @private
46
- */
47
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
48
- if (process.env.NODE_ENV !== 'production') {
49
- for (var typeSpecName in typeSpecs) {
50
- if (has(typeSpecs, typeSpecName)) {
51
- var error;
52
- // Prop type validation may throw. In case they do, we don't want to
53
- // fail the render phase where it didn't fail before. So we log it.
54
- // After these have been cleaned up, we'll let them throw.
55
- try {
56
- // This is intentionally an invariant that gets caught. It's the same
57
- // behavior as without this statement except with a better message.
58
- if (typeof typeSpecs[typeSpecName] !== 'function') {
59
- var err = Error(
60
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
61
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
62
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
63
- );
64
- err.name = 'Invariant Violation';
65
- throw err;
66
- }
67
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
68
- } catch (ex) {
69
- error = ex;
70
- }
71
- if (error && !(error instanceof Error)) {
72
- printWarning(
73
- (componentName || 'React class') + ': type specification of ' +
74
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
75
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
76
- 'You may have forgotten to pass an argument to the type checker ' +
77
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
78
- 'shape all require an argument).'
79
- );
80
- }
81
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
82
- // Only monitor this failure once because there tends to be a lot of the
83
- // same error.
84
- loggedTypeFailures[error.message] = true;
85
-
86
- var stack = getStack ? getStack() : '';
87
-
88
- printWarning(
89
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
90
- );
91
- }
92
- }
93
- }
94
- }
95
- }
96
-
97
- /**
98
- * Resets warning cache when testing.
99
- *
100
- * @private
101
- */
102
- checkPropTypes.resetWarningCache = function() {
103
- if (process.env.NODE_ENV !== 'production') {
104
- loggedTypeFailures = {};
105
- }
106
- };
107
-
108
- var checkPropTypes_1 = checkPropTypes;
109
-
110
- exports["default"] = checkPropTypes_1;
@@ -1,69 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
6
-
7
- /**
8
- * Copyright (c) 2013-present, Facebook, Inc.
9
- *
10
- * This source code is licensed under the MIT license found in the
11
- * LICENSE file in the root directory of this source tree.
12
- */
13
-
14
- var ReactPropTypesSecret = ReactPropTypesSecret$1["default"];
15
-
16
- function emptyFunction() {}
17
- function emptyFunctionWithReset() {}
18
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
19
-
20
- var factoryWithThrowingShims = function() {
21
- function shim(props, propName, componentName, location, propFullName, secret) {
22
- if (secret === ReactPropTypesSecret) {
23
- // It is still safe when called from React.
24
- return;
25
- }
26
- var err = new Error(
27
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
28
- 'Use PropTypes.checkPropTypes() to call them. ' +
29
- 'Read more at http://fb.me/use-check-prop-types'
30
- );
31
- err.name = 'Invariant Violation';
32
- throw err;
33
- } shim.isRequired = shim;
34
- function getShim() {
35
- return shim;
36
- } // Important!
37
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
38
- var ReactPropTypes = {
39
- array: shim,
40
- bigint: shim,
41
- bool: shim,
42
- func: shim,
43
- number: shim,
44
- object: shim,
45
- string: shim,
46
- symbol: shim,
47
-
48
- any: shim,
49
- arrayOf: getShim,
50
- element: shim,
51
- elementType: shim,
52
- instanceOf: getShim,
53
- node: shim,
54
- objectOf: getShim,
55
- oneOf: getShim,
56
- oneOfType: getShim,
57
- shape: getShim,
58
- exact: getShim,
59
-
60
- checkPropTypes: emptyFunctionWithReset,
61
- resetWarningCache: emptyFunction
62
- };
63
-
64
- ReactPropTypes.PropTypes = ReactPropTypes;
65
-
66
- return ReactPropTypes;
67
- };
68
-
69
- exports["default"] = factoryWithThrowingShims;