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