@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.880
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.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +29 -28
- package/dist/cjs/AD300x250x600.js +29 -28
- package/dist/cjs/AD728x90.js +32 -31
- package/dist/cjs/ADFloatingFooter.js +31 -30
- package/dist/cjs/ADFooter.js +13 -12
- package/dist/cjs/ADGutter.js +31 -30
- package/dist/cjs/{ADInfeed-2e48af77.js → ADInfeed-9a2e923a.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +31 -30
- package/dist/cjs/ADSponsoredResources.js +31 -30
- package/dist/cjs/ADWebcast.js +31 -30
- package/dist/cjs/ADWelcome.js +32 -31
- package/dist/cjs/{ADlgInfeed-c39c7131.js → ADlgInfeed-957a1996.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +32 -31
- package/dist/cjs/AdSlotsProvider.js +18 -909
- package/dist/cjs/AlgoliaSearch.js +1391 -1272
- package/dist/cjs/AlphabeticList.js +24 -23
- package/dist/cjs/ArticleCarousel.js +21 -19
- package/dist/cjs/ArticleProgramLandingPage.js +61 -59
- package/dist/cjs/ArticleSeriesLandingPage.js +44 -38
- package/dist/cjs/ArticleSeriesListing.js +60 -58
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +309 -267
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +27 -25
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +34 -31
- package/dist/cjs/Column3.js +60 -57
- package/dist/cjs/ConferenceArticleCard.js +43 -41
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -100
- package/dist/cjs/DeckQueue.js +91 -86
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- package/dist/cjs/ExternalResources.js +80 -78
- package/dist/cjs/Feature.js +31 -28
- package/dist/cjs/ForbesHero.js +43 -41
- package/dist/cjs/GridContent.js +237 -231
- package/dist/cjs/GridHero.js +45 -43
- package/dist/cjs/GroupDeck.js +60 -58
- package/dist/cjs/HamMagazine.js +143 -138
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +16 -14
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +72 -70
- package/dist/cjs/HorizontalHero.js +30 -28
- package/dist/cjs/IssueContentDeck.js +77 -71
- package/dist/cjs/IssueDeck.js +76 -70
- package/dist/cjs/IssueLanding.js +94 -91
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +355 -227
- package/dist/cjs/MediaSeriesLanding.js +1118 -1126
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +150 -145
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +24 -23
- package/dist/cjs/OncliveLargeHero.js +75 -73
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +119 -3917
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -38
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +71 -65
- package/dist/cjs/PublicationLanding.js +137 -133
- package/dist/cjs/QueueDeckExpanded.js +1173 -1001
- package/dist/cjs/RecentNews.js +22 -21
- package/dist/cjs/RelatedContent.js +59 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +37 -36
- package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-ce3261cb.js} +41 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-e8477ca3.js → SocialSearchComponent-5ec44406.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +67 -61
- package/dist/cjs/TaxonomyDescription.js +55 -53
- package/dist/cjs/TemplateNormal.js +73 -72
- package/dist/cjs/ThumbnailCard.js +26 -23
- package/dist/cjs/Ustream.js +28 -27
- package/dist/cjs/VerticalHero.js +22 -20
- package/dist/cjs/VideoProgramLandingPage.js +78 -73
- package/dist/cjs/VideoSeriesCard.js +34 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +52 -48
- package/dist/cjs/VideoSeriesListing.js +77 -75
- package/dist/cjs/View.js +275 -271
- package/dist/cjs/YahooHero.js +42 -40
- package/dist/cjs/YoutubeGroup.js +68 -66
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-eed4f016.js → extends-7c86182f.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -42
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-17c6af5a.js → index-22bdde81.js} +1093 -1067
- package/dist/cjs/{index-e2e62963.js → index-8041a4eb.js} +11 -1
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{urlFor-3a61226f.js → index-efca863c.js} +37 -88
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-4d410430.js → index.esm-8123cf40.js} +20 -20
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +170 -164
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-025fdc78.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-5f52cf64.js → typeof-567e31ff.js} +35 -35
- package/dist/cjs/urlFor.js +59 -5
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-0c13c803.js → ADInfeed-8c5f8c58.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-e4e2031a.js → ADlgInfeed-2316e091.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +15 -907
- package/dist/esm/AlgoliaSearch.js +820 -702
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +17 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -53
- package/dist/esm/ArticleSeriesLandingPage.js +38 -33
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +659 -1487
- package/dist/esm/AuthWrapper.js +306 -265
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-46a745ba.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-f4515898.js → BlockContent-52cf21c5.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -37
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +96 -95
- package/dist/esm/DeckQueue.js +82 -81
- package/dist/esm/{Dfp-f867d061.js → Dfp-4ca12f2e.js} +20 -20
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +73 -72
- package/dist/esm/Feature.js +22 -21
- package/dist/esm/ForbesHero.js +33 -32
- package/dist/esm/GridContent.js +199 -198
- package/dist/esm/GridHero.js +35 -34
- package/dist/esm/GroupDeck.js +45 -44
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -12
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -67
- package/dist/esm/HorizontalHero.js +25 -24
- package/dist/esm/IssueContentDeck.js +59 -58
- package/dist/esm/IssueDeck.js +63 -62
- package/dist/esm/IssueLanding.js +90 -88
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +350 -223
- package/dist/esm/MediaSeriesLanding.js +839 -850
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +58 -57
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/PartnerDetailListing.js +112 -3910
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +37 -35
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -55
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1166 -994
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -50
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +31 -30
- package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-7a6c45ce.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-bdecba55.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -55
- package/dist/esm/TaxonomyDescription.js +49 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -16
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -16
- package/dist/esm/VideoProgramLandingPage.js +65 -64
- package/dist/esm/VideoSeriesCard.js +26 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +42 -39
- package/dist/esm/VideoSeriesListing.js +72 -71
- package/dist/esm/View.js +246 -246
- package/dist/esm/YahooHero.js +33 -32
- package/dist/esm/YoutubeGroup.js +52 -51
- package/dist/esm/{_is-array-4df618a6.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-f089461c.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-64812e90.js → asyncToGenerator-b4dfe691.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-b43c695a.js} +7 -6
- package/dist/esm/{core.get-iterator-method-86d4db69.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-6d26cb48.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-5b1796d4.js → extends-dc6a71fd.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -42
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-ff2c9409.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{urlFor-23b2244b.js → index-0dbff1d1.js} +37 -88
- package/dist/esm/{index-41a678ea.js → index-2446af28.js} +6 -6
- package/dist/esm/{index-5f7e79e7.js → index-35bdcc81.js} +10 -10
- package/dist/esm/{index-aaa2dae0.js → index-67e1773f.js} +11 -2
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-a35a5c39.js → index-c9bfc91f.js} +1017 -1001
- package/dist/esm/{index.es-29c1cef5.js → index.es-c6222053.js} +28 -10
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8016b507.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +140 -137
- package/dist/esm/{inherits-2409637d.js → inherits-8a801a18.js} +18 -18
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-69989821.js → keys-425c8ab0.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-4136096f.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-91f9716f.js} +20 -20
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-ca2c8b8d.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-c05a82ba.js → typeof-83d9eb10.js} +35 -35
- package/dist/esm/urlFor.js +62 -4
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +111 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/Pagination-9cb60fba.js +0 -61
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/esm/Pagination-256b60e5.js +0 -56
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-c0612122.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,70 +1,71 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-8fa0bc8d.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-83d9eb10.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-dc6a71fd.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
6
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-67e1773f.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import ReactDOM from 'react-dom';
|
|
1
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
13
|
+
import { L as LazyLoad } from './index-35bdcc81.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
+
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
+
import { g as getSerializers } from './index-c9bfc91f.js';
|
|
19
|
+
import './define-property-99e66838.js';
|
|
20
|
+
import './core.get-iterator-method-e903ff31.js';
|
|
21
|
+
import './web.dom.iterable-fdf034f5.js';
|
|
3
22
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './
|
|
6
|
-
import './_object-pie-
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
-
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
13
|
-
import './_is-array-4df618a6.js';
|
|
14
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
23
|
+
import './_iter-detect-f089461c.js';
|
|
24
|
+
import './_is-array-893ab020.js';
|
|
25
|
+
import './_object-pie-133f504a.js';
|
|
26
|
+
import './toConsumableArray-7b1c0e23.js';
|
|
27
|
+
import './inherits-8a801a18.js';
|
|
28
|
+
import './_object-sap-169d6272.js';
|
|
29
|
+
import './index-2446af28.js';
|
|
15
30
|
import './events-6c3a7a63.js';
|
|
16
|
-
import './index-41a678ea.js';
|
|
17
|
-
import PropTypes from 'prop-types';
|
|
18
31
|
import 'react-bootstrap/Container';
|
|
19
32
|
import 'react-bootstrap/Row';
|
|
20
33
|
import 'react-bootstrap/Col';
|
|
21
34
|
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
35
|
import 'next/router';
|
|
24
|
-
import './
|
|
25
|
-
import './debounce-
|
|
26
|
-
import './
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import './
|
|
32
|
-
import './entities-7cc3bf45.js';
|
|
33
|
-
import './stringify-70b72959.js';
|
|
34
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
35
|
-
import './Segment.js';
|
|
36
|
-
import './Beam.js';
|
|
36
|
+
import './lodash-f97fd99a.js';
|
|
37
|
+
import './debounce-533d9748.js';
|
|
38
|
+
import './isSymbol-a7e9aafe.js';
|
|
39
|
+
import './toNumber-5aeba6e7.js';
|
|
40
|
+
import './index.es-c6222053.js';
|
|
41
|
+
import './visibility-sensor-f40c2564.js';
|
|
42
|
+
import './index-0dbff1d1.js';
|
|
43
|
+
import './ADlgInfeed-2316e091.js';
|
|
37
44
|
import './AdSlot.js';
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import './
|
|
41
|
-
import '
|
|
42
|
-
import
|
|
45
|
+
import './Beam.js';
|
|
46
|
+
import './stringify-c21932b3.js';
|
|
47
|
+
import './Segment.js';
|
|
48
|
+
import './main-4136096f.js';
|
|
49
|
+
import './ADInfeed-8c5f8c58.js';
|
|
50
|
+
import 'react-bootstrap';
|
|
43
51
|
import './index-c7e2ac95.js';
|
|
44
|
-
import './
|
|
52
|
+
import './util-3ab476bf.js';
|
|
53
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
45
54
|
import './GroupDeck.js';
|
|
46
|
-
import '
|
|
47
|
-
import './
|
|
48
|
-
import './iconBase-602d52fe.js';
|
|
49
|
-
import './index.esm-29e48d38.js';
|
|
50
|
-
import { g as getSerializers } from './index-a35a5c39.js';
|
|
51
|
-
import './util-7700fc59.js';
|
|
52
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
55
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
56
|
+
import './SocialShare.js';
|
|
53
57
|
import 'next/head';
|
|
54
58
|
import 'react-share';
|
|
55
|
-
import './
|
|
56
|
-
import './_object-to-array-c54dd835.js';
|
|
59
|
+
import './_object-to-array-50a6b9a3.js';
|
|
57
60
|
import 'react-bootstrap/Pagination';
|
|
61
|
+
import 'react-bootstrap/Button';
|
|
62
|
+
import './entities-932b50cf.js';
|
|
63
|
+
import './index.esm-3fdda599.js';
|
|
64
|
+
import './iconBase-602d52fe.js';
|
|
58
65
|
import 'react-bootstrap/Figure';
|
|
59
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
60
67
|
import 'react-bootstrap/Tooltip';
|
|
61
68
|
import 'react-bootstrap/Popover';
|
|
62
|
-
import 'react-bootstrap/Spinner';
|
|
63
|
-
import MasterDeck from './MasterDeck.js';
|
|
64
|
-
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
65
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
66
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
|
-
import Link from 'next/link';
|
|
68
69
|
|
|
69
70
|
/**
|
|
70
71
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -159,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
159
160
|
var _ref = result,
|
|
160
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
161
162
|
propsValue = _ref[fieldName],
|
|
162
|
-
rest = _objectWithoutPropertiesLoose
|
|
163
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
164
|
|
|
164
165
|
var handlerName = config[fieldName];
|
|
165
166
|
|
|
@@ -167,26 +168,26 @@ function useUncontrolled(props, config) {
|
|
|
167
168
|
value = _useUncontrolledProp[0],
|
|
168
169
|
handler = _useUncontrolledProp[1];
|
|
169
170
|
|
|
170
|
-
return _extends
|
|
171
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
172
|
}, props);
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
function _inheritsLoose(subClass, superClass) {
|
|
175
176
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
177
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
subClass
|
|
178
|
+
_setPrototypeOf(subClass, superClass);
|
|
178
179
|
}
|
|
179
180
|
|
|
180
|
-
var ThemeContext =
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
var ThemeContext = React.createContext({});
|
|
182
|
+
ThemeContext.Consumer;
|
|
183
|
+
ThemeContext.Provider;
|
|
183
184
|
|
|
184
185
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
185
186
|
var prefixes = useContext(ThemeContext);
|
|
186
187
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
var SelectableContext =
|
|
190
|
+
var SelectableContext = React.createContext(null);
|
|
190
191
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
191
192
|
if (href === void 0) {
|
|
192
193
|
href = null;
|
|
@@ -196,11 +197,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
196
197
|
return href || null;
|
|
197
198
|
};
|
|
198
199
|
|
|
199
|
-
var context =
|
|
200
|
-
context.displayName = 'AccordionContext';
|
|
200
|
+
var context$2 = React.createContext(null);
|
|
201
|
+
context$2.displayName = 'AccordionContext';
|
|
201
202
|
|
|
202
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
203
|
-
var contextEventKey = useContext(context);
|
|
204
|
+
var contextEventKey = useContext(context$2);
|
|
204
205
|
var onSelect = useContext(SelectableContext);
|
|
205
206
|
return function (e) {
|
|
206
207
|
/*
|
|
@@ -212,13 +213,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
212
213
|
if (onClick) onClick(e);
|
|
213
214
|
};
|
|
214
215
|
}
|
|
215
|
-
var AccordionToggle =
|
|
216
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
216
217
|
var _ref$as = _ref.as,
|
|
217
218
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
218
219
|
children = _ref.children,
|
|
219
220
|
eventKey = _ref.eventKey,
|
|
220
221
|
onClick = _ref.onClick,
|
|
221
|
-
props = _objectWithoutPropertiesLoose
|
|
222
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
223
|
|
|
223
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
224
225
|
|
|
@@ -226,22 +227,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
226
227
|
props.type = 'button';
|
|
227
228
|
}
|
|
228
229
|
|
|
229
|
-
return /*#__PURE__*/
|
|
230
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
230
231
|
ref: ref,
|
|
231
232
|
onClick: accordionOnClick
|
|
232
233
|
}, props), children);
|
|
233
234
|
});
|
|
234
235
|
|
|
235
|
-
function ownerDocument(node) {
|
|
236
|
+
function ownerDocument$1(node) {
|
|
236
237
|
return node && node.ownerDocument || document;
|
|
237
238
|
}
|
|
238
239
|
|
|
239
240
|
function ownerWindow(node) {
|
|
240
|
-
var doc = ownerDocument(node);
|
|
241
|
+
var doc = ownerDocument$1(node);
|
|
241
242
|
return doc && doc.defaultView || window;
|
|
242
243
|
}
|
|
243
244
|
|
|
244
|
-
function getComputedStyle$
|
|
245
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
245
246
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
246
247
|
}
|
|
247
248
|
|
|
@@ -270,7 +271,7 @@ function style(node, property) {
|
|
|
270
271
|
var transforms = '';
|
|
271
272
|
|
|
272
273
|
if (typeof property === 'string') {
|
|
273
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
274
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
274
275
|
}
|
|
275
276
|
|
|
276
277
|
Object.keys(property).forEach(function (key) {
|
|
@@ -410,7 +411,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
410
411
|
exit: PropTypes.number,
|
|
411
412
|
appear: PropTypes.number
|
|
412
413
|
}).isRequired]) : null;
|
|
413
|
-
|
|
414
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
415
|
enter: PropTypes.string,
|
|
415
416
|
exit: PropTypes.string,
|
|
416
417
|
active: PropTypes.string
|
|
@@ -423,7 +424,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
423
424
|
exitActive: PropTypes.string
|
|
424
425
|
})]) : null;
|
|
425
426
|
|
|
426
|
-
var TransitionGroupContext =
|
|
427
|
+
var TransitionGroupContext = React.createContext(null);
|
|
427
428
|
|
|
428
429
|
var UNMOUNTED = 'unmounted';
|
|
429
430
|
var EXITED = 'exited';
|
|
@@ -792,35 +793,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
793
|
}
|
|
793
794
|
|
|
794
795
|
var _this$props = this.props,
|
|
795
|
-
children = _this$props.children
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
childProps = _objectWithoutPropertiesLoose
|
|
796
|
+
children = _this$props.children;
|
|
797
|
+
_this$props.in;
|
|
798
|
+
_this$props.mountOnEnter;
|
|
799
|
+
_this$props.unmountOnExit;
|
|
800
|
+
_this$props.appear;
|
|
801
|
+
_this$props.enter;
|
|
802
|
+
_this$props.exit;
|
|
803
|
+
_this$props.timeout;
|
|
804
|
+
_this$props.addEndListener;
|
|
805
|
+
_this$props.onEnter;
|
|
806
|
+
_this$props.onEntering;
|
|
807
|
+
_this$props.onEntered;
|
|
808
|
+
_this$props.onExit;
|
|
809
|
+
_this$props.onExiting;
|
|
810
|
+
_this$props.onExited;
|
|
811
|
+
_this$props.nodeRef;
|
|
812
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
812
813
|
|
|
813
814
|
return (
|
|
814
815
|
/*#__PURE__*/
|
|
815
816
|
// allows for nested Transitions
|
|
816
|
-
|
|
817
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
817
818
|
value: null
|
|
818
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
819
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
819
820
|
);
|
|
820
821
|
};
|
|
821
822
|
|
|
822
823
|
return Transition;
|
|
823
|
-
}(
|
|
824
|
+
}(React.Component);
|
|
824
825
|
|
|
825
826
|
Transition.contextType = TransitionGroupContext;
|
|
826
827
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1008,7 +1009,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1009
|
onExited: PropTypes.func
|
|
1009
1010
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1010
1011
|
|
|
1011
|
-
function noop() {}
|
|
1012
|
+
function noop$5() {}
|
|
1012
1013
|
|
|
1013
1014
|
Transition.defaultProps = {
|
|
1014
1015
|
in: false,
|
|
@@ -1017,12 +1018,12 @@ Transition.defaultProps = {
|
|
|
1017
1018
|
appear: false,
|
|
1018
1019
|
enter: true,
|
|
1019
1020
|
exit: true,
|
|
1020
|
-
onEnter: noop,
|
|
1021
|
-
onEntering: noop,
|
|
1022
|
-
onEntered: noop,
|
|
1023
|
-
onExit: noop,
|
|
1024
|
-
onExiting: noop,
|
|
1025
|
-
onExited: noop
|
|
1021
|
+
onEnter: noop$5,
|
|
1022
|
+
onEntering: noop$5,
|
|
1023
|
+
onEntered: noop$5,
|
|
1024
|
+
onExit: noop$5,
|
|
1025
|
+
onExiting: noop$5,
|
|
1026
|
+
onExited: noop$5
|
|
1026
1027
|
};
|
|
1027
1028
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1028
1029
|
Transition.EXITED = EXITED;
|
|
@@ -1088,7 +1089,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1088
1089
|
}
|
|
1089
1090
|
|
|
1090
1091
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1091
|
-
var defaultProps = {
|
|
1092
|
+
var defaultProps$E = {
|
|
1092
1093
|
in: false,
|
|
1093
1094
|
timeout: 300,
|
|
1094
1095
|
mountOnEnter: false,
|
|
@@ -1096,7 +1097,7 @@ var defaultProps = {
|
|
|
1096
1097
|
appear: false,
|
|
1097
1098
|
getDimensionValue: getDefaultDimensionValue
|
|
1098
1099
|
};
|
|
1099
|
-
var Collapse =
|
|
1100
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1100
1101
|
var onEnter = _ref.onEnter,
|
|
1101
1102
|
onEntering = _ref.onEntering,
|
|
1102
1103
|
onEntered = _ref.onEntered,
|
|
@@ -1108,7 +1109,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1108
1109
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1109
1110
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1110
1111
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1111
|
-
props = _objectWithoutPropertiesLoose
|
|
1112
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1112
1113
|
|
|
1113
1114
|
/* Compute dimension */
|
|
1114
1115
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1143,8 +1144,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1143
1144
|
elem.style[computedDimension] = null;
|
|
1144
1145
|
}, onExiting);
|
|
1145
1146
|
}, [computedDimension, onExiting]);
|
|
1146
|
-
return /*#__PURE__*/
|
|
1147
|
-
, _extends
|
|
1147
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1148
|
+
, _extends({
|
|
1148
1149
|
ref: ref,
|
|
1149
1150
|
addEndListener: transitionEnd
|
|
1150
1151
|
}, props, {
|
|
@@ -1155,33 +1156,33 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1155
1156
|
onExit: handleExit,
|
|
1156
1157
|
onExiting: handleExiting
|
|
1157
1158
|
}), function (state, innerProps) {
|
|
1158
|
-
return
|
|
1159
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1159
1160
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1160
1161
|
}));
|
|
1161
1162
|
});
|
|
1162
1163
|
}); // @ts-ignore
|
|
1163
1164
|
|
|
1164
1165
|
// @ts-ignore
|
|
1165
|
-
Collapse.defaultProps = defaultProps;
|
|
1166
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1166
1167
|
|
|
1167
|
-
var AccordionCollapse =
|
|
1168
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1168
1169
|
var children = _ref.children,
|
|
1169
1170
|
eventKey = _ref.eventKey,
|
|
1170
|
-
props = _objectWithoutPropertiesLoose
|
|
1171
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
1172
|
|
|
1172
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
1174
|
// from collapsing the accordion when clicked.
|
|
1174
1175
|
|
|
1175
|
-
return /*#__PURE__*/
|
|
1176
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1176
1177
|
value: null
|
|
1177
|
-
}, /*#__PURE__*/
|
|
1178
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1178
1179
|
ref: ref,
|
|
1179
1180
|
in: contextEventKey === eventKey
|
|
1180
|
-
}, props), /*#__PURE__*/
|
|
1181
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1181
1182
|
});
|
|
1182
1183
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1183
1184
|
|
|
1184
|
-
var Accordion =
|
|
1185
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1185
1186
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1186
1187
|
activeKey: 'onSelect'
|
|
1187
1188
|
}),
|
|
@@ -1192,14 +1193,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1192
1193
|
children = _useUncontrolled.children,
|
|
1193
1194
|
className = _useUncontrolled.className,
|
|
1194
1195
|
onSelect = _useUncontrolled.onSelect,
|
|
1195
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1196
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
1197
|
|
|
1197
1198
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1198
|
-
return /*#__PURE__*/
|
|
1199
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
1199
1200
|
value: activeKey || null
|
|
1200
|
-
}, /*#__PURE__*/
|
|
1201
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1201
1202
|
value: onSelect || null
|
|
1202
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1203
1204
|
ref: ref
|
|
1204
1205
|
}, controlledProps, {
|
|
1205
1206
|
className: finalClassName
|
|
@@ -1235,7 +1236,7 @@ function useEventCallback(fn) {
|
|
|
1235
1236
|
}
|
|
1236
1237
|
|
|
1237
1238
|
var _fadeStyles;
|
|
1238
|
-
var defaultProps$
|
|
1239
|
+
var defaultProps$D = {
|
|
1239
1240
|
in: false,
|
|
1240
1241
|
timeout: 300,
|
|
1241
1242
|
mountOnEnter: false,
|
|
@@ -1243,60 +1244,60 @@ var defaultProps$1 = {
|
|
|
1243
1244
|
appear: false
|
|
1244
1245
|
};
|
|
1245
1246
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1246
|
-
var Fade =
|
|
1247
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1247
1248
|
var className = _ref.className,
|
|
1248
1249
|
children = _ref.children,
|
|
1249
|
-
props = _objectWithoutPropertiesLoose
|
|
1250
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1250
1251
|
|
|
1251
1252
|
var handleEnter = useCallback(function (node) {
|
|
1252
1253
|
triggerBrowserReflow(node);
|
|
1253
1254
|
if (props.onEnter) props.onEnter(node);
|
|
1254
1255
|
}, [props]);
|
|
1255
|
-
return /*#__PURE__*/
|
|
1256
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1256
1257
|
ref: ref,
|
|
1257
1258
|
addEndListener: transitionEnd
|
|
1258
1259
|
}, props, {
|
|
1259
1260
|
onEnter: handleEnter
|
|
1260
1261
|
}), function (status, innerProps) {
|
|
1261
|
-
return
|
|
1262
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1262
1263
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1263
1264
|
}));
|
|
1264
1265
|
});
|
|
1265
1266
|
});
|
|
1266
|
-
Fade.defaultProps = defaultProps$
|
|
1267
|
+
Fade.defaultProps = defaultProps$D;
|
|
1267
1268
|
Fade.displayName = 'Fade';
|
|
1268
1269
|
|
|
1269
|
-
var propTypes = {
|
|
1270
|
+
var propTypes$a = {
|
|
1270
1271
|
label: PropTypes.string.isRequired,
|
|
1271
1272
|
onClick: PropTypes.func
|
|
1272
1273
|
};
|
|
1273
|
-
var defaultProps$
|
|
1274
|
+
var defaultProps$C = {
|
|
1274
1275
|
label: 'Close'
|
|
1275
1276
|
};
|
|
1276
|
-
var CloseButton =
|
|
1277
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1277
1278
|
var label = _ref.label,
|
|
1278
1279
|
onClick = _ref.onClick,
|
|
1279
1280
|
className = _ref.className,
|
|
1280
|
-
props = _objectWithoutPropertiesLoose
|
|
1281
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1281
1282
|
|
|
1282
|
-
return /*#__PURE__*/
|
|
1283
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1283
1284
|
ref: ref,
|
|
1284
1285
|
type: "button",
|
|
1285
1286
|
className: classnames('close', className),
|
|
1286
1287
|
onClick: onClick
|
|
1287
|
-
}, props), /*#__PURE__*/
|
|
1288
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1288
1289
|
"aria-hidden": "true"
|
|
1289
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1290
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1290
1291
|
className: "sr-only"
|
|
1291
1292
|
}, label));
|
|
1292
1293
|
});
|
|
1293
1294
|
CloseButton.displayName = 'CloseButton';
|
|
1294
|
-
CloseButton.propTypes = propTypes;
|
|
1295
|
-
CloseButton.defaultProps = defaultProps$
|
|
1295
|
+
CloseButton.propTypes = propTypes$a;
|
|
1296
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1296
1297
|
|
|
1297
1298
|
var divWithClassName = (function (className) {
|
|
1298
|
-
return
|
|
1299
|
-
return /*#__PURE__*/
|
|
1299
|
+
return React.forwardRef(function (p, ref) {
|
|
1300
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1300
1301
|
ref: ref,
|
|
1301
1302
|
className: classnames(p.className, className)
|
|
1302
1303
|
}));
|
|
@@ -1322,15 +1323,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1322
1323
|
Component = _ref.Component,
|
|
1323
1324
|
defaultProps = _ref.defaultProps;
|
|
1324
1325
|
|
|
1325
|
-
var BsComponent =
|
|
1326
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1326
1327
|
var className = _ref2.className,
|
|
1327
1328
|
bsPrefix = _ref2.bsPrefix,
|
|
1328
1329
|
_ref2$as = _ref2.as,
|
|
1329
1330
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1330
|
-
props = _objectWithoutPropertiesLoose
|
|
1331
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1331
1332
|
|
|
1332
1333
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1333
|
-
return /*#__PURE__*/
|
|
1334
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1334
1335
|
ref: ref,
|
|
1335
1336
|
className: classnames(className, resolvedPrefix)
|
|
1336
1337
|
}, props));
|
|
@@ -1352,12 +1353,12 @@ function isTrivialHref(href) {
|
|
|
1352
1353
|
*/
|
|
1353
1354
|
|
|
1354
1355
|
|
|
1355
|
-
var SafeAnchor =
|
|
1356
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1356
1357
|
var _ref$as = _ref.as,
|
|
1357
1358
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1358
1359
|
disabled = _ref.disabled,
|
|
1359
1360
|
onKeyDown = _ref.onKeyDown,
|
|
1360
|
-
props = _objectWithoutPropertiesLoose
|
|
1361
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1361
1362
|
|
|
1362
1363
|
var handleClick = function handleClick(event) {
|
|
1363
1364
|
var href = props.href,
|
|
@@ -1396,7 +1397,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1396
1397
|
props['aria-disabled'] = true;
|
|
1397
1398
|
}
|
|
1398
1399
|
|
|
1399
|
-
return /*#__PURE__*/
|
|
1400
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1400
1401
|
ref: ref
|
|
1401
1402
|
}, props, {
|
|
1402
1403
|
onClick: handleClick,
|
|
@@ -1405,20 +1406,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1405
1406
|
});
|
|
1406
1407
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1407
1408
|
|
|
1408
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1409
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1409
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1410
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1410
1411
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1411
|
-
Component: DivStyledAsH4
|
|
1412
|
+
Component: DivStyledAsH4$1
|
|
1412
1413
|
});
|
|
1413
1414
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1414
1415
|
Component: SafeAnchor
|
|
1415
1416
|
});
|
|
1416
|
-
var defaultProps$
|
|
1417
|
+
var defaultProps$B = {
|
|
1417
1418
|
show: true,
|
|
1418
1419
|
transition: Fade,
|
|
1419
1420
|
closeLabel: 'Close alert'
|
|
1420
1421
|
};
|
|
1421
|
-
var Alert =
|
|
1422
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1422
1423
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1423
1424
|
show: 'onClose'
|
|
1424
1425
|
}),
|
|
@@ -1431,7 +1432,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1431
1432
|
onClose = _useUncontrolled.onClose,
|
|
1432
1433
|
dismissible = _useUncontrolled.dismissible,
|
|
1433
1434
|
transition = _useUncontrolled.transition,
|
|
1434
|
-
props = _objectWithoutPropertiesLoose
|
|
1435
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1435
1436
|
|
|
1436
1437
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1437
1438
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1440,17 +1441,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1440
1441
|
}
|
|
1441
1442
|
});
|
|
1442
1443
|
var Transition = transition === true ? Fade : transition;
|
|
1443
|
-
var alert = /*#__PURE__*/
|
|
1444
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1444
1445
|
role: "alert"
|
|
1445
1446
|
}, Transition ? props : undefined, {
|
|
1446
1447
|
ref: ref,
|
|
1447
1448
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1448
|
-
}), dismissible && /*#__PURE__*/
|
|
1449
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1449
1450
|
onClick: handleClose,
|
|
1450
1451
|
label: closeLabel
|
|
1451
1452
|
}), children);
|
|
1452
1453
|
if (!Transition) return show ? alert : null;
|
|
1453
|
-
return /*#__PURE__*/
|
|
1454
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1454
1455
|
unmountOnExit: true
|
|
1455
1456
|
}, props, {
|
|
1456
1457
|
ref: undefined,
|
|
@@ -1458,37 +1459,37 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1458
1459
|
}), alert);
|
|
1459
1460
|
});
|
|
1460
1461
|
Alert.displayName = 'Alert';
|
|
1461
|
-
Alert.defaultProps = defaultProps$
|
|
1462
|
+
Alert.defaultProps = defaultProps$B;
|
|
1462
1463
|
Alert.Link = AlertLink;
|
|
1463
1464
|
Alert.Heading = AlertHeading;
|
|
1464
1465
|
|
|
1465
|
-
var defaultProps$
|
|
1466
|
+
var defaultProps$A = {
|
|
1466
1467
|
pill: false
|
|
1467
1468
|
};
|
|
1468
|
-
var Badge =
|
|
1469
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1469
1470
|
var bsPrefix = _ref.bsPrefix,
|
|
1470
1471
|
variant = _ref.variant,
|
|
1471
1472
|
pill = _ref.pill,
|
|
1472
1473
|
className = _ref.className,
|
|
1473
1474
|
_ref$as = _ref.as,
|
|
1474
1475
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1475
|
-
props = _objectWithoutPropertiesLoose
|
|
1476
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1476
1477
|
|
|
1477
1478
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1478
|
-
return /*#__PURE__*/
|
|
1479
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1479
1480
|
ref: ref
|
|
1480
1481
|
}, props, {
|
|
1481
1482
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1482
1483
|
}));
|
|
1483
1484
|
});
|
|
1484
1485
|
Badge.displayName = 'Badge';
|
|
1485
|
-
Badge.defaultProps = defaultProps$
|
|
1486
|
+
Badge.defaultProps = defaultProps$A;
|
|
1486
1487
|
|
|
1487
|
-
var defaultProps$
|
|
1488
|
+
var defaultProps$z = {
|
|
1488
1489
|
active: false,
|
|
1489
1490
|
linkProps: {}
|
|
1490
1491
|
};
|
|
1491
|
-
var BreadcrumbItem =
|
|
1492
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1492
1493
|
var bsPrefix = _ref.bsPrefix,
|
|
1493
1494
|
active = _ref.active,
|
|
1494
1495
|
children = _ref.children,
|
|
@@ -1501,30 +1502,30 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1501
1502
|
href = _ref.href,
|
|
1502
1503
|
title = _ref.title,
|
|
1503
1504
|
target = _ref.target,
|
|
1504
|
-
props = _objectWithoutPropertiesLoose
|
|
1505
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1505
1506
|
|
|
1506
1507
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1507
|
-
return /*#__PURE__*/
|
|
1508
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1508
1509
|
ref: ref
|
|
1509
1510
|
}, props, {
|
|
1510
1511
|
className: classnames(prefix, className, {
|
|
1511
1512
|
active: active
|
|
1512
1513
|
}),
|
|
1513
1514
|
"aria-current": active ? 'page' : undefined
|
|
1514
|
-
}), active ? children : /*#__PURE__*/
|
|
1515
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1515
1516
|
href: href,
|
|
1516
1517
|
title: title,
|
|
1517
1518
|
target: target
|
|
1518
1519
|
}), children));
|
|
1519
1520
|
});
|
|
1520
1521
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1521
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1522
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1522
1523
|
|
|
1523
|
-
var defaultProps$
|
|
1524
|
+
var defaultProps$y = {
|
|
1524
1525
|
label: 'breadcrumb',
|
|
1525
1526
|
listProps: {}
|
|
1526
1527
|
};
|
|
1527
|
-
var Breadcrumb =
|
|
1528
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1528
1529
|
var bsPrefix = _ref.bsPrefix,
|
|
1529
1530
|
className = _ref.className,
|
|
1530
1531
|
listProps = _ref.listProps,
|
|
@@ -1532,27 +1533,27 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1532
1533
|
label = _ref.label,
|
|
1533
1534
|
_ref$as = _ref.as,
|
|
1534
1535
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1535
|
-
props = _objectWithoutPropertiesLoose
|
|
1536
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1536
1537
|
|
|
1537
1538
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1538
|
-
return /*#__PURE__*/
|
|
1539
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1539
1540
|
"aria-label": label,
|
|
1540
1541
|
className: className,
|
|
1541
1542
|
ref: ref
|
|
1542
|
-
}, props), /*#__PURE__*/
|
|
1543
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1543
1544
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1544
1545
|
}), children));
|
|
1545
1546
|
});
|
|
1546
1547
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1547
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1548
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1548
1549
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1549
1550
|
|
|
1550
|
-
var defaultProps$
|
|
1551
|
+
var defaultProps$x = {
|
|
1551
1552
|
variant: 'primary',
|
|
1552
1553
|
active: false,
|
|
1553
1554
|
disabled: false
|
|
1554
1555
|
};
|
|
1555
|
-
var Button =
|
|
1556
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1556
1557
|
var bsPrefix = _ref.bsPrefix,
|
|
1557
1558
|
variant = _ref.variant,
|
|
1558
1559
|
size = _ref.size,
|
|
@@ -1561,13 +1562,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1561
1562
|
block = _ref.block,
|
|
1562
1563
|
type = _ref.type,
|
|
1563
1564
|
as = _ref.as,
|
|
1564
|
-
props = _objectWithoutPropertiesLoose
|
|
1565
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
1566
|
|
|
1566
1567
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1567
1568
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1568
1569
|
|
|
1569
1570
|
if (props.href) {
|
|
1570
|
-
return /*#__PURE__*/
|
|
1571
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1571
1572
|
as: as,
|
|
1572
1573
|
ref: ref,
|
|
1573
1574
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1585,19 +1586,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1585
1586
|
}
|
|
1586
1587
|
|
|
1587
1588
|
var Component = as || 'button';
|
|
1588
|
-
return /*#__PURE__*/
|
|
1589
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1589
1590
|
className: classes
|
|
1590
1591
|
}));
|
|
1591
1592
|
});
|
|
1592
1593
|
Button.displayName = 'Button';
|
|
1593
|
-
Button.defaultProps = defaultProps$
|
|
1594
|
+
Button.defaultProps = defaultProps$x;
|
|
1594
1595
|
|
|
1595
|
-
var defaultProps$
|
|
1596
|
+
var defaultProps$w = {
|
|
1596
1597
|
vertical: false,
|
|
1597
1598
|
toggle: false,
|
|
1598
1599
|
role: 'group'
|
|
1599
1600
|
};
|
|
1600
|
-
var ButtonGroup =
|
|
1601
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1601
1602
|
var bsPrefix = _ref.bsPrefix,
|
|
1602
1603
|
size = _ref.size,
|
|
1603
1604
|
toggle = _ref.toggle,
|
|
@@ -1605,59 +1606,59 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1605
1606
|
className = _ref.className,
|
|
1606
1607
|
_ref$as = _ref.as,
|
|
1607
1608
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1608
|
-
rest = _objectWithoutPropertiesLoose
|
|
1609
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1609
1610
|
|
|
1610
1611
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1611
1612
|
var baseClass = prefix;
|
|
1612
1613
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1613
|
-
return /*#__PURE__*/
|
|
1614
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1614
1615
|
ref: ref,
|
|
1615
1616
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1616
1617
|
}));
|
|
1617
1618
|
});
|
|
1618
1619
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1619
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1620
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1620
1621
|
|
|
1621
|
-
var defaultProps$
|
|
1622
|
+
var defaultProps$v = {
|
|
1622
1623
|
role: 'toolbar'
|
|
1623
1624
|
};
|
|
1624
|
-
var ButtonToolbar =
|
|
1625
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1625
1626
|
var bsPrefix = _ref.bsPrefix,
|
|
1626
1627
|
className = _ref.className,
|
|
1627
|
-
props = _objectWithoutPropertiesLoose
|
|
1628
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1628
1629
|
|
|
1629
1630
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1630
|
-
return /*#__PURE__*/
|
|
1631
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1631
1632
|
ref: ref,
|
|
1632
1633
|
className: classnames(className, prefix)
|
|
1633
1634
|
}));
|
|
1634
1635
|
});
|
|
1635
1636
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1636
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1637
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1637
1638
|
|
|
1638
|
-
var context$1 =
|
|
1639
|
+
var context$1 = React.createContext(null);
|
|
1639
1640
|
context$1.displayName = 'CardContext';
|
|
1640
1641
|
|
|
1641
|
-
var defaultProps$
|
|
1642
|
+
var defaultProps$u = {
|
|
1642
1643
|
variant: null
|
|
1643
1644
|
};
|
|
1644
|
-
var CardImg =
|
|
1645
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1645
1646
|
function (_ref, ref) {
|
|
1646
1647
|
var bsPrefix = _ref.bsPrefix,
|
|
1647
1648
|
className = _ref.className,
|
|
1648
1649
|
variant = _ref.variant,
|
|
1649
1650
|
_ref$as = _ref.as,
|
|
1650
1651
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1651
|
-
props = _objectWithoutPropertiesLoose
|
|
1652
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1652
1653
|
|
|
1653
1654
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1654
|
-
return /*#__PURE__*/
|
|
1655
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1655
1656
|
ref: ref,
|
|
1656
1657
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1657
1658
|
}, props));
|
|
1658
1659
|
});
|
|
1659
1660
|
CardImg.displayName = 'CardImg';
|
|
1660
|
-
CardImg.defaultProps = defaultProps$
|
|
1661
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1661
1662
|
|
|
1662
1663
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1663
1664
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1677,10 +1678,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1677
1678
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1678
1679
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1679
1680
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1680
|
-
var defaultProps$
|
|
1681
|
+
var defaultProps$t = {
|
|
1681
1682
|
body: false
|
|
1682
1683
|
};
|
|
1683
|
-
var Card =
|
|
1684
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1684
1685
|
var bsPrefix = _ref.bsPrefix,
|
|
1685
1686
|
className = _ref.className,
|
|
1686
1687
|
bg = _ref.bg,
|
|
@@ -1690,7 +1691,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1690
1691
|
children = _ref.children,
|
|
1691
1692
|
_ref$as = _ref.as,
|
|
1692
1693
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1693
|
-
props = _objectWithoutPropertiesLoose
|
|
1694
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1694
1695
|
|
|
1695
1696
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1696
1697
|
var cardContext = useMemo(function () {
|
|
@@ -1698,19 +1699,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1698
1699
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1699
1700
|
};
|
|
1700
1701
|
}, [prefix]);
|
|
1701
|
-
return /*#__PURE__*/
|
|
1702
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1702
1703
|
value: cardContext
|
|
1703
|
-
}, /*#__PURE__*/
|
|
1704
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1704
1705
|
ref: ref
|
|
1705
1706
|
}, props, {
|
|
1706
1707
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1707
1708
|
}), body ?
|
|
1708
1709
|
/*#__PURE__*/
|
|
1709
1710
|
// @ts-ignore
|
|
1710
|
-
|
|
1711
|
+
React.createElement(CardBody, null, children) : children));
|
|
1711
1712
|
});
|
|
1712
1713
|
Card.displayName = 'Card';
|
|
1713
|
-
Card.defaultProps = defaultProps$
|
|
1714
|
+
Card.defaultProps = defaultProps$t;
|
|
1714
1715
|
Card.Img = CardImg;
|
|
1715
1716
|
Card.Title = CardTitle;
|
|
1716
1717
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1897,16 +1898,16 @@ function useTimeout() {
|
|
|
1897
1898
|
|
|
1898
1899
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1899
1900
|
|
|
1900
|
-
var CarouselItem =
|
|
1901
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1901
1902
|
var _ref$as = _ref.as,
|
|
1902
1903
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1903
1904
|
bsPrefix = _ref.bsPrefix,
|
|
1904
1905
|
children = _ref.children,
|
|
1905
1906
|
className = _ref.className,
|
|
1906
|
-
props = _objectWithoutPropertiesLoose
|
|
1907
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
1908
|
|
|
1908
1909
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1909
|
-
return /*#__PURE__*/
|
|
1910
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1910
1911
|
ref: ref
|
|
1911
1912
|
}, props, {
|
|
1912
1913
|
className: finalClassName
|
|
@@ -1925,8 +1926,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1925
1926
|
|
|
1926
1927
|
function map(children, func) {
|
|
1927
1928
|
var index = 0;
|
|
1928
|
-
return
|
|
1929
|
-
return
|
|
1929
|
+
return React.Children.map(children, function (child) {
|
|
1930
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1930
1931
|
});
|
|
1931
1932
|
}
|
|
1932
1933
|
/**
|
|
@@ -1939,13 +1940,13 @@ function map(children, func) {
|
|
|
1939
1940
|
|
|
1940
1941
|
function forEach(children, func) {
|
|
1941
1942
|
var index = 0;
|
|
1942
|
-
|
|
1943
|
-
if (
|
|
1943
|
+
React.Children.forEach(children, function (child) {
|
|
1944
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1944
1945
|
});
|
|
1945
1946
|
}
|
|
1946
1947
|
|
|
1947
1948
|
var SWIPE_THRESHOLD = 40;
|
|
1948
|
-
var propTypes$
|
|
1949
|
+
var propTypes$9 = {
|
|
1949
1950
|
/**
|
|
1950
1951
|
* @default 'carousel'
|
|
1951
1952
|
*/
|
|
@@ -2047,7 +2048,7 @@ var propTypes$1 = {
|
|
|
2047
2048
|
*/
|
|
2048
2049
|
nextLabel: PropTypes.string
|
|
2049
2050
|
};
|
|
2050
|
-
var defaultProps$
|
|
2051
|
+
var defaultProps$s = {
|
|
2051
2052
|
slide: true,
|
|
2052
2053
|
fade: false,
|
|
2053
2054
|
controls: true,
|
|
@@ -2058,12 +2059,12 @@ var defaultProps$c = {
|
|
|
2058
2059
|
pause: 'hover',
|
|
2059
2060
|
wrap: true,
|
|
2060
2061
|
touch: true,
|
|
2061
|
-
prevIcon: /*#__PURE__*/
|
|
2062
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2062
2063
|
"aria-hidden": "true",
|
|
2063
2064
|
className: "carousel-control-prev-icon"
|
|
2064
2065
|
}),
|
|
2065
2066
|
prevLabel: 'Previous',
|
|
2066
|
-
nextIcon: /*#__PURE__*/
|
|
2067
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2067
2068
|
"aria-hidden": "true",
|
|
2068
2069
|
className: "carousel-control-next-icon"
|
|
2069
2070
|
}),
|
|
@@ -2111,7 +2112,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2111
2112
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2112
2113
|
className = _useUncontrolled.className,
|
|
2113
2114
|
children = _useUncontrolled.children,
|
|
2114
|
-
props = _objectWithoutPropertiesLoose
|
|
2115
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2115
2116
|
|
|
2116
2117
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2117
2118
|
var nextDirectionRef = useRef(null);
|
|
@@ -2368,7 +2369,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2368
2369
|
};
|
|
2369
2370
|
});
|
|
2370
2371
|
}, [indicators, numChildren, onSelect]);
|
|
2371
|
-
return /*#__PURE__*/
|
|
2372
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2372
2373
|
ref: elementRef
|
|
2373
2374
|
}, props, {
|
|
2374
2375
|
onKeyDown: handleKeyDown,
|
|
@@ -2378,63 +2379,63 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2378
2379
|
onTouchMove: handleTouchMove,
|
|
2379
2380
|
onTouchEnd: handleTouchEnd,
|
|
2380
2381
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2381
|
-
}), indicators && /*#__PURE__*/
|
|
2382
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2382
2383
|
className: prefix + "-indicators"
|
|
2383
2384
|
}, map(children, function (_child, index) {
|
|
2384
|
-
return /*#__PURE__*/
|
|
2385
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2385
2386
|
key: index,
|
|
2386
2387
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2387
2388
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2388
2389
|
});
|
|
2389
|
-
})), /*#__PURE__*/
|
|
2390
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2390
2391
|
className: prefix + "-inner"
|
|
2391
2392
|
}, map(children, function (child, index) {
|
|
2392
2393
|
var isActive = index === renderedActiveIndex;
|
|
2393
|
-
return slide ? /*#__PURE__*/
|
|
2394
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2394
2395
|
in: isActive,
|
|
2395
2396
|
onEnter: isActive ? handleEnter : undefined,
|
|
2396
2397
|
onEntered: isActive ? handleEntered : undefined,
|
|
2397
2398
|
addEndListener: transitionEnd
|
|
2398
2399
|
}, function (status) {
|
|
2399
|
-
return
|
|
2400
|
+
return React.cloneElement(child, {
|
|
2400
2401
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2401
2402
|
});
|
|
2402
|
-
}) :
|
|
2403
|
+
}) : React.cloneElement(child, {
|
|
2403
2404
|
className: classnames(child.props.className, isActive && 'active')
|
|
2404
2405
|
});
|
|
2405
|
-
})), controls && /*#__PURE__*/
|
|
2406
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2406
2407
|
className: prefix + "-control-prev",
|
|
2407
2408
|
onClick: prev
|
|
2408
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2409
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2409
2410
|
className: "sr-only"
|
|
2410
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2411
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2411
2412
|
className: prefix + "-control-next",
|
|
2412
2413
|
onClick: next
|
|
2413
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2414
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2414
2415
|
className: "sr-only"
|
|
2415
2416
|
}, nextLabel))));
|
|
2416
2417
|
}
|
|
2417
2418
|
|
|
2418
|
-
var Carousel =
|
|
2419
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2419
2420
|
Carousel.displayName = 'Carousel';
|
|
2420
|
-
Carousel.propTypes = propTypes$
|
|
2421
|
-
Carousel.defaultProps = defaultProps$
|
|
2421
|
+
Carousel.propTypes = propTypes$9;
|
|
2422
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2422
2423
|
Carousel.Caption = CarouselCaption;
|
|
2423
2424
|
Carousel.Item = CarouselItem;
|
|
2424
2425
|
|
|
2425
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2426
|
-
var Col =
|
|
2426
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2427
2428
|
function (_ref, ref) {
|
|
2428
2429
|
var bsPrefix = _ref.bsPrefix,
|
|
2429
2430
|
className = _ref.className,
|
|
2430
2431
|
_ref$as = _ref.as,
|
|
2431
2432
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2432
|
-
props = _objectWithoutPropertiesLoose
|
|
2433
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2433
2434
|
|
|
2434
2435
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2435
2436
|
var spans = [];
|
|
2436
2437
|
var classes = [];
|
|
2437
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2438
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2438
2439
|
var propValue = props[brkPoint];
|
|
2439
2440
|
delete props[brkPoint];
|
|
2440
2441
|
var span;
|
|
@@ -2460,7 +2461,7 @@ function (_ref, ref) {
|
|
|
2460
2461
|
spans.push(prefix); // plain 'col'
|
|
2461
2462
|
}
|
|
2462
2463
|
|
|
2463
|
-
return /*#__PURE__*/
|
|
2464
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2464
2465
|
ref: ref,
|
|
2465
2466
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2466
2467
|
}));
|
|
@@ -2569,40 +2570,7 @@ function useForceUpdate() {
|
|
|
2569
2570
|
return dispatch;
|
|
2570
2571
|
}
|
|
2571
2572
|
|
|
2572
|
-
var DropdownContext = /*#__PURE__*/
|
|
2573
|
-
|
|
2574
|
-
function _extends() {
|
|
2575
|
-
_extends = Object.assign || function (target) {
|
|
2576
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2577
|
-
var source = arguments[i];
|
|
2578
|
-
|
|
2579
|
-
for (var key in source) {
|
|
2580
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2581
|
-
target[key] = source[key];
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
return target;
|
|
2587
|
-
};
|
|
2588
|
-
|
|
2589
|
-
return _extends.apply(this, arguments);
|
|
2590
|
-
}
|
|
2591
|
-
|
|
2592
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2593
|
-
if (source == null) return {};
|
|
2594
|
-
var target = {};
|
|
2595
|
-
var sourceKeys = Object.keys(source);
|
|
2596
|
-
var key, i;
|
|
2597
|
-
|
|
2598
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2599
|
-
key = sourceKeys[i];
|
|
2600
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2601
|
-
target[key] = source[key];
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
return target;
|
|
2605
|
-
}
|
|
2573
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2606
2574
|
|
|
2607
2575
|
function useSafeState(state) {
|
|
2608
2576
|
var isMounted = useMounted();
|
|
@@ -2648,21 +2616,50 @@ function getBasePlacement(placement) {
|
|
|
2648
2616
|
return placement.split('-')[0];
|
|
2649
2617
|
}
|
|
2650
2618
|
|
|
2651
|
-
|
|
2619
|
+
function getBoundingClientRect(element) {
|
|
2620
|
+
var rect = element.getBoundingClientRect();
|
|
2621
|
+
return {
|
|
2622
|
+
width: rect.width,
|
|
2623
|
+
height: rect.height,
|
|
2624
|
+
top: rect.top,
|
|
2625
|
+
right: rect.right,
|
|
2626
|
+
bottom: rect.bottom,
|
|
2627
|
+
left: rect.left,
|
|
2628
|
+
x: rect.left,
|
|
2629
|
+
y: rect.top
|
|
2630
|
+
};
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2652
2633
|
// means it doesn't take into account transforms.
|
|
2634
|
+
|
|
2653
2635
|
function getLayoutRect(element) {
|
|
2636
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2637
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2638
|
+
|
|
2639
|
+
var width = element.offsetWidth;
|
|
2640
|
+
var height = element.offsetHeight;
|
|
2641
|
+
|
|
2642
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2643
|
+
width = clientRect.width;
|
|
2644
|
+
}
|
|
2645
|
+
|
|
2646
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2647
|
+
height = clientRect.height;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2654
2650
|
return {
|
|
2655
2651
|
x: element.offsetLeft,
|
|
2656
2652
|
y: element.offsetTop,
|
|
2657
|
-
width:
|
|
2658
|
-
height:
|
|
2653
|
+
width: width,
|
|
2654
|
+
height: height
|
|
2659
2655
|
};
|
|
2660
2656
|
}
|
|
2661
2657
|
|
|
2662
|
-
/*:: import type { Window } from '../types'; */
|
|
2663
|
-
|
|
2664
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2665
2658
|
function getWindow(node) {
|
|
2659
|
+
if (node == null) {
|
|
2660
|
+
return window;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2666
2663
|
if (node.toString() !== '[object Window]') {
|
|
2667
2664
|
var ownerDocument = node.ownerDocument;
|
|
2668
2665
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2671,31 +2668,27 @@ function getWindow(node) {
|
|
|
2671
2668
|
return node;
|
|
2672
2669
|
}
|
|
2673
2670
|
|
|
2674
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2675
|
-
Element); */
|
|
2676
|
-
|
|
2677
2671
|
function isElement(node) {
|
|
2678
2672
|
var OwnElement = getWindow(node).Element;
|
|
2679
2673
|
return node instanceof OwnElement || node instanceof Element;
|
|
2680
2674
|
}
|
|
2681
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2682
|
-
HTMLElement); */
|
|
2683
|
-
|
|
2684
2675
|
|
|
2685
2676
|
function isHTMLElement(node) {
|
|
2686
2677
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2687
2678
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2688
2679
|
}
|
|
2689
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2690
|
-
ShadowRoot); */
|
|
2691
|
-
|
|
2692
2680
|
|
|
2693
2681
|
function isShadowRoot(node) {
|
|
2682
|
+
// IE 11 has no ShadowRoot
|
|
2683
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2684
|
+
return false;
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2694
2687
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2695
2688
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2696
2689
|
}
|
|
2697
2690
|
|
|
2698
|
-
function contains(parent, child) {
|
|
2691
|
+
function contains$1(parent, child) {
|
|
2699
2692
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2700
2693
|
|
|
2701
2694
|
if (parent.contains(child)) {
|
|
@@ -2722,7 +2715,7 @@ function getNodeName(element) {
|
|
|
2722
2715
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2723
2716
|
}
|
|
2724
2717
|
|
|
2725
|
-
function getComputedStyle$
|
|
2718
|
+
function getComputedStyle$1(element) {
|
|
2726
2719
|
return getWindow(element).getComputedStyle(element);
|
|
2727
2720
|
}
|
|
2728
2721
|
|
|
@@ -2745,9 +2738,8 @@ function getParentNode(element) {
|
|
|
2745
2738
|
// $FlowFixMe[incompatible-return]
|
|
2746
2739
|
// $FlowFixMe[prop-missing]
|
|
2747
2740
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2748
|
-
element.parentNode || // DOM Element detected
|
|
2749
|
-
|
|
2750
|
-
element.host || // ShadowRoot detected
|
|
2741
|
+
element.parentNode || ( // DOM Element detected
|
|
2742
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2751
2743
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2752
2744
|
getDocumentElement(element) // fallback
|
|
2753
2745
|
|
|
@@ -2756,33 +2748,25 @@ function getParentNode(element) {
|
|
|
2756
2748
|
|
|
2757
2749
|
function getTrueOffsetParent(element) {
|
|
2758
2750
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2759
|
-
getComputedStyle$
|
|
2751
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2760
2752
|
return null;
|
|
2761
2753
|
}
|
|
2762
2754
|
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
if (offsetParent) {
|
|
2766
|
-
var html = getDocumentElement(offsetParent);
|
|
2767
|
-
|
|
2768
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2769
|
-
return html;
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
return offsetParent;
|
|
2755
|
+
return element.offsetParent;
|
|
2774
2756
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2775
2757
|
// return the containing block
|
|
2776
2758
|
|
|
2777
2759
|
|
|
2778
2760
|
function getContainingBlock(element) {
|
|
2761
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2779
2762
|
var currentNode = getParentNode(element);
|
|
2780
2763
|
|
|
2781
2764
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2782
|
-
var css = getComputedStyle$
|
|
2765
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2783
2766
|
// create a containing block.
|
|
2767
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2784
2768
|
|
|
2785
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2769
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2786
2770
|
return currentNode;
|
|
2787
2771
|
} else {
|
|
2788
2772
|
currentNode = currentNode.parentNode;
|
|
@@ -2798,11 +2782,11 @@ function getOffsetParent(element) {
|
|
|
2798
2782
|
var window = getWindow(element);
|
|
2799
2783
|
var offsetParent = getTrueOffsetParent(element);
|
|
2800
2784
|
|
|
2801
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2785
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2802
2786
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2803
2787
|
}
|
|
2804
2788
|
|
|
2805
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2789
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2806
2790
|
return window;
|
|
2807
2791
|
}
|
|
2808
2792
|
|
|
@@ -2813,8 +2797,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2813
2797
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2814
2798
|
}
|
|
2815
2799
|
|
|
2816
|
-
|
|
2817
|
-
|
|
2800
|
+
var max = Math.max;
|
|
2801
|
+
var min = Math.min;
|
|
2802
|
+
var round = Math.round;
|
|
2803
|
+
|
|
2804
|
+
function within(min$1, value, max$1) {
|
|
2805
|
+
return max(min$1, min(value, max$1));
|
|
2818
2806
|
}
|
|
2819
2807
|
|
|
2820
2808
|
function getFreshSideObject() {
|
|
@@ -2827,7 +2815,7 @@ function getFreshSideObject() {
|
|
|
2827
2815
|
}
|
|
2828
2816
|
|
|
2829
2817
|
function mergePaddingObject(paddingObject) {
|
|
2830
|
-
return Object.assign(
|
|
2818
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2831
2819
|
}
|
|
2832
2820
|
|
|
2833
2821
|
function expandToHashMap(value, keys) {
|
|
@@ -2837,11 +2825,19 @@ function expandToHashMap(value, keys) {
|
|
|
2837
2825
|
}, {});
|
|
2838
2826
|
}
|
|
2839
2827
|
|
|
2828
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2829
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2830
|
+
placement: state.placement
|
|
2831
|
+
})) : padding;
|
|
2832
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2840
2835
|
function arrow(_ref) {
|
|
2841
2836
|
var _state$modifiersData$;
|
|
2842
2837
|
|
|
2843
2838
|
var state = _ref.state,
|
|
2844
|
-
name = _ref.name
|
|
2839
|
+
name = _ref.name,
|
|
2840
|
+
options = _ref.options;
|
|
2845
2841
|
var arrowElement = state.elements.arrow;
|
|
2846
2842
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2847
2843
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2853,7 +2849,7 @@ function arrow(_ref) {
|
|
|
2853
2849
|
return;
|
|
2854
2850
|
}
|
|
2855
2851
|
|
|
2856
|
-
var paddingObject =
|
|
2852
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2857
2853
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2858
2854
|
var minProp = axis === 'y' ? top : left;
|
|
2859
2855
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2873,14 +2869,11 @@ function arrow(_ref) {
|
|
|
2873
2869
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2874
2870
|
}
|
|
2875
2871
|
|
|
2876
|
-
function effect(_ref2) {
|
|
2872
|
+
function effect$1(_ref2) {
|
|
2877
2873
|
var state = _ref2.state,
|
|
2878
|
-
options = _ref2.options
|
|
2879
|
-
name = _ref2.name;
|
|
2874
|
+
options = _ref2.options;
|
|
2880
2875
|
var _options$element = options.element,
|
|
2881
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2882
|
-
_options$padding = options.padding,
|
|
2883
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2876
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2884
2877
|
|
|
2885
2878
|
if (arrowElement == null) {
|
|
2886
2879
|
return;
|
|
@@ -2901,7 +2894,7 @@ function effect(_ref2) {
|
|
|
2901
2894
|
}
|
|
2902
2895
|
}
|
|
2903
2896
|
|
|
2904
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2897
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2905
2898
|
if (process.env.NODE_ENV !== "production") {
|
|
2906
2899
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2907
2900
|
}
|
|
@@ -2910,9 +2903,6 @@ function effect(_ref2) {
|
|
|
2910
2903
|
}
|
|
2911
2904
|
|
|
2912
2905
|
state.elements.arrow = arrowElement;
|
|
2913
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2914
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2915
|
-
};
|
|
2916
2906
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2917
2907
|
|
|
2918
2908
|
|
|
@@ -2921,7 +2911,7 @@ var arrow$1 = {
|
|
|
2921
2911
|
enabled: true,
|
|
2922
2912
|
phase: 'main',
|
|
2923
2913
|
fn: arrow,
|
|
2924
|
-
effect: effect,
|
|
2914
|
+
effect: effect$1,
|
|
2925
2915
|
requires: ['popperOffsets'],
|
|
2926
2916
|
requiresIfExists: ['preventOverflow']
|
|
2927
2917
|
};
|
|
@@ -2941,8 +2931,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2941
2931
|
var win = window;
|
|
2942
2932
|
var dpr = win.devicePixelRatio || 1;
|
|
2943
2933
|
return {
|
|
2944
|
-
x:
|
|
2945
|
-
y:
|
|
2934
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2935
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2946
2936
|
};
|
|
2947
2937
|
}
|
|
2948
2938
|
|
|
@@ -2958,7 +2948,7 @@ function mapToStyles(_ref2) {
|
|
|
2958
2948
|
adaptive = _ref2.adaptive,
|
|
2959
2949
|
roundOffsets = _ref2.roundOffsets;
|
|
2960
2950
|
|
|
2961
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2951
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2962
2952
|
_ref3$x = _ref3.x,
|
|
2963
2953
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2964
2954
|
_ref3$y = _ref3.y,
|
|
@@ -2972,23 +2962,32 @@ function mapToStyles(_ref2) {
|
|
|
2972
2962
|
|
|
2973
2963
|
if (adaptive) {
|
|
2974
2964
|
var offsetParent = getOffsetParent(popper);
|
|
2965
|
+
var heightProp = 'clientHeight';
|
|
2966
|
+
var widthProp = 'clientWidth';
|
|
2975
2967
|
|
|
2976
2968
|
if (offsetParent === getWindow(popper)) {
|
|
2977
2969
|
offsetParent = getDocumentElement(popper);
|
|
2970
|
+
|
|
2971
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
2972
|
+
heightProp = 'scrollHeight';
|
|
2973
|
+
widthProp = 'scrollWidth';
|
|
2974
|
+
}
|
|
2978
2975
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2979
2976
|
|
|
2980
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2981
2977
|
|
|
2978
|
+
offsetParent = offsetParent;
|
|
2982
2979
|
|
|
2983
2980
|
if (placement === top) {
|
|
2984
|
-
sideY = bottom;
|
|
2985
|
-
|
|
2981
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2982
|
+
|
|
2983
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2986
2984
|
y *= gpuAcceleration ? 1 : -1;
|
|
2987
2985
|
}
|
|
2988
2986
|
|
|
2989
2987
|
if (placement === left) {
|
|
2990
|
-
sideX = right;
|
|
2991
|
-
|
|
2988
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
2989
|
+
|
|
2990
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2992
2991
|
x *= gpuAcceleration ? 1 : -1;
|
|
2993
2992
|
}
|
|
2994
2993
|
}
|
|
@@ -3000,10 +2999,10 @@ function mapToStyles(_ref2) {
|
|
|
3000
2999
|
if (gpuAcceleration) {
|
|
3001
3000
|
var _Object$assign;
|
|
3002
3001
|
|
|
3003
|
-
return Object.assign(
|
|
3002
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3004
3003
|
}
|
|
3005
3004
|
|
|
3006
|
-
return Object.assign(
|
|
3005
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3007
3006
|
}
|
|
3008
3007
|
|
|
3009
3008
|
function computeStyles(_ref4) {
|
|
@@ -3017,7 +3016,7 @@ function computeStyles(_ref4) {
|
|
|
3017
3016
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3018
3017
|
|
|
3019
3018
|
if (process.env.NODE_ENV !== "production") {
|
|
3020
|
-
var transitionProperty = getComputedStyle$
|
|
3019
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3021
3020
|
|
|
3022
3021
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3023
3022
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3034,7 +3033,7 @@ function computeStyles(_ref4) {
|
|
|
3034
3033
|
};
|
|
3035
3034
|
|
|
3036
3035
|
if (state.modifiersData.popperOffsets != null) {
|
|
3037
|
-
state.styles.popper = Object.assign(
|
|
3036
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3038
3037
|
offsets: state.modifiersData.popperOffsets,
|
|
3039
3038
|
position: state.options.strategy,
|
|
3040
3039
|
adaptive: adaptive,
|
|
@@ -3043,7 +3042,7 @@ function computeStyles(_ref4) {
|
|
|
3043
3042
|
}
|
|
3044
3043
|
|
|
3045
3044
|
if (state.modifiersData.arrow != null) {
|
|
3046
|
-
state.styles.arrow = Object.assign(
|
|
3045
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3047
3046
|
offsets: state.modifiersData.arrow,
|
|
3048
3047
|
position: 'absolute',
|
|
3049
3048
|
adaptive: false,
|
|
@@ -3051,7 +3050,7 @@ function computeStyles(_ref4) {
|
|
|
3051
3050
|
})));
|
|
3052
3051
|
}
|
|
3053
3052
|
|
|
3054
|
-
state.attributes.popper = Object.assign(
|
|
3053
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3055
3054
|
'data-popper-placement': state.placement
|
|
3056
3055
|
});
|
|
3057
3056
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3069,7 +3068,7 @@ var passive = {
|
|
|
3069
3068
|
passive: true
|
|
3070
3069
|
};
|
|
3071
3070
|
|
|
3072
|
-
function effect
|
|
3071
|
+
function effect(_ref) {
|
|
3073
3072
|
var state = _ref.state,
|
|
3074
3073
|
instance = _ref.instance,
|
|
3075
3074
|
options = _ref.options;
|
|
@@ -3109,11 +3108,11 @@ var eventListeners = {
|
|
|
3109
3108
|
enabled: true,
|
|
3110
3109
|
phase: 'write',
|
|
3111
3110
|
fn: function fn() {},
|
|
3112
|
-
effect: effect
|
|
3111
|
+
effect: effect,
|
|
3113
3112
|
data: {}
|
|
3114
3113
|
};
|
|
3115
3114
|
|
|
3116
|
-
var hash = {
|
|
3115
|
+
var hash$1 = {
|
|
3117
3116
|
left: 'right',
|
|
3118
3117
|
right: 'left',
|
|
3119
3118
|
bottom: 'top',
|
|
@@ -3121,34 +3120,20 @@ var hash = {
|
|
|
3121
3120
|
};
|
|
3122
3121
|
function getOppositePlacement(placement) {
|
|
3123
3122
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3124
|
-
return hash[matched];
|
|
3123
|
+
return hash$1[matched];
|
|
3125
3124
|
});
|
|
3126
3125
|
}
|
|
3127
3126
|
|
|
3128
|
-
var hash
|
|
3127
|
+
var hash = {
|
|
3129
3128
|
start: 'end',
|
|
3130
3129
|
end: 'start'
|
|
3131
3130
|
};
|
|
3132
3131
|
function getOppositeVariationPlacement(placement) {
|
|
3133
3132
|
return placement.replace(/start|end/g, function (matched) {
|
|
3134
|
-
return hash
|
|
3133
|
+
return hash[matched];
|
|
3135
3134
|
});
|
|
3136
3135
|
}
|
|
3137
3136
|
|
|
3138
|
-
function getBoundingClientRect(element) {
|
|
3139
|
-
var rect = element.getBoundingClientRect();
|
|
3140
|
-
return {
|
|
3141
|
-
width: rect.width,
|
|
3142
|
-
height: rect.height,
|
|
3143
|
-
top: rect.top,
|
|
3144
|
-
right: rect.right,
|
|
3145
|
-
bottom: rect.bottom,
|
|
3146
|
-
left: rect.left,
|
|
3147
|
-
x: rect.left,
|
|
3148
|
-
y: rect.top
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
3137
|
function getWindowScroll(node) {
|
|
3153
3138
|
var win = getWindow(node);
|
|
3154
3139
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3211,16 +3196,18 @@ function getViewportRect(element) {
|
|
|
3211
3196
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3212
3197
|
|
|
3213
3198
|
function getDocumentRect(element) {
|
|
3199
|
+
var _element$ownerDocumen;
|
|
3200
|
+
|
|
3214
3201
|
var html = getDocumentElement(element);
|
|
3215
3202
|
var winScroll = getWindowScroll(element);
|
|
3216
|
-
var body = element.ownerDocument.body;
|
|
3217
|
-
var width =
|
|
3218
|
-
var height =
|
|
3203
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3204
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3205
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3219
3206
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3220
3207
|
var y = -winScroll.scrollTop;
|
|
3221
3208
|
|
|
3222
|
-
if (getComputedStyle$
|
|
3223
|
-
x +=
|
|
3209
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3210
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3224
3211
|
}
|
|
3225
3212
|
|
|
3226
3213
|
return {
|
|
@@ -3233,7 +3220,7 @@ function getDocumentRect(element) {
|
|
|
3233
3220
|
|
|
3234
3221
|
function isScrollParent(element) {
|
|
3235
3222
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3236
|
-
var _getComputedStyle = getComputedStyle$
|
|
3223
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3237
3224
|
overflow = _getComputedStyle.overflow,
|
|
3238
3225
|
overflowX = _getComputedStyle.overflowX,
|
|
3239
3226
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3262,12 +3249,14 @@ reference element's position.
|
|
|
3262
3249
|
*/
|
|
3263
3250
|
|
|
3264
3251
|
function listScrollParents(element, list) {
|
|
3252
|
+
var _element$ownerDocumen;
|
|
3253
|
+
|
|
3265
3254
|
if (list === void 0) {
|
|
3266
3255
|
list = [];
|
|
3267
3256
|
}
|
|
3268
3257
|
|
|
3269
3258
|
var scrollParent = getScrollParent(element);
|
|
3270
|
-
var isBody =
|
|
3259
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3271
3260
|
var win = getWindow(scrollParent);
|
|
3272
3261
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3273
3262
|
var updatedList = list.concat(target);
|
|
@@ -3276,7 +3265,7 @@ function listScrollParents(element, list) {
|
|
|
3276
3265
|
}
|
|
3277
3266
|
|
|
3278
3267
|
function rectToClientRect(rect) {
|
|
3279
|
-
return Object.assign(
|
|
3268
|
+
return Object.assign({}, rect, {
|
|
3280
3269
|
left: rect.x,
|
|
3281
3270
|
top: rect.y,
|
|
3282
3271
|
right: rect.x + rect.width,
|
|
@@ -3306,7 +3295,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3306
3295
|
|
|
3307
3296
|
function getClippingParents(element) {
|
|
3308
3297
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3309
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3298
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3310
3299
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3311
3300
|
|
|
3312
3301
|
if (!isElement(clipperElement)) {
|
|
@@ -3315,7 +3304,7 @@ function getClippingParents(element) {
|
|
|
3315
3304
|
|
|
3316
3305
|
|
|
3317
3306
|
return clippingParents.filter(function (clippingParent) {
|
|
3318
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3307
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3319
3308
|
});
|
|
3320
3309
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3321
3310
|
// clipping parents
|
|
@@ -3327,10 +3316,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3327
3316
|
var firstClippingParent = clippingParents[0];
|
|
3328
3317
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3329
3318
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3330
|
-
accRect.top =
|
|
3331
|
-
accRect.right =
|
|
3332
|
-
accRect.bottom =
|
|
3333
|
-
accRect.left =
|
|
3319
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3320
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3321
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3322
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3334
3323
|
return accRect;
|
|
3335
3324
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3336
3325
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3440,7 +3429,7 @@ function detectOverflow(state, options) {
|
|
|
3440
3429
|
strategy: 'absolute',
|
|
3441
3430
|
placement: placement
|
|
3442
3431
|
});
|
|
3443
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3432
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3444
3433
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3445
3434
|
// 0 or negative = within the clipping rect
|
|
3446
3435
|
|
|
@@ -3464,9 +3453,6 @@ function detectOverflow(state, options) {
|
|
|
3464
3453
|
return overflowOffsets;
|
|
3465
3454
|
}
|
|
3466
3455
|
|
|
3467
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3468
|
-
|
|
3469
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3470
3456
|
function computeAutoPlacement(state, options) {
|
|
3471
3457
|
if (options === void 0) {
|
|
3472
3458
|
options = {};
|
|
@@ -3695,7 +3681,7 @@ function hide(_ref) {
|
|
|
3695
3681
|
isReferenceHidden: isReferenceHidden,
|
|
3696
3682
|
hasPopperEscaped: hasPopperEscaped
|
|
3697
3683
|
};
|
|
3698
|
-
state.attributes.popper = Object.assign(
|
|
3684
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3699
3685
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3700
3686
|
'data-popper-escaped': hasPopperEscaped
|
|
3701
3687
|
});
|
|
@@ -3714,7 +3700,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3714
3700
|
var basePlacement = getBasePlacement(placement);
|
|
3715
3701
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3716
3702
|
|
|
3717
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3703
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3718
3704
|
placement: placement
|
|
3719
3705
|
})) : offset,
|
|
3720
3706
|
skidding = _ref[0],
|
|
@@ -3820,7 +3806,7 @@ function preventOverflow(_ref) {
|
|
|
3820
3806
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3821
3807
|
var referenceRect = state.rects.reference;
|
|
3822
3808
|
var popperRect = state.rects.popper;
|
|
3823
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3809
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3824
3810
|
placement: state.placement
|
|
3825
3811
|
})) : tetherOffset;
|
|
3826
3812
|
var data = {
|
|
@@ -3832,13 +3818,13 @@ function preventOverflow(_ref) {
|
|
|
3832
3818
|
return;
|
|
3833
3819
|
}
|
|
3834
3820
|
|
|
3835
|
-
if (checkMainAxis) {
|
|
3821
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3836
3822
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3837
3823
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3838
3824
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3839
3825
|
var offset = popperOffsets[mainAxis];
|
|
3840
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3841
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3826
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3827
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3842
3828
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3843
3829
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3844
3830
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3865,26 +3851,29 @@ function preventOverflow(_ref) {
|
|
|
3865
3851
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3866
3852
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3867
3853
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3868
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3869
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3870
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3871
|
-
}
|
|
3872
3854
|
|
|
3873
|
-
|
|
3874
|
-
|
|
3855
|
+
if (checkMainAxis) {
|
|
3856
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3857
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3858
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
if (checkAltAxis) {
|
|
3862
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3875
3863
|
|
|
3876
|
-
|
|
3864
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3877
3865
|
|
|
3878
|
-
|
|
3866
|
+
var _offset = popperOffsets[altAxis];
|
|
3879
3867
|
|
|
3880
|
-
|
|
3868
|
+
var _min = _offset + overflow[_mainSide];
|
|
3881
3869
|
|
|
3882
|
-
|
|
3870
|
+
var _max = _offset - overflow[_altSide];
|
|
3883
3871
|
|
|
3884
|
-
|
|
3872
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3885
3873
|
|
|
3886
|
-
|
|
3887
|
-
|
|
3874
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3875
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3876
|
+
}
|
|
3888
3877
|
}
|
|
3889
3878
|
|
|
3890
3879
|
state.modifiersData[name] = data;
|
|
@@ -4115,9 +4104,9 @@ function uniqueBy(arr, fn) {
|
|
|
4115
4104
|
function mergeByName(modifiers) {
|
|
4116
4105
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4117
4106
|
var existing = merged[current.name];
|
|
4118
|
-
merged[current.name] = existing ? Object.assign(
|
|
4119
|
-
options: Object.assign(
|
|
4120
|
-
data: Object.assign(
|
|
4107
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4108
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4109
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4121
4110
|
}) : current;
|
|
4122
4111
|
return merged;
|
|
4123
4112
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4163,7 +4152,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4163
4152
|
var state = {
|
|
4164
4153
|
placement: 'bottom',
|
|
4165
4154
|
orderedModifiers: [],
|
|
4166
|
-
options: Object.assign(
|
|
4155
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4167
4156
|
modifiersData: {},
|
|
4168
4157
|
elements: {
|
|
4169
4158
|
reference: reference,
|
|
@@ -4178,7 +4167,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4178
4167
|
state: state,
|
|
4179
4168
|
setOptions: function setOptions(options) {
|
|
4180
4169
|
cleanupModifierEffects();
|
|
4181
|
-
state.options = Object.assign(
|
|
4170
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4182
4171
|
state.scrollParents = {
|
|
4183
4172
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4184
4173
|
popper: listScrollParents(popper)
|
|
@@ -4210,7 +4199,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4210
4199
|
}
|
|
4211
4200
|
}
|
|
4212
4201
|
|
|
4213
|
-
var _getComputedStyle = getComputedStyle$
|
|
4202
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4214
4203
|
marginTop = _getComputedStyle.marginTop,
|
|
4215
4204
|
marginRight = _getComputedStyle.marginRight,
|
|
4216
4205
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4550,7 +4539,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4550
4539
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4551
4540
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4552
4541
|
// so we need to check on context instead of a document root element.
|
|
4553
|
-
function contains
|
|
4542
|
+
function contains(context, node) {
|
|
4554
4543
|
if (context.contains) return context.contains(node);
|
|
4555
4544
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4556
4545
|
}
|
|
@@ -4624,13 +4613,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4624
4613
|
return componentOrElement != null ? componentOrElement : null;
|
|
4625
4614
|
}
|
|
4626
4615
|
|
|
4627
|
-
var ownerDocument
|
|
4628
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4616
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4617
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4629
4618
|
});
|
|
4630
4619
|
|
|
4631
4620
|
var escapeKeyCode = 27;
|
|
4632
4621
|
|
|
4633
|
-
var noop$
|
|
4622
|
+
var noop$4 = function noop() {};
|
|
4634
4623
|
|
|
4635
4624
|
function isLeftClickEvent(event) {
|
|
4636
4625
|
return event.button === 0;
|
|
@@ -4663,11 +4652,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4663
4652
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4664
4653
|
|
|
4665
4654
|
var preventMouseRootCloseRef = useRef(false);
|
|
4666
|
-
var onClose = onRootClose || noop$
|
|
4655
|
+
var onClose = onRootClose || noop$4;
|
|
4667
4656
|
var handleMouseCapture = useCallback(function (e) {
|
|
4668
4657
|
var currentTarget = getRefTarget(ref);
|
|
4669
4658
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4670
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4659
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4671
4660
|
}, [ref]);
|
|
4672
4661
|
var handleMouse = useEventCallback(function (e) {
|
|
4673
4662
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4684,7 +4673,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4684
4673
|
// https://github.com/facebook/react/issues/20074
|
|
4685
4674
|
|
|
4686
4675
|
var currentEvent = window.event;
|
|
4687
|
-
var doc = ownerDocument
|
|
4676
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4688
4677
|
// avoid false positives in the contains() check below if the target DOM
|
|
4689
4678
|
// element is removed in the React mouse callback.
|
|
4690
4679
|
|
|
@@ -4711,7 +4700,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4711
4700
|
|
|
4712
4701
|
if ('ontouchstart' in doc.documentElement) {
|
|
4713
4702
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4714
|
-
return listen(el, 'mousemove', noop$
|
|
4703
|
+
return listen(el, 'mousemove', noop$4);
|
|
4715
4704
|
});
|
|
4716
4705
|
}
|
|
4717
4706
|
|
|
@@ -4793,7 +4782,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4793
4782
|
});
|
|
4794
4783
|
}
|
|
4795
4784
|
|
|
4796
|
-
var noop$
|
|
4785
|
+
var noop$3 = function noop() {};
|
|
4797
4786
|
/**
|
|
4798
4787
|
* @memberOf Dropdown
|
|
4799
4788
|
* @param {object} options
|
|
@@ -4861,7 +4850,7 @@ function useDropdownMenu(options) {
|
|
|
4861
4850
|
|
|
4862
4851
|
var menu;
|
|
4863
4852
|
var menuProps = {
|
|
4864
|
-
ref: setMenu || noop$
|
|
4853
|
+
ref: setMenu || noop$3,
|
|
4865
4854
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4866
4855
|
};
|
|
4867
4856
|
var childArgs = {
|
|
@@ -4894,7 +4883,7 @@ function useDropdownMenu(options) {
|
|
|
4894
4883
|
});
|
|
4895
4884
|
return menu;
|
|
4896
4885
|
}
|
|
4897
|
-
var propTypes$
|
|
4886
|
+
var propTypes$8 = {
|
|
4898
4887
|
/**
|
|
4899
4888
|
* A render prop that returns a Menu element. The `props`
|
|
4900
4889
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4951,7 +4940,7 @@ var propTypes$2 = {
|
|
|
4951
4940
|
*/
|
|
4952
4941
|
rootCloseEvent: PropTypes.string
|
|
4953
4942
|
};
|
|
4954
|
-
var defaultProps$
|
|
4943
|
+
var defaultProps$r = {
|
|
4955
4944
|
usePopper: true
|
|
4956
4945
|
};
|
|
4957
4946
|
|
|
@@ -4961,19 +4950,19 @@ var defaultProps$d = {
|
|
|
4961
4950
|
* @displayName DropdownMenu
|
|
4962
4951
|
* @memberOf Dropdown
|
|
4963
4952
|
*/
|
|
4964
|
-
function DropdownMenu(_ref2) {
|
|
4953
|
+
function DropdownMenu$1(_ref2) {
|
|
4965
4954
|
var children = _ref2.children,
|
|
4966
4955
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4967
4956
|
|
|
4968
4957
|
var args = useDropdownMenu(options);
|
|
4969
|
-
return /*#__PURE__*/
|
|
4958
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4970
4959
|
}
|
|
4971
4960
|
|
|
4972
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4973
|
-
DropdownMenu.propTypes = propTypes$
|
|
4974
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
4961
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
4962
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
4963
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4975
4964
|
|
|
4976
|
-
var noop$
|
|
4965
|
+
var noop$2 = function noop() {};
|
|
4977
4966
|
/**
|
|
4978
4967
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4979
4968
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4987,11 +4976,11 @@ function useDropdownToggle() {
|
|
|
4987
4976
|
_ref$show = _ref.show,
|
|
4988
4977
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4989
4978
|
_ref$toggle = _ref.toggle,
|
|
4990
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4979
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4991
4980
|
setToggle = _ref.setToggle;
|
|
4992
4981
|
|
|
4993
4982
|
return [{
|
|
4994
|
-
ref: setToggle || noop$
|
|
4983
|
+
ref: setToggle || noop$2,
|
|
4995
4984
|
'aria-haspopup': true,
|
|
4996
4985
|
'aria-expanded': !!show
|
|
4997
4986
|
}, {
|
|
@@ -4999,7 +4988,7 @@ function useDropdownToggle() {
|
|
|
4999
4988
|
toggle: toggle
|
|
5000
4989
|
}];
|
|
5001
4990
|
}
|
|
5002
|
-
var propTypes$
|
|
4991
|
+
var propTypes$7 = {
|
|
5003
4992
|
/**
|
|
5004
4993
|
* A render prop that returns a Toggle element. The `props`
|
|
5005
4994
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5024,7 +5013,7 @@ var propTypes$3 = {
|
|
|
5024
5013
|
* @displayName DropdownToggle
|
|
5025
5014
|
* @memberOf Dropdown
|
|
5026
5015
|
*/
|
|
5027
|
-
function DropdownToggle(_ref2) {
|
|
5016
|
+
function DropdownToggle$1(_ref2) {
|
|
5028
5017
|
var children = _ref2.children;
|
|
5029
5018
|
|
|
5030
5019
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5033,17 +5022,17 @@ function DropdownToggle(_ref2) {
|
|
|
5033
5022
|
show = _useDropdownToggle$.show,
|
|
5034
5023
|
toggle = _useDropdownToggle$.toggle;
|
|
5035
5024
|
|
|
5036
|
-
return /*#__PURE__*/
|
|
5025
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5037
5026
|
show: show,
|
|
5038
5027
|
toggle: toggle,
|
|
5039
5028
|
props: props
|
|
5040
5029
|
}));
|
|
5041
5030
|
}
|
|
5042
5031
|
|
|
5043
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5044
|
-
DropdownToggle.propTypes = propTypes$
|
|
5032
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5033
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5045
5034
|
|
|
5046
|
-
var propTypes$
|
|
5035
|
+
var propTypes$6 = {
|
|
5047
5036
|
/**
|
|
5048
5037
|
* A render prop that returns the root dropdown element. The `props`
|
|
5049
5038
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5115,7 +5104,7 @@ var propTypes$4 = {
|
|
|
5115
5104
|
/**
|
|
5116
5105
|
* @displayName Dropdown
|
|
5117
5106
|
*/
|
|
5118
|
-
function Dropdown(_ref) {
|
|
5107
|
+
function Dropdown$1(_ref) {
|
|
5119
5108
|
var drop = _ref.drop,
|
|
5120
5109
|
alignEnd = _ref.alignEnd,
|
|
5121
5110
|
defaultShow = _ref.defaultShow,
|
|
@@ -5248,7 +5237,7 @@ function Dropdown(_ref) {
|
|
|
5248
5237
|
}
|
|
5249
5238
|
};
|
|
5250
5239
|
|
|
5251
|
-
return /*#__PURE__*/
|
|
5240
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5252
5241
|
value: context
|
|
5253
5242
|
}, children({
|
|
5254
5243
|
props: {
|
|
@@ -5257,19 +5246,19 @@ function Dropdown(_ref) {
|
|
|
5257
5246
|
}));
|
|
5258
5247
|
}
|
|
5259
5248
|
|
|
5260
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5261
|
-
Dropdown.propTypes = propTypes$
|
|
5262
|
-
Dropdown.Menu = DropdownMenu;
|
|
5263
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5249
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5250
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5251
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5252
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5264
5253
|
|
|
5265
|
-
var NavContext =
|
|
5254
|
+
var NavContext = React.createContext(null);
|
|
5266
5255
|
NavContext.displayName = 'NavContext';
|
|
5267
5256
|
|
|
5268
|
-
var defaultProps$
|
|
5257
|
+
var defaultProps$q = {
|
|
5269
5258
|
as: SafeAnchor,
|
|
5270
5259
|
disabled: false
|
|
5271
5260
|
};
|
|
5272
|
-
var DropdownItem =
|
|
5261
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5273
5262
|
var bsPrefix = _ref.bsPrefix,
|
|
5274
5263
|
className = _ref.className,
|
|
5275
5264
|
children = _ref.children,
|
|
@@ -5280,7 +5269,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5280
5269
|
onSelect = _ref.onSelect,
|
|
5281
5270
|
propActive = _ref.active,
|
|
5282
5271
|
Component = _ref.as,
|
|
5283
|
-
props = _objectWithoutPropertiesLoose
|
|
5272
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5284
5273
|
|
|
5285
5274
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5286
5275
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5304,7 +5293,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5304
5293
|
/*#__PURE__*/
|
|
5305
5294
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5306
5295
|
// @ts-ignore
|
|
5307
|
-
|
|
5296
|
+
React.createElement(Component, _extends({}, props, {
|
|
5308
5297
|
ref: ref,
|
|
5309
5298
|
href: href,
|
|
5310
5299
|
disabled: disabled,
|
|
@@ -5314,7 +5303,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5314
5303
|
);
|
|
5315
5304
|
});
|
|
5316
5305
|
DropdownItem.displayName = 'DropdownItem';
|
|
5317
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5306
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5318
5307
|
|
|
5319
5308
|
var toFnRef = function toFnRef(ref) {
|
|
5320
5309
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5353,8 +5342,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5353
5342
|
}, [refA, refB]);
|
|
5354
5343
|
}
|
|
5355
5344
|
|
|
5356
|
-
var context
|
|
5357
|
-
context
|
|
5345
|
+
var context = React.createContext(null);
|
|
5346
|
+
context.displayName = 'NavbarContext';
|
|
5358
5347
|
|
|
5359
5348
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5360
5349
|
// @ts-ignore
|
|
@@ -5475,13 +5464,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5475
5464
|
}), PropTypes.shape({
|
|
5476
5465
|
xl: alignDirection
|
|
5477
5466
|
})]);
|
|
5478
|
-
var defaultProps$
|
|
5467
|
+
var defaultProps$p = {
|
|
5479
5468
|
align: 'left',
|
|
5480
5469
|
alignRight: false,
|
|
5481
5470
|
flip: true
|
|
5482
5471
|
}; // TODO: remove this hack
|
|
5483
5472
|
|
|
5484
|
-
var DropdownMenu
|
|
5473
|
+
var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
5485
5474
|
var bsPrefix = _ref.bsPrefix,
|
|
5486
5475
|
className = _ref.className,
|
|
5487
5476
|
align = _ref.align,
|
|
@@ -5493,9 +5482,9 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5493
5482
|
_ref$as = _ref.as,
|
|
5494
5483
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5495
5484
|
popperConfig = _ref.popperConfig,
|
|
5496
|
-
props = _objectWithoutPropertiesLoose
|
|
5485
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5497
5486
|
|
|
5498
|
-
var isNavbar = useContext(context
|
|
5487
|
+
var isNavbar = useContext(context);
|
|
5499
5488
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5500
5489
|
|
|
5501
5490
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5529,7 +5518,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5529
5518
|
show: showProps,
|
|
5530
5519
|
alignEnd: alignRight,
|
|
5531
5520
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5532
|
-
popperConfig: _extends
|
|
5521
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5533
5522
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5534
5523
|
})
|
|
5535
5524
|
}),
|
|
@@ -5552,16 +5541,16 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5552
5541
|
if (placement) {
|
|
5553
5542
|
// we don't need the default popper style,
|
|
5554
5543
|
// menus are display: none when not shown.
|
|
5555
|
-
props.style = _extends
|
|
5544
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5556
5545
|
props['x-placement'] = placement;
|
|
5557
5546
|
}
|
|
5558
5547
|
|
|
5559
|
-
return /*#__PURE__*/
|
|
5548
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5560
5549
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5561
5550
|
}));
|
|
5562
5551
|
});
|
|
5563
|
-
DropdownMenu
|
|
5564
|
-
DropdownMenu
|
|
5552
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5553
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5565
5554
|
|
|
5566
5555
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5567
5556
|
|
|
@@ -5590,14 +5579,14 @@ module.exports = exports['default'];
|
|
|
5590
5579
|
|
|
5591
5580
|
unwrapExports(isRequiredForA11y_1);
|
|
5592
5581
|
|
|
5593
|
-
var DropdownToggle
|
|
5582
|
+
var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
5594
5583
|
var bsPrefix = _ref.bsPrefix,
|
|
5595
5584
|
split = _ref.split,
|
|
5596
5585
|
className = _ref.className,
|
|
5597
5586
|
childBsPrefix = _ref.childBsPrefix,
|
|
5598
5587
|
_ref$as = _ref.as,
|
|
5599
5588
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5600
|
-
props = _objectWithoutPropertiesLoose
|
|
5589
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5601
5590
|
|
|
5602
5591
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5603
5592
|
|
|
@@ -5612,12 +5601,12 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5612
5601
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5613
5602
|
// underlying component, to allow it to render size and style variants.
|
|
5614
5603
|
|
|
5615
|
-
return /*#__PURE__*/
|
|
5604
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5616
5605
|
onClick: toggle,
|
|
5617
5606
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5618
5607
|
}, toggleProps, props));
|
|
5619
5608
|
});
|
|
5620
|
-
DropdownToggle
|
|
5609
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5621
5610
|
|
|
5622
5611
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5623
5612
|
defaultProps: {
|
|
@@ -5632,10 +5621,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5632
5621
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5633
5622
|
Component: 'span'
|
|
5634
5623
|
});
|
|
5635
|
-
var defaultProps$
|
|
5624
|
+
var defaultProps$o = {
|
|
5636
5625
|
navbar: false
|
|
5637
5626
|
};
|
|
5638
|
-
var Dropdown
|
|
5627
|
+
var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
5639
5628
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5640
5629
|
show: 'onToggle'
|
|
5641
5630
|
}),
|
|
@@ -5648,9 +5637,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5648
5637
|
onToggle = _useUncontrolled.onToggle,
|
|
5649
5638
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5650
5639
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5651
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5652
|
-
|
|
5653
|
-
props = _objectWithoutPropertiesLoose
|
|
5640
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5641
|
+
_useUncontrolled.navbar;
|
|
5642
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5654
5643
|
|
|
5655
5644
|
var onSelectCtx = useContext(SelectableContext);
|
|
5656
5645
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5672,9 +5661,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5672
5661
|
if (onSelect) onSelect(key, event);
|
|
5673
5662
|
handleToggle(false, event, 'select');
|
|
5674
5663
|
});
|
|
5675
|
-
return /*#__PURE__*/
|
|
5664
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5676
5665
|
value: handleSelect
|
|
5677
|
-
}, /*#__PURE__*/
|
|
5666
|
+
}, /*#__PURE__*/React.createElement(Dropdown$1, {
|
|
5678
5667
|
drop: drop,
|
|
5679
5668
|
show: show,
|
|
5680
5669
|
alignEnd: alignRight,
|
|
@@ -5683,20 +5672,20 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5683
5672
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5684
5673
|
}, function (_ref) {
|
|
5685
5674
|
var dropdownProps = _ref.props;
|
|
5686
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5687
5676
|
ref: ref,
|
|
5688
5677
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5689
5678
|
}));
|
|
5690
5679
|
}));
|
|
5691
5680
|
});
|
|
5692
|
-
Dropdown
|
|
5693
|
-
Dropdown
|
|
5694
|
-
Dropdown
|
|
5695
|
-
Dropdown
|
|
5696
|
-
Dropdown
|
|
5697
|
-
Dropdown
|
|
5698
|
-
Dropdown
|
|
5699
|
-
Dropdown
|
|
5681
|
+
Dropdown.displayName = 'Dropdown';
|
|
5682
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5683
|
+
Dropdown.Divider = DropdownDivider;
|
|
5684
|
+
Dropdown.Header = DropdownHeader;
|
|
5685
|
+
Dropdown.Item = DropdownItem;
|
|
5686
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5687
|
+
Dropdown.Menu = DropdownMenu;
|
|
5688
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5700
5689
|
|
|
5701
5690
|
var propTypes$5 = {
|
|
5702
5691
|
/**
|
|
@@ -5758,7 +5747,7 @@ var propTypes$5 = {
|
|
|
5758
5747
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5759
5748
|
*/
|
|
5760
5749
|
|
|
5761
|
-
var DropdownButton =
|
|
5750
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5762
5751
|
var title = _ref.title,
|
|
5763
5752
|
children = _ref.children,
|
|
5764
5753
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5771,18 +5760,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5771
5760
|
disabled = _ref.disabled,
|
|
5772
5761
|
href = _ref.href,
|
|
5773
5762
|
id = _ref.id,
|
|
5774
|
-
props = _objectWithoutPropertiesLoose
|
|
5763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5775
5764
|
|
|
5776
|
-
return /*#__PURE__*/
|
|
5765
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
5777
5766
|
ref: ref
|
|
5778
|
-
}, props), /*#__PURE__*/
|
|
5767
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle, {
|
|
5779
5768
|
id: id,
|
|
5780
5769
|
href: href,
|
|
5781
5770
|
size: size,
|
|
5782
5771
|
variant: variant,
|
|
5783
5772
|
disabled: disabled,
|
|
5784
5773
|
childBsPrefix: bsPrefix
|
|
5785
|
-
}, title), /*#__PURE__*/
|
|
5774
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
5786
5775
|
align: menuAlign,
|
|
5787
5776
|
role: menuRole,
|
|
5788
5777
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5885,7 +5874,7 @@ module.exports = exports['default'];
|
|
|
5885
5874
|
|
|
5886
5875
|
unwrapExports(all_1);
|
|
5887
5876
|
|
|
5888
|
-
var propTypes$
|
|
5877
|
+
var propTypes$4 = {
|
|
5889
5878
|
/**
|
|
5890
5879
|
* Specify whether the feedback is for valid or invalid fields
|
|
5891
5880
|
*
|
|
@@ -5897,7 +5886,7 @@ var propTypes$6 = {
|
|
|
5897
5886
|
tooltip: PropTypes.bool,
|
|
5898
5887
|
as: PropTypes.elementType
|
|
5899
5888
|
};
|
|
5900
|
-
var Feedback =
|
|
5889
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5901
5890
|
function (_ref, ref) {
|
|
5902
5891
|
var _ref$as = _ref.as,
|
|
5903
5892
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5906,21 +5895,21 @@ function (_ref, ref) {
|
|
|
5906
5895
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5907
5896
|
_ref$tooltip = _ref.tooltip,
|
|
5908
5897
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5909
|
-
props = _objectWithoutPropertiesLoose
|
|
5898
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5910
5899
|
|
|
5911
|
-
return /*#__PURE__*/
|
|
5900
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5912
5901
|
ref: ref,
|
|
5913
5902
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5914
5903
|
}));
|
|
5915
5904
|
});
|
|
5916
5905
|
Feedback.displayName = 'Feedback';
|
|
5917
|
-
Feedback.propTypes = propTypes$
|
|
5906
|
+
Feedback.propTypes = propTypes$4;
|
|
5918
5907
|
|
|
5919
|
-
var FormContext =
|
|
5908
|
+
var FormContext = React.createContext({
|
|
5920
5909
|
controlId: undefined
|
|
5921
5910
|
});
|
|
5922
5911
|
|
|
5923
|
-
var FormCheckInput =
|
|
5912
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5924
5913
|
var id = _ref.id,
|
|
5925
5914
|
bsPrefix = _ref.bsPrefix,
|
|
5926
5915
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5934,7 +5923,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5934
5923
|
isStatic = _ref.isStatic,
|
|
5935
5924
|
_ref$as = _ref.as,
|
|
5936
5925
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5937
|
-
props = _objectWithoutPropertiesLoose
|
|
5926
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5938
5927
|
|
|
5939
5928
|
var _useContext = useContext(FormContext),
|
|
5940
5929
|
controlId = _useContext.controlId,
|
|
@@ -5945,7 +5934,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5945
5934
|
defaultPrefix = _ref2[1];
|
|
5946
5935
|
|
|
5947
5936
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5948
|
-
return /*#__PURE__*/
|
|
5937
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5949
5938
|
ref: ref,
|
|
5950
5939
|
type: type,
|
|
5951
5940
|
id: id || controlId,
|
|
@@ -5954,12 +5943,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5954
5943
|
});
|
|
5955
5944
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5956
5945
|
|
|
5957
|
-
var FormCheckLabel =
|
|
5946
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5958
5947
|
var bsPrefix = _ref.bsPrefix,
|
|
5959
5948
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5960
5949
|
className = _ref.className,
|
|
5961
5950
|
htmlFor = _ref.htmlFor,
|
|
5962
|
-
props = _objectWithoutPropertiesLoose
|
|
5951
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5963
5952
|
|
|
5964
5953
|
var _useContext = useContext(FormContext),
|
|
5965
5954
|
controlId = _useContext.controlId,
|
|
@@ -5970,7 +5959,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5970
5959
|
defaultPrefix = _ref2[1];
|
|
5971
5960
|
|
|
5972
5961
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5973
|
-
return /*#__PURE__*/
|
|
5962
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5974
5963
|
ref: ref,
|
|
5975
5964
|
htmlFor: htmlFor || controlId,
|
|
5976
5965
|
className: classnames(className, bsPrefix)
|
|
@@ -5978,7 +5967,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5978
5967
|
});
|
|
5979
5968
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5980
5969
|
|
|
5981
|
-
var FormCheck =
|
|
5970
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5982
5971
|
var id = _ref.id,
|
|
5983
5972
|
bsPrefix = _ref.bsPrefix,
|
|
5984
5973
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6004,7 +5993,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6004
5993
|
propCustom = _ref.custom,
|
|
6005
5994
|
_ref$as = _ref.as,
|
|
6006
5995
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6007
|
-
props = _objectWithoutPropertiesLoose
|
|
5996
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6008
5997
|
|
|
6009
5998
|
var custom = type === 'switch' ? true : propCustom;
|
|
6010
5999
|
|
|
@@ -6024,7 +6013,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
6013
|
};
|
|
6025
6014
|
}, [controlId, custom, id]);
|
|
6026
6015
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6027
|
-
var input = /*#__PURE__*/
|
|
6016
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6028
6017
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6029
6018
|
ref: ref,
|
|
6030
6019
|
isValid: isValid,
|
|
@@ -6033,14 +6022,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6033
6022
|
disabled: disabled,
|
|
6034
6023
|
as: as
|
|
6035
6024
|
}));
|
|
6036
|
-
return /*#__PURE__*/
|
|
6025
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6037
6026
|
value: innerFormContext
|
|
6038
|
-
}, /*#__PURE__*/
|
|
6027
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6039
6028
|
style: style,
|
|
6040
6029
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6041
|
-
}, children || /*#__PURE__*/
|
|
6030
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6042
6031
|
title: title
|
|
6043
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6032
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6044
6033
|
type: isValid ? 'valid' : 'invalid',
|
|
6045
6034
|
tooltip: feedbackTooltip
|
|
6046
6035
|
}, feedback))));
|
|
@@ -6049,7 +6038,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6049
6038
|
FormCheck.Input = FormCheckInput;
|
|
6050
6039
|
FormCheck.Label = FormCheckLabel;
|
|
6051
6040
|
|
|
6052
|
-
var FormFileInput =
|
|
6041
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6053
6042
|
var id = _ref.id,
|
|
6054
6043
|
bsPrefix = _ref.bsPrefix,
|
|
6055
6044
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6059,7 +6048,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6059
6048
|
lang = _ref.lang,
|
|
6060
6049
|
_ref$as = _ref.as,
|
|
6061
6050
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6062
|
-
props = _objectWithoutPropertiesLoose
|
|
6051
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6063
6052
|
|
|
6064
6053
|
var _useContext = useContext(FormContext),
|
|
6065
6054
|
controlId = _useContext.controlId,
|
|
@@ -6072,7 +6061,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6072
6061
|
defaultPrefix = _ref2[1];
|
|
6073
6062
|
|
|
6074
6063
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6075
|
-
return /*#__PURE__*/
|
|
6064
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6076
6065
|
ref: ref,
|
|
6077
6066
|
id: id || controlId,
|
|
6078
6067
|
type: type,
|
|
@@ -6082,12 +6071,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6082
6071
|
});
|
|
6083
6072
|
FormFileInput.displayName = 'FormFileInput';
|
|
6084
6073
|
|
|
6085
|
-
var FormFileLabel =
|
|
6074
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6086
6075
|
var bsPrefix = _ref.bsPrefix,
|
|
6087
6076
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6088
6077
|
className = _ref.className,
|
|
6089
6078
|
htmlFor = _ref.htmlFor,
|
|
6090
|
-
props = _objectWithoutPropertiesLoose
|
|
6079
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6091
6080
|
|
|
6092
6081
|
var _useContext = useContext(FormContext),
|
|
6093
6082
|
controlId = _useContext.controlId,
|
|
@@ -6098,7 +6087,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6098
6087
|
defaultPrefix = _ref2[1];
|
|
6099
6088
|
|
|
6100
6089
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6101
|
-
return /*#__PURE__*/
|
|
6090
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6102
6091
|
ref: ref,
|
|
6103
6092
|
htmlFor: htmlFor || controlId,
|
|
6104
6093
|
className: classnames(className, bsPrefix),
|
|
@@ -6107,7 +6096,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6107
6096
|
});
|
|
6108
6097
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6109
6098
|
|
|
6110
|
-
var FormFile =
|
|
6099
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6111
6100
|
var id = _ref.id,
|
|
6112
6101
|
bsPrefix = _ref.bsPrefix,
|
|
6113
6102
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6131,7 +6120,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6131
6120
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6132
6121
|
_ref$inputAs = _ref.inputAs,
|
|
6133
6122
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6134
|
-
props = _objectWithoutPropertiesLoose
|
|
6123
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6135
6124
|
|
|
6136
6125
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6137
6126
|
prefix = _ref2[0],
|
|
@@ -6150,7 +6139,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6150
6139
|
};
|
|
6151
6140
|
}, [controlId, custom, id]);
|
|
6152
6141
|
var hasLabel = label != null && label !== false && !children;
|
|
6153
|
-
var input = /*#__PURE__*/
|
|
6142
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6154
6143
|
ref: ref,
|
|
6155
6144
|
isValid: isValid,
|
|
6156
6145
|
isInvalid: isInvalid,
|
|
@@ -6158,14 +6147,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6158
6147
|
as: inputAs,
|
|
6159
6148
|
lang: lang
|
|
6160
6149
|
}));
|
|
6161
|
-
return /*#__PURE__*/
|
|
6150
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6162
6151
|
value: innerFormContext
|
|
6163
|
-
}, /*#__PURE__*/
|
|
6152
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6164
6153
|
style: style,
|
|
6165
6154
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6166
|
-
}, children || /*#__PURE__*/
|
|
6155
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6167
6156
|
"data-browse": dataBrowse
|
|
6168
|
-
}, label)) : /*#__PURE__*/
|
|
6157
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6169
6158
|
type: isValid ? 'valid' : 'invalid',
|
|
6170
6159
|
tooltip: feedbackTooltip
|
|
6171
6160
|
}, feedback))));
|
|
@@ -6174,7 +6163,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6174
6163
|
FormFile.Input = FormFileInput;
|
|
6175
6164
|
FormFile.Label = FormFileLabel;
|
|
6176
6165
|
|
|
6177
|
-
var FormControl =
|
|
6166
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6178
6167
|
var bsPrefix = _ref.bsPrefix,
|
|
6179
6168
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6180
6169
|
type = _ref.type,
|
|
@@ -6191,7 +6180,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6191
6180
|
custom = _ref.custom,
|
|
6192
6181
|
_ref$as = _ref.as,
|
|
6193
6182
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6194
|
-
props = _objectWithoutPropertiesLoose
|
|
6183
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6195
6184
|
|
|
6196
6185
|
var _useContext = useContext(FormContext),
|
|
6197
6186
|
controlId = _useContext.controlId;
|
|
@@ -6226,7 +6215,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6226
6215
|
}
|
|
6227
6216
|
|
|
6228
6217
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6229
|
-
return /*#__PURE__*/
|
|
6218
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6230
6219
|
type: type,
|
|
6231
6220
|
size: htmlSize,
|
|
6232
6221
|
ref: ref,
|
|
@@ -6240,14 +6229,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6240
6229
|
Feedback: Feedback
|
|
6241
6230
|
});
|
|
6242
6231
|
|
|
6243
|
-
var FormGroup =
|
|
6232
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6244
6233
|
var bsPrefix = _ref.bsPrefix,
|
|
6245
6234
|
className = _ref.className,
|
|
6246
6235
|
children = _ref.children,
|
|
6247
6236
|
controlId = _ref.controlId,
|
|
6248
6237
|
_ref$as = _ref.as,
|
|
6249
6238
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6250
|
-
props = _objectWithoutPropertiesLoose
|
|
6239
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6251
6240
|
|
|
6252
6241
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6253
6242
|
var context = useMemo(function () {
|
|
@@ -6255,20 +6244,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6255
6244
|
controlId: controlId
|
|
6256
6245
|
};
|
|
6257
6246
|
}, [controlId]);
|
|
6258
|
-
return /*#__PURE__*/
|
|
6247
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6259
6248
|
value: context
|
|
6260
|
-
}, /*#__PURE__*/
|
|
6249
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6261
6250
|
ref: ref,
|
|
6262
6251
|
className: classnames(className, bsPrefix)
|
|
6263
6252
|
}), children));
|
|
6264
6253
|
});
|
|
6265
6254
|
FormGroup.displayName = 'FormGroup';
|
|
6266
6255
|
|
|
6267
|
-
var defaultProps$
|
|
6256
|
+
var defaultProps$n = {
|
|
6268
6257
|
column: false,
|
|
6269
6258
|
srOnly: false
|
|
6270
6259
|
};
|
|
6271
|
-
var FormLabel =
|
|
6260
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6272
6261
|
var _ref$as = _ref.as,
|
|
6273
6262
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6274
6263
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6276,7 +6265,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6276
6265
|
srOnly = _ref.srOnly,
|
|
6277
6266
|
className = _ref.className,
|
|
6278
6267
|
htmlFor = _ref.htmlFor,
|
|
6279
|
-
props = _objectWithoutPropertiesLoose
|
|
6268
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6280
6269
|
|
|
6281
6270
|
var _useContext = useContext(FormContext),
|
|
6282
6271
|
controlId = _useContext.controlId;
|
|
@@ -6287,7 +6276,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6287
6276
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6288
6277
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6289
6278
|
htmlFor = htmlFor || controlId;
|
|
6290
|
-
if (column) return /*#__PURE__*/
|
|
6279
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6291
6280
|
as: "label",
|
|
6292
6281
|
className: classes,
|
|
6293
6282
|
htmlFor: htmlFor
|
|
@@ -6295,7 +6284,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6295
6284
|
return (
|
|
6296
6285
|
/*#__PURE__*/
|
|
6297
6286
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6298
|
-
|
|
6287
|
+
React.createElement(Component, _extends({
|
|
6299
6288
|
ref: ref,
|
|
6300
6289
|
className: classes,
|
|
6301
6290
|
htmlFor: htmlFor
|
|
@@ -6303,27 +6292,27 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6303
6292
|
);
|
|
6304
6293
|
});
|
|
6305
6294
|
FormLabel.displayName = 'FormLabel';
|
|
6306
|
-
FormLabel.defaultProps = defaultProps$
|
|
6295
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6307
6296
|
|
|
6308
|
-
var FormText =
|
|
6297
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6309
6298
|
function (_ref, ref) {
|
|
6310
6299
|
var bsPrefix = _ref.bsPrefix,
|
|
6311
6300
|
className = _ref.className,
|
|
6312
6301
|
_ref$as = _ref.as,
|
|
6313
6302
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6314
6303
|
muted = _ref.muted,
|
|
6315
|
-
props = _objectWithoutPropertiesLoose
|
|
6304
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6316
6305
|
|
|
6317
6306
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6318
|
-
return /*#__PURE__*/
|
|
6307
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6319
6308
|
ref: ref,
|
|
6320
6309
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6321
6310
|
}));
|
|
6322
6311
|
});
|
|
6323
6312
|
FormText.displayName = 'FormText';
|
|
6324
6313
|
|
|
6325
|
-
var Switch =
|
|
6326
|
-
return /*#__PURE__*/
|
|
6314
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6315
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6327
6316
|
ref: ref,
|
|
6328
6317
|
type: "switch"
|
|
6329
6318
|
}));
|
|
@@ -6333,26 +6322,26 @@ Switch.Input = FormCheck.Input;
|
|
|
6333
6322
|
Switch.Label = FormCheck.Label;
|
|
6334
6323
|
|
|
6335
6324
|
var FormRow = createWithBsPrefix('form-row');
|
|
6336
|
-
var defaultProps$
|
|
6325
|
+
var defaultProps$m = {
|
|
6337
6326
|
inline: false
|
|
6338
6327
|
};
|
|
6339
|
-
var FormImpl =
|
|
6328
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6340
6329
|
var bsPrefix = _ref.bsPrefix,
|
|
6341
6330
|
inline = _ref.inline,
|
|
6342
6331
|
className = _ref.className,
|
|
6343
6332
|
validated = _ref.validated,
|
|
6344
6333
|
_ref$as = _ref.as,
|
|
6345
6334
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6346
|
-
props = _objectWithoutPropertiesLoose
|
|
6335
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6347
6336
|
|
|
6348
6337
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6349
|
-
return /*#__PURE__*/
|
|
6338
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6350
6339
|
ref: ref,
|
|
6351
6340
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6352
6341
|
}));
|
|
6353
6342
|
});
|
|
6354
6343
|
FormImpl.displayName = 'Form';
|
|
6355
|
-
FormImpl.defaultProps = defaultProps$
|
|
6344
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6356
6345
|
FormImpl.Row = FormRow;
|
|
6357
6346
|
FormImpl.Group = FormGroup;
|
|
6358
6347
|
FormImpl.Control = FormControl$1;
|
|
@@ -6362,29 +6351,29 @@ FormImpl.Switch = Switch;
|
|
|
6362
6351
|
FormImpl.Label = FormLabel;
|
|
6363
6352
|
FormImpl.Text = FormText;
|
|
6364
6353
|
|
|
6365
|
-
var defaultProps$
|
|
6354
|
+
var defaultProps$l = {
|
|
6366
6355
|
fluid: false
|
|
6367
6356
|
};
|
|
6368
|
-
var Container =
|
|
6357
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6369
6358
|
var bsPrefix = _ref.bsPrefix,
|
|
6370
6359
|
fluid = _ref.fluid,
|
|
6371
6360
|
_ref$as = _ref.as,
|
|
6372
6361
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6373
6362
|
className = _ref.className,
|
|
6374
|
-
props = _objectWithoutPropertiesLoose
|
|
6363
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6375
6364
|
|
|
6376
6365
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6377
6366
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6378
|
-
return /*#__PURE__*/
|
|
6367
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6379
6368
|
ref: ref
|
|
6380
6369
|
}, props, {
|
|
6381
6370
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6382
6371
|
}));
|
|
6383
6372
|
});
|
|
6384
6373
|
Container.displayName = 'Container';
|
|
6385
|
-
Container.defaultProps = defaultProps$
|
|
6374
|
+
Container.defaultProps = defaultProps$l;
|
|
6386
6375
|
|
|
6387
|
-
var propTypes$
|
|
6376
|
+
var propTypes$3 = {
|
|
6388
6377
|
/**
|
|
6389
6378
|
* @default 'img'
|
|
6390
6379
|
*/
|
|
@@ -6416,18 +6405,18 @@ var defaultProps$k = {
|
|
|
6416
6405
|
roundedCircle: false,
|
|
6417
6406
|
thumbnail: false
|
|
6418
6407
|
};
|
|
6419
|
-
var Image =
|
|
6408
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6420
6409
|
var bsPrefix = _ref.bsPrefix,
|
|
6421
6410
|
className = _ref.className,
|
|
6422
6411
|
fluid = _ref.fluid,
|
|
6423
6412
|
rounded = _ref.rounded,
|
|
6424
6413
|
roundedCircle = _ref.roundedCircle,
|
|
6425
6414
|
thumbnail = _ref.thumbnail,
|
|
6426
|
-
props = _objectWithoutPropertiesLoose
|
|
6415
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6427
6416
|
|
|
6428
6417
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6429
6418
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6430
|
-
return /*#__PURE__*/
|
|
6419
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6431
6420
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6432
6421
|
ref: ref
|
|
6433
6422
|
}, props, {
|
|
@@ -6437,22 +6426,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6437
6426
|
Image.displayName = 'Image';
|
|
6438
6427
|
Image.defaultProps = defaultProps$k;
|
|
6439
6428
|
|
|
6440
|
-
var defaultProps$
|
|
6429
|
+
var defaultProps$j = {
|
|
6441
6430
|
fluid: true
|
|
6442
6431
|
};
|
|
6443
|
-
var FigureImage =
|
|
6432
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6444
6433
|
var className = _ref.className,
|
|
6445
|
-
props = _objectWithoutPropertiesLoose
|
|
6434
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6446
6435
|
|
|
6447
|
-
return /*#__PURE__*/
|
|
6436
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6448
6437
|
ref: ref
|
|
6449
6438
|
}, props, {
|
|
6450
6439
|
className: classnames(className, 'figure-img')
|
|
6451
6440
|
}));
|
|
6452
6441
|
});
|
|
6453
6442
|
FigureImage.displayName = 'FigureImage';
|
|
6454
|
-
FigureImage.propTypes = propTypes$
|
|
6455
|
-
FigureImage.defaultProps = defaultProps$
|
|
6443
|
+
FigureImage.propTypes = propTypes$3;
|
|
6444
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6456
6445
|
|
|
6457
6446
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6458
6447
|
Component: 'figcaption'
|
|
@@ -6471,13 +6460,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6471
6460
|
});
|
|
6472
6461
|
|
|
6473
6462
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6474
|
-
return /*#__PURE__*/
|
|
6463
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6475
6464
|
type: "checkbox"
|
|
6476
6465
|
}, props)));
|
|
6477
6466
|
};
|
|
6478
6467
|
|
|
6479
6468
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6480
|
-
return /*#__PURE__*/
|
|
6469
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6481
6470
|
type: "radio"
|
|
6482
6471
|
}, props)));
|
|
6483
6472
|
};
|
|
@@ -6490,16 +6479,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6490
6479
|
* @property {InputGroupRadio} Radio
|
|
6491
6480
|
* @property {InputGroupCheckbox} Checkbox
|
|
6492
6481
|
*/
|
|
6493
|
-
var InputGroup =
|
|
6482
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6494
6483
|
var bsPrefix = _ref.bsPrefix,
|
|
6495
6484
|
size = _ref.size,
|
|
6496
6485
|
className = _ref.className,
|
|
6497
6486
|
_ref$as = _ref.as,
|
|
6498
6487
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6499
|
-
props = _objectWithoutPropertiesLoose
|
|
6488
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6500
6489
|
|
|
6501
6490
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6502
|
-
return /*#__PURE__*/
|
|
6491
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6503
6492
|
ref: ref
|
|
6504
6493
|
}, props, {
|
|
6505
6494
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6507,7 +6496,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6507
6496
|
});
|
|
6508
6497
|
InputGroup.displayName = 'InputGroup';
|
|
6509
6498
|
|
|
6510
|
-
|
|
6499
|
+
_extends({}, InputGroup, {
|
|
6511
6500
|
Text: InputGroupText,
|
|
6512
6501
|
Radio: InputGroupRadio,
|
|
6513
6502
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6515,10 +6504,10 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6515
6504
|
Prepend: InputGroupPrepend
|
|
6516
6505
|
});
|
|
6517
6506
|
|
|
6518
|
-
var defaultProps$
|
|
6507
|
+
var defaultProps$i = {
|
|
6519
6508
|
fluid: false
|
|
6520
6509
|
};
|
|
6521
|
-
var Jumbotron =
|
|
6510
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6522
6511
|
var _classes;
|
|
6523
6512
|
|
|
6524
6513
|
var _ref$as = _ref.as,
|
|
@@ -6526,32 +6515,32 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6526
6515
|
className = _ref.className,
|
|
6527
6516
|
fluid = _ref.fluid,
|
|
6528
6517
|
bsPrefix = _ref.bsPrefix,
|
|
6529
|
-
props = _objectWithoutPropertiesLoose
|
|
6518
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6530
6519
|
|
|
6531
6520
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6532
6521
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6533
|
-
return /*#__PURE__*/
|
|
6522
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6534
6523
|
ref: ref
|
|
6535
6524
|
}, props, {
|
|
6536
6525
|
className: classnames(className, classes)
|
|
6537
6526
|
}));
|
|
6538
6527
|
});
|
|
6539
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6528
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6540
6529
|
Jumbotron.displayName = 'Jumbotron';
|
|
6541
6530
|
|
|
6542
|
-
var TabContext =
|
|
6531
|
+
var TabContext = React.createContext(null);
|
|
6543
6532
|
|
|
6544
6533
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6545
|
-
var noop$
|
|
6534
|
+
var noop$1 = function noop() {};
|
|
6546
6535
|
|
|
6547
|
-
var AbstractNav =
|
|
6536
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6548
6537
|
var _ref$as = _ref.as,
|
|
6549
6538
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6550
6539
|
onSelect = _ref.onSelect,
|
|
6551
6540
|
activeKey = _ref.activeKey,
|
|
6552
6541
|
role = _ref.role,
|
|
6553
6542
|
onKeyDown = _ref.onKeyDown,
|
|
6554
|
-
props = _objectWithoutPropertiesLoose
|
|
6543
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6555
6544
|
|
|
6556
6545
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6557
6546
|
// and don't want to reset the set in the effect
|
|
@@ -6625,34 +6614,34 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6625
6614
|
needsRefocusRef.current = false;
|
|
6626
6615
|
});
|
|
6627
6616
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6628
|
-
return /*#__PURE__*/
|
|
6617
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6629
6618
|
value: handleSelect
|
|
6630
|
-
}, /*#__PURE__*/
|
|
6619
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6631
6620
|
value: {
|
|
6632
6621
|
role: role,
|
|
6633
6622
|
// used by NavLink to determine it's role
|
|
6634
6623
|
activeKey: makeEventKey(activeKey),
|
|
6635
|
-
getControlledId: getControlledId || noop$
|
|
6636
|
-
getControllerId: getControllerId || noop$
|
|
6624
|
+
getControlledId: getControlledId || noop$1,
|
|
6625
|
+
getControllerId: getControllerId || noop$1
|
|
6637
6626
|
}
|
|
6638
|
-
}, /*#__PURE__*/
|
|
6627
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6639
6628
|
onKeyDown: handleKeyDown,
|
|
6640
6629
|
ref: mergedRef,
|
|
6641
6630
|
role: role
|
|
6642
6631
|
}))));
|
|
6643
6632
|
});
|
|
6644
6633
|
|
|
6645
|
-
var defaultProps$
|
|
6634
|
+
var defaultProps$h = {
|
|
6646
6635
|
disabled: false
|
|
6647
6636
|
};
|
|
6648
|
-
var AbstractNavItem =
|
|
6637
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6649
6638
|
var active = _ref.active,
|
|
6650
6639
|
className = _ref.className,
|
|
6651
6640
|
eventKey = _ref.eventKey,
|
|
6652
6641
|
onSelect = _ref.onSelect,
|
|
6653
6642
|
onClick = _ref.onClick,
|
|
6654
6643
|
Component = _ref.as,
|
|
6655
|
-
props = _objectWithoutPropertiesLoose
|
|
6644
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6656
6645
|
|
|
6657
6646
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6658
6647
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6682,20 +6671,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6682
6671
|
if (onSelect) onSelect(navKey, e);
|
|
6683
6672
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6684
6673
|
});
|
|
6685
|
-
return /*#__PURE__*/
|
|
6674
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6686
6675
|
ref: ref,
|
|
6687
6676
|
onClick: handleOnclick,
|
|
6688
6677
|
className: classnames(className, isActive && 'active')
|
|
6689
6678
|
}));
|
|
6690
6679
|
});
|
|
6691
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6680
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6692
6681
|
|
|
6693
|
-
var defaultProps$
|
|
6682
|
+
var defaultProps$g = {
|
|
6694
6683
|
variant: undefined,
|
|
6695
6684
|
active: false,
|
|
6696
6685
|
disabled: false
|
|
6697
6686
|
};
|
|
6698
|
-
var ListGroupItem =
|
|
6687
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6699
6688
|
var bsPrefix = _ref.bsPrefix,
|
|
6700
6689
|
active = _ref.active,
|
|
6701
6690
|
disabled = _ref.disabled,
|
|
@@ -6705,7 +6694,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6705
6694
|
as = _ref.as,
|
|
6706
6695
|
eventKey = _ref.eventKey,
|
|
6707
6696
|
onClick = _ref.onClick,
|
|
6708
|
-
props = _objectWithoutPropertiesLoose
|
|
6697
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6709
6698
|
|
|
6710
6699
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6711
6700
|
var handleClick = useCallback(function (event) {
|
|
@@ -6717,7 +6706,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6717
6706
|
|
|
6718
6707
|
if (onClick) onClick(event);
|
|
6719
6708
|
}, [disabled, onClick]);
|
|
6720
|
-
return /*#__PURE__*/
|
|
6709
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6721
6710
|
ref: ref
|
|
6722
6711
|
}, props, {
|
|
6723
6712
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6728,14 +6717,14 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6728
6717
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6729
6718
|
}));
|
|
6730
6719
|
});
|
|
6731
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6720
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6732
6721
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6733
6722
|
|
|
6734
|
-
var defaultProps$
|
|
6723
|
+
var defaultProps$f = {
|
|
6735
6724
|
variant: undefined,
|
|
6736
6725
|
horizontal: undefined
|
|
6737
6726
|
};
|
|
6738
|
-
var ListGroup =
|
|
6727
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6739
6728
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6740
6729
|
activeKey: 'onSelect'
|
|
6741
6730
|
}),
|
|
@@ -6745,7 +6734,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6745
6734
|
horizontal = _useUncontrolled.horizontal,
|
|
6746
6735
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6747
6736
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6748
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6737
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6749
6738
|
|
|
6750
6739
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6751
6740
|
var horizontalVariant;
|
|
@@ -6757,28 +6746,28 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6757
6746
|
}
|
|
6758
6747
|
|
|
6759
6748
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6760
|
-
return /*#__PURE__*/
|
|
6749
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6761
6750
|
ref: ref
|
|
6762
6751
|
}, controlledProps, {
|
|
6763
6752
|
as: as,
|
|
6764
6753
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6765
6754
|
}));
|
|
6766
6755
|
});
|
|
6767
|
-
ListGroup.defaultProps = defaultProps$
|
|
6756
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6768
6757
|
ListGroup.displayName = 'ListGroup';
|
|
6769
6758
|
ListGroup.Item = ListGroupItem;
|
|
6770
6759
|
|
|
6771
6760
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6772
|
-
var Media =
|
|
6761
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6773
6762
|
function (_ref, ref) {
|
|
6774
6763
|
var bsPrefix = _ref.bsPrefix,
|
|
6775
6764
|
className = _ref.className,
|
|
6776
6765
|
_ref$as = _ref.as,
|
|
6777
6766
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6778
|
-
props = _objectWithoutPropertiesLoose
|
|
6767
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6779
6768
|
|
|
6780
6769
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6781
|
-
return /*#__PURE__*/
|
|
6770
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6782
6771
|
ref: ref,
|
|
6783
6772
|
className: classnames(className, prefix)
|
|
6784
6773
|
}));
|
|
@@ -6813,7 +6802,7 @@ function scrollbarSize(recalc) {
|
|
|
6813
6802
|
|
|
6814
6803
|
function activeElement(doc) {
|
|
6815
6804
|
if (doc === void 0) {
|
|
6816
|
-
doc = ownerDocument();
|
|
6805
|
+
doc = ownerDocument$1();
|
|
6817
6806
|
}
|
|
6818
6807
|
|
|
6819
6808
|
// Support: IE 9 only
|
|
@@ -6863,7 +6852,7 @@ function isBody(node) {
|
|
|
6863
6852
|
}
|
|
6864
6853
|
|
|
6865
6854
|
function bodyIsOverflowing(node) {
|
|
6866
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6855
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6867
6856
|
var win = isWindow(node) || doc.defaultView;
|
|
6868
6857
|
return doc.body.clientWidth < win.innerWidth;
|
|
6869
6858
|
}
|
|
@@ -7075,7 +7064,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7075
7064
|
var _ref;
|
|
7076
7065
|
|
|
7077
7066
|
if (typeof document === 'undefined') return null;
|
|
7078
|
-
if (ref == null) return ownerDocument().body;
|
|
7067
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7079
7068
|
if (typeof ref === 'function') ref = ref();
|
|
7080
7069
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7081
7070
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7108,11 +7097,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7108
7097
|
return resolvedRef;
|
|
7109
7098
|
}
|
|
7110
7099
|
|
|
7111
|
-
var manager;
|
|
7100
|
+
var manager$1;
|
|
7112
7101
|
|
|
7113
7102
|
function getManager() {
|
|
7114
|
-
if (!manager) manager = new ModalManager();
|
|
7115
|
-
return manager;
|
|
7103
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7104
|
+
return manager$1;
|
|
7116
7105
|
}
|
|
7117
7106
|
|
|
7118
7107
|
function useModalManager(provided) {
|
|
@@ -7140,7 +7129,7 @@ function useModalManager(provided) {
|
|
|
7140
7129
|
});
|
|
7141
7130
|
}
|
|
7142
7131
|
|
|
7143
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7132
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7144
7133
|
var _ref$show = _ref.show,
|
|
7145
7134
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7146
7135
|
_ref$role = _ref.role,
|
|
@@ -7166,7 +7155,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7166
7155
|
renderDialog = _ref.renderDialog,
|
|
7167
7156
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7168
7157
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7169
|
-
return /*#__PURE__*/
|
|
7158
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7170
7159
|
} : _ref$renderBackdrop,
|
|
7171
7160
|
providedManager = _ref.manager,
|
|
7172
7161
|
containerRef = _ref.container,
|
|
@@ -7224,7 +7213,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7224
7213
|
if (autoFocus) {
|
|
7225
7214
|
var currentActiveElement = activeElement(document);
|
|
7226
7215
|
|
|
7227
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7216
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7228
7217
|
lastFocusRef.current = currentActiveElement;
|
|
7229
7218
|
modal.dialog.focus();
|
|
7230
7219
|
}
|
|
@@ -7270,7 +7259,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7270
7259
|
|
|
7271
7260
|
var currentActiveElement = activeElement();
|
|
7272
7261
|
|
|
7273
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7262
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7274
7263
|
modal.dialog.focus();
|
|
7275
7264
|
}
|
|
7276
7265
|
});
|
|
@@ -7324,12 +7313,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7324
7313
|
tabIndex: -1
|
|
7325
7314
|
});
|
|
7326
7315
|
|
|
7327
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7316
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7328
7317
|
role: 'document'
|
|
7329
7318
|
}));
|
|
7330
7319
|
|
|
7331
7320
|
if (Transition) {
|
|
7332
|
-
dialog = /*#__PURE__*/
|
|
7321
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7333
7322
|
appear: true,
|
|
7334
7323
|
unmountOnExit: true,
|
|
7335
7324
|
"in": !!show,
|
|
@@ -7352,16 +7341,16 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7352
7341
|
});
|
|
7353
7342
|
|
|
7354
7343
|
if (BackdropTransition) {
|
|
7355
|
-
backdropElement = /*#__PURE__*/
|
|
7344
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7356
7345
|
appear: true,
|
|
7357
7346
|
"in": !!show
|
|
7358
7347
|
}, backdropElement);
|
|
7359
7348
|
}
|
|
7360
7349
|
}
|
|
7361
7350
|
|
|
7362
|
-
return /*#__PURE__*/
|
|
7351
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7363
7352
|
});
|
|
7364
|
-
var propTypes$
|
|
7353
|
+
var propTypes$2 = {
|
|
7365
7354
|
/**
|
|
7366
7355
|
* Set the visibility of the Modal
|
|
7367
7356
|
*/
|
|
@@ -7517,9 +7506,9 @@ var propTypes$8 = {
|
|
|
7517
7506
|
*/
|
|
7518
7507
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7519
7508
|
};
|
|
7520
|
-
Modal.displayName = 'Modal';
|
|
7521
|
-
Modal.propTypes = propTypes$
|
|
7522
|
-
var BaseModal = Object.assign(Modal, {
|
|
7509
|
+
Modal$1.displayName = 'Modal';
|
|
7510
|
+
Modal$1.propTypes = propTypes$2;
|
|
7511
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7523
7512
|
Manager: ModalManager
|
|
7524
7513
|
});
|
|
7525
7514
|
|
|
@@ -7598,12 +7587,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7598
7587
|
|
|
7599
7588
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7600
7589
|
|
|
7601
|
-
var ModalContext =
|
|
7590
|
+
var ModalContext = React.createContext({
|
|
7602
7591
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7603
7592
|
onHide: function onHide() {}
|
|
7604
7593
|
});
|
|
7605
7594
|
|
|
7606
|
-
var ModalDialog =
|
|
7595
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7607
7596
|
var bsPrefix = _ref.bsPrefix,
|
|
7608
7597
|
className = _ref.className,
|
|
7609
7598
|
contentClassName = _ref.contentClassName,
|
|
@@ -7611,14 +7600,14 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7611
7600
|
size = _ref.size,
|
|
7612
7601
|
children = _ref.children,
|
|
7613
7602
|
scrollable = _ref.scrollable,
|
|
7614
|
-
props = _objectWithoutPropertiesLoose
|
|
7603
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7615
7604
|
|
|
7616
7605
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7617
7606
|
var dialogClass = bsPrefix + "-dialog";
|
|
7618
|
-
return /*#__PURE__*/
|
|
7607
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7619
7608
|
ref: ref,
|
|
7620
7609
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7621
|
-
}), /*#__PURE__*/
|
|
7610
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7622
7611
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7623
7612
|
}, children));
|
|
7624
7613
|
});
|
|
@@ -7626,18 +7615,18 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7626
7615
|
|
|
7627
7616
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7628
7617
|
|
|
7629
|
-
var defaultProps$
|
|
7618
|
+
var defaultProps$e = {
|
|
7630
7619
|
closeLabel: 'Close',
|
|
7631
7620
|
closeButton: false
|
|
7632
7621
|
};
|
|
7633
|
-
var ModalHeader =
|
|
7622
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7634
7623
|
var bsPrefix = _ref.bsPrefix,
|
|
7635
7624
|
closeLabel = _ref.closeLabel,
|
|
7636
7625
|
closeButton = _ref.closeButton,
|
|
7637
7626
|
onHide = _ref.onHide,
|
|
7638
7627
|
className = _ref.className,
|
|
7639
7628
|
children = _ref.children,
|
|
7640
|
-
props = _objectWithoutPropertiesLoose
|
|
7629
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7641
7630
|
|
|
7642
7631
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7643
7632
|
var context = useContext(ModalContext);
|
|
@@ -7645,25 +7634,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7645
7634
|
if (context) context.onHide();
|
|
7646
7635
|
if (onHide) onHide();
|
|
7647
7636
|
});
|
|
7648
|
-
return /*#__PURE__*/
|
|
7637
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7649
7638
|
ref: ref
|
|
7650
7639
|
}, props, {
|
|
7651
7640
|
className: classnames(className, bsPrefix)
|
|
7652
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7641
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7653
7642
|
label: closeLabel,
|
|
7654
7643
|
onClick: handleClick
|
|
7655
7644
|
}));
|
|
7656
7645
|
});
|
|
7657
7646
|
ModalHeader.displayName = 'ModalHeader';
|
|
7658
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7647
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7659
7648
|
|
|
7660
|
-
var DivStyledAsH4
|
|
7649
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7661
7650
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7662
|
-
Component: DivStyledAsH4
|
|
7651
|
+
Component: DivStyledAsH4
|
|
7663
7652
|
});
|
|
7664
7653
|
|
|
7665
|
-
var manager
|
|
7666
|
-
var defaultProps$
|
|
7654
|
+
var manager;
|
|
7655
|
+
var defaultProps$d = {
|
|
7667
7656
|
show: false,
|
|
7668
7657
|
backdrop: true,
|
|
7669
7658
|
keyboard: true,
|
|
@@ -7676,16 +7665,16 @@ var defaultProps$r = {
|
|
|
7676
7665
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7677
7666
|
|
|
7678
7667
|
function DialogTransition(props) {
|
|
7679
|
-
return /*#__PURE__*/
|
|
7668
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7680
7669
|
}
|
|
7681
7670
|
|
|
7682
7671
|
function BackdropTransition(props) {
|
|
7683
|
-
return /*#__PURE__*/
|
|
7672
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7684
7673
|
}
|
|
7685
7674
|
/* eslint-enable no-use-before-define */
|
|
7686
7675
|
|
|
7687
7676
|
|
|
7688
|
-
var Modal
|
|
7677
|
+
var Modal = React.forwardRef(function (_ref, ref) {
|
|
7689
7678
|
var bsPrefix = _ref.bsPrefix,
|
|
7690
7679
|
className = _ref.className,
|
|
7691
7680
|
style = _ref.style,
|
|
@@ -7714,7 +7703,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7714
7703
|
onExited = _ref.onExited,
|
|
7715
7704
|
backdropClassName = _ref.backdropClassName,
|
|
7716
7705
|
propsManager = _ref.manager,
|
|
7717
|
-
props = _objectWithoutPropertiesLoose
|
|
7706
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7718
7707
|
|
|
7719
7708
|
var _useState = useState({}),
|
|
7720
7709
|
modalStyle = _useState[0],
|
|
@@ -7751,14 +7740,14 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7751
7740
|
|
|
7752
7741
|
function getModalManager() {
|
|
7753
7742
|
if (propsManager) return propsManager;
|
|
7754
|
-
if (!manager
|
|
7755
|
-
return manager
|
|
7743
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7744
|
+
return manager;
|
|
7756
7745
|
}
|
|
7757
7746
|
|
|
7758
7747
|
function updateDialogStyle(node) {
|
|
7759
7748
|
if (!canUseDOM) return;
|
|
7760
7749
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7761
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7750
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7762
7751
|
setStyle({
|
|
7763
7752
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7764
7753
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7880,12 +7869,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7880
7869
|
};
|
|
7881
7870
|
|
|
7882
7871
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7883
|
-
return /*#__PURE__*/
|
|
7872
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7884
7873
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7885
7874
|
}));
|
|
7886
7875
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7887
7876
|
|
|
7888
|
-
var baseModalStyle = _extends
|
|
7877
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7889
7878
|
|
|
7890
7879
|
|
|
7891
7880
|
if (!animation) {
|
|
@@ -7893,7 +7882,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7893
7882
|
}
|
|
7894
7883
|
|
|
7895
7884
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7896
|
-
return /*#__PURE__*/
|
|
7885
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7897
7886
|
role: "dialog"
|
|
7898
7887
|
}, dialogProps, {
|
|
7899
7888
|
style: baseModalStyle,
|
|
@@ -7901,7 +7890,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7901
7890
|
onClick: backdrop ? handleClick : undefined,
|
|
7902
7891
|
onMouseUp: handleMouseUp,
|
|
7903
7892
|
"aria-labelledby": ariaLabelledby
|
|
7904
|
-
}), /*#__PURE__*/
|
|
7893
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7905
7894
|
role: "document",
|
|
7906
7895
|
onMouseDown: handleDialogMouseDown,
|
|
7907
7896
|
className: dialogClassName,
|
|
@@ -7909,9 +7898,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7909
7898
|
}), children));
|
|
7910
7899
|
};
|
|
7911
7900
|
|
|
7912
|
-
return /*#__PURE__*/
|
|
7901
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7913
7902
|
value: modalContext
|
|
7914
|
-
}, /*#__PURE__*/
|
|
7903
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7915
7904
|
show: show,
|
|
7916
7905
|
ref: setModalRef,
|
|
7917
7906
|
backdrop: backdrop,
|
|
@@ -7939,38 +7928,38 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7939
7928
|
renderDialog: renderDialog
|
|
7940
7929
|
}));
|
|
7941
7930
|
});
|
|
7942
|
-
Modal
|
|
7943
|
-
Modal
|
|
7944
|
-
Modal
|
|
7945
|
-
Modal
|
|
7946
|
-
Modal
|
|
7947
|
-
Modal
|
|
7948
|
-
Modal
|
|
7949
|
-
Modal
|
|
7950
|
-
Modal
|
|
7951
|
-
|
|
7952
|
-
var NavItem =
|
|
7931
|
+
Modal.displayName = 'Modal';
|
|
7932
|
+
Modal.defaultProps = defaultProps$d;
|
|
7933
|
+
Modal.Body = ModalBody;
|
|
7934
|
+
Modal.Header = ModalHeader;
|
|
7935
|
+
Modal.Title = ModalTitle;
|
|
7936
|
+
Modal.Footer = ModalFooter;
|
|
7937
|
+
Modal.Dialog = ModalDialog;
|
|
7938
|
+
Modal.TRANSITION_DURATION = 300;
|
|
7939
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7940
|
+
|
|
7941
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7953
7942
|
function (_ref, ref) {
|
|
7954
7943
|
var bsPrefix = _ref.bsPrefix,
|
|
7955
7944
|
className = _ref.className,
|
|
7956
7945
|
children = _ref.children,
|
|
7957
7946
|
_ref$as = _ref.as,
|
|
7958
7947
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7959
|
-
props = _objectWithoutPropertiesLoose
|
|
7948
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7960
7949
|
|
|
7961
7950
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7962
|
-
return /*#__PURE__*/
|
|
7951
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7963
7952
|
ref: ref,
|
|
7964
7953
|
className: classnames(className, bsPrefix)
|
|
7965
7954
|
}), children);
|
|
7966
7955
|
});
|
|
7967
7956
|
NavItem.displayName = 'NavItem';
|
|
7968
7957
|
|
|
7969
|
-
var defaultProps$
|
|
7958
|
+
var defaultProps$c = {
|
|
7970
7959
|
disabled: false,
|
|
7971
7960
|
as: SafeAnchor
|
|
7972
7961
|
};
|
|
7973
|
-
var NavLink =
|
|
7962
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7974
7963
|
var bsPrefix = _ref.bsPrefix,
|
|
7975
7964
|
disabled = _ref.disabled,
|
|
7976
7965
|
className = _ref.className,
|
|
@@ -7978,10 +7967,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7978
7967
|
eventKey = _ref.eventKey,
|
|
7979
7968
|
onSelect = _ref.onSelect,
|
|
7980
7969
|
as = _ref.as,
|
|
7981
|
-
props = _objectWithoutPropertiesLoose
|
|
7970
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7982
7971
|
|
|
7983
7972
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7984
|
-
return /*#__PURE__*/
|
|
7973
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7985
7974
|
href: href,
|
|
7986
7975
|
ref: ref,
|
|
7987
7976
|
eventKey: eventKey,
|
|
@@ -7992,13 +7981,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7992
7981
|
}));
|
|
7993
7982
|
});
|
|
7994
7983
|
NavLink.displayName = 'NavLink';
|
|
7995
|
-
NavLink.defaultProps = defaultProps$
|
|
7984
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7996
7985
|
|
|
7997
|
-
var defaultProps$
|
|
7986
|
+
var defaultProps$b = {
|
|
7998
7987
|
justify: false,
|
|
7999
7988
|
fill: false
|
|
8000
7989
|
};
|
|
8001
|
-
var Nav =
|
|
7990
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8002
7991
|
var _classNames;
|
|
8003
7992
|
|
|
8004
7993
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8014,13 +8003,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8014
8003
|
className = _useUncontrolled.className,
|
|
8015
8004
|
children = _useUncontrolled.children,
|
|
8016
8005
|
activeKey = _useUncontrolled.activeKey,
|
|
8017
|
-
props = _objectWithoutPropertiesLoose
|
|
8006
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8018
8007
|
|
|
8019
8008
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8020
8009
|
var navbarBsPrefix;
|
|
8021
8010
|
var cardHeaderBsPrefix;
|
|
8022
8011
|
var isNavbar = false;
|
|
8023
|
-
var navbarContext = useContext(context
|
|
8012
|
+
var navbarContext = useContext(context);
|
|
8024
8013
|
var cardContext = useContext(context$1);
|
|
8025
8014
|
|
|
8026
8015
|
if (navbarContext) {
|
|
@@ -8030,7 +8019,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8030
8019
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8031
8020
|
}
|
|
8032
8021
|
|
|
8033
|
-
return /*#__PURE__*/
|
|
8022
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8034
8023
|
as: as,
|
|
8035
8024
|
ref: ref,
|
|
8036
8025
|
activeKey: activeKey,
|
|
@@ -8038,35 +8027,35 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8038
8027
|
}, props), children);
|
|
8039
8028
|
});
|
|
8040
8029
|
Nav.displayName = 'Nav';
|
|
8041
|
-
Nav.defaultProps = defaultProps$
|
|
8030
|
+
Nav.defaultProps = defaultProps$b;
|
|
8042
8031
|
Nav.Item = NavItem;
|
|
8043
8032
|
Nav.Link = NavLink;
|
|
8044
8033
|
|
|
8045
|
-
var NavbarBrand =
|
|
8034
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8046
8035
|
var bsPrefix = _ref.bsPrefix,
|
|
8047
8036
|
className = _ref.className,
|
|
8048
8037
|
as = _ref.as,
|
|
8049
|
-
props = _objectWithoutPropertiesLoose
|
|
8038
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8050
8039
|
|
|
8051
8040
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8052
8041
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8053
|
-
return /*#__PURE__*/
|
|
8042
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8054
8043
|
ref: ref,
|
|
8055
8044
|
className: classnames(className, bsPrefix)
|
|
8056
8045
|
}));
|
|
8057
8046
|
});
|
|
8058
8047
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8059
8048
|
|
|
8060
|
-
var NavbarCollapse =
|
|
8049
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8061
8050
|
var children = _ref.children,
|
|
8062
8051
|
bsPrefix = _ref.bsPrefix,
|
|
8063
|
-
props = _objectWithoutPropertiesLoose
|
|
8052
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8064
8053
|
|
|
8065
8054
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8066
|
-
return /*#__PURE__*/
|
|
8067
|
-
return /*#__PURE__*/
|
|
8055
|
+
return /*#__PURE__*/React.createElement(context.Consumer, null, function (context) {
|
|
8056
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8068
8057
|
in: !!(context && context.expanded)
|
|
8069
|
-
}, props), /*#__PURE__*/
|
|
8058
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8070
8059
|
ref: ref,
|
|
8071
8060
|
className: bsPrefix
|
|
8072
8061
|
}, children));
|
|
@@ -8074,10 +8063,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8074
8063
|
});
|
|
8075
8064
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8076
8065
|
|
|
8077
|
-
var defaultProps$
|
|
8066
|
+
var defaultProps$a = {
|
|
8078
8067
|
label: 'Toggle navigation'
|
|
8079
8068
|
};
|
|
8080
|
-
var NavbarToggle =
|
|
8069
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8081
8070
|
var bsPrefix = _ref.bsPrefix,
|
|
8082
8071
|
className = _ref.className,
|
|
8083
8072
|
children = _ref.children,
|
|
@@ -8085,11 +8074,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8085
8074
|
_ref$as = _ref.as,
|
|
8086
8075
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8087
8076
|
onClick = _ref.onClick,
|
|
8088
|
-
props = _objectWithoutPropertiesLoose
|
|
8077
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8089
8078
|
|
|
8090
8079
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8091
8080
|
|
|
8092
|
-
var _ref2 = useContext(context
|
|
8081
|
+
var _ref2 = useContext(context) || {},
|
|
8093
8082
|
onToggle = _ref2.onToggle,
|
|
8094
8083
|
expanded = _ref2.expanded;
|
|
8095
8084
|
|
|
@@ -8102,27 +8091,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8102
8091
|
props.type = 'button';
|
|
8103
8092
|
}
|
|
8104
8093
|
|
|
8105
|
-
return /*#__PURE__*/
|
|
8094
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8106
8095
|
ref: ref,
|
|
8107
8096
|
onClick: handleClick,
|
|
8108
8097
|
"aria-label": label,
|
|
8109
8098
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8110
|
-
}), children || /*#__PURE__*/
|
|
8099
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8111
8100
|
className: bsPrefix + "-icon"
|
|
8112
8101
|
}));
|
|
8113
8102
|
});
|
|
8114
8103
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8115
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8104
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8116
8105
|
|
|
8117
8106
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8118
8107
|
Component: 'span'
|
|
8119
8108
|
});
|
|
8120
|
-
var defaultProps$
|
|
8109
|
+
var defaultProps$9 = {
|
|
8121
8110
|
expand: true,
|
|
8122
8111
|
variant: 'light',
|
|
8123
8112
|
collapseOnSelect: false
|
|
8124
8113
|
};
|
|
8125
|
-
var Navbar =
|
|
8114
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8126
8115
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8127
8116
|
expanded: 'onToggle'
|
|
8128
8117
|
}),
|
|
@@ -8140,7 +8129,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8140
8129
|
_onToggle = _useUncontrolled.onToggle,
|
|
8141
8130
|
onSelect = _useUncontrolled.onSelect,
|
|
8142
8131
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8143
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8132
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8144
8133
|
|
|
8145
8134
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8146
8135
|
var handleCollapse = useCallback(function () {
|
|
@@ -8170,24 +8159,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8170
8159
|
expanded: !!expanded
|
|
8171
8160
|
};
|
|
8172
8161
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8173
|
-
return /*#__PURE__*/
|
|
8162
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
8174
8163
|
value: navbarContext
|
|
8175
|
-
}, /*#__PURE__*/
|
|
8164
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8176
8165
|
value: handleCollapse
|
|
8177
|
-
}, /*#__PURE__*/
|
|
8166
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8178
8167
|
ref: ref
|
|
8179
8168
|
}, controlledProps, {
|
|
8180
8169
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8181
8170
|
}), children)));
|
|
8182
8171
|
});
|
|
8183
|
-
Navbar.defaultProps = defaultProps$
|
|
8172
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8184
8173
|
Navbar.displayName = 'Navbar';
|
|
8185
8174
|
Navbar.Brand = NavbarBrand;
|
|
8186
8175
|
Navbar.Toggle = NavbarToggle;
|
|
8187
8176
|
Navbar.Collapse = NavbarCollapse;
|
|
8188
8177
|
Navbar.Text = NavbarText;
|
|
8189
8178
|
|
|
8190
|
-
var propTypes$
|
|
8179
|
+
var propTypes$1 = {
|
|
8191
8180
|
/**
|
|
8192
8181
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8193
8182
|
* @type {string|number}
|
|
@@ -8223,7 +8212,7 @@ var propTypes$9 = {
|
|
|
8223
8212
|
/** @ignore */
|
|
8224
8213
|
bsPrefix: PropTypes.string
|
|
8225
8214
|
};
|
|
8226
|
-
var NavDropdown =
|
|
8215
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8227
8216
|
var id = _ref.id,
|
|
8228
8217
|
title = _ref.title,
|
|
8229
8218
|
children = _ref.children,
|
|
@@ -8233,37 +8222,37 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8233
8222
|
disabled = _ref.disabled,
|
|
8234
8223
|
active = _ref.active,
|
|
8235
8224
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8236
|
-
props = _objectWithoutPropertiesLoose
|
|
8225
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8237
8226
|
|
|
8238
|
-
return /*#__PURE__*/
|
|
8227
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8239
8228
|
ref: ref
|
|
8240
8229
|
}, props, {
|
|
8241
8230
|
as: NavItem
|
|
8242
|
-
}), /*#__PURE__*/
|
|
8231
|
+
}), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8243
8232
|
id: id,
|
|
8244
8233
|
eventKey: null,
|
|
8245
8234
|
active: active,
|
|
8246
8235
|
disabled: disabled,
|
|
8247
8236
|
childBsPrefix: bsPrefix,
|
|
8248
8237
|
as: NavLink
|
|
8249
|
-
}, title), /*#__PURE__*/
|
|
8238
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8250
8239
|
role: menuRole,
|
|
8251
8240
|
renderOnMount: renderMenuOnMount,
|
|
8252
8241
|
rootCloseEvent: rootCloseEvent
|
|
8253
8242
|
}, children));
|
|
8254
8243
|
});
|
|
8255
8244
|
NavDropdown.displayName = 'NavDropdown';
|
|
8256
|
-
NavDropdown.propTypes = propTypes$
|
|
8257
|
-
NavDropdown.Item = Dropdown
|
|
8258
|
-
NavDropdown.ItemText = Dropdown
|
|
8259
|
-
NavDropdown.Divider = Dropdown
|
|
8260
|
-
NavDropdown.Header = Dropdown
|
|
8245
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8246
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8247
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8248
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8249
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8261
8250
|
|
|
8262
8251
|
/**
|
|
8263
8252
|
* Built on top of `Popper.js`, the overlay component is
|
|
8264
8253
|
* great for custom tooltip overlays.
|
|
8265
8254
|
*/
|
|
8266
|
-
var Overlay = /*#__PURE__*/
|
|
8255
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8267
8256
|
var flip = props.flip,
|
|
8268
8257
|
offset = props.offset,
|
|
8269
8258
|
placement = props.placement,
|
|
@@ -8346,7 +8335,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8346
8335
|
onEnter = props.onEnter,
|
|
8347
8336
|
onEntering = props.onEntering,
|
|
8348
8337
|
onEntered = props.onEntered;
|
|
8349
|
-
child = /*#__PURE__*/
|
|
8338
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8350
8339
|
"in": props.show,
|
|
8351
8340
|
appear: true,
|
|
8352
8341
|
onExit: onExit,
|
|
@@ -8498,7 +8487,7 @@ Overlay.propTypes = {
|
|
|
8498
8487
|
onExited: PropTypes.func
|
|
8499
8488
|
};
|
|
8500
8489
|
|
|
8501
|
-
|
|
8490
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8502
8491
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8503
8492
|
|
|
8504
8493
|
function RefHolder() {
|
|
@@ -8512,38 +8501,38 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8512
8501
|
};
|
|
8513
8502
|
|
|
8514
8503
|
return RefHolder;
|
|
8515
|
-
}(
|
|
8504
|
+
})(React.Component);
|
|
8516
8505
|
|
|
8517
|
-
var defaultProps$
|
|
8506
|
+
var defaultProps$8 = {
|
|
8518
8507
|
active: false,
|
|
8519
8508
|
disabled: false,
|
|
8520
8509
|
activeLabel: '(current)'
|
|
8521
8510
|
};
|
|
8522
|
-
var PageItem =
|
|
8511
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8523
8512
|
var active = _ref.active,
|
|
8524
8513
|
disabled = _ref.disabled,
|
|
8525
8514
|
className = _ref.className,
|
|
8526
8515
|
style = _ref.style,
|
|
8527
8516
|
activeLabel = _ref.activeLabel,
|
|
8528
8517
|
children = _ref.children,
|
|
8529
|
-
props = _objectWithoutPropertiesLoose
|
|
8518
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8530
8519
|
|
|
8531
8520
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8532
|
-
return /*#__PURE__*/
|
|
8521
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8533
8522
|
ref: ref,
|
|
8534
8523
|
style: style,
|
|
8535
8524
|
className: classnames(className, 'page-item', {
|
|
8536
8525
|
active: active,
|
|
8537
8526
|
disabled: disabled
|
|
8538
8527
|
})
|
|
8539
|
-
}, /*#__PURE__*/
|
|
8528
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8540
8529
|
className: "page-link",
|
|
8541
8530
|
disabled: disabled
|
|
8542
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8531
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8543
8532
|
className: "sr-only"
|
|
8544
8533
|
}, activeLabel)));
|
|
8545
8534
|
});
|
|
8546
|
-
PageItem.defaultProps = defaultProps$
|
|
8535
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8547
8536
|
PageItem.displayName = 'PageItem';
|
|
8548
8537
|
|
|
8549
8538
|
function createButton(name, defaultValue, label) {
|
|
@@ -8553,11 +8542,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8553
8542
|
|
|
8554
8543
|
function Button(_ref2) {
|
|
8555
8544
|
var children = _ref2.children,
|
|
8556
|
-
props = _objectWithoutPropertiesLoose
|
|
8545
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8557
8546
|
|
|
8558
|
-
return /*#__PURE__*/
|
|
8547
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8559
8548
|
"aria-hidden": "true"
|
|
8560
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8549
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8561
8550
|
className: "sr-only"
|
|
8562
8551
|
}, label));
|
|
8563
8552
|
}
|
|
@@ -8580,15 +8569,15 @@ var Last = createButton('Last', '»');
|
|
|
8580
8569
|
* @property {PageItem} Next
|
|
8581
8570
|
* @property {PageItem} Last
|
|
8582
8571
|
*/
|
|
8583
|
-
var Pagination =
|
|
8572
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8584
8573
|
var bsPrefix = _ref.bsPrefix,
|
|
8585
8574
|
className = _ref.className,
|
|
8586
8575
|
children = _ref.children,
|
|
8587
8576
|
size = _ref.size,
|
|
8588
|
-
props = _objectWithoutPropertiesLoose
|
|
8577
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8589
8578
|
|
|
8590
8579
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8591
|
-
return /*#__PURE__*/
|
|
8580
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8592
8581
|
ref: ref
|
|
8593
8582
|
}, props, {
|
|
8594
8583
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8601,75 +8590,75 @@ Pagination.Item = PageItem;
|
|
|
8601
8590
|
Pagination.Next = Next;
|
|
8602
8591
|
Pagination.Last = Last;
|
|
8603
8592
|
|
|
8604
|
-
var PopoverTitle =
|
|
8593
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8605
8594
|
var _ref$as = _ref.as,
|
|
8606
8595
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8607
8596
|
bsPrefix = _ref.bsPrefix,
|
|
8608
8597
|
className = _ref.className,
|
|
8609
8598
|
children = _ref.children,
|
|
8610
|
-
props = _objectWithoutPropertiesLoose
|
|
8599
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8611
8600
|
|
|
8612
8601
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8613
|
-
return /*#__PURE__*/
|
|
8602
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8614
8603
|
ref: ref
|
|
8615
8604
|
}, props, {
|
|
8616
8605
|
className: classnames(bsPrefix, className)
|
|
8617
8606
|
}), children);
|
|
8618
8607
|
});
|
|
8619
8608
|
|
|
8620
|
-
var PopoverContent =
|
|
8609
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8621
8610
|
var _ref$as = _ref.as,
|
|
8622
8611
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8623
8612
|
bsPrefix = _ref.bsPrefix,
|
|
8624
8613
|
className = _ref.className,
|
|
8625
8614
|
children = _ref.children,
|
|
8626
|
-
props = _objectWithoutPropertiesLoose
|
|
8615
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8627
8616
|
|
|
8628
8617
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8629
|
-
return /*#__PURE__*/
|
|
8618
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8630
8619
|
ref: ref
|
|
8631
8620
|
}, props, {
|
|
8632
8621
|
className: classnames(className, bsPrefix)
|
|
8633
8622
|
}), children);
|
|
8634
8623
|
});
|
|
8635
8624
|
|
|
8636
|
-
var defaultProps$
|
|
8625
|
+
var defaultProps$7 = {
|
|
8637
8626
|
placement: 'right'
|
|
8638
8627
|
};
|
|
8639
|
-
var Popover =
|
|
8628
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8640
8629
|
var bsPrefix = _ref.bsPrefix,
|
|
8641
8630
|
placement = _ref.placement,
|
|
8642
8631
|
className = _ref.className,
|
|
8643
8632
|
style = _ref.style,
|
|
8644
8633
|
children = _ref.children,
|
|
8645
8634
|
content = _ref.content,
|
|
8646
|
-
arrowProps = _ref.arrowProps
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
props = _objectWithoutPropertiesLoose
|
|
8635
|
+
arrowProps = _ref.arrowProps;
|
|
8636
|
+
_ref.popper;
|
|
8637
|
+
_ref.show;
|
|
8638
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8650
8639
|
|
|
8651
8640
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8652
8641
|
|
|
8653
8642
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8654
8643
|
primaryPlacement = _ref2[0];
|
|
8655
8644
|
|
|
8656
|
-
return /*#__PURE__*/
|
|
8645
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8657
8646
|
ref: ref,
|
|
8658
8647
|
role: "tooltip",
|
|
8659
8648
|
style: style,
|
|
8660
8649
|
"x-placement": primaryPlacement,
|
|
8661
8650
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8662
|
-
}, props), /*#__PURE__*/
|
|
8651
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8663
8652
|
className: "arrow"
|
|
8664
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8653
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8665
8654
|
});
|
|
8666
|
-
Popover.defaultProps = defaultProps$
|
|
8655
|
+
Popover.defaultProps = defaultProps$7;
|
|
8667
8656
|
Popover.Title = PopoverTitle;
|
|
8668
8657
|
Popover.Content = PopoverContent;
|
|
8669
8658
|
|
|
8670
8659
|
var ROUND_PRECISION = 1000;
|
|
8671
8660
|
|
|
8672
|
-
var defaultProps$
|
|
8661
|
+
var defaultProps$6 = {
|
|
8673
8662
|
min: 0,
|
|
8674
8663
|
max: 100,
|
|
8675
8664
|
animated: false,
|
|
@@ -8697,27 +8686,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8697
8686
|
style = _ref.style,
|
|
8698
8687
|
variant = _ref.variant,
|
|
8699
8688
|
bsPrefix = _ref.bsPrefix,
|
|
8700
|
-
props = _objectWithoutPropertiesLoose
|
|
8689
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8701
8690
|
|
|
8702
|
-
return /*#__PURE__*/
|
|
8691
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8703
8692
|
ref: ref
|
|
8704
8693
|
}, props, {
|
|
8705
8694
|
role: "progressbar",
|
|
8706
8695
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8707
|
-
style: _extends
|
|
8696
|
+
style: _extends({
|
|
8708
8697
|
width: getPercentage(now, min, max) + "%"
|
|
8709
8698
|
}, style),
|
|
8710
8699
|
"aria-valuenow": now,
|
|
8711
8700
|
"aria-valuemin": min,
|
|
8712
8701
|
"aria-valuemax": max
|
|
8713
|
-
}), srOnly ? /*#__PURE__*/
|
|
8702
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8714
8703
|
className: "sr-only"
|
|
8715
8704
|
}, label) : label);
|
|
8716
8705
|
}
|
|
8717
8706
|
|
|
8718
|
-
var ProgressBar =
|
|
8707
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8719
8708
|
var isChild = _ref2.isChild,
|
|
8720
|
-
props = _objectWithoutPropertiesLoose
|
|
8709
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8721
8710
|
|
|
8722
8711
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8723
8712
|
|
|
@@ -8736,9 +8725,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8736
8725
|
variant = props.variant,
|
|
8737
8726
|
className = props.className,
|
|
8738
8727
|
children = props.children,
|
|
8739
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8728
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8740
8729
|
|
|
8741
|
-
return /*#__PURE__*/
|
|
8730
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8742
8731
|
ref: ref
|
|
8743
8732
|
}, wrapperProps, {
|
|
8744
8733
|
className: classnames(className, bsPrefix)
|
|
@@ -8759,46 +8748,46 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8759
8748
|
}, ref));
|
|
8760
8749
|
});
|
|
8761
8750
|
ProgressBar.displayName = 'ProgressBar';
|
|
8762
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8751
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8763
8752
|
|
|
8764
|
-
var defaultProps$
|
|
8753
|
+
var defaultProps$5 = {
|
|
8765
8754
|
aspectRatio: '1by1'
|
|
8766
8755
|
};
|
|
8767
|
-
var ResponsiveEmbed =
|
|
8756
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8768
8757
|
var bsPrefix = _ref.bsPrefix,
|
|
8769
8758
|
className = _ref.className,
|
|
8770
8759
|
children = _ref.children,
|
|
8771
8760
|
aspectRatio = _ref.aspectRatio,
|
|
8772
|
-
props = _objectWithoutPropertiesLoose
|
|
8761
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8773
8762
|
|
|
8774
8763
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8775
|
-
var child =
|
|
8776
|
-
return /*#__PURE__*/
|
|
8764
|
+
var child = React.Children.only(children);
|
|
8765
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8777
8766
|
ref: ref
|
|
8778
8767
|
}, props, {
|
|
8779
8768
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8780
|
-
}),
|
|
8769
|
+
}), React.cloneElement(child, {
|
|
8781
8770
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8782
8771
|
}));
|
|
8783
8772
|
});
|
|
8784
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8773
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8785
8774
|
|
|
8786
|
-
var DEVICE_SIZES
|
|
8787
|
-
var defaultProps$
|
|
8775
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8776
|
+
var defaultProps$4 = {
|
|
8788
8777
|
noGutters: false
|
|
8789
8778
|
};
|
|
8790
|
-
var Row =
|
|
8779
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8791
8780
|
var bsPrefix = _ref.bsPrefix,
|
|
8792
8781
|
className = _ref.className,
|
|
8793
8782
|
noGutters = _ref.noGutters,
|
|
8794
8783
|
_ref$as = _ref.as,
|
|
8795
8784
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8796
|
-
props = _objectWithoutPropertiesLoose
|
|
8785
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8797
8786
|
|
|
8798
8787
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8799
8788
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8800
8789
|
var classes = [];
|
|
8801
|
-
DEVICE_SIZES
|
|
8790
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8802
8791
|
var propValue = props[brkPoint];
|
|
8803
8792
|
delete props[brkPoint];
|
|
8804
8793
|
var cols;
|
|
@@ -8812,16 +8801,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8812
8801
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8813
8802
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8814
8803
|
});
|
|
8815
|
-
return /*#__PURE__*/
|
|
8804
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8816
8805
|
ref: ref
|
|
8817
8806
|
}, props, {
|
|
8818
8807
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8819
8808
|
}));
|
|
8820
8809
|
});
|
|
8821
8810
|
Row.displayName = 'Row';
|
|
8822
|
-
Row.defaultProps = defaultProps$
|
|
8811
|
+
Row.defaultProps = defaultProps$4;
|
|
8823
8812
|
|
|
8824
|
-
var Spinner =
|
|
8813
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8825
8814
|
var bsPrefix = _ref.bsPrefix,
|
|
8826
8815
|
variant = _ref.variant,
|
|
8827
8816
|
animation = _ref.animation,
|
|
@@ -8830,11 +8819,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8830
8819
|
_ref$as = _ref.as,
|
|
8831
8820
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8832
8821
|
className = _ref.className,
|
|
8833
|
-
props = _objectWithoutPropertiesLoose
|
|
8822
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8834
8823
|
|
|
8835
8824
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8836
8825
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8837
|
-
return /*#__PURE__*/
|
|
8826
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8838
8827
|
ref: ref
|
|
8839
8828
|
}, props, {
|
|
8840
8829
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8842,7 +8831,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8842
8831
|
});
|
|
8843
8832
|
Spinner.displayName = 'Spinner';
|
|
8844
8833
|
|
|
8845
|
-
var propTypes
|
|
8834
|
+
var propTypes = {
|
|
8846
8835
|
/**
|
|
8847
8836
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8848
8837
|
* @type {string|number}
|
|
@@ -8904,11 +8893,11 @@ var propTypes$a = {
|
|
|
8904
8893
|
/** @ignore */
|
|
8905
8894
|
size: PropTypes.string
|
|
8906
8895
|
};
|
|
8907
|
-
var defaultProps$
|
|
8896
|
+
var defaultProps$3 = {
|
|
8908
8897
|
toggleLabel: 'Toggle dropdown',
|
|
8909
8898
|
type: 'button'
|
|
8910
8899
|
};
|
|
8911
|
-
var SplitButton =
|
|
8900
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8912
8901
|
var id = _ref.id,
|
|
8913
8902
|
bsPrefix = _ref.bsPrefix,
|
|
8914
8903
|
size = _ref.size,
|
|
@@ -8924,13 +8913,13 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8924
8913
|
menuRole = _ref.menuRole,
|
|
8925
8914
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8926
8915
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8927
|
-
props = _objectWithoutPropertiesLoose
|
|
8916
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8928
8917
|
|
|
8929
|
-
return /*#__PURE__*/
|
|
8918
|
+
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
8930
8919
|
ref: ref
|
|
8931
8920
|
}, props, {
|
|
8932
8921
|
as: ButtonGroup
|
|
8933
|
-
}), /*#__PURE__*/
|
|
8922
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8934
8923
|
size: size,
|
|
8935
8924
|
variant: variant,
|
|
8936
8925
|
disabled: props.disabled,
|
|
@@ -8939,24 +8928,24 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8939
8928
|
target: target,
|
|
8940
8929
|
onClick: onClick,
|
|
8941
8930
|
type: type
|
|
8942
|
-
}, title), /*#__PURE__*/
|
|
8931
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown.Toggle, {
|
|
8943
8932
|
split: true,
|
|
8944
8933
|
id: id ? id.toString() : undefined,
|
|
8945
8934
|
size: size,
|
|
8946
8935
|
variant: variant,
|
|
8947
8936
|
disabled: props.disabled,
|
|
8948
8937
|
childBsPrefix: bsPrefix
|
|
8949
|
-
}, /*#__PURE__*/
|
|
8938
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8950
8939
|
className: "sr-only"
|
|
8951
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8940
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
8952
8941
|
align: menuAlign,
|
|
8953
8942
|
role: menuRole,
|
|
8954
8943
|
renderOnMount: renderMenuOnMount,
|
|
8955
8944
|
rootCloseEvent: rootCloseEvent
|
|
8956
8945
|
}, children));
|
|
8957
8946
|
});
|
|
8958
|
-
SplitButton.propTypes = propTypes
|
|
8959
|
-
SplitButton.defaultProps = defaultProps$
|
|
8947
|
+
SplitButton.propTypes = propTypes;
|
|
8948
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8960
8949
|
SplitButton.displayName = 'SplitButton';
|
|
8961
8950
|
|
|
8962
8951
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8992,22 +8981,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8992
8981
|
}
|
|
8993
8982
|
};
|
|
8994
8983
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8995
|
-
return /*#__PURE__*/
|
|
8984
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8996
8985
|
value: tabContext
|
|
8997
|
-
}, /*#__PURE__*/
|
|
8986
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8998
8987
|
value: onSelect || null
|
|
8999
8988
|
}, children));
|
|
9000
8989
|
};
|
|
9001
8990
|
|
|
9002
|
-
var TabContent =
|
|
8991
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9003
8992
|
var bsPrefix = _ref.bsPrefix,
|
|
9004
8993
|
_ref$as = _ref.as,
|
|
9005
8994
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9006
8995
|
className = _ref.className,
|
|
9007
|
-
props = _objectWithoutPropertiesLoose
|
|
8996
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9008
8997
|
|
|
9009
8998
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9010
|
-
return /*#__PURE__*/
|
|
8999
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9011
9000
|
ref: ref
|
|
9012
9001
|
}, props, {
|
|
9013
9002
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9021,11 +9010,11 @@ function useTabContext(props) {
|
|
|
9021
9010
|
var activeKey = context.activeKey,
|
|
9022
9011
|
getControlledId = context.getControlledId,
|
|
9023
9012
|
getControllerId = context.getControllerId,
|
|
9024
|
-
rest = _objectWithoutPropertiesLoose
|
|
9013
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9025
9014
|
|
|
9026
9015
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9027
9016
|
var key = makeEventKey(props.eventKey);
|
|
9028
|
-
return _extends
|
|
9017
|
+
return _extends({}, props, {
|
|
9029
9018
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9030
9019
|
id: getControlledId(props.eventKey),
|
|
9031
9020
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9035,7 +9024,7 @@ function useTabContext(props) {
|
|
|
9035
9024
|
});
|
|
9036
9025
|
}
|
|
9037
9026
|
|
|
9038
|
-
var TabPane =
|
|
9027
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9039
9028
|
var _useTabContext = useTabContext(props),
|
|
9040
9029
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9041
9030
|
className = _useTabContext.className,
|
|
@@ -9050,13 +9039,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9050
9039
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9051
9040
|
Transition = _useTabContext.transition,
|
|
9052
9041
|
_useTabContext$as = _useTabContext.as,
|
|
9053
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9054
|
-
|
|
9055
|
-
rest = _objectWithoutPropertiesLoose
|
|
9042
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9043
|
+
_useTabContext.eventKey;
|
|
9044
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9056
9045
|
|
|
9057
9046
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9058
9047
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9059
|
-
var pane = /*#__PURE__*/
|
|
9048
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9060
9049
|
ref: ref,
|
|
9061
9050
|
role: "tabpanel",
|
|
9062
9051
|
"aria-hidden": !active,
|
|
@@ -9064,7 +9053,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9064
9053
|
active: active
|
|
9065
9054
|
})
|
|
9066
9055
|
}));
|
|
9067
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9056
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9068
9057
|
in: active,
|
|
9069
9058
|
onEnter: onEnter,
|
|
9070
9059
|
onEntering: onEntering,
|
|
@@ -9077,9 +9066,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9077
9066
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9078
9067
|
// conflict with the top level one.
|
|
9079
9068
|
|
|
9080
|
-
return /*#__PURE__*/
|
|
9069
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9081
9070
|
value: null
|
|
9082
|
-
}, /*#__PURE__*/
|
|
9071
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9083
9072
|
value: null
|
|
9084
9073
|
}, pane));
|
|
9085
9074
|
});
|
|
@@ -9100,13 +9089,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9100
9089
|
};
|
|
9101
9090
|
|
|
9102
9091
|
return Tab;
|
|
9103
|
-
}(
|
|
9092
|
+
}(React.Component);
|
|
9104
9093
|
|
|
9105
9094
|
Tab.Container = TabContainer;
|
|
9106
9095
|
Tab.Content = TabContent;
|
|
9107
9096
|
Tab.Pane = TabPane;
|
|
9108
9097
|
|
|
9109
|
-
|
|
9098
|
+
React.forwardRef(function (_ref, ref) {
|
|
9110
9099
|
var bsPrefix = _ref.bsPrefix,
|
|
9111
9100
|
className = _ref.className,
|
|
9112
9101
|
striped = _ref.striped,
|
|
@@ -9116,11 +9105,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9116
9105
|
size = _ref.size,
|
|
9117
9106
|
variant = _ref.variant,
|
|
9118
9107
|
responsive = _ref.responsive,
|
|
9119
|
-
props = _objectWithoutPropertiesLoose
|
|
9108
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9120
9109
|
|
|
9121
9110
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9122
9111
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9123
|
-
var table = /*#__PURE__*/
|
|
9112
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9124
9113
|
className: classes,
|
|
9125
9114
|
ref: ref
|
|
9126
9115
|
}));
|
|
@@ -9132,7 +9121,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9132
9121
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9133
9122
|
}
|
|
9134
9123
|
|
|
9135
|
-
return /*#__PURE__*/
|
|
9124
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9136
9125
|
className: responsiveClass
|
|
9137
9126
|
}, table);
|
|
9138
9127
|
}
|
|
@@ -9140,22 +9129,22 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9140
9129
|
return table;
|
|
9141
9130
|
});
|
|
9142
9131
|
|
|
9143
|
-
var ToastContext =
|
|
9132
|
+
var ToastContext = React.createContext({
|
|
9144
9133
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9145
9134
|
onClose: function onClose() {}
|
|
9146
9135
|
});
|
|
9147
9136
|
|
|
9148
|
-
var defaultProps$
|
|
9137
|
+
var defaultProps$2 = {
|
|
9149
9138
|
closeLabel: 'Close',
|
|
9150
9139
|
closeButton: true
|
|
9151
9140
|
};
|
|
9152
|
-
var ToastHeader =
|
|
9141
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9153
9142
|
var bsPrefix = _ref.bsPrefix,
|
|
9154
9143
|
closeLabel = _ref.closeLabel,
|
|
9155
9144
|
closeButton = _ref.closeButton,
|
|
9156
9145
|
className = _ref.className,
|
|
9157
9146
|
children = _ref.children,
|
|
9158
|
-
props = _objectWithoutPropertiesLoose
|
|
9147
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9159
9148
|
|
|
9160
9149
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9161
9150
|
var context = useContext(ToastContext);
|
|
@@ -9164,11 +9153,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9164
9153
|
context.onClose(e);
|
|
9165
9154
|
}
|
|
9166
9155
|
});
|
|
9167
|
-
return /*#__PURE__*/
|
|
9156
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9168
9157
|
ref: ref
|
|
9169
9158
|
}, props, {
|
|
9170
9159
|
className: classnames(bsPrefix, className)
|
|
9171
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9160
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9172
9161
|
label: closeLabel,
|
|
9173
9162
|
onClick: handleClick,
|
|
9174
9163
|
className: "ml-2 mb-1",
|
|
@@ -9176,11 +9165,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9176
9165
|
}));
|
|
9177
9166
|
});
|
|
9178
9167
|
ToastHeader.displayName = 'ToastHeader';
|
|
9179
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9168
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9180
9169
|
|
|
9181
9170
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9182
9171
|
|
|
9183
|
-
var Toast =
|
|
9172
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9184
9173
|
var bsPrefix = _ref.bsPrefix,
|
|
9185
9174
|
className = _ref.className,
|
|
9186
9175
|
children = _ref.children,
|
|
@@ -9195,7 +9184,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9195
9184
|
_ref$autohide = _ref.autohide,
|
|
9196
9185
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9197
9186
|
onClose = _ref.onClose,
|
|
9198
|
-
props = _objectWithoutPropertiesLoose
|
|
9187
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9199
9188
|
|
|
9200
9189
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9201
9190
|
// timer in case these values change.
|
|
@@ -9223,16 +9212,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9223
9212
|
};
|
|
9224
9213
|
}, [onClose]);
|
|
9225
9214
|
var hasAnimation = !!(Transition && animation);
|
|
9226
|
-
var toast = /*#__PURE__*/
|
|
9215
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9227
9216
|
ref: ref,
|
|
9228
9217
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9229
9218
|
role: "alert",
|
|
9230
9219
|
"aria-live": "assertive",
|
|
9231
9220
|
"aria-atomic": "true"
|
|
9232
9221
|
}), children);
|
|
9233
|
-
return /*#__PURE__*/
|
|
9222
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9234
9223
|
value: toastContext
|
|
9235
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9224
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9236
9225
|
in: show,
|
|
9237
9226
|
unmountOnExit: true
|
|
9238
9227
|
}, toast) : toast);
|
|
@@ -9243,11 +9232,11 @@ Object.assign(Toast, {
|
|
|
9243
9232
|
Header: ToastHeader
|
|
9244
9233
|
});
|
|
9245
9234
|
|
|
9246
|
-
var noop
|
|
9235
|
+
var noop = function noop() {
|
|
9247
9236
|
return undefined;
|
|
9248
9237
|
};
|
|
9249
9238
|
|
|
9250
|
-
var ToggleButton =
|
|
9239
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9251
9240
|
var children = _ref.children,
|
|
9252
9241
|
name = _ref.name,
|
|
9253
9242
|
className = _ref.className,
|
|
@@ -9257,7 +9246,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9257
9246
|
value = _ref.value,
|
|
9258
9247
|
disabled = _ref.disabled,
|
|
9259
9248
|
inputRef = _ref.inputRef,
|
|
9260
|
-
props = _objectWithoutPropertiesLoose
|
|
9249
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9261
9250
|
|
|
9262
9251
|
var _useState = useState(false),
|
|
9263
9252
|
focused = _useState[0],
|
|
@@ -9269,13 +9258,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9269
9258
|
var handleBlur = useCallback(function (e) {
|
|
9270
9259
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9271
9260
|
}, []);
|
|
9272
|
-
return /*#__PURE__*/
|
|
9261
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9273
9262
|
ref: ref,
|
|
9274
9263
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9275
9264
|
type: undefined,
|
|
9276
9265
|
active: !!checked,
|
|
9277
9266
|
as: "label"
|
|
9278
|
-
}), /*#__PURE__*/
|
|
9267
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9279
9268
|
name: name,
|
|
9280
9269
|
type: type,
|
|
9281
9270
|
value: value,
|
|
@@ -9285,16 +9274,16 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9285
9274
|
disabled: !!disabled,
|
|
9286
9275
|
onFocus: handleFocus,
|
|
9287
9276
|
onBlur: handleBlur,
|
|
9288
|
-
onChange: onChange || noop
|
|
9277
|
+
onChange: onChange || noop
|
|
9289
9278
|
}), children);
|
|
9290
9279
|
});
|
|
9291
9280
|
ToggleButton.displayName = 'ToggleButton';
|
|
9292
9281
|
|
|
9293
|
-
var defaultProps$
|
|
9282
|
+
var defaultProps$1 = {
|
|
9294
9283
|
type: 'radio',
|
|
9295
9284
|
vertical: false
|
|
9296
9285
|
};
|
|
9297
|
-
var ToggleButtonGroup =
|
|
9286
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9298
9287
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9299
9288
|
value: 'onChange'
|
|
9300
9289
|
}),
|
|
@@ -9303,7 +9292,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9303
9292
|
name = _useUncontrolled.name,
|
|
9304
9293
|
value = _useUncontrolled.value,
|
|
9305
9294
|
onChange = _useUncontrolled.onChange,
|
|
9306
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9295
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9307
9296
|
|
|
9308
9297
|
var getValues = function getValues() {
|
|
9309
9298
|
return value == null ? [] : [].concat(value);
|
|
@@ -9332,7 +9321,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9332
9321
|
};
|
|
9333
9322
|
|
|
9334
9323
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9335
|
-
return /*#__PURE__*/
|
|
9324
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9336
9325
|
ref: ref,
|
|
9337
9326
|
toggle: true
|
|
9338
9327
|
}), map(children, function (child) {
|
|
@@ -9345,7 +9334,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9345
9334
|
return handleToggle(childVal, e);
|
|
9346
9335
|
};
|
|
9347
9336
|
|
|
9348
|
-
return
|
|
9337
|
+
return React.cloneElement(child, {
|
|
9349
9338
|
type: type,
|
|
9350
9339
|
name: child.name || name,
|
|
9351
9340
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9353,44 +9342,44 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9353
9342
|
});
|
|
9354
9343
|
}));
|
|
9355
9344
|
});
|
|
9356
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9345
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9357
9346
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9358
9347
|
|
|
9359
|
-
var defaultProps
|
|
9348
|
+
var defaultProps = {
|
|
9360
9349
|
placement: 'right'
|
|
9361
9350
|
};
|
|
9362
|
-
var Tooltip =
|
|
9351
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9363
9352
|
var bsPrefix = _ref.bsPrefix,
|
|
9364
9353
|
placement = _ref.placement,
|
|
9365
9354
|
className = _ref.className,
|
|
9366
9355
|
style = _ref.style,
|
|
9367
9356
|
children = _ref.children,
|
|
9368
|
-
arrowProps = _ref.arrowProps
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
props = _objectWithoutPropertiesLoose
|
|
9357
|
+
arrowProps = _ref.arrowProps;
|
|
9358
|
+
_ref.popper;
|
|
9359
|
+
_ref.show;
|
|
9360
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9372
9361
|
|
|
9373
9362
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9374
9363
|
|
|
9375
9364
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9376
9365
|
primaryPlacement = _ref2[0];
|
|
9377
9366
|
|
|
9378
|
-
return /*#__PURE__*/
|
|
9367
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9379
9368
|
ref: ref,
|
|
9380
9369
|
style: style,
|
|
9381
9370
|
role: "tooltip",
|
|
9382
9371
|
"x-placement": primaryPlacement,
|
|
9383
9372
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9384
|
-
}, props), /*#__PURE__*/
|
|
9373
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9385
9374
|
className: "arrow"
|
|
9386
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9375
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9387
9376
|
className: bsPrefix + "-inner"
|
|
9388
9377
|
}, children));
|
|
9389
9378
|
});
|
|
9390
|
-
Tooltip.defaultProps = defaultProps
|
|
9379
|
+
Tooltip.defaultProps = defaultProps;
|
|
9391
9380
|
Tooltip.displayName = 'Tooltip';
|
|
9392
9381
|
|
|
9393
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9382
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9394
9383
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9395
9384
|
styleInject(css);
|
|
9396
9385
|
|
|
@@ -9401,54 +9390,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9401
9390
|
client = props.client;
|
|
9402
9391
|
|
|
9403
9392
|
|
|
9404
|
-
return
|
|
9393
|
+
return React.createElement(
|
|
9405
9394
|
'div',
|
|
9406
9395
|
{ className: styles.article },
|
|
9407
|
-
|
|
9396
|
+
React.createElement(
|
|
9408
9397
|
'a',
|
|
9409
9398
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9410
|
-
|
|
9399
|
+
React.createElement(
|
|
9411
9400
|
'div',
|
|
9412
9401
|
{ className: styles.thumb },
|
|
9413
|
-
|
|
9402
|
+
React.createElement(
|
|
9414
9403
|
'figure',
|
|
9415
9404
|
null,
|
|
9416
|
-
|
|
9405
|
+
React.createElement(
|
|
9417
9406
|
LazyLoad,
|
|
9418
9407
|
null,
|
|
9419
|
-
|
|
9408
|
+
React.createElement('img', {
|
|
9420
9409
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9421
9410
|
})
|
|
9422
9411
|
)
|
|
9423
9412
|
)
|
|
9424
9413
|
),
|
|
9425
|
-
|
|
9414
|
+
React.createElement(
|
|
9426
9415
|
'div',
|
|
9427
9416
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9428
|
-
|
|
9417
|
+
React.createElement(
|
|
9429
9418
|
'div',
|
|
9430
9419
|
{ className: styles.name },
|
|
9431
9420
|
data.name
|
|
9432
9421
|
),
|
|
9433
|
-
data.published &&
|
|
9422
|
+
data.published && React.createElement(
|
|
9434
9423
|
'p',
|
|
9435
9424
|
{ className: styles.published },
|
|
9436
9425
|
moment(data.published).format('MMMM Do YYYY')
|
|
9437
9426
|
),
|
|
9438
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9427
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9439
9428
|
'p',
|
|
9440
9429
|
{ className: styles.author },
|
|
9441
9430
|
'By ',
|
|
9442
|
-
|
|
9431
|
+
React.createElement(
|
|
9443
9432
|
'span',
|
|
9444
9433
|
null,
|
|
9445
9434
|
data.authorMapping.displayName
|
|
9446
9435
|
)
|
|
9447
9436
|
),
|
|
9448
|
-
data.description &&
|
|
9437
|
+
data.description && React.createElement(
|
|
9449
9438
|
'div',
|
|
9450
9439
|
{ className: 'media-series-desc' },
|
|
9451
|
-
|
|
9440
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9452
9441
|
)
|
|
9453
9442
|
)
|
|
9454
9443
|
)
|
|
@@ -9477,11 +9466,11 @@ var Filter = function Filter(_ref) {
|
|
|
9477
9466
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9478
9467
|
grandChildData = _useState6[0],
|
|
9479
9468
|
setGrandChildData = _useState6[1];
|
|
9480
|
-
/*
|
|
9481
|
-
{parent: showAll,
|
|
9482
|
-
chidlren: show selected from parent,
|
|
9483
|
-
grandchildren: show selected from children
|
|
9484
|
-
}
|
|
9469
|
+
/*
|
|
9470
|
+
{parent: showAll,
|
|
9471
|
+
chidlren: show selected from parent,
|
|
9472
|
+
grandchildren: show selected from children
|
|
9473
|
+
}
|
|
9485
9474
|
*/
|
|
9486
9475
|
|
|
9487
9476
|
|
|
@@ -9496,7 +9485,7 @@ var Filter = function Filter(_ref) {
|
|
|
9496
9485
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9497
9486
|
if (type === 'parent') {
|
|
9498
9487
|
setParentData(function (prevState) {
|
|
9499
|
-
return _extends$
|
|
9488
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9500
9489
|
});
|
|
9501
9490
|
if (group && group.children && group.children.length > 0) {
|
|
9502
9491
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9510,7 +9499,7 @@ var Filter = function Filter(_ref) {
|
|
|
9510
9499
|
}
|
|
9511
9500
|
if (type === 'child') {
|
|
9512
9501
|
setChildData(function (prevState) {
|
|
9513
|
-
return _extends$
|
|
9502
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9514
9503
|
});
|
|
9515
9504
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9516
9505
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9529,7 +9518,7 @@ var Filter = function Filter(_ref) {
|
|
|
9529
9518
|
}
|
|
9530
9519
|
if (type === 'grandchild') {
|
|
9531
9520
|
setGrandChildData(function (prevState) {
|
|
9532
|
-
return _extends$
|
|
9521
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9533
9522
|
});
|
|
9534
9523
|
//handle filter
|
|
9535
9524
|
if (!group._id) {
|
|
@@ -9545,14 +9534,14 @@ var Filter = function Filter(_ref) {
|
|
|
9545
9534
|
}
|
|
9546
9535
|
};
|
|
9547
9536
|
|
|
9548
|
-
return
|
|
9537
|
+
return React.createElement(
|
|
9549
9538
|
'div',
|
|
9550
9539
|
{ className: 'flex-container' },
|
|
9551
|
-
parentData &&
|
|
9540
|
+
parentData && React.createElement(
|
|
9552
9541
|
DropdownButton,
|
|
9553
9542
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9554
|
-
|
|
9555
|
-
Dropdown
|
|
9543
|
+
React.createElement(
|
|
9544
|
+
Dropdown.Item,
|
|
9556
9545
|
{ onSelect: function onSelect() {
|
|
9557
9546
|
return handleFilterSelect({}, 'parent');
|
|
9558
9547
|
} },
|
|
@@ -9560,8 +9549,8 @@ var Filter = function Filter(_ref) {
|
|
|
9560
9549
|
),
|
|
9561
9550
|
parentData.data.map(function (docGroup) {
|
|
9562
9551
|
if (!docGroup._id) return null;
|
|
9563
|
-
return
|
|
9564
|
-
Dropdown
|
|
9552
|
+
return React.createElement(
|
|
9553
|
+
Dropdown.Item,
|
|
9565
9554
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9566
9555
|
return handleFilterSelect(docGroup, 'parent');
|
|
9567
9556
|
} },
|
|
@@ -9569,11 +9558,11 @@ var Filter = function Filter(_ref) {
|
|
|
9569
9558
|
);
|
|
9570
9559
|
})
|
|
9571
9560
|
),
|
|
9572
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9561
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9573
9562
|
DropdownButton,
|
|
9574
9563
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9575
|
-
|
|
9576
|
-
Dropdown
|
|
9564
|
+
React.createElement(
|
|
9565
|
+
Dropdown.Item,
|
|
9577
9566
|
{ onSelect: function onSelect() {
|
|
9578
9567
|
return handleFilterSelect({}, 'child');
|
|
9579
9568
|
} },
|
|
@@ -9581,8 +9570,8 @@ var Filter = function Filter(_ref) {
|
|
|
9581
9570
|
),
|
|
9582
9571
|
childData.data.map(function (docGroup) {
|
|
9583
9572
|
if (!docGroup._id) return null;
|
|
9584
|
-
return
|
|
9585
|
-
Dropdown
|
|
9573
|
+
return React.createElement(
|
|
9574
|
+
Dropdown.Item,
|
|
9586
9575
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9587
9576
|
return handleFilterSelect(docGroup, 'child');
|
|
9588
9577
|
} },
|
|
@@ -9590,11 +9579,11 @@ var Filter = function Filter(_ref) {
|
|
|
9590
9579
|
);
|
|
9591
9580
|
})
|
|
9592
9581
|
),
|
|
9593
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9582
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9594
9583
|
DropdownButton,
|
|
9595
9584
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9596
|
-
|
|
9597
|
-
Dropdown
|
|
9585
|
+
React.createElement(
|
|
9586
|
+
Dropdown.Item,
|
|
9598
9587
|
{ onSelect: function onSelect() {
|
|
9599
9588
|
return handleFilterSelect({}, 'grandchild');
|
|
9600
9589
|
} },
|
|
@@ -9602,8 +9591,8 @@ var Filter = function Filter(_ref) {
|
|
|
9602
9591
|
),
|
|
9603
9592
|
grandChildData.data.map(function (docGroup) {
|
|
9604
9593
|
if (!docGroup._id) return null;
|
|
9605
|
-
return
|
|
9606
|
-
Dropdown
|
|
9594
|
+
return React.createElement(
|
|
9595
|
+
Dropdown.Item,
|
|
9607
9596
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9608
9597
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9609
9598
|
} },
|
|
@@ -9611,7 +9600,7 @@ var Filter = function Filter(_ref) {
|
|
|
9611
9600
|
);
|
|
9612
9601
|
})
|
|
9613
9602
|
),
|
|
9614
|
-
|
|
9603
|
+
React.createElement(
|
|
9615
9604
|
'style',
|
|
9616
9605
|
{ jsx: 'true' },
|
|
9617
9606
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9659,7 +9648,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9659
9648
|
while (1) {
|
|
9660
9649
|
switch (_context.prev = _context.next) {
|
|
9661
9650
|
case 0:
|
|
9662
|
-
newParams = _extends$
|
|
9651
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9663
9652
|
filterQuery = void 0;
|
|
9664
9653
|
|
|
9665
9654
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9701,27 +9690,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9701
9690
|
}();
|
|
9702
9691
|
|
|
9703
9692
|
if (props.statusCode === 404) {
|
|
9704
|
-
return
|
|
9693
|
+
return React.createElement(
|
|
9705
9694
|
'div',
|
|
9706
9695
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9707
|
-
|
|
9696
|
+
React.createElement(
|
|
9708
9697
|
'h3',
|
|
9709
9698
|
null,
|
|
9710
9699
|
'404: Resource not found'
|
|
9711
9700
|
),
|
|
9712
|
-
|
|
9701
|
+
React.createElement(
|
|
9713
9702
|
'p',
|
|
9714
9703
|
null,
|
|
9715
9704
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9716
9705
|
),
|
|
9717
|
-
|
|
9706
|
+
React.createElement(
|
|
9718
9707
|
'p',
|
|
9719
9708
|
null,
|
|
9720
9709
|
'Click here to',
|
|
9721
|
-
|
|
9710
|
+
React.createElement(
|
|
9722
9711
|
Link,
|
|
9723
9712
|
{ href: '/' },
|
|
9724
|
-
|
|
9713
|
+
React.createElement(
|
|
9725
9714
|
'a',
|
|
9726
9715
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9727
9716
|
' return to homepage.'
|
|
@@ -9731,17 +9720,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9731
9720
|
);
|
|
9732
9721
|
}
|
|
9733
9722
|
|
|
9734
|
-
return
|
|
9723
|
+
return React.createElement(
|
|
9735
9724
|
'div',
|
|
9736
9725
|
{ className: 'mb-5' },
|
|
9737
|
-
props.docGroup && props.docGroup.description &&
|
|
9738
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9726
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9727
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9739
9728
|
'div',
|
|
9740
9729
|
{ className: '' },
|
|
9741
|
-
|
|
9742
|
-
|
|
9730
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9731
|
+
React.createElement('hr', null)
|
|
9743
9732
|
),
|
|
9744
|
-
seriesData &&
|
|
9733
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9745
9734
|
deck: MediaSeriesCard,
|
|
9746
9735
|
variant: 'left',
|
|
9747
9736
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9761,12 +9750,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9761
9750
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9762
9751
|
var _ref4;
|
|
9763
9752
|
|
|
9764
|
-
var urlQuery, pathname,
|
|
9753
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9765
9754
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9766
9755
|
while (1) {
|
|
9767
9756
|
switch (_context2.prev = _context2.next) {
|
|
9768
9757
|
case 0:
|
|
9769
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9758
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9770
9759
|
identifier = pathname.replace('/', '');
|
|
9771
9760
|
itemsPerPage = 10;
|
|
9772
9761
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|