@mjhls/mjh-framework 1.0.984-nofollow-v1 → 1.0.984
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +6 -6
- package/dist/cjs/AD300x250.js +24 -25
- package/dist/cjs/AD300x250x600.js +24 -25
- package/dist/cjs/AD728x90.js +27 -28
- package/dist/cjs/ADFloatingFooter.js +26 -27
- package/dist/cjs/ADFooter.js +9 -9
- package/dist/cjs/ADGutter.js +26 -27
- package/dist/cjs/{ADInfeed-e5192055.js → ADInfeed-b54f0bda.js} +9 -9
- package/dist/cjs/ADSkyscraper.js +26 -27
- package/dist/cjs/ADSponsoredResources.js +26 -27
- package/dist/cjs/ADWebcast.js +26 -27
- package/dist/cjs/ADWelcome.js +27 -28
- package/dist/cjs/{ADlgInfeed-442a5d8c.js → ADlgInfeed-4f0850ec.js} +7 -7
- package/dist/cjs/AccordionPanel.js +23 -23
- package/dist/cjs/AdSlot.js +26 -27
- package/dist/cjs/AdSlotsProvider.js +14 -15
- package/dist/cjs/AlgoliaSearch.js +63 -14515
- package/dist/cjs/AlphabeticList.js +20 -20
- package/dist/cjs/ArticleCarousel.js +16 -16
- package/dist/cjs/ArticleProgramLandingPage.js +56 -56
- package/dist/cjs/ArticleSeriesLandingPage.js +35 -36
- package/dist/cjs/ArticleSeriesListing.js +55 -56
- package/dist/cjs/Auth.js +428 -596
- package/dist/cjs/AuthWrapper.js +31 -1790
- package/dist/cjs/{AuthorComponent-7d00f6d5.js → AuthorComponent-17e1c62b.js} +10 -10
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-96b44364.js → BlockContent-8b494587.js} +50 -50
- package/dist/cjs/Breadcrumbs.js +23 -23
- package/dist/cjs/CMEDeck.js +77 -82
- package/dist/cjs/Column1.js +7 -7
- package/dist/cjs/Column2.js +28 -28
- package/dist/cjs/Column3.js +53 -54
- package/dist/cjs/ConferenceArticleCard.js +22 -22
- package/dist/cjs/{ConferenceBanner-213003ce.js → ConferenceBanner-6c9e718a.js} +3 -3
- package/dist/cjs/ContentCardPaginated.js +81 -81
- package/dist/cjs/DeckContent.js +85 -86
- package/dist/cjs/DeckQueue.js +82 -83
- package/dist/cjs/DeckQueuePaginated.js +75 -75
- package/dist/cjs/{Dfp-c313a700.js → Dfp-bcaa7e3f.js} +27 -28
- package/dist/cjs/EventsDeck.js +113 -113
- package/dist/cjs/ExternalResources.js +74 -74
- package/dist/cjs/Feature.js +23 -23
- package/dist/cjs/ForbesHero.js +33 -33
- package/dist/cjs/GridContent.js +171 -172
- package/dist/cjs/GridContentPaginated.js +160 -160
- package/dist/cjs/GridHero.js +35 -35
- package/dist/cjs/GroupDeck.js +45 -45
- package/dist/cjs/HamMagazine.js +126 -126
- package/dist/cjs/Header.js +9 -9
- package/dist/cjs/HealthCareProfessionalModal.js +19 -19
- package/dist/cjs/Hero.js +12 -12
- package/dist/cjs/HighlightenVideo.js +14 -14
- package/dist/cjs/HorizontalArticleListing.js +70 -70
- package/dist/cjs/HorizontalHero.js +25 -25
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +58 -58
- package/dist/cjs/IssueDeck.js +61 -61
- package/dist/cjs/IssueLanding.js +64 -64
- package/dist/cjs/LeftNav.js +34 -35
- package/dist/cjs/MasterDeck.js +64 -65
- package/dist/cjs/MasterDeckPaginated.js +57 -57
- package/dist/cjs/{MediaSeriesCard-630e177e.js → MediaSeriesCard-408eaac7.js} +1147 -1413
- package/dist/cjs/MediaSeriesLanding.js +77 -78
- package/dist/cjs/MediaSeriesLandingPaginated.js +81 -81
- package/dist/cjs/NavDvm.js +68 -68
- package/dist/cjs/{NavFooter-1fda6732.js → NavFooter-3dcd99a8.js} +11 -11
- package/dist/cjs/NavMagazine.js +131 -131
- package/dist/cjs/NavNative.js +124 -124
- package/dist/cjs/OncliveHero.js +18 -18
- package/dist/cjs/OncliveLargeHero.js +58 -58
- package/dist/cjs/PageFilter.js +9 -9
- package/dist/cjs/Pagination-7624a3bd.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +97 -98
- package/dist/cjs/PartnerDetailListingPaginated.js +93 -93
- package/dist/cjs/PdfDownload.js +6 -6
- package/dist/cjs/PixelTracking.js +15 -15
- package/dist/cjs/PopUpModal.js +13 -13
- package/dist/cjs/PtceDeck.js +23 -23
- package/dist/cjs/PubSection.js +37 -38
- package/dist/cjs/PubToc.js +10 -10
- package/dist/cjs/PublicationDeck.js +54 -54
- package/dist/cjs/{PublicationFeature-a989a2b3.js → PublicationFeature-6f89fb97.js} +30 -30
- package/dist/cjs/PublicationLanding.js +99 -103
- package/dist/cjs/QueueDeckExpanded.js +273 -274
- package/dist/cjs/QueueDeckExpandedPaginated.js +253 -253
- package/dist/cjs/RecentNews.js +19 -19
- package/dist/cjs/RelatedContent.js +23 -23
- package/dist/cjs/RelatedTopicsDropdown.js +14 -14
- package/dist/cjs/RolesDeck.js +20 -20
- package/dist/cjs/Schema.js +11 -11
- package/dist/cjs/Search.js +12 -12
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +30 -31
- package/dist/cjs/{SeriesSlider-18fc6e71.js → SeriesSlider-08699353.js} +30 -30
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +30 -30
- package/dist/cjs/SocialIcons.js +6 -6
- package/dist/cjs/{SocialSearchComponent-bac7d6fa.js → SocialSearchComponent-af6ddcc0.js} +37 -37
- package/dist/cjs/SocialShare.js +25 -25
- package/dist/cjs/TaxonomyCard.js +53 -53
- package/dist/cjs/TaxonomyDescription.js +51 -51
- package/dist/cjs/TemplateNormal.js +67 -68
- package/dist/cjs/ThumbnailCard.js +19 -19
- package/dist/cjs/Ustream.js +29 -29
- package/dist/cjs/VerticalHero.js +16 -16
- package/dist/cjs/VideoProgramLandingPage.js +72 -72
- package/dist/cjs/VideoSeriesCard.js +25 -25
- package/dist/cjs/VideoSeriesFilter.js +12 -12
- package/dist/cjs/VideoSeriesLandingPage.js +40 -41
- package/dist/cjs/VideoSeriesListing.js +72 -73
- package/dist/cjs/View.js +332 -335
- package/dist/cjs/YahooHero.js +33 -33
- package/dist/cjs/YoutubeGroup.js +48 -48
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-5c98aec7.js} +3 -3
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-7df78678.js} +7 -8
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getPtceActivities.js +4 -4
- package/dist/cjs/getRelatedArticle.js +68 -132
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-1359b868.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-d2a6ef75.js → index-44481153.js} +492 -46
- package/dist/cjs/{index-d6f7f994.js → index-7deba8d6.js} +624 -874
- package/dist/cjs/{index-96c331fd.js → index-99edf08a.js} +89 -89
- package/dist/cjs/{index-65621b6c.js → index-9d365128.js} +12 -12
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- package/dist/cjs/{index.es-1ab8dda7.js → index.es-f3e47207.js} +4 -4
- package/dist/cjs/{index.esm-70e78156.js → index.esm-3ffa049c.js} +15 -15
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-44f3e2d0.js} +1 -1
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-48e0f0d8.js} +1 -1
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +226 -227
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-2c5c389a.js → react-social-icons-07939b41.js} +24 -24
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +5 -5
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-56020df6.js → visibility-sensor-eb2c5b69.js} +1 -1
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +8 -8
- package/dist/esm/AD300x250.js +25 -26
- package/dist/esm/AD300x250x600.js +25 -26
- package/dist/esm/AD728x90.js +28 -29
- package/dist/esm/ADFloatingFooter.js +27 -28
- package/dist/esm/ADFooter.js +10 -10
- package/dist/esm/ADGutter.js +27 -28
- package/dist/esm/{ADInfeed-d93886e3.js → ADInfeed-310d113c.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -28
- package/dist/esm/ADSponsoredResources.js +27 -28
- package/dist/esm/ADWebcast.js +27 -28
- package/dist/esm/ADWelcome.js +28 -29
- package/dist/esm/{ADlgInfeed-93777a49.js → ADlgInfeed-eeaa14e2.js} +8 -8
- package/dist/esm/AccordionPanel.js +23 -23
- package/dist/esm/AdSlot.js +23 -24
- package/dist/esm/AdSlotsProvider.js +13 -14
- package/dist/esm/AlgoliaSearch.js +56 -14508
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +57 -57
- package/dist/esm/ArticleSeriesLandingPage.js +36 -37
- package/dist/esm/ArticleSeriesListing.js +55 -56
- package/dist/esm/Auth.js +427 -594
- package/dist/esm/AuthWrapper.js +27 -1787
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +78 -83
- package/dist/esm/Column1.js +7 -6
- package/dist/esm/Column2.js +27 -26
- package/dist/esm/Column3.js +51 -51
- package/dist/esm/ConferenceArticleCard.js +24 -24
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +73 -73
- package/dist/esm/DeckContent.js +77 -78
- package/dist/esm/DeckQueue.js +71 -72
- package/dist/esm/DeckQueuePaginated.js +64 -64
- package/dist/esm/{Dfp-102f0beb.js → Dfp-e151d2de.js} +21 -22
- package/dist/esm/EventsDeck.js +87 -87
- package/dist/esm/ExternalResources.js +74 -74
- package/dist/esm/Feature.js +22 -22
- package/dist/esm/ForbesHero.js +34 -34
- package/dist/esm/GridContent.js +146 -147
- package/dist/esm/GridContentPaginated.js +135 -135
- package/dist/esm/GridHero.js +36 -36
- package/dist/esm/GroupDeck.js +46 -46
- package/dist/esm/HamMagazine.js +106 -105
- package/dist/esm/Header.js +10 -9
- package/dist/esm/HealthCareProfessionalModal.js +13 -13
- package/dist/esm/Hero.js +14 -14
- package/dist/esm/HighlightenVideo.js +15 -15
- package/dist/esm/HorizontalArticleListing.js +71 -71
- package/dist/esm/HorizontalHero.js +27 -27
- package/dist/esm/ImageSlider-5ae6287a.js +1375 -0
- package/dist/esm/IssueContentDeck.js +49 -49
- package/dist/esm/IssueDeck.js +46 -46
- package/dist/esm/IssueLanding.js +65 -65
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +34 -34
- package/dist/esm/MasterDeck.js +64 -65
- package/dist/esm/MasterDeckPaginated.js +56 -56
- package/dist/esm/{MediaSeriesCard-64c51b1f.js → MediaSeriesCard-ae83cba2.js} +815 -1081
- package/dist/esm/MediaSeriesLanding.js +77 -78
- package/dist/esm/MediaSeriesLandingPaginated.js +81 -81
- package/dist/esm/NavDvm.js +56 -55
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +113 -112
- package/dist/esm/NavNative.js +103 -102
- package/dist/esm/OncliveHero.js +20 -20
- package/dist/esm/OncliveLargeHero.js +59 -59
- package/dist/esm/PageFilter.js +11 -11
- package/dist/esm/Pagination-1e09918f.js +82 -0
- package/dist/esm/PartnerDetailListing.js +98 -99
- package/dist/esm/PartnerDetailListingPaginated.js +94 -94
- package/dist/esm/PdfDownload.js +8 -8
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PtceDeck.js +24 -24
- package/dist/esm/PubSection.js +38 -39
- package/dist/esm/PubToc.js +11 -11
- package/dist/esm/PublicationDeck.js +43 -43
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +75 -79
- package/dist/esm/QueueDeckExpanded.js +274 -275
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -254
- package/dist/esm/RecentNews.js +21 -21
- package/dist/esm/RelatedContent.js +24 -24
- package/dist/esm/RelatedTopicsDropdown.js +12 -12
- package/dist/esm/RolesDeck.js +14 -14
- package/dist/esm/Schema.js +13 -13
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +5 -5
- package/dist/esm/SeriesListingDeck.js +31 -32
- package/dist/esm/{SeriesSlider-5728e349.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +31 -31
- package/dist/esm/SocialIcons.js +8 -8
- package/dist/esm/{SocialSearchComponent-c249903e.js → SocialSearchComponent-77a22145.js} +33 -33
- package/dist/esm/SocialShare.js +26 -26
- package/dist/esm/TaxonomyCard.js +45 -45
- package/dist/esm/TaxonomyDescription.js +51 -51
- package/dist/esm/TemplateNormal.js +66 -67
- package/dist/esm/ThumbnailCard.js +18 -18
- package/dist/esm/Ustream.js +30 -30
- package/dist/esm/VerticalHero.js +18 -18
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +14 -14
- package/dist/esm/VideoSeriesLandingPage.js +41 -42
- package/dist/esm/VideoSeriesListing.js +71 -72
- package/dist/esm/View.js +324 -328
- package/dist/esm/YahooHero.js +34 -34
- package/dist/esm/YoutubeGroup.js +49 -49
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-31d40a83.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-72edfd60.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-4201ccf6.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-fa0feeff.js} +2 -2
- package/dist/esm/{asyncToGenerator-958ef5fc.js → asyncToGenerator-9c835201.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-4abff0b1.js} +3 -3
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-8c71f470.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-a8a00786.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-3518b6fe.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-7fbbe94e.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getKeywords.js +1 -1
- package/dist/esm/getPtceActivities.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +70 -134
- package/dist/esm/getRootDocGroup.js +5 -5
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-260246fb.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -31
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-7ca7221e.js → index-620826cb.js} +574 -825
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-30a6257d.js → index-fa2ffe86.js} +89 -89
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-37268dca.js → index.esm-8ee5ff72.js} +16 -16
- package/dist/esm/{index.esm-9b042655.js → index.esm-c6715e80.js} +1 -1
- package/dist/esm/{index.esm-1bd8a0a8.js → index.esm-d1125763.js} +1 -1
- package/dist/esm/index.js +172 -173
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-d26c739e.js} +19 -19
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/keys-5e9bd229.js +23 -0
- package/dist/esm/{lodash-f97fd99a.js → lodash-ec8c6b48.js} +10 -58
- package/dist/esm/main-43ca42fe.js +886 -0
- package/dist/esm/{moment-bc12cb97.js → moment-b6f49411.js} +1 -1
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-3822f1ce.js} +20 -20
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-99bcfd93.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-0c65d837.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +2 -2
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-47a5394a.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-d92ed6e0.js} +34 -34
- package/dist/esm/urlFor.js +5 -5
- package/dist/esm/{urlForFile-b69adffc.js → urlForFile-0fc42ed8.js} +1 -1
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-cbba615a.js} +5 -5
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-406140e0.js} +2 -2
- package/package.json +2 -2
- package/dist/cjs/ImageSlider-17fdaf3b.js +0 -2813
- package/dist/cjs/Pagination-6359861a.js +0 -97
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-6054981e.js +0 -968
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/Pagination-9fe9f61d.js +0 -90
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/keys-31dcdb31.js +0 -23
- package/dist/esm/main-9f6806ea.js +0 -956
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,15 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _typeof } from './typeof-d92ed6e0.js';
|
|
3
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
4
6
|
import ReactDOM from 'react-dom';
|
|
5
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
7
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
8
7
|
import urlFor from './urlFor.js';
|
|
9
|
-
import {
|
|
8
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
9
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
10
|
+
import { g as getSerializers } from './index-620826cb.js';
|
|
10
11
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
function _extends() {
|
|
14
|
+
_extends = Object.assign || function (target) {
|
|
15
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
+
var source = arguments[i];
|
|
17
|
+
|
|
18
|
+
for (var key in source) {
|
|
19
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20
|
+
target[key] = source[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return _extends.apply(this, arguments);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
32
|
+
if (source == null) return {};
|
|
33
|
+
var target = {};
|
|
34
|
+
var sourceKeys = Object.keys(source);
|
|
35
|
+
var key, i;
|
|
36
|
+
|
|
37
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
38
|
+
key = sourceKeys[i];
|
|
39
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
40
|
+
target[key] = source[key];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return target;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
var classnames = createCommonjsModule(function (module) {
|
|
47
|
+
/*!
|
|
48
|
+
Copyright (c) 2017 Jed Watson.
|
|
49
|
+
Licensed under the MIT License (MIT), see
|
|
50
|
+
http://jedwatson.github.io/classnames
|
|
51
|
+
*/
|
|
52
|
+
/* global define */
|
|
53
|
+
|
|
54
|
+
(function () {
|
|
55
|
+
|
|
56
|
+
var hasOwn = {}.hasOwnProperty;
|
|
57
|
+
|
|
58
|
+
function classNames () {
|
|
59
|
+
var classes = [];
|
|
60
|
+
|
|
61
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
62
|
+
var arg = arguments[i];
|
|
63
|
+
if (!arg) continue;
|
|
64
|
+
|
|
65
|
+
var argType = typeof arg;
|
|
66
|
+
|
|
67
|
+
if (argType === 'string' || argType === 'number') {
|
|
68
|
+
classes.push(arg);
|
|
69
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
70
|
+
var inner = classNames.apply(null, arg);
|
|
71
|
+
if (inner) {
|
|
72
|
+
classes.push(inner);
|
|
73
|
+
}
|
|
74
|
+
} else if (argType === 'object') {
|
|
75
|
+
for (var key in arg) {
|
|
76
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
77
|
+
classes.push(key);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return classes.join(' ');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if ( module.exports) {
|
|
87
|
+
classNames.default = classNames;
|
|
88
|
+
module.exports = classNames;
|
|
89
|
+
} else {
|
|
90
|
+
window.classNames = classNames;
|
|
91
|
+
}
|
|
92
|
+
}());
|
|
93
|
+
});
|
|
13
94
|
|
|
14
95
|
/**
|
|
15
96
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -119,19 +200,19 @@ function useUncontrolled(props, config) {
|
|
|
119
200
|
function _inheritsLoose(subClass, superClass) {
|
|
120
201
|
subClass.prototype = Object.create(superClass.prototype);
|
|
121
202
|
subClass.prototype.constructor = subClass;
|
|
122
|
-
|
|
203
|
+
subClass.__proto__ = superClass;
|
|
123
204
|
}
|
|
124
205
|
|
|
125
|
-
var ThemeContext =
|
|
126
|
-
ThemeContext.Consumer
|
|
127
|
-
ThemeContext.Provider;
|
|
206
|
+
var ThemeContext = React.createContext({});
|
|
207
|
+
var Consumer = ThemeContext.Consumer,
|
|
208
|
+
Provider = ThemeContext.Provider;
|
|
128
209
|
|
|
129
210
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
130
211
|
var prefixes = useContext(ThemeContext);
|
|
131
212
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
132
213
|
}
|
|
133
214
|
|
|
134
|
-
var SelectableContext =
|
|
215
|
+
var SelectableContext = React.createContext(null);
|
|
135
216
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
136
217
|
if (href === void 0) {
|
|
137
218
|
href = null;
|
|
@@ -141,11 +222,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
141
222
|
return href || null;
|
|
142
223
|
};
|
|
143
224
|
|
|
144
|
-
var context
|
|
145
|
-
context
|
|
225
|
+
var context = React.createContext(null);
|
|
226
|
+
context.displayName = 'AccordionContext';
|
|
146
227
|
|
|
147
228
|
function useAccordionToggle(eventKey, onClick) {
|
|
148
|
-
var contextEventKey = useContext(context
|
|
229
|
+
var contextEventKey = useContext(context);
|
|
149
230
|
var onSelect = useContext(SelectableContext);
|
|
150
231
|
return function (e) {
|
|
151
232
|
/*
|
|
@@ -157,7 +238,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
157
238
|
if (onClick) onClick(e);
|
|
158
239
|
};
|
|
159
240
|
}
|
|
160
|
-
var AccordionToggle =
|
|
241
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
161
242
|
var _ref$as = _ref.as,
|
|
162
243
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
163
244
|
children = _ref.children,
|
|
@@ -171,40 +252,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
171
252
|
props.type = 'button';
|
|
172
253
|
}
|
|
173
254
|
|
|
174
|
-
return /*#__PURE__*/
|
|
255
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
175
256
|
ref: ref,
|
|
176
257
|
onClick: accordionOnClick
|
|
177
258
|
}, props), children);
|
|
178
259
|
});
|
|
179
260
|
|
|
180
|
-
|
|
181
|
-
* Returns the owner document of a given element.
|
|
182
|
-
*
|
|
183
|
-
* @param node the element
|
|
184
|
-
*/
|
|
185
|
-
function ownerDocument$1(node) {
|
|
261
|
+
function ownerDocument(node) {
|
|
186
262
|
return node && node.ownerDocument || document;
|
|
187
263
|
}
|
|
188
264
|
|
|
189
|
-
/**
|
|
190
|
-
* Returns the owner window of a given element.
|
|
191
|
-
*
|
|
192
|
-
* @param node the element
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
265
|
function ownerWindow(node) {
|
|
196
|
-
var doc = ownerDocument
|
|
266
|
+
var doc = ownerDocument(node);
|
|
197
267
|
return doc && doc.defaultView || window;
|
|
198
268
|
}
|
|
199
269
|
|
|
200
|
-
|
|
201
|
-
* Returns one or all computed style properties of an element.
|
|
202
|
-
*
|
|
203
|
-
* @param node the element
|
|
204
|
-
* @param psuedoElement the style property
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
270
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
208
271
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
209
272
|
}
|
|
210
273
|
|
|
@@ -233,7 +296,7 @@ function style(node, property) {
|
|
|
233
296
|
var transforms = '';
|
|
234
297
|
|
|
235
298
|
if (typeof property === 'string') {
|
|
236
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
299
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
237
300
|
}
|
|
238
301
|
|
|
239
302
|
Object.keys(property).forEach(function (key) {
|
|
@@ -284,11 +347,6 @@ try {
|
|
|
284
347
|
|
|
285
348
|
/**
|
|
286
349
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
287
|
-
*
|
|
288
|
-
* @param node the element
|
|
289
|
-
* @param eventName the event name
|
|
290
|
-
* @param handle the handler
|
|
291
|
-
* @param options event options
|
|
292
350
|
*/
|
|
293
351
|
function addEventListener(node, eventName, handler, options) {
|
|
294
352
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -311,14 +369,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
311
369
|
node.addEventListener(eventName, handler, options);
|
|
312
370
|
}
|
|
313
371
|
|
|
314
|
-
/**
|
|
315
|
-
* A `removeEventListener` ponyfill
|
|
316
|
-
*
|
|
317
|
-
* @param node the element
|
|
318
|
-
* @param eventName the event name
|
|
319
|
-
* @param handle the handler
|
|
320
|
-
* @param options event options
|
|
321
|
-
*/
|
|
322
372
|
function removeEventListener(node, eventName, handler, options) {
|
|
323
373
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
324
374
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -335,36 +385,18 @@ function listen(node, eventName, handler, options) {
|
|
|
335
385
|
};
|
|
336
386
|
}
|
|
337
387
|
|
|
338
|
-
/**
|
|
339
|
-
* Triggers an event on a given element.
|
|
340
|
-
*
|
|
341
|
-
* @param node the element
|
|
342
|
-
* @param eventName the event name to trigger
|
|
343
|
-
* @param bubbles whether the event should bubble up
|
|
344
|
-
* @param cancelable whether the event should be cancelable
|
|
345
|
-
*/
|
|
346
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
347
|
-
if (bubbles === void 0) {
|
|
348
|
-
bubbles = false;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (cancelable === void 0) {
|
|
352
|
-
cancelable = true;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
if (node) {
|
|
356
|
-
var event = document.createEvent('HTMLEvents');
|
|
357
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
358
|
-
node.dispatchEvent(event);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
388
|
function parseDuration(node) {
|
|
363
389
|
var str = style(node, 'transitionDuration') || '';
|
|
364
390
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
365
391
|
return parseFloat(str) * mult;
|
|
366
392
|
}
|
|
367
393
|
|
|
394
|
+
function triggerTransitionEnd(element) {
|
|
395
|
+
var evt = document.createEvent('HTMLEvents');
|
|
396
|
+
evt.initEvent('transitionend', true, true);
|
|
397
|
+
element.dispatchEvent(evt);
|
|
398
|
+
}
|
|
399
|
+
|
|
368
400
|
function emulateTransitionEnd(element, duration, padding) {
|
|
369
401
|
if (padding === void 0) {
|
|
370
402
|
padding = 5;
|
|
@@ -372,7 +404,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
372
404
|
|
|
373
405
|
var called = false;
|
|
374
406
|
var handle = setTimeout(function () {
|
|
375
|
-
if (!called)
|
|
407
|
+
if (!called) triggerTransitionEnd(element);
|
|
376
408
|
}, duration + padding);
|
|
377
409
|
var remove = listen(element, 'transitionend', function () {
|
|
378
410
|
called = true;
|
|
@@ -404,7 +436,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
404
436
|
exit: PropTypes.number,
|
|
405
437
|
appear: PropTypes.number
|
|
406
438
|
}).isRequired]) : null;
|
|
407
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
439
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
408
440
|
enter: PropTypes.string,
|
|
409
441
|
exit: PropTypes.string,
|
|
410
442
|
active: PropTypes.string
|
|
@@ -417,7 +449,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
417
449
|
exitActive: PropTypes.string
|
|
418
450
|
})]) : null;
|
|
419
451
|
|
|
420
|
-
var TransitionGroupContext =
|
|
452
|
+
var TransitionGroupContext = React.createContext(null);
|
|
421
453
|
|
|
422
454
|
var UNMOUNTED = 'unmounted';
|
|
423
455
|
var EXITED = 'exited';
|
|
@@ -786,35 +818,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
786
818
|
}
|
|
787
819
|
|
|
788
820
|
var _this$props = this.props,
|
|
789
|
-
children = _this$props.children
|
|
790
|
-
_this$props.in
|
|
791
|
-
_this$props.mountOnEnter
|
|
792
|
-
_this$props.unmountOnExit
|
|
793
|
-
_this$props.appear
|
|
794
|
-
_this$props.enter
|
|
795
|
-
_this$props.exit
|
|
796
|
-
_this$props.timeout
|
|
797
|
-
_this$props.addEndListener
|
|
798
|
-
_this$props.onEnter
|
|
799
|
-
_this$props.onEntering
|
|
800
|
-
_this$props.onEntered
|
|
801
|
-
_this$props.onExit
|
|
802
|
-
_this$props.onExiting
|
|
803
|
-
_this$props.onExited
|
|
804
|
-
_this$props.nodeRef
|
|
805
|
-
|
|
821
|
+
children = _this$props.children,
|
|
822
|
+
_in = _this$props.in,
|
|
823
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
824
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
825
|
+
_appear = _this$props.appear,
|
|
826
|
+
_enter = _this$props.enter,
|
|
827
|
+
_exit = _this$props.exit,
|
|
828
|
+
_timeout = _this$props.timeout,
|
|
829
|
+
_addEndListener = _this$props.addEndListener,
|
|
830
|
+
_onEnter = _this$props.onEnter,
|
|
831
|
+
_onEntering = _this$props.onEntering,
|
|
832
|
+
_onEntered = _this$props.onEntered,
|
|
833
|
+
_onExit = _this$props.onExit,
|
|
834
|
+
_onExiting = _this$props.onExiting,
|
|
835
|
+
_onExited = _this$props.onExited,
|
|
836
|
+
_nodeRef = _this$props.nodeRef,
|
|
837
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
806
838
|
|
|
807
839
|
return (
|
|
808
840
|
/*#__PURE__*/
|
|
809
841
|
// allows for nested Transitions
|
|
810
|
-
|
|
842
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
811
843
|
value: null
|
|
812
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
844
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
813
845
|
);
|
|
814
846
|
};
|
|
815
847
|
|
|
816
848
|
return Transition;
|
|
817
|
-
}(
|
|
849
|
+
}(React.Component);
|
|
818
850
|
|
|
819
851
|
Transition.contextType = TransitionGroupContext;
|
|
820
852
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -830,10 +862,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
830
862
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
831
863
|
*/
|
|
832
864
|
nodeRef: PropTypes.shape({
|
|
833
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
834
|
-
var value = propValue[key];
|
|
835
|
-
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
836
|
-
}
|
|
865
|
+
current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)
|
|
837
866
|
}),
|
|
838
867
|
|
|
839
868
|
/**
|
|
@@ -1005,7 +1034,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1005
1034
|
onExited: PropTypes.func
|
|
1006
1035
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1007
1036
|
|
|
1008
|
-
function noop
|
|
1037
|
+
function noop() {}
|
|
1009
1038
|
|
|
1010
1039
|
Transition.defaultProps = {
|
|
1011
1040
|
in: false,
|
|
@@ -1014,12 +1043,12 @@ Transition.defaultProps = {
|
|
|
1014
1043
|
appear: false,
|
|
1015
1044
|
enter: true,
|
|
1016
1045
|
exit: true,
|
|
1017
|
-
onEnter: noop
|
|
1018
|
-
onEntering: noop
|
|
1019
|
-
onEntered: noop
|
|
1020
|
-
onExit: noop
|
|
1021
|
-
onExiting: noop
|
|
1022
|
-
onExited: noop
|
|
1046
|
+
onEnter: noop,
|
|
1047
|
+
onEntering: noop,
|
|
1048
|
+
onEntered: noop,
|
|
1049
|
+
onExit: noop,
|
|
1050
|
+
onExiting: noop,
|
|
1051
|
+
onExited: noop
|
|
1023
1052
|
};
|
|
1024
1053
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1025
1054
|
Transition.EXITED = EXITED;
|
|
@@ -1085,7 +1114,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1085
1114
|
}
|
|
1086
1115
|
|
|
1087
1116
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1088
|
-
var defaultProps
|
|
1117
|
+
var defaultProps = {
|
|
1089
1118
|
in: false,
|
|
1090
1119
|
timeout: 300,
|
|
1091
1120
|
mountOnEnter: false,
|
|
@@ -1093,7 +1122,7 @@ var defaultProps$E = {
|
|
|
1093
1122
|
appear: false,
|
|
1094
1123
|
getDimensionValue: getDefaultDimensionValue
|
|
1095
1124
|
};
|
|
1096
|
-
var Collapse =
|
|
1125
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1097
1126
|
var onEnter = _ref.onEnter,
|
|
1098
1127
|
onEntering = _ref.onEntering,
|
|
1099
1128
|
onEntered = _ref.onEntered,
|
|
@@ -1140,7 +1169,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1140
1169
|
elem.style[computedDimension] = null;
|
|
1141
1170
|
}, onExiting);
|
|
1142
1171
|
}, [computedDimension, onExiting]);
|
|
1143
|
-
return /*#__PURE__*/
|
|
1172
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1144
1173
|
, _extends({
|
|
1145
1174
|
ref: ref,
|
|
1146
1175
|
addEndListener: transitionEnd
|
|
@@ -1152,33 +1181,29 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1152
1181
|
onExit: handleExit,
|
|
1153
1182
|
onExiting: handleExiting
|
|
1154
1183
|
}), function (state, innerProps) {
|
|
1155
|
-
return
|
|
1184
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1156
1185
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1157
1186
|
}));
|
|
1158
1187
|
});
|
|
1159
1188
|
}); // @ts-ignore
|
|
1160
1189
|
|
|
1161
1190
|
// @ts-ignore
|
|
1162
|
-
Collapse.defaultProps = defaultProps
|
|
1191
|
+
Collapse.defaultProps = defaultProps;
|
|
1163
1192
|
|
|
1164
|
-
var AccordionCollapse =
|
|
1193
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1165
1194
|
var children = _ref.children,
|
|
1166
1195
|
eventKey = _ref.eventKey,
|
|
1167
1196
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1168
1197
|
|
|
1169
|
-
var contextEventKey = useContext(context
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1173
|
-
value: null
|
|
1174
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1198
|
+
var contextEventKey = useContext(context);
|
|
1199
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1175
1200
|
ref: ref,
|
|
1176
1201
|
in: contextEventKey === eventKey
|
|
1177
|
-
}, props), /*#__PURE__*/
|
|
1202
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1178
1203
|
});
|
|
1179
1204
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1180
1205
|
|
|
1181
|
-
var Accordion =
|
|
1206
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1182
1207
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1183
1208
|
activeKey: 'onSelect'
|
|
1184
1209
|
}),
|
|
@@ -1192,11 +1217,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1192
1217
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1193
1218
|
|
|
1194
1219
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1195
|
-
return /*#__PURE__*/
|
|
1220
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1196
1221
|
value: activeKey || null
|
|
1197
|
-
}, /*#__PURE__*/
|
|
1222
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1198
1223
|
value: onSelect || null
|
|
1199
|
-
}, /*#__PURE__*/
|
|
1224
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1200
1225
|
ref: ref
|
|
1201
1226
|
}, controlledProps, {
|
|
1202
1227
|
className: finalClassName
|
|
@@ -1232,7 +1257,7 @@ function useEventCallback(fn) {
|
|
|
1232
1257
|
}
|
|
1233
1258
|
|
|
1234
1259
|
var _fadeStyles;
|
|
1235
|
-
var defaultProps$
|
|
1260
|
+
var defaultProps$1 = {
|
|
1236
1261
|
in: false,
|
|
1237
1262
|
timeout: 300,
|
|
1238
1263
|
mountOnEnter: false,
|
|
@@ -1240,7 +1265,7 @@ var defaultProps$D = {
|
|
|
1240
1265
|
appear: false
|
|
1241
1266
|
};
|
|
1242
1267
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1243
|
-
var Fade =
|
|
1268
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1244
1269
|
var className = _ref.className,
|
|
1245
1270
|
children = _ref.children,
|
|
1246
1271
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1249,51 +1274,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1249
1274
|
triggerBrowserReflow(node);
|
|
1250
1275
|
if (props.onEnter) props.onEnter(node);
|
|
1251
1276
|
}, [props]);
|
|
1252
|
-
return /*#__PURE__*/
|
|
1277
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1253
1278
|
ref: ref,
|
|
1254
1279
|
addEndListener: transitionEnd
|
|
1255
1280
|
}, props, {
|
|
1256
1281
|
onEnter: handleEnter
|
|
1257
1282
|
}), function (status, innerProps) {
|
|
1258
|
-
return
|
|
1283
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1259
1284
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1260
1285
|
}));
|
|
1261
1286
|
});
|
|
1262
1287
|
});
|
|
1263
|
-
Fade.defaultProps = defaultProps$
|
|
1288
|
+
Fade.defaultProps = defaultProps$1;
|
|
1264
1289
|
Fade.displayName = 'Fade';
|
|
1265
1290
|
|
|
1266
|
-
var propTypes
|
|
1291
|
+
var propTypes = {
|
|
1267
1292
|
label: PropTypes.string.isRequired,
|
|
1268
1293
|
onClick: PropTypes.func
|
|
1269
1294
|
};
|
|
1270
|
-
var defaultProps$
|
|
1295
|
+
var defaultProps$2 = {
|
|
1271
1296
|
label: 'Close'
|
|
1272
1297
|
};
|
|
1273
|
-
var CloseButton =
|
|
1298
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1274
1299
|
var label = _ref.label,
|
|
1275
1300
|
onClick = _ref.onClick,
|
|
1276
1301
|
className = _ref.className,
|
|
1277
1302
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1278
1303
|
|
|
1279
|
-
return /*#__PURE__*/
|
|
1304
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1280
1305
|
ref: ref,
|
|
1281
1306
|
type: "button",
|
|
1282
1307
|
className: classnames('close', className),
|
|
1283
1308
|
onClick: onClick
|
|
1284
|
-
}, props), /*#__PURE__*/
|
|
1309
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1285
1310
|
"aria-hidden": "true"
|
|
1286
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1311
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1287
1312
|
className: "sr-only"
|
|
1288
1313
|
}, label));
|
|
1289
1314
|
});
|
|
1290
1315
|
CloseButton.displayName = 'CloseButton';
|
|
1291
|
-
CloseButton.propTypes = propTypes
|
|
1292
|
-
CloseButton.defaultProps = defaultProps$
|
|
1316
|
+
CloseButton.propTypes = propTypes;
|
|
1317
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1293
1318
|
|
|
1294
1319
|
var divWithClassName = (function (className) {
|
|
1295
|
-
return
|
|
1296
|
-
return /*#__PURE__*/
|
|
1320
|
+
return React.forwardRef(function (p, ref) {
|
|
1321
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1297
1322
|
ref: ref,
|
|
1298
1323
|
className: classnames(p.className, className)
|
|
1299
1324
|
}));
|
|
@@ -1319,7 +1344,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1319
1344
|
Component = _ref.Component,
|
|
1320
1345
|
defaultProps = _ref.defaultProps;
|
|
1321
1346
|
|
|
1322
|
-
var BsComponent =
|
|
1347
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1323
1348
|
var className = _ref2.className,
|
|
1324
1349
|
bsPrefix = _ref2.bsPrefix,
|
|
1325
1350
|
_ref2$as = _ref2.as,
|
|
@@ -1327,7 +1352,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1327
1352
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1328
1353
|
|
|
1329
1354
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1330
|
-
return /*#__PURE__*/
|
|
1355
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1331
1356
|
ref: ref,
|
|
1332
1357
|
className: classnames(className, resolvedPrefix)
|
|
1333
1358
|
}, props));
|
|
@@ -1349,7 +1374,7 @@ function isTrivialHref(href) {
|
|
|
1349
1374
|
*/
|
|
1350
1375
|
|
|
1351
1376
|
|
|
1352
|
-
var SafeAnchor =
|
|
1377
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1353
1378
|
var _ref$as = _ref.as,
|
|
1354
1379
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1355
1380
|
disabled = _ref.disabled,
|
|
@@ -1393,7 +1418,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1393
1418
|
props['aria-disabled'] = true;
|
|
1394
1419
|
}
|
|
1395
1420
|
|
|
1396
|
-
return /*#__PURE__*/
|
|
1421
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1397
1422
|
ref: ref
|
|
1398
1423
|
}, props, {
|
|
1399
1424
|
onClick: handleClick,
|
|
@@ -1402,20 +1427,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1402
1427
|
});
|
|
1403
1428
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1404
1429
|
|
|
1405
|
-
var DivStyledAsH4
|
|
1406
|
-
DivStyledAsH4
|
|
1430
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1431
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1407
1432
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1408
|
-
Component: DivStyledAsH4
|
|
1433
|
+
Component: DivStyledAsH4
|
|
1409
1434
|
});
|
|
1410
1435
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1411
1436
|
Component: SafeAnchor
|
|
1412
1437
|
});
|
|
1413
|
-
var defaultProps$
|
|
1438
|
+
var defaultProps$3 = {
|
|
1414
1439
|
show: true,
|
|
1415
1440
|
transition: Fade,
|
|
1416
1441
|
closeLabel: 'Close alert'
|
|
1417
1442
|
};
|
|
1418
|
-
var Alert =
|
|
1443
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1419
1444
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1420
1445
|
show: 'onClose'
|
|
1421
1446
|
}),
|
|
@@ -1437,17 +1462,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1437
1462
|
}
|
|
1438
1463
|
});
|
|
1439
1464
|
var Transition = transition === true ? Fade : transition;
|
|
1440
|
-
var alert = /*#__PURE__*/
|
|
1465
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1441
1466
|
role: "alert"
|
|
1442
1467
|
}, Transition ? props : undefined, {
|
|
1443
1468
|
ref: ref,
|
|
1444
1469
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1445
|
-
}), dismissible && /*#__PURE__*/
|
|
1470
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1446
1471
|
onClick: handleClose,
|
|
1447
1472
|
label: closeLabel
|
|
1448
1473
|
}), children);
|
|
1449
1474
|
if (!Transition) return show ? alert : null;
|
|
1450
|
-
return /*#__PURE__*/
|
|
1475
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1451
1476
|
unmountOnExit: true
|
|
1452
1477
|
}, props, {
|
|
1453
1478
|
ref: undefined,
|
|
@@ -1455,14 +1480,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1455
1480
|
}), alert);
|
|
1456
1481
|
});
|
|
1457
1482
|
Alert.displayName = 'Alert';
|
|
1458
|
-
Alert.defaultProps = defaultProps$
|
|
1483
|
+
Alert.defaultProps = defaultProps$3;
|
|
1459
1484
|
Alert.Link = AlertLink;
|
|
1460
1485
|
Alert.Heading = AlertHeading;
|
|
1461
1486
|
|
|
1462
|
-
var defaultProps$
|
|
1487
|
+
var defaultProps$4 = {
|
|
1463
1488
|
pill: false
|
|
1464
1489
|
};
|
|
1465
|
-
var Badge =
|
|
1490
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1466
1491
|
var bsPrefix = _ref.bsPrefix,
|
|
1467
1492
|
variant = _ref.variant,
|
|
1468
1493
|
pill = _ref.pill,
|
|
@@ -1472,20 +1497,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1472
1497
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1473
1498
|
|
|
1474
1499
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1475
|
-
return /*#__PURE__*/
|
|
1500
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1476
1501
|
ref: ref
|
|
1477
1502
|
}, props, {
|
|
1478
1503
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1479
1504
|
}));
|
|
1480
1505
|
});
|
|
1481
1506
|
Badge.displayName = 'Badge';
|
|
1482
|
-
Badge.defaultProps = defaultProps$
|
|
1507
|
+
Badge.defaultProps = defaultProps$4;
|
|
1483
1508
|
|
|
1484
|
-
var defaultProps$
|
|
1509
|
+
var defaultProps$5 = {
|
|
1485
1510
|
active: false,
|
|
1486
1511
|
linkProps: {}
|
|
1487
1512
|
};
|
|
1488
|
-
var BreadcrumbItem =
|
|
1513
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1489
1514
|
var bsPrefix = _ref.bsPrefix,
|
|
1490
1515
|
active = _ref.active,
|
|
1491
1516
|
children = _ref.children,
|
|
@@ -1501,27 +1526,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1501
1526
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1502
1527
|
|
|
1503
1528
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1504
|
-
return /*#__PURE__*/
|
|
1529
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1505
1530
|
ref: ref
|
|
1506
1531
|
}, props, {
|
|
1507
1532
|
className: classnames(prefix, className, {
|
|
1508
1533
|
active: active
|
|
1509
1534
|
}),
|
|
1510
1535
|
"aria-current": active ? 'page' : undefined
|
|
1511
|
-
}), active ? children : /*#__PURE__*/
|
|
1536
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1512
1537
|
href: href,
|
|
1513
1538
|
title: title,
|
|
1514
1539
|
target: target
|
|
1515
1540
|
}), children));
|
|
1516
1541
|
});
|
|
1517
1542
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1518
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1543
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1519
1544
|
|
|
1520
|
-
var defaultProps$
|
|
1545
|
+
var defaultProps$6 = {
|
|
1521
1546
|
label: 'breadcrumb',
|
|
1522
1547
|
listProps: {}
|
|
1523
1548
|
};
|
|
1524
|
-
var Breadcrumb =
|
|
1549
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1525
1550
|
var bsPrefix = _ref.bsPrefix,
|
|
1526
1551
|
className = _ref.className,
|
|
1527
1552
|
listProps = _ref.listProps,
|
|
@@ -1532,24 +1557,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1532
1557
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1533
1558
|
|
|
1534
1559
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1535
|
-
return /*#__PURE__*/
|
|
1560
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1536
1561
|
"aria-label": label,
|
|
1537
1562
|
className: className,
|
|
1538
1563
|
ref: ref
|
|
1539
|
-
}, props), /*#__PURE__*/
|
|
1564
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1540
1565
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1541
1566
|
}), children));
|
|
1542
1567
|
});
|
|
1543
1568
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1544
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1569
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1545
1570
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1546
1571
|
|
|
1547
|
-
var defaultProps$
|
|
1572
|
+
var defaultProps$7 = {
|
|
1548
1573
|
variant: 'primary',
|
|
1549
1574
|
active: false,
|
|
1550
1575
|
disabled: false
|
|
1551
1576
|
};
|
|
1552
|
-
var Button =
|
|
1577
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1553
1578
|
var bsPrefix = _ref.bsPrefix,
|
|
1554
1579
|
variant = _ref.variant,
|
|
1555
1580
|
size = _ref.size,
|
|
@@ -1561,10 +1586,10 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1561
1586
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1562
1587
|
|
|
1563
1588
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1564
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1589
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1565
1590
|
|
|
1566
1591
|
if (props.href) {
|
|
1567
|
-
return /*#__PURE__*/
|
|
1592
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1568
1593
|
as: as,
|
|
1569
1594
|
ref: ref,
|
|
1570
1595
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1582,19 +1607,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1582
1607
|
}
|
|
1583
1608
|
|
|
1584
1609
|
var Component = as || 'button';
|
|
1585
|
-
return /*#__PURE__*/
|
|
1610
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1586
1611
|
className: classes
|
|
1587
1612
|
}));
|
|
1588
1613
|
});
|
|
1589
1614
|
Button.displayName = 'Button';
|
|
1590
|
-
Button.defaultProps = defaultProps$
|
|
1615
|
+
Button.defaultProps = defaultProps$7;
|
|
1591
1616
|
|
|
1592
|
-
var defaultProps$
|
|
1617
|
+
var defaultProps$8 = {
|
|
1593
1618
|
vertical: false,
|
|
1594
1619
|
toggle: false,
|
|
1595
1620
|
role: 'group'
|
|
1596
1621
|
};
|
|
1597
|
-
var ButtonGroup =
|
|
1622
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1598
1623
|
var bsPrefix = _ref.bsPrefix,
|
|
1599
1624
|
size = _ref.size,
|
|
1600
1625
|
toggle = _ref.toggle,
|
|
@@ -1607,38 +1632,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1607
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1608
1633
|
var baseClass = prefix;
|
|
1609
1634
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1610
|
-
return /*#__PURE__*/
|
|
1635
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1611
1636
|
ref: ref,
|
|
1612
1637
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1613
1638
|
}));
|
|
1614
1639
|
});
|
|
1615
1640
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1616
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1641
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1617
1642
|
|
|
1618
|
-
var defaultProps$
|
|
1643
|
+
var defaultProps$9 = {
|
|
1619
1644
|
role: 'toolbar'
|
|
1620
1645
|
};
|
|
1621
|
-
var ButtonToolbar =
|
|
1646
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1622
1647
|
var bsPrefix = _ref.bsPrefix,
|
|
1623
1648
|
className = _ref.className,
|
|
1624
1649
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1625
1650
|
|
|
1626
1651
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1627
|
-
return /*#__PURE__*/
|
|
1652
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1628
1653
|
ref: ref,
|
|
1629
1654
|
className: classnames(className, prefix)
|
|
1630
1655
|
}));
|
|
1631
1656
|
});
|
|
1632
1657
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1633
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1658
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1634
1659
|
|
|
1635
|
-
var context$1 =
|
|
1660
|
+
var context$1 = React.createContext(null);
|
|
1636
1661
|
context$1.displayName = 'CardContext';
|
|
1637
1662
|
|
|
1638
|
-
var defaultProps$
|
|
1663
|
+
var defaultProps$a = {
|
|
1639
1664
|
variant: null
|
|
1640
1665
|
};
|
|
1641
|
-
var CardImg =
|
|
1666
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1642
1667
|
function (_ref, ref) {
|
|
1643
1668
|
var bsPrefix = _ref.bsPrefix,
|
|
1644
1669
|
className = _ref.className,
|
|
@@ -1648,13 +1673,13 @@ function (_ref, ref) {
|
|
|
1648
1673
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1649
1674
|
|
|
1650
1675
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1651
|
-
return /*#__PURE__*/
|
|
1676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1652
1677
|
ref: ref,
|
|
1653
1678
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1654
1679
|
}, props));
|
|
1655
1680
|
});
|
|
1656
1681
|
CardImg.displayName = 'CardImg';
|
|
1657
|
-
CardImg.defaultProps = defaultProps$
|
|
1682
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1658
1683
|
|
|
1659
1684
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1660
1685
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1674,10 +1699,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1674
1699
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1675
1700
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1676
1701
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1677
|
-
var defaultProps$
|
|
1702
|
+
var defaultProps$b = {
|
|
1678
1703
|
body: false
|
|
1679
1704
|
};
|
|
1680
|
-
var Card =
|
|
1705
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1681
1706
|
var bsPrefix = _ref.bsPrefix,
|
|
1682
1707
|
className = _ref.className,
|
|
1683
1708
|
bg = _ref.bg,
|
|
@@ -1695,19 +1720,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1695
1720
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1696
1721
|
};
|
|
1697
1722
|
}, [prefix]);
|
|
1698
|
-
return /*#__PURE__*/
|
|
1723
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1699
1724
|
value: cardContext
|
|
1700
|
-
}, /*#__PURE__*/
|
|
1725
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1701
1726
|
ref: ref
|
|
1702
1727
|
}, props, {
|
|
1703
1728
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1704
1729
|
}), body ?
|
|
1705
1730
|
/*#__PURE__*/
|
|
1706
1731
|
// @ts-ignore
|
|
1707
|
-
|
|
1732
|
+
React.createElement(CardBody, null, children) : children));
|
|
1708
1733
|
});
|
|
1709
1734
|
Card.displayName = 'Card';
|
|
1710
|
-
Card.defaultProps = defaultProps$
|
|
1735
|
+
Card.defaultProps = defaultProps$b;
|
|
1711
1736
|
Card.Img = CardImg;
|
|
1712
1737
|
Card.Title = CardTitle;
|
|
1713
1738
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1840,20 +1865,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1840
1865
|
/**
|
|
1841
1866
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1842
1867
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
* ```tsx
|
|
1847
|
-
* const { set, clear } = useTimeout();
|
|
1848
|
-
* const [hello, showHello] = useState(false);
|
|
1849
|
-
* //Display hello after 5 seconds
|
|
1850
|
-
* set(() => showHello(true), 5000);
|
|
1851
|
-
* return (
|
|
1852
|
-
* <div className="App">
|
|
1853
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1854
|
-
* </div>
|
|
1855
|
-
* );
|
|
1856
|
-
* ```
|
|
1857
1868
|
*/
|
|
1858
1869
|
|
|
1859
1870
|
|
|
@@ -1894,22 +1905,7 @@ function useTimeout() {
|
|
|
1894
1905
|
|
|
1895
1906
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1896
1907
|
|
|
1897
|
-
var CarouselItem =
|
|
1898
|
-
var _ref$as = _ref.as,
|
|
1899
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1900
|
-
bsPrefix = _ref.bsPrefix,
|
|
1901
|
-
children = _ref.children,
|
|
1902
|
-
className = _ref.className,
|
|
1903
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1904
|
-
|
|
1905
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1906
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1907
|
-
ref: ref
|
|
1908
|
-
}, props, {
|
|
1909
|
-
className: finalClassName
|
|
1910
|
-
}), children);
|
|
1911
|
-
});
|
|
1912
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1908
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1913
1909
|
|
|
1914
1910
|
/**
|
|
1915
1911
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1922,27 +1918,13 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1922
1918
|
|
|
1923
1919
|
function map(children, func) {
|
|
1924
1920
|
var index = 0;
|
|
1925
|
-
return
|
|
1926
|
-
return
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
/**
|
|
1930
|
-
* Iterates through children that are "valid elements".
|
|
1931
|
-
*
|
|
1932
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1933
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1934
|
-
*/
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
function forEach(children, func) {
|
|
1938
|
-
var index = 0;
|
|
1939
|
-
React__default.Children.forEach(children, function (child) {
|
|
1940
|
-
if (React__default.isValidElement(child)) func(child, index++);
|
|
1921
|
+
return React.Children.map(children, function (child) {
|
|
1922
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1941
1923
|
});
|
|
1942
1924
|
}
|
|
1943
1925
|
|
|
1944
1926
|
var SWIPE_THRESHOLD = 40;
|
|
1945
|
-
var propTypes$
|
|
1927
|
+
var propTypes$1 = {
|
|
1946
1928
|
/**
|
|
1947
1929
|
* @default 'carousel'
|
|
1948
1930
|
*/
|
|
@@ -2044,7 +2026,7 @@ var propTypes$9 = {
|
|
|
2044
2026
|
*/
|
|
2045
2027
|
nextLabel: PropTypes.string
|
|
2046
2028
|
};
|
|
2047
|
-
var defaultProps$
|
|
2029
|
+
var defaultProps$c = {
|
|
2048
2030
|
slide: true,
|
|
2049
2031
|
fade: false,
|
|
2050
2032
|
controls: true,
|
|
@@ -2055,12 +2037,12 @@ var defaultProps$s = {
|
|
|
2055
2037
|
pause: 'hover',
|
|
2056
2038
|
wrap: true,
|
|
2057
2039
|
touch: true,
|
|
2058
|
-
prevIcon: /*#__PURE__*/
|
|
2040
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2059
2041
|
"aria-hidden": "true",
|
|
2060
2042
|
className: "carousel-control-prev-icon"
|
|
2061
2043
|
}),
|
|
2062
2044
|
prevLabel: 'Previous',
|
|
2063
|
-
nextIcon: /*#__PURE__*/
|
|
2045
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2064
2046
|
"aria-hidden": "true",
|
|
2065
2047
|
className: "carousel-control-next-icon"
|
|
2066
2048
|
}),
|
|
@@ -2128,6 +2110,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2128
2110
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2129
2111
|
if (nextDirectionRef.current) {
|
|
2130
2112
|
setDirection(nextDirectionRef.current);
|
|
2113
|
+
nextDirectionRef.current = null;
|
|
2131
2114
|
} else {
|
|
2132
2115
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2133
2116
|
}
|
|
@@ -2139,23 +2122,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2139
2122
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2140
2123
|
}
|
|
2141
2124
|
|
|
2142
|
-
|
|
2143
|
-
if (nextDirectionRef.current) {
|
|
2144
|
-
nextDirectionRef.current = null;
|
|
2145
|
-
}
|
|
2146
|
-
});
|
|
2147
|
-
var numChildren = 0;
|
|
2148
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2149
|
-
// (and count them, too)
|
|
2150
|
-
|
|
2151
|
-
forEach(children, function (child, index) {
|
|
2152
|
-
++numChildren;
|
|
2153
|
-
|
|
2154
|
-
if (index === activeIndex) {
|
|
2155
|
-
activeChildInterval = child.props.interval;
|
|
2156
|
-
}
|
|
2157
|
-
});
|
|
2158
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2125
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2159
2126
|
var prev = useCallback(function (event) {
|
|
2160
2127
|
if (isSliding) {
|
|
2161
2128
|
return;
|
|
@@ -2341,19 +2308,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2341
2308
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2342
2309
|
var intervalHandleRef = useRef();
|
|
2343
2310
|
useEffect(function () {
|
|
2344
|
-
var _ref, _activeChildIntervalR;
|
|
2345
|
-
|
|
2346
2311
|
if (!shouldPlay) {
|
|
2347
2312
|
return undefined;
|
|
2348
2313
|
}
|
|
2349
2314
|
|
|
2350
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2315
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2351
2316
|
return function () {
|
|
2352
2317
|
if (intervalHandleRef.current !== null) {
|
|
2353
2318
|
clearInterval(intervalHandleRef.current);
|
|
2354
2319
|
}
|
|
2355
2320
|
};
|
|
2356
|
-
}, [shouldPlay, next,
|
|
2321
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2357
2322
|
var indicatorOnClicks = useMemo(function () {
|
|
2358
2323
|
return indicators && Array.from({
|
|
2359
2324
|
length: numChildren
|
|
@@ -2365,7 +2330,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2365
2330
|
};
|
|
2366
2331
|
});
|
|
2367
2332
|
}, [indicators, numChildren, onSelect]);
|
|
2368
|
-
return /*#__PURE__*/
|
|
2333
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2369
2334
|
ref: elementRef
|
|
2370
2335
|
}, props, {
|
|
2371
2336
|
onKeyDown: handleKeyDown,
|
|
@@ -2375,52 +2340,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2340
|
onTouchMove: handleTouchMove,
|
|
2376
2341
|
onTouchEnd: handleTouchEnd,
|
|
2377
2342
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2378
|
-
}), indicators && /*#__PURE__*/
|
|
2343
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2379
2344
|
className: prefix + "-indicators"
|
|
2380
2345
|
}, map(children, function (_child, index) {
|
|
2381
|
-
return /*#__PURE__*/
|
|
2346
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2382
2347
|
key: index,
|
|
2383
2348
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2384
2349
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2385
2350
|
});
|
|
2386
|
-
})), /*#__PURE__*/
|
|
2351
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2387
2352
|
className: prefix + "-inner"
|
|
2388
2353
|
}, map(children, function (child, index) {
|
|
2389
2354
|
var isActive = index === renderedActiveIndex;
|
|
2390
|
-
return slide ? /*#__PURE__*/
|
|
2355
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2391
2356
|
in: isActive,
|
|
2392
2357
|
onEnter: isActive ? handleEnter : undefined,
|
|
2393
2358
|
onEntered: isActive ? handleEntered : undefined,
|
|
2394
2359
|
addEndListener: transitionEnd
|
|
2395
2360
|
}, function (status) {
|
|
2396
|
-
return
|
|
2361
|
+
return React.cloneElement(child, {
|
|
2397
2362
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2398
2363
|
});
|
|
2399
|
-
}) :
|
|
2364
|
+
}) : React.cloneElement(child, {
|
|
2400
2365
|
className: classnames(child.props.className, isActive && 'active')
|
|
2401
2366
|
});
|
|
2402
|
-
})), controls && /*#__PURE__*/
|
|
2367
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2403
2368
|
className: prefix + "-control-prev",
|
|
2404
2369
|
onClick: prev
|
|
2405
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2370
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2406
2371
|
className: "sr-only"
|
|
2407
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2372
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2408
2373
|
className: prefix + "-control-next",
|
|
2409
2374
|
onClick: next
|
|
2410
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2375
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2411
2376
|
className: "sr-only"
|
|
2412
2377
|
}, nextLabel))));
|
|
2413
2378
|
}
|
|
2414
2379
|
|
|
2415
|
-
var Carousel =
|
|
2380
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2416
2381
|
Carousel.displayName = 'Carousel';
|
|
2417
|
-
Carousel.propTypes = propTypes$
|
|
2418
|
-
Carousel.defaultProps = defaultProps$
|
|
2382
|
+
Carousel.propTypes = propTypes$1;
|
|
2383
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2419
2384
|
Carousel.Caption = CarouselCaption;
|
|
2420
2385
|
Carousel.Item = CarouselItem;
|
|
2421
2386
|
|
|
2422
|
-
var DEVICE_SIZES
|
|
2423
|
-
var Col =
|
|
2387
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2388
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2424
2389
|
function (_ref, ref) {
|
|
2425
2390
|
var bsPrefix = _ref.bsPrefix,
|
|
2426
2391
|
className = _ref.className,
|
|
@@ -2431,7 +2396,7 @@ function (_ref, ref) {
|
|
|
2431
2396
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2432
2397
|
var spans = [];
|
|
2433
2398
|
var classes = [];
|
|
2434
|
-
DEVICE_SIZES
|
|
2399
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2435
2400
|
var propValue = props[brkPoint];
|
|
2436
2401
|
delete props[brkPoint];
|
|
2437
2402
|
var span;
|
|
@@ -2457,7 +2422,7 @@ function (_ref, ref) {
|
|
|
2457
2422
|
spans.push(prefix); // plain 'col'
|
|
2458
2423
|
}
|
|
2459
2424
|
|
|
2460
|
-
return /*#__PURE__*/
|
|
2425
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2461
2426
|
ref: ref,
|
|
2462
2427
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2463
2428
|
}));
|
|
@@ -2465,13 +2430,6 @@ function (_ref, ref) {
|
|
|
2465
2430
|
Col.displayName = 'Col';
|
|
2466
2431
|
|
|
2467
2432
|
var matchesImpl;
|
|
2468
|
-
/**
|
|
2469
|
-
* Checks if a given element matches a selector.
|
|
2470
|
-
*
|
|
2471
|
-
* @param node the element
|
|
2472
|
-
* @param selector the selector
|
|
2473
|
-
*/
|
|
2474
|
-
|
|
2475
2433
|
function matches(node, selector) {
|
|
2476
2434
|
if (!matchesImpl) {
|
|
2477
2435
|
var body = document.body;
|
|
@@ -2486,13 +2444,6 @@ function matches(node, selector) {
|
|
|
2486
2444
|
}
|
|
2487
2445
|
|
|
2488
2446
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2489
|
-
/**
|
|
2490
|
-
* Runs `querySelectorAll` on a given element.
|
|
2491
|
-
*
|
|
2492
|
-
* @param element the element
|
|
2493
|
-
* @param selector the selector
|
|
2494
|
-
*/
|
|
2495
|
-
|
|
2496
2447
|
function qsa(element, selector) {
|
|
2497
2448
|
return toArray(element.querySelectorAll(selector));
|
|
2498
2449
|
}
|
|
@@ -2580,7 +2531,7 @@ function useForceUpdate() {
|
|
|
2580
2531
|
return dispatch;
|
|
2581
2532
|
}
|
|
2582
2533
|
|
|
2583
|
-
var DropdownContext = /*#__PURE__*/
|
|
2534
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2584
2535
|
|
|
2585
2536
|
function useSafeState(state) {
|
|
2586
2537
|
var isMounted = useMounted();
|
|
@@ -2626,11 +2577,21 @@ function getBasePlacement(placement) {
|
|
|
2626
2577
|
return placement.split('-')[0];
|
|
2627
2578
|
}
|
|
2628
2579
|
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2580
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2581
|
+
// means it doesn't take into account transforms.
|
|
2582
|
+
function getLayoutRect(element) {
|
|
2583
|
+
return {
|
|
2584
|
+
x: element.offsetLeft,
|
|
2585
|
+
y: element.offsetTop,
|
|
2586
|
+
width: element.offsetWidth,
|
|
2587
|
+
height: element.offsetHeight
|
|
2588
|
+
};
|
|
2589
|
+
}
|
|
2633
2590
|
|
|
2591
|
+
/*:: import type { Window } from '../types'; */
|
|
2592
|
+
|
|
2593
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2594
|
+
function getWindow(node) {
|
|
2634
2595
|
if (node.toString() !== '[object Window]') {
|
|
2635
2596
|
var ownerDocument = node.ownerDocument;
|
|
2636
2597
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2639,103 +2600,43 @@ function getWindow(node) {
|
|
|
2639
2600
|
return node;
|
|
2640
2601
|
}
|
|
2641
2602
|
|
|
2603
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2604
|
+
Element); */
|
|
2605
|
+
|
|
2642
2606
|
function isElement(node) {
|
|
2643
2607
|
var OwnElement = getWindow(node).Element;
|
|
2644
2608
|
return node instanceof OwnElement || node instanceof Element;
|
|
2645
2609
|
}
|
|
2610
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2611
|
+
HTMLElement); */
|
|
2612
|
+
|
|
2646
2613
|
|
|
2647
2614
|
function isHTMLElement(node) {
|
|
2648
2615
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2649
2616
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2650
2617
|
}
|
|
2618
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2619
|
+
ShadowRoot); */
|
|
2651
2620
|
|
|
2652
|
-
function isShadowRoot(node) {
|
|
2653
|
-
// IE 11 has no ShadowRoot
|
|
2654
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2655
|
-
return false;
|
|
2656
|
-
}
|
|
2657
2621
|
|
|
2622
|
+
function isShadowRoot(node) {
|
|
2658
2623
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2659
2624
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2660
2625
|
}
|
|
2661
2626
|
|
|
2662
|
-
|
|
2663
|
-
var min = Math.min;
|
|
2664
|
-
var round = Math.round;
|
|
2665
|
-
|
|
2666
|
-
function getBoundingClientRect(element, includeScale) {
|
|
2667
|
-
if (includeScale === void 0) {
|
|
2668
|
-
includeScale = false;
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
var rect = element.getBoundingClientRect();
|
|
2672
|
-
var scaleX = 1;
|
|
2673
|
-
var scaleY = 1;
|
|
2674
|
-
|
|
2675
|
-
if (isHTMLElement(element) && includeScale) {
|
|
2676
|
-
var offsetHeight = element.offsetHeight;
|
|
2677
|
-
var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
|
|
2678
|
-
// Fallback to 1 in case both values are `0`
|
|
2679
|
-
|
|
2680
|
-
if (offsetWidth > 0) {
|
|
2681
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
if (offsetHeight > 0) {
|
|
2685
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
2686
|
-
}
|
|
2687
|
-
}
|
|
2688
|
-
|
|
2689
|
-
return {
|
|
2690
|
-
width: rect.width / scaleX,
|
|
2691
|
-
height: rect.height / scaleY,
|
|
2692
|
-
top: rect.top / scaleY,
|
|
2693
|
-
right: rect.right / scaleX,
|
|
2694
|
-
bottom: rect.bottom / scaleY,
|
|
2695
|
-
left: rect.left / scaleX,
|
|
2696
|
-
x: rect.left / scaleX,
|
|
2697
|
-
y: rect.top / scaleY
|
|
2698
|
-
};
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
// means it doesn't take into account transforms.
|
|
2702
|
-
|
|
2703
|
-
function getLayoutRect(element) {
|
|
2704
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2705
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2706
|
-
|
|
2707
|
-
var width = element.offsetWidth;
|
|
2708
|
-
var height = element.offsetHeight;
|
|
2709
|
-
|
|
2710
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2711
|
-
width = clientRect.width;
|
|
2712
|
-
}
|
|
2713
|
-
|
|
2714
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2715
|
-
height = clientRect.height;
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
return {
|
|
2719
|
-
x: element.offsetLeft,
|
|
2720
|
-
y: element.offsetTop,
|
|
2721
|
-
width: width,
|
|
2722
|
-
height: height
|
|
2723
|
-
};
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
function contains$1(parent, child) {
|
|
2627
|
+
function contains(parent, child) {
|
|
2727
2628
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2728
2629
|
|
|
2729
2630
|
if (parent.contains(child)) {
|
|
2730
2631
|
return true;
|
|
2731
2632
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2732
|
-
else if (
|
|
2633
|
+
else if (isShadowRoot(rootNode)) {
|
|
2733
2634
|
var next = child;
|
|
2734
2635
|
|
|
2735
2636
|
do {
|
|
2736
2637
|
if (next && parent.isSameNode(next)) {
|
|
2737
2638
|
return true;
|
|
2738
|
-
} // $FlowFixMe
|
|
2639
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2739
2640
|
|
|
2740
2641
|
|
|
2741
2642
|
next = next.parentNode || next.host;
|
|
@@ -2750,7 +2651,7 @@ function getNodeName(element) {
|
|
|
2750
2651
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2751
2652
|
}
|
|
2752
2653
|
|
|
2753
|
-
function getComputedStyle$
|
|
2654
|
+
function getComputedStyle$2(element) {
|
|
2754
2655
|
return getWindow(element).getComputedStyle(element);
|
|
2755
2656
|
}
|
|
2756
2657
|
|
|
@@ -2759,9 +2660,8 @@ function isTableElement(element) {
|
|
|
2759
2660
|
}
|
|
2760
2661
|
|
|
2761
2662
|
function getDocumentElement(element) {
|
|
2762
|
-
// $FlowFixMe
|
|
2763
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2764
|
-
element.document) || window.document).documentElement;
|
|
2663
|
+
// $FlowFixMe: assume body is always available
|
|
2664
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2765
2665
|
}
|
|
2766
2666
|
|
|
2767
2667
|
function getParentNode(element) {
|
|
@@ -2769,13 +2669,12 @@ function getParentNode(element) {
|
|
|
2769
2669
|
return element;
|
|
2770
2670
|
}
|
|
2771
2671
|
|
|
2772
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2773
|
-
// $FlowFixMe[incompatible-return]
|
|
2774
|
-
// $FlowFixMe[prop-missing]
|
|
2672
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2775
2673
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2776
|
-
element.parentNode ||
|
|
2777
|
-
|
|
2778
|
-
|
|
2674
|
+
element.parentNode || // DOM Element detected
|
|
2675
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2676
|
+
element.host || // ShadowRoot detected
|
|
2677
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2779
2678
|
getDocumentElement(element) // fallback
|
|
2780
2679
|
|
|
2781
2680
|
);
|
|
@@ -2783,36 +2682,33 @@ function getParentNode(element) {
|
|
|
2783
2682
|
|
|
2784
2683
|
function getTrueOffsetParent(element) {
|
|
2785
2684
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2786
|
-
getComputedStyle$
|
|
2685
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2787
2686
|
return null;
|
|
2788
2687
|
}
|
|
2789
2688
|
|
|
2790
|
-
|
|
2791
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2792
|
-
// return the containing block
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
function getContainingBlock(element) {
|
|
2796
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2797
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2689
|
+
var offsetParent = element.offsetParent;
|
|
2798
2690
|
|
|
2799
|
-
if (
|
|
2800
|
-
|
|
2801
|
-
var elementCss = getComputedStyle$1(element);
|
|
2691
|
+
if (offsetParent) {
|
|
2692
|
+
var html = getDocumentElement(offsetParent);
|
|
2802
2693
|
|
|
2803
|
-
if (
|
|
2804
|
-
return
|
|
2694
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2695
|
+
return html;
|
|
2805
2696
|
}
|
|
2806
2697
|
}
|
|
2807
2698
|
|
|
2699
|
+
return offsetParent;
|
|
2700
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2701
|
+
// return the containing block
|
|
2702
|
+
|
|
2703
|
+
|
|
2704
|
+
function getContainingBlock(element) {
|
|
2808
2705
|
var currentNode = getParentNode(element);
|
|
2809
2706
|
|
|
2810
2707
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2811
|
-
var css = getComputedStyle$
|
|
2708
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2812
2709
|
// create a containing block.
|
|
2813
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2814
2710
|
|
|
2815
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2711
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2816
2712
|
return currentNode;
|
|
2817
2713
|
} else {
|
|
2818
2714
|
currentNode = currentNode.parentNode;
|
|
@@ -2828,11 +2724,11 @@ function getOffsetParent(element) {
|
|
|
2828
2724
|
var window = getWindow(element);
|
|
2829
2725
|
var offsetParent = getTrueOffsetParent(element);
|
|
2830
2726
|
|
|
2831
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2727
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2832
2728
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2833
2729
|
}
|
|
2834
2730
|
|
|
2835
|
-
if (offsetParent &&
|
|
2731
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2836
2732
|
return window;
|
|
2837
2733
|
}
|
|
2838
2734
|
|
|
@@ -2843,12 +2739,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2843
2739
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2844
2740
|
}
|
|
2845
2741
|
|
|
2846
|
-
function within(min
|
|
2847
|
-
return max(min
|
|
2848
|
-
}
|
|
2849
|
-
function withinMaxClamp(min, value, max) {
|
|
2850
|
-
var v = within(min, value, max);
|
|
2851
|
-
return v > max ? max : v;
|
|
2742
|
+
function within(min, value, max) {
|
|
2743
|
+
return Math.max(min, Math.min(value, max));
|
|
2852
2744
|
}
|
|
2853
2745
|
|
|
2854
2746
|
function getFreshSideObject() {
|
|
@@ -2861,7 +2753,7 @@ function getFreshSideObject() {
|
|
|
2861
2753
|
}
|
|
2862
2754
|
|
|
2863
2755
|
function mergePaddingObject(paddingObject) {
|
|
2864
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2756
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2865
2757
|
}
|
|
2866
2758
|
|
|
2867
2759
|
function expandToHashMap(value, keys) {
|
|
@@ -2871,19 +2763,11 @@ function expandToHashMap(value, keys) {
|
|
|
2871
2763
|
}, {});
|
|
2872
2764
|
}
|
|
2873
2765
|
|
|
2874
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2875
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2876
|
-
placement: state.placement
|
|
2877
|
-
})) : padding;
|
|
2878
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2879
|
-
};
|
|
2880
|
-
|
|
2881
2766
|
function arrow(_ref) {
|
|
2882
2767
|
var _state$modifiersData$;
|
|
2883
2768
|
|
|
2884
2769
|
var state = _ref.state,
|
|
2885
|
-
name = _ref.name
|
|
2886
|
-
options = _ref.options;
|
|
2770
|
+
name = _ref.name;
|
|
2887
2771
|
var arrowElement = state.elements.arrow;
|
|
2888
2772
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2889
2773
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2895,7 +2779,7 @@ function arrow(_ref) {
|
|
|
2895
2779
|
return;
|
|
2896
2780
|
}
|
|
2897
2781
|
|
|
2898
|
-
var paddingObject =
|
|
2782
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2899
2783
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2900
2784
|
var minProp = axis === 'y' ? top : left;
|
|
2901
2785
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2915,11 +2799,14 @@ function arrow(_ref) {
|
|
|
2915
2799
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2916
2800
|
}
|
|
2917
2801
|
|
|
2918
|
-
function effect
|
|
2802
|
+
function effect(_ref2) {
|
|
2919
2803
|
var state = _ref2.state,
|
|
2920
|
-
options = _ref2.options
|
|
2804
|
+
options = _ref2.options,
|
|
2805
|
+
name = _ref2.name;
|
|
2921
2806
|
var _options$element = options.element,
|
|
2922
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2807
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2808
|
+
_options$padding = options.padding,
|
|
2809
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2923
2810
|
|
|
2924
2811
|
if (arrowElement == null) {
|
|
2925
2812
|
return;
|
|
@@ -2940,7 +2827,7 @@ function effect$1(_ref2) {
|
|
|
2940
2827
|
}
|
|
2941
2828
|
}
|
|
2942
2829
|
|
|
2943
|
-
if (!contains
|
|
2830
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2944
2831
|
if (process.env.NODE_ENV !== "production") {
|
|
2945
2832
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2946
2833
|
}
|
|
@@ -2949,6 +2836,9 @@ function effect$1(_ref2) {
|
|
|
2949
2836
|
}
|
|
2950
2837
|
|
|
2951
2838
|
state.elements.arrow = arrowElement;
|
|
2839
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2840
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2841
|
+
};
|
|
2952
2842
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2953
2843
|
|
|
2954
2844
|
|
|
@@ -2957,15 +2847,11 @@ var arrow$1 = {
|
|
|
2957
2847
|
enabled: true,
|
|
2958
2848
|
phase: 'main',
|
|
2959
2849
|
fn: arrow,
|
|
2960
|
-
effect: effect
|
|
2850
|
+
effect: effect,
|
|
2961
2851
|
requires: ['popperOffsets'],
|
|
2962
2852
|
requiresIfExists: ['preventOverflow']
|
|
2963
2853
|
};
|
|
2964
2854
|
|
|
2965
|
-
function getVariation(placement) {
|
|
2966
|
-
return placement.split('-')[1];
|
|
2967
|
-
}
|
|
2968
|
-
|
|
2969
2855
|
var unsetSides = {
|
|
2970
2856
|
top: 'auto',
|
|
2971
2857
|
right: 'auto',
|
|
@@ -2975,14 +2861,14 @@ var unsetSides = {
|
|
|
2975
2861
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2976
2862
|
// cleanly divide the values into the appropriate subpixels.
|
|
2977
2863
|
|
|
2978
|
-
function
|
|
2864
|
+
function roundOffsets(_ref) {
|
|
2979
2865
|
var x = _ref.x,
|
|
2980
2866
|
y = _ref.y;
|
|
2981
2867
|
var win = window;
|
|
2982
2868
|
var dpr = win.devicePixelRatio || 1;
|
|
2983
2869
|
return {
|
|
2984
|
-
x: round(x * dpr) / dpr || 0,
|
|
2985
|
-
y: round(y * dpr) / dpr || 0
|
|
2870
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2871
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2986
2872
|
};
|
|
2987
2873
|
}
|
|
2988
2874
|
|
|
@@ -2992,19 +2878,14 @@ function mapToStyles(_ref2) {
|
|
|
2992
2878
|
var popper = _ref2.popper,
|
|
2993
2879
|
popperRect = _ref2.popperRect,
|
|
2994
2880
|
placement = _ref2.placement,
|
|
2995
|
-
variation = _ref2.variation,
|
|
2996
2881
|
offsets = _ref2.offsets,
|
|
2997
2882
|
position = _ref2.position,
|
|
2998
2883
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2999
|
-
adaptive = _ref2.adaptive
|
|
3000
|
-
roundOffsets = _ref2.roundOffsets,
|
|
3001
|
-
isFixed = _ref2.isFixed;
|
|
2884
|
+
adaptive = _ref2.adaptive;
|
|
3002
2885
|
|
|
3003
|
-
var
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
_ref3$y = _ref3.y,
|
|
3007
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2886
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2887
|
+
x = _roundOffsets.x,
|
|
2888
|
+
y = _roundOffsets.y;
|
|
3008
2889
|
|
|
3009
2890
|
var hasX = offsets.hasOwnProperty('x');
|
|
3010
2891
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -3014,34 +2895,23 @@ function mapToStyles(_ref2) {
|
|
|
3014
2895
|
|
|
3015
2896
|
if (adaptive) {
|
|
3016
2897
|
var offsetParent = getOffsetParent(popper);
|
|
3017
|
-
var heightProp = 'clientHeight';
|
|
3018
|
-
var widthProp = 'clientWidth';
|
|
3019
2898
|
|
|
3020
2899
|
if (offsetParent === getWindow(popper)) {
|
|
3021
2900
|
offsetParent = getDocumentElement(popper);
|
|
2901
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3022
2902
|
|
|
3023
|
-
|
|
3024
|
-
heightProp = 'scrollHeight';
|
|
3025
|
-
widthProp = 'scrollWidth';
|
|
3026
|
-
}
|
|
3027
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2903
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3028
2904
|
|
|
3029
2905
|
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
2906
|
+
if (placement === top) {
|
|
3033
2907
|
sideY = bottom;
|
|
3034
|
-
|
|
3035
|
-
offsetParent[heightProp];
|
|
3036
|
-
y -= offsetY - popperRect.height;
|
|
2908
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3037
2909
|
y *= gpuAcceleration ? 1 : -1;
|
|
3038
2910
|
}
|
|
3039
2911
|
|
|
3040
|
-
if (placement === left
|
|
2912
|
+
if (placement === left) {
|
|
3041
2913
|
sideX = right;
|
|
3042
|
-
|
|
3043
|
-
offsetParent[widthProp];
|
|
3044
|
-
x -= offsetX - popperRect.width;
|
|
2914
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3045
2915
|
x *= gpuAcceleration ? 1 : -1;
|
|
3046
2916
|
}
|
|
3047
2917
|
}
|
|
@@ -3053,24 +2923,22 @@ function mapToStyles(_ref2) {
|
|
|
3053
2923
|
if (gpuAcceleration) {
|
|
3054
2924
|
var _Object$assign;
|
|
3055
2925
|
|
|
3056
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1)
|
|
2926
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3057
2927
|
}
|
|
3058
2928
|
|
|
3059
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2929
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3060
2930
|
}
|
|
3061
2931
|
|
|
3062
|
-
function computeStyles(
|
|
3063
|
-
var state =
|
|
3064
|
-
options =
|
|
2932
|
+
function computeStyles(_ref3) {
|
|
2933
|
+
var state = _ref3.state,
|
|
2934
|
+
options = _ref3.options;
|
|
3065
2935
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3066
2936
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3067
2937
|
_options$adaptive = options.adaptive,
|
|
3068
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3069
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3070
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2938
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3071
2939
|
|
|
3072
2940
|
if (process.env.NODE_ENV !== "production") {
|
|
3073
|
-
var transitionProperty = getComputedStyle$
|
|
2941
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3074
2942
|
|
|
3075
2943
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3076
2944
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3081,32 +2949,28 @@ function computeStyles(_ref4) {
|
|
|
3081
2949
|
|
|
3082
2950
|
var commonStyles = {
|
|
3083
2951
|
placement: getBasePlacement(state.placement),
|
|
3084
|
-
variation: getVariation(state.placement),
|
|
3085
2952
|
popper: state.elements.popper,
|
|
3086
2953
|
popperRect: state.rects.popper,
|
|
3087
|
-
gpuAcceleration: gpuAcceleration
|
|
3088
|
-
isFixed: state.options.strategy === 'fixed'
|
|
2954
|
+
gpuAcceleration: gpuAcceleration
|
|
3089
2955
|
};
|
|
3090
2956
|
|
|
3091
2957
|
if (state.modifiersData.popperOffsets != null) {
|
|
3092
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2958
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3093
2959
|
offsets: state.modifiersData.popperOffsets,
|
|
3094
2960
|
position: state.options.strategy,
|
|
3095
|
-
adaptive: adaptive
|
|
3096
|
-
roundOffsets: roundOffsets
|
|
2961
|
+
adaptive: adaptive
|
|
3097
2962
|
})));
|
|
3098
2963
|
}
|
|
3099
2964
|
|
|
3100
2965
|
if (state.modifiersData.arrow != null) {
|
|
3101
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2966
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3102
2967
|
offsets: state.modifiersData.arrow,
|
|
3103
2968
|
position: 'absolute',
|
|
3104
|
-
adaptive: false
|
|
3105
|
-
roundOffsets: roundOffsets
|
|
2969
|
+
adaptive: false
|
|
3106
2970
|
})));
|
|
3107
2971
|
}
|
|
3108
2972
|
|
|
3109
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2973
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3110
2974
|
'data-popper-placement': state.placement
|
|
3111
2975
|
});
|
|
3112
2976
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3124,7 +2988,7 @@ var passive = {
|
|
|
3124
2988
|
passive: true
|
|
3125
2989
|
};
|
|
3126
2990
|
|
|
3127
|
-
function effect(_ref) {
|
|
2991
|
+
function effect$1(_ref) {
|
|
3128
2992
|
var state = _ref.state,
|
|
3129
2993
|
instance = _ref.instance,
|
|
3130
2994
|
options = _ref.options;
|
|
@@ -3164,11 +3028,11 @@ var eventListeners = {
|
|
|
3164
3028
|
enabled: true,
|
|
3165
3029
|
phase: 'write',
|
|
3166
3030
|
fn: function fn() {},
|
|
3167
|
-
effect: effect,
|
|
3031
|
+
effect: effect$1,
|
|
3168
3032
|
data: {}
|
|
3169
3033
|
};
|
|
3170
3034
|
|
|
3171
|
-
var hash
|
|
3035
|
+
var hash = {
|
|
3172
3036
|
left: 'right',
|
|
3173
3037
|
right: 'left',
|
|
3174
3038
|
bottom: 'top',
|
|
@@ -3176,20 +3040,34 @@ var hash$1 = {
|
|
|
3176
3040
|
};
|
|
3177
3041
|
function getOppositePlacement(placement) {
|
|
3178
3042
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3179
|
-
return hash
|
|
3043
|
+
return hash[matched];
|
|
3180
3044
|
});
|
|
3181
3045
|
}
|
|
3182
3046
|
|
|
3183
|
-
var hash = {
|
|
3047
|
+
var hash$1 = {
|
|
3184
3048
|
start: 'end',
|
|
3185
3049
|
end: 'start'
|
|
3186
3050
|
};
|
|
3187
3051
|
function getOppositeVariationPlacement(placement) {
|
|
3188
3052
|
return placement.replace(/start|end/g, function (matched) {
|
|
3189
|
-
return hash[matched];
|
|
3053
|
+
return hash$1[matched];
|
|
3190
3054
|
});
|
|
3191
3055
|
}
|
|
3192
3056
|
|
|
3057
|
+
function getBoundingClientRect(element) {
|
|
3058
|
+
var rect = element.getBoundingClientRect();
|
|
3059
|
+
return {
|
|
3060
|
+
width: rect.width,
|
|
3061
|
+
height: rect.height,
|
|
3062
|
+
top: rect.top,
|
|
3063
|
+
right: rect.right,
|
|
3064
|
+
bottom: rect.bottom,
|
|
3065
|
+
left: rect.left,
|
|
3066
|
+
x: rect.left,
|
|
3067
|
+
y: rect.top
|
|
3068
|
+
};
|
|
3069
|
+
}
|
|
3070
|
+
|
|
3193
3071
|
function getWindowScroll(node) {
|
|
3194
3072
|
var win = getWindow(node);
|
|
3195
3073
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3252,18 +3130,16 @@ function getViewportRect(element) {
|
|
|
3252
3130
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3253
3131
|
|
|
3254
3132
|
function getDocumentRect(element) {
|
|
3255
|
-
var _element$ownerDocumen;
|
|
3256
|
-
|
|
3257
3133
|
var html = getDocumentElement(element);
|
|
3258
3134
|
var winScroll = getWindowScroll(element);
|
|
3259
|
-
var body =
|
|
3260
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3261
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3135
|
+
var body = element.ownerDocument.body;
|
|
3136
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3137
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3262
3138
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3263
3139
|
var y = -winScroll.scrollTop;
|
|
3264
3140
|
|
|
3265
|
-
if (getComputedStyle$
|
|
3266
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3141
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3142
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3267
3143
|
}
|
|
3268
3144
|
|
|
3269
3145
|
return {
|
|
@@ -3276,7 +3152,7 @@ function getDocumentRect(element) {
|
|
|
3276
3152
|
|
|
3277
3153
|
function isScrollParent(element) {
|
|
3278
3154
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3279
|
-
var _getComputedStyle = getComputedStyle$
|
|
3155
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3280
3156
|
overflow = _getComputedStyle.overflow,
|
|
3281
3157
|
overflowX = _getComputedStyle.overflowX,
|
|
3282
3158
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3286,7 +3162,7 @@ function isScrollParent(element) {
|
|
|
3286
3162
|
|
|
3287
3163
|
function getScrollParent(node) {
|
|
3288
3164
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3289
|
-
// $FlowFixMe
|
|
3165
|
+
// $FlowFixMe: assume body is always available
|
|
3290
3166
|
return node.ownerDocument.body;
|
|
3291
3167
|
}
|
|
3292
3168
|
|
|
@@ -3300,28 +3176,26 @@ function getScrollParent(node) {
|
|
|
3300
3176
|
/*
|
|
3301
3177
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3302
3178
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3303
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3179
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3304
3180
|
reference element's position.
|
|
3305
3181
|
*/
|
|
3306
3182
|
|
|
3307
3183
|
function listScrollParents(element, list) {
|
|
3308
|
-
var _element$ownerDocumen;
|
|
3309
|
-
|
|
3310
3184
|
if (list === void 0) {
|
|
3311
3185
|
list = [];
|
|
3312
3186
|
}
|
|
3313
3187
|
|
|
3314
3188
|
var scrollParent = getScrollParent(element);
|
|
3315
|
-
var isBody = scrollParent ===
|
|
3189
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3316
3190
|
var win = getWindow(scrollParent);
|
|
3317
3191
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3318
3192
|
var updatedList = list.concat(target);
|
|
3319
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3193
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3320
3194
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3321
3195
|
}
|
|
3322
3196
|
|
|
3323
3197
|
function rectToClientRect(rect) {
|
|
3324
|
-
return Object.assign({}, rect, {
|
|
3198
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3325
3199
|
left: rect.x,
|
|
3326
3200
|
top: rect.y,
|
|
3327
3201
|
right: rect.x + rect.width,
|
|
@@ -3343,7 +3217,7 @@ function getInnerBoundingClientRect(element) {
|
|
|
3343
3217
|
}
|
|
3344
3218
|
|
|
3345
3219
|
function getClientRectFromMixedType(element, clippingParent) {
|
|
3346
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) :
|
|
3220
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3347
3221
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
3348
3222
|
// clipping (or hiding) overflowing elements with a position different from
|
|
3349
3223
|
// `initial`
|
|
@@ -3351,16 +3225,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3351
3225
|
|
|
3352
3226
|
function getClippingParents(element) {
|
|
3353
3227
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3354
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3228
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3355
3229
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3356
3230
|
|
|
3357
3231
|
if (!isElement(clipperElement)) {
|
|
3358
3232
|
return [];
|
|
3359
|
-
} // $FlowFixMe
|
|
3233
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3360
3234
|
|
|
3361
3235
|
|
|
3362
3236
|
return clippingParents.filter(function (clippingParent) {
|
|
3363
|
-
return isElement(clippingParent) && contains
|
|
3237
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3364
3238
|
});
|
|
3365
3239
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3366
3240
|
// clipping parents
|
|
@@ -3372,10 +3246,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3372
3246
|
var firstClippingParent = clippingParents[0];
|
|
3373
3247
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3374
3248
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3375
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3376
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3377
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3378
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3249
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3250
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3251
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3252
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3379
3253
|
return accRect;
|
|
3380
3254
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3381
3255
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3385,6 +3259,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3385
3259
|
return clippingRect;
|
|
3386
3260
|
}
|
|
3387
3261
|
|
|
3262
|
+
function getVariation(placement) {
|
|
3263
|
+
return placement.split('-')[1];
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3388
3266
|
function computeOffsets(_ref) {
|
|
3389
3267
|
var reference = _ref.reference,
|
|
3390
3268
|
element = _ref.element,
|
|
@@ -3438,11 +3316,11 @@ function computeOffsets(_ref) {
|
|
|
3438
3316
|
|
|
3439
3317
|
switch (variation) {
|
|
3440
3318
|
case start:
|
|
3441
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3319
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3442
3320
|
break;
|
|
3443
3321
|
|
|
3444
3322
|
case end:
|
|
3445
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3323
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3446
3324
|
break;
|
|
3447
3325
|
}
|
|
3448
3326
|
}
|
|
@@ -3470,17 +3348,18 @@ function detectOverflow(state, options) {
|
|
|
3470
3348
|
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
3471
3349
|
var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
3472
3350
|
var altContext = elementContext === popper ? reference : popper;
|
|
3351
|
+
var referenceElement = state.elements.reference;
|
|
3473
3352
|
var popperRect = state.rects.popper;
|
|
3474
3353
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3475
3354
|
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
3476
|
-
var referenceClientRect = getBoundingClientRect(
|
|
3355
|
+
var referenceClientRect = getBoundingClientRect(referenceElement);
|
|
3477
3356
|
var popperOffsets = computeOffsets({
|
|
3478
3357
|
reference: referenceClientRect,
|
|
3479
3358
|
element: popperRect,
|
|
3480
3359
|
strategy: 'absolute',
|
|
3481
3360
|
placement: placement
|
|
3482
3361
|
});
|
|
3483
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3362
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3484
3363
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3485
3364
|
// 0 or negative = within the clipping rect
|
|
3486
3365
|
|
|
@@ -3504,6 +3383,9 @@ function detectOverflow(state, options) {
|
|
|
3504
3383
|
return overflowOffsets;
|
|
3505
3384
|
}
|
|
3506
3385
|
|
|
3386
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3387
|
+
|
|
3388
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3507
3389
|
function computeAutoPlacement(state, options) {
|
|
3508
3390
|
if (options === void 0) {
|
|
3509
3391
|
options = {};
|
|
@@ -3520,7 +3402,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3520
3402
|
var variation = getVariation(placement);
|
|
3521
3403
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3522
3404
|
return getVariation(placement) === variation;
|
|
3523
|
-
}) : basePlacements;
|
|
3405
|
+
}) : basePlacements; // $FlowFixMe
|
|
3406
|
+
|
|
3524
3407
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3525
3408
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3526
3409
|
});
|
|
@@ -3531,7 +3414,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3531
3414
|
if (process.env.NODE_ENV !== "production") {
|
|
3532
3415
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3533
3416
|
}
|
|
3534
|
-
} // $FlowFixMe
|
|
3417
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3535
3418
|
|
|
3536
3419
|
|
|
3537
3420
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3732,7 +3615,7 @@ function hide(_ref) {
|
|
|
3732
3615
|
isReferenceHidden: isReferenceHidden,
|
|
3733
3616
|
hasPopperEscaped: hasPopperEscaped
|
|
3734
3617
|
};
|
|
3735
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3618
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3736
3619
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3737
3620
|
'data-popper-escaped': hasPopperEscaped
|
|
3738
3621
|
});
|
|
@@ -3751,7 +3634,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3751
3634
|
var basePlacement = getBasePlacement(placement);
|
|
3752
3635
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3753
3636
|
|
|
3754
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3637
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3755
3638
|
placement: placement
|
|
3756
3639
|
})) : offset,
|
|
3757
3640
|
skidding = _ref[0],
|
|
@@ -3857,17 +3740,9 @@ function preventOverflow(_ref) {
|
|
|
3857
3740
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3858
3741
|
var referenceRect = state.rects.reference;
|
|
3859
3742
|
var popperRect = state.rects.popper;
|
|
3860
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3743
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3861
3744
|
placement: state.placement
|
|
3862
3745
|
})) : tetherOffset;
|
|
3863
|
-
var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {
|
|
3864
|
-
mainAxis: tetherOffsetValue,
|
|
3865
|
-
altAxis: tetherOffsetValue
|
|
3866
|
-
} : Object.assign({
|
|
3867
|
-
mainAxis: 0,
|
|
3868
|
-
altAxis: 0
|
|
3869
|
-
}, tetherOffsetValue);
|
|
3870
|
-
var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;
|
|
3871
3746
|
var data = {
|
|
3872
3747
|
x: 0,
|
|
3873
3748
|
y: 0
|
|
@@ -3878,14 +3753,12 @@ function preventOverflow(_ref) {
|
|
|
3878
3753
|
}
|
|
3879
3754
|
|
|
3880
3755
|
if (checkMainAxis) {
|
|
3881
|
-
var _offsetModifierState$;
|
|
3882
|
-
|
|
3883
3756
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3884
3757
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3885
3758
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3886
3759
|
var offset = popperOffsets[mainAxis];
|
|
3887
|
-
var min
|
|
3888
|
-
var max
|
|
3760
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3761
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3889
3762
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3890
3763
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3891
3764
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3905,42 +3778,30 @@ function preventOverflow(_ref) {
|
|
|
3905
3778
|
// width or height)
|
|
3906
3779
|
|
|
3907
3780
|
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
|
|
3908
|
-
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin -
|
|
3909
|
-
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax +
|
|
3781
|
+
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
|
|
3782
|
+
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
|
|
3910
3783
|
var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
|
|
3911
3784
|
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
|
|
3912
|
-
var offsetModifierValue =
|
|
3913
|
-
var tetherMin =
|
|
3914
|
-
var tetherMax =
|
|
3915
|
-
var preventedOffset = within(tether ? min(min
|
|
3785
|
+
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3786
|
+
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3787
|
+
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3788
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3916
3789
|
popperOffsets[mainAxis] = preventedOffset;
|
|
3917
3790
|
data[mainAxis] = preventedOffset - offset;
|
|
3918
3791
|
}
|
|
3919
3792
|
|
|
3920
3793
|
if (checkAltAxis) {
|
|
3921
|
-
var _offsetModifierState$2;
|
|
3922
|
-
|
|
3923
3794
|
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3924
3795
|
|
|
3925
3796
|
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3926
3797
|
|
|
3927
3798
|
var _offset = popperOffsets[altAxis];
|
|
3928
3799
|
|
|
3929
|
-
var _len = altAxis === 'y' ? 'height' : 'width';
|
|
3930
|
-
|
|
3931
3800
|
var _min = _offset + overflow[_mainSide];
|
|
3932
3801
|
|
|
3933
3802
|
var _max = _offset - overflow[_altSide];
|
|
3934
3803
|
|
|
3935
|
-
var
|
|
3936
|
-
|
|
3937
|
-
var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;
|
|
3938
|
-
|
|
3939
|
-
var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;
|
|
3940
|
-
|
|
3941
|
-
var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;
|
|
3942
|
-
|
|
3943
|
-
var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);
|
|
3804
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3944
3805
|
|
|
3945
3806
|
popperOffsets[altAxis] = _preventedOffset;
|
|
3946
3807
|
data[altAxis] = _preventedOffset - _offset;
|
|
@@ -3973,24 +3834,16 @@ function getNodeScroll(node) {
|
|
|
3973
3834
|
}
|
|
3974
3835
|
}
|
|
3975
3836
|
|
|
3976
|
-
function isElementScaled(element) {
|
|
3977
|
-
var rect = element.getBoundingClientRect();
|
|
3978
|
-
var scaleX = round(rect.width) / element.offsetWidth || 1;
|
|
3979
|
-
var scaleY = round(rect.height) / element.offsetHeight || 1;
|
|
3980
|
-
return scaleX !== 1 || scaleY !== 1;
|
|
3981
|
-
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3982
3837
|
// Composite means it takes into account transforms as well as layout.
|
|
3983
3838
|
|
|
3984
|
-
|
|
3985
3839
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
3986
3840
|
if (isFixed === void 0) {
|
|
3987
3841
|
isFixed = false;
|
|
3988
3842
|
}
|
|
3989
3843
|
|
|
3990
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3991
|
-
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3992
3844
|
var documentElement = getDocumentElement(offsetParent);
|
|
3993
|
-
var rect = getBoundingClientRect(elementOrVirtualElement
|
|
3845
|
+
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
3846
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3994
3847
|
var scroll = {
|
|
3995
3848
|
scrollLeft: 0,
|
|
3996
3849
|
scrollTop: 0
|
|
@@ -4007,7 +3860,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
4007
3860
|
}
|
|
4008
3861
|
|
|
4009
3862
|
if (isHTMLElement(offsetParent)) {
|
|
4010
|
-
offsets = getBoundingClientRect(offsetParent
|
|
3863
|
+
offsets = getBoundingClientRect(offsetParent);
|
|
4011
3864
|
offsets.x += offsetParent.clientLeft;
|
|
4012
3865
|
offsets.y += offsetParent.clientTop;
|
|
4013
3866
|
} else if (documentElement) {
|
|
@@ -4097,10 +3950,7 @@ var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" mo
|
|
|
4097
3950
|
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
4098
3951
|
function validateModifiers(modifiers) {
|
|
4099
3952
|
modifiers.forEach(function (modifier) {
|
|
4100
|
-
|
|
4101
|
-
.filter(function (value, index, self) {
|
|
4102
|
-
return self.indexOf(value) === index;
|
|
4103
|
-
}).forEach(function (key) {
|
|
3953
|
+
Object.keys(modifier).forEach(function (key) {
|
|
4104
3954
|
switch (key) {
|
|
4105
3955
|
case 'name':
|
|
4106
3956
|
if (typeof modifier.name !== 'string') {
|
|
@@ -4114,8 +3964,6 @@ function validateModifiers(modifiers) {
|
|
|
4114
3964
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
4115
3965
|
}
|
|
4116
3966
|
|
|
4117
|
-
break;
|
|
4118
|
-
|
|
4119
3967
|
case 'phase':
|
|
4120
3968
|
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
4121
3969
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
@@ -4131,14 +3979,14 @@ function validateModifiers(modifiers) {
|
|
|
4131
3979
|
break;
|
|
4132
3980
|
|
|
4133
3981
|
case 'effect':
|
|
4134
|
-
if (
|
|
3982
|
+
if (typeof modifier.effect !== 'function') {
|
|
4135
3983
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
4136
3984
|
}
|
|
4137
3985
|
|
|
4138
3986
|
break;
|
|
4139
3987
|
|
|
4140
3988
|
case 'requires':
|
|
4141
|
-
if (
|
|
3989
|
+
if (!Array.isArray(modifier.requires)) {
|
|
4142
3990
|
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
4143
3991
|
}
|
|
4144
3992
|
|
|
@@ -4187,9 +4035,9 @@ function uniqueBy(arr, fn) {
|
|
|
4187
4035
|
function mergeByName(modifiers) {
|
|
4188
4036
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4189
4037
|
var existing = merged[current.name];
|
|
4190
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4191
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4192
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4038
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4039
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4040
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4193
4041
|
}) : current;
|
|
4194
4042
|
return merged;
|
|
4195
4043
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4235,7 +4083,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4235
4083
|
var state = {
|
|
4236
4084
|
placement: 'bottom',
|
|
4237
4085
|
orderedModifiers: [],
|
|
4238
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4086
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4239
4087
|
modifiersData: {},
|
|
4240
4088
|
elements: {
|
|
4241
4089
|
reference: reference,
|
|
@@ -4248,10 +4096,9 @@ function popperGenerator(generatorOptions) {
|
|
|
4248
4096
|
var isDestroyed = false;
|
|
4249
4097
|
var instance = {
|
|
4250
4098
|
state: state,
|
|
4251
|
-
setOptions: function setOptions(
|
|
4252
|
-
var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
|
|
4099
|
+
setOptions: function setOptions(options) {
|
|
4253
4100
|
cleanupModifierEffects();
|
|
4254
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4101
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4255
4102
|
state.scrollParents = {
|
|
4256
4103
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4257
4104
|
popper: listScrollParents(popper)
|
|
@@ -4283,7 +4130,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4283
4130
|
}
|
|
4284
4131
|
}
|
|
4285
4132
|
|
|
4286
|
-
var _getComputedStyle = getComputedStyle$
|
|
4133
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4287
4134
|
marginTop = _getComputedStyle.marginTop,
|
|
4288
4135
|
marginRight = _getComputedStyle.marginRight,
|
|
4289
4136
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4493,11 +4340,6 @@ var ariaDescribedByModifier = {
|
|
|
4493
4340
|
|
|
4494
4341
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4495
4342
|
var ids = reference.getAttribute('aria-describedby');
|
|
4496
|
-
|
|
4497
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4498
|
-
return;
|
|
4499
|
-
}
|
|
4500
|
-
|
|
4501
4343
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4502
4344
|
}
|
|
4503
4345
|
}
|
|
@@ -4621,16 +4463,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4621
4463
|
}
|
|
4622
4464
|
|
|
4623
4465
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
*
|
|
4628
|
-
* @param context the context element
|
|
4629
|
-
* @param node the element to check
|
|
4630
|
-
*/
|
|
4631
|
-
function contains(context, node) {
|
|
4632
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4633
|
-
// so we need to check on context instead of a document root element.
|
|
4466
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4467
|
+
// so we need to check on context instead of a document root element.
|
|
4468
|
+
function contains$1(context, node) {
|
|
4634
4469
|
if (context.contains) return context.contains(node);
|
|
4635
4470
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4636
4471
|
}
|
|
@@ -4704,13 +4539,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4704
4539
|
return componentOrElement != null ? componentOrElement : null;
|
|
4705
4540
|
}
|
|
4706
4541
|
|
|
4707
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4708
|
-
return ownerDocument
|
|
4542
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4543
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4709
4544
|
});
|
|
4710
4545
|
|
|
4711
4546
|
var escapeKeyCode = 27;
|
|
4712
4547
|
|
|
4713
|
-
var noop$
|
|
4548
|
+
var noop$1 = function noop() {};
|
|
4714
4549
|
|
|
4715
4550
|
function isLeftClickEvent(event) {
|
|
4716
4551
|
return event.button === 0;
|
|
@@ -4743,11 +4578,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4743
4578
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4744
4579
|
|
|
4745
4580
|
var preventMouseRootCloseRef = useRef(false);
|
|
4746
|
-
var onClose = onRootClose || noop$
|
|
4581
|
+
var onClose = onRootClose || noop$1;
|
|
4747
4582
|
var handleMouseCapture = useCallback(function (e) {
|
|
4748
4583
|
var currentTarget = getRefTarget(ref);
|
|
4749
4584
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4750
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4585
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4751
4586
|
}, [ref]);
|
|
4752
4587
|
var handleMouse = useEventCallback(function (e) {
|
|
4753
4588
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4760,38 +4595,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4760
4595
|
}
|
|
4761
4596
|
});
|
|
4762
4597
|
useEffect(function () {
|
|
4763
|
-
if (disabled || ref == null) return undefined;
|
|
4764
|
-
//
|
|
4765
|
-
|
|
4766
|
-
var currentEvent = window.event;
|
|
4767
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4598
|
+
if (disabled || ref == null) return undefined;
|
|
4599
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4768
4600
|
// avoid false positives in the contains() check below if the target DOM
|
|
4769
4601
|
// element is removed in the React mouse callback.
|
|
4770
4602
|
|
|
4771
4603
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4772
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4773
|
-
|
|
4774
|
-
if (e === currentEvent) {
|
|
4775
|
-
currentEvent = undefined;
|
|
4776
|
-
return;
|
|
4777
|
-
}
|
|
4778
|
-
|
|
4779
|
-
handleMouse(e);
|
|
4780
|
-
});
|
|
4781
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4782
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4783
|
-
if (e === currentEvent) {
|
|
4784
|
-
currentEvent = undefined;
|
|
4785
|
-
return;
|
|
4786
|
-
}
|
|
4787
|
-
|
|
4788
|
-
handleKeyUp(e);
|
|
4789
|
-
});
|
|
4604
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4605
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4790
4606
|
var mobileSafariHackListeners = [];
|
|
4791
4607
|
|
|
4792
4608
|
if ('ontouchstart' in doc.documentElement) {
|
|
4793
4609
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4794
|
-
return listen(el, 'mousemove', noop$
|
|
4610
|
+
return listen(el, 'mousemove', noop$1);
|
|
4795
4611
|
});
|
|
4796
4612
|
}
|
|
4797
4613
|
|
|
@@ -4873,7 +4689,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4873
4689
|
});
|
|
4874
4690
|
}
|
|
4875
4691
|
|
|
4876
|
-
var noop$
|
|
4692
|
+
var noop$2 = function noop() {};
|
|
4877
4693
|
/**
|
|
4878
4694
|
* @memberOf Dropdown
|
|
4879
4695
|
* @param {object} options
|
|
@@ -4941,7 +4757,7 @@ function useDropdownMenu(options) {
|
|
|
4941
4757
|
|
|
4942
4758
|
var menu;
|
|
4943
4759
|
var menuProps = {
|
|
4944
|
-
ref: setMenu || noop$
|
|
4760
|
+
ref: setMenu || noop$2,
|
|
4945
4761
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4946
4762
|
};
|
|
4947
4763
|
var childArgs = {
|
|
@@ -4974,7 +4790,7 @@ function useDropdownMenu(options) {
|
|
|
4974
4790
|
});
|
|
4975
4791
|
return menu;
|
|
4976
4792
|
}
|
|
4977
|
-
var propTypes$
|
|
4793
|
+
var propTypes$2 = {
|
|
4978
4794
|
/**
|
|
4979
4795
|
* A render prop that returns a Menu element. The `props`
|
|
4980
4796
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -5031,7 +4847,7 @@ var propTypes$8 = {
|
|
|
5031
4847
|
*/
|
|
5032
4848
|
rootCloseEvent: PropTypes.string
|
|
5033
4849
|
};
|
|
5034
|
-
var defaultProps$
|
|
4850
|
+
var defaultProps$d = {
|
|
5035
4851
|
usePopper: true
|
|
5036
4852
|
};
|
|
5037
4853
|
|
|
@@ -5041,19 +4857,19 @@ var defaultProps$r = {
|
|
|
5041
4857
|
* @displayName DropdownMenu
|
|
5042
4858
|
* @memberOf Dropdown
|
|
5043
4859
|
*/
|
|
5044
|
-
function DropdownMenu
|
|
4860
|
+
function DropdownMenu(_ref2) {
|
|
5045
4861
|
var children = _ref2.children,
|
|
5046
4862
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
5047
4863
|
|
|
5048
4864
|
var args = useDropdownMenu(options);
|
|
5049
|
-
return /*#__PURE__*/
|
|
4865
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5050
4866
|
}
|
|
5051
4867
|
|
|
5052
|
-
DropdownMenu
|
|
5053
|
-
DropdownMenu
|
|
5054
|
-
DropdownMenu
|
|
4868
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4869
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4870
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5055
4871
|
|
|
5056
|
-
var noop$
|
|
4872
|
+
var noop$3 = function noop() {};
|
|
5057
4873
|
/**
|
|
5058
4874
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5059
4875
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5067,11 +4883,11 @@ function useDropdownToggle() {
|
|
|
5067
4883
|
_ref$show = _ref.show,
|
|
5068
4884
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5069
4885
|
_ref$toggle = _ref.toggle,
|
|
5070
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4886
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5071
4887
|
setToggle = _ref.setToggle;
|
|
5072
4888
|
|
|
5073
4889
|
return [{
|
|
5074
|
-
ref: setToggle || noop$
|
|
4890
|
+
ref: setToggle || noop$3,
|
|
5075
4891
|
'aria-haspopup': true,
|
|
5076
4892
|
'aria-expanded': !!show
|
|
5077
4893
|
}, {
|
|
@@ -5079,7 +4895,7 @@ function useDropdownToggle() {
|
|
|
5079
4895
|
toggle: toggle
|
|
5080
4896
|
}];
|
|
5081
4897
|
}
|
|
5082
|
-
var propTypes$
|
|
4898
|
+
var propTypes$3 = {
|
|
5083
4899
|
/**
|
|
5084
4900
|
* A render prop that returns a Toggle element. The `props`
|
|
5085
4901
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5104,7 +4920,7 @@ var propTypes$7 = {
|
|
|
5104
4920
|
* @displayName DropdownToggle
|
|
5105
4921
|
* @memberOf Dropdown
|
|
5106
4922
|
*/
|
|
5107
|
-
function DropdownToggle
|
|
4923
|
+
function DropdownToggle(_ref2) {
|
|
5108
4924
|
var children = _ref2.children;
|
|
5109
4925
|
|
|
5110
4926
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5113,17 +4929,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5113
4929
|
show = _useDropdownToggle$.show,
|
|
5114
4930
|
toggle = _useDropdownToggle$.toggle;
|
|
5115
4931
|
|
|
5116
|
-
return /*#__PURE__*/
|
|
4932
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5117
4933
|
show: show,
|
|
5118
4934
|
toggle: toggle,
|
|
5119
4935
|
props: props
|
|
5120
4936
|
}));
|
|
5121
4937
|
}
|
|
5122
4938
|
|
|
5123
|
-
DropdownToggle
|
|
5124
|
-
DropdownToggle
|
|
4939
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4940
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5125
4941
|
|
|
5126
|
-
var propTypes$
|
|
4942
|
+
var propTypes$4 = {
|
|
5127
4943
|
/**
|
|
5128
4944
|
* A render prop that returns the root dropdown element. The `props`
|
|
5129
4945
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5195,7 +5011,7 @@ var propTypes$6 = {
|
|
|
5195
5011
|
/**
|
|
5196
5012
|
* @displayName Dropdown
|
|
5197
5013
|
*/
|
|
5198
|
-
function Dropdown
|
|
5014
|
+
function Dropdown(_ref) {
|
|
5199
5015
|
var drop = _ref.drop,
|
|
5200
5016
|
alignEnd = _ref.alignEnd,
|
|
5201
5017
|
defaultShow = _ref.defaultShow,
|
|
@@ -5328,7 +5144,7 @@ function Dropdown$1(_ref) {
|
|
|
5328
5144
|
}
|
|
5329
5145
|
};
|
|
5330
5146
|
|
|
5331
|
-
return /*#__PURE__*/
|
|
5147
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5332
5148
|
value: context
|
|
5333
5149
|
}, children({
|
|
5334
5150
|
props: {
|
|
@@ -5337,19 +5153,19 @@ function Dropdown$1(_ref) {
|
|
|
5337
5153
|
}));
|
|
5338
5154
|
}
|
|
5339
5155
|
|
|
5340
|
-
Dropdown
|
|
5341
|
-
Dropdown
|
|
5342
|
-
Dropdown
|
|
5343
|
-
Dropdown
|
|
5156
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5157
|
+
Dropdown.propTypes = propTypes$4;
|
|
5158
|
+
Dropdown.Menu = DropdownMenu;
|
|
5159
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5344
5160
|
|
|
5345
|
-
var NavContext =
|
|
5161
|
+
var NavContext = React.createContext(null);
|
|
5346
5162
|
NavContext.displayName = 'NavContext';
|
|
5347
5163
|
|
|
5348
|
-
var defaultProps$
|
|
5164
|
+
var defaultProps$e = {
|
|
5349
5165
|
as: SafeAnchor,
|
|
5350
5166
|
disabled: false
|
|
5351
5167
|
};
|
|
5352
|
-
var DropdownItem =
|
|
5168
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5353
5169
|
var bsPrefix = _ref.bsPrefix,
|
|
5354
5170
|
className = _ref.className,
|
|
5355
5171
|
children = _ref.children,
|
|
@@ -5367,10 +5183,9 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5367
5183
|
var navContext = useContext(NavContext);
|
|
5368
5184
|
|
|
5369
5185
|
var _ref2 = navContext || {},
|
|
5370
|
-
activeKey = _ref2.activeKey;
|
|
5371
|
-
|
|
5186
|
+
activeKey = _ref2.activeKey;
|
|
5372
5187
|
|
|
5373
|
-
var key = makeEventKey(eventKey, href);
|
|
5188
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5374
5189
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5375
5190
|
var handleClick = useEventCallback(function (event) {
|
|
5376
5191
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5384,7 +5199,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5384
5199
|
/*#__PURE__*/
|
|
5385
5200
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5386
5201
|
// @ts-ignore
|
|
5387
|
-
|
|
5202
|
+
React.createElement(Component, _extends({}, props, {
|
|
5388
5203
|
ref: ref,
|
|
5389
5204
|
href: href,
|
|
5390
5205
|
disabled: disabled,
|
|
@@ -5394,7 +5209,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5394
5209
|
);
|
|
5395
5210
|
});
|
|
5396
5211
|
DropdownItem.displayName = 'DropdownItem';
|
|
5397
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5212
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5398
5213
|
|
|
5399
5214
|
var toFnRef = function toFnRef(ref) {
|
|
5400
5215
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5433,8 +5248,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5433
5248
|
}, [refA, refB]);
|
|
5434
5249
|
}
|
|
5435
5250
|
|
|
5436
|
-
var context =
|
|
5437
|
-
context.displayName = 'NavbarContext';
|
|
5251
|
+
var context$2 = React.createContext(null);
|
|
5252
|
+
context$2.displayName = 'NavbarContext';
|
|
5438
5253
|
|
|
5439
5254
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5440
5255
|
// @ts-ignore
|
|
@@ -5447,12 +5262,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5447
5262
|
return useMergedRefs(warningRef, ref);
|
|
5448
5263
|
}
|
|
5449
5264
|
|
|
5450
|
-
/**
|
|
5451
|
-
* Checks if a given element has a CSS class.
|
|
5452
|
-
*
|
|
5453
|
-
* @param element the element
|
|
5454
|
-
* @param className the CSS class name
|
|
5455
|
-
*/
|
|
5456
5265
|
function hasClass(element, className) {
|
|
5457
5266
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5458
5267
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5475,14 +5284,12 @@ function getMargins(element) {
|
|
|
5475
5284
|
function usePopperMarginModifiers() {
|
|
5476
5285
|
var overlayRef = useRef(null);
|
|
5477
5286
|
var margins = useRef(null);
|
|
5478
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5479
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5480
5287
|
var callback = useCallback(function (overlay) {
|
|
5481
|
-
if (!overlay || !(hasClass(overlay,
|
|
5288
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5482
5289
|
margins.current = getMargins(overlay);
|
|
5483
5290
|
overlay.style.margin = '0';
|
|
5484
5291
|
overlayRef.current = overlay;
|
|
5485
|
-
}, [
|
|
5292
|
+
}, []);
|
|
5486
5293
|
var offset = useMemo(function () {
|
|
5487
5294
|
return {
|
|
5488
5295
|
name: 'offset',
|
|
@@ -5526,7 +5333,7 @@ function usePopperMarginModifiers() {
|
|
|
5526
5333
|
effect: function effect(_ref2) {
|
|
5527
5334
|
var state = _ref2.state;
|
|
5528
5335
|
|
|
5529
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5336
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5530
5337
|
return undefined;
|
|
5531
5338
|
}
|
|
5532
5339
|
|
|
@@ -5547,30 +5354,18 @@ function usePopperMarginModifiers() {
|
|
|
5547
5354
|
};
|
|
5548
5355
|
}
|
|
5549
5356
|
};
|
|
5550
|
-
}, [
|
|
5357
|
+
}, []);
|
|
5551
5358
|
return [callback, [offset, popoverArrowMargins]];
|
|
5552
5359
|
}
|
|
5553
5360
|
|
|
5554
|
-
var
|
|
5555
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5556
|
-
sm: alignDirection
|
|
5557
|
-
}), PropTypes.shape({
|
|
5558
|
-
md: alignDirection
|
|
5559
|
-
}), PropTypes.shape({
|
|
5560
|
-
lg: alignDirection
|
|
5561
|
-
}), PropTypes.shape({
|
|
5562
|
-
xl: alignDirection
|
|
5563
|
-
})]);
|
|
5564
|
-
var defaultProps$p = {
|
|
5565
|
-
align: 'left',
|
|
5361
|
+
var defaultProps$f = {
|
|
5566
5362
|
alignRight: false,
|
|
5567
5363
|
flip: true
|
|
5568
5364
|
}; // TODO: remove this hack
|
|
5569
5365
|
|
|
5570
|
-
var DropdownMenu =
|
|
5366
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5571
5367
|
var bsPrefix = _ref.bsPrefix,
|
|
5572
5368
|
className = _ref.className,
|
|
5573
|
-
align = _ref.align,
|
|
5574
5369
|
alignRight = _ref.alignRight,
|
|
5575
5370
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5576
5371
|
flip = _ref.flip,
|
|
@@ -5579,42 +5374,21 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5579
5374
|
_ref$as = _ref.as,
|
|
5580
5375
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5581
5376
|
popperConfig = _ref.popperConfig,
|
|
5582
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5377
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5583
5378
|
|
|
5584
|
-
var isNavbar = useContext(context);
|
|
5379
|
+
var isNavbar = useContext(context$2);
|
|
5585
5380
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5586
5381
|
|
|
5587
5382
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5588
5383
|
popperRef = _usePopperMarginModif[0],
|
|
5589
5384
|
marginModifiers = _usePopperMarginModif[1];
|
|
5590
5385
|
|
|
5591
|
-
var alignClasses = [];
|
|
5592
|
-
|
|
5593
|
-
if (align) {
|
|
5594
|
-
if (typeof align === 'object') {
|
|
5595
|
-
var keys = Object.keys(align);
|
|
5596
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5597
|
-
|
|
5598
|
-
if (keys.length) {
|
|
5599
|
-
var brkPoint = keys[0];
|
|
5600
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5601
|
-
// left in addition to align left classes.
|
|
5602
|
-
// Reuse alignRight to toggle the class below.
|
|
5603
|
-
|
|
5604
|
-
alignRight = direction === 'left';
|
|
5605
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5606
|
-
}
|
|
5607
|
-
} else if (align === 'right') {
|
|
5608
|
-
alignRight = true;
|
|
5609
|
-
}
|
|
5610
|
-
}
|
|
5611
|
-
|
|
5612
5386
|
var _ref2 = useDropdownMenu({
|
|
5613
5387
|
flip: flip,
|
|
5614
5388
|
rootCloseEvent: rootCloseEvent,
|
|
5615
5389
|
show: showProps,
|
|
5616
5390
|
alignEnd: alignRight,
|
|
5617
|
-
usePopper: !isNavbar
|
|
5391
|
+
usePopper: !isNavbar,
|
|
5618
5392
|
popperConfig: _extends({}, popperConfig, {
|
|
5619
5393
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5620
5394
|
})
|
|
@@ -5642,12 +5416,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5642
5416
|
props['x-placement'] = placement;
|
|
5643
5417
|
}
|
|
5644
5418
|
|
|
5645
|
-
return /*#__PURE__*/
|
|
5646
|
-
className: classnames
|
|
5419
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5420
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5647
5421
|
}));
|
|
5648
5422
|
});
|
|
5649
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5650
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5423
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5424
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5651
5425
|
|
|
5652
5426
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5653
5427
|
|
|
@@ -5676,14 +5450,15 @@ module.exports = exports['default'];
|
|
|
5676
5450
|
|
|
5677
5451
|
unwrapExports(isRequiredForA11y_1);
|
|
5678
5452
|
|
|
5679
|
-
var DropdownToggle =
|
|
5453
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5680
5454
|
var bsPrefix = _ref.bsPrefix,
|
|
5681
5455
|
split = _ref.split,
|
|
5682
5456
|
className = _ref.className,
|
|
5457
|
+
children = _ref.children,
|
|
5683
5458
|
childBsPrefix = _ref.childBsPrefix,
|
|
5684
5459
|
_ref$as = _ref.as,
|
|
5685
5460
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5686
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5461
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5687
5462
|
|
|
5688
5463
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5689
5464
|
|
|
@@ -5698,12 +5473,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5698
5473
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5699
5474
|
// underlying component, to allow it to render size and style variants.
|
|
5700
5475
|
|
|
5701
|
-
return /*#__PURE__*/
|
|
5476
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5702
5477
|
onClick: toggle,
|
|
5703
5478
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5704
|
-
}, toggleProps, props));
|
|
5479
|
+
}, toggleProps, props), children);
|
|
5705
5480
|
});
|
|
5706
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5481
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5707
5482
|
|
|
5708
5483
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5709
5484
|
defaultProps: {
|
|
@@ -5718,10 +5493,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5718
5493
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5719
5494
|
Component: 'span'
|
|
5720
5495
|
});
|
|
5721
|
-
var defaultProps$
|
|
5496
|
+
var defaultProps$g = {
|
|
5722
5497
|
navbar: false
|
|
5723
5498
|
};
|
|
5724
|
-
var Dropdown =
|
|
5499
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5725
5500
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5726
5501
|
show: 'onToggle'
|
|
5727
5502
|
}),
|
|
@@ -5734,9 +5509,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5734
5509
|
onToggle = _useUncontrolled.onToggle,
|
|
5735
5510
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5736
5511
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5737
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5738
|
-
_useUncontrolled.navbar
|
|
5739
|
-
|
|
5512
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5513
|
+
_4 = _useUncontrolled.navbar,
|
|
5514
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5740
5515
|
|
|
5741
5516
|
var onSelectCtx = useContext(SelectableContext);
|
|
5742
5517
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5758,9 +5533,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5758
5533
|
if (onSelect) onSelect(key, event);
|
|
5759
5534
|
handleToggle(false, event, 'select');
|
|
5760
5535
|
});
|
|
5761
|
-
return /*#__PURE__*/
|
|
5536
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5762
5537
|
value: handleSelect
|
|
5763
|
-
}, /*#__PURE__*/
|
|
5538
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5764
5539
|
drop: drop,
|
|
5765
5540
|
show: show,
|
|
5766
5541
|
alignEnd: alignRight,
|
|
@@ -5769,20 +5544,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5769
5544
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5770
5545
|
}, function (_ref) {
|
|
5771
5546
|
var dropdownProps = _ref.props;
|
|
5772
|
-
return /*#__PURE__*/
|
|
5547
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5773
5548
|
ref: ref,
|
|
5774
5549
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5775
5550
|
}));
|
|
5776
5551
|
}));
|
|
5777
5552
|
});
|
|
5778
|
-
Dropdown.displayName = 'Dropdown';
|
|
5779
|
-
Dropdown.defaultProps = defaultProps$
|
|
5780
|
-
Dropdown.Divider = DropdownDivider;
|
|
5781
|
-
Dropdown.Header = DropdownHeader;
|
|
5782
|
-
Dropdown.Item = DropdownItem;
|
|
5783
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5784
|
-
Dropdown.Menu = DropdownMenu;
|
|
5785
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5553
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5554
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5555
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5556
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5557
|
+
Dropdown$1.Item = DropdownItem;
|
|
5558
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5559
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5560
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5786
5561
|
|
|
5787
5562
|
var propTypes$5 = {
|
|
5788
5563
|
/**
|
|
@@ -5804,15 +5579,6 @@ var propTypes$5 = {
|
|
|
5804
5579
|
/** Disables both Buttons */
|
|
5805
5580
|
disabled: PropTypes.bool,
|
|
5806
5581
|
|
|
5807
|
-
/**
|
|
5808
|
-
* Aligns the dropdown menu responsively.
|
|
5809
|
-
*
|
|
5810
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5811
|
-
*
|
|
5812
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5813
|
-
*/
|
|
5814
|
-
menuAlign: alignPropType,
|
|
5815
|
-
|
|
5816
5582
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5817
5583
|
menuRole: PropTypes.string,
|
|
5818
5584
|
|
|
@@ -5822,7 +5588,7 @@ var propTypes$5 = {
|
|
|
5822
5588
|
/**
|
|
5823
5589
|
* Which event when fired outside the component will cause it to be closed.
|
|
5824
5590
|
*
|
|
5825
|
-
* _see [DropdownMenu](#
|
|
5591
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5826
5592
|
*/
|
|
5827
5593
|
rootCloseEvent: PropTypes.string,
|
|
5828
5594
|
|
|
@@ -5844,32 +5610,30 @@ var propTypes$5 = {
|
|
|
5844
5610
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5845
5611
|
*/
|
|
5846
5612
|
|
|
5847
|
-
var DropdownButton =
|
|
5613
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5848
5614
|
var title = _ref.title,
|
|
5849
5615
|
children = _ref.children,
|
|
5850
5616
|
bsPrefix = _ref.bsPrefix,
|
|
5851
5617
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5852
5618
|
variant = _ref.variant,
|
|
5853
5619
|
size = _ref.size,
|
|
5854
|
-
menuAlign = _ref.menuAlign,
|
|
5855
5620
|
menuRole = _ref.menuRole,
|
|
5856
5621
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5857
5622
|
disabled = _ref.disabled,
|
|
5858
5623
|
href = _ref.href,
|
|
5859
5624
|
id = _ref.id,
|
|
5860
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5625
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5861
5626
|
|
|
5862
|
-
return /*#__PURE__*/
|
|
5627
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5863
5628
|
ref: ref
|
|
5864
|
-
}, props), /*#__PURE__*/
|
|
5629
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5865
5630
|
id: id,
|
|
5866
5631
|
href: href,
|
|
5867
5632
|
size: size,
|
|
5868
5633
|
variant: variant,
|
|
5869
5634
|
disabled: disabled,
|
|
5870
5635
|
childBsPrefix: bsPrefix
|
|
5871
|
-
}, title), /*#__PURE__*/
|
|
5872
|
-
align: menuAlign,
|
|
5636
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5873
5637
|
role: menuRole,
|
|
5874
5638
|
renderOnMount: renderMenuOnMount,
|
|
5875
5639
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5971,7 +5735,7 @@ module.exports = exports['default'];
|
|
|
5971
5735
|
|
|
5972
5736
|
unwrapExports(all_1);
|
|
5973
5737
|
|
|
5974
|
-
var propTypes$
|
|
5738
|
+
var propTypes$6 = {
|
|
5975
5739
|
/**
|
|
5976
5740
|
* Specify whether the feedback is for valid or invalid fields
|
|
5977
5741
|
*
|
|
@@ -5983,7 +5747,7 @@ var propTypes$4 = {
|
|
|
5983
5747
|
tooltip: PropTypes.bool,
|
|
5984
5748
|
as: PropTypes.elementType
|
|
5985
5749
|
};
|
|
5986
|
-
var Feedback =
|
|
5750
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5987
5751
|
function (_ref, ref) {
|
|
5988
5752
|
var _ref$as = _ref.as,
|
|
5989
5753
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5994,19 +5758,19 @@ function (_ref, ref) {
|
|
|
5994
5758
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5995
5759
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5996
5760
|
|
|
5997
|
-
return /*#__PURE__*/
|
|
5761
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5998
5762
|
ref: ref,
|
|
5999
5763
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
6000
5764
|
}));
|
|
6001
5765
|
});
|
|
6002
5766
|
Feedback.displayName = 'Feedback';
|
|
6003
|
-
Feedback.propTypes = propTypes$
|
|
5767
|
+
Feedback.propTypes = propTypes$6;
|
|
6004
5768
|
|
|
6005
|
-
var FormContext =
|
|
5769
|
+
var FormContext = React.createContext({
|
|
6006
5770
|
controlId: undefined
|
|
6007
5771
|
});
|
|
6008
5772
|
|
|
6009
|
-
var FormCheckInput =
|
|
5773
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
6010
5774
|
var id = _ref.id,
|
|
6011
5775
|
bsPrefix = _ref.bsPrefix,
|
|
6012
5776
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6031,7 +5795,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6031
5795
|
defaultPrefix = _ref2[1];
|
|
6032
5796
|
|
|
6033
5797
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6034
|
-
return /*#__PURE__*/
|
|
5798
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6035
5799
|
ref: ref,
|
|
6036
5800
|
type: type,
|
|
6037
5801
|
id: id || controlId,
|
|
@@ -6040,7 +5804,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6040
5804
|
});
|
|
6041
5805
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
6042
5806
|
|
|
6043
|
-
var FormCheckLabel =
|
|
5807
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
6044
5808
|
var bsPrefix = _ref.bsPrefix,
|
|
6045
5809
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6046
5810
|
className = _ref.className,
|
|
@@ -6056,7 +5820,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6056
5820
|
defaultPrefix = _ref2[1];
|
|
6057
5821
|
|
|
6058
5822
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6059
|
-
return /*#__PURE__*/
|
|
5823
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6060
5824
|
ref: ref,
|
|
6061
5825
|
htmlFor: htmlFor || controlId,
|
|
6062
5826
|
className: classnames(className, bsPrefix)
|
|
@@ -6064,7 +5828,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6064
5828
|
});
|
|
6065
5829
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6066
5830
|
|
|
6067
|
-
var FormCheck =
|
|
5831
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6068
5832
|
var id = _ref.id,
|
|
6069
5833
|
bsPrefix = _ref.bsPrefix,
|
|
6070
5834
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6109,8 +5873,8 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6109
5873
|
custom: custom
|
|
6110
5874
|
};
|
|
6111
5875
|
}, [controlId, custom, id]);
|
|
6112
|
-
var hasLabel =
|
|
6113
|
-
var input = /*#__PURE__*/
|
|
5876
|
+
var hasLabel = label != null && label !== false && !children;
|
|
5877
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6114
5878
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6115
5879
|
ref: ref,
|
|
6116
5880
|
isValid: isValid,
|
|
@@ -6119,14 +5883,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6119
5883
|
disabled: disabled,
|
|
6120
5884
|
as: as
|
|
6121
5885
|
}));
|
|
6122
|
-
return /*#__PURE__*/
|
|
5886
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6123
5887
|
value: innerFormContext
|
|
6124
|
-
}, /*#__PURE__*/
|
|
5888
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6125
5889
|
style: style,
|
|
6126
5890
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6127
|
-
}, children || /*#__PURE__*/
|
|
5891
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6128
5892
|
title: title
|
|
6129
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5893
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6130
5894
|
type: isValid ? 'valid' : 'invalid',
|
|
6131
5895
|
tooltip: feedbackTooltip
|
|
6132
5896
|
}, feedback))));
|
|
@@ -6135,7 +5899,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6135
5899
|
FormCheck.Input = FormCheckInput;
|
|
6136
5900
|
FormCheck.Label = FormCheckLabel;
|
|
6137
5901
|
|
|
6138
|
-
var FormFileInput =
|
|
5902
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6139
5903
|
var id = _ref.id,
|
|
6140
5904
|
bsPrefix = _ref.bsPrefix,
|
|
6141
5905
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6158,7 +5922,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6158
5922
|
defaultPrefix = _ref2[1];
|
|
6159
5923
|
|
|
6160
5924
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6161
|
-
return /*#__PURE__*/
|
|
5925
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6162
5926
|
ref: ref,
|
|
6163
5927
|
id: id || controlId,
|
|
6164
5928
|
type: type,
|
|
@@ -6168,7 +5932,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6168
5932
|
});
|
|
6169
5933
|
FormFileInput.displayName = 'FormFileInput';
|
|
6170
5934
|
|
|
6171
|
-
var FormFileLabel =
|
|
5935
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6172
5936
|
var bsPrefix = _ref.bsPrefix,
|
|
6173
5937
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6174
5938
|
className = _ref.className,
|
|
@@ -6184,7 +5948,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6184
5948
|
defaultPrefix = _ref2[1];
|
|
6185
5949
|
|
|
6186
5950
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6187
|
-
return /*#__PURE__*/
|
|
5951
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6188
5952
|
ref: ref,
|
|
6189
5953
|
htmlFor: htmlFor || controlId,
|
|
6190
5954
|
className: classnames(className, bsPrefix),
|
|
@@ -6193,7 +5957,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6193
5957
|
});
|
|
6194
5958
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6195
5959
|
|
|
6196
|
-
var FormFile =
|
|
5960
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6197
5961
|
var id = _ref.id,
|
|
6198
5962
|
bsPrefix = _ref.bsPrefix,
|
|
6199
5963
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6236,7 +6000,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6236
6000
|
};
|
|
6237
6001
|
}, [controlId, custom, id]);
|
|
6238
6002
|
var hasLabel = label != null && label !== false && !children;
|
|
6239
|
-
var input = /*#__PURE__*/
|
|
6003
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6240
6004
|
ref: ref,
|
|
6241
6005
|
isValid: isValid,
|
|
6242
6006
|
isInvalid: isInvalid,
|
|
@@ -6244,14 +6008,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6244
6008
|
as: inputAs,
|
|
6245
6009
|
lang: lang
|
|
6246
6010
|
}));
|
|
6247
|
-
return /*#__PURE__*/
|
|
6011
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6248
6012
|
value: innerFormContext
|
|
6249
|
-
}, /*#__PURE__*/
|
|
6013
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6250
6014
|
style: style,
|
|
6251
6015
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6252
|
-
}, children || /*#__PURE__*/
|
|
6016
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6253
6017
|
"data-browse": dataBrowse
|
|
6254
|
-
}, label)) : /*#__PURE__*/
|
|
6018
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6255
6019
|
type: isValid ? 'valid' : 'invalid',
|
|
6256
6020
|
tooltip: feedbackTooltip
|
|
6257
6021
|
}, feedback))));
|
|
@@ -6260,7 +6024,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6260
6024
|
FormFile.Input = FormFileInput;
|
|
6261
6025
|
FormFile.Label = FormFileLabel;
|
|
6262
6026
|
|
|
6263
|
-
var FormControl =
|
|
6027
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6264
6028
|
var bsPrefix = _ref.bsPrefix,
|
|
6265
6029
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6266
6030
|
type = _ref.type,
|
|
@@ -6312,7 +6076,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6312
6076
|
}
|
|
6313
6077
|
|
|
6314
6078
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6315
|
-
return /*#__PURE__*/
|
|
6079
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6316
6080
|
type: type,
|
|
6317
6081
|
size: htmlSize,
|
|
6318
6082
|
ref: ref,
|
|
@@ -6326,7 +6090,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6326
6090
|
Feedback: Feedback
|
|
6327
6091
|
});
|
|
6328
6092
|
|
|
6329
|
-
var FormGroup =
|
|
6093
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6330
6094
|
var bsPrefix = _ref.bsPrefix,
|
|
6331
6095
|
className = _ref.className,
|
|
6332
6096
|
children = _ref.children,
|
|
@@ -6341,20 +6105,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6341
6105
|
controlId: controlId
|
|
6342
6106
|
};
|
|
6343
6107
|
}, [controlId]);
|
|
6344
|
-
return /*#__PURE__*/
|
|
6108
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6345
6109
|
value: context
|
|
6346
|
-
}, /*#__PURE__*/
|
|
6110
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6347
6111
|
ref: ref,
|
|
6348
6112
|
className: classnames(className, bsPrefix)
|
|
6349
6113
|
}), children));
|
|
6350
6114
|
});
|
|
6351
6115
|
FormGroup.displayName = 'FormGroup';
|
|
6352
6116
|
|
|
6353
|
-
var defaultProps$
|
|
6117
|
+
var defaultProps$h = {
|
|
6354
6118
|
column: false,
|
|
6355
6119
|
srOnly: false
|
|
6356
6120
|
};
|
|
6357
|
-
var FormLabel =
|
|
6121
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6358
6122
|
var _ref$as = _ref.as,
|
|
6359
6123
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6360
6124
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6369,11 +6133,11 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6369
6133
|
|
|
6370
6134
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6371
6135
|
var columnClass = 'col-form-label';
|
|
6372
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6136
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6373
6137
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6374
6138
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6375
6139
|
htmlFor = htmlFor || controlId;
|
|
6376
|
-
if (column) return /*#__PURE__*/
|
|
6140
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6377
6141
|
as: "label",
|
|
6378
6142
|
className: classes,
|
|
6379
6143
|
htmlFor: htmlFor
|
|
@@ -6381,7 +6145,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6381
6145
|
return (
|
|
6382
6146
|
/*#__PURE__*/
|
|
6383
6147
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6384
|
-
|
|
6148
|
+
React.createElement(Component, _extends({
|
|
6385
6149
|
ref: ref,
|
|
6386
6150
|
className: classes,
|
|
6387
6151
|
htmlFor: htmlFor
|
|
@@ -6389,9 +6153,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6389
6153
|
);
|
|
6390
6154
|
});
|
|
6391
6155
|
FormLabel.displayName = 'FormLabel';
|
|
6392
|
-
FormLabel.defaultProps = defaultProps$
|
|
6156
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6393
6157
|
|
|
6394
|
-
var FormText =
|
|
6158
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6395
6159
|
function (_ref, ref) {
|
|
6396
6160
|
var bsPrefix = _ref.bsPrefix,
|
|
6397
6161
|
className = _ref.className,
|
|
@@ -6401,15 +6165,15 @@ function (_ref, ref) {
|
|
|
6401
6165
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6402
6166
|
|
|
6403
6167
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6404
|
-
return /*#__PURE__*/
|
|
6168
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6405
6169
|
ref: ref,
|
|
6406
6170
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6407
6171
|
}));
|
|
6408
6172
|
});
|
|
6409
6173
|
FormText.displayName = 'FormText';
|
|
6410
6174
|
|
|
6411
|
-
var Switch =
|
|
6412
|
-
return /*#__PURE__*/
|
|
6175
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6176
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6413
6177
|
ref: ref,
|
|
6414
6178
|
type: "switch"
|
|
6415
6179
|
}));
|
|
@@ -6419,10 +6183,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6419
6183
|
Switch.Label = FormCheck.Label;
|
|
6420
6184
|
|
|
6421
6185
|
var FormRow = createWithBsPrefix('form-row');
|
|
6422
|
-
var defaultProps$
|
|
6186
|
+
var defaultProps$i = {
|
|
6423
6187
|
inline: false
|
|
6424
6188
|
};
|
|
6425
|
-
var FormImpl =
|
|
6189
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6426
6190
|
var bsPrefix = _ref.bsPrefix,
|
|
6427
6191
|
inline = _ref.inline,
|
|
6428
6192
|
className = _ref.className,
|
|
@@ -6432,13 +6196,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6432
6196
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6433
6197
|
|
|
6434
6198
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6435
|
-
return /*#__PURE__*/
|
|
6199
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6436
6200
|
ref: ref,
|
|
6437
6201
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6438
6202
|
}));
|
|
6439
6203
|
});
|
|
6440
6204
|
FormImpl.displayName = 'Form';
|
|
6441
|
-
FormImpl.defaultProps = defaultProps$
|
|
6205
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6442
6206
|
FormImpl.Row = FormRow;
|
|
6443
6207
|
FormImpl.Group = FormGroup;
|
|
6444
6208
|
FormImpl.Control = FormControl$1;
|
|
@@ -6448,10 +6212,10 @@ FormImpl.Switch = Switch;
|
|
|
6448
6212
|
FormImpl.Label = FormLabel;
|
|
6449
6213
|
FormImpl.Text = FormText;
|
|
6450
6214
|
|
|
6451
|
-
var defaultProps$
|
|
6215
|
+
var defaultProps$j = {
|
|
6452
6216
|
fluid: false
|
|
6453
6217
|
};
|
|
6454
|
-
var Container =
|
|
6218
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6455
6219
|
var bsPrefix = _ref.bsPrefix,
|
|
6456
6220
|
fluid = _ref.fluid,
|
|
6457
6221
|
_ref$as = _ref.as,
|
|
@@ -6461,16 +6225,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6461
6225
|
|
|
6462
6226
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6463
6227
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6464
|
-
return /*#__PURE__*/
|
|
6228
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6465
6229
|
ref: ref
|
|
6466
6230
|
}, props, {
|
|
6467
6231
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6468
6232
|
}));
|
|
6469
6233
|
});
|
|
6470
6234
|
Container.displayName = 'Container';
|
|
6471
|
-
Container.defaultProps = defaultProps$
|
|
6235
|
+
Container.defaultProps = defaultProps$j;
|
|
6472
6236
|
|
|
6473
|
-
var propTypes$
|
|
6237
|
+
var propTypes$7 = {
|
|
6474
6238
|
/**
|
|
6475
6239
|
* @default 'img'
|
|
6476
6240
|
*/
|
|
@@ -6502,7 +6266,7 @@ var defaultProps$k = {
|
|
|
6502
6266
|
roundedCircle: false,
|
|
6503
6267
|
thumbnail: false
|
|
6504
6268
|
};
|
|
6505
|
-
var Image =
|
|
6269
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6506
6270
|
var bsPrefix = _ref.bsPrefix,
|
|
6507
6271
|
className = _ref.className,
|
|
6508
6272
|
fluid = _ref.fluid,
|
|
@@ -6513,7 +6277,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6513
6277
|
|
|
6514
6278
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6515
6279
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6516
|
-
return /*#__PURE__*/
|
|
6280
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6517
6281
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6518
6282
|
ref: ref
|
|
6519
6283
|
}, props, {
|
|
@@ -6523,22 +6287,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6523
6287
|
Image.displayName = 'Image';
|
|
6524
6288
|
Image.defaultProps = defaultProps$k;
|
|
6525
6289
|
|
|
6526
|
-
var defaultProps$
|
|
6290
|
+
var defaultProps$l = {
|
|
6527
6291
|
fluid: true
|
|
6528
6292
|
};
|
|
6529
|
-
var FigureImage =
|
|
6293
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6530
6294
|
var className = _ref.className,
|
|
6531
6295
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6532
6296
|
|
|
6533
|
-
return /*#__PURE__*/
|
|
6297
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6534
6298
|
ref: ref
|
|
6535
6299
|
}, props, {
|
|
6536
6300
|
className: classnames(className, 'figure-img')
|
|
6537
6301
|
}));
|
|
6538
6302
|
});
|
|
6539
6303
|
FigureImage.displayName = 'FigureImage';
|
|
6540
|
-
FigureImage.propTypes = propTypes$
|
|
6541
|
-
FigureImage.defaultProps = defaultProps$
|
|
6304
|
+
FigureImage.propTypes = propTypes$7;
|
|
6305
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6542
6306
|
|
|
6543
6307
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6544
6308
|
Component: 'figcaption'
|
|
@@ -6557,13 +6321,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6557
6321
|
});
|
|
6558
6322
|
|
|
6559
6323
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6560
|
-
return /*#__PURE__*/
|
|
6324
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6561
6325
|
type: "checkbox"
|
|
6562
6326
|
}, props)));
|
|
6563
6327
|
};
|
|
6564
6328
|
|
|
6565
6329
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6566
|
-
return /*#__PURE__*/
|
|
6330
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6567
6331
|
type: "radio"
|
|
6568
6332
|
}, props)));
|
|
6569
6333
|
};
|
|
@@ -6576,7 +6340,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6576
6340
|
* @property {InputGroupRadio} Radio
|
|
6577
6341
|
* @property {InputGroupCheckbox} Checkbox
|
|
6578
6342
|
*/
|
|
6579
|
-
var InputGroup =
|
|
6343
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6580
6344
|
var bsPrefix = _ref.bsPrefix,
|
|
6581
6345
|
size = _ref.size,
|
|
6582
6346
|
className = _ref.className,
|
|
@@ -6585,7 +6349,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6585
6349
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6586
6350
|
|
|
6587
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6588
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6589
6353
|
ref: ref
|
|
6590
6354
|
}, props, {
|
|
6591
6355
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6593,7 +6357,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6593
6357
|
});
|
|
6594
6358
|
InputGroup.displayName = 'InputGroup';
|
|
6595
6359
|
|
|
6596
|
-
_extends({}, InputGroup, {
|
|
6360
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6597
6361
|
Text: InputGroupText,
|
|
6598
6362
|
Radio: InputGroupRadio,
|
|
6599
6363
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6601,10 +6365,10 @@ _extends({}, InputGroup, {
|
|
|
6601
6365
|
Prepend: InputGroupPrepend
|
|
6602
6366
|
});
|
|
6603
6367
|
|
|
6604
|
-
var defaultProps$
|
|
6368
|
+
var defaultProps$m = {
|
|
6605
6369
|
fluid: false
|
|
6606
6370
|
};
|
|
6607
|
-
var Jumbotron =
|
|
6371
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6608
6372
|
var _classes;
|
|
6609
6373
|
|
|
6610
6374
|
var _ref$as = _ref.as,
|
|
@@ -6616,21 +6380,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6616
6380
|
|
|
6617
6381
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6618
6382
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6619
|
-
return /*#__PURE__*/
|
|
6383
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6620
6384
|
ref: ref
|
|
6621
6385
|
}, props, {
|
|
6622
6386
|
className: classnames(className, classes)
|
|
6623
6387
|
}));
|
|
6624
6388
|
});
|
|
6625
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6389
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6626
6390
|
Jumbotron.displayName = 'Jumbotron';
|
|
6627
6391
|
|
|
6628
|
-
var TabContext =
|
|
6392
|
+
var TabContext = React.createContext(null);
|
|
6629
6393
|
|
|
6630
6394
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6631
|
-
var noop$
|
|
6395
|
+
var noop$4 = function noop() {};
|
|
6632
6396
|
|
|
6633
|
-
var AbstractNav =
|
|
6397
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6634
6398
|
var _ref$as = _ref.as,
|
|
6635
6399
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6636
6400
|
onSelect = _ref.onSelect,
|
|
@@ -6711,27 +6475,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6711
6475
|
needsRefocusRef.current = false;
|
|
6712
6476
|
});
|
|
6713
6477
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6714
|
-
return /*#__PURE__*/
|
|
6478
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6715
6479
|
value: handleSelect
|
|
6716
|
-
}, /*#__PURE__*/
|
|
6480
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6717
6481
|
value: {
|
|
6718
6482
|
role: role,
|
|
6719
6483
|
// used by NavLink to determine it's role
|
|
6720
6484
|
activeKey: makeEventKey(activeKey),
|
|
6721
|
-
getControlledId: getControlledId || noop$
|
|
6722
|
-
getControllerId: getControllerId || noop$
|
|
6485
|
+
getControlledId: getControlledId || noop$4,
|
|
6486
|
+
getControllerId: getControllerId || noop$4
|
|
6723
6487
|
}
|
|
6724
|
-
}, /*#__PURE__*/
|
|
6488
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6725
6489
|
onKeyDown: handleKeyDown,
|
|
6726
6490
|
ref: mergedRef,
|
|
6727
6491
|
role: role
|
|
6728
6492
|
}))));
|
|
6729
6493
|
});
|
|
6730
6494
|
|
|
6731
|
-
var defaultProps$
|
|
6495
|
+
var defaultProps$n = {
|
|
6732
6496
|
disabled: false
|
|
6733
6497
|
};
|
|
6734
|
-
var AbstractNavItem =
|
|
6498
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6735
6499
|
var active = _ref.active,
|
|
6736
6500
|
className = _ref.className,
|
|
6737
6501
|
eventKey = _ref.eventKey,
|
|
@@ -6768,20 +6532,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6768
6532
|
if (onSelect) onSelect(navKey, e);
|
|
6769
6533
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6770
6534
|
});
|
|
6771
|
-
return /*#__PURE__*/
|
|
6535
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6772
6536
|
ref: ref,
|
|
6773
6537
|
onClick: handleOnclick,
|
|
6774
6538
|
className: classnames(className, isActive && 'active')
|
|
6775
6539
|
}));
|
|
6776
6540
|
});
|
|
6777
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6541
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6778
6542
|
|
|
6779
|
-
var defaultProps$
|
|
6543
|
+
var defaultProps$o = {
|
|
6780
6544
|
variant: undefined,
|
|
6781
6545
|
active: false,
|
|
6782
6546
|
disabled: false
|
|
6783
6547
|
};
|
|
6784
|
-
var ListGroupItem =
|
|
6548
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6785
6549
|
var bsPrefix = _ref.bsPrefix,
|
|
6786
6550
|
active = _ref.active,
|
|
6787
6551
|
disabled = _ref.disabled,
|
|
@@ -6803,25 +6567,24 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6803
6567
|
|
|
6804
6568
|
if (onClick) onClick(event);
|
|
6805
6569
|
}, [disabled, onClick]);
|
|
6806
|
-
return /*#__PURE__*/
|
|
6570
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6807
6571
|
ref: ref
|
|
6808
6572
|
}, props, {
|
|
6809
|
-
|
|
6810
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6573
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6811
6574
|
,
|
|
6812
6575
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6813
6576
|
onClick: handleClick,
|
|
6814
6577
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6815
6578
|
}));
|
|
6816
6579
|
});
|
|
6817
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6580
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6818
6581
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6819
6582
|
|
|
6820
|
-
var defaultProps$
|
|
6583
|
+
var defaultProps$p = {
|
|
6821
6584
|
variant: undefined,
|
|
6822
6585
|
horizontal: undefined
|
|
6823
6586
|
};
|
|
6824
|
-
var ListGroup =
|
|
6587
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6825
6588
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6826
6589
|
activeKey: 'onSelect'
|
|
6827
6590
|
}),
|
|
@@ -6843,19 +6606,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6843
6606
|
}
|
|
6844
6607
|
|
|
6845
6608
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6846
|
-
return /*#__PURE__*/
|
|
6609
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6847
6610
|
ref: ref
|
|
6848
6611
|
}, controlledProps, {
|
|
6849
6612
|
as: as,
|
|
6850
6613
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6851
6614
|
}));
|
|
6852
6615
|
});
|
|
6853
|
-
ListGroup.defaultProps = defaultProps$
|
|
6616
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6854
6617
|
ListGroup.displayName = 'ListGroup';
|
|
6855
6618
|
ListGroup.Item = ListGroupItem;
|
|
6856
6619
|
|
|
6857
6620
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6858
|
-
var Media =
|
|
6621
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6859
6622
|
function (_ref, ref) {
|
|
6860
6623
|
var bsPrefix = _ref.bsPrefix,
|
|
6861
6624
|
className = _ref.className,
|
|
@@ -6864,7 +6627,7 @@ function (_ref, ref) {
|
|
|
6864
6627
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6865
6628
|
|
|
6866
6629
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6867
|
-
return /*#__PURE__*/
|
|
6630
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6868
6631
|
ref: ref,
|
|
6869
6632
|
className: classnames(className, prefix)
|
|
6870
6633
|
}));
|
|
@@ -6892,14 +6655,14 @@ function scrollbarSize(recalc) {
|
|
|
6892
6655
|
}
|
|
6893
6656
|
|
|
6894
6657
|
/**
|
|
6895
|
-
*
|
|
6658
|
+
* Return the actively focused element safely.
|
|
6896
6659
|
*
|
|
6897
|
-
* @param doc the document to
|
|
6660
|
+
* @param doc the document to checl
|
|
6898
6661
|
*/
|
|
6899
6662
|
|
|
6900
6663
|
function activeElement(doc) {
|
|
6901
6664
|
if (doc === void 0) {
|
|
6902
|
-
doc = ownerDocument
|
|
6665
|
+
doc = ownerDocument();
|
|
6903
6666
|
}
|
|
6904
6667
|
|
|
6905
6668
|
// Support: IE 9 only
|
|
@@ -6916,13 +6679,6 @@ function activeElement(doc) {
|
|
|
6916
6679
|
}
|
|
6917
6680
|
}
|
|
6918
6681
|
|
|
6919
|
-
/**
|
|
6920
|
-
* Adds a CSS class to a given element.
|
|
6921
|
-
*
|
|
6922
|
-
* @param element the element
|
|
6923
|
-
* @param className the CSS class name
|
|
6924
|
-
*/
|
|
6925
|
-
|
|
6926
6682
|
function addClass(element, className) {
|
|
6927
6683
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6928
6684
|
}
|
|
@@ -6930,13 +6686,6 @@ function addClass(element, className) {
|
|
|
6930
6686
|
function replaceClassName(origClass, classToRemove) {
|
|
6931
6687
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6932
6688
|
}
|
|
6933
|
-
/**
|
|
6934
|
-
* Removes a CSS class from a given element.
|
|
6935
|
-
*
|
|
6936
|
-
* @param element the element
|
|
6937
|
-
* @param className the CSS class name
|
|
6938
|
-
*/
|
|
6939
|
-
|
|
6940
6689
|
|
|
6941
6690
|
function removeClass(element, className) {
|
|
6942
6691
|
if (element.classList) {
|
|
@@ -6963,7 +6712,7 @@ function isBody(node) {
|
|
|
6963
6712
|
}
|
|
6964
6713
|
|
|
6965
6714
|
function bodyIsOverflowing(node) {
|
|
6966
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6715
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6967
6716
|
var win = isWindow(node) || doc.defaultView;
|
|
6968
6717
|
return doc.body.clientWidth < win.innerWidth;
|
|
6969
6718
|
}
|
|
@@ -7175,7 +6924,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7175
6924
|
var _ref;
|
|
7176
6925
|
|
|
7177
6926
|
if (typeof document === 'undefined') return null;
|
|
7178
|
-
if (ref == null) return ownerDocument
|
|
6927
|
+
if (ref == null) return ownerDocument().body;
|
|
7179
6928
|
if (typeof ref === 'function') ref = ref();
|
|
7180
6929
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7181
6930
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7208,11 +6957,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7208
6957
|
return resolvedRef;
|
|
7209
6958
|
}
|
|
7210
6959
|
|
|
7211
|
-
var manager
|
|
6960
|
+
var manager;
|
|
7212
6961
|
|
|
7213
6962
|
function getManager() {
|
|
7214
|
-
if (!manager
|
|
7215
|
-
return manager
|
|
6963
|
+
if (!manager) manager = new ModalManager();
|
|
6964
|
+
return manager;
|
|
7216
6965
|
}
|
|
7217
6966
|
|
|
7218
6967
|
function useModalManager(provided) {
|
|
@@ -7240,7 +6989,7 @@ function useModalManager(provided) {
|
|
|
7240
6989
|
});
|
|
7241
6990
|
}
|
|
7242
6991
|
|
|
7243
|
-
var Modal
|
|
6992
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7244
6993
|
var _ref$show = _ref.show,
|
|
7245
6994
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7246
6995
|
_ref$role = _ref.role,
|
|
@@ -7266,7 +7015,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7266
7015
|
renderDialog = _ref.renderDialog,
|
|
7267
7016
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7268
7017
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7269
|
-
return /*#__PURE__*/
|
|
7018
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7270
7019
|
} : _ref$renderBackdrop,
|
|
7271
7020
|
providedManager = _ref.manager,
|
|
7272
7021
|
containerRef = _ref.container,
|
|
@@ -7324,7 +7073,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7324
7073
|
if (autoFocus) {
|
|
7325
7074
|
var currentActiveElement = activeElement(document);
|
|
7326
7075
|
|
|
7327
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7076
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7328
7077
|
lastFocusRef.current = currentActiveElement;
|
|
7329
7078
|
modal.dialog.focus();
|
|
7330
7079
|
}
|
|
@@ -7370,7 +7119,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7370
7119
|
|
|
7371
7120
|
var currentActiveElement = activeElement();
|
|
7372
7121
|
|
|
7373
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7122
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7374
7123
|
modal.dialog.focus();
|
|
7375
7124
|
}
|
|
7376
7125
|
});
|
|
@@ -7424,12 +7173,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7424
7173
|
tabIndex: -1
|
|
7425
7174
|
});
|
|
7426
7175
|
|
|
7427
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7176
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7428
7177
|
role: 'document'
|
|
7429
7178
|
}));
|
|
7430
7179
|
|
|
7431
7180
|
if (Transition) {
|
|
7432
|
-
dialog = /*#__PURE__*/
|
|
7181
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7433
7182
|
appear: true,
|
|
7434
7183
|
unmountOnExit: true,
|
|
7435
7184
|
"in": !!show,
|
|
@@ -7452,16 +7201,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7452
7201
|
});
|
|
7453
7202
|
|
|
7454
7203
|
if (BackdropTransition) {
|
|
7455
|
-
backdropElement = /*#__PURE__*/
|
|
7204
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7456
7205
|
appear: true,
|
|
7457
7206
|
"in": !!show
|
|
7458
7207
|
}, backdropElement);
|
|
7459
7208
|
}
|
|
7460
7209
|
}
|
|
7461
7210
|
|
|
7462
|
-
return /*#__PURE__*/
|
|
7211
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7463
7212
|
});
|
|
7464
|
-
var propTypes$
|
|
7213
|
+
var propTypes$8 = {
|
|
7465
7214
|
/**
|
|
7466
7215
|
* Set the visibility of the Modal
|
|
7467
7216
|
*/
|
|
@@ -7617,9 +7366,9 @@ var propTypes$2 = {
|
|
|
7617
7366
|
*/
|
|
7618
7367
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7619
7368
|
};
|
|
7620
|
-
Modal
|
|
7621
|
-
Modal
|
|
7622
|
-
var BaseModal = Object.assign(Modal
|
|
7369
|
+
Modal.displayName = 'Modal';
|
|
7370
|
+
Modal.propTypes = propTypes$8;
|
|
7371
|
+
var BaseModal = Object.assign(Modal, {
|
|
7623
7372
|
Manager: ModalManager
|
|
7624
7373
|
});
|
|
7625
7374
|
|
|
@@ -7698,39 +7447,38 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7698
7447
|
|
|
7699
7448
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7700
7449
|
|
|
7701
|
-
var ModalContext =
|
|
7450
|
+
var ModalContext = React.createContext({
|
|
7702
7451
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7703
7452
|
onHide: function onHide() {}
|
|
7704
7453
|
});
|
|
7705
7454
|
|
|
7706
|
-
var ModalDialog =
|
|
7455
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7707
7456
|
var bsPrefix = _ref.bsPrefix,
|
|
7708
7457
|
className = _ref.className,
|
|
7709
|
-
contentClassName = _ref.contentClassName,
|
|
7710
7458
|
centered = _ref.centered,
|
|
7711
7459
|
size = _ref.size,
|
|
7712
7460
|
children = _ref.children,
|
|
7713
7461
|
scrollable = _ref.scrollable,
|
|
7714
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7462
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7715
7463
|
|
|
7716
7464
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7717
7465
|
var dialogClass = bsPrefix + "-dialog";
|
|
7718
|
-
return /*#__PURE__*/
|
|
7466
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7719
7467
|
ref: ref,
|
|
7720
7468
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7721
|
-
}), /*#__PURE__*/
|
|
7722
|
-
className:
|
|
7469
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7470
|
+
className: bsPrefix + "-content"
|
|
7723
7471
|
}, children));
|
|
7724
7472
|
});
|
|
7725
7473
|
ModalDialog.displayName = 'ModalDialog';
|
|
7726
7474
|
|
|
7727
7475
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7728
7476
|
|
|
7729
|
-
var defaultProps$
|
|
7477
|
+
var defaultProps$q = {
|
|
7730
7478
|
closeLabel: 'Close',
|
|
7731
7479
|
closeButton: false
|
|
7732
7480
|
};
|
|
7733
|
-
var ModalHeader =
|
|
7481
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7734
7482
|
var bsPrefix = _ref.bsPrefix,
|
|
7735
7483
|
closeLabel = _ref.closeLabel,
|
|
7736
7484
|
closeButton = _ref.closeButton,
|
|
@@ -7745,25 +7493,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7745
7493
|
if (context) context.onHide();
|
|
7746
7494
|
if (onHide) onHide();
|
|
7747
7495
|
});
|
|
7748
|
-
return /*#__PURE__*/
|
|
7496
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7749
7497
|
ref: ref
|
|
7750
7498
|
}, props, {
|
|
7751
7499
|
className: classnames(className, bsPrefix)
|
|
7752
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7500
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7753
7501
|
label: closeLabel,
|
|
7754
7502
|
onClick: handleClick
|
|
7755
7503
|
}));
|
|
7756
7504
|
});
|
|
7757
7505
|
ModalHeader.displayName = 'ModalHeader';
|
|
7758
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7506
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7759
7507
|
|
|
7760
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7508
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7761
7509
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7762
|
-
Component: DivStyledAsH4
|
|
7510
|
+
Component: DivStyledAsH4$1
|
|
7763
7511
|
});
|
|
7764
7512
|
|
|
7765
|
-
var manager;
|
|
7766
|
-
var defaultProps$
|
|
7513
|
+
var manager$1;
|
|
7514
|
+
var defaultProps$r = {
|
|
7767
7515
|
show: false,
|
|
7768
7516
|
backdrop: true,
|
|
7769
7517
|
keyboard: true,
|
|
@@ -7776,21 +7524,20 @@ var defaultProps$d = {
|
|
|
7776
7524
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7777
7525
|
|
|
7778
7526
|
function DialogTransition(props) {
|
|
7779
|
-
return /*#__PURE__*/
|
|
7527
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7780
7528
|
}
|
|
7781
7529
|
|
|
7782
7530
|
function BackdropTransition(props) {
|
|
7783
|
-
return /*#__PURE__*/
|
|
7531
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7784
7532
|
}
|
|
7785
7533
|
/* eslint-enable no-use-before-define */
|
|
7786
7534
|
|
|
7787
7535
|
|
|
7788
|
-
var Modal =
|
|
7536
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7789
7537
|
var bsPrefix = _ref.bsPrefix,
|
|
7790
7538
|
className = _ref.className,
|
|
7791
7539
|
style = _ref.style,
|
|
7792
7540
|
dialogClassName = _ref.dialogClassName,
|
|
7793
|
-
contentClassName = _ref.contentClassName,
|
|
7794
7541
|
children = _ref.children,
|
|
7795
7542
|
Dialog = _ref.dialogAs,
|
|
7796
7543
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7814,7 +7561,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7814
7561
|
onExited = _ref.onExited,
|
|
7815
7562
|
backdropClassName = _ref.backdropClassName,
|
|
7816
7563
|
propsManager = _ref.manager,
|
|
7817
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "
|
|
7564
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7818
7565
|
|
|
7819
7566
|
var _useState = useState({}),
|
|
7820
7567
|
modalStyle = _useState[0],
|
|
@@ -7851,14 +7598,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7851
7598
|
|
|
7852
7599
|
function getModalManager() {
|
|
7853
7600
|
if (propsManager) return propsManager;
|
|
7854
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7855
|
-
return manager;
|
|
7601
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7602
|
+
return manager$1;
|
|
7856
7603
|
}
|
|
7857
7604
|
|
|
7858
7605
|
function updateDialogStyle(node) {
|
|
7859
7606
|
if (!canUseDOM) return;
|
|
7860
7607
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7861
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7608
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7862
7609
|
setStyle({
|
|
7863
7610
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7864
7611
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7980,7 +7727,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7980
7727
|
};
|
|
7981
7728
|
|
|
7982
7729
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7983
|
-
return /*#__PURE__*/
|
|
7730
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7984
7731
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7985
7732
|
}));
|
|
7986
7733
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7993,7 +7740,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7993
7740
|
}
|
|
7994
7741
|
|
|
7995
7742
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7996
|
-
return /*#__PURE__*/
|
|
7743
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7997
7744
|
role: "dialog"
|
|
7998
7745
|
}, dialogProps, {
|
|
7999
7746
|
style: baseModalStyle,
|
|
@@ -8001,17 +7748,16 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8001
7748
|
onClick: backdrop ? handleClick : undefined,
|
|
8002
7749
|
onMouseUp: handleMouseUp,
|
|
8003
7750
|
"aria-labelledby": ariaLabelledby
|
|
8004
|
-
}), /*#__PURE__*/
|
|
7751
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
8005
7752
|
role: "document",
|
|
8006
7753
|
onMouseDown: handleDialogMouseDown,
|
|
8007
|
-
className: dialogClassName
|
|
8008
|
-
contentClassName: contentClassName
|
|
7754
|
+
className: dialogClassName
|
|
8009
7755
|
}), children));
|
|
8010
7756
|
};
|
|
8011
7757
|
|
|
8012
|
-
return /*#__PURE__*/
|
|
7758
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
8013
7759
|
value: modalContext
|
|
8014
|
-
}, /*#__PURE__*/
|
|
7760
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
8015
7761
|
show: show,
|
|
8016
7762
|
ref: setModalRef,
|
|
8017
7763
|
backdrop: backdrop,
|
|
@@ -8039,17 +7785,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8039
7785
|
renderDialog: renderDialog
|
|
8040
7786
|
}));
|
|
8041
7787
|
});
|
|
8042
|
-
Modal.displayName = 'Modal';
|
|
8043
|
-
Modal.defaultProps = defaultProps$
|
|
8044
|
-
Modal.Body = ModalBody;
|
|
8045
|
-
Modal.Header = ModalHeader;
|
|
8046
|
-
Modal.Title = ModalTitle;
|
|
8047
|
-
Modal.Footer = ModalFooter;
|
|
8048
|
-
Modal.Dialog = ModalDialog;
|
|
8049
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8050
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8051
|
-
|
|
8052
|
-
var NavItem =
|
|
7788
|
+
Modal$1.displayName = 'Modal';
|
|
7789
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7790
|
+
Modal$1.Body = ModalBody;
|
|
7791
|
+
Modal$1.Header = ModalHeader;
|
|
7792
|
+
Modal$1.Title = ModalTitle;
|
|
7793
|
+
Modal$1.Footer = ModalFooter;
|
|
7794
|
+
Modal$1.Dialog = ModalDialog;
|
|
7795
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7796
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7797
|
+
|
|
7798
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8053
7799
|
function (_ref, ref) {
|
|
8054
7800
|
var bsPrefix = _ref.bsPrefix,
|
|
8055
7801
|
className = _ref.className,
|
|
@@ -8059,18 +7805,18 @@ function (_ref, ref) {
|
|
|
8059
7805
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8060
7806
|
|
|
8061
7807
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8062
|
-
return /*#__PURE__*/
|
|
7808
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8063
7809
|
ref: ref,
|
|
8064
7810
|
className: classnames(className, bsPrefix)
|
|
8065
7811
|
}), children);
|
|
8066
7812
|
});
|
|
8067
7813
|
NavItem.displayName = 'NavItem';
|
|
8068
7814
|
|
|
8069
|
-
var defaultProps$
|
|
7815
|
+
var defaultProps$s = {
|
|
8070
7816
|
disabled: false,
|
|
8071
7817
|
as: SafeAnchor
|
|
8072
7818
|
};
|
|
8073
|
-
var NavLink =
|
|
7819
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8074
7820
|
var bsPrefix = _ref.bsPrefix,
|
|
8075
7821
|
disabled = _ref.disabled,
|
|
8076
7822
|
className = _ref.className,
|
|
@@ -8081,7 +7827,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8081
7827
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8082
7828
|
|
|
8083
7829
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8084
|
-
return /*#__PURE__*/
|
|
7830
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8085
7831
|
href: href,
|
|
8086
7832
|
ref: ref,
|
|
8087
7833
|
eventKey: eventKey,
|
|
@@ -8092,13 +7838,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8092
7838
|
}));
|
|
8093
7839
|
});
|
|
8094
7840
|
NavLink.displayName = 'NavLink';
|
|
8095
|
-
NavLink.defaultProps = defaultProps$
|
|
7841
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8096
7842
|
|
|
8097
|
-
var defaultProps$
|
|
7843
|
+
var defaultProps$t = {
|
|
8098
7844
|
justify: false,
|
|
8099
7845
|
fill: false
|
|
8100
7846
|
};
|
|
8101
|
-
var Nav =
|
|
7847
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8102
7848
|
var _classNames;
|
|
8103
7849
|
|
|
8104
7850
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8120,7 +7866,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8120
7866
|
var navbarBsPrefix;
|
|
8121
7867
|
var cardHeaderBsPrefix;
|
|
8122
7868
|
var isNavbar = false;
|
|
8123
|
-
var navbarContext = useContext(context);
|
|
7869
|
+
var navbarContext = useContext(context$2);
|
|
8124
7870
|
var cardContext = useContext(context$1);
|
|
8125
7871
|
|
|
8126
7872
|
if (navbarContext) {
|
|
@@ -8130,7 +7876,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8130
7876
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8131
7877
|
}
|
|
8132
7878
|
|
|
8133
|
-
return /*#__PURE__*/
|
|
7879
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8134
7880
|
as: as,
|
|
8135
7881
|
ref: ref,
|
|
8136
7882
|
activeKey: activeKey,
|
|
@@ -8138,11 +7884,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8138
7884
|
}, props), children);
|
|
8139
7885
|
});
|
|
8140
7886
|
Nav.displayName = 'Nav';
|
|
8141
|
-
Nav.defaultProps = defaultProps$
|
|
7887
|
+
Nav.defaultProps = defaultProps$t;
|
|
8142
7888
|
Nav.Item = NavItem;
|
|
8143
7889
|
Nav.Link = NavLink;
|
|
8144
7890
|
|
|
8145
|
-
var NavbarBrand =
|
|
7891
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8146
7892
|
var bsPrefix = _ref.bsPrefix,
|
|
8147
7893
|
className = _ref.className,
|
|
8148
7894
|
as = _ref.as,
|
|
@@ -8150,23 +7896,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8150
7896
|
|
|
8151
7897
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8152
7898
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8153
|
-
return /*#__PURE__*/
|
|
7899
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8154
7900
|
ref: ref,
|
|
8155
7901
|
className: classnames(className, bsPrefix)
|
|
8156
7902
|
}));
|
|
8157
7903
|
});
|
|
8158
7904
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8159
7905
|
|
|
8160
|
-
var NavbarCollapse =
|
|
7906
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8161
7907
|
var children = _ref.children,
|
|
8162
7908
|
bsPrefix = _ref.bsPrefix,
|
|
8163
7909
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8164
7910
|
|
|
8165
7911
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8166
|
-
return /*#__PURE__*/
|
|
8167
|
-
return /*#__PURE__*/
|
|
7912
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
7913
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8168
7914
|
in: !!(context && context.expanded)
|
|
8169
|
-
}, props), /*#__PURE__*/
|
|
7915
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8170
7916
|
ref: ref,
|
|
8171
7917
|
className: bsPrefix
|
|
8172
7918
|
}, children));
|
|
@@ -8174,10 +7920,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8174
7920
|
});
|
|
8175
7921
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8176
7922
|
|
|
8177
|
-
var defaultProps$
|
|
7923
|
+
var defaultProps$u = {
|
|
8178
7924
|
label: 'Toggle navigation'
|
|
8179
7925
|
};
|
|
8180
|
-
var NavbarToggle =
|
|
7926
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8181
7927
|
var bsPrefix = _ref.bsPrefix,
|
|
8182
7928
|
className = _ref.className,
|
|
8183
7929
|
children = _ref.children,
|
|
@@ -8189,7 +7935,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8189
7935
|
|
|
8190
7936
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8191
7937
|
|
|
8192
|
-
var _ref2 = useContext(context) || {},
|
|
7938
|
+
var _ref2 = useContext(context$2) || {},
|
|
8193
7939
|
onToggle = _ref2.onToggle,
|
|
8194
7940
|
expanded = _ref2.expanded;
|
|
8195
7941
|
|
|
@@ -8202,27 +7948,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8202
7948
|
props.type = 'button';
|
|
8203
7949
|
}
|
|
8204
7950
|
|
|
8205
|
-
return /*#__PURE__*/
|
|
7951
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8206
7952
|
ref: ref,
|
|
8207
7953
|
onClick: handleClick,
|
|
8208
7954
|
"aria-label": label,
|
|
8209
7955
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8210
|
-
}), children || /*#__PURE__*/
|
|
7956
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8211
7957
|
className: bsPrefix + "-icon"
|
|
8212
7958
|
}));
|
|
8213
7959
|
});
|
|
8214
7960
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8215
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
7961
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8216
7962
|
|
|
8217
7963
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8218
7964
|
Component: 'span'
|
|
8219
7965
|
});
|
|
8220
|
-
var defaultProps$
|
|
7966
|
+
var defaultProps$v = {
|
|
8221
7967
|
expand: true,
|
|
8222
7968
|
variant: 'light',
|
|
8223
7969
|
collapseOnSelect: false
|
|
8224
7970
|
};
|
|
8225
|
-
var Navbar =
|
|
7971
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8226
7972
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8227
7973
|
expanded: 'onToggle'
|
|
8228
7974
|
}),
|
|
@@ -8270,24 +8016,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8270
8016
|
expanded: !!expanded
|
|
8271
8017
|
};
|
|
8272
8018
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8273
|
-
return /*#__PURE__*/
|
|
8019
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8274
8020
|
value: navbarContext
|
|
8275
|
-
}, /*#__PURE__*/
|
|
8021
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8276
8022
|
value: handleCollapse
|
|
8277
|
-
}, /*#__PURE__*/
|
|
8023
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8278
8024
|
ref: ref
|
|
8279
8025
|
}, controlledProps, {
|
|
8280
8026
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8281
8027
|
}), children)));
|
|
8282
8028
|
});
|
|
8283
|
-
Navbar.defaultProps = defaultProps$
|
|
8029
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8284
8030
|
Navbar.displayName = 'Navbar';
|
|
8285
8031
|
Navbar.Brand = NavbarBrand;
|
|
8286
8032
|
Navbar.Toggle = NavbarToggle;
|
|
8287
8033
|
Navbar.Collapse = NavbarCollapse;
|
|
8288
8034
|
Navbar.Text = NavbarText;
|
|
8289
8035
|
|
|
8290
|
-
var propTypes$
|
|
8036
|
+
var propTypes$9 = {
|
|
8291
8037
|
/**
|
|
8292
8038
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8293
8039
|
* @type {string|number}
|
|
@@ -8323,7 +8069,7 @@ var propTypes$1 = {
|
|
|
8323
8069
|
/** @ignore */
|
|
8324
8070
|
bsPrefix: PropTypes.string
|
|
8325
8071
|
};
|
|
8326
|
-
var NavDropdown =
|
|
8072
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8327
8073
|
var id = _ref.id,
|
|
8328
8074
|
title = _ref.title,
|
|
8329
8075
|
children = _ref.children,
|
|
@@ -8335,35 +8081,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8335
8081
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8336
8082
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8337
8083
|
|
|
8338
|
-
return /*#__PURE__*/
|
|
8084
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8339
8085
|
ref: ref
|
|
8340
8086
|
}, props, {
|
|
8341
8087
|
as: NavItem
|
|
8342
|
-
}), /*#__PURE__*/
|
|
8088
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8343
8089
|
id: id,
|
|
8344
8090
|
eventKey: null,
|
|
8345
8091
|
active: active,
|
|
8346
8092
|
disabled: disabled,
|
|
8347
8093
|
childBsPrefix: bsPrefix,
|
|
8348
8094
|
as: NavLink
|
|
8349
|
-
}, title), /*#__PURE__*/
|
|
8095
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8350
8096
|
role: menuRole,
|
|
8351
8097
|
renderOnMount: renderMenuOnMount,
|
|
8352
8098
|
rootCloseEvent: rootCloseEvent
|
|
8353
8099
|
}, children));
|
|
8354
8100
|
});
|
|
8355
8101
|
NavDropdown.displayName = 'NavDropdown';
|
|
8356
|
-
NavDropdown.propTypes = propTypes$
|
|
8357
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8358
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8359
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8360
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8102
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8103
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8104
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8105
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8106
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8361
8107
|
|
|
8362
8108
|
/**
|
|
8363
8109
|
* Built on top of `Popper.js`, the overlay component is
|
|
8364
8110
|
* great for custom tooltip overlays.
|
|
8365
8111
|
*/
|
|
8366
|
-
var Overlay = /*#__PURE__*/
|
|
8112
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8367
8113
|
var flip = props.flip,
|
|
8368
8114
|
offset = props.offset,
|
|
8369
8115
|
placement = props.placement,
|
|
@@ -8446,7 +8192,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8446
8192
|
onEnter = props.onEnter,
|
|
8447
8193
|
onEntering = props.onEntering,
|
|
8448
8194
|
onEntered = props.onEntered;
|
|
8449
|
-
child = /*#__PURE__*/
|
|
8195
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8450
8196
|
"in": props.show,
|
|
8451
8197
|
appear: true,
|
|
8452
8198
|
onExit: onExit,
|
|
@@ -8598,7 +8344,7 @@ Overlay.propTypes = {
|
|
|
8598
8344
|
onExited: PropTypes.func
|
|
8599
8345
|
};
|
|
8600
8346
|
|
|
8601
|
-
/*#__PURE__*/
|
|
8347
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8602
8348
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8603
8349
|
|
|
8604
8350
|
function RefHolder() {
|
|
@@ -8612,14 +8358,14 @@ Overlay.propTypes = {
|
|
|
8612
8358
|
};
|
|
8613
8359
|
|
|
8614
8360
|
return RefHolder;
|
|
8615
|
-
}
|
|
8361
|
+
}(React.Component);
|
|
8616
8362
|
|
|
8617
|
-
var defaultProps$
|
|
8363
|
+
var defaultProps$w = {
|
|
8618
8364
|
active: false,
|
|
8619
8365
|
disabled: false,
|
|
8620
8366
|
activeLabel: '(current)'
|
|
8621
8367
|
};
|
|
8622
|
-
var PageItem =
|
|
8368
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8623
8369
|
var active = _ref.active,
|
|
8624
8370
|
disabled = _ref.disabled,
|
|
8625
8371
|
className = _ref.className,
|
|
@@ -8629,21 +8375,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8629
8375
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8630
8376
|
|
|
8631
8377
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8632
|
-
return /*#__PURE__*/
|
|
8378
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8633
8379
|
ref: ref,
|
|
8634
8380
|
style: style,
|
|
8635
8381
|
className: classnames(className, 'page-item', {
|
|
8636
8382
|
active: active,
|
|
8637
8383
|
disabled: disabled
|
|
8638
8384
|
})
|
|
8639
|
-
}, /*#__PURE__*/
|
|
8385
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8640
8386
|
className: "page-link",
|
|
8641
8387
|
disabled: disabled
|
|
8642
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8388
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8643
8389
|
className: "sr-only"
|
|
8644
8390
|
}, activeLabel)));
|
|
8645
8391
|
});
|
|
8646
|
-
PageItem.defaultProps = defaultProps$
|
|
8392
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8647
8393
|
PageItem.displayName = 'PageItem';
|
|
8648
8394
|
|
|
8649
8395
|
function createButton(name, defaultValue, label) {
|
|
@@ -8655,9 +8401,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8655
8401
|
var children = _ref2.children,
|
|
8656
8402
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8657
8403
|
|
|
8658
|
-
return /*#__PURE__*/
|
|
8404
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8659
8405
|
"aria-hidden": "true"
|
|
8660
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8406
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8661
8407
|
className: "sr-only"
|
|
8662
8408
|
}, label));
|
|
8663
8409
|
}
|
|
@@ -8680,7 +8426,7 @@ var Last = createButton('Last', '»');
|
|
|
8680
8426
|
* @property {PageItem} Next
|
|
8681
8427
|
* @property {PageItem} Last
|
|
8682
8428
|
*/
|
|
8683
|
-
var Pagination =
|
|
8429
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8684
8430
|
var bsPrefix = _ref.bsPrefix,
|
|
8685
8431
|
className = _ref.className,
|
|
8686
8432
|
children = _ref.children,
|
|
@@ -8688,7 +8434,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8688
8434
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8689
8435
|
|
|
8690
8436
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8691
|
-
return /*#__PURE__*/
|
|
8437
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8692
8438
|
ref: ref
|
|
8693
8439
|
}, props, {
|
|
8694
8440
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8701,7 +8447,7 @@ Pagination.Item = PageItem;
|
|
|
8701
8447
|
Pagination.Next = Next;
|
|
8702
8448
|
Pagination.Last = Last;
|
|
8703
8449
|
|
|
8704
|
-
var PopoverTitle =
|
|
8450
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8705
8451
|
var _ref$as = _ref.as,
|
|
8706
8452
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8707
8453
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8710,14 +8456,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8710
8456
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8711
8457
|
|
|
8712
8458
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8713
|
-
return /*#__PURE__*/
|
|
8459
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8714
8460
|
ref: ref
|
|
8715
8461
|
}, props, {
|
|
8716
8462
|
className: classnames(bsPrefix, className)
|
|
8717
8463
|
}), children);
|
|
8718
8464
|
});
|
|
8719
8465
|
|
|
8720
|
-
var PopoverContent =
|
|
8466
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8721
8467
|
var _ref$as = _ref.as,
|
|
8722
8468
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8723
8469
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8726,50 +8472,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8726
8472
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8727
8473
|
|
|
8728
8474
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8729
|
-
return /*#__PURE__*/
|
|
8475
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8730
8476
|
ref: ref
|
|
8731
8477
|
}, props, {
|
|
8732
8478
|
className: classnames(className, bsPrefix)
|
|
8733
8479
|
}), children);
|
|
8734
8480
|
});
|
|
8735
8481
|
|
|
8736
|
-
var defaultProps$
|
|
8482
|
+
var defaultProps$x = {
|
|
8737
8483
|
placement: 'right'
|
|
8738
8484
|
};
|
|
8739
|
-
var Popover =
|
|
8485
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8740
8486
|
var bsPrefix = _ref.bsPrefix,
|
|
8741
8487
|
placement = _ref.placement,
|
|
8742
8488
|
className = _ref.className,
|
|
8743
8489
|
style = _ref.style,
|
|
8744
8490
|
children = _ref.children,
|
|
8745
8491
|
content = _ref.content,
|
|
8746
|
-
arrowProps = _ref.arrowProps
|
|
8747
|
-
_ref.popper
|
|
8748
|
-
_ref.show
|
|
8749
|
-
|
|
8492
|
+
arrowProps = _ref.arrowProps,
|
|
8493
|
+
_ = _ref.popper,
|
|
8494
|
+
_1 = _ref.show,
|
|
8495
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8750
8496
|
|
|
8751
8497
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8752
8498
|
|
|
8753
8499
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8754
8500
|
primaryPlacement = _ref2[0];
|
|
8755
8501
|
|
|
8756
|
-
return /*#__PURE__*/
|
|
8502
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8757
8503
|
ref: ref,
|
|
8758
8504
|
role: "tooltip",
|
|
8759
8505
|
style: style,
|
|
8760
8506
|
"x-placement": primaryPlacement,
|
|
8761
8507
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8762
|
-
}, props), /*#__PURE__*/
|
|
8508
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8763
8509
|
className: "arrow"
|
|
8764
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8510
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8765
8511
|
});
|
|
8766
|
-
Popover.defaultProps = defaultProps$
|
|
8512
|
+
Popover.defaultProps = defaultProps$x;
|
|
8767
8513
|
Popover.Title = PopoverTitle;
|
|
8768
8514
|
Popover.Content = PopoverContent;
|
|
8769
8515
|
|
|
8770
8516
|
var ROUND_PRECISION = 1000;
|
|
8771
8517
|
|
|
8772
|
-
var defaultProps$
|
|
8518
|
+
var defaultProps$y = {
|
|
8773
8519
|
min: 0,
|
|
8774
8520
|
max: 100,
|
|
8775
8521
|
animated: false,
|
|
@@ -8799,7 +8545,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8799
8545
|
bsPrefix = _ref.bsPrefix,
|
|
8800
8546
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8801
8547
|
|
|
8802
|
-
return /*#__PURE__*/
|
|
8548
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8803
8549
|
ref: ref
|
|
8804
8550
|
}, props, {
|
|
8805
8551
|
role: "progressbar",
|
|
@@ -8810,12 +8556,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8810
8556
|
"aria-valuenow": now,
|
|
8811
8557
|
"aria-valuemin": min,
|
|
8812
8558
|
"aria-valuemax": max
|
|
8813
|
-
}), srOnly ? /*#__PURE__*/
|
|
8559
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8814
8560
|
className: "sr-only"
|
|
8815
8561
|
}, label) : label);
|
|
8816
8562
|
}
|
|
8817
8563
|
|
|
8818
|
-
var ProgressBar =
|
|
8564
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8819
8565
|
var isChild = _ref2.isChild,
|
|
8820
8566
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8821
8567
|
|
|
@@ -8838,7 +8584,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8838
8584
|
children = props.children,
|
|
8839
8585
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8840
8586
|
|
|
8841
|
-
return /*#__PURE__*/
|
|
8587
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8842
8588
|
ref: ref
|
|
8843
8589
|
}, wrapperProps, {
|
|
8844
8590
|
className: classnames(className, bsPrefix)
|
|
@@ -8859,12 +8605,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8859
8605
|
}, ref));
|
|
8860
8606
|
});
|
|
8861
8607
|
ProgressBar.displayName = 'ProgressBar';
|
|
8862
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8608
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8863
8609
|
|
|
8864
|
-
var defaultProps$
|
|
8610
|
+
var defaultProps$z = {
|
|
8865
8611
|
aspectRatio: '1by1'
|
|
8866
8612
|
};
|
|
8867
|
-
var ResponsiveEmbed =
|
|
8613
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8868
8614
|
var bsPrefix = _ref.bsPrefix,
|
|
8869
8615
|
className = _ref.className,
|
|
8870
8616
|
children = _ref.children,
|
|
@@ -8872,22 +8618,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8872
8618
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8873
8619
|
|
|
8874
8620
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8875
|
-
var child =
|
|
8876
|
-
return /*#__PURE__*/
|
|
8621
|
+
var child = React.Children.only(children);
|
|
8622
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8877
8623
|
ref: ref
|
|
8878
8624
|
}, props, {
|
|
8879
8625
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8880
|
-
}),
|
|
8626
|
+
}), React.cloneElement(child, {
|
|
8881
8627
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8882
8628
|
}));
|
|
8883
8629
|
});
|
|
8884
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8630
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8885
8631
|
|
|
8886
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8887
|
-
var defaultProps$
|
|
8632
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8633
|
+
var defaultProps$A = {
|
|
8888
8634
|
noGutters: false
|
|
8889
8635
|
};
|
|
8890
|
-
var Row =
|
|
8636
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8891
8637
|
var bsPrefix = _ref.bsPrefix,
|
|
8892
8638
|
className = _ref.className,
|
|
8893
8639
|
noGutters = _ref.noGutters,
|
|
@@ -8898,7 +8644,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8898
8644
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8899
8645
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8900
8646
|
var classes = [];
|
|
8901
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8647
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8902
8648
|
var propValue = props[brkPoint];
|
|
8903
8649
|
delete props[brkPoint];
|
|
8904
8650
|
var cols;
|
|
@@ -8912,16 +8658,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8912
8658
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8913
8659
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8914
8660
|
});
|
|
8915
|
-
return /*#__PURE__*/
|
|
8661
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8916
8662
|
ref: ref
|
|
8917
8663
|
}, props, {
|
|
8918
8664
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8919
8665
|
}));
|
|
8920
8666
|
});
|
|
8921
8667
|
Row.displayName = 'Row';
|
|
8922
|
-
Row.defaultProps = defaultProps$
|
|
8668
|
+
Row.defaultProps = defaultProps$A;
|
|
8923
8669
|
|
|
8924
|
-
var Spinner =
|
|
8670
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8925
8671
|
var bsPrefix = _ref.bsPrefix,
|
|
8926
8672
|
variant = _ref.variant,
|
|
8927
8673
|
animation = _ref.animation,
|
|
@@ -8934,7 +8680,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8934
8680
|
|
|
8935
8681
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8936
8682
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8937
|
-
return /*#__PURE__*/
|
|
8683
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8938
8684
|
ref: ref
|
|
8939
8685
|
}, props, {
|
|
8940
8686
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8942,7 +8688,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8942
8688
|
});
|
|
8943
8689
|
Spinner.displayName = 'Spinner';
|
|
8944
8690
|
|
|
8945
|
-
var propTypes = {
|
|
8691
|
+
var propTypes$a = {
|
|
8946
8692
|
/**
|
|
8947
8693
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8948
8694
|
* @type {string|number}
|
|
@@ -8973,15 +8719,6 @@ var propTypes = {
|
|
|
8973
8719
|
/** Disables both Buttons */
|
|
8974
8720
|
disabled: PropTypes.bool,
|
|
8975
8721
|
|
|
8976
|
-
/**
|
|
8977
|
-
* Aligns the dropdown menu responsively.
|
|
8978
|
-
*
|
|
8979
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8980
|
-
*
|
|
8981
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8982
|
-
*/
|
|
8983
|
-
menuAlign: alignPropType,
|
|
8984
|
-
|
|
8985
8722
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8986
8723
|
menuRole: PropTypes.string,
|
|
8987
8724
|
|
|
@@ -8991,7 +8728,7 @@ var propTypes = {
|
|
|
8991
8728
|
/**
|
|
8992
8729
|
* Which event when fired outside the component will cause it to be closed.
|
|
8993
8730
|
*
|
|
8994
|
-
* _see [DropdownMenu](#
|
|
8731
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8995
8732
|
*/
|
|
8996
8733
|
rootCloseEvent: PropTypes.string,
|
|
8997
8734
|
|
|
@@ -9004,11 +8741,11 @@ var propTypes = {
|
|
|
9004
8741
|
/** @ignore */
|
|
9005
8742
|
size: PropTypes.string
|
|
9006
8743
|
};
|
|
9007
|
-
var defaultProps$
|
|
8744
|
+
var defaultProps$B = {
|
|
9008
8745
|
toggleLabel: 'Toggle dropdown',
|
|
9009
8746
|
type: 'button'
|
|
9010
8747
|
};
|
|
9011
|
-
var SplitButton =
|
|
8748
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
9012
8749
|
var id = _ref.id,
|
|
9013
8750
|
bsPrefix = _ref.bsPrefix,
|
|
9014
8751
|
size = _ref.size,
|
|
@@ -9020,17 +8757,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9020
8757
|
onClick = _ref.onClick,
|
|
9021
8758
|
href = _ref.href,
|
|
9022
8759
|
target = _ref.target,
|
|
9023
|
-
menuAlign = _ref.menuAlign,
|
|
9024
8760
|
menuRole = _ref.menuRole,
|
|
9025
8761
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9026
8762
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9027
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "
|
|
8763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9028
8764
|
|
|
9029
|
-
return /*#__PURE__*/
|
|
8765
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
9030
8766
|
ref: ref
|
|
9031
8767
|
}, props, {
|
|
9032
8768
|
as: ButtonGroup
|
|
9033
|
-
}), /*#__PURE__*/
|
|
8769
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
9034
8770
|
size: size,
|
|
9035
8771
|
variant: variant,
|
|
9036
8772
|
disabled: props.disabled,
|
|
@@ -9039,24 +8775,23 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9039
8775
|
target: target,
|
|
9040
8776
|
onClick: onClick,
|
|
9041
8777
|
type: type
|
|
9042
|
-
}, title), /*#__PURE__*/
|
|
8778
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
9043
8779
|
split: true,
|
|
9044
8780
|
id: id ? id.toString() : undefined,
|
|
9045
8781
|
size: size,
|
|
9046
8782
|
variant: variant,
|
|
9047
8783
|
disabled: props.disabled,
|
|
9048
8784
|
childBsPrefix: bsPrefix
|
|
9049
|
-
}, /*#__PURE__*/
|
|
8785
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9050
8786
|
className: "sr-only"
|
|
9051
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
9052
|
-
align: menuAlign,
|
|
8787
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
9053
8788
|
role: menuRole,
|
|
9054
8789
|
renderOnMount: renderMenuOnMount,
|
|
9055
8790
|
rootCloseEvent: rootCloseEvent
|
|
9056
8791
|
}, children));
|
|
9057
8792
|
});
|
|
9058
|
-
SplitButton.propTypes = propTypes;
|
|
9059
|
-
SplitButton.defaultProps = defaultProps$
|
|
8793
|
+
SplitButton.propTypes = propTypes$a;
|
|
8794
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9060
8795
|
SplitButton.displayName = 'SplitButton';
|
|
9061
8796
|
|
|
9062
8797
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9092,14 +8827,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9092
8827
|
}
|
|
9093
8828
|
};
|
|
9094
8829
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9095
|
-
return /*#__PURE__*/
|
|
8830
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9096
8831
|
value: tabContext
|
|
9097
|
-
}, /*#__PURE__*/
|
|
8832
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9098
8833
|
value: onSelect || null
|
|
9099
8834
|
}, children));
|
|
9100
8835
|
};
|
|
9101
8836
|
|
|
9102
|
-
var TabContent =
|
|
8837
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9103
8838
|
var bsPrefix = _ref.bsPrefix,
|
|
9104
8839
|
_ref$as = _ref.as,
|
|
9105
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9107,7 +8842,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9107
8842
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9108
8843
|
|
|
9109
8844
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9110
|
-
return /*#__PURE__*/
|
|
8845
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9111
8846
|
ref: ref
|
|
9112
8847
|
}, props, {
|
|
9113
8848
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9135,7 +8870,7 @@ function useTabContext(props) {
|
|
|
9135
8870
|
});
|
|
9136
8871
|
}
|
|
9137
8872
|
|
|
9138
|
-
var TabPane =
|
|
8873
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9139
8874
|
var _useTabContext = useTabContext(props),
|
|
9140
8875
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9141
8876
|
className = _useTabContext.className,
|
|
@@ -9150,13 +8885,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9150
8885
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9151
8886
|
Transition = _useTabContext.transition,
|
|
9152
8887
|
_useTabContext$as = _useTabContext.as,
|
|
9153
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9154
|
-
_useTabContext.eventKey
|
|
9155
|
-
|
|
8888
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8889
|
+
_ = _useTabContext.eventKey,
|
|
8890
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9156
8891
|
|
|
9157
8892
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9158
8893
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9159
|
-
var pane = /*#__PURE__*/
|
|
8894
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9160
8895
|
ref: ref,
|
|
9161
8896
|
role: "tabpanel",
|
|
9162
8897
|
"aria-hidden": !active,
|
|
@@ -9164,7 +8899,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9164
8899
|
active: active
|
|
9165
8900
|
})
|
|
9166
8901
|
}));
|
|
9167
|
-
if (Transition) pane = /*#__PURE__*/
|
|
8902
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9168
8903
|
in: active,
|
|
9169
8904
|
onEnter: onEnter,
|
|
9170
8905
|
onEntering: onEntering,
|
|
@@ -9177,9 +8912,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9177
8912
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9178
8913
|
// conflict with the top level one.
|
|
9179
8914
|
|
|
9180
|
-
return /*#__PURE__*/
|
|
8915
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9181
8916
|
value: null
|
|
9182
|
-
}, /*#__PURE__*/
|
|
8917
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9183
8918
|
value: null
|
|
9184
8919
|
}, pane));
|
|
9185
8920
|
});
|
|
@@ -9200,13 +8935,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9200
8935
|
};
|
|
9201
8936
|
|
|
9202
8937
|
return Tab;
|
|
9203
|
-
}(
|
|
8938
|
+
}(React.Component);
|
|
9204
8939
|
|
|
9205
8940
|
Tab.Container = TabContainer;
|
|
9206
8941
|
Tab.Content = TabContent;
|
|
9207
8942
|
Tab.Pane = TabPane;
|
|
9208
8943
|
|
|
9209
|
-
|
|
8944
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9210
8945
|
var bsPrefix = _ref.bsPrefix,
|
|
9211
8946
|
className = _ref.className,
|
|
9212
8947
|
striped = _ref.striped,
|
|
@@ -9220,7 +8955,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9220
8955
|
|
|
9221
8956
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9222
8957
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9223
|
-
var table = /*#__PURE__*/
|
|
8958
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9224
8959
|
className: classes,
|
|
9225
8960
|
ref: ref
|
|
9226
8961
|
}));
|
|
@@ -9232,7 +8967,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9232
8967
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9233
8968
|
}
|
|
9234
8969
|
|
|
9235
|
-
return /*#__PURE__*/
|
|
8970
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9236
8971
|
className: responsiveClass
|
|
9237
8972
|
}, table);
|
|
9238
8973
|
}
|
|
@@ -9240,16 +8975,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9240
8975
|
return table;
|
|
9241
8976
|
});
|
|
9242
8977
|
|
|
9243
|
-
var ToastContext =
|
|
8978
|
+
var ToastContext = React.createContext({
|
|
9244
8979
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9245
8980
|
onClose: function onClose() {}
|
|
9246
8981
|
});
|
|
9247
8982
|
|
|
9248
|
-
var defaultProps$
|
|
8983
|
+
var defaultProps$C = {
|
|
9249
8984
|
closeLabel: 'Close',
|
|
9250
8985
|
closeButton: true
|
|
9251
8986
|
};
|
|
9252
|
-
var ToastHeader =
|
|
8987
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9253
8988
|
var bsPrefix = _ref.bsPrefix,
|
|
9254
8989
|
closeLabel = _ref.closeLabel,
|
|
9255
8990
|
closeButton = _ref.closeButton,
|
|
@@ -9264,11 +8999,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9264
8999
|
context.onClose(e);
|
|
9265
9000
|
}
|
|
9266
9001
|
});
|
|
9267
|
-
return /*#__PURE__*/
|
|
9002
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9268
9003
|
ref: ref
|
|
9269
9004
|
}, props, {
|
|
9270
9005
|
className: classnames(bsPrefix, className)
|
|
9271
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9006
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9272
9007
|
label: closeLabel,
|
|
9273
9008
|
onClick: handleClick,
|
|
9274
9009
|
className: "ml-2 mb-1",
|
|
@@ -9276,11 +9011,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9276
9011
|
}));
|
|
9277
9012
|
});
|
|
9278
9013
|
ToastHeader.displayName = 'ToastHeader';
|
|
9279
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9014
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9280
9015
|
|
|
9281
9016
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9282
9017
|
|
|
9283
|
-
var Toast =
|
|
9018
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9284
9019
|
var bsPrefix = _ref.bsPrefix,
|
|
9285
9020
|
className = _ref.className,
|
|
9286
9021
|
children = _ref.children,
|
|
@@ -9323,16 +9058,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9323
9058
|
};
|
|
9324
9059
|
}, [onClose]);
|
|
9325
9060
|
var hasAnimation = !!(Transition && animation);
|
|
9326
|
-
var toast = /*#__PURE__*/
|
|
9061
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9327
9062
|
ref: ref,
|
|
9328
9063
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9329
9064
|
role: "alert",
|
|
9330
9065
|
"aria-live": "assertive",
|
|
9331
9066
|
"aria-atomic": "true"
|
|
9332
9067
|
}), children);
|
|
9333
|
-
return /*#__PURE__*/
|
|
9068
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9334
9069
|
value: toastContext
|
|
9335
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9070
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9336
9071
|
in: show,
|
|
9337
9072
|
unmountOnExit: true
|
|
9338
9073
|
}, toast) : toast);
|
|
@@ -9343,11 +9078,11 @@ Object.assign(Toast, {
|
|
|
9343
9078
|
Header: ToastHeader
|
|
9344
9079
|
});
|
|
9345
9080
|
|
|
9346
|
-
var noop = function noop() {
|
|
9081
|
+
var noop$5 = function noop() {
|
|
9347
9082
|
return undefined;
|
|
9348
9083
|
};
|
|
9349
9084
|
|
|
9350
|
-
var ToggleButton =
|
|
9085
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9351
9086
|
var children = _ref.children,
|
|
9352
9087
|
name = _ref.name,
|
|
9353
9088
|
className = _ref.className,
|
|
@@ -9369,13 +9104,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9369
9104
|
var handleBlur = useCallback(function (e) {
|
|
9370
9105
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9371
9106
|
}, []);
|
|
9372
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9373
9108
|
ref: ref,
|
|
9374
9109
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9375
9110
|
type: undefined,
|
|
9376
9111
|
active: !!checked,
|
|
9377
9112
|
as: "label"
|
|
9378
|
-
}), /*#__PURE__*/
|
|
9113
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9379
9114
|
name: name,
|
|
9380
9115
|
type: type,
|
|
9381
9116
|
value: value,
|
|
@@ -9385,16 +9120,15 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9385
9120
|
disabled: !!disabled,
|
|
9386
9121
|
onFocus: handleFocus,
|
|
9387
9122
|
onBlur: handleBlur,
|
|
9388
|
-
onChange: onChange || noop
|
|
9123
|
+
onChange: onChange || noop$5
|
|
9389
9124
|
}), children);
|
|
9390
9125
|
});
|
|
9391
9126
|
ToggleButton.displayName = 'ToggleButton';
|
|
9392
9127
|
|
|
9393
|
-
var defaultProps$
|
|
9394
|
-
type: 'radio'
|
|
9395
|
-
vertical: false
|
|
9128
|
+
var defaultProps$D = {
|
|
9129
|
+
type: 'radio'
|
|
9396
9130
|
};
|
|
9397
|
-
var ToggleButtonGroup =
|
|
9131
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9398
9132
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9399
9133
|
value: 'onChange'
|
|
9400
9134
|
}),
|
|
@@ -9432,7 +9166,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9432
9166
|
};
|
|
9433
9167
|
|
|
9434
9168
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9435
|
-
return /*#__PURE__*/
|
|
9169
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9436
9170
|
ref: ref,
|
|
9437
9171
|
toggle: true
|
|
9438
9172
|
}), map(children, function (child) {
|
|
@@ -9445,7 +9179,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9445
9179
|
return handleToggle(childVal, e);
|
|
9446
9180
|
};
|
|
9447
9181
|
|
|
9448
|
-
return
|
|
9182
|
+
return React.cloneElement(child, {
|
|
9449
9183
|
type: type,
|
|
9450
9184
|
name: child.name || name,
|
|
9451
9185
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9453,41 +9187,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9453
9187
|
});
|
|
9454
9188
|
}));
|
|
9455
9189
|
});
|
|
9456
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9190
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9457
9191
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9458
9192
|
|
|
9459
|
-
var defaultProps = {
|
|
9193
|
+
var defaultProps$E = {
|
|
9460
9194
|
placement: 'right'
|
|
9461
9195
|
};
|
|
9462
|
-
var Tooltip =
|
|
9196
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9463
9197
|
var bsPrefix = _ref.bsPrefix,
|
|
9464
9198
|
placement = _ref.placement,
|
|
9465
9199
|
className = _ref.className,
|
|
9466
9200
|
style = _ref.style,
|
|
9467
9201
|
children = _ref.children,
|
|
9468
|
-
arrowProps = _ref.arrowProps
|
|
9469
|
-
_ref.popper
|
|
9470
|
-
_ref.show
|
|
9471
|
-
|
|
9202
|
+
arrowProps = _ref.arrowProps,
|
|
9203
|
+
_ = _ref.popper,
|
|
9204
|
+
_2 = _ref.show,
|
|
9205
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9472
9206
|
|
|
9473
9207
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9474
9208
|
|
|
9475
9209
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9476
9210
|
primaryPlacement = _ref2[0];
|
|
9477
9211
|
|
|
9478
|
-
return /*#__PURE__*/
|
|
9212
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9479
9213
|
ref: ref,
|
|
9480
9214
|
style: style,
|
|
9481
9215
|
role: "tooltip",
|
|
9482
9216
|
"x-placement": primaryPlacement,
|
|
9483
9217
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9484
|
-
}, props), /*#__PURE__*/
|
|
9218
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9485
9219
|
className: "arrow"
|
|
9486
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9220
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9487
9221
|
className: bsPrefix + "-inner"
|
|
9488
9222
|
}, children));
|
|
9489
9223
|
});
|
|
9490
|
-
Tooltip.defaultProps = defaultProps;
|
|
9224
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9491
9225
|
Tooltip.displayName = 'Tooltip';
|
|
9492
9226
|
|
|
9493
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";
|
|
@@ -9501,58 +9235,58 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9501
9235
|
client = props.client;
|
|
9502
9236
|
|
|
9503
9237
|
|
|
9504
|
-
return
|
|
9238
|
+
return React.createElement(
|
|
9505
9239
|
'div',
|
|
9506
9240
|
{ className: 'media-series-article ' + styles.article },
|
|
9507
|
-
|
|
9241
|
+
React.createElement(
|
|
9508
9242
|
'a',
|
|
9509
9243
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9510
|
-
|
|
9244
|
+
React.createElement(
|
|
9511
9245
|
'div',
|
|
9512
9246
|
{ className: 'media-series-thumbnail ' + styles.thumb },
|
|
9513
|
-
data.thumbnail && data.thumbnail.asset &&
|
|
9247
|
+
data.thumbnail && data.thumbnail.asset && React.createElement(
|
|
9514
9248
|
'figure',
|
|
9515
9249
|
null,
|
|
9516
|
-
|
|
9250
|
+
React.createElement(
|
|
9517
9251
|
LazyLoad,
|
|
9518
9252
|
null,
|
|
9519
|
-
|
|
9253
|
+
React.createElement('img', {
|
|
9520
9254
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9521
9255
|
})
|
|
9522
9256
|
)
|
|
9523
9257
|
)
|
|
9524
9258
|
),
|
|
9525
|
-
|
|
9259
|
+
React.createElement(
|
|
9526
9260
|
'div',
|
|
9527
9261
|
{ className: 'media-series-info ' + styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9528
|
-
|
|
9262
|
+
React.createElement(
|
|
9529
9263
|
'div',
|
|
9530
9264
|
{ className: 'media-series-name ' + styles.name },
|
|
9531
9265
|
data.name
|
|
9532
9266
|
),
|
|
9533
|
-
data.published &&
|
|
9267
|
+
data.published && React.createElement(
|
|
9534
9268
|
'p',
|
|
9535
9269
|
{ className: 'media-series-published ' + styles.published },
|
|
9536
9270
|
moment(data.published).format('MMMM Do YYYY')
|
|
9537
9271
|
),
|
|
9538
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9272
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9539
9273
|
'p',
|
|
9540
9274
|
{ className: 'media-series-author ' + styles.author },
|
|
9541
9275
|
'By ',
|
|
9542
|
-
|
|
9276
|
+
React.createElement(
|
|
9543
9277
|
'span',
|
|
9544
9278
|
null,
|
|
9545
9279
|
data.authorMapping.displayName
|
|
9546
9280
|
)
|
|
9547
9281
|
),
|
|
9548
|
-
data.description &&
|
|
9282
|
+
data.description && React.createElement(
|
|
9549
9283
|
'div',
|
|
9550
9284
|
{ className: 'media-series-desc' },
|
|
9551
|
-
|
|
9285
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9552
9286
|
)
|
|
9553
9287
|
)
|
|
9554
9288
|
)
|
|
9555
9289
|
);
|
|
9556
9290
|
};
|
|
9557
9291
|
|
|
9558
|
-
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|
|
9292
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown$1 as a };
|