@mjhls/mjh-framework 1.0.989 → 1.0.990-next-12-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -21
- package/dist/cjs/AD300x250x600.js +21 -21
- package/dist/cjs/AD728x90.js +24 -24
- package/dist/cjs/ADFloatingFooter.js +20 -20
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -20
- package/dist/cjs/{ADInfeed-b54f0bda.js → ADInfeed-cf54cb8a.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -20
- package/dist/cjs/ADSponsoredResources.js +20 -20
- package/dist/cjs/ADWebcast.js +20 -20
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-4f0850ec.js → ADlgInfeed-d06624d8.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -19
- package/dist/cjs/AdSlotsProvider.js +11 -11
- package/dist/cjs/AlgoliaSearch.js +18 -18
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +48 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -29
- package/dist/cjs/ArticleSeriesListing.js +30 -30
- package/dist/cjs/AuthWrapper.js +586 -9
- package/dist/cjs/{AuthorComponent-17e1c62b.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-36e54d77.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -22
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -30
- package/dist/cjs/ConferenceArticleCard.js +25 -25
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +39 -39
- package/dist/cjs/DeckQueue.js +29 -29
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-bcaa7e3f.js → Dfp-94f8ccdf.js} +12 -12
- package/dist/cjs/EventsDeck.js +43 -43
- package/dist/cjs/ExternalResources.js +45 -47
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -45
- package/dist/cjs/GridContentPaginated.js +46 -46
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +36 -36
- package/dist/cjs/HealthCareProfessionalModal.js +3 -3
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +46 -48
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-a7fb6218.js +182 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +83 -85
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +38 -38
- package/dist/cjs/MasterDeckPaginated.js +41 -41
- package/dist/cjs/{MediaSeriesCard-94c5bb79.js → MediaSeriesCard-36eab8b7.js} +646 -446
- package/dist/cjs/MediaSeriesLanding.js +54 -56
- package/dist/cjs/MediaSeriesLandingPaginated.js +60 -62
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +39 -39
- package/dist/cjs/NavNative.js +39 -39
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-7624a3bd.js → Pagination-1e0d5f1d.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +59 -60
- package/dist/cjs/PartnerDetailListingPaginated.js +59 -60
- 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 -32
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-6f89fb97.js → PublicationFeature-be5f3503.js} +2 -2
- package/dist/cjs/PublicationLanding.js +54 -54
- package/dist/cjs/QueueDeckExpanded.js +35 -35
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +38 -38
- package/dist/cjs/RelatedTopicsDropdown.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 -17
- package/dist/cjs/{SeriesSlider-08699353.js → SeriesSlider-b94f1dd5.js} +14 -14
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +15 -15
- package/dist/cjs/{SocialSearchComponent-af6ddcc0.js → SocialSearchComponent-b7faaedc.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +44 -46
- package/dist/cjs/TemplateNormal.js +45 -45
- 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 +50 -52
- package/dist/cjs/VideoSeriesCard.js +14 -14
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -35
- package/dist/cjs/VideoSeriesListing.js +30 -30
- package/dist/cjs/View.js +115 -119
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +21 -21
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{extends-7df78678.js → extends-7c86182f.js} +8 -7
- package/dist/cjs/faundadb.js +325 -8
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getPtceActivities.js +27 -14
- package/dist/cjs/getRelatedArticle.js +343 -74
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +44 -46
- package/dist/cjs/{getTargeting-5eabd6e2.js → getTargeting-4439c99d.js} +11 -11
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-44481153.js → index-0e4427c8.js} +40 -21
- package/dist/cjs/{index-3c067d4f.js → index-7361fa72.js} +993 -171
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-b5eb3ff8.js → index-efca863c.js} +16 -11
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-f93506ac.js → index.esm-d51c9ac6.js} +1 -1
- package/dist/cjs/{index.esm-48e0f0d8.js → index.esm-d81454e7.js} +1 -1
- package/dist/cjs/index.js +140 -148
- package/dist/cjs/{inherits-420ee86f.js → inherits-de66ea16.js} +21 -18
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/{typeof-ec08d471.js → typeof-567e31ff.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-ad96158c.js → urlForFile-29d3815a.js} +1 -1
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +26 -26
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +26 -26
- package/dist/esm/{ADInfeed-310d113c.js → ADInfeed-f684cac9.js} +9 -9
- package/dist/esm/ADSkyscraper.js +26 -26
- package/dist/esm/ADSponsoredResources.js +26 -26
- package/dist/esm/ADWebcast.js +26 -26
- package/dist/esm/ADWelcome.js +27 -27
- package/dist/esm/{ADlgInfeed-eeaa14e2.js → ADlgInfeed-8c438cee.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +22 -22
- package/dist/esm/AdSlotsProvider.js +12 -12
- package/dist/esm/AlgoliaSearch.js +49 -49
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -56
- package/dist/esm/ArticleSeriesLandingPage.js +35 -35
- package/dist/esm/ArticleSeriesListing.js +54 -54
- package/dist/esm/AuthWrapper.js +605 -27
- package/dist/esm/{AuthorComponent-b0a47123.js → AuthorComponent-defe68b6.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-c99c9a8d.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +49 -49
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +72 -72
- package/dist/esm/DeckContent.js +84 -84
- package/dist/esm/DeckQueue.js +70 -70
- package/dist/esm/DeckQueuePaginated.js +63 -63
- package/dist/esm/{Dfp-e151d2de.js → Dfp-4b99f79d.js} +20 -20
- package/dist/esm/EventsDeck.js +103 -103
- package/dist/esm/ExternalResources.js +71 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +145 -145
- package/dist/esm/GridContentPaginated.js +133 -133
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +113 -113
- package/dist/esm/Header.js +8 -8
- package/dist/esm/HealthCareProfessionalModal.js +13 -13
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -70
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-eab2fe41.js +176 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +91 -93
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +32 -32
- package/dist/esm/MasterDeck.js +71 -71
- package/dist/esm/MasterDeckPaginated.js +63 -63
- package/dist/esm/{MediaSeriesCard-4865e60f.js → MediaSeriesCard-99048e65.js} +907 -707
- package/dist/esm/MediaSeriesLanding.js +79 -81
- package/dist/esm/MediaSeriesLandingPaginated.js +83 -85
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +121 -121
- package/dist/esm/NavNative.js +110 -110
- 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-1e09918f.js → Pagination-cd21f8c2.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +95 -96
- package/dist/esm/PartnerDetailListingPaginated.js +91 -92
- 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 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-0379cc20.js → PublicationFeature-03500094.js} +23 -23
- package/dist/esm/PublicationLanding.js +101 -101
- package/dist/esm/QueueDeckExpanded.js +273 -273
- package/dist/esm/QueueDeckExpandedPaginated.js +253 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- 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 -30
- package/dist/esm/{SeriesSlider-b364d074.js → SeriesSlider-609f9d94.js} +35 -35
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-77a22145.js → SocialSearchComponent-1d8a9f59.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +48 -50
- package/dist/esm/TemplateNormal.js +65 -65
- 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 +62 -64
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +40 -40
- package/dist/esm/VideoSeriesListing.js +70 -70
- package/dist/esm/View.js +318 -322
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-31d40a83.js → _is-array-893ab020.js} +6 -6
- package/dist/esm/{_iter-detect-72edfd60.js → _iter-detect-f089461c.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-4201ccf6.js → _object-sap-169d6272.js} +1 -1
- package/dist/esm/{_object-to-array-fa0feeff.js → _object-to-array-50a6b9a3.js} +2 -2
- package/dist/esm/{asyncToGenerator-9c835201.js → asyncToGenerator-9716ae8d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-8c71f470.js → core.get-iterator-method-e903ff31.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-a8a00786.js → define-property-99e66838.js} +6 -6
- package/dist/esm/{defineProperty-3518b6fe.js → defineProperty-8fa0bc8d.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{extends-7fbbe94e.js → extends-dc6a71fd.js} +8 -8
- package/dist/esm/faundadb.js +323 -6
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getPtceActivities.js +27 -14
- package/dist/esm/getRelatedArticle.js +339 -70
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +44 -46
- package/dist/esm/{getTargeting-eed01f73.js → getTargeting-db566006.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-51a80699.js → index-0dbff1d1.js} +16 -11
- package/dist/esm/{index-1819118a.js → index-5cc7b406.js} +43 -24
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-25f93396.js → index-c60f3bb6.js} +1396 -573
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-d1125763.js → index.esm-1bd8a0a8.js} +1 -1
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-55f22b35.js → index.esm-eb1e8e80.js} +1 -1
- package/dist/esm/index.js +166 -173
- package/dist/esm/{inherits-d26c739e.js → inherits-8a801a18.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/keys-425c8ab0.js +23 -0
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-99bcfd93.js → slicedToArray-ca2c8b8d.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-c21932b3.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-47a5394a.js → toConsumableArray-7b1c0e23.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/{typeof-d92ed6e0.js → typeof-83d9eb10.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-0fc42ed8.js → urlForFile-413f5ddb.js} +1 -1
- package/dist/esm/{ustream-api-cbba615a.js → ustream-api-41166338.js} +4 -4
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-406140e0.js → web.dom.iterable-fdf034f5.js} +2 -2
- package/package.json +115 -115
- package/dist/cjs/Auth.js +0 -3514
- package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/cjs/md5-e1ca5797.js +0 -323
- package/dist/cjs/util-f2c1b65b.js +0 -576
- package/dist/esm/Auth.js +0 -3494
- package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
- package/dist/esm/index-db3bb315.js +0 -207
- package/dist/esm/keys-5e9bd229.js +0 -23
- package/dist/esm/main-43ca42fe.js +0 -886
- package/dist/esm/md5-4e42248e.js +0 -321
- package/dist/esm/stringify-0c65d837.js +0 -15
- package/dist/esm/util-7700fc59.js +0 -574
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as _typeof } from './typeof-d92ed6e0.js';
|
|
3
|
-
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
1
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
4
2
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { m as moment } from './moment-b6f49411.js';
|
|
6
3
|
import ReactDOM from 'react-dom';
|
|
4
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
5
|
+
import { _ as _typeof } from './typeof-83d9eb10.js';
|
|
6
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
7
7
|
import urlFor from './urlFor.js';
|
|
8
|
-
import {
|
|
9
|
-
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
10
|
-
import { g as getSerializers } from './index-25f93396.js';
|
|
8
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
11
9
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
10
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
11
|
+
import { g as getSerializers } from './index-c60f3bb6.js';
|
|
12
12
|
|
|
13
13
|
function _extends() {
|
|
14
14
|
_extends = Object.assign || function (target) {
|
|
@@ -83,7 +83,7 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
83
83
|
return classes.join(' ');
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
if (
|
|
86
|
+
if (module.exports) {
|
|
87
87
|
classNames.default = classNames;
|
|
88
88
|
module.exports = classNames;
|
|
89
89
|
} else {
|
|
@@ -197,22 +197,31 @@ function useUncontrolled(props, config) {
|
|
|
197
197
|
}, props);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
function _setPrototypeOf(o, p) {
|
|
201
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
202
|
+
o.__proto__ = p;
|
|
203
|
+
return o;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
return _setPrototypeOf(o, p);
|
|
207
|
+
}
|
|
208
|
+
|
|
200
209
|
function _inheritsLoose(subClass, superClass) {
|
|
201
210
|
subClass.prototype = Object.create(superClass.prototype);
|
|
202
211
|
subClass.prototype.constructor = subClass;
|
|
203
|
-
subClass
|
|
212
|
+
_setPrototypeOf(subClass, superClass);
|
|
204
213
|
}
|
|
205
214
|
|
|
206
|
-
var ThemeContext =
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
var ThemeContext = React__default.createContext({});
|
|
216
|
+
ThemeContext.Consumer;
|
|
217
|
+
ThemeContext.Provider;
|
|
209
218
|
|
|
210
219
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
211
220
|
var prefixes = useContext(ThemeContext);
|
|
212
221
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
213
222
|
}
|
|
214
223
|
|
|
215
|
-
var SelectableContext =
|
|
224
|
+
var SelectableContext = React__default.createContext(null);
|
|
216
225
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
217
226
|
if (href === void 0) {
|
|
218
227
|
href = null;
|
|
@@ -222,11 +231,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
222
231
|
return href || null;
|
|
223
232
|
};
|
|
224
233
|
|
|
225
|
-
var context =
|
|
226
|
-
context.displayName = 'AccordionContext';
|
|
234
|
+
var context$2 = React__default.createContext(null);
|
|
235
|
+
context$2.displayName = 'AccordionContext';
|
|
227
236
|
|
|
228
237
|
function useAccordionToggle(eventKey, onClick) {
|
|
229
|
-
var contextEventKey = useContext(context);
|
|
238
|
+
var contextEventKey = useContext(context$2);
|
|
230
239
|
var onSelect = useContext(SelectableContext);
|
|
231
240
|
return function (e) {
|
|
232
241
|
/*
|
|
@@ -238,7 +247,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
238
247
|
if (onClick) onClick(e);
|
|
239
248
|
};
|
|
240
249
|
}
|
|
241
|
-
var AccordionToggle =
|
|
250
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
242
251
|
var _ref$as = _ref.as,
|
|
243
252
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
244
253
|
children = _ref.children,
|
|
@@ -252,22 +261,22 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
252
261
|
props.type = 'button';
|
|
253
262
|
}
|
|
254
263
|
|
|
255
|
-
return /*#__PURE__*/
|
|
264
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
256
265
|
ref: ref,
|
|
257
266
|
onClick: accordionOnClick
|
|
258
267
|
}, props), children);
|
|
259
268
|
});
|
|
260
269
|
|
|
261
|
-
function ownerDocument(node) {
|
|
270
|
+
function ownerDocument$1(node) {
|
|
262
271
|
return node && node.ownerDocument || document;
|
|
263
272
|
}
|
|
264
273
|
|
|
265
274
|
function ownerWindow(node) {
|
|
266
|
-
var doc = ownerDocument(node);
|
|
275
|
+
var doc = ownerDocument$1(node);
|
|
267
276
|
return doc && doc.defaultView || window;
|
|
268
277
|
}
|
|
269
278
|
|
|
270
|
-
function getComputedStyle$
|
|
279
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
271
280
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
272
281
|
}
|
|
273
282
|
|
|
@@ -296,7 +305,7 @@ function style(node, property) {
|
|
|
296
305
|
var transforms = '';
|
|
297
306
|
|
|
298
307
|
if (typeof property === 'string') {
|
|
299
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
308
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
300
309
|
}
|
|
301
310
|
|
|
302
311
|
Object.keys(property).forEach(function (key) {
|
|
@@ -436,7 +445,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
436
445
|
exit: PropTypes.number,
|
|
437
446
|
appear: PropTypes.number
|
|
438
447
|
}).isRequired]) : null;
|
|
439
|
-
|
|
448
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
440
449
|
enter: PropTypes.string,
|
|
441
450
|
exit: PropTypes.string,
|
|
442
451
|
active: PropTypes.string
|
|
@@ -449,7 +458,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
449
458
|
exitActive: PropTypes.string
|
|
450
459
|
})]) : null;
|
|
451
460
|
|
|
452
|
-
var TransitionGroupContext =
|
|
461
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
453
462
|
|
|
454
463
|
var UNMOUNTED = 'unmounted';
|
|
455
464
|
var EXITED = 'exited';
|
|
@@ -818,35 +827,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
818
827
|
}
|
|
819
828
|
|
|
820
829
|
var _this$props = this.props,
|
|
821
|
-
children = _this$props.children
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
830
|
+
children = _this$props.children;
|
|
831
|
+
_this$props.in;
|
|
832
|
+
_this$props.mountOnEnter;
|
|
833
|
+
_this$props.unmountOnExit;
|
|
834
|
+
_this$props.appear;
|
|
835
|
+
_this$props.enter;
|
|
836
|
+
_this$props.exit;
|
|
837
|
+
_this$props.timeout;
|
|
838
|
+
_this$props.addEndListener;
|
|
839
|
+
_this$props.onEnter;
|
|
840
|
+
_this$props.onEntering;
|
|
841
|
+
_this$props.onEntered;
|
|
842
|
+
_this$props.onExit;
|
|
843
|
+
_this$props.onExiting;
|
|
844
|
+
_this$props.onExited;
|
|
845
|
+
_this$props.nodeRef;
|
|
846
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
838
847
|
|
|
839
848
|
return (
|
|
840
849
|
/*#__PURE__*/
|
|
841
850
|
// allows for nested Transitions
|
|
842
|
-
|
|
851
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
843
852
|
value: null
|
|
844
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
853
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
845
854
|
);
|
|
846
855
|
};
|
|
847
856
|
|
|
848
857
|
return Transition;
|
|
849
|
-
}(
|
|
858
|
+
}(React__default.Component);
|
|
850
859
|
|
|
851
860
|
Transition.contextType = TransitionGroupContext;
|
|
852
861
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1034,7 +1043,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1034
1043
|
onExited: PropTypes.func
|
|
1035
1044
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1036
1045
|
|
|
1037
|
-
function noop() {}
|
|
1046
|
+
function noop$5() {}
|
|
1038
1047
|
|
|
1039
1048
|
Transition.defaultProps = {
|
|
1040
1049
|
in: false,
|
|
@@ -1043,12 +1052,12 @@ Transition.defaultProps = {
|
|
|
1043
1052
|
appear: false,
|
|
1044
1053
|
enter: true,
|
|
1045
1054
|
exit: true,
|
|
1046
|
-
onEnter: noop,
|
|
1047
|
-
onEntering: noop,
|
|
1048
|
-
onEntered: noop,
|
|
1049
|
-
onExit: noop,
|
|
1050
|
-
onExiting: noop,
|
|
1051
|
-
onExited: noop
|
|
1055
|
+
onEnter: noop$5,
|
|
1056
|
+
onEntering: noop$5,
|
|
1057
|
+
onEntered: noop$5,
|
|
1058
|
+
onExit: noop$5,
|
|
1059
|
+
onExiting: noop$5,
|
|
1060
|
+
onExited: noop$5
|
|
1052
1061
|
};
|
|
1053
1062
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1054
1063
|
Transition.EXITED = EXITED;
|
|
@@ -1114,7 +1123,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1114
1123
|
}
|
|
1115
1124
|
|
|
1116
1125
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1117
|
-
var defaultProps = {
|
|
1126
|
+
var defaultProps$E = {
|
|
1118
1127
|
in: false,
|
|
1119
1128
|
timeout: 300,
|
|
1120
1129
|
mountOnEnter: false,
|
|
@@ -1122,7 +1131,7 @@ var defaultProps = {
|
|
|
1122
1131
|
appear: false,
|
|
1123
1132
|
getDimensionValue: getDefaultDimensionValue
|
|
1124
1133
|
};
|
|
1125
|
-
var Collapse =
|
|
1134
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1126
1135
|
var onEnter = _ref.onEnter,
|
|
1127
1136
|
onEntering = _ref.onEntering,
|
|
1128
1137
|
onEntered = _ref.onEntered,
|
|
@@ -1169,7 +1178,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1169
1178
|
elem.style[computedDimension] = null;
|
|
1170
1179
|
}, onExiting);
|
|
1171
1180
|
}, [computedDimension, onExiting]);
|
|
1172
|
-
return /*#__PURE__*/
|
|
1181
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1173
1182
|
, _extends({
|
|
1174
1183
|
ref: ref,
|
|
1175
1184
|
addEndListener: transitionEnd
|
|
@@ -1181,29 +1190,33 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1181
1190
|
onExit: handleExit,
|
|
1182
1191
|
onExiting: handleExiting
|
|
1183
1192
|
}), function (state, innerProps) {
|
|
1184
|
-
return
|
|
1193
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1185
1194
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1186
1195
|
}));
|
|
1187
1196
|
});
|
|
1188
1197
|
}); // @ts-ignore
|
|
1189
1198
|
|
|
1190
1199
|
// @ts-ignore
|
|
1191
|
-
Collapse.defaultProps = defaultProps;
|
|
1200
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1192
1201
|
|
|
1193
|
-
var AccordionCollapse =
|
|
1202
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1194
1203
|
var children = _ref.children,
|
|
1195
1204
|
eventKey = _ref.eventKey,
|
|
1196
1205
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1197
1206
|
|
|
1198
|
-
var contextEventKey = useContext(context);
|
|
1199
|
-
|
|
1207
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1208
|
+
// from collapsing the accordion when clicked.
|
|
1209
|
+
|
|
1210
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1211
|
+
value: null
|
|
1212
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1200
1213
|
ref: ref,
|
|
1201
1214
|
in: contextEventKey === eventKey
|
|
1202
|
-
}, props), /*#__PURE__*/
|
|
1215
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1203
1216
|
});
|
|
1204
1217
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1205
1218
|
|
|
1206
|
-
var Accordion =
|
|
1219
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1207
1220
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1208
1221
|
activeKey: 'onSelect'
|
|
1209
1222
|
}),
|
|
@@ -1217,11 +1230,11 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1217
1230
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1218
1231
|
|
|
1219
1232
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1220
|
-
return /*#__PURE__*/
|
|
1233
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
1221
1234
|
value: activeKey || null
|
|
1222
|
-
}, /*#__PURE__*/
|
|
1235
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1223
1236
|
value: onSelect || null
|
|
1224
|
-
}, /*#__PURE__*/
|
|
1237
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1225
1238
|
ref: ref
|
|
1226
1239
|
}, controlledProps, {
|
|
1227
1240
|
className: finalClassName
|
|
@@ -1257,7 +1270,7 @@ function useEventCallback(fn) {
|
|
|
1257
1270
|
}
|
|
1258
1271
|
|
|
1259
1272
|
var _fadeStyles;
|
|
1260
|
-
var defaultProps$
|
|
1273
|
+
var defaultProps$D = {
|
|
1261
1274
|
in: false,
|
|
1262
1275
|
timeout: 300,
|
|
1263
1276
|
mountOnEnter: false,
|
|
@@ -1265,7 +1278,7 @@ var defaultProps$1 = {
|
|
|
1265
1278
|
appear: false
|
|
1266
1279
|
};
|
|
1267
1280
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1268
|
-
var Fade =
|
|
1281
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1269
1282
|
var className = _ref.className,
|
|
1270
1283
|
children = _ref.children,
|
|
1271
1284
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1274,51 +1287,51 @@ var Fade = React.forwardRef(function (_ref, ref) {
|
|
|
1274
1287
|
triggerBrowserReflow(node);
|
|
1275
1288
|
if (props.onEnter) props.onEnter(node);
|
|
1276
1289
|
}, [props]);
|
|
1277
|
-
return /*#__PURE__*/
|
|
1290
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1278
1291
|
ref: ref,
|
|
1279
1292
|
addEndListener: transitionEnd
|
|
1280
1293
|
}, props, {
|
|
1281
1294
|
onEnter: handleEnter
|
|
1282
1295
|
}), function (status, innerProps) {
|
|
1283
|
-
return
|
|
1296
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1284
1297
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1285
1298
|
}));
|
|
1286
1299
|
});
|
|
1287
1300
|
});
|
|
1288
|
-
Fade.defaultProps = defaultProps$
|
|
1301
|
+
Fade.defaultProps = defaultProps$D;
|
|
1289
1302
|
Fade.displayName = 'Fade';
|
|
1290
1303
|
|
|
1291
|
-
var propTypes = {
|
|
1304
|
+
var propTypes$a = {
|
|
1292
1305
|
label: PropTypes.string.isRequired,
|
|
1293
1306
|
onClick: PropTypes.func
|
|
1294
1307
|
};
|
|
1295
|
-
var defaultProps$
|
|
1308
|
+
var defaultProps$C = {
|
|
1296
1309
|
label: 'Close'
|
|
1297
1310
|
};
|
|
1298
|
-
var CloseButton =
|
|
1311
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1299
1312
|
var label = _ref.label,
|
|
1300
1313
|
onClick = _ref.onClick,
|
|
1301
1314
|
className = _ref.className,
|
|
1302
1315
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1303
1316
|
|
|
1304
|
-
return /*#__PURE__*/
|
|
1317
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1305
1318
|
ref: ref,
|
|
1306
1319
|
type: "button",
|
|
1307
1320
|
className: classnames('close', className),
|
|
1308
1321
|
onClick: onClick
|
|
1309
|
-
}, props), /*#__PURE__*/
|
|
1322
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1310
1323
|
"aria-hidden": "true"
|
|
1311
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1324
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1312
1325
|
className: "sr-only"
|
|
1313
1326
|
}, label));
|
|
1314
1327
|
});
|
|
1315
1328
|
CloseButton.displayName = 'CloseButton';
|
|
1316
|
-
CloseButton.propTypes = propTypes;
|
|
1317
|
-
CloseButton.defaultProps = defaultProps$
|
|
1329
|
+
CloseButton.propTypes = propTypes$a;
|
|
1330
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1318
1331
|
|
|
1319
1332
|
var divWithClassName = (function (className) {
|
|
1320
|
-
return
|
|
1321
|
-
return /*#__PURE__*/
|
|
1333
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1334
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1322
1335
|
ref: ref,
|
|
1323
1336
|
className: classnames(p.className, className)
|
|
1324
1337
|
}));
|
|
@@ -1344,7 +1357,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1344
1357
|
Component = _ref.Component,
|
|
1345
1358
|
defaultProps = _ref.defaultProps;
|
|
1346
1359
|
|
|
1347
|
-
var BsComponent =
|
|
1360
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1348
1361
|
var className = _ref2.className,
|
|
1349
1362
|
bsPrefix = _ref2.bsPrefix,
|
|
1350
1363
|
_ref2$as = _ref2.as,
|
|
@@ -1352,7 +1365,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1352
1365
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1353
1366
|
|
|
1354
1367
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1355
|
-
return /*#__PURE__*/
|
|
1368
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1356
1369
|
ref: ref,
|
|
1357
1370
|
className: classnames(className, resolvedPrefix)
|
|
1358
1371
|
}, props));
|
|
@@ -1374,7 +1387,7 @@ function isTrivialHref(href) {
|
|
|
1374
1387
|
*/
|
|
1375
1388
|
|
|
1376
1389
|
|
|
1377
|
-
var SafeAnchor =
|
|
1390
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1378
1391
|
var _ref$as = _ref.as,
|
|
1379
1392
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1380
1393
|
disabled = _ref.disabled,
|
|
@@ -1418,7 +1431,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1418
1431
|
props['aria-disabled'] = true;
|
|
1419
1432
|
}
|
|
1420
1433
|
|
|
1421
|
-
return /*#__PURE__*/
|
|
1434
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1422
1435
|
ref: ref
|
|
1423
1436
|
}, props, {
|
|
1424
1437
|
onClick: handleClick,
|
|
@@ -1427,20 +1440,20 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1427
1440
|
});
|
|
1428
1441
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1429
1442
|
|
|
1430
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1431
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1443
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1444
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1432
1445
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1433
|
-
Component: DivStyledAsH4
|
|
1446
|
+
Component: DivStyledAsH4$1
|
|
1434
1447
|
});
|
|
1435
1448
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1436
1449
|
Component: SafeAnchor
|
|
1437
1450
|
});
|
|
1438
|
-
var defaultProps$
|
|
1451
|
+
var defaultProps$B = {
|
|
1439
1452
|
show: true,
|
|
1440
1453
|
transition: Fade,
|
|
1441
1454
|
closeLabel: 'Close alert'
|
|
1442
1455
|
};
|
|
1443
|
-
var Alert =
|
|
1456
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1444
1457
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1445
1458
|
show: 'onClose'
|
|
1446
1459
|
}),
|
|
@@ -1462,17 +1475,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1462
1475
|
}
|
|
1463
1476
|
});
|
|
1464
1477
|
var Transition = transition === true ? Fade : transition;
|
|
1465
|
-
var alert = /*#__PURE__*/
|
|
1478
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1466
1479
|
role: "alert"
|
|
1467
1480
|
}, Transition ? props : undefined, {
|
|
1468
1481
|
ref: ref,
|
|
1469
1482
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1470
|
-
}), dismissible && /*#__PURE__*/
|
|
1483
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1471
1484
|
onClick: handleClose,
|
|
1472
1485
|
label: closeLabel
|
|
1473
1486
|
}), children);
|
|
1474
1487
|
if (!Transition) return show ? alert : null;
|
|
1475
|
-
return /*#__PURE__*/
|
|
1488
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1476
1489
|
unmountOnExit: true
|
|
1477
1490
|
}, props, {
|
|
1478
1491
|
ref: undefined,
|
|
@@ -1480,14 +1493,14 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1480
1493
|
}), alert);
|
|
1481
1494
|
});
|
|
1482
1495
|
Alert.displayName = 'Alert';
|
|
1483
|
-
Alert.defaultProps = defaultProps$
|
|
1496
|
+
Alert.defaultProps = defaultProps$B;
|
|
1484
1497
|
Alert.Link = AlertLink;
|
|
1485
1498
|
Alert.Heading = AlertHeading;
|
|
1486
1499
|
|
|
1487
|
-
var defaultProps$
|
|
1500
|
+
var defaultProps$A = {
|
|
1488
1501
|
pill: false
|
|
1489
1502
|
};
|
|
1490
|
-
var Badge =
|
|
1503
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1491
1504
|
var bsPrefix = _ref.bsPrefix,
|
|
1492
1505
|
variant = _ref.variant,
|
|
1493
1506
|
pill = _ref.pill,
|
|
@@ -1497,20 +1510,20 @@ var Badge = React.forwardRef(function (_ref, ref) {
|
|
|
1497
1510
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1498
1511
|
|
|
1499
1512
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1500
|
-
return /*#__PURE__*/
|
|
1513
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1501
1514
|
ref: ref
|
|
1502
1515
|
}, props, {
|
|
1503
1516
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1504
1517
|
}));
|
|
1505
1518
|
});
|
|
1506
1519
|
Badge.displayName = 'Badge';
|
|
1507
|
-
Badge.defaultProps = defaultProps$
|
|
1520
|
+
Badge.defaultProps = defaultProps$A;
|
|
1508
1521
|
|
|
1509
|
-
var defaultProps$
|
|
1522
|
+
var defaultProps$z = {
|
|
1510
1523
|
active: false,
|
|
1511
1524
|
linkProps: {}
|
|
1512
1525
|
};
|
|
1513
|
-
var BreadcrumbItem =
|
|
1526
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1514
1527
|
var bsPrefix = _ref.bsPrefix,
|
|
1515
1528
|
active = _ref.active,
|
|
1516
1529
|
children = _ref.children,
|
|
@@ -1526,27 +1539,27 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1526
1539
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1527
1540
|
|
|
1528
1541
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1529
|
-
return /*#__PURE__*/
|
|
1542
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1530
1543
|
ref: ref
|
|
1531
1544
|
}, props, {
|
|
1532
1545
|
className: classnames(prefix, className, {
|
|
1533
1546
|
active: active
|
|
1534
1547
|
}),
|
|
1535
1548
|
"aria-current": active ? 'page' : undefined
|
|
1536
|
-
}), active ? children : /*#__PURE__*/
|
|
1549
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1537
1550
|
href: href,
|
|
1538
1551
|
title: title,
|
|
1539
1552
|
target: target
|
|
1540
1553
|
}), children));
|
|
1541
1554
|
});
|
|
1542
1555
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1543
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1556
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1544
1557
|
|
|
1545
|
-
var defaultProps$
|
|
1558
|
+
var defaultProps$y = {
|
|
1546
1559
|
label: 'breadcrumb',
|
|
1547
1560
|
listProps: {}
|
|
1548
1561
|
};
|
|
1549
|
-
var Breadcrumb =
|
|
1562
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1550
1563
|
var bsPrefix = _ref.bsPrefix,
|
|
1551
1564
|
className = _ref.className,
|
|
1552
1565
|
listProps = _ref.listProps,
|
|
@@ -1557,24 +1570,24 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1557
1570
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1558
1571
|
|
|
1559
1572
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1560
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1561
1574
|
"aria-label": label,
|
|
1562
1575
|
className: className,
|
|
1563
1576
|
ref: ref
|
|
1564
|
-
}, props), /*#__PURE__*/
|
|
1577
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1565
1578
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1566
1579
|
}), children));
|
|
1567
1580
|
});
|
|
1568
1581
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1569
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1582
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1570
1583
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1571
1584
|
|
|
1572
|
-
var defaultProps$
|
|
1585
|
+
var defaultProps$x = {
|
|
1573
1586
|
variant: 'primary',
|
|
1574
1587
|
active: false,
|
|
1575
1588
|
disabled: false
|
|
1576
1589
|
};
|
|
1577
|
-
var Button =
|
|
1590
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1578
1591
|
var bsPrefix = _ref.bsPrefix,
|
|
1579
1592
|
variant = _ref.variant,
|
|
1580
1593
|
size = _ref.size,
|
|
@@ -1586,10 +1599,10 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1586
1599
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1587
1600
|
|
|
1588
1601
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1589
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1602
|
+
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1590
1603
|
|
|
1591
1604
|
if (props.href) {
|
|
1592
|
-
return /*#__PURE__*/
|
|
1605
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1593
1606
|
as: as,
|
|
1594
1607
|
ref: ref,
|
|
1595
1608
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1607,19 +1620,19 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1607
1620
|
}
|
|
1608
1621
|
|
|
1609
1622
|
var Component = as || 'button';
|
|
1610
|
-
return /*#__PURE__*/
|
|
1623
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1611
1624
|
className: classes
|
|
1612
1625
|
}));
|
|
1613
1626
|
});
|
|
1614
1627
|
Button.displayName = 'Button';
|
|
1615
|
-
Button.defaultProps = defaultProps$
|
|
1628
|
+
Button.defaultProps = defaultProps$x;
|
|
1616
1629
|
|
|
1617
|
-
var defaultProps$
|
|
1630
|
+
var defaultProps$w = {
|
|
1618
1631
|
vertical: false,
|
|
1619
1632
|
toggle: false,
|
|
1620
1633
|
role: 'group'
|
|
1621
1634
|
};
|
|
1622
|
-
var ButtonGroup =
|
|
1635
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1623
1636
|
var bsPrefix = _ref.bsPrefix,
|
|
1624
1637
|
size = _ref.size,
|
|
1625
1638
|
toggle = _ref.toggle,
|
|
@@ -1632,38 +1645,38 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1632
1645
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1633
1646
|
var baseClass = prefix;
|
|
1634
1647
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1635
|
-
return /*#__PURE__*/
|
|
1648
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1636
1649
|
ref: ref,
|
|
1637
1650
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1638
1651
|
}));
|
|
1639
1652
|
});
|
|
1640
1653
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1641
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1654
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1642
1655
|
|
|
1643
|
-
var defaultProps$
|
|
1656
|
+
var defaultProps$v = {
|
|
1644
1657
|
role: 'toolbar'
|
|
1645
1658
|
};
|
|
1646
|
-
var ButtonToolbar =
|
|
1659
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1647
1660
|
var bsPrefix = _ref.bsPrefix,
|
|
1648
1661
|
className = _ref.className,
|
|
1649
1662
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1650
1663
|
|
|
1651
1664
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1652
|
-
return /*#__PURE__*/
|
|
1665
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1653
1666
|
ref: ref,
|
|
1654
1667
|
className: classnames(className, prefix)
|
|
1655
1668
|
}));
|
|
1656
1669
|
});
|
|
1657
1670
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1658
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1671
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1659
1672
|
|
|
1660
|
-
var context$1 =
|
|
1673
|
+
var context$1 = React__default.createContext(null);
|
|
1661
1674
|
context$1.displayName = 'CardContext';
|
|
1662
1675
|
|
|
1663
|
-
var defaultProps$
|
|
1676
|
+
var defaultProps$u = {
|
|
1664
1677
|
variant: null
|
|
1665
1678
|
};
|
|
1666
|
-
var CardImg =
|
|
1679
|
+
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1667
1680
|
function (_ref, ref) {
|
|
1668
1681
|
var bsPrefix = _ref.bsPrefix,
|
|
1669
1682
|
className = _ref.className,
|
|
@@ -1673,13 +1686,13 @@ function (_ref, ref) {
|
|
|
1673
1686
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1674
1687
|
|
|
1675
1688
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1676
|
-
return /*#__PURE__*/
|
|
1689
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1677
1690
|
ref: ref,
|
|
1678
1691
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1679
1692
|
}, props));
|
|
1680
1693
|
});
|
|
1681
1694
|
CardImg.displayName = 'CardImg';
|
|
1682
|
-
CardImg.defaultProps = defaultProps$
|
|
1695
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1683
1696
|
|
|
1684
1697
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1685
1698
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1699,10 +1712,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1699
1712
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1700
1713
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1701
1714
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1702
|
-
var defaultProps$
|
|
1715
|
+
var defaultProps$t = {
|
|
1703
1716
|
body: false
|
|
1704
1717
|
};
|
|
1705
|
-
var Card =
|
|
1718
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1706
1719
|
var bsPrefix = _ref.bsPrefix,
|
|
1707
1720
|
className = _ref.className,
|
|
1708
1721
|
bg = _ref.bg,
|
|
@@ -1720,19 +1733,19 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1720
1733
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1721
1734
|
};
|
|
1722
1735
|
}, [prefix]);
|
|
1723
|
-
return /*#__PURE__*/
|
|
1736
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1724
1737
|
value: cardContext
|
|
1725
|
-
}, /*#__PURE__*/
|
|
1738
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1726
1739
|
ref: ref
|
|
1727
1740
|
}, props, {
|
|
1728
1741
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1729
1742
|
}), body ?
|
|
1730
1743
|
/*#__PURE__*/
|
|
1731
1744
|
// @ts-ignore
|
|
1732
|
-
|
|
1745
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1733
1746
|
});
|
|
1734
1747
|
Card.displayName = 'Card';
|
|
1735
|
-
Card.defaultProps = defaultProps$
|
|
1748
|
+
Card.defaultProps = defaultProps$t;
|
|
1736
1749
|
Card.Img = CardImg;
|
|
1737
1750
|
Card.Title = CardTitle;
|
|
1738
1751
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1865,6 +1878,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1865
1878
|
/**
|
|
1866
1879
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1867
1880
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1881
|
+
*
|
|
1882
|
+
*
|
|
1883
|
+
*
|
|
1884
|
+
* ```tsx
|
|
1885
|
+
* const { set, clear } = useTimeout();
|
|
1886
|
+
* const [hello, showHello] = useState(false);
|
|
1887
|
+
* //Display hello after 5 seconds
|
|
1888
|
+
* set(() => showHello(true), 5000);
|
|
1889
|
+
* return (
|
|
1890
|
+
* <div className="App">
|
|
1891
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1892
|
+
* </div>
|
|
1893
|
+
* );
|
|
1894
|
+
* ```
|
|
1868
1895
|
*/
|
|
1869
1896
|
|
|
1870
1897
|
|
|
@@ -1905,7 +1932,22 @@ function useTimeout() {
|
|
|
1905
1932
|
|
|
1906
1933
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1907
1934
|
|
|
1908
|
-
var CarouselItem =
|
|
1935
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1936
|
+
var _ref$as = _ref.as,
|
|
1937
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1938
|
+
bsPrefix = _ref.bsPrefix,
|
|
1939
|
+
children = _ref.children,
|
|
1940
|
+
className = _ref.className,
|
|
1941
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1942
|
+
|
|
1943
|
+
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1944
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1945
|
+
ref: ref
|
|
1946
|
+
}, props, {
|
|
1947
|
+
className: finalClassName
|
|
1948
|
+
}), children);
|
|
1949
|
+
});
|
|
1950
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1909
1951
|
|
|
1910
1952
|
/**
|
|
1911
1953
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1918,13 +1960,27 @@ var CarouselItem = createWithBsPrefix('carousel-item');
|
|
|
1918
1960
|
|
|
1919
1961
|
function map(children, func) {
|
|
1920
1962
|
var index = 0;
|
|
1921
|
-
return
|
|
1922
|
-
return
|
|
1963
|
+
return React__default.Children.map(children, function (child) {
|
|
1964
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1967
|
+
/**
|
|
1968
|
+
* Iterates through children that are "valid elements".
|
|
1969
|
+
*
|
|
1970
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1971
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1972
|
+
*/
|
|
1973
|
+
|
|
1974
|
+
|
|
1975
|
+
function forEach(children, func) {
|
|
1976
|
+
var index = 0;
|
|
1977
|
+
React__default.Children.forEach(children, function (child) {
|
|
1978
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1923
1979
|
});
|
|
1924
1980
|
}
|
|
1925
1981
|
|
|
1926
1982
|
var SWIPE_THRESHOLD = 40;
|
|
1927
|
-
var propTypes$
|
|
1983
|
+
var propTypes$9 = {
|
|
1928
1984
|
/**
|
|
1929
1985
|
* @default 'carousel'
|
|
1930
1986
|
*/
|
|
@@ -2026,7 +2082,7 @@ var propTypes$1 = {
|
|
|
2026
2082
|
*/
|
|
2027
2083
|
nextLabel: PropTypes.string
|
|
2028
2084
|
};
|
|
2029
|
-
var defaultProps$
|
|
2085
|
+
var defaultProps$s = {
|
|
2030
2086
|
slide: true,
|
|
2031
2087
|
fade: false,
|
|
2032
2088
|
controls: true,
|
|
@@ -2037,12 +2093,12 @@ var defaultProps$c = {
|
|
|
2037
2093
|
pause: 'hover',
|
|
2038
2094
|
wrap: true,
|
|
2039
2095
|
touch: true,
|
|
2040
|
-
prevIcon: /*#__PURE__*/
|
|
2096
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2041
2097
|
"aria-hidden": "true",
|
|
2042
2098
|
className: "carousel-control-prev-icon"
|
|
2043
2099
|
}),
|
|
2044
2100
|
prevLabel: 'Previous',
|
|
2045
|
-
nextIcon: /*#__PURE__*/
|
|
2101
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2046
2102
|
"aria-hidden": "true",
|
|
2047
2103
|
className: "carousel-control-next-icon"
|
|
2048
2104
|
}),
|
|
@@ -2110,7 +2166,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2110
2166
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2111
2167
|
if (nextDirectionRef.current) {
|
|
2112
2168
|
setDirection(nextDirectionRef.current);
|
|
2113
|
-
nextDirectionRef.current = null;
|
|
2114
2169
|
} else {
|
|
2115
2170
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2116
2171
|
}
|
|
@@ -2122,7 +2177,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2122
2177
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2123
2178
|
}
|
|
2124
2179
|
|
|
2125
|
-
|
|
2180
|
+
useEffect(function () {
|
|
2181
|
+
if (nextDirectionRef.current) {
|
|
2182
|
+
nextDirectionRef.current = null;
|
|
2183
|
+
}
|
|
2184
|
+
});
|
|
2185
|
+
var numChildren = 0;
|
|
2186
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2187
|
+
// (and count them, too)
|
|
2188
|
+
|
|
2189
|
+
forEach(children, function (child, index) {
|
|
2190
|
+
++numChildren;
|
|
2191
|
+
|
|
2192
|
+
if (index === activeIndex) {
|
|
2193
|
+
activeChildInterval = child.props.interval;
|
|
2194
|
+
}
|
|
2195
|
+
});
|
|
2196
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2126
2197
|
var prev = useCallback(function (event) {
|
|
2127
2198
|
if (isSliding) {
|
|
2128
2199
|
return;
|
|
@@ -2308,17 +2379,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2308
2379
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2309
2380
|
var intervalHandleRef = useRef();
|
|
2310
2381
|
useEffect(function () {
|
|
2382
|
+
var _ref, _activeChildIntervalR;
|
|
2383
|
+
|
|
2311
2384
|
if (!shouldPlay) {
|
|
2312
2385
|
return undefined;
|
|
2313
2386
|
}
|
|
2314
2387
|
|
|
2315
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2388
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2316
2389
|
return function () {
|
|
2317
2390
|
if (intervalHandleRef.current !== null) {
|
|
2318
2391
|
clearInterval(intervalHandleRef.current);
|
|
2319
2392
|
}
|
|
2320
2393
|
};
|
|
2321
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2394
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2322
2395
|
var indicatorOnClicks = useMemo(function () {
|
|
2323
2396
|
return indicators && Array.from({
|
|
2324
2397
|
length: numChildren
|
|
@@ -2330,7 +2403,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2330
2403
|
};
|
|
2331
2404
|
});
|
|
2332
2405
|
}, [indicators, numChildren, onSelect]);
|
|
2333
|
-
return /*#__PURE__*/
|
|
2406
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2334
2407
|
ref: elementRef
|
|
2335
2408
|
}, props, {
|
|
2336
2409
|
onKeyDown: handleKeyDown,
|
|
@@ -2340,52 +2413,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2340
2413
|
onTouchMove: handleTouchMove,
|
|
2341
2414
|
onTouchEnd: handleTouchEnd,
|
|
2342
2415
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2343
|
-
}), indicators && /*#__PURE__*/
|
|
2416
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2344
2417
|
className: prefix + "-indicators"
|
|
2345
2418
|
}, map(children, function (_child, index) {
|
|
2346
|
-
return /*#__PURE__*/
|
|
2419
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2347
2420
|
key: index,
|
|
2348
2421
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2349
2422
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2350
2423
|
});
|
|
2351
|
-
})), /*#__PURE__*/
|
|
2424
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2352
2425
|
className: prefix + "-inner"
|
|
2353
2426
|
}, map(children, function (child, index) {
|
|
2354
2427
|
var isActive = index === renderedActiveIndex;
|
|
2355
|
-
return slide ? /*#__PURE__*/
|
|
2428
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2356
2429
|
in: isActive,
|
|
2357
2430
|
onEnter: isActive ? handleEnter : undefined,
|
|
2358
2431
|
onEntered: isActive ? handleEntered : undefined,
|
|
2359
2432
|
addEndListener: transitionEnd
|
|
2360
2433
|
}, function (status) {
|
|
2361
|
-
return
|
|
2434
|
+
return React__default.cloneElement(child, {
|
|
2362
2435
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2363
2436
|
});
|
|
2364
|
-
}) :
|
|
2437
|
+
}) : React__default.cloneElement(child, {
|
|
2365
2438
|
className: classnames(child.props.className, isActive && 'active')
|
|
2366
2439
|
});
|
|
2367
|
-
})), controls && /*#__PURE__*/
|
|
2440
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2368
2441
|
className: prefix + "-control-prev",
|
|
2369
2442
|
onClick: prev
|
|
2370
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2443
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2371
2444
|
className: "sr-only"
|
|
2372
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2445
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2373
2446
|
className: prefix + "-control-next",
|
|
2374
2447
|
onClick: next
|
|
2375
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2448
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2376
2449
|
className: "sr-only"
|
|
2377
2450
|
}, nextLabel))));
|
|
2378
2451
|
}
|
|
2379
2452
|
|
|
2380
|
-
var Carousel =
|
|
2453
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2381
2454
|
Carousel.displayName = 'Carousel';
|
|
2382
|
-
Carousel.propTypes = propTypes$
|
|
2383
|
-
Carousel.defaultProps = defaultProps$
|
|
2455
|
+
Carousel.propTypes = propTypes$9;
|
|
2456
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2384
2457
|
Carousel.Caption = CarouselCaption;
|
|
2385
2458
|
Carousel.Item = CarouselItem;
|
|
2386
2459
|
|
|
2387
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2388
|
-
var Col =
|
|
2460
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2461
|
+
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2389
2462
|
function (_ref, ref) {
|
|
2390
2463
|
var bsPrefix = _ref.bsPrefix,
|
|
2391
2464
|
className = _ref.className,
|
|
@@ -2396,7 +2469,7 @@ function (_ref, ref) {
|
|
|
2396
2469
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2397
2470
|
var spans = [];
|
|
2398
2471
|
var classes = [];
|
|
2399
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2472
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2400
2473
|
var propValue = props[brkPoint];
|
|
2401
2474
|
delete props[brkPoint];
|
|
2402
2475
|
var span;
|
|
@@ -2422,7 +2495,7 @@ function (_ref, ref) {
|
|
|
2422
2495
|
spans.push(prefix); // plain 'col'
|
|
2423
2496
|
}
|
|
2424
2497
|
|
|
2425
|
-
return /*#__PURE__*/
|
|
2498
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2426
2499
|
ref: ref,
|
|
2427
2500
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2428
2501
|
}));
|
|
@@ -2531,7 +2604,7 @@ function useForceUpdate() {
|
|
|
2531
2604
|
return dispatch;
|
|
2532
2605
|
}
|
|
2533
2606
|
|
|
2534
|
-
var DropdownContext = /*#__PURE__*/
|
|
2607
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2535
2608
|
|
|
2536
2609
|
function useSafeState(state) {
|
|
2537
2610
|
var isMounted = useMounted();
|
|
@@ -2577,21 +2650,50 @@ function getBasePlacement(placement) {
|
|
|
2577
2650
|
return placement.split('-')[0];
|
|
2578
2651
|
}
|
|
2579
2652
|
|
|
2580
|
-
|
|
2653
|
+
function getBoundingClientRect(element) {
|
|
2654
|
+
var rect = element.getBoundingClientRect();
|
|
2655
|
+
return {
|
|
2656
|
+
width: rect.width,
|
|
2657
|
+
height: rect.height,
|
|
2658
|
+
top: rect.top,
|
|
2659
|
+
right: rect.right,
|
|
2660
|
+
bottom: rect.bottom,
|
|
2661
|
+
left: rect.left,
|
|
2662
|
+
x: rect.left,
|
|
2663
|
+
y: rect.top
|
|
2664
|
+
};
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2581
2667
|
// means it doesn't take into account transforms.
|
|
2668
|
+
|
|
2582
2669
|
function getLayoutRect(element) {
|
|
2670
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2671
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2672
|
+
|
|
2673
|
+
var width = element.offsetWidth;
|
|
2674
|
+
var height = element.offsetHeight;
|
|
2675
|
+
|
|
2676
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2677
|
+
width = clientRect.width;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2681
|
+
height = clientRect.height;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2583
2684
|
return {
|
|
2584
2685
|
x: element.offsetLeft,
|
|
2585
2686
|
y: element.offsetTop,
|
|
2586
|
-
width:
|
|
2587
|
-
height:
|
|
2687
|
+
width: width,
|
|
2688
|
+
height: height
|
|
2588
2689
|
};
|
|
2589
2690
|
}
|
|
2590
2691
|
|
|
2591
|
-
/*:: import type { Window } from '../types'; */
|
|
2592
|
-
|
|
2593
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2594
2692
|
function getWindow(node) {
|
|
2693
|
+
if (node == null) {
|
|
2694
|
+
return window;
|
|
2695
|
+
}
|
|
2696
|
+
|
|
2595
2697
|
if (node.toString() !== '[object Window]') {
|
|
2596
2698
|
var ownerDocument = node.ownerDocument;
|
|
2597
2699
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2600,43 +2702,39 @@ function getWindow(node) {
|
|
|
2600
2702
|
return node;
|
|
2601
2703
|
}
|
|
2602
2704
|
|
|
2603
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2604
|
-
Element); */
|
|
2605
|
-
|
|
2606
2705
|
function isElement(node) {
|
|
2607
2706
|
var OwnElement = getWindow(node).Element;
|
|
2608
2707
|
return node instanceof OwnElement || node instanceof Element;
|
|
2609
2708
|
}
|
|
2610
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2611
|
-
HTMLElement); */
|
|
2612
|
-
|
|
2613
2709
|
|
|
2614
2710
|
function isHTMLElement(node) {
|
|
2615
2711
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2616
2712
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2617
2713
|
}
|
|
2618
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2619
|
-
ShadowRoot); */
|
|
2620
|
-
|
|
2621
2714
|
|
|
2622
2715
|
function isShadowRoot(node) {
|
|
2716
|
+
// IE 11 has no ShadowRoot
|
|
2717
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2718
|
+
return false;
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2623
2721
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2624
2722
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2625
2723
|
}
|
|
2626
2724
|
|
|
2627
|
-
function contains(parent, child) {
|
|
2725
|
+
function contains$1(parent, child) {
|
|
2628
2726
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2629
2727
|
|
|
2630
2728
|
if (parent.contains(child)) {
|
|
2631
2729
|
return true;
|
|
2632
2730
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2633
|
-
else if (isShadowRoot(rootNode)) {
|
|
2731
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2634
2732
|
var next = child;
|
|
2635
2733
|
|
|
2636
2734
|
do {
|
|
2637
2735
|
if (next && parent.isSameNode(next)) {
|
|
2638
2736
|
return true;
|
|
2639
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2737
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2640
2738
|
|
|
2641
2739
|
|
|
2642
2740
|
next = next.parentNode || next.host;
|
|
@@ -2651,7 +2749,7 @@ function getNodeName(element) {
|
|
|
2651
2749
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2652
2750
|
}
|
|
2653
2751
|
|
|
2654
|
-
function getComputedStyle$
|
|
2752
|
+
function getComputedStyle$1(element) {
|
|
2655
2753
|
return getWindow(element).getComputedStyle(element);
|
|
2656
2754
|
}
|
|
2657
2755
|
|
|
@@ -2660,8 +2758,9 @@ function isTableElement(element) {
|
|
|
2660
2758
|
}
|
|
2661
2759
|
|
|
2662
2760
|
function getDocumentElement(element) {
|
|
2663
|
-
// $FlowFixMe: assume body is always available
|
|
2664
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2761
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2762
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2763
|
+
element.document) || window.document).documentElement;
|
|
2665
2764
|
}
|
|
2666
2765
|
|
|
2667
2766
|
function getParentNode(element) {
|
|
@@ -2669,12 +2768,13 @@ function getParentNode(element) {
|
|
|
2669
2768
|
return element;
|
|
2670
2769
|
}
|
|
2671
2770
|
|
|
2672
|
-
return (//
|
|
2771
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2772
|
+
// $FlowFixMe[incompatible-return]
|
|
2773
|
+
// $FlowFixMe[prop-missing]
|
|
2673
2774
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2674
|
-
element.parentNode || // DOM Element detected
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2775
|
+
element.parentNode || ( // DOM Element detected
|
|
2776
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2777
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2678
2778
|
getDocumentElement(element) // fallback
|
|
2679
2779
|
|
|
2680
2780
|
);
|
|
@@ -2682,33 +2782,36 @@ function getParentNode(element) {
|
|
|
2682
2782
|
|
|
2683
2783
|
function getTrueOffsetParent(element) {
|
|
2684
2784
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2685
|
-
getComputedStyle$
|
|
2785
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2686
2786
|
return null;
|
|
2687
2787
|
}
|
|
2688
2788
|
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
if (offsetParent) {
|
|
2692
|
-
var html = getDocumentElement(offsetParent);
|
|
2693
|
-
|
|
2694
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2695
|
-
return html;
|
|
2696
|
-
}
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
|
-
return offsetParent;
|
|
2789
|
+
return element.offsetParent;
|
|
2700
2790
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2701
2791
|
// return the containing block
|
|
2702
2792
|
|
|
2703
2793
|
|
|
2704
2794
|
function getContainingBlock(element) {
|
|
2795
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2796
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2797
|
+
|
|
2798
|
+
if (isIE && isHTMLElement(element)) {
|
|
2799
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2800
|
+
var elementCss = getComputedStyle$1(element);
|
|
2801
|
+
|
|
2802
|
+
if (elementCss.position === 'fixed') {
|
|
2803
|
+
return null;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2705
2807
|
var currentNode = getParentNode(element);
|
|
2706
2808
|
|
|
2707
2809
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2708
|
-
var css = getComputedStyle$
|
|
2810
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2709
2811
|
// create a containing block.
|
|
2812
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2710
2813
|
|
|
2711
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2814
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2712
2815
|
return currentNode;
|
|
2713
2816
|
} else {
|
|
2714
2817
|
currentNode = currentNode.parentNode;
|
|
@@ -2724,11 +2827,11 @@ function getOffsetParent(element) {
|
|
|
2724
2827
|
var window = getWindow(element);
|
|
2725
2828
|
var offsetParent = getTrueOffsetParent(element);
|
|
2726
2829
|
|
|
2727
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2830
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2728
2831
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2729
2832
|
}
|
|
2730
2833
|
|
|
2731
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2834
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2732
2835
|
return window;
|
|
2733
2836
|
}
|
|
2734
2837
|
|
|
@@ -2739,8 +2842,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2739
2842
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2740
2843
|
}
|
|
2741
2844
|
|
|
2742
|
-
|
|
2743
|
-
|
|
2845
|
+
var max = Math.max;
|
|
2846
|
+
var min = Math.min;
|
|
2847
|
+
var round = Math.round;
|
|
2848
|
+
|
|
2849
|
+
function within(min$1, value, max$1) {
|
|
2850
|
+
return max(min$1, min(value, max$1));
|
|
2744
2851
|
}
|
|
2745
2852
|
|
|
2746
2853
|
function getFreshSideObject() {
|
|
@@ -2753,7 +2860,7 @@ function getFreshSideObject() {
|
|
|
2753
2860
|
}
|
|
2754
2861
|
|
|
2755
2862
|
function mergePaddingObject(paddingObject) {
|
|
2756
|
-
return Object.assign(
|
|
2863
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2757
2864
|
}
|
|
2758
2865
|
|
|
2759
2866
|
function expandToHashMap(value, keys) {
|
|
@@ -2763,11 +2870,19 @@ function expandToHashMap(value, keys) {
|
|
|
2763
2870
|
}, {});
|
|
2764
2871
|
}
|
|
2765
2872
|
|
|
2873
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2874
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2875
|
+
placement: state.placement
|
|
2876
|
+
})) : padding;
|
|
2877
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2878
|
+
};
|
|
2879
|
+
|
|
2766
2880
|
function arrow(_ref) {
|
|
2767
2881
|
var _state$modifiersData$;
|
|
2768
2882
|
|
|
2769
2883
|
var state = _ref.state,
|
|
2770
|
-
name = _ref.name
|
|
2884
|
+
name = _ref.name,
|
|
2885
|
+
options = _ref.options;
|
|
2771
2886
|
var arrowElement = state.elements.arrow;
|
|
2772
2887
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2773
2888
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2779,7 +2894,7 @@ function arrow(_ref) {
|
|
|
2779
2894
|
return;
|
|
2780
2895
|
}
|
|
2781
2896
|
|
|
2782
|
-
var paddingObject =
|
|
2897
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2783
2898
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2784
2899
|
var minProp = axis === 'y' ? top : left;
|
|
2785
2900
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2799,14 +2914,11 @@ function arrow(_ref) {
|
|
|
2799
2914
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2800
2915
|
}
|
|
2801
2916
|
|
|
2802
|
-
function effect(_ref2) {
|
|
2917
|
+
function effect$1(_ref2) {
|
|
2803
2918
|
var state = _ref2.state,
|
|
2804
|
-
options = _ref2.options
|
|
2805
|
-
name = _ref2.name;
|
|
2919
|
+
options = _ref2.options;
|
|
2806
2920
|
var _options$element = 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;
|
|
2921
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2810
2922
|
|
|
2811
2923
|
if (arrowElement == null) {
|
|
2812
2924
|
return;
|
|
@@ -2827,7 +2939,7 @@ function effect(_ref2) {
|
|
|
2827
2939
|
}
|
|
2828
2940
|
}
|
|
2829
2941
|
|
|
2830
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2942
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2831
2943
|
if (process.env.NODE_ENV !== "production") {
|
|
2832
2944
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2833
2945
|
}
|
|
@@ -2836,9 +2948,6 @@ function effect(_ref2) {
|
|
|
2836
2948
|
}
|
|
2837
2949
|
|
|
2838
2950
|
state.elements.arrow = arrowElement;
|
|
2839
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2840
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2841
|
-
};
|
|
2842
2951
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2843
2952
|
|
|
2844
2953
|
|
|
@@ -2847,7 +2956,7 @@ var arrow$1 = {
|
|
|
2847
2956
|
enabled: true,
|
|
2848
2957
|
phase: 'main',
|
|
2849
2958
|
fn: arrow,
|
|
2850
|
-
effect: effect,
|
|
2959
|
+
effect: effect$1,
|
|
2851
2960
|
requires: ['popperOffsets'],
|
|
2852
2961
|
requiresIfExists: ['preventOverflow']
|
|
2853
2962
|
};
|
|
@@ -2861,14 +2970,14 @@ var unsetSides = {
|
|
|
2861
2970
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2862
2971
|
// cleanly divide the values into the appropriate subpixels.
|
|
2863
2972
|
|
|
2864
|
-
function
|
|
2973
|
+
function roundOffsetsByDPR(_ref) {
|
|
2865
2974
|
var x = _ref.x,
|
|
2866
2975
|
y = _ref.y;
|
|
2867
2976
|
var win = window;
|
|
2868
2977
|
var dpr = win.devicePixelRatio || 1;
|
|
2869
2978
|
return {
|
|
2870
|
-
x:
|
|
2871
|
-
y:
|
|
2979
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2980
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2872
2981
|
};
|
|
2873
2982
|
}
|
|
2874
2983
|
|
|
@@ -2881,11 +2990,14 @@ function mapToStyles(_ref2) {
|
|
|
2881
2990
|
offsets = _ref2.offsets,
|
|
2882
2991
|
position = _ref2.position,
|
|
2883
2992
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2884
|
-
adaptive = _ref2.adaptive
|
|
2993
|
+
adaptive = _ref2.adaptive,
|
|
2994
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2885
2995
|
|
|
2886
|
-
var
|
|
2887
|
-
x =
|
|
2888
|
-
|
|
2996
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2997
|
+
_ref3$x = _ref3.x,
|
|
2998
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2999
|
+
_ref3$y = _ref3.y,
|
|
3000
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2889
3001
|
|
|
2890
3002
|
var hasX = offsets.hasOwnProperty('x');
|
|
2891
3003
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2895,23 +3007,32 @@ function mapToStyles(_ref2) {
|
|
|
2895
3007
|
|
|
2896
3008
|
if (adaptive) {
|
|
2897
3009
|
var offsetParent = getOffsetParent(popper);
|
|
3010
|
+
var heightProp = 'clientHeight';
|
|
3011
|
+
var widthProp = 'clientWidth';
|
|
2898
3012
|
|
|
2899
3013
|
if (offsetParent === getWindow(popper)) {
|
|
2900
3014
|
offsetParent = getDocumentElement(popper);
|
|
2901
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2902
3015
|
|
|
2903
|
-
|
|
3016
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3017
|
+
heightProp = 'scrollHeight';
|
|
3018
|
+
widthProp = 'scrollWidth';
|
|
3019
|
+
}
|
|
3020
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3021
|
+
|
|
2904
3022
|
|
|
3023
|
+
offsetParent = offsetParent;
|
|
2905
3024
|
|
|
2906
3025
|
if (placement === top) {
|
|
2907
|
-
sideY = bottom;
|
|
2908
|
-
|
|
3026
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3027
|
+
|
|
3028
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2909
3029
|
y *= gpuAcceleration ? 1 : -1;
|
|
2910
3030
|
}
|
|
2911
3031
|
|
|
2912
3032
|
if (placement === left) {
|
|
2913
|
-
sideX = right;
|
|
2914
|
-
|
|
3033
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3034
|
+
|
|
3035
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2915
3036
|
x *= gpuAcceleration ? 1 : -1;
|
|
2916
3037
|
}
|
|
2917
3038
|
}
|
|
@@ -2923,22 +3044,24 @@ function mapToStyles(_ref2) {
|
|
|
2923
3044
|
if (gpuAcceleration) {
|
|
2924
3045
|
var _Object$assign;
|
|
2925
3046
|
|
|
2926
|
-
return Object.assign(
|
|
3047
|
+
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));
|
|
2927
3048
|
}
|
|
2928
3049
|
|
|
2929
|
-
return Object.assign(
|
|
3050
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2930
3051
|
}
|
|
2931
3052
|
|
|
2932
|
-
function computeStyles(
|
|
2933
|
-
var state =
|
|
2934
|
-
options =
|
|
3053
|
+
function computeStyles(_ref4) {
|
|
3054
|
+
var state = _ref4.state,
|
|
3055
|
+
options = _ref4.options;
|
|
2935
3056
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2936
3057
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2937
3058
|
_options$adaptive = options.adaptive,
|
|
2938
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3059
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3060
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3061
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2939
3062
|
|
|
2940
3063
|
if (process.env.NODE_ENV !== "production") {
|
|
2941
|
-
var transitionProperty = getComputedStyle$
|
|
3064
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
2942
3065
|
|
|
2943
3066
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
2944
3067
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -2955,22 +3078,24 @@ function computeStyles(_ref3) {
|
|
|
2955
3078
|
};
|
|
2956
3079
|
|
|
2957
3080
|
if (state.modifiersData.popperOffsets != null) {
|
|
2958
|
-
state.styles.popper = Object.assign(
|
|
3081
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2959
3082
|
offsets: state.modifiersData.popperOffsets,
|
|
2960
3083
|
position: state.options.strategy,
|
|
2961
|
-
adaptive: adaptive
|
|
3084
|
+
adaptive: adaptive,
|
|
3085
|
+
roundOffsets: roundOffsets
|
|
2962
3086
|
})));
|
|
2963
3087
|
}
|
|
2964
3088
|
|
|
2965
3089
|
if (state.modifiersData.arrow != null) {
|
|
2966
|
-
state.styles.arrow = Object.assign(
|
|
3090
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2967
3091
|
offsets: state.modifiersData.arrow,
|
|
2968
3092
|
position: 'absolute',
|
|
2969
|
-
adaptive: false
|
|
3093
|
+
adaptive: false,
|
|
3094
|
+
roundOffsets: roundOffsets
|
|
2970
3095
|
})));
|
|
2971
3096
|
}
|
|
2972
3097
|
|
|
2973
|
-
state.attributes.popper = Object.assign(
|
|
3098
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2974
3099
|
'data-popper-placement': state.placement
|
|
2975
3100
|
});
|
|
2976
3101
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -2988,7 +3113,7 @@ var passive = {
|
|
|
2988
3113
|
passive: true
|
|
2989
3114
|
};
|
|
2990
3115
|
|
|
2991
|
-
function effect
|
|
3116
|
+
function effect(_ref) {
|
|
2992
3117
|
var state = _ref.state,
|
|
2993
3118
|
instance = _ref.instance,
|
|
2994
3119
|
options = _ref.options;
|
|
@@ -3028,11 +3153,11 @@ var eventListeners = {
|
|
|
3028
3153
|
enabled: true,
|
|
3029
3154
|
phase: 'write',
|
|
3030
3155
|
fn: function fn() {},
|
|
3031
|
-
effect: effect
|
|
3156
|
+
effect: effect,
|
|
3032
3157
|
data: {}
|
|
3033
3158
|
};
|
|
3034
3159
|
|
|
3035
|
-
var hash = {
|
|
3160
|
+
var hash$1 = {
|
|
3036
3161
|
left: 'right',
|
|
3037
3162
|
right: 'left',
|
|
3038
3163
|
bottom: 'top',
|
|
@@ -3040,34 +3165,20 @@ var hash = {
|
|
|
3040
3165
|
};
|
|
3041
3166
|
function getOppositePlacement(placement) {
|
|
3042
3167
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3043
|
-
return hash[matched];
|
|
3168
|
+
return hash$1[matched];
|
|
3044
3169
|
});
|
|
3045
3170
|
}
|
|
3046
3171
|
|
|
3047
|
-
var hash
|
|
3172
|
+
var hash = {
|
|
3048
3173
|
start: 'end',
|
|
3049
3174
|
end: 'start'
|
|
3050
3175
|
};
|
|
3051
3176
|
function getOppositeVariationPlacement(placement) {
|
|
3052
3177
|
return placement.replace(/start|end/g, function (matched) {
|
|
3053
|
-
return hash
|
|
3178
|
+
return hash[matched];
|
|
3054
3179
|
});
|
|
3055
3180
|
}
|
|
3056
3181
|
|
|
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
|
-
|
|
3071
3182
|
function getWindowScroll(node) {
|
|
3072
3183
|
var win = getWindow(node);
|
|
3073
3184
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3130,16 +3241,18 @@ function getViewportRect(element) {
|
|
|
3130
3241
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3131
3242
|
|
|
3132
3243
|
function getDocumentRect(element) {
|
|
3244
|
+
var _element$ownerDocumen;
|
|
3245
|
+
|
|
3133
3246
|
var html = getDocumentElement(element);
|
|
3134
3247
|
var winScroll = getWindowScroll(element);
|
|
3135
|
-
var body = element.ownerDocument.body;
|
|
3136
|
-
var width =
|
|
3137
|
-
var height =
|
|
3248
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3249
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3250
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3138
3251
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3139
3252
|
var y = -winScroll.scrollTop;
|
|
3140
3253
|
|
|
3141
|
-
if (getComputedStyle$
|
|
3142
|
-
x +=
|
|
3254
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3255
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3143
3256
|
}
|
|
3144
3257
|
|
|
3145
3258
|
return {
|
|
@@ -3152,7 +3265,7 @@ function getDocumentRect(element) {
|
|
|
3152
3265
|
|
|
3153
3266
|
function isScrollParent(element) {
|
|
3154
3267
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3155
|
-
var _getComputedStyle = getComputedStyle$
|
|
3268
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3156
3269
|
overflow = _getComputedStyle.overflow,
|
|
3157
3270
|
overflowX = _getComputedStyle.overflowX,
|
|
3158
3271
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3162,7 +3275,7 @@ function isScrollParent(element) {
|
|
|
3162
3275
|
|
|
3163
3276
|
function getScrollParent(node) {
|
|
3164
3277
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3165
|
-
// $FlowFixMe: assume body is always available
|
|
3278
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3166
3279
|
return node.ownerDocument.body;
|
|
3167
3280
|
}
|
|
3168
3281
|
|
|
@@ -3176,26 +3289,28 @@ function getScrollParent(node) {
|
|
|
3176
3289
|
/*
|
|
3177
3290
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3178
3291
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3179
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3292
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3180
3293
|
reference element's position.
|
|
3181
3294
|
*/
|
|
3182
3295
|
|
|
3183
3296
|
function listScrollParents(element, list) {
|
|
3297
|
+
var _element$ownerDocumen;
|
|
3298
|
+
|
|
3184
3299
|
if (list === void 0) {
|
|
3185
3300
|
list = [];
|
|
3186
3301
|
}
|
|
3187
3302
|
|
|
3188
3303
|
var scrollParent = getScrollParent(element);
|
|
3189
|
-
var isBody =
|
|
3304
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3190
3305
|
var win = getWindow(scrollParent);
|
|
3191
3306
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3192
3307
|
var updatedList = list.concat(target);
|
|
3193
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3308
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3194
3309
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3195
3310
|
}
|
|
3196
3311
|
|
|
3197
3312
|
function rectToClientRect(rect) {
|
|
3198
|
-
return Object.assign(
|
|
3313
|
+
return Object.assign({}, rect, {
|
|
3199
3314
|
left: rect.x,
|
|
3200
3315
|
top: rect.y,
|
|
3201
3316
|
right: rect.x + rect.width,
|
|
@@ -3225,16 +3340,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3225
3340
|
|
|
3226
3341
|
function getClippingParents(element) {
|
|
3227
3342
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3228
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3343
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3229
3344
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3230
3345
|
|
|
3231
3346
|
if (!isElement(clipperElement)) {
|
|
3232
3347
|
return [];
|
|
3233
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3348
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3234
3349
|
|
|
3235
3350
|
|
|
3236
3351
|
return clippingParents.filter(function (clippingParent) {
|
|
3237
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3352
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3238
3353
|
});
|
|
3239
3354
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3240
3355
|
// clipping parents
|
|
@@ -3246,10 +3361,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3246
3361
|
var firstClippingParent = clippingParents[0];
|
|
3247
3362
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3248
3363
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3249
|
-
accRect.top =
|
|
3250
|
-
accRect.right =
|
|
3251
|
-
accRect.bottom =
|
|
3252
|
-
accRect.left =
|
|
3364
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3365
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3366
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3367
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3253
3368
|
return accRect;
|
|
3254
3369
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3255
3370
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3316,11 +3431,11 @@ function computeOffsets(_ref) {
|
|
|
3316
3431
|
|
|
3317
3432
|
switch (variation) {
|
|
3318
3433
|
case start:
|
|
3319
|
-
offsets[mainAxis] =
|
|
3434
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3320
3435
|
break;
|
|
3321
3436
|
|
|
3322
3437
|
case end:
|
|
3323
|
-
offsets[mainAxis] =
|
|
3438
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3324
3439
|
break;
|
|
3325
3440
|
}
|
|
3326
3441
|
}
|
|
@@ -3359,7 +3474,7 @@ function detectOverflow(state, options) {
|
|
|
3359
3474
|
strategy: 'absolute',
|
|
3360
3475
|
placement: placement
|
|
3361
3476
|
});
|
|
3362
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3477
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3363
3478
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3364
3479
|
// 0 or negative = within the clipping rect
|
|
3365
3480
|
|
|
@@ -3383,9 +3498,6 @@ function detectOverflow(state, options) {
|
|
|
3383
3498
|
return overflowOffsets;
|
|
3384
3499
|
}
|
|
3385
3500
|
|
|
3386
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3387
|
-
|
|
3388
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3389
3501
|
function computeAutoPlacement(state, options) {
|
|
3390
3502
|
if (options === void 0) {
|
|
3391
3503
|
options = {};
|
|
@@ -3402,8 +3514,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3402
3514
|
var variation = getVariation(placement);
|
|
3403
3515
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3404
3516
|
return getVariation(placement) === variation;
|
|
3405
|
-
}) : basePlacements;
|
|
3406
|
-
|
|
3517
|
+
}) : basePlacements;
|
|
3407
3518
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3408
3519
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3409
3520
|
});
|
|
@@ -3414,7 +3525,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3414
3525
|
if (process.env.NODE_ENV !== "production") {
|
|
3415
3526
|
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(' '));
|
|
3416
3527
|
}
|
|
3417
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3528
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3418
3529
|
|
|
3419
3530
|
|
|
3420
3531
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3615,7 +3726,7 @@ function hide(_ref) {
|
|
|
3615
3726
|
isReferenceHidden: isReferenceHidden,
|
|
3616
3727
|
hasPopperEscaped: hasPopperEscaped
|
|
3617
3728
|
};
|
|
3618
|
-
state.attributes.popper = Object.assign(
|
|
3729
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3619
3730
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3620
3731
|
'data-popper-escaped': hasPopperEscaped
|
|
3621
3732
|
});
|
|
@@ -3634,7 +3745,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3634
3745
|
var basePlacement = getBasePlacement(placement);
|
|
3635
3746
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3636
3747
|
|
|
3637
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3748
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3638
3749
|
placement: placement
|
|
3639
3750
|
})) : offset,
|
|
3640
3751
|
skidding = _ref[0],
|
|
@@ -3740,7 +3851,7 @@ function preventOverflow(_ref) {
|
|
|
3740
3851
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3741
3852
|
var referenceRect = state.rects.reference;
|
|
3742
3853
|
var popperRect = state.rects.popper;
|
|
3743
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3854
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3744
3855
|
placement: state.placement
|
|
3745
3856
|
})) : tetherOffset;
|
|
3746
3857
|
var data = {
|
|
@@ -3752,13 +3863,13 @@ function preventOverflow(_ref) {
|
|
|
3752
3863
|
return;
|
|
3753
3864
|
}
|
|
3754
3865
|
|
|
3755
|
-
if (checkMainAxis) {
|
|
3866
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3756
3867
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3757
3868
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3758
3869
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3759
3870
|
var offset = popperOffsets[mainAxis];
|
|
3760
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3761
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3871
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3872
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3762
3873
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3763
3874
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3764
3875
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3785,26 +3896,29 @@ function preventOverflow(_ref) {
|
|
|
3785
3896
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3786
3897
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3787
3898
|
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
|
-
}
|
|
3792
3899
|
|
|
3793
|
-
|
|
3794
|
-
|
|
3900
|
+
if (checkMainAxis) {
|
|
3901
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3902
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3903
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
if (checkAltAxis) {
|
|
3907
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3795
3908
|
|
|
3796
|
-
|
|
3909
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3797
3910
|
|
|
3798
|
-
|
|
3911
|
+
var _offset = popperOffsets[altAxis];
|
|
3799
3912
|
|
|
3800
|
-
|
|
3913
|
+
var _min = _offset + overflow[_mainSide];
|
|
3801
3914
|
|
|
3802
|
-
|
|
3915
|
+
var _max = _offset - overflow[_altSide];
|
|
3803
3916
|
|
|
3804
|
-
|
|
3917
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3805
3918
|
|
|
3806
|
-
|
|
3807
|
-
|
|
3919
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3920
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3921
|
+
}
|
|
3808
3922
|
}
|
|
3809
3923
|
|
|
3810
3924
|
state.modifiersData[name] = data;
|
|
@@ -4035,9 +4149,9 @@ function uniqueBy(arr, fn) {
|
|
|
4035
4149
|
function mergeByName(modifiers) {
|
|
4036
4150
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4037
4151
|
var existing = merged[current.name];
|
|
4038
|
-
merged[current.name] = existing ? Object.assign(
|
|
4039
|
-
options: Object.assign(
|
|
4040
|
-
data: Object.assign(
|
|
4152
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4153
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4154
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4041
4155
|
}) : current;
|
|
4042
4156
|
return merged;
|
|
4043
4157
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4083,7 +4197,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4083
4197
|
var state = {
|
|
4084
4198
|
placement: 'bottom',
|
|
4085
4199
|
orderedModifiers: [],
|
|
4086
|
-
options: Object.assign(
|
|
4200
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4087
4201
|
modifiersData: {},
|
|
4088
4202
|
elements: {
|
|
4089
4203
|
reference: reference,
|
|
@@ -4098,7 +4212,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4098
4212
|
state: state,
|
|
4099
4213
|
setOptions: function setOptions(options) {
|
|
4100
4214
|
cleanupModifierEffects();
|
|
4101
|
-
state.options = Object.assign(
|
|
4215
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4102
4216
|
state.scrollParents = {
|
|
4103
4217
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4104
4218
|
popper: listScrollParents(popper)
|
|
@@ -4130,7 +4244,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4130
4244
|
}
|
|
4131
4245
|
}
|
|
4132
4246
|
|
|
4133
|
-
var _getComputedStyle = getComputedStyle$
|
|
4247
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4134
4248
|
marginTop = _getComputedStyle.marginTop,
|
|
4135
4249
|
marginRight = _getComputedStyle.marginRight,
|
|
4136
4250
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4340,6 +4454,11 @@ var ariaDescribedByModifier = {
|
|
|
4340
4454
|
|
|
4341
4455
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4342
4456
|
var ids = reference.getAttribute('aria-describedby');
|
|
4457
|
+
|
|
4458
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4459
|
+
return;
|
|
4460
|
+
}
|
|
4461
|
+
|
|
4343
4462
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4344
4463
|
}
|
|
4345
4464
|
}
|
|
@@ -4465,7 +4584,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4465
4584
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4466
4585
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4467
4586
|
// so we need to check on context instead of a document root element.
|
|
4468
|
-
function contains
|
|
4587
|
+
function contains(context, node) {
|
|
4469
4588
|
if (context.contains) return context.contains(node);
|
|
4470
4589
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4471
4590
|
}
|
|
@@ -4539,13 +4658,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4539
4658
|
return componentOrElement != null ? componentOrElement : null;
|
|
4540
4659
|
}
|
|
4541
4660
|
|
|
4542
|
-
var ownerDocument
|
|
4543
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4661
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4662
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4544
4663
|
});
|
|
4545
4664
|
|
|
4546
4665
|
var escapeKeyCode = 27;
|
|
4547
4666
|
|
|
4548
|
-
var noop$
|
|
4667
|
+
var noop$4 = function noop() {};
|
|
4549
4668
|
|
|
4550
4669
|
function isLeftClickEvent(event) {
|
|
4551
4670
|
return event.button === 0;
|
|
@@ -4578,11 +4697,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4578
4697
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4579
4698
|
|
|
4580
4699
|
var preventMouseRootCloseRef = useRef(false);
|
|
4581
|
-
var onClose = onRootClose || noop$
|
|
4700
|
+
var onClose = onRootClose || noop$4;
|
|
4582
4701
|
var handleMouseCapture = useCallback(function (e) {
|
|
4583
4702
|
var currentTarget = getRefTarget(ref);
|
|
4584
4703
|
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');
|
|
4585
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4704
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4586
4705
|
}, [ref]);
|
|
4587
4706
|
var handleMouse = useEventCallback(function (e) {
|
|
4588
4707
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4595,19 +4714,38 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4595
4714
|
}
|
|
4596
4715
|
});
|
|
4597
4716
|
useEffect(function () {
|
|
4598
|
-
if (disabled || ref == null) return undefined;
|
|
4599
|
-
|
|
4717
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4718
|
+
// https://github.com/facebook/react/issues/20074
|
|
4719
|
+
|
|
4720
|
+
var currentEvent = window.event;
|
|
4721
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4600
4722
|
// avoid false positives in the contains() check below if the target DOM
|
|
4601
4723
|
// element is removed in the React mouse callback.
|
|
4602
4724
|
|
|
4603
4725
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4604
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4605
|
-
|
|
4726
|
+
var removeMouseListener = listen(doc, clickTrigger, function (e) {
|
|
4727
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4728
|
+
if (e === currentEvent) {
|
|
4729
|
+
currentEvent = undefined;
|
|
4730
|
+
return;
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
handleMouse(e);
|
|
4734
|
+
});
|
|
4735
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4736
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4737
|
+
if (e === currentEvent) {
|
|
4738
|
+
currentEvent = undefined;
|
|
4739
|
+
return;
|
|
4740
|
+
}
|
|
4741
|
+
|
|
4742
|
+
handleKeyUp(e);
|
|
4743
|
+
});
|
|
4606
4744
|
var mobileSafariHackListeners = [];
|
|
4607
4745
|
|
|
4608
4746
|
if ('ontouchstart' in doc.documentElement) {
|
|
4609
4747
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4610
|
-
return listen(el, 'mousemove', noop$
|
|
4748
|
+
return listen(el, 'mousemove', noop$4);
|
|
4611
4749
|
});
|
|
4612
4750
|
}
|
|
4613
4751
|
|
|
@@ -4689,7 +4827,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4689
4827
|
});
|
|
4690
4828
|
}
|
|
4691
4829
|
|
|
4692
|
-
var noop$
|
|
4830
|
+
var noop$3 = function noop() {};
|
|
4693
4831
|
/**
|
|
4694
4832
|
* @memberOf Dropdown
|
|
4695
4833
|
* @param {object} options
|
|
@@ -4757,7 +4895,7 @@ function useDropdownMenu(options) {
|
|
|
4757
4895
|
|
|
4758
4896
|
var menu;
|
|
4759
4897
|
var menuProps = {
|
|
4760
|
-
ref: setMenu || noop$
|
|
4898
|
+
ref: setMenu || noop$3,
|
|
4761
4899
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4762
4900
|
};
|
|
4763
4901
|
var childArgs = {
|
|
@@ -4790,7 +4928,7 @@ function useDropdownMenu(options) {
|
|
|
4790
4928
|
});
|
|
4791
4929
|
return menu;
|
|
4792
4930
|
}
|
|
4793
|
-
var propTypes$
|
|
4931
|
+
var propTypes$8 = {
|
|
4794
4932
|
/**
|
|
4795
4933
|
* A render prop that returns a Menu element. The `props`
|
|
4796
4934
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4847,7 +4985,7 @@ var propTypes$2 = {
|
|
|
4847
4985
|
*/
|
|
4848
4986
|
rootCloseEvent: PropTypes.string
|
|
4849
4987
|
};
|
|
4850
|
-
var defaultProps$
|
|
4988
|
+
var defaultProps$r = {
|
|
4851
4989
|
usePopper: true
|
|
4852
4990
|
};
|
|
4853
4991
|
|
|
@@ -4857,19 +4995,19 @@ var defaultProps$d = {
|
|
|
4857
4995
|
* @displayName DropdownMenu
|
|
4858
4996
|
* @memberOf Dropdown
|
|
4859
4997
|
*/
|
|
4860
|
-
function DropdownMenu(_ref2) {
|
|
4998
|
+
function DropdownMenu$1(_ref2) {
|
|
4861
4999
|
var children = _ref2.children,
|
|
4862
5000
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4863
5001
|
|
|
4864
5002
|
var args = useDropdownMenu(options);
|
|
4865
|
-
return /*#__PURE__*/
|
|
5003
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4866
5004
|
}
|
|
4867
5005
|
|
|
4868
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4869
|
-
DropdownMenu.propTypes = propTypes$
|
|
4870
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5006
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5007
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5008
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4871
5009
|
|
|
4872
|
-
var noop$
|
|
5010
|
+
var noop$2 = function noop() {};
|
|
4873
5011
|
/**
|
|
4874
5012
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4875
5013
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4883,11 +5021,11 @@ function useDropdownToggle() {
|
|
|
4883
5021
|
_ref$show = _ref.show,
|
|
4884
5022
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4885
5023
|
_ref$toggle = _ref.toggle,
|
|
4886
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5024
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4887
5025
|
setToggle = _ref.setToggle;
|
|
4888
5026
|
|
|
4889
5027
|
return [{
|
|
4890
|
-
ref: setToggle || noop$
|
|
5028
|
+
ref: setToggle || noop$2,
|
|
4891
5029
|
'aria-haspopup': true,
|
|
4892
5030
|
'aria-expanded': !!show
|
|
4893
5031
|
}, {
|
|
@@ -4895,7 +5033,7 @@ function useDropdownToggle() {
|
|
|
4895
5033
|
toggle: toggle
|
|
4896
5034
|
}];
|
|
4897
5035
|
}
|
|
4898
|
-
var propTypes$
|
|
5036
|
+
var propTypes$7 = {
|
|
4899
5037
|
/**
|
|
4900
5038
|
* A render prop that returns a Toggle element. The `props`
|
|
4901
5039
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -4920,7 +5058,7 @@ var propTypes$3 = {
|
|
|
4920
5058
|
* @displayName DropdownToggle
|
|
4921
5059
|
* @memberOf Dropdown
|
|
4922
5060
|
*/
|
|
4923
|
-
function DropdownToggle(_ref2) {
|
|
5061
|
+
function DropdownToggle$1(_ref2) {
|
|
4924
5062
|
var children = _ref2.children;
|
|
4925
5063
|
|
|
4926
5064
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -4929,17 +5067,17 @@ function DropdownToggle(_ref2) {
|
|
|
4929
5067
|
show = _useDropdownToggle$.show,
|
|
4930
5068
|
toggle = _useDropdownToggle$.toggle;
|
|
4931
5069
|
|
|
4932
|
-
return /*#__PURE__*/
|
|
5070
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4933
5071
|
show: show,
|
|
4934
5072
|
toggle: toggle,
|
|
4935
5073
|
props: props
|
|
4936
5074
|
}));
|
|
4937
5075
|
}
|
|
4938
5076
|
|
|
4939
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4940
|
-
DropdownToggle.propTypes = propTypes$
|
|
5077
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5078
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
4941
5079
|
|
|
4942
|
-
var propTypes$
|
|
5080
|
+
var propTypes$6 = {
|
|
4943
5081
|
/**
|
|
4944
5082
|
* A render prop that returns the root dropdown element. The `props`
|
|
4945
5083
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5011,7 +5149,7 @@ var propTypes$4 = {
|
|
|
5011
5149
|
/**
|
|
5012
5150
|
* @displayName Dropdown
|
|
5013
5151
|
*/
|
|
5014
|
-
function Dropdown(_ref) {
|
|
5152
|
+
function Dropdown$1(_ref) {
|
|
5015
5153
|
var drop = _ref.drop,
|
|
5016
5154
|
alignEnd = _ref.alignEnd,
|
|
5017
5155
|
defaultShow = _ref.defaultShow,
|
|
@@ -5144,7 +5282,7 @@ function Dropdown(_ref) {
|
|
|
5144
5282
|
}
|
|
5145
5283
|
};
|
|
5146
5284
|
|
|
5147
|
-
return /*#__PURE__*/
|
|
5285
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5148
5286
|
value: context
|
|
5149
5287
|
}, children({
|
|
5150
5288
|
props: {
|
|
@@ -5153,19 +5291,19 @@ function Dropdown(_ref) {
|
|
|
5153
5291
|
}));
|
|
5154
5292
|
}
|
|
5155
5293
|
|
|
5156
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5157
|
-
Dropdown.propTypes = propTypes$
|
|
5158
|
-
Dropdown.Menu = DropdownMenu;
|
|
5159
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5294
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5295
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5296
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5297
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5160
5298
|
|
|
5161
|
-
var NavContext =
|
|
5299
|
+
var NavContext = React__default.createContext(null);
|
|
5162
5300
|
NavContext.displayName = 'NavContext';
|
|
5163
5301
|
|
|
5164
|
-
var defaultProps$
|
|
5302
|
+
var defaultProps$q = {
|
|
5165
5303
|
as: SafeAnchor,
|
|
5166
5304
|
disabled: false
|
|
5167
5305
|
};
|
|
5168
|
-
var DropdownItem =
|
|
5306
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5169
5307
|
var bsPrefix = _ref.bsPrefix,
|
|
5170
5308
|
className = _ref.className,
|
|
5171
5309
|
children = _ref.children,
|
|
@@ -5183,9 +5321,10 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5183
5321
|
var navContext = useContext(NavContext);
|
|
5184
5322
|
|
|
5185
5323
|
var _ref2 = navContext || {},
|
|
5186
|
-
activeKey = _ref2.activeKey;
|
|
5324
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5325
|
+
|
|
5187
5326
|
|
|
5188
|
-
var key = makeEventKey(eventKey
|
|
5327
|
+
var key = makeEventKey(eventKey, href);
|
|
5189
5328
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5190
5329
|
var handleClick = useEventCallback(function (event) {
|
|
5191
5330
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5199,7 +5338,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5199
5338
|
/*#__PURE__*/
|
|
5200
5339
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5201
5340
|
// @ts-ignore
|
|
5202
|
-
|
|
5341
|
+
React__default.createElement(Component, _extends({}, props, {
|
|
5203
5342
|
ref: ref,
|
|
5204
5343
|
href: href,
|
|
5205
5344
|
disabled: disabled,
|
|
@@ -5209,7 +5348,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5209
5348
|
);
|
|
5210
5349
|
});
|
|
5211
5350
|
DropdownItem.displayName = 'DropdownItem';
|
|
5212
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5351
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5213
5352
|
|
|
5214
5353
|
var toFnRef = function toFnRef(ref) {
|
|
5215
5354
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5248,8 +5387,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5248
5387
|
}, [refA, refB]);
|
|
5249
5388
|
}
|
|
5250
5389
|
|
|
5251
|
-
var context
|
|
5252
|
-
context
|
|
5390
|
+
var context = React__default.createContext(null);
|
|
5391
|
+
context.displayName = 'NavbarContext';
|
|
5253
5392
|
|
|
5254
5393
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5255
5394
|
// @ts-ignore
|
|
@@ -5284,12 +5423,14 @@ function getMargins(element) {
|
|
|
5284
5423
|
function usePopperMarginModifiers() {
|
|
5285
5424
|
var overlayRef = useRef(null);
|
|
5286
5425
|
var margins = useRef(null);
|
|
5426
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5427
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5287
5428
|
var callback = useCallback(function (overlay) {
|
|
5288
|
-
if (!overlay || !(hasClass(overlay,
|
|
5429
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5289
5430
|
margins.current = getMargins(overlay);
|
|
5290
5431
|
overlay.style.margin = '0';
|
|
5291
5432
|
overlayRef.current = overlay;
|
|
5292
|
-
}, []);
|
|
5433
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5293
5434
|
var offset = useMemo(function () {
|
|
5294
5435
|
return {
|
|
5295
5436
|
name: 'offset',
|
|
@@ -5333,7 +5474,7 @@ function usePopperMarginModifiers() {
|
|
|
5333
5474
|
effect: function effect(_ref2) {
|
|
5334
5475
|
var state = _ref2.state;
|
|
5335
5476
|
|
|
5336
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5477
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5337
5478
|
return undefined;
|
|
5338
5479
|
}
|
|
5339
5480
|
|
|
@@ -5354,18 +5495,30 @@ function usePopperMarginModifiers() {
|
|
|
5354
5495
|
};
|
|
5355
5496
|
}
|
|
5356
5497
|
};
|
|
5357
|
-
}, []);
|
|
5498
|
+
}, [popoverClass]);
|
|
5358
5499
|
return [callback, [offset, popoverArrowMargins]];
|
|
5359
5500
|
}
|
|
5360
5501
|
|
|
5361
|
-
var
|
|
5502
|
+
var alignDirection = PropTypes.oneOf(['left', 'right']);
|
|
5503
|
+
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5504
|
+
sm: alignDirection
|
|
5505
|
+
}), PropTypes.shape({
|
|
5506
|
+
md: alignDirection
|
|
5507
|
+
}), PropTypes.shape({
|
|
5508
|
+
lg: alignDirection
|
|
5509
|
+
}), PropTypes.shape({
|
|
5510
|
+
xl: alignDirection
|
|
5511
|
+
})]);
|
|
5512
|
+
var defaultProps$p = {
|
|
5513
|
+
align: 'left',
|
|
5362
5514
|
alignRight: false,
|
|
5363
5515
|
flip: true
|
|
5364
5516
|
}; // TODO: remove this hack
|
|
5365
5517
|
|
|
5366
|
-
var DropdownMenu
|
|
5518
|
+
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5367
5519
|
var bsPrefix = _ref.bsPrefix,
|
|
5368
5520
|
className = _ref.className,
|
|
5521
|
+
align = _ref.align,
|
|
5369
5522
|
alignRight = _ref.alignRight,
|
|
5370
5523
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5371
5524
|
flip = _ref.flip,
|
|
@@ -5374,21 +5527,42 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5374
5527
|
_ref$as = _ref.as,
|
|
5375
5528
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5376
5529
|
popperConfig = _ref.popperConfig,
|
|
5377
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5530
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5378
5531
|
|
|
5379
|
-
var isNavbar = useContext(context
|
|
5532
|
+
var isNavbar = useContext(context);
|
|
5380
5533
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5381
5534
|
|
|
5382
5535
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5383
5536
|
popperRef = _usePopperMarginModif[0],
|
|
5384
5537
|
marginModifiers = _usePopperMarginModif[1];
|
|
5385
5538
|
|
|
5539
|
+
var alignClasses = [];
|
|
5540
|
+
|
|
5541
|
+
if (align) {
|
|
5542
|
+
if (typeof align === 'object') {
|
|
5543
|
+
var keys = Object.keys(align);
|
|
5544
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5545
|
+
|
|
5546
|
+
if (keys.length) {
|
|
5547
|
+
var brkPoint = keys[0];
|
|
5548
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5549
|
+
// left in addition to align left classes.
|
|
5550
|
+
// Reuse alignRight to toggle the class below.
|
|
5551
|
+
|
|
5552
|
+
alignRight = direction === 'left';
|
|
5553
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5554
|
+
}
|
|
5555
|
+
} else if (align === 'right') {
|
|
5556
|
+
alignRight = true;
|
|
5557
|
+
}
|
|
5558
|
+
}
|
|
5559
|
+
|
|
5386
5560
|
var _ref2 = useDropdownMenu({
|
|
5387
5561
|
flip: flip,
|
|
5388
5562
|
rootCloseEvent: rootCloseEvent,
|
|
5389
5563
|
show: showProps,
|
|
5390
5564
|
alignEnd: alignRight,
|
|
5391
|
-
usePopper: !isNavbar,
|
|
5565
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5392
5566
|
popperConfig: _extends({}, popperConfig, {
|
|
5393
5567
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5394
5568
|
})
|
|
@@ -5416,12 +5590,12 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5416
5590
|
props['x-placement'] = placement;
|
|
5417
5591
|
}
|
|
5418
5592
|
|
|
5419
|
-
return /*#__PURE__*/
|
|
5420
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5593
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5594
|
+
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5421
5595
|
}));
|
|
5422
5596
|
});
|
|
5423
|
-
DropdownMenu
|
|
5424
|
-
DropdownMenu
|
|
5597
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5598
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5425
5599
|
|
|
5426
5600
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5427
5601
|
|
|
@@ -5450,15 +5624,14 @@ module.exports = exports['default'];
|
|
|
5450
5624
|
|
|
5451
5625
|
unwrapExports(isRequiredForA11y_1);
|
|
5452
5626
|
|
|
5453
|
-
var DropdownToggle
|
|
5627
|
+
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5454
5628
|
var bsPrefix = _ref.bsPrefix,
|
|
5455
5629
|
split = _ref.split,
|
|
5456
5630
|
className = _ref.className,
|
|
5457
|
-
children = _ref.children,
|
|
5458
5631
|
childBsPrefix = _ref.childBsPrefix,
|
|
5459
5632
|
_ref$as = _ref.as,
|
|
5460
5633
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5461
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5634
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5462
5635
|
|
|
5463
5636
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5464
5637
|
|
|
@@ -5473,12 +5646,12 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5473
5646
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5474
5647
|
// underlying component, to allow it to render size and style variants.
|
|
5475
5648
|
|
|
5476
|
-
return /*#__PURE__*/
|
|
5649
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5477
5650
|
onClick: toggle,
|
|
5478
5651
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5479
|
-
}, toggleProps, props)
|
|
5652
|
+
}, toggleProps, props));
|
|
5480
5653
|
});
|
|
5481
|
-
DropdownToggle
|
|
5654
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5482
5655
|
|
|
5483
5656
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5484
5657
|
defaultProps: {
|
|
@@ -5493,10 +5666,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5493
5666
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5494
5667
|
Component: 'span'
|
|
5495
5668
|
});
|
|
5496
|
-
var defaultProps$
|
|
5669
|
+
var defaultProps$o = {
|
|
5497
5670
|
navbar: false
|
|
5498
5671
|
};
|
|
5499
|
-
var Dropdown
|
|
5672
|
+
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5500
5673
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5501
5674
|
show: 'onToggle'
|
|
5502
5675
|
}),
|
|
@@ -5509,9 +5682,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5509
5682
|
onToggle = _useUncontrolled.onToggle,
|
|
5510
5683
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5511
5684
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5512
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5513
|
-
|
|
5514
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5685
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5686
|
+
_useUncontrolled.navbar;
|
|
5687
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5515
5688
|
|
|
5516
5689
|
var onSelectCtx = useContext(SelectableContext);
|
|
5517
5690
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5533,9 +5706,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5533
5706
|
if (onSelect) onSelect(key, event);
|
|
5534
5707
|
handleToggle(false, event, 'select');
|
|
5535
5708
|
});
|
|
5536
|
-
return /*#__PURE__*/
|
|
5709
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5537
5710
|
value: handleSelect
|
|
5538
|
-
}, /*#__PURE__*/
|
|
5711
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
5539
5712
|
drop: drop,
|
|
5540
5713
|
show: show,
|
|
5541
5714
|
alignEnd: alignRight,
|
|
@@ -5544,20 +5717,20 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5544
5717
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5545
5718
|
}, function (_ref) {
|
|
5546
5719
|
var dropdownProps = _ref.props;
|
|
5547
|
-
return /*#__PURE__*/
|
|
5720
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5548
5721
|
ref: ref,
|
|
5549
5722
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5550
5723
|
}));
|
|
5551
5724
|
}));
|
|
5552
5725
|
});
|
|
5553
|
-
Dropdown
|
|
5554
|
-
Dropdown
|
|
5555
|
-
Dropdown
|
|
5556
|
-
Dropdown
|
|
5557
|
-
Dropdown
|
|
5558
|
-
Dropdown
|
|
5559
|
-
Dropdown
|
|
5560
|
-
Dropdown
|
|
5726
|
+
Dropdown.displayName = 'Dropdown';
|
|
5727
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5728
|
+
Dropdown.Divider = DropdownDivider;
|
|
5729
|
+
Dropdown.Header = DropdownHeader;
|
|
5730
|
+
Dropdown.Item = DropdownItem;
|
|
5731
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5732
|
+
Dropdown.Menu = DropdownMenu;
|
|
5733
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5561
5734
|
|
|
5562
5735
|
var propTypes$5 = {
|
|
5563
5736
|
/**
|
|
@@ -5579,6 +5752,15 @@ var propTypes$5 = {
|
|
|
5579
5752
|
/** Disables both Buttons */
|
|
5580
5753
|
disabled: PropTypes.bool,
|
|
5581
5754
|
|
|
5755
|
+
/**
|
|
5756
|
+
* Aligns the dropdown menu responsively.
|
|
5757
|
+
*
|
|
5758
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5759
|
+
*
|
|
5760
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5761
|
+
*/
|
|
5762
|
+
menuAlign: alignPropType,
|
|
5763
|
+
|
|
5582
5764
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5583
5765
|
menuRole: PropTypes.string,
|
|
5584
5766
|
|
|
@@ -5588,7 +5770,7 @@ var propTypes$5 = {
|
|
|
5588
5770
|
/**
|
|
5589
5771
|
* Which event when fired outside the component will cause it to be closed.
|
|
5590
5772
|
*
|
|
5591
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5773
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5592
5774
|
*/
|
|
5593
5775
|
rootCloseEvent: PropTypes.string,
|
|
5594
5776
|
|
|
@@ -5610,30 +5792,32 @@ var propTypes$5 = {
|
|
|
5610
5792
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5611
5793
|
*/
|
|
5612
5794
|
|
|
5613
|
-
var DropdownButton =
|
|
5795
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5614
5796
|
var title = _ref.title,
|
|
5615
5797
|
children = _ref.children,
|
|
5616
5798
|
bsPrefix = _ref.bsPrefix,
|
|
5617
5799
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5618
5800
|
variant = _ref.variant,
|
|
5619
5801
|
size = _ref.size,
|
|
5802
|
+
menuAlign = _ref.menuAlign,
|
|
5620
5803
|
menuRole = _ref.menuRole,
|
|
5621
5804
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5622
5805
|
disabled = _ref.disabled,
|
|
5623
5806
|
href = _ref.href,
|
|
5624
5807
|
id = _ref.id,
|
|
5625
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5808
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5626
5809
|
|
|
5627
|
-
return /*#__PURE__*/
|
|
5810
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5628
5811
|
ref: ref
|
|
5629
|
-
}, props), /*#__PURE__*/
|
|
5812
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5630
5813
|
id: id,
|
|
5631
5814
|
href: href,
|
|
5632
5815
|
size: size,
|
|
5633
5816
|
variant: variant,
|
|
5634
5817
|
disabled: disabled,
|
|
5635
5818
|
childBsPrefix: bsPrefix
|
|
5636
|
-
}, title), /*#__PURE__*/
|
|
5819
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5820
|
+
align: menuAlign,
|
|
5637
5821
|
role: menuRole,
|
|
5638
5822
|
renderOnMount: renderMenuOnMount,
|
|
5639
5823
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5735,7 +5919,7 @@ module.exports = exports['default'];
|
|
|
5735
5919
|
|
|
5736
5920
|
unwrapExports(all_1);
|
|
5737
5921
|
|
|
5738
|
-
var propTypes$
|
|
5922
|
+
var propTypes$4 = {
|
|
5739
5923
|
/**
|
|
5740
5924
|
* Specify whether the feedback is for valid or invalid fields
|
|
5741
5925
|
*
|
|
@@ -5747,7 +5931,7 @@ var propTypes$6 = {
|
|
|
5747
5931
|
tooltip: PropTypes.bool,
|
|
5748
5932
|
as: PropTypes.elementType
|
|
5749
5933
|
};
|
|
5750
|
-
var Feedback =
|
|
5934
|
+
var Feedback = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5751
5935
|
function (_ref, ref) {
|
|
5752
5936
|
var _ref$as = _ref.as,
|
|
5753
5937
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5758,19 +5942,19 @@ function (_ref, ref) {
|
|
|
5758
5942
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5759
5943
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5760
5944
|
|
|
5761
|
-
return /*#__PURE__*/
|
|
5945
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5762
5946
|
ref: ref,
|
|
5763
5947
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5764
5948
|
}));
|
|
5765
5949
|
});
|
|
5766
5950
|
Feedback.displayName = 'Feedback';
|
|
5767
|
-
Feedback.propTypes = propTypes$
|
|
5951
|
+
Feedback.propTypes = propTypes$4;
|
|
5768
5952
|
|
|
5769
|
-
var FormContext =
|
|
5953
|
+
var FormContext = React__default.createContext({
|
|
5770
5954
|
controlId: undefined
|
|
5771
5955
|
});
|
|
5772
5956
|
|
|
5773
|
-
var FormCheckInput =
|
|
5957
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5774
5958
|
var id = _ref.id,
|
|
5775
5959
|
bsPrefix = _ref.bsPrefix,
|
|
5776
5960
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5795,7 +5979,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5795
5979
|
defaultPrefix = _ref2[1];
|
|
5796
5980
|
|
|
5797
5981
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5798
|
-
return /*#__PURE__*/
|
|
5982
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5799
5983
|
ref: ref,
|
|
5800
5984
|
type: type,
|
|
5801
5985
|
id: id || controlId,
|
|
@@ -5804,7 +5988,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5804
5988
|
});
|
|
5805
5989
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5806
5990
|
|
|
5807
|
-
var FormCheckLabel =
|
|
5991
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5808
5992
|
var bsPrefix = _ref.bsPrefix,
|
|
5809
5993
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5810
5994
|
className = _ref.className,
|
|
@@ -5820,7 +6004,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5820
6004
|
defaultPrefix = _ref2[1];
|
|
5821
6005
|
|
|
5822
6006
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5823
|
-
return /*#__PURE__*/
|
|
6007
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5824
6008
|
ref: ref,
|
|
5825
6009
|
htmlFor: htmlFor || controlId,
|
|
5826
6010
|
className: classnames(className, bsPrefix)
|
|
@@ -5828,7 +6012,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5828
6012
|
});
|
|
5829
6013
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5830
6014
|
|
|
5831
|
-
var FormCheck =
|
|
6015
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5832
6016
|
var id = _ref.id,
|
|
5833
6017
|
bsPrefix = _ref.bsPrefix,
|
|
5834
6018
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5873,8 +6057,8 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5873
6057
|
custom: custom
|
|
5874
6058
|
};
|
|
5875
6059
|
}, [controlId, custom, id]);
|
|
5876
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5877
|
-
var input = /*#__PURE__*/
|
|
6060
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6061
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
5878
6062
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5879
6063
|
ref: ref,
|
|
5880
6064
|
isValid: isValid,
|
|
@@ -5883,14 +6067,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5883
6067
|
disabled: disabled,
|
|
5884
6068
|
as: as
|
|
5885
6069
|
}));
|
|
5886
|
-
return /*#__PURE__*/
|
|
6070
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5887
6071
|
value: innerFormContext
|
|
5888
|
-
}, /*#__PURE__*/
|
|
6072
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5889
6073
|
style: style,
|
|
5890
6074
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5891
|
-
}, children || /*#__PURE__*/
|
|
6075
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5892
6076
|
title: title
|
|
5893
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6077
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5894
6078
|
type: isValid ? 'valid' : 'invalid',
|
|
5895
6079
|
tooltip: feedbackTooltip
|
|
5896
6080
|
}, feedback))));
|
|
@@ -5899,7 +6083,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5899
6083
|
FormCheck.Input = FormCheckInput;
|
|
5900
6084
|
FormCheck.Label = FormCheckLabel;
|
|
5901
6085
|
|
|
5902
|
-
var FormFileInput =
|
|
6086
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
5903
6087
|
var id = _ref.id,
|
|
5904
6088
|
bsPrefix = _ref.bsPrefix,
|
|
5905
6089
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5922,7 +6106,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5922
6106
|
defaultPrefix = _ref2[1];
|
|
5923
6107
|
|
|
5924
6108
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5925
|
-
return /*#__PURE__*/
|
|
6109
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5926
6110
|
ref: ref,
|
|
5927
6111
|
id: id || controlId,
|
|
5928
6112
|
type: type,
|
|
@@ -5932,7 +6116,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5932
6116
|
});
|
|
5933
6117
|
FormFileInput.displayName = 'FormFileInput';
|
|
5934
6118
|
|
|
5935
|
-
var FormFileLabel =
|
|
6119
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5936
6120
|
var bsPrefix = _ref.bsPrefix,
|
|
5937
6121
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5938
6122
|
className = _ref.className,
|
|
@@ -5948,7 +6132,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5948
6132
|
defaultPrefix = _ref2[1];
|
|
5949
6133
|
|
|
5950
6134
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5951
|
-
return /*#__PURE__*/
|
|
6135
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5952
6136
|
ref: ref,
|
|
5953
6137
|
htmlFor: htmlFor || controlId,
|
|
5954
6138
|
className: classnames(className, bsPrefix),
|
|
@@ -5957,7 +6141,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5957
6141
|
});
|
|
5958
6142
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
5959
6143
|
|
|
5960
|
-
var FormFile =
|
|
6144
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
5961
6145
|
var id = _ref.id,
|
|
5962
6146
|
bsPrefix = _ref.bsPrefix,
|
|
5963
6147
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6000,7 +6184,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6000
6184
|
};
|
|
6001
6185
|
}, [controlId, custom, id]);
|
|
6002
6186
|
var hasLabel = label != null && label !== false && !children;
|
|
6003
|
-
var input = /*#__PURE__*/
|
|
6187
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6004
6188
|
ref: ref,
|
|
6005
6189
|
isValid: isValid,
|
|
6006
6190
|
isInvalid: isInvalid,
|
|
@@ -6008,14 +6192,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6008
6192
|
as: inputAs,
|
|
6009
6193
|
lang: lang
|
|
6010
6194
|
}));
|
|
6011
|
-
return /*#__PURE__*/
|
|
6195
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6012
6196
|
value: innerFormContext
|
|
6013
|
-
}, /*#__PURE__*/
|
|
6197
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6014
6198
|
style: style,
|
|
6015
6199
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6016
|
-
}, children || /*#__PURE__*/
|
|
6200
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6017
6201
|
"data-browse": dataBrowse
|
|
6018
|
-
}, label)) : /*#__PURE__*/
|
|
6202
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6019
6203
|
type: isValid ? 'valid' : 'invalid',
|
|
6020
6204
|
tooltip: feedbackTooltip
|
|
6021
6205
|
}, feedback))));
|
|
@@ -6024,7 +6208,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6024
6208
|
FormFile.Input = FormFileInput;
|
|
6025
6209
|
FormFile.Label = FormFileLabel;
|
|
6026
6210
|
|
|
6027
|
-
var FormControl =
|
|
6211
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6028
6212
|
var bsPrefix = _ref.bsPrefix,
|
|
6029
6213
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6030
6214
|
type = _ref.type,
|
|
@@ -6076,7 +6260,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6076
6260
|
}
|
|
6077
6261
|
|
|
6078
6262
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6079
|
-
return /*#__PURE__*/
|
|
6263
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6080
6264
|
type: type,
|
|
6081
6265
|
size: htmlSize,
|
|
6082
6266
|
ref: ref,
|
|
@@ -6090,7 +6274,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6090
6274
|
Feedback: Feedback
|
|
6091
6275
|
});
|
|
6092
6276
|
|
|
6093
|
-
var FormGroup =
|
|
6277
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6094
6278
|
var bsPrefix = _ref.bsPrefix,
|
|
6095
6279
|
className = _ref.className,
|
|
6096
6280
|
children = _ref.children,
|
|
@@ -6105,20 +6289,20 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6105
6289
|
controlId: controlId
|
|
6106
6290
|
};
|
|
6107
6291
|
}, [controlId]);
|
|
6108
|
-
return /*#__PURE__*/
|
|
6292
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6109
6293
|
value: context
|
|
6110
|
-
}, /*#__PURE__*/
|
|
6294
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6111
6295
|
ref: ref,
|
|
6112
6296
|
className: classnames(className, bsPrefix)
|
|
6113
6297
|
}), children));
|
|
6114
6298
|
});
|
|
6115
6299
|
FormGroup.displayName = 'FormGroup';
|
|
6116
6300
|
|
|
6117
|
-
var defaultProps$
|
|
6301
|
+
var defaultProps$n = {
|
|
6118
6302
|
column: false,
|
|
6119
6303
|
srOnly: false
|
|
6120
6304
|
};
|
|
6121
|
-
var FormLabel =
|
|
6305
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6122
6306
|
var _ref$as = _ref.as,
|
|
6123
6307
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6124
6308
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6133,11 +6317,11 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6133
6317
|
|
|
6134
6318
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6135
6319
|
var columnClass = 'col-form-label';
|
|
6136
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6320
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6137
6321
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6138
6322
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6139
6323
|
htmlFor = htmlFor || controlId;
|
|
6140
|
-
if (column) return /*#__PURE__*/
|
|
6324
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6141
6325
|
as: "label",
|
|
6142
6326
|
className: classes,
|
|
6143
6327
|
htmlFor: htmlFor
|
|
@@ -6145,7 +6329,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6145
6329
|
return (
|
|
6146
6330
|
/*#__PURE__*/
|
|
6147
6331
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6148
|
-
|
|
6332
|
+
React__default.createElement(Component, _extends({
|
|
6149
6333
|
ref: ref,
|
|
6150
6334
|
className: classes,
|
|
6151
6335
|
htmlFor: htmlFor
|
|
@@ -6153,9 +6337,9 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6153
6337
|
);
|
|
6154
6338
|
});
|
|
6155
6339
|
FormLabel.displayName = 'FormLabel';
|
|
6156
|
-
FormLabel.defaultProps = defaultProps$
|
|
6340
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6157
6341
|
|
|
6158
|
-
var FormText =
|
|
6342
|
+
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6159
6343
|
function (_ref, ref) {
|
|
6160
6344
|
var bsPrefix = _ref.bsPrefix,
|
|
6161
6345
|
className = _ref.className,
|
|
@@ -6165,15 +6349,15 @@ function (_ref, ref) {
|
|
|
6165
6349
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6166
6350
|
|
|
6167
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6168
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6169
6353
|
ref: ref,
|
|
6170
6354
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6171
6355
|
}));
|
|
6172
6356
|
});
|
|
6173
6357
|
FormText.displayName = 'FormText';
|
|
6174
6358
|
|
|
6175
|
-
var Switch =
|
|
6176
|
-
return /*#__PURE__*/
|
|
6359
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6360
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6177
6361
|
ref: ref,
|
|
6178
6362
|
type: "switch"
|
|
6179
6363
|
}));
|
|
@@ -6183,10 +6367,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6183
6367
|
Switch.Label = FormCheck.Label;
|
|
6184
6368
|
|
|
6185
6369
|
var FormRow = createWithBsPrefix('form-row');
|
|
6186
|
-
var defaultProps$
|
|
6370
|
+
var defaultProps$m = {
|
|
6187
6371
|
inline: false
|
|
6188
6372
|
};
|
|
6189
|
-
var FormImpl =
|
|
6373
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6190
6374
|
var bsPrefix = _ref.bsPrefix,
|
|
6191
6375
|
inline = _ref.inline,
|
|
6192
6376
|
className = _ref.className,
|
|
@@ -6196,13 +6380,13 @@ var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
|
6196
6380
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6197
6381
|
|
|
6198
6382
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6199
|
-
return /*#__PURE__*/
|
|
6383
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6200
6384
|
ref: ref,
|
|
6201
6385
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6202
6386
|
}));
|
|
6203
6387
|
});
|
|
6204
6388
|
FormImpl.displayName = 'Form';
|
|
6205
|
-
FormImpl.defaultProps = defaultProps$
|
|
6389
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6206
6390
|
FormImpl.Row = FormRow;
|
|
6207
6391
|
FormImpl.Group = FormGroup;
|
|
6208
6392
|
FormImpl.Control = FormControl$1;
|
|
@@ -6212,10 +6396,10 @@ FormImpl.Switch = Switch;
|
|
|
6212
6396
|
FormImpl.Label = FormLabel;
|
|
6213
6397
|
FormImpl.Text = FormText;
|
|
6214
6398
|
|
|
6215
|
-
var defaultProps$
|
|
6399
|
+
var defaultProps$l = {
|
|
6216
6400
|
fluid: false
|
|
6217
6401
|
};
|
|
6218
|
-
var Container =
|
|
6402
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6219
6403
|
var bsPrefix = _ref.bsPrefix,
|
|
6220
6404
|
fluid = _ref.fluid,
|
|
6221
6405
|
_ref$as = _ref.as,
|
|
@@ -6225,16 +6409,16 @@ var Container = React.forwardRef(function (_ref, ref) {
|
|
|
6225
6409
|
|
|
6226
6410
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6227
6411
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6228
|
-
return /*#__PURE__*/
|
|
6412
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6229
6413
|
ref: ref
|
|
6230
6414
|
}, props, {
|
|
6231
6415
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6232
6416
|
}));
|
|
6233
6417
|
});
|
|
6234
6418
|
Container.displayName = 'Container';
|
|
6235
|
-
Container.defaultProps = defaultProps$
|
|
6419
|
+
Container.defaultProps = defaultProps$l;
|
|
6236
6420
|
|
|
6237
|
-
var propTypes$
|
|
6421
|
+
var propTypes$3 = {
|
|
6238
6422
|
/**
|
|
6239
6423
|
* @default 'img'
|
|
6240
6424
|
*/
|
|
@@ -6266,7 +6450,7 @@ var defaultProps$k = {
|
|
|
6266
6450
|
roundedCircle: false,
|
|
6267
6451
|
thumbnail: false
|
|
6268
6452
|
};
|
|
6269
|
-
var Image =
|
|
6453
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6270
6454
|
var bsPrefix = _ref.bsPrefix,
|
|
6271
6455
|
className = _ref.className,
|
|
6272
6456
|
fluid = _ref.fluid,
|
|
@@ -6277,7 +6461,7 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6277
6461
|
|
|
6278
6462
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6279
6463
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6280
|
-
return /*#__PURE__*/
|
|
6464
|
+
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6281
6465
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6282
6466
|
ref: ref
|
|
6283
6467
|
}, props, {
|
|
@@ -6287,22 +6471,22 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6287
6471
|
Image.displayName = 'Image';
|
|
6288
6472
|
Image.defaultProps = defaultProps$k;
|
|
6289
6473
|
|
|
6290
|
-
var defaultProps$
|
|
6474
|
+
var defaultProps$j = {
|
|
6291
6475
|
fluid: true
|
|
6292
6476
|
};
|
|
6293
|
-
var FigureImage =
|
|
6477
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6294
6478
|
var className = _ref.className,
|
|
6295
6479
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6296
6480
|
|
|
6297
|
-
return /*#__PURE__*/
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6298
6482
|
ref: ref
|
|
6299
6483
|
}, props, {
|
|
6300
6484
|
className: classnames(className, 'figure-img')
|
|
6301
6485
|
}));
|
|
6302
6486
|
});
|
|
6303
6487
|
FigureImage.displayName = 'FigureImage';
|
|
6304
|
-
FigureImage.propTypes = propTypes$
|
|
6305
|
-
FigureImage.defaultProps = defaultProps$
|
|
6488
|
+
FigureImage.propTypes = propTypes$3;
|
|
6489
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6306
6490
|
|
|
6307
6491
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6308
6492
|
Component: 'figcaption'
|
|
@@ -6321,13 +6505,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6321
6505
|
});
|
|
6322
6506
|
|
|
6323
6507
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6324
|
-
return /*#__PURE__*/
|
|
6508
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6325
6509
|
type: "checkbox"
|
|
6326
6510
|
}, props)));
|
|
6327
6511
|
};
|
|
6328
6512
|
|
|
6329
6513
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6330
|
-
return /*#__PURE__*/
|
|
6514
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6331
6515
|
type: "radio"
|
|
6332
6516
|
}, props)));
|
|
6333
6517
|
};
|
|
@@ -6340,7 +6524,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6340
6524
|
* @property {InputGroupRadio} Radio
|
|
6341
6525
|
* @property {InputGroupCheckbox} Checkbox
|
|
6342
6526
|
*/
|
|
6343
|
-
var InputGroup =
|
|
6527
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6344
6528
|
var bsPrefix = _ref.bsPrefix,
|
|
6345
6529
|
size = _ref.size,
|
|
6346
6530
|
className = _ref.className,
|
|
@@ -6349,7 +6533,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6349
6533
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6350
6534
|
|
|
6351
6535
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6352
|
-
return /*#__PURE__*/
|
|
6536
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6353
6537
|
ref: ref
|
|
6354
6538
|
}, props, {
|
|
6355
6539
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6357,7 +6541,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6357
6541
|
});
|
|
6358
6542
|
InputGroup.displayName = 'InputGroup';
|
|
6359
6543
|
|
|
6360
|
-
|
|
6544
|
+
_extends({}, InputGroup, {
|
|
6361
6545
|
Text: InputGroupText,
|
|
6362
6546
|
Radio: InputGroupRadio,
|
|
6363
6547
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6365,10 +6549,10 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6365
6549
|
Prepend: InputGroupPrepend
|
|
6366
6550
|
});
|
|
6367
6551
|
|
|
6368
|
-
var defaultProps$
|
|
6552
|
+
var defaultProps$i = {
|
|
6369
6553
|
fluid: false
|
|
6370
6554
|
};
|
|
6371
|
-
var Jumbotron =
|
|
6555
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6372
6556
|
var _classes;
|
|
6373
6557
|
|
|
6374
6558
|
var _ref$as = _ref.as,
|
|
@@ -6380,21 +6564,21 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6380
6564
|
|
|
6381
6565
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6382
6566
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6383
|
-
return /*#__PURE__*/
|
|
6567
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6384
6568
|
ref: ref
|
|
6385
6569
|
}, props, {
|
|
6386
6570
|
className: classnames(className, classes)
|
|
6387
6571
|
}));
|
|
6388
6572
|
});
|
|
6389
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6573
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6390
6574
|
Jumbotron.displayName = 'Jumbotron';
|
|
6391
6575
|
|
|
6392
|
-
var TabContext =
|
|
6576
|
+
var TabContext = React__default.createContext(null);
|
|
6393
6577
|
|
|
6394
6578
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6395
|
-
var noop$
|
|
6579
|
+
var noop$1 = function noop() {};
|
|
6396
6580
|
|
|
6397
|
-
var AbstractNav =
|
|
6581
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6398
6582
|
var _ref$as = _ref.as,
|
|
6399
6583
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6400
6584
|
onSelect = _ref.onSelect,
|
|
@@ -6475,27 +6659,27 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6475
6659
|
needsRefocusRef.current = false;
|
|
6476
6660
|
});
|
|
6477
6661
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6478
|
-
return /*#__PURE__*/
|
|
6662
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6479
6663
|
value: handleSelect
|
|
6480
|
-
}, /*#__PURE__*/
|
|
6664
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6481
6665
|
value: {
|
|
6482
6666
|
role: role,
|
|
6483
6667
|
// used by NavLink to determine it's role
|
|
6484
6668
|
activeKey: makeEventKey(activeKey),
|
|
6485
|
-
getControlledId: getControlledId || noop$
|
|
6486
|
-
getControllerId: getControllerId || noop$
|
|
6669
|
+
getControlledId: getControlledId || noop$1,
|
|
6670
|
+
getControllerId: getControllerId || noop$1
|
|
6487
6671
|
}
|
|
6488
|
-
}, /*#__PURE__*/
|
|
6672
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6489
6673
|
onKeyDown: handleKeyDown,
|
|
6490
6674
|
ref: mergedRef,
|
|
6491
6675
|
role: role
|
|
6492
6676
|
}))));
|
|
6493
6677
|
});
|
|
6494
6678
|
|
|
6495
|
-
var defaultProps$
|
|
6679
|
+
var defaultProps$h = {
|
|
6496
6680
|
disabled: false
|
|
6497
6681
|
};
|
|
6498
|
-
var AbstractNavItem =
|
|
6682
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6499
6683
|
var active = _ref.active,
|
|
6500
6684
|
className = _ref.className,
|
|
6501
6685
|
eventKey = _ref.eventKey,
|
|
@@ -6532,20 +6716,20 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6532
6716
|
if (onSelect) onSelect(navKey, e);
|
|
6533
6717
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6534
6718
|
});
|
|
6535
|
-
return /*#__PURE__*/
|
|
6719
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6536
6720
|
ref: ref,
|
|
6537
6721
|
onClick: handleOnclick,
|
|
6538
6722
|
className: classnames(className, isActive && 'active')
|
|
6539
6723
|
}));
|
|
6540
6724
|
});
|
|
6541
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6725
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6542
6726
|
|
|
6543
|
-
var defaultProps$
|
|
6727
|
+
var defaultProps$g = {
|
|
6544
6728
|
variant: undefined,
|
|
6545
6729
|
active: false,
|
|
6546
6730
|
disabled: false
|
|
6547
6731
|
};
|
|
6548
|
-
var ListGroupItem =
|
|
6732
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6549
6733
|
var bsPrefix = _ref.bsPrefix,
|
|
6550
6734
|
active = _ref.active,
|
|
6551
6735
|
disabled = _ref.disabled,
|
|
@@ -6567,24 +6751,25 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6567
6751
|
|
|
6568
6752
|
if (onClick) onClick(event);
|
|
6569
6753
|
}, [disabled, onClick]);
|
|
6570
|
-
return /*#__PURE__*/
|
|
6754
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6571
6755
|
ref: ref
|
|
6572
6756
|
}, props, {
|
|
6573
|
-
|
|
6757
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6758
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6574
6759
|
,
|
|
6575
6760
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6576
6761
|
onClick: handleClick,
|
|
6577
6762
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6578
6763
|
}));
|
|
6579
6764
|
});
|
|
6580
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6765
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6581
6766
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6582
6767
|
|
|
6583
|
-
var defaultProps$
|
|
6768
|
+
var defaultProps$f = {
|
|
6584
6769
|
variant: undefined,
|
|
6585
6770
|
horizontal: undefined
|
|
6586
6771
|
};
|
|
6587
|
-
var ListGroup =
|
|
6772
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6588
6773
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6589
6774
|
activeKey: 'onSelect'
|
|
6590
6775
|
}),
|
|
@@ -6606,19 +6791,19 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6606
6791
|
}
|
|
6607
6792
|
|
|
6608
6793
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6609
|
-
return /*#__PURE__*/
|
|
6794
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6610
6795
|
ref: ref
|
|
6611
6796
|
}, controlledProps, {
|
|
6612
6797
|
as: as,
|
|
6613
6798
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6614
6799
|
}));
|
|
6615
6800
|
});
|
|
6616
|
-
ListGroup.defaultProps = defaultProps$
|
|
6801
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6617
6802
|
ListGroup.displayName = 'ListGroup';
|
|
6618
6803
|
ListGroup.Item = ListGroupItem;
|
|
6619
6804
|
|
|
6620
6805
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6621
|
-
var Media =
|
|
6806
|
+
var Media = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6622
6807
|
function (_ref, ref) {
|
|
6623
6808
|
var bsPrefix = _ref.bsPrefix,
|
|
6624
6809
|
className = _ref.className,
|
|
@@ -6627,7 +6812,7 @@ function (_ref, ref) {
|
|
|
6627
6812
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6628
6813
|
|
|
6629
6814
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6630
|
-
return /*#__PURE__*/
|
|
6815
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6631
6816
|
ref: ref,
|
|
6632
6817
|
className: classnames(className, prefix)
|
|
6633
6818
|
}));
|
|
@@ -6662,7 +6847,7 @@ function scrollbarSize(recalc) {
|
|
|
6662
6847
|
|
|
6663
6848
|
function activeElement(doc) {
|
|
6664
6849
|
if (doc === void 0) {
|
|
6665
|
-
doc = ownerDocument();
|
|
6850
|
+
doc = ownerDocument$1();
|
|
6666
6851
|
}
|
|
6667
6852
|
|
|
6668
6853
|
// Support: IE 9 only
|
|
@@ -6712,7 +6897,7 @@ function isBody(node) {
|
|
|
6712
6897
|
}
|
|
6713
6898
|
|
|
6714
6899
|
function bodyIsOverflowing(node) {
|
|
6715
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6900
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6716
6901
|
var win = isWindow(node) || doc.defaultView;
|
|
6717
6902
|
return doc.body.clientWidth < win.innerWidth;
|
|
6718
6903
|
}
|
|
@@ -6924,7 +7109,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
6924
7109
|
var _ref;
|
|
6925
7110
|
|
|
6926
7111
|
if (typeof document === 'undefined') return null;
|
|
6927
|
-
if (ref == null) return ownerDocument().body;
|
|
7112
|
+
if (ref == null) return ownerDocument$1().body;
|
|
6928
7113
|
if (typeof ref === 'function') ref = ref();
|
|
6929
7114
|
if (ref && 'current' in ref) ref = ref.current;
|
|
6930
7115
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -6957,11 +7142,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
6957
7142
|
return resolvedRef;
|
|
6958
7143
|
}
|
|
6959
7144
|
|
|
6960
|
-
var manager;
|
|
7145
|
+
var manager$1;
|
|
6961
7146
|
|
|
6962
7147
|
function getManager() {
|
|
6963
|
-
if (!manager) manager = new ModalManager();
|
|
6964
|
-
return manager;
|
|
7148
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7149
|
+
return manager$1;
|
|
6965
7150
|
}
|
|
6966
7151
|
|
|
6967
7152
|
function useModalManager(provided) {
|
|
@@ -6989,7 +7174,7 @@ function useModalManager(provided) {
|
|
|
6989
7174
|
});
|
|
6990
7175
|
}
|
|
6991
7176
|
|
|
6992
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7177
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
6993
7178
|
var _ref$show = _ref.show,
|
|
6994
7179
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
6995
7180
|
_ref$role = _ref.role,
|
|
@@ -7015,7 +7200,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7015
7200
|
renderDialog = _ref.renderDialog,
|
|
7016
7201
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7017
7202
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7018
|
-
return /*#__PURE__*/
|
|
7203
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7019
7204
|
} : _ref$renderBackdrop,
|
|
7020
7205
|
providedManager = _ref.manager,
|
|
7021
7206
|
containerRef = _ref.container,
|
|
@@ -7073,7 +7258,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7073
7258
|
if (autoFocus) {
|
|
7074
7259
|
var currentActiveElement = activeElement(document);
|
|
7075
7260
|
|
|
7076
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7261
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7077
7262
|
lastFocusRef.current = currentActiveElement;
|
|
7078
7263
|
modal.dialog.focus();
|
|
7079
7264
|
}
|
|
@@ -7119,7 +7304,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7119
7304
|
|
|
7120
7305
|
var currentActiveElement = activeElement();
|
|
7121
7306
|
|
|
7122
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7307
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7123
7308
|
modal.dialog.focus();
|
|
7124
7309
|
}
|
|
7125
7310
|
});
|
|
@@ -7173,12 +7358,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7173
7358
|
tabIndex: -1
|
|
7174
7359
|
});
|
|
7175
7360
|
|
|
7176
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7361
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7177
7362
|
role: 'document'
|
|
7178
7363
|
}));
|
|
7179
7364
|
|
|
7180
7365
|
if (Transition) {
|
|
7181
|
-
dialog = /*#__PURE__*/
|
|
7366
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7182
7367
|
appear: true,
|
|
7183
7368
|
unmountOnExit: true,
|
|
7184
7369
|
"in": !!show,
|
|
@@ -7201,16 +7386,16 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7201
7386
|
});
|
|
7202
7387
|
|
|
7203
7388
|
if (BackdropTransition) {
|
|
7204
|
-
backdropElement = /*#__PURE__*/
|
|
7389
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7205
7390
|
appear: true,
|
|
7206
7391
|
"in": !!show
|
|
7207
7392
|
}, backdropElement);
|
|
7208
7393
|
}
|
|
7209
7394
|
}
|
|
7210
7395
|
|
|
7211
|
-
return /*#__PURE__*/
|
|
7396
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7212
7397
|
});
|
|
7213
|
-
var propTypes$
|
|
7398
|
+
var propTypes$2 = {
|
|
7214
7399
|
/**
|
|
7215
7400
|
* Set the visibility of the Modal
|
|
7216
7401
|
*/
|
|
@@ -7366,9 +7551,9 @@ var propTypes$8 = {
|
|
|
7366
7551
|
*/
|
|
7367
7552
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7368
7553
|
};
|
|
7369
|
-
Modal.displayName = 'Modal';
|
|
7370
|
-
Modal.propTypes = propTypes$
|
|
7371
|
-
var BaseModal = Object.assign(Modal, {
|
|
7554
|
+
Modal$1.displayName = 'Modal';
|
|
7555
|
+
Modal$1.propTypes = propTypes$2;
|
|
7556
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7372
7557
|
Manager: ModalManager
|
|
7373
7558
|
});
|
|
7374
7559
|
|
|
@@ -7447,38 +7632,39 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7447
7632
|
|
|
7448
7633
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7449
7634
|
|
|
7450
|
-
var ModalContext =
|
|
7635
|
+
var ModalContext = React__default.createContext({
|
|
7451
7636
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7452
7637
|
onHide: function onHide() {}
|
|
7453
7638
|
});
|
|
7454
7639
|
|
|
7455
|
-
var ModalDialog =
|
|
7640
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7456
7641
|
var bsPrefix = _ref.bsPrefix,
|
|
7457
7642
|
className = _ref.className,
|
|
7643
|
+
contentClassName = _ref.contentClassName,
|
|
7458
7644
|
centered = _ref.centered,
|
|
7459
7645
|
size = _ref.size,
|
|
7460
7646
|
children = _ref.children,
|
|
7461
7647
|
scrollable = _ref.scrollable,
|
|
7462
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7648
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7463
7649
|
|
|
7464
7650
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7465
7651
|
var dialogClass = bsPrefix + "-dialog";
|
|
7466
|
-
return /*#__PURE__*/
|
|
7652
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7467
7653
|
ref: ref,
|
|
7468
7654
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7469
|
-
}), /*#__PURE__*/
|
|
7470
|
-
className: bsPrefix + "-content"
|
|
7655
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7656
|
+
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7471
7657
|
}, children));
|
|
7472
7658
|
});
|
|
7473
7659
|
ModalDialog.displayName = 'ModalDialog';
|
|
7474
7660
|
|
|
7475
7661
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7476
7662
|
|
|
7477
|
-
var defaultProps$
|
|
7663
|
+
var defaultProps$e = {
|
|
7478
7664
|
closeLabel: 'Close',
|
|
7479
7665
|
closeButton: false
|
|
7480
7666
|
};
|
|
7481
|
-
var ModalHeader =
|
|
7667
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7482
7668
|
var bsPrefix = _ref.bsPrefix,
|
|
7483
7669
|
closeLabel = _ref.closeLabel,
|
|
7484
7670
|
closeButton = _ref.closeButton,
|
|
@@ -7493,25 +7679,25 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7493
7679
|
if (context) context.onHide();
|
|
7494
7680
|
if (onHide) onHide();
|
|
7495
7681
|
});
|
|
7496
|
-
return /*#__PURE__*/
|
|
7682
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7497
7683
|
ref: ref
|
|
7498
7684
|
}, props, {
|
|
7499
7685
|
className: classnames(className, bsPrefix)
|
|
7500
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7686
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7501
7687
|
label: closeLabel,
|
|
7502
7688
|
onClick: handleClick
|
|
7503
7689
|
}));
|
|
7504
7690
|
});
|
|
7505
7691
|
ModalHeader.displayName = 'ModalHeader';
|
|
7506
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7692
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7507
7693
|
|
|
7508
|
-
var DivStyledAsH4
|
|
7694
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7509
7695
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7510
|
-
Component: DivStyledAsH4
|
|
7696
|
+
Component: DivStyledAsH4
|
|
7511
7697
|
});
|
|
7512
7698
|
|
|
7513
|
-
var manager
|
|
7514
|
-
var defaultProps$
|
|
7699
|
+
var manager;
|
|
7700
|
+
var defaultProps$d = {
|
|
7515
7701
|
show: false,
|
|
7516
7702
|
backdrop: true,
|
|
7517
7703
|
keyboard: true,
|
|
@@ -7524,20 +7710,21 @@ var defaultProps$r = {
|
|
|
7524
7710
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7525
7711
|
|
|
7526
7712
|
function DialogTransition(props) {
|
|
7527
|
-
return /*#__PURE__*/
|
|
7713
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7528
7714
|
}
|
|
7529
7715
|
|
|
7530
7716
|
function BackdropTransition(props) {
|
|
7531
|
-
return /*#__PURE__*/
|
|
7717
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7532
7718
|
}
|
|
7533
7719
|
/* eslint-enable no-use-before-define */
|
|
7534
7720
|
|
|
7535
7721
|
|
|
7536
|
-
var Modal
|
|
7722
|
+
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7537
7723
|
var bsPrefix = _ref.bsPrefix,
|
|
7538
7724
|
className = _ref.className,
|
|
7539
7725
|
style = _ref.style,
|
|
7540
7726
|
dialogClassName = _ref.dialogClassName,
|
|
7727
|
+
contentClassName = _ref.contentClassName,
|
|
7541
7728
|
children = _ref.children,
|
|
7542
7729
|
Dialog = _ref.dialogAs,
|
|
7543
7730
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7561,7 +7748,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7561
7748
|
onExited = _ref.onExited,
|
|
7562
7749
|
backdropClassName = _ref.backdropClassName,
|
|
7563
7750
|
propsManager = _ref.manager,
|
|
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"]);
|
|
7751
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7565
7752
|
|
|
7566
7753
|
var _useState = useState({}),
|
|
7567
7754
|
modalStyle = _useState[0],
|
|
@@ -7598,14 +7785,14 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7598
7785
|
|
|
7599
7786
|
function getModalManager() {
|
|
7600
7787
|
if (propsManager) return propsManager;
|
|
7601
|
-
if (!manager
|
|
7602
|
-
return manager
|
|
7788
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7789
|
+
return manager;
|
|
7603
7790
|
}
|
|
7604
7791
|
|
|
7605
7792
|
function updateDialogStyle(node) {
|
|
7606
7793
|
if (!canUseDOM) return;
|
|
7607
7794
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7608
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7795
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7609
7796
|
setStyle({
|
|
7610
7797
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7611
7798
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7727,7 +7914,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7727
7914
|
};
|
|
7728
7915
|
|
|
7729
7916
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7730
|
-
return /*#__PURE__*/
|
|
7917
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7731
7918
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7732
7919
|
}));
|
|
7733
7920
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7740,7 +7927,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7740
7927
|
}
|
|
7741
7928
|
|
|
7742
7929
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7743
|
-
return /*#__PURE__*/
|
|
7930
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7744
7931
|
role: "dialog"
|
|
7745
7932
|
}, dialogProps, {
|
|
7746
7933
|
style: baseModalStyle,
|
|
@@ -7748,16 +7935,17 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7748
7935
|
onClick: backdrop ? handleClick : undefined,
|
|
7749
7936
|
onMouseUp: handleMouseUp,
|
|
7750
7937
|
"aria-labelledby": ariaLabelledby
|
|
7751
|
-
}), /*#__PURE__*/
|
|
7938
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7752
7939
|
role: "document",
|
|
7753
7940
|
onMouseDown: handleDialogMouseDown,
|
|
7754
|
-
className: dialogClassName
|
|
7941
|
+
className: dialogClassName,
|
|
7942
|
+
contentClassName: contentClassName
|
|
7755
7943
|
}), children));
|
|
7756
7944
|
};
|
|
7757
7945
|
|
|
7758
|
-
return /*#__PURE__*/
|
|
7946
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7759
7947
|
value: modalContext
|
|
7760
|
-
}, /*#__PURE__*/
|
|
7948
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7761
7949
|
show: show,
|
|
7762
7950
|
ref: setModalRef,
|
|
7763
7951
|
backdrop: backdrop,
|
|
@@ -7785,17 +7973,17 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7785
7973
|
renderDialog: renderDialog
|
|
7786
7974
|
}));
|
|
7787
7975
|
});
|
|
7788
|
-
Modal
|
|
7789
|
-
Modal
|
|
7790
|
-
Modal
|
|
7791
|
-
Modal
|
|
7792
|
-
Modal
|
|
7793
|
-
Modal
|
|
7794
|
-
Modal
|
|
7795
|
-
Modal
|
|
7796
|
-
Modal
|
|
7797
|
-
|
|
7798
|
-
var NavItem =
|
|
7976
|
+
Modal.displayName = 'Modal';
|
|
7977
|
+
Modal.defaultProps = defaultProps$d;
|
|
7978
|
+
Modal.Body = ModalBody;
|
|
7979
|
+
Modal.Header = ModalHeader;
|
|
7980
|
+
Modal.Title = ModalTitle;
|
|
7981
|
+
Modal.Footer = ModalFooter;
|
|
7982
|
+
Modal.Dialog = ModalDialog;
|
|
7983
|
+
Modal.TRANSITION_DURATION = 300;
|
|
7984
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7985
|
+
|
|
7986
|
+
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7799
7987
|
function (_ref, ref) {
|
|
7800
7988
|
var bsPrefix = _ref.bsPrefix,
|
|
7801
7989
|
className = _ref.className,
|
|
@@ -7805,18 +7993,18 @@ function (_ref, ref) {
|
|
|
7805
7993
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7806
7994
|
|
|
7807
7995
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7808
|
-
return /*#__PURE__*/
|
|
7996
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7809
7997
|
ref: ref,
|
|
7810
7998
|
className: classnames(className, bsPrefix)
|
|
7811
7999
|
}), children);
|
|
7812
8000
|
});
|
|
7813
8001
|
NavItem.displayName = 'NavItem';
|
|
7814
8002
|
|
|
7815
|
-
var defaultProps$
|
|
8003
|
+
var defaultProps$c = {
|
|
7816
8004
|
disabled: false,
|
|
7817
8005
|
as: SafeAnchor
|
|
7818
8006
|
};
|
|
7819
|
-
var NavLink =
|
|
8007
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7820
8008
|
var bsPrefix = _ref.bsPrefix,
|
|
7821
8009
|
disabled = _ref.disabled,
|
|
7822
8010
|
className = _ref.className,
|
|
@@ -7827,7 +8015,7 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7827
8015
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7828
8016
|
|
|
7829
8017
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7830
|
-
return /*#__PURE__*/
|
|
8018
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7831
8019
|
href: href,
|
|
7832
8020
|
ref: ref,
|
|
7833
8021
|
eventKey: eventKey,
|
|
@@ -7838,13 +8026,13 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7838
8026
|
}));
|
|
7839
8027
|
});
|
|
7840
8028
|
NavLink.displayName = 'NavLink';
|
|
7841
|
-
NavLink.defaultProps = defaultProps$
|
|
8029
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7842
8030
|
|
|
7843
|
-
var defaultProps$
|
|
8031
|
+
var defaultProps$b = {
|
|
7844
8032
|
justify: false,
|
|
7845
8033
|
fill: false
|
|
7846
8034
|
};
|
|
7847
|
-
var Nav =
|
|
8035
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7848
8036
|
var _classNames;
|
|
7849
8037
|
|
|
7850
8038
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7866,7 +8054,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7866
8054
|
var navbarBsPrefix;
|
|
7867
8055
|
var cardHeaderBsPrefix;
|
|
7868
8056
|
var isNavbar = false;
|
|
7869
|
-
var navbarContext = useContext(context
|
|
8057
|
+
var navbarContext = useContext(context);
|
|
7870
8058
|
var cardContext = useContext(context$1);
|
|
7871
8059
|
|
|
7872
8060
|
if (navbarContext) {
|
|
@@ -7876,7 +8064,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7876
8064
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7877
8065
|
}
|
|
7878
8066
|
|
|
7879
|
-
return /*#__PURE__*/
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
7880
8068
|
as: as,
|
|
7881
8069
|
ref: ref,
|
|
7882
8070
|
activeKey: activeKey,
|
|
@@ -7884,11 +8072,11 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7884
8072
|
}, props), children);
|
|
7885
8073
|
});
|
|
7886
8074
|
Nav.displayName = 'Nav';
|
|
7887
|
-
Nav.defaultProps = defaultProps$
|
|
8075
|
+
Nav.defaultProps = defaultProps$b;
|
|
7888
8076
|
Nav.Item = NavItem;
|
|
7889
8077
|
Nav.Link = NavLink;
|
|
7890
8078
|
|
|
7891
|
-
var NavbarBrand =
|
|
8079
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7892
8080
|
var bsPrefix = _ref.bsPrefix,
|
|
7893
8081
|
className = _ref.className,
|
|
7894
8082
|
as = _ref.as,
|
|
@@ -7896,23 +8084,23 @@ var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
|
7896
8084
|
|
|
7897
8085
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7898
8086
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7899
|
-
return /*#__PURE__*/
|
|
8087
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7900
8088
|
ref: ref,
|
|
7901
8089
|
className: classnames(className, bsPrefix)
|
|
7902
8090
|
}));
|
|
7903
8091
|
});
|
|
7904
8092
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
7905
8093
|
|
|
7906
|
-
var NavbarCollapse =
|
|
8094
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
7907
8095
|
var children = _ref.children,
|
|
7908
8096
|
bsPrefix = _ref.bsPrefix,
|
|
7909
8097
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
7910
8098
|
|
|
7911
8099
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7912
|
-
return /*#__PURE__*/
|
|
7913
|
-
return /*#__PURE__*/
|
|
8100
|
+
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8101
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
7914
8102
|
in: !!(context && context.expanded)
|
|
7915
|
-
}, props), /*#__PURE__*/
|
|
8103
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7916
8104
|
ref: ref,
|
|
7917
8105
|
className: bsPrefix
|
|
7918
8106
|
}, children));
|
|
@@ -7920,10 +8108,10 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
7920
8108
|
});
|
|
7921
8109
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
7922
8110
|
|
|
7923
|
-
var defaultProps$
|
|
8111
|
+
var defaultProps$a = {
|
|
7924
8112
|
label: 'Toggle navigation'
|
|
7925
8113
|
};
|
|
7926
|
-
var NavbarToggle =
|
|
8114
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
7927
8115
|
var bsPrefix = _ref.bsPrefix,
|
|
7928
8116
|
className = _ref.className,
|
|
7929
8117
|
children = _ref.children,
|
|
@@ -7935,7 +8123,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
7935
8123
|
|
|
7936
8124
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
7937
8125
|
|
|
7938
|
-
var _ref2 = useContext(context
|
|
8126
|
+
var _ref2 = useContext(context) || {},
|
|
7939
8127
|
onToggle = _ref2.onToggle,
|
|
7940
8128
|
expanded = _ref2.expanded;
|
|
7941
8129
|
|
|
@@ -7948,27 +8136,27 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
7948
8136
|
props.type = 'button';
|
|
7949
8137
|
}
|
|
7950
8138
|
|
|
7951
|
-
return /*#__PURE__*/
|
|
8139
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7952
8140
|
ref: ref,
|
|
7953
8141
|
onClick: handleClick,
|
|
7954
8142
|
"aria-label": label,
|
|
7955
8143
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
7956
|
-
}), children || /*#__PURE__*/
|
|
8144
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
7957
8145
|
className: bsPrefix + "-icon"
|
|
7958
8146
|
}));
|
|
7959
8147
|
});
|
|
7960
8148
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
7961
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8149
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
7962
8150
|
|
|
7963
8151
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
7964
8152
|
Component: 'span'
|
|
7965
8153
|
});
|
|
7966
|
-
var defaultProps$
|
|
8154
|
+
var defaultProps$9 = {
|
|
7967
8155
|
expand: true,
|
|
7968
8156
|
variant: 'light',
|
|
7969
8157
|
collapseOnSelect: false
|
|
7970
8158
|
};
|
|
7971
|
-
var Navbar =
|
|
8159
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
7972
8160
|
var _useUncontrolled = useUncontrolled(props, {
|
|
7973
8161
|
expanded: 'onToggle'
|
|
7974
8162
|
}),
|
|
@@ -8016,24 +8204,24 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8016
8204
|
expanded: !!expanded
|
|
8017
8205
|
};
|
|
8018
8206
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8019
|
-
return /*#__PURE__*/
|
|
8207
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8020
8208
|
value: navbarContext
|
|
8021
|
-
}, /*#__PURE__*/
|
|
8209
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8022
8210
|
value: handleCollapse
|
|
8023
|
-
}, /*#__PURE__*/
|
|
8211
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8024
8212
|
ref: ref
|
|
8025
8213
|
}, controlledProps, {
|
|
8026
8214
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8027
8215
|
}), children)));
|
|
8028
8216
|
});
|
|
8029
|
-
Navbar.defaultProps = defaultProps$
|
|
8217
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8030
8218
|
Navbar.displayName = 'Navbar';
|
|
8031
8219
|
Navbar.Brand = NavbarBrand;
|
|
8032
8220
|
Navbar.Toggle = NavbarToggle;
|
|
8033
8221
|
Navbar.Collapse = NavbarCollapse;
|
|
8034
8222
|
Navbar.Text = NavbarText;
|
|
8035
8223
|
|
|
8036
|
-
var propTypes$
|
|
8224
|
+
var propTypes$1 = {
|
|
8037
8225
|
/**
|
|
8038
8226
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8039
8227
|
* @type {string|number}
|
|
@@ -8069,7 +8257,7 @@ var propTypes$9 = {
|
|
|
8069
8257
|
/** @ignore */
|
|
8070
8258
|
bsPrefix: PropTypes.string
|
|
8071
8259
|
};
|
|
8072
|
-
var NavDropdown =
|
|
8260
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8073
8261
|
var id = _ref.id,
|
|
8074
8262
|
title = _ref.title,
|
|
8075
8263
|
children = _ref.children,
|
|
@@ -8081,35 +8269,35 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8081
8269
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8082
8270
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8083
8271
|
|
|
8084
|
-
return /*#__PURE__*/
|
|
8272
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8085
8273
|
ref: ref
|
|
8086
8274
|
}, props, {
|
|
8087
8275
|
as: NavItem
|
|
8088
|
-
}), /*#__PURE__*/
|
|
8276
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8089
8277
|
id: id,
|
|
8090
8278
|
eventKey: null,
|
|
8091
8279
|
active: active,
|
|
8092
8280
|
disabled: disabled,
|
|
8093
8281
|
childBsPrefix: bsPrefix,
|
|
8094
8282
|
as: NavLink
|
|
8095
|
-
}, title), /*#__PURE__*/
|
|
8283
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8096
8284
|
role: menuRole,
|
|
8097
8285
|
renderOnMount: renderMenuOnMount,
|
|
8098
8286
|
rootCloseEvent: rootCloseEvent
|
|
8099
8287
|
}, children));
|
|
8100
8288
|
});
|
|
8101
8289
|
NavDropdown.displayName = 'NavDropdown';
|
|
8102
|
-
NavDropdown.propTypes = propTypes$
|
|
8103
|
-
NavDropdown.Item = Dropdown
|
|
8104
|
-
NavDropdown.ItemText = Dropdown
|
|
8105
|
-
NavDropdown.Divider = Dropdown
|
|
8106
|
-
NavDropdown.Header = Dropdown
|
|
8290
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8291
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8292
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8293
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8294
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8107
8295
|
|
|
8108
8296
|
/**
|
|
8109
8297
|
* Built on top of `Popper.js`, the overlay component is
|
|
8110
8298
|
* great for custom tooltip overlays.
|
|
8111
8299
|
*/
|
|
8112
|
-
var Overlay = /*#__PURE__*/
|
|
8300
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8113
8301
|
var flip = props.flip,
|
|
8114
8302
|
offset = props.offset,
|
|
8115
8303
|
placement = props.placement,
|
|
@@ -8192,7 +8380,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8192
8380
|
onEnter = props.onEnter,
|
|
8193
8381
|
onEntering = props.onEntering,
|
|
8194
8382
|
onEntered = props.onEntered;
|
|
8195
|
-
child = /*#__PURE__*/
|
|
8383
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8196
8384
|
"in": props.show,
|
|
8197
8385
|
appear: true,
|
|
8198
8386
|
onExit: onExit,
|
|
@@ -8344,7 +8532,7 @@ Overlay.propTypes = {
|
|
|
8344
8532
|
onExited: PropTypes.func
|
|
8345
8533
|
};
|
|
8346
8534
|
|
|
8347
|
-
|
|
8535
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8348
8536
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8349
8537
|
|
|
8350
8538
|
function RefHolder() {
|
|
@@ -8358,14 +8546,14 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8358
8546
|
};
|
|
8359
8547
|
|
|
8360
8548
|
return RefHolder;
|
|
8361
|
-
}(
|
|
8549
|
+
})(React__default.Component);
|
|
8362
8550
|
|
|
8363
|
-
var defaultProps$
|
|
8551
|
+
var defaultProps$8 = {
|
|
8364
8552
|
active: false,
|
|
8365
8553
|
disabled: false,
|
|
8366
8554
|
activeLabel: '(current)'
|
|
8367
8555
|
};
|
|
8368
|
-
var PageItem =
|
|
8556
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8369
8557
|
var active = _ref.active,
|
|
8370
8558
|
disabled = _ref.disabled,
|
|
8371
8559
|
className = _ref.className,
|
|
@@ -8375,21 +8563,21 @@ var PageItem = React.forwardRef(function (_ref, ref) {
|
|
|
8375
8563
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8376
8564
|
|
|
8377
8565
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8378
|
-
return /*#__PURE__*/
|
|
8566
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8379
8567
|
ref: ref,
|
|
8380
8568
|
style: style,
|
|
8381
8569
|
className: classnames(className, 'page-item', {
|
|
8382
8570
|
active: active,
|
|
8383
8571
|
disabled: disabled
|
|
8384
8572
|
})
|
|
8385
|
-
}, /*#__PURE__*/
|
|
8573
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8386
8574
|
className: "page-link",
|
|
8387
8575
|
disabled: disabled
|
|
8388
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8576
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8389
8577
|
className: "sr-only"
|
|
8390
8578
|
}, activeLabel)));
|
|
8391
8579
|
});
|
|
8392
|
-
PageItem.defaultProps = defaultProps$
|
|
8580
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8393
8581
|
PageItem.displayName = 'PageItem';
|
|
8394
8582
|
|
|
8395
8583
|
function createButton(name, defaultValue, label) {
|
|
@@ -8401,9 +8589,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8401
8589
|
var children = _ref2.children,
|
|
8402
8590
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8403
8591
|
|
|
8404
|
-
return /*#__PURE__*/
|
|
8592
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8405
8593
|
"aria-hidden": "true"
|
|
8406
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8594
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8407
8595
|
className: "sr-only"
|
|
8408
8596
|
}, label));
|
|
8409
8597
|
}
|
|
@@ -8426,7 +8614,7 @@ var Last = createButton('Last', '»');
|
|
|
8426
8614
|
* @property {PageItem} Next
|
|
8427
8615
|
* @property {PageItem} Last
|
|
8428
8616
|
*/
|
|
8429
|
-
var Pagination =
|
|
8617
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8430
8618
|
var bsPrefix = _ref.bsPrefix,
|
|
8431
8619
|
className = _ref.className,
|
|
8432
8620
|
children = _ref.children,
|
|
@@ -8434,7 +8622,7 @@ var Pagination = React.forwardRef(function (_ref, ref) {
|
|
|
8434
8622
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8435
8623
|
|
|
8436
8624
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8437
|
-
return /*#__PURE__*/
|
|
8625
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8438
8626
|
ref: ref
|
|
8439
8627
|
}, props, {
|
|
8440
8628
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8447,7 +8635,7 @@ Pagination.Item = PageItem;
|
|
|
8447
8635
|
Pagination.Next = Next;
|
|
8448
8636
|
Pagination.Last = Last;
|
|
8449
8637
|
|
|
8450
|
-
var PopoverTitle =
|
|
8638
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8451
8639
|
var _ref$as = _ref.as,
|
|
8452
8640
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8453
8641
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8456,14 +8644,14 @@ var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
|
8456
8644
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8457
8645
|
|
|
8458
8646
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8459
|
-
return /*#__PURE__*/
|
|
8647
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8460
8648
|
ref: ref
|
|
8461
8649
|
}, props, {
|
|
8462
8650
|
className: classnames(bsPrefix, className)
|
|
8463
8651
|
}), children);
|
|
8464
8652
|
});
|
|
8465
8653
|
|
|
8466
|
-
var PopoverContent =
|
|
8654
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8467
8655
|
var _ref$as = _ref.as,
|
|
8468
8656
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8469
8657
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8472,50 +8660,50 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8472
8660
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8473
8661
|
|
|
8474
8662
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8475
|
-
return /*#__PURE__*/
|
|
8663
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8476
8664
|
ref: ref
|
|
8477
8665
|
}, props, {
|
|
8478
8666
|
className: classnames(className, bsPrefix)
|
|
8479
8667
|
}), children);
|
|
8480
8668
|
});
|
|
8481
8669
|
|
|
8482
|
-
var defaultProps$
|
|
8670
|
+
var defaultProps$7 = {
|
|
8483
8671
|
placement: 'right'
|
|
8484
8672
|
};
|
|
8485
|
-
var Popover =
|
|
8673
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8486
8674
|
var bsPrefix = _ref.bsPrefix,
|
|
8487
8675
|
placement = _ref.placement,
|
|
8488
8676
|
className = _ref.className,
|
|
8489
8677
|
style = _ref.style,
|
|
8490
8678
|
children = _ref.children,
|
|
8491
8679
|
content = _ref.content,
|
|
8492
|
-
arrowProps = _ref.arrowProps
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8680
|
+
arrowProps = _ref.arrowProps;
|
|
8681
|
+
_ref.popper;
|
|
8682
|
+
_ref.show;
|
|
8683
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8496
8684
|
|
|
8497
8685
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8498
8686
|
|
|
8499
8687
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8500
8688
|
primaryPlacement = _ref2[0];
|
|
8501
8689
|
|
|
8502
|
-
return /*#__PURE__*/
|
|
8690
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8503
8691
|
ref: ref,
|
|
8504
8692
|
role: "tooltip",
|
|
8505
8693
|
style: style,
|
|
8506
8694
|
"x-placement": primaryPlacement,
|
|
8507
8695
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8508
|
-
}, props), /*#__PURE__*/
|
|
8696
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8509
8697
|
className: "arrow"
|
|
8510
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8698
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8511
8699
|
});
|
|
8512
|
-
Popover.defaultProps = defaultProps$
|
|
8700
|
+
Popover.defaultProps = defaultProps$7;
|
|
8513
8701
|
Popover.Title = PopoverTitle;
|
|
8514
8702
|
Popover.Content = PopoverContent;
|
|
8515
8703
|
|
|
8516
8704
|
var ROUND_PRECISION = 1000;
|
|
8517
8705
|
|
|
8518
|
-
var defaultProps$
|
|
8706
|
+
var defaultProps$6 = {
|
|
8519
8707
|
min: 0,
|
|
8520
8708
|
max: 100,
|
|
8521
8709
|
animated: false,
|
|
@@ -8545,7 +8733,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8545
8733
|
bsPrefix = _ref.bsPrefix,
|
|
8546
8734
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8547
8735
|
|
|
8548
|
-
return /*#__PURE__*/
|
|
8736
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8549
8737
|
ref: ref
|
|
8550
8738
|
}, props, {
|
|
8551
8739
|
role: "progressbar",
|
|
@@ -8556,12 +8744,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8556
8744
|
"aria-valuenow": now,
|
|
8557
8745
|
"aria-valuemin": min,
|
|
8558
8746
|
"aria-valuemax": max
|
|
8559
|
-
}), srOnly ? /*#__PURE__*/
|
|
8747
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8560
8748
|
className: "sr-only"
|
|
8561
8749
|
}, label) : label);
|
|
8562
8750
|
}
|
|
8563
8751
|
|
|
8564
|
-
var ProgressBar =
|
|
8752
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8565
8753
|
var isChild = _ref2.isChild,
|
|
8566
8754
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8567
8755
|
|
|
@@ -8584,7 +8772,7 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8584
8772
|
children = props.children,
|
|
8585
8773
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8586
8774
|
|
|
8587
|
-
return /*#__PURE__*/
|
|
8775
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8588
8776
|
ref: ref
|
|
8589
8777
|
}, wrapperProps, {
|
|
8590
8778
|
className: classnames(className, bsPrefix)
|
|
@@ -8605,12 +8793,12 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8605
8793
|
}, ref));
|
|
8606
8794
|
});
|
|
8607
8795
|
ProgressBar.displayName = 'ProgressBar';
|
|
8608
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8796
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8609
8797
|
|
|
8610
|
-
var defaultProps$
|
|
8798
|
+
var defaultProps$5 = {
|
|
8611
8799
|
aspectRatio: '1by1'
|
|
8612
8800
|
};
|
|
8613
|
-
var ResponsiveEmbed =
|
|
8801
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8614
8802
|
var bsPrefix = _ref.bsPrefix,
|
|
8615
8803
|
className = _ref.className,
|
|
8616
8804
|
children = _ref.children,
|
|
@@ -8618,22 +8806,22 @@ var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
|
8618
8806
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8619
8807
|
|
|
8620
8808
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8621
|
-
var child =
|
|
8622
|
-
return /*#__PURE__*/
|
|
8809
|
+
var child = React__default.Children.only(children);
|
|
8810
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8623
8811
|
ref: ref
|
|
8624
8812
|
}, props, {
|
|
8625
8813
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8626
|
-
}),
|
|
8814
|
+
}), React__default.cloneElement(child, {
|
|
8627
8815
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8628
8816
|
}));
|
|
8629
8817
|
});
|
|
8630
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8818
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8631
8819
|
|
|
8632
|
-
var DEVICE_SIZES
|
|
8633
|
-
var defaultProps$
|
|
8820
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8821
|
+
var defaultProps$4 = {
|
|
8634
8822
|
noGutters: false
|
|
8635
8823
|
};
|
|
8636
|
-
var Row =
|
|
8824
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8637
8825
|
var bsPrefix = _ref.bsPrefix,
|
|
8638
8826
|
className = _ref.className,
|
|
8639
8827
|
noGutters = _ref.noGutters,
|
|
@@ -8644,7 +8832,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8644
8832
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8645
8833
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8646
8834
|
var classes = [];
|
|
8647
|
-
DEVICE_SIZES
|
|
8835
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8648
8836
|
var propValue = props[brkPoint];
|
|
8649
8837
|
delete props[brkPoint];
|
|
8650
8838
|
var cols;
|
|
@@ -8658,16 +8846,16 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8658
8846
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8659
8847
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8660
8848
|
});
|
|
8661
|
-
return /*#__PURE__*/
|
|
8849
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8662
8850
|
ref: ref
|
|
8663
8851
|
}, props, {
|
|
8664
8852
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8665
8853
|
}));
|
|
8666
8854
|
});
|
|
8667
8855
|
Row.displayName = 'Row';
|
|
8668
|
-
Row.defaultProps = defaultProps$
|
|
8856
|
+
Row.defaultProps = defaultProps$4;
|
|
8669
8857
|
|
|
8670
|
-
var Spinner =
|
|
8858
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8671
8859
|
var bsPrefix = _ref.bsPrefix,
|
|
8672
8860
|
variant = _ref.variant,
|
|
8673
8861
|
animation = _ref.animation,
|
|
@@ -8680,7 +8868,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8680
8868
|
|
|
8681
8869
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8682
8870
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8683
|
-
return /*#__PURE__*/
|
|
8871
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8684
8872
|
ref: ref
|
|
8685
8873
|
}, props, {
|
|
8686
8874
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8688,7 +8876,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8688
8876
|
});
|
|
8689
8877
|
Spinner.displayName = 'Spinner';
|
|
8690
8878
|
|
|
8691
|
-
var propTypes
|
|
8879
|
+
var propTypes = {
|
|
8692
8880
|
/**
|
|
8693
8881
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8694
8882
|
* @type {string|number}
|
|
@@ -8719,6 +8907,15 @@ var propTypes$a = {
|
|
|
8719
8907
|
/** Disables both Buttons */
|
|
8720
8908
|
disabled: PropTypes.bool,
|
|
8721
8909
|
|
|
8910
|
+
/**
|
|
8911
|
+
* Aligns the dropdown menu responsively.
|
|
8912
|
+
*
|
|
8913
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8914
|
+
*
|
|
8915
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8916
|
+
*/
|
|
8917
|
+
menuAlign: alignPropType,
|
|
8918
|
+
|
|
8722
8919
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8723
8920
|
menuRole: PropTypes.string,
|
|
8724
8921
|
|
|
@@ -8728,7 +8925,7 @@ var propTypes$a = {
|
|
|
8728
8925
|
/**
|
|
8729
8926
|
* Which event when fired outside the component will cause it to be closed.
|
|
8730
8927
|
*
|
|
8731
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8928
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8732
8929
|
*/
|
|
8733
8930
|
rootCloseEvent: PropTypes.string,
|
|
8734
8931
|
|
|
@@ -8741,11 +8938,11 @@ var propTypes$a = {
|
|
|
8741
8938
|
/** @ignore */
|
|
8742
8939
|
size: PropTypes.string
|
|
8743
8940
|
};
|
|
8744
|
-
var defaultProps$
|
|
8941
|
+
var defaultProps$3 = {
|
|
8745
8942
|
toggleLabel: 'Toggle dropdown',
|
|
8746
8943
|
type: 'button'
|
|
8747
8944
|
};
|
|
8748
|
-
var SplitButton =
|
|
8945
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8749
8946
|
var id = _ref.id,
|
|
8750
8947
|
bsPrefix = _ref.bsPrefix,
|
|
8751
8948
|
size = _ref.size,
|
|
@@ -8757,16 +8954,17 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8757
8954
|
onClick = _ref.onClick,
|
|
8758
8955
|
href = _ref.href,
|
|
8759
8956
|
target = _ref.target,
|
|
8957
|
+
menuAlign = _ref.menuAlign,
|
|
8760
8958
|
menuRole = _ref.menuRole,
|
|
8761
8959
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8762
8960
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8763
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8961
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8764
8962
|
|
|
8765
|
-
return /*#__PURE__*/
|
|
8963
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8766
8964
|
ref: ref
|
|
8767
8965
|
}, props, {
|
|
8768
8966
|
as: ButtonGroup
|
|
8769
|
-
}), /*#__PURE__*/
|
|
8967
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8770
8968
|
size: size,
|
|
8771
8969
|
variant: variant,
|
|
8772
8970
|
disabled: props.disabled,
|
|
@@ -8775,23 +8973,24 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8775
8973
|
target: target,
|
|
8776
8974
|
onClick: onClick,
|
|
8777
8975
|
type: type
|
|
8778
|
-
}, title), /*#__PURE__*/
|
|
8976
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8779
8977
|
split: true,
|
|
8780
8978
|
id: id ? id.toString() : undefined,
|
|
8781
8979
|
size: size,
|
|
8782
8980
|
variant: variant,
|
|
8783
8981
|
disabled: props.disabled,
|
|
8784
8982
|
childBsPrefix: bsPrefix
|
|
8785
|
-
}, /*#__PURE__*/
|
|
8983
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8786
8984
|
className: "sr-only"
|
|
8787
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8985
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8986
|
+
align: menuAlign,
|
|
8788
8987
|
role: menuRole,
|
|
8789
8988
|
renderOnMount: renderMenuOnMount,
|
|
8790
8989
|
rootCloseEvent: rootCloseEvent
|
|
8791
8990
|
}, children));
|
|
8792
8991
|
});
|
|
8793
|
-
SplitButton.propTypes = propTypes
|
|
8794
|
-
SplitButton.defaultProps = defaultProps$
|
|
8992
|
+
SplitButton.propTypes = propTypes;
|
|
8993
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8795
8994
|
SplitButton.displayName = 'SplitButton';
|
|
8796
8995
|
|
|
8797
8996
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8827,14 +9026,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
8827
9026
|
}
|
|
8828
9027
|
};
|
|
8829
9028
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8830
|
-
return /*#__PURE__*/
|
|
9029
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8831
9030
|
value: tabContext
|
|
8832
|
-
}, /*#__PURE__*/
|
|
9031
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8833
9032
|
value: onSelect || null
|
|
8834
9033
|
}, children));
|
|
8835
9034
|
};
|
|
8836
9035
|
|
|
8837
|
-
var TabContent =
|
|
9036
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8838
9037
|
var bsPrefix = _ref.bsPrefix,
|
|
8839
9038
|
_ref$as = _ref.as,
|
|
8840
9039
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -8842,7 +9041,7 @@ var TabContent = React.forwardRef(function (_ref, ref) {
|
|
|
8842
9041
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8843
9042
|
|
|
8844
9043
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8845
|
-
return /*#__PURE__*/
|
|
9044
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8846
9045
|
ref: ref
|
|
8847
9046
|
}, props, {
|
|
8848
9047
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -8870,7 +9069,7 @@ function useTabContext(props) {
|
|
|
8870
9069
|
});
|
|
8871
9070
|
}
|
|
8872
9071
|
|
|
8873
|
-
var TabPane =
|
|
9072
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8874
9073
|
var _useTabContext = useTabContext(props),
|
|
8875
9074
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8876
9075
|
className = _useTabContext.className,
|
|
@@ -8885,13 +9084,13 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8885
9084
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
8886
9085
|
Transition = _useTabContext.transition,
|
|
8887
9086
|
_useTabContext$as = _useTabContext.as,
|
|
8888
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
8889
|
-
|
|
8890
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9087
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9088
|
+
_useTabContext.eventKey;
|
|
9089
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8891
9090
|
|
|
8892
9091
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8893
9092
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8894
|
-
var pane = /*#__PURE__*/
|
|
9093
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
8895
9094
|
ref: ref,
|
|
8896
9095
|
role: "tabpanel",
|
|
8897
9096
|
"aria-hidden": !active,
|
|
@@ -8899,7 +9098,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8899
9098
|
active: active
|
|
8900
9099
|
})
|
|
8901
9100
|
}));
|
|
8902
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9101
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8903
9102
|
in: active,
|
|
8904
9103
|
onEnter: onEnter,
|
|
8905
9104
|
onEntering: onEntering,
|
|
@@ -8912,9 +9111,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8912
9111
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
8913
9112
|
// conflict with the top level one.
|
|
8914
9113
|
|
|
8915
|
-
return /*#__PURE__*/
|
|
9114
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8916
9115
|
value: null
|
|
8917
|
-
}, /*#__PURE__*/
|
|
9116
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8918
9117
|
value: null
|
|
8919
9118
|
}, pane));
|
|
8920
9119
|
});
|
|
@@ -8935,13 +9134,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
8935
9134
|
};
|
|
8936
9135
|
|
|
8937
9136
|
return Tab;
|
|
8938
|
-
}(
|
|
9137
|
+
}(React__default.Component);
|
|
8939
9138
|
|
|
8940
9139
|
Tab.Container = TabContainer;
|
|
8941
9140
|
Tab.Content = TabContent;
|
|
8942
9141
|
Tab.Pane = TabPane;
|
|
8943
9142
|
|
|
8944
|
-
|
|
9143
|
+
React__default.forwardRef(function (_ref, ref) {
|
|
8945
9144
|
var bsPrefix = _ref.bsPrefix,
|
|
8946
9145
|
className = _ref.className,
|
|
8947
9146
|
striped = _ref.striped,
|
|
@@ -8955,7 +9154,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
8955
9154
|
|
|
8956
9155
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
8957
9156
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
8958
|
-
var table = /*#__PURE__*/
|
|
9157
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
8959
9158
|
className: classes,
|
|
8960
9159
|
ref: ref
|
|
8961
9160
|
}));
|
|
@@ -8967,7 +9166,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
8967
9166
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
8968
9167
|
}
|
|
8969
9168
|
|
|
8970
|
-
return /*#__PURE__*/
|
|
9169
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
8971
9170
|
className: responsiveClass
|
|
8972
9171
|
}, table);
|
|
8973
9172
|
}
|
|
@@ -8975,16 +9174,16 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
8975
9174
|
return table;
|
|
8976
9175
|
});
|
|
8977
9176
|
|
|
8978
|
-
var ToastContext =
|
|
9177
|
+
var ToastContext = React__default.createContext({
|
|
8979
9178
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8980
9179
|
onClose: function onClose() {}
|
|
8981
9180
|
});
|
|
8982
9181
|
|
|
8983
|
-
var defaultProps$
|
|
9182
|
+
var defaultProps$2 = {
|
|
8984
9183
|
closeLabel: 'Close',
|
|
8985
9184
|
closeButton: true
|
|
8986
9185
|
};
|
|
8987
|
-
var ToastHeader =
|
|
9186
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
8988
9187
|
var bsPrefix = _ref.bsPrefix,
|
|
8989
9188
|
closeLabel = _ref.closeLabel,
|
|
8990
9189
|
closeButton = _ref.closeButton,
|
|
@@ -8999,11 +9198,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
8999
9198
|
context.onClose(e);
|
|
9000
9199
|
}
|
|
9001
9200
|
});
|
|
9002
|
-
return /*#__PURE__*/
|
|
9201
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9003
9202
|
ref: ref
|
|
9004
9203
|
}, props, {
|
|
9005
9204
|
className: classnames(bsPrefix, className)
|
|
9006
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9205
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9007
9206
|
label: closeLabel,
|
|
9008
9207
|
onClick: handleClick,
|
|
9009
9208
|
className: "ml-2 mb-1",
|
|
@@ -9011,11 +9210,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9011
9210
|
}));
|
|
9012
9211
|
});
|
|
9013
9212
|
ToastHeader.displayName = 'ToastHeader';
|
|
9014
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9213
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9015
9214
|
|
|
9016
9215
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9017
9216
|
|
|
9018
|
-
var Toast =
|
|
9217
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9019
9218
|
var bsPrefix = _ref.bsPrefix,
|
|
9020
9219
|
className = _ref.className,
|
|
9021
9220
|
children = _ref.children,
|
|
@@ -9058,16 +9257,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9058
9257
|
};
|
|
9059
9258
|
}, [onClose]);
|
|
9060
9259
|
var hasAnimation = !!(Transition && animation);
|
|
9061
|
-
var toast = /*#__PURE__*/
|
|
9260
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9062
9261
|
ref: ref,
|
|
9063
9262
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9064
9263
|
role: "alert",
|
|
9065
9264
|
"aria-live": "assertive",
|
|
9066
9265
|
"aria-atomic": "true"
|
|
9067
9266
|
}), children);
|
|
9068
|
-
return /*#__PURE__*/
|
|
9267
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9069
9268
|
value: toastContext
|
|
9070
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9269
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9071
9270
|
in: show,
|
|
9072
9271
|
unmountOnExit: true
|
|
9073
9272
|
}, toast) : toast);
|
|
@@ -9078,11 +9277,11 @@ Object.assign(Toast, {
|
|
|
9078
9277
|
Header: ToastHeader
|
|
9079
9278
|
});
|
|
9080
9279
|
|
|
9081
|
-
var noop
|
|
9280
|
+
var noop = function noop() {
|
|
9082
9281
|
return undefined;
|
|
9083
9282
|
};
|
|
9084
9283
|
|
|
9085
|
-
var ToggleButton =
|
|
9284
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9086
9285
|
var children = _ref.children,
|
|
9087
9286
|
name = _ref.name,
|
|
9088
9287
|
className = _ref.className,
|
|
@@ -9104,13 +9303,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9104
9303
|
var handleBlur = useCallback(function (e) {
|
|
9105
9304
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9106
9305
|
}, []);
|
|
9107
|
-
return /*#__PURE__*/
|
|
9306
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9108
9307
|
ref: ref,
|
|
9109
9308
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9110
9309
|
type: undefined,
|
|
9111
9310
|
active: !!checked,
|
|
9112
9311
|
as: "label"
|
|
9113
|
-
}), /*#__PURE__*/
|
|
9312
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9114
9313
|
name: name,
|
|
9115
9314
|
type: type,
|
|
9116
9315
|
value: value,
|
|
@@ -9120,15 +9319,16 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9120
9319
|
disabled: !!disabled,
|
|
9121
9320
|
onFocus: handleFocus,
|
|
9122
9321
|
onBlur: handleBlur,
|
|
9123
|
-
onChange: onChange || noop
|
|
9322
|
+
onChange: onChange || noop
|
|
9124
9323
|
}), children);
|
|
9125
9324
|
});
|
|
9126
9325
|
ToggleButton.displayName = 'ToggleButton';
|
|
9127
9326
|
|
|
9128
|
-
var defaultProps$
|
|
9129
|
-
type: 'radio'
|
|
9327
|
+
var defaultProps$1 = {
|
|
9328
|
+
type: 'radio',
|
|
9329
|
+
vertical: false
|
|
9130
9330
|
};
|
|
9131
|
-
var ToggleButtonGroup =
|
|
9331
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9132
9332
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9133
9333
|
value: 'onChange'
|
|
9134
9334
|
}),
|
|
@@ -9166,7 +9366,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9166
9366
|
};
|
|
9167
9367
|
|
|
9168
9368
|
!(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;
|
|
9169
|
-
return /*#__PURE__*/
|
|
9369
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9170
9370
|
ref: ref,
|
|
9171
9371
|
toggle: true
|
|
9172
9372
|
}), map(children, function (child) {
|
|
@@ -9179,7 +9379,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9179
9379
|
return handleToggle(childVal, e);
|
|
9180
9380
|
};
|
|
9181
9381
|
|
|
9182
|
-
return
|
|
9382
|
+
return React__default.cloneElement(child, {
|
|
9183
9383
|
type: type,
|
|
9184
9384
|
name: child.name || name,
|
|
9185
9385
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9187,44 +9387,44 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9187
9387
|
});
|
|
9188
9388
|
}));
|
|
9189
9389
|
});
|
|
9190
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9390
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9191
9391
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9192
9392
|
|
|
9193
|
-
var defaultProps
|
|
9393
|
+
var defaultProps = {
|
|
9194
9394
|
placement: 'right'
|
|
9195
9395
|
};
|
|
9196
|
-
var Tooltip =
|
|
9396
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9197
9397
|
var bsPrefix = _ref.bsPrefix,
|
|
9198
9398
|
placement = _ref.placement,
|
|
9199
9399
|
className = _ref.className,
|
|
9200
9400
|
style = _ref.style,
|
|
9201
9401
|
children = _ref.children,
|
|
9202
|
-
arrowProps = _ref.arrowProps
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9402
|
+
arrowProps = _ref.arrowProps;
|
|
9403
|
+
_ref.popper;
|
|
9404
|
+
_ref.show;
|
|
9405
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9206
9406
|
|
|
9207
9407
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9208
9408
|
|
|
9209
9409
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9210
9410
|
primaryPlacement = _ref2[0];
|
|
9211
9411
|
|
|
9212
|
-
return /*#__PURE__*/
|
|
9412
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9213
9413
|
ref: ref,
|
|
9214
9414
|
style: style,
|
|
9215
9415
|
role: "tooltip",
|
|
9216
9416
|
"x-placement": primaryPlacement,
|
|
9217
9417
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9218
|
-
}, props), /*#__PURE__*/
|
|
9418
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9219
9419
|
className: "arrow"
|
|
9220
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9420
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9221
9421
|
className: bsPrefix + "-inner"
|
|
9222
9422
|
}, children));
|
|
9223
9423
|
});
|
|
9224
|
-
Tooltip.defaultProps = defaultProps
|
|
9424
|
+
Tooltip.defaultProps = defaultProps;
|
|
9225
9425
|
Tooltip.displayName = 'Tooltip';
|
|
9226
9426
|
|
|
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";
|
|
9427
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9228
9428
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9229
9429
|
styleInject(css);
|
|
9230
9430
|
|
|
@@ -9235,58 +9435,58 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9235
9435
|
client = props.client;
|
|
9236
9436
|
|
|
9237
9437
|
|
|
9238
|
-
return
|
|
9438
|
+
return React__default.createElement(
|
|
9239
9439
|
'div',
|
|
9240
9440
|
{ className: 'media-series-article ' + styles.article },
|
|
9241
|
-
|
|
9441
|
+
React__default.createElement(
|
|
9242
9442
|
'a',
|
|
9243
9443
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9244
|
-
|
|
9444
|
+
React__default.createElement(
|
|
9245
9445
|
'div',
|
|
9246
9446
|
{ className: 'media-series-thumbnail ' + styles.thumb },
|
|
9247
|
-
data.thumbnail && data.thumbnail.asset &&
|
|
9447
|
+
data.thumbnail && data.thumbnail.asset && React__default.createElement(
|
|
9248
9448
|
'figure',
|
|
9249
9449
|
null,
|
|
9250
|
-
|
|
9450
|
+
React__default.createElement(
|
|
9251
9451
|
LazyLoad,
|
|
9252
9452
|
null,
|
|
9253
|
-
|
|
9453
|
+
React__default.createElement('img', {
|
|
9254
9454
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9255
9455
|
})
|
|
9256
9456
|
)
|
|
9257
9457
|
)
|
|
9258
9458
|
),
|
|
9259
|
-
|
|
9459
|
+
React__default.createElement(
|
|
9260
9460
|
'div',
|
|
9261
9461
|
{ className: 'media-series-info ' + styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9262
|
-
|
|
9462
|
+
React__default.createElement(
|
|
9263
9463
|
'div',
|
|
9264
9464
|
{ className: 'media-series-name ' + styles.name },
|
|
9265
9465
|
data.name
|
|
9266
9466
|
),
|
|
9267
|
-
data.published &&
|
|
9467
|
+
data.published && React__default.createElement(
|
|
9268
9468
|
'p',
|
|
9269
9469
|
{ className: 'media-series-published ' + styles.published },
|
|
9270
9470
|
moment(data.published).format('MMMM Do YYYY')
|
|
9271
9471
|
),
|
|
9272
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9472
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9273
9473
|
'p',
|
|
9274
9474
|
{ className: 'media-series-author ' + styles.author },
|
|
9275
9475
|
'By ',
|
|
9276
|
-
|
|
9476
|
+
React__default.createElement(
|
|
9277
9477
|
'span',
|
|
9278
9478
|
null,
|
|
9279
9479
|
data.authorMapping.displayName
|
|
9280
9480
|
)
|
|
9281
9481
|
),
|
|
9282
|
-
data.description &&
|
|
9482
|
+
data.description && React__default.createElement(
|
|
9283
9483
|
'div',
|
|
9284
9484
|
{ className: 'media-series-desc' },
|
|
9285
|
-
|
|
9485
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9286
9486
|
)
|
|
9287
9487
|
)
|
|
9288
9488
|
)
|
|
9289
9489
|
);
|
|
9290
9490
|
};
|
|
9291
9491
|
|
|
9292
|
-
export { DropdownButton as D, MediaSeriesCard as M, Dropdown
|
|
9492
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|