@ilo-org/react 0.17.8 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (910) hide show
  1. package/lib/cjs/_store/Accordion-chunk-C0MtnZLX.js +1 -0
  2. package/lib/cjs/_store/Accordion-entry-BZxhUG2Q.js +1 -0
  3. package/lib/cjs/_store/Breadcrumb-chunk-DvUpVY4l.js +1 -0
  4. package/lib/cjs/_store/Breadcrumb-entry-NNucl1rR.js +1 -0
  5. package/lib/cjs/_store/Button-chunk-0TEubQS1.js +1 -0
  6. package/lib/cjs/_store/Button-entry-BogzX4pv.js +1 -0
  7. package/lib/cjs/_store/Callout-chunk-B_3FQTvs.js +1 -0
  8. package/lib/cjs/_store/Callout-entry-DJsjlWxc.js +1 -0
  9. package/lib/cjs/_store/CardGroup-chunk-DhFE-J5O.js +1 -0
  10. package/lib/cjs/_store/Checkbox-chunk-B7P6WeNp.js +1 -0
  11. package/lib/cjs/_store/Checkbox-entry-Cpcx9EKD.js +1 -0
  12. package/lib/cjs/_store/Collapse-chunk-B3s_Bzzq.js +1 -0
  13. package/lib/cjs/_store/Collapse-entry-Djy1BBs6.js +1 -0
  14. package/lib/cjs/_store/ContextMenu-chunk-BegVo-Ry.js +1 -0
  15. package/lib/cjs/_store/ContextMenu-entry-TCdyzIRt.js +1 -0
  16. package/lib/cjs/_store/Credit-chunk-Dts5RkwZ.js +1 -0
  17. package/lib/cjs/_store/Credit-entry-GjFSWiDE.js +1 -0
  18. package/lib/cjs/_store/DatePicker-chunk-DMvnrakE.js +1 -0
  19. package/lib/cjs/_store/DatePicker-entry-CweKIj3U.js +1 -0
  20. package/lib/cjs/_store/Dropdown-chunk--_pVhTcV.js +1 -0
  21. package/lib/cjs/_store/Dropdown-entry-BcBG6Zg7.js +1 -0
  22. package/lib/cjs/_store/Empty-chunk-BEqHK-KC.js +1 -0
  23. package/lib/cjs/_store/Empty-entry-C_Q8VgpP.js +1 -0
  24. package/lib/cjs/_store/Fieldset-chunk-BsOPbe_a.js +1 -0
  25. package/lib/cjs/_store/Fieldset-entry-BUyKAdkn.js +1 -0
  26. package/lib/cjs/_store/FileUpload-chunk-CmHP-E54.js +1 -0
  27. package/lib/cjs/_store/FileUpload-entry-DKzm4WvO.js +1 -0
  28. package/lib/cjs/_store/Footer-chunk-9dkCoi0B.js +1 -0
  29. package/lib/cjs/_store/Footer-entry-D3GYBVpj.js +1 -0
  30. package/lib/cjs/_store/Form-chunk-DjDwz7DV.js +1 -0
  31. package/lib/cjs/_store/Form-entry-O0GJ5PoD.js +1 -0
  32. package/lib/cjs/_store/FormControl-chunk-08fp5TeU.js +1 -0
  33. package/lib/cjs/_store/FormControl-entry-DN7TYc37.js +1 -0
  34. package/lib/cjs/_store/FormElement-chunk-B8x3bzQh.js +1 -0
  35. package/lib/cjs/_store/FormElement-entry-DDBD7cYZ.js +1 -0
  36. package/lib/cjs/_store/GlobalCtx-chunk-D_GlGcgw.js +1 -0
  37. package/lib/cjs/_store/GlobalProvider-chunk-Bt1vmswv.js +1 -0
  38. package/lib/cjs/_store/GlobalProvider-entry-DkJQ9RWP.js +1 -0
  39. package/lib/cjs/_store/Heading-chunk-BJAywWmF.js +1 -0
  40. package/lib/cjs/_store/Heading-entry-DsqDeoiL.js +1 -0
  41. package/lib/cjs/_store/Hero-chunk-ZP6tCFz5.js +1 -0
  42. package/lib/cjs/_store/Hero-entry-CVMagWvL.js +1 -0
  43. package/lib/cjs/_store/Icon-chunk-C3UyVBv5.js +1 -0
  44. package/lib/cjs/_store/Icon-entry-DHj_qd8u.js +1 -0
  45. package/lib/cjs/_store/Image-chunk-jaj_JISB.js +1 -0
  46. package/lib/cjs/_store/Image-entry-DpxKHlQg.js +1 -0
  47. package/lib/cjs/_store/Input-chunk-DIcDfISq.js +1 -0
  48. package/lib/cjs/_store/Input-entry-Cq1G_bNN.js +1 -0
  49. package/lib/cjs/_store/Link-chunk-B_ZIovS2.js +1 -0
  50. package/lib/cjs/_store/Link-entry-CFNVpDIo.js +1 -0
  51. package/lib/cjs/_store/LinkList-chunk-Dv-cNPfH.js +1 -0
  52. package/lib/cjs/_store/LinkList-entry-CvmQYOZx.js +1 -0
  53. package/lib/cjs/_store/List-entry-CWz5DRJJ.js +1 -0
  54. package/lib/cjs/_store/ListItem-chunk-CHb4_N2-.js +1 -0
  55. package/lib/cjs/_store/Loading-chunk-C9rx8cqr.js +1 -0
  56. package/lib/cjs/_store/Loading-entry-CwPEKM50.js +1 -0
  57. package/lib/cjs/_store/LocalNav-chunk-TRLUir71.js +1 -0
  58. package/lib/cjs/_store/LocalNav-entry-BHboaRc5.js +1 -0
  59. package/lib/cjs/_store/Logo-chunk-Bz8Vfcn7.js +1 -0
  60. package/lib/cjs/_store/Logo-entry-C8ZmQs8R.js +1 -0
  61. package/lib/cjs/_store/LogoGrid-entry-DfTqIeGY.js +1 -0
  62. package/lib/cjs/_store/Navigation-chunk-CPzyVK7B.js +1 -0
  63. package/lib/cjs/_store/Navigation-entry-D07Y4pkR.js +1 -0
  64. package/lib/cjs/_store/Notification-chunk-DXIs6h5e.js +1 -0
  65. package/lib/cjs/_store/Notification-entry-C9D2mAvD.js +1 -0
  66. package/lib/cjs/_store/NumberPicker-chunk-CaQYVhyz.js +1 -0
  67. package/lib/cjs/_store/NumberPicker-entry-BEqwzCKS.js +1 -0
  68. package/lib/cjs/_store/Pagination-chunk-4zp3hOFL.js +1 -0
  69. package/lib/cjs/_store/Pagination-entry-eS2pFOuY.js +1 -0
  70. package/lib/cjs/_store/Profile-chunk-BH98cR85.js +1 -0
  71. package/lib/cjs/_store/Profile-entry-DHpgLCAp.js +1 -0
  72. package/lib/cjs/_store/Radio-chunk-RnNWzYgj.js +1 -0
  73. package/lib/cjs/_store/Radio-entry-DhWQjZuV.js +1 -0
  74. package/lib/cjs/_store/ReadMore-chunk-BQvY4016.js +1 -0
  75. package/lib/cjs/_store/ReadMore-entry-oYGJDJYJ.js +1 -0
  76. package/lib/cjs/_store/RichText-chunk-ZamwF4QL.js +1 -0
  77. package/lib/cjs/_store/RichText-entry-C7Fzr9VS.js +1 -0
  78. package/lib/cjs/_store/SearchField-chunk-DsxlWr7d.js +1 -0
  79. package/lib/cjs/_store/SearchField-entry-CgnoJz0d.js +1 -0
  80. package/lib/cjs/_store/SocialMedia-chunk-fLjmpXNC.js +1 -0
  81. package/lib/cjs/_store/SocialMedia-entry-meZdo-EU.js +1 -0
  82. package/lib/cjs/_store/TableOfContents-chunk-DcLMEr2i.js +1 -0
  83. package/lib/cjs/_store/TableOfContents-entry-DrMc0kJL.js +1 -0
  84. package/lib/cjs/_store/Tabs-chunk-DDQr8q_Q.js +1 -0
  85. package/lib/cjs/_store/Tabs-entry-iq_o_CtL.js +1 -0
  86. package/lib/cjs/_store/Tag-chunk-B4ZPZsMt.js +1 -0
  87. package/lib/cjs/_store/Tag-entry-5_lz5glY.js +1 -0
  88. package/lib/cjs/_store/TextInput-entry-Bl0sZdpl.js +1 -0
  89. package/lib/cjs/_store/Textarea-chunk-3fPk9MqI.js +1 -0
  90. package/lib/cjs/_store/Textarea-entry-Ac7gdvET.js +1 -0
  91. package/lib/cjs/_store/Toggle-entry-s05NRKOs.js +1 -0
  92. package/lib/cjs/_store/Tooltip-chunk-Bh77DbOg.js +1 -0
  93. package/lib/cjs/_store/Tooltip-entry--csXZiQZ.js +1 -0
  94. package/lib/cjs/_store/Video-chunk-BIJvoxjg.js +66 -0
  95. package/lib/cjs/_store/Video-entry-CmzlnrTO.js +1 -0
  96. package/lib/cjs/_store/_commonjsHelpers-chunk-DwTZ_eVU.js +1 -0
  97. package/lib/cjs/_store/checkArrayDuplicates-chunk-Bqxwhc1q.js +1 -0
  98. package/lib/cjs/_store/components-entry-DEwUb_oq.js +1 -0
  99. package/lib/cjs/_store/index-chunk-CV1afBzr.js +20 -0
  100. package/lib/cjs/_store/index-chunk-DCI82Tmm.js +5 -0
  101. package/lib/cjs/_store/index.js +1 -0
  102. package/lib/cjs/_store/inheritsLoose-chunk-VkUGvzyJ.js +1 -0
  103. package/lib/cjs/_store/useGlobalSettings-chunk-Pa38w6VS.js +1 -0
  104. package/lib/cjs/_store/usePrevious-chunk-DENrwKF1.js +1 -0
  105. package/lib/cjs/index.js +1 -135
  106. package/lib/esm/_store/Accordion-chunk-B6FAPUyi.js +113 -0
  107. package/lib/esm/_store/Accordion-entry-oAYQPeGr.js +7 -0
  108. package/lib/esm/_store/Breadcrumb-chunk-CclNRjxd.js +132 -0
  109. package/lib/esm/_store/Breadcrumb-entry-Biundzlp.js +4 -0
  110. package/lib/esm/_store/Button-chunk-Crzq2FAv.js +61 -0
  111. package/lib/esm/_store/Button-entry-DQ9yLTsk.js +30 -0
  112. package/lib/esm/_store/Callout-chunk-BYTLkWbG.js +63 -0
  113. package/lib/esm/_store/Callout-entry-C-llb6Kt.js +31 -0
  114. package/lib/esm/_store/CardGroup-chunk-BTx2ukOX.js +354 -0
  115. package/lib/esm/_store/Checkbox-chunk-DJDgykAw.js +71 -0
  116. package/lib/esm/_store/Checkbox-entry-CfjxZKrK.js +28 -0
  117. package/lib/esm/_store/Collapse-chunk-BVSI_9Dd.js +560 -0
  118. package/lib/esm/_store/Collapse-entry-DH89iy1Y.js +4 -0
  119. package/lib/esm/_store/ContextMenu-chunk-CkdC2iPF.js +22 -0
  120. package/lib/esm/_store/ContextMenu-entry-BkbaSgVR.js +4 -0
  121. package/lib/esm/_store/Credit-chunk-BjaAFul8.js +26 -0
  122. package/lib/esm/_store/Credit-entry-BGow5bDT.js +4 -0
  123. package/lib/esm/_store/DatePicker-chunk-10fIc74h.js +60 -0
  124. package/lib/esm/_store/DatePicker-entry-Bu0S1bvg.js +4 -0
  125. package/lib/esm/_store/Dropdown-chunk-B6G7DnYr.js +72 -0
  126. package/lib/esm/_store/Dropdown-entry-CRDxMRpe.js +4 -0
  127. package/lib/esm/_store/Empty-chunk-UEm5zVbe.js +12 -0
  128. package/lib/esm/_store/Empty-entry-BuwyDmF5.js +4 -0
  129. package/lib/esm/_store/Fieldset-chunk-PK4HqNv_.js +57 -0
  130. package/lib/esm/_store/Fieldset-entry-BmiHpIGy.js +4 -0
  131. package/lib/esm/_store/FileUpload-chunk-dFon8lP2.js +77 -0
  132. package/lib/esm/_store/FileUpload-entry-uIvvAStY.js +4 -0
  133. package/lib/esm/_store/Footer-chunk-D6ig8l3Y.js +61 -0
  134. package/lib/esm/_store/Footer-entry-B885hcUe.js +4 -0
  135. package/lib/esm/_store/Form-chunk-1a4awKWi.js +13 -0
  136. package/lib/esm/_store/Form-entry-DhZ3WiWW.js +11 -0
  137. package/lib/esm/_store/FormControl-chunk-D_3t65GG.js +77 -0
  138. package/lib/esm/_store/FormControl-entry-DODa4uyx.js +4 -0
  139. package/lib/esm/_store/FormElement-chunk-DqR8rtCB.js +15 -0
  140. package/lib/esm/_store/FormElement-entry-C_RiN-BZ.js +4 -0
  141. package/lib/esm/_store/GlobalCtx-chunk-CtSRDnk3.js +7 -0
  142. package/lib/esm/_store/GlobalProvider-chunk-nVdEz2_E.js +20 -0
  143. package/lib/esm/_store/GlobalProvider-entry-CCUkUh3z.js +6 -0
  144. package/lib/esm/_store/Heading-chunk-CFEDmQeQ.js +19 -0
  145. package/lib/esm/_store/Heading-entry-CTotrXWW.js +4 -0
  146. package/lib/esm/_store/Hero-chunk-HJvXvclG.js +76 -0
  147. package/lib/esm/_store/Hero-entry-gNTc6gUC.js +5 -0
  148. package/lib/esm/_store/Icon-chunk-x0E_KQyQ.js +3482 -0
  149. package/lib/esm/_store/Icon-entry-d1Lq52eV.js +4 -0
  150. package/lib/esm/_store/Image-chunk-C4zF97rw.js +35 -0
  151. package/lib/esm/_store/Image-entry-DaqK9C99.js +4 -0
  152. package/lib/esm/_store/Input-chunk-p-3N8OO4.js +58 -0
  153. package/lib/esm/_store/Input-entry-DG2Mv1K2.js +4 -0
  154. package/lib/esm/_store/Link-chunk-zt732cUC.js +36 -0
  155. package/lib/esm/_store/Link-entry-BY4hUubQ.js +4 -0
  156. package/lib/esm/_store/LinkList-chunk-CIZvyv8v.js +38 -0
  157. package/lib/esm/_store/LinkList-entry-ChpzxNTf.js +4 -0
  158. package/lib/esm/_store/List-entry-C68jMDRE.js +5 -0
  159. package/lib/esm/_store/ListItem-chunk-CKnxZe3Y.js +26 -0
  160. package/lib/esm/_store/Loading-chunk-BIJLAqk6.js +14 -0
  161. package/lib/esm/_store/Loading-entry-84g0sHXB.js +4 -0
  162. package/lib/esm/_store/LocalNav-chunk-BTJAs9kb.js +207 -0
  163. package/lib/esm/_store/LocalNav-entry-CYlCB-lD.js +4 -0
  164. package/lib/esm/_store/Logo-chunk-CsxA3mRV.js +121 -0
  165. package/lib/esm/_store/Logo-entry-3NNSpfQ9.js +4 -0
  166. package/lib/esm/_store/LogoGrid-entry-BEUN3M_d.js +24 -0
  167. package/lib/esm/_store/Navigation-chunk-BL9t1Aze.js +221 -0
  168. package/lib/esm/_store/Navigation-entry-Ch7YqW5b.js +4 -0
  169. package/lib/esm/_store/Notification-chunk-CdTKN1sq.js +61 -0
  170. package/lib/esm/_store/Notification-entry--uWc9jEM.js +4 -0
  171. package/lib/esm/_store/NumberPicker-chunk-CsDLNdop.js +62 -0
  172. package/lib/esm/_store/NumberPicker-entry-BuxrmdUS.js +4 -0
  173. package/lib/esm/_store/Pagination-chunk-Ci7qN6no.js +94 -0
  174. package/lib/esm/_store/Pagination-entry-CM2xRx7F.js +4 -0
  175. package/lib/esm/_store/Profile-chunk-Bsn46OaP.js +38 -0
  176. package/lib/esm/_store/Profile-entry-CE39-Kzc.js +4 -0
  177. package/lib/esm/_store/Radio-chunk-GaPnCNx4.js +77 -0
  178. package/lib/esm/_store/Radio-entry-CFuTolt7.js +11 -0
  179. package/lib/esm/_store/ReadMore-chunk-DoptEIE4.js +38 -0
  180. package/lib/esm/_store/ReadMore-entry-DuzFfWne.js +4 -0
  181. package/lib/esm/_store/RichText-chunk-BOMiyuNR.js +18 -0
  182. package/lib/esm/_store/RichText-entry-BfHki79h.js +4 -0
  183. package/lib/esm/_store/SearchField-chunk-BF-yCtvV.js +56 -0
  184. package/lib/esm/_store/SearchField-entry-DCMFJrVP.js +4 -0
  185. package/lib/esm/_store/SocialMedia-chunk-CP4gdUdi.js +32 -0
  186. package/lib/esm/_store/SocialMedia-entry-ZTNn-vUB.js +54 -0
  187. package/lib/esm/_store/TableOfContents-chunk-BXnS8D2s.js +12 -0
  188. package/lib/esm/_store/TableOfContents-entry-DHXKt1NR.js +4 -0
  189. package/lib/esm/_store/Tabs-chunk-D2k0m68V.js +40 -0
  190. package/lib/esm/_store/Tabs-entry-B3sg3VMU.js +4 -0
  191. package/lib/esm/_store/Tag-chunk-BxCaTFBz.js +65 -0
  192. package/lib/esm/_store/Tag-entry-Cr5XkVR9.js +45 -0
  193. package/lib/esm/_store/TextInput-entry-BTZVvumC.js +123 -0
  194. package/lib/esm/_store/Textarea-chunk-BCW6ZV8n.js +38 -0
  195. package/lib/esm/_store/Textarea-entry-CFe0s_hM.js +28 -0
  196. package/lib/esm/_store/Toggle-entry-CehJKItc.js +122 -0
  197. package/lib/esm/_store/Tooltip-chunk-CPT-dPDc.js +1001 -0
  198. package/lib/esm/_store/Tooltip-entry-cgQr1mHa.js +4 -0
  199. package/lib/esm/_store/Video-chunk-CDl9BbxW.js +24698 -0
  200. package/lib/esm/_store/Video-entry-DNXjIczI.js +4 -0
  201. package/lib/esm/_store/_commonjsHelpers-chunk-BkfeUUK-.js +28 -0
  202. package/lib/esm/_store/checkArrayDuplicates-chunk-C7cf0TQw.js +11 -0
  203. package/lib/esm/_store/components-entry-Er-smibI.js +87 -0
  204. package/lib/esm/_store/index-chunk-0LeqwHm8.js +40 -0
  205. package/lib/esm/_store/index-chunk-BNwl8BvE.js +644 -0
  206. package/lib/esm/_store/index.js +6 -0
  207. package/lib/esm/_store/inheritsLoose-chunk-JR0pp2En.js +12 -0
  208. package/lib/esm/_store/useGlobalSettings-chunk-gkijV3S1.js +12 -0
  209. package/lib/esm/_store/usePrevious-chunk-BtJVllKj.js +10 -0
  210. package/lib/esm/index.js +91 -86
  211. package/lib/styles/global.css.map +1 -0
  212. package/lib/styles/index.css.map +1 -0
  213. package/lib/styles/monorepo.css.map +1 -0
  214. package/lib/types/components/Accordion/Accordion.d.ts +5 -0
  215. package/lib/types/components/Accordion/Accordion.props.d.ts +34 -0
  216. package/lib/types/components/Accordion/AccordionButton.d.ts +5 -0
  217. package/lib/types/components/Accordion/AccordionButton.props.d.ts +12 -0
  218. package/lib/types/components/Accordion/AccordionCtx.d.ts +5 -0
  219. package/lib/types/components/Accordion/AccordionItem.d.ts +5 -0
  220. package/lib/types/components/Accordion/AccordionItem.props.d.ts +22 -0
  221. package/lib/types/components/Accordion/AccordionPanel.d.ts +5 -0
  222. package/lib/types/components/Accordion/AccordionPanel.props.d.ts +22 -0
  223. package/lib/types/components/Accordion/index.d.ts +4 -0
  224. package/lib/types/components/Breadcrumb/Breadcrumb.d.ts +5 -0
  225. package/lib/types/components/Breadcrumb/Breadcrumb.props.d.ts +32 -0
  226. package/lib/types/components/Breadcrumb/index.d.ts +1 -0
  227. package/lib/types/components/Button/Button.d.ts +5 -0
  228. package/lib/types/components/Button/Button.props.d.ts +69 -0
  229. package/lib/types/components/Button/index.d.ts +2 -0
  230. package/lib/types/components/Callout/Callout.d.ts +5 -0
  231. package/lib/types/components/Callout/Callout.props.d.ts +51 -0
  232. package/lib/types/components/Callout/index.d.ts +2 -0
  233. package/lib/types/components/Cards/CardGroup/CardGroup.d.ts +5 -0
  234. package/lib/types/components/Cards/CardGroup/CardGroup.props.d.ts +85 -0
  235. package/lib/types/components/Cards/CardGroup/index.d.ts +3 -0
  236. package/lib/types/components/Cards/DataCard/DataCard.d.ts +5 -0
  237. package/lib/types/components/Cards/DataCard/DataCard.props.d.ts +51 -0
  238. package/lib/types/components/Cards/DataCard/index.d.ts +3 -0
  239. package/lib/types/components/Cards/DetailCard/DetailCard.d.ts +5 -0
  240. package/lib/types/components/Cards/DetailCard/DetailCard.props.d.ts +40 -0
  241. package/lib/types/components/Cards/DetailCard/index.d.ts +3 -0
  242. package/lib/types/components/Cards/FactlistCard/FactListCard.d.ts +5 -0
  243. package/lib/types/components/Cards/FactlistCard/FactListCard.props.d.ts +21 -0
  244. package/lib/types/components/Cards/FactlistCard/index.d.ts +3 -0
  245. package/lib/types/components/Cards/FeatureCard/FeatureCard.d.ts +5 -0
  246. package/lib/types/components/Cards/FeatureCard/FeatureCard.props.d.ts +36 -0
  247. package/lib/types/components/Cards/FeatureCard/index.d.ts +3 -0
  248. package/lib/types/components/Cards/MultilinkCard/MultiLinkCard.d.ts +5 -0
  249. package/lib/types/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +30 -0
  250. package/lib/types/components/Cards/MultilinkCard/index.d.ts +3 -0
  251. package/lib/types/components/Cards/PromoCard/PromoCard.d.ts +5 -0
  252. package/lib/types/components/Cards/PromoCard/PromoCard.props.d.ts +35 -0
  253. package/lib/types/components/Cards/PromoCard/index.d.ts +3 -0
  254. package/lib/types/components/Cards/StatCard/StatCard.d.ts +5 -0
  255. package/lib/types/components/Cards/StatCard/StatCard.props.d.ts +26 -0
  256. package/lib/types/components/Cards/StatCard/index.d.ts +3 -0
  257. package/lib/types/components/Cards/TextCard/TextCard.d.ts +5 -0
  258. package/lib/types/components/Cards/TextCard/TextCard.props.d.ts +31 -0
  259. package/lib/types/components/Cards/TextCard/index.d.ts +3 -0
  260. package/lib/types/components/Checkbox/Checkbox.d.ts +7 -0
  261. package/lib/types/components/Checkbox/Checkbox.props.d.ts +4 -0
  262. package/lib/types/components/Checkbox/index.d.ts +2 -0
  263. package/lib/types/components/Collapse/Collapse.d.ts +4 -0
  264. package/lib/types/components/Collapse/Collapse.props.d.ts +77 -0
  265. package/lib/types/components/Collapse/index.d.ts +1 -0
  266. package/lib/types/components/ContextMenu/ContextMenu.d.ts +5 -0
  267. package/lib/types/components/ContextMenu/ContextMenu.props.d.ts +24 -0
  268. package/lib/types/components/ContextMenu/index.d.ts +1 -0
  269. package/lib/types/components/Credit/Credit.d.ts +5 -0
  270. package/lib/types/components/Credit/Credit.props.d.ts +10 -0
  271. package/lib/types/components/Credit/index.d.ts +1 -0
  272. package/lib/types/components/DatePicker/DatePicker.d.ts +6 -0
  273. package/lib/types/components/DatePicker/DatePicker.props.d.ts +21 -0
  274. package/lib/types/components/DatePicker/index.d.ts +1 -0
  275. package/lib/types/components/Dropdown/Dropdown.d.ts +7 -0
  276. package/lib/types/components/Dropdown/Dropdown.props.d.ts +43 -0
  277. package/lib/types/components/Dropdown/index.d.ts +1 -0
  278. package/lib/types/components/Empty/Empty.d.ts +5 -0
  279. package/lib/types/components/Empty/Empty.props.d.ts +12 -0
  280. package/lib/types/components/Empty/index.d.ts +1 -0
  281. package/lib/types/components/Fieldset/Fieldset.d.ts +11 -0
  282. package/lib/types/components/Fieldset/Fieldset.props.d.ts +28 -0
  283. package/lib/types/components/Fieldset/index.d.ts +1 -0
  284. package/lib/types/components/FileUpload/FileUpload.d.ts +7 -0
  285. package/lib/types/components/FileUpload/FileUpload.props.d.ts +17 -0
  286. package/lib/types/components/FileUpload/index.d.ts +1 -0
  287. package/lib/types/components/Footer/Footer.d.ts +5 -0
  288. package/lib/types/components/Footer/Footer.props.d.ts +49 -0
  289. package/lib/types/components/Footer/index.d.ts +1 -0
  290. package/lib/types/components/Form/Form.d.ts +4 -0
  291. package/lib/types/components/Form/Form.props.d.ts +7 -0
  292. package/lib/types/components/Form/index.d.ts +2 -0
  293. package/lib/types/components/FormControl/FormControl.d.ts +10 -0
  294. package/lib/types/components/FormControl/FormControl.props.d.ts +56 -0
  295. package/lib/types/components/FormControl/index.d.ts +2 -0
  296. package/lib/types/components/FormElement/FormElement.d.ts +5 -0
  297. package/lib/types/components/FormElement/FormElement.props.d.ts +48 -0
  298. package/lib/types/components/FormElement/index.d.ts +1 -0
  299. package/lib/types/components/GlobalProvider/GlobalCtx.d.ts +3 -0
  300. package/lib/types/components/GlobalProvider/GlobalProvider.d.ts +5 -0
  301. package/lib/types/components/GlobalProvider/GlobalProvider.props.d.ts +14 -0
  302. package/lib/types/components/GlobalProvider/index.d.ts +2 -0
  303. package/lib/types/components/Heading/Heading.d.ts +5 -0
  304. package/lib/types/components/Heading/Heading.props.d.ts +21 -0
  305. package/lib/types/components/Heading/index.d.ts +1 -0
  306. package/lib/types/components/Hero/Hero.d.ts +5 -0
  307. package/lib/types/components/Hero/Hero.props.d.ts +52 -0
  308. package/lib/types/components/Hero/HeroCard.d.ts +5 -0
  309. package/lib/types/components/Hero/HeroCard.props.d.ts +45 -0
  310. package/lib/types/components/Hero/index.d.ts +2 -0
  311. package/lib/types/components/Icon/Icon.d.ts +5 -0
  312. package/lib/types/components/Icon/Icon.props.d.ts +14 -0
  313. package/lib/types/components/Icon/index.d.ts +1 -0
  314. package/lib/types/components/Image/Image.d.ts +5 -0
  315. package/lib/types/components/Image/Image.props.d.ts +37 -0
  316. package/lib/types/components/Image/index.d.ts +1 -0
  317. package/lib/types/components/Input/Input.d.ts +5 -0
  318. package/lib/types/components/Input/Input.props.d.ts +53 -0
  319. package/lib/types/components/Input/index.d.ts +1 -0
  320. package/lib/types/components/Link/Link.d.ts +5 -0
  321. package/lib/types/components/Link/Link.props.d.ts +33 -0
  322. package/lib/types/components/Link/index.d.ts +1 -0
  323. package/lib/types/components/LinkList/LinkList.d.ts +5 -0
  324. package/lib/types/components/LinkList/LinkList.props.d.ts +44 -0
  325. package/lib/types/components/LinkList/index.d.ts +1 -0
  326. package/lib/types/components/List/List.d.ts +5 -0
  327. package/lib/types/components/List/List.props.d.ts +25 -0
  328. package/lib/types/components/List/ListItem.d.ts +5 -0
  329. package/lib/types/components/List/ListItem.props.d.ts +16 -0
  330. package/lib/types/components/List/index.d.ts +2 -0
  331. package/lib/types/components/Loading/Loading.d.ts +5 -0
  332. package/lib/types/components/Loading/Loading.props.d.ts +20 -0
  333. package/lib/types/components/Loading/index.d.ts +1 -0
  334. package/lib/types/components/LocalNav/LocalNav.d.ts +5 -0
  335. package/lib/types/components/LocalNav/LocalNav.props.d.ts +48 -0
  336. package/lib/types/components/LocalNav/index.d.ts +1 -0
  337. package/lib/types/components/Logo/Logo.d.ts +5 -0
  338. package/lib/types/components/Logo/Logo.props.d.ts +55 -0
  339. package/lib/types/components/Logo/index.d.ts +1 -0
  340. package/lib/types/components/LogoGrid/LogoGrid.d.ts +5 -0
  341. package/lib/types/components/LogoGrid/LogoGrid.props.d.ts +24 -0
  342. package/lib/types/components/LogoGrid/index.d.ts +1 -0
  343. package/lib/types/components/Navigation/Navigation.d.ts +5 -0
  344. package/lib/types/components/Navigation/Navigation.props.d.ts +100 -0
  345. package/lib/types/components/Navigation/index.d.ts +1 -0
  346. package/lib/types/components/Notification/Notification.d.ts +5 -0
  347. package/lib/types/components/Notification/Notification.props.d.ts +57 -0
  348. package/lib/types/components/Notification/index.d.ts +1 -0
  349. package/lib/types/components/NumberPicker/NumberPicker.d.ts +7 -0
  350. package/lib/types/components/NumberPicker/NumberPicker.props.d.ts +21 -0
  351. package/lib/types/components/NumberPicker/index.d.ts +1 -0
  352. package/lib/types/components/Pagination/Pagination.d.ts +5 -0
  353. package/lib/types/components/Pagination/Pagination.props.d.ts +54 -0
  354. package/lib/types/components/Pagination/index.d.ts +1 -0
  355. package/lib/types/components/Profile/Profile.d.ts +5 -0
  356. package/lib/types/components/Profile/Profile.props.d.ts +47 -0
  357. package/lib/types/components/Profile/index.d.ts +1 -0
  358. package/lib/types/components/Radio/Radio.d.ts +7 -0
  359. package/lib/types/components/Radio/Radio.props.d.ts +4 -0
  360. package/lib/types/components/Radio/index.d.ts +2 -0
  361. package/lib/types/components/ReadMore/ReadMore.d.ts +5 -0
  362. package/lib/types/components/ReadMore/ReadMore.props.d.ts +32 -0
  363. package/lib/types/components/ReadMore/index.d.ts +1 -0
  364. package/lib/types/components/RichText/RichText.d.ts +5 -0
  365. package/lib/types/components/RichText/RichText.props.d.ts +10 -0
  366. package/lib/types/components/RichText/index.d.ts +1 -0
  367. package/lib/types/components/SearchField/SearchField.d.ts +5 -0
  368. package/lib/types/components/SearchField/SearchField.props.d.ts +30 -0
  369. package/lib/types/components/SearchField/index.d.ts +1 -0
  370. package/lib/types/components/SocialMedia/SocialMedia.d.ts +4 -0
  371. package/lib/types/components/SocialMedia/SocialMedia.props.d.ts +42 -0
  372. package/lib/types/components/SocialMedia/index.d.ts +3 -0
  373. package/lib/types/components/TableOfContents/TableOfContents.d.ts +5 -0
  374. package/lib/types/components/TableOfContents/TableOfContents.props.d.ts +20 -0
  375. package/lib/types/components/TableOfContents/index.d.ts +1 -0
  376. package/lib/types/components/Tabs/Tabs.args.d.ts +11 -0
  377. package/lib/types/components/Tabs/Tabs.d.ts +5 -0
  378. package/lib/types/components/Tabs/Tabs.props.d.ts +14 -0
  379. package/lib/types/components/Tabs/index.d.ts +1 -0
  380. package/lib/types/components/Tag/Tag.d.ts +5 -0
  381. package/lib/types/components/Tag/Tag.props.d.ts +29 -0
  382. package/lib/types/components/Tag/TagCtx.d.ts +3 -0
  383. package/lib/types/components/Tag/TagSet.d.ts +5 -0
  384. package/lib/types/components/Tag/TagSet.props.d.ts +31 -0
  385. package/lib/types/components/Tag/index.d.ts +2 -0
  386. package/lib/types/components/TextInput/TextInput.d.ts +7 -0
  387. package/lib/types/components/TextInput/TextInput.props.d.ts +17 -0
  388. package/lib/types/components/TextInput/index.d.ts +2 -0
  389. package/lib/types/components/Textarea/Textarea.d.ts +7 -0
  390. package/lib/types/components/Textarea/Textarea.props.d.ts +37 -0
  391. package/lib/types/components/Textarea/index.d.ts +3 -0
  392. package/lib/types/components/Toggle/Toggle.d.ts +6 -0
  393. package/lib/types/components/Toggle/Toggle.props.d.ts +22 -0
  394. package/lib/types/components/Toggle/index.d.ts +3 -0
  395. package/lib/types/components/Tooltip/Tooltip.d.ts +5 -0
  396. package/lib/types/components/Tooltip/Tooltip.props.d.ts +33 -0
  397. package/lib/types/components/Tooltip/index.d.ts +1 -0
  398. package/lib/types/components/Video/Video.d.ts +5 -0
  399. package/lib/types/components/Video/Video.props.d.ts +29 -0
  400. package/lib/types/components/Video/VideoPlayer.d.ts +4 -0
  401. package/lib/types/components/Video/VideoPlayer.props.d.ts +43 -0
  402. package/lib/types/components/Video/index.d.ts +1 -0
  403. package/lib/types/components/index.d.ts +41 -0
  404. package/lib/types/hooks/index.d.ts +2 -0
  405. package/lib/types/hooks/useGlobalSettings.d.ts +4 -0
  406. package/lib/types/hooks/usePrevious.d.ts +2 -0
  407. package/lib/types/index.d.ts +2 -0
  408. package/lib/types/types/index.d.ts +92 -0
  409. package/lib/types/utils/checkArrayDuplicates.d.ts +1 -0
  410. package/lib/types/utils/createChainedFunction.d.ts +11 -0
  411. package/lib/types/utils/getDefaultDimensionValue.d.ts +3 -0
  412. package/lib/types/utils/hoursMinutesSeconds.d.ts +1 -0
  413. package/lib/types/utils/index.d.ts +6 -0
  414. package/lib/types/utils/transitionEndListener.d.ts +1 -0
  415. package/lib/types/utils/triggerBrowserReflow.d.ts +1 -0
  416. package/package.json +28 -72
  417. package/lib/cjs/AccordionCtx-be704051.js +0 -9
  418. package/lib/cjs/GlobalCtx-10114bdd.js +0 -9
  419. package/lib/cjs/TagCtx-690a1d54.js +0 -7
  420. package/lib/cjs/components/Accordion/Accordion.js +0 -47
  421. package/lib/cjs/components/Accordion/AccordionButton.js +0 -34
  422. package/lib/cjs/components/Accordion/AccordionItem.js +0 -21
  423. package/lib/cjs/components/Accordion/AccordionPanel.js +0 -30
  424. package/lib/cjs/components/Accordion/index.js +0 -22
  425. package/lib/cjs/components/Breadcrumb/Breadcrumb.js +0 -189
  426. package/lib/cjs/components/Breadcrumb/index.js +0 -14
  427. package/lib/cjs/components/Button/Button.js +0 -36
  428. package/lib/cjs/components/Button/index.js +0 -48
  429. package/lib/cjs/components/Callout/Callout.js +0 -47
  430. package/lib/cjs/components/Callout/index.js +0 -30
  431. package/lib/cjs/components/Cards/CardGroup/CardGroup.js +0 -47
  432. package/lib/cjs/components/Cards/CardGroup/index.js +0 -800
  433. package/lib/cjs/components/Cards/DataCard/DataCard.js +0 -27
  434. package/lib/cjs/components/Cards/DataCard/index.js +0 -81
  435. package/lib/cjs/components/Cards/DetailCard/DetailCard.js +0 -20
  436. package/lib/cjs/components/Cards/DetailCard/index.js +0 -25
  437. package/lib/cjs/components/Cards/FactlistCard/FactListCard.js +0 -22
  438. package/lib/cjs/components/Cards/FactlistCard/index.js +0 -24
  439. package/lib/cjs/components/Cards/FeatureCard/FeatureCard.js +0 -24
  440. package/lib/cjs/components/Cards/FeatureCard/index.js +0 -39
  441. package/lib/cjs/components/Cards/MultilinkCard/MultiLinkCard.js +0 -25
  442. package/lib/cjs/components/Cards/MultilinkCard/index.js +0 -43
  443. package/lib/cjs/components/Cards/PromoCard/PromoCard.js +0 -23
  444. package/lib/cjs/components/Cards/PromoCard/index.js +0 -26
  445. package/lib/cjs/components/Cards/StatCard/StatCard.js +0 -21
  446. package/lib/cjs/components/Cards/StatCard/index.js +0 -23
  447. package/lib/cjs/components/Cards/TextCard/TextCard.js +0 -23
  448. package/lib/cjs/components/Cards/TextCard/index.js +0 -30
  449. package/lib/cjs/components/Checkbox/Checkbox.js +0 -46
  450. package/lib/cjs/components/Checkbox/index.js +0 -39
  451. package/lib/cjs/components/Collapse/Collapse.js +0 -1853
  452. package/lib/cjs/components/Collapse/index.js +0 -17
  453. package/lib/cjs/components/ContextMenu/ContextMenu.js +0 -20
  454. package/lib/cjs/components/ContextMenu/index.js +0 -13
  455. package/lib/cjs/components/Credit/Credit.js +0 -33
  456. package/lib/cjs/components/Credit/index.js +0 -13
  457. package/lib/cjs/components/DatePicker/DatePicker.js +0 -37
  458. package/lib/cjs/components/DatePicker/index.js +0 -17
  459. package/lib/cjs/components/Dropdown/Dropdown.js +0 -39
  460. package/lib/cjs/components/Dropdown/index.js +0 -17
  461. package/lib/cjs/components/Empty/Empty.js +0 -19
  462. package/lib/cjs/components/Empty/index.js +0 -13
  463. package/lib/cjs/components/Fieldset/Fieldset.js +0 -48
  464. package/lib/cjs/components/Fieldset/index.js +0 -15
  465. package/lib/cjs/components/FileUpload/FileUpload.js +0 -49
  466. package/lib/cjs/components/FileUpload/index.js +0 -17
  467. package/lib/cjs/components/Footer/Footer.js +0 -24
  468. package/lib/cjs/components/Footer/index.js +0 -20
  469. package/lib/cjs/components/Form/Form.js +0 -19
  470. package/lib/cjs/components/Form/index.js +0 -21
  471. package/lib/cjs/components/FormControl/FormControl.js +0 -79
  472. package/lib/cjs/components/FormControl/index.js +0 -16
  473. package/lib/cjs/components/FormElement/FormElement.js +0 -19
  474. package/lib/cjs/components/FormElement/index.js +0 -8
  475. package/lib/cjs/components/GlobalProvider/GlobalProvider.js +0 -18
  476. package/lib/cjs/components/GlobalProvider/index.js +0 -11
  477. package/lib/cjs/components/Heading/Heading.js +0 -22
  478. package/lib/cjs/components/Heading/index.js +0 -13
  479. package/lib/cjs/components/Hero/Hero.js +0 -37
  480. package/lib/cjs/components/Hero/HeroCard.js +0 -35
  481. package/lib/cjs/components/Hero/index.js +0 -21
  482. package/lib/cjs/components/Icon/Icon.js +0 -43
  483. package/lib/cjs/components/Icon/index.js +0 -13
  484. package/lib/cjs/components/Image/Image.js +0 -31
  485. package/lib/cjs/components/Image/index.js +0 -14
  486. package/lib/cjs/components/Input/Input.js +0 -32
  487. package/lib/cjs/components/Input/index.js +0 -17
  488. package/lib/cjs/components/Link/Link.js +0 -23
  489. package/lib/cjs/components/Link/index.js +0 -13
  490. package/lib/cjs/components/LinkList/LinkList.js +0 -22
  491. package/lib/cjs/components/LinkList/index.js +0 -13
  492. package/lib/cjs/components/List/List.js +0 -23
  493. package/lib/cjs/components/List/ListItem.js +0 -18
  494. package/lib/cjs/components/List/index.js +0 -15
  495. package/lib/cjs/components/Loading/Loading.js +0 -21
  496. package/lib/cjs/components/Loading/index.js +0 -13
  497. package/lib/cjs/components/LocalNav/LocalNav.js +0 -98
  498. package/lib/cjs/components/LocalNav/index.js +0 -15
  499. package/lib/cjs/components/Logo/Logo.js +0 -153
  500. package/lib/cjs/components/Logo/index.js +0 -13
  501. package/lib/cjs/components/LogoGrid/LogoGrid.js +0 -30
  502. package/lib/cjs/components/LogoGrid/index.js +0 -13
  503. package/lib/cjs/components/Navigation/Navigation.js +0 -83
  504. package/lib/cjs/components/Navigation/index.js +0 -22
  505. package/lib/cjs/components/Notification/Notification.js +0 -41
  506. package/lib/cjs/components/Notification/index.js +0 -17
  507. package/lib/cjs/components/NumberPicker/NumberPicker.js +0 -37
  508. package/lib/cjs/components/NumberPicker/index.js +0 -17
  509. package/lib/cjs/components/Pagination/Pagination.js +0 -49
  510. package/lib/cjs/components/Pagination/index.js +0 -13
  511. package/lib/cjs/components/Profile/Profile.js +0 -21
  512. package/lib/cjs/components/Profile/index.js +0 -13
  513. package/lib/cjs/components/Radio/Radio.js +0 -47
  514. package/lib/cjs/components/Radio/index.js +0 -29
  515. package/lib/cjs/components/ReadMore/ReadMore.js +0 -38
  516. package/lib/cjs/components/ReadMore/index.js +0 -14
  517. package/lib/cjs/components/RichText/RichText.js +0 -19
  518. package/lib/cjs/components/RichText/index.js +0 -13
  519. package/lib/cjs/components/SearchField/SearchField.js +0 -48
  520. package/lib/cjs/components/SearchField/index.js +0 -20
  521. package/lib/cjs/components/SocialMedia/SocialMedia.js +0 -26
  522. package/lib/cjs/components/SocialMedia/index.js +0 -58
  523. package/lib/cjs/components/TableOfContents/TableOfContents.js +0 -22
  524. package/lib/cjs/components/TableOfContents/index.js +0 -13
  525. package/lib/cjs/components/Tabs/Tabs.args.js +0 -156
  526. package/lib/cjs/components/Tabs/Tabs.js +0 -24
  527. package/lib/cjs/components/Tabs/index.js +0 -15
  528. package/lib/cjs/components/Tag/Tag.js +0 -54
  529. package/lib/cjs/components/Tag/TagSet.js +0 -46
  530. package/lib/cjs/components/Tag/index.js +0 -20
  531. package/lib/cjs/components/TextInput/TextInput.js +0 -30
  532. package/lib/cjs/components/TextInput/index.js +0 -52
  533. package/lib/cjs/components/Textarea/Textarea.js +0 -32
  534. package/lib/cjs/components/Textarea/index.js +0 -38
  535. package/lib/cjs/components/Toggle/Toggle.js +0 -33
  536. package/lib/cjs/components/Toggle/index.js +0 -51
  537. package/lib/cjs/components/Tooltip/Tooltip.js +0 -73
  538. package/lib/cjs/components/Tooltip/index.js +0 -14
  539. package/lib/cjs/components/Video/Video.js +0 -26
  540. package/lib/cjs/components/Video/VideoPlayer.js +0 -59
  541. package/lib/cjs/components/Video/index.js +0 -16
  542. package/lib/cjs/components/index.js +0 -135
  543. package/lib/cjs/css-9c93400b.js +0 -81
  544. package/lib/cjs/hooks/index.js +0 -11
  545. package/lib/cjs/hooks/useGlobalSettings.js +0 -13
  546. package/lib/cjs/hooks/usePrevious.js +0 -20
  547. package/lib/cjs/utils/checkArrayDuplicates.js +0 -7
  548. package/lib/cjs/utils/createChainedFunction.js +0 -30
  549. package/lib/cjs/utils/getDefaultDimensionValue.js +0 -22
  550. package/lib/cjs/utils/hoursMinutesSeconds.js +0 -12
  551. package/lib/cjs/utils/index.js +0 -18
  552. package/lib/cjs/utils/transitionEndListener.js +0 -161
  553. package/lib/cjs/utils/triggerBrowserReflow.js +0 -8
  554. package/lib/esm/AccordionCtx-8c051900.js +0 -6
  555. package/lib/esm/GlobalCtx-7fb23cfa.js +0 -7
  556. package/lib/esm/TagCtx-34c545fe.js +0 -5
  557. package/lib/esm/components/Accordion/Accordion.js +0 -45
  558. package/lib/esm/components/Accordion/AccordionButton.js +0 -32
  559. package/lib/esm/components/Accordion/AccordionItem.js +0 -19
  560. package/lib/esm/components/Accordion/AccordionPanel.js +0 -28
  561. package/lib/esm/components/Accordion/index.js +0 -13
  562. package/lib/esm/components/Breadcrumb/Breadcrumb.js +0 -187
  563. package/lib/esm/components/Breadcrumb/index.js +0 -8
  564. package/lib/esm/components/Button/Button.js +0 -34
  565. package/lib/esm/components/Button/index.js +0 -45
  566. package/lib/esm/components/Callout/Callout.js +0 -45
  567. package/lib/esm/components/Callout/index.js +0 -27
  568. package/lib/esm/components/Cards/CardGroup/CardGroup.js +0 -45
  569. package/lib/esm/components/Cards/CardGroup/index.js +0 -797
  570. package/lib/esm/components/Cards/DataCard/DataCard.js +0 -25
  571. package/lib/esm/components/Cards/DataCard/index.js +0 -78
  572. package/lib/esm/components/Cards/DetailCard/DetailCard.js +0 -18
  573. package/lib/esm/components/Cards/DetailCard/index.js +0 -22
  574. package/lib/esm/components/Cards/FactlistCard/FactListCard.js +0 -20
  575. package/lib/esm/components/Cards/FactlistCard/index.js +0 -21
  576. package/lib/esm/components/Cards/FeatureCard/FeatureCard.js +0 -22
  577. package/lib/esm/components/Cards/FeatureCard/index.js +0 -36
  578. package/lib/esm/components/Cards/MultilinkCard/MultiLinkCard.js +0 -23
  579. package/lib/esm/components/Cards/MultilinkCard/index.js +0 -40
  580. package/lib/esm/components/Cards/PromoCard/PromoCard.js +0 -21
  581. package/lib/esm/components/Cards/PromoCard/index.js +0 -23
  582. package/lib/esm/components/Cards/StatCard/StatCard.js +0 -19
  583. package/lib/esm/components/Cards/StatCard/index.js +0 -20
  584. package/lib/esm/components/Cards/TextCard/TextCard.js +0 -21
  585. package/lib/esm/components/Cards/TextCard/index.js +0 -27
  586. package/lib/esm/components/Checkbox/Checkbox.js +0 -44
  587. package/lib/esm/components/Checkbox/index.js +0 -36
  588. package/lib/esm/components/Collapse/Collapse.js +0 -1851
  589. package/lib/esm/components/Collapse/index.js +0 -11
  590. package/lib/esm/components/ContextMenu/ContextMenu.js +0 -18
  591. package/lib/esm/components/ContextMenu/index.js +0 -7
  592. package/lib/esm/components/Credit/Credit.js +0 -31
  593. package/lib/esm/components/Credit/index.js +0 -7
  594. package/lib/esm/components/DatePicker/DatePicker.js +0 -35
  595. package/lib/esm/components/DatePicker/index.js +0 -11
  596. package/lib/esm/components/Dropdown/Dropdown.js +0 -37
  597. package/lib/esm/components/Dropdown/index.js +0 -11
  598. package/lib/esm/components/Empty/Empty.js +0 -17
  599. package/lib/esm/components/Empty/index.js +0 -7
  600. package/lib/esm/components/Fieldset/Fieldset.js +0 -42
  601. package/lib/esm/components/Fieldset/index.js +0 -9
  602. package/lib/esm/components/FileUpload/FileUpload.js +0 -47
  603. package/lib/esm/components/FileUpload/index.js +0 -11
  604. package/lib/esm/components/Footer/Footer.js +0 -22
  605. package/lib/esm/components/Footer/index.js +0 -14
  606. package/lib/esm/components/Form/Form.js +0 -17
  607. package/lib/esm/components/Form/index.js +0 -18
  608. package/lib/esm/components/FormControl/FormControl.js +0 -73
  609. package/lib/esm/components/FormControl/index.js +0 -10
  610. package/lib/esm/components/FormElement/FormElement.js +0 -17
  611. package/lib/esm/components/FormElement/index.js +0 -2
  612. package/lib/esm/components/GlobalProvider/GlobalProvider.js +0 -16
  613. package/lib/esm/components/GlobalProvider/index.js +0 -4
  614. package/lib/esm/components/Heading/Heading.js +0 -20
  615. package/lib/esm/components/Heading/index.js +0 -7
  616. package/lib/esm/components/Hero/Hero.js +0 -35
  617. package/lib/esm/components/Hero/HeroCard.js +0 -33
  618. package/lib/esm/components/Hero/index.js +0 -14
  619. package/lib/esm/components/Icon/Icon.js +0 -22
  620. package/lib/esm/components/Icon/index.js +0 -7
  621. package/lib/esm/components/Image/Image.js +0 -29
  622. package/lib/esm/components/Image/index.js +0 -8
  623. package/lib/esm/components/Input/Input.js +0 -30
  624. package/lib/esm/components/Input/index.js +0 -11
  625. package/lib/esm/components/Link/Link.js +0 -21
  626. package/lib/esm/components/Link/index.js +0 -7
  627. package/lib/esm/components/LinkList/LinkList.js +0 -20
  628. package/lib/esm/components/LinkList/index.js +0 -7
  629. package/lib/esm/components/List/List.js +0 -21
  630. package/lib/esm/components/List/ListItem.js +0 -16
  631. package/lib/esm/components/List/index.js +0 -8
  632. package/lib/esm/components/Loading/Loading.js +0 -19
  633. package/lib/esm/components/Loading/index.js +0 -7
  634. package/lib/esm/components/LocalNav/LocalNav.js +0 -96
  635. package/lib/esm/components/LocalNav/index.js +0 -9
  636. package/lib/esm/components/Logo/Logo.js +0 -151
  637. package/lib/esm/components/Logo/index.js +0 -7
  638. package/lib/esm/components/LogoGrid/LogoGrid.js +0 -28
  639. package/lib/esm/components/LogoGrid/index.js +0 -7
  640. package/lib/esm/components/Navigation/Navigation.js +0 -81
  641. package/lib/esm/components/Navigation/index.js +0 -16
  642. package/lib/esm/components/Notification/Notification.js +0 -39
  643. package/lib/esm/components/Notification/index.js +0 -11
  644. package/lib/esm/components/NumberPicker/NumberPicker.js +0 -35
  645. package/lib/esm/components/NumberPicker/index.js +0 -11
  646. package/lib/esm/components/Pagination/Pagination.js +0 -47
  647. package/lib/esm/components/Pagination/index.js +0 -7
  648. package/lib/esm/components/Profile/Profile.js +0 -19
  649. package/lib/esm/components/Profile/index.js +0 -7
  650. package/lib/esm/components/Radio/Radio.js +0 -45
  651. package/lib/esm/components/Radio/index.js +0 -26
  652. package/lib/esm/components/ReadMore/ReadMore.js +0 -36
  653. package/lib/esm/components/ReadMore/index.js +0 -8
  654. package/lib/esm/components/RichText/RichText.js +0 -17
  655. package/lib/esm/components/RichText/index.js +0 -7
  656. package/lib/esm/components/SearchField/SearchField.js +0 -46
  657. package/lib/esm/components/SearchField/index.js +0 -14
  658. package/lib/esm/components/SocialMedia/SocialMedia.js +0 -24
  659. package/lib/esm/components/SocialMedia/index.js +0 -55
  660. package/lib/esm/components/TableOfContents/TableOfContents.js +0 -20
  661. package/lib/esm/components/TableOfContents/index.js +0 -7
  662. package/lib/esm/components/Tabs/Tabs.args.js +0 -154
  663. package/lib/esm/components/Tabs/Tabs.js +0 -22
  664. package/lib/esm/components/Tabs/index.js +0 -9
  665. package/lib/esm/components/Tag/Tag.js +0 -52
  666. package/lib/esm/components/Tag/TagSet.js +0 -44
  667. package/lib/esm/components/Tag/index.js +0 -13
  668. package/lib/esm/components/TextInput/TextInput.js +0 -28
  669. package/lib/esm/components/TextInput/index.js +0 -49
  670. package/lib/esm/components/Textarea/Textarea.js +0 -30
  671. package/lib/esm/components/Textarea/index.js +0 -35
  672. package/lib/esm/components/Toggle/Toggle.js +0 -31
  673. package/lib/esm/components/Toggle/index.js +0 -48
  674. package/lib/esm/components/Tooltip/Tooltip.js +0 -71
  675. package/lib/esm/components/Tooltip/index.js +0 -8
  676. package/lib/esm/components/Video/Video.js +0 -24
  677. package/lib/esm/components/Video/VideoPlayer.js +0 -57
  678. package/lib/esm/components/Video/index.js +0 -10
  679. package/lib/esm/components/index.js +0 -86
  680. package/lib/esm/css-7414f50b.js +0 -79
  681. package/lib/esm/hooks/index.js +0 -5
  682. package/lib/esm/hooks/useGlobalSettings.js +0 -11
  683. package/lib/esm/hooks/usePrevious.js +0 -15
  684. package/lib/esm/utils/checkArrayDuplicates.js +0 -5
  685. package/lib/esm/utils/createChainedFunction.js +0 -28
  686. package/lib/esm/utils/getDefaultDimensionValue.js +0 -20
  687. package/lib/esm/utils/hoursMinutesSeconds.js +0 -10
  688. package/lib/esm/utils/index.js +0 -7
  689. package/lib/esm/utils/transitionEndListener.js +0 -159
  690. package/lib/esm/utils/triggerBrowserReflow.js +0 -6
  691. package/lib/types/react/src/components/Accordion/Accordion.d.ts +0 -4
  692. package/lib/types/react/src/components/Accordion/Accordion.props.d.ts +0 -33
  693. package/lib/types/react/src/components/Accordion/AccordionButton.d.ts +0 -4
  694. package/lib/types/react/src/components/Accordion/AccordionButton.props.d.ts +0 -11
  695. package/lib/types/react/src/components/Accordion/AccordionCtx.d.ts +0 -4
  696. package/lib/types/react/src/components/Accordion/AccordionItem.d.ts +0 -4
  697. package/lib/types/react/src/components/Accordion/AccordionItem.props.d.ts +0 -21
  698. package/lib/types/react/src/components/Accordion/AccordionPanel.d.ts +0 -4
  699. package/lib/types/react/src/components/Accordion/AccordionPanel.props.d.ts +0 -21
  700. package/lib/types/react/src/components/Accordion/index.d.ts +0 -4
  701. package/lib/types/react/src/components/Breadcrumb/Breadcrumb.d.ts +0 -4
  702. package/lib/types/react/src/components/Breadcrumb/Breadcrumb.props.d.ts +0 -32
  703. package/lib/types/react/src/components/Breadcrumb/index.d.ts +0 -1
  704. package/lib/types/react/src/components/Button/Button.args.d.ts +0 -11
  705. package/lib/types/react/src/components/Button/Button.d.ts +0 -4
  706. package/lib/types/react/src/components/Button/Button.props.d.ts +0 -68
  707. package/lib/types/react/src/components/Button/index.d.ts +0 -2
  708. package/lib/types/react/src/components/Callout/Callout.args.d.ts +0 -8
  709. package/lib/types/react/src/components/Callout/Callout.d.ts +0 -4
  710. package/lib/types/react/src/components/Callout/Callout.props.d.ts +0 -50
  711. package/lib/types/react/src/components/Callout/index.d.ts +0 -2
  712. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.args.d.ts +0 -13
  713. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.d.ts +0 -4
  714. package/lib/types/react/src/components/Cards/CardGroup/CardGroup.props.d.ts +0 -84
  715. package/lib/types/react/src/components/Cards/CardGroup/index.d.ts +0 -3
  716. package/lib/types/react/src/components/Cards/DataCard/DataCard.args.d.ts +0 -2
  717. package/lib/types/react/src/components/Cards/DataCard/DataCard.d.ts +0 -4
  718. package/lib/types/react/src/components/Cards/DataCard/DataCard.props.d.ts +0 -50
  719. package/lib/types/react/src/components/Cards/DataCard/index.d.ts +0 -3
  720. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.args.d.ts +0 -3
  721. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.d.ts +0 -4
  722. package/lib/types/react/src/components/Cards/DetailCard/DetailCard.props.d.ts +0 -39
  723. package/lib/types/react/src/components/Cards/DetailCard/index.d.ts +0 -3
  724. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.args.d.ts +0 -3
  725. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.d.ts +0 -4
  726. package/lib/types/react/src/components/Cards/FactlistCard/FactListCard.props.d.ts +0 -20
  727. package/lib/types/react/src/components/Cards/FactlistCard/index.d.ts +0 -3
  728. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.args.d.ts +0 -3
  729. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.d.ts +0 -4
  730. package/lib/types/react/src/components/Cards/FeatureCard/FeatureCard.props.d.ts +0 -35
  731. package/lib/types/react/src/components/Cards/FeatureCard/index.d.ts +0 -3
  732. package/lib/types/react/src/components/Cards/MultilinkCard/MultiLinkCard.d.ts +0 -4
  733. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.args.d.ts +0 -2
  734. package/lib/types/react/src/components/Cards/MultilinkCard/MultilinkCard.props.d.ts +0 -29
  735. package/lib/types/react/src/components/Cards/MultilinkCard/index.d.ts +0 -3
  736. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.args.d.ts +0 -3
  737. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.d.ts +0 -4
  738. package/lib/types/react/src/components/Cards/PromoCard/PromoCard.props.d.ts +0 -34
  739. package/lib/types/react/src/components/Cards/PromoCard/index.d.ts +0 -3
  740. package/lib/types/react/src/components/Cards/StatCard/StatCard.args.d.ts +0 -3
  741. package/lib/types/react/src/components/Cards/StatCard/StatCard.d.ts +0 -4
  742. package/lib/types/react/src/components/Cards/StatCard/StatCard.props.d.ts +0 -25
  743. package/lib/types/react/src/components/Cards/StatCard/index.d.ts +0 -3
  744. package/lib/types/react/src/components/Cards/TextCard/TextCard.args.d.ts +0 -3
  745. package/lib/types/react/src/components/Cards/TextCard/TextCard.d.ts +0 -4
  746. package/lib/types/react/src/components/Cards/TextCard/TextCard.props.d.ts +0 -30
  747. package/lib/types/react/src/components/Cards/TextCard/index.d.ts +0 -3
  748. package/lib/types/react/src/components/Checkbox/Checkbox.args.d.ts +0 -52
  749. package/lib/types/react/src/components/Checkbox/Checkbox.d.ts +0 -6
  750. package/lib/types/react/src/components/Checkbox/Checkbox.props.d.ts +0 -4
  751. package/lib/types/react/src/components/Checkbox/index.d.ts +0 -2
  752. package/lib/types/react/src/components/Collapse/Collapse.d.ts +0 -3
  753. package/lib/types/react/src/components/Collapse/Collapse.props.d.ts +0 -76
  754. package/lib/types/react/src/components/Collapse/index.d.ts +0 -1
  755. package/lib/types/react/src/components/ContextMenu/ContextMenu.d.ts +0 -4
  756. package/lib/types/react/src/components/ContextMenu/ContextMenu.props.d.ts +0 -24
  757. package/lib/types/react/src/components/ContextMenu/index.d.ts +0 -1
  758. package/lib/types/react/src/components/Credit/Credit.d.ts +0 -4
  759. package/lib/types/react/src/components/Credit/Credit.props.d.ts +0 -10
  760. package/lib/types/react/src/components/Credit/index.d.ts +0 -1
  761. package/lib/types/react/src/components/DatePicker/DatePicker.d.ts +0 -5
  762. package/lib/types/react/src/components/DatePicker/DatePicker.props.d.ts +0 -21
  763. package/lib/types/react/src/components/DatePicker/index.d.ts +0 -1
  764. package/lib/types/react/src/components/Dropdown/Dropdown.d.ts +0 -6
  765. package/lib/types/react/src/components/Dropdown/Dropdown.props.d.ts +0 -43
  766. package/lib/types/react/src/components/Dropdown/index.d.ts +0 -1
  767. package/lib/types/react/src/components/Empty/Empty.d.ts +0 -4
  768. package/lib/types/react/src/components/Empty/Empty.props.d.ts +0 -11
  769. package/lib/types/react/src/components/Empty/index.d.ts +0 -1
  770. package/lib/types/react/src/components/Fieldset/Fieldset.d.ts +0 -10
  771. package/lib/types/react/src/components/Fieldset/Fieldset.props.d.ts +0 -27
  772. package/lib/types/react/src/components/Fieldset/index.d.ts +0 -1
  773. package/lib/types/react/src/components/FileUpload/FileUpload.d.ts +0 -6
  774. package/lib/types/react/src/components/FileUpload/FileUpload.props.d.ts +0 -17
  775. package/lib/types/react/src/components/FileUpload/index.d.ts +0 -1
  776. package/lib/types/react/src/components/Footer/Footer.d.ts +0 -4
  777. package/lib/types/react/src/components/Footer/Footer.props.d.ts +0 -49
  778. package/lib/types/react/src/components/Footer/index.d.ts +0 -1
  779. package/lib/types/react/src/components/Form/Form.args.d.ts +0 -2
  780. package/lib/types/react/src/components/Form/Form.d.ts +0 -3
  781. package/lib/types/react/src/components/Form/Form.props.d.ts +0 -7
  782. package/lib/types/react/src/components/Form/index.d.ts +0 -2
  783. package/lib/types/react/src/components/FormControl/FormControl.d.ts +0 -9
  784. package/lib/types/react/src/components/FormControl/FormControl.props.d.ts +0 -55
  785. package/lib/types/react/src/components/FormControl/index.d.ts +0 -2
  786. package/lib/types/react/src/components/FormElement/FormElement.d.ts +0 -4
  787. package/lib/types/react/src/components/FormElement/FormElement.props.d.ts +0 -47
  788. package/lib/types/react/src/components/FormElement/index.d.ts +0 -1
  789. package/lib/types/react/src/components/GlobalProvider/GlobalCtx.d.ts +0 -2
  790. package/lib/types/react/src/components/GlobalProvider/GlobalProvider.d.ts +0 -4
  791. package/lib/types/react/src/components/GlobalProvider/GlobalProvider.props.d.ts +0 -13
  792. package/lib/types/react/src/components/GlobalProvider/index.d.ts +0 -2
  793. package/lib/types/react/src/components/Heading/Heading.d.ts +0 -4
  794. package/lib/types/react/src/components/Heading/Heading.props.d.ts +0 -20
  795. package/lib/types/react/src/components/Heading/index.d.ts +0 -1
  796. package/lib/types/react/src/components/Hero/Hero.d.ts +0 -4
  797. package/lib/types/react/src/components/Hero/Hero.props.d.ts +0 -51
  798. package/lib/types/react/src/components/Hero/HeroCard.d.ts +0 -4
  799. package/lib/types/react/src/components/Hero/HeroCard.props.d.ts +0 -44
  800. package/lib/types/react/src/components/Hero/index.d.ts +0 -2
  801. package/lib/types/react/src/components/Icon/Icon.d.ts +0 -4
  802. package/lib/types/react/src/components/Icon/Icon.props.d.ts +0 -14
  803. package/lib/types/react/src/components/Icon/index.d.ts +0 -1
  804. package/lib/types/react/src/components/Image/Image.d.ts +0 -4
  805. package/lib/types/react/src/components/Image/Image.props.d.ts +0 -37
  806. package/lib/types/react/src/components/Image/index.d.ts +0 -1
  807. package/lib/types/react/src/components/Input/Input.d.ts +0 -4
  808. package/lib/types/react/src/components/Input/Input.props.d.ts +0 -52
  809. package/lib/types/react/src/components/Input/index.d.ts +0 -1
  810. package/lib/types/react/src/components/Link/Link.d.ts +0 -4
  811. package/lib/types/react/src/components/Link/Link.props.d.ts +0 -32
  812. package/lib/types/react/src/components/Link/index.d.ts +0 -1
  813. package/lib/types/react/src/components/LinkList/LinkList.d.ts +0 -4
  814. package/lib/types/react/src/components/LinkList/LinkList.props.d.ts +0 -43
  815. package/lib/types/react/src/components/LinkList/index.d.ts +0 -1
  816. package/lib/types/react/src/components/List/List.d.ts +0 -4
  817. package/lib/types/react/src/components/List/List.props.d.ts +0 -24
  818. package/lib/types/react/src/components/List/ListItem.d.ts +0 -4
  819. package/lib/types/react/src/components/List/ListItem.props.d.ts +0 -15
  820. package/lib/types/react/src/components/List/index.d.ts +0 -2
  821. package/lib/types/react/src/components/Loading/Loading.d.ts +0 -4
  822. package/lib/types/react/src/components/Loading/Loading.props.d.ts +0 -19
  823. package/lib/types/react/src/components/Loading/index.d.ts +0 -1
  824. package/lib/types/react/src/components/LocalNav/LocalNav.d.ts +0 -4
  825. package/lib/types/react/src/components/LocalNav/LocalNav.props.d.ts +0 -47
  826. package/lib/types/react/src/components/LocalNav/index.d.ts +0 -1
  827. package/lib/types/react/src/components/Logo/Logo.d.ts +0 -4
  828. package/lib/types/react/src/components/Logo/Logo.props.d.ts +0 -55
  829. package/lib/types/react/src/components/Logo/index.d.ts +0 -1
  830. package/lib/types/react/src/components/LogoGrid/LogoGrid.d.ts +0 -4
  831. package/lib/types/react/src/components/LogoGrid/LogoGrid.props.d.ts +0 -24
  832. package/lib/types/react/src/components/LogoGrid/index.d.ts +0 -1
  833. package/lib/types/react/src/components/Navigation/Navigation.d.ts +0 -4
  834. package/lib/types/react/src/components/Navigation/Navigation.props.d.ts +0 -99
  835. package/lib/types/react/src/components/Navigation/index.d.ts +0 -1
  836. package/lib/types/react/src/components/Notification/Notification.d.ts +0 -4
  837. package/lib/types/react/src/components/Notification/Notification.props.d.ts +0 -56
  838. package/lib/types/react/src/components/Notification/index.d.ts +0 -1
  839. package/lib/types/react/src/components/NumberPicker/NumberPicker.d.ts +0 -6
  840. package/lib/types/react/src/components/NumberPicker/NumberPicker.props.d.ts +0 -21
  841. package/lib/types/react/src/components/NumberPicker/index.d.ts +0 -1
  842. package/lib/types/react/src/components/Pagination/Pagination.d.ts +0 -4
  843. package/lib/types/react/src/components/Pagination/Pagination.props.d.ts +0 -54
  844. package/lib/types/react/src/components/Pagination/index.d.ts +0 -1
  845. package/lib/types/react/src/components/Profile/Profile.d.ts +0 -4
  846. package/lib/types/react/src/components/Profile/Profile.props.d.ts +0 -46
  847. package/lib/types/react/src/components/Profile/index.d.ts +0 -1
  848. package/lib/types/react/src/components/Radio/Radio.args.d.ts +0 -8
  849. package/lib/types/react/src/components/Radio/Radio.d.ts +0 -6
  850. package/lib/types/react/src/components/Radio/Radio.props.d.ts +0 -4
  851. package/lib/types/react/src/components/Radio/index.d.ts +0 -2
  852. package/lib/types/react/src/components/ReadMore/ReadMore.d.ts +0 -4
  853. package/lib/types/react/src/components/ReadMore/ReadMore.props.d.ts +0 -32
  854. package/lib/types/react/src/components/ReadMore/index.d.ts +0 -1
  855. package/lib/types/react/src/components/RichText/RichText.d.ts +0 -4
  856. package/lib/types/react/src/components/RichText/RichText.props.d.ts +0 -10
  857. package/lib/types/react/src/components/RichText/index.d.ts +0 -1
  858. package/lib/types/react/src/components/SearchField/SearchField.d.ts +0 -4
  859. package/lib/types/react/src/components/SearchField/SearchField.props.d.ts +0 -29
  860. package/lib/types/react/src/components/SearchField/index.d.ts +0 -1
  861. package/lib/types/react/src/components/SocialMedia/SocialMedia.args.d.ts +0 -4
  862. package/lib/types/react/src/components/SocialMedia/SocialMedia.d.ts +0 -3
  863. package/lib/types/react/src/components/SocialMedia/SocialMedia.props.d.ts +0 -41
  864. package/lib/types/react/src/components/SocialMedia/index.d.ts +0 -3
  865. package/lib/types/react/src/components/TableOfContents/TableOfContents.d.ts +0 -4
  866. package/lib/types/react/src/components/TableOfContents/TableOfContents.props.d.ts +0 -20
  867. package/lib/types/react/src/components/TableOfContents/index.d.ts +0 -1
  868. package/lib/types/react/src/components/Tabs/Tabs.args.d.ts +0 -10
  869. package/lib/types/react/src/components/Tabs/Tabs.d.ts +0 -4
  870. package/lib/types/react/src/components/Tabs/Tabs.props.d.ts +0 -12
  871. package/lib/types/react/src/components/Tabs/index.d.ts +0 -1
  872. package/lib/types/react/src/components/Tag/Tag.d.ts +0 -4
  873. package/lib/types/react/src/components/Tag/Tag.props.d.ts +0 -28
  874. package/lib/types/react/src/components/Tag/TagCtx.d.ts +0 -2
  875. package/lib/types/react/src/components/Tag/TagSet.d.ts +0 -4
  876. package/lib/types/react/src/components/Tag/TagSet.props.d.ts +0 -30
  877. package/lib/types/react/src/components/Tag/index.d.ts +0 -2
  878. package/lib/types/react/src/components/TextInput/TextInput.args.d.ts +0 -10
  879. package/lib/types/react/src/components/TextInput/TextInput.d.ts +0 -6
  880. package/lib/types/react/src/components/TextInput/TextInput.props.d.ts +0 -17
  881. package/lib/types/react/src/components/TextInput/index.d.ts +0 -2
  882. package/lib/types/react/src/components/Textarea/Textarea.args.d.ts +0 -10
  883. package/lib/types/react/src/components/Textarea/Textarea.d.ts +0 -6
  884. package/lib/types/react/src/components/Textarea/Textarea.props.d.ts +0 -37
  885. package/lib/types/react/src/components/Textarea/index.d.ts +0 -3
  886. package/lib/types/react/src/components/Toggle/Toggle.args.d.ts +0 -12
  887. package/lib/types/react/src/components/Toggle/Toggle.d.ts +0 -5
  888. package/lib/types/react/src/components/Toggle/Toggle.props.d.ts +0 -22
  889. package/lib/types/react/src/components/Toggle/index.d.ts +0 -3
  890. package/lib/types/react/src/components/Tooltip/Tooltip.d.ts +0 -4
  891. package/lib/types/react/src/components/Tooltip/Tooltip.props.d.ts +0 -31
  892. package/lib/types/react/src/components/Tooltip/index.d.ts +0 -1
  893. package/lib/types/react/src/components/Video/Video.d.ts +0 -4
  894. package/lib/types/react/src/components/Video/Video.props.d.ts +0 -28
  895. package/lib/types/react/src/components/Video/VideoPlayer.d.ts +0 -4
  896. package/lib/types/react/src/components/Video/VideoPlayer.props.d.ts +0 -42
  897. package/lib/types/react/src/components/Video/index.d.ts +0 -1
  898. package/lib/types/react/src/components/index.d.ts +0 -41
  899. package/lib/types/react/src/hooks/index.d.ts +0 -1
  900. package/lib/types/react/src/hooks/useGlobalSettings.d.ts +0 -4
  901. package/lib/types/react/src/hooks/usePrevious.d.ts +0 -2
  902. package/lib/types/react/src/index.d.ts +0 -1
  903. package/lib/types/react/src/types/index.d.ts +0 -91
  904. package/lib/types/react/src/utils/checkArrayDuplicates.d.ts +0 -1
  905. package/lib/types/react/src/utils/createChainedFunction.d.ts +0 -11
  906. package/lib/types/react/src/utils/getDefaultDimensionValue.d.ts +0 -3
  907. package/lib/types/react/src/utils/hoursMinutesSeconds.d.ts +0 -1
  908. package/lib/types/react/src/utils/index.d.ts +0 -6
  909. package/lib/types/react/src/utils/transitionEndListener.d.ts +0 -1
  910. package/lib/types/react/src/utils/triggerBrowserReflow.d.ts +0 -1
@@ -1,1853 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib = require('tslib');
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var classNames = require('classnames');
6
- var React = require('react');
7
- var ReactDOM = require('react-dom');
8
- var utils_createChainedFunction = require('../../utils/createChainedFunction.js');
9
- var utils_getDefaultDimensionValue = require('../../utils/getDefaultDimensionValue.js');
10
- var utils_transitionEndListener = require('../../utils/transitionEndListener.js');
11
- var utils_triggerBrowserReflow = require('../../utils/triggerBrowserReflow.js');
12
- require('../../css-9c93400b.js');
13
-
14
- function _objectWithoutPropertiesLoose(r, e) {
15
- if (null == r) return {};
16
- var t = {};
17
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
18
- if (e.indexOf(n) >= 0) continue;
19
- t[n] = r[n];
20
- }
21
- return t;
22
- }
23
-
24
- function _setPrototypeOf(t, e) {
25
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
26
- return t.__proto__ = e, t;
27
- }, _setPrototypeOf(t, e);
28
- }
29
-
30
- function _inheritsLoose(t, o) {
31
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
32
- }
33
-
34
- var propTypes = {exports: {}};
35
-
36
- var reactIs = {exports: {}};
37
-
38
- var reactIs_production_min = {};
39
-
40
- /** @license React v16.13.1
41
- * react-is.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
-
49
- var hasRequiredReactIs_production_min;
50
-
51
- function requireReactIs_production_min () {
52
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
53
- hasRequiredReactIs_production_min = 1;
54
- 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?
55
- 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;
56
- 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;
57
- 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};
58
- 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};
59
- 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;
60
- return reactIs_production_min;
61
- }
62
-
63
- var reactIs_development = {};
64
-
65
- /** @license React v16.13.1
66
- * react-is.development.js
67
- *
68
- * Copyright (c) Facebook, Inc. and its affiliates.
69
- *
70
- * This source code is licensed under the MIT license found in the
71
- * LICENSE file in the root directory of this source tree.
72
- */
73
-
74
- var hasRequiredReactIs_development;
75
-
76
- function requireReactIs_development () {
77
- if (hasRequiredReactIs_development) return reactIs_development;
78
- hasRequiredReactIs_development = 1;
79
-
80
-
81
-
82
- if (process.env.NODE_ENV !== "production") {
83
- (function() {
84
-
85
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
86
- // nor polyfill, then a plain number is used for performance.
87
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
88
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
89
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
90
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
91
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
92
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
93
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
94
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
95
- // (unstable) APIs that have been removed. Can we remove the symbols?
96
-
97
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
98
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
99
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
100
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
101
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
102
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
103
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
104
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
105
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
106
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
107
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
108
-
109
- function isValidElementType(type) {
110
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
111
- 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);
112
- }
113
-
114
- function typeOf(object) {
115
- if (typeof object === 'object' && object !== null) {
116
- var $$typeof = object.$$typeof;
117
-
118
- switch ($$typeof) {
119
- case REACT_ELEMENT_TYPE:
120
- var type = object.type;
121
-
122
- switch (type) {
123
- case REACT_ASYNC_MODE_TYPE:
124
- case REACT_CONCURRENT_MODE_TYPE:
125
- case REACT_FRAGMENT_TYPE:
126
- case REACT_PROFILER_TYPE:
127
- case REACT_STRICT_MODE_TYPE:
128
- case REACT_SUSPENSE_TYPE:
129
- return type;
130
-
131
- default:
132
- var $$typeofType = type && type.$$typeof;
133
-
134
- switch ($$typeofType) {
135
- case REACT_CONTEXT_TYPE:
136
- case REACT_FORWARD_REF_TYPE:
137
- case REACT_LAZY_TYPE:
138
- case REACT_MEMO_TYPE:
139
- case REACT_PROVIDER_TYPE:
140
- return $$typeofType;
141
-
142
- default:
143
- return $$typeof;
144
- }
145
-
146
- }
147
-
148
- case REACT_PORTAL_TYPE:
149
- return $$typeof;
150
- }
151
- }
152
-
153
- return undefined;
154
- } // AsyncMode is deprecated along with isAsyncMode
155
-
156
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
157
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
158
- var ContextConsumer = REACT_CONTEXT_TYPE;
159
- var ContextProvider = REACT_PROVIDER_TYPE;
160
- var Element = REACT_ELEMENT_TYPE;
161
- var ForwardRef = REACT_FORWARD_REF_TYPE;
162
- var Fragment = REACT_FRAGMENT_TYPE;
163
- var Lazy = REACT_LAZY_TYPE;
164
- var Memo = REACT_MEMO_TYPE;
165
- var Portal = REACT_PORTAL_TYPE;
166
- var Profiler = REACT_PROFILER_TYPE;
167
- var StrictMode = REACT_STRICT_MODE_TYPE;
168
- var Suspense = REACT_SUSPENSE_TYPE;
169
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
170
-
171
- function isAsyncMode(object) {
172
- {
173
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
174
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
175
-
176
- 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.');
177
- }
178
- }
179
-
180
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
181
- }
182
- function isConcurrentMode(object) {
183
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
184
- }
185
- function isContextConsumer(object) {
186
- return typeOf(object) === REACT_CONTEXT_TYPE;
187
- }
188
- function isContextProvider(object) {
189
- return typeOf(object) === REACT_PROVIDER_TYPE;
190
- }
191
- function isElement(object) {
192
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
193
- }
194
- function isForwardRef(object) {
195
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
196
- }
197
- function isFragment(object) {
198
- return typeOf(object) === REACT_FRAGMENT_TYPE;
199
- }
200
- function isLazy(object) {
201
- return typeOf(object) === REACT_LAZY_TYPE;
202
- }
203
- function isMemo(object) {
204
- return typeOf(object) === REACT_MEMO_TYPE;
205
- }
206
- function isPortal(object) {
207
- return typeOf(object) === REACT_PORTAL_TYPE;
208
- }
209
- function isProfiler(object) {
210
- return typeOf(object) === REACT_PROFILER_TYPE;
211
- }
212
- function isStrictMode(object) {
213
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
214
- }
215
- function isSuspense(object) {
216
- return typeOf(object) === REACT_SUSPENSE_TYPE;
217
- }
218
-
219
- reactIs_development.AsyncMode = AsyncMode;
220
- reactIs_development.ConcurrentMode = ConcurrentMode;
221
- reactIs_development.ContextConsumer = ContextConsumer;
222
- reactIs_development.ContextProvider = ContextProvider;
223
- reactIs_development.Element = Element;
224
- reactIs_development.ForwardRef = ForwardRef;
225
- reactIs_development.Fragment = Fragment;
226
- reactIs_development.Lazy = Lazy;
227
- reactIs_development.Memo = Memo;
228
- reactIs_development.Portal = Portal;
229
- reactIs_development.Profiler = Profiler;
230
- reactIs_development.StrictMode = StrictMode;
231
- reactIs_development.Suspense = Suspense;
232
- reactIs_development.isAsyncMode = isAsyncMode;
233
- reactIs_development.isConcurrentMode = isConcurrentMode;
234
- reactIs_development.isContextConsumer = isContextConsumer;
235
- reactIs_development.isContextProvider = isContextProvider;
236
- reactIs_development.isElement = isElement;
237
- reactIs_development.isForwardRef = isForwardRef;
238
- reactIs_development.isFragment = isFragment;
239
- reactIs_development.isLazy = isLazy;
240
- reactIs_development.isMemo = isMemo;
241
- reactIs_development.isPortal = isPortal;
242
- reactIs_development.isProfiler = isProfiler;
243
- reactIs_development.isStrictMode = isStrictMode;
244
- reactIs_development.isSuspense = isSuspense;
245
- reactIs_development.isValidElementType = isValidElementType;
246
- reactIs_development.typeOf = typeOf;
247
- })();
248
- }
249
- return reactIs_development;
250
- }
251
-
252
- var hasRequiredReactIs;
253
-
254
- function requireReactIs () {
255
- if (hasRequiredReactIs) return reactIs.exports;
256
- hasRequiredReactIs = 1;
257
- (function (module) {
258
-
259
- if (process.env.NODE_ENV === 'production') {
260
- module.exports = requireReactIs_production_min();
261
- } else {
262
- module.exports = requireReactIs_development();
263
- }
264
- } (reactIs));
265
- return reactIs.exports;
266
- }
267
-
268
- /*
269
- object-assign
270
- (c) Sindre Sorhus
271
- @license MIT
272
- */
273
-
274
- var objectAssign;
275
- var hasRequiredObjectAssign;
276
-
277
- function requireObjectAssign () {
278
- if (hasRequiredObjectAssign) return objectAssign;
279
- hasRequiredObjectAssign = 1;
280
- /* eslint-disable no-unused-vars */
281
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
282
- var hasOwnProperty = Object.prototype.hasOwnProperty;
283
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
284
-
285
- function toObject(val) {
286
- if (val === null || val === undefined) {
287
- throw new TypeError('Object.assign cannot be called with null or undefined');
288
- }
289
-
290
- return Object(val);
291
- }
292
-
293
- function shouldUseNative() {
294
- try {
295
- if (!Object.assign) {
296
- return false;
297
- }
298
-
299
- // Detect buggy property enumeration order in older V8 versions.
300
-
301
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
302
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
303
- test1[5] = 'de';
304
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
305
- return false;
306
- }
307
-
308
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
309
- var test2 = {};
310
- for (var i = 0; i < 10; i++) {
311
- test2['_' + String.fromCharCode(i)] = i;
312
- }
313
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
314
- return test2[n];
315
- });
316
- if (order2.join('') !== '0123456789') {
317
- return false;
318
- }
319
-
320
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
321
- var test3 = {};
322
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
323
- test3[letter] = letter;
324
- });
325
- if (Object.keys(Object.assign({}, test3)).join('') !==
326
- 'abcdefghijklmnopqrst') {
327
- return false;
328
- }
329
-
330
- return true;
331
- } catch (err) {
332
- // We don't expect any of the above to throw, but better to be safe.
333
- return false;
334
- }
335
- }
336
-
337
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
338
- var from;
339
- var to = toObject(target);
340
- var symbols;
341
-
342
- for (var s = 1; s < arguments.length; s++) {
343
- from = Object(arguments[s]);
344
-
345
- for (var key in from) {
346
- if (hasOwnProperty.call(from, key)) {
347
- to[key] = from[key];
348
- }
349
- }
350
-
351
- if (getOwnPropertySymbols) {
352
- symbols = getOwnPropertySymbols(from);
353
- for (var i = 0; i < symbols.length; i++) {
354
- if (propIsEnumerable.call(from, symbols[i])) {
355
- to[symbols[i]] = from[symbols[i]];
356
- }
357
- }
358
- }
359
- }
360
-
361
- return to;
362
- };
363
- return objectAssign;
364
- }
365
-
366
- /**
367
- * Copyright (c) 2013-present, Facebook, Inc.
368
- *
369
- * This source code is licensed under the MIT license found in the
370
- * LICENSE file in the root directory of this source tree.
371
- */
372
-
373
- var ReactPropTypesSecret_1;
374
- var hasRequiredReactPropTypesSecret;
375
-
376
- function requireReactPropTypesSecret () {
377
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
378
- hasRequiredReactPropTypesSecret = 1;
379
-
380
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
381
-
382
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
383
- return ReactPropTypesSecret_1;
384
- }
385
-
386
- /**
387
- * Copyright (c) 2013-present, Facebook, Inc.
388
- *
389
- * This source code is licensed under the MIT license found in the
390
- * LICENSE file in the root directory of this source tree.
391
- */
392
-
393
- var checkPropTypes_1;
394
- var hasRequiredCheckPropTypes;
395
-
396
- function requireCheckPropTypes () {
397
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
398
- hasRequiredCheckPropTypes = 1;
399
-
400
- var printWarning = function() {};
401
-
402
- if (process.env.NODE_ENV !== 'production') {
403
- var ReactPropTypesSecret = requireReactPropTypesSecret();
404
- var loggedTypeFailures = {};
405
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
406
-
407
- printWarning = function(text) {
408
- var message = 'Warning: ' + text;
409
- if (typeof console !== 'undefined') {
410
- console.error(message);
411
- }
412
- try {
413
- // --- Welcome to debugging React ---
414
- // This error was thrown as a convenience so that you can use this stack
415
- // to find the callsite that caused this warning to fire.
416
- throw new Error(message);
417
- } catch (x) {}
418
- };
419
- }
420
-
421
- /**
422
- * Assert that the values match with the type specs.
423
- * Error messages are memorized and will only be shown once.
424
- *
425
- * @param {object} typeSpecs Map of name to a ReactPropType
426
- * @param {object} values Runtime values that need to be type-checked
427
- * @param {string} location e.g. "prop", "context", "child context"
428
- * @param {string} componentName Name of the component for error messages.
429
- * @param {?Function} getStack Returns the component stack.
430
- * @private
431
- */
432
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
433
- if (process.env.NODE_ENV !== 'production') {
434
- for (var typeSpecName in typeSpecs) {
435
- if (has(typeSpecs, typeSpecName)) {
436
- var error;
437
- // Prop type validation may throw. In case they do, we don't want to
438
- // fail the render phase where it didn't fail before. So we log it.
439
- // After these have been cleaned up, we'll let them throw.
440
- try {
441
- // This is intentionally an invariant that gets caught. It's the same
442
- // behavior as without this statement except with a better message.
443
- if (typeof typeSpecs[typeSpecName] !== 'function') {
444
- var err = Error(
445
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
446
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
447
- );
448
- err.name = 'Invariant Violation';
449
- throw err;
450
- }
451
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
452
- } catch (ex) {
453
- error = ex;
454
- }
455
- if (error && !(error instanceof Error)) {
456
- printWarning(
457
- (componentName || 'React class') + ': type specification of ' +
458
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
459
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
460
- 'You may have forgotten to pass an argument to the type checker ' +
461
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
462
- 'shape all require an argument).'
463
- );
464
- }
465
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
466
- // Only monitor this failure once because there tends to be a lot of the
467
- // same error.
468
- loggedTypeFailures[error.message] = true;
469
-
470
- var stack = getStack ? getStack() : '';
471
-
472
- printWarning(
473
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
474
- );
475
- }
476
- }
477
- }
478
- }
479
- }
480
-
481
- /**
482
- * Resets warning cache when testing.
483
- *
484
- * @private
485
- */
486
- checkPropTypes.resetWarningCache = function() {
487
- if (process.env.NODE_ENV !== 'production') {
488
- loggedTypeFailures = {};
489
- }
490
- };
491
-
492
- checkPropTypes_1 = checkPropTypes;
493
- return checkPropTypes_1;
494
- }
495
-
496
- /**
497
- * Copyright (c) 2013-present, Facebook, Inc.
498
- *
499
- * This source code is licensed under the MIT license found in the
500
- * LICENSE file in the root directory of this source tree.
501
- */
502
-
503
- var factoryWithTypeCheckers;
504
- var hasRequiredFactoryWithTypeCheckers;
505
-
506
- function requireFactoryWithTypeCheckers () {
507
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
508
- hasRequiredFactoryWithTypeCheckers = 1;
509
-
510
- var ReactIs = requireReactIs();
511
- var assign = requireObjectAssign();
512
-
513
- var ReactPropTypesSecret = requireReactPropTypesSecret();
514
- var checkPropTypes = requireCheckPropTypes();
515
-
516
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
517
- var printWarning = function() {};
518
-
519
- if (process.env.NODE_ENV !== 'production') {
520
- printWarning = function(text) {
521
- var message = 'Warning: ' + text;
522
- if (typeof console !== 'undefined') {
523
- console.error(message);
524
- }
525
- try {
526
- // --- Welcome to debugging React ---
527
- // This error was thrown as a convenience so that you can use this stack
528
- // to find the callsite that caused this warning to fire.
529
- throw new Error(message);
530
- } catch (x) {}
531
- };
532
- }
533
-
534
- function emptyFunctionThatReturnsNull() {
535
- return null;
536
- }
537
-
538
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
539
- /* global Symbol */
540
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
541
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
542
-
543
- /**
544
- * Returns the iterator method function contained on the iterable object.
545
- *
546
- * Be sure to invoke the function with the iterable as context:
547
- *
548
- * var iteratorFn = getIteratorFn(myIterable);
549
- * if (iteratorFn) {
550
- * var iterator = iteratorFn.call(myIterable);
551
- * ...
552
- * }
553
- *
554
- * @param {?object} maybeIterable
555
- * @return {?function}
556
- */
557
- function getIteratorFn(maybeIterable) {
558
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
559
- if (typeof iteratorFn === 'function') {
560
- return iteratorFn;
561
- }
562
- }
563
-
564
- /**
565
- * Collection of methods that allow declaration and validation of props that are
566
- * supplied to React components. Example usage:
567
- *
568
- * var Props = require('ReactPropTypes');
569
- * var MyArticle = React.createClass({
570
- * propTypes: {
571
- * // An optional string prop named "description".
572
- * description: Props.string,
573
- *
574
- * // A required enum prop named "category".
575
- * category: Props.oneOf(['News','Photos']).isRequired,
576
- *
577
- * // A prop named "dialog" that requires an instance of Dialog.
578
- * dialog: Props.instanceOf(Dialog).isRequired
579
- * },
580
- * render: function() { ... }
581
- * });
582
- *
583
- * A more formal specification of how these methods are used:
584
- *
585
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
586
- * decl := ReactPropTypes.{type}(.isRequired)?
587
- *
588
- * Each and every declaration produces a function with the same signature. This
589
- * allows the creation of custom validation functions. For example:
590
- *
591
- * var MyLink = React.createClass({
592
- * propTypes: {
593
- * // An optional string or URI prop named "href".
594
- * href: function(props, propName, componentName) {
595
- * var propValue = props[propName];
596
- * if (propValue != null && typeof propValue !== 'string' &&
597
- * !(propValue instanceof URI)) {
598
- * return new Error(
599
- * 'Expected a string or an URI for ' + propName + ' in ' +
600
- * componentName
601
- * );
602
- * }
603
- * }
604
- * },
605
- * render: function() {...}
606
- * });
607
- *
608
- * @internal
609
- */
610
-
611
- var ANONYMOUS = '<<anonymous>>';
612
-
613
- // Important!
614
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
615
- var ReactPropTypes = {
616
- array: createPrimitiveTypeChecker('array'),
617
- bool: createPrimitiveTypeChecker('boolean'),
618
- func: createPrimitiveTypeChecker('function'),
619
- number: createPrimitiveTypeChecker('number'),
620
- object: createPrimitiveTypeChecker('object'),
621
- string: createPrimitiveTypeChecker('string'),
622
- symbol: createPrimitiveTypeChecker('symbol'),
623
-
624
- any: createAnyTypeChecker(),
625
- arrayOf: createArrayOfTypeChecker,
626
- element: createElementTypeChecker(),
627
- elementType: createElementTypeTypeChecker(),
628
- instanceOf: createInstanceTypeChecker,
629
- node: createNodeChecker(),
630
- objectOf: createObjectOfTypeChecker,
631
- oneOf: createEnumTypeChecker,
632
- oneOfType: createUnionTypeChecker,
633
- shape: createShapeTypeChecker,
634
- exact: createStrictShapeTypeChecker,
635
- };
636
-
637
- /**
638
- * inlined Object.is polyfill to avoid requiring consumers ship their own
639
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
640
- */
641
- /*eslint-disable no-self-compare*/
642
- function is(x, y) {
643
- // SameValue algorithm
644
- if (x === y) {
645
- // Steps 1-5, 7-10
646
- // Steps 6.b-6.e: +0 != -0
647
- return x !== 0 || 1 / x === 1 / y;
648
- } else {
649
- // Step 6.a: NaN == NaN
650
- return x !== x && y !== y;
651
- }
652
- }
653
- /*eslint-enable no-self-compare*/
654
-
655
- /**
656
- * We use an Error-like object for backward compatibility as people may call
657
- * PropTypes directly and inspect their output. However, we don't use real
658
- * Errors anymore. We don't inspect their stack anyway, and creating them
659
- * is prohibitively expensive if they are created too often, such as what
660
- * happens in oneOfType() for any type before the one that matched.
661
- */
662
- function PropTypeError(message) {
663
- this.message = message;
664
- this.stack = '';
665
- }
666
- // Make `instanceof Error` still work for returned errors.
667
- PropTypeError.prototype = Error.prototype;
668
-
669
- function createChainableTypeChecker(validate) {
670
- if (process.env.NODE_ENV !== 'production') {
671
- var manualPropTypeCallCache = {};
672
- var manualPropTypeWarningCount = 0;
673
- }
674
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
675
- componentName = componentName || ANONYMOUS;
676
- propFullName = propFullName || propName;
677
-
678
- if (secret !== ReactPropTypesSecret) {
679
- if (throwOnDirectAccess) {
680
- // New behavior only for users of `prop-types` package
681
- var err = new Error(
682
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
683
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
684
- 'Read more at http://fb.me/use-check-prop-types'
685
- );
686
- err.name = 'Invariant Violation';
687
- throw err;
688
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
689
- // Old behavior for people using React.PropTypes
690
- var cacheKey = componentName + ':' + propName;
691
- if (
692
- !manualPropTypeCallCache[cacheKey] &&
693
- // Avoid spamming the console because they are often not actionable except for lib authors
694
- manualPropTypeWarningCount < 3
695
- ) {
696
- printWarning(
697
- 'You are manually calling a React.PropTypes validation ' +
698
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
699
- 'and will throw in the standalone `prop-types` package. ' +
700
- 'You may be seeing this warning due to a third-party PropTypes ' +
701
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
702
- );
703
- manualPropTypeCallCache[cacheKey] = true;
704
- manualPropTypeWarningCount++;
705
- }
706
- }
707
- }
708
- if (props[propName] == null) {
709
- if (isRequired) {
710
- if (props[propName] === null) {
711
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
712
- }
713
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
714
- }
715
- return null;
716
- } else {
717
- return validate(props, propName, componentName, location, propFullName);
718
- }
719
- }
720
-
721
- var chainedCheckType = checkType.bind(null, false);
722
- chainedCheckType.isRequired = checkType.bind(null, true);
723
-
724
- return chainedCheckType;
725
- }
726
-
727
- function createPrimitiveTypeChecker(expectedType) {
728
- function validate(props, propName, componentName, location, propFullName, secret) {
729
- var propValue = props[propName];
730
- var propType = getPropType(propValue);
731
- if (propType !== expectedType) {
732
- // `propValue` being instance of, say, date/regexp, pass the 'object'
733
- // check, but we can offer a more precise error message here rather than
734
- // 'of type `object`'.
735
- var preciseType = getPreciseType(propValue);
736
-
737
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
738
- }
739
- return null;
740
- }
741
- return createChainableTypeChecker(validate);
742
- }
743
-
744
- function createAnyTypeChecker() {
745
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
746
- }
747
-
748
- function createArrayOfTypeChecker(typeChecker) {
749
- function validate(props, propName, componentName, location, propFullName) {
750
- if (typeof typeChecker !== 'function') {
751
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
752
- }
753
- var propValue = props[propName];
754
- if (!Array.isArray(propValue)) {
755
- var propType = getPropType(propValue);
756
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
757
- }
758
- for (var i = 0; i < propValue.length; i++) {
759
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
760
- if (error instanceof Error) {
761
- return error;
762
- }
763
- }
764
- return null;
765
- }
766
- return createChainableTypeChecker(validate);
767
- }
768
-
769
- function createElementTypeChecker() {
770
- function validate(props, propName, componentName, location, propFullName) {
771
- var propValue = props[propName];
772
- if (!isValidElement(propValue)) {
773
- var propType = getPropType(propValue);
774
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
775
- }
776
- return null;
777
- }
778
- return createChainableTypeChecker(validate);
779
- }
780
-
781
- function createElementTypeTypeChecker() {
782
- function validate(props, propName, componentName, location, propFullName) {
783
- var propValue = props[propName];
784
- if (!ReactIs.isValidElementType(propValue)) {
785
- var propType = getPropType(propValue);
786
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
787
- }
788
- return null;
789
- }
790
- return createChainableTypeChecker(validate);
791
- }
792
-
793
- function createInstanceTypeChecker(expectedClass) {
794
- function validate(props, propName, componentName, location, propFullName) {
795
- if (!(props[propName] instanceof expectedClass)) {
796
- var expectedClassName = expectedClass.name || ANONYMOUS;
797
- var actualClassName = getClassName(props[propName]);
798
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
799
- }
800
- return null;
801
- }
802
- return createChainableTypeChecker(validate);
803
- }
804
-
805
- function createEnumTypeChecker(expectedValues) {
806
- if (!Array.isArray(expectedValues)) {
807
- if (process.env.NODE_ENV !== 'production') {
808
- if (arguments.length > 1) {
809
- printWarning(
810
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
811
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
812
- );
813
- } else {
814
- printWarning('Invalid argument supplied to oneOf, expected an array.');
815
- }
816
- }
817
- return emptyFunctionThatReturnsNull;
818
- }
819
-
820
- function validate(props, propName, componentName, location, propFullName) {
821
- var propValue = props[propName];
822
- for (var i = 0; i < expectedValues.length; i++) {
823
- if (is(propValue, expectedValues[i])) {
824
- return null;
825
- }
826
- }
827
-
828
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
829
- var type = getPreciseType(value);
830
- if (type === 'symbol') {
831
- return String(value);
832
- }
833
- return value;
834
- });
835
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
836
- }
837
- return createChainableTypeChecker(validate);
838
- }
839
-
840
- function createObjectOfTypeChecker(typeChecker) {
841
- function validate(props, propName, componentName, location, propFullName) {
842
- if (typeof typeChecker !== 'function') {
843
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
844
- }
845
- var propValue = props[propName];
846
- var propType = getPropType(propValue);
847
- if (propType !== 'object') {
848
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
849
- }
850
- for (var key in propValue) {
851
- if (has(propValue, key)) {
852
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
853
- if (error instanceof Error) {
854
- return error;
855
- }
856
- }
857
- }
858
- return null;
859
- }
860
- return createChainableTypeChecker(validate);
861
- }
862
-
863
- function createUnionTypeChecker(arrayOfTypeCheckers) {
864
- if (!Array.isArray(arrayOfTypeCheckers)) {
865
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
866
- return emptyFunctionThatReturnsNull;
867
- }
868
-
869
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
870
- var checker = arrayOfTypeCheckers[i];
871
- if (typeof checker !== 'function') {
872
- printWarning(
873
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
874
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
875
- );
876
- return emptyFunctionThatReturnsNull;
877
- }
878
- }
879
-
880
- function validate(props, propName, componentName, location, propFullName) {
881
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
882
- var checker = arrayOfTypeCheckers[i];
883
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
884
- return null;
885
- }
886
- }
887
-
888
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
889
- }
890
- return createChainableTypeChecker(validate);
891
- }
892
-
893
- function createNodeChecker() {
894
- function validate(props, propName, componentName, location, propFullName) {
895
- if (!isNode(props[propName])) {
896
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
897
- }
898
- return null;
899
- }
900
- return createChainableTypeChecker(validate);
901
- }
902
-
903
- function createShapeTypeChecker(shapeTypes) {
904
- function validate(props, propName, componentName, location, propFullName) {
905
- var propValue = props[propName];
906
- var propType = getPropType(propValue);
907
- if (propType !== 'object') {
908
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
909
- }
910
- for (var key in shapeTypes) {
911
- var checker = shapeTypes[key];
912
- if (!checker) {
913
- continue;
914
- }
915
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
916
- if (error) {
917
- return error;
918
- }
919
- }
920
- return null;
921
- }
922
- return createChainableTypeChecker(validate);
923
- }
924
-
925
- function createStrictShapeTypeChecker(shapeTypes) {
926
- function validate(props, propName, componentName, location, propFullName) {
927
- var propValue = props[propName];
928
- var propType = getPropType(propValue);
929
- if (propType !== 'object') {
930
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
931
- }
932
- // We need to check all keys in case some are required but missing from
933
- // props.
934
- var allKeys = assign({}, props[propName], shapeTypes);
935
- for (var key in allKeys) {
936
- var checker = shapeTypes[key];
937
- if (!checker) {
938
- return new PropTypeError(
939
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
940
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
941
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
942
- );
943
- }
944
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
945
- if (error) {
946
- return error;
947
- }
948
- }
949
- return null;
950
- }
951
-
952
- return createChainableTypeChecker(validate);
953
- }
954
-
955
- function isNode(propValue) {
956
- switch (typeof propValue) {
957
- case 'number':
958
- case 'string':
959
- case 'undefined':
960
- return true;
961
- case 'boolean':
962
- return !propValue;
963
- case 'object':
964
- if (Array.isArray(propValue)) {
965
- return propValue.every(isNode);
966
- }
967
- if (propValue === null || isValidElement(propValue)) {
968
- return true;
969
- }
970
-
971
- var iteratorFn = getIteratorFn(propValue);
972
- if (iteratorFn) {
973
- var iterator = iteratorFn.call(propValue);
974
- var step;
975
- if (iteratorFn !== propValue.entries) {
976
- while (!(step = iterator.next()).done) {
977
- if (!isNode(step.value)) {
978
- return false;
979
- }
980
- }
981
- } else {
982
- // Iterator will provide entry [k,v] tuples rather than values.
983
- while (!(step = iterator.next()).done) {
984
- var entry = step.value;
985
- if (entry) {
986
- if (!isNode(entry[1])) {
987
- return false;
988
- }
989
- }
990
- }
991
- }
992
- } else {
993
- return false;
994
- }
995
-
996
- return true;
997
- default:
998
- return false;
999
- }
1000
- }
1001
-
1002
- function isSymbol(propType, propValue) {
1003
- // Native Symbol.
1004
- if (propType === 'symbol') {
1005
- return true;
1006
- }
1007
-
1008
- // falsy value can't be a Symbol
1009
- if (!propValue) {
1010
- return false;
1011
- }
1012
-
1013
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1014
- if (propValue['@@toStringTag'] === 'Symbol') {
1015
- return true;
1016
- }
1017
-
1018
- // Fallback for non-spec compliant Symbols which are polyfilled.
1019
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1020
- return true;
1021
- }
1022
-
1023
- return false;
1024
- }
1025
-
1026
- // Equivalent of `typeof` but with special handling for array and regexp.
1027
- function getPropType(propValue) {
1028
- var propType = typeof propValue;
1029
- if (Array.isArray(propValue)) {
1030
- return 'array';
1031
- }
1032
- if (propValue instanceof RegExp) {
1033
- // Old webkits (at least until Android 4.0) return 'function' rather than
1034
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1035
- // passes PropTypes.object.
1036
- return 'object';
1037
- }
1038
- if (isSymbol(propType, propValue)) {
1039
- return 'symbol';
1040
- }
1041
- return propType;
1042
- }
1043
-
1044
- // This handles more types than `getPropType`. Only used for error messages.
1045
- // See `createPrimitiveTypeChecker`.
1046
- function getPreciseType(propValue) {
1047
- if (typeof propValue === 'undefined' || propValue === null) {
1048
- return '' + propValue;
1049
- }
1050
- var propType = getPropType(propValue);
1051
- if (propType === 'object') {
1052
- if (propValue instanceof Date) {
1053
- return 'date';
1054
- } else if (propValue instanceof RegExp) {
1055
- return 'regexp';
1056
- }
1057
- }
1058
- return propType;
1059
- }
1060
-
1061
- // Returns a string that is postfixed to a warning about an invalid type.
1062
- // For example, "undefined" or "of type array"
1063
- function getPostfixForTypeWarning(value) {
1064
- var type = getPreciseType(value);
1065
- switch (type) {
1066
- case 'array':
1067
- case 'object':
1068
- return 'an ' + type;
1069
- case 'boolean':
1070
- case 'date':
1071
- case 'regexp':
1072
- return 'a ' + type;
1073
- default:
1074
- return type;
1075
- }
1076
- }
1077
-
1078
- // Returns class name of the object, if any.
1079
- function getClassName(propValue) {
1080
- if (!propValue.constructor || !propValue.constructor.name) {
1081
- return ANONYMOUS;
1082
- }
1083
- return propValue.constructor.name;
1084
- }
1085
-
1086
- ReactPropTypes.checkPropTypes = checkPropTypes;
1087
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1088
- ReactPropTypes.PropTypes = ReactPropTypes;
1089
-
1090
- return ReactPropTypes;
1091
- };
1092
- return factoryWithTypeCheckers;
1093
- }
1094
-
1095
- /**
1096
- * Copyright (c) 2013-present, Facebook, Inc.
1097
- *
1098
- * This source code is licensed under the MIT license found in the
1099
- * LICENSE file in the root directory of this source tree.
1100
- */
1101
-
1102
- var factoryWithThrowingShims;
1103
- var hasRequiredFactoryWithThrowingShims;
1104
-
1105
- function requireFactoryWithThrowingShims () {
1106
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
1107
- hasRequiredFactoryWithThrowingShims = 1;
1108
-
1109
- var ReactPropTypesSecret = requireReactPropTypesSecret();
1110
-
1111
- function emptyFunction() {}
1112
- function emptyFunctionWithReset() {}
1113
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1114
-
1115
- factoryWithThrowingShims = function() {
1116
- function shim(props, propName, componentName, location, propFullName, secret) {
1117
- if (secret === ReactPropTypesSecret) {
1118
- // It is still safe when called from React.
1119
- return;
1120
- }
1121
- var err = new Error(
1122
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1123
- 'Use PropTypes.checkPropTypes() to call them. ' +
1124
- 'Read more at http://fb.me/use-check-prop-types'
1125
- );
1126
- err.name = 'Invariant Violation';
1127
- throw err;
1128
- } shim.isRequired = shim;
1129
- function getShim() {
1130
- return shim;
1131
- } // Important!
1132
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1133
- var ReactPropTypes = {
1134
- array: shim,
1135
- bool: shim,
1136
- func: shim,
1137
- number: shim,
1138
- object: shim,
1139
- string: shim,
1140
- symbol: shim,
1141
-
1142
- any: shim,
1143
- arrayOf: getShim,
1144
- element: shim,
1145
- elementType: shim,
1146
- instanceOf: getShim,
1147
- node: shim,
1148
- objectOf: getShim,
1149
- oneOf: getShim,
1150
- oneOfType: getShim,
1151
- shape: getShim,
1152
- exact: getShim,
1153
-
1154
- checkPropTypes: emptyFunctionWithReset,
1155
- resetWarningCache: emptyFunction
1156
- };
1157
-
1158
- ReactPropTypes.PropTypes = ReactPropTypes;
1159
-
1160
- return ReactPropTypes;
1161
- };
1162
- return factoryWithThrowingShims;
1163
- }
1164
-
1165
- /**
1166
- * Copyright (c) 2013-present, Facebook, Inc.
1167
- *
1168
- * This source code is licensed under the MIT license found in the
1169
- * LICENSE file in the root directory of this source tree.
1170
- */
1171
-
1172
- if (process.env.NODE_ENV !== 'production') {
1173
- var ReactIs = requireReactIs();
1174
-
1175
- // By explicitly using `prop-types` you are opting into new development behavior.
1176
- // http://fb.me/prop-types-in-prod
1177
- var throwOnDirectAccess = true;
1178
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
1179
- } else {
1180
- // By explicitly using `prop-types` you are opting into new production behavior.
1181
- // http://fb.me/prop-types-in-prod
1182
- propTypes.exports = requireFactoryWithThrowingShims()();
1183
- }
1184
-
1185
- var config = {
1186
- disabled: false
1187
- };
1188
-
1189
- var timeoutsShape = process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.number, propTypes.exports.shape({
1190
- enter: propTypes.exports.number,
1191
- exit: propTypes.exports.number,
1192
- appear: propTypes.exports.number
1193
- }).isRequired]) : null;
1194
- process.env.NODE_ENV !== 'production' ? propTypes.exports.oneOfType([propTypes.exports.string, propTypes.exports.shape({
1195
- enter: propTypes.exports.string,
1196
- exit: propTypes.exports.string,
1197
- active: propTypes.exports.string
1198
- }), propTypes.exports.shape({
1199
- enter: propTypes.exports.string,
1200
- enterDone: propTypes.exports.string,
1201
- enterActive: propTypes.exports.string,
1202
- exit: propTypes.exports.string,
1203
- exitDone: propTypes.exports.string,
1204
- exitActive: propTypes.exports.string
1205
- })]) : null;
1206
-
1207
- var TransitionGroupContext = React.createContext(null);
1208
-
1209
- var UNMOUNTED = 'unmounted';
1210
- var EXITED = 'exited';
1211
- var ENTERING = 'entering';
1212
- var ENTERED = 'entered';
1213
- var EXITING = 'exiting';
1214
- /**
1215
- * The Transition component lets you describe a transition from one component
1216
- * state to another _over time_ with a simple declarative API. Most commonly
1217
- * it's used to animate the mounting and unmounting of a component, but can also
1218
- * be used to describe in-place transition states as well.
1219
- *
1220
- * ---
1221
- *
1222
- * **Note**: `Transition` is a platform-agnostic base component. If you're using
1223
- * transitions in CSS, you'll probably want to use
1224
- * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
1225
- * instead. It inherits all the features of `Transition`, but contains
1226
- * additional features necessary to play nice with CSS transitions (hence the
1227
- * name of the component).
1228
- *
1229
- * ---
1230
- *
1231
- * By default the `Transition` component does not alter the behavior of the
1232
- * component it renders, it only tracks "enter" and "exit" states for the
1233
- * components. It's up to you to give meaning and effect to those states. For
1234
- * example we can add styles to a component when it enters or exits:
1235
- *
1236
- * ```jsx
1237
- * import { Transition } from 'react-transition-group';
1238
- *
1239
- * const duration = 300;
1240
- *
1241
- * const defaultStyle = {
1242
- * transition: `opacity ${duration}ms ease-in-out`,
1243
- * opacity: 0,
1244
- * }
1245
- *
1246
- * const transitionStyles = {
1247
- * entering: { opacity: 1 },
1248
- * entered: { opacity: 1 },
1249
- * exiting: { opacity: 0 },
1250
- * exited: { opacity: 0 },
1251
- * };
1252
- *
1253
- * const Fade = ({ in: inProp }) => (
1254
- * <Transition in={inProp} timeout={duration}>
1255
- * {state => (
1256
- * <div style={{
1257
- * ...defaultStyle,
1258
- * ...transitionStyles[state]
1259
- * }}>
1260
- * I'm a fade Transition!
1261
- * </div>
1262
- * )}
1263
- * </Transition>
1264
- * );
1265
- * ```
1266
- *
1267
- * There are 4 main states a Transition can be in:
1268
- * - `'entering'`
1269
- * - `'entered'`
1270
- * - `'exiting'`
1271
- * - `'exited'`
1272
- *
1273
- * Transition state is toggled via the `in` prop. When `true` the component
1274
- * begins the "Enter" stage. During this stage, the component will shift from
1275
- * its current transition state, to `'entering'` for the duration of the
1276
- * transition and then to the `'entered'` stage once it's complete. Let's take
1277
- * the following example (we'll use the
1278
- * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
1279
- *
1280
- * ```jsx
1281
- * function App() {
1282
- * const [inProp, setInProp] = useState(false);
1283
- * return (
1284
- * <div>
1285
- * <Transition in={inProp} timeout={500}>
1286
- * {state => (
1287
- * // ...
1288
- * )}
1289
- * </Transition>
1290
- * <button onClick={() => setInProp(true)}>
1291
- * Click to Enter
1292
- * </button>
1293
- * </div>
1294
- * );
1295
- * }
1296
- * ```
1297
- *
1298
- * When the button is clicked the component will shift to the `'entering'` state
1299
- * and stay there for 500ms (the value of `timeout`) before it finally switches
1300
- * to `'entered'`.
1301
- *
1302
- * When `in` is `false` the same thing happens except the state moves from
1303
- * `'exiting'` to `'exited'`.
1304
- */
1305
-
1306
- var Transition = /*#__PURE__*/function (_React$Component) {
1307
- _inheritsLoose(Transition, _React$Component);
1308
-
1309
- function Transition(props, context) {
1310
- var _this;
1311
-
1312
- _this = _React$Component.call(this, props, context) || this;
1313
- var parentGroup = context; // In the context of a TransitionGroup all enters are really appears
1314
-
1315
- var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
1316
- var initialStatus;
1317
- _this.appearStatus = null;
1318
-
1319
- if (props.in) {
1320
- if (appear) {
1321
- initialStatus = EXITED;
1322
- _this.appearStatus = ENTERING;
1323
- } else {
1324
- initialStatus = ENTERED;
1325
- }
1326
- } else {
1327
- if (props.unmountOnExit || props.mountOnEnter) {
1328
- initialStatus = UNMOUNTED;
1329
- } else {
1330
- initialStatus = EXITED;
1331
- }
1332
- }
1333
-
1334
- _this.state = {
1335
- status: initialStatus
1336
- };
1337
- _this.nextCallback = null;
1338
- return _this;
1339
- }
1340
-
1341
- Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
1342
- var nextIn = _ref.in;
1343
-
1344
- if (nextIn && prevState.status === UNMOUNTED) {
1345
- return {
1346
- status: EXITED
1347
- };
1348
- }
1349
-
1350
- return null;
1351
- } // getSnapshotBeforeUpdate(prevProps) {
1352
- // let nextStatus = null
1353
- // if (prevProps !== this.props) {
1354
- // const { status } = this.state
1355
- // if (this.props.in) {
1356
- // if (status !== ENTERING && status !== ENTERED) {
1357
- // nextStatus = ENTERING
1358
- // }
1359
- // } else {
1360
- // if (status === ENTERING || status === ENTERED) {
1361
- // nextStatus = EXITING
1362
- // }
1363
- // }
1364
- // }
1365
- // return { nextStatus }
1366
- // }
1367
- ;
1368
-
1369
- var _proto = Transition.prototype;
1370
-
1371
- _proto.componentDidMount = function componentDidMount() {
1372
- this.updateStatus(true, this.appearStatus);
1373
- };
1374
-
1375
- _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
1376
- var nextStatus = null;
1377
-
1378
- if (prevProps !== this.props) {
1379
- var status = this.state.status;
1380
-
1381
- if (this.props.in) {
1382
- if (status !== ENTERING && status !== ENTERED) {
1383
- nextStatus = ENTERING;
1384
- }
1385
- } else {
1386
- if (status === ENTERING || status === ENTERED) {
1387
- nextStatus = EXITING;
1388
- }
1389
- }
1390
- }
1391
-
1392
- this.updateStatus(false, nextStatus);
1393
- };
1394
-
1395
- _proto.componentWillUnmount = function componentWillUnmount() {
1396
- this.cancelNextCallback();
1397
- };
1398
-
1399
- _proto.getTimeouts = function getTimeouts() {
1400
- var timeout = this.props.timeout;
1401
- var exit, enter, appear;
1402
- exit = enter = appear = timeout;
1403
-
1404
- if (timeout != null && typeof timeout !== 'number') {
1405
- exit = timeout.exit;
1406
- enter = timeout.enter; // TODO: remove fallback for next major
1407
-
1408
- appear = timeout.appear !== undefined ? timeout.appear : enter;
1409
- }
1410
-
1411
- return {
1412
- exit: exit,
1413
- enter: enter,
1414
- appear: appear
1415
- };
1416
- };
1417
-
1418
- _proto.updateStatus = function updateStatus(mounting, nextStatus) {
1419
- if (mounting === void 0) {
1420
- mounting = false;
1421
- }
1422
-
1423
- if (nextStatus !== null) {
1424
- // nextStatus will always be ENTERING or EXITING.
1425
- this.cancelNextCallback();
1426
-
1427
- if (nextStatus === ENTERING) {
1428
- this.performEnter(mounting);
1429
- } else {
1430
- this.performExit();
1431
- }
1432
- } else if (this.props.unmountOnExit && this.state.status === EXITED) {
1433
- this.setState({
1434
- status: UNMOUNTED
1435
- });
1436
- }
1437
- };
1438
-
1439
- _proto.performEnter = function performEnter(mounting) {
1440
- var _this2 = this;
1441
-
1442
- var enter = this.props.enter;
1443
- var appearing = this.context ? this.context.isMounting : mounting;
1444
-
1445
- var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
1446
- maybeNode = _ref2[0],
1447
- maybeAppearing = _ref2[1];
1448
-
1449
- var timeouts = this.getTimeouts();
1450
- var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
1451
- // if we are mounting and running this it means appear _must_ be set
1452
-
1453
- if (!mounting && !enter || config.disabled) {
1454
- this.safeSetState({
1455
- status: ENTERED
1456
- }, function () {
1457
- _this2.props.onEntered(maybeNode);
1458
- });
1459
- return;
1460
- }
1461
-
1462
- this.props.onEnter(maybeNode, maybeAppearing);
1463
- this.safeSetState({
1464
- status: ENTERING
1465
- }, function () {
1466
- _this2.props.onEntering(maybeNode, maybeAppearing);
1467
-
1468
- _this2.onTransitionEnd(enterTimeout, function () {
1469
- _this2.safeSetState({
1470
- status: ENTERED
1471
- }, function () {
1472
- _this2.props.onEntered(maybeNode, maybeAppearing);
1473
- });
1474
- });
1475
- });
1476
- };
1477
-
1478
- _proto.performExit = function performExit() {
1479
- var _this3 = this;
1480
-
1481
- var exit = this.props.exit;
1482
- var timeouts = this.getTimeouts();
1483
- var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
1484
-
1485
- if (!exit || config.disabled) {
1486
- this.safeSetState({
1487
- status: EXITED
1488
- }, function () {
1489
- _this3.props.onExited(maybeNode);
1490
- });
1491
- return;
1492
- }
1493
-
1494
- this.props.onExit(maybeNode);
1495
- this.safeSetState({
1496
- status: EXITING
1497
- }, function () {
1498
- _this3.props.onExiting(maybeNode);
1499
-
1500
- _this3.onTransitionEnd(timeouts.exit, function () {
1501
- _this3.safeSetState({
1502
- status: EXITED
1503
- }, function () {
1504
- _this3.props.onExited(maybeNode);
1505
- });
1506
- });
1507
- });
1508
- };
1509
-
1510
- _proto.cancelNextCallback = function cancelNextCallback() {
1511
- if (this.nextCallback !== null) {
1512
- this.nextCallback.cancel();
1513
- this.nextCallback = null;
1514
- }
1515
- };
1516
-
1517
- _proto.safeSetState = function safeSetState(nextState, callback) {
1518
- // This shouldn't be necessary, but there are weird race conditions with
1519
- // setState callbacks and unmounting in testing, so always make sure that
1520
- // we can cancel any pending setState callbacks after we unmount.
1521
- callback = this.setNextCallback(callback);
1522
- this.setState(nextState, callback);
1523
- };
1524
-
1525
- _proto.setNextCallback = function setNextCallback(callback) {
1526
- var _this4 = this;
1527
-
1528
- var active = true;
1529
-
1530
- this.nextCallback = function (event) {
1531
- if (active) {
1532
- active = false;
1533
- _this4.nextCallback = null;
1534
- callback(event);
1535
- }
1536
- };
1537
-
1538
- this.nextCallback.cancel = function () {
1539
- active = false;
1540
- };
1541
-
1542
- return this.nextCallback;
1543
- };
1544
-
1545
- _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
1546
- this.setNextCallback(handler);
1547
- var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
1548
- var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
1549
-
1550
- if (!node || doesNotHaveTimeoutOrListener) {
1551
- setTimeout(this.nextCallback, 0);
1552
- return;
1553
- }
1554
-
1555
- if (this.props.addEndListener) {
1556
- var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],
1557
- maybeNode = _ref3[0],
1558
- maybeNextCallback = _ref3[1];
1559
-
1560
- this.props.addEndListener(maybeNode, maybeNextCallback);
1561
- }
1562
-
1563
- if (timeout != null) {
1564
- setTimeout(this.nextCallback, timeout);
1565
- }
1566
- };
1567
-
1568
- _proto.render = function render() {
1569
- var status = this.state.status;
1570
-
1571
- if (status === UNMOUNTED) {
1572
- return null;
1573
- }
1574
-
1575
- var _this$props = this.props,
1576
- children = _this$props.children;
1577
- _this$props.in;
1578
- _this$props.mountOnEnter;
1579
- _this$props.unmountOnExit;
1580
- _this$props.appear;
1581
- _this$props.enter;
1582
- _this$props.exit;
1583
- _this$props.timeout;
1584
- _this$props.addEndListener;
1585
- _this$props.onEnter;
1586
- _this$props.onEntering;
1587
- _this$props.onEntered;
1588
- _this$props.onExit;
1589
- _this$props.onExiting;
1590
- _this$props.onExited;
1591
- _this$props.nodeRef;
1592
- var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1593
-
1594
- return (
1595
- /*#__PURE__*/
1596
- // allows for nested Transitions
1597
- React.createElement(TransitionGroupContext.Provider, {
1598
- value: null
1599
- }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
1600
- );
1601
- };
1602
-
1603
- return Transition;
1604
- }(React.Component);
1605
-
1606
- Transition.contextType = TransitionGroupContext;
1607
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
1608
- /**
1609
- * A React reference to DOM element that need to transition:
1610
- * https://stackoverflow.com/a/51127130/4671932
1611
- *
1612
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
1613
- * (e.g. `onEnter`) because user already has direct access to the node.
1614
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
1615
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
1616
- * (see
1617
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
1618
- */
1619
- nodeRef: propTypes.exports.shape({
1620
- current: typeof Element === 'undefined' ? propTypes.exports.any : propTypes.exports.instanceOf(Element)
1621
- }),
1622
-
1623
- /**
1624
- * A `function` child can be used instead of a React element. This function is
1625
- * called with the current transition status (`'entering'`, `'entered'`,
1626
- * `'exiting'`, `'exited'`), which can be used to apply context
1627
- * specific props to a component.
1628
- *
1629
- * ```jsx
1630
- * <Transition in={this.state.in} timeout={150}>
1631
- * {state => (
1632
- * <MyComponent className={`fade fade-${state}`} />
1633
- * )}
1634
- * </Transition>
1635
- * ```
1636
- */
1637
- children: propTypes.exports.oneOfType([propTypes.exports.func.isRequired, propTypes.exports.element.isRequired]).isRequired,
1638
-
1639
- /**
1640
- * Show the component; triggers the enter or exit states
1641
- */
1642
- in: propTypes.exports.bool,
1643
-
1644
- /**
1645
- * By default the child component is mounted immediately along with
1646
- * the parent `Transition` component. If you want to "lazy mount" the component on the
1647
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
1648
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
1649
- */
1650
- mountOnEnter: propTypes.exports.bool,
1651
-
1652
- /**
1653
- * By default the child component stays mounted after it reaches the `'exited'` state.
1654
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
1655
- */
1656
- unmountOnExit: propTypes.exports.bool,
1657
-
1658
- /**
1659
- * By default the child component does not perform the enter transition when
1660
- * it first mounts, regardless of the value of `in`. If you want this
1661
- * behavior, set both `appear` and `in` to `true`.
1662
- *
1663
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
1664
- * > only adds an additional enter transition. However, in the
1665
- * > `<CSSTransition>` component that first enter transition does result in
1666
- * > additional `.appear-*` classes, that way you can choose to style it
1667
- * > differently.
1668
- */
1669
- appear: propTypes.exports.bool,
1670
-
1671
- /**
1672
- * Enable or disable enter transitions.
1673
- */
1674
- enter: propTypes.exports.bool,
1675
-
1676
- /**
1677
- * Enable or disable exit transitions.
1678
- */
1679
- exit: propTypes.exports.bool,
1680
-
1681
- /**
1682
- * The duration of the transition, in milliseconds.
1683
- * Required unless `addEndListener` is provided.
1684
- *
1685
- * You may specify a single timeout for all transitions:
1686
- *
1687
- * ```jsx
1688
- * timeout={500}
1689
- * ```
1690
- *
1691
- * or individually:
1692
- *
1693
- * ```jsx
1694
- * timeout={{
1695
- * appear: 500,
1696
- * enter: 300,
1697
- * exit: 500,
1698
- * }}
1699
- * ```
1700
- *
1701
- * - `appear` defaults to the value of `enter`
1702
- * - `enter` defaults to `0`
1703
- * - `exit` defaults to `0`
1704
- *
1705
- * @type {number | { enter?: number, exit?: number, appear?: number }}
1706
- */
1707
- timeout: function timeout(props) {
1708
- var pt = timeoutsShape;
1709
- if (!props.addEndListener) pt = pt.isRequired;
1710
-
1711
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1712
- args[_key - 1] = arguments[_key];
1713
- }
1714
-
1715
- return pt.apply(void 0, [props].concat(args));
1716
- },
1717
-
1718
- /**
1719
- * Add a custom transition end trigger. Called with the transitioning
1720
- * DOM node and a `done` callback. Allows for more fine grained transition end
1721
- * logic. Timeouts are still used as a fallback if provided.
1722
- *
1723
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1724
- *
1725
- * ```jsx
1726
- * addEndListener={(node, done) => {
1727
- * // use the css transitionend event to mark the finish of a transition
1728
- * node.addEventListener('transitionend', done, false);
1729
- * }}
1730
- * ```
1731
- */
1732
- addEndListener: propTypes.exports.func,
1733
-
1734
- /**
1735
- * Callback fired before the "entering" status is applied. An extra parameter
1736
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1737
- *
1738
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1739
- *
1740
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
1741
- */
1742
- onEnter: propTypes.exports.func,
1743
-
1744
- /**
1745
- * Callback fired after the "entering" status is applied. An extra parameter
1746
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1747
- *
1748
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1749
- *
1750
- * @type Function(node: HtmlElement, isAppearing: bool)
1751
- */
1752
- onEntering: propTypes.exports.func,
1753
-
1754
- /**
1755
- * Callback fired after the "entered" status is applied. An extra parameter
1756
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
1757
- *
1758
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1759
- *
1760
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
1761
- */
1762
- onEntered: propTypes.exports.func,
1763
-
1764
- /**
1765
- * Callback fired before the "exiting" status is applied.
1766
- *
1767
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1768
- *
1769
- * @type Function(node: HtmlElement) -> void
1770
- */
1771
- onExit: propTypes.exports.func,
1772
-
1773
- /**
1774
- * Callback fired after the "exiting" status is applied.
1775
- *
1776
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
1777
- *
1778
- * @type Function(node: HtmlElement) -> void
1779
- */
1780
- onExiting: propTypes.exports.func,
1781
-
1782
- /**
1783
- * Callback fired after the "exited" status is applied.
1784
- *
1785
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
1786
- *
1787
- * @type Function(node: HtmlElement) -> void
1788
- */
1789
- onExited: propTypes.exports.func
1790
- } : {}; // Name the function so it is clearer in the documentation
1791
-
1792
- function noop() {}
1793
-
1794
- Transition.defaultProps = {
1795
- in: false,
1796
- mountOnEnter: false,
1797
- unmountOnExit: false,
1798
- appear: false,
1799
- enter: true,
1800
- exit: true,
1801
- onEnter: noop,
1802
- onEntering: noop,
1803
- onEntered: noop,
1804
- onExit: noop,
1805
- onExiting: noop,
1806
- onExited: noop
1807
- };
1808
- Transition.UNMOUNTED = UNMOUNTED;
1809
- Transition.EXITED = EXITED;
1810
- Transition.ENTERING = ENTERING;
1811
- Transition.ENTERED = ENTERED;
1812
- Transition.EXITING = EXITING;
1813
-
1814
- const collapseStyles = {
1815
- [EXITED]: "collapse",
1816
- [EXITING]: "collapsing",
1817
- [ENTERING]: "expanding",
1818
- [ENTERED]: "collapse show",
1819
- };
1820
- const Collapse = React.forwardRef((_a, ref) => {
1821
- var { dimension = "height", panelIn = false, getDimensionValue = utils_getDefaultDimensionValue, timeout = 300, onEnter, onEntering, onEntered, onExit, onExiting, className, children, role } = _a, rest = tslib.__rest(_a, ["dimension", "panelIn", "getDimensionValue", "timeout", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "role"]);
1822
- /* Compute dimension */
1823
- const computedDimension = typeof dimension === "function" ? dimension() : dimension;
1824
- /* -- Expanding -- */
1825
- const handleEnter = React.useMemo(() => utils_createChainedFunction((elem) => {
1826
- elem.style[computedDimension] = "0";
1827
- elem.style.transitionDuration = `${timeout + 50}ms`;
1828
- }, onEnter), [computedDimension, onEnter, timeout]);
1829
- const handleEntering = React.useMemo(() => utils_createChainedFunction((elem) => {
1830
- const scroll = `scroll${computedDimension[0].toUpperCase()}${computedDimension.slice(1)}`;
1831
- elem.style[computedDimension] = `${elem[scroll]}px`;
1832
- elem.style.transitionDuration = `${timeout + 50}ms`;
1833
- }, onEntering), [computedDimension, onEntering, timeout]);
1834
- const handleEntered = React.useMemo(() => utils_createChainedFunction((elem) => {
1835
- elem.style[computedDimension] = "none";
1836
- elem.style.transitionDuration = `${timeout + 50}ms`;
1837
- }, onEntered), [computedDimension, onEntered, timeout]);
1838
- /* -- Collapsing -- */
1839
- const handleExit = React.useMemo(() => utils_createChainedFunction((elem) => {
1840
- elem.style[computedDimension] = `${getDimensionValue(computedDimension, elem)}px`;
1841
- utils_triggerBrowserReflow(elem);
1842
- elem.style.transitionDuration = `${timeout + 50}ms`;
1843
- }, onExit), [onExit, getDimensionValue, computedDimension, timeout]);
1844
- const handleExiting = React.useMemo(() => utils_createChainedFunction((elem) => {
1845
- elem.style[computedDimension] = "0px";
1846
- elem.style.transitionDuration = `${timeout + 50}ms`;
1847
- }, onExiting), [computedDimension, onExiting, timeout]);
1848
- return (jsxRuntime.jsx(Transition, Object.assign({ nodeRef: ref, addEndListener: utils_transitionEndListener }, rest, { "aria-expanded": role ? panelIn : null, onEnter: handleEnter, onEntering: handleEntering, onEntered: handleEntered, onExit: handleExit, onExiting: handleExiting, in: panelIn }, { children: (state, innerProps) => {
1849
- return React.cloneElement(children, Object.assign(Object.assign({}, innerProps), { className: classNames(className, children.props.className, collapseStyles[state], computedDimension === "width" && "collapse-horizontal") }));
1850
- } })));
1851
- });
1852
-
1853
- module.exports = Collapse;