@mjhls/mjh-framework 1.0.1005-ce-test-v3 → 1.0.1005-next12-0001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +21 -22
- package/dist/cjs/AD300x250x600.js +21 -22
- package/dist/cjs/AD728x90.js +24 -25
- package/dist/cjs/ADFloatingFooter.js +20 -21
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +20 -21
- package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-08a6ef56.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +20 -21
- package/dist/cjs/ADSponsoredResources.js +20 -21
- package/dist/cjs/ADWebcast.js +20 -21
- package/dist/cjs/ADWelcome.js +17 -18
- package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-f46139b2.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +19 -20
- package/dist/cjs/AdSlotsProvider.js +11 -12
- package/dist/cjs/AlgoliaSearch.js +31 -14300
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +52 -52
- package/dist/cjs/ArticleSeriesLandingPage.js +29 -30
- package/dist/cjs/ArticleSeriesListing.js +30 -31
- package/dist/cjs/Auth.js +355 -494
- package/dist/cjs/AuthWrapper.js +13 -1772
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-17e1c62b.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-8b494587.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +22 -27
- package/dist/cjs/Column1.js +1 -1
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +30 -31
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +37 -37
- package/dist/cjs/DeckContent.js +31 -32
- package/dist/cjs/DeckQueue.js +29 -30
- package/dist/cjs/DeckQueuePaginated.js +33 -33
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-bcaa7e3f.js} +13 -14
- package/dist/cjs/EventsDeck.js +54 -27
- package/dist/cjs/ExternalResources.js +48 -48
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +45 -46
- package/dist/cjs/GridContentPaginated.js +47 -47
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +28 -28
- package/dist/cjs/Header.js +1 -1
- package/dist/cjs/HealthCareProfessionalModal.js +2 -2
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +50 -50
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-10cd194f.js +1383 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +58 -58
- package/dist/cjs/LeftNav.js +21 -22
- package/dist/cjs/MasterDeck.js +30 -31
- package/dist/cjs/MasterDeckPaginated.js +33 -33
- package/dist/cjs/{MediaSeriesCard-594c5edf.js → MediaSeriesCard-a6e3f32e.js} +5 -5
- package/dist/cjs/MediaSeriesLanding.js +54 -55
- package/dist/cjs/MediaSeriesLandingPaginated.js +60 -60
- package/dist/cjs/NavDvm.js +13 -13
- package/dist/cjs/NavMagazine.js +31 -31
- package/dist/cjs/NavNative.js +32 -32
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/Pagination-7624a3bd.js +90 -0
- package/dist/cjs/PartnerDetailListing.js +64 -65
- package/dist/cjs/PartnerDetailListingPaginated.js +64 -64
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PodcastsLanding.js +63 -63
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +32 -33
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-6f89fb97.js} +2 -2
- package/dist/cjs/PublicationLanding.js +27 -31
- package/dist/cjs/QueueDeckExpanded.js +35 -36
- package/dist/cjs/QueueDeckExpandedPaginated.js +38 -38
- package/dist/cjs/RecentNews.js +4 -4
- package/dist/cjs/RelatedContent.js +10 -10
- package/dist/cjs/Schema.js +10 -10
- package/dist/cjs/Search.js +6 -6
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +17 -18
- package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-08699353.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +11 -11
- package/dist/cjs/{SocialSearchComponent-d2ab3d62.js → SocialSearchComponent-59192efd.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +48 -48
- package/dist/cjs/TemplateNormal.js +44 -45
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/{Tooltip-f075b7ef.js → Tooltip-7be5df78.js} +804 -1029
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +54 -54
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +35 -36
- package/dist/cjs/VideoSeriesListing.js +30 -31
- package/dist/cjs/View.js +120 -123
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{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 +48 -48
- package/dist/cjs/{getTargeting-ba942d9a.js → getTargeting-5eabd6e2.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +5 -2
- package/dist/cjs/{index-fc2f1ca2.js → index-44481153.js} +488 -42
- package/dist/cjs/{index-f86bb269.js → index-99edf08a.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-9d365128.js} +7 -7
- package/dist/cjs/{index-144b90c4.js → index-b278e08f.js} +167 -429
- package/dist/cjs/{index-d48b231c.js → index-b5eb3ff8.js} +6 -11
- 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-1461604c.js → index.esm-f4cf6943.js} +2 -2
- package/dist/cjs/{index.esm-d51c9ac6.js → index.esm-f93506ac.js} +1 -1
- package/dist/cjs/index.js +146 -148
- package/dist/cjs/{inherits-de66ea16.js → inherits-420ee86f.js} +18 -21
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-7fd85bcf.js} +10 -58
- package/dist/cjs/main-7b5e57b0.js +898 -0
- package/dist/cjs/{moment-aca40de1.js → moment-ca3bd9fb.js} +1 -1
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-07939b41.js} +17 -17
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-ec08d471.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-29d3815a.js → urlForFile-ad96158c.js} +1 -1
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +5 -5
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +8 -8
- package/dist/esm/AD300x250.js +25 -26
- package/dist/esm/AD300x250x600.js +25 -26
- package/dist/esm/AD728x90.js +28 -29
- package/dist/esm/ADFloatingFooter.js +27 -28
- package/dist/esm/ADFooter.js +10 -10
- package/dist/esm/ADGutter.js +27 -28
- package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-36973a76.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-5e36f317.js → ADlgInfeed-f6e898d5.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 -14325
- package/dist/esm/AlphabeticList.js +21 -21
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +59 -59
- package/dist/esm/ArticleSeriesLandingPage.js +36 -37
- package/dist/esm/ArticleSeriesListing.js +55 -56
- package/dist/esm/Auth.js +427 -565
- package/dist/esm/AuthWrapper.js +27 -1787
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-b0a47123.js} +11 -11
- package/dist/esm/Beam.js +7 -7
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-d05b5b23.js} +35 -35
- package/dist/esm/Breadcrumbs.js +16 -16
- package/dist/esm/CMEDeck.js +78 -83
- package/dist/esm/Column1.js +7 -6
- package/dist/esm/Column2.js +25 -24
- package/dist/esm/Column3.js +50 -50
- 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 +114 -87
- package/dist/esm/ExternalResources.js +76 -76
- 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 +73 -73
- 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 +67 -67
- package/dist/esm/KMTracker.js +1 -1
- package/dist/esm/LeftNav.js +35 -35
- package/dist/esm/MasterDeck.js +64 -65
- package/dist/esm/MasterDeckPaginated.js +56 -56
- package/dist/esm/{MediaSeriesCard-f56c8274.js → MediaSeriesCard-66045ffb.js} +19 -19
- package/dist/esm/MediaSeriesLanding.js +80 -81
- package/dist/esm/MediaSeriesLandingPaginated.js +84 -84
- package/dist/esm/NavDvm.js +57 -56
- package/dist/esm/{NavFooter-3272e9cd.js → NavFooter-da30eae3.js} +12 -12
- package/dist/esm/NavMagazine.js +114 -113
- package/dist/esm/NavNative.js +104 -103
- 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 +100 -101
- package/dist/esm/PartnerDetailListingPaginated.js +99 -99
- package/dist/esm/PdfDownload.js +8 -8
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PodcastsLanding.js +75 -75
- package/dist/esm/PopUpModal.js +13 -13
- package/dist/esm/PtceDeck.js +24 -24
- package/dist/esm/PubSection.js +38 -39
- package/dist/esm/PubToc.js +11 -11
- package/dist/esm/PublicationDeck.js +43 -43
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-0379cc20.js} +23 -23
- package/dist/esm/PublicationLanding.js +75 -79
- package/dist/esm/QueueDeckExpanded.js +274 -275
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -254
- package/dist/esm/RecentNews.js +21 -21
- package/dist/esm/RelatedContent.js +24 -24
- package/dist/esm/RelatedTopicsDropdown.js +12 -12
- package/dist/esm/RolesDeck.js +14 -14
- package/dist/esm/Schema.js +13 -13
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +5 -5
- package/dist/esm/SeriesListingDeck.js +31 -32
- package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-b364d074.js} +31 -31
- package/dist/esm/SetCookie.js +2 -2
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +8 -8
- package/dist/esm/{SocialSearchComponent-165b4ae7.js → SocialSearchComponent-09b55779.js} +33 -33
- package/dist/esm/SocialShare.js +26 -26
- package/dist/esm/TaxonomyCard.js +45 -45
- package/dist/esm/TaxonomyDescription.js +53 -53
- package/dist/esm/TemplateNormal.js +65 -66
- package/dist/esm/ThumbnailCard.js +18 -18
- package/dist/esm/{Tooltip-95655b44.js → Tooltip-af3e4ee9.js} +792 -1017
- package/dist/esm/Ustream.js +30 -30
- package/dist/esm/VerticalHero.js +18 -18
- package/dist/esm/VideoProgramLandingPage.js +67 -67
- 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 +327 -331
- 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/{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 +48 -48
- package/dist/esm/getSeriesDetail.js +1 -1
- package/dist/esm/{getTargeting-9bd28724.js → getTargeting-eed01f73.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-1819118a.js} +490 -44
- package/dist/esm/{index-5d8b0a9d.js → index-3a7c5bbe.js} +581 -844
- package/dist/esm/{index-3f5c03b2.js → index-51a80699.js} +6 -11
- package/dist/esm/{index-755f2cc2.js → index-6c12bdd5.js} +10 -10
- package/dist/esm/{index-79cfd25c.js → index-fa2ffe86.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-c6222053.js} +5 -5
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-55f22b35.js} +1 -1
- package/dist/esm/{index.esm-07c37a92.js → index.esm-9d701385.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 -174
- 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 +3 -4
- package/dist/cjs/CEDeckSupabase.js +0 -450
- package/dist/cjs/ImageSlider-6c00b878.js +0 -2813
- package/dist/cjs/Pagination-2a3d0103.js +0 -97
- package/dist/cjs/defineProperty-9673846a.js +0 -34
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/getTIData.js +0 -92
- package/dist/cjs/index-50be6759.js +0 -105
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/CEDeckSupabase.js +0 -444
- package/dist/esm/ImageSlider-f84174cb.js +0 -2804
- package/dist/esm/Pagination-dc30727b.js +0 -90
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/defineProperty-8c30428f.js +0 -32
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/getTIData.js +0 -90
- package/dist/esm/index-98ca9cec.js +0 -100
- package/dist/esm/keys-31dcdb31.js +0 -23
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-5c98aec7.js} +1 -1
|
@@ -1,8 +1,89 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
function _extends() {
|
|
7
|
+
_extends = Object.assign || function (target) {
|
|
8
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9
|
+
var source = arguments[i];
|
|
10
|
+
|
|
11
|
+
for (var key in source) {
|
|
12
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
+
target[key] = source[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return _extends.apply(this, arguments);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
25
|
+
if (source == null) return {};
|
|
26
|
+
var target = {};
|
|
27
|
+
var sourceKeys = Object.keys(source);
|
|
28
|
+
var key, i;
|
|
29
|
+
|
|
30
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
31
|
+
key = sourceKeys[i];
|
|
32
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
33
|
+
target[key] = source[key];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return target;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var classnames = createCommonjsModule(function (module) {
|
|
40
|
+
/*!
|
|
41
|
+
Copyright (c) 2017 Jed Watson.
|
|
42
|
+
Licensed under the MIT License (MIT), see
|
|
43
|
+
http://jedwatson.github.io/classnames
|
|
44
|
+
*/
|
|
45
|
+
/* global define */
|
|
46
|
+
|
|
47
|
+
(function () {
|
|
48
|
+
|
|
49
|
+
var hasOwn = {}.hasOwnProperty;
|
|
50
|
+
|
|
51
|
+
function classNames () {
|
|
52
|
+
var classes = [];
|
|
53
|
+
|
|
54
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
55
|
+
var arg = arguments[i];
|
|
56
|
+
if (!arg) continue;
|
|
57
|
+
|
|
58
|
+
var argType = typeof arg;
|
|
59
|
+
|
|
60
|
+
if (argType === 'string' || argType === 'number') {
|
|
61
|
+
classes.push(arg);
|
|
62
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
63
|
+
var inner = classNames.apply(null, arg);
|
|
64
|
+
if (inner) {
|
|
65
|
+
classes.push(inner);
|
|
66
|
+
}
|
|
67
|
+
} else if (argType === 'object') {
|
|
68
|
+
for (var key in arg) {
|
|
69
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
70
|
+
classes.push(key);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return classes.join(' ');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if ( module.exports) {
|
|
80
|
+
classNames.default = classNames;
|
|
81
|
+
module.exports = classNames;
|
|
82
|
+
} else {
|
|
83
|
+
window.classNames = classNames;
|
|
84
|
+
}
|
|
85
|
+
}());
|
|
86
|
+
});
|
|
6
87
|
|
|
7
88
|
/**
|
|
8
89
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -112,19 +193,19 @@ function useUncontrolled(props, config) {
|
|
|
112
193
|
function _inheritsLoose(subClass, superClass) {
|
|
113
194
|
subClass.prototype = Object.create(superClass.prototype);
|
|
114
195
|
subClass.prototype.constructor = subClass;
|
|
115
|
-
|
|
196
|
+
subClass.__proto__ = superClass;
|
|
116
197
|
}
|
|
117
198
|
|
|
118
|
-
var ThemeContext =
|
|
119
|
-
ThemeContext.Consumer
|
|
120
|
-
ThemeContext.Provider;
|
|
199
|
+
var ThemeContext = React.createContext({});
|
|
200
|
+
var Consumer = ThemeContext.Consumer,
|
|
201
|
+
Provider = ThemeContext.Provider;
|
|
121
202
|
|
|
122
203
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
123
204
|
var prefixes = useContext(ThemeContext);
|
|
124
205
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
125
206
|
}
|
|
126
207
|
|
|
127
|
-
var SelectableContext =
|
|
208
|
+
var SelectableContext = React.createContext(null);
|
|
128
209
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
129
210
|
if (href === void 0) {
|
|
130
211
|
href = null;
|
|
@@ -134,11 +215,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
134
215
|
return href || null;
|
|
135
216
|
};
|
|
136
217
|
|
|
137
|
-
var context
|
|
138
|
-
context
|
|
218
|
+
var context = React.createContext(null);
|
|
219
|
+
context.displayName = 'AccordionContext';
|
|
139
220
|
|
|
140
221
|
function useAccordionToggle(eventKey, onClick) {
|
|
141
|
-
var contextEventKey = useContext(context
|
|
222
|
+
var contextEventKey = useContext(context);
|
|
142
223
|
var onSelect = useContext(SelectableContext);
|
|
143
224
|
return function (e) {
|
|
144
225
|
/*
|
|
@@ -150,7 +231,7 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
150
231
|
if (onClick) onClick(e);
|
|
151
232
|
};
|
|
152
233
|
}
|
|
153
|
-
var AccordionToggle =
|
|
234
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
154
235
|
var _ref$as = _ref.as,
|
|
155
236
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
156
237
|
children = _ref.children,
|
|
@@ -164,40 +245,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
164
245
|
props.type = 'button';
|
|
165
246
|
}
|
|
166
247
|
|
|
167
|
-
return /*#__PURE__*/
|
|
248
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
168
249
|
ref: ref,
|
|
169
250
|
onClick: accordionOnClick
|
|
170
251
|
}, props), children);
|
|
171
252
|
});
|
|
172
253
|
|
|
173
|
-
|
|
174
|
-
* Returns the owner document of a given element.
|
|
175
|
-
*
|
|
176
|
-
* @param node the element
|
|
177
|
-
*/
|
|
178
|
-
function ownerDocument$1(node) {
|
|
254
|
+
function ownerDocument(node) {
|
|
179
255
|
return node && node.ownerDocument || document;
|
|
180
256
|
}
|
|
181
257
|
|
|
182
|
-
/**
|
|
183
|
-
* Returns the owner window of a given element.
|
|
184
|
-
*
|
|
185
|
-
* @param node the element
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
258
|
function ownerWindow(node) {
|
|
189
|
-
var doc = ownerDocument
|
|
259
|
+
var doc = ownerDocument(node);
|
|
190
260
|
return doc && doc.defaultView || window;
|
|
191
261
|
}
|
|
192
262
|
|
|
193
|
-
|
|
194
|
-
* Returns one or all computed style properties of an element.
|
|
195
|
-
*
|
|
196
|
-
* @param node the element
|
|
197
|
-
* @param psuedoElement the style property
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
263
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
201
264
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
202
265
|
}
|
|
203
266
|
|
|
@@ -226,7 +289,7 @@ function style(node, property) {
|
|
|
226
289
|
var transforms = '';
|
|
227
290
|
|
|
228
291
|
if (typeof property === 'string') {
|
|
229
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
292
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
230
293
|
}
|
|
231
294
|
|
|
232
295
|
Object.keys(property).forEach(function (key) {
|
|
@@ -277,11 +340,6 @@ try {
|
|
|
277
340
|
|
|
278
341
|
/**
|
|
279
342
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
280
|
-
*
|
|
281
|
-
* @param node the element
|
|
282
|
-
* @param eventName the event name
|
|
283
|
-
* @param handle the handler
|
|
284
|
-
* @param options event options
|
|
285
343
|
*/
|
|
286
344
|
function addEventListener(node, eventName, handler, options) {
|
|
287
345
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -304,14 +362,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
304
362
|
node.addEventListener(eventName, handler, options);
|
|
305
363
|
}
|
|
306
364
|
|
|
307
|
-
/**
|
|
308
|
-
* A `removeEventListener` ponyfill
|
|
309
|
-
*
|
|
310
|
-
* @param node the element
|
|
311
|
-
* @param eventName the event name
|
|
312
|
-
* @param handle the handler
|
|
313
|
-
* @param options event options
|
|
314
|
-
*/
|
|
315
365
|
function removeEventListener(node, eventName, handler, options) {
|
|
316
366
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
317
367
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -328,36 +378,18 @@ function listen(node, eventName, handler, options) {
|
|
|
328
378
|
};
|
|
329
379
|
}
|
|
330
380
|
|
|
331
|
-
/**
|
|
332
|
-
* Triggers an event on a given element.
|
|
333
|
-
*
|
|
334
|
-
* @param node the element
|
|
335
|
-
* @param eventName the event name to trigger
|
|
336
|
-
* @param bubbles whether the event should bubble up
|
|
337
|
-
* @param cancelable whether the event should be cancelable
|
|
338
|
-
*/
|
|
339
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
340
|
-
if (bubbles === void 0) {
|
|
341
|
-
bubbles = false;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
if (cancelable === void 0) {
|
|
345
|
-
cancelable = true;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
if (node) {
|
|
349
|
-
var event = document.createEvent('HTMLEvents');
|
|
350
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
351
|
-
node.dispatchEvent(event);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
381
|
function parseDuration(node) {
|
|
356
382
|
var str = style(node, 'transitionDuration') || '';
|
|
357
383
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
358
384
|
return parseFloat(str) * mult;
|
|
359
385
|
}
|
|
360
386
|
|
|
387
|
+
function triggerTransitionEnd(element) {
|
|
388
|
+
var evt = document.createEvent('HTMLEvents');
|
|
389
|
+
evt.initEvent('transitionend', true, true);
|
|
390
|
+
element.dispatchEvent(evt);
|
|
391
|
+
}
|
|
392
|
+
|
|
361
393
|
function emulateTransitionEnd(element, duration, padding) {
|
|
362
394
|
if (padding === void 0) {
|
|
363
395
|
padding = 5;
|
|
@@ -365,7 +397,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
365
397
|
|
|
366
398
|
var called = false;
|
|
367
399
|
var handle = setTimeout(function () {
|
|
368
|
-
if (!called)
|
|
400
|
+
if (!called) triggerTransitionEnd(element);
|
|
369
401
|
}, duration + padding);
|
|
370
402
|
var remove = listen(element, 'transitionend', function () {
|
|
371
403
|
called = true;
|
|
@@ -397,7 +429,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
397
429
|
exit: PropTypes.number,
|
|
398
430
|
appear: PropTypes.number
|
|
399
431
|
}).isRequired]) : null;
|
|
400
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
432
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
401
433
|
enter: PropTypes.string,
|
|
402
434
|
exit: PropTypes.string,
|
|
403
435
|
active: PropTypes.string
|
|
@@ -410,7 +442,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
410
442
|
exitActive: PropTypes.string
|
|
411
443
|
})]) : null;
|
|
412
444
|
|
|
413
|
-
var TransitionGroupContext =
|
|
445
|
+
var TransitionGroupContext = React.createContext(null);
|
|
414
446
|
|
|
415
447
|
var UNMOUNTED = 'unmounted';
|
|
416
448
|
var EXITED = 'exited';
|
|
@@ -779,35 +811,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
779
811
|
}
|
|
780
812
|
|
|
781
813
|
var _this$props = this.props,
|
|
782
|
-
children = _this$props.children
|
|
783
|
-
_this$props.in
|
|
784
|
-
_this$props.mountOnEnter
|
|
785
|
-
_this$props.unmountOnExit
|
|
786
|
-
_this$props.appear
|
|
787
|
-
_this$props.enter
|
|
788
|
-
_this$props.exit
|
|
789
|
-
_this$props.timeout
|
|
790
|
-
_this$props.addEndListener
|
|
791
|
-
_this$props.onEnter
|
|
792
|
-
_this$props.onEntering
|
|
793
|
-
_this$props.onEntered
|
|
794
|
-
_this$props.onExit
|
|
795
|
-
_this$props.onExiting
|
|
796
|
-
_this$props.onExited
|
|
797
|
-
_this$props.nodeRef
|
|
798
|
-
|
|
814
|
+
children = _this$props.children,
|
|
815
|
+
_in = _this$props.in,
|
|
816
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
817
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
818
|
+
_appear = _this$props.appear,
|
|
819
|
+
_enter = _this$props.enter,
|
|
820
|
+
_exit = _this$props.exit,
|
|
821
|
+
_timeout = _this$props.timeout,
|
|
822
|
+
_addEndListener = _this$props.addEndListener,
|
|
823
|
+
_onEnter = _this$props.onEnter,
|
|
824
|
+
_onEntering = _this$props.onEntering,
|
|
825
|
+
_onEntered = _this$props.onEntered,
|
|
826
|
+
_onExit = _this$props.onExit,
|
|
827
|
+
_onExiting = _this$props.onExiting,
|
|
828
|
+
_onExited = _this$props.onExited,
|
|
829
|
+
_nodeRef = _this$props.nodeRef,
|
|
830
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
799
831
|
|
|
800
832
|
return (
|
|
801
833
|
/*#__PURE__*/
|
|
802
834
|
// allows for nested Transitions
|
|
803
|
-
|
|
835
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
804
836
|
value: null
|
|
805
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
837
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
806
838
|
);
|
|
807
839
|
};
|
|
808
840
|
|
|
809
841
|
return Transition;
|
|
810
|
-
}(
|
|
842
|
+
}(React.Component);
|
|
811
843
|
|
|
812
844
|
Transition.contextType = TransitionGroupContext;
|
|
813
845
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -823,10 +855,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
823
855
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
824
856
|
*/
|
|
825
857
|
nodeRef: PropTypes.shape({
|
|
826
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
827
|
-
var value = propValue[key];
|
|
828
|
-
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
829
|
-
}
|
|
858
|
+
current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)
|
|
830
859
|
}),
|
|
831
860
|
|
|
832
861
|
/**
|
|
@@ -998,7 +1027,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
998
1027
|
onExited: PropTypes.func
|
|
999
1028
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1000
1029
|
|
|
1001
|
-
function noop
|
|
1030
|
+
function noop() {}
|
|
1002
1031
|
|
|
1003
1032
|
Transition.defaultProps = {
|
|
1004
1033
|
in: false,
|
|
@@ -1007,12 +1036,12 @@ Transition.defaultProps = {
|
|
|
1007
1036
|
appear: false,
|
|
1008
1037
|
enter: true,
|
|
1009
1038
|
exit: true,
|
|
1010
|
-
onEnter: noop
|
|
1011
|
-
onEntering: noop
|
|
1012
|
-
onEntered: noop
|
|
1013
|
-
onExit: noop
|
|
1014
|
-
onExiting: noop
|
|
1015
|
-
onExited: noop
|
|
1039
|
+
onEnter: noop,
|
|
1040
|
+
onEntering: noop,
|
|
1041
|
+
onEntered: noop,
|
|
1042
|
+
onExit: noop,
|
|
1043
|
+
onExiting: noop,
|
|
1044
|
+
onExited: noop
|
|
1016
1045
|
};
|
|
1017
1046
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1018
1047
|
Transition.EXITED = EXITED;
|
|
@@ -1078,7 +1107,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1078
1107
|
}
|
|
1079
1108
|
|
|
1080
1109
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1081
|
-
var defaultProps
|
|
1110
|
+
var defaultProps = {
|
|
1082
1111
|
in: false,
|
|
1083
1112
|
timeout: 300,
|
|
1084
1113
|
mountOnEnter: false,
|
|
@@ -1086,7 +1115,7 @@ var defaultProps$E = {
|
|
|
1086
1115
|
appear: false,
|
|
1087
1116
|
getDimensionValue: getDefaultDimensionValue
|
|
1088
1117
|
};
|
|
1089
|
-
var Collapse =
|
|
1118
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1090
1119
|
var onEnter = _ref.onEnter,
|
|
1091
1120
|
onEntering = _ref.onEntering,
|
|
1092
1121
|
onEntered = _ref.onEntered,
|
|
@@ -1133,7 +1162,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1133
1162
|
elem.style[computedDimension] = null;
|
|
1134
1163
|
}, onExiting);
|
|
1135
1164
|
}, [computedDimension, onExiting]);
|
|
1136
|
-
return /*#__PURE__*/
|
|
1165
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1137
1166
|
, _extends({
|
|
1138
1167
|
ref: ref,
|
|
1139
1168
|
addEndListener: transitionEnd
|
|
@@ -1145,33 +1174,29 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1145
1174
|
onExit: handleExit,
|
|
1146
1175
|
onExiting: handleExiting
|
|
1147
1176
|
}), function (state, innerProps) {
|
|
1148
|
-
return
|
|
1177
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1149
1178
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1150
1179
|
}));
|
|
1151
1180
|
});
|
|
1152
1181
|
}); // @ts-ignore
|
|
1153
1182
|
|
|
1154
1183
|
// @ts-ignore
|
|
1155
|
-
Collapse.defaultProps = defaultProps
|
|
1184
|
+
Collapse.defaultProps = defaultProps;
|
|
1156
1185
|
|
|
1157
|
-
var AccordionCollapse =
|
|
1186
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1158
1187
|
var children = _ref.children,
|
|
1159
1188
|
eventKey = _ref.eventKey,
|
|
1160
1189
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1161
1190
|
|
|
1162
|
-
var contextEventKey = useContext(context
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1166
|
-
value: null
|
|
1167
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1191
|
+
var contextEventKey = useContext(context);
|
|
1192
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1168
1193
|
ref: ref,
|
|
1169
1194
|
in: contextEventKey === eventKey
|
|
1170
|
-
}, props), /*#__PURE__*/
|
|
1195
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1171
1196
|
});
|
|
1172
1197
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1173
1198
|
|
|
1174
|
-
var Accordion =
|
|
1199
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1175
1200
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1176
1201
|
activeKey: 'onSelect'
|
|
1177
1202
|
}),
|
|
@@ -1185,11 +1210,11 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1185
1210
|
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1186
1211
|
|
|
1187
1212
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1188
|
-
return /*#__PURE__*/
|
|
1213
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1189
1214
|
value: activeKey || null
|
|
1190
|
-
}, /*#__PURE__*/
|
|
1215
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1191
1216
|
value: onSelect || null
|
|
1192
|
-
}, /*#__PURE__*/
|
|
1217
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1193
1218
|
ref: ref
|
|
1194
1219
|
}, controlledProps, {
|
|
1195
1220
|
className: finalClassName
|
|
@@ -1225,7 +1250,7 @@ function useEventCallback(fn) {
|
|
|
1225
1250
|
}
|
|
1226
1251
|
|
|
1227
1252
|
var _fadeStyles;
|
|
1228
|
-
var defaultProps$
|
|
1253
|
+
var defaultProps$1 = {
|
|
1229
1254
|
in: false,
|
|
1230
1255
|
timeout: 300,
|
|
1231
1256
|
mountOnEnter: false,
|
|
@@ -1233,7 +1258,7 @@ var defaultProps$D = {
|
|
|
1233
1258
|
appear: false
|
|
1234
1259
|
};
|
|
1235
1260
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1236
|
-
var Fade =
|
|
1261
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1237
1262
|
var className = _ref.className,
|
|
1238
1263
|
children = _ref.children,
|
|
1239
1264
|
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
@@ -1242,51 +1267,51 @@ var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
|
1242
1267
|
triggerBrowserReflow(node);
|
|
1243
1268
|
if (props.onEnter) props.onEnter(node);
|
|
1244
1269
|
}, [props]);
|
|
1245
|
-
return /*#__PURE__*/
|
|
1270
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1246
1271
|
ref: ref,
|
|
1247
1272
|
addEndListener: transitionEnd
|
|
1248
1273
|
}, props, {
|
|
1249
1274
|
onEnter: handleEnter
|
|
1250
1275
|
}), function (status, innerProps) {
|
|
1251
|
-
return
|
|
1276
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1252
1277
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1253
1278
|
}));
|
|
1254
1279
|
});
|
|
1255
1280
|
});
|
|
1256
|
-
Fade.defaultProps = defaultProps$
|
|
1281
|
+
Fade.defaultProps = defaultProps$1;
|
|
1257
1282
|
Fade.displayName = 'Fade';
|
|
1258
1283
|
|
|
1259
|
-
var propTypes
|
|
1284
|
+
var propTypes = {
|
|
1260
1285
|
label: PropTypes.string.isRequired,
|
|
1261
1286
|
onClick: PropTypes.func
|
|
1262
1287
|
};
|
|
1263
|
-
var defaultProps$
|
|
1288
|
+
var defaultProps$2 = {
|
|
1264
1289
|
label: 'Close'
|
|
1265
1290
|
};
|
|
1266
|
-
var CloseButton =
|
|
1291
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1267
1292
|
var label = _ref.label,
|
|
1268
1293
|
onClick = _ref.onClick,
|
|
1269
1294
|
className = _ref.className,
|
|
1270
1295
|
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1271
1296
|
|
|
1272
|
-
return /*#__PURE__*/
|
|
1297
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1273
1298
|
ref: ref,
|
|
1274
1299
|
type: "button",
|
|
1275
1300
|
className: classnames('close', className),
|
|
1276
1301
|
onClick: onClick
|
|
1277
|
-
}, props), /*#__PURE__*/
|
|
1302
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1278
1303
|
"aria-hidden": "true"
|
|
1279
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1304
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1280
1305
|
className: "sr-only"
|
|
1281
1306
|
}, label));
|
|
1282
1307
|
});
|
|
1283
1308
|
CloseButton.displayName = 'CloseButton';
|
|
1284
|
-
CloseButton.propTypes = propTypes
|
|
1285
|
-
CloseButton.defaultProps = defaultProps$
|
|
1309
|
+
CloseButton.propTypes = propTypes;
|
|
1310
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1286
1311
|
|
|
1287
1312
|
var divWithClassName = (function (className) {
|
|
1288
|
-
return
|
|
1289
|
-
return /*#__PURE__*/
|
|
1313
|
+
return React.forwardRef(function (p, ref) {
|
|
1314
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1290
1315
|
ref: ref,
|
|
1291
1316
|
className: classnames(p.className, className)
|
|
1292
1317
|
}));
|
|
@@ -1312,7 +1337,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1312
1337
|
Component = _ref.Component,
|
|
1313
1338
|
defaultProps = _ref.defaultProps;
|
|
1314
1339
|
|
|
1315
|
-
var BsComponent =
|
|
1340
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1316
1341
|
var className = _ref2.className,
|
|
1317
1342
|
bsPrefix = _ref2.bsPrefix,
|
|
1318
1343
|
_ref2$as = _ref2.as,
|
|
@@ -1320,7 +1345,7 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1320
1345
|
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1321
1346
|
|
|
1322
1347
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1323
|
-
return /*#__PURE__*/
|
|
1348
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1324
1349
|
ref: ref,
|
|
1325
1350
|
className: classnames(className, resolvedPrefix)
|
|
1326
1351
|
}, props));
|
|
@@ -1342,7 +1367,7 @@ function isTrivialHref(href) {
|
|
|
1342
1367
|
*/
|
|
1343
1368
|
|
|
1344
1369
|
|
|
1345
|
-
var SafeAnchor =
|
|
1370
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1346
1371
|
var _ref$as = _ref.as,
|
|
1347
1372
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1348
1373
|
disabled = _ref.disabled,
|
|
@@ -1386,7 +1411,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1386
1411
|
props['aria-disabled'] = true;
|
|
1387
1412
|
}
|
|
1388
1413
|
|
|
1389
|
-
return /*#__PURE__*/
|
|
1414
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1390
1415
|
ref: ref
|
|
1391
1416
|
}, props, {
|
|
1392
1417
|
onClick: handleClick,
|
|
@@ -1395,20 +1420,20 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1395
1420
|
});
|
|
1396
1421
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1397
1422
|
|
|
1398
|
-
var DivStyledAsH4
|
|
1399
|
-
DivStyledAsH4
|
|
1423
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1424
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1400
1425
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1401
|
-
Component: DivStyledAsH4
|
|
1426
|
+
Component: DivStyledAsH4
|
|
1402
1427
|
});
|
|
1403
1428
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1404
1429
|
Component: SafeAnchor
|
|
1405
1430
|
});
|
|
1406
|
-
var defaultProps$
|
|
1431
|
+
var defaultProps$3 = {
|
|
1407
1432
|
show: true,
|
|
1408
1433
|
transition: Fade,
|
|
1409
1434
|
closeLabel: 'Close alert'
|
|
1410
1435
|
};
|
|
1411
|
-
var Alert =
|
|
1436
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1412
1437
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1413
1438
|
show: 'onClose'
|
|
1414
1439
|
}),
|
|
@@ -1430,17 +1455,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1430
1455
|
}
|
|
1431
1456
|
});
|
|
1432
1457
|
var Transition = transition === true ? Fade : transition;
|
|
1433
|
-
var alert = /*#__PURE__*/
|
|
1458
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1434
1459
|
role: "alert"
|
|
1435
1460
|
}, Transition ? props : undefined, {
|
|
1436
1461
|
ref: ref,
|
|
1437
1462
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1438
|
-
}), dismissible && /*#__PURE__*/
|
|
1463
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1439
1464
|
onClick: handleClose,
|
|
1440
1465
|
label: closeLabel
|
|
1441
1466
|
}), children);
|
|
1442
1467
|
if (!Transition) return show ? alert : null;
|
|
1443
|
-
return /*#__PURE__*/
|
|
1468
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1444
1469
|
unmountOnExit: true
|
|
1445
1470
|
}, props, {
|
|
1446
1471
|
ref: undefined,
|
|
@@ -1448,14 +1473,14 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1448
1473
|
}), alert);
|
|
1449
1474
|
});
|
|
1450
1475
|
Alert.displayName = 'Alert';
|
|
1451
|
-
Alert.defaultProps = defaultProps$
|
|
1476
|
+
Alert.defaultProps = defaultProps$3;
|
|
1452
1477
|
Alert.Link = AlertLink;
|
|
1453
1478
|
Alert.Heading = AlertHeading;
|
|
1454
1479
|
|
|
1455
|
-
var defaultProps$
|
|
1480
|
+
var defaultProps$4 = {
|
|
1456
1481
|
pill: false
|
|
1457
1482
|
};
|
|
1458
|
-
var Badge =
|
|
1483
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1459
1484
|
var bsPrefix = _ref.bsPrefix,
|
|
1460
1485
|
variant = _ref.variant,
|
|
1461
1486
|
pill = _ref.pill,
|
|
@@ -1465,20 +1490,20 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1465
1490
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1466
1491
|
|
|
1467
1492
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1468
|
-
return /*#__PURE__*/
|
|
1493
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1469
1494
|
ref: ref
|
|
1470
1495
|
}, props, {
|
|
1471
1496
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1472
1497
|
}));
|
|
1473
1498
|
});
|
|
1474
1499
|
Badge.displayName = 'Badge';
|
|
1475
|
-
Badge.defaultProps = defaultProps$
|
|
1500
|
+
Badge.defaultProps = defaultProps$4;
|
|
1476
1501
|
|
|
1477
|
-
var defaultProps$
|
|
1502
|
+
var defaultProps$5 = {
|
|
1478
1503
|
active: false,
|
|
1479
1504
|
linkProps: {}
|
|
1480
1505
|
};
|
|
1481
|
-
var BreadcrumbItem =
|
|
1506
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1482
1507
|
var bsPrefix = _ref.bsPrefix,
|
|
1483
1508
|
active = _ref.active,
|
|
1484
1509
|
children = _ref.children,
|
|
@@ -1494,27 +1519,27 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1494
1519
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1495
1520
|
|
|
1496
1521
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1497
|
-
return /*#__PURE__*/
|
|
1522
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1498
1523
|
ref: ref
|
|
1499
1524
|
}, props, {
|
|
1500
1525
|
className: classnames(prefix, className, {
|
|
1501
1526
|
active: active
|
|
1502
1527
|
}),
|
|
1503
1528
|
"aria-current": active ? 'page' : undefined
|
|
1504
|
-
}), active ? children : /*#__PURE__*/
|
|
1529
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1505
1530
|
href: href,
|
|
1506
1531
|
title: title,
|
|
1507
1532
|
target: target
|
|
1508
1533
|
}), children));
|
|
1509
1534
|
});
|
|
1510
1535
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1511
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1536
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1512
1537
|
|
|
1513
|
-
var defaultProps$
|
|
1538
|
+
var defaultProps$6 = {
|
|
1514
1539
|
label: 'breadcrumb',
|
|
1515
1540
|
listProps: {}
|
|
1516
1541
|
};
|
|
1517
|
-
var Breadcrumb =
|
|
1542
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1518
1543
|
var bsPrefix = _ref.bsPrefix,
|
|
1519
1544
|
className = _ref.className,
|
|
1520
1545
|
listProps = _ref.listProps,
|
|
@@ -1525,24 +1550,24 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1525
1550
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1526
1551
|
|
|
1527
1552
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1528
|
-
return /*#__PURE__*/
|
|
1553
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1529
1554
|
"aria-label": label,
|
|
1530
1555
|
className: className,
|
|
1531
1556
|
ref: ref
|
|
1532
|
-
}, props), /*#__PURE__*/
|
|
1557
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1533
1558
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1534
1559
|
}), children));
|
|
1535
1560
|
});
|
|
1536
1561
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1537
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1562
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1538
1563
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1539
1564
|
|
|
1540
|
-
var defaultProps$
|
|
1565
|
+
var defaultProps$7 = {
|
|
1541
1566
|
variant: 'primary',
|
|
1542
1567
|
active: false,
|
|
1543
1568
|
disabled: false
|
|
1544
1569
|
};
|
|
1545
|
-
var Button =
|
|
1570
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1546
1571
|
var bsPrefix = _ref.bsPrefix,
|
|
1547
1572
|
variant = _ref.variant,
|
|
1548
1573
|
size = _ref.size,
|
|
@@ -1554,10 +1579,10 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1554
1579
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1555
1580
|
|
|
1556
1581
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1557
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1582
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1558
1583
|
|
|
1559
1584
|
if (props.href) {
|
|
1560
|
-
return /*#__PURE__*/
|
|
1585
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1561
1586
|
as: as,
|
|
1562
1587
|
ref: ref,
|
|
1563
1588
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1575,19 +1600,19 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1575
1600
|
}
|
|
1576
1601
|
|
|
1577
1602
|
var Component = as || 'button';
|
|
1578
|
-
return /*#__PURE__*/
|
|
1603
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1579
1604
|
className: classes
|
|
1580
1605
|
}));
|
|
1581
1606
|
});
|
|
1582
1607
|
Button.displayName = 'Button';
|
|
1583
|
-
Button.defaultProps = defaultProps$
|
|
1608
|
+
Button.defaultProps = defaultProps$7;
|
|
1584
1609
|
|
|
1585
|
-
var defaultProps$
|
|
1610
|
+
var defaultProps$8 = {
|
|
1586
1611
|
vertical: false,
|
|
1587
1612
|
toggle: false,
|
|
1588
1613
|
role: 'group'
|
|
1589
1614
|
};
|
|
1590
|
-
var ButtonGroup =
|
|
1615
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1591
1616
|
var bsPrefix = _ref.bsPrefix,
|
|
1592
1617
|
size = _ref.size,
|
|
1593
1618
|
toggle = _ref.toggle,
|
|
@@ -1600,38 +1625,38 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1600
1625
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1601
1626
|
var baseClass = prefix;
|
|
1602
1627
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1603
|
-
return /*#__PURE__*/
|
|
1628
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1604
1629
|
ref: ref,
|
|
1605
1630
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1606
1631
|
}));
|
|
1607
1632
|
});
|
|
1608
1633
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1609
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1634
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1610
1635
|
|
|
1611
|
-
var defaultProps$
|
|
1636
|
+
var defaultProps$9 = {
|
|
1612
1637
|
role: 'toolbar'
|
|
1613
1638
|
};
|
|
1614
|
-
var ButtonToolbar =
|
|
1639
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1615
1640
|
var bsPrefix = _ref.bsPrefix,
|
|
1616
1641
|
className = _ref.className,
|
|
1617
1642
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1618
1643
|
|
|
1619
1644
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1620
|
-
return /*#__PURE__*/
|
|
1645
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1621
1646
|
ref: ref,
|
|
1622
1647
|
className: classnames(className, prefix)
|
|
1623
1648
|
}));
|
|
1624
1649
|
});
|
|
1625
1650
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1626
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1651
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1627
1652
|
|
|
1628
|
-
var context$1 =
|
|
1653
|
+
var context$1 = React.createContext(null);
|
|
1629
1654
|
context$1.displayName = 'CardContext';
|
|
1630
1655
|
|
|
1631
|
-
var defaultProps$
|
|
1656
|
+
var defaultProps$a = {
|
|
1632
1657
|
variant: null
|
|
1633
1658
|
};
|
|
1634
|
-
var CardImg =
|
|
1659
|
+
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
|
|
1635
1660
|
function (_ref, ref) {
|
|
1636
1661
|
var bsPrefix = _ref.bsPrefix,
|
|
1637
1662
|
className = _ref.className,
|
|
@@ -1641,13 +1666,13 @@ function (_ref, ref) {
|
|
|
1641
1666
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1642
1667
|
|
|
1643
1668
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1644
|
-
return /*#__PURE__*/
|
|
1669
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1645
1670
|
ref: ref,
|
|
1646
1671
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1647
1672
|
}, props));
|
|
1648
1673
|
});
|
|
1649
1674
|
CardImg.displayName = 'CardImg';
|
|
1650
|
-
CardImg.defaultProps = defaultProps$
|
|
1675
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1651
1676
|
|
|
1652
1677
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1653
1678
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1667,10 +1692,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1667
1692
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1668
1693
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1669
1694
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1670
|
-
var defaultProps$
|
|
1695
|
+
var defaultProps$b = {
|
|
1671
1696
|
body: false
|
|
1672
1697
|
};
|
|
1673
|
-
var Card =
|
|
1698
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1674
1699
|
var bsPrefix = _ref.bsPrefix,
|
|
1675
1700
|
className = _ref.className,
|
|
1676
1701
|
bg = _ref.bg,
|
|
@@ -1688,19 +1713,19 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1688
1713
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1689
1714
|
};
|
|
1690
1715
|
}, [prefix]);
|
|
1691
|
-
return /*#__PURE__*/
|
|
1716
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1692
1717
|
value: cardContext
|
|
1693
|
-
}, /*#__PURE__*/
|
|
1718
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1694
1719
|
ref: ref
|
|
1695
1720
|
}, props, {
|
|
1696
1721
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1697
1722
|
}), body ?
|
|
1698
1723
|
/*#__PURE__*/
|
|
1699
1724
|
// @ts-ignore
|
|
1700
|
-
|
|
1725
|
+
React.createElement(CardBody, null, children) : children));
|
|
1701
1726
|
});
|
|
1702
1727
|
Card.displayName = 'Card';
|
|
1703
|
-
Card.defaultProps = defaultProps$
|
|
1728
|
+
Card.defaultProps = defaultProps$b;
|
|
1704
1729
|
Card.Img = CardImg;
|
|
1705
1730
|
Card.Title = CardTitle;
|
|
1706
1731
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1833,20 +1858,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1833
1858
|
/**
|
|
1834
1859
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1835
1860
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
* ```tsx
|
|
1840
|
-
* const { set, clear } = useTimeout();
|
|
1841
|
-
* const [hello, showHello] = useState(false);
|
|
1842
|
-
* //Display hello after 5 seconds
|
|
1843
|
-
* set(() => showHello(true), 5000);
|
|
1844
|
-
* return (
|
|
1845
|
-
* <div className="App">
|
|
1846
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1847
|
-
* </div>
|
|
1848
|
-
* );
|
|
1849
|
-
* ```
|
|
1850
1861
|
*/
|
|
1851
1862
|
|
|
1852
1863
|
|
|
@@ -1887,22 +1898,7 @@ function useTimeout() {
|
|
|
1887
1898
|
|
|
1888
1899
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1889
1900
|
|
|
1890
|
-
var CarouselItem =
|
|
1891
|
-
var _ref$as = _ref.as,
|
|
1892
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1893
|
-
bsPrefix = _ref.bsPrefix,
|
|
1894
|
-
children = _ref.children,
|
|
1895
|
-
className = _ref.className,
|
|
1896
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1897
|
-
|
|
1898
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1899
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1900
|
-
ref: ref
|
|
1901
|
-
}, props, {
|
|
1902
|
-
className: finalClassName
|
|
1903
|
-
}), children);
|
|
1904
|
-
});
|
|
1905
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1901
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1906
1902
|
|
|
1907
1903
|
/**
|
|
1908
1904
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1915,27 +1911,13 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1915
1911
|
|
|
1916
1912
|
function map(children, func) {
|
|
1917
1913
|
var index = 0;
|
|
1918
|
-
return
|
|
1919
|
-
return
|
|
1920
|
-
});
|
|
1921
|
-
}
|
|
1922
|
-
/**
|
|
1923
|
-
* Iterates through children that are "valid elements".
|
|
1924
|
-
*
|
|
1925
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1926
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1927
|
-
*/
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
function forEach(children, func) {
|
|
1931
|
-
var index = 0;
|
|
1932
|
-
React__default.Children.forEach(children, function (child) {
|
|
1933
|
-
if (React__default.isValidElement(child)) func(child, index++);
|
|
1914
|
+
return React.Children.map(children, function (child) {
|
|
1915
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1934
1916
|
});
|
|
1935
1917
|
}
|
|
1936
1918
|
|
|
1937
1919
|
var SWIPE_THRESHOLD = 40;
|
|
1938
|
-
var propTypes$
|
|
1920
|
+
var propTypes$1 = {
|
|
1939
1921
|
/**
|
|
1940
1922
|
* @default 'carousel'
|
|
1941
1923
|
*/
|
|
@@ -2037,7 +2019,7 @@ var propTypes$9 = {
|
|
|
2037
2019
|
*/
|
|
2038
2020
|
nextLabel: PropTypes.string
|
|
2039
2021
|
};
|
|
2040
|
-
var defaultProps$
|
|
2022
|
+
var defaultProps$c = {
|
|
2041
2023
|
slide: true,
|
|
2042
2024
|
fade: false,
|
|
2043
2025
|
controls: true,
|
|
@@ -2048,12 +2030,12 @@ var defaultProps$s = {
|
|
|
2048
2030
|
pause: 'hover',
|
|
2049
2031
|
wrap: true,
|
|
2050
2032
|
touch: true,
|
|
2051
|
-
prevIcon: /*#__PURE__*/
|
|
2033
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2052
2034
|
"aria-hidden": "true",
|
|
2053
2035
|
className: "carousel-control-prev-icon"
|
|
2054
2036
|
}),
|
|
2055
2037
|
prevLabel: 'Previous',
|
|
2056
|
-
nextIcon: /*#__PURE__*/
|
|
2038
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2057
2039
|
"aria-hidden": "true",
|
|
2058
2040
|
className: "carousel-control-next-icon"
|
|
2059
2041
|
}),
|
|
@@ -2121,6 +2103,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2121
2103
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2122
2104
|
if (nextDirectionRef.current) {
|
|
2123
2105
|
setDirection(nextDirectionRef.current);
|
|
2106
|
+
nextDirectionRef.current = null;
|
|
2124
2107
|
} else {
|
|
2125
2108
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2126
2109
|
}
|
|
@@ -2132,23 +2115,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2132
2115
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2133
2116
|
}
|
|
2134
2117
|
|
|
2135
|
-
|
|
2136
|
-
if (nextDirectionRef.current) {
|
|
2137
|
-
nextDirectionRef.current = null;
|
|
2138
|
-
}
|
|
2139
|
-
});
|
|
2140
|
-
var numChildren = 0;
|
|
2141
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2142
|
-
// (and count them, too)
|
|
2143
|
-
|
|
2144
|
-
forEach(children, function (child, index) {
|
|
2145
|
-
++numChildren;
|
|
2146
|
-
|
|
2147
|
-
if (index === activeIndex) {
|
|
2148
|
-
activeChildInterval = child.props.interval;
|
|
2149
|
-
}
|
|
2150
|
-
});
|
|
2151
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2118
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2152
2119
|
var prev = useCallback(function (event) {
|
|
2153
2120
|
if (isSliding) {
|
|
2154
2121
|
return;
|
|
@@ -2334,19 +2301,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2334
2301
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2335
2302
|
var intervalHandleRef = useRef();
|
|
2336
2303
|
useEffect(function () {
|
|
2337
|
-
var _ref, _activeChildIntervalR;
|
|
2338
|
-
|
|
2339
2304
|
if (!shouldPlay) {
|
|
2340
2305
|
return undefined;
|
|
2341
2306
|
}
|
|
2342
2307
|
|
|
2343
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2308
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2344
2309
|
return function () {
|
|
2345
2310
|
if (intervalHandleRef.current !== null) {
|
|
2346
2311
|
clearInterval(intervalHandleRef.current);
|
|
2347
2312
|
}
|
|
2348
2313
|
};
|
|
2349
|
-
}, [shouldPlay, next,
|
|
2314
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2350
2315
|
var indicatorOnClicks = useMemo(function () {
|
|
2351
2316
|
return indicators && Array.from({
|
|
2352
2317
|
length: numChildren
|
|
@@ -2358,7 +2323,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2358
2323
|
};
|
|
2359
2324
|
});
|
|
2360
2325
|
}, [indicators, numChildren, onSelect]);
|
|
2361
|
-
return /*#__PURE__*/
|
|
2326
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2362
2327
|
ref: elementRef
|
|
2363
2328
|
}, props, {
|
|
2364
2329
|
onKeyDown: handleKeyDown,
|
|
@@ -2368,52 +2333,52 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2368
2333
|
onTouchMove: handleTouchMove,
|
|
2369
2334
|
onTouchEnd: handleTouchEnd,
|
|
2370
2335
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2371
|
-
}), indicators && /*#__PURE__*/
|
|
2336
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2372
2337
|
className: prefix + "-indicators"
|
|
2373
2338
|
}, map(children, function (_child, index) {
|
|
2374
|
-
return /*#__PURE__*/
|
|
2339
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2375
2340
|
key: index,
|
|
2376
2341
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2377
2342
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2378
2343
|
});
|
|
2379
|
-
})), /*#__PURE__*/
|
|
2344
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2380
2345
|
className: prefix + "-inner"
|
|
2381
2346
|
}, map(children, function (child, index) {
|
|
2382
2347
|
var isActive = index === renderedActiveIndex;
|
|
2383
|
-
return slide ? /*#__PURE__*/
|
|
2348
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2384
2349
|
in: isActive,
|
|
2385
2350
|
onEnter: isActive ? handleEnter : undefined,
|
|
2386
2351
|
onEntered: isActive ? handleEntered : undefined,
|
|
2387
2352
|
addEndListener: transitionEnd
|
|
2388
2353
|
}, function (status) {
|
|
2389
|
-
return
|
|
2354
|
+
return React.cloneElement(child, {
|
|
2390
2355
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2391
2356
|
});
|
|
2392
|
-
}) :
|
|
2357
|
+
}) : React.cloneElement(child, {
|
|
2393
2358
|
className: classnames(child.props.className, isActive && 'active')
|
|
2394
2359
|
});
|
|
2395
|
-
})), controls && /*#__PURE__*/
|
|
2360
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2396
2361
|
className: prefix + "-control-prev",
|
|
2397
2362
|
onClick: prev
|
|
2398
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2363
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2399
2364
|
className: "sr-only"
|
|
2400
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2365
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2401
2366
|
className: prefix + "-control-next",
|
|
2402
2367
|
onClick: next
|
|
2403
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2368
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2404
2369
|
className: "sr-only"
|
|
2405
2370
|
}, nextLabel))));
|
|
2406
2371
|
}
|
|
2407
2372
|
|
|
2408
|
-
var Carousel =
|
|
2373
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2409
2374
|
Carousel.displayName = 'Carousel';
|
|
2410
|
-
Carousel.propTypes = propTypes$
|
|
2411
|
-
Carousel.defaultProps = defaultProps$
|
|
2375
|
+
Carousel.propTypes = propTypes$1;
|
|
2376
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2412
2377
|
Carousel.Caption = CarouselCaption;
|
|
2413
2378
|
Carousel.Item = CarouselItem;
|
|
2414
2379
|
|
|
2415
|
-
var DEVICE_SIZES
|
|
2416
|
-
var Col =
|
|
2380
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2381
|
+
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
|
|
2417
2382
|
function (_ref, ref) {
|
|
2418
2383
|
var bsPrefix = _ref.bsPrefix,
|
|
2419
2384
|
className = _ref.className,
|
|
@@ -2424,7 +2389,7 @@ function (_ref, ref) {
|
|
|
2424
2389
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2425
2390
|
var spans = [];
|
|
2426
2391
|
var classes = [];
|
|
2427
|
-
DEVICE_SIZES
|
|
2392
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2428
2393
|
var propValue = props[brkPoint];
|
|
2429
2394
|
delete props[brkPoint];
|
|
2430
2395
|
var span;
|
|
@@ -2450,7 +2415,7 @@ function (_ref, ref) {
|
|
|
2450
2415
|
spans.push(prefix); // plain 'col'
|
|
2451
2416
|
}
|
|
2452
2417
|
|
|
2453
|
-
return /*#__PURE__*/
|
|
2418
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2454
2419
|
ref: ref,
|
|
2455
2420
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2456
2421
|
}));
|
|
@@ -2458,13 +2423,6 @@ function (_ref, ref) {
|
|
|
2458
2423
|
Col.displayName = 'Col';
|
|
2459
2424
|
|
|
2460
2425
|
var matchesImpl;
|
|
2461
|
-
/**
|
|
2462
|
-
* Checks if a given element matches a selector.
|
|
2463
|
-
*
|
|
2464
|
-
* @param node the element
|
|
2465
|
-
* @param selector the selector
|
|
2466
|
-
*/
|
|
2467
|
-
|
|
2468
2426
|
function matches(node, selector) {
|
|
2469
2427
|
if (!matchesImpl) {
|
|
2470
2428
|
var body = document.body;
|
|
@@ -2479,13 +2437,6 @@ function matches(node, selector) {
|
|
|
2479
2437
|
}
|
|
2480
2438
|
|
|
2481
2439
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2482
|
-
/**
|
|
2483
|
-
* Runs `querySelectorAll` on a given element.
|
|
2484
|
-
*
|
|
2485
|
-
* @param element the element
|
|
2486
|
-
* @param selector the selector
|
|
2487
|
-
*/
|
|
2488
|
-
|
|
2489
2440
|
function qsa(element, selector) {
|
|
2490
2441
|
return toArray(element.querySelectorAll(selector));
|
|
2491
2442
|
}
|
|
@@ -2573,7 +2524,7 @@ function useForceUpdate() {
|
|
|
2573
2524
|
return dispatch;
|
|
2574
2525
|
}
|
|
2575
2526
|
|
|
2576
|
-
var DropdownContext = /*#__PURE__*/
|
|
2527
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2577
2528
|
|
|
2578
2529
|
function useSafeState(state) {
|
|
2579
2530
|
var isMounted = useMounted();
|
|
@@ -2619,11 +2570,21 @@ function getBasePlacement(placement) {
|
|
|
2619
2570
|
return placement.split('-')[0];
|
|
2620
2571
|
}
|
|
2621
2572
|
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2573
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2574
|
+
// means it doesn't take into account transforms.
|
|
2575
|
+
function getLayoutRect(element) {
|
|
2576
|
+
return {
|
|
2577
|
+
x: element.offsetLeft,
|
|
2578
|
+
y: element.offsetTop,
|
|
2579
|
+
width: element.offsetWidth,
|
|
2580
|
+
height: element.offsetHeight
|
|
2581
|
+
};
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
/*:: import type { Window } from '../types'; */
|
|
2626
2585
|
|
|
2586
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2587
|
+
function getWindow(node) {
|
|
2627
2588
|
if (node.toString() !== '[object Window]') {
|
|
2628
2589
|
var ownerDocument = node.ownerDocument;
|
|
2629
2590
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2632,92 +2593,43 @@ function getWindow(node) {
|
|
|
2632
2593
|
return node;
|
|
2633
2594
|
}
|
|
2634
2595
|
|
|
2596
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2597
|
+
Element); */
|
|
2598
|
+
|
|
2635
2599
|
function isElement(node) {
|
|
2636
2600
|
var OwnElement = getWindow(node).Element;
|
|
2637
2601
|
return node instanceof OwnElement || node instanceof Element;
|
|
2638
2602
|
}
|
|
2603
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2604
|
+
HTMLElement); */
|
|
2605
|
+
|
|
2639
2606
|
|
|
2640
2607
|
function isHTMLElement(node) {
|
|
2641
2608
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2642
2609
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2643
2610
|
}
|
|
2611
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2612
|
+
ShadowRoot); */
|
|
2644
2613
|
|
|
2645
|
-
function isShadowRoot(node) {
|
|
2646
|
-
// IE 11 has no ShadowRoot
|
|
2647
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2648
|
-
return false;
|
|
2649
|
-
}
|
|
2650
2614
|
|
|
2615
|
+
function isShadowRoot(node) {
|
|
2651
2616
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2652
2617
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2653
2618
|
}
|
|
2654
2619
|
|
|
2655
|
-
|
|
2656
|
-
function getBoundingClientRect(element, includeScale) {
|
|
2657
|
-
if (includeScale === void 0) {
|
|
2658
|
-
includeScale = false;
|
|
2659
|
-
}
|
|
2660
|
-
|
|
2661
|
-
var rect = element.getBoundingClientRect();
|
|
2662
|
-
var scaleX = 1;
|
|
2663
|
-
var scaleY = 1;
|
|
2664
|
-
|
|
2665
|
-
if (isHTMLElement(element) && includeScale) {
|
|
2666
|
-
// Fallback to 1 in case both values are `0`
|
|
2667
|
-
scaleX = rect.width / element.offsetWidth || 1;
|
|
2668
|
-
scaleY = rect.height / element.offsetHeight || 1;
|
|
2669
|
-
}
|
|
2670
|
-
|
|
2671
|
-
return {
|
|
2672
|
-
width: round$1(rect.width / scaleX),
|
|
2673
|
-
height: round$1(rect.height / scaleY),
|
|
2674
|
-
top: round$1(rect.top / scaleY),
|
|
2675
|
-
right: round$1(rect.right / scaleX),
|
|
2676
|
-
bottom: round$1(rect.bottom / scaleY),
|
|
2677
|
-
left: round$1(rect.left / scaleX),
|
|
2678
|
-
x: round$1(rect.left / scaleX),
|
|
2679
|
-
y: round$1(rect.top / scaleY)
|
|
2680
|
-
};
|
|
2681
|
-
}
|
|
2682
|
-
|
|
2683
|
-
// means it doesn't take into account transforms.
|
|
2684
|
-
|
|
2685
|
-
function getLayoutRect(element) {
|
|
2686
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2687
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2688
|
-
|
|
2689
|
-
var width = element.offsetWidth;
|
|
2690
|
-
var height = element.offsetHeight;
|
|
2691
|
-
|
|
2692
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2693
|
-
width = clientRect.width;
|
|
2694
|
-
}
|
|
2695
|
-
|
|
2696
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2697
|
-
height = clientRect.height;
|
|
2698
|
-
}
|
|
2699
|
-
|
|
2700
|
-
return {
|
|
2701
|
-
x: element.offsetLeft,
|
|
2702
|
-
y: element.offsetTop,
|
|
2703
|
-
width: width,
|
|
2704
|
-
height: height
|
|
2705
|
-
};
|
|
2706
|
-
}
|
|
2707
|
-
|
|
2708
|
-
function contains$1(parent, child) {
|
|
2620
|
+
function contains(parent, child) {
|
|
2709
2621
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2710
2622
|
|
|
2711
2623
|
if (parent.contains(child)) {
|
|
2712
2624
|
return true;
|
|
2713
2625
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2714
|
-
else if (
|
|
2626
|
+
else if (isShadowRoot(rootNode)) {
|
|
2715
2627
|
var next = child;
|
|
2716
2628
|
|
|
2717
2629
|
do {
|
|
2718
2630
|
if (next && parent.isSameNode(next)) {
|
|
2719
2631
|
return true;
|
|
2720
|
-
} // $FlowFixMe
|
|
2632
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2721
2633
|
|
|
2722
2634
|
|
|
2723
2635
|
next = next.parentNode || next.host;
|
|
@@ -2732,7 +2644,7 @@ function getNodeName(element) {
|
|
|
2732
2644
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2733
2645
|
}
|
|
2734
2646
|
|
|
2735
|
-
function getComputedStyle$
|
|
2647
|
+
function getComputedStyle$2(element) {
|
|
2736
2648
|
return getWindow(element).getComputedStyle(element);
|
|
2737
2649
|
}
|
|
2738
2650
|
|
|
@@ -2741,9 +2653,8 @@ function isTableElement(element) {
|
|
|
2741
2653
|
}
|
|
2742
2654
|
|
|
2743
2655
|
function getDocumentElement(element) {
|
|
2744
|
-
// $FlowFixMe
|
|
2745
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2746
|
-
element.document) || window.document).documentElement;
|
|
2656
|
+
// $FlowFixMe: assume body is always available
|
|
2657
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2747
2658
|
}
|
|
2748
2659
|
|
|
2749
2660
|
function getParentNode(element) {
|
|
@@ -2751,13 +2662,12 @@ function getParentNode(element) {
|
|
|
2751
2662
|
return element;
|
|
2752
2663
|
}
|
|
2753
2664
|
|
|
2754
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2755
|
-
// $FlowFixMe[incompatible-return]
|
|
2756
|
-
// $FlowFixMe[prop-missing]
|
|
2665
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2757
2666
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2758
|
-
element.parentNode ||
|
|
2759
|
-
|
|
2760
|
-
|
|
2667
|
+
element.parentNode || // DOM Element detected
|
|
2668
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2669
|
+
element.host || // ShadowRoot detected
|
|
2670
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2761
2671
|
getDocumentElement(element) // fallback
|
|
2762
2672
|
|
|
2763
2673
|
);
|
|
@@ -2765,36 +2675,33 @@ function getParentNode(element) {
|
|
|
2765
2675
|
|
|
2766
2676
|
function getTrueOffsetParent(element) {
|
|
2767
2677
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2768
|
-
getComputedStyle$
|
|
2678
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2769
2679
|
return null;
|
|
2770
2680
|
}
|
|
2771
2681
|
|
|
2772
|
-
|
|
2773
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2774
|
-
// return the containing block
|
|
2775
|
-
|
|
2682
|
+
var offsetParent = element.offsetParent;
|
|
2776
2683
|
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2780
|
-
|
|
2781
|
-
if (isIE && isHTMLElement(element)) {
|
|
2782
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2783
|
-
var elementCss = getComputedStyle$1(element);
|
|
2684
|
+
if (offsetParent) {
|
|
2685
|
+
var html = getDocumentElement(offsetParent);
|
|
2784
2686
|
|
|
2785
|
-
if (
|
|
2786
|
-
return
|
|
2687
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2688
|
+
return html;
|
|
2787
2689
|
}
|
|
2788
2690
|
}
|
|
2789
2691
|
|
|
2692
|
+
return offsetParent;
|
|
2693
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2694
|
+
// return the containing block
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
function getContainingBlock(element) {
|
|
2790
2698
|
var currentNode = getParentNode(element);
|
|
2791
2699
|
|
|
2792
2700
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2793
|
-
var css = getComputedStyle$
|
|
2701
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2794
2702
|
// create a containing block.
|
|
2795
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2796
2703
|
|
|
2797
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2704
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2798
2705
|
return currentNode;
|
|
2799
2706
|
} else {
|
|
2800
2707
|
currentNode = currentNode.parentNode;
|
|
@@ -2810,11 +2717,11 @@ function getOffsetParent(element) {
|
|
|
2810
2717
|
var window = getWindow(element);
|
|
2811
2718
|
var offsetParent = getTrueOffsetParent(element);
|
|
2812
2719
|
|
|
2813
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2720
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2814
2721
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2815
2722
|
}
|
|
2816
2723
|
|
|
2817
|
-
if (offsetParent &&
|
|
2724
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2818
2725
|
return window;
|
|
2819
2726
|
}
|
|
2820
2727
|
|
|
@@ -2825,12 +2732,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2825
2732
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2826
2733
|
}
|
|
2827
2734
|
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
var round = Math.round;
|
|
2831
|
-
|
|
2832
|
-
function within(min$1, value, max$1) {
|
|
2833
|
-
return max(min$1, min(value, max$1));
|
|
2735
|
+
function within(min, value, max) {
|
|
2736
|
+
return Math.max(min, Math.min(value, max));
|
|
2834
2737
|
}
|
|
2835
2738
|
|
|
2836
2739
|
function getFreshSideObject() {
|
|
@@ -2843,7 +2746,7 @@ function getFreshSideObject() {
|
|
|
2843
2746
|
}
|
|
2844
2747
|
|
|
2845
2748
|
function mergePaddingObject(paddingObject) {
|
|
2846
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2749
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2847
2750
|
}
|
|
2848
2751
|
|
|
2849
2752
|
function expandToHashMap(value, keys) {
|
|
@@ -2853,19 +2756,11 @@ function expandToHashMap(value, keys) {
|
|
|
2853
2756
|
}, {});
|
|
2854
2757
|
}
|
|
2855
2758
|
|
|
2856
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2857
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2858
|
-
placement: state.placement
|
|
2859
|
-
})) : padding;
|
|
2860
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2861
|
-
};
|
|
2862
|
-
|
|
2863
2759
|
function arrow(_ref) {
|
|
2864
2760
|
var _state$modifiersData$;
|
|
2865
2761
|
|
|
2866
2762
|
var state = _ref.state,
|
|
2867
|
-
name = _ref.name
|
|
2868
|
-
options = _ref.options;
|
|
2763
|
+
name = _ref.name;
|
|
2869
2764
|
var arrowElement = state.elements.arrow;
|
|
2870
2765
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2871
2766
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2877,7 +2772,7 @@ function arrow(_ref) {
|
|
|
2877
2772
|
return;
|
|
2878
2773
|
}
|
|
2879
2774
|
|
|
2880
|
-
var paddingObject =
|
|
2775
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2881
2776
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2882
2777
|
var minProp = axis === 'y' ? top : left;
|
|
2883
2778
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2897,11 +2792,14 @@ function arrow(_ref) {
|
|
|
2897
2792
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2898
2793
|
}
|
|
2899
2794
|
|
|
2900
|
-
function effect
|
|
2795
|
+
function effect(_ref2) {
|
|
2901
2796
|
var state = _ref2.state,
|
|
2902
|
-
options = _ref2.options
|
|
2797
|
+
options = _ref2.options,
|
|
2798
|
+
name = _ref2.name;
|
|
2903
2799
|
var _options$element = options.element,
|
|
2904
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2800
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2801
|
+
_options$padding = options.padding,
|
|
2802
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2905
2803
|
|
|
2906
2804
|
if (arrowElement == null) {
|
|
2907
2805
|
return;
|
|
@@ -2922,7 +2820,7 @@ function effect$1(_ref2) {
|
|
|
2922
2820
|
}
|
|
2923
2821
|
}
|
|
2924
2822
|
|
|
2925
|
-
if (!contains
|
|
2823
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2926
2824
|
if (process.env.NODE_ENV !== "production") {
|
|
2927
2825
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2928
2826
|
}
|
|
@@ -2931,6 +2829,9 @@ function effect$1(_ref2) {
|
|
|
2931
2829
|
}
|
|
2932
2830
|
|
|
2933
2831
|
state.elements.arrow = arrowElement;
|
|
2832
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2833
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2834
|
+
};
|
|
2934
2835
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2935
2836
|
|
|
2936
2837
|
|
|
@@ -2939,7 +2840,7 @@ var arrow$1 = {
|
|
|
2939
2840
|
enabled: true,
|
|
2940
2841
|
phase: 'main',
|
|
2941
2842
|
fn: arrow,
|
|
2942
|
-
effect: effect
|
|
2843
|
+
effect: effect,
|
|
2943
2844
|
requires: ['popperOffsets'],
|
|
2944
2845
|
requiresIfExists: ['preventOverflow']
|
|
2945
2846
|
};
|
|
@@ -2953,14 +2854,14 @@ var unsetSides = {
|
|
|
2953
2854
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2954
2855
|
// cleanly divide the values into the appropriate subpixels.
|
|
2955
2856
|
|
|
2956
|
-
function
|
|
2857
|
+
function roundOffsets(_ref) {
|
|
2957
2858
|
var x = _ref.x,
|
|
2958
2859
|
y = _ref.y;
|
|
2959
2860
|
var win = window;
|
|
2960
2861
|
var dpr = win.devicePixelRatio || 1;
|
|
2961
2862
|
return {
|
|
2962
|
-
x: round(
|
|
2963
|
-
y: round(
|
|
2863
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2864
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2964
2865
|
};
|
|
2965
2866
|
}
|
|
2966
2867
|
|
|
@@ -2973,14 +2874,11 @@ function mapToStyles(_ref2) {
|
|
|
2973
2874
|
offsets = _ref2.offsets,
|
|
2974
2875
|
position = _ref2.position,
|
|
2975
2876
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2976
|
-
adaptive = _ref2.adaptive
|
|
2977
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2877
|
+
adaptive = _ref2.adaptive;
|
|
2978
2878
|
|
|
2979
|
-
var
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
_ref3$y = _ref3.y,
|
|
2983
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2879
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2880
|
+
x = _roundOffsets.x,
|
|
2881
|
+
y = _roundOffsets.y;
|
|
2984
2882
|
|
|
2985
2883
|
var hasX = offsets.hasOwnProperty('x');
|
|
2986
2884
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2990,32 +2888,23 @@ function mapToStyles(_ref2) {
|
|
|
2990
2888
|
|
|
2991
2889
|
if (adaptive) {
|
|
2992
2890
|
var offsetParent = getOffsetParent(popper);
|
|
2993
|
-
var heightProp = 'clientHeight';
|
|
2994
|
-
var widthProp = 'clientWidth';
|
|
2995
2891
|
|
|
2996
2892
|
if (offsetParent === getWindow(popper)) {
|
|
2997
2893
|
offsetParent = getDocumentElement(popper);
|
|
2894
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2998
2895
|
|
|
2999
|
-
|
|
3000
|
-
heightProp = 'scrollHeight';
|
|
3001
|
-
widthProp = 'scrollWidth';
|
|
3002
|
-
}
|
|
3003
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3004
|
-
|
|
2896
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
3005
2897
|
|
|
3006
|
-
offsetParent = offsetParent;
|
|
3007
2898
|
|
|
3008
2899
|
if (placement === top) {
|
|
3009
|
-
sideY = bottom;
|
|
3010
|
-
|
|
3011
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2900
|
+
sideY = bottom;
|
|
2901
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3012
2902
|
y *= gpuAcceleration ? 1 : -1;
|
|
3013
2903
|
}
|
|
3014
2904
|
|
|
3015
2905
|
if (placement === left) {
|
|
3016
|
-
sideX = right;
|
|
3017
|
-
|
|
3018
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2906
|
+
sideX = right;
|
|
2907
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3019
2908
|
x *= gpuAcceleration ? 1 : -1;
|
|
3020
2909
|
}
|
|
3021
2910
|
}
|
|
@@ -3027,24 +2916,22 @@ function mapToStyles(_ref2) {
|
|
|
3027
2916
|
if (gpuAcceleration) {
|
|
3028
2917
|
var _Object$assign;
|
|
3029
2918
|
|
|
3030
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2919
|
+
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));
|
|
3031
2920
|
}
|
|
3032
2921
|
|
|
3033
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2922
|
+
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));
|
|
3034
2923
|
}
|
|
3035
2924
|
|
|
3036
|
-
function computeStyles(
|
|
3037
|
-
var state =
|
|
3038
|
-
options =
|
|
2925
|
+
function computeStyles(_ref3) {
|
|
2926
|
+
var state = _ref3.state,
|
|
2927
|
+
options = _ref3.options;
|
|
3039
2928
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3040
2929
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3041
2930
|
_options$adaptive = options.adaptive,
|
|
3042
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3043
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3044
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2931
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3045
2932
|
|
|
3046
2933
|
if (process.env.NODE_ENV !== "production") {
|
|
3047
|
-
var transitionProperty = getComputedStyle$
|
|
2934
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3048
2935
|
|
|
3049
2936
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3050
2937
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3061,24 +2948,22 @@ function computeStyles(_ref4) {
|
|
|
3061
2948
|
};
|
|
3062
2949
|
|
|
3063
2950
|
if (state.modifiersData.popperOffsets != null) {
|
|
3064
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2951
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3065
2952
|
offsets: state.modifiersData.popperOffsets,
|
|
3066
2953
|
position: state.options.strategy,
|
|
3067
|
-
adaptive: adaptive
|
|
3068
|
-
roundOffsets: roundOffsets
|
|
2954
|
+
adaptive: adaptive
|
|
3069
2955
|
})));
|
|
3070
2956
|
}
|
|
3071
2957
|
|
|
3072
2958
|
if (state.modifiersData.arrow != null) {
|
|
3073
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2959
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3074
2960
|
offsets: state.modifiersData.arrow,
|
|
3075
2961
|
position: 'absolute',
|
|
3076
|
-
adaptive: false
|
|
3077
|
-
roundOffsets: roundOffsets
|
|
2962
|
+
adaptive: false
|
|
3078
2963
|
})));
|
|
3079
2964
|
}
|
|
3080
2965
|
|
|
3081
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2966
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3082
2967
|
'data-popper-placement': state.placement
|
|
3083
2968
|
});
|
|
3084
2969
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3096,7 +2981,7 @@ var passive = {
|
|
|
3096
2981
|
passive: true
|
|
3097
2982
|
};
|
|
3098
2983
|
|
|
3099
|
-
function effect(_ref) {
|
|
2984
|
+
function effect$1(_ref) {
|
|
3100
2985
|
var state = _ref.state,
|
|
3101
2986
|
instance = _ref.instance,
|
|
3102
2987
|
options = _ref.options;
|
|
@@ -3136,11 +3021,11 @@ var eventListeners = {
|
|
|
3136
3021
|
enabled: true,
|
|
3137
3022
|
phase: 'write',
|
|
3138
3023
|
fn: function fn() {},
|
|
3139
|
-
effect: effect,
|
|
3024
|
+
effect: effect$1,
|
|
3140
3025
|
data: {}
|
|
3141
3026
|
};
|
|
3142
3027
|
|
|
3143
|
-
var hash
|
|
3028
|
+
var hash = {
|
|
3144
3029
|
left: 'right',
|
|
3145
3030
|
right: 'left',
|
|
3146
3031
|
bottom: 'top',
|
|
@@ -3148,20 +3033,34 @@ var hash$1 = {
|
|
|
3148
3033
|
};
|
|
3149
3034
|
function getOppositePlacement(placement) {
|
|
3150
3035
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3151
|
-
return hash
|
|
3036
|
+
return hash[matched];
|
|
3152
3037
|
});
|
|
3153
3038
|
}
|
|
3154
3039
|
|
|
3155
|
-
var hash = {
|
|
3040
|
+
var hash$1 = {
|
|
3156
3041
|
start: 'end',
|
|
3157
3042
|
end: 'start'
|
|
3158
3043
|
};
|
|
3159
3044
|
function getOppositeVariationPlacement(placement) {
|
|
3160
3045
|
return placement.replace(/start|end/g, function (matched) {
|
|
3161
|
-
return hash[matched];
|
|
3046
|
+
return hash$1[matched];
|
|
3162
3047
|
});
|
|
3163
3048
|
}
|
|
3164
3049
|
|
|
3050
|
+
function getBoundingClientRect(element) {
|
|
3051
|
+
var rect = element.getBoundingClientRect();
|
|
3052
|
+
return {
|
|
3053
|
+
width: rect.width,
|
|
3054
|
+
height: rect.height,
|
|
3055
|
+
top: rect.top,
|
|
3056
|
+
right: rect.right,
|
|
3057
|
+
bottom: rect.bottom,
|
|
3058
|
+
left: rect.left,
|
|
3059
|
+
x: rect.left,
|
|
3060
|
+
y: rect.top
|
|
3061
|
+
};
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3165
3064
|
function getWindowScroll(node) {
|
|
3166
3065
|
var win = getWindow(node);
|
|
3167
3066
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3224,18 +3123,16 @@ function getViewportRect(element) {
|
|
|
3224
3123
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3225
3124
|
|
|
3226
3125
|
function getDocumentRect(element) {
|
|
3227
|
-
var _element$ownerDocumen;
|
|
3228
|
-
|
|
3229
3126
|
var html = getDocumentElement(element);
|
|
3230
3127
|
var winScroll = getWindowScroll(element);
|
|
3231
|
-
var body =
|
|
3232
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3233
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3128
|
+
var body = element.ownerDocument.body;
|
|
3129
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3130
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3234
3131
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3235
3132
|
var y = -winScroll.scrollTop;
|
|
3236
3133
|
|
|
3237
|
-
if (getComputedStyle$
|
|
3238
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3134
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3135
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3239
3136
|
}
|
|
3240
3137
|
|
|
3241
3138
|
return {
|
|
@@ -3248,7 +3145,7 @@ function getDocumentRect(element) {
|
|
|
3248
3145
|
|
|
3249
3146
|
function isScrollParent(element) {
|
|
3250
3147
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3251
|
-
var _getComputedStyle = getComputedStyle$
|
|
3148
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3252
3149
|
overflow = _getComputedStyle.overflow,
|
|
3253
3150
|
overflowX = _getComputedStyle.overflowX,
|
|
3254
3151
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3258,7 +3155,7 @@ function isScrollParent(element) {
|
|
|
3258
3155
|
|
|
3259
3156
|
function getScrollParent(node) {
|
|
3260
3157
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3261
|
-
// $FlowFixMe
|
|
3158
|
+
// $FlowFixMe: assume body is always available
|
|
3262
3159
|
return node.ownerDocument.body;
|
|
3263
3160
|
}
|
|
3264
3161
|
|
|
@@ -3272,28 +3169,26 @@ function getScrollParent(node) {
|
|
|
3272
3169
|
/*
|
|
3273
3170
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3274
3171
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3275
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3172
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3276
3173
|
reference element's position.
|
|
3277
3174
|
*/
|
|
3278
3175
|
|
|
3279
3176
|
function listScrollParents(element, list) {
|
|
3280
|
-
var _element$ownerDocumen;
|
|
3281
|
-
|
|
3282
3177
|
if (list === void 0) {
|
|
3283
3178
|
list = [];
|
|
3284
3179
|
}
|
|
3285
3180
|
|
|
3286
3181
|
var scrollParent = getScrollParent(element);
|
|
3287
|
-
var isBody = scrollParent ===
|
|
3182
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3288
3183
|
var win = getWindow(scrollParent);
|
|
3289
3184
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3290
3185
|
var updatedList = list.concat(target);
|
|
3291
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3186
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3292
3187
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3293
3188
|
}
|
|
3294
3189
|
|
|
3295
3190
|
function rectToClientRect(rect) {
|
|
3296
|
-
return Object.assign({}, rect, {
|
|
3191
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3297
3192
|
left: rect.x,
|
|
3298
3193
|
top: rect.y,
|
|
3299
3194
|
right: rect.x + rect.width,
|
|
@@ -3323,16 +3218,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3323
3218
|
|
|
3324
3219
|
function getClippingParents(element) {
|
|
3325
3220
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3326
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3221
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3327
3222
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3328
3223
|
|
|
3329
3224
|
if (!isElement(clipperElement)) {
|
|
3330
3225
|
return [];
|
|
3331
|
-
} // $FlowFixMe
|
|
3226
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3332
3227
|
|
|
3333
3228
|
|
|
3334
3229
|
return clippingParents.filter(function (clippingParent) {
|
|
3335
|
-
return isElement(clippingParent) && contains
|
|
3230
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3336
3231
|
});
|
|
3337
3232
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3338
3233
|
// clipping parents
|
|
@@ -3344,10 +3239,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3344
3239
|
var firstClippingParent = clippingParents[0];
|
|
3345
3240
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3346
3241
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3347
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3348
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3349
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3350
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3242
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3243
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3244
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3245
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3351
3246
|
return accRect;
|
|
3352
3247
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3353
3248
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3414,11 +3309,11 @@ function computeOffsets(_ref) {
|
|
|
3414
3309
|
|
|
3415
3310
|
switch (variation) {
|
|
3416
3311
|
case start:
|
|
3417
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3312
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3418
3313
|
break;
|
|
3419
3314
|
|
|
3420
3315
|
case end:
|
|
3421
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3316
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3422
3317
|
break;
|
|
3423
3318
|
}
|
|
3424
3319
|
}
|
|
@@ -3457,7 +3352,7 @@ function detectOverflow(state, options) {
|
|
|
3457
3352
|
strategy: 'absolute',
|
|
3458
3353
|
placement: placement
|
|
3459
3354
|
});
|
|
3460
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3355
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3461
3356
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3462
3357
|
// 0 or negative = within the clipping rect
|
|
3463
3358
|
|
|
@@ -3481,6 +3376,9 @@ function detectOverflow(state, options) {
|
|
|
3481
3376
|
return overflowOffsets;
|
|
3482
3377
|
}
|
|
3483
3378
|
|
|
3379
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3380
|
+
|
|
3381
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3484
3382
|
function computeAutoPlacement(state, options) {
|
|
3485
3383
|
if (options === void 0) {
|
|
3486
3384
|
options = {};
|
|
@@ -3497,7 +3395,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3497
3395
|
var variation = getVariation(placement);
|
|
3498
3396
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3499
3397
|
return getVariation(placement) === variation;
|
|
3500
|
-
}) : basePlacements;
|
|
3398
|
+
}) : basePlacements; // $FlowFixMe
|
|
3399
|
+
|
|
3501
3400
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3502
3401
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3503
3402
|
});
|
|
@@ -3508,7 +3407,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3508
3407
|
if (process.env.NODE_ENV !== "production") {
|
|
3509
3408
|
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(' '));
|
|
3510
3409
|
}
|
|
3511
|
-
} // $FlowFixMe
|
|
3410
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3512
3411
|
|
|
3513
3412
|
|
|
3514
3413
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3709,7 +3608,7 @@ function hide(_ref) {
|
|
|
3709
3608
|
isReferenceHidden: isReferenceHidden,
|
|
3710
3609
|
hasPopperEscaped: hasPopperEscaped
|
|
3711
3610
|
};
|
|
3712
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3611
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3713
3612
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3714
3613
|
'data-popper-escaped': hasPopperEscaped
|
|
3715
3614
|
});
|
|
@@ -3728,7 +3627,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3728
3627
|
var basePlacement = getBasePlacement(placement);
|
|
3729
3628
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3730
3629
|
|
|
3731
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3630
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3732
3631
|
placement: placement
|
|
3733
3632
|
})) : offset,
|
|
3734
3633
|
skidding = _ref[0],
|
|
@@ -3834,7 +3733,7 @@ function preventOverflow(_ref) {
|
|
|
3834
3733
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3835
3734
|
var referenceRect = state.rects.reference;
|
|
3836
3735
|
var popperRect = state.rects.popper;
|
|
3837
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3736
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3838
3737
|
placement: state.placement
|
|
3839
3738
|
})) : tetherOffset;
|
|
3840
3739
|
var data = {
|
|
@@ -3846,13 +3745,13 @@ function preventOverflow(_ref) {
|
|
|
3846
3745
|
return;
|
|
3847
3746
|
}
|
|
3848
3747
|
|
|
3849
|
-
if (checkMainAxis
|
|
3748
|
+
if (checkMainAxis) {
|
|
3850
3749
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3851
3750
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3852
3751
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3853
3752
|
var offset = popperOffsets[mainAxis];
|
|
3854
|
-
var min
|
|
3855
|
-
var max
|
|
3753
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3754
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3856
3755
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3857
3756
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3858
3757
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3879,29 +3778,26 @@ function preventOverflow(_ref) {
|
|
|
3879
3778
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3880
3779
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3881
3780
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3781
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3782
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3783
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3784
|
+
}
|
|
3882
3785
|
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3886
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3887
|
-
}
|
|
3888
|
-
|
|
3889
|
-
if (checkAltAxis) {
|
|
3890
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3786
|
+
if (checkAltAxis) {
|
|
3787
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3891
3788
|
|
|
3892
|
-
|
|
3789
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3893
3790
|
|
|
3894
|
-
|
|
3791
|
+
var _offset = popperOffsets[altAxis];
|
|
3895
3792
|
|
|
3896
|
-
|
|
3793
|
+
var _min = _offset + overflow[_mainSide];
|
|
3897
3794
|
|
|
3898
|
-
|
|
3795
|
+
var _max = _offset - overflow[_altSide];
|
|
3899
3796
|
|
|
3900
|
-
|
|
3797
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3901
3798
|
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
}
|
|
3799
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3800
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3905
3801
|
}
|
|
3906
3802
|
|
|
3907
3803
|
state.modifiersData[name] = data;
|
|
@@ -3931,24 +3827,16 @@ function getNodeScroll(node) {
|
|
|
3931
3827
|
}
|
|
3932
3828
|
}
|
|
3933
3829
|
|
|
3934
|
-
function isElementScaled(element) {
|
|
3935
|
-
var rect = element.getBoundingClientRect();
|
|
3936
|
-
var scaleX = rect.width / element.offsetWidth || 1;
|
|
3937
|
-
var scaleY = rect.height / element.offsetHeight || 1;
|
|
3938
|
-
return scaleX !== 1 || scaleY !== 1;
|
|
3939
|
-
} // Returns the composite rect of an element relative to its offsetParent.
|
|
3940
3830
|
// Composite means it takes into account transforms as well as layout.
|
|
3941
3831
|
|
|
3942
|
-
|
|
3943
3832
|
function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
3944
3833
|
if (isFixed === void 0) {
|
|
3945
3834
|
isFixed = false;
|
|
3946
3835
|
}
|
|
3947
3836
|
|
|
3948
|
-
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3949
|
-
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3950
3837
|
var documentElement = getDocumentElement(offsetParent);
|
|
3951
|
-
var rect = getBoundingClientRect(elementOrVirtualElement
|
|
3838
|
+
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
3839
|
+
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3952
3840
|
var scroll = {
|
|
3953
3841
|
scrollLeft: 0,
|
|
3954
3842
|
scrollTop: 0
|
|
@@ -3965,7 +3853,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3965
3853
|
}
|
|
3966
3854
|
|
|
3967
3855
|
if (isHTMLElement(offsetParent)) {
|
|
3968
|
-
offsets = getBoundingClientRect(offsetParent
|
|
3856
|
+
offsets = getBoundingClientRect(offsetParent);
|
|
3969
3857
|
offsets.x += offsetParent.clientLeft;
|
|
3970
3858
|
offsets.y += offsetParent.clientTop;
|
|
3971
3859
|
} else if (documentElement) {
|
|
@@ -4140,9 +4028,9 @@ function uniqueBy(arr, fn) {
|
|
|
4140
4028
|
function mergeByName(modifiers) {
|
|
4141
4029
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4142
4030
|
var existing = merged[current.name];
|
|
4143
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4144
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4145
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4031
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4032
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4033
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4146
4034
|
}) : current;
|
|
4147
4035
|
return merged;
|
|
4148
4036
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4188,7 +4076,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4188
4076
|
var state = {
|
|
4189
4077
|
placement: 'bottom',
|
|
4190
4078
|
orderedModifiers: [],
|
|
4191
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4079
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4192
4080
|
modifiersData: {},
|
|
4193
4081
|
elements: {
|
|
4194
4082
|
reference: reference,
|
|
@@ -4203,7 +4091,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4203
4091
|
state: state,
|
|
4204
4092
|
setOptions: function setOptions(options) {
|
|
4205
4093
|
cleanupModifierEffects();
|
|
4206
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4094
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4207
4095
|
state.scrollParents = {
|
|
4208
4096
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4209
4097
|
popper: listScrollParents(popper)
|
|
@@ -4235,7 +4123,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4235
4123
|
}
|
|
4236
4124
|
}
|
|
4237
4125
|
|
|
4238
|
-
var _getComputedStyle = getComputedStyle$
|
|
4126
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4239
4127
|
marginTop = _getComputedStyle.marginTop,
|
|
4240
4128
|
marginRight = _getComputedStyle.marginRight,
|
|
4241
4129
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4445,11 +4333,6 @@ var ariaDescribedByModifier = {
|
|
|
4445
4333
|
|
|
4446
4334
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4447
4335
|
var ids = reference.getAttribute('aria-describedby');
|
|
4448
|
-
|
|
4449
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4450
|
-
return;
|
|
4451
|
-
}
|
|
4452
|
-
|
|
4453
4336
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4454
4337
|
}
|
|
4455
4338
|
}
|
|
@@ -4573,16 +4456,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4573
4456
|
}
|
|
4574
4457
|
|
|
4575
4458
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
*
|
|
4580
|
-
* @param context the context element
|
|
4581
|
-
* @param node the element to check
|
|
4582
|
-
*/
|
|
4583
|
-
function contains(context, node) {
|
|
4584
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4585
|
-
// so we need to check on context instead of a document root element.
|
|
4459
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4460
|
+
// so we need to check on context instead of a document root element.
|
|
4461
|
+
function contains$1(context, node) {
|
|
4586
4462
|
if (context.contains) return context.contains(node);
|
|
4587
4463
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4588
4464
|
}
|
|
@@ -4656,13 +4532,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4656
4532
|
return componentOrElement != null ? componentOrElement : null;
|
|
4657
4533
|
}
|
|
4658
4534
|
|
|
4659
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4660
|
-
return ownerDocument
|
|
4535
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4536
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4661
4537
|
});
|
|
4662
4538
|
|
|
4663
4539
|
var escapeKeyCode = 27;
|
|
4664
4540
|
|
|
4665
|
-
var noop$
|
|
4541
|
+
var noop$1 = function noop() {};
|
|
4666
4542
|
|
|
4667
4543
|
function isLeftClickEvent(event) {
|
|
4668
4544
|
return event.button === 0;
|
|
@@ -4695,11 +4571,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4695
4571
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4696
4572
|
|
|
4697
4573
|
var preventMouseRootCloseRef = useRef(false);
|
|
4698
|
-
var onClose = onRootClose || noop$
|
|
4574
|
+
var onClose = onRootClose || noop$1;
|
|
4699
4575
|
var handleMouseCapture = useCallback(function (e) {
|
|
4700
4576
|
var currentTarget = getRefTarget(ref);
|
|
4701
4577
|
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');
|
|
4702
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4578
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4703
4579
|
}, [ref]);
|
|
4704
4580
|
var handleMouse = useEventCallback(function (e) {
|
|
4705
4581
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4712,38 +4588,19 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4712
4588
|
}
|
|
4713
4589
|
});
|
|
4714
4590
|
useEffect(function () {
|
|
4715
|
-
if (disabled || ref == null) return undefined;
|
|
4716
|
-
//
|
|
4717
|
-
|
|
4718
|
-
var currentEvent = window.event;
|
|
4719
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4591
|
+
if (disabled || ref == null) return undefined;
|
|
4592
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4720
4593
|
// avoid false positives in the contains() check below if the target DOM
|
|
4721
4594
|
// element is removed in the React mouse callback.
|
|
4722
4595
|
|
|
4723
4596
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4724
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4725
|
-
|
|
4726
|
-
if (e === currentEvent) {
|
|
4727
|
-
currentEvent = undefined;
|
|
4728
|
-
return;
|
|
4729
|
-
}
|
|
4730
|
-
|
|
4731
|
-
handleMouse(e);
|
|
4732
|
-
});
|
|
4733
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4734
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4735
|
-
if (e === currentEvent) {
|
|
4736
|
-
currentEvent = undefined;
|
|
4737
|
-
return;
|
|
4738
|
-
}
|
|
4739
|
-
|
|
4740
|
-
handleKeyUp(e);
|
|
4741
|
-
});
|
|
4597
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4598
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4742
4599
|
var mobileSafariHackListeners = [];
|
|
4743
4600
|
|
|
4744
4601
|
if ('ontouchstart' in doc.documentElement) {
|
|
4745
4602
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4746
|
-
return listen(el, 'mousemove', noop$
|
|
4603
|
+
return listen(el, 'mousemove', noop$1);
|
|
4747
4604
|
});
|
|
4748
4605
|
}
|
|
4749
4606
|
|
|
@@ -4825,7 +4682,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4825
4682
|
});
|
|
4826
4683
|
}
|
|
4827
4684
|
|
|
4828
|
-
var noop$
|
|
4685
|
+
var noop$2 = function noop() {};
|
|
4829
4686
|
/**
|
|
4830
4687
|
* @memberOf Dropdown
|
|
4831
4688
|
* @param {object} options
|
|
@@ -4893,7 +4750,7 @@ function useDropdownMenu(options) {
|
|
|
4893
4750
|
|
|
4894
4751
|
var menu;
|
|
4895
4752
|
var menuProps = {
|
|
4896
|
-
ref: setMenu || noop$
|
|
4753
|
+
ref: setMenu || noop$2,
|
|
4897
4754
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4898
4755
|
};
|
|
4899
4756
|
var childArgs = {
|
|
@@ -4926,7 +4783,7 @@ function useDropdownMenu(options) {
|
|
|
4926
4783
|
});
|
|
4927
4784
|
return menu;
|
|
4928
4785
|
}
|
|
4929
|
-
var propTypes$
|
|
4786
|
+
var propTypes$2 = {
|
|
4930
4787
|
/**
|
|
4931
4788
|
* A render prop that returns a Menu element. The `props`
|
|
4932
4789
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4983,7 +4840,7 @@ var propTypes$8 = {
|
|
|
4983
4840
|
*/
|
|
4984
4841
|
rootCloseEvent: PropTypes.string
|
|
4985
4842
|
};
|
|
4986
|
-
var defaultProps$
|
|
4843
|
+
var defaultProps$d = {
|
|
4987
4844
|
usePopper: true
|
|
4988
4845
|
};
|
|
4989
4846
|
|
|
@@ -4993,19 +4850,19 @@ var defaultProps$r = {
|
|
|
4993
4850
|
* @displayName DropdownMenu
|
|
4994
4851
|
* @memberOf Dropdown
|
|
4995
4852
|
*/
|
|
4996
|
-
function DropdownMenu
|
|
4853
|
+
function DropdownMenu(_ref2) {
|
|
4997
4854
|
var children = _ref2.children,
|
|
4998
4855
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4999
4856
|
|
|
5000
4857
|
var args = useDropdownMenu(options);
|
|
5001
|
-
return /*#__PURE__*/
|
|
4858
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
5002
4859
|
}
|
|
5003
4860
|
|
|
5004
|
-
DropdownMenu
|
|
5005
|
-
DropdownMenu
|
|
5006
|
-
DropdownMenu
|
|
4861
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4862
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4863
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
5007
4864
|
|
|
5008
|
-
var noop$
|
|
4865
|
+
var noop$3 = function noop() {};
|
|
5009
4866
|
/**
|
|
5010
4867
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
5011
4868
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5019,11 +4876,11 @@ function useDropdownToggle() {
|
|
|
5019
4876
|
_ref$show = _ref.show,
|
|
5020
4877
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5021
4878
|
_ref$toggle = _ref.toggle,
|
|
5022
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4879
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5023
4880
|
setToggle = _ref.setToggle;
|
|
5024
4881
|
|
|
5025
4882
|
return [{
|
|
5026
|
-
ref: setToggle || noop$
|
|
4883
|
+
ref: setToggle || noop$3,
|
|
5027
4884
|
'aria-haspopup': true,
|
|
5028
4885
|
'aria-expanded': !!show
|
|
5029
4886
|
}, {
|
|
@@ -5031,7 +4888,7 @@ function useDropdownToggle() {
|
|
|
5031
4888
|
toggle: toggle
|
|
5032
4889
|
}];
|
|
5033
4890
|
}
|
|
5034
|
-
var propTypes$
|
|
4891
|
+
var propTypes$3 = {
|
|
5035
4892
|
/**
|
|
5036
4893
|
* A render prop that returns a Toggle element. The `props`
|
|
5037
4894
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5056,7 +4913,7 @@ var propTypes$7 = {
|
|
|
5056
4913
|
* @displayName DropdownToggle
|
|
5057
4914
|
* @memberOf Dropdown
|
|
5058
4915
|
*/
|
|
5059
|
-
function DropdownToggle
|
|
4916
|
+
function DropdownToggle(_ref2) {
|
|
5060
4917
|
var children = _ref2.children;
|
|
5061
4918
|
|
|
5062
4919
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5065,17 +4922,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5065
4922
|
show = _useDropdownToggle$.show,
|
|
5066
4923
|
toggle = _useDropdownToggle$.toggle;
|
|
5067
4924
|
|
|
5068
|
-
return /*#__PURE__*/
|
|
4925
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5069
4926
|
show: show,
|
|
5070
4927
|
toggle: toggle,
|
|
5071
4928
|
props: props
|
|
5072
4929
|
}));
|
|
5073
4930
|
}
|
|
5074
4931
|
|
|
5075
|
-
DropdownToggle
|
|
5076
|
-
DropdownToggle
|
|
4932
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4933
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5077
4934
|
|
|
5078
|
-
var propTypes$
|
|
4935
|
+
var propTypes$4 = {
|
|
5079
4936
|
/**
|
|
5080
4937
|
* A render prop that returns the root dropdown element. The `props`
|
|
5081
4938
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5147,7 +5004,7 @@ var propTypes$6 = {
|
|
|
5147
5004
|
/**
|
|
5148
5005
|
* @displayName Dropdown
|
|
5149
5006
|
*/
|
|
5150
|
-
function Dropdown
|
|
5007
|
+
function Dropdown(_ref) {
|
|
5151
5008
|
var drop = _ref.drop,
|
|
5152
5009
|
alignEnd = _ref.alignEnd,
|
|
5153
5010
|
defaultShow = _ref.defaultShow,
|
|
@@ -5280,7 +5137,7 @@ function Dropdown$1(_ref) {
|
|
|
5280
5137
|
}
|
|
5281
5138
|
};
|
|
5282
5139
|
|
|
5283
|
-
return /*#__PURE__*/
|
|
5140
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5284
5141
|
value: context
|
|
5285
5142
|
}, children({
|
|
5286
5143
|
props: {
|
|
@@ -5289,19 +5146,19 @@ function Dropdown$1(_ref) {
|
|
|
5289
5146
|
}));
|
|
5290
5147
|
}
|
|
5291
5148
|
|
|
5292
|
-
Dropdown
|
|
5293
|
-
Dropdown
|
|
5294
|
-
Dropdown
|
|
5295
|
-
Dropdown
|
|
5149
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5150
|
+
Dropdown.propTypes = propTypes$4;
|
|
5151
|
+
Dropdown.Menu = DropdownMenu;
|
|
5152
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5296
5153
|
|
|
5297
|
-
var NavContext =
|
|
5154
|
+
var NavContext = React.createContext(null);
|
|
5298
5155
|
NavContext.displayName = 'NavContext';
|
|
5299
5156
|
|
|
5300
|
-
var defaultProps$
|
|
5157
|
+
var defaultProps$e = {
|
|
5301
5158
|
as: SafeAnchor,
|
|
5302
5159
|
disabled: false
|
|
5303
5160
|
};
|
|
5304
|
-
var DropdownItem =
|
|
5161
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5305
5162
|
var bsPrefix = _ref.bsPrefix,
|
|
5306
5163
|
className = _ref.className,
|
|
5307
5164
|
children = _ref.children,
|
|
@@ -5319,10 +5176,9 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5319
5176
|
var navContext = useContext(NavContext);
|
|
5320
5177
|
|
|
5321
5178
|
var _ref2 = navContext || {},
|
|
5322
|
-
activeKey = _ref2.activeKey;
|
|
5323
|
-
|
|
5179
|
+
activeKey = _ref2.activeKey;
|
|
5324
5180
|
|
|
5325
|
-
var key = makeEventKey(eventKey, href);
|
|
5181
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5326
5182
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5327
5183
|
var handleClick = useEventCallback(function (event) {
|
|
5328
5184
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5336,7 +5192,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5336
5192
|
/*#__PURE__*/
|
|
5337
5193
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5338
5194
|
// @ts-ignore
|
|
5339
|
-
|
|
5195
|
+
React.createElement(Component, _extends({}, props, {
|
|
5340
5196
|
ref: ref,
|
|
5341
5197
|
href: href,
|
|
5342
5198
|
disabled: disabled,
|
|
@@ -5346,7 +5202,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5346
5202
|
);
|
|
5347
5203
|
});
|
|
5348
5204
|
DropdownItem.displayName = 'DropdownItem';
|
|
5349
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5205
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5350
5206
|
|
|
5351
5207
|
var toFnRef = function toFnRef(ref) {
|
|
5352
5208
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5385,8 +5241,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5385
5241
|
}, [refA, refB]);
|
|
5386
5242
|
}
|
|
5387
5243
|
|
|
5388
|
-
var context =
|
|
5389
|
-
context.displayName = 'NavbarContext';
|
|
5244
|
+
var context$2 = React.createContext(null);
|
|
5245
|
+
context$2.displayName = 'NavbarContext';
|
|
5390
5246
|
|
|
5391
5247
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5392
5248
|
// @ts-ignore
|
|
@@ -5399,12 +5255,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5399
5255
|
return useMergedRefs(warningRef, ref);
|
|
5400
5256
|
}
|
|
5401
5257
|
|
|
5402
|
-
/**
|
|
5403
|
-
* Checks if a given element has a CSS class.
|
|
5404
|
-
*
|
|
5405
|
-
* @param element the element
|
|
5406
|
-
* @param className the CSS class name
|
|
5407
|
-
*/
|
|
5408
5258
|
function hasClass(element, className) {
|
|
5409
5259
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5410
5260
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5427,14 +5277,12 @@ function getMargins(element) {
|
|
|
5427
5277
|
function usePopperMarginModifiers() {
|
|
5428
5278
|
var overlayRef = useRef(null);
|
|
5429
5279
|
var margins = useRef(null);
|
|
5430
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5431
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5432
5280
|
var callback = useCallback(function (overlay) {
|
|
5433
|
-
if (!overlay || !(hasClass(overlay,
|
|
5281
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5434
5282
|
margins.current = getMargins(overlay);
|
|
5435
5283
|
overlay.style.margin = '0';
|
|
5436
5284
|
overlayRef.current = overlay;
|
|
5437
|
-
}, [
|
|
5285
|
+
}, []);
|
|
5438
5286
|
var offset = useMemo(function () {
|
|
5439
5287
|
return {
|
|
5440
5288
|
name: 'offset',
|
|
@@ -5478,7 +5326,7 @@ function usePopperMarginModifiers() {
|
|
|
5478
5326
|
effect: function effect(_ref2) {
|
|
5479
5327
|
var state = _ref2.state;
|
|
5480
5328
|
|
|
5481
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5329
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5482
5330
|
return undefined;
|
|
5483
5331
|
}
|
|
5484
5332
|
|
|
@@ -5499,30 +5347,18 @@ function usePopperMarginModifiers() {
|
|
|
5499
5347
|
};
|
|
5500
5348
|
}
|
|
5501
5349
|
};
|
|
5502
|
-
}, [
|
|
5350
|
+
}, []);
|
|
5503
5351
|
return [callback, [offset, popoverArrowMargins]];
|
|
5504
5352
|
}
|
|
5505
5353
|
|
|
5506
|
-
var
|
|
5507
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5508
|
-
sm: alignDirection
|
|
5509
|
-
}), PropTypes.shape({
|
|
5510
|
-
md: alignDirection
|
|
5511
|
-
}), PropTypes.shape({
|
|
5512
|
-
lg: alignDirection
|
|
5513
|
-
}), PropTypes.shape({
|
|
5514
|
-
xl: alignDirection
|
|
5515
|
-
})]);
|
|
5516
|
-
var defaultProps$p = {
|
|
5517
|
-
align: 'left',
|
|
5354
|
+
var defaultProps$f = {
|
|
5518
5355
|
alignRight: false,
|
|
5519
5356
|
flip: true
|
|
5520
5357
|
}; // TODO: remove this hack
|
|
5521
5358
|
|
|
5522
|
-
var DropdownMenu =
|
|
5359
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5523
5360
|
var bsPrefix = _ref.bsPrefix,
|
|
5524
5361
|
className = _ref.className,
|
|
5525
|
-
align = _ref.align,
|
|
5526
5362
|
alignRight = _ref.alignRight,
|
|
5527
5363
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5528
5364
|
flip = _ref.flip,
|
|
@@ -5531,42 +5367,21 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5531
5367
|
_ref$as = _ref.as,
|
|
5532
5368
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5533
5369
|
popperConfig = _ref.popperConfig,
|
|
5534
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
5370
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5535
5371
|
|
|
5536
|
-
var isNavbar = useContext(context);
|
|
5372
|
+
var isNavbar = useContext(context$2);
|
|
5537
5373
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5538
5374
|
|
|
5539
5375
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5540
5376
|
popperRef = _usePopperMarginModif[0],
|
|
5541
5377
|
marginModifiers = _usePopperMarginModif[1];
|
|
5542
5378
|
|
|
5543
|
-
var alignClasses = [];
|
|
5544
|
-
|
|
5545
|
-
if (align) {
|
|
5546
|
-
if (typeof align === 'object') {
|
|
5547
|
-
var keys = Object.keys(align);
|
|
5548
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5549
|
-
|
|
5550
|
-
if (keys.length) {
|
|
5551
|
-
var brkPoint = keys[0];
|
|
5552
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5553
|
-
// left in addition to align left classes.
|
|
5554
|
-
// Reuse alignRight to toggle the class below.
|
|
5555
|
-
|
|
5556
|
-
alignRight = direction === 'left';
|
|
5557
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5558
|
-
}
|
|
5559
|
-
} else if (align === 'right') {
|
|
5560
|
-
alignRight = true;
|
|
5561
|
-
}
|
|
5562
|
-
}
|
|
5563
|
-
|
|
5564
5379
|
var _ref2 = useDropdownMenu({
|
|
5565
5380
|
flip: flip,
|
|
5566
5381
|
rootCloseEvent: rootCloseEvent,
|
|
5567
5382
|
show: showProps,
|
|
5568
5383
|
alignEnd: alignRight,
|
|
5569
|
-
usePopper: !isNavbar
|
|
5384
|
+
usePopper: !isNavbar,
|
|
5570
5385
|
popperConfig: _extends({}, popperConfig, {
|
|
5571
5386
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5572
5387
|
})
|
|
@@ -5594,12 +5409,12 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5594
5409
|
props['x-placement'] = placement;
|
|
5595
5410
|
}
|
|
5596
5411
|
|
|
5597
|
-
return /*#__PURE__*/
|
|
5598
|
-
className: classnames
|
|
5412
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5413
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5599
5414
|
}));
|
|
5600
5415
|
});
|
|
5601
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5602
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5416
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5417
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5603
5418
|
|
|
5604
5419
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5605
5420
|
|
|
@@ -5628,14 +5443,15 @@ module.exports = exports['default'];
|
|
|
5628
5443
|
|
|
5629
5444
|
unwrapExports(isRequiredForA11y_1);
|
|
5630
5445
|
|
|
5631
|
-
var DropdownToggle =
|
|
5446
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5632
5447
|
var bsPrefix = _ref.bsPrefix,
|
|
5633
5448
|
split = _ref.split,
|
|
5634
5449
|
className = _ref.className,
|
|
5450
|
+
children = _ref.children,
|
|
5635
5451
|
childBsPrefix = _ref.childBsPrefix,
|
|
5636
5452
|
_ref$as = _ref.as,
|
|
5637
5453
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5638
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5454
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5639
5455
|
|
|
5640
5456
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5641
5457
|
|
|
@@ -5650,12 +5466,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5650
5466
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5651
5467
|
// underlying component, to allow it to render size and style variants.
|
|
5652
5468
|
|
|
5653
|
-
return /*#__PURE__*/
|
|
5469
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5654
5470
|
onClick: toggle,
|
|
5655
5471
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5656
|
-
}, toggleProps, props));
|
|
5472
|
+
}, toggleProps, props), children);
|
|
5657
5473
|
});
|
|
5658
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5474
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5659
5475
|
|
|
5660
5476
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5661
5477
|
defaultProps: {
|
|
@@ -5670,10 +5486,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5670
5486
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5671
5487
|
Component: 'span'
|
|
5672
5488
|
});
|
|
5673
|
-
var defaultProps$
|
|
5489
|
+
var defaultProps$g = {
|
|
5674
5490
|
navbar: false
|
|
5675
5491
|
};
|
|
5676
|
-
var Dropdown =
|
|
5492
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5677
5493
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5678
5494
|
show: 'onToggle'
|
|
5679
5495
|
}),
|
|
@@ -5686,9 +5502,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5686
5502
|
onToggle = _useUncontrolled.onToggle,
|
|
5687
5503
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5688
5504
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5689
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5690
|
-
_useUncontrolled.navbar
|
|
5691
|
-
|
|
5505
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5506
|
+
_4 = _useUncontrolled.navbar,
|
|
5507
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5692
5508
|
|
|
5693
5509
|
var onSelectCtx = useContext(SelectableContext);
|
|
5694
5510
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5710,9 +5526,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5710
5526
|
if (onSelect) onSelect(key, event);
|
|
5711
5527
|
handleToggle(false, event, 'select');
|
|
5712
5528
|
});
|
|
5713
|
-
return /*#__PURE__*/
|
|
5529
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5714
5530
|
value: handleSelect
|
|
5715
|
-
}, /*#__PURE__*/
|
|
5531
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5716
5532
|
drop: drop,
|
|
5717
5533
|
show: show,
|
|
5718
5534
|
alignEnd: alignRight,
|
|
@@ -5721,20 +5537,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5721
5537
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5722
5538
|
}, function (_ref) {
|
|
5723
5539
|
var dropdownProps = _ref.props;
|
|
5724
|
-
return /*#__PURE__*/
|
|
5540
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5725
5541
|
ref: ref,
|
|
5726
5542
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5727
5543
|
}));
|
|
5728
5544
|
}));
|
|
5729
5545
|
});
|
|
5730
|
-
Dropdown.displayName = 'Dropdown';
|
|
5731
|
-
Dropdown.defaultProps = defaultProps$
|
|
5732
|
-
Dropdown.Divider = DropdownDivider;
|
|
5733
|
-
Dropdown.Header = DropdownHeader;
|
|
5734
|
-
Dropdown.Item = DropdownItem;
|
|
5735
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5736
|
-
Dropdown.Menu = DropdownMenu;
|
|
5737
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5546
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5547
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5548
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5549
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5550
|
+
Dropdown$1.Item = DropdownItem;
|
|
5551
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5552
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5553
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5738
5554
|
|
|
5739
5555
|
var propTypes$5 = {
|
|
5740
5556
|
/**
|
|
@@ -5756,15 +5572,6 @@ var propTypes$5 = {
|
|
|
5756
5572
|
/** Disables both Buttons */
|
|
5757
5573
|
disabled: PropTypes.bool,
|
|
5758
5574
|
|
|
5759
|
-
/**
|
|
5760
|
-
* Aligns the dropdown menu responsively.
|
|
5761
|
-
*
|
|
5762
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5763
|
-
*
|
|
5764
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5765
|
-
*/
|
|
5766
|
-
menuAlign: alignPropType,
|
|
5767
|
-
|
|
5768
5575
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5769
5576
|
menuRole: PropTypes.string,
|
|
5770
5577
|
|
|
@@ -5774,7 +5581,7 @@ var propTypes$5 = {
|
|
|
5774
5581
|
/**
|
|
5775
5582
|
* Which event when fired outside the component will cause it to be closed.
|
|
5776
5583
|
*
|
|
5777
|
-
* _see [DropdownMenu](#
|
|
5584
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5778
5585
|
*/
|
|
5779
5586
|
rootCloseEvent: PropTypes.string,
|
|
5780
5587
|
|
|
@@ -5796,32 +5603,30 @@ var propTypes$5 = {
|
|
|
5796
5603
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5797
5604
|
*/
|
|
5798
5605
|
|
|
5799
|
-
var DropdownButton =
|
|
5606
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5800
5607
|
var title = _ref.title,
|
|
5801
5608
|
children = _ref.children,
|
|
5802
5609
|
bsPrefix = _ref.bsPrefix,
|
|
5803
5610
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5804
5611
|
variant = _ref.variant,
|
|
5805
5612
|
size = _ref.size,
|
|
5806
|
-
menuAlign = _ref.menuAlign,
|
|
5807
5613
|
menuRole = _ref.menuRole,
|
|
5808
5614
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5809
5615
|
disabled = _ref.disabled,
|
|
5810
5616
|
href = _ref.href,
|
|
5811
5617
|
id = _ref.id,
|
|
5812
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "
|
|
5618
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5813
5619
|
|
|
5814
|
-
return /*#__PURE__*/
|
|
5620
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5815
5621
|
ref: ref
|
|
5816
|
-
}, props), /*#__PURE__*/
|
|
5622
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5817
5623
|
id: id,
|
|
5818
5624
|
href: href,
|
|
5819
5625
|
size: size,
|
|
5820
5626
|
variant: variant,
|
|
5821
5627
|
disabled: disabled,
|
|
5822
5628
|
childBsPrefix: bsPrefix
|
|
5823
|
-
}, title), /*#__PURE__*/
|
|
5824
|
-
align: menuAlign,
|
|
5629
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5825
5630
|
role: menuRole,
|
|
5826
5631
|
renderOnMount: renderMenuOnMount,
|
|
5827
5632
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5923,7 +5728,7 @@ module.exports = exports['default'];
|
|
|
5923
5728
|
|
|
5924
5729
|
unwrapExports(all_1);
|
|
5925
5730
|
|
|
5926
|
-
var propTypes$
|
|
5731
|
+
var propTypes$6 = {
|
|
5927
5732
|
/**
|
|
5928
5733
|
* Specify whether the feedback is for valid or invalid fields
|
|
5929
5734
|
*
|
|
@@ -5935,7 +5740,7 @@ var propTypes$4 = {
|
|
|
5935
5740
|
tooltip: PropTypes.bool,
|
|
5936
5741
|
as: PropTypes.elementType
|
|
5937
5742
|
};
|
|
5938
|
-
var Feedback =
|
|
5743
|
+
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
|
|
5939
5744
|
function (_ref, ref) {
|
|
5940
5745
|
var _ref$as = _ref.as,
|
|
5941
5746
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5946,19 +5751,19 @@ function (_ref, ref) {
|
|
|
5946
5751
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5947
5752
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5948
5753
|
|
|
5949
|
-
return /*#__PURE__*/
|
|
5754
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5950
5755
|
ref: ref,
|
|
5951
5756
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5952
5757
|
}));
|
|
5953
5758
|
});
|
|
5954
5759
|
Feedback.displayName = 'Feedback';
|
|
5955
|
-
Feedback.propTypes = propTypes$
|
|
5760
|
+
Feedback.propTypes = propTypes$6;
|
|
5956
5761
|
|
|
5957
|
-
var FormContext =
|
|
5762
|
+
var FormContext = React.createContext({
|
|
5958
5763
|
controlId: undefined
|
|
5959
5764
|
});
|
|
5960
5765
|
|
|
5961
|
-
var FormCheckInput =
|
|
5766
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5962
5767
|
var id = _ref.id,
|
|
5963
5768
|
bsPrefix = _ref.bsPrefix,
|
|
5964
5769
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5983,7 +5788,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5983
5788
|
defaultPrefix = _ref2[1];
|
|
5984
5789
|
|
|
5985
5790
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5986
|
-
return /*#__PURE__*/
|
|
5791
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5987
5792
|
ref: ref,
|
|
5988
5793
|
type: type,
|
|
5989
5794
|
id: id || controlId,
|
|
@@ -5992,7 +5797,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5992
5797
|
});
|
|
5993
5798
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5994
5799
|
|
|
5995
|
-
var FormCheckLabel =
|
|
5800
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5996
5801
|
var bsPrefix = _ref.bsPrefix,
|
|
5997
5802
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5998
5803
|
className = _ref.className,
|
|
@@ -6008,7 +5813,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6008
5813
|
defaultPrefix = _ref2[1];
|
|
6009
5814
|
|
|
6010
5815
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6011
|
-
return /*#__PURE__*/
|
|
5816
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6012
5817
|
ref: ref,
|
|
6013
5818
|
htmlFor: htmlFor || controlId,
|
|
6014
5819
|
className: classnames(className, bsPrefix)
|
|
@@ -6016,7 +5821,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6016
5821
|
});
|
|
6017
5822
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
6018
5823
|
|
|
6019
|
-
var FormCheck =
|
|
5824
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
6020
5825
|
var id = _ref.id,
|
|
6021
5826
|
bsPrefix = _ref.bsPrefix,
|
|
6022
5827
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6061,8 +5866,8 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6061
5866
|
custom: custom
|
|
6062
5867
|
};
|
|
6063
5868
|
}, [controlId, custom, id]);
|
|
6064
|
-
var hasLabel =
|
|
6065
|
-
var input = /*#__PURE__*/
|
|
5869
|
+
var hasLabel = label != null && label !== false && !children;
|
|
5870
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6066
5871
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6067
5872
|
ref: ref,
|
|
6068
5873
|
isValid: isValid,
|
|
@@ -6071,14 +5876,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6071
5876
|
disabled: disabled,
|
|
6072
5877
|
as: as
|
|
6073
5878
|
}));
|
|
6074
|
-
return /*#__PURE__*/
|
|
5879
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6075
5880
|
value: innerFormContext
|
|
6076
|
-
}, /*#__PURE__*/
|
|
5881
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6077
5882
|
style: style,
|
|
6078
5883
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6079
|
-
}, children || /*#__PURE__*/
|
|
5884
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6080
5885
|
title: title
|
|
6081
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5886
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6082
5887
|
type: isValid ? 'valid' : 'invalid',
|
|
6083
5888
|
tooltip: feedbackTooltip
|
|
6084
5889
|
}, feedback))));
|
|
@@ -6087,7 +5892,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6087
5892
|
FormCheck.Input = FormCheckInput;
|
|
6088
5893
|
FormCheck.Label = FormCheckLabel;
|
|
6089
5894
|
|
|
6090
|
-
var FormFileInput =
|
|
5895
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6091
5896
|
var id = _ref.id,
|
|
6092
5897
|
bsPrefix = _ref.bsPrefix,
|
|
6093
5898
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6110,7 +5915,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6110
5915
|
defaultPrefix = _ref2[1];
|
|
6111
5916
|
|
|
6112
5917
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6113
|
-
return /*#__PURE__*/
|
|
5918
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6114
5919
|
ref: ref,
|
|
6115
5920
|
id: id || controlId,
|
|
6116
5921
|
type: type,
|
|
@@ -6120,7 +5925,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6120
5925
|
});
|
|
6121
5926
|
FormFileInput.displayName = 'FormFileInput';
|
|
6122
5927
|
|
|
6123
|
-
var FormFileLabel =
|
|
5928
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6124
5929
|
var bsPrefix = _ref.bsPrefix,
|
|
6125
5930
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6126
5931
|
className = _ref.className,
|
|
@@ -6136,7 +5941,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6136
5941
|
defaultPrefix = _ref2[1];
|
|
6137
5942
|
|
|
6138
5943
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6139
|
-
return /*#__PURE__*/
|
|
5944
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6140
5945
|
ref: ref,
|
|
6141
5946
|
htmlFor: htmlFor || controlId,
|
|
6142
5947
|
className: classnames(className, bsPrefix),
|
|
@@ -6145,7 +5950,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6145
5950
|
});
|
|
6146
5951
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6147
5952
|
|
|
6148
|
-
var FormFile =
|
|
5953
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6149
5954
|
var id = _ref.id,
|
|
6150
5955
|
bsPrefix = _ref.bsPrefix,
|
|
6151
5956
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6188,7 +5993,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6188
5993
|
};
|
|
6189
5994
|
}, [controlId, custom, id]);
|
|
6190
5995
|
var hasLabel = label != null && label !== false && !children;
|
|
6191
|
-
var input = /*#__PURE__*/
|
|
5996
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6192
5997
|
ref: ref,
|
|
6193
5998
|
isValid: isValid,
|
|
6194
5999
|
isInvalid: isInvalid,
|
|
@@ -6196,14 +6001,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6196
6001
|
as: inputAs,
|
|
6197
6002
|
lang: lang
|
|
6198
6003
|
}));
|
|
6199
|
-
return /*#__PURE__*/
|
|
6004
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6200
6005
|
value: innerFormContext
|
|
6201
|
-
}, /*#__PURE__*/
|
|
6006
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6202
6007
|
style: style,
|
|
6203
6008
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6204
|
-
}, children || /*#__PURE__*/
|
|
6009
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6205
6010
|
"data-browse": dataBrowse
|
|
6206
|
-
}, label)) : /*#__PURE__*/
|
|
6011
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6207
6012
|
type: isValid ? 'valid' : 'invalid',
|
|
6208
6013
|
tooltip: feedbackTooltip
|
|
6209
6014
|
}, feedback))));
|
|
@@ -6212,7 +6017,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6212
6017
|
FormFile.Input = FormFileInput;
|
|
6213
6018
|
FormFile.Label = FormFileLabel;
|
|
6214
6019
|
|
|
6215
|
-
var FormControl =
|
|
6020
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6216
6021
|
var bsPrefix = _ref.bsPrefix,
|
|
6217
6022
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6218
6023
|
type = _ref.type,
|
|
@@ -6264,7 +6069,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6264
6069
|
}
|
|
6265
6070
|
|
|
6266
6071
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6267
|
-
return /*#__PURE__*/
|
|
6072
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6268
6073
|
type: type,
|
|
6269
6074
|
size: htmlSize,
|
|
6270
6075
|
ref: ref,
|
|
@@ -6278,7 +6083,7 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6278
6083
|
Feedback: Feedback
|
|
6279
6084
|
});
|
|
6280
6085
|
|
|
6281
|
-
var FormGroup =
|
|
6086
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6282
6087
|
var bsPrefix = _ref.bsPrefix,
|
|
6283
6088
|
className = _ref.className,
|
|
6284
6089
|
children = _ref.children,
|
|
@@ -6293,20 +6098,20 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6293
6098
|
controlId: controlId
|
|
6294
6099
|
};
|
|
6295
6100
|
}, [controlId]);
|
|
6296
|
-
return /*#__PURE__*/
|
|
6101
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6297
6102
|
value: context
|
|
6298
|
-
}, /*#__PURE__*/
|
|
6103
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6299
6104
|
ref: ref,
|
|
6300
6105
|
className: classnames(className, bsPrefix)
|
|
6301
6106
|
}), children));
|
|
6302
6107
|
});
|
|
6303
6108
|
FormGroup.displayName = 'FormGroup';
|
|
6304
6109
|
|
|
6305
|
-
var defaultProps$
|
|
6110
|
+
var defaultProps$h = {
|
|
6306
6111
|
column: false,
|
|
6307
6112
|
srOnly: false
|
|
6308
6113
|
};
|
|
6309
|
-
var FormLabel =
|
|
6114
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6310
6115
|
var _ref$as = _ref.as,
|
|
6311
6116
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6312
6117
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6321,11 +6126,11 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6321
6126
|
|
|
6322
6127
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6323
6128
|
var columnClass = 'col-form-label';
|
|
6324
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6129
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6325
6130
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6326
6131
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6327
6132
|
htmlFor = htmlFor || controlId;
|
|
6328
|
-
if (column) return /*#__PURE__*/
|
|
6133
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6329
6134
|
as: "label",
|
|
6330
6135
|
className: classes,
|
|
6331
6136
|
htmlFor: htmlFor
|
|
@@ -6333,7 +6138,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6333
6138
|
return (
|
|
6334
6139
|
/*#__PURE__*/
|
|
6335
6140
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6336
|
-
|
|
6141
|
+
React.createElement(Component, _extends({
|
|
6337
6142
|
ref: ref,
|
|
6338
6143
|
className: classes,
|
|
6339
6144
|
htmlFor: htmlFor
|
|
@@ -6341,9 +6146,9 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6341
6146
|
);
|
|
6342
6147
|
});
|
|
6343
6148
|
FormLabel.displayName = 'FormLabel';
|
|
6344
|
-
FormLabel.defaultProps = defaultProps$
|
|
6149
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6345
6150
|
|
|
6346
|
-
var FormText =
|
|
6151
|
+
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
|
|
6347
6152
|
function (_ref, ref) {
|
|
6348
6153
|
var bsPrefix = _ref.bsPrefix,
|
|
6349
6154
|
className = _ref.className,
|
|
@@ -6353,15 +6158,15 @@ function (_ref, ref) {
|
|
|
6353
6158
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6354
6159
|
|
|
6355
6160
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6356
|
-
return /*#__PURE__*/
|
|
6161
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6357
6162
|
ref: ref,
|
|
6358
6163
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6359
6164
|
}));
|
|
6360
6165
|
});
|
|
6361
6166
|
FormText.displayName = 'FormText';
|
|
6362
6167
|
|
|
6363
|
-
var Switch =
|
|
6364
|
-
return /*#__PURE__*/
|
|
6168
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6169
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6365
6170
|
ref: ref,
|
|
6366
6171
|
type: "switch"
|
|
6367
6172
|
}));
|
|
@@ -6371,10 +6176,10 @@ Switch.Input = FormCheck.Input;
|
|
|
6371
6176
|
Switch.Label = FormCheck.Label;
|
|
6372
6177
|
|
|
6373
6178
|
var FormRow = createWithBsPrefix('form-row');
|
|
6374
|
-
var defaultProps$
|
|
6179
|
+
var defaultProps$i = {
|
|
6375
6180
|
inline: false
|
|
6376
6181
|
};
|
|
6377
|
-
var FormImpl =
|
|
6182
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6378
6183
|
var bsPrefix = _ref.bsPrefix,
|
|
6379
6184
|
inline = _ref.inline,
|
|
6380
6185
|
className = _ref.className,
|
|
@@ -6384,13 +6189,13 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6384
6189
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6385
6190
|
|
|
6386
6191
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6387
|
-
return /*#__PURE__*/
|
|
6192
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6388
6193
|
ref: ref,
|
|
6389
6194
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6390
6195
|
}));
|
|
6391
6196
|
});
|
|
6392
6197
|
FormImpl.displayName = 'Form';
|
|
6393
|
-
FormImpl.defaultProps = defaultProps$
|
|
6198
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6394
6199
|
FormImpl.Row = FormRow;
|
|
6395
6200
|
FormImpl.Group = FormGroup;
|
|
6396
6201
|
FormImpl.Control = FormControl$1;
|
|
@@ -6400,10 +6205,10 @@ FormImpl.Switch = Switch;
|
|
|
6400
6205
|
FormImpl.Label = FormLabel;
|
|
6401
6206
|
FormImpl.Text = FormText;
|
|
6402
6207
|
|
|
6403
|
-
var defaultProps$
|
|
6208
|
+
var defaultProps$j = {
|
|
6404
6209
|
fluid: false
|
|
6405
6210
|
};
|
|
6406
|
-
var Container =
|
|
6211
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6407
6212
|
var bsPrefix = _ref.bsPrefix,
|
|
6408
6213
|
fluid = _ref.fluid,
|
|
6409
6214
|
_ref$as = _ref.as,
|
|
@@ -6413,16 +6218,16 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6413
6218
|
|
|
6414
6219
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6415
6220
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6416
|
-
return /*#__PURE__*/
|
|
6221
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6417
6222
|
ref: ref
|
|
6418
6223
|
}, props, {
|
|
6419
6224
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6420
6225
|
}));
|
|
6421
6226
|
});
|
|
6422
6227
|
Container.displayName = 'Container';
|
|
6423
|
-
Container.defaultProps = defaultProps$
|
|
6228
|
+
Container.defaultProps = defaultProps$j;
|
|
6424
6229
|
|
|
6425
|
-
var propTypes$
|
|
6230
|
+
var propTypes$7 = {
|
|
6426
6231
|
/**
|
|
6427
6232
|
* @default 'img'
|
|
6428
6233
|
*/
|
|
@@ -6454,7 +6259,7 @@ var defaultProps$k = {
|
|
|
6454
6259
|
roundedCircle: false,
|
|
6455
6260
|
thumbnail: false
|
|
6456
6261
|
};
|
|
6457
|
-
var Image =
|
|
6262
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6458
6263
|
var bsPrefix = _ref.bsPrefix,
|
|
6459
6264
|
className = _ref.className,
|
|
6460
6265
|
fluid = _ref.fluid,
|
|
@@ -6465,7 +6270,7 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6465
6270
|
|
|
6466
6271
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6467
6272
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6468
|
-
return /*#__PURE__*/
|
|
6273
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6469
6274
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6470
6275
|
ref: ref
|
|
6471
6276
|
}, props, {
|
|
@@ -6475,22 +6280,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6475
6280
|
Image.displayName = 'Image';
|
|
6476
6281
|
Image.defaultProps = defaultProps$k;
|
|
6477
6282
|
|
|
6478
|
-
var defaultProps$
|
|
6283
|
+
var defaultProps$l = {
|
|
6479
6284
|
fluid: true
|
|
6480
6285
|
};
|
|
6481
|
-
var FigureImage =
|
|
6286
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6482
6287
|
var className = _ref.className,
|
|
6483
6288
|
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6484
6289
|
|
|
6485
|
-
return /*#__PURE__*/
|
|
6290
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6486
6291
|
ref: ref
|
|
6487
6292
|
}, props, {
|
|
6488
6293
|
className: classnames(className, 'figure-img')
|
|
6489
6294
|
}));
|
|
6490
6295
|
});
|
|
6491
6296
|
FigureImage.displayName = 'FigureImage';
|
|
6492
|
-
FigureImage.propTypes = propTypes$
|
|
6493
|
-
FigureImage.defaultProps = defaultProps$
|
|
6297
|
+
FigureImage.propTypes = propTypes$7;
|
|
6298
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6494
6299
|
|
|
6495
6300
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6496
6301
|
Component: 'figcaption'
|
|
@@ -6509,13 +6314,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6509
6314
|
});
|
|
6510
6315
|
|
|
6511
6316
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6512
|
-
return /*#__PURE__*/
|
|
6317
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6513
6318
|
type: "checkbox"
|
|
6514
6319
|
}, props)));
|
|
6515
6320
|
};
|
|
6516
6321
|
|
|
6517
6322
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6518
|
-
return /*#__PURE__*/
|
|
6323
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6519
6324
|
type: "radio"
|
|
6520
6325
|
}, props)));
|
|
6521
6326
|
};
|
|
@@ -6528,7 +6333,7 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6528
6333
|
* @property {InputGroupRadio} Radio
|
|
6529
6334
|
* @property {InputGroupCheckbox} Checkbox
|
|
6530
6335
|
*/
|
|
6531
|
-
var InputGroup =
|
|
6336
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6532
6337
|
var bsPrefix = _ref.bsPrefix,
|
|
6533
6338
|
size = _ref.size,
|
|
6534
6339
|
className = _ref.className,
|
|
@@ -6537,7 +6342,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6537
6342
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6538
6343
|
|
|
6539
6344
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6540
|
-
return /*#__PURE__*/
|
|
6345
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6541
6346
|
ref: ref
|
|
6542
6347
|
}, props, {
|
|
6543
6348
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6545,7 +6350,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6545
6350
|
});
|
|
6546
6351
|
InputGroup.displayName = 'InputGroup';
|
|
6547
6352
|
|
|
6548
|
-
_extends({}, InputGroup, {
|
|
6353
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6549
6354
|
Text: InputGroupText,
|
|
6550
6355
|
Radio: InputGroupRadio,
|
|
6551
6356
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6553,10 +6358,10 @@ _extends({}, InputGroup, {
|
|
|
6553
6358
|
Prepend: InputGroupPrepend
|
|
6554
6359
|
});
|
|
6555
6360
|
|
|
6556
|
-
var defaultProps$
|
|
6361
|
+
var defaultProps$m = {
|
|
6557
6362
|
fluid: false
|
|
6558
6363
|
};
|
|
6559
|
-
var Jumbotron =
|
|
6364
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6560
6365
|
var _classes;
|
|
6561
6366
|
|
|
6562
6367
|
var _ref$as = _ref.as,
|
|
@@ -6568,21 +6373,21 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6568
6373
|
|
|
6569
6374
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6570
6375
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6571
|
-
return /*#__PURE__*/
|
|
6376
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6572
6377
|
ref: ref
|
|
6573
6378
|
}, props, {
|
|
6574
6379
|
className: classnames(className, classes)
|
|
6575
6380
|
}));
|
|
6576
6381
|
});
|
|
6577
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6382
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6578
6383
|
Jumbotron.displayName = 'Jumbotron';
|
|
6579
6384
|
|
|
6580
|
-
var TabContext =
|
|
6385
|
+
var TabContext = React.createContext(null);
|
|
6581
6386
|
|
|
6582
6387
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6583
|
-
var noop$
|
|
6388
|
+
var noop$4 = function noop() {};
|
|
6584
6389
|
|
|
6585
|
-
var AbstractNav =
|
|
6390
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6586
6391
|
var _ref$as = _ref.as,
|
|
6587
6392
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6588
6393
|
onSelect = _ref.onSelect,
|
|
@@ -6663,27 +6468,27 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6663
6468
|
needsRefocusRef.current = false;
|
|
6664
6469
|
});
|
|
6665
6470
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6666
|
-
return /*#__PURE__*/
|
|
6471
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6667
6472
|
value: handleSelect
|
|
6668
|
-
}, /*#__PURE__*/
|
|
6473
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6669
6474
|
value: {
|
|
6670
6475
|
role: role,
|
|
6671
6476
|
// used by NavLink to determine it's role
|
|
6672
6477
|
activeKey: makeEventKey(activeKey),
|
|
6673
|
-
getControlledId: getControlledId || noop$
|
|
6674
|
-
getControllerId: getControllerId || noop$
|
|
6478
|
+
getControlledId: getControlledId || noop$4,
|
|
6479
|
+
getControllerId: getControllerId || noop$4
|
|
6675
6480
|
}
|
|
6676
|
-
}, /*#__PURE__*/
|
|
6481
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6677
6482
|
onKeyDown: handleKeyDown,
|
|
6678
6483
|
ref: mergedRef,
|
|
6679
6484
|
role: role
|
|
6680
6485
|
}))));
|
|
6681
6486
|
});
|
|
6682
6487
|
|
|
6683
|
-
var defaultProps$
|
|
6488
|
+
var defaultProps$n = {
|
|
6684
6489
|
disabled: false
|
|
6685
6490
|
};
|
|
6686
|
-
var AbstractNavItem =
|
|
6491
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6687
6492
|
var active = _ref.active,
|
|
6688
6493
|
className = _ref.className,
|
|
6689
6494
|
eventKey = _ref.eventKey,
|
|
@@ -6720,20 +6525,20 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6720
6525
|
if (onSelect) onSelect(navKey, e);
|
|
6721
6526
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6722
6527
|
});
|
|
6723
|
-
return /*#__PURE__*/
|
|
6528
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6724
6529
|
ref: ref,
|
|
6725
6530
|
onClick: handleOnclick,
|
|
6726
6531
|
className: classnames(className, isActive && 'active')
|
|
6727
6532
|
}));
|
|
6728
6533
|
});
|
|
6729
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6534
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6730
6535
|
|
|
6731
|
-
var defaultProps$
|
|
6536
|
+
var defaultProps$o = {
|
|
6732
6537
|
variant: undefined,
|
|
6733
6538
|
active: false,
|
|
6734
6539
|
disabled: false
|
|
6735
6540
|
};
|
|
6736
|
-
var ListGroupItem =
|
|
6541
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6737
6542
|
var bsPrefix = _ref.bsPrefix,
|
|
6738
6543
|
active = _ref.active,
|
|
6739
6544
|
disabled = _ref.disabled,
|
|
@@ -6755,25 +6560,24 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6755
6560
|
|
|
6756
6561
|
if (onClick) onClick(event);
|
|
6757
6562
|
}, [disabled, onClick]);
|
|
6758
|
-
return /*#__PURE__*/
|
|
6563
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6759
6564
|
ref: ref
|
|
6760
6565
|
}, props, {
|
|
6761
|
-
|
|
6762
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6566
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6763
6567
|
,
|
|
6764
6568
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6765
6569
|
onClick: handleClick,
|
|
6766
6570
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6767
6571
|
}));
|
|
6768
6572
|
});
|
|
6769
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6573
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6770
6574
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6771
6575
|
|
|
6772
|
-
var defaultProps$
|
|
6576
|
+
var defaultProps$p = {
|
|
6773
6577
|
variant: undefined,
|
|
6774
6578
|
horizontal: undefined
|
|
6775
6579
|
};
|
|
6776
|
-
var ListGroup =
|
|
6580
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6777
6581
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6778
6582
|
activeKey: 'onSelect'
|
|
6779
6583
|
}),
|
|
@@ -6795,19 +6599,19 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6795
6599
|
}
|
|
6796
6600
|
|
|
6797
6601
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6798
|
-
return /*#__PURE__*/
|
|
6602
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6799
6603
|
ref: ref
|
|
6800
6604
|
}, controlledProps, {
|
|
6801
6605
|
as: as,
|
|
6802
6606
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6803
6607
|
}));
|
|
6804
6608
|
});
|
|
6805
|
-
ListGroup.defaultProps = defaultProps$
|
|
6609
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6806
6610
|
ListGroup.displayName = 'ListGroup';
|
|
6807
6611
|
ListGroup.Item = ListGroupItem;
|
|
6808
6612
|
|
|
6809
6613
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6810
|
-
var Media =
|
|
6614
|
+
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
|
|
6811
6615
|
function (_ref, ref) {
|
|
6812
6616
|
var bsPrefix = _ref.bsPrefix,
|
|
6813
6617
|
className = _ref.className,
|
|
@@ -6816,7 +6620,7 @@ function (_ref, ref) {
|
|
|
6816
6620
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6817
6621
|
|
|
6818
6622
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6819
|
-
return /*#__PURE__*/
|
|
6623
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6820
6624
|
ref: ref,
|
|
6821
6625
|
className: classnames(className, prefix)
|
|
6822
6626
|
}));
|
|
@@ -6844,14 +6648,14 @@ function scrollbarSize(recalc) {
|
|
|
6844
6648
|
}
|
|
6845
6649
|
|
|
6846
6650
|
/**
|
|
6847
|
-
*
|
|
6651
|
+
* Return the actively focused element safely.
|
|
6848
6652
|
*
|
|
6849
|
-
* @param doc the document to
|
|
6653
|
+
* @param doc the document to checl
|
|
6850
6654
|
*/
|
|
6851
6655
|
|
|
6852
6656
|
function activeElement(doc) {
|
|
6853
6657
|
if (doc === void 0) {
|
|
6854
|
-
doc = ownerDocument
|
|
6658
|
+
doc = ownerDocument();
|
|
6855
6659
|
}
|
|
6856
6660
|
|
|
6857
6661
|
// Support: IE 9 only
|
|
@@ -6868,13 +6672,6 @@ function activeElement(doc) {
|
|
|
6868
6672
|
}
|
|
6869
6673
|
}
|
|
6870
6674
|
|
|
6871
|
-
/**
|
|
6872
|
-
* Adds a CSS class to a given element.
|
|
6873
|
-
*
|
|
6874
|
-
* @param element the element
|
|
6875
|
-
* @param className the CSS class name
|
|
6876
|
-
*/
|
|
6877
|
-
|
|
6878
6675
|
function addClass(element, className) {
|
|
6879
6676
|
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);
|
|
6880
6677
|
}
|
|
@@ -6882,13 +6679,6 @@ function addClass(element, className) {
|
|
|
6882
6679
|
function replaceClassName(origClass, classToRemove) {
|
|
6883
6680
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6884
6681
|
}
|
|
6885
|
-
/**
|
|
6886
|
-
* Removes a CSS class from a given element.
|
|
6887
|
-
*
|
|
6888
|
-
* @param element the element
|
|
6889
|
-
* @param className the CSS class name
|
|
6890
|
-
*/
|
|
6891
|
-
|
|
6892
6682
|
|
|
6893
6683
|
function removeClass(element, className) {
|
|
6894
6684
|
if (element.classList) {
|
|
@@ -6915,7 +6705,7 @@ function isBody(node) {
|
|
|
6915
6705
|
}
|
|
6916
6706
|
|
|
6917
6707
|
function bodyIsOverflowing(node) {
|
|
6918
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6708
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6919
6709
|
var win = isWindow(node) || doc.defaultView;
|
|
6920
6710
|
return doc.body.clientWidth < win.innerWidth;
|
|
6921
6711
|
}
|
|
@@ -7127,7 +6917,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7127
6917
|
var _ref;
|
|
7128
6918
|
|
|
7129
6919
|
if (typeof document === 'undefined') return null;
|
|
7130
|
-
if (ref == null) return ownerDocument
|
|
6920
|
+
if (ref == null) return ownerDocument().body;
|
|
7131
6921
|
if (typeof ref === 'function') ref = ref();
|
|
7132
6922
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7133
6923
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7160,11 +6950,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7160
6950
|
return resolvedRef;
|
|
7161
6951
|
}
|
|
7162
6952
|
|
|
7163
|
-
var manager
|
|
6953
|
+
var manager;
|
|
7164
6954
|
|
|
7165
6955
|
function getManager() {
|
|
7166
|
-
if (!manager
|
|
7167
|
-
return manager
|
|
6956
|
+
if (!manager) manager = new ModalManager();
|
|
6957
|
+
return manager;
|
|
7168
6958
|
}
|
|
7169
6959
|
|
|
7170
6960
|
function useModalManager(provided) {
|
|
@@ -7192,7 +6982,7 @@ function useModalManager(provided) {
|
|
|
7192
6982
|
});
|
|
7193
6983
|
}
|
|
7194
6984
|
|
|
7195
|
-
var Modal
|
|
6985
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7196
6986
|
var _ref$show = _ref.show,
|
|
7197
6987
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7198
6988
|
_ref$role = _ref.role,
|
|
@@ -7218,7 +7008,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7218
7008
|
renderDialog = _ref.renderDialog,
|
|
7219
7009
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7220
7010
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7221
|
-
return /*#__PURE__*/
|
|
7011
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7222
7012
|
} : _ref$renderBackdrop,
|
|
7223
7013
|
providedManager = _ref.manager,
|
|
7224
7014
|
containerRef = _ref.container,
|
|
@@ -7276,7 +7066,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7276
7066
|
if (autoFocus) {
|
|
7277
7067
|
var currentActiveElement = activeElement(document);
|
|
7278
7068
|
|
|
7279
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7069
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7280
7070
|
lastFocusRef.current = currentActiveElement;
|
|
7281
7071
|
modal.dialog.focus();
|
|
7282
7072
|
}
|
|
@@ -7322,7 +7112,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7322
7112
|
|
|
7323
7113
|
var currentActiveElement = activeElement();
|
|
7324
7114
|
|
|
7325
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7115
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7326
7116
|
modal.dialog.focus();
|
|
7327
7117
|
}
|
|
7328
7118
|
});
|
|
@@ -7376,12 +7166,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7376
7166
|
tabIndex: -1
|
|
7377
7167
|
});
|
|
7378
7168
|
|
|
7379
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7169
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7380
7170
|
role: 'document'
|
|
7381
7171
|
}));
|
|
7382
7172
|
|
|
7383
7173
|
if (Transition) {
|
|
7384
|
-
dialog = /*#__PURE__*/
|
|
7174
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7385
7175
|
appear: true,
|
|
7386
7176
|
unmountOnExit: true,
|
|
7387
7177
|
"in": !!show,
|
|
@@ -7404,16 +7194,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7404
7194
|
});
|
|
7405
7195
|
|
|
7406
7196
|
if (BackdropTransition) {
|
|
7407
|
-
backdropElement = /*#__PURE__*/
|
|
7197
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7408
7198
|
appear: true,
|
|
7409
7199
|
"in": !!show
|
|
7410
7200
|
}, backdropElement);
|
|
7411
7201
|
}
|
|
7412
7202
|
}
|
|
7413
7203
|
|
|
7414
|
-
return /*#__PURE__*/
|
|
7204
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7415
7205
|
});
|
|
7416
|
-
var propTypes$
|
|
7206
|
+
var propTypes$8 = {
|
|
7417
7207
|
/**
|
|
7418
7208
|
* Set the visibility of the Modal
|
|
7419
7209
|
*/
|
|
@@ -7569,9 +7359,9 @@ var propTypes$2 = {
|
|
|
7569
7359
|
*/
|
|
7570
7360
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7571
7361
|
};
|
|
7572
|
-
Modal
|
|
7573
|
-
Modal
|
|
7574
|
-
var BaseModal = Object.assign(Modal
|
|
7362
|
+
Modal.displayName = 'Modal';
|
|
7363
|
+
Modal.propTypes = propTypes$8;
|
|
7364
|
+
var BaseModal = Object.assign(Modal, {
|
|
7575
7365
|
Manager: ModalManager
|
|
7576
7366
|
});
|
|
7577
7367
|
|
|
@@ -7650,39 +7440,38 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7650
7440
|
|
|
7651
7441
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7652
7442
|
|
|
7653
|
-
var ModalContext =
|
|
7443
|
+
var ModalContext = React.createContext({
|
|
7654
7444
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7655
7445
|
onHide: function onHide() {}
|
|
7656
7446
|
});
|
|
7657
7447
|
|
|
7658
|
-
var ModalDialog =
|
|
7448
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7659
7449
|
var bsPrefix = _ref.bsPrefix,
|
|
7660
7450
|
className = _ref.className,
|
|
7661
|
-
contentClassName = _ref.contentClassName,
|
|
7662
7451
|
centered = _ref.centered,
|
|
7663
7452
|
size = _ref.size,
|
|
7664
7453
|
children = _ref.children,
|
|
7665
7454
|
scrollable = _ref.scrollable,
|
|
7666
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "
|
|
7455
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7667
7456
|
|
|
7668
7457
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7669
7458
|
var dialogClass = bsPrefix + "-dialog";
|
|
7670
|
-
return /*#__PURE__*/
|
|
7459
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7671
7460
|
ref: ref,
|
|
7672
7461
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7673
|
-
}), /*#__PURE__*/
|
|
7674
|
-
className:
|
|
7462
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7463
|
+
className: bsPrefix + "-content"
|
|
7675
7464
|
}, children));
|
|
7676
7465
|
});
|
|
7677
7466
|
ModalDialog.displayName = 'ModalDialog';
|
|
7678
7467
|
|
|
7679
7468
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7680
7469
|
|
|
7681
|
-
var defaultProps$
|
|
7470
|
+
var defaultProps$q = {
|
|
7682
7471
|
closeLabel: 'Close',
|
|
7683
7472
|
closeButton: false
|
|
7684
7473
|
};
|
|
7685
|
-
var ModalHeader =
|
|
7474
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7686
7475
|
var bsPrefix = _ref.bsPrefix,
|
|
7687
7476
|
closeLabel = _ref.closeLabel,
|
|
7688
7477
|
closeButton = _ref.closeButton,
|
|
@@ -7697,25 +7486,25 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7697
7486
|
if (context) context.onHide();
|
|
7698
7487
|
if (onHide) onHide();
|
|
7699
7488
|
});
|
|
7700
|
-
return /*#__PURE__*/
|
|
7489
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7701
7490
|
ref: ref
|
|
7702
7491
|
}, props, {
|
|
7703
7492
|
className: classnames(className, bsPrefix)
|
|
7704
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7493
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7705
7494
|
label: closeLabel,
|
|
7706
7495
|
onClick: handleClick
|
|
7707
7496
|
}));
|
|
7708
7497
|
});
|
|
7709
7498
|
ModalHeader.displayName = 'ModalHeader';
|
|
7710
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7499
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7711
7500
|
|
|
7712
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7501
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7713
7502
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7714
|
-
Component: DivStyledAsH4
|
|
7503
|
+
Component: DivStyledAsH4$1
|
|
7715
7504
|
});
|
|
7716
7505
|
|
|
7717
|
-
var manager;
|
|
7718
|
-
var defaultProps$
|
|
7506
|
+
var manager$1;
|
|
7507
|
+
var defaultProps$r = {
|
|
7719
7508
|
show: false,
|
|
7720
7509
|
backdrop: true,
|
|
7721
7510
|
keyboard: true,
|
|
@@ -7728,21 +7517,20 @@ var defaultProps$d = {
|
|
|
7728
7517
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7729
7518
|
|
|
7730
7519
|
function DialogTransition(props) {
|
|
7731
|
-
return /*#__PURE__*/
|
|
7520
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7732
7521
|
}
|
|
7733
7522
|
|
|
7734
7523
|
function BackdropTransition(props) {
|
|
7735
|
-
return /*#__PURE__*/
|
|
7524
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7736
7525
|
}
|
|
7737
7526
|
/* eslint-enable no-use-before-define */
|
|
7738
7527
|
|
|
7739
7528
|
|
|
7740
|
-
var Modal =
|
|
7529
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7741
7530
|
var bsPrefix = _ref.bsPrefix,
|
|
7742
7531
|
className = _ref.className,
|
|
7743
7532
|
style = _ref.style,
|
|
7744
7533
|
dialogClassName = _ref.dialogClassName,
|
|
7745
|
-
contentClassName = _ref.contentClassName,
|
|
7746
7534
|
children = _ref.children,
|
|
7747
7535
|
Dialog = _ref.dialogAs,
|
|
7748
7536
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7766,7 +7554,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7766
7554
|
onExited = _ref.onExited,
|
|
7767
7555
|
backdropClassName = _ref.backdropClassName,
|
|
7768
7556
|
propsManager = _ref.manager,
|
|
7769
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "
|
|
7557
|
+
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"]);
|
|
7770
7558
|
|
|
7771
7559
|
var _useState = useState({}),
|
|
7772
7560
|
modalStyle = _useState[0],
|
|
@@ -7803,14 +7591,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7803
7591
|
|
|
7804
7592
|
function getModalManager() {
|
|
7805
7593
|
if (propsManager) return propsManager;
|
|
7806
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7807
|
-
return manager;
|
|
7594
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7595
|
+
return manager$1;
|
|
7808
7596
|
}
|
|
7809
7597
|
|
|
7810
7598
|
function updateDialogStyle(node) {
|
|
7811
7599
|
if (!canUseDOM) return;
|
|
7812
7600
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7813
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7601
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7814
7602
|
setStyle({
|
|
7815
7603
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7816
7604
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7932,7 +7720,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7932
7720
|
};
|
|
7933
7721
|
|
|
7934
7722
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7935
|
-
return /*#__PURE__*/
|
|
7723
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7936
7724
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7937
7725
|
}));
|
|
7938
7726
|
}, [animation, backdropClassName, bsPrefix]);
|
|
@@ -7945,7 +7733,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7945
7733
|
}
|
|
7946
7734
|
|
|
7947
7735
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7948
|
-
return /*#__PURE__*/
|
|
7736
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7949
7737
|
role: "dialog"
|
|
7950
7738
|
}, dialogProps, {
|
|
7951
7739
|
style: baseModalStyle,
|
|
@@ -7953,17 +7741,16 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7953
7741
|
onClick: backdrop ? handleClick : undefined,
|
|
7954
7742
|
onMouseUp: handleMouseUp,
|
|
7955
7743
|
"aria-labelledby": ariaLabelledby
|
|
7956
|
-
}), /*#__PURE__*/
|
|
7744
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7957
7745
|
role: "document",
|
|
7958
7746
|
onMouseDown: handleDialogMouseDown,
|
|
7959
|
-
className: dialogClassName
|
|
7960
|
-
contentClassName: contentClassName
|
|
7747
|
+
className: dialogClassName
|
|
7961
7748
|
}), children));
|
|
7962
7749
|
};
|
|
7963
7750
|
|
|
7964
|
-
return /*#__PURE__*/
|
|
7751
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7965
7752
|
value: modalContext
|
|
7966
|
-
}, /*#__PURE__*/
|
|
7753
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7967
7754
|
show: show,
|
|
7968
7755
|
ref: setModalRef,
|
|
7969
7756
|
backdrop: backdrop,
|
|
@@ -7991,17 +7778,17 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7991
7778
|
renderDialog: renderDialog
|
|
7992
7779
|
}));
|
|
7993
7780
|
});
|
|
7994
|
-
Modal.displayName = 'Modal';
|
|
7995
|
-
Modal.defaultProps = defaultProps$
|
|
7996
|
-
Modal.Body = ModalBody;
|
|
7997
|
-
Modal.Header = ModalHeader;
|
|
7998
|
-
Modal.Title = ModalTitle;
|
|
7999
|
-
Modal.Footer = ModalFooter;
|
|
8000
|
-
Modal.Dialog = ModalDialog;
|
|
8001
|
-
Modal.TRANSITION_DURATION = 300;
|
|
8002
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
8003
|
-
|
|
8004
|
-
var NavItem =
|
|
7781
|
+
Modal$1.displayName = 'Modal';
|
|
7782
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7783
|
+
Modal$1.Body = ModalBody;
|
|
7784
|
+
Modal$1.Header = ModalHeader;
|
|
7785
|
+
Modal$1.Title = ModalTitle;
|
|
7786
|
+
Modal$1.Footer = ModalFooter;
|
|
7787
|
+
Modal$1.Dialog = ModalDialog;
|
|
7788
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7789
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7790
|
+
|
|
7791
|
+
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
|
|
8005
7792
|
function (_ref, ref) {
|
|
8006
7793
|
var bsPrefix = _ref.bsPrefix,
|
|
8007
7794
|
className = _ref.className,
|
|
@@ -8011,18 +7798,18 @@ function (_ref, ref) {
|
|
|
8011
7798
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8012
7799
|
|
|
8013
7800
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8014
|
-
return /*#__PURE__*/
|
|
7801
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8015
7802
|
ref: ref,
|
|
8016
7803
|
className: classnames(className, bsPrefix)
|
|
8017
7804
|
}), children);
|
|
8018
7805
|
});
|
|
8019
7806
|
NavItem.displayName = 'NavItem';
|
|
8020
7807
|
|
|
8021
|
-
var defaultProps$
|
|
7808
|
+
var defaultProps$s = {
|
|
8022
7809
|
disabled: false,
|
|
8023
7810
|
as: SafeAnchor
|
|
8024
7811
|
};
|
|
8025
|
-
var NavLink =
|
|
7812
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
8026
7813
|
var bsPrefix = _ref.bsPrefix,
|
|
8027
7814
|
disabled = _ref.disabled,
|
|
8028
7815
|
className = _ref.className,
|
|
@@ -8033,7 +7820,7 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8033
7820
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8034
7821
|
|
|
8035
7822
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8036
|
-
return /*#__PURE__*/
|
|
7823
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
8037
7824
|
href: href,
|
|
8038
7825
|
ref: ref,
|
|
8039
7826
|
eventKey: eventKey,
|
|
@@ -8044,13 +7831,13 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8044
7831
|
}));
|
|
8045
7832
|
});
|
|
8046
7833
|
NavLink.displayName = 'NavLink';
|
|
8047
|
-
NavLink.defaultProps = defaultProps$
|
|
7834
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8048
7835
|
|
|
8049
|
-
var defaultProps$
|
|
7836
|
+
var defaultProps$t = {
|
|
8050
7837
|
justify: false,
|
|
8051
7838
|
fill: false
|
|
8052
7839
|
};
|
|
8053
|
-
var Nav =
|
|
7840
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8054
7841
|
var _classNames;
|
|
8055
7842
|
|
|
8056
7843
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8072,7 +7859,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8072
7859
|
var navbarBsPrefix;
|
|
8073
7860
|
var cardHeaderBsPrefix;
|
|
8074
7861
|
var isNavbar = false;
|
|
8075
|
-
var navbarContext = useContext(context);
|
|
7862
|
+
var navbarContext = useContext(context$2);
|
|
8076
7863
|
var cardContext = useContext(context$1);
|
|
8077
7864
|
|
|
8078
7865
|
if (navbarContext) {
|
|
@@ -8082,7 +7869,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8082
7869
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8083
7870
|
}
|
|
8084
7871
|
|
|
8085
|
-
return /*#__PURE__*/
|
|
7872
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8086
7873
|
as: as,
|
|
8087
7874
|
ref: ref,
|
|
8088
7875
|
activeKey: activeKey,
|
|
@@ -8090,11 +7877,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8090
7877
|
}, props), children);
|
|
8091
7878
|
});
|
|
8092
7879
|
Nav.displayName = 'Nav';
|
|
8093
|
-
Nav.defaultProps = defaultProps$
|
|
7880
|
+
Nav.defaultProps = defaultProps$t;
|
|
8094
7881
|
Nav.Item = NavItem;
|
|
8095
7882
|
Nav.Link = NavLink;
|
|
8096
7883
|
|
|
8097
|
-
var NavbarBrand =
|
|
7884
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8098
7885
|
var bsPrefix = _ref.bsPrefix,
|
|
8099
7886
|
className = _ref.className,
|
|
8100
7887
|
as = _ref.as,
|
|
@@ -8102,23 +7889,23 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8102
7889
|
|
|
8103
7890
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8104
7891
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8105
|
-
return /*#__PURE__*/
|
|
7892
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8106
7893
|
ref: ref,
|
|
8107
7894
|
className: classnames(className, bsPrefix)
|
|
8108
7895
|
}));
|
|
8109
7896
|
});
|
|
8110
7897
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8111
7898
|
|
|
8112
|
-
var NavbarCollapse =
|
|
7899
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8113
7900
|
var children = _ref.children,
|
|
8114
7901
|
bsPrefix = _ref.bsPrefix,
|
|
8115
7902
|
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8116
7903
|
|
|
8117
7904
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8118
|
-
return /*#__PURE__*/
|
|
8119
|
-
return /*#__PURE__*/
|
|
7905
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
7906
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8120
7907
|
in: !!(context && context.expanded)
|
|
8121
|
-
}, props), /*#__PURE__*/
|
|
7908
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8122
7909
|
ref: ref,
|
|
8123
7910
|
className: bsPrefix
|
|
8124
7911
|
}, children));
|
|
@@ -8126,10 +7913,10 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8126
7913
|
});
|
|
8127
7914
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8128
7915
|
|
|
8129
|
-
var defaultProps$
|
|
7916
|
+
var defaultProps$u = {
|
|
8130
7917
|
label: 'Toggle navigation'
|
|
8131
7918
|
};
|
|
8132
|
-
var NavbarToggle =
|
|
7919
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8133
7920
|
var bsPrefix = _ref.bsPrefix,
|
|
8134
7921
|
className = _ref.className,
|
|
8135
7922
|
children = _ref.children,
|
|
@@ -8141,7 +7928,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8141
7928
|
|
|
8142
7929
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8143
7930
|
|
|
8144
|
-
var _ref2 = useContext(context) || {},
|
|
7931
|
+
var _ref2 = useContext(context$2) || {},
|
|
8145
7932
|
onToggle = _ref2.onToggle,
|
|
8146
7933
|
expanded = _ref2.expanded;
|
|
8147
7934
|
|
|
@@ -8154,27 +7941,27 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8154
7941
|
props.type = 'button';
|
|
8155
7942
|
}
|
|
8156
7943
|
|
|
8157
|
-
return /*#__PURE__*/
|
|
7944
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8158
7945
|
ref: ref,
|
|
8159
7946
|
onClick: handleClick,
|
|
8160
7947
|
"aria-label": label,
|
|
8161
7948
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8162
|
-
}), children || /*#__PURE__*/
|
|
7949
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8163
7950
|
className: bsPrefix + "-icon"
|
|
8164
7951
|
}));
|
|
8165
7952
|
});
|
|
8166
7953
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8167
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
7954
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8168
7955
|
|
|
8169
7956
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8170
7957
|
Component: 'span'
|
|
8171
7958
|
});
|
|
8172
|
-
var defaultProps$
|
|
7959
|
+
var defaultProps$v = {
|
|
8173
7960
|
expand: true,
|
|
8174
7961
|
variant: 'light',
|
|
8175
7962
|
collapseOnSelect: false
|
|
8176
7963
|
};
|
|
8177
|
-
var Navbar =
|
|
7964
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8178
7965
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8179
7966
|
expanded: 'onToggle'
|
|
8180
7967
|
}),
|
|
@@ -8222,24 +8009,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8222
8009
|
expanded: !!expanded
|
|
8223
8010
|
};
|
|
8224
8011
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8225
|
-
return /*#__PURE__*/
|
|
8012
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8226
8013
|
value: navbarContext
|
|
8227
|
-
}, /*#__PURE__*/
|
|
8014
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8228
8015
|
value: handleCollapse
|
|
8229
|
-
}, /*#__PURE__*/
|
|
8016
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8230
8017
|
ref: ref
|
|
8231
8018
|
}, controlledProps, {
|
|
8232
8019
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8233
8020
|
}), children)));
|
|
8234
8021
|
});
|
|
8235
|
-
Navbar.defaultProps = defaultProps$
|
|
8022
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8236
8023
|
Navbar.displayName = 'Navbar';
|
|
8237
8024
|
Navbar.Brand = NavbarBrand;
|
|
8238
8025
|
Navbar.Toggle = NavbarToggle;
|
|
8239
8026
|
Navbar.Collapse = NavbarCollapse;
|
|
8240
8027
|
Navbar.Text = NavbarText;
|
|
8241
8028
|
|
|
8242
|
-
var propTypes$
|
|
8029
|
+
var propTypes$9 = {
|
|
8243
8030
|
/**
|
|
8244
8031
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8245
8032
|
* @type {string|number}
|
|
@@ -8275,7 +8062,7 @@ var propTypes$1 = {
|
|
|
8275
8062
|
/** @ignore */
|
|
8276
8063
|
bsPrefix: PropTypes.string
|
|
8277
8064
|
};
|
|
8278
|
-
var NavDropdown =
|
|
8065
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8279
8066
|
var id = _ref.id,
|
|
8280
8067
|
title = _ref.title,
|
|
8281
8068
|
children = _ref.children,
|
|
@@ -8287,35 +8074,35 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8287
8074
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8288
8075
|
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8289
8076
|
|
|
8290
|
-
return /*#__PURE__*/
|
|
8077
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8291
8078
|
ref: ref
|
|
8292
8079
|
}, props, {
|
|
8293
8080
|
as: NavItem
|
|
8294
|
-
}), /*#__PURE__*/
|
|
8081
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8295
8082
|
id: id,
|
|
8296
8083
|
eventKey: null,
|
|
8297
8084
|
active: active,
|
|
8298
8085
|
disabled: disabled,
|
|
8299
8086
|
childBsPrefix: bsPrefix,
|
|
8300
8087
|
as: NavLink
|
|
8301
|
-
}, title), /*#__PURE__*/
|
|
8088
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8302
8089
|
role: menuRole,
|
|
8303
8090
|
renderOnMount: renderMenuOnMount,
|
|
8304
8091
|
rootCloseEvent: rootCloseEvent
|
|
8305
8092
|
}, children));
|
|
8306
8093
|
});
|
|
8307
8094
|
NavDropdown.displayName = 'NavDropdown';
|
|
8308
|
-
NavDropdown.propTypes = propTypes$
|
|
8309
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8310
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8311
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8312
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8095
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8096
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8097
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8098
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8099
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8313
8100
|
|
|
8314
8101
|
/**
|
|
8315
8102
|
* Built on top of `Popper.js`, the overlay component is
|
|
8316
8103
|
* great for custom tooltip overlays.
|
|
8317
8104
|
*/
|
|
8318
|
-
var Overlay = /*#__PURE__*/
|
|
8105
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8319
8106
|
var flip = props.flip,
|
|
8320
8107
|
offset = props.offset,
|
|
8321
8108
|
placement = props.placement,
|
|
@@ -8398,7 +8185,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8398
8185
|
onEnter = props.onEnter,
|
|
8399
8186
|
onEntering = props.onEntering,
|
|
8400
8187
|
onEntered = props.onEntered;
|
|
8401
|
-
child = /*#__PURE__*/
|
|
8188
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8402
8189
|
"in": props.show,
|
|
8403
8190
|
appear: true,
|
|
8404
8191
|
onExit: onExit,
|
|
@@ -8550,7 +8337,7 @@ Overlay.propTypes = {
|
|
|
8550
8337
|
onExited: PropTypes.func
|
|
8551
8338
|
};
|
|
8552
8339
|
|
|
8553
|
-
/*#__PURE__*/
|
|
8340
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8554
8341
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8555
8342
|
|
|
8556
8343
|
function RefHolder() {
|
|
@@ -8564,14 +8351,14 @@ Overlay.propTypes = {
|
|
|
8564
8351
|
};
|
|
8565
8352
|
|
|
8566
8353
|
return RefHolder;
|
|
8567
|
-
}
|
|
8354
|
+
}(React.Component);
|
|
8568
8355
|
|
|
8569
|
-
var defaultProps$
|
|
8356
|
+
var defaultProps$w = {
|
|
8570
8357
|
active: false,
|
|
8571
8358
|
disabled: false,
|
|
8572
8359
|
activeLabel: '(current)'
|
|
8573
8360
|
};
|
|
8574
|
-
var PageItem =
|
|
8361
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8575
8362
|
var active = _ref.active,
|
|
8576
8363
|
disabled = _ref.disabled,
|
|
8577
8364
|
className = _ref.className,
|
|
@@ -8581,21 +8368,21 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8581
8368
|
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8582
8369
|
|
|
8583
8370
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8584
|
-
return /*#__PURE__*/
|
|
8371
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8585
8372
|
ref: ref,
|
|
8586
8373
|
style: style,
|
|
8587
8374
|
className: classnames(className, 'page-item', {
|
|
8588
8375
|
active: active,
|
|
8589
8376
|
disabled: disabled
|
|
8590
8377
|
})
|
|
8591
|
-
}, /*#__PURE__*/
|
|
8378
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8592
8379
|
className: "page-link",
|
|
8593
8380
|
disabled: disabled
|
|
8594
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8381
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8595
8382
|
className: "sr-only"
|
|
8596
8383
|
}, activeLabel)));
|
|
8597
8384
|
});
|
|
8598
|
-
PageItem.defaultProps = defaultProps$
|
|
8385
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8599
8386
|
PageItem.displayName = 'PageItem';
|
|
8600
8387
|
|
|
8601
8388
|
function createButton(name, defaultValue, label) {
|
|
@@ -8607,9 +8394,9 @@ function createButton(name, defaultValue, label) {
|
|
|
8607
8394
|
var children = _ref2.children,
|
|
8608
8395
|
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8609
8396
|
|
|
8610
|
-
return /*#__PURE__*/
|
|
8397
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8611
8398
|
"aria-hidden": "true"
|
|
8612
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8399
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8613
8400
|
className: "sr-only"
|
|
8614
8401
|
}, label));
|
|
8615
8402
|
}
|
|
@@ -8632,7 +8419,7 @@ var Last = createButton('Last', '»');
|
|
|
8632
8419
|
* @property {PageItem} Next
|
|
8633
8420
|
* @property {PageItem} Last
|
|
8634
8421
|
*/
|
|
8635
|
-
var Pagination =
|
|
8422
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8636
8423
|
var bsPrefix = _ref.bsPrefix,
|
|
8637
8424
|
className = _ref.className,
|
|
8638
8425
|
children = _ref.children,
|
|
@@ -8640,7 +8427,7 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8640
8427
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8641
8428
|
|
|
8642
8429
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8643
|
-
return /*#__PURE__*/
|
|
8430
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8644
8431
|
ref: ref
|
|
8645
8432
|
}, props, {
|
|
8646
8433
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8653,7 +8440,7 @@ Pagination.Item = PageItem;
|
|
|
8653
8440
|
Pagination.Next = Next;
|
|
8654
8441
|
Pagination.Last = Last;
|
|
8655
8442
|
|
|
8656
|
-
var PopoverTitle =
|
|
8443
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8657
8444
|
var _ref$as = _ref.as,
|
|
8658
8445
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8659
8446
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8662,14 +8449,14 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8662
8449
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8663
8450
|
|
|
8664
8451
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8665
|
-
return /*#__PURE__*/
|
|
8452
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8666
8453
|
ref: ref
|
|
8667
8454
|
}, props, {
|
|
8668
8455
|
className: classnames(bsPrefix, className)
|
|
8669
8456
|
}), children);
|
|
8670
8457
|
});
|
|
8671
8458
|
|
|
8672
|
-
var PopoverContent =
|
|
8459
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8673
8460
|
var _ref$as = _ref.as,
|
|
8674
8461
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8675
8462
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -8678,50 +8465,50 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8678
8465
|
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8679
8466
|
|
|
8680
8467
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8681
|
-
return /*#__PURE__*/
|
|
8468
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8682
8469
|
ref: ref
|
|
8683
8470
|
}, props, {
|
|
8684
8471
|
className: classnames(className, bsPrefix)
|
|
8685
8472
|
}), children);
|
|
8686
8473
|
});
|
|
8687
8474
|
|
|
8688
|
-
var defaultProps$
|
|
8475
|
+
var defaultProps$x = {
|
|
8689
8476
|
placement: 'right'
|
|
8690
8477
|
};
|
|
8691
|
-
var Popover =
|
|
8478
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8692
8479
|
var bsPrefix = _ref.bsPrefix,
|
|
8693
8480
|
placement = _ref.placement,
|
|
8694
8481
|
className = _ref.className,
|
|
8695
8482
|
style = _ref.style,
|
|
8696
8483
|
children = _ref.children,
|
|
8697
8484
|
content = _ref.content,
|
|
8698
|
-
arrowProps = _ref.arrowProps
|
|
8699
|
-
_ref.popper
|
|
8700
|
-
_ref.show
|
|
8701
|
-
|
|
8485
|
+
arrowProps = _ref.arrowProps,
|
|
8486
|
+
_ = _ref.popper,
|
|
8487
|
+
_1 = _ref.show,
|
|
8488
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8702
8489
|
|
|
8703
8490
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8704
8491
|
|
|
8705
8492
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8706
8493
|
primaryPlacement = _ref2[0];
|
|
8707
8494
|
|
|
8708
|
-
return /*#__PURE__*/
|
|
8495
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8709
8496
|
ref: ref,
|
|
8710
8497
|
role: "tooltip",
|
|
8711
8498
|
style: style,
|
|
8712
8499
|
"x-placement": primaryPlacement,
|
|
8713
8500
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8714
|
-
}, props), /*#__PURE__*/
|
|
8501
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8715
8502
|
className: "arrow"
|
|
8716
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8503
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8717
8504
|
});
|
|
8718
|
-
Popover.defaultProps = defaultProps$
|
|
8505
|
+
Popover.defaultProps = defaultProps$x;
|
|
8719
8506
|
Popover.Title = PopoverTitle;
|
|
8720
8507
|
Popover.Content = PopoverContent;
|
|
8721
8508
|
|
|
8722
8509
|
var ROUND_PRECISION = 1000;
|
|
8723
8510
|
|
|
8724
|
-
var defaultProps$
|
|
8511
|
+
var defaultProps$y = {
|
|
8725
8512
|
min: 0,
|
|
8726
8513
|
max: 100,
|
|
8727
8514
|
animated: false,
|
|
@@ -8751,7 +8538,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8751
8538
|
bsPrefix = _ref.bsPrefix,
|
|
8752
8539
|
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8753
8540
|
|
|
8754
|
-
return /*#__PURE__*/
|
|
8541
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8755
8542
|
ref: ref
|
|
8756
8543
|
}, props, {
|
|
8757
8544
|
role: "progressbar",
|
|
@@ -8762,12 +8549,12 @@ function renderProgressBar(_ref, ref) {
|
|
|
8762
8549
|
"aria-valuenow": now,
|
|
8763
8550
|
"aria-valuemin": min,
|
|
8764
8551
|
"aria-valuemax": max
|
|
8765
|
-
}), srOnly ? /*#__PURE__*/
|
|
8552
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8766
8553
|
className: "sr-only"
|
|
8767
8554
|
}, label) : label);
|
|
8768
8555
|
}
|
|
8769
8556
|
|
|
8770
|
-
var ProgressBar =
|
|
8557
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8771
8558
|
var isChild = _ref2.isChild,
|
|
8772
8559
|
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8773
8560
|
|
|
@@ -8790,7 +8577,7 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8790
8577
|
children = props.children,
|
|
8791
8578
|
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8792
8579
|
|
|
8793
|
-
return /*#__PURE__*/
|
|
8580
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8794
8581
|
ref: ref
|
|
8795
8582
|
}, wrapperProps, {
|
|
8796
8583
|
className: classnames(className, bsPrefix)
|
|
@@ -8811,12 +8598,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8811
8598
|
}, ref));
|
|
8812
8599
|
});
|
|
8813
8600
|
ProgressBar.displayName = 'ProgressBar';
|
|
8814
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8601
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8815
8602
|
|
|
8816
|
-
var defaultProps$
|
|
8603
|
+
var defaultProps$z = {
|
|
8817
8604
|
aspectRatio: '1by1'
|
|
8818
8605
|
};
|
|
8819
|
-
var ResponsiveEmbed =
|
|
8606
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8820
8607
|
var bsPrefix = _ref.bsPrefix,
|
|
8821
8608
|
className = _ref.className,
|
|
8822
8609
|
children = _ref.children,
|
|
@@ -8824,22 +8611,22 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8824
8611
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8825
8612
|
|
|
8826
8613
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8827
|
-
var child =
|
|
8828
|
-
return /*#__PURE__*/
|
|
8614
|
+
var child = React.Children.only(children);
|
|
8615
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8829
8616
|
ref: ref
|
|
8830
8617
|
}, props, {
|
|
8831
8618
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8832
|
-
}),
|
|
8619
|
+
}), React.cloneElement(child, {
|
|
8833
8620
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8834
8621
|
}));
|
|
8835
8622
|
});
|
|
8836
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8623
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8837
8624
|
|
|
8838
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8839
|
-
var defaultProps$
|
|
8625
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8626
|
+
var defaultProps$A = {
|
|
8840
8627
|
noGutters: false
|
|
8841
8628
|
};
|
|
8842
|
-
var Row =
|
|
8629
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8843
8630
|
var bsPrefix = _ref.bsPrefix,
|
|
8844
8631
|
className = _ref.className,
|
|
8845
8632
|
noGutters = _ref.noGutters,
|
|
@@ -8850,7 +8637,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8850
8637
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8851
8638
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8852
8639
|
var classes = [];
|
|
8853
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8640
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8854
8641
|
var propValue = props[brkPoint];
|
|
8855
8642
|
delete props[brkPoint];
|
|
8856
8643
|
var cols;
|
|
@@ -8864,16 +8651,16 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8864
8651
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8865
8652
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8866
8653
|
});
|
|
8867
|
-
return /*#__PURE__*/
|
|
8654
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8868
8655
|
ref: ref
|
|
8869
8656
|
}, props, {
|
|
8870
8657
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8871
8658
|
}));
|
|
8872
8659
|
});
|
|
8873
8660
|
Row.displayName = 'Row';
|
|
8874
|
-
Row.defaultProps = defaultProps$
|
|
8661
|
+
Row.defaultProps = defaultProps$A;
|
|
8875
8662
|
|
|
8876
|
-
var Spinner =
|
|
8663
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8877
8664
|
var bsPrefix = _ref.bsPrefix,
|
|
8878
8665
|
variant = _ref.variant,
|
|
8879
8666
|
animation = _ref.animation,
|
|
@@ -8886,7 +8673,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8886
8673
|
|
|
8887
8674
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8888
8675
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8889
|
-
return /*#__PURE__*/
|
|
8676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8890
8677
|
ref: ref
|
|
8891
8678
|
}, props, {
|
|
8892
8679
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8894,7 +8681,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8894
8681
|
});
|
|
8895
8682
|
Spinner.displayName = 'Spinner';
|
|
8896
8683
|
|
|
8897
|
-
var propTypes = {
|
|
8684
|
+
var propTypes$a = {
|
|
8898
8685
|
/**
|
|
8899
8686
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8900
8687
|
* @type {string|number}
|
|
@@ -8925,15 +8712,6 @@ var propTypes = {
|
|
|
8925
8712
|
/** Disables both Buttons */
|
|
8926
8713
|
disabled: PropTypes.bool,
|
|
8927
8714
|
|
|
8928
|
-
/**
|
|
8929
|
-
* Aligns the dropdown menu responsively.
|
|
8930
|
-
*
|
|
8931
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8932
|
-
*
|
|
8933
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8934
|
-
*/
|
|
8935
|
-
menuAlign: alignPropType,
|
|
8936
|
-
|
|
8937
8715
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8938
8716
|
menuRole: PropTypes.string,
|
|
8939
8717
|
|
|
@@ -8943,7 +8721,7 @@ var propTypes = {
|
|
|
8943
8721
|
/**
|
|
8944
8722
|
* Which event when fired outside the component will cause it to be closed.
|
|
8945
8723
|
*
|
|
8946
|
-
* _see [DropdownMenu](#
|
|
8724
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8947
8725
|
*/
|
|
8948
8726
|
rootCloseEvent: PropTypes.string,
|
|
8949
8727
|
|
|
@@ -8956,11 +8734,11 @@ var propTypes = {
|
|
|
8956
8734
|
/** @ignore */
|
|
8957
8735
|
size: PropTypes.string
|
|
8958
8736
|
};
|
|
8959
|
-
var defaultProps$
|
|
8737
|
+
var defaultProps$B = {
|
|
8960
8738
|
toggleLabel: 'Toggle dropdown',
|
|
8961
8739
|
type: 'button'
|
|
8962
8740
|
};
|
|
8963
|
-
var SplitButton =
|
|
8741
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8964
8742
|
var id = _ref.id,
|
|
8965
8743
|
bsPrefix = _ref.bsPrefix,
|
|
8966
8744
|
size = _ref.size,
|
|
@@ -8972,17 +8750,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8972
8750
|
onClick = _ref.onClick,
|
|
8973
8751
|
href = _ref.href,
|
|
8974
8752
|
target = _ref.target,
|
|
8975
|
-
menuAlign = _ref.menuAlign,
|
|
8976
8753
|
menuRole = _ref.menuRole,
|
|
8977
8754
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8978
8755
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8979
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "
|
|
8756
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8980
8757
|
|
|
8981
|
-
return /*#__PURE__*/
|
|
8758
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8982
8759
|
ref: ref
|
|
8983
8760
|
}, props, {
|
|
8984
8761
|
as: ButtonGroup
|
|
8985
|
-
}), /*#__PURE__*/
|
|
8762
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8986
8763
|
size: size,
|
|
8987
8764
|
variant: variant,
|
|
8988
8765
|
disabled: props.disabled,
|
|
@@ -8991,24 +8768,23 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8991
8768
|
target: target,
|
|
8992
8769
|
onClick: onClick,
|
|
8993
8770
|
type: type
|
|
8994
|
-
}, title), /*#__PURE__*/
|
|
8771
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8995
8772
|
split: true,
|
|
8996
8773
|
id: id ? id.toString() : undefined,
|
|
8997
8774
|
size: size,
|
|
8998
8775
|
variant: variant,
|
|
8999
8776
|
disabled: props.disabled,
|
|
9000
8777
|
childBsPrefix: bsPrefix
|
|
9001
|
-
}, /*#__PURE__*/
|
|
8778
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
9002
8779
|
className: "sr-only"
|
|
9003
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
9004
|
-
align: menuAlign,
|
|
8780
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
9005
8781
|
role: menuRole,
|
|
9006
8782
|
renderOnMount: renderMenuOnMount,
|
|
9007
8783
|
rootCloseEvent: rootCloseEvent
|
|
9008
8784
|
}, children));
|
|
9009
8785
|
});
|
|
9010
|
-
SplitButton.propTypes = propTypes;
|
|
9011
|
-
SplitButton.defaultProps = defaultProps$
|
|
8786
|
+
SplitButton.propTypes = propTypes$a;
|
|
8787
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
9012
8788
|
SplitButton.displayName = 'SplitButton';
|
|
9013
8789
|
|
|
9014
8790
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9044,14 +8820,14 @@ var TabContainer = function TabContainer(props) {
|
|
|
9044
8820
|
}
|
|
9045
8821
|
};
|
|
9046
8822
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
9047
|
-
return /*#__PURE__*/
|
|
8823
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9048
8824
|
value: tabContext
|
|
9049
|
-
}, /*#__PURE__*/
|
|
8825
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9050
8826
|
value: onSelect || null
|
|
9051
8827
|
}, children));
|
|
9052
8828
|
};
|
|
9053
8829
|
|
|
9054
|
-
var TabContent =
|
|
8830
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9055
8831
|
var bsPrefix = _ref.bsPrefix,
|
|
9056
8832
|
_ref$as = _ref.as,
|
|
9057
8833
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -9059,7 +8835,7 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9059
8835
|
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9060
8836
|
|
|
9061
8837
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9062
|
-
return /*#__PURE__*/
|
|
8838
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9063
8839
|
ref: ref
|
|
9064
8840
|
}, props, {
|
|
9065
8841
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9087,7 +8863,7 @@ function useTabContext(props) {
|
|
|
9087
8863
|
});
|
|
9088
8864
|
}
|
|
9089
8865
|
|
|
9090
|
-
var TabPane =
|
|
8866
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9091
8867
|
var _useTabContext = useTabContext(props),
|
|
9092
8868
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9093
8869
|
className = _useTabContext.className,
|
|
@@ -9102,13 +8878,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9102
8878
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9103
8879
|
Transition = _useTabContext.transition,
|
|
9104
8880
|
_useTabContext$as = _useTabContext.as,
|
|
9105
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9106
|
-
_useTabContext.eventKey
|
|
9107
|
-
|
|
8881
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8882
|
+
_ = _useTabContext.eventKey,
|
|
8883
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9108
8884
|
|
|
9109
8885
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9110
8886
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9111
|
-
var pane = /*#__PURE__*/
|
|
8887
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9112
8888
|
ref: ref,
|
|
9113
8889
|
role: "tabpanel",
|
|
9114
8890
|
"aria-hidden": !active,
|
|
@@ -9116,7 +8892,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9116
8892
|
active: active
|
|
9117
8893
|
})
|
|
9118
8894
|
}));
|
|
9119
|
-
if (Transition) pane = /*#__PURE__*/
|
|
8895
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9120
8896
|
in: active,
|
|
9121
8897
|
onEnter: onEnter,
|
|
9122
8898
|
onEntering: onEntering,
|
|
@@ -9129,9 +8905,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9129
8905
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9130
8906
|
// conflict with the top level one.
|
|
9131
8907
|
|
|
9132
|
-
return /*#__PURE__*/
|
|
8908
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9133
8909
|
value: null
|
|
9134
|
-
}, /*#__PURE__*/
|
|
8910
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9135
8911
|
value: null
|
|
9136
8912
|
}, pane));
|
|
9137
8913
|
});
|
|
@@ -9152,13 +8928,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9152
8928
|
};
|
|
9153
8929
|
|
|
9154
8930
|
return Tab;
|
|
9155
|
-
}(
|
|
8931
|
+
}(React.Component);
|
|
9156
8932
|
|
|
9157
8933
|
Tab.Container = TabContainer;
|
|
9158
8934
|
Tab.Content = TabContent;
|
|
9159
8935
|
Tab.Pane = TabPane;
|
|
9160
8936
|
|
|
9161
|
-
|
|
8937
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9162
8938
|
var bsPrefix = _ref.bsPrefix,
|
|
9163
8939
|
className = _ref.className,
|
|
9164
8940
|
striped = _ref.striped,
|
|
@@ -9172,7 +8948,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9172
8948
|
|
|
9173
8949
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9174
8950
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9175
|
-
var table = /*#__PURE__*/
|
|
8951
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9176
8952
|
className: classes,
|
|
9177
8953
|
ref: ref
|
|
9178
8954
|
}));
|
|
@@ -9184,7 +8960,7 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9184
8960
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9185
8961
|
}
|
|
9186
8962
|
|
|
9187
|
-
return /*#__PURE__*/
|
|
8963
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9188
8964
|
className: responsiveClass
|
|
9189
8965
|
}, table);
|
|
9190
8966
|
}
|
|
@@ -9192,16 +8968,16 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9192
8968
|
return table;
|
|
9193
8969
|
});
|
|
9194
8970
|
|
|
9195
|
-
var ToastContext =
|
|
8971
|
+
var ToastContext = React.createContext({
|
|
9196
8972
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9197
8973
|
onClose: function onClose() {}
|
|
9198
8974
|
});
|
|
9199
8975
|
|
|
9200
|
-
var defaultProps$
|
|
8976
|
+
var defaultProps$C = {
|
|
9201
8977
|
closeLabel: 'Close',
|
|
9202
8978
|
closeButton: true
|
|
9203
8979
|
};
|
|
9204
|
-
var ToastHeader =
|
|
8980
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9205
8981
|
var bsPrefix = _ref.bsPrefix,
|
|
9206
8982
|
closeLabel = _ref.closeLabel,
|
|
9207
8983
|
closeButton = _ref.closeButton,
|
|
@@ -9216,11 +8992,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9216
8992
|
context.onClose(e);
|
|
9217
8993
|
}
|
|
9218
8994
|
});
|
|
9219
|
-
return /*#__PURE__*/
|
|
8995
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9220
8996
|
ref: ref
|
|
9221
8997
|
}, props, {
|
|
9222
8998
|
className: classnames(bsPrefix, className)
|
|
9223
|
-
}), children, closeButton && /*#__PURE__*/
|
|
8999
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9224
9000
|
label: closeLabel,
|
|
9225
9001
|
onClick: handleClick,
|
|
9226
9002
|
className: "ml-2 mb-1",
|
|
@@ -9228,11 +9004,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9228
9004
|
}));
|
|
9229
9005
|
});
|
|
9230
9006
|
ToastHeader.displayName = 'ToastHeader';
|
|
9231
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9007
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9232
9008
|
|
|
9233
9009
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9234
9010
|
|
|
9235
|
-
var Toast =
|
|
9011
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9236
9012
|
var bsPrefix = _ref.bsPrefix,
|
|
9237
9013
|
className = _ref.className,
|
|
9238
9014
|
children = _ref.children,
|
|
@@ -9275,16 +9051,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9275
9051
|
};
|
|
9276
9052
|
}, [onClose]);
|
|
9277
9053
|
var hasAnimation = !!(Transition && animation);
|
|
9278
|
-
var toast = /*#__PURE__*/
|
|
9054
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9279
9055
|
ref: ref,
|
|
9280
9056
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9281
9057
|
role: "alert",
|
|
9282
9058
|
"aria-live": "assertive",
|
|
9283
9059
|
"aria-atomic": "true"
|
|
9284
9060
|
}), children);
|
|
9285
|
-
return /*#__PURE__*/
|
|
9061
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9286
9062
|
value: toastContext
|
|
9287
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9063
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9288
9064
|
in: show,
|
|
9289
9065
|
unmountOnExit: true
|
|
9290
9066
|
}, toast) : toast);
|
|
@@ -9295,11 +9071,11 @@ Object.assign(Toast, {
|
|
|
9295
9071
|
Header: ToastHeader
|
|
9296
9072
|
});
|
|
9297
9073
|
|
|
9298
|
-
var noop = function noop() {
|
|
9074
|
+
var noop$5 = function noop() {
|
|
9299
9075
|
return undefined;
|
|
9300
9076
|
};
|
|
9301
9077
|
|
|
9302
|
-
var ToggleButton =
|
|
9078
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9303
9079
|
var children = _ref.children,
|
|
9304
9080
|
name = _ref.name,
|
|
9305
9081
|
className = _ref.className,
|
|
@@ -9321,13 +9097,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9321
9097
|
var handleBlur = useCallback(function (e) {
|
|
9322
9098
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9323
9099
|
}, []);
|
|
9324
|
-
return /*#__PURE__*/
|
|
9100
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9325
9101
|
ref: ref,
|
|
9326
9102
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9327
9103
|
type: undefined,
|
|
9328
9104
|
active: !!checked,
|
|
9329
9105
|
as: "label"
|
|
9330
|
-
}), /*#__PURE__*/
|
|
9106
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9331
9107
|
name: name,
|
|
9332
9108
|
type: type,
|
|
9333
9109
|
value: value,
|
|
@@ -9337,16 +9113,15 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9337
9113
|
disabled: !!disabled,
|
|
9338
9114
|
onFocus: handleFocus,
|
|
9339
9115
|
onBlur: handleBlur,
|
|
9340
|
-
onChange: onChange || noop
|
|
9116
|
+
onChange: onChange || noop$5
|
|
9341
9117
|
}), children);
|
|
9342
9118
|
});
|
|
9343
9119
|
ToggleButton.displayName = 'ToggleButton';
|
|
9344
9120
|
|
|
9345
|
-
var defaultProps$
|
|
9346
|
-
type: 'radio'
|
|
9347
|
-
vertical: false
|
|
9121
|
+
var defaultProps$D = {
|
|
9122
|
+
type: 'radio'
|
|
9348
9123
|
};
|
|
9349
|
-
var ToggleButtonGroup =
|
|
9124
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9350
9125
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9351
9126
|
value: 'onChange'
|
|
9352
9127
|
}),
|
|
@@ -9384,7 +9159,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9384
9159
|
};
|
|
9385
9160
|
|
|
9386
9161
|
!(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;
|
|
9387
|
-
return /*#__PURE__*/
|
|
9162
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9388
9163
|
ref: ref,
|
|
9389
9164
|
toggle: true
|
|
9390
9165
|
}), map(children, function (child) {
|
|
@@ -9397,7 +9172,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9397
9172
|
return handleToggle(childVal, e);
|
|
9398
9173
|
};
|
|
9399
9174
|
|
|
9400
|
-
return
|
|
9175
|
+
return React.cloneElement(child, {
|
|
9401
9176
|
type: type,
|
|
9402
9177
|
name: child.name || name,
|
|
9403
9178
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9405,41 +9180,41 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9405
9180
|
});
|
|
9406
9181
|
}));
|
|
9407
9182
|
});
|
|
9408
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9183
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9409
9184
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9410
9185
|
|
|
9411
|
-
var defaultProps = {
|
|
9186
|
+
var defaultProps$E = {
|
|
9412
9187
|
placement: 'right'
|
|
9413
9188
|
};
|
|
9414
|
-
var Tooltip =
|
|
9189
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9415
9190
|
var bsPrefix = _ref.bsPrefix,
|
|
9416
9191
|
placement = _ref.placement,
|
|
9417
9192
|
className = _ref.className,
|
|
9418
9193
|
style = _ref.style,
|
|
9419
9194
|
children = _ref.children,
|
|
9420
|
-
arrowProps = _ref.arrowProps
|
|
9421
|
-
_ref.popper
|
|
9422
|
-
_ref.show
|
|
9423
|
-
|
|
9195
|
+
arrowProps = _ref.arrowProps,
|
|
9196
|
+
_ = _ref.popper,
|
|
9197
|
+
_2 = _ref.show,
|
|
9198
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9424
9199
|
|
|
9425
9200
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9426
9201
|
|
|
9427
9202
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9428
9203
|
primaryPlacement = _ref2[0];
|
|
9429
9204
|
|
|
9430
|
-
return /*#__PURE__*/
|
|
9205
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9431
9206
|
ref: ref,
|
|
9432
9207
|
style: style,
|
|
9433
9208
|
role: "tooltip",
|
|
9434
9209
|
"x-placement": primaryPlacement,
|
|
9435
9210
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9436
|
-
}, props), /*#__PURE__*/
|
|
9211
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9437
9212
|
className: "arrow"
|
|
9438
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9213
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9439
9214
|
className: bsPrefix + "-inner"
|
|
9440
9215
|
}, children));
|
|
9441
9216
|
});
|
|
9442
|
-
Tooltip.defaultProps = defaultProps;
|
|
9217
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9443
9218
|
Tooltip.displayName = 'Tooltip';
|
|
9444
9219
|
|
|
9445
|
-
export { DropdownButton as D, Dropdown as a };
|
|
9220
|
+
export { DropdownButton as D, Dropdown$1 as a };
|