@mjhls/mjh-framework 1.0.989-test → 1.0.989
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/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-81006615.js → ADInfeed-b54f0bda.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -21
- package/dist/cjs/ADSponsoredResources.js +20 -21
- package/dist/cjs/ADWebcast.js +20 -21
- package/dist/cjs/ADWelcome.js +17 -18
- package/dist/cjs/{ADlgInfeed-0db07099.js → ADlgInfeed-4f0850ec.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14302
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +355 -494
- package/dist/cjs/AuthWrapper.js +13 -1772
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -27
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +15 -15
- package/dist/cjs/Column3.js +31 -32
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +13 -14
- package/dist/cjs/EventsDeck.js +26 -26
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +47 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HealthCareProfessionalModal.js +2 -2
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +48 -48
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +20 -21
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -33
- package/dist/cjs/{MediaSeriesCard-79eac5e7.js → MediaSeriesCard-94c5bb79.js} +810 -1035
- package/dist/cjs/MediaSeriesLanding.js +51 -52
- package/dist/cjs/MediaSeriesLandingPaginated.js +57 -57
- package/dist/cjs/NavDvm.js +12 -12
- package/dist/cjs/NavMagazine.js +30 -30
- package/dist/cjs/NavNative.js +31 -31
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/Pagination-7624a3bd.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +62 -63
- package/dist/cjs/PartnerDetailListingPaginated.js +62 -62
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +27 -31
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-08699353.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-b7faaedc.js → SocialSearchComponent-af6ddcc0.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +45 -46
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +120 -123
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getPtceActivities.js +4 -4
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-5eabd6e2.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-1d5a3c47.js → index-3c067d4f.js} +164 -414
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-3ffa049c.js} +2 -2
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +146 -147
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +5 -5
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +8 -8
- package/dist/esm/AD300x250.js +25 -26
- package/dist/esm/AD300x250x600.js +25 -26
- package/dist/esm/AD728x90.js +28 -29
- package/dist/esm/ADFloatingFooter.js +27 -28
- package/dist/esm/ADFooter.js +10 -10
- package/dist/esm/ADGutter.js +27 -28
- package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-310d113c.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -28
- package/dist/esm/ADSponsoredResources.js +27 -28
- package/dist/esm/ADWebcast.js +27 -28
- package/dist/esm/ADWelcome.js +28 -29
- package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-eeaa14e2.js} +8 -8
- package/dist/esm/AccordionPanel.js +23 -23
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +13 -14
- package/dist/esm/AlgoliaSearch.js +56 -14327
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +57 -57
- package/dist/esm/ArticleSeriesLandingPage.js +36 -37
- package/dist/esm/ArticleSeriesListing.js +55 -56
- package/dist/esm/Auth.js +427 -565
- package/dist/esm/AuthWrapper.js +27 -1787
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +78 -83
- package/dist/esm/Column1.js +7 -6
- package/dist/esm/Column2.js +27 -26
- package/dist/esm/Column3.js +51 -51
- package/dist/esm/ConferenceArticleCard.js +24 -24
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +73 -73
- package/dist/esm/DeckContent.js +77 -78
- package/dist/esm/DeckQueue.js +71 -72
- package/dist/esm/DeckQueuePaginated.js +64 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-e151d2de.js} +21 -22
- package/dist/esm/EventsDeck.js +87 -87
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +22 -22
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +146 -147
- package/dist/esm/GridContentPaginated.js +135 -135
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +106 -105
- package/dist/esm/Header.js +10 -9
- package/dist/esm/HealthCareProfessionalModal.js +13 -13
- package/dist/esm/Hero.js +14 -14
- package/dist/esm/HighlightenVideo.js +15 -15
- package/dist/esm/HorizontalArticleListing.js +71 -71
- package/dist/esm/HorizontalHero.js +27 -27
- package/dist/esm/ImageSlider-5ae6287a.js +1375 -0
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +65 -65
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +64 -65
- package/dist/esm/MasterDeckPaginated.js +56 -56
- package/dist/esm/{MediaSeriesCard-7d1f45f9.js → MediaSeriesCard-4865e60f.js} +810 -1035
- package/dist/esm/MediaSeriesLanding.js +77 -78
- package/dist/esm/MediaSeriesLandingPaginated.js +81 -81
- package/dist/esm/NavDvm.js +56 -55
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -112
- package/dist/esm/NavNative.js +103 -102
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/Pagination-1e09918f.js +82 -0
- package/dist/esm/PartnerDetailListing.js +98 -99
- package/dist/esm/PartnerDetailListingPaginated.js +94 -94
- package/dist/esm/PdfDownload.js +8 -8
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PtceDeck.js +24 -24
- package/dist/esm/PubSection.js +38 -39
- package/dist/esm/PubToc.js +11 -11
- package/dist/esm/PublicationDeck.js +43 -43
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +75 -79
- package/dist/esm/QueueDeckExpanded.js +274 -275
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -254
- package/dist/esm/RecentNews.js +21 -21
- package/dist/esm/RelatedContent.js +24 -24
- package/dist/esm/RelatedTopicsDropdown.js +12 -12
- package/dist/esm/RolesDeck.js +14 -14
- package/dist/esm/Schema.js +13 -13
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +5 -5
- package/dist/esm/SeriesListingDeck.js +31 -32
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +8 -8
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-77a22145.js} +33 -33
- package/dist/esm/SocialShare.js +26 -26
- package/dist/esm/TaxonomyCard.js +45 -45
- package/dist/esm/TaxonomyDescription.js +51 -51
- package/dist/esm/TemplateNormal.js +66 -67
- package/dist/esm/ThumbnailCard.js +18 -18
- package/dist/esm/Ustream.js +30 -30
- package/dist/esm/VerticalHero.js +18 -18
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +14 -14
- package/dist/esm/VideoSeriesLandingPage.js +41 -42
- package/dist/esm/VideoSeriesListing.js +71 -72
- package/dist/esm/View.js +324 -328
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +49 -49
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-31d40a83.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-72edfd60.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-4201ccf6.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-fa0feeff.js} +2 -2
- package/dist/esm/{asyncToGenerator-958ef5fc.js → asyncToGenerator-9c835201.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-8c71f470.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-a8a00786.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-3518b6fe.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-7fbbe94e.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getPtceActivities.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +70 -134
- package/dist/esm/getRootDocGroup.js +5 -5
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-eed01f73.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-03afef1c.js → index-25f93396.js} +574 -825
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +172 -173
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-d26c739e.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-5e9bd229.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-99bcfd93.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-0c65d837.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +2 -2
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-47a5394a.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-d92ed6e0.js} +34 -34
- package/dist/esm/urlFor.js +5 -5
- package/dist/esm/{urlForFile-b69adffc.js → urlForFile-0fc42ed8.js} +1 -1
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-cbba615a.js} +5 -5
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-406140e0.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/Pagination-dc30727b.js +0 -90
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/keys-31dcdb31.js +0 -23
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,15 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _typeof } from './typeof-d92ed6e0.js';
|
|
3
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
4
6
|
import ReactDOM from 'react-dom';
|
|
5
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
7
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
8
7
|
import urlFor from './urlFor.js';
|
|
9
|
-
import {
|
|
8
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
9
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
10
|
+
import { g as getSerializers } from './index-25f93396.js';
|
|
10
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
function _extends() {
|
|
14
|
+
_extends = Object.assign || function (target) {
|
|
15
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
+
var source = arguments[i];
|
|
17
|
+
|
|
18
|
+
for (var key in source) {
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20
|
+
target[key] = source[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extends.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
32
|
+
if (source == null) return {};
|
|
33
|
+
var target = {};
|
|
34
|
+
var sourceKeys = Object.keys(source);
|
|
35
|
+
var key, i;
|
|
36
|
+
|
|
37
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
38
|
+
key = sourceKeys[i];
|
|
39
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
40
|
+
target[key] = source[key];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return target;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var classnames = createCommonjsModule(function (module) {
|
|
47
|
+
/*!
|
|
48
|
+
Copyright (c) 2017 Jed Watson.
|
|
49
|
+
Licensed under the MIT License (MIT), see
|
|
50
|
+
http://jedwatson.github.io/classnames
|
|
51
|
+
*/
|
|
52
|
+
/* global define */
|
|
53
|
+
|
|
54
|
+
(function () {
|
|
55
|
+
|
|
56
|
+
var hasOwn = {}.hasOwnProperty;
|
|
57
|
+
|
|
58
|
+
function classNames () {
|
|
59
|
+
var classes = [];
|
|
60
|
+
|
|
61
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
62
|
+
var arg = arguments[i];
|
|
63
|
+
if (!arg) continue;
|
|
64
|
+
|
|
65
|
+
var argType = typeof arg;
|
|
66
|
+
|
|
67
|
+
if (argType === 'string' || argType === 'number') {
|
|
68
|
+
classes.push(arg);
|
|
69
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
70
|
+
var inner = classNames.apply(null, arg);
|
|
71
|
+
if (inner) {
|
|
72
|
+
classes.push(inner);
|
|
73
|
+
}
|
|
74
|
+
} else if (argType === 'object') {
|
|
75
|
+
for (var key in arg) {
|
|
76
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
77
|
+
classes.push(key);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return classes.join(' ');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if ( module.exports) {
|
|
87
|
+
classNames.default = classNames;
|
|
88
|
+
module.exports = classNames;
|
|
89
|
+
} else {
|
|
90
|
+
window.classNames = classNames;
|
|
91
|
+
}
|
|
92
|
+
}());
|
|
93
|
+
});
|
|
13
94
|
|
|
14
95
|
/**
|
|
15
96
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -119,19 +200,19 @@ function useUncontrolled(props, config) {
|
|
|
119
200
|
function _inheritsLoose(subClass, superClass) {
|
|
120
201
|
subClass.prototype = Object.create(superClass.prototype);
|
|
121
202
|
subClass.prototype.constructor = subClass;
|
|
122
|
-
|
|
203
|
+
subClass.__proto__ = superClass;
|
|
123
204
|
}
|
|
124
205
|
|
|
125
|
-
var ThemeContext =
|
|
126
|
-
ThemeContext.Consumer
|
|
127
|
-
ThemeContext.Provider;
|
|
206
|
+
var ThemeContext = React.createContext({});
|
|
207
|
+
var Consumer = ThemeContext.Consumer,
|
|
208
|
+
Provider = ThemeContext.Provider;
|
|
128
209
|
|
|
129
210
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
130
211
|
var prefixes = useContext(ThemeContext);
|
|
131
212
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
132
213
|
}
|
|
133
214
|
|
|
134
|
-
var SelectableContext =
|
|
215
|
+
var SelectableContext = React.createContext(null);
|
|
135
216
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
136
217
|
if (href === void 0) {
|
|
137
218
|
href = null;
|
|
@@ -141,11 +222,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
141
222
|
return href || null;
|
|
142
223
|
};
|
|
143
224
|
|
|
144
|
-
var context
|
|
145
|
-
context
|
|
225
|
+
var context = React.createContext(null);
|
|
226
|
+
context.displayName = 'AccordionContext';
|
|
146
227
|
|
|
147
228
|
function useAccordionToggle(eventKey, onClick) {
|
|
148
|
-
var contextEventKey = useContext(context
|
|
229
|
+
var contextEventKey = useContext(context);
|
|
149
230
|
var onSelect = useContext(SelectableContext);
|
|
150
231
|
return function (e) {
|
|
151
232
|
/*
|
|
@@ -157,7 +238,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
157
238
|
if (onClick) onClick(e);
|
|
158
239
|
};
|
|
159
240
|
}
|
|
160
|
-
var AccordionToggle =
|
|
241
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
161
242
|
var _ref$as = _ref.as,
|
|
162
243
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
163
244
|
children = _ref.children,
|
|
@@ -171,40 +252,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
171
252
|
props.type = 'button';
|
|
172
253
|
}
|
|
173
254
|
|
|
174
|
-
return /*#__PURE__*/
|
|
255
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
175
256
|
ref: ref,
|
|
176
257
|
onClick: accordionOnClick
|
|
177
258
|
}, props), children);
|
|
178
259
|
});
|
|
179
260
|
|
|
180
|
-
|
|
181
|
-
* Returns the owner document of a given element.
|
|
182
|
-
*
|
|
183
|
-
* @param node the element
|
|
184
|
-
*/
|
|
185
|
-
function ownerDocument$1(node) {
|
|
261
|
+
function ownerDocument(node) {
|
|
186
262
|
return node && node.ownerDocument || document;
|
|
187
263
|
}
|
|
188
264
|
|
|
189
|
-
/**
|
|
190
|
-
* Returns the owner window of a given element.
|
|
191
|
-
*
|
|
192
|
-
* @param node the element
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
265
|
function ownerWindow(node) {
|
|
196
|
-
var doc = ownerDocument
|
|
266
|
+
var doc = ownerDocument(node);
|
|
197
267
|
return doc && doc.defaultView || window;
|
|
198
268
|
}
|
|
199
269
|
|
|
200
|
-
|
|
201
|
-
* Returns one or all computed style properties of an element.
|
|
202
|
-
*
|
|
203
|
-
* @param node the element
|
|
204
|
-
* @param psuedoElement the style property
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
270
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
208
271
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
209
272
|
}
|
|
210
273
|
|
|
@@ -233,7 +296,7 @@ function style(node, property) {
|
|
|
233
296
|
var transforms = '';
|
|
234
297
|
|
|
235
298
|
if (typeof property === 'string') {
|
|
236
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
299
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
237
300
|
}
|
|
238
301
|
|
|
239
302
|
Object.keys(property).forEach(function (key) {
|
|
@@ -284,11 +347,6 @@ try {
|
|
|
284
347
|
|
|
285
348
|
/**
|
|
286
349
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
287
|
-
*
|
|
288
|
-
* @param node the element
|
|
289
|
-
* @param eventName the event name
|
|
290
|
-
* @param handle the handler
|
|
291
|
-
* @param options event options
|
|
292
350
|
*/
|
|
293
351
|
function addEventListener(node, eventName, handler, options) {
|
|
294
352
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -311,14 +369,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
311
369
|
node.addEventListener(eventName, handler, options);
|
|
312
370
|
}
|
|
313
371
|
|
|
314
|
-
/**
|
|
315
|
-
* A `removeEventListener` ponyfill
|
|
316
|
-
*
|
|
317
|
-
* @param node the element
|
|
318
|
-
* @param eventName the event name
|
|
319
|
-
* @param handle the handler
|
|
320
|
-
* @param options event options
|
|
321
|
-
*/
|
|
322
372
|
function removeEventListener(node, eventName, handler, options) {
|
|
323
373
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
324
374
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -335,36 +385,18 @@ function listen(node, eventName, handler, options) {
|
|
|
335
385
|
};
|
|
336
386
|
}
|
|
337
387
|
|
|
338
|
-
/**
|
|
339
|
-
* Triggers an event on a given element.
|
|
340
|
-
*
|
|
341
|
-
* @param node the element
|
|
342
|
-
* @param eventName the event name to trigger
|
|
343
|
-
* @param bubbles whether the event should bubble up
|
|
344
|
-
* @param cancelable whether the event should be cancelable
|
|
345
|
-
*/
|
|
346
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
347
|
-
if (bubbles === void 0) {
|
|
348
|
-
bubbles = false;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (cancelable === void 0) {
|
|
352
|
-
cancelable = true;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
if (node) {
|
|
356
|
-
var event = document.createEvent('HTMLEvents');
|
|
357
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
358
|
-
node.dispatchEvent(event);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
388
|
function parseDuration(node) {
|
|
363
389
|
var str = style(node, 'transitionDuration') || '';
|
|
364
390
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
365
391
|
return parseFloat(str) * mult;
|
|
366
392
|
}
|
|
367
393
|
|
|
394
|
+
function triggerTransitionEnd(element) {
|
|
395
|
+
var evt = document.createEvent('HTMLEvents');
|
|
396
|
+
evt.initEvent('transitionend', true, true);
|
|
397
|
+
element.dispatchEvent(evt);
|
|
398
|
+
}
|
|
399
|
+
|
|
368
400
|
function emulateTransitionEnd(element, duration, padding) {
|
|
369
401
|
if (padding === void 0) {
|
|
370
402
|
padding = 5;
|
|
@@ -372,7 +404,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
372
404
|
|
|
373
405
|
var called = false;
|
|
374
406
|
var handle = setTimeout(function () {
|
|
375
|
-
if (!called)
|
|
407
|
+
if (!called) triggerTransitionEnd(element);
|
|
376
408
|
}, duration + padding);
|
|
377
409
|
var remove = listen(element, 'transitionend', function () {
|
|
378
410
|
called = true;
|
|
@@ -404,7 +436,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
404
436
|
exit: PropTypes.number,
|
|
405
437
|
appear: PropTypes.number
|
|
406
438
|
}).isRequired]) : null;
|
|
407
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
439
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
408
440
|
enter: PropTypes.string,
|
|
409
441
|
exit: PropTypes.string,
|
|
410
442
|
active: PropTypes.string
|
|
@@ -417,7 +449,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
417
449
|
exitActive: PropTypes.string
|
|
418
450
|
})]) : null;
|
|
419
451
|
|
|
420
|
-
var TransitionGroupContext =
|
|
452
|
+
var TransitionGroupContext = React.createContext(null);
|
|
421
453
|
|
|
422
454
|
var UNMOUNTED = 'unmounted';
|
|
423
455
|
var EXITED = 'exited';
|
|
@@ -786,35 +818,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
786
818
|
}
|
|
787
819
|
|
|
788
820
|
var _this$props = this.props,
|
|
789
|
-
children = _this$props.children
|
|
790
|
-
_this$props.in
|
|
791
|
-
_this$props.mountOnEnter
|
|
792
|
-
_this$props.unmountOnExit
|
|
793
|
-
_this$props.appear
|
|
794
|
-
_this$props.enter
|
|
795
|
-
_this$props.exit
|
|
796
|
-
_this$props.timeout
|
|
797
|
-
_this$props.addEndListener
|
|
798
|
-
_this$props.onEnter
|
|
799
|
-
_this$props.onEntering
|
|
800
|
-
_this$props.onEntered
|
|
801
|
-
_this$props.onExit
|
|
802
|
-
_this$props.onExiting
|
|
803
|
-
_this$props.onExited
|
|
804
|
-
_this$props.nodeRef
|
|
805
|
-
|
|
821
|
+
children = _this$props.children,
|
|
822
|
+
_in = _this$props.in,
|
|
823
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
824
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
825
|
+
_appear = _this$props.appear,
|
|
826
|
+
_enter = _this$props.enter,
|
|
827
|
+
_exit = _this$props.exit,
|
|
828
|
+
_timeout = _this$props.timeout,
|
|
829
|
+
_addEndListener = _this$props.addEndListener,
|
|
830
|
+
_onEnter = _this$props.onEnter,
|
|
831
|
+
_onEntering = _this$props.onEntering,
|
|
832
|
+
_onEntered = _this$props.onEntered,
|
|
833
|
+
_onExit = _this$props.onExit,
|
|
834
|
+
_onExiting = _this$props.onExiting,
|
|
835
|
+
_onExited = _this$props.onExited,
|
|
836
|
+
_nodeRef = _this$props.nodeRef,
|
|
837
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
806
838
|
|
|
807
839
|
return (
|
|
808
840
|
/*#__PURE__*/
|
|
809
841
|
// allows for nested Transitions
|
|
810
|
-
|
|
842
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
811
843
|
value: null
|
|
812
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
844
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
813
845
|
);
|
|
814
846
|
};
|
|
815
847
|
|
|
816
848
|
return Transition;
|
|
817
|
-
}(
|
|
849
|
+
}(React.Component);
|
|
818
850
|
|
|
819
851
|
Transition.contextType = TransitionGroupContext;
|
|
820
852
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -830,10 +862,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
830
862
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
831
863
|
*/
|
|
832
864
|
nodeRef: PropTypes.shape({
|
|
833
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
834
|
-
var value = propValue[key];
|
|
835
|
-
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
836
|
-
}
|
|
865
|
+
current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)
|
|
837
866
|
}),
|
|
838
867
|
|
|
839
868
|
/**
|
|
@@ -1005,7 +1034,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1005
1034
|
onExited: PropTypes.func
|
|
1006
1035
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1007
1036
|
|
|
1008
|
-
function noop
|
|
1037
|
+
function noop() {}
|
|
1009
1038
|
|
|
1010
1039
|
Transition.defaultProps = {
|
|
1011
1040
|
in: false,
|
|
@@ -1014,12 +1043,12 @@ Transition.defaultProps = {
|
|
|
1014
1043
|
appear: false,
|
|
1015
1044
|
enter: true,
|
|
1016
1045
|
exit: true,
|
|
1017
|
-
onEnter: noop
|
|
1018
|
-
onEntering: noop
|
|
1019
|
-
onEntered: noop
|
|
1020
|
-
onExit: noop
|
|
1021
|
-
onExiting: noop
|
|
1022
|
-
onExited: noop
|
|
1046
|
+
onEnter: noop,
|
|
1047
|
+
onEntering: noop,
|
|
1048
|
+
onEntered: noop,
|
|
1049
|
+
onExit: noop,
|
|
1050
|
+
onExiting: noop,
|
|
1051
|
+
onExited: noop
|
|
1023
1052
|
};
|
|
1024
1053
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1025
1054
|
Transition.EXITED = EXITED;
|
|
@@ -1085,7 +1114,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1085
1114
|
}
|
|
1086
1115
|
|
|
1087
1116
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1088
|
-
var defaultProps
|
|
1117
|
+
var defaultProps = {
|
|
1089
1118
|
in: false,
|
|
1090
1119
|
timeout: 300,
|
|
1091
1120
|
mountOnEnter: false,
|
|
@@ -1093,7 +1122,7 @@ var defaultProps$E = {
|
|
|
1093
1122
|
appear: false,
|
|
1094
1123
|
getDimensionValue: getDefaultDimensionValue
|
|
1095
1124
|
};
|
|
1096
|
-
var Collapse =
|
|
1125
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1097
1126
|
var onEnter = _ref.onEnter,
|
|
1098
1127
|
onEntering = _ref.onEntering,
|
|
1099
1128
|
onEntered = _ref.onEntered,
|
|
@@ -1140,7 +1169,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1140
1169
|
elem.style[computedDimension] = null;
|
|
1141
1170
|
}, onExiting);
|
|
1142
1171
|
}, [computedDimension, onExiting]);
|
|
1143
|
-
return /*#__PURE__*/
|
|
1172
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1144
1173
|
, _extends({
|
|
1145
1174
|
ref: ref,
|
|
1146
1175
|
addEndListener: transitionEnd
|
|
@@ -1152,33 +1181,29 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1152
1181
|
onExit: handleExit,
|
|
1153
1182
|
onExiting: handleExiting
|
|
1154
1183
|
}), function (state, innerProps) {
|
|
1155
|
-
return
|
|
1184
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1156
1185
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1157
1186
|
}));
|
|
1158
1187
|
});
|
|
1159
1188
|
}); // @ts-ignore
|
|
1160
1189
|
|
|
1161
1190
|
// @ts-ignore
|
|
1162
|
-
Collapse.defaultProps = defaultProps
|
|
1191
|
+
Collapse.defaultProps = defaultProps;
|
|
1163
1192
|
|
|
1164
|
-
var AccordionCollapse =
|
|
1193
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1165
1194
|
var children = _ref.children,
|
|
1166
1195
|
eventKey = _ref.eventKey,
|
|
1167
1196
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1168
1197
|
|
|
1169
|
-
var contextEventKey = useContext(context
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1173
|
-
value: null
|
|
1174
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1198
|
+
var contextEventKey = useContext(context);
|
|
1199
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1175
1200
|
ref: ref,
|
|
1176
1201
|
in: contextEventKey === eventKey
|
|
1177
|
-
}, props), /*#__PURE__*/
|
|
1202
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1178
1203
|
});
|
|
1179
1204
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1180
1205
|
|
|
1181
|
-
var Accordion =
|
|
1206
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1182
1207
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1183
1208
|
activeKey: 'onSelect'
|
|
1184
1209
|
}),
|
|
@@ -1192,11 +1217,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1192
1217
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1193
1218
|
|
|
1194
1219
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1195
|
-
return /*#__PURE__*/
|
|
1220
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1196
1221
|
value: activeKey || null
|
|
1197
|
-
}, /*#__PURE__*/
|
|
1222
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1198
1223
|
value: onSelect || null
|
|
1199
|
-
}, /*#__PURE__*/
|
|
1224
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1200
1225
|
ref: ref
|
|
1201
1226
|
}, controlledProps, {
|
|
1202
1227
|
className: finalClassName
|
|
@@ -1232,7 +1257,7 @@ function useEventCallback(fn) {
|
|
|
1232
1257
|
}
|
|
1233
1258
|
|
|
1234
1259
|
var _fadeStyles;
|
|
1235
|
-
var defaultProps$
|
|
1260
|
+
var defaultProps$1 = {
|
|
1236
1261
|
in: false,
|
|
1237
1262
|
timeout: 300,
|
|
1238
1263
|
mountOnEnter: false,
|
|
@@ -1240,7 +1265,7 @@ var defaultProps$D = {
|
|
|
1240
1265
|
appear: false
|
|
1241
1266
|
};
|
|
1242
1267
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1243
|
-
var Fade =
|
|
1268
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1244
1269
|
var className = _ref.className,
|
|
1245
1270
|
children = _ref.children,
|
|
1246
1271
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1249,51 +1274,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1249
1274
|
triggerBrowserReflow(node);
|
|
1250
1275
|
if (props.onEnter) props.onEnter(node);
|
|
1251
1276
|
}, [props]);
|
|
1252
|
-
return /*#__PURE__*/
|
|
1277
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1253
1278
|
ref: ref,
|
|
1254
1279
|
addEndListener: transitionEnd
|
|
1255
1280
|
}, props, {
|
|
1256
1281
|
onEnter: handleEnter
|
|
1257
1282
|
}), function (status, innerProps) {
|
|
1258
|
-
return
|
|
1283
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1259
1284
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1260
1285
|
}));
|
|
1261
1286
|
});
|
|
1262
1287
|
});
|
|
1263
|
-
Fade.defaultProps = defaultProps$
|
|
1288
|
+
Fade.defaultProps = defaultProps$1;
|
|
1264
1289
|
Fade.displayName = 'Fade';
|
|
1265
1290
|
|
|
1266
|
-
var propTypes
|
|
1291
|
+
var propTypes = {
|
|
1267
1292
|
label: PropTypes.string.isRequired,
|
|
1268
1293
|
onClick: PropTypes.func
|
|
1269
1294
|
};
|
|
1270
|
-
var defaultProps$
|
|
1295
|
+
var defaultProps$2 = {
|
|
1271
1296
|
label: 'Close'
|
|
1272
1297
|
};
|
|
1273
|
-
var CloseButton =
|
|
1298
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1274
1299
|
var label = _ref.label,
|
|
1275
1300
|
onClick = _ref.onClick,
|
|
1276
1301
|
className = _ref.className,
|
|
1277
1302
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1278
1303
|
|
|
1279
|
-
return /*#__PURE__*/
|
|
1304
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1280
1305
|
ref: ref,
|
|
1281
1306
|
type: "button",
|
|
1282
1307
|
className: classnames('close', className),
|
|
1283
1308
|
onClick: onClick
|
|
1284
|
-
}, props), /*#__PURE__*/
|
|
1309
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1285
1310
|
"aria-hidden": "true"
|
|
1286
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1311
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1287
1312
|
className: "sr-only"
|
|
1288
1313
|
}, label));
|
|
1289
1314
|
});
|
|
1290
1315
|
CloseButton.displayName = 'CloseButton';
|
|
1291
|
-
CloseButton.propTypes = propTypes
|
|
1292
|
-
CloseButton.defaultProps = defaultProps$
|
|
1316
|
+
CloseButton.propTypes = propTypes;
|
|
1317
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1293
1318
|
|
|
1294
1319
|
var divWithClassName = (function (className) {
|
|
1295
|
-
return
|
|
1296
|
-
return /*#__PURE__*/
|
|
1320
|
+
return React.forwardRef(function (p, ref) {
|
|
1321
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1297
1322
|
ref: ref,
|
|
1298
1323
|
className: classnames(p.className, className)
|
|
1299
1324
|
}));
|
|
@@ -1319,7 +1344,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1319
1344
|
Component = _ref.Component,
|
|
1320
1345
|
defaultProps = _ref.defaultProps;
|
|
1321
1346
|
|
|
1322
|
-
var BsComponent =
|
|
1347
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1323
1348
|
var className = _ref2.className,
|
|
1324
1349
|
bsPrefix = _ref2.bsPrefix,
|
|
1325
1350
|
_ref2$as = _ref2.as,
|
|
@@ -1327,7 +1352,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1327
1352
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1328
1353
|
|
|
1329
1354
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1330
|
-
return /*#__PURE__*/
|
|
1355
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1331
1356
|
ref: ref,
|
|
1332
1357
|
className: classnames(className, resolvedPrefix)
|
|
1333
1358
|
}, props));
|
|
@@ -1349,7 +1374,7 @@ function isTrivialHref(href) {
|
|
|
1349
1374
|
*/
|
|
1350
1375
|
|
|
1351
1376
|
|
|
1352
|
-
var SafeAnchor =
|
|
1377
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1353
1378
|
var _ref$as = _ref.as,
|
|
1354
1379
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1355
1380
|
disabled = _ref.disabled,
|
|
@@ -1393,7 +1418,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1393
1418
|
props['aria-disabled'] = true;
|
|
1394
1419
|
}
|
|
1395
1420
|
|
|
1396
|
-
return /*#__PURE__*/
|
|
1421
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1397
1422
|
ref: ref
|
|
1398
1423
|
}, props, {
|
|
1399
1424
|
onClick: handleClick,
|
|
@@ -1402,20 +1427,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1402
1427
|
});
|
|
1403
1428
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1404
1429
|
|
|
1405
|
-
var DivStyledAsH4
|
|
1406
|
-
DivStyledAsH4
|
|
1430
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1431
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1407
1432
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1408
|
-
Component: DivStyledAsH4
|
|
1433
|
+
Component: DivStyledAsH4
|
|
1409
1434
|
});
|
|
1410
1435
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1411
1436
|
Component: SafeAnchor
|
|
1412
1437
|
});
|
|
1413
|
-
var defaultProps$
|
|
1438
|
+
var defaultProps$3 = {
|
|
1414
1439
|
show: true,
|
|
1415
1440
|
transition: Fade,
|
|
1416
1441
|
closeLabel: 'Close alert'
|
|
1417
1442
|
};
|
|
1418
|
-
var Alert =
|
|
1443
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1419
1444
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1420
1445
|
show: 'onClose'
|
|
1421
1446
|
}),
|
|
@@ -1437,17 +1462,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1437
1462
|
}
|
|
1438
1463
|
});
|
|
1439
1464
|
var Transition = transition === true ? Fade : transition;
|
|
1440
|
-
var alert = /*#__PURE__*/
|
|
1465
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1441
1466
|
role: "alert"
|
|
1442
1467
|
}, Transition ? props : undefined, {
|
|
1443
1468
|
ref: ref,
|
|
1444
1469
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1445
|
-
}), dismissible && /*#__PURE__*/
|
|
1470
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1446
1471
|
onClick: handleClose,
|
|
1447
1472
|
label: closeLabel
|
|
1448
1473
|
}), children);
|
|
1449
1474
|
if (!Transition) return show ? alert : null;
|
|
1450
|
-
return /*#__PURE__*/
|
|
1475
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1451
1476
|
unmountOnExit: true
|
|
1452
1477
|
}, props, {
|
|
1453
1478
|
ref: undefined,
|
|
@@ -1455,14 +1480,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1455
1480
|
}), alert);
|
|
1456
1481
|
});
|
|
1457
1482
|
Alert.displayName = 'Alert';
|
|
1458
|
-
Alert.defaultProps = defaultProps$
|
|
1483
|
+
Alert.defaultProps = defaultProps$3;
|
|
1459
1484
|
Alert.Link = AlertLink;
|
|
1460
1485
|
Alert.Heading = AlertHeading;
|
|
1461
1486
|
|
|
1462
|
-
var defaultProps$
|
|
1487
|
+
var defaultProps$4 = {
|
|
1463
1488
|
pill: false
|
|
1464
1489
|
};
|
|
1465
|
-
var Badge =
|
|
1490
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1466
1491
|
var bsPrefix = _ref.bsPrefix,
|
|
1467
1492
|
variant = _ref.variant,
|
|
1468
1493
|
pill = _ref.pill,
|
|
@@ -1472,20 +1497,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1472
1497
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1473
1498
|
|
|
1474
1499
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1475
|
-
return /*#__PURE__*/
|
|
1500
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1476
1501
|
ref: ref
|
|
1477
1502
|
}, props, {
|
|
1478
1503
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1479
1504
|
}));
|
|
1480
1505
|
});
|
|
1481
1506
|
Badge.displayName = 'Badge';
|
|
1482
|
-
Badge.defaultProps = defaultProps$
|
|
1507
|
+
Badge.defaultProps = defaultProps$4;
|
|
1483
1508
|
|
|
1484
|
-
var defaultProps$
|
|
1509
|
+
var defaultProps$5 = {
|
|
1485
1510
|
active: false,
|
|
1486
1511
|
linkProps: {}
|
|
1487
1512
|
};
|
|
1488
|
-
var BreadcrumbItem =
|
|
1513
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1489
1514
|
var bsPrefix = _ref.bsPrefix,
|
|
1490
1515
|
active = _ref.active,
|
|
1491
1516
|
children = _ref.children,
|
|
@@ -1501,27 +1526,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1501
1526
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1502
1527
|
|
|
1503
1528
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1504
|
-
return /*#__PURE__*/
|
|
1529
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1505
1530
|
ref: ref
|
|
1506
1531
|
}, props, {
|
|
1507
1532
|
className: classnames(prefix, className, {
|
|
1508
1533
|
active: active
|
|
1509
1534
|
}),
|
|
1510
1535
|
"aria-current": active ? 'page' : undefined
|
|
1511
|
-
}), active ? children : /*#__PURE__*/
|
|
1536
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1512
1537
|
href: href,
|
|
1513
1538
|
title: title,
|
|
1514
1539
|
target: target
|
|
1515
1540
|
}), children));
|
|
1516
1541
|
});
|
|
1517
1542
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1518
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1543
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1519
1544
|
|
|
1520
|
-
var defaultProps$
|
|
1545
|
+
var defaultProps$6 = {
|
|
1521
1546
|
label: 'breadcrumb',
|
|
1522
1547
|
listProps: {}
|
|
1523
1548
|
};
|
|
1524
|
-
var Breadcrumb =
|
|
1549
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1525
1550
|
var bsPrefix = _ref.bsPrefix,
|
|
1526
1551
|
className = _ref.className,
|
|
1527
1552
|
listProps = _ref.listProps,
|
|
@@ -1532,24 +1557,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1532
1557
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1533
1558
|
|
|
1534
1559
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1535
|
-
return /*#__PURE__*/
|
|
1560
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1536
1561
|
"aria-label": label,
|
|
1537
1562
|
className: className,
|
|
1538
1563
|
ref: ref
|
|
1539
|
-
}, props), /*#__PURE__*/
|
|
1564
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1540
1565
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1541
1566
|
}), children));
|
|
1542
1567
|
});
|
|
1543
1568
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1544
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1569
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1545
1570
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1546
1571
|
|
|
1547
|
-
var defaultProps$
|
|
1572
|
+
var defaultProps$7 = {
|
|
1548
1573
|
variant: 'primary',
|
|
1549
1574
|
active: false,
|
|
1550
1575
|
disabled: false
|
|
1551
1576
|
};
|
|
1552
|
-
var Button =
|
|
1577
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1553
1578
|
var bsPrefix = _ref.bsPrefix,
|
|
1554
1579
|
variant = _ref.variant,
|
|
1555
1580
|
size = _ref.size,
|
|
@@ -1561,10 +1586,10 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1561
1586
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1562
1587
|
|
|
1563
1588
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1564
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1589
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1565
1590
|
|
|
1566
1591
|
if (props.href) {
|
|
1567
|
-
return /*#__PURE__*/
|
|
1592
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1568
1593
|
as: as,
|
|
1569
1594
|
ref: ref,
|
|
1570
1595
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1582,19 +1607,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1582
1607
|
}
|
|
1583
1608
|
|
|
1584
1609
|
var Component = as || 'button';
|
|
1585
|
-
return /*#__PURE__*/
|
|
1610
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1586
1611
|
className: classes
|
|
1587
1612
|
}));
|
|
1588
1613
|
});
|
|
1589
1614
|
Button.displayName = 'Button';
|
|
1590
|
-
Button.defaultProps = defaultProps$
|
|
1615
|
+
Button.defaultProps = defaultProps$7;
|
|
1591
1616
|
|
|
1592
|
-
var defaultProps$
|
|
1617
|
+
var defaultProps$8 = {
|
|
1593
1618
|
vertical: false,
|
|
1594
1619
|
toggle: false,
|
|
1595
1620
|
role: 'group'
|
|
1596
1621
|
};
|
|
1597
|
-
var ButtonGroup =
|
|
1622
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1598
1623
|
var bsPrefix = _ref.bsPrefix,
|
|
1599
1624
|
size = _ref.size,
|
|
1600
1625
|
toggle = _ref.toggle,
|
|
@@ -1607,38 +1632,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1607
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1608
1633
|
var baseClass = prefix;
|
|
1609
1634
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1610
|
-
return /*#__PURE__*/
|
|
1635
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1611
1636
|
ref: ref,
|
|
1612
1637
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1613
1638
|
}));
|
|
1614
1639
|
});
|
|
1615
1640
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1616
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1641
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1617
1642
|
|
|
1618
|
-
var defaultProps$
|
|
1643
|
+
var defaultProps$9 = {
|
|
1619
1644
|
role: 'toolbar'
|
|
1620
1645
|
};
|
|
1621
|
-
var ButtonToolbar =
|
|
1646
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1622
1647
|
var bsPrefix = _ref.bsPrefix,
|
|
1623
1648
|
className = _ref.className,
|
|
1624
1649
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1625
1650
|
|
|
1626
1651
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1627
|
-
return /*#__PURE__*/
|
|
1652
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1628
1653
|
ref: ref,
|
|
1629
1654
|
className: classnames(className, prefix)
|
|
1630
1655
|
}));
|
|
1631
1656
|
});
|
|
1632
1657
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1633
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1658
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1634
1659
|
|
|
1635
|
-
var context$1 =
|
|
1660
|
+
var context$1 = React.createContext(null);
|
|
1636
1661
|
context$1.displayName = 'CardContext';
|
|
1637
1662
|
|
|
1638
|
-
var defaultProps$
|
|
1663
|
+
var defaultProps$a = {
|
|
1639
1664
|
variant: null
|
|
1640
1665
|
};
|
|
1641
|
-
var CardImg =
|
|
1666
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1642
1667
|
function (_ref, ref) {
|
|
1643
1668
|
var bsPrefix = _ref.bsPrefix,
|
|
1644
1669
|
className = _ref.className,
|
|
@@ -1648,13 +1673,13 @@ function (_ref, ref) {
|
|
|
1648
1673
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1649
1674
|
|
|
1650
1675
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1651
|
-
return /*#__PURE__*/
|
|
1676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1652
1677
|
ref: ref,
|
|
1653
1678
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1654
1679
|
}, props));
|
|
1655
1680
|
});
|
|
1656
1681
|
CardImg.displayName = 'CardImg';
|
|
1657
|
-
CardImg.defaultProps = defaultProps$
|
|
1682
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1658
1683
|
|
|
1659
1684
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1660
1685
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1674,10 +1699,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1674
1699
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1675
1700
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1676
1701
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1677
|
-
var defaultProps$
|
|
1702
|
+
var defaultProps$b = {
|
|
1678
1703
|
body: false
|
|
1679
1704
|
};
|
|
1680
|
-
var Card =
|
|
1705
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1681
1706
|
var bsPrefix = _ref.bsPrefix,
|
|
1682
1707
|
className = _ref.className,
|
|
1683
1708
|
bg = _ref.bg,
|
|
@@ -1695,19 +1720,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1695
1720
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1696
1721
|
};
|
|
1697
1722
|
}, [prefix]);
|
|
1698
|
-
return /*#__PURE__*/
|
|
1723
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1699
1724
|
value: cardContext
|
|
1700
|
-
}, /*#__PURE__*/
|
|
1725
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1701
1726
|
ref: ref
|
|
1702
1727
|
}, props, {
|
|
1703
1728
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1704
1729
|
}), body ?
|
|
1705
1730
|
/*#__PURE__*/
|
|
1706
1731
|
// @ts-ignore
|
|
1707
|
-
|
|
1732
|
+
React.createElement(CardBody, null, children) : children));
|
|
1708
1733
|
});
|
|
1709
1734
|
Card.displayName = 'Card';
|
|
1710
|
-
Card.defaultProps = defaultProps$
|
|
1735
|
+
Card.defaultProps = defaultProps$b;
|
|
1711
1736
|
Card.Img = CardImg;
|
|
1712
1737
|
Card.Title = CardTitle;
|
|
1713
1738
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1840,20 +1865,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1840
1865
|
/**
|
|
1841
1866
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1842
1867
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
* ```tsx
|
|
1847
|
-
* const { set, clear } = useTimeout();
|
|
1848
|
-
* const [hello, showHello] = useState(false);
|
|
1849
|
-
* //Display hello after 5 seconds
|
|
1850
|
-
* set(() => showHello(true), 5000);
|
|
1851
|
-
* return (
|
|
1852
|
-
* <div className="App">
|
|
1853
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1854
|
-
* </div>
|
|
1855
|
-
* );
|
|
1856
|
-
* ```
|
|
1857
1868
|
*/
|
|
1858
1869
|
|
|
1859
1870
|
|
|
@@ -1894,22 +1905,7 @@ function useTimeout() {
|
|
|
1894
1905
|
|
|
1895
1906
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1896
1907
|
|
|
1897
|
-
var CarouselItem =
|
|
1898
|
-
var _ref$as = _ref.as,
|
|
1899
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1900
|
-
bsPrefix = _ref.bsPrefix,
|
|
1901
|
-
children = _ref.children,
|
|
1902
|
-
className = _ref.className,
|
|
1903
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1904
|
-
|
|
1905
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1906
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1907
|
-
ref: ref
|
|
1908
|
-
}, props, {
|
|
1909
|
-
className: finalClassName
|
|
1910
|
-
}), children);
|
|
1911
|
-
});
|
|
1912
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1908
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1913
1909
|
|
|
1914
1910
|
/**
|
|
1915
1911
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1922,27 +1918,13 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1922
1918
|
|
|
1923
1919
|
function map(children, func) {
|
|
1924
1920
|
var index = 0;
|
|
1925
|
-
return
|
|
1926
|
-
return
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
/**
|
|
1930
|
-
* Iterates through children that are "valid elements".
|
|
1931
|
-
*
|
|
1932
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1933
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1934
|
-
*/
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
function forEach(children, func) {
|
|
1938
|
-
var index = 0;
|
|
1939
|
-
React__default.Children.forEach(children, function (child) {
|
|
1940
|
-
if (React__default.isValidElement(child)) func(child, index++);
|
|
1921
|
+
return React.Children.map(children, function (child) {
|
|
1922
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1941
1923
|
});
|
|
1942
1924
|
}
|
|
1943
1925
|
|
|
1944
1926
|
var SWIPE_THRESHOLD = 40;
|
|
1945
|
-
var propTypes$
|
|
1927
|
+
var propTypes$1 = {
|
|
1946
1928
|
/**
|
|
1947
1929
|
* @default 'carousel'
|
|
1948
1930
|
*/
|
|
@@ -2044,7 +2026,7 @@ var propTypes$9 = {
|
|
|
2044
2026
|
*/
|
|
2045
2027
|
nextLabel: PropTypes.string
|
|
2046
2028
|
};
|
|
2047
|
-
var defaultProps$
|
|
2029
|
+
var defaultProps$c = {
|
|
2048
2030
|
slide: true,
|
|
2049
2031
|
fade: false,
|
|
2050
2032
|
controls: true,
|
|
@@ -2055,12 +2037,12 @@ var defaultProps$s = {
|
|
|
2055
2037
|
pause: 'hover',
|
|
2056
2038
|
wrap: true,
|
|
2057
2039
|
touch: true,
|
|
2058
|
-
prevIcon: /*#__PURE__*/
|
|
2040
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2059
2041
|
"aria-hidden": "true",
|
|
2060
2042
|
className: "carousel-control-prev-icon"
|
|
2061
2043
|
}),
|
|
2062
2044
|
prevLabel: 'Previous',
|
|
2063
|
-
nextIcon: /*#__PURE__*/
|
|
2045
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2064
2046
|
"aria-hidden": "true",
|
|
2065
2047
|
className: "carousel-control-next-icon"
|
|
2066
2048
|
}),
|
|
@@ -2128,6 +2110,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2128
2110
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2129
2111
|
if (nextDirectionRef.current) {
|
|
2130
2112
|
setDirection(nextDirectionRef.current);
|
|
2113
|
+
nextDirectionRef.current = null;
|
|
2131
2114
|
} else {
|
|
2132
2115
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2133
2116
|
}
|
|
@@ -2139,23 +2122,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2139
2122
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2140
2123
|
}
|
|
2141
2124
|
|
|
2142
|
-
|
|
2143
|
-
if (nextDirectionRef.current) {
|
|
2144
|
-
nextDirectionRef.current = null;
|
|
2145
|
-
}
|
|
2146
|
-
});
|
|
2147
|
-
var numChildren = 0;
|
|
2148
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2149
|
-
// (and count them, too)
|
|
2150
|
-
|
|
2151
|
-
forEach(children, function (child, index) {
|
|
2152
|
-
++numChildren;
|
|
2153
|
-
|
|
2154
|
-
if (index === activeIndex) {
|
|
2155
|
-
activeChildInterval = child.props.interval;
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2125
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2159
2126
|
var prev = useCallback(function (event) {
|
|
2160
2127
|
if (isSliding) {
|
|
2161
2128
|
return;
|
|
@@ -2341,19 +2308,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2341
2308
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2342
2309
|
var intervalHandleRef = useRef();
|
|
2343
2310
|
useEffect(function () {
|
|
2344
|
-
var _ref, _activeChildIntervalR;
|
|
2345
|
-
|
|
2346
2311
|
if (!shouldPlay) {
|
|
2347
2312
|
return undefined;
|
|
2348
2313
|
}
|
|
2349
2314
|
|
|
2350
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2315
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2351
2316
|
return function () {
|
|
2352
2317
|
if (intervalHandleRef.current !== null) {
|
|
2353
2318
|
clearInterval(intervalHandleRef.current);
|
|
2354
2319
|
}
|
|
2355
2320
|
};
|
|
2356
|
-
}, [shouldPlay, next,
|
|
2321
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2357
2322
|
var indicatorOnClicks = useMemo(function () {
|
|
2358
2323
|
return indicators && Array.from({
|
|
2359
2324
|
length: numChildren
|
|
@@ -2365,7 +2330,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2365
2330
|
};
|
|
2366
2331
|
});
|
|
2367
2332
|
}, [indicators, numChildren, onSelect]);
|
|
2368
|
-
return /*#__PURE__*/
|
|
2333
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2369
2334
|
ref: elementRef
|
|
2370
2335
|
}, props, {
|
|
2371
2336
|
onKeyDown: handleKeyDown,
|
|
@@ -2375,52 +2340,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2340
|
onTouchMove: handleTouchMove,
|
|
2376
2341
|
onTouchEnd: handleTouchEnd,
|
|
2377
2342
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2378
|
-
}), indicators && /*#__PURE__*/
|
|
2343
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2379
2344
|
className: prefix + "-indicators"
|
|
2380
2345
|
}, map(children, function (_child, index) {
|
|
2381
|
-
return /*#__PURE__*/
|
|
2346
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2382
2347
|
key: index,
|
|
2383
2348
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2384
2349
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2385
2350
|
});
|
|
2386
|
-
})), /*#__PURE__*/
|
|
2351
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2387
2352
|
className: prefix + "-inner"
|
|
2388
2353
|
}, map(children, function (child, index) {
|
|
2389
2354
|
var isActive = index === renderedActiveIndex;
|
|
2390
|
-
return slide ? /*#__PURE__*/
|
|
2355
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2391
2356
|
in: isActive,
|
|
2392
2357
|
onEnter: isActive ? handleEnter : undefined,
|
|
2393
2358
|
onEntered: isActive ? handleEntered : undefined,
|
|
2394
2359
|
addEndListener: transitionEnd
|
|
2395
2360
|
}, function (status) {
|
|
2396
|
-
return
|
|
2361
|
+
return React.cloneElement(child, {
|
|
2397
2362
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2398
2363
|
});
|
|
2399
|
-
}) :
|
|
2364
|
+
}) : React.cloneElement(child, {
|
|
2400
2365
|
className: classnames(child.props.className, isActive && 'active')
|
|
2401
2366
|
});
|
|
2402
|
-
})), controls && /*#__PURE__*/
|
|
2367
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2403
2368
|
className: prefix + "-control-prev",
|
|
2404
2369
|
onClick: prev
|
|
2405
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2370
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2406
2371
|
className: "sr-only"
|
|
2407
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2372
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2408
2373
|
className: prefix + "-control-next",
|
|
2409
2374
|
onClick: next
|
|
2410
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2375
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2411
2376
|
className: "sr-only"
|
|
2412
2377
|
}, nextLabel))));
|
|
2413
2378
|
}
|
|
2414
2379
|
|
|
2415
|
-
var Carousel =
|
|
2380
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2416
2381
|
Carousel.displayName = 'Carousel';
|
|
2417
|
-
Carousel.propTypes = propTypes$
|
|
2418
|
-
Carousel.defaultProps = defaultProps$
|
|
2382
|
+
Carousel.propTypes = propTypes$1;
|
|
2383
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2419
2384
|
Carousel.Caption = CarouselCaption;
|
|
2420
2385
|
Carousel.Item = CarouselItem;
|
|
2421
2386
|
|
|
2422
|
-
var DEVICE_SIZES
|
|
2423
|
-
var Col =
|
|
2387
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2388
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2424
2389
|
function (_ref, ref) {
|
|
2425
2390
|
var bsPrefix = _ref.bsPrefix,
|
|
2426
2391
|
className = _ref.className,
|
|
@@ -2431,7 +2396,7 @@ function (_ref, ref) {
|
|
|
2431
2396
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2432
2397
|
var spans = [];
|
|
2433
2398
|
var classes = [];
|
|
2434
|
-
DEVICE_SIZES
|
|
2399
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2435
2400
|
var propValue = props[brkPoint];
|
|
2436
2401
|
delete props[brkPoint];
|
|
2437
2402
|
var span;
|
|
@@ -2457,7 +2422,7 @@ function (_ref, ref) {
|
|
|
2457
2422
|
spans.push(prefix); // plain 'col'
|
|
2458
2423
|
}
|
|
2459
2424
|
|
|
2460
|
-
return /*#__PURE__*/
|
|
2425
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2461
2426
|
ref: ref,
|
|
2462
2427
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2463
2428
|
}));
|
|
@@ -2465,13 +2430,6 @@ function (_ref, ref) {
|
|
|
2465
2430
|
Col.displayName = 'Col';
|
|
2466
2431
|
|
|
2467
2432
|
var matchesImpl;
|
|
2468
|
-
/**
|
|
2469
|
-
* Checks if a given element matches a selector.
|
|
2470
|
-
*
|
|
2471
|
-
* @param node the element
|
|
2472
|
-
* @param selector the selector
|
|
2473
|
-
*/
|
|
2474
|
-
|
|
2475
2433
|
function matches(node, selector) {
|
|
2476
2434
|
if (!matchesImpl) {
|
|
2477
2435
|
var body = document.body;
|
|
@@ -2486,13 +2444,6 @@ function matches(node, selector) {
|
|
|
2486
2444
|
}
|
|
2487
2445
|
|
|
2488
2446
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2489
|
-
/**
|
|
2490
|
-
* Runs `querySelectorAll` on a given element.
|
|
2491
|
-
*
|
|
2492
|
-
* @param element the element
|
|
2493
|
-
* @param selector the selector
|
|
2494
|
-
*/
|
|
2495
|
-
|
|
2496
2447
|
function qsa(element, selector) {
|
|
2497
2448
|
return toArray(element.querySelectorAll(selector));
|
|
2498
2449
|
}
|
|
@@ -2580,7 +2531,7 @@ function useForceUpdate() {
|
|
|
2580
2531
|
return dispatch;
|
|
2581
2532
|
}
|
|
2582
2533
|
|
|
2583
|
-
var DropdownContext = /*#__PURE__*/
|
|
2534
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2584
2535
|
|
|
2585
2536
|
function useSafeState(state) {
|
|
2586
2537
|
var isMounted = useMounted();
|
|
@@ -2626,11 +2577,21 @@ function getBasePlacement(placement) {
|
|
|
2626
2577
|
return placement.split('-')[0];
|
|
2627
2578
|
}
|
|
2628
2579
|
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2580
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2581
|
+
// means it doesn't take into account transforms.
|
|
2582
|
+
function getLayoutRect(element) {
|
|
2583
|
+
return {
|
|
2584
|
+
x: element.offsetLeft,
|
|
2585
|
+
y: element.offsetTop,
|
|
2586
|
+
width: element.offsetWidth,
|
|
2587
|
+
height: element.offsetHeight
|
|
2588
|
+
};
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
/*:: import type { Window } from '../types'; */
|
|
2633
2592
|
|
|
2593
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2594
|
+
function getWindow(node) {
|
|
2634
2595
|
if (node.toString() !== '[object Window]') {
|
|
2635
2596
|
var ownerDocument = node.ownerDocument;
|
|
2636
2597
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2639,92 +2600,43 @@ function getWindow(node) {
|
|
|
2639
2600
|
return node;
|
|
2640
2601
|
}
|
|
2641
2602
|
|
|
2603
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2604
|
+
Element); */
|
|
2605
|
+
|
|
2642
2606
|
function isElement(node) {
|
|
2643
2607
|
var OwnElement = getWindow(node).Element;
|
|
2644
2608
|
return node instanceof OwnElement || node instanceof Element;
|
|
2645
2609
|
}
|
|
2610
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2611
|
+
HTMLElement); */
|
|
2612
|
+
|
|
2646
2613
|
|
|
2647
2614
|
function isHTMLElement(node) {
|
|
2648
2615
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2649
2616
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2650
2617
|
}
|
|
2618
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2619
|
+
ShadowRoot); */
|
|
2651
2620
|
|
|
2652
|
-
function isShadowRoot(node) {
|
|
2653
|
-
// IE 11 has no ShadowRoot
|
|
2654
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2655
|
-
return false;
|
|
2656
|
-
}
|
|
2657
2621
|
|
|
2622
|
+
function isShadowRoot(node) {
|
|
2658
2623
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2659
2624
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2660
2625
|
}
|
|
2661
2626
|
|
|
2662
|
-
|
|
2663
|
-
function getBoundingClientRect(element, includeScale) {
|
|
2664
|
-
if (includeScale === void 0) {
|
|
2665
|
-
includeScale = false;
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2668
|
-
var rect = element.getBoundingClientRect();
|
|
2669
|
-
var scaleX = 1;
|
|
2670
|
-
var scaleY = 1;
|
|
2671
|
-
|
|
2672
|
-
if (isHTMLElement(element) && includeScale) {
|
|
2673
|
-
// Fallback to 1 in case both values are `0`
|
|
2674
|
-
scaleX = rect.width / element.offsetWidth || 1;
|
|
2675
|
-
scaleY = rect.height / element.offsetHeight || 1;
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
return {
|
|
2679
|
-
width: round$1(rect.width / scaleX),
|
|
2680
|
-
height: round$1(rect.height / scaleY),
|
|
2681
|
-
top: round$1(rect.top / scaleY),
|
|
2682
|
-
right: round$1(rect.right / scaleX),
|
|
2683
|
-
bottom: round$1(rect.bottom / scaleY),
|
|
2684
|
-
left: round$1(rect.left / scaleX),
|
|
2685
|
-
x: round$1(rect.left / scaleX),
|
|
2686
|
-
y: round$1(rect.top / scaleY)
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
|
|
2690
|
-
// means it doesn't take into account transforms.
|
|
2691
|
-
|
|
2692
|
-
function getLayoutRect(element) {
|
|
2693
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2694
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2695
|
-
|
|
2696
|
-
var width = element.offsetWidth;
|
|
2697
|
-
var height = element.offsetHeight;
|
|
2698
|
-
|
|
2699
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2700
|
-
width = clientRect.width;
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2704
|
-
height = clientRect.height;
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
return {
|
|
2708
|
-
x: element.offsetLeft,
|
|
2709
|
-
y: element.offsetTop,
|
|
2710
|
-
width: width,
|
|
2711
|
-
height: height
|
|
2712
|
-
};
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
function contains$1(parent, child) {
|
|
2627
|
+
function contains(parent, child) {
|
|
2716
2628
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2717
2629
|
|
|
2718
2630
|
if (parent.contains(child)) {
|
|
2719
2631
|
return true;
|
|
2720
2632
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2721
|
-
else if (
|
|
2633
|
+
else if (isShadowRoot(rootNode)) {
|
|
2722
2634
|
var next = child;
|
|
2723
2635
|
|
|
2724
2636
|
do {
|
|
2725
2637
|
if (next && parent.isSameNode(next)) {
|
|
2726
2638
|
return true;
|
|
2727
|
-
} // $FlowFixMe
|
|
2639
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2728
2640
|
|
|
2729
2641
|
|
|
2730
2642
|
next = next.parentNode || next.host;
|
|
@@ -2739,7 +2651,7 @@ function getNodeName(element) {
|
|
|
2739
2651
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2740
2652
|
}
|
|
2741
2653
|
|
|
2742
|
-
function getComputedStyle$
|
|
2654
|
+
function getComputedStyle$2(element) {
|
|
2743
2655
|
return getWindow(element).getComputedStyle(element);
|
|
2744
2656
|
}
|
|
2745
2657
|
|
|
@@ -2748,9 +2660,8 @@ function isTableElement(element) {
|
|
|
2748
2660
|
}
|
|
2749
2661
|
|
|
2750
2662
|
function getDocumentElement(element) {
|
|
2751
|
-
// $FlowFixMe
|
|
2752
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2753
|
-
element.document) || window.document).documentElement;
|
|
2663
|
+
// $FlowFixMe: assume body is always available
|
|
2664
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2754
2665
|
}
|
|
2755
2666
|
|
|
2756
2667
|
function getParentNode(element) {
|
|
@@ -2758,13 +2669,12 @@ function getParentNode(element) {
|
|
|
2758
2669
|
return element;
|
|
2759
2670
|
}
|
|
2760
2671
|
|
|
2761
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2762
|
-
// $FlowFixMe[incompatible-return]
|
|
2763
|
-
// $FlowFixMe[prop-missing]
|
|
2672
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2764
2673
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2765
|
-
element.parentNode ||
|
|
2766
|
-
|
|
2767
|
-
|
|
2674
|
+
element.parentNode || // DOM Element detected
|
|
2675
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2676
|
+
element.host || // ShadowRoot detected
|
|
2677
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2768
2678
|
getDocumentElement(element) // fallback
|
|
2769
2679
|
|
|
2770
2680
|
);
|
|
@@ -2772,36 +2682,33 @@ function getParentNode(element) {
|
|
|
2772
2682
|
|
|
2773
2683
|
function getTrueOffsetParent(element) {
|
|
2774
2684
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2775
|
-
getComputedStyle$
|
|
2685
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2776
2686
|
return null;
|
|
2777
2687
|
}
|
|
2778
2688
|
|
|
2779
|
-
|
|
2780
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2781
|
-
// return the containing block
|
|
2782
|
-
|
|
2689
|
+
var offsetParent = element.offsetParent;
|
|
2783
2690
|
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2787
|
-
|
|
2788
|
-
if (isIE && isHTMLElement(element)) {
|
|
2789
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2790
|
-
var elementCss = getComputedStyle$1(element);
|
|
2691
|
+
if (offsetParent) {
|
|
2692
|
+
var html = getDocumentElement(offsetParent);
|
|
2791
2693
|
|
|
2792
|
-
if (
|
|
2793
|
-
return
|
|
2694
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2695
|
+
return html;
|
|
2794
2696
|
}
|
|
2795
2697
|
}
|
|
2796
2698
|
|
|
2699
|
+
return offsetParent;
|
|
2700
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2701
|
+
// return the containing block
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
function getContainingBlock(element) {
|
|
2797
2705
|
var currentNode = getParentNode(element);
|
|
2798
2706
|
|
|
2799
2707
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2800
|
-
var css = getComputedStyle$
|
|
2708
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2801
2709
|
// create a containing block.
|
|
2802
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2803
2710
|
|
|
2804
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2711
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2805
2712
|
return currentNode;
|
|
2806
2713
|
} else {
|
|
2807
2714
|
currentNode = currentNode.parentNode;
|
|
@@ -2817,11 +2724,11 @@ function getOffsetParent(element) {
|
|
|
2817
2724
|
var window = getWindow(element);
|
|
2818
2725
|
var offsetParent = getTrueOffsetParent(element);
|
|
2819
2726
|
|
|
2820
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2727
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2821
2728
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2822
2729
|
}
|
|
2823
2730
|
|
|
2824
|
-
if (offsetParent &&
|
|
2731
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2825
2732
|
return window;
|
|
2826
2733
|
}
|
|
2827
2734
|
|
|
@@ -2832,12 +2739,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2832
2739
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2833
2740
|
}
|
|
2834
2741
|
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
var round = Math.round;
|
|
2838
|
-
|
|
2839
|
-
function within(min$1, value, max$1) {
|
|
2840
|
-
return max(min$1, min(value, max$1));
|
|
2742
|
+
function within(min, value, max) {
|
|
2743
|
+
return Math.max(min, Math.min(value, max));
|
|
2841
2744
|
}
|
|
2842
2745
|
|
|
2843
2746
|
function getFreshSideObject() {
|
|
@@ -2850,7 +2753,7 @@ function getFreshSideObject() {
|
|
|
2850
2753
|
}
|
|
2851
2754
|
|
|
2852
2755
|
function mergePaddingObject(paddingObject) {
|
|
2853
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2756
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2854
2757
|
}
|
|
2855
2758
|
|
|
2856
2759
|
function expandToHashMap(value, keys) {
|
|
@@ -2860,19 +2763,11 @@ function expandToHashMap(value, keys) {
|
|
|
2860
2763
|
}, {});
|
|
2861
2764
|
}
|
|
2862
2765
|
|
|
2863
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2864
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2865
|
-
placement: state.placement
|
|
2866
|
-
})) : padding;
|
|
2867
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2868
|
-
};
|
|
2869
|
-
|
|
2870
2766
|
function arrow(_ref) {
|
|
2871
2767
|
var _state$modifiersData$;
|
|
2872
2768
|
|
|
2873
2769
|
var state = _ref.state,
|
|
2874
|
-
name = _ref.name
|
|
2875
|
-
options = _ref.options;
|
|
2770
|
+
name = _ref.name;
|
|
2876
2771
|
var arrowElement = state.elements.arrow;
|
|
2877
2772
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2878
2773
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2884,7 +2779,7 @@ function arrow(_ref) {
|
|
|
2884
2779
|
return;
|
|
2885
2780
|
}
|
|
2886
2781
|
|
|
2887
|
-
var paddingObject =
|
|
2782
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2888
2783
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2889
2784
|
var minProp = axis === 'y' ? top : left;
|
|
2890
2785
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2904,11 +2799,14 @@ function arrow(_ref) {
|
|
|
2904
2799
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2905
2800
|
}
|
|
2906
2801
|
|
|
2907
|
-
function effect
|
|
2802
|
+
function effect(_ref2) {
|
|
2908
2803
|
var state = _ref2.state,
|
|
2909
|
-
options = _ref2.options
|
|
2804
|
+
options = _ref2.options,
|
|
2805
|
+
name = _ref2.name;
|
|
2910
2806
|
var _options$element = options.element,
|
|
2911
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2807
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2808
|
+
_options$padding = options.padding,
|
|
2809
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2912
2810
|
|
|
2913
2811
|
if (arrowElement == null) {
|
|
2914
2812
|
return;
|
|
@@ -2929,7 +2827,7 @@ function effect$1(_ref2) {
|
|
|
2929
2827
|
}
|
|
2930
2828
|
}
|
|
2931
2829
|
|
|
2932
|
-
if (!contains
|
|
2830
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2933
2831
|
if (process.env.NODE_ENV !== "production") {
|
|
2934
2832
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2935
2833
|
}
|
|
@@ -2938,6 +2836,9 @@ function effect$1(_ref2) {
|
|
|
2938
2836
|
}
|
|
2939
2837
|
|
|
2940
2838
|
state.elements.arrow = arrowElement;
|
|
2839
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2840
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2841
|
+
};
|
|
2941
2842
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2942
2843
|
|
|
2943
2844
|
|
|
@@ -2946,7 +2847,7 @@ var arrow$1 = {
|
|
|
2946
2847
|
enabled: true,
|
|
2947
2848
|
phase: 'main',
|
|
2948
2849
|
fn: arrow,
|
|
2949
|
-
effect: effect
|
|
2850
|
+
effect: effect,
|
|
2950
2851
|
requires: ['popperOffsets'],
|
|
2951
2852
|
requiresIfExists: ['preventOverflow']
|
|
2952
2853
|
};
|
|
@@ -2960,14 +2861,14 @@ var unsetSides = {
|
|
|
2960
2861
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2961
2862
|
// cleanly divide the values into the appropriate subpixels.
|
|
2962
2863
|
|
|
2963
|
-
function
|
|
2864
|
+
function roundOffsets(_ref) {
|
|
2964
2865
|
var x = _ref.x,
|
|
2965
2866
|
y = _ref.y;
|
|
2966
2867
|
var win = window;
|
|
2967
2868
|
var dpr = win.devicePixelRatio || 1;
|
|
2968
2869
|
return {
|
|
2969
|
-
x: round(
|
|
2970
|
-
y: round(
|
|
2870
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2871
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2971
2872
|
};
|
|
2972
2873
|
}
|
|
2973
2874
|
|
|
@@ -2980,14 +2881,11 @@ function mapToStyles(_ref2) {
|
|
|
2980
2881
|
offsets = _ref2.offsets,
|
|
2981
2882
|
position = _ref2.position,
|
|
2982
2883
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2983
|
-
adaptive = _ref2.adaptive
|
|
2984
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2884
|
+
adaptive = _ref2.adaptive;
|
|
2985
2885
|
|
|
2986
|
-
var
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
_ref3$y = _ref3.y,
|
|
2990
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2886
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2887
|
+
x = _roundOffsets.x,
|
|
2888
|
+
y = _roundOffsets.y;
|
|
2991
2889
|
|
|
2992
2890
|
var hasX = offsets.hasOwnProperty('x');
|
|
2993
2891
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2997,32 +2895,23 @@ function mapToStyles(_ref2) {
|
|
|
2997
2895
|
|
|
2998
2896
|
if (adaptive) {
|
|
2999
2897
|
var offsetParent = getOffsetParent(popper);
|
|
3000
|
-
var heightProp = 'clientHeight';
|
|
3001
|
-
var widthProp = 'clientWidth';
|
|
3002
2898
|
|
|
3003
2899
|
if (offsetParent === getWindow(popper)) {
|
|
3004
2900
|
offsetParent = getDocumentElement(popper);
|
|
2901
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3005
2902
|
|
|
3006
|
-
|
|
3007
|
-
heightProp = 'scrollHeight';
|
|
3008
|
-
widthProp = 'scrollWidth';
|
|
3009
|
-
}
|
|
3010
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3011
|
-
|
|
2903
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3012
2904
|
|
|
3013
|
-
offsetParent = offsetParent;
|
|
3014
2905
|
|
|
3015
2906
|
if (placement === top) {
|
|
3016
|
-
sideY = bottom;
|
|
3017
|
-
|
|
3018
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2907
|
+
sideY = bottom;
|
|
2908
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3019
2909
|
y *= gpuAcceleration ? 1 : -1;
|
|
3020
2910
|
}
|
|
3021
2911
|
|
|
3022
2912
|
if (placement === left) {
|
|
3023
|
-
sideX = right;
|
|
3024
|
-
|
|
3025
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2913
|
+
sideX = right;
|
|
2914
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3026
2915
|
x *= gpuAcceleration ? 1 : -1;
|
|
3027
2916
|
}
|
|
3028
2917
|
}
|
|
@@ -3034,24 +2923,22 @@ function mapToStyles(_ref2) {
|
|
|
3034
2923
|
if (gpuAcceleration) {
|
|
3035
2924
|
var _Object$assign;
|
|
3036
2925
|
|
|
3037
|
-
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));
|
|
2926
|
+
return Object.assign(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));
|
|
3038
2927
|
}
|
|
3039
2928
|
|
|
3040
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2929
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3041
2930
|
}
|
|
3042
2931
|
|
|
3043
|
-
function computeStyles(
|
|
3044
|
-
var state =
|
|
3045
|
-
options =
|
|
2932
|
+
function computeStyles(_ref3) {
|
|
2933
|
+
var state = _ref3.state,
|
|
2934
|
+
options = _ref3.options;
|
|
3046
2935
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3047
2936
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3048
2937
|
_options$adaptive = options.adaptive,
|
|
3049
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3050
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3051
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2938
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3052
2939
|
|
|
3053
2940
|
if (process.env.NODE_ENV !== "production") {
|
|
3054
|
-
var transitionProperty = getComputedStyle$
|
|
2941
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3055
2942
|
|
|
3056
2943
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3057
2944
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3068,24 +2955,22 @@ function computeStyles(_ref4) {
|
|
|
3068
2955
|
};
|
|
3069
2956
|
|
|
3070
2957
|
if (state.modifiersData.popperOffsets != null) {
|
|
3071
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2958
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3072
2959
|
offsets: state.modifiersData.popperOffsets,
|
|
3073
2960
|
position: state.options.strategy,
|
|
3074
|
-
adaptive: adaptive
|
|
3075
|
-
roundOffsets: roundOffsets
|
|
2961
|
+
adaptive: adaptive
|
|
3076
2962
|
})));
|
|
3077
2963
|
}
|
|
3078
2964
|
|
|
3079
2965
|
if (state.modifiersData.arrow != null) {
|
|
3080
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2966
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3081
2967
|
offsets: state.modifiersData.arrow,
|
|
3082
2968
|
position: 'absolute',
|
|
3083
|
-
adaptive: false
|
|
3084
|
-
roundOffsets: roundOffsets
|
|
2969
|
+
adaptive: false
|
|
3085
2970
|
})));
|
|
3086
2971
|
}
|
|
3087
2972
|
|
|
3088
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2973
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3089
2974
|
'data-popper-placement': state.placement
|
|
3090
2975
|
});
|
|
3091
2976
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3103,7 +2988,7 @@ var passive = {
|
|
|
3103
2988
|
passive: true
|
|
3104
2989
|
};
|
|
3105
2990
|
|
|
3106
|
-
function effect(_ref) {
|
|
2991
|
+
function effect$1(_ref) {
|
|
3107
2992
|
var state = _ref.state,
|
|
3108
2993
|
instance = _ref.instance,
|
|
3109
2994
|
options = _ref.options;
|
|
@@ -3143,11 +3028,11 @@ var eventListeners = {
|
|
|
3143
3028
|
enabled: true,
|
|
3144
3029
|
phase: 'write',
|
|
3145
3030
|
fn: function fn() {},
|
|
3146
|
-
effect: effect,
|
|
3031
|
+
effect: effect$1,
|
|
3147
3032
|
data: {}
|
|
3148
3033
|
};
|
|
3149
3034
|
|
|
3150
|
-
var hash
|
|
3035
|
+
var hash = {
|
|
3151
3036
|
left: 'right',
|
|
3152
3037
|
right: 'left',
|
|
3153
3038
|
bottom: 'top',
|
|
@@ -3155,20 +3040,34 @@ var hash$1 = {
|
|
|
3155
3040
|
};
|
|
3156
3041
|
function getOppositePlacement(placement) {
|
|
3157
3042
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3158
|
-
return hash
|
|
3043
|
+
return hash[matched];
|
|
3159
3044
|
});
|
|
3160
3045
|
}
|
|
3161
3046
|
|
|
3162
|
-
var hash = {
|
|
3047
|
+
var hash$1 = {
|
|
3163
3048
|
start: 'end',
|
|
3164
3049
|
end: 'start'
|
|
3165
3050
|
};
|
|
3166
3051
|
function getOppositeVariationPlacement(placement) {
|
|
3167
3052
|
return placement.replace(/start|end/g, function (matched) {
|
|
3168
|
-
return hash[matched];
|
|
3053
|
+
return hash$1[matched];
|
|
3169
3054
|
});
|
|
3170
3055
|
}
|
|
3171
3056
|
|
|
3057
|
+
function getBoundingClientRect(element) {
|
|
3058
|
+
var rect = element.getBoundingClientRect();
|
|
3059
|
+
return {
|
|
3060
|
+
width: rect.width,
|
|
3061
|
+
height: rect.height,
|
|
3062
|
+
top: rect.top,
|
|
3063
|
+
right: rect.right,
|
|
3064
|
+
bottom: rect.bottom,
|
|
3065
|
+
left: rect.left,
|
|
3066
|
+
x: rect.left,
|
|
3067
|
+
y: rect.top
|
|
3068
|
+
};
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3172
3071
|
function getWindowScroll(node) {
|
|
3173
3072
|
var win = getWindow(node);
|
|
3174
3073
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3231,18 +3130,16 @@ function getViewportRect(element) {
|
|
|
3231
3130
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3232
3131
|
|
|
3233
3132
|
function getDocumentRect(element) {
|
|
3234
|
-
var _element$ownerDocumen;
|
|
3235
|
-
|
|
3236
3133
|
var html = getDocumentElement(element);
|
|
3237
3134
|
var winScroll = getWindowScroll(element);
|
|
3238
|
-
var body =
|
|
3239
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3240
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3135
|
+
var body = element.ownerDocument.body;
|
|
3136
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3137
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3241
3138
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3242
3139
|
var y = -winScroll.scrollTop;
|
|
3243
3140
|
|
|
3244
|
-
if (getComputedStyle$
|
|
3245
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3141
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3142
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3246
3143
|
}
|
|
3247
3144
|
|
|
3248
3145
|
return {
|
|
@@ -3255,7 +3152,7 @@ function getDocumentRect(element) {
|
|
|
3255
3152
|
|
|
3256
3153
|
function isScrollParent(element) {
|
|
3257
3154
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3258
|
-
var _getComputedStyle = getComputedStyle$
|
|
3155
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3259
3156
|
overflow = _getComputedStyle.overflow,
|
|
3260
3157
|
overflowX = _getComputedStyle.overflowX,
|
|
3261
3158
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3265,7 +3162,7 @@ function isScrollParent(element) {
|
|
|
3265
3162
|
|
|
3266
3163
|
function getScrollParent(node) {
|
|
3267
3164
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3268
|
-
// $FlowFixMe
|
|
3165
|
+
// $FlowFixMe: assume body is always available
|
|
3269
3166
|
return node.ownerDocument.body;
|
|
3270
3167
|
}
|
|
3271
3168
|
|
|
@@ -3279,28 +3176,26 @@ function getScrollParent(node) {
|
|
|
3279
3176
|
/*
|
|
3280
3177
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3281
3178
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3282
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3179
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3283
3180
|
reference element's position.
|
|
3284
3181
|
*/
|
|
3285
3182
|
|
|
3286
3183
|
function listScrollParents(element, list) {
|
|
3287
|
-
var _element$ownerDocumen;
|
|
3288
|
-
|
|
3289
3184
|
if (list === void 0) {
|
|
3290
3185
|
list = [];
|
|
3291
3186
|
}
|
|
3292
3187
|
|
|
3293
3188
|
var scrollParent = getScrollParent(element);
|
|
3294
|
-
var isBody = scrollParent ===
|
|
3189
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3295
3190
|
var win = getWindow(scrollParent);
|
|
3296
3191
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3297
3192
|
var updatedList = list.concat(target);
|
|
3298
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3193
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3299
3194
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3300
3195
|
}
|
|
3301
3196
|
|
|
3302
3197
|
function rectToClientRect(rect) {
|
|
3303
|
-
return Object.assign({}, rect, {
|
|
3198
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3304
3199
|
left: rect.x,
|
|
3305
3200
|
top: rect.y,
|
|
3306
3201
|
right: rect.x + rect.width,
|
|
@@ -3330,16 +3225,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3330
3225
|
|
|
3331
3226
|
function getClippingParents(element) {
|
|
3332
3227
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3333
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3228
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3334
3229
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3335
3230
|
|
|
3336
3231
|
if (!isElement(clipperElement)) {
|
|
3337
3232
|
return [];
|
|
3338
|
-
} // $FlowFixMe
|
|
3233
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3339
3234
|
|
|
3340
3235
|
|
|
3341
3236
|
return clippingParents.filter(function (clippingParent) {
|
|
3342
|
-
return isElement(clippingParent) && contains
|
|
3237
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3343
3238
|
});
|
|
3344
3239
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3345
3240
|
// clipping parents
|
|
@@ -3351,10 +3246,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3351
3246
|
var firstClippingParent = clippingParents[0];
|
|
3352
3247
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3353
3248
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3354
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3355
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3356
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3357
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3249
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3250
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3251
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3252
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3358
3253
|
return accRect;
|
|
3359
3254
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3360
3255
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3421,11 +3316,11 @@ function computeOffsets(_ref) {
|
|
|
3421
3316
|
|
|
3422
3317
|
switch (variation) {
|
|
3423
3318
|
case start:
|
|
3424
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3319
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3425
3320
|
break;
|
|
3426
3321
|
|
|
3427
3322
|
case end:
|
|
3428
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3323
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3429
3324
|
break;
|
|
3430
3325
|
}
|
|
3431
3326
|
}
|
|
@@ -3464,7 +3359,7 @@ function detectOverflow(state, options) {
|
|
|
3464
3359
|
strategy: 'absolute',
|
|
3465
3360
|
placement: placement
|
|
3466
3361
|
});
|
|
3467
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3362
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3468
3363
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3469
3364
|
// 0 or negative = within the clipping rect
|
|
3470
3365
|
|
|
@@ -3488,6 +3383,9 @@ function detectOverflow(state, options) {
|
|
|
3488
3383
|
return overflowOffsets;
|
|
3489
3384
|
}
|
|
3490
3385
|
|
|
3386
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3387
|
+
|
|
3388
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3491
3389
|
function computeAutoPlacement(state, options) {
|
|
3492
3390
|
if (options === void 0) {
|
|
3493
3391
|
options = {};
|
|
@@ -3504,7 +3402,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3504
3402
|
var variation = getVariation(placement);
|
|
3505
3403
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3506
3404
|
return getVariation(placement) === variation;
|
|
3507
|
-
}) : basePlacements;
|
|
3405
|
+
}) : basePlacements; // $FlowFixMe
|
|
3406
|
+
|
|
3508
3407
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3509
3408
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3510
3409
|
});
|
|
@@ -3515,7 +3414,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3515
3414
|
if (process.env.NODE_ENV !== "production") {
|
|
3516
3415
|
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(' '));
|
|
3517
3416
|
}
|
|
3518
|
-
} // $FlowFixMe
|
|
3417
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3519
3418
|
|
|
3520
3419
|
|
|
3521
3420
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3716,7 +3615,7 @@ function hide(_ref) {
|
|
|
3716
3615
|
isReferenceHidden: isReferenceHidden,
|
|
3717
3616
|
hasPopperEscaped: hasPopperEscaped
|
|
3718
3617
|
};
|
|
3719
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3618
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3720
3619
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3721
3620
|
'data-popper-escaped': hasPopperEscaped
|
|
3722
3621
|
});
|
|
@@ -3735,7 +3634,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3735
3634
|
var basePlacement = getBasePlacement(placement);
|
|
3736
3635
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3737
3636
|
|
|
3738
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3637
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3739
3638
|
placement: placement
|
|
3740
3639
|
})) : offset,
|
|
3741
3640
|
skidding = _ref[0],
|
|
@@ -3841,7 +3740,7 @@ function preventOverflow(_ref) {
|
|
|
3841
3740
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3842
3741
|
var referenceRect = state.rects.reference;
|
|
3843
3742
|
var popperRect = state.rects.popper;
|
|
3844
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3743
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3845
3744
|
placement: state.placement
|
|
3846
3745
|
})) : tetherOffset;
|
|
3847
3746
|
var data = {
|
|
@@ -3853,13 +3752,13 @@ function preventOverflow(_ref) {
|
|
|
3853
3752
|
return;
|
|
3854
3753
|
}
|
|
3855
3754
|
|
|
3856
|
-
if (checkMainAxis
|
|
3755
|
+
if (checkMainAxis) {
|
|
3857
3756
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3858
3757
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3859
3758
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3860
3759
|
var offset = popperOffsets[mainAxis];
|
|
3861
|
-
var min
|
|
3862
|
-
var max
|
|
3760
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3761
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3863
3762
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3864
3763
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3865
3764
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3886,29 +3785,26 @@ function preventOverflow(_ref) {
|
|
|
3886
3785
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3887
3786
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3888
3787
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3788
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3789
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3790
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3791
|
+
}
|
|
3889
3792
|
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3893
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3894
|
-
}
|
|
3895
|
-
|
|
3896
|
-
if (checkAltAxis) {
|
|
3897
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3793
|
+
if (checkAltAxis) {
|
|
3794
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3898
3795
|
|
|
3899
|
-
|
|
3796
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3900
3797
|
|
|
3901
|
-
|
|
3798
|
+
var _offset = popperOffsets[altAxis];
|
|
3902
3799
|
|
|
3903
|
-
|
|
3800
|
+
var _min = _offset + overflow[_mainSide];
|
|
3904
3801
|
|
|
3905
|
-
|
|
3802
|
+
var _max = _offset - overflow[_altSide];
|
|
3906
3803
|
|
|
3907
|
-
|
|
3804
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3908
3805
|
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
}
|
|
3806
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3807
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3912
3808
|
}
|
|
3913
3809
|
|
|
3914
3810
|
state.modifiersData[name] = data;
|
|
@@ -3938,24 +3834,16 @@ function getNodeScroll(node) {
|
|
|
3938
3834
|
}
|
|
3939
3835
|
}
|
|
3940
3836
|
|
|
3941
|
-
function isElementScaled(element) {
|
|
3942
|
-
var rect = element.getBoundingClientRect();
|
|
3943
|
-
var scaleX = rect.width / element.offsetWidth || 1;
|
|
3944
|
-
var scaleY = rect.height / element.offsetHeight || 1;
|
|
3945
|
-
return scaleX !== 1 || scaleY !== 1;
|
|
3946
|
-
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3947
3837
|
// Composite means it takes into account transforms as well as layout.
|
|
3948
3838
|
|
|
3949
|
-
|
|
3950
3839
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
3951
3840
|
if (isFixed === void 0) {
|
|
3952
3841
|
isFixed = false;
|
|
3953
3842
|
}
|
|
3954
3843
|
|
|
3955
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3956
|
-
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3957
3844
|
var documentElement = getDocumentElement(offsetParent);
|
|
3958
|
-
var rect = getBoundingClientRect(elementOrVirtualElement
|
|
3845
|
+
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
3846
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3959
3847
|
var scroll = {
|
|
3960
3848
|
scrollLeft: 0,
|
|
3961
3849
|
scrollTop: 0
|
|
@@ -3972,7 +3860,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3972
3860
|
}
|
|
3973
3861
|
|
|
3974
3862
|
if (isHTMLElement(offsetParent)) {
|
|
3975
|
-
offsets = getBoundingClientRect(offsetParent
|
|
3863
|
+
offsets = getBoundingClientRect(offsetParent);
|
|
3976
3864
|
offsets.x += offsetParent.clientLeft;
|
|
3977
3865
|
offsets.y += offsetParent.clientTop;
|
|
3978
3866
|
} else if (documentElement) {
|
|
@@ -4147,9 +4035,9 @@ function uniqueBy(arr, fn) {
|
|
|
4147
4035
|
function mergeByName(modifiers) {
|
|
4148
4036
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4149
4037
|
var existing = merged[current.name];
|
|
4150
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4151
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4152
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4038
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4039
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4040
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4153
4041
|
}) : current;
|
|
4154
4042
|
return merged;
|
|
4155
4043
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4195,7 +4083,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4195
4083
|
var state = {
|
|
4196
4084
|
placement: 'bottom',
|
|
4197
4085
|
orderedModifiers: [],
|
|
4198
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4086
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4199
4087
|
modifiersData: {},
|
|
4200
4088
|
elements: {
|
|
4201
4089
|
reference: reference,
|
|
@@ -4210,7 +4098,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4210
4098
|
state: state,
|
|
4211
4099
|
setOptions: function setOptions(options) {
|
|
4212
4100
|
cleanupModifierEffects();
|
|
4213
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4101
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4214
4102
|
state.scrollParents = {
|
|
4215
4103
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4216
4104
|
popper: listScrollParents(popper)
|
|
@@ -4242,7 +4130,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4242
4130
|
}
|
|
4243
4131
|
}
|
|
4244
4132
|
|
|
4245
|
-
var _getComputedStyle = getComputedStyle$
|
|
4133
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4246
4134
|
marginTop = _getComputedStyle.marginTop,
|
|
4247
4135
|
marginRight = _getComputedStyle.marginRight,
|
|
4248
4136
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4452,11 +4340,6 @@ var ariaDescribedByModifier = {
|
|
|
4452
4340
|
|
|
4453
4341
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4454
4342
|
var ids = reference.getAttribute('aria-describedby');
|
|
4455
|
-
|
|
4456
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4457
|
-
return;
|
|
4458
|
-
}
|
|
4459
|
-
|
|
4460
4343
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4461
4344
|
}
|
|
4462
4345
|
}
|
|
@@ -4580,16 +4463,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4580
4463
|
}
|
|
4581
4464
|
|
|
4582
4465
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
*
|
|
4587
|
-
* @param context the context element
|
|
4588
|
-
* @param node the element to check
|
|
4589
|
-
*/
|
|
4590
|
-
function contains(context, node) {
|
|
4591
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4592
|
-
// so we need to check on context instead of a document root element.
|
|
4466
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4467
|
+
// so we need to check on context instead of a document root element.
|
|
4468
|
+
function contains$1(context, node) {
|
|
4593
4469
|
if (context.contains) return context.contains(node);
|
|
4594
4470
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4595
4471
|
}
|
|
@@ -4663,13 +4539,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4663
4539
|
return componentOrElement != null ? componentOrElement : null;
|
|
4664
4540
|
}
|
|
4665
4541
|
|
|
4666
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4667
|
-
return ownerDocument
|
|
4542
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4543
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4668
4544
|
});
|
|
4669
4545
|
|
|
4670
4546
|
var escapeKeyCode = 27;
|
|
4671
4547
|
|
|
4672
|
-
var noop$
|
|
4548
|
+
var noop$1 = function noop() {};
|
|
4673
4549
|
|
|
4674
4550
|
function isLeftClickEvent(event) {
|
|
4675
4551
|
return event.button === 0;
|
|
@@ -4702,11 +4578,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4702
4578
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4703
4579
|
|
|
4704
4580
|
var preventMouseRootCloseRef = useRef(false);
|
|
4705
|
-
var onClose = onRootClose || noop$
|
|
4581
|
+
var onClose = onRootClose || noop$1;
|
|
4706
4582
|
var handleMouseCapture = useCallback(function (e) {
|
|
4707
4583
|
var currentTarget = getRefTarget(ref);
|
|
4708
4584
|
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');
|
|
4709
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4585
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4710
4586
|
}, [ref]);
|
|
4711
4587
|
var handleMouse = useEventCallback(function (e) {
|
|
4712
4588
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4719,38 +4595,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4719
4595
|
}
|
|
4720
4596
|
});
|
|
4721
4597
|
useEffect(function () {
|
|
4722
|
-
if (disabled || ref == null) return undefined;
|
|
4723
|
-
//
|
|
4724
|
-
|
|
4725
|
-
var currentEvent = window.event;
|
|
4726
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4598
|
+
if (disabled || ref == null) return undefined;
|
|
4599
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4727
4600
|
// avoid false positives in the contains() check below if the target DOM
|
|
4728
4601
|
// element is removed in the React mouse callback.
|
|
4729
4602
|
|
|
4730
4603
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4731
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4732
|
-
|
|
4733
|
-
if (e === currentEvent) {
|
|
4734
|
-
currentEvent = undefined;
|
|
4735
|
-
return;
|
|
4736
|
-
}
|
|
4737
|
-
|
|
4738
|
-
handleMouse(e);
|
|
4739
|
-
});
|
|
4740
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4741
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4742
|
-
if (e === currentEvent) {
|
|
4743
|
-
currentEvent = undefined;
|
|
4744
|
-
return;
|
|
4745
|
-
}
|
|
4746
|
-
|
|
4747
|
-
handleKeyUp(e);
|
|
4748
|
-
});
|
|
4604
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4605
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4749
4606
|
var mobileSafariHackListeners = [];
|
|
4750
4607
|
|
|
4751
4608
|
if ('ontouchstart' in doc.documentElement) {
|
|
4752
4609
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4753
|
-
return listen(el, 'mousemove', noop$
|
|
4610
|
+
return listen(el, 'mousemove', noop$1);
|
|
4754
4611
|
});
|
|
4755
4612
|
}
|
|
4756
4613
|
|
|
@@ -4832,7 +4689,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4832
4689
|
});
|
|
4833
4690
|
}
|
|
4834
4691
|
|
|
4835
|
-
var noop$
|
|
4692
|
+
var noop$2 = function noop() {};
|
|
4836
4693
|
/**
|
|
4837
4694
|
* @memberOf Dropdown
|
|
4838
4695
|
* @param {object} options
|
|
@@ -4900,7 +4757,7 @@ function useDropdownMenu(options) {
|
|
|
4900
4757
|
|
|
4901
4758
|
var menu;
|
|
4902
4759
|
var menuProps = {
|
|
4903
|
-
ref: setMenu || noop$
|
|
4760
|
+
ref: setMenu || noop$2,
|
|
4904
4761
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4905
4762
|
};
|
|
4906
4763
|
var childArgs = {
|
|
@@ -4933,7 +4790,7 @@ function useDropdownMenu(options) {
|
|
|
4933
4790
|
});
|
|
4934
4791
|
return menu;
|
|
4935
4792
|
}
|
|
4936
|
-
var propTypes$
|
|
4793
|
+
var propTypes$2 = {
|
|
4937
4794
|
/**
|
|
4938
4795
|
* A render prop that returns a Menu element. The `props`
|
|
4939
4796
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4990,7 +4847,7 @@ var propTypes$8 = {
|
|
|
4990
4847
|
*/
|
|
4991
4848
|
rootCloseEvent: PropTypes.string
|
|
4992
4849
|
};
|
|
4993
|
-
var defaultProps$
|
|
4850
|
+
var defaultProps$d = {
|
|
4994
4851
|
usePopper: true
|
|
4995
4852
|
};
|
|
4996
4853
|
|
|
@@ -5000,19 +4857,19 @@ var defaultProps$r = {
|
|
|
5000
4857
|
* @displayName DropdownMenu
|
|
5001
4858
|
* @memberOf Dropdown
|
|
5002
4859
|
*/
|
|
5003
|
-
function DropdownMenu
|
|
4860
|
+
function DropdownMenu(_ref2) {
|
|
5004
4861
|
var children = _ref2.children,
|
|
5005
4862
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5006
4863
|
|
|
5007
4864
|
var args = useDropdownMenu(options);
|
|
5008
|
-
return /*#__PURE__*/
|
|
4865
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5009
4866
|
}
|
|
5010
4867
|
|
|
5011
|
-
DropdownMenu
|
|
5012
|
-
DropdownMenu
|
|
5013
|
-
DropdownMenu
|
|
4868
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4869
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4870
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5014
4871
|
|
|
5015
|
-
var noop$
|
|
4872
|
+
var noop$3 = function noop() {};
|
|
5016
4873
|
/**
|
|
5017
4874
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5018
4875
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5026,11 +4883,11 @@ function useDropdownToggle() {
|
|
|
5026
4883
|
_ref$show = _ref.show,
|
|
5027
4884
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5028
4885
|
_ref$toggle = _ref.toggle,
|
|
5029
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4886
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5030
4887
|
setToggle = _ref.setToggle;
|
|
5031
4888
|
|
|
5032
4889
|
return [{
|
|
5033
|
-
ref: setToggle || noop$
|
|
4890
|
+
ref: setToggle || noop$3,
|
|
5034
4891
|
'aria-haspopup': true,
|
|
5035
4892
|
'aria-expanded': !!show
|
|
5036
4893
|
}, {
|
|
@@ -5038,7 +4895,7 @@ function useDropdownToggle() {
|
|
|
5038
4895
|
toggle: toggle
|
|
5039
4896
|
}];
|
|
5040
4897
|
}
|
|
5041
|
-
var propTypes$
|
|
4898
|
+
var propTypes$3 = {
|
|
5042
4899
|
/**
|
|
5043
4900
|
* A render prop that returns a Toggle element. The `props`
|
|
5044
4901
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5063,7 +4920,7 @@ var propTypes$7 = {
|
|
|
5063
4920
|
* @displayName DropdownToggle
|
|
5064
4921
|
* @memberOf Dropdown
|
|
5065
4922
|
*/
|
|
5066
|
-
function DropdownToggle
|
|
4923
|
+
function DropdownToggle(_ref2) {
|
|
5067
4924
|
var children = _ref2.children;
|
|
5068
4925
|
|
|
5069
4926
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5072,17 +4929,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5072
4929
|
show = _useDropdownToggle$.show,
|
|
5073
4930
|
toggle = _useDropdownToggle$.toggle;
|
|
5074
4931
|
|
|
5075
|
-
return /*#__PURE__*/
|
|
4932
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5076
4933
|
show: show,
|
|
5077
4934
|
toggle: toggle,
|
|
5078
4935
|
props: props
|
|
5079
4936
|
}));
|
|
5080
4937
|
}
|
|
5081
4938
|
|
|
5082
|
-
DropdownToggle
|
|
5083
|
-
DropdownToggle
|
|
4939
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4940
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5084
4941
|
|
|
5085
|
-
var propTypes$
|
|
4942
|
+
var propTypes$4 = {
|
|
5086
4943
|
/**
|
|
5087
4944
|
* A render prop that returns the root dropdown element. The `props`
|
|
5088
4945
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5154,7 +5011,7 @@ var propTypes$6 = {
|
|
|
5154
5011
|
/**
|
|
5155
5012
|
* @displayName Dropdown
|
|
5156
5013
|
*/
|
|
5157
|
-
function Dropdown
|
|
5014
|
+
function Dropdown(_ref) {
|
|
5158
5015
|
var drop = _ref.drop,
|
|
5159
5016
|
alignEnd = _ref.alignEnd,
|
|
5160
5017
|
defaultShow = _ref.defaultShow,
|
|
@@ -5287,7 +5144,7 @@ function Dropdown$1(_ref) {
|
|
|
5287
5144
|
}
|
|
5288
5145
|
};
|
|
5289
5146
|
|
|
5290
|
-
return /*#__PURE__*/
|
|
5147
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5291
5148
|
value: context
|
|
5292
5149
|
}, children({
|
|
5293
5150
|
props: {
|
|
@@ -5296,19 +5153,19 @@ function Dropdown$1(_ref) {
|
|
|
5296
5153
|
}));
|
|
5297
5154
|
}
|
|
5298
5155
|
|
|
5299
|
-
Dropdown
|
|
5300
|
-
Dropdown
|
|
5301
|
-
Dropdown
|
|
5302
|
-
Dropdown
|
|
5156
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5157
|
+
Dropdown.propTypes = propTypes$4;
|
|
5158
|
+
Dropdown.Menu = DropdownMenu;
|
|
5159
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5303
5160
|
|
|
5304
|
-
var NavContext =
|
|
5161
|
+
var NavContext = React.createContext(null);
|
|
5305
5162
|
NavContext.displayName = 'NavContext';
|
|
5306
5163
|
|
|
5307
|
-
var defaultProps$
|
|
5164
|
+
var defaultProps$e = {
|
|
5308
5165
|
as: SafeAnchor,
|
|
5309
5166
|
disabled: false
|
|
5310
5167
|
};
|
|
5311
|
-
var DropdownItem =
|
|
5168
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5312
5169
|
var bsPrefix = _ref.bsPrefix,
|
|
5313
5170
|
className = _ref.className,
|
|
5314
5171
|
children = _ref.children,
|
|
@@ -5326,10 +5183,9 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5326
5183
|
var navContext = useContext(NavContext);
|
|
5327
5184
|
|
|
5328
5185
|
var _ref2 = navContext || {},
|
|
5329
|
-
activeKey = _ref2.activeKey;
|
|
5330
|
-
|
|
5186
|
+
activeKey = _ref2.activeKey;
|
|
5331
5187
|
|
|
5332
|
-
var key = makeEventKey(eventKey, href);
|
|
5188
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5333
5189
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5334
5190
|
var handleClick = useEventCallback(function (event) {
|
|
5335
5191
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5343,7 +5199,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5343
5199
|
/*#__PURE__*/
|
|
5344
5200
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5345
5201
|
// @ts-ignore
|
|
5346
|
-
|
|
5202
|
+
React.createElement(Component, _extends({}, props, {
|
|
5347
5203
|
ref: ref,
|
|
5348
5204
|
href: href,
|
|
5349
5205
|
disabled: disabled,
|
|
@@ -5353,7 +5209,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5353
5209
|
);
|
|
5354
5210
|
});
|
|
5355
5211
|
DropdownItem.displayName = 'DropdownItem';
|
|
5356
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5212
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5357
5213
|
|
|
5358
5214
|
var toFnRef = function toFnRef(ref) {
|
|
5359
5215
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5392,8 +5248,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5392
5248
|
}, [refA, refB]);
|
|
5393
5249
|
}
|
|
5394
5250
|
|
|
5395
|
-
var context =
|
|
5396
|
-
context.displayName = 'NavbarContext';
|
|
5251
|
+
var context$2 = React.createContext(null);
|
|
5252
|
+
context$2.displayName = 'NavbarContext';
|
|
5397
5253
|
|
|
5398
5254
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5399
5255
|
// @ts-ignore
|
|
@@ -5406,12 +5262,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5406
5262
|
return useMergedRefs(warningRef, ref);
|
|
5407
5263
|
}
|
|
5408
5264
|
|
|
5409
|
-
/**
|
|
5410
|
-
* Checks if a given element has a CSS class.
|
|
5411
|
-
*
|
|
5412
|
-
* @param element the element
|
|
5413
|
-
* @param className the CSS class name
|
|
5414
|
-
*/
|
|
5415
5265
|
function hasClass(element, className) {
|
|
5416
5266
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5417
5267
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5434,14 +5284,12 @@ function getMargins(element) {
|
|
|
5434
5284
|
function usePopperMarginModifiers() {
|
|
5435
5285
|
var overlayRef = useRef(null);
|
|
5436
5286
|
var margins = useRef(null);
|
|
5437
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5438
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5439
5287
|
var callback = useCallback(function (overlay) {
|
|
5440
|
-
if (!overlay || !(hasClass(overlay,
|
|
5288
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5441
5289
|
margins.current = getMargins(overlay);
|
|
5442
5290
|
overlay.style.margin = '0';
|
|
5443
5291
|
overlayRef.current = overlay;
|
|
5444
|
-
}, [
|
|
5292
|
+
}, []);
|
|
5445
5293
|
var offset = useMemo(function () {
|
|
5446
5294
|
return {
|
|
5447
5295
|
name: 'offset',
|
|
@@ -5485,7 +5333,7 @@ function usePopperMarginModifiers() {
|
|
|
5485
5333
|
effect: function effect(_ref2) {
|
|
5486
5334
|
var state = _ref2.state;
|
|
5487
5335
|
|
|
5488
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5336
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5489
5337
|
return undefined;
|
|
5490
5338
|
}
|
|
5491
5339
|
|
|
@@ -5506,30 +5354,18 @@ function usePopperMarginModifiers() {
|
|
|
5506
5354
|
};
|
|
5507
5355
|
}
|
|
5508
5356
|
};
|
|
5509
|
-
}, [
|
|
5357
|
+
}, []);
|
|
5510
5358
|
return [callback, [offset, popoverArrowMargins]];
|
|
5511
5359
|
}
|
|
5512
5360
|
|
|
5513
|
-
var
|
|
5514
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5515
|
-
sm: alignDirection
|
|
5516
|
-
}), PropTypes.shape({
|
|
5517
|
-
md: alignDirection
|
|
5518
|
-
}), PropTypes.shape({
|
|
5519
|
-
lg: alignDirection
|
|
5520
|
-
}), PropTypes.shape({
|
|
5521
|
-
xl: alignDirection
|
|
5522
|
-
})]);
|
|
5523
|
-
var defaultProps$p = {
|
|
5524
|
-
align: 'left',
|
|
5361
|
+
var defaultProps$f = {
|
|
5525
5362
|
alignRight: false,
|
|
5526
5363
|
flip: true
|
|
5527
5364
|
}; // TODO: remove this hack
|
|
5528
5365
|
|
|
5529
|
-
var DropdownMenu =
|
|
5366
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5530
5367
|
var bsPrefix = _ref.bsPrefix,
|
|
5531
5368
|
className = _ref.className,
|
|
5532
|
-
align = _ref.align,
|
|
5533
5369
|
alignRight = _ref.alignRight,
|
|
5534
5370
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5535
5371
|
flip = _ref.flip,
|
|
@@ -5538,42 +5374,21 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5538
5374
|
_ref$as = _ref.as,
|
|
5539
5375
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5540
5376
|
popperConfig = _ref.popperConfig,
|
|
5541
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5377
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5542
5378
|
|
|
5543
|
-
var isNavbar = useContext(context);
|
|
5379
|
+
var isNavbar = useContext(context$2);
|
|
5544
5380
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5545
5381
|
|
|
5546
5382
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5547
5383
|
popperRef = _usePopperMarginModif[0],
|
|
5548
5384
|
marginModifiers = _usePopperMarginModif[1];
|
|
5549
5385
|
|
|
5550
|
-
var alignClasses = [];
|
|
5551
|
-
|
|
5552
|
-
if (align) {
|
|
5553
|
-
if (typeof align === 'object') {
|
|
5554
|
-
var keys = Object.keys(align);
|
|
5555
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5556
|
-
|
|
5557
|
-
if (keys.length) {
|
|
5558
|
-
var brkPoint = keys[0];
|
|
5559
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5560
|
-
// left in addition to align left classes.
|
|
5561
|
-
// Reuse alignRight to toggle the class below.
|
|
5562
|
-
|
|
5563
|
-
alignRight = direction === 'left';
|
|
5564
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5565
|
-
}
|
|
5566
|
-
} else if (align === 'right') {
|
|
5567
|
-
alignRight = true;
|
|
5568
|
-
}
|
|
5569
|
-
}
|
|
5570
|
-
|
|
5571
5386
|
var _ref2 = useDropdownMenu({
|
|
5572
5387
|
flip: flip,
|
|
5573
5388
|
rootCloseEvent: rootCloseEvent,
|
|
5574
5389
|
show: showProps,
|
|
5575
5390
|
alignEnd: alignRight,
|
|
5576
|
-
usePopper: !isNavbar
|
|
5391
|
+
usePopper: !isNavbar,
|
|
5577
5392
|
popperConfig: _extends({}, popperConfig, {
|
|
5578
5393
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5579
5394
|
})
|
|
@@ -5601,12 +5416,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5601
5416
|
props['x-placement'] = placement;
|
|
5602
5417
|
}
|
|
5603
5418
|
|
|
5604
|
-
return /*#__PURE__*/
|
|
5605
|
-
className: classnames
|
|
5419
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5420
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5606
5421
|
}));
|
|
5607
5422
|
});
|
|
5608
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5609
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5423
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5424
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5610
5425
|
|
|
5611
5426
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5612
5427
|
|
|
@@ -5635,14 +5450,15 @@ module.exports = exports['default'];
|
|
|
5635
5450
|
|
|
5636
5451
|
unwrapExports(isRequiredForA11y_1);
|
|
5637
5452
|
|
|
5638
|
-
var DropdownToggle =
|
|
5453
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5639
5454
|
var bsPrefix = _ref.bsPrefix,
|
|
5640
5455
|
split = _ref.split,
|
|
5641
5456
|
className = _ref.className,
|
|
5457
|
+
children = _ref.children,
|
|
5642
5458
|
childBsPrefix = _ref.childBsPrefix,
|
|
5643
5459
|
_ref$as = _ref.as,
|
|
5644
5460
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5645
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5461
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5646
5462
|
|
|
5647
5463
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5648
5464
|
|
|
@@ -5657,12 +5473,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5657
5473
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5658
5474
|
// underlying component, to allow it to render size and style variants.
|
|
5659
5475
|
|
|
5660
|
-
return /*#__PURE__*/
|
|
5476
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5661
5477
|
onClick: toggle,
|
|
5662
5478
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5663
|
-
}, toggleProps, props));
|
|
5479
|
+
}, toggleProps, props), children);
|
|
5664
5480
|
});
|
|
5665
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5481
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5666
5482
|
|
|
5667
5483
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5668
5484
|
defaultProps: {
|
|
@@ -5677,10 +5493,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5677
5493
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5678
5494
|
Component: 'span'
|
|
5679
5495
|
});
|
|
5680
|
-
var defaultProps$
|
|
5496
|
+
var defaultProps$g = {
|
|
5681
5497
|
navbar: false
|
|
5682
5498
|
};
|
|
5683
|
-
var Dropdown =
|
|
5499
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5684
5500
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5685
5501
|
show: 'onToggle'
|
|
5686
5502
|
}),
|
|
@@ -5693,9 +5509,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5693
5509
|
onToggle = _useUncontrolled.onToggle,
|
|
5694
5510
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5695
5511
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5696
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5697
|
-
_useUncontrolled.navbar
|
|
5698
|
-
|
|
5512
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5513
|
+
_4 = _useUncontrolled.navbar,
|
|
5514
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5699
5515
|
|
|
5700
5516
|
var onSelectCtx = useContext(SelectableContext);
|
|
5701
5517
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5717,9 +5533,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5717
5533
|
if (onSelect) onSelect(key, event);
|
|
5718
5534
|
handleToggle(false, event, 'select');
|
|
5719
5535
|
});
|
|
5720
|
-
return /*#__PURE__*/
|
|
5536
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5721
5537
|
value: handleSelect
|
|
5722
|
-
}, /*#__PURE__*/
|
|
5538
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5723
5539
|
drop: drop,
|
|
5724
5540
|
show: show,
|
|
5725
5541
|
alignEnd: alignRight,
|
|
@@ -5728,20 +5544,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5728
5544
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5729
5545
|
}, function (_ref) {
|
|
5730
5546
|
var dropdownProps = _ref.props;
|
|
5731
|
-
return /*#__PURE__*/
|
|
5547
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5732
5548
|
ref: ref,
|
|
5733
5549
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5734
5550
|
}));
|
|
5735
5551
|
}));
|
|
5736
5552
|
});
|
|
5737
|
-
Dropdown.displayName = 'Dropdown';
|
|
5738
|
-
Dropdown.defaultProps = defaultProps$
|
|
5739
|
-
Dropdown.Divider = DropdownDivider;
|
|
5740
|
-
Dropdown.Header = DropdownHeader;
|
|
5741
|
-
Dropdown.Item = DropdownItem;
|
|
5742
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5743
|
-
Dropdown.Menu = DropdownMenu;
|
|
5744
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5553
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5554
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5555
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5556
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5557
|
+
Dropdown$1.Item = DropdownItem;
|
|
5558
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5559
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5560
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5745
5561
|
|
|
5746
5562
|
var propTypes$5 = {
|
|
5747
5563
|
/**
|
|
@@ -5763,15 +5579,6 @@ var propTypes$5 = {
|
|
|
5763
5579
|
/** Disables both Buttons */
|
|
5764
5580
|
disabled: PropTypes.bool,
|
|
5765
5581
|
|
|
5766
|
-
/**
|
|
5767
|
-
* Aligns the dropdown menu responsively.
|
|
5768
|
-
*
|
|
5769
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5770
|
-
*
|
|
5771
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5772
|
-
*/
|
|
5773
|
-
menuAlign: alignPropType,
|
|
5774
|
-
|
|
5775
5582
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5776
5583
|
menuRole: PropTypes.string,
|
|
5777
5584
|
|
|
@@ -5781,7 +5588,7 @@ var propTypes$5 = {
|
|
|
5781
5588
|
/**
|
|
5782
5589
|
* Which event when fired outside the component will cause it to be closed.
|
|
5783
5590
|
*
|
|
5784
|
-
* _see [DropdownMenu](#
|
|
5591
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5785
5592
|
*/
|
|
5786
5593
|
rootCloseEvent: PropTypes.string,
|
|
5787
5594
|
|
|
@@ -5803,32 +5610,30 @@ var propTypes$5 = {
|
|
|
5803
5610
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5804
5611
|
*/
|
|
5805
5612
|
|
|
5806
|
-
var DropdownButton =
|
|
5613
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5807
5614
|
var title = _ref.title,
|
|
5808
5615
|
children = _ref.children,
|
|
5809
5616
|
bsPrefix = _ref.bsPrefix,
|
|
5810
5617
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5811
5618
|
variant = _ref.variant,
|
|
5812
5619
|
size = _ref.size,
|
|
5813
|
-
menuAlign = _ref.menuAlign,
|
|
5814
5620
|
menuRole = _ref.menuRole,
|
|
5815
5621
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5816
5622
|
disabled = _ref.disabled,
|
|
5817
5623
|
href = _ref.href,
|
|
5818
5624
|
id = _ref.id,
|
|
5819
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5625
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5820
5626
|
|
|
5821
|
-
return /*#__PURE__*/
|
|
5627
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5822
5628
|
ref: ref
|
|
5823
|
-
}, props), /*#__PURE__*/
|
|
5629
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5824
5630
|
id: id,
|
|
5825
5631
|
href: href,
|
|
5826
5632
|
size: size,
|
|
5827
5633
|
variant: variant,
|
|
5828
5634
|
disabled: disabled,
|
|
5829
5635
|
childBsPrefix: bsPrefix
|
|
5830
|
-
}, title), /*#__PURE__*/
|
|
5831
|
-
align: menuAlign,
|
|
5636
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5832
5637
|
role: menuRole,
|
|
5833
5638
|
renderOnMount: renderMenuOnMount,
|
|
5834
5639
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5930,7 +5735,7 @@ module.exports = exports['default'];
|
|
|
5930
5735
|
|
|
5931
5736
|
unwrapExports(all_1);
|
|
5932
5737
|
|
|
5933
|
-
var propTypes$
|
|
5738
|
+
var propTypes$6 = {
|
|
5934
5739
|
/**
|
|
5935
5740
|
* Specify whether the feedback is for valid or invalid fields
|
|
5936
5741
|
*
|
|
@@ -5942,7 +5747,7 @@ var propTypes$4 = {
|
|
|
5942
5747
|
tooltip: PropTypes.bool,
|
|
5943
5748
|
as: PropTypes.elementType
|
|
5944
5749
|
};
|
|
5945
|
-
var Feedback =
|
|
5750
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5946
5751
|
function (_ref, ref) {
|
|
5947
5752
|
var _ref$as = _ref.as,
|
|
5948
5753
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5953,19 +5758,19 @@ function (_ref, ref) {
|
|
|
5953
5758
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5954
5759
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5955
5760
|
|
|
5956
|
-
return /*#__PURE__*/
|
|
5761
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5957
5762
|
ref: ref,
|
|
5958
5763
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5959
5764
|
}));
|
|
5960
5765
|
});
|
|
5961
5766
|
Feedback.displayName = 'Feedback';
|
|
5962
|
-
Feedback.propTypes = propTypes$
|
|
5767
|
+
Feedback.propTypes = propTypes$6;
|
|
5963
5768
|
|
|
5964
|
-
var FormContext =
|
|
5769
|
+
var FormContext = React.createContext({
|
|
5965
5770
|
controlId: undefined
|
|
5966
5771
|
});
|
|
5967
5772
|
|
|
5968
|
-
var FormCheckInput =
|
|
5773
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5969
5774
|
var id = _ref.id,
|
|
5970
5775
|
bsPrefix = _ref.bsPrefix,
|
|
5971
5776
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5990,7 +5795,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5990
5795
|
defaultPrefix = _ref2[1];
|
|
5991
5796
|
|
|
5992
5797
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5993
|
-
return /*#__PURE__*/
|
|
5798
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5994
5799
|
ref: ref,
|
|
5995
5800
|
type: type,
|
|
5996
5801
|
id: id || controlId,
|
|
@@ -5999,7 +5804,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5999
5804
|
});
|
|
6000
5805
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
6001
5806
|
|
|
6002
|
-
var FormCheckLabel =
|
|
5807
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
6003
5808
|
var bsPrefix = _ref.bsPrefix,
|
|
6004
5809
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6005
5810
|
className = _ref.className,
|
|
@@ -6015,7 +5820,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6015
5820
|
defaultPrefix = _ref2[1];
|
|
6016
5821
|
|
|
6017
5822
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6018
|
-
return /*#__PURE__*/
|
|
5823
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6019
5824
|
ref: ref,
|
|
6020
5825
|
htmlFor: htmlFor || controlId,
|
|
6021
5826
|
className: classnames(className, bsPrefix)
|
|
@@ -6023,7 +5828,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6023
5828
|
});
|
|
6024
5829
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6025
5830
|
|
|
6026
|
-
var FormCheck =
|
|
5831
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6027
5832
|
var id = _ref.id,
|
|
6028
5833
|
bsPrefix = _ref.bsPrefix,
|
|
6029
5834
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6068,8 +5873,8 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6068
5873
|
custom: custom
|
|
6069
5874
|
};
|
|
6070
5875
|
}, [controlId, custom, id]);
|
|
6071
|
-
var hasLabel =
|
|
6072
|
-
var input = /*#__PURE__*/
|
|
5876
|
+
var hasLabel = label != null && label !== false && !children;
|
|
5877
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6073
5878
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6074
5879
|
ref: ref,
|
|
6075
5880
|
isValid: isValid,
|
|
@@ -6078,14 +5883,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6078
5883
|
disabled: disabled,
|
|
6079
5884
|
as: as
|
|
6080
5885
|
}));
|
|
6081
|
-
return /*#__PURE__*/
|
|
5886
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6082
5887
|
value: innerFormContext
|
|
6083
|
-
}, /*#__PURE__*/
|
|
5888
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6084
5889
|
style: style,
|
|
6085
5890
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6086
|
-
}, children || /*#__PURE__*/
|
|
5891
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6087
5892
|
title: title
|
|
6088
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5893
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6089
5894
|
type: isValid ? 'valid' : 'invalid',
|
|
6090
5895
|
tooltip: feedbackTooltip
|
|
6091
5896
|
}, feedback))));
|
|
@@ -6094,7 +5899,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6094
5899
|
FormCheck.Input = FormCheckInput;
|
|
6095
5900
|
FormCheck.Label = FormCheckLabel;
|
|
6096
5901
|
|
|
6097
|
-
var FormFileInput =
|
|
5902
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6098
5903
|
var id = _ref.id,
|
|
6099
5904
|
bsPrefix = _ref.bsPrefix,
|
|
6100
5905
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6117,7 +5922,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6117
5922
|
defaultPrefix = _ref2[1];
|
|
6118
5923
|
|
|
6119
5924
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6120
|
-
return /*#__PURE__*/
|
|
5925
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6121
5926
|
ref: ref,
|
|
6122
5927
|
id: id || controlId,
|
|
6123
5928
|
type: type,
|
|
@@ -6127,7 +5932,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6127
5932
|
});
|
|
6128
5933
|
FormFileInput.displayName = 'FormFileInput';
|
|
6129
5934
|
|
|
6130
|
-
var FormFileLabel =
|
|
5935
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6131
5936
|
var bsPrefix = _ref.bsPrefix,
|
|
6132
5937
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6133
5938
|
className = _ref.className,
|
|
@@ -6143,7 +5948,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6143
5948
|
defaultPrefix = _ref2[1];
|
|
6144
5949
|
|
|
6145
5950
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6146
|
-
return /*#__PURE__*/
|
|
5951
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6147
5952
|
ref: ref,
|
|
6148
5953
|
htmlFor: htmlFor || controlId,
|
|
6149
5954
|
className: classnames(className, bsPrefix),
|
|
@@ -6152,7 +5957,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6152
5957
|
});
|
|
6153
5958
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6154
5959
|
|
|
6155
|
-
var FormFile =
|
|
5960
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6156
5961
|
var id = _ref.id,
|
|
6157
5962
|
bsPrefix = _ref.bsPrefix,
|
|
6158
5963
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6195,7 +6000,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6195
6000
|
};
|
|
6196
6001
|
}, [controlId, custom, id]);
|
|
6197
6002
|
var hasLabel = label != null && label !== false && !children;
|
|
6198
|
-
var input = /*#__PURE__*/
|
|
6003
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6199
6004
|
ref: ref,
|
|
6200
6005
|
isValid: isValid,
|
|
6201
6006
|
isInvalid: isInvalid,
|
|
@@ -6203,14 +6008,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6203
6008
|
as: inputAs,
|
|
6204
6009
|
lang: lang
|
|
6205
6010
|
}));
|
|
6206
|
-
return /*#__PURE__*/
|
|
6011
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6207
6012
|
value: innerFormContext
|
|
6208
|
-
}, /*#__PURE__*/
|
|
6013
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6209
6014
|
style: style,
|
|
6210
6015
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6211
|
-
}, children || /*#__PURE__*/
|
|
6016
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6212
6017
|
"data-browse": dataBrowse
|
|
6213
|
-
}, label)) : /*#__PURE__*/
|
|
6018
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6214
6019
|
type: isValid ? 'valid' : 'invalid',
|
|
6215
6020
|
tooltip: feedbackTooltip
|
|
6216
6021
|
}, feedback))));
|
|
@@ -6219,7 +6024,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6219
6024
|
FormFile.Input = FormFileInput;
|
|
6220
6025
|
FormFile.Label = FormFileLabel;
|
|
6221
6026
|
|
|
6222
|
-
var FormControl =
|
|
6027
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6223
6028
|
var bsPrefix = _ref.bsPrefix,
|
|
6224
6029
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6225
6030
|
type = _ref.type,
|
|
@@ -6271,7 +6076,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6271
6076
|
}
|
|
6272
6077
|
|
|
6273
6078
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6274
|
-
return /*#__PURE__*/
|
|
6079
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6275
6080
|
type: type,
|
|
6276
6081
|
size: htmlSize,
|
|
6277
6082
|
ref: ref,
|
|
@@ -6285,7 +6090,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6285
6090
|
Feedback: Feedback
|
|
6286
6091
|
});
|
|
6287
6092
|
|
|
6288
|
-
var FormGroup =
|
|
6093
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6289
6094
|
var bsPrefix = _ref.bsPrefix,
|
|
6290
6095
|
className = _ref.className,
|
|
6291
6096
|
children = _ref.children,
|
|
@@ -6300,20 +6105,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6300
6105
|
controlId: controlId
|
|
6301
6106
|
};
|
|
6302
6107
|
}, [controlId]);
|
|
6303
|
-
return /*#__PURE__*/
|
|
6108
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6304
6109
|
value: context
|
|
6305
|
-
}, /*#__PURE__*/
|
|
6110
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6306
6111
|
ref: ref,
|
|
6307
6112
|
className: classnames(className, bsPrefix)
|
|
6308
6113
|
}), children));
|
|
6309
6114
|
});
|
|
6310
6115
|
FormGroup.displayName = 'FormGroup';
|
|
6311
6116
|
|
|
6312
|
-
var defaultProps$
|
|
6117
|
+
var defaultProps$h = {
|
|
6313
6118
|
column: false,
|
|
6314
6119
|
srOnly: false
|
|
6315
6120
|
};
|
|
6316
|
-
var FormLabel =
|
|
6121
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6317
6122
|
var _ref$as = _ref.as,
|
|
6318
6123
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6319
6124
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6328,11 +6133,11 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6328
6133
|
|
|
6329
6134
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6330
6135
|
var columnClass = 'col-form-label';
|
|
6331
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6136
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6332
6137
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6333
6138
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6334
6139
|
htmlFor = htmlFor || controlId;
|
|
6335
|
-
if (column) return /*#__PURE__*/
|
|
6140
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6336
6141
|
as: "label",
|
|
6337
6142
|
className: classes,
|
|
6338
6143
|
htmlFor: htmlFor
|
|
@@ -6340,7 +6145,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6340
6145
|
return (
|
|
6341
6146
|
/*#__PURE__*/
|
|
6342
6147
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6343
|
-
|
|
6148
|
+
React.createElement(Component, _extends({
|
|
6344
6149
|
ref: ref,
|
|
6345
6150
|
className: classes,
|
|
6346
6151
|
htmlFor: htmlFor
|
|
@@ -6348,9 +6153,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6348
6153
|
);
|
|
6349
6154
|
});
|
|
6350
6155
|
FormLabel.displayName = 'FormLabel';
|
|
6351
|
-
FormLabel.defaultProps = defaultProps$
|
|
6156
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6352
6157
|
|
|
6353
|
-
var FormText =
|
|
6158
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6354
6159
|
function (_ref, ref) {
|
|
6355
6160
|
var bsPrefix = _ref.bsPrefix,
|
|
6356
6161
|
className = _ref.className,
|
|
@@ -6360,15 +6165,15 @@ function (_ref, ref) {
|
|
|
6360
6165
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6361
6166
|
|
|
6362
6167
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6363
|
-
return /*#__PURE__*/
|
|
6168
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6364
6169
|
ref: ref,
|
|
6365
6170
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6366
6171
|
}));
|
|
6367
6172
|
});
|
|
6368
6173
|
FormText.displayName = 'FormText';
|
|
6369
6174
|
|
|
6370
|
-
var Switch =
|
|
6371
|
-
return /*#__PURE__*/
|
|
6175
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6176
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6372
6177
|
ref: ref,
|
|
6373
6178
|
type: "switch"
|
|
6374
6179
|
}));
|
|
@@ -6378,10 +6183,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6378
6183
|
Switch.Label = FormCheck.Label;
|
|
6379
6184
|
|
|
6380
6185
|
var FormRow = createWithBsPrefix('form-row');
|
|
6381
|
-
var defaultProps$
|
|
6186
|
+
var defaultProps$i = {
|
|
6382
6187
|
inline: false
|
|
6383
6188
|
};
|
|
6384
|
-
var FormImpl =
|
|
6189
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6385
6190
|
var bsPrefix = _ref.bsPrefix,
|
|
6386
6191
|
inline = _ref.inline,
|
|
6387
6192
|
className = _ref.className,
|
|
@@ -6391,13 +6196,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6391
6196
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6392
6197
|
|
|
6393
6198
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6394
|
-
return /*#__PURE__*/
|
|
6199
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6395
6200
|
ref: ref,
|
|
6396
6201
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6397
6202
|
}));
|
|
6398
6203
|
});
|
|
6399
6204
|
FormImpl.displayName = 'Form';
|
|
6400
|
-
FormImpl.defaultProps = defaultProps$
|
|
6205
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6401
6206
|
FormImpl.Row = FormRow;
|
|
6402
6207
|
FormImpl.Group = FormGroup;
|
|
6403
6208
|
FormImpl.Control = FormControl$1;
|
|
@@ -6407,10 +6212,10 @@ FormImpl.Switch = Switch;
|
|
|
6407
6212
|
FormImpl.Label = FormLabel;
|
|
6408
6213
|
FormImpl.Text = FormText;
|
|
6409
6214
|
|
|
6410
|
-
var defaultProps$
|
|
6215
|
+
var defaultProps$j = {
|
|
6411
6216
|
fluid: false
|
|
6412
6217
|
};
|
|
6413
|
-
var Container =
|
|
6218
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6414
6219
|
var bsPrefix = _ref.bsPrefix,
|
|
6415
6220
|
fluid = _ref.fluid,
|
|
6416
6221
|
_ref$as = _ref.as,
|
|
@@ -6420,16 +6225,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6420
6225
|
|
|
6421
6226
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6422
6227
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6423
|
-
return /*#__PURE__*/
|
|
6228
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6424
6229
|
ref: ref
|
|
6425
6230
|
}, props, {
|
|
6426
6231
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6427
6232
|
}));
|
|
6428
6233
|
});
|
|
6429
6234
|
Container.displayName = 'Container';
|
|
6430
|
-
Container.defaultProps = defaultProps$
|
|
6235
|
+
Container.defaultProps = defaultProps$j;
|
|
6431
6236
|
|
|
6432
|
-
var propTypes$
|
|
6237
|
+
var propTypes$7 = {
|
|
6433
6238
|
/**
|
|
6434
6239
|
* @default 'img'
|
|
6435
6240
|
*/
|
|
@@ -6461,7 +6266,7 @@ var defaultProps$k = {
|
|
|
6461
6266
|
roundedCircle: false,
|
|
6462
6267
|
thumbnail: false
|
|
6463
6268
|
};
|
|
6464
|
-
var Image =
|
|
6269
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6465
6270
|
var bsPrefix = _ref.bsPrefix,
|
|
6466
6271
|
className = _ref.className,
|
|
6467
6272
|
fluid = _ref.fluid,
|
|
@@ -6472,7 +6277,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6472
6277
|
|
|
6473
6278
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6474
6279
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6475
|
-
return /*#__PURE__*/
|
|
6280
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6476
6281
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6477
6282
|
ref: ref
|
|
6478
6283
|
}, props, {
|
|
@@ -6482,22 +6287,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6482
6287
|
Image.displayName = 'Image';
|
|
6483
6288
|
Image.defaultProps = defaultProps$k;
|
|
6484
6289
|
|
|
6485
|
-
var defaultProps$
|
|
6290
|
+
var defaultProps$l = {
|
|
6486
6291
|
fluid: true
|
|
6487
6292
|
};
|
|
6488
|
-
var FigureImage =
|
|
6293
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6489
6294
|
var className = _ref.className,
|
|
6490
6295
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6491
6296
|
|
|
6492
|
-
return /*#__PURE__*/
|
|
6297
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6493
6298
|
ref: ref
|
|
6494
6299
|
}, props, {
|
|
6495
6300
|
className: classnames(className, 'figure-img')
|
|
6496
6301
|
}));
|
|
6497
6302
|
});
|
|
6498
6303
|
FigureImage.displayName = 'FigureImage';
|
|
6499
|
-
FigureImage.propTypes = propTypes$
|
|
6500
|
-
FigureImage.defaultProps = defaultProps$
|
|
6304
|
+
FigureImage.propTypes = propTypes$7;
|
|
6305
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6501
6306
|
|
|
6502
6307
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6503
6308
|
Component: 'figcaption'
|
|
@@ -6516,13 +6321,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6516
6321
|
});
|
|
6517
6322
|
|
|
6518
6323
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6519
|
-
return /*#__PURE__*/
|
|
6324
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6520
6325
|
type: "checkbox"
|
|
6521
6326
|
}, props)));
|
|
6522
6327
|
};
|
|
6523
6328
|
|
|
6524
6329
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6525
|
-
return /*#__PURE__*/
|
|
6330
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6526
6331
|
type: "radio"
|
|
6527
6332
|
}, props)));
|
|
6528
6333
|
};
|
|
@@ -6535,7 +6340,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6535
6340
|
* @property {InputGroupRadio} Radio
|
|
6536
6341
|
* @property {InputGroupCheckbox} Checkbox
|
|
6537
6342
|
*/
|
|
6538
|
-
var InputGroup =
|
|
6343
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6539
6344
|
var bsPrefix = _ref.bsPrefix,
|
|
6540
6345
|
size = _ref.size,
|
|
6541
6346
|
className = _ref.className,
|
|
@@ -6544,7 +6349,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6544
6349
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6545
6350
|
|
|
6546
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6547
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6548
6353
|
ref: ref
|
|
6549
6354
|
}, props, {
|
|
6550
6355
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6552,7 +6357,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6552
6357
|
});
|
|
6553
6358
|
InputGroup.displayName = 'InputGroup';
|
|
6554
6359
|
|
|
6555
|
-
_extends({}, InputGroup, {
|
|
6360
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6556
6361
|
Text: InputGroupText,
|
|
6557
6362
|
Radio: InputGroupRadio,
|
|
6558
6363
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6560,10 +6365,10 @@ _extends({}, InputGroup, {
|
|
|
6560
6365
|
Prepend: InputGroupPrepend
|
|
6561
6366
|
});
|
|
6562
6367
|
|
|
6563
|
-
var defaultProps$
|
|
6368
|
+
var defaultProps$m = {
|
|
6564
6369
|
fluid: false
|
|
6565
6370
|
};
|
|
6566
|
-
var Jumbotron =
|
|
6371
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6567
6372
|
var _classes;
|
|
6568
6373
|
|
|
6569
6374
|
var _ref$as = _ref.as,
|
|
@@ -6575,21 +6380,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6575
6380
|
|
|
6576
6381
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6577
6382
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6578
|
-
return /*#__PURE__*/
|
|
6383
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6579
6384
|
ref: ref
|
|
6580
6385
|
}, props, {
|
|
6581
6386
|
className: classnames(className, classes)
|
|
6582
6387
|
}));
|
|
6583
6388
|
});
|
|
6584
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6389
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6585
6390
|
Jumbotron.displayName = 'Jumbotron';
|
|
6586
6391
|
|
|
6587
|
-
var TabContext =
|
|
6392
|
+
var TabContext = React.createContext(null);
|
|
6588
6393
|
|
|
6589
6394
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6590
|
-
var noop$
|
|
6395
|
+
var noop$4 = function noop() {};
|
|
6591
6396
|
|
|
6592
|
-
var AbstractNav =
|
|
6397
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6593
6398
|
var _ref$as = _ref.as,
|
|
6594
6399
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6595
6400
|
onSelect = _ref.onSelect,
|
|
@@ -6670,27 +6475,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6670
6475
|
needsRefocusRef.current = false;
|
|
6671
6476
|
});
|
|
6672
6477
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6673
|
-
return /*#__PURE__*/
|
|
6478
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6674
6479
|
value: handleSelect
|
|
6675
|
-
}, /*#__PURE__*/
|
|
6480
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6676
6481
|
value: {
|
|
6677
6482
|
role: role,
|
|
6678
6483
|
// used by NavLink to determine it's role
|
|
6679
6484
|
activeKey: makeEventKey(activeKey),
|
|
6680
|
-
getControlledId: getControlledId || noop$
|
|
6681
|
-
getControllerId: getControllerId || noop$
|
|
6485
|
+
getControlledId: getControlledId || noop$4,
|
|
6486
|
+
getControllerId: getControllerId || noop$4
|
|
6682
6487
|
}
|
|
6683
|
-
}, /*#__PURE__*/
|
|
6488
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6684
6489
|
onKeyDown: handleKeyDown,
|
|
6685
6490
|
ref: mergedRef,
|
|
6686
6491
|
role: role
|
|
6687
6492
|
}))));
|
|
6688
6493
|
});
|
|
6689
6494
|
|
|
6690
|
-
var defaultProps$
|
|
6495
|
+
var defaultProps$n = {
|
|
6691
6496
|
disabled: false
|
|
6692
6497
|
};
|
|
6693
|
-
var AbstractNavItem =
|
|
6498
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6694
6499
|
var active = _ref.active,
|
|
6695
6500
|
className = _ref.className,
|
|
6696
6501
|
eventKey = _ref.eventKey,
|
|
@@ -6727,20 +6532,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6727
6532
|
if (onSelect) onSelect(navKey, e);
|
|
6728
6533
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6729
6534
|
});
|
|
6730
|
-
return /*#__PURE__*/
|
|
6535
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6731
6536
|
ref: ref,
|
|
6732
6537
|
onClick: handleOnclick,
|
|
6733
6538
|
className: classnames(className, isActive && 'active')
|
|
6734
6539
|
}));
|
|
6735
6540
|
});
|
|
6736
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6541
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6737
6542
|
|
|
6738
|
-
var defaultProps$
|
|
6543
|
+
var defaultProps$o = {
|
|
6739
6544
|
variant: undefined,
|
|
6740
6545
|
active: false,
|
|
6741
6546
|
disabled: false
|
|
6742
6547
|
};
|
|
6743
|
-
var ListGroupItem =
|
|
6548
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6744
6549
|
var bsPrefix = _ref.bsPrefix,
|
|
6745
6550
|
active = _ref.active,
|
|
6746
6551
|
disabled = _ref.disabled,
|
|
@@ -6762,25 +6567,24 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6762
6567
|
|
|
6763
6568
|
if (onClick) onClick(event);
|
|
6764
6569
|
}, [disabled, onClick]);
|
|
6765
|
-
return /*#__PURE__*/
|
|
6570
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6766
6571
|
ref: ref
|
|
6767
6572
|
}, props, {
|
|
6768
|
-
|
|
6769
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6573
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6770
6574
|
,
|
|
6771
6575
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6772
6576
|
onClick: handleClick,
|
|
6773
6577
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6774
6578
|
}));
|
|
6775
6579
|
});
|
|
6776
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6580
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6777
6581
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6778
6582
|
|
|
6779
|
-
var defaultProps$
|
|
6583
|
+
var defaultProps$p = {
|
|
6780
6584
|
variant: undefined,
|
|
6781
6585
|
horizontal: undefined
|
|
6782
6586
|
};
|
|
6783
|
-
var ListGroup =
|
|
6587
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6784
6588
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6785
6589
|
activeKey: 'onSelect'
|
|
6786
6590
|
}),
|
|
@@ -6802,19 +6606,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6802
6606
|
}
|
|
6803
6607
|
|
|
6804
6608
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6805
|
-
return /*#__PURE__*/
|
|
6609
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6806
6610
|
ref: ref
|
|
6807
6611
|
}, controlledProps, {
|
|
6808
6612
|
as: as,
|
|
6809
6613
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6810
6614
|
}));
|
|
6811
6615
|
});
|
|
6812
|
-
ListGroup.defaultProps = defaultProps$
|
|
6616
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6813
6617
|
ListGroup.displayName = 'ListGroup';
|
|
6814
6618
|
ListGroup.Item = ListGroupItem;
|
|
6815
6619
|
|
|
6816
6620
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6817
|
-
var Media =
|
|
6621
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6818
6622
|
function (_ref, ref) {
|
|
6819
6623
|
var bsPrefix = _ref.bsPrefix,
|
|
6820
6624
|
className = _ref.className,
|
|
@@ -6823,7 +6627,7 @@ function (_ref, ref) {
|
|
|
6823
6627
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6824
6628
|
|
|
6825
6629
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6826
|
-
return /*#__PURE__*/
|
|
6630
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6827
6631
|
ref: ref,
|
|
6828
6632
|
className: classnames(className, prefix)
|
|
6829
6633
|
}));
|
|
@@ -6851,14 +6655,14 @@ function scrollbarSize(recalc) {
|
|
|
6851
6655
|
}
|
|
6852
6656
|
|
|
6853
6657
|
/**
|
|
6854
|
-
*
|
|
6658
|
+
* Return the actively focused element safely.
|
|
6855
6659
|
*
|
|
6856
|
-
* @param doc the document to
|
|
6660
|
+
* @param doc the document to checl
|
|
6857
6661
|
*/
|
|
6858
6662
|
|
|
6859
6663
|
function activeElement(doc) {
|
|
6860
6664
|
if (doc === void 0) {
|
|
6861
|
-
doc = ownerDocument
|
|
6665
|
+
doc = ownerDocument();
|
|
6862
6666
|
}
|
|
6863
6667
|
|
|
6864
6668
|
// Support: IE 9 only
|
|
@@ -6875,13 +6679,6 @@ function activeElement(doc) {
|
|
|
6875
6679
|
}
|
|
6876
6680
|
}
|
|
6877
6681
|
|
|
6878
|
-
/**
|
|
6879
|
-
* Adds a CSS class to a given element.
|
|
6880
|
-
*
|
|
6881
|
-
* @param element the element
|
|
6882
|
-
* @param className the CSS class name
|
|
6883
|
-
*/
|
|
6884
|
-
|
|
6885
6682
|
function addClass(element, className) {
|
|
6886
6683
|
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);
|
|
6887
6684
|
}
|
|
@@ -6889,13 +6686,6 @@ function addClass(element, className) {
|
|
|
6889
6686
|
function replaceClassName(origClass, classToRemove) {
|
|
6890
6687
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6891
6688
|
}
|
|
6892
|
-
/**
|
|
6893
|
-
* Removes a CSS class from a given element.
|
|
6894
|
-
*
|
|
6895
|
-
* @param element the element
|
|
6896
|
-
* @param className the CSS class name
|
|
6897
|
-
*/
|
|
6898
|
-
|
|
6899
6689
|
|
|
6900
6690
|
function removeClass(element, className) {
|
|
6901
6691
|
if (element.classList) {
|
|
@@ -6922,7 +6712,7 @@ function isBody(node) {
|
|
|
6922
6712
|
}
|
|
6923
6713
|
|
|
6924
6714
|
function bodyIsOverflowing(node) {
|
|
6925
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6715
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6926
6716
|
var win = isWindow(node) || doc.defaultView;
|
|
6927
6717
|
return doc.body.clientWidth < win.innerWidth;
|
|
6928
6718
|
}
|
|
@@ -7134,7 +6924,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7134
6924
|
var _ref;
|
|
7135
6925
|
|
|
7136
6926
|
if (typeof document === 'undefined') return null;
|
|
7137
|
-
if (ref == null) return ownerDocument
|
|
6927
|
+
if (ref == null) return ownerDocument().body;
|
|
7138
6928
|
if (typeof ref === 'function') ref = ref();
|
|
7139
6929
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7140
6930
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7167,11 +6957,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7167
6957
|
return resolvedRef;
|
|
7168
6958
|
}
|
|
7169
6959
|
|
|
7170
|
-
var manager
|
|
6960
|
+
var manager;
|
|
7171
6961
|
|
|
7172
6962
|
function getManager() {
|
|
7173
|
-
if (!manager
|
|
7174
|
-
return manager
|
|
6963
|
+
if (!manager) manager = new ModalManager();
|
|
6964
|
+
return manager;
|
|
7175
6965
|
}
|
|
7176
6966
|
|
|
7177
6967
|
function useModalManager(provided) {
|
|
@@ -7199,7 +6989,7 @@ function useModalManager(provided) {
|
|
|
7199
6989
|
});
|
|
7200
6990
|
}
|
|
7201
6991
|
|
|
7202
|
-
var Modal
|
|
6992
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7203
6993
|
var _ref$show = _ref.show,
|
|
7204
6994
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7205
6995
|
_ref$role = _ref.role,
|
|
@@ -7225,7 +7015,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7225
7015
|
renderDialog = _ref.renderDialog,
|
|
7226
7016
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7227
7017
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7228
|
-
return /*#__PURE__*/
|
|
7018
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7229
7019
|
} : _ref$renderBackdrop,
|
|
7230
7020
|
providedManager = _ref.manager,
|
|
7231
7021
|
containerRef = _ref.container,
|
|
@@ -7283,7 +7073,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7283
7073
|
if (autoFocus) {
|
|
7284
7074
|
var currentActiveElement = activeElement(document);
|
|
7285
7075
|
|
|
7286
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7076
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7287
7077
|
lastFocusRef.current = currentActiveElement;
|
|
7288
7078
|
modal.dialog.focus();
|
|
7289
7079
|
}
|
|
@@ -7329,7 +7119,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7329
7119
|
|
|
7330
7120
|
var currentActiveElement = activeElement();
|
|
7331
7121
|
|
|
7332
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7122
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7333
7123
|
modal.dialog.focus();
|
|
7334
7124
|
}
|
|
7335
7125
|
});
|
|
@@ -7383,12 +7173,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7383
7173
|
tabIndex: -1
|
|
7384
7174
|
});
|
|
7385
7175
|
|
|
7386
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7176
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7387
7177
|
role: 'document'
|
|
7388
7178
|
}));
|
|
7389
7179
|
|
|
7390
7180
|
if (Transition) {
|
|
7391
|
-
dialog = /*#__PURE__*/
|
|
7181
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7392
7182
|
appear: true,
|
|
7393
7183
|
unmountOnExit: true,
|
|
7394
7184
|
"in": !!show,
|
|
@@ -7411,16 +7201,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7411
7201
|
});
|
|
7412
7202
|
|
|
7413
7203
|
if (BackdropTransition) {
|
|
7414
|
-
backdropElement = /*#__PURE__*/
|
|
7204
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7415
7205
|
appear: true,
|
|
7416
7206
|
"in": !!show
|
|
7417
7207
|
}, backdropElement);
|
|
7418
7208
|
}
|
|
7419
7209
|
}
|
|
7420
7210
|
|
|
7421
|
-
return /*#__PURE__*/
|
|
7211
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7422
7212
|
});
|
|
7423
|
-
var propTypes$
|
|
7213
|
+
var propTypes$8 = {
|
|
7424
7214
|
/**
|
|
7425
7215
|
* Set the visibility of the Modal
|
|
7426
7216
|
*/
|
|
@@ -7576,9 +7366,9 @@ var propTypes$2 = {
|
|
|
7576
7366
|
*/
|
|
7577
7367
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7578
7368
|
};
|
|
7579
|
-
Modal
|
|
7580
|
-
Modal
|
|
7581
|
-
var BaseModal = Object.assign(Modal
|
|
7369
|
+
Modal.displayName = 'Modal';
|
|
7370
|
+
Modal.propTypes = propTypes$8;
|
|
7371
|
+
var BaseModal = Object.assign(Modal, {
|
|
7582
7372
|
Manager: ModalManager
|
|
7583
7373
|
});
|
|
7584
7374
|
|
|
@@ -7657,39 +7447,38 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7657
7447
|
|
|
7658
7448
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7659
7449
|
|
|
7660
|
-
var ModalContext =
|
|
7450
|
+
var ModalContext = React.createContext({
|
|
7661
7451
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7662
7452
|
onHide: function onHide() {}
|
|
7663
7453
|
});
|
|
7664
7454
|
|
|
7665
|
-
var ModalDialog =
|
|
7455
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7666
7456
|
var bsPrefix = _ref.bsPrefix,
|
|
7667
7457
|
className = _ref.className,
|
|
7668
|
-
contentClassName = _ref.contentClassName,
|
|
7669
7458
|
centered = _ref.centered,
|
|
7670
7459
|
size = _ref.size,
|
|
7671
7460
|
children = _ref.children,
|
|
7672
7461
|
scrollable = _ref.scrollable,
|
|
7673
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7462
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7674
7463
|
|
|
7675
7464
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7676
7465
|
var dialogClass = bsPrefix + "-dialog";
|
|
7677
|
-
return /*#__PURE__*/
|
|
7466
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7678
7467
|
ref: ref,
|
|
7679
7468
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7680
|
-
}), /*#__PURE__*/
|
|
7681
|
-
className:
|
|
7469
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7470
|
+
className: bsPrefix + "-content"
|
|
7682
7471
|
}, children));
|
|
7683
7472
|
});
|
|
7684
7473
|
ModalDialog.displayName = 'ModalDialog';
|
|
7685
7474
|
|
|
7686
7475
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7687
7476
|
|
|
7688
|
-
var defaultProps$
|
|
7477
|
+
var defaultProps$q = {
|
|
7689
7478
|
closeLabel: 'Close',
|
|
7690
7479
|
closeButton: false
|
|
7691
7480
|
};
|
|
7692
|
-
var ModalHeader =
|
|
7481
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7693
7482
|
var bsPrefix = _ref.bsPrefix,
|
|
7694
7483
|
closeLabel = _ref.closeLabel,
|
|
7695
7484
|
closeButton = _ref.closeButton,
|
|
@@ -7704,25 +7493,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7704
7493
|
if (context) context.onHide();
|
|
7705
7494
|
if (onHide) onHide();
|
|
7706
7495
|
});
|
|
7707
|
-
return /*#__PURE__*/
|
|
7496
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7708
7497
|
ref: ref
|
|
7709
7498
|
}, props, {
|
|
7710
7499
|
className: classnames(className, bsPrefix)
|
|
7711
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7500
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7712
7501
|
label: closeLabel,
|
|
7713
7502
|
onClick: handleClick
|
|
7714
7503
|
}));
|
|
7715
7504
|
});
|
|
7716
7505
|
ModalHeader.displayName = 'ModalHeader';
|
|
7717
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7506
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7718
7507
|
|
|
7719
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7508
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7720
7509
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7721
|
-
Component: DivStyledAsH4
|
|
7510
|
+
Component: DivStyledAsH4$1
|
|
7722
7511
|
});
|
|
7723
7512
|
|
|
7724
|
-
var manager;
|
|
7725
|
-
var defaultProps$
|
|
7513
|
+
var manager$1;
|
|
7514
|
+
var defaultProps$r = {
|
|
7726
7515
|
show: false,
|
|
7727
7516
|
backdrop: true,
|
|
7728
7517
|
keyboard: true,
|
|
@@ -7735,21 +7524,20 @@ var defaultProps$d = {
|
|
|
7735
7524
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7736
7525
|
|
|
7737
7526
|
function DialogTransition(props) {
|
|
7738
|
-
return /*#__PURE__*/
|
|
7527
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7739
7528
|
}
|
|
7740
7529
|
|
|
7741
7530
|
function BackdropTransition(props) {
|
|
7742
|
-
return /*#__PURE__*/
|
|
7531
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7743
7532
|
}
|
|
7744
7533
|
/* eslint-enable no-use-before-define */
|
|
7745
7534
|
|
|
7746
7535
|
|
|
7747
|
-
var Modal =
|
|
7536
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7748
7537
|
var bsPrefix = _ref.bsPrefix,
|
|
7749
7538
|
className = _ref.className,
|
|
7750
7539
|
style = _ref.style,
|
|
7751
7540
|
dialogClassName = _ref.dialogClassName,
|
|
7752
|
-
contentClassName = _ref.contentClassName,
|
|
7753
7541
|
children = _ref.children,
|
|
7754
7542
|
Dialog = _ref.dialogAs,
|
|
7755
7543
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7773,7 +7561,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7773
7561
|
onExited = _ref.onExited,
|
|
7774
7562
|
backdropClassName = _ref.backdropClassName,
|
|
7775
7563
|
propsManager = _ref.manager,
|
|
7776
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "
|
|
7564
|
+
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"]);
|
|
7777
7565
|
|
|
7778
7566
|
var _useState = useState({}),
|
|
7779
7567
|
modalStyle = _useState[0],
|
|
@@ -7810,14 +7598,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7810
7598
|
|
|
7811
7599
|
function getModalManager() {
|
|
7812
7600
|
if (propsManager) return propsManager;
|
|
7813
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7814
|
-
return manager;
|
|
7601
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7602
|
+
return manager$1;
|
|
7815
7603
|
}
|
|
7816
7604
|
|
|
7817
7605
|
function updateDialogStyle(node) {
|
|
7818
7606
|
if (!canUseDOM) return;
|
|
7819
7607
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7820
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7608
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7821
7609
|
setStyle({
|
|
7822
7610
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7823
7611
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7939,7 +7727,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7939
7727
|
};
|
|
7940
7728
|
|
|
7941
7729
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7942
|
-
return /*#__PURE__*/
|
|
7730
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7943
7731
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7944
7732
|
}));
|
|
7945
7733
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7952,7 +7740,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7952
7740
|
}
|
|
7953
7741
|
|
|
7954
7742
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7955
|
-
return /*#__PURE__*/
|
|
7743
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7956
7744
|
role: "dialog"
|
|
7957
7745
|
}, dialogProps, {
|
|
7958
7746
|
style: baseModalStyle,
|
|
@@ -7960,17 +7748,16 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7960
7748
|
onClick: backdrop ? handleClick : undefined,
|
|
7961
7749
|
onMouseUp: handleMouseUp,
|
|
7962
7750
|
"aria-labelledby": ariaLabelledby
|
|
7963
|
-
}), /*#__PURE__*/
|
|
7751
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7964
7752
|
role: "document",
|
|
7965
7753
|
onMouseDown: handleDialogMouseDown,
|
|
7966
|
-
className: dialogClassName
|
|
7967
|
-
contentClassName: contentClassName
|
|
7754
|
+
className: dialogClassName
|
|
7968
7755
|
}), children));
|
|
7969
7756
|
};
|
|
7970
7757
|
|
|
7971
|
-
return /*#__PURE__*/
|
|
7758
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7972
7759
|
value: modalContext
|
|
7973
|
-
}, /*#__PURE__*/
|
|
7760
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7974
7761
|
show: show,
|
|
7975
7762
|
ref: setModalRef,
|
|
7976
7763
|
backdrop: backdrop,
|
|
@@ -7998,17 +7785,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7998
7785
|
renderDialog: renderDialog
|
|
7999
7786
|
}));
|
|
8000
7787
|
});
|
|
8001
|
-
Modal.displayName = 'Modal';
|
|
8002
|
-
Modal.defaultProps = defaultProps$
|
|
8003
|
-
Modal.Body = ModalBody;
|
|
8004
|
-
Modal.Header = ModalHeader;
|
|
8005
|
-
Modal.Title = ModalTitle;
|
|
8006
|
-
Modal.Footer = ModalFooter;
|
|
8007
|
-
Modal.Dialog = ModalDialog;
|
|
8008
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8009
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8010
|
-
|
|
8011
|
-
var NavItem =
|
|
7788
|
+
Modal$1.displayName = 'Modal';
|
|
7789
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7790
|
+
Modal$1.Body = ModalBody;
|
|
7791
|
+
Modal$1.Header = ModalHeader;
|
|
7792
|
+
Modal$1.Title = ModalTitle;
|
|
7793
|
+
Modal$1.Footer = ModalFooter;
|
|
7794
|
+
Modal$1.Dialog = ModalDialog;
|
|
7795
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7796
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7797
|
+
|
|
7798
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8012
7799
|
function (_ref, ref) {
|
|
8013
7800
|
var bsPrefix = _ref.bsPrefix,
|
|
8014
7801
|
className = _ref.className,
|
|
@@ -8018,18 +7805,18 @@ function (_ref, ref) {
|
|
|
8018
7805
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8019
7806
|
|
|
8020
7807
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8021
|
-
return /*#__PURE__*/
|
|
7808
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8022
7809
|
ref: ref,
|
|
8023
7810
|
className: classnames(className, bsPrefix)
|
|
8024
7811
|
}), children);
|
|
8025
7812
|
});
|
|
8026
7813
|
NavItem.displayName = 'NavItem';
|
|
8027
7814
|
|
|
8028
|
-
var defaultProps$
|
|
7815
|
+
var defaultProps$s = {
|
|
8029
7816
|
disabled: false,
|
|
8030
7817
|
as: SafeAnchor
|
|
8031
7818
|
};
|
|
8032
|
-
var NavLink =
|
|
7819
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8033
7820
|
var bsPrefix = _ref.bsPrefix,
|
|
8034
7821
|
disabled = _ref.disabled,
|
|
8035
7822
|
className = _ref.className,
|
|
@@ -8040,7 +7827,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8040
7827
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8041
7828
|
|
|
8042
7829
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8043
|
-
return /*#__PURE__*/
|
|
7830
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8044
7831
|
href: href,
|
|
8045
7832
|
ref: ref,
|
|
8046
7833
|
eventKey: eventKey,
|
|
@@ -8051,13 +7838,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8051
7838
|
}));
|
|
8052
7839
|
});
|
|
8053
7840
|
NavLink.displayName = 'NavLink';
|
|
8054
|
-
NavLink.defaultProps = defaultProps$
|
|
7841
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8055
7842
|
|
|
8056
|
-
var defaultProps$
|
|
7843
|
+
var defaultProps$t = {
|
|
8057
7844
|
justify: false,
|
|
8058
7845
|
fill: false
|
|
8059
7846
|
};
|
|
8060
|
-
var Nav =
|
|
7847
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8061
7848
|
var _classNames;
|
|
8062
7849
|
|
|
8063
7850
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8079,7 +7866,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8079
7866
|
var navbarBsPrefix;
|
|
8080
7867
|
var cardHeaderBsPrefix;
|
|
8081
7868
|
var isNavbar = false;
|
|
8082
|
-
var navbarContext = useContext(context);
|
|
7869
|
+
var navbarContext = useContext(context$2);
|
|
8083
7870
|
var cardContext = useContext(context$1);
|
|
8084
7871
|
|
|
8085
7872
|
if (navbarContext) {
|
|
@@ -8089,7 +7876,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8089
7876
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8090
7877
|
}
|
|
8091
7878
|
|
|
8092
|
-
return /*#__PURE__*/
|
|
7879
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8093
7880
|
as: as,
|
|
8094
7881
|
ref: ref,
|
|
8095
7882
|
activeKey: activeKey,
|
|
@@ -8097,11 +7884,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8097
7884
|
}, props), children);
|
|
8098
7885
|
});
|
|
8099
7886
|
Nav.displayName = 'Nav';
|
|
8100
|
-
Nav.defaultProps = defaultProps$
|
|
7887
|
+
Nav.defaultProps = defaultProps$t;
|
|
8101
7888
|
Nav.Item = NavItem;
|
|
8102
7889
|
Nav.Link = NavLink;
|
|
8103
7890
|
|
|
8104
|
-
var NavbarBrand =
|
|
7891
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8105
7892
|
var bsPrefix = _ref.bsPrefix,
|
|
8106
7893
|
className = _ref.className,
|
|
8107
7894
|
as = _ref.as,
|
|
@@ -8109,23 +7896,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8109
7896
|
|
|
8110
7897
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8111
7898
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8112
|
-
return /*#__PURE__*/
|
|
7899
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8113
7900
|
ref: ref,
|
|
8114
7901
|
className: classnames(className, bsPrefix)
|
|
8115
7902
|
}));
|
|
8116
7903
|
});
|
|
8117
7904
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8118
7905
|
|
|
8119
|
-
var NavbarCollapse =
|
|
7906
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8120
7907
|
var children = _ref.children,
|
|
8121
7908
|
bsPrefix = _ref.bsPrefix,
|
|
8122
7909
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8123
7910
|
|
|
8124
7911
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8125
|
-
return /*#__PURE__*/
|
|
8126
|
-
return /*#__PURE__*/
|
|
7912
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
7913
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8127
7914
|
in: !!(context && context.expanded)
|
|
8128
|
-
}, props), /*#__PURE__*/
|
|
7915
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8129
7916
|
ref: ref,
|
|
8130
7917
|
className: bsPrefix
|
|
8131
7918
|
}, children));
|
|
@@ -8133,10 +7920,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8133
7920
|
});
|
|
8134
7921
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8135
7922
|
|
|
8136
|
-
var defaultProps$
|
|
7923
|
+
var defaultProps$u = {
|
|
8137
7924
|
label: 'Toggle navigation'
|
|
8138
7925
|
};
|
|
8139
|
-
var NavbarToggle =
|
|
7926
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8140
7927
|
var bsPrefix = _ref.bsPrefix,
|
|
8141
7928
|
className = _ref.className,
|
|
8142
7929
|
children = _ref.children,
|
|
@@ -8148,7 +7935,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8148
7935
|
|
|
8149
7936
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8150
7937
|
|
|
8151
|
-
var _ref2 = useContext(context) || {},
|
|
7938
|
+
var _ref2 = useContext(context$2) || {},
|
|
8152
7939
|
onToggle = _ref2.onToggle,
|
|
8153
7940
|
expanded = _ref2.expanded;
|
|
8154
7941
|
|
|
@@ -8161,27 +7948,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8161
7948
|
props.type = 'button';
|
|
8162
7949
|
}
|
|
8163
7950
|
|
|
8164
|
-
return /*#__PURE__*/
|
|
7951
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8165
7952
|
ref: ref,
|
|
8166
7953
|
onClick: handleClick,
|
|
8167
7954
|
"aria-label": label,
|
|
8168
7955
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8169
|
-
}), children || /*#__PURE__*/
|
|
7956
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8170
7957
|
className: bsPrefix + "-icon"
|
|
8171
7958
|
}));
|
|
8172
7959
|
});
|
|
8173
7960
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8174
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
7961
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8175
7962
|
|
|
8176
7963
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8177
7964
|
Component: 'span'
|
|
8178
7965
|
});
|
|
8179
|
-
var defaultProps$
|
|
7966
|
+
var defaultProps$v = {
|
|
8180
7967
|
expand: true,
|
|
8181
7968
|
variant: 'light',
|
|
8182
7969
|
collapseOnSelect: false
|
|
8183
7970
|
};
|
|
8184
|
-
var Navbar =
|
|
7971
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8185
7972
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8186
7973
|
expanded: 'onToggle'
|
|
8187
7974
|
}),
|
|
@@ -8229,24 +8016,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8229
8016
|
expanded: !!expanded
|
|
8230
8017
|
};
|
|
8231
8018
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8232
|
-
return /*#__PURE__*/
|
|
8019
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8233
8020
|
value: navbarContext
|
|
8234
|
-
}, /*#__PURE__*/
|
|
8021
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8235
8022
|
value: handleCollapse
|
|
8236
|
-
}, /*#__PURE__*/
|
|
8023
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8237
8024
|
ref: ref
|
|
8238
8025
|
}, controlledProps, {
|
|
8239
8026
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8240
8027
|
}), children)));
|
|
8241
8028
|
});
|
|
8242
|
-
Navbar.defaultProps = defaultProps$
|
|
8029
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8243
8030
|
Navbar.displayName = 'Navbar';
|
|
8244
8031
|
Navbar.Brand = NavbarBrand;
|
|
8245
8032
|
Navbar.Toggle = NavbarToggle;
|
|
8246
8033
|
Navbar.Collapse = NavbarCollapse;
|
|
8247
8034
|
Navbar.Text = NavbarText;
|
|
8248
8035
|
|
|
8249
|
-
var propTypes$
|
|
8036
|
+
var propTypes$9 = {
|
|
8250
8037
|
/**
|
|
8251
8038
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8252
8039
|
* @type {string|number}
|
|
@@ -8282,7 +8069,7 @@ var propTypes$1 = {
|
|
|
8282
8069
|
/** @ignore */
|
|
8283
8070
|
bsPrefix: PropTypes.string
|
|
8284
8071
|
};
|
|
8285
|
-
var NavDropdown =
|
|
8072
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8286
8073
|
var id = _ref.id,
|
|
8287
8074
|
title = _ref.title,
|
|
8288
8075
|
children = _ref.children,
|
|
@@ -8294,35 +8081,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8294
8081
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8295
8082
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8296
8083
|
|
|
8297
|
-
return /*#__PURE__*/
|
|
8084
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8298
8085
|
ref: ref
|
|
8299
8086
|
}, props, {
|
|
8300
8087
|
as: NavItem
|
|
8301
|
-
}), /*#__PURE__*/
|
|
8088
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8302
8089
|
id: id,
|
|
8303
8090
|
eventKey: null,
|
|
8304
8091
|
active: active,
|
|
8305
8092
|
disabled: disabled,
|
|
8306
8093
|
childBsPrefix: bsPrefix,
|
|
8307
8094
|
as: NavLink
|
|
8308
|
-
}, title), /*#__PURE__*/
|
|
8095
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8309
8096
|
role: menuRole,
|
|
8310
8097
|
renderOnMount: renderMenuOnMount,
|
|
8311
8098
|
rootCloseEvent: rootCloseEvent
|
|
8312
8099
|
}, children));
|
|
8313
8100
|
});
|
|
8314
8101
|
NavDropdown.displayName = 'NavDropdown';
|
|
8315
|
-
NavDropdown.propTypes = propTypes$
|
|
8316
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8317
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8318
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8319
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8102
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8103
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8104
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8105
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8106
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8320
8107
|
|
|
8321
8108
|
/**
|
|
8322
8109
|
* Built on top of `Popper.js`, the overlay component is
|
|
8323
8110
|
* great for custom tooltip overlays.
|
|
8324
8111
|
*/
|
|
8325
|
-
var Overlay = /*#__PURE__*/
|
|
8112
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8326
8113
|
var flip = props.flip,
|
|
8327
8114
|
offset = props.offset,
|
|
8328
8115
|
placement = props.placement,
|
|
@@ -8405,7 +8192,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8405
8192
|
onEnter = props.onEnter,
|
|
8406
8193
|
onEntering = props.onEntering,
|
|
8407
8194
|
onEntered = props.onEntered;
|
|
8408
|
-
child = /*#__PURE__*/
|
|
8195
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8409
8196
|
"in": props.show,
|
|
8410
8197
|
appear: true,
|
|
8411
8198
|
onExit: onExit,
|
|
@@ -8557,7 +8344,7 @@ Overlay.propTypes = {
|
|
|
8557
8344
|
onExited: PropTypes.func
|
|
8558
8345
|
};
|
|
8559
8346
|
|
|
8560
|
-
/*#__PURE__*/
|
|
8347
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8561
8348
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8562
8349
|
|
|
8563
8350
|
function RefHolder() {
|
|
@@ -8571,14 +8358,14 @@ Overlay.propTypes = {
|
|
|
8571
8358
|
};
|
|
8572
8359
|
|
|
8573
8360
|
return RefHolder;
|
|
8574
|
-
}
|
|
8361
|
+
}(React.Component);
|
|
8575
8362
|
|
|
8576
|
-
var defaultProps$
|
|
8363
|
+
var defaultProps$w = {
|
|
8577
8364
|
active: false,
|
|
8578
8365
|
disabled: false,
|
|
8579
8366
|
activeLabel: '(current)'
|
|
8580
8367
|
};
|
|
8581
|
-
var PageItem =
|
|
8368
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8582
8369
|
var active = _ref.active,
|
|
8583
8370
|
disabled = _ref.disabled,
|
|
8584
8371
|
className = _ref.className,
|
|
@@ -8588,21 +8375,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8588
8375
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8589
8376
|
|
|
8590
8377
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8591
|
-
return /*#__PURE__*/
|
|
8378
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8592
8379
|
ref: ref,
|
|
8593
8380
|
style: style,
|
|
8594
8381
|
className: classnames(className, 'page-item', {
|
|
8595
8382
|
active: active,
|
|
8596
8383
|
disabled: disabled
|
|
8597
8384
|
})
|
|
8598
|
-
}, /*#__PURE__*/
|
|
8385
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8599
8386
|
className: "page-link",
|
|
8600
8387
|
disabled: disabled
|
|
8601
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8388
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8602
8389
|
className: "sr-only"
|
|
8603
8390
|
}, activeLabel)));
|
|
8604
8391
|
});
|
|
8605
|
-
PageItem.defaultProps = defaultProps$
|
|
8392
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8606
8393
|
PageItem.displayName = 'PageItem';
|
|
8607
8394
|
|
|
8608
8395
|
function createButton(name, defaultValue, label) {
|
|
@@ -8614,9 +8401,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8614
8401
|
var children = _ref2.children,
|
|
8615
8402
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8616
8403
|
|
|
8617
|
-
return /*#__PURE__*/
|
|
8404
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8618
8405
|
"aria-hidden": "true"
|
|
8619
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8406
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8620
8407
|
className: "sr-only"
|
|
8621
8408
|
}, label));
|
|
8622
8409
|
}
|
|
@@ -8639,7 +8426,7 @@ var Last = createButton('Last', '»');
|
|
|
8639
8426
|
* @property {PageItem} Next
|
|
8640
8427
|
* @property {PageItem} Last
|
|
8641
8428
|
*/
|
|
8642
|
-
var Pagination =
|
|
8429
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8643
8430
|
var bsPrefix = _ref.bsPrefix,
|
|
8644
8431
|
className = _ref.className,
|
|
8645
8432
|
children = _ref.children,
|
|
@@ -8647,7 +8434,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8647
8434
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8648
8435
|
|
|
8649
8436
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8650
|
-
return /*#__PURE__*/
|
|
8437
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8651
8438
|
ref: ref
|
|
8652
8439
|
}, props, {
|
|
8653
8440
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8660,7 +8447,7 @@ Pagination.Item = PageItem;
|
|
|
8660
8447
|
Pagination.Next = Next;
|
|
8661
8448
|
Pagination.Last = Last;
|
|
8662
8449
|
|
|
8663
|
-
var PopoverTitle =
|
|
8450
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8664
8451
|
var _ref$as = _ref.as,
|
|
8665
8452
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8666
8453
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8669,14 +8456,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8669
8456
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8670
8457
|
|
|
8671
8458
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8672
|
-
return /*#__PURE__*/
|
|
8459
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8673
8460
|
ref: ref
|
|
8674
8461
|
}, props, {
|
|
8675
8462
|
className: classnames(bsPrefix, className)
|
|
8676
8463
|
}), children);
|
|
8677
8464
|
});
|
|
8678
8465
|
|
|
8679
|
-
var PopoverContent =
|
|
8466
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8680
8467
|
var _ref$as = _ref.as,
|
|
8681
8468
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8682
8469
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8685,50 +8472,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8685
8472
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8686
8473
|
|
|
8687
8474
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8688
|
-
return /*#__PURE__*/
|
|
8475
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8689
8476
|
ref: ref
|
|
8690
8477
|
}, props, {
|
|
8691
8478
|
className: classnames(className, bsPrefix)
|
|
8692
8479
|
}), children);
|
|
8693
8480
|
});
|
|
8694
8481
|
|
|
8695
|
-
var defaultProps$
|
|
8482
|
+
var defaultProps$x = {
|
|
8696
8483
|
placement: 'right'
|
|
8697
8484
|
};
|
|
8698
|
-
var Popover =
|
|
8485
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8699
8486
|
var bsPrefix = _ref.bsPrefix,
|
|
8700
8487
|
placement = _ref.placement,
|
|
8701
8488
|
className = _ref.className,
|
|
8702
8489
|
style = _ref.style,
|
|
8703
8490
|
children = _ref.children,
|
|
8704
8491
|
content = _ref.content,
|
|
8705
|
-
arrowProps = _ref.arrowProps
|
|
8706
|
-
_ref.popper
|
|
8707
|
-
_ref.show
|
|
8708
|
-
|
|
8492
|
+
arrowProps = _ref.arrowProps,
|
|
8493
|
+
_ = _ref.popper,
|
|
8494
|
+
_1 = _ref.show,
|
|
8495
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8709
8496
|
|
|
8710
8497
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8711
8498
|
|
|
8712
8499
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8713
8500
|
primaryPlacement = _ref2[0];
|
|
8714
8501
|
|
|
8715
|
-
return /*#__PURE__*/
|
|
8502
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8716
8503
|
ref: ref,
|
|
8717
8504
|
role: "tooltip",
|
|
8718
8505
|
style: style,
|
|
8719
8506
|
"x-placement": primaryPlacement,
|
|
8720
8507
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8721
|
-
}, props), /*#__PURE__*/
|
|
8508
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8722
8509
|
className: "arrow"
|
|
8723
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8510
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8724
8511
|
});
|
|
8725
|
-
Popover.defaultProps = defaultProps$
|
|
8512
|
+
Popover.defaultProps = defaultProps$x;
|
|
8726
8513
|
Popover.Title = PopoverTitle;
|
|
8727
8514
|
Popover.Content = PopoverContent;
|
|
8728
8515
|
|
|
8729
8516
|
var ROUND_PRECISION = 1000;
|
|
8730
8517
|
|
|
8731
|
-
var defaultProps$
|
|
8518
|
+
var defaultProps$y = {
|
|
8732
8519
|
min: 0,
|
|
8733
8520
|
max: 100,
|
|
8734
8521
|
animated: false,
|
|
@@ -8758,7 +8545,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8758
8545
|
bsPrefix = _ref.bsPrefix,
|
|
8759
8546
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8760
8547
|
|
|
8761
|
-
return /*#__PURE__*/
|
|
8548
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8762
8549
|
ref: ref
|
|
8763
8550
|
}, props, {
|
|
8764
8551
|
role: "progressbar",
|
|
@@ -8769,12 +8556,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8769
8556
|
"aria-valuenow": now,
|
|
8770
8557
|
"aria-valuemin": min,
|
|
8771
8558
|
"aria-valuemax": max
|
|
8772
|
-
}), srOnly ? /*#__PURE__*/
|
|
8559
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8773
8560
|
className: "sr-only"
|
|
8774
8561
|
}, label) : label);
|
|
8775
8562
|
}
|
|
8776
8563
|
|
|
8777
|
-
var ProgressBar =
|
|
8564
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8778
8565
|
var isChild = _ref2.isChild,
|
|
8779
8566
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8780
8567
|
|
|
@@ -8797,7 +8584,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8797
8584
|
children = props.children,
|
|
8798
8585
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8799
8586
|
|
|
8800
|
-
return /*#__PURE__*/
|
|
8587
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8801
8588
|
ref: ref
|
|
8802
8589
|
}, wrapperProps, {
|
|
8803
8590
|
className: classnames(className, bsPrefix)
|
|
@@ -8818,12 +8605,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8818
8605
|
}, ref));
|
|
8819
8606
|
});
|
|
8820
8607
|
ProgressBar.displayName = 'ProgressBar';
|
|
8821
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8608
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8822
8609
|
|
|
8823
|
-
var defaultProps$
|
|
8610
|
+
var defaultProps$z = {
|
|
8824
8611
|
aspectRatio: '1by1'
|
|
8825
8612
|
};
|
|
8826
|
-
var ResponsiveEmbed =
|
|
8613
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8827
8614
|
var bsPrefix = _ref.bsPrefix,
|
|
8828
8615
|
className = _ref.className,
|
|
8829
8616
|
children = _ref.children,
|
|
@@ -8831,22 +8618,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8831
8618
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8832
8619
|
|
|
8833
8620
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8834
|
-
var child =
|
|
8835
|
-
return /*#__PURE__*/
|
|
8621
|
+
var child = React.Children.only(children);
|
|
8622
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8836
8623
|
ref: ref
|
|
8837
8624
|
}, props, {
|
|
8838
8625
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8839
|
-
}),
|
|
8626
|
+
}), React.cloneElement(child, {
|
|
8840
8627
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8841
8628
|
}));
|
|
8842
8629
|
});
|
|
8843
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8630
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8844
8631
|
|
|
8845
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8846
|
-
var defaultProps$
|
|
8632
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8633
|
+
var defaultProps$A = {
|
|
8847
8634
|
noGutters: false
|
|
8848
8635
|
};
|
|
8849
|
-
var Row =
|
|
8636
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8850
8637
|
var bsPrefix = _ref.bsPrefix,
|
|
8851
8638
|
className = _ref.className,
|
|
8852
8639
|
noGutters = _ref.noGutters,
|
|
@@ -8857,7 +8644,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8857
8644
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8858
8645
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8859
8646
|
var classes = [];
|
|
8860
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8647
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8861
8648
|
var propValue = props[brkPoint];
|
|
8862
8649
|
delete props[brkPoint];
|
|
8863
8650
|
var cols;
|
|
@@ -8871,16 +8658,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8871
8658
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8872
8659
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8873
8660
|
});
|
|
8874
|
-
return /*#__PURE__*/
|
|
8661
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8875
8662
|
ref: ref
|
|
8876
8663
|
}, props, {
|
|
8877
8664
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8878
8665
|
}));
|
|
8879
8666
|
});
|
|
8880
8667
|
Row.displayName = 'Row';
|
|
8881
|
-
Row.defaultProps = defaultProps$
|
|
8668
|
+
Row.defaultProps = defaultProps$A;
|
|
8882
8669
|
|
|
8883
|
-
var Spinner =
|
|
8670
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8884
8671
|
var bsPrefix = _ref.bsPrefix,
|
|
8885
8672
|
variant = _ref.variant,
|
|
8886
8673
|
animation = _ref.animation,
|
|
@@ -8893,7 +8680,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8893
8680
|
|
|
8894
8681
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8895
8682
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8896
|
-
return /*#__PURE__*/
|
|
8683
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8897
8684
|
ref: ref
|
|
8898
8685
|
}, props, {
|
|
8899
8686
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8901,7 +8688,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8901
8688
|
});
|
|
8902
8689
|
Spinner.displayName = 'Spinner';
|
|
8903
8690
|
|
|
8904
|
-
var propTypes = {
|
|
8691
|
+
var propTypes$a = {
|
|
8905
8692
|
/**
|
|
8906
8693
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8907
8694
|
* @type {string|number}
|
|
@@ -8932,15 +8719,6 @@ var propTypes = {
|
|
|
8932
8719
|
/** Disables both Buttons */
|
|
8933
8720
|
disabled: PropTypes.bool,
|
|
8934
8721
|
|
|
8935
|
-
/**
|
|
8936
|
-
* Aligns the dropdown menu responsively.
|
|
8937
|
-
*
|
|
8938
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8939
|
-
*
|
|
8940
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8941
|
-
*/
|
|
8942
|
-
menuAlign: alignPropType,
|
|
8943
|
-
|
|
8944
8722
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8945
8723
|
menuRole: PropTypes.string,
|
|
8946
8724
|
|
|
@@ -8950,7 +8728,7 @@ var propTypes = {
|
|
|
8950
8728
|
/**
|
|
8951
8729
|
* Which event when fired outside the component will cause it to be closed.
|
|
8952
8730
|
*
|
|
8953
|
-
* _see [DropdownMenu](#
|
|
8731
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8954
8732
|
*/
|
|
8955
8733
|
rootCloseEvent: PropTypes.string,
|
|
8956
8734
|
|
|
@@ -8963,11 +8741,11 @@ var propTypes = {
|
|
|
8963
8741
|
/** @ignore */
|
|
8964
8742
|
size: PropTypes.string
|
|
8965
8743
|
};
|
|
8966
|
-
var defaultProps$
|
|
8744
|
+
var defaultProps$B = {
|
|
8967
8745
|
toggleLabel: 'Toggle dropdown',
|
|
8968
8746
|
type: 'button'
|
|
8969
8747
|
};
|
|
8970
|
-
var SplitButton =
|
|
8748
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8971
8749
|
var id = _ref.id,
|
|
8972
8750
|
bsPrefix = _ref.bsPrefix,
|
|
8973
8751
|
size = _ref.size,
|
|
@@ -8979,17 +8757,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8979
8757
|
onClick = _ref.onClick,
|
|
8980
8758
|
href = _ref.href,
|
|
8981
8759
|
target = _ref.target,
|
|
8982
|
-
menuAlign = _ref.menuAlign,
|
|
8983
8760
|
menuRole = _ref.menuRole,
|
|
8984
8761
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8985
8762
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8986
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "
|
|
8763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8987
8764
|
|
|
8988
|
-
return /*#__PURE__*/
|
|
8765
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8989
8766
|
ref: ref
|
|
8990
8767
|
}, props, {
|
|
8991
8768
|
as: ButtonGroup
|
|
8992
|
-
}), /*#__PURE__*/
|
|
8769
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8993
8770
|
size: size,
|
|
8994
8771
|
variant: variant,
|
|
8995
8772
|
disabled: props.disabled,
|
|
@@ -8998,24 +8775,23 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8998
8775
|
target: target,
|
|
8999
8776
|
onClick: onClick,
|
|
9000
8777
|
type: type
|
|
9001
|
-
}, title), /*#__PURE__*/
|
|
8778
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
9002
8779
|
split: true,
|
|
9003
8780
|
id: id ? id.toString() : undefined,
|
|
9004
8781
|
size: size,
|
|
9005
8782
|
variant: variant,
|
|
9006
8783
|
disabled: props.disabled,
|
|
9007
8784
|
childBsPrefix: bsPrefix
|
|
9008
|
-
}, /*#__PURE__*/
|
|
8785
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9009
8786
|
className: "sr-only"
|
|
9010
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
9011
|
-
align: menuAlign,
|
|
8787
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
9012
8788
|
role: menuRole,
|
|
9013
8789
|
renderOnMount: renderMenuOnMount,
|
|
9014
8790
|
rootCloseEvent: rootCloseEvent
|
|
9015
8791
|
}, children));
|
|
9016
8792
|
});
|
|
9017
|
-
SplitButton.propTypes = propTypes;
|
|
9018
|
-
SplitButton.defaultProps = defaultProps$
|
|
8793
|
+
SplitButton.propTypes = propTypes$a;
|
|
8794
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9019
8795
|
SplitButton.displayName = 'SplitButton';
|
|
9020
8796
|
|
|
9021
8797
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9051,14 +8827,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9051
8827
|
}
|
|
9052
8828
|
};
|
|
9053
8829
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9054
|
-
return /*#__PURE__*/
|
|
8830
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9055
8831
|
value: tabContext
|
|
9056
|
-
}, /*#__PURE__*/
|
|
8832
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9057
8833
|
value: onSelect || null
|
|
9058
8834
|
}, children));
|
|
9059
8835
|
};
|
|
9060
8836
|
|
|
9061
|
-
var TabContent =
|
|
8837
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9062
8838
|
var bsPrefix = _ref.bsPrefix,
|
|
9063
8839
|
_ref$as = _ref.as,
|
|
9064
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9066,7 +8842,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9066
8842
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9067
8843
|
|
|
9068
8844
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9069
|
-
return /*#__PURE__*/
|
|
8845
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9070
8846
|
ref: ref
|
|
9071
8847
|
}, props, {
|
|
9072
8848
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9094,7 +8870,7 @@ function useTabContext(props) {
|
|
|
9094
8870
|
});
|
|
9095
8871
|
}
|
|
9096
8872
|
|
|
9097
|
-
var TabPane =
|
|
8873
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9098
8874
|
var _useTabContext = useTabContext(props),
|
|
9099
8875
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9100
8876
|
className = _useTabContext.className,
|
|
@@ -9109,13 +8885,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9109
8885
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9110
8886
|
Transition = _useTabContext.transition,
|
|
9111
8887
|
_useTabContext$as = _useTabContext.as,
|
|
9112
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9113
|
-
_useTabContext.eventKey
|
|
9114
|
-
|
|
8888
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8889
|
+
_ = _useTabContext.eventKey,
|
|
8890
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9115
8891
|
|
|
9116
8892
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9117
8893
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9118
|
-
var pane = /*#__PURE__*/
|
|
8894
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9119
8895
|
ref: ref,
|
|
9120
8896
|
role: "tabpanel",
|
|
9121
8897
|
"aria-hidden": !active,
|
|
@@ -9123,7 +8899,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9123
8899
|
active: active
|
|
9124
8900
|
})
|
|
9125
8901
|
}));
|
|
9126
|
-
if (Transition) pane = /*#__PURE__*/
|
|
8902
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9127
8903
|
in: active,
|
|
9128
8904
|
onEnter: onEnter,
|
|
9129
8905
|
onEntering: onEntering,
|
|
@@ -9136,9 +8912,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9136
8912
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9137
8913
|
// conflict with the top level one.
|
|
9138
8914
|
|
|
9139
|
-
return /*#__PURE__*/
|
|
8915
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9140
8916
|
value: null
|
|
9141
|
-
}, /*#__PURE__*/
|
|
8917
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9142
8918
|
value: null
|
|
9143
8919
|
}, pane));
|
|
9144
8920
|
});
|
|
@@ -9159,13 +8935,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9159
8935
|
};
|
|
9160
8936
|
|
|
9161
8937
|
return Tab;
|
|
9162
|
-
}(
|
|
8938
|
+
}(React.Component);
|
|
9163
8939
|
|
|
9164
8940
|
Tab.Container = TabContainer;
|
|
9165
8941
|
Tab.Content = TabContent;
|
|
9166
8942
|
Tab.Pane = TabPane;
|
|
9167
8943
|
|
|
9168
|
-
|
|
8944
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9169
8945
|
var bsPrefix = _ref.bsPrefix,
|
|
9170
8946
|
className = _ref.className,
|
|
9171
8947
|
striped = _ref.striped,
|
|
@@ -9179,7 +8955,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9179
8955
|
|
|
9180
8956
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9181
8957
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9182
|
-
var table = /*#__PURE__*/
|
|
8958
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9183
8959
|
className: classes,
|
|
9184
8960
|
ref: ref
|
|
9185
8961
|
}));
|
|
@@ -9191,7 +8967,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9191
8967
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9192
8968
|
}
|
|
9193
8969
|
|
|
9194
|
-
return /*#__PURE__*/
|
|
8970
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9195
8971
|
className: responsiveClass
|
|
9196
8972
|
}, table);
|
|
9197
8973
|
}
|
|
@@ -9199,16 +8975,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9199
8975
|
return table;
|
|
9200
8976
|
});
|
|
9201
8977
|
|
|
9202
|
-
var ToastContext =
|
|
8978
|
+
var ToastContext = React.createContext({
|
|
9203
8979
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9204
8980
|
onClose: function onClose() {}
|
|
9205
8981
|
});
|
|
9206
8982
|
|
|
9207
|
-
var defaultProps$
|
|
8983
|
+
var defaultProps$C = {
|
|
9208
8984
|
closeLabel: 'Close',
|
|
9209
8985
|
closeButton: true
|
|
9210
8986
|
};
|
|
9211
|
-
var ToastHeader =
|
|
8987
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9212
8988
|
var bsPrefix = _ref.bsPrefix,
|
|
9213
8989
|
closeLabel = _ref.closeLabel,
|
|
9214
8990
|
closeButton = _ref.closeButton,
|
|
@@ -9223,11 +8999,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9223
8999
|
context.onClose(e);
|
|
9224
9000
|
}
|
|
9225
9001
|
});
|
|
9226
|
-
return /*#__PURE__*/
|
|
9002
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9227
9003
|
ref: ref
|
|
9228
9004
|
}, props, {
|
|
9229
9005
|
className: classnames(bsPrefix, className)
|
|
9230
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9006
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9231
9007
|
label: closeLabel,
|
|
9232
9008
|
onClick: handleClick,
|
|
9233
9009
|
className: "ml-2 mb-1",
|
|
@@ -9235,11 +9011,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9235
9011
|
}));
|
|
9236
9012
|
});
|
|
9237
9013
|
ToastHeader.displayName = 'ToastHeader';
|
|
9238
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9014
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9239
9015
|
|
|
9240
9016
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9241
9017
|
|
|
9242
|
-
var Toast =
|
|
9018
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9243
9019
|
var bsPrefix = _ref.bsPrefix,
|
|
9244
9020
|
className = _ref.className,
|
|
9245
9021
|
children = _ref.children,
|
|
@@ -9282,16 +9058,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9282
9058
|
};
|
|
9283
9059
|
}, [onClose]);
|
|
9284
9060
|
var hasAnimation = !!(Transition && animation);
|
|
9285
|
-
var toast = /*#__PURE__*/
|
|
9061
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9286
9062
|
ref: ref,
|
|
9287
9063
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9288
9064
|
role: "alert",
|
|
9289
9065
|
"aria-live": "assertive",
|
|
9290
9066
|
"aria-atomic": "true"
|
|
9291
9067
|
}), children);
|
|
9292
|
-
return /*#__PURE__*/
|
|
9068
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9293
9069
|
value: toastContext
|
|
9294
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9070
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9295
9071
|
in: show,
|
|
9296
9072
|
unmountOnExit: true
|
|
9297
9073
|
}, toast) : toast);
|
|
@@ -9302,11 +9078,11 @@ Object.assign(Toast, {
|
|
|
9302
9078
|
Header: ToastHeader
|
|
9303
9079
|
});
|
|
9304
9080
|
|
|
9305
|
-
var noop = function noop() {
|
|
9081
|
+
var noop$5 = function noop() {
|
|
9306
9082
|
return undefined;
|
|
9307
9083
|
};
|
|
9308
9084
|
|
|
9309
|
-
var ToggleButton =
|
|
9085
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9310
9086
|
var children = _ref.children,
|
|
9311
9087
|
name = _ref.name,
|
|
9312
9088
|
className = _ref.className,
|
|
@@ -9328,13 +9104,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9328
9104
|
var handleBlur = useCallback(function (e) {
|
|
9329
9105
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9330
9106
|
}, []);
|
|
9331
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9332
9108
|
ref: ref,
|
|
9333
9109
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9334
9110
|
type: undefined,
|
|
9335
9111
|
active: !!checked,
|
|
9336
9112
|
as: "label"
|
|
9337
|
-
}), /*#__PURE__*/
|
|
9113
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9338
9114
|
name: name,
|
|
9339
9115
|
type: type,
|
|
9340
9116
|
value: value,
|
|
@@ -9344,16 +9120,15 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9344
9120
|
disabled: !!disabled,
|
|
9345
9121
|
onFocus: handleFocus,
|
|
9346
9122
|
onBlur: handleBlur,
|
|
9347
|
-
onChange: onChange || noop
|
|
9123
|
+
onChange: onChange || noop$5
|
|
9348
9124
|
}), children);
|
|
9349
9125
|
});
|
|
9350
9126
|
ToggleButton.displayName = 'ToggleButton';
|
|
9351
9127
|
|
|
9352
|
-
var defaultProps$
|
|
9353
|
-
type: 'radio'
|
|
9354
|
-
vertical: false
|
|
9128
|
+
var defaultProps$D = {
|
|
9129
|
+
type: 'radio'
|
|
9355
9130
|
};
|
|
9356
|
-
var ToggleButtonGroup =
|
|
9131
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9357
9132
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9358
9133
|
value: 'onChange'
|
|
9359
9134
|
}),
|
|
@@ -9391,7 +9166,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9391
9166
|
};
|
|
9392
9167
|
|
|
9393
9168
|
!(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;
|
|
9394
|
-
return /*#__PURE__*/
|
|
9169
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9395
9170
|
ref: ref,
|
|
9396
9171
|
toggle: true
|
|
9397
9172
|
}), map(children, function (child) {
|
|
@@ -9404,7 +9179,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9404
9179
|
return handleToggle(childVal, e);
|
|
9405
9180
|
};
|
|
9406
9181
|
|
|
9407
|
-
return
|
|
9182
|
+
return React.cloneElement(child, {
|
|
9408
9183
|
type: type,
|
|
9409
9184
|
name: child.name || name,
|
|
9410
9185
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9412,41 +9187,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9412
9187
|
});
|
|
9413
9188
|
}));
|
|
9414
9189
|
});
|
|
9415
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9190
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9416
9191
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9417
9192
|
|
|
9418
|
-
var defaultProps = {
|
|
9193
|
+
var defaultProps$E = {
|
|
9419
9194
|
placement: 'right'
|
|
9420
9195
|
};
|
|
9421
|
-
var Tooltip =
|
|
9196
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9422
9197
|
var bsPrefix = _ref.bsPrefix,
|
|
9423
9198
|
placement = _ref.placement,
|
|
9424
9199
|
className = _ref.className,
|
|
9425
9200
|
style = _ref.style,
|
|
9426
9201
|
children = _ref.children,
|
|
9427
|
-
arrowProps = _ref.arrowProps
|
|
9428
|
-
_ref.popper
|
|
9429
|
-
_ref.show
|
|
9430
|
-
|
|
9202
|
+
arrowProps = _ref.arrowProps,
|
|
9203
|
+
_ = _ref.popper,
|
|
9204
|
+
_2 = _ref.show,
|
|
9205
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9431
9206
|
|
|
9432
9207
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9433
9208
|
|
|
9434
9209
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9435
9210
|
primaryPlacement = _ref2[0];
|
|
9436
9211
|
|
|
9437
|
-
return /*#__PURE__*/
|
|
9212
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9438
9213
|
ref: ref,
|
|
9439
9214
|
style: style,
|
|
9440
9215
|
role: "tooltip",
|
|
9441
9216
|
"x-placement": primaryPlacement,
|
|
9442
9217
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9443
|
-
}, props), /*#__PURE__*/
|
|
9218
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9444
9219
|
className: "arrow"
|
|
9445
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9220
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9446
9221
|
className: bsPrefix + "-inner"
|
|
9447
9222
|
}, children));
|
|
9448
9223
|
});
|
|
9449
|
-
Tooltip.defaultProps = defaultProps;
|
|
9224
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9450
9225
|
Tooltip.displayName = 'Tooltip';
|
|
9451
9226
|
|
|
9452
9227
|
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";
|
|
@@ -9460,58 +9235,58 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9460
9235
|
client = props.client;
|
|
9461
9236
|
|
|
9462
9237
|
|
|
9463
|
-
return
|
|
9238
|
+
return React.createElement(
|
|
9464
9239
|
'div',
|
|
9465
9240
|
{ className: 'media-series-article ' + styles.article },
|
|
9466
|
-
|
|
9241
|
+
React.createElement(
|
|
9467
9242
|
'a',
|
|
9468
9243
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9469
|
-
|
|
9244
|
+
React.createElement(
|
|
9470
9245
|
'div',
|
|
9471
9246
|
{ className: 'media-series-thumbnail ' + styles.thumb },
|
|
9472
|
-
data.thumbnail && data.thumbnail.asset &&
|
|
9247
|
+
data.thumbnail && data.thumbnail.asset && React.createElement(
|
|
9473
9248
|
'figure',
|
|
9474
9249
|
null,
|
|
9475
|
-
|
|
9250
|
+
React.createElement(
|
|
9476
9251
|
LazyLoad,
|
|
9477
9252
|
null,
|
|
9478
|
-
|
|
9253
|
+
React.createElement('img', {
|
|
9479
9254
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9480
9255
|
})
|
|
9481
9256
|
)
|
|
9482
9257
|
)
|
|
9483
9258
|
),
|
|
9484
|
-
|
|
9259
|
+
React.createElement(
|
|
9485
9260
|
'div',
|
|
9486
9261
|
{ className: 'media-series-info ' + styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9487
|
-
|
|
9262
|
+
React.createElement(
|
|
9488
9263
|
'div',
|
|
9489
9264
|
{ className: 'media-series-name ' + styles.name },
|
|
9490
9265
|
data.name
|
|
9491
9266
|
),
|
|
9492
|
-
data.published &&
|
|
9267
|
+
data.published && React.createElement(
|
|
9493
9268
|
'p',
|
|
9494
9269
|
{ className: 'media-series-published ' + styles.published },
|
|
9495
9270
|
moment(data.published).format('MMMM Do YYYY')
|
|
9496
9271
|
),
|
|
9497
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9272
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9498
9273
|
'p',
|
|
9499
9274
|
{ className: 'media-series-author ' + styles.author },
|
|
9500
9275
|
'By ',
|
|
9501
|
-
|
|
9276
|
+
React.createElement(
|
|
9502
9277
|
'span',
|
|
9503
9278
|
null,
|
|
9504
9279
|
data.authorMapping.displayName
|
|
9505
9280
|
)
|
|
9506
9281
|
),
|
|
9507
|
-
data.description &&
|
|
9282
|
+
data.description && React.createElement(
|
|
9508
9283
|
'div',
|
|
9509
9284
|
{ className: 'media-series-desc' },
|
|
9510
|
-
|
|
9285
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9511
9286
|
)
|
|
9512
9287
|
)
|
|
9513
9288
|
)
|
|
9514
9289
|
);
|
|
9515
9290
|
};
|
|
9516
9291
|
|
|
9517
|
-
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|
|
9292
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown$1 as a };
|