@mjhls/mjh-framework 1.0.849 → 1.0.850-affiliatefix-v1
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 +1 -1
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +24 -23
- package/dist/cjs/AD300x250x600.js +24 -23
- package/dist/cjs/AD728x90.js +27 -26
- package/dist/cjs/ADFloatingFooter.js +23 -22
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +23 -22
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-859820d9.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +23 -22
- package/dist/cjs/ADSponsoredResources.js +23 -22
- package/dist/cjs/ADWebcast.js +23 -22
- package/dist/cjs/ADWelcome.js +20 -19
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-da3a36a6.js} +4 -4
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +24 -91
- package/dist/cjs/AdSlotsProvider.js +18 -27
- package/dist/cjs/AlgoliaSearch.js +14088 -30
- package/dist/cjs/AlphabeticList.js +10 -10
- package/dist/cjs/ArticleCarousel.js +17 -17
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +32 -31
- package/dist/cjs/ArticleSeriesListing.js +33 -32
- package/dist/cjs/Auth.js +484 -348
- package/dist/cjs/AuthWrapper.js +1866 -15
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-c21aac7f.js} +1 -1
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/CMEDeck.js +25 -24
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +33 -32
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +34 -33
- package/dist/cjs/DeckQueue.js +33 -32
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-93399f8c.js} +15 -14
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +4 -4
- package/dist/cjs/ForbesHero.js +12 -12
- package/dist/cjs/GridContent.js +84 -202
- package/dist/cjs/GridHero.js +13 -13
- package/dist/cjs/GroupDeck.js +14 -14
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Hero.js +4 -4
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +47 -47
- package/dist/cjs/HorizontalHero.js +5 -5
- package/dist/cjs/IssueContentDeck.js +13 -13
- package/dist/cjs/IssueDeck.js +16 -16
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +22 -21
- package/dist/cjs/MasterDeck.js +33 -32
- package/dist/cjs/MediaSeriesLanding.js +1054 -855
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +38 -38
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +13 -13
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +66 -1258
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PubSection.js +35 -34
- package/dist/cjs/PubToc.js +8 -8
- package/dist/cjs/PublicationDeck.js +8 -8
- package/dist/cjs/PublicationLanding.js +28 -28
- package/dist/cjs/QueueDeckExpanded.js +38 -37
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +7 -7
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +20 -19
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-34c6cc2b.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-948138c7.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +10 -10
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +48 -47
- package/dist/cjs/ThumbnailCard.js +7 -7
- package/dist/cjs/Ustream.js +14 -14
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +38 -37
- package/dist/cjs/VideoSeriesListing.js +35 -36
- package/dist/cjs/View.js +91 -173
- package/dist/cjs/YahooHero.js +15 -15
- package/dist/cjs/YoutubeGroup.js +22 -22
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.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/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-29bdbc6d.js} +8 -7
- package/dist/cjs/faundadb.js +7 -7
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +135 -71
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-be6168ad.js} +8 -17
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-80e98193.js → index-060c5d65.js} +438 -245
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-00a6aade.js} +1 -1
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-f27f80d9.js} +1 -1
- package/dist/cjs/index.js +139 -137
- package/dist/cjs/{inherits-87492b40.js → inherits-c2065b95.js} +22 -19
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-9d7f610f.js → typeof-88a668c5.js} +35 -35
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +27 -26
- package/dist/esm/AD300x250x600.js +27 -26
- package/dist/esm/AD728x90.js +30 -29
- package/dist/esm/ADFloatingFooter.js +29 -28
- package/dist/esm/ADFooter.js +11 -11
- package/dist/esm/ADGutter.js +29 -28
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-4bf3b2f9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +29 -28
- package/dist/esm/ADSponsoredResources.js +29 -28
- package/dist/esm/ADWebcast.js +29 -28
- package/dist/esm/ADWelcome.js +30 -29
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-a3377c4a.js} +8 -8
- package/dist/esm/AccordionPanel.js +24 -24
- package/dist/esm/AdSlot.js +27 -94
- package/dist/esm/AdSlotsProvider.js +19 -28
- package/dist/esm/AlgoliaSearch.js +14108 -50
- package/dist/esm/AlphabeticList.js +22 -22
- package/dist/esm/ArticleCarousel.js +20 -20
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +38 -37
- package/dist/esm/ArticleSeriesListing.js +57 -56
- package/dist/esm/Auth.js +554 -418
- package/dist/esm/AuthWrapper.js +1880 -28
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-30aeba69.js} +11 -11
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +17 -17
- package/dist/esm/CMEDeck.js +80 -79
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +27 -27
- package/dist/esm/Column3.js +52 -51
- package/dist/esm/ConferenceArticleCard.js +20 -20
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/{Dfp-85c9513e.js → Dfp-2c43d2a0.js} +23 -22
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +18 -18
- package/dist/esm/ForbesHero.js +35 -35
- package/dist/esm/GridContent.js +144 -261
- package/dist/esm/GridHero.js +37 -37
- package/dist/esm/GroupDeck.js +47 -47
- package/dist/esm/HamMagazine.js +105 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +10 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +69 -69
- package/dist/esm/HorizontalHero.js +23 -23
- package/dist/esm/IssueContentDeck.js +50 -50
- package/dist/esm/IssueDeck.js +47 -47
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +35 -34
- package/dist/esm/MasterDeck.js +66 -65
- package/dist/esm/MediaSeriesLanding.js +1073 -874
- package/dist/esm/NavDvm.js +56 -56
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -113
- package/dist/esm/NavNative.js +109 -109
- package/dist/esm/OncliveHero.js +16 -16
- package/dist/esm/OncliveLargeHero.js +60 -60
- package/dist/esm/PageFilter.js +12 -12
- package/dist/esm/PartnerDetailListing.js +114 -1305
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PopUpModal.js +14 -14
- package/dist/esm/PubSection.js +40 -39
- package/dist/esm/PubToc.js +12 -12
- package/dist/esm/PublicationDeck.js +39 -39
- package/dist/esm/PublicationLanding.js +75 -75
- package/dist/esm/QueueDeckExpanded.js +276 -275
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +20 -20
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Search.js +12 -12
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +33 -32
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-5d5c08f4.js} +27 -27
- 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-47815365.js → SocialSearchComponent-db963c3e.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +42 -42
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +68 -67
- package/dist/esm/ThumbnailCard.js +14 -14
- package/dist/esm/Ustream.js +27 -27
- package/dist/esm/VerticalHero.js +14 -14
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +15 -15
- package/dist/esm/VideoSeriesLandingPage.js +43 -42
- package/dist/esm/VideoSeriesListing.js +75 -76
- package/dist/esm/View.js +243 -325
- package/dist/esm/YahooHero.js +35 -35
- package/dist/esm/YoutubeGroup.js +47 -47
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.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/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-60e0e1c6.js} +8 -8
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +135 -71
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-68291ce9.js} +8 -17
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-295b6942.js → index-01d53c17.js} +759 -565
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-d4932dea.js} +1 -1
- package/dist/esm/{index.esm-3fdda599.js → index.esm-f6156a57.js} +1 -1
- package/dist/esm/index.js +135 -133
- package/dist/esm/{inherits-0d8cda6e.js → inherits-a41fe93f.js} +20 -20
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-af9c50d8.js → typeof-a286cf0c.js} +35 -35
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/main-747e7d25.js +0 -886
- package/dist/esm/stringify-4330ccdc.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,151 +1,70 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
+
import React__default, { 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-98ca9cec.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 '
|
|
3
|
-
import './
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
13
|
+
import { L as LazyLoad } from './index-755f2cc2.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-c99c9a8d.js';
|
|
18
|
+
import { g as getSerializers } from './index-01d53c17.js';
|
|
19
|
+
import './define-property-fe54dc9f.js';
|
|
20
|
+
import './_to-object-b50e61c3.js';
|
|
21
|
+
import './es6.string.iterator-bc33758b.js';
|
|
22
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
23
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './
|
|
14
|
-
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
-
import './index-1819118a.js';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
24
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
25
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
26
|
+
import './_is-array-3e99e06e.js';
|
|
27
|
+
import './_object-pie-133f504a.js';
|
|
28
|
+
import './toConsumableArray-6d9a4616.js';
|
|
29
|
+
import './inherits-a41fe93f.js';
|
|
30
|
+
import './_object-sap-f353c2a9.js';
|
|
31
|
+
import './index-f0fc23eb.js';
|
|
32
|
+
import './events-6c3a7a63.js';
|
|
19
33
|
import 'react-bootstrap/Container';
|
|
20
34
|
import 'react-bootstrap/Row';
|
|
21
35
|
import 'react-bootstrap/Col';
|
|
22
36
|
import 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
24
37
|
import 'next/router';
|
|
25
|
-
import './
|
|
26
|
-
import './debounce-
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import
|
|
30
|
-
import './visibility-sensor-
|
|
31
|
-
import './index-
|
|
32
|
-
import
|
|
33
|
-
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
34
|
-
import './main-747e7d25.js';
|
|
35
|
-
import './entities-7cc3bf45.js';
|
|
36
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
|
-
import './stringify-4330ccdc.js';
|
|
38
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
39
|
-
import './Segment.js';
|
|
40
|
-
import './Beam.js';
|
|
38
|
+
import './lodash-f97fd99a.js';
|
|
39
|
+
import './debounce-533d9748.js';
|
|
40
|
+
import './isSymbol-a7e9aafe.js';
|
|
41
|
+
import './toNumber-5aeba6e7.js';
|
|
42
|
+
import './index.es-a6137319.js';
|
|
43
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
44
|
+
import './index-0dbff1d1.js';
|
|
45
|
+
import './ADlgInfeed-a3377c4a.js';
|
|
41
46
|
import './AdSlot.js';
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import '
|
|
46
|
-
import
|
|
47
|
+
import './Beam.js';
|
|
48
|
+
import './stringify-59c8f690.js';
|
|
49
|
+
import './Segment.js';
|
|
50
|
+
import './main-d4165069.js';
|
|
51
|
+
import './ADInfeed-4bf3b2f9.js';
|
|
52
|
+
import 'react-bootstrap';
|
|
47
53
|
import './index-c7e2ac95.js';
|
|
48
|
-
import './
|
|
54
|
+
import './util-3ab476bf.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
49
56
|
import './GroupDeck.js';
|
|
50
|
-
import '
|
|
51
|
-
import './
|
|
52
|
-
import './index.esm-3fdda599.js';
|
|
53
|
-
import { g as getSerializers } from './index-295b6942.js';
|
|
54
|
-
import './util-7700fc59.js';
|
|
55
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
58
|
+
import './SocialShare.js';
|
|
56
59
|
import 'next/head';
|
|
57
60
|
import 'react-share';
|
|
58
|
-
import './
|
|
59
|
-
import './_object-to-array-7e804fce.js';
|
|
61
|
+
import './_object-to-array-0f197f89.js';
|
|
60
62
|
import 'react-bootstrap/Pagination';
|
|
63
|
+
import 'react-bootstrap/Button';
|
|
64
|
+
import './entities-932b50cf.js';
|
|
65
|
+
import './index.esm-f6156a57.js';
|
|
66
|
+
import './iconBase-ccc56b97.js';
|
|
61
67
|
import 'react-bootstrap/Figure';
|
|
62
|
-
import 'react-script-tag';
|
|
63
|
-
import MasterDeck from './MasterDeck.js';
|
|
64
|
-
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
66
|
-
import Link from 'next/link';
|
|
67
|
-
|
|
68
|
-
function _extends() {
|
|
69
|
-
_extends = Object.assign || function (target) {
|
|
70
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
71
|
-
var source = arguments[i];
|
|
72
|
-
|
|
73
|
-
for (var key in source) {
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
75
|
-
target[key] = source[key];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return target;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return _extends.apply(this, arguments);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
87
|
-
if (source == null) return {};
|
|
88
|
-
var target = {};
|
|
89
|
-
var sourceKeys = Object.keys(source);
|
|
90
|
-
var key, i;
|
|
91
|
-
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
93
|
-
key = sourceKeys[i];
|
|
94
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
-
target[key] = source[key];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return target;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var classnames = createCommonjsModule(function (module) {
|
|
102
|
-
/*!
|
|
103
|
-
Copyright (c) 2017 Jed Watson.
|
|
104
|
-
Licensed under the MIT License (MIT), see
|
|
105
|
-
http://jedwatson.github.io/classnames
|
|
106
|
-
*/
|
|
107
|
-
/* global define */
|
|
108
|
-
|
|
109
|
-
(function () {
|
|
110
|
-
|
|
111
|
-
var hasOwn = {}.hasOwnProperty;
|
|
112
|
-
|
|
113
|
-
function classNames () {
|
|
114
|
-
var classes = [];
|
|
115
|
-
|
|
116
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
117
|
-
var arg = arguments[i];
|
|
118
|
-
if (!arg) continue;
|
|
119
|
-
|
|
120
|
-
var argType = typeof arg;
|
|
121
|
-
|
|
122
|
-
if (argType === 'string' || argType === 'number') {
|
|
123
|
-
classes.push(arg);
|
|
124
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
125
|
-
var inner = classNames.apply(null, arg);
|
|
126
|
-
if (inner) {
|
|
127
|
-
classes.push(inner);
|
|
128
|
-
}
|
|
129
|
-
} else if (argType === 'object') {
|
|
130
|
-
for (var key in arg) {
|
|
131
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
132
|
-
classes.push(key);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return classes.join(' ');
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if ( module.exports) {
|
|
142
|
-
classNames.default = classNames;
|
|
143
|
-
module.exports = classNames;
|
|
144
|
-
} else {
|
|
145
|
-
window.classNames = classNames;
|
|
146
|
-
}
|
|
147
|
-
}());
|
|
148
|
-
});
|
|
149
68
|
|
|
150
69
|
/**
|
|
151
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -255,19 +174,19 @@ function useUncontrolled(props, config) {
|
|
|
255
174
|
function _inheritsLoose(subClass, superClass) {
|
|
256
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
257
176
|
subClass.prototype.constructor = subClass;
|
|
258
|
-
subClass
|
|
177
|
+
_setPrototypeOf(subClass, superClass);
|
|
259
178
|
}
|
|
260
179
|
|
|
261
|
-
var ThemeContext =
|
|
262
|
-
|
|
263
|
-
|
|
180
|
+
var ThemeContext = React__default.createContext({});
|
|
181
|
+
ThemeContext.Consumer;
|
|
182
|
+
ThemeContext.Provider;
|
|
264
183
|
|
|
265
184
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
266
185
|
var prefixes = useContext(ThemeContext);
|
|
267
186
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
268
187
|
}
|
|
269
188
|
|
|
270
|
-
var SelectableContext =
|
|
189
|
+
var SelectableContext = React__default.createContext(null);
|
|
271
190
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
272
191
|
if (href === void 0) {
|
|
273
192
|
href = null;
|
|
@@ -277,11 +196,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
277
196
|
return href || null;
|
|
278
197
|
};
|
|
279
198
|
|
|
280
|
-
var context =
|
|
281
|
-
context.displayName = 'AccordionContext';
|
|
199
|
+
var context$2 = React__default.createContext(null);
|
|
200
|
+
context$2.displayName = 'AccordionContext';
|
|
282
201
|
|
|
283
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
284
|
-
var contextEventKey = useContext(context);
|
|
203
|
+
var contextEventKey = useContext(context$2);
|
|
285
204
|
var onSelect = useContext(SelectableContext);
|
|
286
205
|
return function (e) {
|
|
287
206
|
/*
|
|
@@ -293,7 +212,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
293
212
|
if (onClick) onClick(e);
|
|
294
213
|
};
|
|
295
214
|
}
|
|
296
|
-
var AccordionToggle =
|
|
215
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
297
216
|
var _ref$as = _ref.as,
|
|
298
217
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
299
218
|
children = _ref.children,
|
|
@@ -307,22 +226,40 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
307
226
|
props.type = 'button';
|
|
308
227
|
}
|
|
309
228
|
|
|
310
|
-
return /*#__PURE__*/
|
|
229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
311
230
|
ref: ref,
|
|
312
231
|
onClick: accordionOnClick
|
|
313
232
|
}, props), children);
|
|
314
233
|
});
|
|
315
234
|
|
|
316
|
-
|
|
235
|
+
/**
|
|
236
|
+
* Returns the owner document of a given element.
|
|
237
|
+
*
|
|
238
|
+
* @param node the element
|
|
239
|
+
*/
|
|
240
|
+
function ownerDocument$1(node) {
|
|
317
241
|
return node && node.ownerDocument || document;
|
|
318
242
|
}
|
|
319
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Returns the owner window of a given element.
|
|
246
|
+
*
|
|
247
|
+
* @param node the element
|
|
248
|
+
*/
|
|
249
|
+
|
|
320
250
|
function ownerWindow(node) {
|
|
321
|
-
var doc = ownerDocument(node);
|
|
251
|
+
var doc = ownerDocument$1(node);
|
|
322
252
|
return doc && doc.defaultView || window;
|
|
323
253
|
}
|
|
324
254
|
|
|
325
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Returns one or all computed style properties of an element.
|
|
257
|
+
*
|
|
258
|
+
* @param node the element
|
|
259
|
+
* @param psuedoElement the style property
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
326
263
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
327
264
|
}
|
|
328
265
|
|
|
@@ -351,7 +288,7 @@ function style(node, property) {
|
|
|
351
288
|
var transforms = '';
|
|
352
289
|
|
|
353
290
|
if (typeof property === 'string') {
|
|
354
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
291
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
355
292
|
}
|
|
356
293
|
|
|
357
294
|
Object.keys(property).forEach(function (key) {
|
|
@@ -402,6 +339,11 @@ try {
|
|
|
402
339
|
|
|
403
340
|
/**
|
|
404
341
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
342
|
+
*
|
|
343
|
+
* @param node the element
|
|
344
|
+
* @param eventName the event name
|
|
345
|
+
* @param handle the handler
|
|
346
|
+
* @param options event options
|
|
405
347
|
*/
|
|
406
348
|
function addEventListener(node, eventName, handler, options) {
|
|
407
349
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -424,6 +366,14 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
424
366
|
node.addEventListener(eventName, handler, options);
|
|
425
367
|
}
|
|
426
368
|
|
|
369
|
+
/**
|
|
370
|
+
* A `removeEventListener` ponyfill
|
|
371
|
+
*
|
|
372
|
+
* @param node the element
|
|
373
|
+
* @param eventName the event name
|
|
374
|
+
* @param handle the handler
|
|
375
|
+
* @param options event options
|
|
376
|
+
*/
|
|
427
377
|
function removeEventListener(node, eventName, handler, options) {
|
|
428
378
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
429
379
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -440,18 +390,36 @@ function listen(node, eventName, handler, options) {
|
|
|
440
390
|
};
|
|
441
391
|
}
|
|
442
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Triggers an event on a given element.
|
|
395
|
+
*
|
|
396
|
+
* @param node the element
|
|
397
|
+
* @param eventName the event name to trigger
|
|
398
|
+
* @param bubbles whether the event should bubble up
|
|
399
|
+
* @param cancelable whether the event should be cancelable
|
|
400
|
+
*/
|
|
401
|
+
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
402
|
+
if (bubbles === void 0) {
|
|
403
|
+
bubbles = false;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (cancelable === void 0) {
|
|
407
|
+
cancelable = true;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (node) {
|
|
411
|
+
var event = document.createEvent('HTMLEvents');
|
|
412
|
+
event.initEvent(eventName, bubbles, cancelable);
|
|
413
|
+
node.dispatchEvent(event);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
443
417
|
function parseDuration(node) {
|
|
444
418
|
var str = style(node, 'transitionDuration') || '';
|
|
445
419
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
446
420
|
return parseFloat(str) * mult;
|
|
447
421
|
}
|
|
448
422
|
|
|
449
|
-
function triggerTransitionEnd(element) {
|
|
450
|
-
var evt = document.createEvent('HTMLEvents');
|
|
451
|
-
evt.initEvent('transitionend', true, true);
|
|
452
|
-
element.dispatchEvent(evt);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
423
|
function emulateTransitionEnd(element, duration, padding) {
|
|
456
424
|
if (padding === void 0) {
|
|
457
425
|
padding = 5;
|
|
@@ -459,7 +427,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
459
427
|
|
|
460
428
|
var called = false;
|
|
461
429
|
var handle = setTimeout(function () {
|
|
462
|
-
if (!called)
|
|
430
|
+
if (!called) triggerEvent(element, 'transitionend', true);
|
|
463
431
|
}, duration + padding);
|
|
464
432
|
var remove = listen(element, 'transitionend', function () {
|
|
465
433
|
called = true;
|
|
@@ -491,7 +459,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
491
459
|
exit: PropTypes.number,
|
|
492
460
|
appear: PropTypes.number
|
|
493
461
|
}).isRequired]) : null;
|
|
494
|
-
|
|
462
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
495
463
|
enter: PropTypes.string,
|
|
496
464
|
exit: PropTypes.string,
|
|
497
465
|
active: PropTypes.string
|
|
@@ -504,7 +472,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
504
472
|
exitActive: PropTypes.string
|
|
505
473
|
})]) : null;
|
|
506
474
|
|
|
507
|
-
var TransitionGroupContext =
|
|
475
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
508
476
|
|
|
509
477
|
var UNMOUNTED = 'unmounted';
|
|
510
478
|
var EXITED = 'exited';
|
|
@@ -873,35 +841,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
873
841
|
}
|
|
874
842
|
|
|
875
843
|
var _this$props = this.props,
|
|
876
|
-
children = _this$props.children
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
844
|
+
children = _this$props.children;
|
|
845
|
+
_this$props.in;
|
|
846
|
+
_this$props.mountOnEnter;
|
|
847
|
+
_this$props.unmountOnExit;
|
|
848
|
+
_this$props.appear;
|
|
849
|
+
_this$props.enter;
|
|
850
|
+
_this$props.exit;
|
|
851
|
+
_this$props.timeout;
|
|
852
|
+
_this$props.addEndListener;
|
|
853
|
+
_this$props.onEnter;
|
|
854
|
+
_this$props.onEntering;
|
|
855
|
+
_this$props.onEntered;
|
|
856
|
+
_this$props.onExit;
|
|
857
|
+
_this$props.onExiting;
|
|
858
|
+
_this$props.onExited;
|
|
859
|
+
_this$props.nodeRef;
|
|
860
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
893
861
|
|
|
894
862
|
return (
|
|
895
863
|
/*#__PURE__*/
|
|
896
864
|
// allows for nested Transitions
|
|
897
|
-
|
|
865
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
898
866
|
value: null
|
|
899
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
867
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
900
868
|
);
|
|
901
869
|
};
|
|
902
870
|
|
|
903
871
|
return Transition;
|
|
904
|
-
}(
|
|
872
|
+
}(React__default.Component);
|
|
905
873
|
|
|
906
874
|
Transition.contextType = TransitionGroupContext;
|
|
907
875
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1089,7 +1057,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1089
1057
|
onExited: PropTypes.func
|
|
1090
1058
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1091
1059
|
|
|
1092
|
-
function noop() {}
|
|
1060
|
+
function noop$5() {}
|
|
1093
1061
|
|
|
1094
1062
|
Transition.defaultProps = {
|
|
1095
1063
|
in: false,
|
|
@@ -1098,12 +1066,12 @@ Transition.defaultProps = {
|
|
|
1098
1066
|
appear: false,
|
|
1099
1067
|
enter: true,
|
|
1100
1068
|
exit: true,
|
|
1101
|
-
onEnter: noop,
|
|
1102
|
-
onEntering: noop,
|
|
1103
|
-
onEntered: noop,
|
|
1104
|
-
onExit: noop,
|
|
1105
|
-
onExiting: noop,
|
|
1106
|
-
onExited: noop
|
|
1069
|
+
onEnter: noop$5,
|
|
1070
|
+
onEntering: noop$5,
|
|
1071
|
+
onEntered: noop$5,
|
|
1072
|
+
onExit: noop$5,
|
|
1073
|
+
onExiting: noop$5,
|
|
1074
|
+
onExited: noop$5
|
|
1107
1075
|
};
|
|
1108
1076
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1109
1077
|
Transition.EXITED = EXITED;
|
|
@@ -1169,7 +1137,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1169
1137
|
}
|
|
1170
1138
|
|
|
1171
1139
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1172
|
-
var defaultProps = {
|
|
1140
|
+
var defaultProps$E = {
|
|
1173
1141
|
in: false,
|
|
1174
1142
|
timeout: 300,
|
|
1175
1143
|
mountOnEnter: false,
|
|
@@ -1177,7 +1145,7 @@ var defaultProps = {
|
|
|
1177
1145
|
appear: false,
|
|
1178
1146
|
getDimensionValue: getDefaultDimensionValue
|
|
1179
1147
|
};
|
|
1180
|
-
var Collapse =
|
|
1148
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1181
1149
|
var onEnter = _ref.onEnter,
|
|
1182
1150
|
onEntering = _ref.onEntering,
|
|
1183
1151
|
onEntered = _ref.onEntered,
|
|
@@ -1224,7 +1192,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1224
1192
|
elem.style[computedDimension] = null;
|
|
1225
1193
|
}, onExiting);
|
|
1226
1194
|
}, [computedDimension, onExiting]);
|
|
1227
|
-
return /*#__PURE__*/
|
|
1195
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1228
1196
|
, _extends({
|
|
1229
1197
|
ref: ref,
|
|
1230
1198
|
addEndListener: transitionEnd
|
|
@@ -1236,29 +1204,33 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1236
1204
|
onExit: handleExit,
|
|
1237
1205
|
onExiting: handleExiting
|
|
1238
1206
|
}), function (state, innerProps) {
|
|
1239
|
-
return
|
|
1207
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1240
1208
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1241
1209
|
}));
|
|
1242
1210
|
});
|
|
1243
1211
|
}); // @ts-ignore
|
|
1244
1212
|
|
|
1245
1213
|
// @ts-ignore
|
|
1246
|
-
Collapse.defaultProps = defaultProps;
|
|
1214
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1247
1215
|
|
|
1248
|
-
var AccordionCollapse =
|
|
1216
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1249
1217
|
var children = _ref.children,
|
|
1250
1218
|
eventKey = _ref.eventKey,
|
|
1251
1219
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1252
1220
|
|
|
1253
|
-
var contextEventKey = useContext(context);
|
|
1254
|
-
|
|
1221
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1222
|
+
// from collapsing the accordion when clicked.
|
|
1223
|
+
|
|
1224
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1225
|
+
value: null
|
|
1226
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1255
1227
|
ref: ref,
|
|
1256
1228
|
in: contextEventKey === eventKey
|
|
1257
|
-
}, props), /*#__PURE__*/
|
|
1229
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1258
1230
|
});
|
|
1259
1231
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1260
1232
|
|
|
1261
|
-
var Accordion =
|
|
1233
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1262
1234
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1263
1235
|
activeKey: 'onSelect'
|
|
1264
1236
|
}),
|
|
@@ -1272,11 +1244,11 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1272
1244
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1273
1245
|
|
|
1274
1246
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1275
|
-
return /*#__PURE__*/
|
|
1247
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
1276
1248
|
value: activeKey || null
|
|
1277
|
-
}, /*#__PURE__*/
|
|
1249
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1278
1250
|
value: onSelect || null
|
|
1279
|
-
}, /*#__PURE__*/
|
|
1251
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1280
1252
|
ref: ref
|
|
1281
1253
|
}, controlledProps, {
|
|
1282
1254
|
className: finalClassName
|
|
@@ -1312,7 +1284,7 @@ function useEventCallback(fn) {
|
|
|
1312
1284
|
}
|
|
1313
1285
|
|
|
1314
1286
|
var _fadeStyles;
|
|
1315
|
-
var defaultProps$
|
|
1287
|
+
var defaultProps$D = {
|
|
1316
1288
|
in: false,
|
|
1317
1289
|
timeout: 300,
|
|
1318
1290
|
mountOnEnter: false,
|
|
@@ -1320,7 +1292,7 @@ var defaultProps$1 = {
|
|
|
1320
1292
|
appear: false
|
|
1321
1293
|
};
|
|
1322
1294
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1323
|
-
var Fade =
|
|
1295
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1324
1296
|
var className = _ref.className,
|
|
1325
1297
|
children = _ref.children,
|
|
1326
1298
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1329,51 +1301,51 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1329
1301
|
triggerBrowserReflow(node);
|
|
1330
1302
|
if (props.onEnter) props.onEnter(node);
|
|
1331
1303
|
}, [props]);
|
|
1332
|
-
return /*#__PURE__*/
|
|
1304
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1333
1305
|
ref: ref,
|
|
1334
1306
|
addEndListener: transitionEnd
|
|
1335
1307
|
}, props, {
|
|
1336
1308
|
onEnter: handleEnter
|
|
1337
1309
|
}), function (status, innerProps) {
|
|
1338
|
-
return
|
|
1310
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1339
1311
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1340
1312
|
}));
|
|
1341
1313
|
});
|
|
1342
1314
|
});
|
|
1343
|
-
Fade.defaultProps = defaultProps$
|
|
1315
|
+
Fade.defaultProps = defaultProps$D;
|
|
1344
1316
|
Fade.displayName = 'Fade';
|
|
1345
1317
|
|
|
1346
|
-
var propTypes = {
|
|
1318
|
+
var propTypes$a = {
|
|
1347
1319
|
label: PropTypes.string.isRequired,
|
|
1348
1320
|
onClick: PropTypes.func
|
|
1349
1321
|
};
|
|
1350
|
-
var defaultProps$
|
|
1322
|
+
var defaultProps$C = {
|
|
1351
1323
|
label: 'Close'
|
|
1352
1324
|
};
|
|
1353
|
-
var CloseButton =
|
|
1325
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1354
1326
|
var label = _ref.label,
|
|
1355
1327
|
onClick = _ref.onClick,
|
|
1356
1328
|
className = _ref.className,
|
|
1357
1329
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1358
1330
|
|
|
1359
|
-
return /*#__PURE__*/
|
|
1331
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1360
1332
|
ref: ref,
|
|
1361
1333
|
type: "button",
|
|
1362
1334
|
className: classnames('close', className),
|
|
1363
1335
|
onClick: onClick
|
|
1364
|
-
}, props), /*#__PURE__*/
|
|
1336
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1365
1337
|
"aria-hidden": "true"
|
|
1366
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1338
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1367
1339
|
className: "sr-only"
|
|
1368
1340
|
}, label));
|
|
1369
1341
|
});
|
|
1370
1342
|
CloseButton.displayName = 'CloseButton';
|
|
1371
|
-
CloseButton.propTypes = propTypes;
|
|
1372
|
-
CloseButton.defaultProps = defaultProps$
|
|
1343
|
+
CloseButton.propTypes = propTypes$a;
|
|
1344
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1373
1345
|
|
|
1374
1346
|
var divWithClassName = (function (className) {
|
|
1375
|
-
return
|
|
1376
|
-
return /*#__PURE__*/
|
|
1347
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1348
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1377
1349
|
ref: ref,
|
|
1378
1350
|
className: classnames(p.className, className)
|
|
1379
1351
|
}));
|
|
@@ -1399,7 +1371,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1399
1371
|
Component = _ref.Component,
|
|
1400
1372
|
defaultProps = _ref.defaultProps;
|
|
1401
1373
|
|
|
1402
|
-
var BsComponent =
|
|
1374
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1403
1375
|
var className = _ref2.className,
|
|
1404
1376
|
bsPrefix = _ref2.bsPrefix,
|
|
1405
1377
|
_ref2$as = _ref2.as,
|
|
@@ -1407,7 +1379,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1407
1379
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1408
1380
|
|
|
1409
1381
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1410
|
-
return /*#__PURE__*/
|
|
1382
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1411
1383
|
ref: ref,
|
|
1412
1384
|
className: classnames(className, resolvedPrefix)
|
|
1413
1385
|
}, props));
|
|
@@ -1429,7 +1401,7 @@ function isTrivialHref(href) {
|
|
|
1429
1401
|
*/
|
|
1430
1402
|
|
|
1431
1403
|
|
|
1432
|
-
var SafeAnchor =
|
|
1404
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1433
1405
|
var _ref$as = _ref.as,
|
|
1434
1406
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1435
1407
|
disabled = _ref.disabled,
|
|
@@ -1473,7 +1445,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1473
1445
|
props['aria-disabled'] = true;
|
|
1474
1446
|
}
|
|
1475
1447
|
|
|
1476
|
-
return /*#__PURE__*/
|
|
1448
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1477
1449
|
ref: ref
|
|
1478
1450
|
}, props, {
|
|
1479
1451
|
onClick: handleClick,
|
|
@@ -1482,20 +1454,20 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1482
1454
|
});
|
|
1483
1455
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1484
1456
|
|
|
1485
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1486
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1457
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1458
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1487
1459
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1488
|
-
Component: DivStyledAsH4
|
|
1460
|
+
Component: DivStyledAsH4$1
|
|
1489
1461
|
});
|
|
1490
1462
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1491
1463
|
Component: SafeAnchor
|
|
1492
1464
|
});
|
|
1493
|
-
var defaultProps$
|
|
1465
|
+
var defaultProps$B = {
|
|
1494
1466
|
show: true,
|
|
1495
1467
|
transition: Fade,
|
|
1496
1468
|
closeLabel: 'Close alert'
|
|
1497
1469
|
};
|
|
1498
|
-
var Alert =
|
|
1470
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1499
1471
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1500
1472
|
show: 'onClose'
|
|
1501
1473
|
}),
|
|
@@ -1517,17 +1489,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1517
1489
|
}
|
|
1518
1490
|
});
|
|
1519
1491
|
var Transition = transition === true ? Fade : transition;
|
|
1520
|
-
var alert = /*#__PURE__*/
|
|
1492
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1521
1493
|
role: "alert"
|
|
1522
1494
|
}, Transition ? props : undefined, {
|
|
1523
1495
|
ref: ref,
|
|
1524
1496
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1525
|
-
}), dismissible && /*#__PURE__*/
|
|
1497
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1526
1498
|
onClick: handleClose,
|
|
1527
1499
|
label: closeLabel
|
|
1528
1500
|
}), children);
|
|
1529
1501
|
if (!Transition) return show ? alert : null;
|
|
1530
|
-
return /*#__PURE__*/
|
|
1502
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1531
1503
|
unmountOnExit: true
|
|
1532
1504
|
}, props, {
|
|
1533
1505
|
ref: undefined,
|
|
@@ -1535,14 +1507,14 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1535
1507
|
}), alert);
|
|
1536
1508
|
});
|
|
1537
1509
|
Alert.displayName = 'Alert';
|
|
1538
|
-
Alert.defaultProps = defaultProps$
|
|
1510
|
+
Alert.defaultProps = defaultProps$B;
|
|
1539
1511
|
Alert.Link = AlertLink;
|
|
1540
1512
|
Alert.Heading = AlertHeading;
|
|
1541
1513
|
|
|
1542
|
-
var defaultProps$
|
|
1514
|
+
var defaultProps$A = {
|
|
1543
1515
|
pill: false
|
|
1544
1516
|
};
|
|
1545
|
-
var Badge =
|
|
1517
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1546
1518
|
var bsPrefix = _ref.bsPrefix,
|
|
1547
1519
|
variant = _ref.variant,
|
|
1548
1520
|
pill = _ref.pill,
|
|
@@ -1552,20 +1524,20 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1552
1524
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1553
1525
|
|
|
1554
1526
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1555
|
-
return /*#__PURE__*/
|
|
1527
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1556
1528
|
ref: ref
|
|
1557
1529
|
}, props, {
|
|
1558
1530
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1559
1531
|
}));
|
|
1560
1532
|
});
|
|
1561
1533
|
Badge.displayName = 'Badge';
|
|
1562
|
-
Badge.defaultProps = defaultProps$
|
|
1534
|
+
Badge.defaultProps = defaultProps$A;
|
|
1563
1535
|
|
|
1564
|
-
var defaultProps$
|
|
1536
|
+
var defaultProps$z = {
|
|
1565
1537
|
active: false,
|
|
1566
1538
|
linkProps: {}
|
|
1567
1539
|
};
|
|
1568
|
-
var BreadcrumbItem =
|
|
1540
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1569
1541
|
var bsPrefix = _ref.bsPrefix,
|
|
1570
1542
|
active = _ref.active,
|
|
1571
1543
|
children = _ref.children,
|
|
@@ -1581,27 +1553,27 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1581
1553
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1582
1554
|
|
|
1583
1555
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1584
|
-
return /*#__PURE__*/
|
|
1556
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1585
1557
|
ref: ref
|
|
1586
1558
|
}, props, {
|
|
1587
1559
|
className: classnames(prefix, className, {
|
|
1588
1560
|
active: active
|
|
1589
1561
|
}),
|
|
1590
1562
|
"aria-current": active ? 'page' : undefined
|
|
1591
|
-
}), active ? children : /*#__PURE__*/
|
|
1563
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1592
1564
|
href: href,
|
|
1593
1565
|
title: title,
|
|
1594
1566
|
target: target
|
|
1595
1567
|
}), children));
|
|
1596
1568
|
});
|
|
1597
1569
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1598
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1570
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1599
1571
|
|
|
1600
|
-
var defaultProps$
|
|
1572
|
+
var defaultProps$y = {
|
|
1601
1573
|
label: 'breadcrumb',
|
|
1602
1574
|
listProps: {}
|
|
1603
1575
|
};
|
|
1604
|
-
var Breadcrumb =
|
|
1576
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1605
1577
|
var bsPrefix = _ref.bsPrefix,
|
|
1606
1578
|
className = _ref.className,
|
|
1607
1579
|
listProps = _ref.listProps,
|
|
@@ -1612,24 +1584,24 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1612
1584
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1613
1585
|
|
|
1614
1586
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1615
|
-
return /*#__PURE__*/
|
|
1587
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1616
1588
|
"aria-label": label,
|
|
1617
1589
|
className: className,
|
|
1618
1590
|
ref: ref
|
|
1619
|
-
}, props), /*#__PURE__*/
|
|
1591
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1620
1592
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1621
1593
|
}), children));
|
|
1622
1594
|
});
|
|
1623
1595
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1624
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1596
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1625
1597
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1626
1598
|
|
|
1627
|
-
var defaultProps$
|
|
1599
|
+
var defaultProps$x = {
|
|
1628
1600
|
variant: 'primary',
|
|
1629
1601
|
active: false,
|
|
1630
1602
|
disabled: false
|
|
1631
1603
|
};
|
|
1632
|
-
var Button =
|
|
1604
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1633
1605
|
var bsPrefix = _ref.bsPrefix,
|
|
1634
1606
|
variant = _ref.variant,
|
|
1635
1607
|
size = _ref.size,
|
|
@@ -1641,10 +1613,10 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1641
1613
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1642
1614
|
|
|
1643
1615
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1644
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1616
|
+
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1645
1617
|
|
|
1646
1618
|
if (props.href) {
|
|
1647
|
-
return /*#__PURE__*/
|
|
1619
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1648
1620
|
as: as,
|
|
1649
1621
|
ref: ref,
|
|
1650
1622
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1662,19 +1634,19 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1662
1634
|
}
|
|
1663
1635
|
|
|
1664
1636
|
var Component = as || 'button';
|
|
1665
|
-
return /*#__PURE__*/
|
|
1637
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1666
1638
|
className: classes
|
|
1667
1639
|
}));
|
|
1668
1640
|
});
|
|
1669
1641
|
Button.displayName = 'Button';
|
|
1670
|
-
Button.defaultProps = defaultProps$
|
|
1642
|
+
Button.defaultProps = defaultProps$x;
|
|
1671
1643
|
|
|
1672
|
-
var defaultProps$
|
|
1644
|
+
var defaultProps$w = {
|
|
1673
1645
|
vertical: false,
|
|
1674
1646
|
toggle: false,
|
|
1675
1647
|
role: 'group'
|
|
1676
1648
|
};
|
|
1677
|
-
var ButtonGroup =
|
|
1649
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1678
1650
|
var bsPrefix = _ref.bsPrefix,
|
|
1679
1651
|
size = _ref.size,
|
|
1680
1652
|
toggle = _ref.toggle,
|
|
@@ -1687,38 +1659,38 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1687
1659
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1688
1660
|
var baseClass = prefix;
|
|
1689
1661
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1690
|
-
return /*#__PURE__*/
|
|
1662
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1691
1663
|
ref: ref,
|
|
1692
1664
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1693
1665
|
}));
|
|
1694
1666
|
});
|
|
1695
1667
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1696
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1668
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1697
1669
|
|
|
1698
|
-
var defaultProps$
|
|
1670
|
+
var defaultProps$v = {
|
|
1699
1671
|
role: 'toolbar'
|
|
1700
1672
|
};
|
|
1701
|
-
var ButtonToolbar =
|
|
1673
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1702
1674
|
var bsPrefix = _ref.bsPrefix,
|
|
1703
1675
|
className = _ref.className,
|
|
1704
1676
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1705
1677
|
|
|
1706
1678
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1707
|
-
return /*#__PURE__*/
|
|
1679
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1708
1680
|
ref: ref,
|
|
1709
1681
|
className: classnames(className, prefix)
|
|
1710
1682
|
}));
|
|
1711
1683
|
});
|
|
1712
1684
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1713
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1685
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1714
1686
|
|
|
1715
|
-
var context$1 =
|
|
1687
|
+
var context$1 = React__default.createContext(null);
|
|
1716
1688
|
context$1.displayName = 'CardContext';
|
|
1717
1689
|
|
|
1718
|
-
var defaultProps$
|
|
1690
|
+
var defaultProps$u = {
|
|
1719
1691
|
variant: null
|
|
1720
1692
|
};
|
|
1721
|
-
var CardImg =
|
|
1693
|
+
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1722
1694
|
function (_ref, ref) {
|
|
1723
1695
|
var bsPrefix = _ref.bsPrefix,
|
|
1724
1696
|
className = _ref.className,
|
|
@@ -1728,13 +1700,13 @@ function (_ref, ref) {
|
|
|
1728
1700
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1729
1701
|
|
|
1730
1702
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1731
|
-
return /*#__PURE__*/
|
|
1703
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1732
1704
|
ref: ref,
|
|
1733
1705
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1734
1706
|
}, props));
|
|
1735
1707
|
});
|
|
1736
1708
|
CardImg.displayName = 'CardImg';
|
|
1737
|
-
CardImg.defaultProps = defaultProps$
|
|
1709
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1738
1710
|
|
|
1739
1711
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1740
1712
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1754,10 +1726,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1754
1726
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1755
1727
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1756
1728
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1757
|
-
var defaultProps$
|
|
1729
|
+
var defaultProps$t = {
|
|
1758
1730
|
body: false
|
|
1759
1731
|
};
|
|
1760
|
-
var Card =
|
|
1732
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1761
1733
|
var bsPrefix = _ref.bsPrefix,
|
|
1762
1734
|
className = _ref.className,
|
|
1763
1735
|
bg = _ref.bg,
|
|
@@ -1775,19 +1747,19 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1775
1747
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1776
1748
|
};
|
|
1777
1749
|
}, [prefix]);
|
|
1778
|
-
return /*#__PURE__*/
|
|
1750
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1779
1751
|
value: cardContext
|
|
1780
|
-
}, /*#__PURE__*/
|
|
1752
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1781
1753
|
ref: ref
|
|
1782
1754
|
}, props, {
|
|
1783
1755
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1784
1756
|
}), body ?
|
|
1785
1757
|
/*#__PURE__*/
|
|
1786
1758
|
// @ts-ignore
|
|
1787
|
-
|
|
1759
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1788
1760
|
});
|
|
1789
1761
|
Card.displayName = 'Card';
|
|
1790
|
-
Card.defaultProps = defaultProps$
|
|
1762
|
+
Card.defaultProps = defaultProps$t;
|
|
1791
1763
|
Card.Img = CardImg;
|
|
1792
1764
|
Card.Title = CardTitle;
|
|
1793
1765
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1920,6 +1892,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1920
1892
|
/**
|
|
1921
1893
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1922
1894
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1895
|
+
*
|
|
1896
|
+
*
|
|
1897
|
+
*
|
|
1898
|
+
* ```tsx
|
|
1899
|
+
* const { set, clear } = useTimeout();
|
|
1900
|
+
* const [hello, showHello] = useState(false);
|
|
1901
|
+
* //Display hello after 5 seconds
|
|
1902
|
+
* set(() => showHello(true), 5000);
|
|
1903
|
+
* return (
|
|
1904
|
+
* <div className="App">
|
|
1905
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1906
|
+
* </div>
|
|
1907
|
+
* );
|
|
1908
|
+
* ```
|
|
1923
1909
|
*/
|
|
1924
1910
|
|
|
1925
1911
|
|
|
@@ -1960,7 +1946,22 @@ function useTimeout() {
|
|
|
1960
1946
|
|
|
1961
1947
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1962
1948
|
|
|
1963
|
-
var CarouselItem =
|
|
1949
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1950
|
+
var _ref$as = _ref.as,
|
|
1951
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1952
|
+
bsPrefix = _ref.bsPrefix,
|
|
1953
|
+
children = _ref.children,
|
|
1954
|
+
className = _ref.className,
|
|
1955
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1956
|
+
|
|
1957
|
+
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1958
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1959
|
+
ref: ref
|
|
1960
|
+
}, props, {
|
|
1961
|
+
className: finalClassName
|
|
1962
|
+
}), children);
|
|
1963
|
+
});
|
|
1964
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1964
1965
|
|
|
1965
1966
|
/**
|
|
1966
1967
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1973,13 +1974,27 @@ var CarouselItem = createWithBsPrefix('carousel-item');
|
|
|
1973
1974
|
|
|
1974
1975
|
function map(children, func) {
|
|
1975
1976
|
var index = 0;
|
|
1976
|
-
return
|
|
1977
|
-
return
|
|
1977
|
+
return React__default.Children.map(children, function (child) {
|
|
1978
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1979
|
+
});
|
|
1980
|
+
}
|
|
1981
|
+
/**
|
|
1982
|
+
* Iterates through children that are "valid elements".
|
|
1983
|
+
*
|
|
1984
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1985
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1986
|
+
*/
|
|
1987
|
+
|
|
1988
|
+
|
|
1989
|
+
function forEach(children, func) {
|
|
1990
|
+
var index = 0;
|
|
1991
|
+
React__default.Children.forEach(children, function (child) {
|
|
1992
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1978
1993
|
});
|
|
1979
1994
|
}
|
|
1980
1995
|
|
|
1981
1996
|
var SWIPE_THRESHOLD = 40;
|
|
1982
|
-
var propTypes$
|
|
1997
|
+
var propTypes$9 = {
|
|
1983
1998
|
/**
|
|
1984
1999
|
* @default 'carousel'
|
|
1985
2000
|
*/
|
|
@@ -2081,7 +2096,7 @@ var propTypes$1 = {
|
|
|
2081
2096
|
*/
|
|
2082
2097
|
nextLabel: PropTypes.string
|
|
2083
2098
|
};
|
|
2084
|
-
var defaultProps$
|
|
2099
|
+
var defaultProps$s = {
|
|
2085
2100
|
slide: true,
|
|
2086
2101
|
fade: false,
|
|
2087
2102
|
controls: true,
|
|
@@ -2092,12 +2107,12 @@ var defaultProps$c = {
|
|
|
2092
2107
|
pause: 'hover',
|
|
2093
2108
|
wrap: true,
|
|
2094
2109
|
touch: true,
|
|
2095
|
-
prevIcon: /*#__PURE__*/
|
|
2110
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2096
2111
|
"aria-hidden": "true",
|
|
2097
2112
|
className: "carousel-control-prev-icon"
|
|
2098
2113
|
}),
|
|
2099
2114
|
prevLabel: 'Previous',
|
|
2100
|
-
nextIcon: /*#__PURE__*/
|
|
2115
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2101
2116
|
"aria-hidden": "true",
|
|
2102
2117
|
className: "carousel-control-next-icon"
|
|
2103
2118
|
}),
|
|
@@ -2165,7 +2180,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2165
2180
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2166
2181
|
if (nextDirectionRef.current) {
|
|
2167
2182
|
setDirection(nextDirectionRef.current);
|
|
2168
|
-
nextDirectionRef.current = null;
|
|
2169
2183
|
} else {
|
|
2170
2184
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2171
2185
|
}
|
|
@@ -2177,7 +2191,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2177
2191
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2178
2192
|
}
|
|
2179
2193
|
|
|
2180
|
-
|
|
2194
|
+
useEffect(function () {
|
|
2195
|
+
if (nextDirectionRef.current) {
|
|
2196
|
+
nextDirectionRef.current = null;
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
var numChildren = 0;
|
|
2200
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2201
|
+
// (and count them, too)
|
|
2202
|
+
|
|
2203
|
+
forEach(children, function (child, index) {
|
|
2204
|
+
++numChildren;
|
|
2205
|
+
|
|
2206
|
+
if (index === activeIndex) {
|
|
2207
|
+
activeChildInterval = child.props.interval;
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2181
2211
|
var prev = useCallback(function (event) {
|
|
2182
2212
|
if (isSliding) {
|
|
2183
2213
|
return;
|
|
@@ -2363,17 +2393,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2363
2393
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2364
2394
|
var intervalHandleRef = useRef();
|
|
2365
2395
|
useEffect(function () {
|
|
2396
|
+
var _ref, _activeChildIntervalR;
|
|
2397
|
+
|
|
2366
2398
|
if (!shouldPlay) {
|
|
2367
2399
|
return undefined;
|
|
2368
2400
|
}
|
|
2369
2401
|
|
|
2370
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2402
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2371
2403
|
return function () {
|
|
2372
2404
|
if (intervalHandleRef.current !== null) {
|
|
2373
2405
|
clearInterval(intervalHandleRef.current);
|
|
2374
2406
|
}
|
|
2375
2407
|
};
|
|
2376
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2408
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2377
2409
|
var indicatorOnClicks = useMemo(function () {
|
|
2378
2410
|
return indicators && Array.from({
|
|
2379
2411
|
length: numChildren
|
|
@@ -2385,7 +2417,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2385
2417
|
};
|
|
2386
2418
|
});
|
|
2387
2419
|
}, [indicators, numChildren, onSelect]);
|
|
2388
|
-
return /*#__PURE__*/
|
|
2420
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2389
2421
|
ref: elementRef
|
|
2390
2422
|
}, props, {
|
|
2391
2423
|
onKeyDown: handleKeyDown,
|
|
@@ -2395,52 +2427,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2395
2427
|
onTouchMove: handleTouchMove,
|
|
2396
2428
|
onTouchEnd: handleTouchEnd,
|
|
2397
2429
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2398
|
-
}), indicators && /*#__PURE__*/
|
|
2430
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2399
2431
|
className: prefix + "-indicators"
|
|
2400
2432
|
}, map(children, function (_child, index) {
|
|
2401
|
-
return /*#__PURE__*/
|
|
2433
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2402
2434
|
key: index,
|
|
2403
2435
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2404
2436
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2405
2437
|
});
|
|
2406
|
-
})), /*#__PURE__*/
|
|
2438
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2407
2439
|
className: prefix + "-inner"
|
|
2408
2440
|
}, map(children, function (child, index) {
|
|
2409
2441
|
var isActive = index === renderedActiveIndex;
|
|
2410
|
-
return slide ? /*#__PURE__*/
|
|
2442
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2411
2443
|
in: isActive,
|
|
2412
2444
|
onEnter: isActive ? handleEnter : undefined,
|
|
2413
2445
|
onEntered: isActive ? handleEntered : undefined,
|
|
2414
2446
|
addEndListener: transitionEnd
|
|
2415
2447
|
}, function (status) {
|
|
2416
|
-
return
|
|
2448
|
+
return React__default.cloneElement(child, {
|
|
2417
2449
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2418
2450
|
});
|
|
2419
|
-
}) :
|
|
2451
|
+
}) : React__default.cloneElement(child, {
|
|
2420
2452
|
className: classnames(child.props.className, isActive && 'active')
|
|
2421
2453
|
});
|
|
2422
|
-
})), controls && /*#__PURE__*/
|
|
2454
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2423
2455
|
className: prefix + "-control-prev",
|
|
2424
2456
|
onClick: prev
|
|
2425
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2457
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2426
2458
|
className: "sr-only"
|
|
2427
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2459
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2428
2460
|
className: prefix + "-control-next",
|
|
2429
2461
|
onClick: next
|
|
2430
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2462
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2431
2463
|
className: "sr-only"
|
|
2432
2464
|
}, nextLabel))));
|
|
2433
2465
|
}
|
|
2434
2466
|
|
|
2435
|
-
var Carousel =
|
|
2467
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2436
2468
|
Carousel.displayName = 'Carousel';
|
|
2437
|
-
Carousel.propTypes = propTypes$
|
|
2438
|
-
Carousel.defaultProps = defaultProps$
|
|
2469
|
+
Carousel.propTypes = propTypes$9;
|
|
2470
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2439
2471
|
Carousel.Caption = CarouselCaption;
|
|
2440
2472
|
Carousel.Item = CarouselItem;
|
|
2441
2473
|
|
|
2442
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2443
|
-
var Col =
|
|
2474
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2475
|
+
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2444
2476
|
function (_ref, ref) {
|
|
2445
2477
|
var bsPrefix = _ref.bsPrefix,
|
|
2446
2478
|
className = _ref.className,
|
|
@@ -2451,7 +2483,7 @@ function (_ref, ref) {
|
|
|
2451
2483
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2452
2484
|
var spans = [];
|
|
2453
2485
|
var classes = [];
|
|
2454
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2486
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2455
2487
|
var propValue = props[brkPoint];
|
|
2456
2488
|
delete props[brkPoint];
|
|
2457
2489
|
var span;
|
|
@@ -2477,7 +2509,7 @@ function (_ref, ref) {
|
|
|
2477
2509
|
spans.push(prefix); // plain 'col'
|
|
2478
2510
|
}
|
|
2479
2511
|
|
|
2480
|
-
return /*#__PURE__*/
|
|
2512
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2481
2513
|
ref: ref,
|
|
2482
2514
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2483
2515
|
}));
|
|
@@ -2485,6 +2517,13 @@ function (_ref, ref) {
|
|
|
2485
2517
|
Col.displayName = 'Col';
|
|
2486
2518
|
|
|
2487
2519
|
var matchesImpl;
|
|
2520
|
+
/**
|
|
2521
|
+
* Checks if a given element matches a selector.
|
|
2522
|
+
*
|
|
2523
|
+
* @param node the element
|
|
2524
|
+
* @param selector the selector
|
|
2525
|
+
*/
|
|
2526
|
+
|
|
2488
2527
|
function matches(node, selector) {
|
|
2489
2528
|
if (!matchesImpl) {
|
|
2490
2529
|
var body = document.body;
|
|
@@ -2499,6 +2538,13 @@ function matches(node, selector) {
|
|
|
2499
2538
|
}
|
|
2500
2539
|
|
|
2501
2540
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2541
|
+
/**
|
|
2542
|
+
* Runs `querySelectorAll` on a given element.
|
|
2543
|
+
*
|
|
2544
|
+
* @param element the element
|
|
2545
|
+
* @param selector the selector
|
|
2546
|
+
*/
|
|
2547
|
+
|
|
2502
2548
|
function qsa(element, selector) {
|
|
2503
2549
|
return toArray(element.querySelectorAll(selector));
|
|
2504
2550
|
}
|
|
@@ -2586,7 +2632,7 @@ function useForceUpdate() {
|
|
|
2586
2632
|
return dispatch;
|
|
2587
2633
|
}
|
|
2588
2634
|
|
|
2589
|
-
var DropdownContext = /*#__PURE__*/
|
|
2635
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2590
2636
|
|
|
2591
2637
|
function useSafeState(state) {
|
|
2592
2638
|
var isMounted = useMounted();
|
|
@@ -2632,21 +2678,50 @@ function getBasePlacement(placement) {
|
|
|
2632
2678
|
return placement.split('-')[0];
|
|
2633
2679
|
}
|
|
2634
2680
|
|
|
2635
|
-
|
|
2681
|
+
function getBoundingClientRect(element) {
|
|
2682
|
+
var rect = element.getBoundingClientRect();
|
|
2683
|
+
return {
|
|
2684
|
+
width: rect.width,
|
|
2685
|
+
height: rect.height,
|
|
2686
|
+
top: rect.top,
|
|
2687
|
+
right: rect.right,
|
|
2688
|
+
bottom: rect.bottom,
|
|
2689
|
+
left: rect.left,
|
|
2690
|
+
x: rect.left,
|
|
2691
|
+
y: rect.top
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2636
2695
|
// means it doesn't take into account transforms.
|
|
2696
|
+
|
|
2637
2697
|
function getLayoutRect(element) {
|
|
2698
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2699
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2700
|
+
|
|
2701
|
+
var width = element.offsetWidth;
|
|
2702
|
+
var height = element.offsetHeight;
|
|
2703
|
+
|
|
2704
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2705
|
+
width = clientRect.width;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2709
|
+
height = clientRect.height;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2638
2712
|
return {
|
|
2639
2713
|
x: element.offsetLeft,
|
|
2640
2714
|
y: element.offsetTop,
|
|
2641
|
-
width:
|
|
2642
|
-
height:
|
|
2715
|
+
width: width,
|
|
2716
|
+
height: height
|
|
2643
2717
|
};
|
|
2644
2718
|
}
|
|
2645
2719
|
|
|
2646
|
-
/*:: import type { Window } from '../types'; */
|
|
2647
|
-
|
|
2648
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2649
2720
|
function getWindow(node) {
|
|
2721
|
+
if (node == null) {
|
|
2722
|
+
return window;
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2650
2725
|
if (node.toString() !== '[object Window]') {
|
|
2651
2726
|
var ownerDocument = node.ownerDocument;
|
|
2652
2727
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2655,43 +2730,39 @@ function getWindow(node) {
|
|
|
2655
2730
|
return node;
|
|
2656
2731
|
}
|
|
2657
2732
|
|
|
2658
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2659
|
-
Element); */
|
|
2660
|
-
|
|
2661
2733
|
function isElement(node) {
|
|
2662
2734
|
var OwnElement = getWindow(node).Element;
|
|
2663
2735
|
return node instanceof OwnElement || node instanceof Element;
|
|
2664
2736
|
}
|
|
2665
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2666
|
-
HTMLElement); */
|
|
2667
|
-
|
|
2668
2737
|
|
|
2669
2738
|
function isHTMLElement(node) {
|
|
2670
2739
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2671
2740
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2672
2741
|
}
|
|
2673
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2674
|
-
ShadowRoot); */
|
|
2675
|
-
|
|
2676
2742
|
|
|
2677
2743
|
function isShadowRoot(node) {
|
|
2744
|
+
// IE 11 has no ShadowRoot
|
|
2745
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2746
|
+
return false;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2678
2749
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2679
2750
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2680
2751
|
}
|
|
2681
2752
|
|
|
2682
|
-
function contains(parent, child) {
|
|
2753
|
+
function contains$1(parent, child) {
|
|
2683
2754
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2684
2755
|
|
|
2685
2756
|
if (parent.contains(child)) {
|
|
2686
2757
|
return true;
|
|
2687
2758
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2688
|
-
else if (isShadowRoot(rootNode)) {
|
|
2759
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2689
2760
|
var next = child;
|
|
2690
2761
|
|
|
2691
2762
|
do {
|
|
2692
2763
|
if (next && parent.isSameNode(next)) {
|
|
2693
2764
|
return true;
|
|
2694
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2765
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2695
2766
|
|
|
2696
2767
|
|
|
2697
2768
|
next = next.parentNode || next.host;
|
|
@@ -2706,7 +2777,7 @@ function getNodeName(element) {
|
|
|
2706
2777
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2707
2778
|
}
|
|
2708
2779
|
|
|
2709
|
-
function getComputedStyle$
|
|
2780
|
+
function getComputedStyle$1(element) {
|
|
2710
2781
|
return getWindow(element).getComputedStyle(element);
|
|
2711
2782
|
}
|
|
2712
2783
|
|
|
@@ -2715,8 +2786,9 @@ function isTableElement(element) {
|
|
|
2715
2786
|
}
|
|
2716
2787
|
|
|
2717
2788
|
function getDocumentElement(element) {
|
|
2718
|
-
// $FlowFixMe: assume body is always available
|
|
2719
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2789
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2790
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2791
|
+
element.document) || window.document).documentElement;
|
|
2720
2792
|
}
|
|
2721
2793
|
|
|
2722
2794
|
function getParentNode(element) {
|
|
@@ -2724,12 +2796,13 @@ function getParentNode(element) {
|
|
|
2724
2796
|
return element;
|
|
2725
2797
|
}
|
|
2726
2798
|
|
|
2727
|
-
return (//
|
|
2799
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2800
|
+
// $FlowFixMe[incompatible-return]
|
|
2801
|
+
// $FlowFixMe[prop-missing]
|
|
2728
2802
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2729
|
-
element.parentNode || // DOM Element detected
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2803
|
+
element.parentNode || ( // DOM Element detected
|
|
2804
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2805
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2733
2806
|
getDocumentElement(element) // fallback
|
|
2734
2807
|
|
|
2735
2808
|
);
|
|
@@ -2737,33 +2810,36 @@ function getParentNode(element) {
|
|
|
2737
2810
|
|
|
2738
2811
|
function getTrueOffsetParent(element) {
|
|
2739
2812
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2740
|
-
getComputedStyle$
|
|
2813
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2741
2814
|
return null;
|
|
2742
2815
|
}
|
|
2743
2816
|
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
if (offsetParent) {
|
|
2747
|
-
var html = getDocumentElement(offsetParent);
|
|
2748
|
-
|
|
2749
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2750
|
-
return html;
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
|
-
|
|
2754
|
-
return offsetParent;
|
|
2817
|
+
return element.offsetParent;
|
|
2755
2818
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2756
2819
|
// return the containing block
|
|
2757
2820
|
|
|
2758
2821
|
|
|
2759
2822
|
function getContainingBlock(element) {
|
|
2823
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2824
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2825
|
+
|
|
2826
|
+
if (isIE && isHTMLElement(element)) {
|
|
2827
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2828
|
+
var elementCss = getComputedStyle$1(element);
|
|
2829
|
+
|
|
2830
|
+
if (elementCss.position === 'fixed') {
|
|
2831
|
+
return null;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2760
2835
|
var currentNode = getParentNode(element);
|
|
2761
2836
|
|
|
2762
2837
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2763
|
-
var css = getComputedStyle$
|
|
2838
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2764
2839
|
// create a containing block.
|
|
2840
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2765
2841
|
|
|
2766
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2842
|
+
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') {
|
|
2767
2843
|
return currentNode;
|
|
2768
2844
|
} else {
|
|
2769
2845
|
currentNode = currentNode.parentNode;
|
|
@@ -2779,11 +2855,11 @@ function getOffsetParent(element) {
|
|
|
2779
2855
|
var window = getWindow(element);
|
|
2780
2856
|
var offsetParent = getTrueOffsetParent(element);
|
|
2781
2857
|
|
|
2782
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2858
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2783
2859
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2784
2860
|
}
|
|
2785
2861
|
|
|
2786
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2862
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2787
2863
|
return window;
|
|
2788
2864
|
}
|
|
2789
2865
|
|
|
@@ -2794,8 +2870,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2794
2870
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2795
2871
|
}
|
|
2796
2872
|
|
|
2797
|
-
|
|
2798
|
-
|
|
2873
|
+
var max = Math.max;
|
|
2874
|
+
var min = Math.min;
|
|
2875
|
+
var round = Math.round;
|
|
2876
|
+
|
|
2877
|
+
function within(min$1, value, max$1) {
|
|
2878
|
+
return max(min$1, min(value, max$1));
|
|
2799
2879
|
}
|
|
2800
2880
|
|
|
2801
2881
|
function getFreshSideObject() {
|
|
@@ -2808,7 +2888,7 @@ function getFreshSideObject() {
|
|
|
2808
2888
|
}
|
|
2809
2889
|
|
|
2810
2890
|
function mergePaddingObject(paddingObject) {
|
|
2811
|
-
return Object.assign(
|
|
2891
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2812
2892
|
}
|
|
2813
2893
|
|
|
2814
2894
|
function expandToHashMap(value, keys) {
|
|
@@ -2818,11 +2898,19 @@ function expandToHashMap(value, keys) {
|
|
|
2818
2898
|
}, {});
|
|
2819
2899
|
}
|
|
2820
2900
|
|
|
2901
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2902
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2903
|
+
placement: state.placement
|
|
2904
|
+
})) : padding;
|
|
2905
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2821
2908
|
function arrow(_ref) {
|
|
2822
2909
|
var _state$modifiersData$;
|
|
2823
2910
|
|
|
2824
2911
|
var state = _ref.state,
|
|
2825
|
-
name = _ref.name
|
|
2912
|
+
name = _ref.name,
|
|
2913
|
+
options = _ref.options;
|
|
2826
2914
|
var arrowElement = state.elements.arrow;
|
|
2827
2915
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2828
2916
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2834,7 +2922,7 @@ function arrow(_ref) {
|
|
|
2834
2922
|
return;
|
|
2835
2923
|
}
|
|
2836
2924
|
|
|
2837
|
-
var paddingObject =
|
|
2925
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2838
2926
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2839
2927
|
var minProp = axis === 'y' ? top : left;
|
|
2840
2928
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2854,14 +2942,11 @@ function arrow(_ref) {
|
|
|
2854
2942
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2855
2943
|
}
|
|
2856
2944
|
|
|
2857
|
-
function effect(_ref2) {
|
|
2945
|
+
function effect$1(_ref2) {
|
|
2858
2946
|
var state = _ref2.state,
|
|
2859
|
-
options = _ref2.options
|
|
2860
|
-
name = _ref2.name;
|
|
2947
|
+
options = _ref2.options;
|
|
2861
2948
|
var _options$element = options.element,
|
|
2862
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2863
|
-
_options$padding = options.padding,
|
|
2864
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2949
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2865
2950
|
|
|
2866
2951
|
if (arrowElement == null) {
|
|
2867
2952
|
return;
|
|
@@ -2882,7 +2967,7 @@ function effect(_ref2) {
|
|
|
2882
2967
|
}
|
|
2883
2968
|
}
|
|
2884
2969
|
|
|
2885
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2970
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2886
2971
|
if (process.env.NODE_ENV !== "production") {
|
|
2887
2972
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2888
2973
|
}
|
|
@@ -2891,9 +2976,6 @@ function effect(_ref2) {
|
|
|
2891
2976
|
}
|
|
2892
2977
|
|
|
2893
2978
|
state.elements.arrow = arrowElement;
|
|
2894
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2895
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2896
|
-
};
|
|
2897
2979
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2898
2980
|
|
|
2899
2981
|
|
|
@@ -2902,7 +2984,7 @@ var arrow$1 = {
|
|
|
2902
2984
|
enabled: true,
|
|
2903
2985
|
phase: 'main',
|
|
2904
2986
|
fn: arrow,
|
|
2905
|
-
effect: effect,
|
|
2987
|
+
effect: effect$1,
|
|
2906
2988
|
requires: ['popperOffsets'],
|
|
2907
2989
|
requiresIfExists: ['preventOverflow']
|
|
2908
2990
|
};
|
|
@@ -2916,14 +2998,14 @@ var unsetSides = {
|
|
|
2916
2998
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2917
2999
|
// cleanly divide the values into the appropriate subpixels.
|
|
2918
3000
|
|
|
2919
|
-
function
|
|
3001
|
+
function roundOffsetsByDPR(_ref) {
|
|
2920
3002
|
var x = _ref.x,
|
|
2921
3003
|
y = _ref.y;
|
|
2922
3004
|
var win = window;
|
|
2923
3005
|
var dpr = win.devicePixelRatio || 1;
|
|
2924
3006
|
return {
|
|
2925
|
-
x:
|
|
2926
|
-
y:
|
|
3007
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
3008
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2927
3009
|
};
|
|
2928
3010
|
}
|
|
2929
3011
|
|
|
@@ -2936,11 +3018,14 @@ function mapToStyles(_ref2) {
|
|
|
2936
3018
|
offsets = _ref2.offsets,
|
|
2937
3019
|
position = _ref2.position,
|
|
2938
3020
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2939
|
-
adaptive = _ref2.adaptive
|
|
3021
|
+
adaptive = _ref2.adaptive,
|
|
3022
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2940
3023
|
|
|
2941
|
-
var
|
|
2942
|
-
x =
|
|
2943
|
-
|
|
3024
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
3025
|
+
_ref3$x = _ref3.x,
|
|
3026
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
3027
|
+
_ref3$y = _ref3.y,
|
|
3028
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2944
3029
|
|
|
2945
3030
|
var hasX = offsets.hasOwnProperty('x');
|
|
2946
3031
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2950,23 +3035,32 @@ function mapToStyles(_ref2) {
|
|
|
2950
3035
|
|
|
2951
3036
|
if (adaptive) {
|
|
2952
3037
|
var offsetParent = getOffsetParent(popper);
|
|
3038
|
+
var heightProp = 'clientHeight';
|
|
3039
|
+
var widthProp = 'clientWidth';
|
|
2953
3040
|
|
|
2954
3041
|
if (offsetParent === getWindow(popper)) {
|
|
2955
3042
|
offsetParent = getDocumentElement(popper);
|
|
2956
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2957
3043
|
|
|
2958
|
-
|
|
3044
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3045
|
+
heightProp = 'scrollHeight';
|
|
3046
|
+
widthProp = 'scrollWidth';
|
|
3047
|
+
}
|
|
3048
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2959
3049
|
|
|
2960
3050
|
|
|
3051
|
+
offsetParent = offsetParent;
|
|
3052
|
+
|
|
2961
3053
|
if (placement === top) {
|
|
2962
|
-
sideY = bottom;
|
|
2963
|
-
|
|
3054
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3055
|
+
|
|
3056
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2964
3057
|
y *= gpuAcceleration ? 1 : -1;
|
|
2965
3058
|
}
|
|
2966
3059
|
|
|
2967
3060
|
if (placement === left) {
|
|
2968
|
-
sideX = right;
|
|
2969
|
-
|
|
3061
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3062
|
+
|
|
3063
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2970
3064
|
x *= gpuAcceleration ? 1 : -1;
|
|
2971
3065
|
}
|
|
2972
3066
|
}
|
|
@@ -2978,22 +3072,24 @@ function mapToStyles(_ref2) {
|
|
|
2978
3072
|
if (gpuAcceleration) {
|
|
2979
3073
|
var _Object$assign;
|
|
2980
3074
|
|
|
2981
|
-
return Object.assign(
|
|
3075
|
+
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));
|
|
2982
3076
|
}
|
|
2983
3077
|
|
|
2984
|
-
return Object.assign(
|
|
3078
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2985
3079
|
}
|
|
2986
3080
|
|
|
2987
|
-
function computeStyles(
|
|
2988
|
-
var state =
|
|
2989
|
-
options =
|
|
3081
|
+
function computeStyles(_ref4) {
|
|
3082
|
+
var state = _ref4.state,
|
|
3083
|
+
options = _ref4.options;
|
|
2990
3084
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2991
3085
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2992
3086
|
_options$adaptive = options.adaptive,
|
|
2993
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3087
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3088
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3089
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2994
3090
|
|
|
2995
3091
|
if (process.env.NODE_ENV !== "production") {
|
|
2996
|
-
var transitionProperty = getComputedStyle$
|
|
3092
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
2997
3093
|
|
|
2998
3094
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
2999
3095
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3010,22 +3106,24 @@ function computeStyles(_ref3) {
|
|
|
3010
3106
|
};
|
|
3011
3107
|
|
|
3012
3108
|
if (state.modifiersData.popperOffsets != null) {
|
|
3013
|
-
state.styles.popper = Object.assign(
|
|
3109
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3014
3110
|
offsets: state.modifiersData.popperOffsets,
|
|
3015
3111
|
position: state.options.strategy,
|
|
3016
|
-
adaptive: adaptive
|
|
3112
|
+
adaptive: adaptive,
|
|
3113
|
+
roundOffsets: roundOffsets
|
|
3017
3114
|
})));
|
|
3018
3115
|
}
|
|
3019
3116
|
|
|
3020
3117
|
if (state.modifiersData.arrow != null) {
|
|
3021
|
-
state.styles.arrow = Object.assign(
|
|
3118
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3022
3119
|
offsets: state.modifiersData.arrow,
|
|
3023
3120
|
position: 'absolute',
|
|
3024
|
-
adaptive: false
|
|
3121
|
+
adaptive: false,
|
|
3122
|
+
roundOffsets: roundOffsets
|
|
3025
3123
|
})));
|
|
3026
3124
|
}
|
|
3027
3125
|
|
|
3028
|
-
state.attributes.popper = Object.assign(
|
|
3126
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3029
3127
|
'data-popper-placement': state.placement
|
|
3030
3128
|
});
|
|
3031
3129
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3043,7 +3141,7 @@ var passive = {
|
|
|
3043
3141
|
passive: true
|
|
3044
3142
|
};
|
|
3045
3143
|
|
|
3046
|
-
function effect
|
|
3144
|
+
function effect(_ref) {
|
|
3047
3145
|
var state = _ref.state,
|
|
3048
3146
|
instance = _ref.instance,
|
|
3049
3147
|
options = _ref.options;
|
|
@@ -3083,11 +3181,11 @@ var eventListeners = {
|
|
|
3083
3181
|
enabled: true,
|
|
3084
3182
|
phase: 'write',
|
|
3085
3183
|
fn: function fn() {},
|
|
3086
|
-
effect: effect
|
|
3184
|
+
effect: effect,
|
|
3087
3185
|
data: {}
|
|
3088
3186
|
};
|
|
3089
3187
|
|
|
3090
|
-
var hash = {
|
|
3188
|
+
var hash$1 = {
|
|
3091
3189
|
left: 'right',
|
|
3092
3190
|
right: 'left',
|
|
3093
3191
|
bottom: 'top',
|
|
@@ -3095,34 +3193,20 @@ var hash = {
|
|
|
3095
3193
|
};
|
|
3096
3194
|
function getOppositePlacement(placement) {
|
|
3097
3195
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3098
|
-
return hash[matched];
|
|
3196
|
+
return hash$1[matched];
|
|
3099
3197
|
});
|
|
3100
3198
|
}
|
|
3101
3199
|
|
|
3102
|
-
var hash
|
|
3200
|
+
var hash = {
|
|
3103
3201
|
start: 'end',
|
|
3104
3202
|
end: 'start'
|
|
3105
3203
|
};
|
|
3106
3204
|
function getOppositeVariationPlacement(placement) {
|
|
3107
3205
|
return placement.replace(/start|end/g, function (matched) {
|
|
3108
|
-
return hash
|
|
3206
|
+
return hash[matched];
|
|
3109
3207
|
});
|
|
3110
3208
|
}
|
|
3111
3209
|
|
|
3112
|
-
function getBoundingClientRect(element) {
|
|
3113
|
-
var rect = element.getBoundingClientRect();
|
|
3114
|
-
return {
|
|
3115
|
-
width: rect.width,
|
|
3116
|
-
height: rect.height,
|
|
3117
|
-
top: rect.top,
|
|
3118
|
-
right: rect.right,
|
|
3119
|
-
bottom: rect.bottom,
|
|
3120
|
-
left: rect.left,
|
|
3121
|
-
x: rect.left,
|
|
3122
|
-
y: rect.top
|
|
3123
|
-
};
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
3210
|
function getWindowScroll(node) {
|
|
3127
3211
|
var win = getWindow(node);
|
|
3128
3212
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3185,16 +3269,18 @@ function getViewportRect(element) {
|
|
|
3185
3269
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3186
3270
|
|
|
3187
3271
|
function getDocumentRect(element) {
|
|
3272
|
+
var _element$ownerDocumen;
|
|
3273
|
+
|
|
3188
3274
|
var html = getDocumentElement(element);
|
|
3189
3275
|
var winScroll = getWindowScroll(element);
|
|
3190
|
-
var body = element.ownerDocument.body;
|
|
3191
|
-
var width =
|
|
3192
|
-
var height =
|
|
3276
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3277
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3278
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3193
3279
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3194
3280
|
var y = -winScroll.scrollTop;
|
|
3195
3281
|
|
|
3196
|
-
if (getComputedStyle$
|
|
3197
|
-
x +=
|
|
3282
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3283
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3198
3284
|
}
|
|
3199
3285
|
|
|
3200
3286
|
return {
|
|
@@ -3207,7 +3293,7 @@ function getDocumentRect(element) {
|
|
|
3207
3293
|
|
|
3208
3294
|
function isScrollParent(element) {
|
|
3209
3295
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3210
|
-
var _getComputedStyle = getComputedStyle$
|
|
3296
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3211
3297
|
overflow = _getComputedStyle.overflow,
|
|
3212
3298
|
overflowX = _getComputedStyle.overflowX,
|
|
3213
3299
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3217,7 +3303,7 @@ function isScrollParent(element) {
|
|
|
3217
3303
|
|
|
3218
3304
|
function getScrollParent(node) {
|
|
3219
3305
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3220
|
-
// $FlowFixMe: assume body is always available
|
|
3306
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3221
3307
|
return node.ownerDocument.body;
|
|
3222
3308
|
}
|
|
3223
3309
|
|
|
@@ -3231,26 +3317,28 @@ function getScrollParent(node) {
|
|
|
3231
3317
|
/*
|
|
3232
3318
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3233
3319
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3234
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3320
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3235
3321
|
reference element's position.
|
|
3236
3322
|
*/
|
|
3237
3323
|
|
|
3238
3324
|
function listScrollParents(element, list) {
|
|
3325
|
+
var _element$ownerDocumen;
|
|
3326
|
+
|
|
3239
3327
|
if (list === void 0) {
|
|
3240
3328
|
list = [];
|
|
3241
3329
|
}
|
|
3242
3330
|
|
|
3243
3331
|
var scrollParent = getScrollParent(element);
|
|
3244
|
-
var isBody =
|
|
3332
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3245
3333
|
var win = getWindow(scrollParent);
|
|
3246
3334
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3247
3335
|
var updatedList = list.concat(target);
|
|
3248
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3336
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3249
3337
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3250
3338
|
}
|
|
3251
3339
|
|
|
3252
3340
|
function rectToClientRect(rect) {
|
|
3253
|
-
return Object.assign(
|
|
3341
|
+
return Object.assign({}, rect, {
|
|
3254
3342
|
left: rect.x,
|
|
3255
3343
|
top: rect.y,
|
|
3256
3344
|
right: rect.x + rect.width,
|
|
@@ -3280,16 +3368,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3280
3368
|
|
|
3281
3369
|
function getClippingParents(element) {
|
|
3282
3370
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3283
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3371
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3284
3372
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3285
3373
|
|
|
3286
3374
|
if (!isElement(clipperElement)) {
|
|
3287
3375
|
return [];
|
|
3288
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3376
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3289
3377
|
|
|
3290
3378
|
|
|
3291
3379
|
return clippingParents.filter(function (clippingParent) {
|
|
3292
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3380
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3293
3381
|
});
|
|
3294
3382
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3295
3383
|
// clipping parents
|
|
@@ -3301,10 +3389,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3301
3389
|
var firstClippingParent = clippingParents[0];
|
|
3302
3390
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3303
3391
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3304
|
-
accRect.top =
|
|
3305
|
-
accRect.right =
|
|
3306
|
-
accRect.bottom =
|
|
3307
|
-
accRect.left =
|
|
3392
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3393
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3394
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3395
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3308
3396
|
return accRect;
|
|
3309
3397
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3310
3398
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3371,11 +3459,11 @@ function computeOffsets(_ref) {
|
|
|
3371
3459
|
|
|
3372
3460
|
switch (variation) {
|
|
3373
3461
|
case start:
|
|
3374
|
-
offsets[mainAxis] =
|
|
3462
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3375
3463
|
break;
|
|
3376
3464
|
|
|
3377
3465
|
case end:
|
|
3378
|
-
offsets[mainAxis] =
|
|
3466
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3379
3467
|
break;
|
|
3380
3468
|
}
|
|
3381
3469
|
}
|
|
@@ -3414,7 +3502,7 @@ function detectOverflow(state, options) {
|
|
|
3414
3502
|
strategy: 'absolute',
|
|
3415
3503
|
placement: placement
|
|
3416
3504
|
});
|
|
3417
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3505
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3418
3506
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3419
3507
|
// 0 or negative = within the clipping rect
|
|
3420
3508
|
|
|
@@ -3438,9 +3526,6 @@ function detectOverflow(state, options) {
|
|
|
3438
3526
|
return overflowOffsets;
|
|
3439
3527
|
}
|
|
3440
3528
|
|
|
3441
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3442
|
-
|
|
3443
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3444
3529
|
function computeAutoPlacement(state, options) {
|
|
3445
3530
|
if (options === void 0) {
|
|
3446
3531
|
options = {};
|
|
@@ -3457,8 +3542,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3457
3542
|
var variation = getVariation(placement);
|
|
3458
3543
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3459
3544
|
return getVariation(placement) === variation;
|
|
3460
|
-
}) : basePlacements;
|
|
3461
|
-
|
|
3545
|
+
}) : basePlacements;
|
|
3462
3546
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3463
3547
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3464
3548
|
});
|
|
@@ -3469,7 +3553,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3469
3553
|
if (process.env.NODE_ENV !== "production") {
|
|
3470
3554
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3471
3555
|
}
|
|
3472
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3556
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3473
3557
|
|
|
3474
3558
|
|
|
3475
3559
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3670,7 +3754,7 @@ function hide(_ref) {
|
|
|
3670
3754
|
isReferenceHidden: isReferenceHidden,
|
|
3671
3755
|
hasPopperEscaped: hasPopperEscaped
|
|
3672
3756
|
};
|
|
3673
|
-
state.attributes.popper = Object.assign(
|
|
3757
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3674
3758
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3675
3759
|
'data-popper-escaped': hasPopperEscaped
|
|
3676
3760
|
});
|
|
@@ -3689,7 +3773,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3689
3773
|
var basePlacement = getBasePlacement(placement);
|
|
3690
3774
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3691
3775
|
|
|
3692
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3776
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3693
3777
|
placement: placement
|
|
3694
3778
|
})) : offset,
|
|
3695
3779
|
skidding = _ref[0],
|
|
@@ -3795,7 +3879,7 @@ function preventOverflow(_ref) {
|
|
|
3795
3879
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3796
3880
|
var referenceRect = state.rects.reference;
|
|
3797
3881
|
var popperRect = state.rects.popper;
|
|
3798
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3882
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3799
3883
|
placement: state.placement
|
|
3800
3884
|
})) : tetherOffset;
|
|
3801
3885
|
var data = {
|
|
@@ -3807,13 +3891,13 @@ function preventOverflow(_ref) {
|
|
|
3807
3891
|
return;
|
|
3808
3892
|
}
|
|
3809
3893
|
|
|
3810
|
-
if (checkMainAxis) {
|
|
3894
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3811
3895
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3812
3896
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3813
3897
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3814
3898
|
var offset = popperOffsets[mainAxis];
|
|
3815
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3816
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3899
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3900
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3817
3901
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3818
3902
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3819
3903
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3840,26 +3924,29 @@ function preventOverflow(_ref) {
|
|
|
3840
3924
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3841
3925
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3842
3926
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3843
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3844
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3845
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3846
|
-
}
|
|
3847
3927
|
|
|
3848
|
-
|
|
3849
|
-
|
|
3928
|
+
if (checkMainAxis) {
|
|
3929
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3930
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3931
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
if (checkAltAxis) {
|
|
3935
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3850
3936
|
|
|
3851
|
-
|
|
3937
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3852
3938
|
|
|
3853
|
-
|
|
3939
|
+
var _offset = popperOffsets[altAxis];
|
|
3854
3940
|
|
|
3855
|
-
|
|
3941
|
+
var _min = _offset + overflow[_mainSide];
|
|
3856
3942
|
|
|
3857
|
-
|
|
3943
|
+
var _max = _offset - overflow[_altSide];
|
|
3858
3944
|
|
|
3859
|
-
|
|
3945
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3860
3946
|
|
|
3861
|
-
|
|
3862
|
-
|
|
3947
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3948
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3949
|
+
}
|
|
3863
3950
|
}
|
|
3864
3951
|
|
|
3865
3952
|
state.modifiersData[name] = data;
|
|
@@ -4090,9 +4177,9 @@ function uniqueBy(arr, fn) {
|
|
|
4090
4177
|
function mergeByName(modifiers) {
|
|
4091
4178
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4092
4179
|
var existing = merged[current.name];
|
|
4093
|
-
merged[current.name] = existing ? Object.assign(
|
|
4094
|
-
options: Object.assign(
|
|
4095
|
-
data: Object.assign(
|
|
4180
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4181
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4182
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4096
4183
|
}) : current;
|
|
4097
4184
|
return merged;
|
|
4098
4185
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4138,7 +4225,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4138
4225
|
var state = {
|
|
4139
4226
|
placement: 'bottom',
|
|
4140
4227
|
orderedModifiers: [],
|
|
4141
|
-
options: Object.assign(
|
|
4228
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4142
4229
|
modifiersData: {},
|
|
4143
4230
|
elements: {
|
|
4144
4231
|
reference: reference,
|
|
@@ -4153,7 +4240,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4153
4240
|
state: state,
|
|
4154
4241
|
setOptions: function setOptions(options) {
|
|
4155
4242
|
cleanupModifierEffects();
|
|
4156
|
-
state.options = Object.assign(
|
|
4243
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4157
4244
|
state.scrollParents = {
|
|
4158
4245
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4159
4246
|
popper: listScrollParents(popper)
|
|
@@ -4185,7 +4272,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4185
4272
|
}
|
|
4186
4273
|
}
|
|
4187
4274
|
|
|
4188
|
-
var _getComputedStyle = getComputedStyle$
|
|
4275
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4189
4276
|
marginTop = _getComputedStyle.marginTop,
|
|
4190
4277
|
marginRight = _getComputedStyle.marginRight,
|
|
4191
4278
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4395,6 +4482,11 @@ var ariaDescribedByModifier = {
|
|
|
4395
4482
|
|
|
4396
4483
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4397
4484
|
var ids = reference.getAttribute('aria-describedby');
|
|
4485
|
+
|
|
4486
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4487
|
+
return;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4398
4490
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4399
4491
|
}
|
|
4400
4492
|
}
|
|
@@ -4518,9 +4610,16 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4518
4610
|
}
|
|
4519
4611
|
|
|
4520
4612
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Checks if an element contains another given element.
|
|
4616
|
+
*
|
|
4617
|
+
* @param context the context element
|
|
4618
|
+
* @param node the element to check
|
|
4619
|
+
*/
|
|
4620
|
+
function contains(context, node) {
|
|
4621
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4622
|
+
// so we need to check on context instead of a document root element.
|
|
4524
4623
|
if (context.contains) return context.contains(node);
|
|
4525
4624
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4526
4625
|
}
|
|
@@ -4594,13 +4693,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4594
4693
|
return componentOrElement != null ? componentOrElement : null;
|
|
4595
4694
|
}
|
|
4596
4695
|
|
|
4597
|
-
var ownerDocument
|
|
4598
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4696
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4697
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4599
4698
|
});
|
|
4600
4699
|
|
|
4601
4700
|
var escapeKeyCode = 27;
|
|
4602
4701
|
|
|
4603
|
-
var noop$
|
|
4702
|
+
var noop$4 = function noop() {};
|
|
4604
4703
|
|
|
4605
4704
|
function isLeftClickEvent(event) {
|
|
4606
4705
|
return event.button === 0;
|
|
@@ -4633,11 +4732,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4633
4732
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4634
4733
|
|
|
4635
4734
|
var preventMouseRootCloseRef = useRef(false);
|
|
4636
|
-
var onClose = onRootClose || noop$
|
|
4735
|
+
var onClose = onRootClose || noop$4;
|
|
4637
4736
|
var handleMouseCapture = useCallback(function (e) {
|
|
4638
4737
|
var currentTarget = getRefTarget(ref);
|
|
4639
4738
|
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');
|
|
4640
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4739
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4641
4740
|
}, [ref]);
|
|
4642
4741
|
var handleMouse = useEventCallback(function (e) {
|
|
4643
4742
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4650,19 +4749,38 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4650
4749
|
}
|
|
4651
4750
|
});
|
|
4652
4751
|
useEffect(function () {
|
|
4653
|
-
if (disabled || ref == null) return undefined;
|
|
4654
|
-
|
|
4752
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4753
|
+
// https://github.com/facebook/react/issues/20074
|
|
4754
|
+
|
|
4755
|
+
var currentEvent = window.event;
|
|
4756
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4655
4757
|
// avoid false positives in the contains() check below if the target DOM
|
|
4656
4758
|
// element is removed in the React mouse callback.
|
|
4657
4759
|
|
|
4658
4760
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4659
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4660
|
-
|
|
4761
|
+
var removeMouseListener = listen(doc, clickTrigger, function (e) {
|
|
4762
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4763
|
+
if (e === currentEvent) {
|
|
4764
|
+
currentEvent = undefined;
|
|
4765
|
+
return;
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
handleMouse(e);
|
|
4769
|
+
});
|
|
4770
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4771
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4772
|
+
if (e === currentEvent) {
|
|
4773
|
+
currentEvent = undefined;
|
|
4774
|
+
return;
|
|
4775
|
+
}
|
|
4776
|
+
|
|
4777
|
+
handleKeyUp(e);
|
|
4778
|
+
});
|
|
4661
4779
|
var mobileSafariHackListeners = [];
|
|
4662
4780
|
|
|
4663
4781
|
if ('ontouchstart' in doc.documentElement) {
|
|
4664
4782
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4665
|
-
return listen(el, 'mousemove', noop$
|
|
4783
|
+
return listen(el, 'mousemove', noop$4);
|
|
4666
4784
|
});
|
|
4667
4785
|
}
|
|
4668
4786
|
|
|
@@ -4744,7 +4862,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4744
4862
|
});
|
|
4745
4863
|
}
|
|
4746
4864
|
|
|
4747
|
-
var noop$
|
|
4865
|
+
var noop$3 = function noop() {};
|
|
4748
4866
|
/**
|
|
4749
4867
|
* @memberOf Dropdown
|
|
4750
4868
|
* @param {object} options
|
|
@@ -4812,7 +4930,7 @@ function useDropdownMenu(options) {
|
|
|
4812
4930
|
|
|
4813
4931
|
var menu;
|
|
4814
4932
|
var menuProps = {
|
|
4815
|
-
ref: setMenu || noop$
|
|
4933
|
+
ref: setMenu || noop$3,
|
|
4816
4934
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4817
4935
|
};
|
|
4818
4936
|
var childArgs = {
|
|
@@ -4845,7 +4963,7 @@ function useDropdownMenu(options) {
|
|
|
4845
4963
|
});
|
|
4846
4964
|
return menu;
|
|
4847
4965
|
}
|
|
4848
|
-
var propTypes$
|
|
4966
|
+
var propTypes$8 = {
|
|
4849
4967
|
/**
|
|
4850
4968
|
* A render prop that returns a Menu element. The `props`
|
|
4851
4969
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4902,7 +5020,7 @@ var propTypes$2 = {
|
|
|
4902
5020
|
*/
|
|
4903
5021
|
rootCloseEvent: PropTypes.string
|
|
4904
5022
|
};
|
|
4905
|
-
var defaultProps$
|
|
5023
|
+
var defaultProps$r = {
|
|
4906
5024
|
usePopper: true
|
|
4907
5025
|
};
|
|
4908
5026
|
|
|
@@ -4912,19 +5030,19 @@ var defaultProps$d = {
|
|
|
4912
5030
|
* @displayName DropdownMenu
|
|
4913
5031
|
* @memberOf Dropdown
|
|
4914
5032
|
*/
|
|
4915
|
-
function DropdownMenu(_ref2) {
|
|
5033
|
+
function DropdownMenu$1(_ref2) {
|
|
4916
5034
|
var children = _ref2.children,
|
|
4917
5035
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4918
5036
|
|
|
4919
5037
|
var args = useDropdownMenu(options);
|
|
4920
|
-
return /*#__PURE__*/
|
|
5038
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4921
5039
|
}
|
|
4922
5040
|
|
|
4923
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4924
|
-
DropdownMenu.propTypes = propTypes$
|
|
4925
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5041
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5042
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5043
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4926
5044
|
|
|
4927
|
-
var noop$
|
|
5045
|
+
var noop$2 = function noop() {};
|
|
4928
5046
|
/**
|
|
4929
5047
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4930
5048
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4938,11 +5056,11 @@ function useDropdownToggle() {
|
|
|
4938
5056
|
_ref$show = _ref.show,
|
|
4939
5057
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4940
5058
|
_ref$toggle = _ref.toggle,
|
|
4941
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5059
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4942
5060
|
setToggle = _ref.setToggle;
|
|
4943
5061
|
|
|
4944
5062
|
return [{
|
|
4945
|
-
ref: setToggle || noop$
|
|
5063
|
+
ref: setToggle || noop$2,
|
|
4946
5064
|
'aria-haspopup': true,
|
|
4947
5065
|
'aria-expanded': !!show
|
|
4948
5066
|
}, {
|
|
@@ -4950,7 +5068,7 @@ function useDropdownToggle() {
|
|
|
4950
5068
|
toggle: toggle
|
|
4951
5069
|
}];
|
|
4952
5070
|
}
|
|
4953
|
-
var propTypes$
|
|
5071
|
+
var propTypes$7 = {
|
|
4954
5072
|
/**
|
|
4955
5073
|
* A render prop that returns a Toggle element. The `props`
|
|
4956
5074
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -4975,7 +5093,7 @@ var propTypes$3 = {
|
|
|
4975
5093
|
* @displayName DropdownToggle
|
|
4976
5094
|
* @memberOf Dropdown
|
|
4977
5095
|
*/
|
|
4978
|
-
function DropdownToggle(_ref2) {
|
|
5096
|
+
function DropdownToggle$1(_ref2) {
|
|
4979
5097
|
var children = _ref2.children;
|
|
4980
5098
|
|
|
4981
5099
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -4984,17 +5102,17 @@ function DropdownToggle(_ref2) {
|
|
|
4984
5102
|
show = _useDropdownToggle$.show,
|
|
4985
5103
|
toggle = _useDropdownToggle$.toggle;
|
|
4986
5104
|
|
|
4987
|
-
return /*#__PURE__*/
|
|
5105
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4988
5106
|
show: show,
|
|
4989
5107
|
toggle: toggle,
|
|
4990
5108
|
props: props
|
|
4991
5109
|
}));
|
|
4992
5110
|
}
|
|
4993
5111
|
|
|
4994
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4995
|
-
DropdownToggle.propTypes = propTypes$
|
|
5112
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5113
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
4996
5114
|
|
|
4997
|
-
var propTypes$
|
|
5115
|
+
var propTypes$6 = {
|
|
4998
5116
|
/**
|
|
4999
5117
|
* A render prop that returns the root dropdown element. The `props`
|
|
5000
5118
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5066,7 +5184,7 @@ var propTypes$4 = {
|
|
|
5066
5184
|
/**
|
|
5067
5185
|
* @displayName Dropdown
|
|
5068
5186
|
*/
|
|
5069
|
-
function Dropdown(_ref) {
|
|
5187
|
+
function Dropdown$1(_ref) {
|
|
5070
5188
|
var drop = _ref.drop,
|
|
5071
5189
|
alignEnd = _ref.alignEnd,
|
|
5072
5190
|
defaultShow = _ref.defaultShow,
|
|
@@ -5199,7 +5317,7 @@ function Dropdown(_ref) {
|
|
|
5199
5317
|
}
|
|
5200
5318
|
};
|
|
5201
5319
|
|
|
5202
|
-
return /*#__PURE__*/
|
|
5320
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5203
5321
|
value: context
|
|
5204
5322
|
}, children({
|
|
5205
5323
|
props: {
|
|
@@ -5208,19 +5326,19 @@ function Dropdown(_ref) {
|
|
|
5208
5326
|
}));
|
|
5209
5327
|
}
|
|
5210
5328
|
|
|
5211
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5212
|
-
Dropdown.propTypes = propTypes$
|
|
5213
|
-
Dropdown.Menu = DropdownMenu;
|
|
5214
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5329
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5330
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5331
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5332
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5215
5333
|
|
|
5216
|
-
var NavContext =
|
|
5334
|
+
var NavContext = React__default.createContext(null);
|
|
5217
5335
|
NavContext.displayName = 'NavContext';
|
|
5218
5336
|
|
|
5219
|
-
var defaultProps$
|
|
5337
|
+
var defaultProps$q = {
|
|
5220
5338
|
as: SafeAnchor,
|
|
5221
5339
|
disabled: false
|
|
5222
5340
|
};
|
|
5223
|
-
var DropdownItem =
|
|
5341
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5224
5342
|
var bsPrefix = _ref.bsPrefix,
|
|
5225
5343
|
className = _ref.className,
|
|
5226
5344
|
children = _ref.children,
|
|
@@ -5238,9 +5356,10 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5238
5356
|
var navContext = useContext(NavContext);
|
|
5239
5357
|
|
|
5240
5358
|
var _ref2 = navContext || {},
|
|
5241
|
-
activeKey = _ref2.activeKey;
|
|
5359
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5242
5360
|
|
|
5243
|
-
|
|
5361
|
+
|
|
5362
|
+
var key = makeEventKey(eventKey, href);
|
|
5244
5363
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5245
5364
|
var handleClick = useEventCallback(function (event) {
|
|
5246
5365
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5254,7 +5373,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5254
5373
|
/*#__PURE__*/
|
|
5255
5374
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5256
5375
|
// @ts-ignore
|
|
5257
|
-
|
|
5376
|
+
React__default.createElement(Component, _extends({}, props, {
|
|
5258
5377
|
ref: ref,
|
|
5259
5378
|
href: href,
|
|
5260
5379
|
disabled: disabled,
|
|
@@ -5264,7 +5383,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5264
5383
|
);
|
|
5265
5384
|
});
|
|
5266
5385
|
DropdownItem.displayName = 'DropdownItem';
|
|
5267
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5386
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5268
5387
|
|
|
5269
5388
|
var toFnRef = function toFnRef(ref) {
|
|
5270
5389
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5303,8 +5422,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5303
5422
|
}, [refA, refB]);
|
|
5304
5423
|
}
|
|
5305
5424
|
|
|
5306
|
-
var context
|
|
5307
|
-
context
|
|
5425
|
+
var context = React__default.createContext(null);
|
|
5426
|
+
context.displayName = 'NavbarContext';
|
|
5308
5427
|
|
|
5309
5428
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5310
5429
|
// @ts-ignore
|
|
@@ -5317,6 +5436,12 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5317
5436
|
return useMergedRefs(warningRef, ref);
|
|
5318
5437
|
}
|
|
5319
5438
|
|
|
5439
|
+
/**
|
|
5440
|
+
* Checks if a given element has a CSS class.
|
|
5441
|
+
*
|
|
5442
|
+
* @param element the element
|
|
5443
|
+
* @param className the CSS class name
|
|
5444
|
+
*/
|
|
5320
5445
|
function hasClass(element, className) {
|
|
5321
5446
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5322
5447
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5339,12 +5464,14 @@ function getMargins(element) {
|
|
|
5339
5464
|
function usePopperMarginModifiers() {
|
|
5340
5465
|
var overlayRef = useRef(null);
|
|
5341
5466
|
var margins = useRef(null);
|
|
5467
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5468
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5342
5469
|
var callback = useCallback(function (overlay) {
|
|
5343
|
-
if (!overlay || !(hasClass(overlay,
|
|
5470
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5344
5471
|
margins.current = getMargins(overlay);
|
|
5345
5472
|
overlay.style.margin = '0';
|
|
5346
5473
|
overlayRef.current = overlay;
|
|
5347
|
-
}, []);
|
|
5474
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5348
5475
|
var offset = useMemo(function () {
|
|
5349
5476
|
return {
|
|
5350
5477
|
name: 'offset',
|
|
@@ -5388,7 +5515,7 @@ function usePopperMarginModifiers() {
|
|
|
5388
5515
|
effect: function effect(_ref2) {
|
|
5389
5516
|
var state = _ref2.state;
|
|
5390
5517
|
|
|
5391
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5518
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5392
5519
|
return undefined;
|
|
5393
5520
|
}
|
|
5394
5521
|
|
|
@@ -5409,18 +5536,30 @@ function usePopperMarginModifiers() {
|
|
|
5409
5536
|
};
|
|
5410
5537
|
}
|
|
5411
5538
|
};
|
|
5412
|
-
}, []);
|
|
5539
|
+
}, [popoverClass]);
|
|
5413
5540
|
return [callback, [offset, popoverArrowMargins]];
|
|
5414
5541
|
}
|
|
5415
5542
|
|
|
5416
|
-
var
|
|
5543
|
+
var alignDirection = PropTypes.oneOf(['left', 'right']);
|
|
5544
|
+
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5545
|
+
sm: alignDirection
|
|
5546
|
+
}), PropTypes.shape({
|
|
5547
|
+
md: alignDirection
|
|
5548
|
+
}), PropTypes.shape({
|
|
5549
|
+
lg: alignDirection
|
|
5550
|
+
}), PropTypes.shape({
|
|
5551
|
+
xl: alignDirection
|
|
5552
|
+
})]);
|
|
5553
|
+
var defaultProps$p = {
|
|
5554
|
+
align: 'left',
|
|
5417
5555
|
alignRight: false,
|
|
5418
5556
|
flip: true
|
|
5419
5557
|
}; // TODO: remove this hack
|
|
5420
5558
|
|
|
5421
|
-
var DropdownMenu
|
|
5559
|
+
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5422
5560
|
var bsPrefix = _ref.bsPrefix,
|
|
5423
5561
|
className = _ref.className,
|
|
5562
|
+
align = _ref.align,
|
|
5424
5563
|
alignRight = _ref.alignRight,
|
|
5425
5564
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5426
5565
|
flip = _ref.flip,
|
|
@@ -5429,21 +5568,42 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5429
5568
|
_ref$as = _ref.as,
|
|
5430
5569
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5431
5570
|
popperConfig = _ref.popperConfig,
|
|
5432
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5571
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5433
5572
|
|
|
5434
|
-
var isNavbar = useContext(context
|
|
5573
|
+
var isNavbar = useContext(context);
|
|
5435
5574
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5436
5575
|
|
|
5437
5576
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5438
5577
|
popperRef = _usePopperMarginModif[0],
|
|
5439
5578
|
marginModifiers = _usePopperMarginModif[1];
|
|
5440
5579
|
|
|
5580
|
+
var alignClasses = [];
|
|
5581
|
+
|
|
5582
|
+
if (align) {
|
|
5583
|
+
if (typeof align === 'object') {
|
|
5584
|
+
var keys = Object.keys(align);
|
|
5585
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5586
|
+
|
|
5587
|
+
if (keys.length) {
|
|
5588
|
+
var brkPoint = keys[0];
|
|
5589
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5590
|
+
// left in addition to align left classes.
|
|
5591
|
+
// Reuse alignRight to toggle the class below.
|
|
5592
|
+
|
|
5593
|
+
alignRight = direction === 'left';
|
|
5594
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5595
|
+
}
|
|
5596
|
+
} else if (align === 'right') {
|
|
5597
|
+
alignRight = true;
|
|
5598
|
+
}
|
|
5599
|
+
}
|
|
5600
|
+
|
|
5441
5601
|
var _ref2 = useDropdownMenu({
|
|
5442
5602
|
flip: flip,
|
|
5443
5603
|
rootCloseEvent: rootCloseEvent,
|
|
5444
5604
|
show: showProps,
|
|
5445
5605
|
alignEnd: alignRight,
|
|
5446
|
-
usePopper: !isNavbar,
|
|
5606
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5447
5607
|
popperConfig: _extends({}, popperConfig, {
|
|
5448
5608
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5449
5609
|
})
|
|
@@ -5471,12 +5631,12 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5471
5631
|
props['x-placement'] = placement;
|
|
5472
5632
|
}
|
|
5473
5633
|
|
|
5474
|
-
return /*#__PURE__*/
|
|
5475
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5634
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5635
|
+
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5476
5636
|
}));
|
|
5477
5637
|
});
|
|
5478
|
-
DropdownMenu
|
|
5479
|
-
DropdownMenu
|
|
5638
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5639
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5480
5640
|
|
|
5481
5641
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5482
5642
|
|
|
@@ -5505,15 +5665,14 @@ module.exports = exports['default'];
|
|
|
5505
5665
|
|
|
5506
5666
|
unwrapExports(isRequiredForA11y_1);
|
|
5507
5667
|
|
|
5508
|
-
var DropdownToggle
|
|
5668
|
+
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5509
5669
|
var bsPrefix = _ref.bsPrefix,
|
|
5510
5670
|
split = _ref.split,
|
|
5511
5671
|
className = _ref.className,
|
|
5512
|
-
children = _ref.children,
|
|
5513
5672
|
childBsPrefix = _ref.childBsPrefix,
|
|
5514
5673
|
_ref$as = _ref.as,
|
|
5515
5674
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5516
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5675
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5517
5676
|
|
|
5518
5677
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5519
5678
|
|
|
@@ -5528,12 +5687,12 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5528
5687
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5529
5688
|
// underlying component, to allow it to render size and style variants.
|
|
5530
5689
|
|
|
5531
|
-
return /*#__PURE__*/
|
|
5690
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5532
5691
|
onClick: toggle,
|
|
5533
5692
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5534
|
-
}, toggleProps, props)
|
|
5693
|
+
}, toggleProps, props));
|
|
5535
5694
|
});
|
|
5536
|
-
DropdownToggle
|
|
5695
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5537
5696
|
|
|
5538
5697
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5539
5698
|
defaultProps: {
|
|
@@ -5548,10 +5707,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5548
5707
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5549
5708
|
Component: 'span'
|
|
5550
5709
|
});
|
|
5551
|
-
var defaultProps$
|
|
5710
|
+
var defaultProps$o = {
|
|
5552
5711
|
navbar: false
|
|
5553
5712
|
};
|
|
5554
|
-
var Dropdown
|
|
5713
|
+
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5555
5714
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5556
5715
|
show: 'onToggle'
|
|
5557
5716
|
}),
|
|
@@ -5564,9 +5723,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5564
5723
|
onToggle = _useUncontrolled.onToggle,
|
|
5565
5724
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5566
5725
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5567
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5568
|
-
|
|
5569
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5726
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5727
|
+
_useUncontrolled.navbar;
|
|
5728
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5570
5729
|
|
|
5571
5730
|
var onSelectCtx = useContext(SelectableContext);
|
|
5572
5731
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5588,9 +5747,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5588
5747
|
if (onSelect) onSelect(key, event);
|
|
5589
5748
|
handleToggle(false, event, 'select');
|
|
5590
5749
|
});
|
|
5591
|
-
return /*#__PURE__*/
|
|
5750
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5592
5751
|
value: handleSelect
|
|
5593
|
-
}, /*#__PURE__*/
|
|
5752
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
5594
5753
|
drop: drop,
|
|
5595
5754
|
show: show,
|
|
5596
5755
|
alignEnd: alignRight,
|
|
@@ -5599,20 +5758,20 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5599
5758
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5600
5759
|
}, function (_ref) {
|
|
5601
5760
|
var dropdownProps = _ref.props;
|
|
5602
|
-
return /*#__PURE__*/
|
|
5761
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5603
5762
|
ref: ref,
|
|
5604
5763
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5605
5764
|
}));
|
|
5606
5765
|
}));
|
|
5607
5766
|
});
|
|
5608
|
-
Dropdown
|
|
5609
|
-
Dropdown
|
|
5610
|
-
Dropdown
|
|
5611
|
-
Dropdown
|
|
5612
|
-
Dropdown
|
|
5613
|
-
Dropdown
|
|
5614
|
-
Dropdown
|
|
5615
|
-
Dropdown
|
|
5767
|
+
Dropdown.displayName = 'Dropdown';
|
|
5768
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5769
|
+
Dropdown.Divider = DropdownDivider;
|
|
5770
|
+
Dropdown.Header = DropdownHeader;
|
|
5771
|
+
Dropdown.Item = DropdownItem;
|
|
5772
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5773
|
+
Dropdown.Menu = DropdownMenu;
|
|
5774
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5616
5775
|
|
|
5617
5776
|
var propTypes$5 = {
|
|
5618
5777
|
/**
|
|
@@ -5634,6 +5793,15 @@ var propTypes$5 = {
|
|
|
5634
5793
|
/** Disables both Buttons */
|
|
5635
5794
|
disabled: PropTypes.bool,
|
|
5636
5795
|
|
|
5796
|
+
/**
|
|
5797
|
+
* Aligns the dropdown menu responsively.
|
|
5798
|
+
*
|
|
5799
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5800
|
+
*
|
|
5801
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5802
|
+
*/
|
|
5803
|
+
menuAlign: alignPropType,
|
|
5804
|
+
|
|
5637
5805
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5638
5806
|
menuRole: PropTypes.string,
|
|
5639
5807
|
|
|
@@ -5643,7 +5811,7 @@ var propTypes$5 = {
|
|
|
5643
5811
|
/**
|
|
5644
5812
|
* Which event when fired outside the component will cause it to be closed.
|
|
5645
5813
|
*
|
|
5646
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5814
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5647
5815
|
*/
|
|
5648
5816
|
rootCloseEvent: PropTypes.string,
|
|
5649
5817
|
|
|
@@ -5665,30 +5833,32 @@ var propTypes$5 = {
|
|
|
5665
5833
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5666
5834
|
*/
|
|
5667
5835
|
|
|
5668
|
-
var DropdownButton =
|
|
5836
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5669
5837
|
var title = _ref.title,
|
|
5670
5838
|
children = _ref.children,
|
|
5671
5839
|
bsPrefix = _ref.bsPrefix,
|
|
5672
5840
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5673
5841
|
variant = _ref.variant,
|
|
5674
5842
|
size = _ref.size,
|
|
5843
|
+
menuAlign = _ref.menuAlign,
|
|
5675
5844
|
menuRole = _ref.menuRole,
|
|
5676
5845
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5677
5846
|
disabled = _ref.disabled,
|
|
5678
5847
|
href = _ref.href,
|
|
5679
5848
|
id = _ref.id,
|
|
5680
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5849
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5681
5850
|
|
|
5682
|
-
return /*#__PURE__*/
|
|
5851
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5683
5852
|
ref: ref
|
|
5684
|
-
}, props), /*#__PURE__*/
|
|
5853
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5685
5854
|
id: id,
|
|
5686
5855
|
href: href,
|
|
5687
5856
|
size: size,
|
|
5688
5857
|
variant: variant,
|
|
5689
5858
|
disabled: disabled,
|
|
5690
5859
|
childBsPrefix: bsPrefix
|
|
5691
|
-
}, title), /*#__PURE__*/
|
|
5860
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5861
|
+
align: menuAlign,
|
|
5692
5862
|
role: menuRole,
|
|
5693
5863
|
renderOnMount: renderMenuOnMount,
|
|
5694
5864
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5790,7 +5960,7 @@ module.exports = exports['default'];
|
|
|
5790
5960
|
|
|
5791
5961
|
unwrapExports(all_1);
|
|
5792
5962
|
|
|
5793
|
-
var propTypes$
|
|
5963
|
+
var propTypes$4 = {
|
|
5794
5964
|
/**
|
|
5795
5965
|
* Specify whether the feedback is for valid or invalid fields
|
|
5796
5966
|
*
|
|
@@ -5802,7 +5972,7 @@ var propTypes$6 = {
|
|
|
5802
5972
|
tooltip: PropTypes.bool,
|
|
5803
5973
|
as: PropTypes.elementType
|
|
5804
5974
|
};
|
|
5805
|
-
var Feedback =
|
|
5975
|
+
var Feedback = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5806
5976
|
function (_ref, ref) {
|
|
5807
5977
|
var _ref$as = _ref.as,
|
|
5808
5978
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5813,19 +5983,19 @@ function (_ref, ref) {
|
|
|
5813
5983
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5814
5984
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5815
5985
|
|
|
5816
|
-
return /*#__PURE__*/
|
|
5986
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5817
5987
|
ref: ref,
|
|
5818
5988
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5819
5989
|
}));
|
|
5820
5990
|
});
|
|
5821
5991
|
Feedback.displayName = 'Feedback';
|
|
5822
|
-
Feedback.propTypes = propTypes$
|
|
5992
|
+
Feedback.propTypes = propTypes$4;
|
|
5823
5993
|
|
|
5824
|
-
var FormContext =
|
|
5994
|
+
var FormContext = React__default.createContext({
|
|
5825
5995
|
controlId: undefined
|
|
5826
5996
|
});
|
|
5827
5997
|
|
|
5828
|
-
var FormCheckInput =
|
|
5998
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5829
5999
|
var id = _ref.id,
|
|
5830
6000
|
bsPrefix = _ref.bsPrefix,
|
|
5831
6001
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5850,7 +6020,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5850
6020
|
defaultPrefix = _ref2[1];
|
|
5851
6021
|
|
|
5852
6022
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5853
|
-
return /*#__PURE__*/
|
|
6023
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5854
6024
|
ref: ref,
|
|
5855
6025
|
type: type,
|
|
5856
6026
|
id: id || controlId,
|
|
@@ -5859,7 +6029,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5859
6029
|
});
|
|
5860
6030
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5861
6031
|
|
|
5862
|
-
var FormCheckLabel =
|
|
6032
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5863
6033
|
var bsPrefix = _ref.bsPrefix,
|
|
5864
6034
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5865
6035
|
className = _ref.className,
|
|
@@ -5875,7 +6045,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5875
6045
|
defaultPrefix = _ref2[1];
|
|
5876
6046
|
|
|
5877
6047
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5878
|
-
return /*#__PURE__*/
|
|
6048
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5879
6049
|
ref: ref,
|
|
5880
6050
|
htmlFor: htmlFor || controlId,
|
|
5881
6051
|
className: classnames(className, bsPrefix)
|
|
@@ -5883,7 +6053,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5883
6053
|
});
|
|
5884
6054
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5885
6055
|
|
|
5886
|
-
var FormCheck =
|
|
6056
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5887
6057
|
var id = _ref.id,
|
|
5888
6058
|
bsPrefix = _ref.bsPrefix,
|
|
5889
6059
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5928,8 +6098,8 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5928
6098
|
custom: custom
|
|
5929
6099
|
};
|
|
5930
6100
|
}, [controlId, custom, id]);
|
|
5931
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5932
|
-
var input = /*#__PURE__*/
|
|
6101
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6102
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
5933
6103
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5934
6104
|
ref: ref,
|
|
5935
6105
|
isValid: isValid,
|
|
@@ -5938,14 +6108,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5938
6108
|
disabled: disabled,
|
|
5939
6109
|
as: as
|
|
5940
6110
|
}));
|
|
5941
|
-
return /*#__PURE__*/
|
|
6111
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5942
6112
|
value: innerFormContext
|
|
5943
|
-
}, /*#__PURE__*/
|
|
6113
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5944
6114
|
style: style,
|
|
5945
6115
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5946
|
-
}, children || /*#__PURE__*/
|
|
6116
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5947
6117
|
title: title
|
|
5948
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6118
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5949
6119
|
type: isValid ? 'valid' : 'invalid',
|
|
5950
6120
|
tooltip: feedbackTooltip
|
|
5951
6121
|
}, feedback))));
|
|
@@ -5954,7 +6124,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5954
6124
|
FormCheck.Input = FormCheckInput;
|
|
5955
6125
|
FormCheck.Label = FormCheckLabel;
|
|
5956
6126
|
|
|
5957
|
-
var FormFileInput =
|
|
6127
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
5958
6128
|
var id = _ref.id,
|
|
5959
6129
|
bsPrefix = _ref.bsPrefix,
|
|
5960
6130
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5977,7 +6147,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5977
6147
|
defaultPrefix = _ref2[1];
|
|
5978
6148
|
|
|
5979
6149
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5980
|
-
return /*#__PURE__*/
|
|
6150
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5981
6151
|
ref: ref,
|
|
5982
6152
|
id: id || controlId,
|
|
5983
6153
|
type: type,
|
|
@@ -5987,7 +6157,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5987
6157
|
});
|
|
5988
6158
|
FormFileInput.displayName = 'FormFileInput';
|
|
5989
6159
|
|
|
5990
|
-
var FormFileLabel =
|
|
6160
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5991
6161
|
var bsPrefix = _ref.bsPrefix,
|
|
5992
6162
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5993
6163
|
className = _ref.className,
|
|
@@ -6003,7 +6173,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6003
6173
|
defaultPrefix = _ref2[1];
|
|
6004
6174
|
|
|
6005
6175
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6006
|
-
return /*#__PURE__*/
|
|
6176
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6007
6177
|
ref: ref,
|
|
6008
6178
|
htmlFor: htmlFor || controlId,
|
|
6009
6179
|
className: classnames(className, bsPrefix),
|
|
@@ -6012,7 +6182,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6012
6182
|
});
|
|
6013
6183
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6014
6184
|
|
|
6015
|
-
var FormFile =
|
|
6185
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6016
6186
|
var id = _ref.id,
|
|
6017
6187
|
bsPrefix = _ref.bsPrefix,
|
|
6018
6188
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6055,7 +6225,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6055
6225
|
};
|
|
6056
6226
|
}, [controlId, custom, id]);
|
|
6057
6227
|
var hasLabel = label != null && label !== false && !children;
|
|
6058
|
-
var input = /*#__PURE__*/
|
|
6228
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6059
6229
|
ref: ref,
|
|
6060
6230
|
isValid: isValid,
|
|
6061
6231
|
isInvalid: isInvalid,
|
|
@@ -6063,14 +6233,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6063
6233
|
as: inputAs,
|
|
6064
6234
|
lang: lang
|
|
6065
6235
|
}));
|
|
6066
|
-
return /*#__PURE__*/
|
|
6236
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6067
6237
|
value: innerFormContext
|
|
6068
|
-
}, /*#__PURE__*/
|
|
6238
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6069
6239
|
style: style,
|
|
6070
6240
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6071
|
-
}, children || /*#__PURE__*/
|
|
6241
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6072
6242
|
"data-browse": dataBrowse
|
|
6073
|
-
}, label)) : /*#__PURE__*/
|
|
6243
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6074
6244
|
type: isValid ? 'valid' : 'invalid',
|
|
6075
6245
|
tooltip: feedbackTooltip
|
|
6076
6246
|
}, feedback))));
|
|
@@ -6079,7 +6249,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6079
6249
|
FormFile.Input = FormFileInput;
|
|
6080
6250
|
FormFile.Label = FormFileLabel;
|
|
6081
6251
|
|
|
6082
|
-
var FormControl =
|
|
6252
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6083
6253
|
var bsPrefix = _ref.bsPrefix,
|
|
6084
6254
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6085
6255
|
type = _ref.type,
|
|
@@ -6131,7 +6301,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6131
6301
|
}
|
|
6132
6302
|
|
|
6133
6303
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6134
|
-
return /*#__PURE__*/
|
|
6304
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6135
6305
|
type: type,
|
|
6136
6306
|
size: htmlSize,
|
|
6137
6307
|
ref: ref,
|
|
@@ -6145,7 +6315,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6145
6315
|
Feedback: Feedback
|
|
6146
6316
|
});
|
|
6147
6317
|
|
|
6148
|
-
var FormGroup =
|
|
6318
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6149
6319
|
var bsPrefix = _ref.bsPrefix,
|
|
6150
6320
|
className = _ref.className,
|
|
6151
6321
|
children = _ref.children,
|
|
@@ -6160,20 +6330,20 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6160
6330
|
controlId: controlId
|
|
6161
6331
|
};
|
|
6162
6332
|
}, [controlId]);
|
|
6163
|
-
return /*#__PURE__*/
|
|
6333
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6164
6334
|
value: context
|
|
6165
|
-
}, /*#__PURE__*/
|
|
6335
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6166
6336
|
ref: ref,
|
|
6167
6337
|
className: classnames(className, bsPrefix)
|
|
6168
6338
|
}), children));
|
|
6169
6339
|
});
|
|
6170
6340
|
FormGroup.displayName = 'FormGroup';
|
|
6171
6341
|
|
|
6172
|
-
var defaultProps$
|
|
6342
|
+
var defaultProps$n = {
|
|
6173
6343
|
column: false,
|
|
6174
6344
|
srOnly: false
|
|
6175
6345
|
};
|
|
6176
|
-
var FormLabel =
|
|
6346
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6177
6347
|
var _ref$as = _ref.as,
|
|
6178
6348
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6179
6349
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6188,11 +6358,11 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6188
6358
|
|
|
6189
6359
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6190
6360
|
var columnClass = 'col-form-label';
|
|
6191
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6361
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6192
6362
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6193
6363
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6194
6364
|
htmlFor = htmlFor || controlId;
|
|
6195
|
-
if (column) return /*#__PURE__*/
|
|
6365
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6196
6366
|
as: "label",
|
|
6197
6367
|
className: classes,
|
|
6198
6368
|
htmlFor: htmlFor
|
|
@@ -6200,7 +6370,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6200
6370
|
return (
|
|
6201
6371
|
/*#__PURE__*/
|
|
6202
6372
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6203
|
-
|
|
6373
|
+
React__default.createElement(Component, _extends({
|
|
6204
6374
|
ref: ref,
|
|
6205
6375
|
className: classes,
|
|
6206
6376
|
htmlFor: htmlFor
|
|
@@ -6208,9 +6378,9 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6208
6378
|
);
|
|
6209
6379
|
});
|
|
6210
6380
|
FormLabel.displayName = 'FormLabel';
|
|
6211
|
-
FormLabel.defaultProps = defaultProps$
|
|
6381
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6212
6382
|
|
|
6213
|
-
var FormText =
|
|
6383
|
+
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6214
6384
|
function (_ref, ref) {
|
|
6215
6385
|
var bsPrefix = _ref.bsPrefix,
|
|
6216
6386
|
className = _ref.className,
|
|
@@ -6220,15 +6390,15 @@ function (_ref, ref) {
|
|
|
6220
6390
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6221
6391
|
|
|
6222
6392
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6223
|
-
return /*#__PURE__*/
|
|
6393
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6224
6394
|
ref: ref,
|
|
6225
6395
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6226
6396
|
}));
|
|
6227
6397
|
});
|
|
6228
6398
|
FormText.displayName = 'FormText';
|
|
6229
6399
|
|
|
6230
|
-
var Switch =
|
|
6231
|
-
return /*#__PURE__*/
|
|
6400
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6401
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6232
6402
|
ref: ref,
|
|
6233
6403
|
type: "switch"
|
|
6234
6404
|
}));
|
|
@@ -6238,10 +6408,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6238
6408
|
Switch.Label = FormCheck.Label;
|
|
6239
6409
|
|
|
6240
6410
|
var FormRow = createWithBsPrefix('form-row');
|
|
6241
|
-
var defaultProps$
|
|
6411
|
+
var defaultProps$m = {
|
|
6242
6412
|
inline: false
|
|
6243
6413
|
};
|
|
6244
|
-
var FormImpl =
|
|
6414
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6245
6415
|
var bsPrefix = _ref.bsPrefix,
|
|
6246
6416
|
inline = _ref.inline,
|
|
6247
6417
|
className = _ref.className,
|
|
@@ -6251,13 +6421,13 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6251
6421
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6252
6422
|
|
|
6253
6423
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6254
|
-
return /*#__PURE__*/
|
|
6424
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6255
6425
|
ref: ref,
|
|
6256
6426
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6257
6427
|
}));
|
|
6258
6428
|
});
|
|
6259
6429
|
FormImpl.displayName = 'Form';
|
|
6260
|
-
FormImpl.defaultProps = defaultProps$
|
|
6430
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6261
6431
|
FormImpl.Row = FormRow;
|
|
6262
6432
|
FormImpl.Group = FormGroup;
|
|
6263
6433
|
FormImpl.Control = FormControl$1;
|
|
@@ -6267,10 +6437,10 @@ FormImpl.Switch = Switch;
|
|
|
6267
6437
|
FormImpl.Label = FormLabel;
|
|
6268
6438
|
FormImpl.Text = FormText;
|
|
6269
6439
|
|
|
6270
|
-
var defaultProps$
|
|
6440
|
+
var defaultProps$l = {
|
|
6271
6441
|
fluid: false
|
|
6272
6442
|
};
|
|
6273
|
-
var Container =
|
|
6443
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6274
6444
|
var bsPrefix = _ref.bsPrefix,
|
|
6275
6445
|
fluid = _ref.fluid,
|
|
6276
6446
|
_ref$as = _ref.as,
|
|
@@ -6280,16 +6450,16 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6280
6450
|
|
|
6281
6451
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6282
6452
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6283
|
-
return /*#__PURE__*/
|
|
6453
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6284
6454
|
ref: ref
|
|
6285
6455
|
}, props, {
|
|
6286
6456
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6287
6457
|
}));
|
|
6288
6458
|
});
|
|
6289
6459
|
Container.displayName = 'Container';
|
|
6290
|
-
Container.defaultProps = defaultProps$
|
|
6460
|
+
Container.defaultProps = defaultProps$l;
|
|
6291
6461
|
|
|
6292
|
-
var propTypes$
|
|
6462
|
+
var propTypes$3 = {
|
|
6293
6463
|
/**
|
|
6294
6464
|
* @default 'img'
|
|
6295
6465
|
*/
|
|
@@ -6321,7 +6491,7 @@ var defaultProps$k = {
|
|
|
6321
6491
|
roundedCircle: false,
|
|
6322
6492
|
thumbnail: false
|
|
6323
6493
|
};
|
|
6324
|
-
var Image =
|
|
6494
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6325
6495
|
var bsPrefix = _ref.bsPrefix,
|
|
6326
6496
|
className = _ref.className,
|
|
6327
6497
|
fluid = _ref.fluid,
|
|
@@ -6332,7 +6502,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6332
6502
|
|
|
6333
6503
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6334
6504
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6335
|
-
return /*#__PURE__*/
|
|
6505
|
+
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6336
6506
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6337
6507
|
ref: ref
|
|
6338
6508
|
}, props, {
|
|
@@ -6342,22 +6512,22 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6342
6512
|
Image.displayName = 'Image';
|
|
6343
6513
|
Image.defaultProps = defaultProps$k;
|
|
6344
6514
|
|
|
6345
|
-
var defaultProps$
|
|
6515
|
+
var defaultProps$j = {
|
|
6346
6516
|
fluid: true
|
|
6347
6517
|
};
|
|
6348
|
-
var FigureImage =
|
|
6518
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6349
6519
|
var className = _ref.className,
|
|
6350
6520
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6351
6521
|
|
|
6352
|
-
return /*#__PURE__*/
|
|
6522
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6353
6523
|
ref: ref
|
|
6354
6524
|
}, props, {
|
|
6355
6525
|
className: classnames(className, 'figure-img')
|
|
6356
6526
|
}));
|
|
6357
6527
|
});
|
|
6358
6528
|
FigureImage.displayName = 'FigureImage';
|
|
6359
|
-
FigureImage.propTypes = propTypes$
|
|
6360
|
-
FigureImage.defaultProps = defaultProps$
|
|
6529
|
+
FigureImage.propTypes = propTypes$3;
|
|
6530
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6361
6531
|
|
|
6362
6532
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6363
6533
|
Component: 'figcaption'
|
|
@@ -6376,13 +6546,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6376
6546
|
});
|
|
6377
6547
|
|
|
6378
6548
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6379
|
-
return /*#__PURE__*/
|
|
6549
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6380
6550
|
type: "checkbox"
|
|
6381
6551
|
}, props)));
|
|
6382
6552
|
};
|
|
6383
6553
|
|
|
6384
6554
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6385
|
-
return /*#__PURE__*/
|
|
6555
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6386
6556
|
type: "radio"
|
|
6387
6557
|
}, props)));
|
|
6388
6558
|
};
|
|
@@ -6395,7 +6565,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6395
6565
|
* @property {InputGroupRadio} Radio
|
|
6396
6566
|
* @property {InputGroupCheckbox} Checkbox
|
|
6397
6567
|
*/
|
|
6398
|
-
var InputGroup =
|
|
6568
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6399
6569
|
var bsPrefix = _ref.bsPrefix,
|
|
6400
6570
|
size = _ref.size,
|
|
6401
6571
|
className = _ref.className,
|
|
@@ -6404,7 +6574,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6404
6574
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6405
6575
|
|
|
6406
6576
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6407
|
-
return /*#__PURE__*/
|
|
6577
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6408
6578
|
ref: ref
|
|
6409
6579
|
}, props, {
|
|
6410
6580
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6412,7 +6582,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6412
6582
|
});
|
|
6413
6583
|
InputGroup.displayName = 'InputGroup';
|
|
6414
6584
|
|
|
6415
|
-
|
|
6585
|
+
_extends({}, InputGroup, {
|
|
6416
6586
|
Text: InputGroupText,
|
|
6417
6587
|
Radio: InputGroupRadio,
|
|
6418
6588
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6420,10 +6590,10 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6420
6590
|
Prepend: InputGroupPrepend
|
|
6421
6591
|
});
|
|
6422
6592
|
|
|
6423
|
-
var defaultProps$
|
|
6593
|
+
var defaultProps$i = {
|
|
6424
6594
|
fluid: false
|
|
6425
6595
|
};
|
|
6426
|
-
var Jumbotron =
|
|
6596
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6427
6597
|
var _classes;
|
|
6428
6598
|
|
|
6429
6599
|
var _ref$as = _ref.as,
|
|
@@ -6435,21 +6605,21 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6435
6605
|
|
|
6436
6606
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6437
6607
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6438
|
-
return /*#__PURE__*/
|
|
6608
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6439
6609
|
ref: ref
|
|
6440
6610
|
}, props, {
|
|
6441
6611
|
className: classnames(className, classes)
|
|
6442
6612
|
}));
|
|
6443
6613
|
});
|
|
6444
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6614
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6445
6615
|
Jumbotron.displayName = 'Jumbotron';
|
|
6446
6616
|
|
|
6447
|
-
var TabContext =
|
|
6617
|
+
var TabContext = React__default.createContext(null);
|
|
6448
6618
|
|
|
6449
6619
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6450
|
-
var noop$
|
|
6620
|
+
var noop$1 = function noop() {};
|
|
6451
6621
|
|
|
6452
|
-
var AbstractNav =
|
|
6622
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6453
6623
|
var _ref$as = _ref.as,
|
|
6454
6624
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6455
6625
|
onSelect = _ref.onSelect,
|
|
@@ -6530,27 +6700,27 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6530
6700
|
needsRefocusRef.current = false;
|
|
6531
6701
|
});
|
|
6532
6702
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6533
|
-
return /*#__PURE__*/
|
|
6703
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6534
6704
|
value: handleSelect
|
|
6535
|
-
}, /*#__PURE__*/
|
|
6705
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6536
6706
|
value: {
|
|
6537
6707
|
role: role,
|
|
6538
6708
|
// used by NavLink to determine it's role
|
|
6539
6709
|
activeKey: makeEventKey(activeKey),
|
|
6540
|
-
getControlledId: getControlledId || noop$
|
|
6541
|
-
getControllerId: getControllerId || noop$
|
|
6710
|
+
getControlledId: getControlledId || noop$1,
|
|
6711
|
+
getControllerId: getControllerId || noop$1
|
|
6542
6712
|
}
|
|
6543
|
-
}, /*#__PURE__*/
|
|
6713
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6544
6714
|
onKeyDown: handleKeyDown,
|
|
6545
6715
|
ref: mergedRef,
|
|
6546
6716
|
role: role
|
|
6547
6717
|
}))));
|
|
6548
6718
|
});
|
|
6549
6719
|
|
|
6550
|
-
var defaultProps$
|
|
6720
|
+
var defaultProps$h = {
|
|
6551
6721
|
disabled: false
|
|
6552
6722
|
};
|
|
6553
|
-
var AbstractNavItem =
|
|
6723
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6554
6724
|
var active = _ref.active,
|
|
6555
6725
|
className = _ref.className,
|
|
6556
6726
|
eventKey = _ref.eventKey,
|
|
@@ -6587,20 +6757,20 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6587
6757
|
if (onSelect) onSelect(navKey, e);
|
|
6588
6758
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6589
6759
|
});
|
|
6590
|
-
return /*#__PURE__*/
|
|
6760
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6591
6761
|
ref: ref,
|
|
6592
6762
|
onClick: handleOnclick,
|
|
6593
6763
|
className: classnames(className, isActive && 'active')
|
|
6594
6764
|
}));
|
|
6595
6765
|
});
|
|
6596
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6766
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6597
6767
|
|
|
6598
|
-
var defaultProps$
|
|
6768
|
+
var defaultProps$g = {
|
|
6599
6769
|
variant: undefined,
|
|
6600
6770
|
active: false,
|
|
6601
6771
|
disabled: false
|
|
6602
6772
|
};
|
|
6603
|
-
var ListGroupItem =
|
|
6773
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6604
6774
|
var bsPrefix = _ref.bsPrefix,
|
|
6605
6775
|
active = _ref.active,
|
|
6606
6776
|
disabled = _ref.disabled,
|
|
@@ -6622,24 +6792,25 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6622
6792
|
|
|
6623
6793
|
if (onClick) onClick(event);
|
|
6624
6794
|
}, [disabled, onClick]);
|
|
6625
|
-
return /*#__PURE__*/
|
|
6795
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6626
6796
|
ref: ref
|
|
6627
6797
|
}, props, {
|
|
6628
|
-
|
|
6798
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6799
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6629
6800
|
,
|
|
6630
6801
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6631
6802
|
onClick: handleClick,
|
|
6632
6803
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6633
6804
|
}));
|
|
6634
6805
|
});
|
|
6635
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6806
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6636
6807
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6637
6808
|
|
|
6638
|
-
var defaultProps$
|
|
6809
|
+
var defaultProps$f = {
|
|
6639
6810
|
variant: undefined,
|
|
6640
6811
|
horizontal: undefined
|
|
6641
6812
|
};
|
|
6642
|
-
var ListGroup =
|
|
6813
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6643
6814
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6644
6815
|
activeKey: 'onSelect'
|
|
6645
6816
|
}),
|
|
@@ -6661,19 +6832,19 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6661
6832
|
}
|
|
6662
6833
|
|
|
6663
6834
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6664
|
-
return /*#__PURE__*/
|
|
6835
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6665
6836
|
ref: ref
|
|
6666
6837
|
}, controlledProps, {
|
|
6667
6838
|
as: as,
|
|
6668
6839
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6669
6840
|
}));
|
|
6670
6841
|
});
|
|
6671
|
-
ListGroup.defaultProps = defaultProps$
|
|
6842
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6672
6843
|
ListGroup.displayName = 'ListGroup';
|
|
6673
6844
|
ListGroup.Item = ListGroupItem;
|
|
6674
6845
|
|
|
6675
6846
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6676
|
-
var Media =
|
|
6847
|
+
var Media = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6677
6848
|
function (_ref, ref) {
|
|
6678
6849
|
var bsPrefix = _ref.bsPrefix,
|
|
6679
6850
|
className = _ref.className,
|
|
@@ -6682,7 +6853,7 @@ function (_ref, ref) {
|
|
|
6682
6853
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6683
6854
|
|
|
6684
6855
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6685
|
-
return /*#__PURE__*/
|
|
6856
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6686
6857
|
ref: ref,
|
|
6687
6858
|
className: classnames(className, prefix)
|
|
6688
6859
|
}));
|
|
@@ -6710,14 +6881,14 @@ function scrollbarSize(recalc) {
|
|
|
6710
6881
|
}
|
|
6711
6882
|
|
|
6712
6883
|
/**
|
|
6713
|
-
*
|
|
6884
|
+
* Returns the actively focused element safely.
|
|
6714
6885
|
*
|
|
6715
|
-
* @param doc the document to
|
|
6886
|
+
* @param doc the document to check
|
|
6716
6887
|
*/
|
|
6717
6888
|
|
|
6718
6889
|
function activeElement(doc) {
|
|
6719
6890
|
if (doc === void 0) {
|
|
6720
|
-
doc = ownerDocument();
|
|
6891
|
+
doc = ownerDocument$1();
|
|
6721
6892
|
}
|
|
6722
6893
|
|
|
6723
6894
|
// Support: IE 9 only
|
|
@@ -6734,6 +6905,13 @@ function activeElement(doc) {
|
|
|
6734
6905
|
}
|
|
6735
6906
|
}
|
|
6736
6907
|
|
|
6908
|
+
/**
|
|
6909
|
+
* Adds a CSS class to a given element.
|
|
6910
|
+
*
|
|
6911
|
+
* @param element the element
|
|
6912
|
+
* @param className the CSS class name
|
|
6913
|
+
*/
|
|
6914
|
+
|
|
6737
6915
|
function addClass(element, className) {
|
|
6738
6916
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6739
6917
|
}
|
|
@@ -6741,6 +6919,13 @@ function addClass(element, className) {
|
|
|
6741
6919
|
function replaceClassName(origClass, classToRemove) {
|
|
6742
6920
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6743
6921
|
}
|
|
6922
|
+
/**
|
|
6923
|
+
* Removes a CSS class from a given element.
|
|
6924
|
+
*
|
|
6925
|
+
* @param element the element
|
|
6926
|
+
* @param className the CSS class name
|
|
6927
|
+
*/
|
|
6928
|
+
|
|
6744
6929
|
|
|
6745
6930
|
function removeClass(element, className) {
|
|
6746
6931
|
if (element.classList) {
|
|
@@ -6767,7 +6952,7 @@ function isBody(node) {
|
|
|
6767
6952
|
}
|
|
6768
6953
|
|
|
6769
6954
|
function bodyIsOverflowing(node) {
|
|
6770
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6955
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6771
6956
|
var win = isWindow(node) || doc.defaultView;
|
|
6772
6957
|
return doc.body.clientWidth < win.innerWidth;
|
|
6773
6958
|
}
|
|
@@ -6979,7 +7164,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
6979
7164
|
var _ref;
|
|
6980
7165
|
|
|
6981
7166
|
if (typeof document === 'undefined') return null;
|
|
6982
|
-
if (ref == null) return ownerDocument().body;
|
|
7167
|
+
if (ref == null) return ownerDocument$1().body;
|
|
6983
7168
|
if (typeof ref === 'function') ref = ref();
|
|
6984
7169
|
if (ref && 'current' in ref) ref = ref.current;
|
|
6985
7170
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7012,11 +7197,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7012
7197
|
return resolvedRef;
|
|
7013
7198
|
}
|
|
7014
7199
|
|
|
7015
|
-
var manager;
|
|
7200
|
+
var manager$1;
|
|
7016
7201
|
|
|
7017
7202
|
function getManager() {
|
|
7018
|
-
if (!manager) manager = new ModalManager();
|
|
7019
|
-
return manager;
|
|
7203
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7204
|
+
return manager$1;
|
|
7020
7205
|
}
|
|
7021
7206
|
|
|
7022
7207
|
function useModalManager(provided) {
|
|
@@ -7044,7 +7229,7 @@ function useModalManager(provided) {
|
|
|
7044
7229
|
});
|
|
7045
7230
|
}
|
|
7046
7231
|
|
|
7047
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7232
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7048
7233
|
var _ref$show = _ref.show,
|
|
7049
7234
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7050
7235
|
_ref$role = _ref.role,
|
|
@@ -7070,7 +7255,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7070
7255
|
renderDialog = _ref.renderDialog,
|
|
7071
7256
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7072
7257
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7073
|
-
return /*#__PURE__*/
|
|
7258
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7074
7259
|
} : _ref$renderBackdrop,
|
|
7075
7260
|
providedManager = _ref.manager,
|
|
7076
7261
|
containerRef = _ref.container,
|
|
@@ -7128,7 +7313,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7128
7313
|
if (autoFocus) {
|
|
7129
7314
|
var currentActiveElement = activeElement(document);
|
|
7130
7315
|
|
|
7131
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7316
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7132
7317
|
lastFocusRef.current = currentActiveElement;
|
|
7133
7318
|
modal.dialog.focus();
|
|
7134
7319
|
}
|
|
@@ -7174,7 +7359,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7174
7359
|
|
|
7175
7360
|
var currentActiveElement = activeElement();
|
|
7176
7361
|
|
|
7177
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7362
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7178
7363
|
modal.dialog.focus();
|
|
7179
7364
|
}
|
|
7180
7365
|
});
|
|
@@ -7228,12 +7413,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7228
7413
|
tabIndex: -1
|
|
7229
7414
|
});
|
|
7230
7415
|
|
|
7231
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7416
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7232
7417
|
role: 'document'
|
|
7233
7418
|
}));
|
|
7234
7419
|
|
|
7235
7420
|
if (Transition) {
|
|
7236
|
-
dialog = /*#__PURE__*/
|
|
7421
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7237
7422
|
appear: true,
|
|
7238
7423
|
unmountOnExit: true,
|
|
7239
7424
|
"in": !!show,
|
|
@@ -7256,16 +7441,16 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7256
7441
|
});
|
|
7257
7442
|
|
|
7258
7443
|
if (BackdropTransition) {
|
|
7259
|
-
backdropElement = /*#__PURE__*/
|
|
7444
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7260
7445
|
appear: true,
|
|
7261
7446
|
"in": !!show
|
|
7262
7447
|
}, backdropElement);
|
|
7263
7448
|
}
|
|
7264
7449
|
}
|
|
7265
7450
|
|
|
7266
|
-
return /*#__PURE__*/
|
|
7451
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7267
7452
|
});
|
|
7268
|
-
var propTypes$
|
|
7453
|
+
var propTypes$2 = {
|
|
7269
7454
|
/**
|
|
7270
7455
|
* Set the visibility of the Modal
|
|
7271
7456
|
*/
|
|
@@ -7421,9 +7606,9 @@ var propTypes$8 = {
|
|
|
7421
7606
|
*/
|
|
7422
7607
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7423
7608
|
};
|
|
7424
|
-
Modal.displayName = 'Modal';
|
|
7425
|
-
Modal.propTypes = propTypes$
|
|
7426
|
-
var BaseModal = Object.assign(Modal, {
|
|
7609
|
+
Modal$1.displayName = 'Modal';
|
|
7610
|
+
Modal$1.propTypes = propTypes$2;
|
|
7611
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7427
7612
|
Manager: ModalManager
|
|
7428
7613
|
});
|
|
7429
7614
|
|
|
@@ -7502,38 +7687,39 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7502
7687
|
|
|
7503
7688
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7504
7689
|
|
|
7505
|
-
var ModalContext =
|
|
7690
|
+
var ModalContext = React__default.createContext({
|
|
7506
7691
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7507
7692
|
onHide: function onHide() {}
|
|
7508
7693
|
});
|
|
7509
7694
|
|
|
7510
|
-
var ModalDialog =
|
|
7695
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7511
7696
|
var bsPrefix = _ref.bsPrefix,
|
|
7512
7697
|
className = _ref.className,
|
|
7698
|
+
contentClassName = _ref.contentClassName,
|
|
7513
7699
|
centered = _ref.centered,
|
|
7514
7700
|
size = _ref.size,
|
|
7515
7701
|
children = _ref.children,
|
|
7516
7702
|
scrollable = _ref.scrollable,
|
|
7517
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7703
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7518
7704
|
|
|
7519
7705
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7520
7706
|
var dialogClass = bsPrefix + "-dialog";
|
|
7521
|
-
return /*#__PURE__*/
|
|
7707
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7522
7708
|
ref: ref,
|
|
7523
7709
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7524
|
-
}), /*#__PURE__*/
|
|
7525
|
-
className: bsPrefix + "-content"
|
|
7710
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7711
|
+
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7526
7712
|
}, children));
|
|
7527
7713
|
});
|
|
7528
7714
|
ModalDialog.displayName = 'ModalDialog';
|
|
7529
7715
|
|
|
7530
7716
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7531
7717
|
|
|
7532
|
-
var defaultProps$
|
|
7718
|
+
var defaultProps$e = {
|
|
7533
7719
|
closeLabel: 'Close',
|
|
7534
7720
|
closeButton: false
|
|
7535
7721
|
};
|
|
7536
|
-
var ModalHeader =
|
|
7722
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7537
7723
|
var bsPrefix = _ref.bsPrefix,
|
|
7538
7724
|
closeLabel = _ref.closeLabel,
|
|
7539
7725
|
closeButton = _ref.closeButton,
|
|
@@ -7548,25 +7734,25 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7548
7734
|
if (context) context.onHide();
|
|
7549
7735
|
if (onHide) onHide();
|
|
7550
7736
|
});
|
|
7551
|
-
return /*#__PURE__*/
|
|
7737
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7552
7738
|
ref: ref
|
|
7553
7739
|
}, props, {
|
|
7554
7740
|
className: classnames(className, bsPrefix)
|
|
7555
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7741
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7556
7742
|
label: closeLabel,
|
|
7557
7743
|
onClick: handleClick
|
|
7558
7744
|
}));
|
|
7559
7745
|
});
|
|
7560
7746
|
ModalHeader.displayName = 'ModalHeader';
|
|
7561
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7747
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7562
7748
|
|
|
7563
|
-
var DivStyledAsH4
|
|
7749
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7564
7750
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7565
|
-
Component: DivStyledAsH4
|
|
7751
|
+
Component: DivStyledAsH4
|
|
7566
7752
|
});
|
|
7567
7753
|
|
|
7568
|
-
var manager
|
|
7569
|
-
var defaultProps$
|
|
7754
|
+
var manager;
|
|
7755
|
+
var defaultProps$d = {
|
|
7570
7756
|
show: false,
|
|
7571
7757
|
backdrop: true,
|
|
7572
7758
|
keyboard: true,
|
|
@@ -7579,20 +7765,21 @@ var defaultProps$r = {
|
|
|
7579
7765
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7580
7766
|
|
|
7581
7767
|
function DialogTransition(props) {
|
|
7582
|
-
return /*#__PURE__*/
|
|
7768
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7583
7769
|
}
|
|
7584
7770
|
|
|
7585
7771
|
function BackdropTransition(props) {
|
|
7586
|
-
return /*#__PURE__*/
|
|
7772
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7587
7773
|
}
|
|
7588
7774
|
/* eslint-enable no-use-before-define */
|
|
7589
7775
|
|
|
7590
7776
|
|
|
7591
|
-
var Modal
|
|
7777
|
+
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7592
7778
|
var bsPrefix = _ref.bsPrefix,
|
|
7593
7779
|
className = _ref.className,
|
|
7594
7780
|
style = _ref.style,
|
|
7595
7781
|
dialogClassName = _ref.dialogClassName,
|
|
7782
|
+
contentClassName = _ref.contentClassName,
|
|
7596
7783
|
children = _ref.children,
|
|
7597
7784
|
Dialog = _ref.dialogAs,
|
|
7598
7785
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7616,7 +7803,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7616
7803
|
onExited = _ref.onExited,
|
|
7617
7804
|
backdropClassName = _ref.backdropClassName,
|
|
7618
7805
|
propsManager = _ref.manager,
|
|
7619
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7806
|
+
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"]);
|
|
7620
7807
|
|
|
7621
7808
|
var _useState = useState({}),
|
|
7622
7809
|
modalStyle = _useState[0],
|
|
@@ -7653,14 +7840,14 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7653
7840
|
|
|
7654
7841
|
function getModalManager() {
|
|
7655
7842
|
if (propsManager) return propsManager;
|
|
7656
|
-
if (!manager
|
|
7657
|
-
return manager
|
|
7843
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7844
|
+
return manager;
|
|
7658
7845
|
}
|
|
7659
7846
|
|
|
7660
7847
|
function updateDialogStyle(node) {
|
|
7661
7848
|
if (!canUseDOM) return;
|
|
7662
7849
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7663
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7850
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7664
7851
|
setStyle({
|
|
7665
7852
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7666
7853
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7782,7 +7969,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7782
7969
|
};
|
|
7783
7970
|
|
|
7784
7971
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7785
|
-
return /*#__PURE__*/
|
|
7972
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7786
7973
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7787
7974
|
}));
|
|
7788
7975
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7795,7 +7982,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7795
7982
|
}
|
|
7796
7983
|
|
|
7797
7984
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7798
|
-
return /*#__PURE__*/
|
|
7985
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7799
7986
|
role: "dialog"
|
|
7800
7987
|
}, dialogProps, {
|
|
7801
7988
|
style: baseModalStyle,
|
|
@@ -7803,16 +7990,17 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7803
7990
|
onClick: backdrop ? handleClick : undefined,
|
|
7804
7991
|
onMouseUp: handleMouseUp,
|
|
7805
7992
|
"aria-labelledby": ariaLabelledby
|
|
7806
|
-
}), /*#__PURE__*/
|
|
7993
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7807
7994
|
role: "document",
|
|
7808
7995
|
onMouseDown: handleDialogMouseDown,
|
|
7809
|
-
className: dialogClassName
|
|
7996
|
+
className: dialogClassName,
|
|
7997
|
+
contentClassName: contentClassName
|
|
7810
7998
|
}), children));
|
|
7811
7999
|
};
|
|
7812
8000
|
|
|
7813
|
-
return /*#__PURE__*/
|
|
8001
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7814
8002
|
value: modalContext
|
|
7815
|
-
}, /*#__PURE__*/
|
|
8003
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7816
8004
|
show: show,
|
|
7817
8005
|
ref: setModalRef,
|
|
7818
8006
|
backdrop: backdrop,
|
|
@@ -7840,17 +8028,17 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7840
8028
|
renderDialog: renderDialog
|
|
7841
8029
|
}));
|
|
7842
8030
|
});
|
|
7843
|
-
Modal
|
|
7844
|
-
Modal
|
|
7845
|
-
Modal
|
|
7846
|
-
Modal
|
|
7847
|
-
Modal
|
|
7848
|
-
Modal
|
|
7849
|
-
Modal
|
|
7850
|
-
Modal
|
|
7851
|
-
Modal
|
|
7852
|
-
|
|
7853
|
-
var NavItem =
|
|
8031
|
+
Modal.displayName = 'Modal';
|
|
8032
|
+
Modal.defaultProps = defaultProps$d;
|
|
8033
|
+
Modal.Body = ModalBody;
|
|
8034
|
+
Modal.Header = ModalHeader;
|
|
8035
|
+
Modal.Title = ModalTitle;
|
|
8036
|
+
Modal.Footer = ModalFooter;
|
|
8037
|
+
Modal.Dialog = ModalDialog;
|
|
8038
|
+
Modal.TRANSITION_DURATION = 300;
|
|
8039
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8040
|
+
|
|
8041
|
+
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7854
8042
|
function (_ref, ref) {
|
|
7855
8043
|
var bsPrefix = _ref.bsPrefix,
|
|
7856
8044
|
className = _ref.className,
|
|
@@ -7860,18 +8048,18 @@ function (_ref, ref) {
|
|
|
7860
8048
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7861
8049
|
|
|
7862
8050
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7863
|
-
return /*#__PURE__*/
|
|
8051
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7864
8052
|
ref: ref,
|
|
7865
8053
|
className: classnames(className, bsPrefix)
|
|
7866
8054
|
}), children);
|
|
7867
8055
|
});
|
|
7868
8056
|
NavItem.displayName = 'NavItem';
|
|
7869
8057
|
|
|
7870
|
-
var defaultProps$
|
|
8058
|
+
var defaultProps$c = {
|
|
7871
8059
|
disabled: false,
|
|
7872
8060
|
as: SafeAnchor
|
|
7873
8061
|
};
|
|
7874
|
-
var NavLink =
|
|
8062
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7875
8063
|
var bsPrefix = _ref.bsPrefix,
|
|
7876
8064
|
disabled = _ref.disabled,
|
|
7877
8065
|
className = _ref.className,
|
|
@@ -7882,7 +8070,7 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7882
8070
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7883
8071
|
|
|
7884
8072
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7885
|
-
return /*#__PURE__*/
|
|
8073
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7886
8074
|
href: href,
|
|
7887
8075
|
ref: ref,
|
|
7888
8076
|
eventKey: eventKey,
|
|
@@ -7893,13 +8081,13 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7893
8081
|
}));
|
|
7894
8082
|
});
|
|
7895
8083
|
NavLink.displayName = 'NavLink';
|
|
7896
|
-
NavLink.defaultProps = defaultProps$
|
|
8084
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7897
8085
|
|
|
7898
|
-
var defaultProps$
|
|
8086
|
+
var defaultProps$b = {
|
|
7899
8087
|
justify: false,
|
|
7900
8088
|
fill: false
|
|
7901
8089
|
};
|
|
7902
|
-
var Nav =
|
|
8090
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7903
8091
|
var _classNames;
|
|
7904
8092
|
|
|
7905
8093
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7921,7 +8109,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7921
8109
|
var navbarBsPrefix;
|
|
7922
8110
|
var cardHeaderBsPrefix;
|
|
7923
8111
|
var isNavbar = false;
|
|
7924
|
-
var navbarContext = useContext(context
|
|
8112
|
+
var navbarContext = useContext(context);
|
|
7925
8113
|
var cardContext = useContext(context$1);
|
|
7926
8114
|
|
|
7927
8115
|
if (navbarContext) {
|
|
@@ -7931,7 +8119,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7931
8119
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7932
8120
|
}
|
|
7933
8121
|
|
|
7934
|
-
return /*#__PURE__*/
|
|
8122
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
7935
8123
|
as: as,
|
|
7936
8124
|
ref: ref,
|
|
7937
8125
|
activeKey: activeKey,
|
|
@@ -7939,11 +8127,11 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7939
8127
|
}, props), children);
|
|
7940
8128
|
});
|
|
7941
8129
|
Nav.displayName = 'Nav';
|
|
7942
|
-
Nav.defaultProps = defaultProps$
|
|
8130
|
+
Nav.defaultProps = defaultProps$b;
|
|
7943
8131
|
Nav.Item = NavItem;
|
|
7944
8132
|
Nav.Link = NavLink;
|
|
7945
8133
|
|
|
7946
|
-
var NavbarBrand =
|
|
8134
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7947
8135
|
var bsPrefix = _ref.bsPrefix,
|
|
7948
8136
|
className = _ref.className,
|
|
7949
8137
|
as = _ref.as,
|
|
@@ -7951,23 +8139,23 @@ var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
|
7951
8139
|
|
|
7952
8140
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7953
8141
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7954
|
-
return /*#__PURE__*/
|
|
8142
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7955
8143
|
ref: ref,
|
|
7956
8144
|
className: classnames(className, bsPrefix)
|
|
7957
8145
|
}));
|
|
7958
8146
|
});
|
|
7959
8147
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
7960
8148
|
|
|
7961
|
-
var NavbarCollapse =
|
|
8149
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
7962
8150
|
var children = _ref.children,
|
|
7963
8151
|
bsPrefix = _ref.bsPrefix,
|
|
7964
8152
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
7965
8153
|
|
|
7966
8154
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7967
|
-
return /*#__PURE__*/
|
|
7968
|
-
return /*#__PURE__*/
|
|
8155
|
+
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8156
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
7969
8157
|
in: !!(context && context.expanded)
|
|
7970
|
-
}, props), /*#__PURE__*/
|
|
8158
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7971
8159
|
ref: ref,
|
|
7972
8160
|
className: bsPrefix
|
|
7973
8161
|
}, children));
|
|
@@ -7975,10 +8163,10 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
7975
8163
|
});
|
|
7976
8164
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
7977
8165
|
|
|
7978
|
-
var defaultProps$
|
|
8166
|
+
var defaultProps$a = {
|
|
7979
8167
|
label: 'Toggle navigation'
|
|
7980
8168
|
};
|
|
7981
|
-
var NavbarToggle =
|
|
8169
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
7982
8170
|
var bsPrefix = _ref.bsPrefix,
|
|
7983
8171
|
className = _ref.className,
|
|
7984
8172
|
children = _ref.children,
|
|
@@ -7990,7 +8178,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
7990
8178
|
|
|
7991
8179
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
7992
8180
|
|
|
7993
|
-
var _ref2 = useContext(context
|
|
8181
|
+
var _ref2 = useContext(context) || {},
|
|
7994
8182
|
onToggle = _ref2.onToggle,
|
|
7995
8183
|
expanded = _ref2.expanded;
|
|
7996
8184
|
|
|
@@ -8003,27 +8191,27 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8003
8191
|
props.type = 'button';
|
|
8004
8192
|
}
|
|
8005
8193
|
|
|
8006
|
-
return /*#__PURE__*/
|
|
8194
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8007
8195
|
ref: ref,
|
|
8008
8196
|
onClick: handleClick,
|
|
8009
8197
|
"aria-label": label,
|
|
8010
8198
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8011
|
-
}), children || /*#__PURE__*/
|
|
8199
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8012
8200
|
className: bsPrefix + "-icon"
|
|
8013
8201
|
}));
|
|
8014
8202
|
});
|
|
8015
8203
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8016
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8204
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8017
8205
|
|
|
8018
8206
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8019
8207
|
Component: 'span'
|
|
8020
8208
|
});
|
|
8021
|
-
var defaultProps$
|
|
8209
|
+
var defaultProps$9 = {
|
|
8022
8210
|
expand: true,
|
|
8023
8211
|
variant: 'light',
|
|
8024
8212
|
collapseOnSelect: false
|
|
8025
8213
|
};
|
|
8026
|
-
var Navbar =
|
|
8214
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8027
8215
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8028
8216
|
expanded: 'onToggle'
|
|
8029
8217
|
}),
|
|
@@ -8071,24 +8259,24 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8071
8259
|
expanded: !!expanded
|
|
8072
8260
|
};
|
|
8073
8261
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8074
|
-
return /*#__PURE__*/
|
|
8262
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8075
8263
|
value: navbarContext
|
|
8076
|
-
}, /*#__PURE__*/
|
|
8264
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8077
8265
|
value: handleCollapse
|
|
8078
|
-
}, /*#__PURE__*/
|
|
8266
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8079
8267
|
ref: ref
|
|
8080
8268
|
}, controlledProps, {
|
|
8081
8269
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8082
8270
|
}), children)));
|
|
8083
8271
|
});
|
|
8084
|
-
Navbar.defaultProps = defaultProps$
|
|
8272
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8085
8273
|
Navbar.displayName = 'Navbar';
|
|
8086
8274
|
Navbar.Brand = NavbarBrand;
|
|
8087
8275
|
Navbar.Toggle = NavbarToggle;
|
|
8088
8276
|
Navbar.Collapse = NavbarCollapse;
|
|
8089
8277
|
Navbar.Text = NavbarText;
|
|
8090
8278
|
|
|
8091
|
-
var propTypes$
|
|
8279
|
+
var propTypes$1 = {
|
|
8092
8280
|
/**
|
|
8093
8281
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8094
8282
|
* @type {string|number}
|
|
@@ -8124,7 +8312,7 @@ var propTypes$9 = {
|
|
|
8124
8312
|
/** @ignore */
|
|
8125
8313
|
bsPrefix: PropTypes.string
|
|
8126
8314
|
};
|
|
8127
|
-
var NavDropdown =
|
|
8315
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8128
8316
|
var id = _ref.id,
|
|
8129
8317
|
title = _ref.title,
|
|
8130
8318
|
children = _ref.children,
|
|
@@ -8136,35 +8324,35 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8136
8324
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8137
8325
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8138
8326
|
|
|
8139
|
-
return /*#__PURE__*/
|
|
8327
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8140
8328
|
ref: ref
|
|
8141
8329
|
}, props, {
|
|
8142
8330
|
as: NavItem
|
|
8143
|
-
}), /*#__PURE__*/
|
|
8331
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8144
8332
|
id: id,
|
|
8145
8333
|
eventKey: null,
|
|
8146
8334
|
active: active,
|
|
8147
8335
|
disabled: disabled,
|
|
8148
8336
|
childBsPrefix: bsPrefix,
|
|
8149
8337
|
as: NavLink
|
|
8150
|
-
}, title), /*#__PURE__*/
|
|
8338
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8151
8339
|
role: menuRole,
|
|
8152
8340
|
renderOnMount: renderMenuOnMount,
|
|
8153
8341
|
rootCloseEvent: rootCloseEvent
|
|
8154
8342
|
}, children));
|
|
8155
8343
|
});
|
|
8156
8344
|
NavDropdown.displayName = 'NavDropdown';
|
|
8157
|
-
NavDropdown.propTypes = propTypes$
|
|
8158
|
-
NavDropdown.Item = Dropdown
|
|
8159
|
-
NavDropdown.ItemText = Dropdown
|
|
8160
|
-
NavDropdown.Divider = Dropdown
|
|
8161
|
-
NavDropdown.Header = Dropdown
|
|
8345
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8346
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8347
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8348
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8349
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8162
8350
|
|
|
8163
8351
|
/**
|
|
8164
8352
|
* Built on top of `Popper.js`, the overlay component is
|
|
8165
8353
|
* great for custom tooltip overlays.
|
|
8166
8354
|
*/
|
|
8167
|
-
var Overlay = /*#__PURE__*/
|
|
8355
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8168
8356
|
var flip = props.flip,
|
|
8169
8357
|
offset = props.offset,
|
|
8170
8358
|
placement = props.placement,
|
|
@@ -8247,7 +8435,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8247
8435
|
onEnter = props.onEnter,
|
|
8248
8436
|
onEntering = props.onEntering,
|
|
8249
8437
|
onEntered = props.onEntered;
|
|
8250
|
-
child = /*#__PURE__*/
|
|
8438
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8251
8439
|
"in": props.show,
|
|
8252
8440
|
appear: true,
|
|
8253
8441
|
onExit: onExit,
|
|
@@ -8399,7 +8587,7 @@ Overlay.propTypes = {
|
|
|
8399
8587
|
onExited: PropTypes.func
|
|
8400
8588
|
};
|
|
8401
8589
|
|
|
8402
|
-
|
|
8590
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8403
8591
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8404
8592
|
|
|
8405
8593
|
function RefHolder() {
|
|
@@ -8413,14 +8601,14 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8413
8601
|
};
|
|
8414
8602
|
|
|
8415
8603
|
return RefHolder;
|
|
8416
|
-
}(
|
|
8604
|
+
})(React__default.Component);
|
|
8417
8605
|
|
|
8418
|
-
var defaultProps$
|
|
8606
|
+
var defaultProps$8 = {
|
|
8419
8607
|
active: false,
|
|
8420
8608
|
disabled: false,
|
|
8421
8609
|
activeLabel: '(current)'
|
|
8422
8610
|
};
|
|
8423
|
-
var PageItem =
|
|
8611
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8424
8612
|
var active = _ref.active,
|
|
8425
8613
|
disabled = _ref.disabled,
|
|
8426
8614
|
className = _ref.className,
|
|
@@ -8430,21 +8618,21 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8430
8618
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8431
8619
|
|
|
8432
8620
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8433
|
-
return /*#__PURE__*/
|
|
8621
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8434
8622
|
ref: ref,
|
|
8435
8623
|
style: style,
|
|
8436
8624
|
className: classnames(className, 'page-item', {
|
|
8437
8625
|
active: active,
|
|
8438
8626
|
disabled: disabled
|
|
8439
8627
|
})
|
|
8440
|
-
}, /*#__PURE__*/
|
|
8628
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8441
8629
|
className: "page-link",
|
|
8442
8630
|
disabled: disabled
|
|
8443
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8631
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8444
8632
|
className: "sr-only"
|
|
8445
8633
|
}, activeLabel)));
|
|
8446
8634
|
});
|
|
8447
|
-
PageItem.defaultProps = defaultProps$
|
|
8635
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8448
8636
|
PageItem.displayName = 'PageItem';
|
|
8449
8637
|
|
|
8450
8638
|
function createButton(name, defaultValue, label) {
|
|
@@ -8456,9 +8644,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8456
8644
|
var children = _ref2.children,
|
|
8457
8645
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8458
8646
|
|
|
8459
|
-
return /*#__PURE__*/
|
|
8647
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8460
8648
|
"aria-hidden": "true"
|
|
8461
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8649
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8462
8650
|
className: "sr-only"
|
|
8463
8651
|
}, label));
|
|
8464
8652
|
}
|
|
@@ -8481,7 +8669,7 @@ var Last = createButton('Last', '»');
|
|
|
8481
8669
|
* @property {PageItem} Next
|
|
8482
8670
|
* @property {PageItem} Last
|
|
8483
8671
|
*/
|
|
8484
|
-
var Pagination =
|
|
8672
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8485
8673
|
var bsPrefix = _ref.bsPrefix,
|
|
8486
8674
|
className = _ref.className,
|
|
8487
8675
|
children = _ref.children,
|
|
@@ -8489,7 +8677,7 @@ var Pagination = React.forwardRef(function (_ref, ref) {
|
|
|
8489
8677
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8490
8678
|
|
|
8491
8679
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8492
|
-
return /*#__PURE__*/
|
|
8680
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8493
8681
|
ref: ref
|
|
8494
8682
|
}, props, {
|
|
8495
8683
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8502,7 +8690,7 @@ Pagination.Item = PageItem;
|
|
|
8502
8690
|
Pagination.Next = Next;
|
|
8503
8691
|
Pagination.Last = Last;
|
|
8504
8692
|
|
|
8505
|
-
var PopoverTitle =
|
|
8693
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8506
8694
|
var _ref$as = _ref.as,
|
|
8507
8695
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8508
8696
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8511,14 +8699,14 @@ var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
|
8511
8699
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8512
8700
|
|
|
8513
8701
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8514
|
-
return /*#__PURE__*/
|
|
8702
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8515
8703
|
ref: ref
|
|
8516
8704
|
}, props, {
|
|
8517
8705
|
className: classnames(bsPrefix, className)
|
|
8518
8706
|
}), children);
|
|
8519
8707
|
});
|
|
8520
8708
|
|
|
8521
|
-
var PopoverContent =
|
|
8709
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8522
8710
|
var _ref$as = _ref.as,
|
|
8523
8711
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8524
8712
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8527,50 +8715,50 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8527
8715
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8528
8716
|
|
|
8529
8717
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8530
|
-
return /*#__PURE__*/
|
|
8718
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8531
8719
|
ref: ref
|
|
8532
8720
|
}, props, {
|
|
8533
8721
|
className: classnames(className, bsPrefix)
|
|
8534
8722
|
}), children);
|
|
8535
8723
|
});
|
|
8536
8724
|
|
|
8537
|
-
var defaultProps$
|
|
8725
|
+
var defaultProps$7 = {
|
|
8538
8726
|
placement: 'right'
|
|
8539
8727
|
};
|
|
8540
|
-
var Popover =
|
|
8728
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8541
8729
|
var bsPrefix = _ref.bsPrefix,
|
|
8542
8730
|
placement = _ref.placement,
|
|
8543
8731
|
className = _ref.className,
|
|
8544
8732
|
style = _ref.style,
|
|
8545
8733
|
children = _ref.children,
|
|
8546
8734
|
content = _ref.content,
|
|
8547
|
-
arrowProps = _ref.arrowProps
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8735
|
+
arrowProps = _ref.arrowProps;
|
|
8736
|
+
_ref.popper;
|
|
8737
|
+
_ref.show;
|
|
8738
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8551
8739
|
|
|
8552
8740
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8553
8741
|
|
|
8554
8742
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8555
8743
|
primaryPlacement = _ref2[0];
|
|
8556
8744
|
|
|
8557
|
-
return /*#__PURE__*/
|
|
8745
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8558
8746
|
ref: ref,
|
|
8559
8747
|
role: "tooltip",
|
|
8560
8748
|
style: style,
|
|
8561
8749
|
"x-placement": primaryPlacement,
|
|
8562
8750
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8563
|
-
}, props), /*#__PURE__*/
|
|
8751
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8564
8752
|
className: "arrow"
|
|
8565
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8753
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8566
8754
|
});
|
|
8567
|
-
Popover.defaultProps = defaultProps$
|
|
8755
|
+
Popover.defaultProps = defaultProps$7;
|
|
8568
8756
|
Popover.Title = PopoverTitle;
|
|
8569
8757
|
Popover.Content = PopoverContent;
|
|
8570
8758
|
|
|
8571
8759
|
var ROUND_PRECISION = 1000;
|
|
8572
8760
|
|
|
8573
|
-
var defaultProps$
|
|
8761
|
+
var defaultProps$6 = {
|
|
8574
8762
|
min: 0,
|
|
8575
8763
|
max: 100,
|
|
8576
8764
|
animated: false,
|
|
@@ -8600,7 +8788,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8600
8788
|
bsPrefix = _ref.bsPrefix,
|
|
8601
8789
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8602
8790
|
|
|
8603
|
-
return /*#__PURE__*/
|
|
8791
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8604
8792
|
ref: ref
|
|
8605
8793
|
}, props, {
|
|
8606
8794
|
role: "progressbar",
|
|
@@ -8611,12 +8799,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8611
8799
|
"aria-valuenow": now,
|
|
8612
8800
|
"aria-valuemin": min,
|
|
8613
8801
|
"aria-valuemax": max
|
|
8614
|
-
}), srOnly ? /*#__PURE__*/
|
|
8802
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8615
8803
|
className: "sr-only"
|
|
8616
8804
|
}, label) : label);
|
|
8617
8805
|
}
|
|
8618
8806
|
|
|
8619
|
-
var ProgressBar =
|
|
8807
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8620
8808
|
var isChild = _ref2.isChild,
|
|
8621
8809
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8622
8810
|
|
|
@@ -8639,7 +8827,7 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8639
8827
|
children = props.children,
|
|
8640
8828
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8641
8829
|
|
|
8642
|
-
return /*#__PURE__*/
|
|
8830
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8643
8831
|
ref: ref
|
|
8644
8832
|
}, wrapperProps, {
|
|
8645
8833
|
className: classnames(className, bsPrefix)
|
|
@@ -8660,12 +8848,12 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8660
8848
|
}, ref));
|
|
8661
8849
|
});
|
|
8662
8850
|
ProgressBar.displayName = 'ProgressBar';
|
|
8663
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8851
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8664
8852
|
|
|
8665
|
-
var defaultProps$
|
|
8853
|
+
var defaultProps$5 = {
|
|
8666
8854
|
aspectRatio: '1by1'
|
|
8667
8855
|
};
|
|
8668
|
-
var ResponsiveEmbed =
|
|
8856
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8669
8857
|
var bsPrefix = _ref.bsPrefix,
|
|
8670
8858
|
className = _ref.className,
|
|
8671
8859
|
children = _ref.children,
|
|
@@ -8673,22 +8861,22 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8673
8861
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8674
8862
|
|
|
8675
8863
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8676
|
-
var child =
|
|
8677
|
-
return /*#__PURE__*/
|
|
8864
|
+
var child = React__default.Children.only(children);
|
|
8865
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8678
8866
|
ref: ref
|
|
8679
8867
|
}, props, {
|
|
8680
8868
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8681
|
-
}),
|
|
8869
|
+
}), React__default.cloneElement(child, {
|
|
8682
8870
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8683
8871
|
}));
|
|
8684
8872
|
});
|
|
8685
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8873
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8686
8874
|
|
|
8687
|
-
var DEVICE_SIZES
|
|
8688
|
-
var defaultProps$
|
|
8875
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8876
|
+
var defaultProps$4 = {
|
|
8689
8877
|
noGutters: false
|
|
8690
8878
|
};
|
|
8691
|
-
var Row =
|
|
8879
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8692
8880
|
var bsPrefix = _ref.bsPrefix,
|
|
8693
8881
|
className = _ref.className,
|
|
8694
8882
|
noGutters = _ref.noGutters,
|
|
@@ -8699,7 +8887,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8699
8887
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8700
8888
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8701
8889
|
var classes = [];
|
|
8702
|
-
DEVICE_SIZES
|
|
8890
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8703
8891
|
var propValue = props[brkPoint];
|
|
8704
8892
|
delete props[brkPoint];
|
|
8705
8893
|
var cols;
|
|
@@ -8713,16 +8901,16 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8713
8901
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8714
8902
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8715
8903
|
});
|
|
8716
|
-
return /*#__PURE__*/
|
|
8904
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8717
8905
|
ref: ref
|
|
8718
8906
|
}, props, {
|
|
8719
8907
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8720
8908
|
}));
|
|
8721
8909
|
});
|
|
8722
8910
|
Row.displayName = 'Row';
|
|
8723
|
-
Row.defaultProps = defaultProps$
|
|
8911
|
+
Row.defaultProps = defaultProps$4;
|
|
8724
8912
|
|
|
8725
|
-
var Spinner =
|
|
8913
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8726
8914
|
var bsPrefix = _ref.bsPrefix,
|
|
8727
8915
|
variant = _ref.variant,
|
|
8728
8916
|
animation = _ref.animation,
|
|
@@ -8735,7 +8923,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8735
8923
|
|
|
8736
8924
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8737
8925
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8738
|
-
return /*#__PURE__*/
|
|
8926
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8739
8927
|
ref: ref
|
|
8740
8928
|
}, props, {
|
|
8741
8929
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8743,7 +8931,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8743
8931
|
});
|
|
8744
8932
|
Spinner.displayName = 'Spinner';
|
|
8745
8933
|
|
|
8746
|
-
var propTypes
|
|
8934
|
+
var propTypes = {
|
|
8747
8935
|
/**
|
|
8748
8936
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8749
8937
|
* @type {string|number}
|
|
@@ -8774,6 +8962,15 @@ var propTypes$a = {
|
|
|
8774
8962
|
/** Disables both Buttons */
|
|
8775
8963
|
disabled: PropTypes.bool,
|
|
8776
8964
|
|
|
8965
|
+
/**
|
|
8966
|
+
* Aligns the dropdown menu responsively.
|
|
8967
|
+
*
|
|
8968
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8969
|
+
*
|
|
8970
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8971
|
+
*/
|
|
8972
|
+
menuAlign: alignPropType,
|
|
8973
|
+
|
|
8777
8974
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8778
8975
|
menuRole: PropTypes.string,
|
|
8779
8976
|
|
|
@@ -8783,7 +8980,7 @@ var propTypes$a = {
|
|
|
8783
8980
|
/**
|
|
8784
8981
|
* Which event when fired outside the component will cause it to be closed.
|
|
8785
8982
|
*
|
|
8786
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8983
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8787
8984
|
*/
|
|
8788
8985
|
rootCloseEvent: PropTypes.string,
|
|
8789
8986
|
|
|
@@ -8796,11 +8993,11 @@ var propTypes$a = {
|
|
|
8796
8993
|
/** @ignore */
|
|
8797
8994
|
size: PropTypes.string
|
|
8798
8995
|
};
|
|
8799
|
-
var defaultProps$
|
|
8996
|
+
var defaultProps$3 = {
|
|
8800
8997
|
toggleLabel: 'Toggle dropdown',
|
|
8801
8998
|
type: 'button'
|
|
8802
8999
|
};
|
|
8803
|
-
var SplitButton =
|
|
9000
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8804
9001
|
var id = _ref.id,
|
|
8805
9002
|
bsPrefix = _ref.bsPrefix,
|
|
8806
9003
|
size = _ref.size,
|
|
@@ -8812,16 +9009,17 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8812
9009
|
onClick = _ref.onClick,
|
|
8813
9010
|
href = _ref.href,
|
|
8814
9011
|
target = _ref.target,
|
|
9012
|
+
menuAlign = _ref.menuAlign,
|
|
8815
9013
|
menuRole = _ref.menuRole,
|
|
8816
9014
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8817
9015
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8818
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9016
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8819
9017
|
|
|
8820
|
-
return /*#__PURE__*/
|
|
9018
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8821
9019
|
ref: ref
|
|
8822
9020
|
}, props, {
|
|
8823
9021
|
as: ButtonGroup
|
|
8824
|
-
}), /*#__PURE__*/
|
|
9022
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8825
9023
|
size: size,
|
|
8826
9024
|
variant: variant,
|
|
8827
9025
|
disabled: props.disabled,
|
|
@@ -8830,23 +9028,24 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8830
9028
|
target: target,
|
|
8831
9029
|
onClick: onClick,
|
|
8832
9030
|
type: type
|
|
8833
|
-
}, title), /*#__PURE__*/
|
|
9031
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8834
9032
|
split: true,
|
|
8835
9033
|
id: id ? id.toString() : undefined,
|
|
8836
9034
|
size: size,
|
|
8837
9035
|
variant: variant,
|
|
8838
9036
|
disabled: props.disabled,
|
|
8839
9037
|
childBsPrefix: bsPrefix
|
|
8840
|
-
}, /*#__PURE__*/
|
|
9038
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8841
9039
|
className: "sr-only"
|
|
8842
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
9040
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
9041
|
+
align: menuAlign,
|
|
8843
9042
|
role: menuRole,
|
|
8844
9043
|
renderOnMount: renderMenuOnMount,
|
|
8845
9044
|
rootCloseEvent: rootCloseEvent
|
|
8846
9045
|
}, children));
|
|
8847
9046
|
});
|
|
8848
|
-
SplitButton.propTypes = propTypes
|
|
8849
|
-
SplitButton.defaultProps = defaultProps$
|
|
9047
|
+
SplitButton.propTypes = propTypes;
|
|
9048
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8850
9049
|
SplitButton.displayName = 'SplitButton';
|
|
8851
9050
|
|
|
8852
9051
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8882,14 +9081,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
8882
9081
|
}
|
|
8883
9082
|
};
|
|
8884
9083
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8885
|
-
return /*#__PURE__*/
|
|
9084
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8886
9085
|
value: tabContext
|
|
8887
|
-
}, /*#__PURE__*/
|
|
9086
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8888
9087
|
value: onSelect || null
|
|
8889
9088
|
}, children));
|
|
8890
9089
|
};
|
|
8891
9090
|
|
|
8892
|
-
var TabContent =
|
|
9091
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8893
9092
|
var bsPrefix = _ref.bsPrefix,
|
|
8894
9093
|
_ref$as = _ref.as,
|
|
8895
9094
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -8897,7 +9096,7 @@ var TabContent = React.forwardRef(function (_ref, ref) {
|
|
|
8897
9096
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8898
9097
|
|
|
8899
9098
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8900
|
-
return /*#__PURE__*/
|
|
9099
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8901
9100
|
ref: ref
|
|
8902
9101
|
}, props, {
|
|
8903
9102
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -8925,7 +9124,7 @@ function useTabContext(props) {
|
|
|
8925
9124
|
});
|
|
8926
9125
|
}
|
|
8927
9126
|
|
|
8928
|
-
var TabPane =
|
|
9127
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8929
9128
|
var _useTabContext = useTabContext(props),
|
|
8930
9129
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8931
9130
|
className = _useTabContext.className,
|
|
@@ -8940,13 +9139,13 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8940
9139
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
8941
9140
|
Transition = _useTabContext.transition,
|
|
8942
9141
|
_useTabContext$as = _useTabContext.as,
|
|
8943
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
8944
|
-
|
|
8945
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9142
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9143
|
+
_useTabContext.eventKey;
|
|
9144
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8946
9145
|
|
|
8947
9146
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8948
9147
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8949
|
-
var pane = /*#__PURE__*/
|
|
9148
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
8950
9149
|
ref: ref,
|
|
8951
9150
|
role: "tabpanel",
|
|
8952
9151
|
"aria-hidden": !active,
|
|
@@ -8954,7 +9153,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8954
9153
|
active: active
|
|
8955
9154
|
})
|
|
8956
9155
|
}));
|
|
8957
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9156
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8958
9157
|
in: active,
|
|
8959
9158
|
onEnter: onEnter,
|
|
8960
9159
|
onEntering: onEntering,
|
|
@@ -8967,9 +9166,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8967
9166
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
8968
9167
|
// conflict with the top level one.
|
|
8969
9168
|
|
|
8970
|
-
return /*#__PURE__*/
|
|
9169
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8971
9170
|
value: null
|
|
8972
|
-
}, /*#__PURE__*/
|
|
9171
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8973
9172
|
value: null
|
|
8974
9173
|
}, pane));
|
|
8975
9174
|
});
|
|
@@ -8990,13 +9189,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
8990
9189
|
};
|
|
8991
9190
|
|
|
8992
9191
|
return Tab;
|
|
8993
|
-
}(
|
|
9192
|
+
}(React__default.Component);
|
|
8994
9193
|
|
|
8995
9194
|
Tab.Container = TabContainer;
|
|
8996
9195
|
Tab.Content = TabContent;
|
|
8997
9196
|
Tab.Pane = TabPane;
|
|
8998
9197
|
|
|
8999
|
-
|
|
9198
|
+
React__default.forwardRef(function (_ref, ref) {
|
|
9000
9199
|
var bsPrefix = _ref.bsPrefix,
|
|
9001
9200
|
className = _ref.className,
|
|
9002
9201
|
striped = _ref.striped,
|
|
@@ -9010,7 +9209,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9010
9209
|
|
|
9011
9210
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9012
9211
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9013
|
-
var table = /*#__PURE__*/
|
|
9212
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9014
9213
|
className: classes,
|
|
9015
9214
|
ref: ref
|
|
9016
9215
|
}));
|
|
@@ -9022,7 +9221,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9022
9221
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9023
9222
|
}
|
|
9024
9223
|
|
|
9025
|
-
return /*#__PURE__*/
|
|
9224
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9026
9225
|
className: responsiveClass
|
|
9027
9226
|
}, table);
|
|
9028
9227
|
}
|
|
@@ -9030,16 +9229,16 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9030
9229
|
return table;
|
|
9031
9230
|
});
|
|
9032
9231
|
|
|
9033
|
-
var ToastContext =
|
|
9232
|
+
var ToastContext = React__default.createContext({
|
|
9034
9233
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9035
9234
|
onClose: function onClose() {}
|
|
9036
9235
|
});
|
|
9037
9236
|
|
|
9038
|
-
var defaultProps$
|
|
9237
|
+
var defaultProps$2 = {
|
|
9039
9238
|
closeLabel: 'Close',
|
|
9040
9239
|
closeButton: true
|
|
9041
9240
|
};
|
|
9042
|
-
var ToastHeader =
|
|
9241
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9043
9242
|
var bsPrefix = _ref.bsPrefix,
|
|
9044
9243
|
closeLabel = _ref.closeLabel,
|
|
9045
9244
|
closeButton = _ref.closeButton,
|
|
@@ -9054,11 +9253,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9054
9253
|
context.onClose(e);
|
|
9055
9254
|
}
|
|
9056
9255
|
});
|
|
9057
|
-
return /*#__PURE__*/
|
|
9256
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9058
9257
|
ref: ref
|
|
9059
9258
|
}, props, {
|
|
9060
9259
|
className: classnames(bsPrefix, className)
|
|
9061
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9260
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9062
9261
|
label: closeLabel,
|
|
9063
9262
|
onClick: handleClick,
|
|
9064
9263
|
className: "ml-2 mb-1",
|
|
@@ -9066,11 +9265,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9066
9265
|
}));
|
|
9067
9266
|
});
|
|
9068
9267
|
ToastHeader.displayName = 'ToastHeader';
|
|
9069
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9268
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9070
9269
|
|
|
9071
9270
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9072
9271
|
|
|
9073
|
-
var Toast =
|
|
9272
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9074
9273
|
var bsPrefix = _ref.bsPrefix,
|
|
9075
9274
|
className = _ref.className,
|
|
9076
9275
|
children = _ref.children,
|
|
@@ -9113,16 +9312,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9113
9312
|
};
|
|
9114
9313
|
}, [onClose]);
|
|
9115
9314
|
var hasAnimation = !!(Transition && animation);
|
|
9116
|
-
var toast = /*#__PURE__*/
|
|
9315
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9117
9316
|
ref: ref,
|
|
9118
9317
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9119
9318
|
role: "alert",
|
|
9120
9319
|
"aria-live": "assertive",
|
|
9121
9320
|
"aria-atomic": "true"
|
|
9122
9321
|
}), children);
|
|
9123
|
-
return /*#__PURE__*/
|
|
9322
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9124
9323
|
value: toastContext
|
|
9125
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9324
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9126
9325
|
in: show,
|
|
9127
9326
|
unmountOnExit: true
|
|
9128
9327
|
}, toast) : toast);
|
|
@@ -9133,11 +9332,11 @@ Object.assign(Toast, {
|
|
|
9133
9332
|
Header: ToastHeader
|
|
9134
9333
|
});
|
|
9135
9334
|
|
|
9136
|
-
var noop
|
|
9335
|
+
var noop = function noop() {
|
|
9137
9336
|
return undefined;
|
|
9138
9337
|
};
|
|
9139
9338
|
|
|
9140
|
-
var ToggleButton =
|
|
9339
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9141
9340
|
var children = _ref.children,
|
|
9142
9341
|
name = _ref.name,
|
|
9143
9342
|
className = _ref.className,
|
|
@@ -9159,13 +9358,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9159
9358
|
var handleBlur = useCallback(function (e) {
|
|
9160
9359
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9161
9360
|
}, []);
|
|
9162
|
-
return /*#__PURE__*/
|
|
9361
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9163
9362
|
ref: ref,
|
|
9164
9363
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9165
9364
|
type: undefined,
|
|
9166
9365
|
active: !!checked,
|
|
9167
9366
|
as: "label"
|
|
9168
|
-
}), /*#__PURE__*/
|
|
9367
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9169
9368
|
name: name,
|
|
9170
9369
|
type: type,
|
|
9171
9370
|
value: value,
|
|
@@ -9175,15 +9374,16 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9175
9374
|
disabled: !!disabled,
|
|
9176
9375
|
onFocus: handleFocus,
|
|
9177
9376
|
onBlur: handleBlur,
|
|
9178
|
-
onChange: onChange || noop
|
|
9377
|
+
onChange: onChange || noop
|
|
9179
9378
|
}), children);
|
|
9180
9379
|
});
|
|
9181
9380
|
ToggleButton.displayName = 'ToggleButton';
|
|
9182
9381
|
|
|
9183
|
-
var defaultProps$
|
|
9184
|
-
type: 'radio'
|
|
9382
|
+
var defaultProps$1 = {
|
|
9383
|
+
type: 'radio',
|
|
9384
|
+
vertical: false
|
|
9185
9385
|
};
|
|
9186
|
-
var ToggleButtonGroup =
|
|
9386
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9187
9387
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9188
9388
|
value: 'onChange'
|
|
9189
9389
|
}),
|
|
@@ -9221,7 +9421,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9221
9421
|
};
|
|
9222
9422
|
|
|
9223
9423
|
!(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;
|
|
9224
|
-
return /*#__PURE__*/
|
|
9424
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9225
9425
|
ref: ref,
|
|
9226
9426
|
toggle: true
|
|
9227
9427
|
}), map(children, function (child) {
|
|
@@ -9234,7 +9434,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9234
9434
|
return handleToggle(childVal, e);
|
|
9235
9435
|
};
|
|
9236
9436
|
|
|
9237
|
-
return
|
|
9437
|
+
return React__default.cloneElement(child, {
|
|
9238
9438
|
type: type,
|
|
9239
9439
|
name: child.name || name,
|
|
9240
9440
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9242,41 +9442,41 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9242
9442
|
});
|
|
9243
9443
|
}));
|
|
9244
9444
|
});
|
|
9245
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9445
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9246
9446
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9247
9447
|
|
|
9248
|
-
var defaultProps
|
|
9448
|
+
var defaultProps = {
|
|
9249
9449
|
placement: 'right'
|
|
9250
9450
|
};
|
|
9251
|
-
var Tooltip =
|
|
9451
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9252
9452
|
var bsPrefix = _ref.bsPrefix,
|
|
9253
9453
|
placement = _ref.placement,
|
|
9254
9454
|
className = _ref.className,
|
|
9255
9455
|
style = _ref.style,
|
|
9256
9456
|
children = _ref.children,
|
|
9257
|
-
arrowProps = _ref.arrowProps
|
|
9258
|
-
|
|
9259
|
-
|
|
9260
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9457
|
+
arrowProps = _ref.arrowProps;
|
|
9458
|
+
_ref.popper;
|
|
9459
|
+
_ref.show;
|
|
9460
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9261
9461
|
|
|
9262
9462
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9263
9463
|
|
|
9264
9464
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9265
9465
|
primaryPlacement = _ref2[0];
|
|
9266
9466
|
|
|
9267
|
-
return /*#__PURE__*/
|
|
9467
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9268
9468
|
ref: ref,
|
|
9269
9469
|
style: style,
|
|
9270
9470
|
role: "tooltip",
|
|
9271
9471
|
"x-placement": primaryPlacement,
|
|
9272
9472
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9273
|
-
}, props), /*#__PURE__*/
|
|
9473
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9274
9474
|
className: "arrow"
|
|
9275
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9475
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9276
9476
|
className: bsPrefix + "-inner"
|
|
9277
9477
|
}, children));
|
|
9278
9478
|
});
|
|
9279
|
-
Tooltip.defaultProps = defaultProps
|
|
9479
|
+
Tooltip.defaultProps = defaultProps;
|
|
9280
9480
|
Tooltip.displayName = 'Tooltip';
|
|
9281
9481
|
|
|
9282
9482
|
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";
|
|
@@ -9290,54 +9490,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9290
9490
|
client = props.client;
|
|
9291
9491
|
|
|
9292
9492
|
|
|
9293
|
-
return
|
|
9493
|
+
return React__default.createElement(
|
|
9294
9494
|
'div',
|
|
9295
9495
|
{ className: styles.article },
|
|
9296
|
-
|
|
9496
|
+
React__default.createElement(
|
|
9297
9497
|
'a',
|
|
9298
9498
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9299
|
-
|
|
9499
|
+
React__default.createElement(
|
|
9300
9500
|
'div',
|
|
9301
9501
|
{ className: styles.thumb },
|
|
9302
|
-
|
|
9502
|
+
React__default.createElement(
|
|
9303
9503
|
'figure',
|
|
9304
9504
|
null,
|
|
9305
|
-
|
|
9505
|
+
React__default.createElement(
|
|
9306
9506
|
LazyLoad,
|
|
9307
9507
|
null,
|
|
9308
|
-
|
|
9508
|
+
React__default.createElement('img', {
|
|
9309
9509
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9310
9510
|
})
|
|
9311
9511
|
)
|
|
9312
9512
|
)
|
|
9313
9513
|
),
|
|
9314
|
-
|
|
9514
|
+
React__default.createElement(
|
|
9315
9515
|
'div',
|
|
9316
9516
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9317
|
-
|
|
9517
|
+
React__default.createElement(
|
|
9318
9518
|
'div',
|
|
9319
9519
|
{ className: styles.name },
|
|
9320
9520
|
data.name
|
|
9321
9521
|
),
|
|
9322
|
-
data.published &&
|
|
9522
|
+
data.published && React__default.createElement(
|
|
9323
9523
|
'p',
|
|
9324
9524
|
{ className: styles.published },
|
|
9325
9525
|
moment(data.published).format('MMMM Do YYYY')
|
|
9326
9526
|
),
|
|
9327
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9527
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9328
9528
|
'p',
|
|
9329
9529
|
{ className: styles.author },
|
|
9330
9530
|
'By ',
|
|
9331
|
-
|
|
9531
|
+
React__default.createElement(
|
|
9332
9532
|
'span',
|
|
9333
9533
|
null,
|
|
9334
9534
|
data.authorMapping.displayName
|
|
9335
9535
|
)
|
|
9336
9536
|
),
|
|
9337
|
-
data.description &&
|
|
9537
|
+
data.description && React__default.createElement(
|
|
9338
9538
|
'div',
|
|
9339
9539
|
{ className: 'media-series-desc' },
|
|
9340
|
-
|
|
9540
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9341
9541
|
)
|
|
9342
9542
|
)
|
|
9343
9543
|
)
|
|
@@ -9434,14 +9634,14 @@ var Filter = function Filter(_ref) {
|
|
|
9434
9634
|
}
|
|
9435
9635
|
};
|
|
9436
9636
|
|
|
9437
|
-
return
|
|
9637
|
+
return React__default.createElement(
|
|
9438
9638
|
'div',
|
|
9439
9639
|
{ className: 'flex-container' },
|
|
9440
|
-
parentData &&
|
|
9640
|
+
parentData && React__default.createElement(
|
|
9441
9641
|
DropdownButton,
|
|
9442
9642
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9443
|
-
|
|
9444
|
-
Dropdown
|
|
9643
|
+
React__default.createElement(
|
|
9644
|
+
Dropdown.Item,
|
|
9445
9645
|
{ onSelect: function onSelect() {
|
|
9446
9646
|
return handleFilterSelect({}, 'parent');
|
|
9447
9647
|
} },
|
|
@@ -9449,8 +9649,8 @@ var Filter = function Filter(_ref) {
|
|
|
9449
9649
|
),
|
|
9450
9650
|
parentData.data.map(function (docGroup) {
|
|
9451
9651
|
if (!docGroup._id) return null;
|
|
9452
|
-
return
|
|
9453
|
-
Dropdown
|
|
9652
|
+
return React__default.createElement(
|
|
9653
|
+
Dropdown.Item,
|
|
9454
9654
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9455
9655
|
return handleFilterSelect(docGroup, 'parent');
|
|
9456
9656
|
} },
|
|
@@ -9458,11 +9658,11 @@ var Filter = function Filter(_ref) {
|
|
|
9458
9658
|
);
|
|
9459
9659
|
})
|
|
9460
9660
|
),
|
|
9461
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9661
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9462
9662
|
DropdownButton,
|
|
9463
9663
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9464
|
-
|
|
9465
|
-
Dropdown
|
|
9664
|
+
React__default.createElement(
|
|
9665
|
+
Dropdown.Item,
|
|
9466
9666
|
{ onSelect: function onSelect() {
|
|
9467
9667
|
return handleFilterSelect({}, 'child');
|
|
9468
9668
|
} },
|
|
@@ -9470,8 +9670,8 @@ var Filter = function Filter(_ref) {
|
|
|
9470
9670
|
),
|
|
9471
9671
|
childData.data.map(function (docGroup) {
|
|
9472
9672
|
if (!docGroup._id) return null;
|
|
9473
|
-
return
|
|
9474
|
-
Dropdown
|
|
9673
|
+
return React__default.createElement(
|
|
9674
|
+
Dropdown.Item,
|
|
9475
9675
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9476
9676
|
return handleFilterSelect(docGroup, 'child');
|
|
9477
9677
|
} },
|
|
@@ -9479,11 +9679,11 @@ var Filter = function Filter(_ref) {
|
|
|
9479
9679
|
);
|
|
9480
9680
|
})
|
|
9481
9681
|
),
|
|
9482
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9682
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9483
9683
|
DropdownButton,
|
|
9484
9684
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9485
|
-
|
|
9486
|
-
Dropdown
|
|
9685
|
+
React__default.createElement(
|
|
9686
|
+
Dropdown.Item,
|
|
9487
9687
|
{ onSelect: function onSelect() {
|
|
9488
9688
|
return handleFilterSelect({}, 'grandchild');
|
|
9489
9689
|
} },
|
|
@@ -9491,8 +9691,8 @@ var Filter = function Filter(_ref) {
|
|
|
9491
9691
|
),
|
|
9492
9692
|
grandChildData.data.map(function (docGroup) {
|
|
9493
9693
|
if (!docGroup._id) return null;
|
|
9494
|
-
return
|
|
9495
|
-
Dropdown
|
|
9694
|
+
return React__default.createElement(
|
|
9695
|
+
Dropdown.Item,
|
|
9496
9696
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9497
9697
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9498
9698
|
} },
|
|
@@ -9500,7 +9700,7 @@ var Filter = function Filter(_ref) {
|
|
|
9500
9700
|
);
|
|
9501
9701
|
})
|
|
9502
9702
|
),
|
|
9503
|
-
|
|
9703
|
+
React__default.createElement(
|
|
9504
9704
|
'style',
|
|
9505
9705
|
{ jsx: 'true' },
|
|
9506
9706
|
'\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 '
|
|
@@ -9590,27 +9790,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9590
9790
|
}();
|
|
9591
9791
|
|
|
9592
9792
|
if (props.statusCode === 404) {
|
|
9593
|
-
return
|
|
9793
|
+
return React__default.createElement(
|
|
9594
9794
|
'div',
|
|
9595
9795
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9596
|
-
|
|
9796
|
+
React__default.createElement(
|
|
9597
9797
|
'h3',
|
|
9598
9798
|
null,
|
|
9599
9799
|
'404: Resource not found'
|
|
9600
9800
|
),
|
|
9601
|
-
|
|
9801
|
+
React__default.createElement(
|
|
9602
9802
|
'p',
|
|
9603
9803
|
null,
|
|
9604
9804
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9605
9805
|
),
|
|
9606
|
-
|
|
9806
|
+
React__default.createElement(
|
|
9607
9807
|
'p',
|
|
9608
9808
|
null,
|
|
9609
9809
|
'Click here to',
|
|
9610
|
-
|
|
9810
|
+
React__default.createElement(
|
|
9611
9811
|
Link,
|
|
9612
9812
|
{ href: '/' },
|
|
9613
|
-
|
|
9813
|
+
React__default.createElement(
|
|
9614
9814
|
'a',
|
|
9615
9815
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9616
9816
|
' return to homepage.'
|
|
@@ -9620,17 +9820,16 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9620
9820
|
);
|
|
9621
9821
|
}
|
|
9622
9822
|
|
|
9623
|
-
return
|
|
9823
|
+
return React__default.createElement(
|
|
9624
9824
|
'div',
|
|
9625
9825
|
{ className: 'mb-5' },
|
|
9626
|
-
props.
|
|
9627
|
-
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9826
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9628
9827
|
'div',
|
|
9629
9828
|
{ className: '' },
|
|
9630
|
-
|
|
9631
|
-
|
|
9829
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9830
|
+
React__default.createElement('hr', null)
|
|
9632
9831
|
),
|
|
9633
|
-
seriesData &&
|
|
9832
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9634
9833
|
deck: MediaSeriesCard,
|
|
9635
9834
|
variant: 'left',
|
|
9636
9835
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9650,12 +9849,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9650
9849
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9651
9850
|
var _ref4;
|
|
9652
9851
|
|
|
9653
|
-
var urlQuery, pathname,
|
|
9852
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9654
9853
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9655
9854
|
while (1) {
|
|
9656
9855
|
switch (_context2.prev = _context2.next) {
|
|
9657
9856
|
case 0:
|
|
9658
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9857
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9659
9858
|
identifier = pathname.replace('/', '');
|
|
9660
9859
|
itemsPerPage = 10;
|
|
9661
9860
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
@@ -9668,7 +9867,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9668
9867
|
url: pathname
|
|
9669
9868
|
};
|
|
9670
9869
|
_context2.next = 9;
|
|
9671
|
-
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name
|
|
9870
|
+
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name\n }');
|
|
9672
9871
|
|
|
9673
9872
|
case 9:
|
|
9674
9873
|
docGroupID = _context2.sent;
|