@ntbjs/react-components 1.3.0-rc.8 → 2.0.0-rc.3

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 (516) hide show
  1. package/.eslintrc +7 -8
  2. package/cjs/_virtual/_rollupPluginBabelHelpers.js +84 -0
  3. package/cjs/_virtual/index.js +7 -0
  4. package/cjs/_virtual/index2.js +7 -0
  5. package/cjs/_virtual/index3.js +7 -0
  6. package/cjs/_virtual/index4.js +7 -0
  7. package/cjs/_virtual/index5.js +7 -0
  8. package/cjs/_virtual/react-dom.development.js +7 -0
  9. package/cjs/_virtual/react-dom.production.js +7 -0
  10. package/cjs/_virtual/react-is.development.js +7 -0
  11. package/cjs/_virtual/react-is.development2.js +7 -0
  12. package/cjs/_virtual/react-is.production.min.js +7 -0
  13. package/cjs/_virtual/react-is.production.min2.js +7 -0
  14. package/cjs/_virtual/react.development.js +7 -0
  15. package/cjs/_virtual/react.production.js +7 -0
  16. package/cjs/components/data/Alert/Alert.js +81 -0
  17. package/cjs/components/data/Alert/Alert.styled.js +72 -0
  18. package/cjs/components/data/Alert/data/Alert/index.js +9 -0
  19. package/cjs/components/data/Badge/Badge.js +93 -0
  20. package/cjs/components/data/Badge/Badge.styled.js +156 -0
  21. package/cjs/components/data/Badge/data/Badge/index.js +9 -0
  22. package/cjs/components/data/Popover/Popover.js +102 -0
  23. package/cjs/components/data/Popover/Popover.styled.js +159 -0
  24. package/cjs/components/data/Popover/data/Popover/index.js +9 -0
  25. package/cjs/components/data/Tab/Tab.js +31 -0
  26. package/cjs/components/data/Tab/Tab.styled.js +22 -0
  27. package/cjs/components/data/Tab/data/Tab/index.js +9 -0
  28. package/cjs/components/data/Tabs/Tabs.js +91 -0
  29. package/cjs/components/data/Tabs/Tabs.styled.js +97 -0
  30. package/cjs/components/data/Tabs/data/Tabs/index.js +9 -0
  31. package/cjs/components/data/Tooltip/Tooltip.js +50 -0
  32. package/cjs/components/data/Tooltip/Tooltip.styled.js +38 -0
  33. package/cjs/components/data/Tooltip/data/Tooltip/index.js +9 -0
  34. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.js +42 -0
  35. package/cjs/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +79 -0
  36. package/cjs/components/data/data/index.js +21 -0
  37. package/cjs/components/inputs/ActionButton/ActionButton.js +42 -0
  38. package/cjs/components/inputs/ActionButton/ActionButton.styled.js +66 -0
  39. package/cjs/components/inputs/ActionButton/inputs/ActionButton/index.js +9 -0
  40. package/cjs/components/inputs/Button/Button.js +188 -0
  41. package/cjs/components/inputs/Button/Button.styled.js +294 -0
  42. package/cjs/components/inputs/Button/inputs/Button/index.js +9 -0
  43. package/cjs/components/inputs/Checkbox/Checkbox.js +102 -0
  44. package/cjs/components/inputs/Checkbox/Checkbox.styled.js +145 -0
  45. package/cjs/components/inputs/Checkbox/inputs/Checkbox/index.js +9 -0
  46. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +268 -0
  47. package/cjs/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +352 -0
  48. package/cjs/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +9 -0
  49. package/cjs/components/inputs/CompactStarRating/CompactStarRating.js +178 -0
  50. package/cjs/components/inputs/CompactStarRating/CompactStarRating.styled.js +258 -0
  51. package/cjs/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +9 -0
  52. package/cjs/components/inputs/CompactTextInput/CompactTextInput.js +187 -0
  53. package/cjs/components/inputs/CompactTextInput/CompactTextInput.styled.js +352 -0
  54. package/cjs/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +9 -0
  55. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +253 -0
  56. package/cjs/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +89 -0
  57. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +185 -0
  58. package/cjs/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +122 -0
  59. package/cjs/components/inputs/MultiSelect/MultiSelect.js +251 -0
  60. package/cjs/components/inputs/MultiSelect/MultiSelect.styled.js +279 -0
  61. package/cjs/components/inputs/MultiSelect/inputs/MultiSelect/index.js +9 -0
  62. package/cjs/components/inputs/Radio/Radio.js +67 -0
  63. package/cjs/components/inputs/Radio/Radio.styled.js +93 -0
  64. package/cjs/components/inputs/Radio/inputs/Radio/index.js +9 -0
  65. package/cjs/components/inputs/Switch/Switch.js +69 -0
  66. package/cjs/components/inputs/Switch/Switch.styled.js +123 -0
  67. package/cjs/components/inputs/Switch/inputs/Switch/index.js +9 -0
  68. package/cjs/components/inputs/TextArea/TextArea.js +186 -0
  69. package/cjs/components/inputs/TextArea/TextArea.styled.js +455 -0
  70. package/cjs/components/inputs/TextArea/inputs/TextArea/index.js +9 -0
  71. package/cjs/components/inputs/TextInput/TextInput.js +147 -0
  72. package/cjs/components/inputs/TextInput/TextInput.styled.js +276 -0
  73. package/cjs/components/inputs/TextInput/inputs/TextInput/index.js +9 -0
  74. package/cjs/components/inputs/inputs/index.js +33 -0
  75. package/cjs/components/layout/InputGroup/InputGroup.js +26 -0
  76. package/cjs/components/layout/InputGroup/InputGroup.styled.js +18 -0
  77. package/cjs/components/layout/InputGroup/layout/InputGroup/index.js +9 -0
  78. package/cjs/components/layout/SectionSeparator/SectionSeparator.js +29 -0
  79. package/cjs/components/layout/SectionSeparator/SectionSeparator.styled.js +21 -0
  80. package/cjs/components/layout/SectionSeparator/layout/SectionSeparator/index.js +9 -0
  81. package/cjs/components/layout/layout/index.js +11 -0
  82. package/cjs/components/widgets/AssetAction/AssetAction.js +106 -0
  83. package/cjs/components/widgets/AssetAction/AssetAction.styled.js +58 -0
  84. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.js +35 -0
  85. package/cjs/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +24 -0
  86. package/cjs/components/widgets/AssetGallery/AssetGallery.js +102 -0
  87. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +392 -0
  88. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +43 -0
  89. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +402 -0
  90. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +338 -0
  91. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +396 -0
  92. package/cjs/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +328 -0
  93. package/cjs/components/widgets/AssetGallery/asset.propType.js +58 -0
  94. package/cjs/components/widgets/AssetGallery/widgets/AssetGallery/index.js +9 -0
  95. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +50 -0
  96. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +96 -0
  97. package/cjs/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +9 -0
  98. package/cjs/components/widgets/ContextMenu/ContextMenu.js +28 -0
  99. package/cjs/components/widgets/ContextMenu/ContextMenu.styled.js +19 -0
  100. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +50 -0
  101. package/cjs/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +93 -0
  102. package/cjs/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +9 -0
  103. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +28 -0
  104. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +30 -0
  105. package/cjs/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +9 -0
  106. package/cjs/components/widgets/ContextMenu/widgets/ContextMenu/index.js +9 -0
  107. package/cjs/components/widgets/InfoCard/InfoCard.js +39 -0
  108. package/cjs/components/widgets/InfoCard/InfoCard.styled.js +110 -0
  109. package/cjs/components/widgets/InfoCard/widgets/InfoCard/index.js +9 -0
  110. package/cjs/components/widgets/Instructions/Instructions.js +217 -0
  111. package/cjs/components/widgets/Instructions/Instructions.styled.js +47 -0
  112. package/cjs/components/widgets/Instructions/widgets/Instructions/index.js +9 -0
  113. package/cjs/components/widgets/ProgressBar/ProgressBar.js +58 -0
  114. package/cjs/components/widgets/ProgressBar/ProgressBar.styled.js +154 -0
  115. package/cjs/components/widgets/ProgressBar/widgets/ProgressBar/index.js +9 -0
  116. package/cjs/components/widgets/SummaryCard/SummaryCard.js +92 -0
  117. package/cjs/components/widgets/SummaryCard/SummaryCard.styled.js +142 -0
  118. package/cjs/components/widgets/widgets/index.js +25 -0
  119. package/cjs/hooks/useEventListner.js +26 -0
  120. package/cjs/hooks/useIsomorphicLayoutEffect.js +11 -0
  121. package/cjs/hooks/useOnClickOutside.js +17 -0
  122. package/cjs/icons/arrow-back.svg.js +20 -0
  123. package/cjs/icons/arrow-forward.svg.js +20 -0
  124. package/cjs/icons/check-rectangle-filled.svg.js +20 -0
  125. package/cjs/icons/close.svg.js +20 -0
  126. package/cjs/icons/edit-note.svg.js +20 -0
  127. package/cjs/icons/expand-more.svg.js +20 -0
  128. package/cjs/icons/headset.svg.js +20 -0
  129. package/cjs/icons/layers.svg.js +20 -0
  130. package/cjs/icons/link.svg.js +20 -0
  131. package/cjs/icons/play.svg.js +20 -0
  132. package/cjs/icons/search.svg.js +20 -0
  133. package/cjs/icons/star-filled.svg.js +20 -0
  134. package/cjs/icons/star.svg.js +20 -0
  135. package/cjs/icons/triangle-right.svg.js +20 -0
  136. package/cjs/icons/verification.svg.js +20 -0
  137. package/cjs/icons/warning-circle.svg.js +20 -0
  138. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +11 -0
  139. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +9 -0
  140. package/cjs/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +11 -0
  141. package/cjs/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +10 -0
  142. package/cjs/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +9 -0
  143. package/cjs/node_modules/@babel/runtime/helpers/esm/createClass.js +19 -0
  144. package/cjs/node_modules/@babel/runtime/helpers/esm/createSuper.js +22 -0
  145. package/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +16 -0
  146. package/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +15 -0
  147. package/cjs/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +11 -0
  148. package/cjs/node_modules/@babel/runtime/helpers/esm/inherits.js +20 -0
  149. package/cjs/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +14 -0
  150. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +9 -0
  151. package/cjs/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +33 -0
  152. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +9 -0
  153. package/cjs/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +9 -0
  154. package/cjs/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +29 -0
  155. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +19 -0
  156. package/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +15 -0
  157. package/cjs/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +14 -0
  158. package/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +11 -0
  159. package/cjs/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +14 -0
  160. package/cjs/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +13 -0
  161. package/cjs/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +14 -0
  162. package/cjs/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +18 -0
  163. package/cjs/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +13 -0
  164. package/cjs/node_modules/@babel/runtime/helpers/esm/typeof.js +15 -0
  165. package/cjs/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +15 -0
  166. package/cjs/node_modules/@emotion/cache/dist/emotion-cache.esm.js +503 -0
  167. package/cjs/node_modules/@emotion/hash/dist/emotion-hash.esm.js +59 -0
  168. package/cjs/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +13 -0
  169. package/cjs/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +158 -0
  170. package/cjs/node_modules/@emotion/react/dist/emotion-react.esm.js +66 -0
  171. package/cjs/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +240 -0
  172. package/cjs/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +144 -0
  173. package/cjs/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +56 -0
  174. package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +16 -0
  175. package/cjs/node_modules/@emotion/utils/dist/emotion-utils.esm.js +60 -0
  176. package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
  177. package/cjs/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +907 -0
  178. package/cjs/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +374 -0
  179. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +128 -0
  180. package/cjs/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +165 -0
  181. package/cjs/node_modules/@restart/hooks/esm/useMergedRefs.js +46 -0
  182. package/cjs/node_modules/@restart/hooks/esm/useUpdateEffect.js +41 -0
  183. package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +24 -0
  184. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +186 -0
  185. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
  186. package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
  187. package/cjs/node_modules/memoize-one/dist/memoize-one.esm.js +55 -0
  188. package/cjs/node_modules/object-assign/index.js +94 -0
  189. package/cjs/node_modules/prop-types/checkPropTypes.js +110 -0
  190. package/cjs/node_modules/prop-types/factoryWithThrowingShims.js +69 -0
  191. package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +621 -0
  192. package/cjs/node_modules/prop-types/index.js +33 -0
  193. package/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +16 -0
  194. package/cjs/node_modules/prop-types/lib/has.js +7 -0
  195. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
  196. package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
  197. package/cjs/node_modules/prop-types/node_modules/react-is/index.js +13 -0
  198. package/cjs/node_modules/react/cjs/react.development.js +1246 -0
  199. package/cjs/node_modules/react/cjs/react.production.js +552 -0
  200. package/cjs/node_modules/react/index.js +19 -0
  201. package/cjs/node_modules/react-dom/cjs/react-dom.development.js +432 -0
  202. package/cjs/node_modules/react-dom/cjs/react-dom.production.js +218 -0
  203. package/cjs/node_modules/react-dom/index.js +44 -0
  204. package/cjs/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +6 -0
  205. package/cjs/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +23 -0
  206. package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +2653 -0
  207. package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +1426 -0
  208. package/cjs/node_modules/react-select/dist/useCreatable-84008237.esm.js +101 -0
  209. package/cjs/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +78 -0
  210. package/cjs/node_modules/style-inject/dist/style-inject.es.js +32 -0
  211. package/cjs/node_modules/stylis/src/Enum.js +24 -0
  212. package/cjs/node_modules/stylis/src/Middleware.js +37 -0
  213. package/cjs/node_modules/stylis/src/Parser.js +201 -0
  214. package/cjs/node_modules/stylis/src/Serializer.js +43 -0
  215. package/cjs/node_modules/stylis/src/Tokenizer.js +243 -0
  216. package/cjs/node_modules/stylis/src/Utility.js +134 -0
  217. package/cjs/node_modules/tippy.js/animations/shift-away-subtle.css.js +6 -0
  218. package/cjs/node_modules/tippy.js/dist/tippy.css.js +6 -0
  219. package/cjs/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +12 -0
  220. package/{ssr → cjs/ssr/ssr}/index.js +1 -3
  221. package/cjs/styles/utils/colors.scss.js +11 -0
  222. package/cjs/utils/dateTime.js +20 -0
  223. package/cjs/utils/defaultTheme.js +52 -0
  224. package/doctor-storybook.log +20 -0
  225. package/esm/_virtual/_rollupPluginBabelHelpers.js +74 -0
  226. package/esm/_virtual/index.js +3 -0
  227. package/esm/_virtual/index2.js +3 -0
  228. package/esm/_virtual/index3.js +3 -0
  229. package/esm/_virtual/index4.js +3 -0
  230. package/esm/_virtual/index5.js +3 -0
  231. package/esm/_virtual/react-dom.development.js +3 -0
  232. package/esm/_virtual/react-dom.production.js +3 -0
  233. package/esm/_virtual/react-is.development.js +3 -0
  234. package/esm/_virtual/react-is.development2.js +3 -0
  235. package/esm/_virtual/react-is.production.min.js +3 -0
  236. package/esm/_virtual/react-is.production.min2.js +3 -0
  237. package/esm/_virtual/react.development.js +3 -0
  238. package/esm/_virtual/react.production.js +3 -0
  239. package/esm/components/data/Alert/Alert.js +77 -0
  240. package/esm/components/data/Alert/Alert.styled.js +63 -0
  241. package/esm/components/data/Alert/data/Alert/index.js +1 -0
  242. package/esm/components/data/Badge/Badge.js +89 -0
  243. package/esm/components/data/Badge/Badge.styled.js +145 -0
  244. package/esm/components/data/Badge/data/Badge/index.js +1 -0
  245. package/esm/components/data/Popover/Popover.js +94 -0
  246. package/esm/components/data/Popover/Popover.styled.js +150 -0
  247. package/esm/components/data/Popover/data/Popover/index.js +1 -0
  248. package/esm/components/data/Tab/Tab.js +27 -0
  249. package/esm/components/data/Tab/Tab.styled.js +14 -0
  250. package/esm/components/data/Tab/data/Tab/index.js +1 -0
  251. package/esm/components/data/Tabs/Tabs.js +87 -0
  252. package/esm/components/data/Tabs/Tabs.styled.js +85 -0
  253. package/esm/components/data/Tabs/data/Tabs/index.js +1 -0
  254. package/esm/components/data/Tooltip/Tooltip.js +46 -0
  255. package/esm/components/data/Tooltip/Tooltip.styled.js +29 -0
  256. package/esm/components/data/Tooltip/data/Tooltip/index.js +1 -0
  257. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.js +38 -0
  258. package/esm/components/data/VerificationStatusIcon/VerificationStatusIcon.styled.js +69 -0
  259. package/esm/components/data/data/index.js +7 -0
  260. package/esm/components/inputs/ActionButton/ActionButton.js +38 -0
  261. package/esm/components/inputs/ActionButton/ActionButton.styled.js +58 -0
  262. package/esm/components/inputs/ActionButton/inputs/ActionButton/index.js +1 -0
  263. package/esm/components/inputs/Button/Button.js +184 -0
  264. package/esm/components/inputs/Button/Button.styled.js +277 -0
  265. package/esm/components/inputs/Button/inputs/Button/index.js +1 -0
  266. package/esm/components/inputs/Checkbox/Checkbox.js +98 -0
  267. package/esm/components/inputs/Checkbox/Checkbox.styled.js +132 -0
  268. package/esm/components/inputs/Checkbox/inputs/Checkbox/index.js +1 -0
  269. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.js +264 -0
  270. package/esm/components/inputs/CompactAutocompleteSelect/CompactAutocompleteSelect.styled.js +324 -0
  271. package/esm/components/inputs/CompactAutocompleteSelect/inputs/CompactAutocompleteSelect/index.js +1 -0
  272. package/esm/components/inputs/CompactStarRating/CompactStarRating.js +174 -0
  273. package/esm/components/inputs/CompactStarRating/CompactStarRating.styled.js +245 -0
  274. package/esm/components/inputs/CompactStarRating/inputs/CompactStarRating/index.js +1 -0
  275. package/esm/components/inputs/CompactTextInput/CompactTextInput.js +183 -0
  276. package/esm/components/inputs/CompactTextInput/CompactTextInput.styled.js +335 -0
  277. package/esm/components/inputs/CompactTextInput/inputs/CompactTextInput/index.js +1 -0
  278. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.js +247 -0
  279. package/esm/components/inputs/MultiLevelCheckbox/MultiLevelCheckbox.styled.js +75 -0
  280. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.js +181 -0
  281. package/esm/components/inputs/MultiLevelCheckboxSelect/MultiLevelCheckboxSelect.styled.js +104 -0
  282. package/esm/components/inputs/MultiSelect/MultiSelect.js +247 -0
  283. package/esm/components/inputs/MultiSelect/MultiSelect.styled.js +251 -0
  284. package/esm/components/inputs/MultiSelect/inputs/MultiSelect/index.js +1 -0
  285. package/esm/components/inputs/Radio/Radio.js +63 -0
  286. package/esm/components/inputs/Radio/Radio.styled.js +84 -0
  287. package/esm/components/inputs/Radio/inputs/Radio/index.js +1 -0
  288. package/esm/components/inputs/Switch/Switch.js +65 -0
  289. package/esm/components/inputs/Switch/Switch.styled.js +110 -0
  290. package/esm/components/inputs/Switch/inputs/Switch/index.js +1 -0
  291. package/esm/components/inputs/TextArea/TextArea.js +182 -0
  292. package/esm/components/inputs/TextArea/TextArea.styled.js +437 -0
  293. package/esm/components/inputs/TextArea/inputs/TextArea/index.js +1 -0
  294. package/esm/components/inputs/TextInput/TextInput.js +143 -0
  295. package/esm/components/inputs/TextInput/TextInput.styled.js +261 -0
  296. package/esm/components/inputs/TextInput/inputs/TextInput/index.js +1 -0
  297. package/esm/components/inputs/inputs/index.js +13 -0
  298. package/esm/components/layout/InputGroup/InputGroup.js +22 -0
  299. package/esm/components/layout/InputGroup/InputGroup.styled.js +10 -0
  300. package/esm/components/layout/InputGroup/layout/InputGroup/index.js +1 -0
  301. package/esm/components/layout/SectionSeparator/SectionSeparator.js +25 -0
  302. package/esm/components/layout/SectionSeparator/SectionSeparator.styled.js +13 -0
  303. package/esm/components/layout/SectionSeparator/layout/SectionSeparator/index.js +1 -0
  304. package/esm/components/layout/layout/index.js +2 -0
  305. package/esm/components/widgets/AssetAction/AssetAction.js +102 -0
  306. package/esm/components/widgets/AssetAction/AssetAction.styled.js +46 -0
  307. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.js +31 -0
  308. package/esm/components/widgets/AssetActionsBase/AssetActionsBase.styled.js +16 -0
  309. package/esm/components/widgets/AssetGallery/AssetGallery.js +98 -0
  310. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.js +384 -0
  311. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryBase.styled.js +33 -0
  312. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.js +398 -0
  313. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryCompactCard/AssetGalleryCompactCard.styled.js +311 -0
  314. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.js +392 -0
  315. package/esm/components/widgets/AssetGallery/AssetGalleryBase/AssetGalleryGridCard/AssetGalleryGridCard.styled.js +302 -0
  316. package/esm/components/widgets/AssetGallery/asset.propType.js +53 -0
  317. package/esm/components/widgets/AssetGallery/widgets/AssetGallery/index.js +1 -0
  318. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.js +46 -0
  319. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/AssetPreviewTopBar.styled.js +84 -0
  320. package/esm/components/widgets/AssetPreview/AssetPreviewTopBar/widgets/AssetPreview/AssetPreviewTopBar/index.js +1 -0
  321. package/esm/components/widgets/ContextMenu/ContextMenu.js +24 -0
  322. package/esm/components/widgets/ContextMenu/ContextMenu.styled.js +11 -0
  323. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.js +46 -0
  324. package/esm/components/widgets/ContextMenu/ContextMenuItem/ContextMenuItem.styled.js +83 -0
  325. package/esm/components/widgets/ContextMenu/ContextMenuItem/widgets/ContextMenu/ContextMenuItem/index.js +1 -0
  326. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.js +24 -0
  327. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/ContextMenuItemsGroup.styled.js +22 -0
  328. package/esm/components/widgets/ContextMenu/ContextMenuItemsGroup/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -0
  329. package/esm/components/widgets/ContextMenu/widgets/ContextMenu/index.js +1 -0
  330. package/esm/components/widgets/InfoCard/InfoCard.js +35 -0
  331. package/esm/components/widgets/InfoCard/InfoCard.styled.js +94 -0
  332. package/esm/components/widgets/InfoCard/widgets/InfoCard/index.js +1 -0
  333. package/esm/components/widgets/Instructions/Instructions.js +213 -0
  334. package/esm/components/widgets/Instructions/Instructions.styled.js +36 -0
  335. package/esm/components/widgets/Instructions/widgets/Instructions/index.js +1 -0
  336. package/esm/components/widgets/ProgressBar/ProgressBar.js +54 -0
  337. package/esm/components/widgets/ProgressBar/ProgressBar.styled.js +137 -0
  338. package/esm/components/widgets/ProgressBar/widgets/ProgressBar/index.js +1 -0
  339. package/esm/components/widgets/SummaryCard/SummaryCard.js +88 -0
  340. package/esm/components/widgets/SummaryCard/SummaryCard.styled.js +124 -0
  341. package/esm/components/widgets/widgets/index.js +9 -0
  342. package/esm/hooks/useEventListner.js +22 -0
  343. package/esm/hooks/useIsomorphicLayoutEffect.js +7 -0
  344. package/esm/hooks/useOnClickOutside.js +13 -0
  345. package/esm/icons/arrow-back.svg.js +16 -0
  346. package/esm/icons/arrow-forward.svg.js +16 -0
  347. package/esm/icons/check-rectangle-filled.svg.js +16 -0
  348. package/esm/icons/close.svg.js +16 -0
  349. package/esm/icons/edit-note.svg.js +16 -0
  350. package/esm/icons/expand-more.svg.js +16 -0
  351. package/esm/icons/headset.svg.js +16 -0
  352. package/esm/icons/layers.svg.js +16 -0
  353. package/esm/icons/link.svg.js +16 -0
  354. package/esm/icons/play.svg.js +16 -0
  355. package/esm/icons/search.svg.js +16 -0
  356. package/esm/icons/star-filled.svg.js +16 -0
  357. package/esm/icons/star.svg.js +16 -0
  358. package/esm/icons/triangle-right.svg.js +16 -0
  359. package/esm/icons/verification.svg.js +16 -0
  360. package/esm/icons/warning-circle.svg.js +16 -0
  361. package/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +7 -0
  362. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +5 -0
  363. package/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
  364. package/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
  365. package/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +5 -0
  366. package/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
  367. package/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +18 -0
  368. package/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
  369. package/esm/node_modules/@babel/runtime/helpers/esm/extends.js +11 -0
  370. package/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +7 -0
  371. package/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
  372. package/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +10 -0
  373. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +5 -0
  374. package/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +29 -0
  375. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +5 -0
  376. package/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +5 -0
  377. package/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
  378. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +15 -0
  379. package/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +11 -0
  380. package/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
  381. package/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +7 -0
  382. package/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
  383. package/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +9 -0
  384. package/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
  385. package/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
  386. package/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
  387. package/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
  388. package/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
  389. package/esm/node_modules/@emotion/cache/dist/emotion-cache.esm.js +499 -0
  390. package/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
  391. package/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
  392. package/esm/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +149 -0
  393. package/esm/node_modules/@emotion/react/dist/emotion-react.esm.js +56 -0
  394. package/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +236 -0
  395. package/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +140 -0
  396. package/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +52 -0
  397. package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +12 -0
  398. package/esm/node_modules/@emotion/utils/dist/emotion-utils.esm.js +54 -0
  399. package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
  400. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +894 -0
  401. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +370 -0
  402. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +110 -0
  403. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +138 -0
  404. package/{useMergedRefs-b6d2f8fc.js → esm/node_modules/@restart/hooks/esm/useMergedRefs.js} +4 -5
  405. package/esm/node_modules/@restart/hooks/esm/useUpdateEffect.js +37 -0
  406. package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
  407. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +181 -0
  408. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
  409. package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
  410. package/esm/node_modules/memoize-one/dist/memoize-one.esm.js +51 -0
  411. package/esm/node_modules/object-assign/index.js +90 -0
  412. package/esm/node_modules/prop-types/checkPropTypes.js +106 -0
  413. package/esm/node_modules/prop-types/factoryWithThrowingShims.js +65 -0
  414. package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +617 -0
  415. package/esm/node_modules/prop-types/index.js +29 -0
  416. package/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
  417. package/esm/node_modules/prop-types/lib/has.js +3 -0
  418. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
  419. package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
  420. package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
  421. package/esm/node_modules/react/cjs/react.development.js +1244 -0
  422. package/esm/node_modules/react/cjs/react.production.js +547 -0
  423. package/esm/node_modules/react/index.js +15 -0
  424. package/esm/node_modules/react-dom/cjs/react-dom.development.js +427 -0
  425. package/esm/node_modules/react-dom/cjs/react-dom.production.js +213 -0
  426. package/esm/node_modules/react-dom/index.js +42 -0
  427. package/esm/node_modules/react-lazy-load-image-component/src/effects/opacity.css.js +4 -0
  428. package/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
  429. package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +2644 -0
  430. package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +1385 -0
  431. package/esm/node_modules/react-select/dist/useCreatable-84008237.esm.js +97 -0
  432. package/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +74 -0
  433. package/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
  434. package/esm/node_modules/stylis/src/Enum.js +12 -0
  435. package/esm/node_modules/stylis/src/Middleware.js +32 -0
  436. package/esm/node_modules/stylis/src/Parser.js +193 -0
  437. package/esm/node_modules/stylis/src/Serializer.js +38 -0
  438. package/esm/node_modules/stylis/src/Tokenizer.js +223 -0
  439. package/esm/node_modules/stylis/src/Utility.js +117 -0
  440. package/esm/node_modules/tippy.js/animations/shift-away-subtle.css.js +4 -0
  441. package/esm/node_modules/tippy.js/dist/tippy.css.js +4 -0
  442. package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
  443. package/esm/ssr/ssr/index.js +1 -0
  444. package/esm/styles/utils/colors.scss.js +7 -0
  445. package/esm/utils/dateTime.js +16 -0
  446. package/esm/utils/defaultTheme.js +47 -0
  447. package/icons/arrow-forward.svg +3 -0
  448. package/icons/index.js +2 -0
  449. package/migration-storybook.log +392 -0
  450. package/package.json +59 -21
  451. package/styles/all.scss +3 -3
  452. package/styles/config.scss +3 -0
  453. package/styles/utils/colors.scss +1 -1
  454. package/styles/utils/theme.scss +2 -0
  455. package/ActionButton-46735b89.js +0 -61
  456. package/Alert-13b75102.js +0 -117
  457. package/AssetGallery-0d503207.js +0 -1923
  458. package/AssetPreviewTopBar-912c3469.js +0 -99
  459. package/Badge-757b0a39.js +0 -221
  460. package/Button-49f82b31.js +0 -264
  461. package/Checkbox-68dc38a8.js +0 -140
  462. package/CompactAutocompleteSelect-96137f48.js +0 -451
  463. package/CompactStarRating-15c1b812.js +0 -339
  464. package/CompactTextInput-198d0800.js +0 -349
  465. package/ContextMenu-4ec3d9f3.js +0 -32
  466. package/ContextMenuItem-ba2b697e.js +0 -110
  467. package/InputGroup-49fbc423.js +0 -28
  468. package/Instructions-2babb8a3.js +0 -263
  469. package/MultiLevelCheckboxSelect-e6e5cb90.js +0 -698
  470. package/MultiSelect-efd60232.js +0 -377
  471. package/Popover-569cd272.js +0 -146
  472. package/Radio-32d0513a.js +0 -86
  473. package/SectionSeparator-259a22ed.js +0 -37
  474. package/Switch-4a41585f.js +0 -107
  475. package/Tab-f499ecbc.js +0 -35
  476. package/Tabs-116aa951.js +0 -151
  477. package/TextArea-18fbcc9f.js +0 -375
  478. package/TextInput-0d109708.js +0 -236
  479. package/Tooltip-66daf6e3.js +0 -61
  480. package/VerificationStatusIcon-d5bfb67a.js +0 -121
  481. package/close-ebf2f3cf.js +0 -41
  482. package/data/Alert/index.js +0 -11
  483. package/data/Badge/index.js +0 -10
  484. package/data/Popover/index.js +0 -15
  485. package/data/Tab/index.js +0 -10
  486. package/data/Tabs/index.js +0 -12
  487. package/data/Tooltip/index.js +0 -12
  488. package/data/index.js +0 -29
  489. package/defaultTheme-ea44e34a.js +0 -1422
  490. package/edit-note-c47d292e.js +0 -41
  491. package/expand-more-94585605.js +0 -41
  492. package/inputs/ActionButton/index.js +0 -11
  493. package/inputs/Button/index.js +0 -18
  494. package/inputs/Checkbox/index.js +0 -12
  495. package/inputs/CompactAutocompleteSelect/index.js +0 -29
  496. package/inputs/CompactStarRating/index.js +0 -22
  497. package/inputs/CompactTextInput/index.js +0 -24
  498. package/inputs/MultiSelect/index.js +0 -16
  499. package/inputs/Radio/index.js +0 -12
  500. package/inputs/Switch/index.js +0 -12
  501. package/inputs/TextArea/index.js +0 -25
  502. package/inputs/TextInput/index.js +0 -14
  503. package/inputs/index.js +0 -59
  504. package/layout/InputGroup/index.js +0 -10
  505. package/layout/SectionSeparator/index.js +0 -10
  506. package/layout/index.js +0 -14
  507. package/react-select-creatable.esm-2f23d6c6.js +0 -7709
  508. package/shift-away-subtle-0bed9a3c.js +0 -9
  509. package/warning-circle-24522402.js +0 -41
  510. package/widgets/AssetGallery/index.js +0 -50
  511. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +0 -11
  512. package/widgets/ContextMenu/ContextMenuItem/index.js +0 -10
  513. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +0 -32
  514. package/widgets/ContextMenu/index.js +0 -10
  515. package/widgets/Instructions/index.js +0 -34
  516. package/widgets/index.js +0 -58
@@ -1,1422 +0,0 @@
1
- 'use strict';
2
-
3
- var styled = require('styled-components');
4
-
5
- function ownKeys(object, enumerableOnly) {
6
- var keys = Object.keys(object);
7
-
8
- if (Object.getOwnPropertySymbols) {
9
- var symbols = Object.getOwnPropertySymbols(object);
10
-
11
- if (enumerableOnly) {
12
- symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- });
15
- }
16
-
17
- keys.push.apply(keys, symbols);
18
- }
19
-
20
- return keys;
21
- }
22
-
23
- function _objectSpread2(target) {
24
- for (var i = 1; i < arguments.length; i++) {
25
- var source = arguments[i] != null ? arguments[i] : {};
26
-
27
- if (i % 2) {
28
- ownKeys(Object(source), true).forEach(function (key) {
29
- _defineProperty(target, key, source[key]);
30
- });
31
- } else if (Object.getOwnPropertyDescriptors) {
32
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
33
- } else {
34
- ownKeys(Object(source)).forEach(function (key) {
35
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
36
- });
37
- }
38
- }
39
-
40
- return target;
41
- }
42
-
43
- function _typeof(obj) {
44
- "@babel/helpers - typeof";
45
-
46
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
47
- _typeof = function (obj) {
48
- return typeof obj;
49
- };
50
- } else {
51
- _typeof = function (obj) {
52
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
53
- };
54
- }
55
-
56
- return _typeof(obj);
57
- }
58
-
59
- function _defineProperty(obj, key, value) {
60
- if (key in obj) {
61
- Object.defineProperty(obj, key, {
62
- value: value,
63
- enumerable: true,
64
- configurable: true,
65
- writable: true
66
- });
67
- } else {
68
- obj[key] = value;
69
- }
70
-
71
- return obj;
72
- }
73
-
74
- function _extends() {
75
- _extends = Object.assign || function (target) {
76
- for (var i = 1; i < arguments.length; i++) {
77
- var source = arguments[i];
78
-
79
- for (var key in source) {
80
- if (Object.prototype.hasOwnProperty.call(source, key)) {
81
- target[key] = source[key];
82
- }
83
- }
84
- }
85
-
86
- return target;
87
- };
88
-
89
- return _extends.apply(this, arguments);
90
- }
91
-
92
- function _objectWithoutPropertiesLoose(source, excluded) {
93
- if (source == null) return {};
94
- var target = {};
95
- var sourceKeys = Object.keys(source);
96
- var key, i;
97
-
98
- for (i = 0; i < sourceKeys.length; i++) {
99
- key = sourceKeys[i];
100
- if (excluded.indexOf(key) >= 0) continue;
101
- target[key] = source[key];
102
- }
103
-
104
- return target;
105
- }
106
-
107
- function _objectWithoutProperties(source, excluded) {
108
- if (source == null) return {};
109
-
110
- var target = _objectWithoutPropertiesLoose(source, excluded);
111
-
112
- var key, i;
113
-
114
- if (Object.getOwnPropertySymbols) {
115
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
116
-
117
- for (i = 0; i < sourceSymbolKeys.length; i++) {
118
- key = sourceSymbolKeys[i];
119
- if (excluded.indexOf(key) >= 0) continue;
120
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
121
- target[key] = source[key];
122
- }
123
- }
124
-
125
- return target;
126
- }
127
-
128
- function _taggedTemplateLiteral(strings, raw) {
129
- if (!raw) {
130
- raw = strings.slice(0);
131
- }
132
-
133
- return Object.freeze(Object.defineProperties(strings, {
134
- raw: {
135
- value: Object.freeze(raw)
136
- }
137
- }));
138
- }
139
-
140
- function _slicedToArray(arr, i) {
141
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
142
- }
143
-
144
- function _toConsumableArray(arr) {
145
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
146
- }
147
-
148
- function _arrayWithoutHoles(arr) {
149
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
150
- }
151
-
152
- function _arrayWithHoles(arr) {
153
- if (Array.isArray(arr)) return arr;
154
- }
155
-
156
- function _iterableToArray(iter) {
157
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
158
- }
159
-
160
- function _iterableToArrayLimit(arr, i) {
161
- var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]);
162
-
163
- if (_i == null) return;
164
- var _arr = [];
165
- var _n = true;
166
- var _d = false;
167
-
168
- var _s, _e;
169
-
170
- try {
171
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
172
- _arr.push(_s.value);
173
-
174
- if (i && _arr.length === i) break;
175
- }
176
- } catch (err) {
177
- _d = true;
178
- _e = err;
179
- } finally {
180
- try {
181
- if (!_n && _i["return"] != null) _i["return"]();
182
- } finally {
183
- if (_d) throw _e;
184
- }
185
- }
186
-
187
- return _arr;
188
- }
189
-
190
- function _unsupportedIterableToArray(o, minLen) {
191
- if (!o) return;
192
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
193
- var n = Object.prototype.toString.call(o).slice(8, -1);
194
- if (n === "Object" && o.constructor) n = o.constructor.name;
195
- if (n === "Map" || n === "Set") return Array.from(o);
196
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
197
- }
198
-
199
- function _arrayLikeToArray(arr, len) {
200
- if (len == null || len > arr.length) len = arr.length;
201
-
202
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
203
-
204
- return arr2;
205
- }
206
-
207
- function _nonIterableSpread() {
208
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
209
- }
210
-
211
- function _nonIterableRest() {
212
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
213
- }
214
-
215
- function _createForOfIteratorHelper(o, allowArrayLike) {
216
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
217
-
218
- if (!it) {
219
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
220
- if (it) o = it;
221
- var i = 0;
222
-
223
- var F = function () {};
224
-
225
- return {
226
- s: F,
227
- n: function () {
228
- if (i >= o.length) return {
229
- done: true
230
- };
231
- return {
232
- done: false,
233
- value: o[i++]
234
- };
235
- },
236
- e: function (e) {
237
- throw e;
238
- },
239
- f: F
240
- };
241
- }
242
-
243
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
244
- }
245
-
246
- var normalCompletion = true,
247
- didErr = false,
248
- err;
249
- return {
250
- s: function () {
251
- it = it.call(o);
252
- },
253
- n: function () {
254
- var step = it.next();
255
- normalCompletion = step.done;
256
- return step;
257
- },
258
- e: function (e) {
259
- didErr = true;
260
- err = e;
261
- },
262
- f: function () {
263
- try {
264
- if (!normalCompletion && it.return != null) it.return();
265
- } finally {
266
- if (didErr) throw err;
267
- }
268
- }
269
- };
270
- }
271
-
272
- var propTypes = {exports: {}};
273
-
274
- var reactIs = {exports: {}};
275
-
276
- var reactIs_production_min = {};
277
-
278
- /** @license React v16.13.1
279
- * react-is.production.min.js
280
- *
281
- * Copyright (c) Facebook, Inc. and its affiliates.
282
- *
283
- * This source code is licensed under the MIT license found in the
284
- * LICENSE file in the root directory of this source tree.
285
- */
286
- 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?
287
- 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;
288
- 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;
289
- 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};
290
- 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};
291
- 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;
292
-
293
- var reactIs_development = {};
294
-
295
- /** @license React v16.13.1
296
- * react-is.development.js
297
- *
298
- * Copyright (c) Facebook, Inc. and its affiliates.
299
- *
300
- * This source code is licensed under the MIT license found in the
301
- * LICENSE file in the root directory of this source tree.
302
- */
303
-
304
-
305
-
306
- if (process.env.NODE_ENV !== "production") {
307
- (function() {
308
-
309
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
310
- // nor polyfill, then a plain number is used for performance.
311
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
312
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
313
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
314
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
315
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
316
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
317
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
318
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
319
- // (unstable) APIs that have been removed. Can we remove the symbols?
320
-
321
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
322
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
323
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
324
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
325
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
326
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
327
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
328
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
329
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
330
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
331
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
332
-
333
- function isValidElementType(type) {
334
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
335
- 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);
336
- }
337
-
338
- function typeOf(object) {
339
- if (typeof object === 'object' && object !== null) {
340
- var $$typeof = object.$$typeof;
341
-
342
- switch ($$typeof) {
343
- case REACT_ELEMENT_TYPE:
344
- var type = object.type;
345
-
346
- switch (type) {
347
- case REACT_ASYNC_MODE_TYPE:
348
- case REACT_CONCURRENT_MODE_TYPE:
349
- case REACT_FRAGMENT_TYPE:
350
- case REACT_PROFILER_TYPE:
351
- case REACT_STRICT_MODE_TYPE:
352
- case REACT_SUSPENSE_TYPE:
353
- return type;
354
-
355
- default:
356
- var $$typeofType = type && type.$$typeof;
357
-
358
- switch ($$typeofType) {
359
- case REACT_CONTEXT_TYPE:
360
- case REACT_FORWARD_REF_TYPE:
361
- case REACT_LAZY_TYPE:
362
- case REACT_MEMO_TYPE:
363
- case REACT_PROVIDER_TYPE:
364
- return $$typeofType;
365
-
366
- default:
367
- return $$typeof;
368
- }
369
-
370
- }
371
-
372
- case REACT_PORTAL_TYPE:
373
- return $$typeof;
374
- }
375
- }
376
-
377
- return undefined;
378
- } // AsyncMode is deprecated along with isAsyncMode
379
-
380
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
381
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
382
- var ContextConsumer = REACT_CONTEXT_TYPE;
383
- var ContextProvider = REACT_PROVIDER_TYPE;
384
- var Element = REACT_ELEMENT_TYPE;
385
- var ForwardRef = REACT_FORWARD_REF_TYPE;
386
- var Fragment = REACT_FRAGMENT_TYPE;
387
- var Lazy = REACT_LAZY_TYPE;
388
- var Memo = REACT_MEMO_TYPE;
389
- var Portal = REACT_PORTAL_TYPE;
390
- var Profiler = REACT_PROFILER_TYPE;
391
- var StrictMode = REACT_STRICT_MODE_TYPE;
392
- var Suspense = REACT_SUSPENSE_TYPE;
393
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
394
-
395
- function isAsyncMode(object) {
396
- {
397
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
398
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
399
-
400
- 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.');
401
- }
402
- }
403
-
404
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
405
- }
406
- function isConcurrentMode(object) {
407
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
408
- }
409
- function isContextConsumer(object) {
410
- return typeOf(object) === REACT_CONTEXT_TYPE;
411
- }
412
- function isContextProvider(object) {
413
- return typeOf(object) === REACT_PROVIDER_TYPE;
414
- }
415
- function isElement(object) {
416
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
417
- }
418
- function isForwardRef(object) {
419
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
420
- }
421
- function isFragment(object) {
422
- return typeOf(object) === REACT_FRAGMENT_TYPE;
423
- }
424
- function isLazy(object) {
425
- return typeOf(object) === REACT_LAZY_TYPE;
426
- }
427
- function isMemo(object) {
428
- return typeOf(object) === REACT_MEMO_TYPE;
429
- }
430
- function isPortal(object) {
431
- return typeOf(object) === REACT_PORTAL_TYPE;
432
- }
433
- function isProfiler(object) {
434
- return typeOf(object) === REACT_PROFILER_TYPE;
435
- }
436
- function isStrictMode(object) {
437
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
438
- }
439
- function isSuspense(object) {
440
- return typeOf(object) === REACT_SUSPENSE_TYPE;
441
- }
442
-
443
- reactIs_development.AsyncMode = AsyncMode;
444
- reactIs_development.ConcurrentMode = ConcurrentMode;
445
- reactIs_development.ContextConsumer = ContextConsumer;
446
- reactIs_development.ContextProvider = ContextProvider;
447
- reactIs_development.Element = Element;
448
- reactIs_development.ForwardRef = ForwardRef;
449
- reactIs_development.Fragment = Fragment;
450
- reactIs_development.Lazy = Lazy;
451
- reactIs_development.Memo = Memo;
452
- reactIs_development.Portal = Portal;
453
- reactIs_development.Profiler = Profiler;
454
- reactIs_development.StrictMode = StrictMode;
455
- reactIs_development.Suspense = Suspense;
456
- reactIs_development.isAsyncMode = isAsyncMode;
457
- reactIs_development.isConcurrentMode = isConcurrentMode;
458
- reactIs_development.isContextConsumer = isContextConsumer;
459
- reactIs_development.isContextProvider = isContextProvider;
460
- reactIs_development.isElement = isElement;
461
- reactIs_development.isForwardRef = isForwardRef;
462
- reactIs_development.isFragment = isFragment;
463
- reactIs_development.isLazy = isLazy;
464
- reactIs_development.isMemo = isMemo;
465
- reactIs_development.isPortal = isPortal;
466
- reactIs_development.isProfiler = isProfiler;
467
- reactIs_development.isStrictMode = isStrictMode;
468
- reactIs_development.isSuspense = isSuspense;
469
- reactIs_development.isValidElementType = isValidElementType;
470
- reactIs_development.typeOf = typeOf;
471
- })();
472
- }
473
-
474
- if (process.env.NODE_ENV === 'production') {
475
- reactIs.exports = reactIs_production_min;
476
- } else {
477
- reactIs.exports = reactIs_development;
478
- }
479
-
480
- /*
481
- object-assign
482
- (c) Sindre Sorhus
483
- @license MIT
484
- */
485
- /* eslint-disable no-unused-vars */
486
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
487
- var hasOwnProperty = Object.prototype.hasOwnProperty;
488
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
489
-
490
- function toObject(val) {
491
- if (val === null || val === undefined) {
492
- throw new TypeError('Object.assign cannot be called with null or undefined');
493
- }
494
-
495
- return Object(val);
496
- }
497
-
498
- function shouldUseNative() {
499
- try {
500
- if (!Object.assign) {
501
- return false;
502
- }
503
-
504
- // Detect buggy property enumeration order in older V8 versions.
505
-
506
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
507
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
508
- test1[5] = 'de';
509
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
510
- return false;
511
- }
512
-
513
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
514
- var test2 = {};
515
- for (var i = 0; i < 10; i++) {
516
- test2['_' + String.fromCharCode(i)] = i;
517
- }
518
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
519
- return test2[n];
520
- });
521
- if (order2.join('') !== '0123456789') {
522
- return false;
523
- }
524
-
525
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
526
- var test3 = {};
527
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
528
- test3[letter] = letter;
529
- });
530
- if (Object.keys(Object.assign({}, test3)).join('') !==
531
- 'abcdefghijklmnopqrst') {
532
- return false;
533
- }
534
-
535
- return true;
536
- } catch (err) {
537
- // We don't expect any of the above to throw, but better to be safe.
538
- return false;
539
- }
540
- }
541
-
542
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
543
- var from;
544
- var to = toObject(target);
545
- var symbols;
546
-
547
- for (var s = 1; s < arguments.length; s++) {
548
- from = Object(arguments[s]);
549
-
550
- for (var key in from) {
551
- if (hasOwnProperty.call(from, key)) {
552
- to[key] = from[key];
553
- }
554
- }
555
-
556
- if (getOwnPropertySymbols) {
557
- symbols = getOwnPropertySymbols(from);
558
- for (var i = 0; i < symbols.length; i++) {
559
- if (propIsEnumerable.call(from, symbols[i])) {
560
- to[symbols[i]] = from[symbols[i]];
561
- }
562
- }
563
- }
564
- }
565
-
566
- return to;
567
- };
568
-
569
- /**
570
- * Copyright (c) 2013-present, Facebook, Inc.
571
- *
572
- * This source code is licensed under the MIT license found in the
573
- * LICENSE file in the root directory of this source tree.
574
- */
575
-
576
- var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
577
-
578
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
579
-
580
- /**
581
- * Copyright (c) 2013-present, Facebook, Inc.
582
- *
583
- * This source code is licensed under the MIT license found in the
584
- * LICENSE file in the root directory of this source tree.
585
- */
586
-
587
- var printWarning$1 = function() {};
588
-
589
- if (process.env.NODE_ENV !== 'production') {
590
- var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
591
- var loggedTypeFailures = {};
592
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
593
-
594
- printWarning$1 = function(text) {
595
- var message = 'Warning: ' + text;
596
- if (typeof console !== 'undefined') {
597
- console.error(message);
598
- }
599
- try {
600
- // --- Welcome to debugging React ---
601
- // This error was thrown as a convenience so that you can use this stack
602
- // to find the callsite that caused this warning to fire.
603
- throw new Error(message);
604
- } catch (x) {}
605
- };
606
- }
607
-
608
- /**
609
- * Assert that the values match with the type specs.
610
- * Error messages are memorized and will only be shown once.
611
- *
612
- * @param {object} typeSpecs Map of name to a ReactPropType
613
- * @param {object} values Runtime values that need to be type-checked
614
- * @param {string} location e.g. "prop", "context", "child context"
615
- * @param {string} componentName Name of the component for error messages.
616
- * @param {?Function} getStack Returns the component stack.
617
- * @private
618
- */
619
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
620
- if (process.env.NODE_ENV !== 'production') {
621
- for (var typeSpecName in typeSpecs) {
622
- if (has$1(typeSpecs, typeSpecName)) {
623
- var error;
624
- // Prop type validation may throw. In case they do, we don't want to
625
- // fail the render phase where it didn't fail before. So we log it.
626
- // After these have been cleaned up, we'll let them throw.
627
- try {
628
- // This is intentionally an invariant that gets caught. It's the same
629
- // behavior as without this statement except with a better message.
630
- if (typeof typeSpecs[typeSpecName] !== 'function') {
631
- var err = Error(
632
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
633
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
634
- );
635
- err.name = 'Invariant Violation';
636
- throw err;
637
- }
638
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
639
- } catch (ex) {
640
- error = ex;
641
- }
642
- if (error && !(error instanceof Error)) {
643
- printWarning$1(
644
- (componentName || 'React class') + ': type specification of ' +
645
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
646
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
647
- 'You may have forgotten to pass an argument to the type checker ' +
648
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
649
- 'shape all require an argument).'
650
- );
651
- }
652
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
653
- // Only monitor this failure once because there tends to be a lot of the
654
- // same error.
655
- loggedTypeFailures[error.message] = true;
656
-
657
- var stack = getStack ? getStack() : '';
658
-
659
- printWarning$1(
660
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
661
- );
662
- }
663
- }
664
- }
665
- }
666
- }
667
-
668
- /**
669
- * Resets warning cache when testing.
670
- *
671
- * @private
672
- */
673
- checkPropTypes$1.resetWarningCache = function() {
674
- if (process.env.NODE_ENV !== 'production') {
675
- loggedTypeFailures = {};
676
- }
677
- };
678
-
679
- var checkPropTypes_1 = checkPropTypes$1;
680
-
681
- /**
682
- * Copyright (c) 2013-present, Facebook, Inc.
683
- *
684
- * This source code is licensed under the MIT license found in the
685
- * LICENSE file in the root directory of this source tree.
686
- */
687
-
688
- var ReactIs$1 = reactIs.exports;
689
- var assign = objectAssign;
690
-
691
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
692
- var checkPropTypes = checkPropTypes_1;
693
-
694
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
695
- var printWarning = function() {};
696
-
697
- if (process.env.NODE_ENV !== 'production') {
698
- printWarning = function(text) {
699
- var message = 'Warning: ' + text;
700
- if (typeof console !== 'undefined') {
701
- console.error(message);
702
- }
703
- try {
704
- // --- Welcome to debugging React ---
705
- // This error was thrown as a convenience so that you can use this stack
706
- // to find the callsite that caused this warning to fire.
707
- throw new Error(message);
708
- } catch (x) {}
709
- };
710
- }
711
-
712
- function emptyFunctionThatReturnsNull() {
713
- return null;
714
- }
715
-
716
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
717
- /* global Symbol */
718
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
719
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
720
-
721
- /**
722
- * Returns the iterator method function contained on the iterable object.
723
- *
724
- * Be sure to invoke the function with the iterable as context:
725
- *
726
- * var iteratorFn = getIteratorFn(myIterable);
727
- * if (iteratorFn) {
728
- * var iterator = iteratorFn.call(myIterable);
729
- * ...
730
- * }
731
- *
732
- * @param {?object} maybeIterable
733
- * @return {?function}
734
- */
735
- function getIteratorFn(maybeIterable) {
736
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
737
- if (typeof iteratorFn === 'function') {
738
- return iteratorFn;
739
- }
740
- }
741
-
742
- /**
743
- * Collection of methods that allow declaration and validation of props that are
744
- * supplied to React components. Example usage:
745
- *
746
- * var Props = require('ReactPropTypes');
747
- * var MyArticle = React.createClass({
748
- * propTypes: {
749
- * // An optional string prop named "description".
750
- * description: Props.string,
751
- *
752
- * // A required enum prop named "category".
753
- * category: Props.oneOf(['News','Photos']).isRequired,
754
- *
755
- * // A prop named "dialog" that requires an instance of Dialog.
756
- * dialog: Props.instanceOf(Dialog).isRequired
757
- * },
758
- * render: function() { ... }
759
- * });
760
- *
761
- * A more formal specification of how these methods are used:
762
- *
763
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
764
- * decl := ReactPropTypes.{type}(.isRequired)?
765
- *
766
- * Each and every declaration produces a function with the same signature. This
767
- * allows the creation of custom validation functions. For example:
768
- *
769
- * var MyLink = React.createClass({
770
- * propTypes: {
771
- * // An optional string or URI prop named "href".
772
- * href: function(props, propName, componentName) {
773
- * var propValue = props[propName];
774
- * if (propValue != null && typeof propValue !== 'string' &&
775
- * !(propValue instanceof URI)) {
776
- * return new Error(
777
- * 'Expected a string or an URI for ' + propName + ' in ' +
778
- * componentName
779
- * );
780
- * }
781
- * }
782
- * },
783
- * render: function() {...}
784
- * });
785
- *
786
- * @internal
787
- */
788
-
789
- var ANONYMOUS = '<<anonymous>>';
790
-
791
- // Important!
792
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
793
- var ReactPropTypes = {
794
- array: createPrimitiveTypeChecker('array'),
795
- bool: createPrimitiveTypeChecker('boolean'),
796
- func: createPrimitiveTypeChecker('function'),
797
- number: createPrimitiveTypeChecker('number'),
798
- object: createPrimitiveTypeChecker('object'),
799
- string: createPrimitiveTypeChecker('string'),
800
- symbol: createPrimitiveTypeChecker('symbol'),
801
-
802
- any: createAnyTypeChecker(),
803
- arrayOf: createArrayOfTypeChecker,
804
- element: createElementTypeChecker(),
805
- elementType: createElementTypeTypeChecker(),
806
- instanceOf: createInstanceTypeChecker,
807
- node: createNodeChecker(),
808
- objectOf: createObjectOfTypeChecker,
809
- oneOf: createEnumTypeChecker,
810
- oneOfType: createUnionTypeChecker,
811
- shape: createShapeTypeChecker,
812
- exact: createStrictShapeTypeChecker,
813
- };
814
-
815
- /**
816
- * inlined Object.is polyfill to avoid requiring consumers ship their own
817
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
818
- */
819
- /*eslint-disable no-self-compare*/
820
- function is(x, y) {
821
- // SameValue algorithm
822
- if (x === y) {
823
- // Steps 1-5, 7-10
824
- // Steps 6.b-6.e: +0 != -0
825
- return x !== 0 || 1 / x === 1 / y;
826
- } else {
827
- // Step 6.a: NaN == NaN
828
- return x !== x && y !== y;
829
- }
830
- }
831
- /*eslint-enable no-self-compare*/
832
-
833
- /**
834
- * We use an Error-like object for backward compatibility as people may call
835
- * PropTypes directly and inspect their output. However, we don't use real
836
- * Errors anymore. We don't inspect their stack anyway, and creating them
837
- * is prohibitively expensive if they are created too often, such as what
838
- * happens in oneOfType() for any type before the one that matched.
839
- */
840
- function PropTypeError(message) {
841
- this.message = message;
842
- this.stack = '';
843
- }
844
- // Make `instanceof Error` still work for returned errors.
845
- PropTypeError.prototype = Error.prototype;
846
-
847
- function createChainableTypeChecker(validate) {
848
- if (process.env.NODE_ENV !== 'production') {
849
- var manualPropTypeCallCache = {};
850
- var manualPropTypeWarningCount = 0;
851
- }
852
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
853
- componentName = componentName || ANONYMOUS;
854
- propFullName = propFullName || propName;
855
-
856
- if (secret !== ReactPropTypesSecret$1) {
857
- if (throwOnDirectAccess) {
858
- // New behavior only for users of `prop-types` package
859
- var err = new Error(
860
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
861
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
862
- 'Read more at http://fb.me/use-check-prop-types'
863
- );
864
- err.name = 'Invariant Violation';
865
- throw err;
866
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
867
- // Old behavior for people using React.PropTypes
868
- var cacheKey = componentName + ':' + propName;
869
- if (
870
- !manualPropTypeCallCache[cacheKey] &&
871
- // Avoid spamming the console because they are often not actionable except for lib authors
872
- manualPropTypeWarningCount < 3
873
- ) {
874
- printWarning(
875
- 'You are manually calling a React.PropTypes validation ' +
876
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
877
- 'and will throw in the standalone `prop-types` package. ' +
878
- 'You may be seeing this warning due to a third-party PropTypes ' +
879
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
880
- );
881
- manualPropTypeCallCache[cacheKey] = true;
882
- manualPropTypeWarningCount++;
883
- }
884
- }
885
- }
886
- if (props[propName] == null) {
887
- if (isRequired) {
888
- if (props[propName] === null) {
889
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
890
- }
891
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
892
- }
893
- return null;
894
- } else {
895
- return validate(props, propName, componentName, location, propFullName);
896
- }
897
- }
898
-
899
- var chainedCheckType = checkType.bind(null, false);
900
- chainedCheckType.isRequired = checkType.bind(null, true);
901
-
902
- return chainedCheckType;
903
- }
904
-
905
- function createPrimitiveTypeChecker(expectedType) {
906
- function validate(props, propName, componentName, location, propFullName, secret) {
907
- var propValue = props[propName];
908
- var propType = getPropType(propValue);
909
- if (propType !== expectedType) {
910
- // `propValue` being instance of, say, date/regexp, pass the 'object'
911
- // check, but we can offer a more precise error message here rather than
912
- // 'of type `object`'.
913
- var preciseType = getPreciseType(propValue);
914
-
915
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
916
- }
917
- return null;
918
- }
919
- return createChainableTypeChecker(validate);
920
- }
921
-
922
- function createAnyTypeChecker() {
923
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
924
- }
925
-
926
- function createArrayOfTypeChecker(typeChecker) {
927
- function validate(props, propName, componentName, location, propFullName) {
928
- if (typeof typeChecker !== 'function') {
929
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
930
- }
931
- var propValue = props[propName];
932
- if (!Array.isArray(propValue)) {
933
- var propType = getPropType(propValue);
934
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
935
- }
936
- for (var i = 0; i < propValue.length; i++) {
937
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
938
- if (error instanceof Error) {
939
- return error;
940
- }
941
- }
942
- return null;
943
- }
944
- return createChainableTypeChecker(validate);
945
- }
946
-
947
- function createElementTypeChecker() {
948
- function validate(props, propName, componentName, location, propFullName) {
949
- var propValue = props[propName];
950
- if (!isValidElement(propValue)) {
951
- var propType = getPropType(propValue);
952
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
953
- }
954
- return null;
955
- }
956
- return createChainableTypeChecker(validate);
957
- }
958
-
959
- function createElementTypeTypeChecker() {
960
- function validate(props, propName, componentName, location, propFullName) {
961
- var propValue = props[propName];
962
- if (!ReactIs$1.isValidElementType(propValue)) {
963
- var propType = getPropType(propValue);
964
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
965
- }
966
- return null;
967
- }
968
- return createChainableTypeChecker(validate);
969
- }
970
-
971
- function createInstanceTypeChecker(expectedClass) {
972
- function validate(props, propName, componentName, location, propFullName) {
973
- if (!(props[propName] instanceof expectedClass)) {
974
- var expectedClassName = expectedClass.name || ANONYMOUS;
975
- var actualClassName = getClassName(props[propName]);
976
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
977
- }
978
- return null;
979
- }
980
- return createChainableTypeChecker(validate);
981
- }
982
-
983
- function createEnumTypeChecker(expectedValues) {
984
- if (!Array.isArray(expectedValues)) {
985
- if (process.env.NODE_ENV !== 'production') {
986
- if (arguments.length > 1) {
987
- printWarning(
988
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
989
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
990
- );
991
- } else {
992
- printWarning('Invalid argument supplied to oneOf, expected an array.');
993
- }
994
- }
995
- return emptyFunctionThatReturnsNull;
996
- }
997
-
998
- function validate(props, propName, componentName, location, propFullName) {
999
- var propValue = props[propName];
1000
- for (var i = 0; i < expectedValues.length; i++) {
1001
- if (is(propValue, expectedValues[i])) {
1002
- return null;
1003
- }
1004
- }
1005
-
1006
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1007
- var type = getPreciseType(value);
1008
- if (type === 'symbol') {
1009
- return String(value);
1010
- }
1011
- return value;
1012
- });
1013
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1014
- }
1015
- return createChainableTypeChecker(validate);
1016
- }
1017
-
1018
- function createObjectOfTypeChecker(typeChecker) {
1019
- function validate(props, propName, componentName, location, propFullName) {
1020
- if (typeof typeChecker !== 'function') {
1021
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1022
- }
1023
- var propValue = props[propName];
1024
- var propType = getPropType(propValue);
1025
- if (propType !== 'object') {
1026
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1027
- }
1028
- for (var key in propValue) {
1029
- if (has(propValue, key)) {
1030
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1031
- if (error instanceof Error) {
1032
- return error;
1033
- }
1034
- }
1035
- }
1036
- return null;
1037
- }
1038
- return createChainableTypeChecker(validate);
1039
- }
1040
-
1041
- function createUnionTypeChecker(arrayOfTypeCheckers) {
1042
- if (!Array.isArray(arrayOfTypeCheckers)) {
1043
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1044
- return emptyFunctionThatReturnsNull;
1045
- }
1046
-
1047
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1048
- var checker = arrayOfTypeCheckers[i];
1049
- if (typeof checker !== 'function') {
1050
- printWarning(
1051
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1052
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1053
- );
1054
- return emptyFunctionThatReturnsNull;
1055
- }
1056
- }
1057
-
1058
- function validate(props, propName, componentName, location, propFullName) {
1059
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1060
- var checker = arrayOfTypeCheckers[i];
1061
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
1062
- return null;
1063
- }
1064
- }
1065
-
1066
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
1067
- }
1068
- return createChainableTypeChecker(validate);
1069
- }
1070
-
1071
- function createNodeChecker() {
1072
- function validate(props, propName, componentName, location, propFullName) {
1073
- if (!isNode(props[propName])) {
1074
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1075
- }
1076
- return null;
1077
- }
1078
- return createChainableTypeChecker(validate);
1079
- }
1080
-
1081
- function createShapeTypeChecker(shapeTypes) {
1082
- function validate(props, propName, componentName, location, propFullName) {
1083
- var propValue = props[propName];
1084
- var propType = getPropType(propValue);
1085
- if (propType !== 'object') {
1086
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1087
- }
1088
- for (var key in shapeTypes) {
1089
- var checker = shapeTypes[key];
1090
- if (!checker) {
1091
- continue;
1092
- }
1093
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1094
- if (error) {
1095
- return error;
1096
- }
1097
- }
1098
- return null;
1099
- }
1100
- return createChainableTypeChecker(validate);
1101
- }
1102
-
1103
- function createStrictShapeTypeChecker(shapeTypes) {
1104
- function validate(props, propName, componentName, location, propFullName) {
1105
- var propValue = props[propName];
1106
- var propType = getPropType(propValue);
1107
- if (propType !== 'object') {
1108
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1109
- }
1110
- // We need to check all keys in case some are required but missing from
1111
- // props.
1112
- var allKeys = assign({}, props[propName], shapeTypes);
1113
- for (var key in allKeys) {
1114
- var checker = shapeTypes[key];
1115
- if (!checker) {
1116
- return new PropTypeError(
1117
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1118
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1119
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1120
- );
1121
- }
1122
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1123
- if (error) {
1124
- return error;
1125
- }
1126
- }
1127
- return null;
1128
- }
1129
-
1130
- return createChainableTypeChecker(validate);
1131
- }
1132
-
1133
- function isNode(propValue) {
1134
- switch (typeof propValue) {
1135
- case 'number':
1136
- case 'string':
1137
- case 'undefined':
1138
- return true;
1139
- case 'boolean':
1140
- return !propValue;
1141
- case 'object':
1142
- if (Array.isArray(propValue)) {
1143
- return propValue.every(isNode);
1144
- }
1145
- if (propValue === null || isValidElement(propValue)) {
1146
- return true;
1147
- }
1148
-
1149
- var iteratorFn = getIteratorFn(propValue);
1150
- if (iteratorFn) {
1151
- var iterator = iteratorFn.call(propValue);
1152
- var step;
1153
- if (iteratorFn !== propValue.entries) {
1154
- while (!(step = iterator.next()).done) {
1155
- if (!isNode(step.value)) {
1156
- return false;
1157
- }
1158
- }
1159
- } else {
1160
- // Iterator will provide entry [k,v] tuples rather than values.
1161
- while (!(step = iterator.next()).done) {
1162
- var entry = step.value;
1163
- if (entry) {
1164
- if (!isNode(entry[1])) {
1165
- return false;
1166
- }
1167
- }
1168
- }
1169
- }
1170
- } else {
1171
- return false;
1172
- }
1173
-
1174
- return true;
1175
- default:
1176
- return false;
1177
- }
1178
- }
1179
-
1180
- function isSymbol(propType, propValue) {
1181
- // Native Symbol.
1182
- if (propType === 'symbol') {
1183
- return true;
1184
- }
1185
-
1186
- // falsy value can't be a Symbol
1187
- if (!propValue) {
1188
- return false;
1189
- }
1190
-
1191
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1192
- if (propValue['@@toStringTag'] === 'Symbol') {
1193
- return true;
1194
- }
1195
-
1196
- // Fallback for non-spec compliant Symbols which are polyfilled.
1197
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1198
- return true;
1199
- }
1200
-
1201
- return false;
1202
- }
1203
-
1204
- // Equivalent of `typeof` but with special handling for array and regexp.
1205
- function getPropType(propValue) {
1206
- var propType = typeof propValue;
1207
- if (Array.isArray(propValue)) {
1208
- return 'array';
1209
- }
1210
- if (propValue instanceof RegExp) {
1211
- // Old webkits (at least until Android 4.0) return 'function' rather than
1212
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1213
- // passes PropTypes.object.
1214
- return 'object';
1215
- }
1216
- if (isSymbol(propType, propValue)) {
1217
- return 'symbol';
1218
- }
1219
- return propType;
1220
- }
1221
-
1222
- // This handles more types than `getPropType`. Only used for error messages.
1223
- // See `createPrimitiveTypeChecker`.
1224
- function getPreciseType(propValue) {
1225
- if (typeof propValue === 'undefined' || propValue === null) {
1226
- return '' + propValue;
1227
- }
1228
- var propType = getPropType(propValue);
1229
- if (propType === 'object') {
1230
- if (propValue instanceof Date) {
1231
- return 'date';
1232
- } else if (propValue instanceof RegExp) {
1233
- return 'regexp';
1234
- }
1235
- }
1236
- return propType;
1237
- }
1238
-
1239
- // Returns a string that is postfixed to a warning about an invalid type.
1240
- // For example, "undefined" or "of type array"
1241
- function getPostfixForTypeWarning(value) {
1242
- var type = getPreciseType(value);
1243
- switch (type) {
1244
- case 'array':
1245
- case 'object':
1246
- return 'an ' + type;
1247
- case 'boolean':
1248
- case 'date':
1249
- case 'regexp':
1250
- return 'a ' + type;
1251
- default:
1252
- return type;
1253
- }
1254
- }
1255
-
1256
- // Returns class name of the object, if any.
1257
- function getClassName(propValue) {
1258
- if (!propValue.constructor || !propValue.constructor.name) {
1259
- return ANONYMOUS;
1260
- }
1261
- return propValue.constructor.name;
1262
- }
1263
-
1264
- ReactPropTypes.checkPropTypes = checkPropTypes;
1265
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1266
- ReactPropTypes.PropTypes = ReactPropTypes;
1267
-
1268
- return ReactPropTypes;
1269
- };
1270
-
1271
- /**
1272
- * Copyright (c) 2013-present, Facebook, Inc.
1273
- *
1274
- * This source code is licensed under the MIT license found in the
1275
- * LICENSE file in the root directory of this source tree.
1276
- */
1277
-
1278
- var ReactPropTypesSecret = ReactPropTypesSecret_1;
1279
-
1280
- function emptyFunction() {}
1281
- function emptyFunctionWithReset() {}
1282
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1283
-
1284
- var factoryWithThrowingShims = function() {
1285
- function shim(props, propName, componentName, location, propFullName, secret) {
1286
- if (secret === ReactPropTypesSecret) {
1287
- // It is still safe when called from React.
1288
- return;
1289
- }
1290
- var err = new Error(
1291
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1292
- 'Use PropTypes.checkPropTypes() to call them. ' +
1293
- 'Read more at http://fb.me/use-check-prop-types'
1294
- );
1295
- err.name = 'Invariant Violation';
1296
- throw err;
1297
- } shim.isRequired = shim;
1298
- function getShim() {
1299
- return shim;
1300
- } // Important!
1301
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1302
- var ReactPropTypes = {
1303
- array: shim,
1304
- bool: shim,
1305
- func: shim,
1306
- number: shim,
1307
- object: shim,
1308
- string: shim,
1309
- symbol: shim,
1310
-
1311
- any: shim,
1312
- arrayOf: getShim,
1313
- element: shim,
1314
- elementType: shim,
1315
- instanceOf: getShim,
1316
- node: shim,
1317
- objectOf: getShim,
1318
- oneOf: getShim,
1319
- oneOfType: getShim,
1320
- shape: getShim,
1321
- exact: getShim,
1322
-
1323
- checkPropTypes: emptyFunctionWithReset,
1324
- resetWarningCache: emptyFunction
1325
- };
1326
-
1327
- ReactPropTypes.PropTypes = ReactPropTypes;
1328
-
1329
- return ReactPropTypes;
1330
- };
1331
-
1332
- /**
1333
- * Copyright (c) 2013-present, Facebook, Inc.
1334
- *
1335
- * This source code is licensed under the MIT license found in the
1336
- * LICENSE file in the root directory of this source tree.
1337
- */
1338
-
1339
- if (process.env.NODE_ENV !== 'production') {
1340
- var ReactIs = reactIs.exports;
1341
-
1342
- // By explicitly using `prop-types` you are opting into new development behavior.
1343
- // http://fb.me/prop-types-in-prod
1344
- var throwOnDirectAccess = true;
1345
- propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1346
- } else {
1347
- // By explicitly using `prop-types` you are opting into new production behavior.
1348
- // http://fb.me/prop-types-in-prod
1349
- propTypes.exports = factoryWithThrowingShims();
1350
- }
1351
-
1352
- var PropTypes = propTypes.exports;
1353
-
1354
- function styleInject(css, ref) {
1355
- if ( ref === void 0 ) ref = {};
1356
- var insertAt = ref.insertAt;
1357
-
1358
- if (!css || typeof document === 'undefined') { return; }
1359
-
1360
- var head = document.head || document.getElementsByTagName('head')[0];
1361
- var style = document.createElement('style');
1362
- style.type = 'text/css';
1363
-
1364
- if (insertAt === 'top') {
1365
- if (head.firstChild) {
1366
- head.insertBefore(style, head.firstChild);
1367
- } else {
1368
- head.appendChild(style);
1369
- }
1370
- } else {
1371
- head.appendChild(style);
1372
- }
1373
-
1374
- if (style.styleSheet) {
1375
- style.styleSheet.cssText = css;
1376
- } else {
1377
- style.appendChild(document.createTextNode(css));
1378
- }
1379
- }
1380
-
1381
- var css_248z = "/**\n * Colors\n */\n";
1382
- var importedColors = {"orange-500":"#ff9900","orange-400":"#ffcb7e","emerald-500":"#30826a","emerald-400":"#64b49d","emerald-300":"#bfe0d5","emerald-200":"#f3f9f7","gray-900":"#141313","gray-800":"#272727","gray-700":"#323232","gray-600":"#505050","gray-500":"#767676","gray-400":"#b0b6b9","gray-300":"#d9dce0","gray-200":"#eff1f4","gray-100":"#f7f8f9","cercise-500":"#5f1031","cercise-400":"#854962","cercise-300":"#d099b0","cercise-100":"#f9f3f5","red-600":"#7f1b1b","red-500":"#d83000","red-200":"#fbeae6","brown-500":"#634e01","signal-yellow-500":"#f4e21e","signal-yellow-400":"#fff36c","signal-green-500":"#00bd98","signal-green-400":"#a3ffe0","black":"#202435","white":"#ffffff"};
1383
- styleInject(css_248z);
1384
-
1385
- var _templateObject;
1386
- var defaultTheme = {
1387
- getColor: function getColor(name) {
1388
- if (!importedColors[name]) throw Error("The color \"".concat(name, "\" is not registered."));
1389
- return importedColors[name];
1390
- },
1391
- primaryFontFamily: "'Roboto', sans-serif",
1392
- secondaryFontFamily: "'Overpass', sans-serif",
1393
- themeProp: themeProp
1394
- };
1395
-
1396
- function themeProp(property, darkMode, lightMode) {
1397
- var specificity = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 2;
1398
- var specificityString = Array(specificity).fill("&").join("");
1399
- return styled.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body.dark-theme ", " {\n ", ": ", ";\n }\n\n body.light-theme ", " {\n ", ": ", ";\n }\n\n body:not(.light-theme):not(.dark-theme) ", " {\n ", ": ", ";\n\n @media (prefers-color-scheme: dark) {\n ", ": ", ";\n }\n }\n "])), specificityString, property, darkMode, specificityString, property, lightMode, specificityString, property, lightMode, property, darkMode);
1400
- }
1401
-
1402
- function applyDefaultTheme(_ref) {
1403
- var _ref$theme = _ref.theme,
1404
- theme = _ref$theme === void 0 ? {} : _ref$theme,
1405
- props = _objectWithoutProperties(_ref, ["theme"]);
1406
-
1407
- return _objectSpread2(_objectSpread2({}, props), {}, {
1408
- theme: Object.assign({}, defaultTheme, theme)
1409
- });
1410
- }
1411
-
1412
- exports.PropTypes = PropTypes;
1413
- exports._createForOfIteratorHelper = _createForOfIteratorHelper;
1414
- exports._extends = _extends;
1415
- exports._objectSpread2 = _objectSpread2;
1416
- exports._objectWithoutProperties = _objectWithoutProperties;
1417
- exports._slicedToArray = _slicedToArray;
1418
- exports._taggedTemplateLiteral = _taggedTemplateLiteral;
1419
- exports._toConsumableArray = _toConsumableArray;
1420
- exports._typeof = _typeof;
1421
- exports.applyDefaultTheme = applyDefaultTheme;
1422
- exports.styleInject = styleInject;