@mjhls/mjh-framework 1.0.983 → 1.0.984
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 -14178
- 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 +346 -482
- package/dist/cjs/AuthWrapper.js +13 -1766
- 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 -23
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -38
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -34
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +12 -13
- 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 +46 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +27 -27
- 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 +19 -20
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -34
- package/dist/cjs/{MediaSeriesCard-958db77e.js → MediaSeriesCard-408eaac7.js} +799 -1002
- package/dist/cjs/MediaSeriesLanding.js +51 -52
- package/dist/cjs/MediaSeriesLandingPaginated.js +57 -58
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +30 -30
- 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-1e0d5f1d.js → Pagination-7624a3bd.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +62 -63
- package/dist/cjs/PartnerDetailListingPaginated.js +62 -63
- 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 -39
- 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 +118 -117
- 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-3c5754ac.js → getTargeting-1359b868.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-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-fbf4dd38.js → index-7deba8d6.js} +166 -415
- 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 +145 -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} +4 -4
- 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 +7 -7
- package/dist/esm/AD300x250.js +24 -25
- package/dist/esm/AD300x250x600.js +24 -25
- package/dist/esm/AD728x90.js +27 -28
- package/dist/esm/ADFloatingFooter.js +26 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -27
- package/dist/esm/{ADInfeed-6d1fc6bf.js → ADInfeed-310d113c.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -27
- package/dist/esm/ADSponsoredResources.js +26 -27
- package/dist/esm/ADWebcast.js +26 -27
- package/dist/esm/ADWelcome.js +27 -28
- package/dist/esm/{ADlgInfeed-dc36c928.js → ADlgInfeed-eeaa14e2.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -23
- package/dist/esm/AdSlotsProvider.js +12 -13
- package/dist/esm/AlgoliaSearch.js +55 -14202
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +35 -36
- package/dist/esm/ArticleSeriesListing.js +54 -55
- package/dist/esm/Auth.js +417 -553
- package/dist/esm/AuthWrapper.js +26 -1780
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -78
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -50
- package/dist/esm/ConferenceArticleCard.js +23 -23
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -73
- package/dist/esm/DeckContent.js +76 -77
- package/dist/esm/DeckQueue.js +70 -71
- package/dist/esm/DeckQueuePaginated.js +63 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-e151d2de.js} +20 -21
- package/dist/esm/EventsDeck.js +86 -86
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +145 -146
- package/dist/esm/GridContentPaginated.js +133 -134
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/HealthCareProfessionalModal.js +12 -12
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +70 -70
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-5ae6287a.js +1375 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +32 -33
- package/dist/esm/MasterDeck.js +63 -64
- package/dist/esm/MasterDeckPaginated.js +55 -56
- package/dist/esm/{MediaSeriesCard-4279b0c5.js → MediaSeriesCard-ae83cba2.js} +799 -1002
- package/dist/esm/MediaSeriesLanding.js +76 -77
- package/dist/esm/MediaSeriesLandingPaginated.js +80 -81
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +111 -111
- package/dist/esm/NavNative.js +101 -101
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-cd21f8c2.js → Pagination-1e09918f.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +97 -98
- package/dist/esm/PartnerDetailListingPaginated.js +93 -94
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PtceDeck.js +23 -23
- package/dist/esm/PubSection.js +37 -38
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +74 -78
- package/dist/esm/QueueDeckExpanded.js +273 -274
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -254
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +23 -23
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -31
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-4b56cd8c.js → SocialSearchComponent-77a22145.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +65 -66
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +29 -29
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -41
- package/dist/esm/VideoSeriesListing.js +70 -71
- package/dist/esm/View.js +321 -320
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +48 -48
- 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/getPtceActivities.js +4 -4
- package/dist/esm/getRelatedArticle.js +69 -133
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-260246fb.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-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-73f8a403.js → index-620826cb.js} +575 -825
- 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 +171 -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 +1 -1
- 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 +4 -4
- package/dist/esm/{urlForFile-b69adffc.js → urlForFile-0fc42ed8.js} +1 -1
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-cbba615a.js} +4 -4
- 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/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/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-620826cb.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,50 +2577,21 @@ function getBasePlacement(placement) {
|
|
|
2626
2577
|
return placement.split('-')[0];
|
|
2627
2578
|
}
|
|
2628
2579
|
|
|
2629
|
-
|
|
2630
|
-
var rect = element.getBoundingClientRect();
|
|
2631
|
-
return {
|
|
2632
|
-
width: rect.width,
|
|
2633
|
-
height: rect.height,
|
|
2634
|
-
top: rect.top,
|
|
2635
|
-
right: rect.right,
|
|
2636
|
-
bottom: rect.bottom,
|
|
2637
|
-
left: rect.left,
|
|
2638
|
-
x: rect.left,
|
|
2639
|
-
y: rect.top
|
|
2640
|
-
};
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2580
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2643
2581
|
// means it doesn't take into account transforms.
|
|
2644
|
-
|
|
2645
2582
|
function getLayoutRect(element) {
|
|
2646
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2647
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2648
|
-
|
|
2649
|
-
var width = element.offsetWidth;
|
|
2650
|
-
var height = element.offsetHeight;
|
|
2651
|
-
|
|
2652
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2653
|
-
width = clientRect.width;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2657
|
-
height = clientRect.height;
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
2583
|
return {
|
|
2661
2584
|
x: element.offsetLeft,
|
|
2662
2585
|
y: element.offsetTop,
|
|
2663
|
-
width:
|
|
2664
|
-
height:
|
|
2586
|
+
width: element.offsetWidth,
|
|
2587
|
+
height: element.offsetHeight
|
|
2665
2588
|
};
|
|
2666
2589
|
}
|
|
2667
2590
|
|
|
2668
|
-
|
|
2669
|
-
if (node == null) {
|
|
2670
|
-
return window;
|
|
2671
|
-
}
|
|
2591
|
+
/*:: import type { Window } from '../types'; */
|
|
2672
2592
|
|
|
2593
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2594
|
+
function getWindow(node) {
|
|
2673
2595
|
if (node.toString() !== '[object Window]') {
|
|
2674
2596
|
var ownerDocument = node.ownerDocument;
|
|
2675
2597
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2678,39 +2600,43 @@ function getWindow(node) {
|
|
|
2678
2600
|
return node;
|
|
2679
2601
|
}
|
|
2680
2602
|
|
|
2603
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2604
|
+
Element); */
|
|
2605
|
+
|
|
2681
2606
|
function isElement(node) {
|
|
2682
2607
|
var OwnElement = getWindow(node).Element;
|
|
2683
2608
|
return node instanceof OwnElement || node instanceof Element;
|
|
2684
2609
|
}
|
|
2610
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2611
|
+
HTMLElement); */
|
|
2612
|
+
|
|
2685
2613
|
|
|
2686
2614
|
function isHTMLElement(node) {
|
|
2687
2615
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2688
2616
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2689
2617
|
}
|
|
2618
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2619
|
+
ShadowRoot); */
|
|
2690
2620
|
|
|
2691
|
-
function isShadowRoot(node) {
|
|
2692
|
-
// IE 11 has no ShadowRoot
|
|
2693
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2694
|
-
return false;
|
|
2695
|
-
}
|
|
2696
2621
|
|
|
2622
|
+
function isShadowRoot(node) {
|
|
2697
2623
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2698
2624
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2699
2625
|
}
|
|
2700
2626
|
|
|
2701
|
-
function contains
|
|
2627
|
+
function contains(parent, child) {
|
|
2702
2628
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2703
2629
|
|
|
2704
2630
|
if (parent.contains(child)) {
|
|
2705
2631
|
return true;
|
|
2706
2632
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2707
|
-
else if (
|
|
2633
|
+
else if (isShadowRoot(rootNode)) {
|
|
2708
2634
|
var next = child;
|
|
2709
2635
|
|
|
2710
2636
|
do {
|
|
2711
2637
|
if (next && parent.isSameNode(next)) {
|
|
2712
2638
|
return true;
|
|
2713
|
-
} // $FlowFixMe
|
|
2639
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2714
2640
|
|
|
2715
2641
|
|
|
2716
2642
|
next = next.parentNode || next.host;
|
|
@@ -2725,7 +2651,7 @@ function getNodeName(element) {
|
|
|
2725
2651
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2726
2652
|
}
|
|
2727
2653
|
|
|
2728
|
-
function getComputedStyle$
|
|
2654
|
+
function getComputedStyle$2(element) {
|
|
2729
2655
|
return getWindow(element).getComputedStyle(element);
|
|
2730
2656
|
}
|
|
2731
2657
|
|
|
@@ -2734,9 +2660,8 @@ function isTableElement(element) {
|
|
|
2734
2660
|
}
|
|
2735
2661
|
|
|
2736
2662
|
function getDocumentElement(element) {
|
|
2737
|
-
// $FlowFixMe
|
|
2738
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2739
|
-
element.document) || window.document).documentElement;
|
|
2663
|
+
// $FlowFixMe: assume body is always available
|
|
2664
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2740
2665
|
}
|
|
2741
2666
|
|
|
2742
2667
|
function getParentNode(element) {
|
|
@@ -2744,13 +2669,12 @@ function getParentNode(element) {
|
|
|
2744
2669
|
return element;
|
|
2745
2670
|
}
|
|
2746
2671
|
|
|
2747
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2748
|
-
// $FlowFixMe[incompatible-return]
|
|
2749
|
-
// $FlowFixMe[prop-missing]
|
|
2672
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2750
2673
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2751
|
-
element.parentNode ||
|
|
2752
|
-
|
|
2753
|
-
|
|
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
|
|
2754
2678
|
getDocumentElement(element) // fallback
|
|
2755
2679
|
|
|
2756
2680
|
);
|
|
@@ -2758,36 +2682,33 @@ function getParentNode(element) {
|
|
|
2758
2682
|
|
|
2759
2683
|
function getTrueOffsetParent(element) {
|
|
2760
2684
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2761
|
-
getComputedStyle$
|
|
2685
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2762
2686
|
return null;
|
|
2763
2687
|
}
|
|
2764
2688
|
|
|
2765
|
-
|
|
2766
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2767
|
-
// return the containing block
|
|
2689
|
+
var offsetParent = element.offsetParent;
|
|
2768
2690
|
|
|
2691
|
+
if (offsetParent) {
|
|
2692
|
+
var html = getDocumentElement(offsetParent);
|
|
2769
2693
|
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2773
|
-
|
|
2774
|
-
if (isIE && isHTMLElement(element)) {
|
|
2775
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2776
|
-
var elementCss = getComputedStyle$1(element);
|
|
2777
|
-
|
|
2778
|
-
if (elementCss.position === 'fixed') {
|
|
2779
|
-
return null;
|
|
2694
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2695
|
+
return html;
|
|
2780
2696
|
}
|
|
2781
2697
|
}
|
|
2782
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) {
|
|
2783
2705
|
var currentNode = getParentNode(element);
|
|
2784
2706
|
|
|
2785
2707
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2786
|
-
var css = getComputedStyle$
|
|
2708
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2787
2709
|
// create a containing block.
|
|
2788
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2789
2710
|
|
|
2790
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2711
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2791
2712
|
return currentNode;
|
|
2792
2713
|
} else {
|
|
2793
2714
|
currentNode = currentNode.parentNode;
|
|
@@ -2803,11 +2724,11 @@ function getOffsetParent(element) {
|
|
|
2803
2724
|
var window = getWindow(element);
|
|
2804
2725
|
var offsetParent = getTrueOffsetParent(element);
|
|
2805
2726
|
|
|
2806
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2727
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2807
2728
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2808
2729
|
}
|
|
2809
2730
|
|
|
2810
|
-
if (offsetParent &&
|
|
2731
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2811
2732
|
return window;
|
|
2812
2733
|
}
|
|
2813
2734
|
|
|
@@ -2818,12 +2739,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2818
2739
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2819
2740
|
}
|
|
2820
2741
|
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
var round = Math.round;
|
|
2824
|
-
|
|
2825
|
-
function within(min$1, value, max$1) {
|
|
2826
|
-
return max(min$1, min(value, max$1));
|
|
2742
|
+
function within(min, value, max) {
|
|
2743
|
+
return Math.max(min, Math.min(value, max));
|
|
2827
2744
|
}
|
|
2828
2745
|
|
|
2829
2746
|
function getFreshSideObject() {
|
|
@@ -2836,7 +2753,7 @@ function getFreshSideObject() {
|
|
|
2836
2753
|
}
|
|
2837
2754
|
|
|
2838
2755
|
function mergePaddingObject(paddingObject) {
|
|
2839
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2756
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2840
2757
|
}
|
|
2841
2758
|
|
|
2842
2759
|
function expandToHashMap(value, keys) {
|
|
@@ -2846,19 +2763,11 @@ function expandToHashMap(value, keys) {
|
|
|
2846
2763
|
}, {});
|
|
2847
2764
|
}
|
|
2848
2765
|
|
|
2849
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2850
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2851
|
-
placement: state.placement
|
|
2852
|
-
})) : padding;
|
|
2853
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
2766
|
function arrow(_ref) {
|
|
2857
2767
|
var _state$modifiersData$;
|
|
2858
2768
|
|
|
2859
2769
|
var state = _ref.state,
|
|
2860
|
-
name = _ref.name
|
|
2861
|
-
options = _ref.options;
|
|
2770
|
+
name = _ref.name;
|
|
2862
2771
|
var arrowElement = state.elements.arrow;
|
|
2863
2772
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2864
2773
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2870,7 +2779,7 @@ function arrow(_ref) {
|
|
|
2870
2779
|
return;
|
|
2871
2780
|
}
|
|
2872
2781
|
|
|
2873
|
-
var paddingObject =
|
|
2782
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2874
2783
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2875
2784
|
var minProp = axis === 'y' ? top : left;
|
|
2876
2785
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2890,11 +2799,14 @@ function arrow(_ref) {
|
|
|
2890
2799
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2891
2800
|
}
|
|
2892
2801
|
|
|
2893
|
-
function effect
|
|
2802
|
+
function effect(_ref2) {
|
|
2894
2803
|
var state = _ref2.state,
|
|
2895
|
-
options = _ref2.options
|
|
2804
|
+
options = _ref2.options,
|
|
2805
|
+
name = _ref2.name;
|
|
2896
2806
|
var _options$element = options.element,
|
|
2897
|
-
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;
|
|
2898
2810
|
|
|
2899
2811
|
if (arrowElement == null) {
|
|
2900
2812
|
return;
|
|
@@ -2915,7 +2827,7 @@ function effect$1(_ref2) {
|
|
|
2915
2827
|
}
|
|
2916
2828
|
}
|
|
2917
2829
|
|
|
2918
|
-
if (!contains
|
|
2830
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2919
2831
|
if (process.env.NODE_ENV !== "production") {
|
|
2920
2832
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2921
2833
|
}
|
|
@@ -2924,6 +2836,9 @@ function effect$1(_ref2) {
|
|
|
2924
2836
|
}
|
|
2925
2837
|
|
|
2926
2838
|
state.elements.arrow = arrowElement;
|
|
2839
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2840
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2841
|
+
};
|
|
2927
2842
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2928
2843
|
|
|
2929
2844
|
|
|
@@ -2932,7 +2847,7 @@ var arrow$1 = {
|
|
|
2932
2847
|
enabled: true,
|
|
2933
2848
|
phase: 'main',
|
|
2934
2849
|
fn: arrow,
|
|
2935
|
-
effect: effect
|
|
2850
|
+
effect: effect,
|
|
2936
2851
|
requires: ['popperOffsets'],
|
|
2937
2852
|
requiresIfExists: ['preventOverflow']
|
|
2938
2853
|
};
|
|
@@ -2946,14 +2861,14 @@ var unsetSides = {
|
|
|
2946
2861
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2947
2862
|
// cleanly divide the values into the appropriate subpixels.
|
|
2948
2863
|
|
|
2949
|
-
function
|
|
2864
|
+
function roundOffsets(_ref) {
|
|
2950
2865
|
var x = _ref.x,
|
|
2951
2866
|
y = _ref.y;
|
|
2952
2867
|
var win = window;
|
|
2953
2868
|
var dpr = win.devicePixelRatio || 1;
|
|
2954
2869
|
return {
|
|
2955
|
-
x: round(
|
|
2956
|
-
y: round(
|
|
2870
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2871
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2957
2872
|
};
|
|
2958
2873
|
}
|
|
2959
2874
|
|
|
@@ -2966,14 +2881,11 @@ function mapToStyles(_ref2) {
|
|
|
2966
2881
|
offsets = _ref2.offsets,
|
|
2967
2882
|
position = _ref2.position,
|
|
2968
2883
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2969
|
-
adaptive = _ref2.adaptive
|
|
2970
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2884
|
+
adaptive = _ref2.adaptive;
|
|
2971
2885
|
|
|
2972
|
-
var
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
_ref3$y = _ref3.y,
|
|
2976
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2886
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2887
|
+
x = _roundOffsets.x,
|
|
2888
|
+
y = _roundOffsets.y;
|
|
2977
2889
|
|
|
2978
2890
|
var hasX = offsets.hasOwnProperty('x');
|
|
2979
2891
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2983,32 +2895,23 @@ function mapToStyles(_ref2) {
|
|
|
2983
2895
|
|
|
2984
2896
|
if (adaptive) {
|
|
2985
2897
|
var offsetParent = getOffsetParent(popper);
|
|
2986
|
-
var heightProp = 'clientHeight';
|
|
2987
|
-
var widthProp = 'clientWidth';
|
|
2988
2898
|
|
|
2989
2899
|
if (offsetParent === getWindow(popper)) {
|
|
2990
2900
|
offsetParent = getDocumentElement(popper);
|
|
2901
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2991
2902
|
|
|
2992
|
-
|
|
2993
|
-
heightProp = 'scrollHeight';
|
|
2994
|
-
widthProp = 'scrollWidth';
|
|
2995
|
-
}
|
|
2996
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2997
|
-
|
|
2903
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2998
2904
|
|
|
2999
|
-
offsetParent = offsetParent;
|
|
3000
2905
|
|
|
3001
2906
|
if (placement === top) {
|
|
3002
|
-
sideY = bottom;
|
|
3003
|
-
|
|
3004
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2907
|
+
sideY = bottom;
|
|
2908
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3005
2909
|
y *= gpuAcceleration ? 1 : -1;
|
|
3006
2910
|
}
|
|
3007
2911
|
|
|
3008
2912
|
if (placement === left) {
|
|
3009
|
-
sideX = right;
|
|
3010
|
-
|
|
3011
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2913
|
+
sideX = right;
|
|
2914
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3012
2915
|
x *= gpuAcceleration ? 1 : -1;
|
|
3013
2916
|
}
|
|
3014
2917
|
}
|
|
@@ -3020,24 +2923,22 @@ function mapToStyles(_ref2) {
|
|
|
3020
2923
|
if (gpuAcceleration) {
|
|
3021
2924
|
var _Object$assign;
|
|
3022
2925
|
|
|
3023
|
-
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));
|
|
3024
2927
|
}
|
|
3025
2928
|
|
|
3026
|
-
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));
|
|
3027
2930
|
}
|
|
3028
2931
|
|
|
3029
|
-
function computeStyles(
|
|
3030
|
-
var state =
|
|
3031
|
-
options =
|
|
2932
|
+
function computeStyles(_ref3) {
|
|
2933
|
+
var state = _ref3.state,
|
|
2934
|
+
options = _ref3.options;
|
|
3032
2935
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3033
2936
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3034
2937
|
_options$adaptive = options.adaptive,
|
|
3035
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3036
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3037
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2938
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3038
2939
|
|
|
3039
2940
|
if (process.env.NODE_ENV !== "production") {
|
|
3040
|
-
var transitionProperty = getComputedStyle$
|
|
2941
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3041
2942
|
|
|
3042
2943
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3043
2944
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3054,24 +2955,22 @@ function computeStyles(_ref4) {
|
|
|
3054
2955
|
};
|
|
3055
2956
|
|
|
3056
2957
|
if (state.modifiersData.popperOffsets != null) {
|
|
3057
|
-
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), {}, {
|
|
3058
2959
|
offsets: state.modifiersData.popperOffsets,
|
|
3059
2960
|
position: state.options.strategy,
|
|
3060
|
-
adaptive: adaptive
|
|
3061
|
-
roundOffsets: roundOffsets
|
|
2961
|
+
adaptive: adaptive
|
|
3062
2962
|
})));
|
|
3063
2963
|
}
|
|
3064
2964
|
|
|
3065
2965
|
if (state.modifiersData.arrow != null) {
|
|
3066
|
-
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), {}, {
|
|
3067
2967
|
offsets: state.modifiersData.arrow,
|
|
3068
2968
|
position: 'absolute',
|
|
3069
|
-
adaptive: false
|
|
3070
|
-
roundOffsets: roundOffsets
|
|
2969
|
+
adaptive: false
|
|
3071
2970
|
})));
|
|
3072
2971
|
}
|
|
3073
2972
|
|
|
3074
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2973
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3075
2974
|
'data-popper-placement': state.placement
|
|
3076
2975
|
});
|
|
3077
2976
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3089,7 +2988,7 @@ var passive = {
|
|
|
3089
2988
|
passive: true
|
|
3090
2989
|
};
|
|
3091
2990
|
|
|
3092
|
-
function effect(_ref) {
|
|
2991
|
+
function effect$1(_ref) {
|
|
3093
2992
|
var state = _ref.state,
|
|
3094
2993
|
instance = _ref.instance,
|
|
3095
2994
|
options = _ref.options;
|
|
@@ -3129,11 +3028,11 @@ var eventListeners = {
|
|
|
3129
3028
|
enabled: true,
|
|
3130
3029
|
phase: 'write',
|
|
3131
3030
|
fn: function fn() {},
|
|
3132
|
-
effect: effect,
|
|
3031
|
+
effect: effect$1,
|
|
3133
3032
|
data: {}
|
|
3134
3033
|
};
|
|
3135
3034
|
|
|
3136
|
-
var hash
|
|
3035
|
+
var hash = {
|
|
3137
3036
|
left: 'right',
|
|
3138
3037
|
right: 'left',
|
|
3139
3038
|
bottom: 'top',
|
|
@@ -3141,20 +3040,34 @@ var hash$1 = {
|
|
|
3141
3040
|
};
|
|
3142
3041
|
function getOppositePlacement(placement) {
|
|
3143
3042
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3144
|
-
return hash
|
|
3043
|
+
return hash[matched];
|
|
3145
3044
|
});
|
|
3146
3045
|
}
|
|
3147
3046
|
|
|
3148
|
-
var hash = {
|
|
3047
|
+
var hash$1 = {
|
|
3149
3048
|
start: 'end',
|
|
3150
3049
|
end: 'start'
|
|
3151
3050
|
};
|
|
3152
3051
|
function getOppositeVariationPlacement(placement) {
|
|
3153
3052
|
return placement.replace(/start|end/g, function (matched) {
|
|
3154
|
-
return hash[matched];
|
|
3053
|
+
return hash$1[matched];
|
|
3155
3054
|
});
|
|
3156
3055
|
}
|
|
3157
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
|
+
|
|
3158
3071
|
function getWindowScroll(node) {
|
|
3159
3072
|
var win = getWindow(node);
|
|
3160
3073
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3217,18 +3130,16 @@ function getViewportRect(element) {
|
|
|
3217
3130
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3218
3131
|
|
|
3219
3132
|
function getDocumentRect(element) {
|
|
3220
|
-
var _element$ownerDocumen;
|
|
3221
|
-
|
|
3222
3133
|
var html = getDocumentElement(element);
|
|
3223
3134
|
var winScroll = getWindowScroll(element);
|
|
3224
|
-
var body =
|
|
3225
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3226
|
-
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);
|
|
3227
3138
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3228
3139
|
var y = -winScroll.scrollTop;
|
|
3229
3140
|
|
|
3230
|
-
if (getComputedStyle$
|
|
3231
|
-
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;
|
|
3232
3143
|
}
|
|
3233
3144
|
|
|
3234
3145
|
return {
|
|
@@ -3241,7 +3152,7 @@ function getDocumentRect(element) {
|
|
|
3241
3152
|
|
|
3242
3153
|
function isScrollParent(element) {
|
|
3243
3154
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3244
|
-
var _getComputedStyle = getComputedStyle$
|
|
3155
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3245
3156
|
overflow = _getComputedStyle.overflow,
|
|
3246
3157
|
overflowX = _getComputedStyle.overflowX,
|
|
3247
3158
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3251,7 +3162,7 @@ function isScrollParent(element) {
|
|
|
3251
3162
|
|
|
3252
3163
|
function getScrollParent(node) {
|
|
3253
3164
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3254
|
-
// $FlowFixMe
|
|
3165
|
+
// $FlowFixMe: assume body is always available
|
|
3255
3166
|
return node.ownerDocument.body;
|
|
3256
3167
|
}
|
|
3257
3168
|
|
|
@@ -3265,28 +3176,26 @@ function getScrollParent(node) {
|
|
|
3265
3176
|
/*
|
|
3266
3177
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3267
3178
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3268
|
-
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
|
|
3269
3180
|
reference element's position.
|
|
3270
3181
|
*/
|
|
3271
3182
|
|
|
3272
3183
|
function listScrollParents(element, list) {
|
|
3273
|
-
var _element$ownerDocumen;
|
|
3274
|
-
|
|
3275
3184
|
if (list === void 0) {
|
|
3276
3185
|
list = [];
|
|
3277
3186
|
}
|
|
3278
3187
|
|
|
3279
3188
|
var scrollParent = getScrollParent(element);
|
|
3280
|
-
var isBody = scrollParent ===
|
|
3189
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3281
3190
|
var win = getWindow(scrollParent);
|
|
3282
3191
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3283
3192
|
var updatedList = list.concat(target);
|
|
3284
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3193
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3285
3194
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3286
3195
|
}
|
|
3287
3196
|
|
|
3288
3197
|
function rectToClientRect(rect) {
|
|
3289
|
-
return Object.assign({}, rect, {
|
|
3198
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3290
3199
|
left: rect.x,
|
|
3291
3200
|
top: rect.y,
|
|
3292
3201
|
right: rect.x + rect.width,
|
|
@@ -3316,16 +3225,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3316
3225
|
|
|
3317
3226
|
function getClippingParents(element) {
|
|
3318
3227
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3319
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3228
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3320
3229
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3321
3230
|
|
|
3322
3231
|
if (!isElement(clipperElement)) {
|
|
3323
3232
|
return [];
|
|
3324
|
-
} // $FlowFixMe
|
|
3233
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3325
3234
|
|
|
3326
3235
|
|
|
3327
3236
|
return clippingParents.filter(function (clippingParent) {
|
|
3328
|
-
return isElement(clippingParent) && contains
|
|
3237
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3329
3238
|
});
|
|
3330
3239
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3331
3240
|
// clipping parents
|
|
@@ -3337,10 +3246,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3337
3246
|
var firstClippingParent = clippingParents[0];
|
|
3338
3247
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3339
3248
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3340
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3341
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3342
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3343
|
-
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);
|
|
3344
3253
|
return accRect;
|
|
3345
3254
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3346
3255
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3407,11 +3316,11 @@ function computeOffsets(_ref) {
|
|
|
3407
3316
|
|
|
3408
3317
|
switch (variation) {
|
|
3409
3318
|
case start:
|
|
3410
|
-
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);
|
|
3411
3320
|
break;
|
|
3412
3321
|
|
|
3413
3322
|
case end:
|
|
3414
|
-
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);
|
|
3415
3324
|
break;
|
|
3416
3325
|
}
|
|
3417
3326
|
}
|
|
@@ -3450,7 +3359,7 @@ function detectOverflow(state, options) {
|
|
|
3450
3359
|
strategy: 'absolute',
|
|
3451
3360
|
placement: placement
|
|
3452
3361
|
});
|
|
3453
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3362
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3454
3363
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3455
3364
|
// 0 or negative = within the clipping rect
|
|
3456
3365
|
|
|
@@ -3474,6 +3383,9 @@ function detectOverflow(state, options) {
|
|
|
3474
3383
|
return overflowOffsets;
|
|
3475
3384
|
}
|
|
3476
3385
|
|
|
3386
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3387
|
+
|
|
3388
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3477
3389
|
function computeAutoPlacement(state, options) {
|
|
3478
3390
|
if (options === void 0) {
|
|
3479
3391
|
options = {};
|
|
@@ -3490,7 +3402,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3490
3402
|
var variation = getVariation(placement);
|
|
3491
3403
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3492
3404
|
return getVariation(placement) === variation;
|
|
3493
|
-
}) : basePlacements;
|
|
3405
|
+
}) : basePlacements; // $FlowFixMe
|
|
3406
|
+
|
|
3494
3407
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3495
3408
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3496
3409
|
});
|
|
@@ -3501,7 +3414,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3501
3414
|
if (process.env.NODE_ENV !== "production") {
|
|
3502
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(' '));
|
|
3503
3416
|
}
|
|
3504
|
-
} // $FlowFixMe
|
|
3417
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3505
3418
|
|
|
3506
3419
|
|
|
3507
3420
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3702,7 +3615,7 @@ function hide(_ref) {
|
|
|
3702
3615
|
isReferenceHidden: isReferenceHidden,
|
|
3703
3616
|
hasPopperEscaped: hasPopperEscaped
|
|
3704
3617
|
};
|
|
3705
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3618
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3706
3619
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3707
3620
|
'data-popper-escaped': hasPopperEscaped
|
|
3708
3621
|
});
|
|
@@ -3721,7 +3634,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3721
3634
|
var basePlacement = getBasePlacement(placement);
|
|
3722
3635
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3723
3636
|
|
|
3724
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3637
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3725
3638
|
placement: placement
|
|
3726
3639
|
})) : offset,
|
|
3727
3640
|
skidding = _ref[0],
|
|
@@ -3827,7 +3740,7 @@ function preventOverflow(_ref) {
|
|
|
3827
3740
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3828
3741
|
var referenceRect = state.rects.reference;
|
|
3829
3742
|
var popperRect = state.rects.popper;
|
|
3830
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3743
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3831
3744
|
placement: state.placement
|
|
3832
3745
|
})) : tetherOffset;
|
|
3833
3746
|
var data = {
|
|
@@ -3839,13 +3752,13 @@ function preventOverflow(_ref) {
|
|
|
3839
3752
|
return;
|
|
3840
3753
|
}
|
|
3841
3754
|
|
|
3842
|
-
if (checkMainAxis
|
|
3755
|
+
if (checkMainAxis) {
|
|
3843
3756
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3844
3757
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3845
3758
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3846
3759
|
var offset = popperOffsets[mainAxis];
|
|
3847
|
-
var min
|
|
3848
|
-
var max
|
|
3760
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3761
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3849
3762
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3850
3763
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3851
3764
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3872,29 +3785,26 @@ function preventOverflow(_ref) {
|
|
|
3872
3785
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3873
3786
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3874
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
|
+
}
|
|
3875
3792
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3879
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3880
|
-
}
|
|
3881
|
-
|
|
3882
|
-
if (checkAltAxis) {
|
|
3883
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3793
|
+
if (checkAltAxis) {
|
|
3794
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3884
3795
|
|
|
3885
|
-
|
|
3796
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3886
3797
|
|
|
3887
|
-
|
|
3798
|
+
var _offset = popperOffsets[altAxis];
|
|
3888
3799
|
|
|
3889
|
-
|
|
3800
|
+
var _min = _offset + overflow[_mainSide];
|
|
3890
3801
|
|
|
3891
|
-
|
|
3802
|
+
var _max = _offset - overflow[_altSide];
|
|
3892
3803
|
|
|
3893
|
-
|
|
3804
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3894
3805
|
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
}
|
|
3806
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3807
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3898
3808
|
}
|
|
3899
3809
|
|
|
3900
3810
|
state.modifiersData[name] = data;
|
|
@@ -4125,9 +4035,9 @@ function uniqueBy(arr, fn) {
|
|
|
4125
4035
|
function mergeByName(modifiers) {
|
|
4126
4036
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4127
4037
|
var existing = merged[current.name];
|
|
4128
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4129
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4130
|
-
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)
|
|
4131
4041
|
}) : current;
|
|
4132
4042
|
return merged;
|
|
4133
4043
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4173,7 +4083,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4173
4083
|
var state = {
|
|
4174
4084
|
placement: 'bottom',
|
|
4175
4085
|
orderedModifiers: [],
|
|
4176
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4086
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4177
4087
|
modifiersData: {},
|
|
4178
4088
|
elements: {
|
|
4179
4089
|
reference: reference,
|
|
@@ -4188,7 +4098,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4188
4098
|
state: state,
|
|
4189
4099
|
setOptions: function setOptions(options) {
|
|
4190
4100
|
cleanupModifierEffects();
|
|
4191
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4101
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4192
4102
|
state.scrollParents = {
|
|
4193
4103
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4194
4104
|
popper: listScrollParents(popper)
|
|
@@ -4220,7 +4130,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4220
4130
|
}
|
|
4221
4131
|
}
|
|
4222
4132
|
|
|
4223
|
-
var _getComputedStyle = getComputedStyle$
|
|
4133
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4224
4134
|
marginTop = _getComputedStyle.marginTop,
|
|
4225
4135
|
marginRight = _getComputedStyle.marginRight,
|
|
4226
4136
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4430,11 +4340,6 @@ var ariaDescribedByModifier = {
|
|
|
4430
4340
|
|
|
4431
4341
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4432
4342
|
var ids = reference.getAttribute('aria-describedby');
|
|
4433
|
-
|
|
4434
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4435
|
-
return;
|
|
4436
|
-
}
|
|
4437
|
-
|
|
4438
4343
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4439
4344
|
}
|
|
4440
4345
|
}
|
|
@@ -4558,16 +4463,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4558
4463
|
}
|
|
4559
4464
|
|
|
4560
4465
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
*
|
|
4565
|
-
* @param context the context element
|
|
4566
|
-
* @param node the element to check
|
|
4567
|
-
*/
|
|
4568
|
-
function contains(context, node) {
|
|
4569
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4570
|
-
// 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) {
|
|
4571
4469
|
if (context.contains) return context.contains(node);
|
|
4572
4470
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4573
4471
|
}
|
|
@@ -4641,13 +4539,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4641
4539
|
return componentOrElement != null ? componentOrElement : null;
|
|
4642
4540
|
}
|
|
4643
4541
|
|
|
4644
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4645
|
-
return ownerDocument
|
|
4542
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4543
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4646
4544
|
});
|
|
4647
4545
|
|
|
4648
4546
|
var escapeKeyCode = 27;
|
|
4649
4547
|
|
|
4650
|
-
var noop$
|
|
4548
|
+
var noop$1 = function noop() {};
|
|
4651
4549
|
|
|
4652
4550
|
function isLeftClickEvent(event) {
|
|
4653
4551
|
return event.button === 0;
|
|
@@ -4680,11 +4578,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4680
4578
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4681
4579
|
|
|
4682
4580
|
var preventMouseRootCloseRef = useRef(false);
|
|
4683
|
-
var onClose = onRootClose || noop$
|
|
4581
|
+
var onClose = onRootClose || noop$1;
|
|
4684
4582
|
var handleMouseCapture = useCallback(function (e) {
|
|
4685
4583
|
var currentTarget = getRefTarget(ref);
|
|
4686
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');
|
|
4687
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4585
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4688
4586
|
}, [ref]);
|
|
4689
4587
|
var handleMouse = useEventCallback(function (e) {
|
|
4690
4588
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4697,38 +4595,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4697
4595
|
}
|
|
4698
4596
|
});
|
|
4699
4597
|
useEffect(function () {
|
|
4700
|
-
if (disabled || ref == null) return undefined;
|
|
4701
|
-
//
|
|
4702
|
-
|
|
4703
|
-
var currentEvent = window.event;
|
|
4704
|
-
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
|
|
4705
4600
|
// avoid false positives in the contains() check below if the target DOM
|
|
4706
4601
|
// element is removed in the React mouse callback.
|
|
4707
4602
|
|
|
4708
4603
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4709
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4710
|
-
|
|
4711
|
-
if (e === currentEvent) {
|
|
4712
|
-
currentEvent = undefined;
|
|
4713
|
-
return;
|
|
4714
|
-
}
|
|
4715
|
-
|
|
4716
|
-
handleMouse(e);
|
|
4717
|
-
});
|
|
4718
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4719
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4720
|
-
if (e === currentEvent) {
|
|
4721
|
-
currentEvent = undefined;
|
|
4722
|
-
return;
|
|
4723
|
-
}
|
|
4724
|
-
|
|
4725
|
-
handleKeyUp(e);
|
|
4726
|
-
});
|
|
4604
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4605
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4727
4606
|
var mobileSafariHackListeners = [];
|
|
4728
4607
|
|
|
4729
4608
|
if ('ontouchstart' in doc.documentElement) {
|
|
4730
4609
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4731
|
-
return listen(el, 'mousemove', noop$
|
|
4610
|
+
return listen(el, 'mousemove', noop$1);
|
|
4732
4611
|
});
|
|
4733
4612
|
}
|
|
4734
4613
|
|
|
@@ -4810,7 +4689,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4810
4689
|
});
|
|
4811
4690
|
}
|
|
4812
4691
|
|
|
4813
|
-
var noop$
|
|
4692
|
+
var noop$2 = function noop() {};
|
|
4814
4693
|
/**
|
|
4815
4694
|
* @memberOf Dropdown
|
|
4816
4695
|
* @param {object} options
|
|
@@ -4878,7 +4757,7 @@ function useDropdownMenu(options) {
|
|
|
4878
4757
|
|
|
4879
4758
|
var menu;
|
|
4880
4759
|
var menuProps = {
|
|
4881
|
-
ref: setMenu || noop$
|
|
4760
|
+
ref: setMenu || noop$2,
|
|
4882
4761
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4883
4762
|
};
|
|
4884
4763
|
var childArgs = {
|
|
@@ -4911,7 +4790,7 @@ function useDropdownMenu(options) {
|
|
|
4911
4790
|
});
|
|
4912
4791
|
return menu;
|
|
4913
4792
|
}
|
|
4914
|
-
var propTypes$
|
|
4793
|
+
var propTypes$2 = {
|
|
4915
4794
|
/**
|
|
4916
4795
|
* A render prop that returns a Menu element. The `props`
|
|
4917
4796
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4968,7 +4847,7 @@ var propTypes$8 = {
|
|
|
4968
4847
|
*/
|
|
4969
4848
|
rootCloseEvent: PropTypes.string
|
|
4970
4849
|
};
|
|
4971
|
-
var defaultProps$
|
|
4850
|
+
var defaultProps$d = {
|
|
4972
4851
|
usePopper: true
|
|
4973
4852
|
};
|
|
4974
4853
|
|
|
@@ -4978,19 +4857,19 @@ var defaultProps$r = {
|
|
|
4978
4857
|
* @displayName DropdownMenu
|
|
4979
4858
|
* @memberOf Dropdown
|
|
4980
4859
|
*/
|
|
4981
|
-
function DropdownMenu
|
|
4860
|
+
function DropdownMenu(_ref2) {
|
|
4982
4861
|
var children = _ref2.children,
|
|
4983
4862
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4984
4863
|
|
|
4985
4864
|
var args = useDropdownMenu(options);
|
|
4986
|
-
return /*#__PURE__*/
|
|
4865
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4987
4866
|
}
|
|
4988
4867
|
|
|
4989
|
-
DropdownMenu
|
|
4990
|
-
DropdownMenu
|
|
4991
|
-
DropdownMenu
|
|
4868
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4869
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4870
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4992
4871
|
|
|
4993
|
-
var noop$
|
|
4872
|
+
var noop$3 = function noop() {};
|
|
4994
4873
|
/**
|
|
4995
4874
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4996
4875
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5004,11 +4883,11 @@ function useDropdownToggle() {
|
|
|
5004
4883
|
_ref$show = _ref.show,
|
|
5005
4884
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5006
4885
|
_ref$toggle = _ref.toggle,
|
|
5007
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4886
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5008
4887
|
setToggle = _ref.setToggle;
|
|
5009
4888
|
|
|
5010
4889
|
return [{
|
|
5011
|
-
ref: setToggle || noop$
|
|
4890
|
+
ref: setToggle || noop$3,
|
|
5012
4891
|
'aria-haspopup': true,
|
|
5013
4892
|
'aria-expanded': !!show
|
|
5014
4893
|
}, {
|
|
@@ -5016,7 +4895,7 @@ function useDropdownToggle() {
|
|
|
5016
4895
|
toggle: toggle
|
|
5017
4896
|
}];
|
|
5018
4897
|
}
|
|
5019
|
-
var propTypes$
|
|
4898
|
+
var propTypes$3 = {
|
|
5020
4899
|
/**
|
|
5021
4900
|
* A render prop that returns a Toggle element. The `props`
|
|
5022
4901
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5041,7 +4920,7 @@ var propTypes$7 = {
|
|
|
5041
4920
|
* @displayName DropdownToggle
|
|
5042
4921
|
* @memberOf Dropdown
|
|
5043
4922
|
*/
|
|
5044
|
-
function DropdownToggle
|
|
4923
|
+
function DropdownToggle(_ref2) {
|
|
5045
4924
|
var children = _ref2.children;
|
|
5046
4925
|
|
|
5047
4926
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5050,17 +4929,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5050
4929
|
show = _useDropdownToggle$.show,
|
|
5051
4930
|
toggle = _useDropdownToggle$.toggle;
|
|
5052
4931
|
|
|
5053
|
-
return /*#__PURE__*/
|
|
4932
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5054
4933
|
show: show,
|
|
5055
4934
|
toggle: toggle,
|
|
5056
4935
|
props: props
|
|
5057
4936
|
}));
|
|
5058
4937
|
}
|
|
5059
4938
|
|
|
5060
|
-
DropdownToggle
|
|
5061
|
-
DropdownToggle
|
|
4939
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4940
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5062
4941
|
|
|
5063
|
-
var propTypes$
|
|
4942
|
+
var propTypes$4 = {
|
|
5064
4943
|
/**
|
|
5065
4944
|
* A render prop that returns the root dropdown element. The `props`
|
|
5066
4945
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5132,7 +5011,7 @@ var propTypes$6 = {
|
|
|
5132
5011
|
/**
|
|
5133
5012
|
* @displayName Dropdown
|
|
5134
5013
|
*/
|
|
5135
|
-
function Dropdown
|
|
5014
|
+
function Dropdown(_ref) {
|
|
5136
5015
|
var drop = _ref.drop,
|
|
5137
5016
|
alignEnd = _ref.alignEnd,
|
|
5138
5017
|
defaultShow = _ref.defaultShow,
|
|
@@ -5265,7 +5144,7 @@ function Dropdown$1(_ref) {
|
|
|
5265
5144
|
}
|
|
5266
5145
|
};
|
|
5267
5146
|
|
|
5268
|
-
return /*#__PURE__*/
|
|
5147
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5269
5148
|
value: context
|
|
5270
5149
|
}, children({
|
|
5271
5150
|
props: {
|
|
@@ -5274,19 +5153,19 @@ function Dropdown$1(_ref) {
|
|
|
5274
5153
|
}));
|
|
5275
5154
|
}
|
|
5276
5155
|
|
|
5277
|
-
Dropdown
|
|
5278
|
-
Dropdown
|
|
5279
|
-
Dropdown
|
|
5280
|
-
Dropdown
|
|
5156
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5157
|
+
Dropdown.propTypes = propTypes$4;
|
|
5158
|
+
Dropdown.Menu = DropdownMenu;
|
|
5159
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5281
5160
|
|
|
5282
|
-
var NavContext =
|
|
5161
|
+
var NavContext = React.createContext(null);
|
|
5283
5162
|
NavContext.displayName = 'NavContext';
|
|
5284
5163
|
|
|
5285
|
-
var defaultProps$
|
|
5164
|
+
var defaultProps$e = {
|
|
5286
5165
|
as: SafeAnchor,
|
|
5287
5166
|
disabled: false
|
|
5288
5167
|
};
|
|
5289
|
-
var DropdownItem =
|
|
5168
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5290
5169
|
var bsPrefix = _ref.bsPrefix,
|
|
5291
5170
|
className = _ref.className,
|
|
5292
5171
|
children = _ref.children,
|
|
@@ -5304,10 +5183,9 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5304
5183
|
var navContext = useContext(NavContext);
|
|
5305
5184
|
|
|
5306
5185
|
var _ref2 = navContext || {},
|
|
5307
|
-
activeKey = _ref2.activeKey;
|
|
5308
|
-
|
|
5186
|
+
activeKey = _ref2.activeKey;
|
|
5309
5187
|
|
|
5310
|
-
var key = makeEventKey(eventKey, href);
|
|
5188
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5311
5189
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5312
5190
|
var handleClick = useEventCallback(function (event) {
|
|
5313
5191
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5321,7 +5199,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5321
5199
|
/*#__PURE__*/
|
|
5322
5200
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5323
5201
|
// @ts-ignore
|
|
5324
|
-
|
|
5202
|
+
React.createElement(Component, _extends({}, props, {
|
|
5325
5203
|
ref: ref,
|
|
5326
5204
|
href: href,
|
|
5327
5205
|
disabled: disabled,
|
|
@@ -5331,7 +5209,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5331
5209
|
);
|
|
5332
5210
|
});
|
|
5333
5211
|
DropdownItem.displayName = 'DropdownItem';
|
|
5334
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5212
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5335
5213
|
|
|
5336
5214
|
var toFnRef = function toFnRef(ref) {
|
|
5337
5215
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5370,8 +5248,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5370
5248
|
}, [refA, refB]);
|
|
5371
5249
|
}
|
|
5372
5250
|
|
|
5373
|
-
var context =
|
|
5374
|
-
context.displayName = 'NavbarContext';
|
|
5251
|
+
var context$2 = React.createContext(null);
|
|
5252
|
+
context$2.displayName = 'NavbarContext';
|
|
5375
5253
|
|
|
5376
5254
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5377
5255
|
// @ts-ignore
|
|
@@ -5384,12 +5262,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5384
5262
|
return useMergedRefs(warningRef, ref);
|
|
5385
5263
|
}
|
|
5386
5264
|
|
|
5387
|
-
/**
|
|
5388
|
-
* Checks if a given element has a CSS class.
|
|
5389
|
-
*
|
|
5390
|
-
* @param element the element
|
|
5391
|
-
* @param className the CSS class name
|
|
5392
|
-
*/
|
|
5393
5265
|
function hasClass(element, className) {
|
|
5394
5266
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5395
5267
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5412,14 +5284,12 @@ function getMargins(element) {
|
|
|
5412
5284
|
function usePopperMarginModifiers() {
|
|
5413
5285
|
var overlayRef = useRef(null);
|
|
5414
5286
|
var margins = useRef(null);
|
|
5415
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5416
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5417
5287
|
var callback = useCallback(function (overlay) {
|
|
5418
|
-
if (!overlay || !(hasClass(overlay,
|
|
5288
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5419
5289
|
margins.current = getMargins(overlay);
|
|
5420
5290
|
overlay.style.margin = '0';
|
|
5421
5291
|
overlayRef.current = overlay;
|
|
5422
|
-
}, [
|
|
5292
|
+
}, []);
|
|
5423
5293
|
var offset = useMemo(function () {
|
|
5424
5294
|
return {
|
|
5425
5295
|
name: 'offset',
|
|
@@ -5463,7 +5333,7 @@ function usePopperMarginModifiers() {
|
|
|
5463
5333
|
effect: function effect(_ref2) {
|
|
5464
5334
|
var state = _ref2.state;
|
|
5465
5335
|
|
|
5466
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5336
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5467
5337
|
return undefined;
|
|
5468
5338
|
}
|
|
5469
5339
|
|
|
@@ -5484,30 +5354,18 @@ function usePopperMarginModifiers() {
|
|
|
5484
5354
|
};
|
|
5485
5355
|
}
|
|
5486
5356
|
};
|
|
5487
|
-
}, [
|
|
5357
|
+
}, []);
|
|
5488
5358
|
return [callback, [offset, popoverArrowMargins]];
|
|
5489
5359
|
}
|
|
5490
5360
|
|
|
5491
|
-
var
|
|
5492
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5493
|
-
sm: alignDirection
|
|
5494
|
-
}), PropTypes.shape({
|
|
5495
|
-
md: alignDirection
|
|
5496
|
-
}), PropTypes.shape({
|
|
5497
|
-
lg: alignDirection
|
|
5498
|
-
}), PropTypes.shape({
|
|
5499
|
-
xl: alignDirection
|
|
5500
|
-
})]);
|
|
5501
|
-
var defaultProps$p = {
|
|
5502
|
-
align: 'left',
|
|
5361
|
+
var defaultProps$f = {
|
|
5503
5362
|
alignRight: false,
|
|
5504
5363
|
flip: true
|
|
5505
5364
|
}; // TODO: remove this hack
|
|
5506
5365
|
|
|
5507
|
-
var DropdownMenu =
|
|
5366
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5508
5367
|
var bsPrefix = _ref.bsPrefix,
|
|
5509
5368
|
className = _ref.className,
|
|
5510
|
-
align = _ref.align,
|
|
5511
5369
|
alignRight = _ref.alignRight,
|
|
5512
5370
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5513
5371
|
flip = _ref.flip,
|
|
@@ -5516,42 +5374,21 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5516
5374
|
_ref$as = _ref.as,
|
|
5517
5375
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5518
5376
|
popperConfig = _ref.popperConfig,
|
|
5519
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5377
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5520
5378
|
|
|
5521
|
-
var isNavbar = useContext(context);
|
|
5379
|
+
var isNavbar = useContext(context$2);
|
|
5522
5380
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5523
5381
|
|
|
5524
5382
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5525
5383
|
popperRef = _usePopperMarginModif[0],
|
|
5526
5384
|
marginModifiers = _usePopperMarginModif[1];
|
|
5527
5385
|
|
|
5528
|
-
var alignClasses = [];
|
|
5529
|
-
|
|
5530
|
-
if (align) {
|
|
5531
|
-
if (typeof align === 'object') {
|
|
5532
|
-
var keys = Object.keys(align);
|
|
5533
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5534
|
-
|
|
5535
|
-
if (keys.length) {
|
|
5536
|
-
var brkPoint = keys[0];
|
|
5537
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5538
|
-
// left in addition to align left classes.
|
|
5539
|
-
// Reuse alignRight to toggle the class below.
|
|
5540
|
-
|
|
5541
|
-
alignRight = direction === 'left';
|
|
5542
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5543
|
-
}
|
|
5544
|
-
} else if (align === 'right') {
|
|
5545
|
-
alignRight = true;
|
|
5546
|
-
}
|
|
5547
|
-
}
|
|
5548
|
-
|
|
5549
5386
|
var _ref2 = useDropdownMenu({
|
|
5550
5387
|
flip: flip,
|
|
5551
5388
|
rootCloseEvent: rootCloseEvent,
|
|
5552
5389
|
show: showProps,
|
|
5553
5390
|
alignEnd: alignRight,
|
|
5554
|
-
usePopper: !isNavbar
|
|
5391
|
+
usePopper: !isNavbar,
|
|
5555
5392
|
popperConfig: _extends({}, popperConfig, {
|
|
5556
5393
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5557
5394
|
})
|
|
@@ -5579,12 +5416,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5579
5416
|
props['x-placement'] = placement;
|
|
5580
5417
|
}
|
|
5581
5418
|
|
|
5582
|
-
return /*#__PURE__*/
|
|
5583
|
-
className: classnames
|
|
5419
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5420
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5584
5421
|
}));
|
|
5585
5422
|
});
|
|
5586
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5587
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5423
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5424
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5588
5425
|
|
|
5589
5426
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5590
5427
|
|
|
@@ -5613,14 +5450,15 @@ module.exports = exports['default'];
|
|
|
5613
5450
|
|
|
5614
5451
|
unwrapExports(isRequiredForA11y_1);
|
|
5615
5452
|
|
|
5616
|
-
var DropdownToggle =
|
|
5453
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5617
5454
|
var bsPrefix = _ref.bsPrefix,
|
|
5618
5455
|
split = _ref.split,
|
|
5619
5456
|
className = _ref.className,
|
|
5457
|
+
children = _ref.children,
|
|
5620
5458
|
childBsPrefix = _ref.childBsPrefix,
|
|
5621
5459
|
_ref$as = _ref.as,
|
|
5622
5460
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5623
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5461
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5624
5462
|
|
|
5625
5463
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5626
5464
|
|
|
@@ -5635,12 +5473,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5635
5473
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5636
5474
|
// underlying component, to allow it to render size and style variants.
|
|
5637
5475
|
|
|
5638
|
-
return /*#__PURE__*/
|
|
5476
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5639
5477
|
onClick: toggle,
|
|
5640
5478
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5641
|
-
}, toggleProps, props));
|
|
5479
|
+
}, toggleProps, props), children);
|
|
5642
5480
|
});
|
|
5643
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5481
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5644
5482
|
|
|
5645
5483
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5646
5484
|
defaultProps: {
|
|
@@ -5655,10 +5493,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5655
5493
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5656
5494
|
Component: 'span'
|
|
5657
5495
|
});
|
|
5658
|
-
var defaultProps$
|
|
5496
|
+
var defaultProps$g = {
|
|
5659
5497
|
navbar: false
|
|
5660
5498
|
};
|
|
5661
|
-
var Dropdown =
|
|
5499
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5662
5500
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5663
5501
|
show: 'onToggle'
|
|
5664
5502
|
}),
|
|
@@ -5671,9 +5509,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5671
5509
|
onToggle = _useUncontrolled.onToggle,
|
|
5672
5510
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5673
5511
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5674
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5675
|
-
_useUncontrolled.navbar
|
|
5676
|
-
|
|
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"]);
|
|
5677
5515
|
|
|
5678
5516
|
var onSelectCtx = useContext(SelectableContext);
|
|
5679
5517
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5695,9 +5533,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5695
5533
|
if (onSelect) onSelect(key, event);
|
|
5696
5534
|
handleToggle(false, event, 'select');
|
|
5697
5535
|
});
|
|
5698
|
-
return /*#__PURE__*/
|
|
5536
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5699
5537
|
value: handleSelect
|
|
5700
|
-
}, /*#__PURE__*/
|
|
5538
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5701
5539
|
drop: drop,
|
|
5702
5540
|
show: show,
|
|
5703
5541
|
alignEnd: alignRight,
|
|
@@ -5706,20 +5544,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5706
5544
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5707
5545
|
}, function (_ref) {
|
|
5708
5546
|
var dropdownProps = _ref.props;
|
|
5709
|
-
return /*#__PURE__*/
|
|
5547
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5710
5548
|
ref: ref,
|
|
5711
5549
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5712
5550
|
}));
|
|
5713
5551
|
}));
|
|
5714
5552
|
});
|
|
5715
|
-
Dropdown.displayName = 'Dropdown';
|
|
5716
|
-
Dropdown.defaultProps = defaultProps$
|
|
5717
|
-
Dropdown.Divider = DropdownDivider;
|
|
5718
|
-
Dropdown.Header = DropdownHeader;
|
|
5719
|
-
Dropdown.Item = DropdownItem;
|
|
5720
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5721
|
-
Dropdown.Menu = DropdownMenu;
|
|
5722
|
-
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;
|
|
5723
5561
|
|
|
5724
5562
|
var propTypes$5 = {
|
|
5725
5563
|
/**
|
|
@@ -5741,15 +5579,6 @@ var propTypes$5 = {
|
|
|
5741
5579
|
/** Disables both Buttons */
|
|
5742
5580
|
disabled: PropTypes.bool,
|
|
5743
5581
|
|
|
5744
|
-
/**
|
|
5745
|
-
* Aligns the dropdown menu responsively.
|
|
5746
|
-
*
|
|
5747
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5748
|
-
*
|
|
5749
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5750
|
-
*/
|
|
5751
|
-
menuAlign: alignPropType,
|
|
5752
|
-
|
|
5753
5582
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5754
5583
|
menuRole: PropTypes.string,
|
|
5755
5584
|
|
|
@@ -5759,7 +5588,7 @@ var propTypes$5 = {
|
|
|
5759
5588
|
/**
|
|
5760
5589
|
* Which event when fired outside the component will cause it to be closed.
|
|
5761
5590
|
*
|
|
5762
|
-
* _see [DropdownMenu](#
|
|
5591
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5763
5592
|
*/
|
|
5764
5593
|
rootCloseEvent: PropTypes.string,
|
|
5765
5594
|
|
|
@@ -5781,32 +5610,30 @@ var propTypes$5 = {
|
|
|
5781
5610
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5782
5611
|
*/
|
|
5783
5612
|
|
|
5784
|
-
var DropdownButton =
|
|
5613
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5785
5614
|
var title = _ref.title,
|
|
5786
5615
|
children = _ref.children,
|
|
5787
5616
|
bsPrefix = _ref.bsPrefix,
|
|
5788
5617
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5789
5618
|
variant = _ref.variant,
|
|
5790
5619
|
size = _ref.size,
|
|
5791
|
-
menuAlign = _ref.menuAlign,
|
|
5792
5620
|
menuRole = _ref.menuRole,
|
|
5793
5621
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5794
5622
|
disabled = _ref.disabled,
|
|
5795
5623
|
href = _ref.href,
|
|
5796
5624
|
id = _ref.id,
|
|
5797
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5625
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5798
5626
|
|
|
5799
|
-
return /*#__PURE__*/
|
|
5627
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5800
5628
|
ref: ref
|
|
5801
|
-
}, props), /*#__PURE__*/
|
|
5629
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5802
5630
|
id: id,
|
|
5803
5631
|
href: href,
|
|
5804
5632
|
size: size,
|
|
5805
5633
|
variant: variant,
|
|
5806
5634
|
disabled: disabled,
|
|
5807
5635
|
childBsPrefix: bsPrefix
|
|
5808
|
-
}, title), /*#__PURE__*/
|
|
5809
|
-
align: menuAlign,
|
|
5636
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5810
5637
|
role: menuRole,
|
|
5811
5638
|
renderOnMount: renderMenuOnMount,
|
|
5812
5639
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5908,7 +5735,7 @@ module.exports = exports['default'];
|
|
|
5908
5735
|
|
|
5909
5736
|
unwrapExports(all_1);
|
|
5910
5737
|
|
|
5911
|
-
var propTypes$
|
|
5738
|
+
var propTypes$6 = {
|
|
5912
5739
|
/**
|
|
5913
5740
|
* Specify whether the feedback is for valid or invalid fields
|
|
5914
5741
|
*
|
|
@@ -5920,7 +5747,7 @@ var propTypes$4 = {
|
|
|
5920
5747
|
tooltip: PropTypes.bool,
|
|
5921
5748
|
as: PropTypes.elementType
|
|
5922
5749
|
};
|
|
5923
|
-
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
|
|
5924
5751
|
function (_ref, ref) {
|
|
5925
5752
|
var _ref$as = _ref.as,
|
|
5926
5753
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5931,19 +5758,19 @@ function (_ref, ref) {
|
|
|
5931
5758
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5932
5759
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5933
5760
|
|
|
5934
|
-
return /*#__PURE__*/
|
|
5761
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5935
5762
|
ref: ref,
|
|
5936
5763
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5937
5764
|
}));
|
|
5938
5765
|
});
|
|
5939
5766
|
Feedback.displayName = 'Feedback';
|
|
5940
|
-
Feedback.propTypes = propTypes$
|
|
5767
|
+
Feedback.propTypes = propTypes$6;
|
|
5941
5768
|
|
|
5942
|
-
var FormContext =
|
|
5769
|
+
var FormContext = React.createContext({
|
|
5943
5770
|
controlId: undefined
|
|
5944
5771
|
});
|
|
5945
5772
|
|
|
5946
|
-
var FormCheckInput =
|
|
5773
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5947
5774
|
var id = _ref.id,
|
|
5948
5775
|
bsPrefix = _ref.bsPrefix,
|
|
5949
5776
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5968,7 +5795,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5968
5795
|
defaultPrefix = _ref2[1];
|
|
5969
5796
|
|
|
5970
5797
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5971
|
-
return /*#__PURE__*/
|
|
5798
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5972
5799
|
ref: ref,
|
|
5973
5800
|
type: type,
|
|
5974
5801
|
id: id || controlId,
|
|
@@ -5977,7 +5804,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5977
5804
|
});
|
|
5978
5805
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5979
5806
|
|
|
5980
|
-
var FormCheckLabel =
|
|
5807
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5981
5808
|
var bsPrefix = _ref.bsPrefix,
|
|
5982
5809
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5983
5810
|
className = _ref.className,
|
|
@@ -5993,7 +5820,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5993
5820
|
defaultPrefix = _ref2[1];
|
|
5994
5821
|
|
|
5995
5822
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5996
|
-
return /*#__PURE__*/
|
|
5823
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5997
5824
|
ref: ref,
|
|
5998
5825
|
htmlFor: htmlFor || controlId,
|
|
5999
5826
|
className: classnames(className, bsPrefix)
|
|
@@ -6001,7 +5828,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6001
5828
|
});
|
|
6002
5829
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6003
5830
|
|
|
6004
|
-
var FormCheck =
|
|
5831
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6005
5832
|
var id = _ref.id,
|
|
6006
5833
|
bsPrefix = _ref.bsPrefix,
|
|
6007
5834
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6046,8 +5873,8 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6046
5873
|
custom: custom
|
|
6047
5874
|
};
|
|
6048
5875
|
}, [controlId, custom, id]);
|
|
6049
|
-
var hasLabel =
|
|
6050
|
-
var input = /*#__PURE__*/
|
|
5876
|
+
var hasLabel = label != null && label !== false && !children;
|
|
5877
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6051
5878
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6052
5879
|
ref: ref,
|
|
6053
5880
|
isValid: isValid,
|
|
@@ -6056,14 +5883,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6056
5883
|
disabled: disabled,
|
|
6057
5884
|
as: as
|
|
6058
5885
|
}));
|
|
6059
|
-
return /*#__PURE__*/
|
|
5886
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6060
5887
|
value: innerFormContext
|
|
6061
|
-
}, /*#__PURE__*/
|
|
5888
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6062
5889
|
style: style,
|
|
6063
5890
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6064
|
-
}, children || /*#__PURE__*/
|
|
5891
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6065
5892
|
title: title
|
|
6066
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5893
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6067
5894
|
type: isValid ? 'valid' : 'invalid',
|
|
6068
5895
|
tooltip: feedbackTooltip
|
|
6069
5896
|
}, feedback))));
|
|
@@ -6072,7 +5899,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6072
5899
|
FormCheck.Input = FormCheckInput;
|
|
6073
5900
|
FormCheck.Label = FormCheckLabel;
|
|
6074
5901
|
|
|
6075
|
-
var FormFileInput =
|
|
5902
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6076
5903
|
var id = _ref.id,
|
|
6077
5904
|
bsPrefix = _ref.bsPrefix,
|
|
6078
5905
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6095,7 +5922,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6095
5922
|
defaultPrefix = _ref2[1];
|
|
6096
5923
|
|
|
6097
5924
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6098
|
-
return /*#__PURE__*/
|
|
5925
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6099
5926
|
ref: ref,
|
|
6100
5927
|
id: id || controlId,
|
|
6101
5928
|
type: type,
|
|
@@ -6105,7 +5932,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6105
5932
|
});
|
|
6106
5933
|
FormFileInput.displayName = 'FormFileInput';
|
|
6107
5934
|
|
|
6108
|
-
var FormFileLabel =
|
|
5935
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6109
5936
|
var bsPrefix = _ref.bsPrefix,
|
|
6110
5937
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6111
5938
|
className = _ref.className,
|
|
@@ -6121,7 +5948,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6121
5948
|
defaultPrefix = _ref2[1];
|
|
6122
5949
|
|
|
6123
5950
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6124
|
-
return /*#__PURE__*/
|
|
5951
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6125
5952
|
ref: ref,
|
|
6126
5953
|
htmlFor: htmlFor || controlId,
|
|
6127
5954
|
className: classnames(className, bsPrefix),
|
|
@@ -6130,7 +5957,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6130
5957
|
});
|
|
6131
5958
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6132
5959
|
|
|
6133
|
-
var FormFile =
|
|
5960
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6134
5961
|
var id = _ref.id,
|
|
6135
5962
|
bsPrefix = _ref.bsPrefix,
|
|
6136
5963
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6173,7 +6000,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6173
6000
|
};
|
|
6174
6001
|
}, [controlId, custom, id]);
|
|
6175
6002
|
var hasLabel = label != null && label !== false && !children;
|
|
6176
|
-
var input = /*#__PURE__*/
|
|
6003
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6177
6004
|
ref: ref,
|
|
6178
6005
|
isValid: isValid,
|
|
6179
6006
|
isInvalid: isInvalid,
|
|
@@ -6181,14 +6008,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6181
6008
|
as: inputAs,
|
|
6182
6009
|
lang: lang
|
|
6183
6010
|
}));
|
|
6184
|
-
return /*#__PURE__*/
|
|
6011
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6185
6012
|
value: innerFormContext
|
|
6186
|
-
}, /*#__PURE__*/
|
|
6013
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6187
6014
|
style: style,
|
|
6188
6015
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6189
|
-
}, children || /*#__PURE__*/
|
|
6016
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6190
6017
|
"data-browse": dataBrowse
|
|
6191
|
-
}, label)) : /*#__PURE__*/
|
|
6018
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6192
6019
|
type: isValid ? 'valid' : 'invalid',
|
|
6193
6020
|
tooltip: feedbackTooltip
|
|
6194
6021
|
}, feedback))));
|
|
@@ -6197,7 +6024,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6197
6024
|
FormFile.Input = FormFileInput;
|
|
6198
6025
|
FormFile.Label = FormFileLabel;
|
|
6199
6026
|
|
|
6200
|
-
var FormControl =
|
|
6027
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6201
6028
|
var bsPrefix = _ref.bsPrefix,
|
|
6202
6029
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6203
6030
|
type = _ref.type,
|
|
@@ -6249,7 +6076,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6249
6076
|
}
|
|
6250
6077
|
|
|
6251
6078
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6252
|
-
return /*#__PURE__*/
|
|
6079
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6253
6080
|
type: type,
|
|
6254
6081
|
size: htmlSize,
|
|
6255
6082
|
ref: ref,
|
|
@@ -6263,7 +6090,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6263
6090
|
Feedback: Feedback
|
|
6264
6091
|
});
|
|
6265
6092
|
|
|
6266
|
-
var FormGroup =
|
|
6093
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6267
6094
|
var bsPrefix = _ref.bsPrefix,
|
|
6268
6095
|
className = _ref.className,
|
|
6269
6096
|
children = _ref.children,
|
|
@@ -6278,20 +6105,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6278
6105
|
controlId: controlId
|
|
6279
6106
|
};
|
|
6280
6107
|
}, [controlId]);
|
|
6281
|
-
return /*#__PURE__*/
|
|
6108
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6282
6109
|
value: context
|
|
6283
|
-
}, /*#__PURE__*/
|
|
6110
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6284
6111
|
ref: ref,
|
|
6285
6112
|
className: classnames(className, bsPrefix)
|
|
6286
6113
|
}), children));
|
|
6287
6114
|
});
|
|
6288
6115
|
FormGroup.displayName = 'FormGroup';
|
|
6289
6116
|
|
|
6290
|
-
var defaultProps$
|
|
6117
|
+
var defaultProps$h = {
|
|
6291
6118
|
column: false,
|
|
6292
6119
|
srOnly: false
|
|
6293
6120
|
};
|
|
6294
|
-
var FormLabel =
|
|
6121
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6295
6122
|
var _ref$as = _ref.as,
|
|
6296
6123
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6297
6124
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6306,11 +6133,11 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6306
6133
|
|
|
6307
6134
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6308
6135
|
var columnClass = 'col-form-label';
|
|
6309
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6136
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6310
6137
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6311
6138
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6312
6139
|
htmlFor = htmlFor || controlId;
|
|
6313
|
-
if (column) return /*#__PURE__*/
|
|
6140
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6314
6141
|
as: "label",
|
|
6315
6142
|
className: classes,
|
|
6316
6143
|
htmlFor: htmlFor
|
|
@@ -6318,7 +6145,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6318
6145
|
return (
|
|
6319
6146
|
/*#__PURE__*/
|
|
6320
6147
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6321
|
-
|
|
6148
|
+
React.createElement(Component, _extends({
|
|
6322
6149
|
ref: ref,
|
|
6323
6150
|
className: classes,
|
|
6324
6151
|
htmlFor: htmlFor
|
|
@@ -6326,9 +6153,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6326
6153
|
);
|
|
6327
6154
|
});
|
|
6328
6155
|
FormLabel.displayName = 'FormLabel';
|
|
6329
|
-
FormLabel.defaultProps = defaultProps$
|
|
6156
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6330
6157
|
|
|
6331
|
-
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
|
|
6332
6159
|
function (_ref, ref) {
|
|
6333
6160
|
var bsPrefix = _ref.bsPrefix,
|
|
6334
6161
|
className = _ref.className,
|
|
@@ -6338,15 +6165,15 @@ function (_ref, ref) {
|
|
|
6338
6165
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6339
6166
|
|
|
6340
6167
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6341
|
-
return /*#__PURE__*/
|
|
6168
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6342
6169
|
ref: ref,
|
|
6343
6170
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6344
6171
|
}));
|
|
6345
6172
|
});
|
|
6346
6173
|
FormText.displayName = 'FormText';
|
|
6347
6174
|
|
|
6348
|
-
var Switch =
|
|
6349
|
-
return /*#__PURE__*/
|
|
6175
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6176
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6350
6177
|
ref: ref,
|
|
6351
6178
|
type: "switch"
|
|
6352
6179
|
}));
|
|
@@ -6356,10 +6183,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6356
6183
|
Switch.Label = FormCheck.Label;
|
|
6357
6184
|
|
|
6358
6185
|
var FormRow = createWithBsPrefix('form-row');
|
|
6359
|
-
var defaultProps$
|
|
6186
|
+
var defaultProps$i = {
|
|
6360
6187
|
inline: false
|
|
6361
6188
|
};
|
|
6362
|
-
var FormImpl =
|
|
6189
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6363
6190
|
var bsPrefix = _ref.bsPrefix,
|
|
6364
6191
|
inline = _ref.inline,
|
|
6365
6192
|
className = _ref.className,
|
|
@@ -6369,13 +6196,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6369
6196
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6370
6197
|
|
|
6371
6198
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6372
|
-
return /*#__PURE__*/
|
|
6199
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6373
6200
|
ref: ref,
|
|
6374
6201
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6375
6202
|
}));
|
|
6376
6203
|
});
|
|
6377
6204
|
FormImpl.displayName = 'Form';
|
|
6378
|
-
FormImpl.defaultProps = defaultProps$
|
|
6205
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6379
6206
|
FormImpl.Row = FormRow;
|
|
6380
6207
|
FormImpl.Group = FormGroup;
|
|
6381
6208
|
FormImpl.Control = FormControl$1;
|
|
@@ -6385,10 +6212,10 @@ FormImpl.Switch = Switch;
|
|
|
6385
6212
|
FormImpl.Label = FormLabel;
|
|
6386
6213
|
FormImpl.Text = FormText;
|
|
6387
6214
|
|
|
6388
|
-
var defaultProps$
|
|
6215
|
+
var defaultProps$j = {
|
|
6389
6216
|
fluid: false
|
|
6390
6217
|
};
|
|
6391
|
-
var Container =
|
|
6218
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6392
6219
|
var bsPrefix = _ref.bsPrefix,
|
|
6393
6220
|
fluid = _ref.fluid,
|
|
6394
6221
|
_ref$as = _ref.as,
|
|
@@ -6398,16 +6225,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6398
6225
|
|
|
6399
6226
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6400
6227
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6401
|
-
return /*#__PURE__*/
|
|
6228
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6402
6229
|
ref: ref
|
|
6403
6230
|
}, props, {
|
|
6404
6231
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6405
6232
|
}));
|
|
6406
6233
|
});
|
|
6407
6234
|
Container.displayName = 'Container';
|
|
6408
|
-
Container.defaultProps = defaultProps$
|
|
6235
|
+
Container.defaultProps = defaultProps$j;
|
|
6409
6236
|
|
|
6410
|
-
var propTypes$
|
|
6237
|
+
var propTypes$7 = {
|
|
6411
6238
|
/**
|
|
6412
6239
|
* @default 'img'
|
|
6413
6240
|
*/
|
|
@@ -6439,7 +6266,7 @@ var defaultProps$k = {
|
|
|
6439
6266
|
roundedCircle: false,
|
|
6440
6267
|
thumbnail: false
|
|
6441
6268
|
};
|
|
6442
|
-
var Image =
|
|
6269
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6443
6270
|
var bsPrefix = _ref.bsPrefix,
|
|
6444
6271
|
className = _ref.className,
|
|
6445
6272
|
fluid = _ref.fluid,
|
|
@@ -6450,7 +6277,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6450
6277
|
|
|
6451
6278
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6452
6279
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6453
|
-
return /*#__PURE__*/
|
|
6280
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6454
6281
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6455
6282
|
ref: ref
|
|
6456
6283
|
}, props, {
|
|
@@ -6460,22 +6287,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6460
6287
|
Image.displayName = 'Image';
|
|
6461
6288
|
Image.defaultProps = defaultProps$k;
|
|
6462
6289
|
|
|
6463
|
-
var defaultProps$
|
|
6290
|
+
var defaultProps$l = {
|
|
6464
6291
|
fluid: true
|
|
6465
6292
|
};
|
|
6466
|
-
var FigureImage =
|
|
6293
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6467
6294
|
var className = _ref.className,
|
|
6468
6295
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6469
6296
|
|
|
6470
|
-
return /*#__PURE__*/
|
|
6297
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6471
6298
|
ref: ref
|
|
6472
6299
|
}, props, {
|
|
6473
6300
|
className: classnames(className, 'figure-img')
|
|
6474
6301
|
}));
|
|
6475
6302
|
});
|
|
6476
6303
|
FigureImage.displayName = 'FigureImage';
|
|
6477
|
-
FigureImage.propTypes = propTypes$
|
|
6478
|
-
FigureImage.defaultProps = defaultProps$
|
|
6304
|
+
FigureImage.propTypes = propTypes$7;
|
|
6305
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6479
6306
|
|
|
6480
6307
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6481
6308
|
Component: 'figcaption'
|
|
@@ -6494,13 +6321,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6494
6321
|
});
|
|
6495
6322
|
|
|
6496
6323
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6497
|
-
return /*#__PURE__*/
|
|
6324
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6498
6325
|
type: "checkbox"
|
|
6499
6326
|
}, props)));
|
|
6500
6327
|
};
|
|
6501
6328
|
|
|
6502
6329
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6503
|
-
return /*#__PURE__*/
|
|
6330
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6504
6331
|
type: "radio"
|
|
6505
6332
|
}, props)));
|
|
6506
6333
|
};
|
|
@@ -6513,7 +6340,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6513
6340
|
* @property {InputGroupRadio} Radio
|
|
6514
6341
|
* @property {InputGroupCheckbox} Checkbox
|
|
6515
6342
|
*/
|
|
6516
|
-
var InputGroup =
|
|
6343
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6517
6344
|
var bsPrefix = _ref.bsPrefix,
|
|
6518
6345
|
size = _ref.size,
|
|
6519
6346
|
className = _ref.className,
|
|
@@ -6522,7 +6349,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6522
6349
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6523
6350
|
|
|
6524
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6525
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6526
6353
|
ref: ref
|
|
6527
6354
|
}, props, {
|
|
6528
6355
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6530,7 +6357,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6530
6357
|
});
|
|
6531
6358
|
InputGroup.displayName = 'InputGroup';
|
|
6532
6359
|
|
|
6533
|
-
_extends({}, InputGroup, {
|
|
6360
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6534
6361
|
Text: InputGroupText,
|
|
6535
6362
|
Radio: InputGroupRadio,
|
|
6536
6363
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6538,10 +6365,10 @@ _extends({}, InputGroup, {
|
|
|
6538
6365
|
Prepend: InputGroupPrepend
|
|
6539
6366
|
});
|
|
6540
6367
|
|
|
6541
|
-
var defaultProps$
|
|
6368
|
+
var defaultProps$m = {
|
|
6542
6369
|
fluid: false
|
|
6543
6370
|
};
|
|
6544
|
-
var Jumbotron =
|
|
6371
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6545
6372
|
var _classes;
|
|
6546
6373
|
|
|
6547
6374
|
var _ref$as = _ref.as,
|
|
@@ -6553,21 +6380,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6553
6380
|
|
|
6554
6381
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6555
6382
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6556
|
-
return /*#__PURE__*/
|
|
6383
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6557
6384
|
ref: ref
|
|
6558
6385
|
}, props, {
|
|
6559
6386
|
className: classnames(className, classes)
|
|
6560
6387
|
}));
|
|
6561
6388
|
});
|
|
6562
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6389
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6563
6390
|
Jumbotron.displayName = 'Jumbotron';
|
|
6564
6391
|
|
|
6565
|
-
var TabContext =
|
|
6392
|
+
var TabContext = React.createContext(null);
|
|
6566
6393
|
|
|
6567
6394
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6568
|
-
var noop$
|
|
6395
|
+
var noop$4 = function noop() {};
|
|
6569
6396
|
|
|
6570
|
-
var AbstractNav =
|
|
6397
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6571
6398
|
var _ref$as = _ref.as,
|
|
6572
6399
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6573
6400
|
onSelect = _ref.onSelect,
|
|
@@ -6648,27 +6475,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6648
6475
|
needsRefocusRef.current = false;
|
|
6649
6476
|
});
|
|
6650
6477
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6651
|
-
return /*#__PURE__*/
|
|
6478
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6652
6479
|
value: handleSelect
|
|
6653
|
-
}, /*#__PURE__*/
|
|
6480
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6654
6481
|
value: {
|
|
6655
6482
|
role: role,
|
|
6656
6483
|
// used by NavLink to determine it's role
|
|
6657
6484
|
activeKey: makeEventKey(activeKey),
|
|
6658
|
-
getControlledId: getControlledId || noop$
|
|
6659
|
-
getControllerId: getControllerId || noop$
|
|
6485
|
+
getControlledId: getControlledId || noop$4,
|
|
6486
|
+
getControllerId: getControllerId || noop$4
|
|
6660
6487
|
}
|
|
6661
|
-
}, /*#__PURE__*/
|
|
6488
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6662
6489
|
onKeyDown: handleKeyDown,
|
|
6663
6490
|
ref: mergedRef,
|
|
6664
6491
|
role: role
|
|
6665
6492
|
}))));
|
|
6666
6493
|
});
|
|
6667
6494
|
|
|
6668
|
-
var defaultProps$
|
|
6495
|
+
var defaultProps$n = {
|
|
6669
6496
|
disabled: false
|
|
6670
6497
|
};
|
|
6671
|
-
var AbstractNavItem =
|
|
6498
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6672
6499
|
var active = _ref.active,
|
|
6673
6500
|
className = _ref.className,
|
|
6674
6501
|
eventKey = _ref.eventKey,
|
|
@@ -6705,20 +6532,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6705
6532
|
if (onSelect) onSelect(navKey, e);
|
|
6706
6533
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6707
6534
|
});
|
|
6708
|
-
return /*#__PURE__*/
|
|
6535
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6709
6536
|
ref: ref,
|
|
6710
6537
|
onClick: handleOnclick,
|
|
6711
6538
|
className: classnames(className, isActive && 'active')
|
|
6712
6539
|
}));
|
|
6713
6540
|
});
|
|
6714
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6541
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6715
6542
|
|
|
6716
|
-
var defaultProps$
|
|
6543
|
+
var defaultProps$o = {
|
|
6717
6544
|
variant: undefined,
|
|
6718
6545
|
active: false,
|
|
6719
6546
|
disabled: false
|
|
6720
6547
|
};
|
|
6721
|
-
var ListGroupItem =
|
|
6548
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6722
6549
|
var bsPrefix = _ref.bsPrefix,
|
|
6723
6550
|
active = _ref.active,
|
|
6724
6551
|
disabled = _ref.disabled,
|
|
@@ -6740,25 +6567,24 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6740
6567
|
|
|
6741
6568
|
if (onClick) onClick(event);
|
|
6742
6569
|
}, [disabled, onClick]);
|
|
6743
|
-
return /*#__PURE__*/
|
|
6570
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6744
6571
|
ref: ref
|
|
6745
6572
|
}, props, {
|
|
6746
|
-
|
|
6747
|
-
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
|
|
6748
6574
|
,
|
|
6749
6575
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6750
6576
|
onClick: handleClick,
|
|
6751
6577
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6752
6578
|
}));
|
|
6753
6579
|
});
|
|
6754
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6580
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6755
6581
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6756
6582
|
|
|
6757
|
-
var defaultProps$
|
|
6583
|
+
var defaultProps$p = {
|
|
6758
6584
|
variant: undefined,
|
|
6759
6585
|
horizontal: undefined
|
|
6760
6586
|
};
|
|
6761
|
-
var ListGroup =
|
|
6587
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6762
6588
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6763
6589
|
activeKey: 'onSelect'
|
|
6764
6590
|
}),
|
|
@@ -6780,19 +6606,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6780
6606
|
}
|
|
6781
6607
|
|
|
6782
6608
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6783
|
-
return /*#__PURE__*/
|
|
6609
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6784
6610
|
ref: ref
|
|
6785
6611
|
}, controlledProps, {
|
|
6786
6612
|
as: as,
|
|
6787
6613
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6788
6614
|
}));
|
|
6789
6615
|
});
|
|
6790
|
-
ListGroup.defaultProps = defaultProps$
|
|
6616
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6791
6617
|
ListGroup.displayName = 'ListGroup';
|
|
6792
6618
|
ListGroup.Item = ListGroupItem;
|
|
6793
6619
|
|
|
6794
6620
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6795
|
-
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
|
|
6796
6622
|
function (_ref, ref) {
|
|
6797
6623
|
var bsPrefix = _ref.bsPrefix,
|
|
6798
6624
|
className = _ref.className,
|
|
@@ -6801,7 +6627,7 @@ function (_ref, ref) {
|
|
|
6801
6627
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6802
6628
|
|
|
6803
6629
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6804
|
-
return /*#__PURE__*/
|
|
6630
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6805
6631
|
ref: ref,
|
|
6806
6632
|
className: classnames(className, prefix)
|
|
6807
6633
|
}));
|
|
@@ -6829,14 +6655,14 @@ function scrollbarSize(recalc) {
|
|
|
6829
6655
|
}
|
|
6830
6656
|
|
|
6831
6657
|
/**
|
|
6832
|
-
*
|
|
6658
|
+
* Return the actively focused element safely.
|
|
6833
6659
|
*
|
|
6834
|
-
* @param doc the document to
|
|
6660
|
+
* @param doc the document to checl
|
|
6835
6661
|
*/
|
|
6836
6662
|
|
|
6837
6663
|
function activeElement(doc) {
|
|
6838
6664
|
if (doc === void 0) {
|
|
6839
|
-
doc = ownerDocument
|
|
6665
|
+
doc = ownerDocument();
|
|
6840
6666
|
}
|
|
6841
6667
|
|
|
6842
6668
|
// Support: IE 9 only
|
|
@@ -6853,13 +6679,6 @@ function activeElement(doc) {
|
|
|
6853
6679
|
}
|
|
6854
6680
|
}
|
|
6855
6681
|
|
|
6856
|
-
/**
|
|
6857
|
-
* Adds a CSS class to a given element.
|
|
6858
|
-
*
|
|
6859
|
-
* @param element the element
|
|
6860
|
-
* @param className the CSS class name
|
|
6861
|
-
*/
|
|
6862
|
-
|
|
6863
6682
|
function addClass(element, className) {
|
|
6864
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);
|
|
6865
6684
|
}
|
|
@@ -6867,13 +6686,6 @@ function addClass(element, className) {
|
|
|
6867
6686
|
function replaceClassName(origClass, classToRemove) {
|
|
6868
6687
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6869
6688
|
}
|
|
6870
|
-
/**
|
|
6871
|
-
* Removes a CSS class from a given element.
|
|
6872
|
-
*
|
|
6873
|
-
* @param element the element
|
|
6874
|
-
* @param className the CSS class name
|
|
6875
|
-
*/
|
|
6876
|
-
|
|
6877
6689
|
|
|
6878
6690
|
function removeClass(element, className) {
|
|
6879
6691
|
if (element.classList) {
|
|
@@ -6900,7 +6712,7 @@ function isBody(node) {
|
|
|
6900
6712
|
}
|
|
6901
6713
|
|
|
6902
6714
|
function bodyIsOverflowing(node) {
|
|
6903
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6715
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6904
6716
|
var win = isWindow(node) || doc.defaultView;
|
|
6905
6717
|
return doc.body.clientWidth < win.innerWidth;
|
|
6906
6718
|
}
|
|
@@ -7112,7 +6924,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7112
6924
|
var _ref;
|
|
7113
6925
|
|
|
7114
6926
|
if (typeof document === 'undefined') return null;
|
|
7115
|
-
if (ref == null) return ownerDocument
|
|
6927
|
+
if (ref == null) return ownerDocument().body;
|
|
7116
6928
|
if (typeof ref === 'function') ref = ref();
|
|
7117
6929
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7118
6930
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7145,11 +6957,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7145
6957
|
return resolvedRef;
|
|
7146
6958
|
}
|
|
7147
6959
|
|
|
7148
|
-
var manager
|
|
6960
|
+
var manager;
|
|
7149
6961
|
|
|
7150
6962
|
function getManager() {
|
|
7151
|
-
if (!manager
|
|
7152
|
-
return manager
|
|
6963
|
+
if (!manager) manager = new ModalManager();
|
|
6964
|
+
return manager;
|
|
7153
6965
|
}
|
|
7154
6966
|
|
|
7155
6967
|
function useModalManager(provided) {
|
|
@@ -7177,7 +6989,7 @@ function useModalManager(provided) {
|
|
|
7177
6989
|
});
|
|
7178
6990
|
}
|
|
7179
6991
|
|
|
7180
|
-
var Modal
|
|
6992
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7181
6993
|
var _ref$show = _ref.show,
|
|
7182
6994
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7183
6995
|
_ref$role = _ref.role,
|
|
@@ -7203,7 +7015,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7203
7015
|
renderDialog = _ref.renderDialog,
|
|
7204
7016
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7205
7017
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7206
|
-
return /*#__PURE__*/
|
|
7018
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7207
7019
|
} : _ref$renderBackdrop,
|
|
7208
7020
|
providedManager = _ref.manager,
|
|
7209
7021
|
containerRef = _ref.container,
|
|
@@ -7261,7 +7073,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7261
7073
|
if (autoFocus) {
|
|
7262
7074
|
var currentActiveElement = activeElement(document);
|
|
7263
7075
|
|
|
7264
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7076
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7265
7077
|
lastFocusRef.current = currentActiveElement;
|
|
7266
7078
|
modal.dialog.focus();
|
|
7267
7079
|
}
|
|
@@ -7307,7 +7119,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7307
7119
|
|
|
7308
7120
|
var currentActiveElement = activeElement();
|
|
7309
7121
|
|
|
7310
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7122
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7311
7123
|
modal.dialog.focus();
|
|
7312
7124
|
}
|
|
7313
7125
|
});
|
|
@@ -7361,12 +7173,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7361
7173
|
tabIndex: -1
|
|
7362
7174
|
});
|
|
7363
7175
|
|
|
7364
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7176
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7365
7177
|
role: 'document'
|
|
7366
7178
|
}));
|
|
7367
7179
|
|
|
7368
7180
|
if (Transition) {
|
|
7369
|
-
dialog = /*#__PURE__*/
|
|
7181
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7370
7182
|
appear: true,
|
|
7371
7183
|
unmountOnExit: true,
|
|
7372
7184
|
"in": !!show,
|
|
@@ -7389,16 +7201,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7389
7201
|
});
|
|
7390
7202
|
|
|
7391
7203
|
if (BackdropTransition) {
|
|
7392
|
-
backdropElement = /*#__PURE__*/
|
|
7204
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7393
7205
|
appear: true,
|
|
7394
7206
|
"in": !!show
|
|
7395
7207
|
}, backdropElement);
|
|
7396
7208
|
}
|
|
7397
7209
|
}
|
|
7398
7210
|
|
|
7399
|
-
return /*#__PURE__*/
|
|
7211
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7400
7212
|
});
|
|
7401
|
-
var propTypes$
|
|
7213
|
+
var propTypes$8 = {
|
|
7402
7214
|
/**
|
|
7403
7215
|
* Set the visibility of the Modal
|
|
7404
7216
|
*/
|
|
@@ -7554,9 +7366,9 @@ var propTypes$2 = {
|
|
|
7554
7366
|
*/
|
|
7555
7367
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7556
7368
|
};
|
|
7557
|
-
Modal
|
|
7558
|
-
Modal
|
|
7559
|
-
var BaseModal = Object.assign(Modal
|
|
7369
|
+
Modal.displayName = 'Modal';
|
|
7370
|
+
Modal.propTypes = propTypes$8;
|
|
7371
|
+
var BaseModal = Object.assign(Modal, {
|
|
7560
7372
|
Manager: ModalManager
|
|
7561
7373
|
});
|
|
7562
7374
|
|
|
@@ -7635,39 +7447,38 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7635
7447
|
|
|
7636
7448
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7637
7449
|
|
|
7638
|
-
var ModalContext =
|
|
7450
|
+
var ModalContext = React.createContext({
|
|
7639
7451
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7640
7452
|
onHide: function onHide() {}
|
|
7641
7453
|
});
|
|
7642
7454
|
|
|
7643
|
-
var ModalDialog =
|
|
7455
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7644
7456
|
var bsPrefix = _ref.bsPrefix,
|
|
7645
7457
|
className = _ref.className,
|
|
7646
|
-
contentClassName = _ref.contentClassName,
|
|
7647
7458
|
centered = _ref.centered,
|
|
7648
7459
|
size = _ref.size,
|
|
7649
7460
|
children = _ref.children,
|
|
7650
7461
|
scrollable = _ref.scrollable,
|
|
7651
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7462
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7652
7463
|
|
|
7653
7464
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7654
7465
|
var dialogClass = bsPrefix + "-dialog";
|
|
7655
|
-
return /*#__PURE__*/
|
|
7466
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7656
7467
|
ref: ref,
|
|
7657
7468
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7658
|
-
}), /*#__PURE__*/
|
|
7659
|
-
className:
|
|
7469
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7470
|
+
className: bsPrefix + "-content"
|
|
7660
7471
|
}, children));
|
|
7661
7472
|
});
|
|
7662
7473
|
ModalDialog.displayName = 'ModalDialog';
|
|
7663
7474
|
|
|
7664
7475
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7665
7476
|
|
|
7666
|
-
var defaultProps$
|
|
7477
|
+
var defaultProps$q = {
|
|
7667
7478
|
closeLabel: 'Close',
|
|
7668
7479
|
closeButton: false
|
|
7669
7480
|
};
|
|
7670
|
-
var ModalHeader =
|
|
7481
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7671
7482
|
var bsPrefix = _ref.bsPrefix,
|
|
7672
7483
|
closeLabel = _ref.closeLabel,
|
|
7673
7484
|
closeButton = _ref.closeButton,
|
|
@@ -7682,25 +7493,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7682
7493
|
if (context) context.onHide();
|
|
7683
7494
|
if (onHide) onHide();
|
|
7684
7495
|
});
|
|
7685
|
-
return /*#__PURE__*/
|
|
7496
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7686
7497
|
ref: ref
|
|
7687
7498
|
}, props, {
|
|
7688
7499
|
className: classnames(className, bsPrefix)
|
|
7689
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7500
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7690
7501
|
label: closeLabel,
|
|
7691
7502
|
onClick: handleClick
|
|
7692
7503
|
}));
|
|
7693
7504
|
});
|
|
7694
7505
|
ModalHeader.displayName = 'ModalHeader';
|
|
7695
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7506
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7696
7507
|
|
|
7697
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7508
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7698
7509
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7699
|
-
Component: DivStyledAsH4
|
|
7510
|
+
Component: DivStyledAsH4$1
|
|
7700
7511
|
});
|
|
7701
7512
|
|
|
7702
|
-
var manager;
|
|
7703
|
-
var defaultProps$
|
|
7513
|
+
var manager$1;
|
|
7514
|
+
var defaultProps$r = {
|
|
7704
7515
|
show: false,
|
|
7705
7516
|
backdrop: true,
|
|
7706
7517
|
keyboard: true,
|
|
@@ -7713,21 +7524,20 @@ var defaultProps$d = {
|
|
|
7713
7524
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7714
7525
|
|
|
7715
7526
|
function DialogTransition(props) {
|
|
7716
|
-
return /*#__PURE__*/
|
|
7527
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7717
7528
|
}
|
|
7718
7529
|
|
|
7719
7530
|
function BackdropTransition(props) {
|
|
7720
|
-
return /*#__PURE__*/
|
|
7531
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7721
7532
|
}
|
|
7722
7533
|
/* eslint-enable no-use-before-define */
|
|
7723
7534
|
|
|
7724
7535
|
|
|
7725
|
-
var Modal =
|
|
7536
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7726
7537
|
var bsPrefix = _ref.bsPrefix,
|
|
7727
7538
|
className = _ref.className,
|
|
7728
7539
|
style = _ref.style,
|
|
7729
7540
|
dialogClassName = _ref.dialogClassName,
|
|
7730
|
-
contentClassName = _ref.contentClassName,
|
|
7731
7541
|
children = _ref.children,
|
|
7732
7542
|
Dialog = _ref.dialogAs,
|
|
7733
7543
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7751,7 +7561,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7751
7561
|
onExited = _ref.onExited,
|
|
7752
7562
|
backdropClassName = _ref.backdropClassName,
|
|
7753
7563
|
propsManager = _ref.manager,
|
|
7754
|
-
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"]);
|
|
7755
7565
|
|
|
7756
7566
|
var _useState = useState({}),
|
|
7757
7567
|
modalStyle = _useState[0],
|
|
@@ -7788,14 +7598,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7788
7598
|
|
|
7789
7599
|
function getModalManager() {
|
|
7790
7600
|
if (propsManager) return propsManager;
|
|
7791
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7792
|
-
return manager;
|
|
7601
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7602
|
+
return manager$1;
|
|
7793
7603
|
}
|
|
7794
7604
|
|
|
7795
7605
|
function updateDialogStyle(node) {
|
|
7796
7606
|
if (!canUseDOM) return;
|
|
7797
7607
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7798
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7608
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7799
7609
|
setStyle({
|
|
7800
7610
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7801
7611
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7917,7 +7727,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7917
7727
|
};
|
|
7918
7728
|
|
|
7919
7729
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7920
|
-
return /*#__PURE__*/
|
|
7730
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7921
7731
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7922
7732
|
}));
|
|
7923
7733
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7930,7 +7740,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7930
7740
|
}
|
|
7931
7741
|
|
|
7932
7742
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7933
|
-
return /*#__PURE__*/
|
|
7743
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7934
7744
|
role: "dialog"
|
|
7935
7745
|
}, dialogProps, {
|
|
7936
7746
|
style: baseModalStyle,
|
|
@@ -7938,17 +7748,16 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7938
7748
|
onClick: backdrop ? handleClick : undefined,
|
|
7939
7749
|
onMouseUp: handleMouseUp,
|
|
7940
7750
|
"aria-labelledby": ariaLabelledby
|
|
7941
|
-
}), /*#__PURE__*/
|
|
7751
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7942
7752
|
role: "document",
|
|
7943
7753
|
onMouseDown: handleDialogMouseDown,
|
|
7944
|
-
className: dialogClassName
|
|
7945
|
-
contentClassName: contentClassName
|
|
7754
|
+
className: dialogClassName
|
|
7946
7755
|
}), children));
|
|
7947
7756
|
};
|
|
7948
7757
|
|
|
7949
|
-
return /*#__PURE__*/
|
|
7758
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7950
7759
|
value: modalContext
|
|
7951
|
-
}, /*#__PURE__*/
|
|
7760
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7952
7761
|
show: show,
|
|
7953
7762
|
ref: setModalRef,
|
|
7954
7763
|
backdrop: backdrop,
|
|
@@ -7976,17 +7785,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7976
7785
|
renderDialog: renderDialog
|
|
7977
7786
|
}));
|
|
7978
7787
|
});
|
|
7979
|
-
Modal.displayName = 'Modal';
|
|
7980
|
-
Modal.defaultProps = defaultProps$
|
|
7981
|
-
Modal.Body = ModalBody;
|
|
7982
|
-
Modal.Header = ModalHeader;
|
|
7983
|
-
Modal.Title = ModalTitle;
|
|
7984
|
-
Modal.Footer = ModalFooter;
|
|
7985
|
-
Modal.Dialog = ModalDialog;
|
|
7986
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7987
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7988
|
-
|
|
7989
|
-
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
|
|
7990
7799
|
function (_ref, ref) {
|
|
7991
7800
|
var bsPrefix = _ref.bsPrefix,
|
|
7992
7801
|
className = _ref.className,
|
|
@@ -7996,18 +7805,18 @@ function (_ref, ref) {
|
|
|
7996
7805
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7997
7806
|
|
|
7998
7807
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7999
|
-
return /*#__PURE__*/
|
|
7808
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8000
7809
|
ref: ref,
|
|
8001
7810
|
className: classnames(className, bsPrefix)
|
|
8002
7811
|
}), children);
|
|
8003
7812
|
});
|
|
8004
7813
|
NavItem.displayName = 'NavItem';
|
|
8005
7814
|
|
|
8006
|
-
var defaultProps$
|
|
7815
|
+
var defaultProps$s = {
|
|
8007
7816
|
disabled: false,
|
|
8008
7817
|
as: SafeAnchor
|
|
8009
7818
|
};
|
|
8010
|
-
var NavLink =
|
|
7819
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8011
7820
|
var bsPrefix = _ref.bsPrefix,
|
|
8012
7821
|
disabled = _ref.disabled,
|
|
8013
7822
|
className = _ref.className,
|
|
@@ -8018,7 +7827,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8018
7827
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8019
7828
|
|
|
8020
7829
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8021
|
-
return /*#__PURE__*/
|
|
7830
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8022
7831
|
href: href,
|
|
8023
7832
|
ref: ref,
|
|
8024
7833
|
eventKey: eventKey,
|
|
@@ -8029,13 +7838,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8029
7838
|
}));
|
|
8030
7839
|
});
|
|
8031
7840
|
NavLink.displayName = 'NavLink';
|
|
8032
|
-
NavLink.defaultProps = defaultProps$
|
|
7841
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8033
7842
|
|
|
8034
|
-
var defaultProps$
|
|
7843
|
+
var defaultProps$t = {
|
|
8035
7844
|
justify: false,
|
|
8036
7845
|
fill: false
|
|
8037
7846
|
};
|
|
8038
|
-
var Nav =
|
|
7847
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8039
7848
|
var _classNames;
|
|
8040
7849
|
|
|
8041
7850
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8057,7 +7866,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8057
7866
|
var navbarBsPrefix;
|
|
8058
7867
|
var cardHeaderBsPrefix;
|
|
8059
7868
|
var isNavbar = false;
|
|
8060
|
-
var navbarContext = useContext(context);
|
|
7869
|
+
var navbarContext = useContext(context$2);
|
|
8061
7870
|
var cardContext = useContext(context$1);
|
|
8062
7871
|
|
|
8063
7872
|
if (navbarContext) {
|
|
@@ -8067,7 +7876,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8067
7876
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8068
7877
|
}
|
|
8069
7878
|
|
|
8070
|
-
return /*#__PURE__*/
|
|
7879
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8071
7880
|
as: as,
|
|
8072
7881
|
ref: ref,
|
|
8073
7882
|
activeKey: activeKey,
|
|
@@ -8075,11 +7884,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8075
7884
|
}, props), children);
|
|
8076
7885
|
});
|
|
8077
7886
|
Nav.displayName = 'Nav';
|
|
8078
|
-
Nav.defaultProps = defaultProps$
|
|
7887
|
+
Nav.defaultProps = defaultProps$t;
|
|
8079
7888
|
Nav.Item = NavItem;
|
|
8080
7889
|
Nav.Link = NavLink;
|
|
8081
7890
|
|
|
8082
|
-
var NavbarBrand =
|
|
7891
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8083
7892
|
var bsPrefix = _ref.bsPrefix,
|
|
8084
7893
|
className = _ref.className,
|
|
8085
7894
|
as = _ref.as,
|
|
@@ -8087,23 +7896,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8087
7896
|
|
|
8088
7897
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8089
7898
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8090
|
-
return /*#__PURE__*/
|
|
7899
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8091
7900
|
ref: ref,
|
|
8092
7901
|
className: classnames(className, bsPrefix)
|
|
8093
7902
|
}));
|
|
8094
7903
|
});
|
|
8095
7904
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8096
7905
|
|
|
8097
|
-
var NavbarCollapse =
|
|
7906
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8098
7907
|
var children = _ref.children,
|
|
8099
7908
|
bsPrefix = _ref.bsPrefix,
|
|
8100
7909
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8101
7910
|
|
|
8102
7911
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8103
|
-
return /*#__PURE__*/
|
|
8104
|
-
return /*#__PURE__*/
|
|
7912
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
7913
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8105
7914
|
in: !!(context && context.expanded)
|
|
8106
|
-
}, props), /*#__PURE__*/
|
|
7915
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8107
7916
|
ref: ref,
|
|
8108
7917
|
className: bsPrefix
|
|
8109
7918
|
}, children));
|
|
@@ -8111,10 +7920,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8111
7920
|
});
|
|
8112
7921
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8113
7922
|
|
|
8114
|
-
var defaultProps$
|
|
7923
|
+
var defaultProps$u = {
|
|
8115
7924
|
label: 'Toggle navigation'
|
|
8116
7925
|
};
|
|
8117
|
-
var NavbarToggle =
|
|
7926
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8118
7927
|
var bsPrefix = _ref.bsPrefix,
|
|
8119
7928
|
className = _ref.className,
|
|
8120
7929
|
children = _ref.children,
|
|
@@ -8126,7 +7935,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8126
7935
|
|
|
8127
7936
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8128
7937
|
|
|
8129
|
-
var _ref2 = useContext(context) || {},
|
|
7938
|
+
var _ref2 = useContext(context$2) || {},
|
|
8130
7939
|
onToggle = _ref2.onToggle,
|
|
8131
7940
|
expanded = _ref2.expanded;
|
|
8132
7941
|
|
|
@@ -8139,27 +7948,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8139
7948
|
props.type = 'button';
|
|
8140
7949
|
}
|
|
8141
7950
|
|
|
8142
|
-
return /*#__PURE__*/
|
|
7951
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8143
7952
|
ref: ref,
|
|
8144
7953
|
onClick: handleClick,
|
|
8145
7954
|
"aria-label": label,
|
|
8146
7955
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8147
|
-
}), children || /*#__PURE__*/
|
|
7956
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8148
7957
|
className: bsPrefix + "-icon"
|
|
8149
7958
|
}));
|
|
8150
7959
|
});
|
|
8151
7960
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8152
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
7961
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8153
7962
|
|
|
8154
7963
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8155
7964
|
Component: 'span'
|
|
8156
7965
|
});
|
|
8157
|
-
var defaultProps$
|
|
7966
|
+
var defaultProps$v = {
|
|
8158
7967
|
expand: true,
|
|
8159
7968
|
variant: 'light',
|
|
8160
7969
|
collapseOnSelect: false
|
|
8161
7970
|
};
|
|
8162
|
-
var Navbar =
|
|
7971
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8163
7972
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8164
7973
|
expanded: 'onToggle'
|
|
8165
7974
|
}),
|
|
@@ -8207,24 +8016,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8207
8016
|
expanded: !!expanded
|
|
8208
8017
|
};
|
|
8209
8018
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8210
|
-
return /*#__PURE__*/
|
|
8019
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8211
8020
|
value: navbarContext
|
|
8212
|
-
}, /*#__PURE__*/
|
|
8021
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8213
8022
|
value: handleCollapse
|
|
8214
|
-
}, /*#__PURE__*/
|
|
8023
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8215
8024
|
ref: ref
|
|
8216
8025
|
}, controlledProps, {
|
|
8217
8026
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8218
8027
|
}), children)));
|
|
8219
8028
|
});
|
|
8220
|
-
Navbar.defaultProps = defaultProps$
|
|
8029
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8221
8030
|
Navbar.displayName = 'Navbar';
|
|
8222
8031
|
Navbar.Brand = NavbarBrand;
|
|
8223
8032
|
Navbar.Toggle = NavbarToggle;
|
|
8224
8033
|
Navbar.Collapse = NavbarCollapse;
|
|
8225
8034
|
Navbar.Text = NavbarText;
|
|
8226
8035
|
|
|
8227
|
-
var propTypes$
|
|
8036
|
+
var propTypes$9 = {
|
|
8228
8037
|
/**
|
|
8229
8038
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8230
8039
|
* @type {string|number}
|
|
@@ -8260,7 +8069,7 @@ var propTypes$1 = {
|
|
|
8260
8069
|
/** @ignore */
|
|
8261
8070
|
bsPrefix: PropTypes.string
|
|
8262
8071
|
};
|
|
8263
|
-
var NavDropdown =
|
|
8072
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8264
8073
|
var id = _ref.id,
|
|
8265
8074
|
title = _ref.title,
|
|
8266
8075
|
children = _ref.children,
|
|
@@ -8272,35 +8081,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8272
8081
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8273
8082
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8274
8083
|
|
|
8275
|
-
return /*#__PURE__*/
|
|
8084
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8276
8085
|
ref: ref
|
|
8277
8086
|
}, props, {
|
|
8278
8087
|
as: NavItem
|
|
8279
|
-
}), /*#__PURE__*/
|
|
8088
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8280
8089
|
id: id,
|
|
8281
8090
|
eventKey: null,
|
|
8282
8091
|
active: active,
|
|
8283
8092
|
disabled: disabled,
|
|
8284
8093
|
childBsPrefix: bsPrefix,
|
|
8285
8094
|
as: NavLink
|
|
8286
|
-
}, title), /*#__PURE__*/
|
|
8095
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8287
8096
|
role: menuRole,
|
|
8288
8097
|
renderOnMount: renderMenuOnMount,
|
|
8289
8098
|
rootCloseEvent: rootCloseEvent
|
|
8290
8099
|
}, children));
|
|
8291
8100
|
});
|
|
8292
8101
|
NavDropdown.displayName = 'NavDropdown';
|
|
8293
|
-
NavDropdown.propTypes = propTypes$
|
|
8294
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8295
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8296
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8297
|
-
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;
|
|
8298
8107
|
|
|
8299
8108
|
/**
|
|
8300
8109
|
* Built on top of `Popper.js`, the overlay component is
|
|
8301
8110
|
* great for custom tooltip overlays.
|
|
8302
8111
|
*/
|
|
8303
|
-
var Overlay = /*#__PURE__*/
|
|
8112
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8304
8113
|
var flip = props.flip,
|
|
8305
8114
|
offset = props.offset,
|
|
8306
8115
|
placement = props.placement,
|
|
@@ -8383,7 +8192,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8383
8192
|
onEnter = props.onEnter,
|
|
8384
8193
|
onEntering = props.onEntering,
|
|
8385
8194
|
onEntered = props.onEntered;
|
|
8386
|
-
child = /*#__PURE__*/
|
|
8195
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8387
8196
|
"in": props.show,
|
|
8388
8197
|
appear: true,
|
|
8389
8198
|
onExit: onExit,
|
|
@@ -8535,7 +8344,7 @@ Overlay.propTypes = {
|
|
|
8535
8344
|
onExited: PropTypes.func
|
|
8536
8345
|
};
|
|
8537
8346
|
|
|
8538
|
-
/*#__PURE__*/
|
|
8347
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8539
8348
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8540
8349
|
|
|
8541
8350
|
function RefHolder() {
|
|
@@ -8549,14 +8358,14 @@ Overlay.propTypes = {
|
|
|
8549
8358
|
};
|
|
8550
8359
|
|
|
8551
8360
|
return RefHolder;
|
|
8552
|
-
}
|
|
8361
|
+
}(React.Component);
|
|
8553
8362
|
|
|
8554
|
-
var defaultProps$
|
|
8363
|
+
var defaultProps$w = {
|
|
8555
8364
|
active: false,
|
|
8556
8365
|
disabled: false,
|
|
8557
8366
|
activeLabel: '(current)'
|
|
8558
8367
|
};
|
|
8559
|
-
var PageItem =
|
|
8368
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8560
8369
|
var active = _ref.active,
|
|
8561
8370
|
disabled = _ref.disabled,
|
|
8562
8371
|
className = _ref.className,
|
|
@@ -8566,21 +8375,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8566
8375
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8567
8376
|
|
|
8568
8377
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8569
|
-
return /*#__PURE__*/
|
|
8378
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8570
8379
|
ref: ref,
|
|
8571
8380
|
style: style,
|
|
8572
8381
|
className: classnames(className, 'page-item', {
|
|
8573
8382
|
active: active,
|
|
8574
8383
|
disabled: disabled
|
|
8575
8384
|
})
|
|
8576
|
-
}, /*#__PURE__*/
|
|
8385
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8577
8386
|
className: "page-link",
|
|
8578
8387
|
disabled: disabled
|
|
8579
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8388
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8580
8389
|
className: "sr-only"
|
|
8581
8390
|
}, activeLabel)));
|
|
8582
8391
|
});
|
|
8583
|
-
PageItem.defaultProps = defaultProps$
|
|
8392
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8584
8393
|
PageItem.displayName = 'PageItem';
|
|
8585
8394
|
|
|
8586
8395
|
function createButton(name, defaultValue, label) {
|
|
@@ -8592,9 +8401,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8592
8401
|
var children = _ref2.children,
|
|
8593
8402
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8594
8403
|
|
|
8595
|
-
return /*#__PURE__*/
|
|
8404
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8596
8405
|
"aria-hidden": "true"
|
|
8597
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8406
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8598
8407
|
className: "sr-only"
|
|
8599
8408
|
}, label));
|
|
8600
8409
|
}
|
|
@@ -8617,7 +8426,7 @@ var Last = createButton('Last', '»');
|
|
|
8617
8426
|
* @property {PageItem} Next
|
|
8618
8427
|
* @property {PageItem} Last
|
|
8619
8428
|
*/
|
|
8620
|
-
var Pagination =
|
|
8429
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8621
8430
|
var bsPrefix = _ref.bsPrefix,
|
|
8622
8431
|
className = _ref.className,
|
|
8623
8432
|
children = _ref.children,
|
|
@@ -8625,7 +8434,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8625
8434
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8626
8435
|
|
|
8627
8436
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8628
|
-
return /*#__PURE__*/
|
|
8437
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8629
8438
|
ref: ref
|
|
8630
8439
|
}, props, {
|
|
8631
8440
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8638,7 +8447,7 @@ Pagination.Item = PageItem;
|
|
|
8638
8447
|
Pagination.Next = Next;
|
|
8639
8448
|
Pagination.Last = Last;
|
|
8640
8449
|
|
|
8641
|
-
var PopoverTitle =
|
|
8450
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8642
8451
|
var _ref$as = _ref.as,
|
|
8643
8452
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8644
8453
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8647,14 +8456,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8647
8456
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8648
8457
|
|
|
8649
8458
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8650
|
-
return /*#__PURE__*/
|
|
8459
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8651
8460
|
ref: ref
|
|
8652
8461
|
}, props, {
|
|
8653
8462
|
className: classnames(bsPrefix, className)
|
|
8654
8463
|
}), children);
|
|
8655
8464
|
});
|
|
8656
8465
|
|
|
8657
|
-
var PopoverContent =
|
|
8466
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8658
8467
|
var _ref$as = _ref.as,
|
|
8659
8468
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8660
8469
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8663,50 +8472,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8663
8472
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8664
8473
|
|
|
8665
8474
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8666
|
-
return /*#__PURE__*/
|
|
8475
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8667
8476
|
ref: ref
|
|
8668
8477
|
}, props, {
|
|
8669
8478
|
className: classnames(className, bsPrefix)
|
|
8670
8479
|
}), children);
|
|
8671
8480
|
});
|
|
8672
8481
|
|
|
8673
|
-
var defaultProps$
|
|
8482
|
+
var defaultProps$x = {
|
|
8674
8483
|
placement: 'right'
|
|
8675
8484
|
};
|
|
8676
|
-
var Popover =
|
|
8485
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8677
8486
|
var bsPrefix = _ref.bsPrefix,
|
|
8678
8487
|
placement = _ref.placement,
|
|
8679
8488
|
className = _ref.className,
|
|
8680
8489
|
style = _ref.style,
|
|
8681
8490
|
children = _ref.children,
|
|
8682
8491
|
content = _ref.content,
|
|
8683
|
-
arrowProps = _ref.arrowProps
|
|
8684
|
-
_ref.popper
|
|
8685
|
-
_ref.show
|
|
8686
|
-
|
|
8492
|
+
arrowProps = _ref.arrowProps,
|
|
8493
|
+
_ = _ref.popper,
|
|
8494
|
+
_1 = _ref.show,
|
|
8495
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8687
8496
|
|
|
8688
8497
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8689
8498
|
|
|
8690
8499
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8691
8500
|
primaryPlacement = _ref2[0];
|
|
8692
8501
|
|
|
8693
|
-
return /*#__PURE__*/
|
|
8502
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8694
8503
|
ref: ref,
|
|
8695
8504
|
role: "tooltip",
|
|
8696
8505
|
style: style,
|
|
8697
8506
|
"x-placement": primaryPlacement,
|
|
8698
8507
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8699
|
-
}, props), /*#__PURE__*/
|
|
8508
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8700
8509
|
className: "arrow"
|
|
8701
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8510
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8702
8511
|
});
|
|
8703
|
-
Popover.defaultProps = defaultProps$
|
|
8512
|
+
Popover.defaultProps = defaultProps$x;
|
|
8704
8513
|
Popover.Title = PopoverTitle;
|
|
8705
8514
|
Popover.Content = PopoverContent;
|
|
8706
8515
|
|
|
8707
8516
|
var ROUND_PRECISION = 1000;
|
|
8708
8517
|
|
|
8709
|
-
var defaultProps$
|
|
8518
|
+
var defaultProps$y = {
|
|
8710
8519
|
min: 0,
|
|
8711
8520
|
max: 100,
|
|
8712
8521
|
animated: false,
|
|
@@ -8736,7 +8545,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8736
8545
|
bsPrefix = _ref.bsPrefix,
|
|
8737
8546
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8738
8547
|
|
|
8739
|
-
return /*#__PURE__*/
|
|
8548
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8740
8549
|
ref: ref
|
|
8741
8550
|
}, props, {
|
|
8742
8551
|
role: "progressbar",
|
|
@@ -8747,12 +8556,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8747
8556
|
"aria-valuenow": now,
|
|
8748
8557
|
"aria-valuemin": min,
|
|
8749
8558
|
"aria-valuemax": max
|
|
8750
|
-
}), srOnly ? /*#__PURE__*/
|
|
8559
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8751
8560
|
className: "sr-only"
|
|
8752
8561
|
}, label) : label);
|
|
8753
8562
|
}
|
|
8754
8563
|
|
|
8755
|
-
var ProgressBar =
|
|
8564
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8756
8565
|
var isChild = _ref2.isChild,
|
|
8757
8566
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8758
8567
|
|
|
@@ -8775,7 +8584,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8775
8584
|
children = props.children,
|
|
8776
8585
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8777
8586
|
|
|
8778
|
-
return /*#__PURE__*/
|
|
8587
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8779
8588
|
ref: ref
|
|
8780
8589
|
}, wrapperProps, {
|
|
8781
8590
|
className: classnames(className, bsPrefix)
|
|
@@ -8796,12 +8605,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8796
8605
|
}, ref));
|
|
8797
8606
|
});
|
|
8798
8607
|
ProgressBar.displayName = 'ProgressBar';
|
|
8799
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8608
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8800
8609
|
|
|
8801
|
-
var defaultProps$
|
|
8610
|
+
var defaultProps$z = {
|
|
8802
8611
|
aspectRatio: '1by1'
|
|
8803
8612
|
};
|
|
8804
|
-
var ResponsiveEmbed =
|
|
8613
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8805
8614
|
var bsPrefix = _ref.bsPrefix,
|
|
8806
8615
|
className = _ref.className,
|
|
8807
8616
|
children = _ref.children,
|
|
@@ -8809,22 +8618,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8809
8618
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8810
8619
|
|
|
8811
8620
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8812
|
-
var child =
|
|
8813
|
-
return /*#__PURE__*/
|
|
8621
|
+
var child = React.Children.only(children);
|
|
8622
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8814
8623
|
ref: ref
|
|
8815
8624
|
}, props, {
|
|
8816
8625
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8817
|
-
}),
|
|
8626
|
+
}), React.cloneElement(child, {
|
|
8818
8627
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8819
8628
|
}));
|
|
8820
8629
|
});
|
|
8821
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8630
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8822
8631
|
|
|
8823
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8824
|
-
var defaultProps$
|
|
8632
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8633
|
+
var defaultProps$A = {
|
|
8825
8634
|
noGutters: false
|
|
8826
8635
|
};
|
|
8827
|
-
var Row =
|
|
8636
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8828
8637
|
var bsPrefix = _ref.bsPrefix,
|
|
8829
8638
|
className = _ref.className,
|
|
8830
8639
|
noGutters = _ref.noGutters,
|
|
@@ -8835,7 +8644,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8835
8644
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8836
8645
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8837
8646
|
var classes = [];
|
|
8838
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8647
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8839
8648
|
var propValue = props[brkPoint];
|
|
8840
8649
|
delete props[brkPoint];
|
|
8841
8650
|
var cols;
|
|
@@ -8849,16 +8658,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8849
8658
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8850
8659
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8851
8660
|
});
|
|
8852
|
-
return /*#__PURE__*/
|
|
8661
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8853
8662
|
ref: ref
|
|
8854
8663
|
}, props, {
|
|
8855
8664
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8856
8665
|
}));
|
|
8857
8666
|
});
|
|
8858
8667
|
Row.displayName = 'Row';
|
|
8859
|
-
Row.defaultProps = defaultProps$
|
|
8668
|
+
Row.defaultProps = defaultProps$A;
|
|
8860
8669
|
|
|
8861
|
-
var Spinner =
|
|
8670
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8862
8671
|
var bsPrefix = _ref.bsPrefix,
|
|
8863
8672
|
variant = _ref.variant,
|
|
8864
8673
|
animation = _ref.animation,
|
|
@@ -8871,7 +8680,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8871
8680
|
|
|
8872
8681
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8873
8682
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8874
|
-
return /*#__PURE__*/
|
|
8683
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8875
8684
|
ref: ref
|
|
8876
8685
|
}, props, {
|
|
8877
8686
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8879,7 +8688,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8879
8688
|
});
|
|
8880
8689
|
Spinner.displayName = 'Spinner';
|
|
8881
8690
|
|
|
8882
|
-
var propTypes = {
|
|
8691
|
+
var propTypes$a = {
|
|
8883
8692
|
/**
|
|
8884
8693
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8885
8694
|
* @type {string|number}
|
|
@@ -8910,15 +8719,6 @@ var propTypes = {
|
|
|
8910
8719
|
/** Disables both Buttons */
|
|
8911
8720
|
disabled: PropTypes.bool,
|
|
8912
8721
|
|
|
8913
|
-
/**
|
|
8914
|
-
* Aligns the dropdown menu responsively.
|
|
8915
|
-
*
|
|
8916
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8917
|
-
*
|
|
8918
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8919
|
-
*/
|
|
8920
|
-
menuAlign: alignPropType,
|
|
8921
|
-
|
|
8922
8722
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8923
8723
|
menuRole: PropTypes.string,
|
|
8924
8724
|
|
|
@@ -8928,7 +8728,7 @@ var propTypes = {
|
|
|
8928
8728
|
/**
|
|
8929
8729
|
* Which event when fired outside the component will cause it to be closed.
|
|
8930
8730
|
*
|
|
8931
|
-
* _see [DropdownMenu](#
|
|
8731
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8932
8732
|
*/
|
|
8933
8733
|
rootCloseEvent: PropTypes.string,
|
|
8934
8734
|
|
|
@@ -8941,11 +8741,11 @@ var propTypes = {
|
|
|
8941
8741
|
/** @ignore */
|
|
8942
8742
|
size: PropTypes.string
|
|
8943
8743
|
};
|
|
8944
|
-
var defaultProps$
|
|
8744
|
+
var defaultProps$B = {
|
|
8945
8745
|
toggleLabel: 'Toggle dropdown',
|
|
8946
8746
|
type: 'button'
|
|
8947
8747
|
};
|
|
8948
|
-
var SplitButton =
|
|
8748
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8949
8749
|
var id = _ref.id,
|
|
8950
8750
|
bsPrefix = _ref.bsPrefix,
|
|
8951
8751
|
size = _ref.size,
|
|
@@ -8957,17 +8757,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8957
8757
|
onClick = _ref.onClick,
|
|
8958
8758
|
href = _ref.href,
|
|
8959
8759
|
target = _ref.target,
|
|
8960
|
-
menuAlign = _ref.menuAlign,
|
|
8961
8760
|
menuRole = _ref.menuRole,
|
|
8962
8761
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8963
8762
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8964
|
-
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"]);
|
|
8965
8764
|
|
|
8966
|
-
return /*#__PURE__*/
|
|
8765
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8967
8766
|
ref: ref
|
|
8968
8767
|
}, props, {
|
|
8969
8768
|
as: ButtonGroup
|
|
8970
|
-
}), /*#__PURE__*/
|
|
8769
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8971
8770
|
size: size,
|
|
8972
8771
|
variant: variant,
|
|
8973
8772
|
disabled: props.disabled,
|
|
@@ -8976,24 +8775,23 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8976
8775
|
target: target,
|
|
8977
8776
|
onClick: onClick,
|
|
8978
8777
|
type: type
|
|
8979
|
-
}, title), /*#__PURE__*/
|
|
8778
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8980
8779
|
split: true,
|
|
8981
8780
|
id: id ? id.toString() : undefined,
|
|
8982
8781
|
size: size,
|
|
8983
8782
|
variant: variant,
|
|
8984
8783
|
disabled: props.disabled,
|
|
8985
8784
|
childBsPrefix: bsPrefix
|
|
8986
|
-
}, /*#__PURE__*/
|
|
8785
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8987
8786
|
className: "sr-only"
|
|
8988
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8989
|
-
align: menuAlign,
|
|
8787
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8990
8788
|
role: menuRole,
|
|
8991
8789
|
renderOnMount: renderMenuOnMount,
|
|
8992
8790
|
rootCloseEvent: rootCloseEvent
|
|
8993
8791
|
}, children));
|
|
8994
8792
|
});
|
|
8995
|
-
SplitButton.propTypes = propTypes;
|
|
8996
|
-
SplitButton.defaultProps = defaultProps$
|
|
8793
|
+
SplitButton.propTypes = propTypes$a;
|
|
8794
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8997
8795
|
SplitButton.displayName = 'SplitButton';
|
|
8998
8796
|
|
|
8999
8797
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9029,14 +8827,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9029
8827
|
}
|
|
9030
8828
|
};
|
|
9031
8829
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9032
|
-
return /*#__PURE__*/
|
|
8830
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9033
8831
|
value: tabContext
|
|
9034
|
-
}, /*#__PURE__*/
|
|
8832
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9035
8833
|
value: onSelect || null
|
|
9036
8834
|
}, children));
|
|
9037
8835
|
};
|
|
9038
8836
|
|
|
9039
|
-
var TabContent =
|
|
8837
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9040
8838
|
var bsPrefix = _ref.bsPrefix,
|
|
9041
8839
|
_ref$as = _ref.as,
|
|
9042
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9044,7 +8842,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9044
8842
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9045
8843
|
|
|
9046
8844
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9047
|
-
return /*#__PURE__*/
|
|
8845
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9048
8846
|
ref: ref
|
|
9049
8847
|
}, props, {
|
|
9050
8848
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9072,7 +8870,7 @@ function useTabContext(props) {
|
|
|
9072
8870
|
});
|
|
9073
8871
|
}
|
|
9074
8872
|
|
|
9075
|
-
var TabPane =
|
|
8873
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9076
8874
|
var _useTabContext = useTabContext(props),
|
|
9077
8875
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9078
8876
|
className = _useTabContext.className,
|
|
@@ -9087,13 +8885,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9087
8885
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9088
8886
|
Transition = _useTabContext.transition,
|
|
9089
8887
|
_useTabContext$as = _useTabContext.as,
|
|
9090
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9091
|
-
_useTabContext.eventKey
|
|
9092
|
-
|
|
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"]);
|
|
9093
8891
|
|
|
9094
8892
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9095
8893
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9096
|
-
var pane = /*#__PURE__*/
|
|
8894
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9097
8895
|
ref: ref,
|
|
9098
8896
|
role: "tabpanel",
|
|
9099
8897
|
"aria-hidden": !active,
|
|
@@ -9101,7 +8899,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9101
8899
|
active: active
|
|
9102
8900
|
})
|
|
9103
8901
|
}));
|
|
9104
|
-
if (Transition) pane = /*#__PURE__*/
|
|
8902
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9105
8903
|
in: active,
|
|
9106
8904
|
onEnter: onEnter,
|
|
9107
8905
|
onEntering: onEntering,
|
|
@@ -9114,9 +8912,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9114
8912
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9115
8913
|
// conflict with the top level one.
|
|
9116
8914
|
|
|
9117
|
-
return /*#__PURE__*/
|
|
8915
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9118
8916
|
value: null
|
|
9119
|
-
}, /*#__PURE__*/
|
|
8917
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9120
8918
|
value: null
|
|
9121
8919
|
}, pane));
|
|
9122
8920
|
});
|
|
@@ -9137,13 +8935,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9137
8935
|
};
|
|
9138
8936
|
|
|
9139
8937
|
return Tab;
|
|
9140
|
-
}(
|
|
8938
|
+
}(React.Component);
|
|
9141
8939
|
|
|
9142
8940
|
Tab.Container = TabContainer;
|
|
9143
8941
|
Tab.Content = TabContent;
|
|
9144
8942
|
Tab.Pane = TabPane;
|
|
9145
8943
|
|
|
9146
|
-
|
|
8944
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9147
8945
|
var bsPrefix = _ref.bsPrefix,
|
|
9148
8946
|
className = _ref.className,
|
|
9149
8947
|
striped = _ref.striped,
|
|
@@ -9157,7 +8955,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9157
8955
|
|
|
9158
8956
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9159
8957
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9160
|
-
var table = /*#__PURE__*/
|
|
8958
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9161
8959
|
className: classes,
|
|
9162
8960
|
ref: ref
|
|
9163
8961
|
}));
|
|
@@ -9169,7 +8967,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9169
8967
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9170
8968
|
}
|
|
9171
8969
|
|
|
9172
|
-
return /*#__PURE__*/
|
|
8970
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9173
8971
|
className: responsiveClass
|
|
9174
8972
|
}, table);
|
|
9175
8973
|
}
|
|
@@ -9177,16 +8975,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9177
8975
|
return table;
|
|
9178
8976
|
});
|
|
9179
8977
|
|
|
9180
|
-
var ToastContext =
|
|
8978
|
+
var ToastContext = React.createContext({
|
|
9181
8979
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9182
8980
|
onClose: function onClose() {}
|
|
9183
8981
|
});
|
|
9184
8982
|
|
|
9185
|
-
var defaultProps$
|
|
8983
|
+
var defaultProps$C = {
|
|
9186
8984
|
closeLabel: 'Close',
|
|
9187
8985
|
closeButton: true
|
|
9188
8986
|
};
|
|
9189
|
-
var ToastHeader =
|
|
8987
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9190
8988
|
var bsPrefix = _ref.bsPrefix,
|
|
9191
8989
|
closeLabel = _ref.closeLabel,
|
|
9192
8990
|
closeButton = _ref.closeButton,
|
|
@@ -9201,11 +8999,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9201
8999
|
context.onClose(e);
|
|
9202
9000
|
}
|
|
9203
9001
|
});
|
|
9204
|
-
return /*#__PURE__*/
|
|
9002
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9205
9003
|
ref: ref
|
|
9206
9004
|
}, props, {
|
|
9207
9005
|
className: classnames(bsPrefix, className)
|
|
9208
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9006
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9209
9007
|
label: closeLabel,
|
|
9210
9008
|
onClick: handleClick,
|
|
9211
9009
|
className: "ml-2 mb-1",
|
|
@@ -9213,11 +9011,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9213
9011
|
}));
|
|
9214
9012
|
});
|
|
9215
9013
|
ToastHeader.displayName = 'ToastHeader';
|
|
9216
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9014
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9217
9015
|
|
|
9218
9016
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9219
9017
|
|
|
9220
|
-
var Toast =
|
|
9018
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9221
9019
|
var bsPrefix = _ref.bsPrefix,
|
|
9222
9020
|
className = _ref.className,
|
|
9223
9021
|
children = _ref.children,
|
|
@@ -9260,16 +9058,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9260
9058
|
};
|
|
9261
9059
|
}, [onClose]);
|
|
9262
9060
|
var hasAnimation = !!(Transition && animation);
|
|
9263
|
-
var toast = /*#__PURE__*/
|
|
9061
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9264
9062
|
ref: ref,
|
|
9265
9063
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9266
9064
|
role: "alert",
|
|
9267
9065
|
"aria-live": "assertive",
|
|
9268
9066
|
"aria-atomic": "true"
|
|
9269
9067
|
}), children);
|
|
9270
|
-
return /*#__PURE__*/
|
|
9068
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9271
9069
|
value: toastContext
|
|
9272
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9070
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9273
9071
|
in: show,
|
|
9274
9072
|
unmountOnExit: true
|
|
9275
9073
|
}, toast) : toast);
|
|
@@ -9280,11 +9078,11 @@ Object.assign(Toast, {
|
|
|
9280
9078
|
Header: ToastHeader
|
|
9281
9079
|
});
|
|
9282
9080
|
|
|
9283
|
-
var noop = function noop() {
|
|
9081
|
+
var noop$5 = function noop() {
|
|
9284
9082
|
return undefined;
|
|
9285
9083
|
};
|
|
9286
9084
|
|
|
9287
|
-
var ToggleButton =
|
|
9085
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9288
9086
|
var children = _ref.children,
|
|
9289
9087
|
name = _ref.name,
|
|
9290
9088
|
className = _ref.className,
|
|
@@ -9306,13 +9104,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9306
9104
|
var handleBlur = useCallback(function (e) {
|
|
9307
9105
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9308
9106
|
}, []);
|
|
9309
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9310
9108
|
ref: ref,
|
|
9311
9109
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9312
9110
|
type: undefined,
|
|
9313
9111
|
active: !!checked,
|
|
9314
9112
|
as: "label"
|
|
9315
|
-
}), /*#__PURE__*/
|
|
9113
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9316
9114
|
name: name,
|
|
9317
9115
|
type: type,
|
|
9318
9116
|
value: value,
|
|
@@ -9322,16 +9120,15 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9322
9120
|
disabled: !!disabled,
|
|
9323
9121
|
onFocus: handleFocus,
|
|
9324
9122
|
onBlur: handleBlur,
|
|
9325
|
-
onChange: onChange || noop
|
|
9123
|
+
onChange: onChange || noop$5
|
|
9326
9124
|
}), children);
|
|
9327
9125
|
});
|
|
9328
9126
|
ToggleButton.displayName = 'ToggleButton';
|
|
9329
9127
|
|
|
9330
|
-
var defaultProps$
|
|
9331
|
-
type: 'radio'
|
|
9332
|
-
vertical: false
|
|
9128
|
+
var defaultProps$D = {
|
|
9129
|
+
type: 'radio'
|
|
9333
9130
|
};
|
|
9334
|
-
var ToggleButtonGroup =
|
|
9131
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9335
9132
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9336
9133
|
value: 'onChange'
|
|
9337
9134
|
}),
|
|
@@ -9369,7 +9166,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9369
9166
|
};
|
|
9370
9167
|
|
|
9371
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;
|
|
9372
|
-
return /*#__PURE__*/
|
|
9169
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9373
9170
|
ref: ref,
|
|
9374
9171
|
toggle: true
|
|
9375
9172
|
}), map(children, function (child) {
|
|
@@ -9382,7 +9179,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9382
9179
|
return handleToggle(childVal, e);
|
|
9383
9180
|
};
|
|
9384
9181
|
|
|
9385
|
-
return
|
|
9182
|
+
return React.cloneElement(child, {
|
|
9386
9183
|
type: type,
|
|
9387
9184
|
name: child.name || name,
|
|
9388
9185
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9390,41 +9187,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9390
9187
|
});
|
|
9391
9188
|
}));
|
|
9392
9189
|
});
|
|
9393
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9190
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9394
9191
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9395
9192
|
|
|
9396
|
-
var defaultProps = {
|
|
9193
|
+
var defaultProps$E = {
|
|
9397
9194
|
placement: 'right'
|
|
9398
9195
|
};
|
|
9399
|
-
var Tooltip =
|
|
9196
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9400
9197
|
var bsPrefix = _ref.bsPrefix,
|
|
9401
9198
|
placement = _ref.placement,
|
|
9402
9199
|
className = _ref.className,
|
|
9403
9200
|
style = _ref.style,
|
|
9404
9201
|
children = _ref.children,
|
|
9405
|
-
arrowProps = _ref.arrowProps
|
|
9406
|
-
_ref.popper
|
|
9407
|
-
_ref.show
|
|
9408
|
-
|
|
9202
|
+
arrowProps = _ref.arrowProps,
|
|
9203
|
+
_ = _ref.popper,
|
|
9204
|
+
_2 = _ref.show,
|
|
9205
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9409
9206
|
|
|
9410
9207
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9411
9208
|
|
|
9412
9209
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9413
9210
|
primaryPlacement = _ref2[0];
|
|
9414
9211
|
|
|
9415
|
-
return /*#__PURE__*/
|
|
9212
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9416
9213
|
ref: ref,
|
|
9417
9214
|
style: style,
|
|
9418
9215
|
role: "tooltip",
|
|
9419
9216
|
"x-placement": primaryPlacement,
|
|
9420
9217
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9421
|
-
}, props), /*#__PURE__*/
|
|
9218
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9422
9219
|
className: "arrow"
|
|
9423
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9220
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9424
9221
|
className: bsPrefix + "-inner"
|
|
9425
9222
|
}, children));
|
|
9426
9223
|
});
|
|
9427
|
-
Tooltip.defaultProps = defaultProps;
|
|
9224
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9428
9225
|
Tooltip.displayName = 'Tooltip';
|
|
9429
9226
|
|
|
9430
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";
|
|
@@ -9438,58 +9235,58 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9438
9235
|
client = props.client;
|
|
9439
9236
|
|
|
9440
9237
|
|
|
9441
|
-
return
|
|
9238
|
+
return React.createElement(
|
|
9442
9239
|
'div',
|
|
9443
9240
|
{ className: 'media-series-article ' + styles.article },
|
|
9444
|
-
|
|
9241
|
+
React.createElement(
|
|
9445
9242
|
'a',
|
|
9446
9243
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9447
|
-
|
|
9244
|
+
React.createElement(
|
|
9448
9245
|
'div',
|
|
9449
9246
|
{ className: 'media-series-thumbnail ' + styles.thumb },
|
|
9450
|
-
data.thumbnail && data.thumbnail.asset &&
|
|
9247
|
+
data.thumbnail && data.thumbnail.asset && React.createElement(
|
|
9451
9248
|
'figure',
|
|
9452
9249
|
null,
|
|
9453
|
-
|
|
9250
|
+
React.createElement(
|
|
9454
9251
|
LazyLoad,
|
|
9455
9252
|
null,
|
|
9456
|
-
|
|
9253
|
+
React.createElement('img', {
|
|
9457
9254
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9458
9255
|
})
|
|
9459
9256
|
)
|
|
9460
9257
|
)
|
|
9461
9258
|
),
|
|
9462
|
-
|
|
9259
|
+
React.createElement(
|
|
9463
9260
|
'div',
|
|
9464
9261
|
{ className: 'media-series-info ' + styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9465
|
-
|
|
9262
|
+
React.createElement(
|
|
9466
9263
|
'div',
|
|
9467
9264
|
{ className: 'media-series-name ' + styles.name },
|
|
9468
9265
|
data.name
|
|
9469
9266
|
),
|
|
9470
|
-
data.published &&
|
|
9267
|
+
data.published && React.createElement(
|
|
9471
9268
|
'p',
|
|
9472
9269
|
{ className: 'media-series-published ' + styles.published },
|
|
9473
9270
|
moment(data.published).format('MMMM Do YYYY')
|
|
9474
9271
|
),
|
|
9475
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9272
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9476
9273
|
'p',
|
|
9477
9274
|
{ className: 'media-series-author ' + styles.author },
|
|
9478
9275
|
'By ',
|
|
9479
|
-
|
|
9276
|
+
React.createElement(
|
|
9480
9277
|
'span',
|
|
9481
9278
|
null,
|
|
9482
9279
|
data.authorMapping.displayName
|
|
9483
9280
|
)
|
|
9484
9281
|
),
|
|
9485
|
-
data.description &&
|
|
9282
|
+
data.description && React.createElement(
|
|
9486
9283
|
'div',
|
|
9487
9284
|
{ className: 'media-series-desc' },
|
|
9488
|
-
|
|
9285
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9489
9286
|
)
|
|
9490
9287
|
)
|
|
9491
9288
|
)
|
|
9492
9289
|
);
|
|
9493
9290
|
};
|
|
9494
9291
|
|
|
9495
|
-
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|
|
9292
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown$1 as a };
|