@mjhls/mjh-framework 1.0.976 → 1.0.977-docgroup-test-v2
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 +22 -21
- package/dist/cjs/AD300x250x600.js +22 -21
- package/dist/cjs/AD728x90.js +25 -24
- package/dist/cjs/ADFloatingFooter.js +21 -20
- package/dist/cjs/ADFooter.js +4 -4
- package/dist/cjs/ADGutter.js +21 -20
- package/dist/cjs/{ADInfeed-b54f0bda.js → ADInfeed-81006615.js} +4 -4
- package/dist/cjs/ADSkyscraper.js +21 -20
- package/dist/cjs/ADSponsoredResources.js +21 -20
- package/dist/cjs/ADWebcast.js +21 -20
- package/dist/cjs/ADWelcome.js +18 -17
- package/dist/cjs/{ADlgInfeed-4f0850ec.js → ADlgInfeed-0db07099.js} +4 -4
- package/dist/cjs/AccordionPanel.js +6 -6
- package/dist/cjs/AdSlot.js +20 -19
- package/dist/cjs/AdSlotsProvider.js +12 -11
- package/dist/cjs/AlgoliaSearch.js +14178 -31
- package/dist/cjs/AlphabeticList.js +8 -8
- package/dist/cjs/ArticleCarousel.js +13 -13
- package/dist/cjs/ArticleProgramLandingPage.js +50 -50
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -29
- package/dist/cjs/ArticleSeriesListing.js +31 -30
- package/dist/cjs/Auth.js +482 -346
- package/dist/cjs/AuthWrapper.js +1766 -13
- package/dist/cjs/{AuthorComponent-17e1c62b.js → AuthorComponent-39b37d84.js} +1 -1
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-9ebd251f.js} +34 -34
- package/dist/cjs/Breadcrumbs.js +6 -6
- package/dist/cjs/CMEDeck.js +23 -22
- package/dist/cjs/Column2.js +14 -14
- package/dist/cjs/Column3.js +31 -30
- package/dist/cjs/ConferenceArticleCard.js +10 -10
- package/dist/cjs/ContentCardPaginated.js +38 -37
- package/dist/cjs/DeckContent.js +32 -31
- package/dist/cjs/DeckQueue.js +30 -29
- package/dist/cjs/DeckQueuePaginated.js +34 -33
- package/dist/cjs/{Dfp-bcaa7e3f.js → Dfp-9be904d5.js} +13 -12
- package/dist/cjs/EventsDeck.js +28 -28
- package/dist/cjs/ExternalResources.js +47 -47
- package/dist/cjs/Feature.js +7 -7
- package/dist/cjs/ForbesHero.js +10 -10
- package/dist/cjs/GridContent.js +46 -45
- package/dist/cjs/GridContentPaginated.js +47 -46
- package/dist/cjs/GridHero.js +11 -11
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +27 -27
- package/dist/cjs/HealthCareProfessionalModal.js +2 -2
- package/dist/cjs/Hero.js +7 -7
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +48 -48
- package/dist/cjs/HorizontalHero.js +8 -8
- package/dist/cjs/ImageSlider-6c00b878.js +2813 -0
- package/dist/cjs/IssueContentDeck.js +11 -11
- package/dist/cjs/IssueDeck.js +14 -14
- package/dist/cjs/IssueLanding.js +56 -56
- package/dist/cjs/LeftNav.js +20 -19
- package/dist/cjs/MasterDeck.js +31 -30
- package/dist/cjs/MasterDeckPaginated.js +34 -33
- package/dist/cjs/{MediaSeriesCard-ad60f8ab.js → MediaSeriesCard-5bf9813e.js} +1002 -799
- package/dist/cjs/MediaSeriesLanding.js +52 -51
- package/dist/cjs/MediaSeriesLandingPaginated.js +58 -57
- package/dist/cjs/NavDvm.js +11 -11
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +30 -30
- package/dist/cjs/OncliveHero.js +7 -7
- package/dist/cjs/OncliveLargeHero.js +11 -11
- package/dist/cjs/PageFilter.js +4 -4
- package/dist/cjs/{Pagination-7624a3bd.js → Pagination-1e0d5f1d.js} +3 -3
- package/dist/cjs/PartnerDetailListing.js +63 -62
- package/dist/cjs/PartnerDetailListingPaginated.js +63 -62
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/PixelTracking.js +7 -7
- package/dist/cjs/PopUpModal.js +4 -4
- package/dist/cjs/PtceDeck.js +10 -10
- package/dist/cjs/PubSection.js +33 -32
- package/dist/cjs/PubToc.js +6 -6
- package/dist/cjs/PublicationDeck.js +11 -11
- package/dist/cjs/{PublicationFeature-6f89fb97.js → PublicationFeature-5ccf9b13.js} +2 -2
- package/dist/cjs/PublicationLanding.js +31 -27
- package/dist/cjs/QueueDeckExpanded.js +36 -35
- package/dist/cjs/QueueDeckExpandedPaginated.js +39 -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 +18 -17
- package/dist/cjs/{SeriesSlider-08699353.js → SeriesSlider-594b19eb.js} +10 -10
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +13 -13
- package/dist/cjs/{SocialSearchComponent-af6ddcc0.js → SocialSearchComponent-b7faaedc.js} +11 -11
- package/dist/cjs/TaxonomyCard.js +12 -12
- package/dist/cjs/TaxonomyDescription.js +46 -46
- package/dist/cjs/TemplateNormal.js +46 -45
- package/dist/cjs/ThumbnailCard.js +10 -10
- package/dist/cjs/Ustream.js +21 -21
- package/dist/cjs/VerticalHero.js +6 -6
- package/dist/cjs/VideoProgramLandingPage.js +52 -52
- package/dist/cjs/VideoSeriesCard.js +13 -13
- package/dist/cjs/VideoSeriesFilter.js +7 -7
- package/dist/cjs/VideoSeriesLandingPage.js +36 -35
- package/dist/cjs/VideoSeriesListing.js +31 -30
- package/dist/cjs/View.js +204 -143
- package/dist/cjs/YahooHero.js +13 -13
- package/dist/cjs/YoutubeGroup.js +17 -17
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-54228b29.js} +6 -6
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-b1df62f0.js} +7 -7
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-171b9ea5.js → _object-sap-d1978572.js} +1 -1
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-ce86cae7.js} +2 -2
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-77821af0.js} +30 -30
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → core.get-iterator-method-5643aa10.js} +35 -35
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-21887c62.js → define-property-e8404b64.js} +6 -6
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-9673846a.js} +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +73 -0
- package/dist/cjs/{entities-310b46ee.js → entities-df1aed86.js} +5 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-7df78678.js → extends-7c86182f.js} +8 -7
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getPtceActivities.js +4 -4
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +132 -68
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +46 -46
- package/dist/cjs/{getTargeting-1359b868.js → getTargeting-3c5754ac.js} +2 -2
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/index-50be6759.js +105 -0
- package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
- package/dist/cjs/{index-9d365128.js → index-eadd5035.js} +7 -7
- package/dist/cjs/{index-0dbf5088.js → index-eb1c583d.js} +413 -163
- package/dist/cjs/{index-99edf08a.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-44481153.js → index-fc2f1ca2.js} +42 -488
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-2bb721c8.js} +2 -2
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-c1e16606.js} +1 -1
- package/dist/cjs/{index.esm-f93506ac.js → index.esm-d51c9ac6.js} +1 -1
- package/dist/cjs/{index.esm-48e0f0d8.js → index.esm-d81454e7.js} +1 -1
- package/dist/cjs/index.js +147 -145
- package/dist/cjs/{inherits-420ee86f.js → inherits-de66ea16.js} +21 -18
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/{keys-d207942e.js → keys-e982b3fa.js} +6 -6
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-f0783643.js} +58 -10
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-067dd3bc.js} +12 -12
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/{stringify-bbc68047.js → stringify-f7a37a8d.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-d7797c2b.js} +7 -7
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-ec08d471.js → typeof-567e31ff.js} +34 -34
- package/dist/cjs/urlFor.js +4 -4
- package/dist/cjs/{urlForFile-ad96158c.js → urlForFile-29d3815a.js} +1 -1
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-3819e4aa.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-93a37fd0.js} +12 -1
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-d98303e0.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -24
- package/dist/esm/AD300x250x600.js +25 -24
- package/dist/esm/AD728x90.js +28 -27
- package/dist/esm/ADFloatingFooter.js +27 -26
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -26
- package/dist/esm/{ADInfeed-310d113c.js → ADInfeed-6d1fc6bf.js} +9 -9
- package/dist/esm/ADSkyscraper.js +27 -26
- package/dist/esm/ADSponsoredResources.js +27 -26
- package/dist/esm/ADWebcast.js +27 -26
- package/dist/esm/ADWelcome.js +28 -27
- package/dist/esm/{ADlgInfeed-eeaa14e2.js → ADlgInfeed-dc36c928.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -22
- package/dist/esm/AdSlotsProvider.js +13 -12
- package/dist/esm/AlgoliaSearch.js +14202 -55
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +56 -56
- package/dist/esm/ArticleSeriesLandingPage.js +36 -35
- package/dist/esm/ArticleSeriesListing.js +55 -54
- package/dist/esm/Auth.js +553 -417
- package/dist/esm/AuthWrapper.js +1780 -26
- package/dist/esm/{AuthorComponent-b0a47123.js → AuthorComponent-11adff02.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-1e73bd2c.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +78 -77
- package/dist/esm/Column1.js +5 -5
- package/dist/esm/Column2.js +25 -25
- package/dist/esm/Column3.js +50 -49
- package/dist/esm/ConferenceArticleCard.js +23 -23
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/ContentCardPaginated.js +73 -72
- package/dist/esm/DeckContent.js +77 -76
- package/dist/esm/DeckQueue.js +71 -70
- package/dist/esm/DeckQueuePaginated.js +64 -63
- package/dist/esm/{Dfp-e151d2de.js → Dfp-102f0beb.js} +21 -20
- package/dist/esm/EventsDeck.js +88 -88
- package/dist/esm/ExternalResources.js +73 -73
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +146 -145
- package/dist/esm/GridContentPaginated.js +134 -133
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +104 -104
- package/dist/esm/Header.js +8 -8
- package/dist/esm/HealthCareProfessionalModal.js +12 -12
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +70 -70
- package/dist/esm/HorizontalHero.js +26 -26
- package/dist/esm/ImageSlider-f84174cb.js +2804 -0
- package/dist/esm/IssueContentDeck.js +48 -48
- package/dist/esm/IssueDeck.js +45 -45
- package/dist/esm/IssueLanding.js +64 -64
- package/dist/esm/LeftNav.js +33 -32
- package/dist/esm/MasterDeck.js +64 -63
- package/dist/esm/MasterDeckPaginated.js +56 -55
- package/dist/esm/{MediaSeriesCard-b3ee22d7.js → MediaSeriesCard-305a9cb3.js} +1002 -799
- package/dist/esm/MediaSeriesLanding.js +77 -76
- package/dist/esm/MediaSeriesLandingPaginated.js +81 -80
- package/dist/esm/NavDvm.js +54 -54
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +111 -111
- package/dist/esm/NavNative.js +101 -101
- package/dist/esm/OncliveHero.js +19 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/{Pagination-1e09918f.js → Pagination-cd21f8c2.js} +13 -13
- package/dist/esm/PartnerDetailListing.js +98 -97
- package/dist/esm/PartnerDetailListingPaginated.js +94 -93
- package/dist/esm/PdfDownload.js +7 -7
- package/dist/esm/PixelTracking.js +16 -16
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PtceDeck.js +23 -23
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +42 -42
- package/dist/esm/{PublicationFeature-0379cc20.js → PublicationFeature-d88e76b9.js} +23 -23
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +274 -273
- package/dist/esm/QueueDeckExpandedPaginated.js +254 -253
- package/dist/esm/RecentNews.js +20 -20
- package/dist/esm/RelatedContent.js +23 -23
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +13 -13
- package/dist/esm/Schema.js +12 -12
- package/dist/esm/Search.js +10 -10
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +31 -30
- package/dist/esm/{SeriesSlider-b364d074.js → SeriesSlider-f771e20d.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +30 -30
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-77a22145.js → SocialSearchComponent-4b56cd8c.js} +33 -33
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +44 -44
- package/dist/esm/TaxonomyDescription.js +50 -50
- package/dist/esm/TemplateNormal.js +66 -65
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +29 -29
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +64 -64
- package/dist/esm/VideoSeriesCard.js +25 -25
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +41 -40
- package/dist/esm/VideoSeriesListing.js +71 -70
- package/dist/esm/View.js +393 -332
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +48 -48
- package/dist/esm/{_is-array-31d40a83.js → _is-array-8d21b9e3.js} +6 -6
- package/dist/esm/{_iter-detect-72edfd60.js → _iter-detect-98db3b07.js} +7 -7
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-4201ccf6.js → _object-sap-7cee6f84.js} +1 -1
- package/dist/esm/{_object-to-array-fa0feeff.js → _object-to-array-2300e51b.js} +2 -2
- package/dist/esm/{asyncToGenerator-9c835201.js → asyncToGenerator-958ef5fc.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-57a70a56.js} +3 -3
- package/dist/esm/{core.get-iterator-method-8c71f470.js → core.get-iterator-method-ea258bb1.js} +36 -36
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/define-property-5f1bda73.js +18 -0
- package/dist/esm/defineProperty-23a8f8cd.js +68 -0
- package/dist/esm/{defineProperty-3518b6fe.js → defineProperty-8c30428f.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-6d9154b4.js} +5 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-7fbbe94e.js → extends-6d8e3924.js} +8 -8
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getPtceActivities.js +4 -4
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +133 -69
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +46 -46
- package/dist/esm/{getTargeting-260246fb.js → getTargeting-42f9b439.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -5
- package/dist/esm/{index-c7b58dc8.js → index-264bbd3c.js} +822 -571
- package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
- package/dist/esm/{index-6c12bdd5.js → index-755f2cc2.js} +10 -10
- package/dist/esm/{index-fa2ffe86.js → index-79cfd25c.js} +44 -45
- package/dist/esm/index-98ca9cec.js +100 -0
- package/dist/esm/{index-1819118a.js → index-f0fc23eb.js} +44 -490
- package/dist/esm/{index.es-c6222053.js → index.es-a6137319.js} +5 -5
- package/dist/esm/{index.esm-d1125763.js → index.esm-1bd8a0a8.js} +1 -1
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-37268dca.js} +16 -16
- package/dist/esm/{index.esm-c6715e80.js → index.esm-9b042655.js} +1 -1
- package/dist/esm/{index.esm-55f22b35.js → index.esm-eb1e8e80.js} +1 -1
- package/dist/esm/index.js +173 -171
- package/dist/esm/{inherits-d26c739e.js → inherits-a6ba2ec4.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/keys-31dcdb31.js +23 -0
- package/dist/esm/{lodash-ec8c6b48.js → lodash-f97fd99a.js} +58 -10
- package/dist/esm/main-1894c974.js +961 -0
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-9be47857.js} +20 -20
- package/dist/esm/{slicedToArray-99bcfd93.js → slicedToArray-6ebcbfea.js} +12 -12
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-2b084bee.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-47a5394a.js → toConsumableArray-f7074d7c.js} +7 -7
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-d92ed6e0.js → typeof-e9fc0c5d.js} +34 -34
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{urlForFile-0fc42ed8.js → urlForFile-b69adffc.js} +1 -1
- package/dist/esm/{ustream-api-cbba615a.js → ustream-api-d3714624.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-8ed16d48.js} +12 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-406140e0.js → web.dom.iterable-ab4dea5c.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ImageSlider-10cd194f.js +0 -1383
- package/dist/cjs/main-7b5e57b0.js +0 -898
- package/dist/esm/ImageSlider-5ae6287a.js +0 -1375
- package/dist/esm/define-property-a8a00786.js +0 -18
- package/dist/esm/keys-5e9bd229.js +0 -23
- package/dist/esm/main-43ca42fe.js +0 -886
- package/dist/esm/stringify-0c65d837.js +0 -15
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var _typeof = require('./typeof-ec08d471.js');
|
|
3
|
+
var index = require('./index-50be6759.js');
|
|
5
4
|
var React = require('react');
|
|
6
5
|
var PropTypes = require('prop-types');
|
|
7
|
-
var moment = require('./moment-ca3bd9fb.js');
|
|
8
6
|
var ReactDOM = require('react-dom');
|
|
7
|
+
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
8
|
+
var _typeof = require('./typeof-567e31ff.js');
|
|
9
|
+
var index$1 = require('./index-eadd5035.js');
|
|
9
10
|
var urlFor = require('./urlFor.js');
|
|
10
|
-
var
|
|
11
|
-
var BlockContent = require('./BlockContent-8b494587.js');
|
|
12
|
-
var getSerializers = require('./index-0dbf5088.js');
|
|
11
|
+
var moment = require('./moment-aca40de1.js');
|
|
13
12
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
13
|
+
var BlockContent = require('./BlockContent-9ebd251f.js');
|
|
14
|
+
var getSerializers = require('./index-eb1c583d.js');
|
|
14
15
|
|
|
15
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
17
|
|
|
@@ -18,88 +19,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
18
19
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
19
20
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
20
21
|
|
|
21
|
-
function _extends() {
|
|
22
|
-
_extends = Object.assign || function (target) {
|
|
23
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
24
|
-
var source = arguments[i];
|
|
25
|
-
|
|
26
|
-
for (var key in source) {
|
|
27
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
28
|
-
target[key] = source[key];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return target;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return _extends.apply(this, arguments);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
40
|
-
if (source == null) return {};
|
|
41
|
-
var target = {};
|
|
42
|
-
var sourceKeys = Object.keys(source);
|
|
43
|
-
var key, i;
|
|
44
|
-
|
|
45
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
46
|
-
key = sourceKeys[i];
|
|
47
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
48
|
-
target[key] = source[key];
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return target;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
55
|
-
/*!
|
|
56
|
-
Copyright (c) 2017 Jed Watson.
|
|
57
|
-
Licensed under the MIT License (MIT), see
|
|
58
|
-
http://jedwatson.github.io/classnames
|
|
59
|
-
*/
|
|
60
|
-
/* global define */
|
|
61
|
-
|
|
62
|
-
(function () {
|
|
63
|
-
|
|
64
|
-
var hasOwn = {}.hasOwnProperty;
|
|
65
|
-
|
|
66
|
-
function classNames () {
|
|
67
|
-
var classes = [];
|
|
68
|
-
|
|
69
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
70
|
-
var arg = arguments[i];
|
|
71
|
-
if (!arg) continue;
|
|
72
|
-
|
|
73
|
-
var argType = typeof arg;
|
|
74
|
-
|
|
75
|
-
if (argType === 'string' || argType === 'number') {
|
|
76
|
-
classes.push(arg);
|
|
77
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
78
|
-
var inner = classNames.apply(null, arg);
|
|
79
|
-
if (inner) {
|
|
80
|
-
classes.push(inner);
|
|
81
|
-
}
|
|
82
|
-
} else if (argType === 'object') {
|
|
83
|
-
for (var key in arg) {
|
|
84
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
85
|
-
classes.push(key);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return classes.join(' ');
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
if ( module.exports) {
|
|
95
|
-
classNames.default = classNames;
|
|
96
|
-
module.exports = classNames;
|
|
97
|
-
} else {
|
|
98
|
-
window.classNames = classNames;
|
|
99
|
-
}
|
|
100
|
-
}());
|
|
101
|
-
});
|
|
102
|
-
|
|
103
22
|
/**
|
|
104
23
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
105
24
|
*
|
|
@@ -193,7 +112,7 @@ function useUncontrolled(props, config) {
|
|
|
193
112
|
var _ref = result,
|
|
194
113
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
195
114
|
propsValue = _ref[fieldName],
|
|
196
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
115
|
+
rest = index._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
197
116
|
|
|
198
117
|
var handlerName = config[fieldName];
|
|
199
118
|
|
|
@@ -201,19 +120,19 @@ function useUncontrolled(props, config) {
|
|
|
201
120
|
value = _useUncontrolledProp[0],
|
|
202
121
|
handler = _useUncontrolledProp[1];
|
|
203
122
|
|
|
204
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
123
|
+
return index._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
205
124
|
}, props);
|
|
206
125
|
}
|
|
207
126
|
|
|
208
127
|
function _inheritsLoose(subClass, superClass) {
|
|
209
128
|
subClass.prototype = Object.create(superClass.prototype);
|
|
210
129
|
subClass.prototype.constructor = subClass;
|
|
211
|
-
subClass
|
|
130
|
+
index._setPrototypeOf(subClass, superClass);
|
|
212
131
|
}
|
|
213
132
|
|
|
214
133
|
var ThemeContext = React__default['default'].createContext({});
|
|
215
|
-
|
|
216
|
-
|
|
134
|
+
ThemeContext.Consumer;
|
|
135
|
+
ThemeContext.Provider;
|
|
217
136
|
|
|
218
137
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
219
138
|
var prefixes = React.useContext(ThemeContext);
|
|
@@ -230,11 +149,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
230
149
|
return href || null;
|
|
231
150
|
};
|
|
232
151
|
|
|
233
|
-
var context = React__default['default'].createContext(null);
|
|
234
|
-
context.displayName = 'AccordionContext';
|
|
152
|
+
var context$2 = React__default['default'].createContext(null);
|
|
153
|
+
context$2.displayName = 'AccordionContext';
|
|
235
154
|
|
|
236
155
|
function useAccordionToggle(eventKey, onClick) {
|
|
237
|
-
var contextEventKey = React.useContext(context);
|
|
156
|
+
var contextEventKey = React.useContext(context$2);
|
|
238
157
|
var onSelect = React.useContext(SelectableContext);
|
|
239
158
|
return function (e) {
|
|
240
159
|
/*
|
|
@@ -252,7 +171,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
252
171
|
children = _ref.children,
|
|
253
172
|
eventKey = _ref.eventKey,
|
|
254
173
|
onClick = _ref.onClick,
|
|
255
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
174
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
256
175
|
|
|
257
176
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
258
177
|
|
|
@@ -260,22 +179,40 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
260
179
|
props.type = 'button';
|
|
261
180
|
}
|
|
262
181
|
|
|
263
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
182
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
264
183
|
ref: ref,
|
|
265
184
|
onClick: accordionOnClick
|
|
266
185
|
}, props), children);
|
|
267
186
|
});
|
|
268
187
|
|
|
269
|
-
|
|
188
|
+
/**
|
|
189
|
+
* Returns the owner document of a given element.
|
|
190
|
+
*
|
|
191
|
+
* @param node the element
|
|
192
|
+
*/
|
|
193
|
+
function ownerDocument$1(node) {
|
|
270
194
|
return node && node.ownerDocument || document;
|
|
271
195
|
}
|
|
272
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Returns the owner window of a given element.
|
|
199
|
+
*
|
|
200
|
+
* @param node the element
|
|
201
|
+
*/
|
|
202
|
+
|
|
273
203
|
function ownerWindow(node) {
|
|
274
|
-
var doc = ownerDocument(node);
|
|
204
|
+
var doc = ownerDocument$1(node);
|
|
275
205
|
return doc && doc.defaultView || window;
|
|
276
206
|
}
|
|
277
207
|
|
|
278
|
-
|
|
208
|
+
/**
|
|
209
|
+
* Returns one or all computed style properties of an element.
|
|
210
|
+
*
|
|
211
|
+
* @param node the element
|
|
212
|
+
* @param psuedoElement the style property
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
279
216
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
280
217
|
}
|
|
281
218
|
|
|
@@ -304,7 +241,7 @@ function style(node, property) {
|
|
|
304
241
|
var transforms = '';
|
|
305
242
|
|
|
306
243
|
if (typeof property === 'string') {
|
|
307
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
244
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
308
245
|
}
|
|
309
246
|
|
|
310
247
|
Object.keys(property).forEach(function (key) {
|
|
@@ -355,6 +292,11 @@ try {
|
|
|
355
292
|
|
|
356
293
|
/**
|
|
357
294
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
295
|
+
*
|
|
296
|
+
* @param node the element
|
|
297
|
+
* @param eventName the event name
|
|
298
|
+
* @param handle the handler
|
|
299
|
+
* @param options event options
|
|
358
300
|
*/
|
|
359
301
|
function addEventListener(node, eventName, handler, options) {
|
|
360
302
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -377,6 +319,14 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
377
319
|
node.addEventListener(eventName, handler, options);
|
|
378
320
|
}
|
|
379
321
|
|
|
322
|
+
/**
|
|
323
|
+
* A `removeEventListener` ponyfill
|
|
324
|
+
*
|
|
325
|
+
* @param node the element
|
|
326
|
+
* @param eventName the event name
|
|
327
|
+
* @param handle the handler
|
|
328
|
+
* @param options event options
|
|
329
|
+
*/
|
|
380
330
|
function removeEventListener(node, eventName, handler, options) {
|
|
381
331
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
382
332
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -393,18 +343,36 @@ function listen(node, eventName, handler, options) {
|
|
|
393
343
|
};
|
|
394
344
|
}
|
|
395
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Triggers an event on a given element.
|
|
348
|
+
*
|
|
349
|
+
* @param node the element
|
|
350
|
+
* @param eventName the event name to trigger
|
|
351
|
+
* @param bubbles whether the event should bubble up
|
|
352
|
+
* @param cancelable whether the event should be cancelable
|
|
353
|
+
*/
|
|
354
|
+
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
355
|
+
if (bubbles === void 0) {
|
|
356
|
+
bubbles = false;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
if (cancelable === void 0) {
|
|
360
|
+
cancelable = true;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (node) {
|
|
364
|
+
var event = document.createEvent('HTMLEvents');
|
|
365
|
+
event.initEvent(eventName, bubbles, cancelable);
|
|
366
|
+
node.dispatchEvent(event);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
396
370
|
function parseDuration(node) {
|
|
397
371
|
var str = style(node, 'transitionDuration') || '';
|
|
398
372
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
399
373
|
return parseFloat(str) * mult;
|
|
400
374
|
}
|
|
401
375
|
|
|
402
|
-
function triggerTransitionEnd(element) {
|
|
403
|
-
var evt = document.createEvent('HTMLEvents');
|
|
404
|
-
evt.initEvent('transitionend', true, true);
|
|
405
|
-
element.dispatchEvent(evt);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
376
|
function emulateTransitionEnd(element, duration, padding) {
|
|
409
377
|
if (padding === void 0) {
|
|
410
378
|
padding = 5;
|
|
@@ -412,7 +380,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
412
380
|
|
|
413
381
|
var called = false;
|
|
414
382
|
var handle = setTimeout(function () {
|
|
415
|
-
if (!called)
|
|
383
|
+
if (!called) triggerEvent(element, 'transitionend', true);
|
|
416
384
|
}, duration + padding);
|
|
417
385
|
var remove = listen(element, 'transitionend', function () {
|
|
418
386
|
called = true;
|
|
@@ -444,7 +412,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default['
|
|
|
444
412
|
exit: PropTypes__default['default'].number,
|
|
445
413
|
appear: PropTypes__default['default'].number
|
|
446
414
|
}).isRequired]) : null;
|
|
447
|
-
|
|
415
|
+
process.env.NODE_ENV !== 'production' ? PropTypes__default['default'].oneOfType([PropTypes__default['default'].string, PropTypes__default['default'].shape({
|
|
448
416
|
enter: PropTypes__default['default'].string,
|
|
449
417
|
exit: PropTypes__default['default'].string,
|
|
450
418
|
active: PropTypes__default['default'].string
|
|
@@ -826,23 +794,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
826
794
|
}
|
|
827
795
|
|
|
828
796
|
var _this$props = this.props,
|
|
829
|
-
children = _this$props.children
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
797
|
+
children = _this$props.children;
|
|
798
|
+
_this$props.in;
|
|
799
|
+
_this$props.mountOnEnter;
|
|
800
|
+
_this$props.unmountOnExit;
|
|
801
|
+
_this$props.appear;
|
|
802
|
+
_this$props.enter;
|
|
803
|
+
_this$props.exit;
|
|
804
|
+
_this$props.timeout;
|
|
805
|
+
_this$props.addEndListener;
|
|
806
|
+
_this$props.onEnter;
|
|
807
|
+
_this$props.onEntering;
|
|
808
|
+
_this$props.onEntered;
|
|
809
|
+
_this$props.onExit;
|
|
810
|
+
_this$props.onExiting;
|
|
811
|
+
_this$props.onExited;
|
|
812
|
+
_this$props.nodeRef;
|
|
813
|
+
var childProps = index._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
846
814
|
|
|
847
815
|
return (
|
|
848
816
|
/*#__PURE__*/
|
|
@@ -870,7 +838,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
870
838
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
871
839
|
*/
|
|
872
840
|
nodeRef: PropTypes__default['default'].shape({
|
|
873
|
-
current: typeof Element === 'undefined' ? PropTypes__default['default'].any :
|
|
841
|
+
current: typeof Element === 'undefined' ? PropTypes__default['default'].any : function (propValue, key, componentName, location, propFullName, secret) {
|
|
842
|
+
var value = propValue[key];
|
|
843
|
+
return PropTypes__default['default'].instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
844
|
+
}
|
|
874
845
|
}),
|
|
875
846
|
|
|
876
847
|
/**
|
|
@@ -1042,7 +1013,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1042
1013
|
onExited: PropTypes__default['default'].func
|
|
1043
1014
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1044
1015
|
|
|
1045
|
-
function noop() {}
|
|
1016
|
+
function noop$5() {}
|
|
1046
1017
|
|
|
1047
1018
|
Transition.defaultProps = {
|
|
1048
1019
|
in: false,
|
|
@@ -1051,12 +1022,12 @@ Transition.defaultProps = {
|
|
|
1051
1022
|
appear: false,
|
|
1052
1023
|
enter: true,
|
|
1053
1024
|
exit: true,
|
|
1054
|
-
onEnter: noop,
|
|
1055
|
-
onEntering: noop,
|
|
1056
|
-
onEntered: noop,
|
|
1057
|
-
onExit: noop,
|
|
1058
|
-
onExiting: noop,
|
|
1059
|
-
onExited: noop
|
|
1025
|
+
onEnter: noop$5,
|
|
1026
|
+
onEntering: noop$5,
|
|
1027
|
+
onEntered: noop$5,
|
|
1028
|
+
onExit: noop$5,
|
|
1029
|
+
onExiting: noop$5,
|
|
1030
|
+
onExited: noop$5
|
|
1060
1031
|
};
|
|
1061
1032
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1062
1033
|
Transition.EXITED = EXITED;
|
|
@@ -1122,7 +1093,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1122
1093
|
}
|
|
1123
1094
|
|
|
1124
1095
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1125
|
-
var defaultProps = {
|
|
1096
|
+
var defaultProps$E = {
|
|
1126
1097
|
in: false,
|
|
1127
1098
|
timeout: 300,
|
|
1128
1099
|
mountOnEnter: false,
|
|
@@ -1142,7 +1113,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1142
1113
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1143
1114
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1144
1115
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1145
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1116
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1146
1117
|
|
|
1147
1118
|
/* Compute dimension */
|
|
1148
1119
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1178,7 +1149,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1178
1149
|
}, onExiting);
|
|
1179
1150
|
}, [computedDimension, onExiting]);
|
|
1180
1151
|
return /*#__PURE__*/React__default['default'].createElement(Transition // @ts-ignore
|
|
1181
|
-
, _extends({
|
|
1152
|
+
, index._extends({
|
|
1182
1153
|
ref: ref,
|
|
1183
1154
|
addEndListener: transitionEnd
|
|
1184
1155
|
}, props, {
|
|
@@ -1189,25 +1160,29 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1189
1160
|
onExit: handleExit,
|
|
1190
1161
|
onExiting: handleExiting
|
|
1191
1162
|
}), function (state, innerProps) {
|
|
1192
|
-
return React__default['default'].cloneElement(children, _extends({}, innerProps, {
|
|
1193
|
-
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1163
|
+
return React__default['default'].cloneElement(children, index._extends({}, innerProps, {
|
|
1164
|
+
className: index.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1194
1165
|
}));
|
|
1195
1166
|
});
|
|
1196
1167
|
}); // @ts-ignore
|
|
1197
1168
|
|
|
1198
1169
|
// @ts-ignore
|
|
1199
|
-
Collapse.defaultProps = defaultProps;
|
|
1170
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1200
1171
|
|
|
1201
1172
|
var AccordionCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1202
1173
|
var children = _ref.children,
|
|
1203
1174
|
eventKey = _ref.eventKey,
|
|
1204
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1175
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1205
1176
|
|
|
1206
|
-
var contextEventKey = React.useContext(context);
|
|
1207
|
-
|
|
1177
|
+
var contextEventKey = React.useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1178
|
+
// from collapsing the accordion when clicked.
|
|
1179
|
+
|
|
1180
|
+
return /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
1181
|
+
value: null
|
|
1182
|
+
}, /*#__PURE__*/React__default['default'].createElement(Collapse, index._extends({
|
|
1208
1183
|
ref: ref,
|
|
1209
1184
|
in: contextEventKey === eventKey
|
|
1210
|
-
}, props), /*#__PURE__*/React__default['default'].createElement("div", null, React__default['default'].Children.only(children)));
|
|
1185
|
+
}, props), /*#__PURE__*/React__default['default'].createElement("div", null, React__default['default'].Children.only(children))));
|
|
1211
1186
|
});
|
|
1212
1187
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1213
1188
|
|
|
@@ -1222,14 +1197,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1222
1197
|
children = _useUncontrolled.children,
|
|
1223
1198
|
className = _useUncontrolled.className,
|
|
1224
1199
|
onSelect = _useUncontrolled.onSelect,
|
|
1225
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1200
|
+
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1226
1201
|
|
|
1227
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1228
|
-
return /*#__PURE__*/React__default['default'].createElement(context.Provider, {
|
|
1202
|
+
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1203
|
+
return /*#__PURE__*/React__default['default'].createElement(context$2.Provider, {
|
|
1229
1204
|
value: activeKey || null
|
|
1230
1205
|
}, /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
1231
1206
|
value: onSelect || null
|
|
1232
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1207
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1233
1208
|
ref: ref
|
|
1234
1209
|
}, controlledProps, {
|
|
1235
1210
|
className: finalClassName
|
|
@@ -1265,7 +1240,7 @@ function useEventCallback(fn) {
|
|
|
1265
1240
|
}
|
|
1266
1241
|
|
|
1267
1242
|
var _fadeStyles;
|
|
1268
|
-
var defaultProps$
|
|
1243
|
+
var defaultProps$D = {
|
|
1269
1244
|
in: false,
|
|
1270
1245
|
timeout: 300,
|
|
1271
1246
|
mountOnEnter: false,
|
|
@@ -1276,43 +1251,43 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1276
1251
|
var Fade = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1277
1252
|
var className = _ref.className,
|
|
1278
1253
|
children = _ref.children,
|
|
1279
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1254
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1280
1255
|
|
|
1281
1256
|
var handleEnter = React.useCallback(function (node) {
|
|
1282
1257
|
triggerBrowserReflow(node);
|
|
1283
1258
|
if (props.onEnter) props.onEnter(node);
|
|
1284
1259
|
}, [props]);
|
|
1285
|
-
return /*#__PURE__*/React__default['default'].createElement(Transition, _extends({
|
|
1260
|
+
return /*#__PURE__*/React__default['default'].createElement(Transition, index._extends({
|
|
1286
1261
|
ref: ref,
|
|
1287
1262
|
addEndListener: transitionEnd
|
|
1288
1263
|
}, props, {
|
|
1289
1264
|
onEnter: handleEnter
|
|
1290
1265
|
}), function (status, innerProps) {
|
|
1291
|
-
return React__default['default'].cloneElement(children, _extends({}, innerProps, {
|
|
1292
|
-
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1266
|
+
return React__default['default'].cloneElement(children, index._extends({}, innerProps, {
|
|
1267
|
+
className: index.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1293
1268
|
}));
|
|
1294
1269
|
});
|
|
1295
1270
|
});
|
|
1296
|
-
Fade.defaultProps = defaultProps$
|
|
1271
|
+
Fade.defaultProps = defaultProps$D;
|
|
1297
1272
|
Fade.displayName = 'Fade';
|
|
1298
1273
|
|
|
1299
|
-
var propTypes = {
|
|
1274
|
+
var propTypes$a = {
|
|
1300
1275
|
label: PropTypes__default['default'].string.isRequired,
|
|
1301
1276
|
onClick: PropTypes__default['default'].func
|
|
1302
1277
|
};
|
|
1303
|
-
var defaultProps$
|
|
1278
|
+
var defaultProps$C = {
|
|
1304
1279
|
label: 'Close'
|
|
1305
1280
|
};
|
|
1306
1281
|
var CloseButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1307
1282
|
var label = _ref.label,
|
|
1308
1283
|
onClick = _ref.onClick,
|
|
1309
1284
|
className = _ref.className,
|
|
1310
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1285
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1311
1286
|
|
|
1312
|
-
return /*#__PURE__*/React__default['default'].createElement("button", _extends({
|
|
1287
|
+
return /*#__PURE__*/React__default['default'].createElement("button", index._extends({
|
|
1313
1288
|
ref: ref,
|
|
1314
1289
|
type: "button",
|
|
1315
|
-
className: classnames('close', className),
|
|
1290
|
+
className: index.classnames('close', className),
|
|
1316
1291
|
onClick: onClick
|
|
1317
1292
|
}, props), /*#__PURE__*/React__default['default'].createElement("span", {
|
|
1318
1293
|
"aria-hidden": "true"
|
|
@@ -1321,14 +1296,14 @@ var CloseButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1321
1296
|
}, label));
|
|
1322
1297
|
});
|
|
1323
1298
|
CloseButton.displayName = 'CloseButton';
|
|
1324
|
-
CloseButton.propTypes = propTypes;
|
|
1325
|
-
CloseButton.defaultProps = defaultProps$
|
|
1299
|
+
CloseButton.propTypes = propTypes$a;
|
|
1300
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1326
1301
|
|
|
1327
1302
|
var divWithClassName = (function (className) {
|
|
1328
1303
|
return React__default['default'].forwardRef(function (p, ref) {
|
|
1329
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, p, {
|
|
1304
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({}, p, {
|
|
1330
1305
|
ref: ref,
|
|
1331
|
-
className: classnames(p.className, className)
|
|
1306
|
+
className: index.classnames(p.className, className)
|
|
1332
1307
|
}));
|
|
1333
1308
|
});
|
|
1334
1309
|
});
|
|
@@ -1357,12 +1332,12 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1357
1332
|
bsPrefix = _ref2.bsPrefix,
|
|
1358
1333
|
_ref2$as = _ref2.as,
|
|
1359
1334
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1360
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1335
|
+
props = index._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1361
1336
|
|
|
1362
1337
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1363
|
-
return /*#__PURE__*/React__default['default'].createElement(Tag, _extends({
|
|
1338
|
+
return /*#__PURE__*/React__default['default'].createElement(Tag, index._extends({
|
|
1364
1339
|
ref: ref,
|
|
1365
|
-
className: classnames(className, resolvedPrefix)
|
|
1340
|
+
className: index.classnames(className, resolvedPrefix)
|
|
1366
1341
|
}, props));
|
|
1367
1342
|
});
|
|
1368
1343
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1387,7 +1362,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1387
1362
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1388
1363
|
disabled = _ref.disabled,
|
|
1389
1364
|
onKeyDown = _ref.onKeyDown,
|
|
1390
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1365
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1391
1366
|
|
|
1392
1367
|
var handleClick = function handleClick(event) {
|
|
1393
1368
|
var href = props.href,
|
|
@@ -1426,7 +1401,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1426
1401
|
props['aria-disabled'] = true;
|
|
1427
1402
|
}
|
|
1428
1403
|
|
|
1429
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1404
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1430
1405
|
ref: ref
|
|
1431
1406
|
}, props, {
|
|
1432
1407
|
onClick: handleClick,
|
|
@@ -1435,15 +1410,15 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1435
1410
|
});
|
|
1436
1411
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1437
1412
|
|
|
1438
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1439
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1413
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1414
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1440
1415
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1441
|
-
Component: DivStyledAsH4
|
|
1416
|
+
Component: DivStyledAsH4$1
|
|
1442
1417
|
});
|
|
1443
1418
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1444
1419
|
Component: SafeAnchor
|
|
1445
1420
|
});
|
|
1446
|
-
var defaultProps$
|
|
1421
|
+
var defaultProps$B = {
|
|
1447
1422
|
show: true,
|
|
1448
1423
|
transition: Fade,
|
|
1449
1424
|
closeLabel: 'Close alert'
|
|
@@ -1461,7 +1436,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1461
1436
|
onClose = _useUncontrolled.onClose,
|
|
1462
1437
|
dismissible = _useUncontrolled.dismissible,
|
|
1463
1438
|
transition = _useUncontrolled.transition,
|
|
1464
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1439
|
+
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1465
1440
|
|
|
1466
1441
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1467
1442
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1470,17 +1445,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1470
1445
|
}
|
|
1471
1446
|
});
|
|
1472
1447
|
var Transition = transition === true ? Fade : transition;
|
|
1473
|
-
var alert = /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
1448
|
+
var alert = /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
1474
1449
|
role: "alert"
|
|
1475
1450
|
}, Transition ? props : undefined, {
|
|
1476
1451
|
ref: ref,
|
|
1477
|
-
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1452
|
+
className: index.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1478
1453
|
}), dismissible && /*#__PURE__*/React__default['default'].createElement(CloseButton, {
|
|
1479
1454
|
onClick: handleClose,
|
|
1480
1455
|
label: closeLabel
|
|
1481
1456
|
}), children);
|
|
1482
1457
|
if (!Transition) return show ? alert : null;
|
|
1483
|
-
return /*#__PURE__*/React__default['default'].createElement(Transition, _extends({
|
|
1458
|
+
return /*#__PURE__*/React__default['default'].createElement(Transition, index._extends({
|
|
1484
1459
|
unmountOnExit: true
|
|
1485
1460
|
}, props, {
|
|
1486
1461
|
ref: undefined,
|
|
@@ -1488,11 +1463,11 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1488
1463
|
}), alert);
|
|
1489
1464
|
});
|
|
1490
1465
|
Alert.displayName = 'Alert';
|
|
1491
|
-
Alert.defaultProps = defaultProps$
|
|
1466
|
+
Alert.defaultProps = defaultProps$B;
|
|
1492
1467
|
Alert.Link = AlertLink;
|
|
1493
1468
|
Alert.Heading = AlertHeading;
|
|
1494
1469
|
|
|
1495
|
-
var defaultProps$
|
|
1470
|
+
var defaultProps$A = {
|
|
1496
1471
|
pill: false
|
|
1497
1472
|
};
|
|
1498
1473
|
var Badge = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1502,19 +1477,19 @@ var Badge = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1502
1477
|
className = _ref.className,
|
|
1503
1478
|
_ref$as = _ref.as,
|
|
1504
1479
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1480
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1506
1481
|
|
|
1507
1482
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1508
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1483
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1509
1484
|
ref: ref
|
|
1510
1485
|
}, props, {
|
|
1511
|
-
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1486
|
+
className: index.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1512
1487
|
}));
|
|
1513
1488
|
});
|
|
1514
1489
|
Badge.displayName = 'Badge';
|
|
1515
|
-
Badge.defaultProps = defaultProps$
|
|
1490
|
+
Badge.defaultProps = defaultProps$A;
|
|
1516
1491
|
|
|
1517
|
-
var defaultProps$
|
|
1492
|
+
var defaultProps$z = {
|
|
1518
1493
|
active: false,
|
|
1519
1494
|
linkProps: {}
|
|
1520
1495
|
};
|
|
@@ -1531,26 +1506,26 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1531
1506
|
href = _ref.href,
|
|
1532
1507
|
title = _ref.title,
|
|
1533
1508
|
target = _ref.target,
|
|
1534
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1509
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1535
1510
|
|
|
1536
1511
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1537
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1512
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1538
1513
|
ref: ref
|
|
1539
1514
|
}, props, {
|
|
1540
|
-
className: classnames(prefix, className, {
|
|
1515
|
+
className: index.classnames(prefix, className, {
|
|
1541
1516
|
active: active
|
|
1542
1517
|
}),
|
|
1543
1518
|
"aria-current": active ? 'page' : undefined
|
|
1544
|
-
}), active ? children : /*#__PURE__*/React__default['default'].createElement(LinkComponent, _extends({}, linkProps, {
|
|
1519
|
+
}), active ? children : /*#__PURE__*/React__default['default'].createElement(LinkComponent, index._extends({}, linkProps, {
|
|
1545
1520
|
href: href,
|
|
1546
1521
|
title: title,
|
|
1547
1522
|
target: target
|
|
1548
1523
|
}), children));
|
|
1549
1524
|
});
|
|
1550
1525
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1551
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1526
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1552
1527
|
|
|
1553
|
-
var defaultProps$
|
|
1528
|
+
var defaultProps$y = {
|
|
1554
1529
|
label: 'breadcrumb',
|
|
1555
1530
|
listProps: {}
|
|
1556
1531
|
};
|
|
@@ -1562,22 +1537,22 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1562
1537
|
label = _ref.label,
|
|
1563
1538
|
_ref$as = _ref.as,
|
|
1564
1539
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1540
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1566
1541
|
|
|
1567
1542
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1568
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1543
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1569
1544
|
"aria-label": label,
|
|
1570
1545
|
className: className,
|
|
1571
1546
|
ref: ref
|
|
1572
|
-
}, props), /*#__PURE__*/React__default['default'].createElement("ol", _extends({}, listProps, {
|
|
1573
|
-
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1547
|
+
}, props), /*#__PURE__*/React__default['default'].createElement("ol", index._extends({}, listProps, {
|
|
1548
|
+
className: index.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1574
1549
|
}), children));
|
|
1575
1550
|
});
|
|
1576
1551
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1577
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1552
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1578
1553
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1579
1554
|
|
|
1580
|
-
var defaultProps$
|
|
1555
|
+
var defaultProps$x = {
|
|
1581
1556
|
variant: 'primary',
|
|
1582
1557
|
active: false,
|
|
1583
1558
|
disabled: false
|
|
@@ -1591,16 +1566,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1591
1566
|
block = _ref.block,
|
|
1592
1567
|
type = _ref.type,
|
|
1593
1568
|
as = _ref.as,
|
|
1594
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1569
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1595
1570
|
|
|
1596
1571
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1597
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1572
|
+
var classes = index.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1598
1573
|
|
|
1599
1574
|
if (props.href) {
|
|
1600
|
-
return /*#__PURE__*/React__default['default'].createElement(SafeAnchor, _extends({}, props, {
|
|
1575
|
+
return /*#__PURE__*/React__default['default'].createElement(SafeAnchor, index._extends({}, props, {
|
|
1601
1576
|
as: as,
|
|
1602
1577
|
ref: ref,
|
|
1603
|
-
className: classnames(classes, props.disabled && 'disabled')
|
|
1578
|
+
className: index.classnames(classes, props.disabled && 'disabled')
|
|
1604
1579
|
}));
|
|
1605
1580
|
}
|
|
1606
1581
|
|
|
@@ -1615,14 +1590,14 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1615
1590
|
}
|
|
1616
1591
|
|
|
1617
1592
|
var Component = as || 'button';
|
|
1618
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
1593
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
1619
1594
|
className: classes
|
|
1620
1595
|
}));
|
|
1621
1596
|
});
|
|
1622
1597
|
Button.displayName = 'Button';
|
|
1623
|
-
Button.defaultProps = defaultProps$
|
|
1598
|
+
Button.defaultProps = defaultProps$x;
|
|
1624
1599
|
|
|
1625
|
-
var defaultProps$
|
|
1600
|
+
var defaultProps$w = {
|
|
1626
1601
|
vertical: false,
|
|
1627
1602
|
toggle: false,
|
|
1628
1603
|
role: 'group'
|
|
@@ -1635,40 +1610,40 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1635
1610
|
className = _ref.className,
|
|
1636
1611
|
_ref$as = _ref.as,
|
|
1637
1612
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1638
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1613
|
+
rest = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1639
1614
|
|
|
1640
1615
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1641
1616
|
var baseClass = prefix;
|
|
1642
1617
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1643
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, rest, {
|
|
1618
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, rest, {
|
|
1644
1619
|
ref: ref,
|
|
1645
|
-
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1620
|
+
className: index.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1646
1621
|
}));
|
|
1647
1622
|
});
|
|
1648
1623
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1649
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1624
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1650
1625
|
|
|
1651
|
-
var defaultProps$
|
|
1626
|
+
var defaultProps$v = {
|
|
1652
1627
|
role: 'toolbar'
|
|
1653
1628
|
};
|
|
1654
1629
|
var ButtonToolbar = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1655
1630
|
var bsPrefix = _ref.bsPrefix,
|
|
1656
1631
|
className = _ref.className,
|
|
1657
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1632
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1658
1633
|
|
|
1659
1634
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1660
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, props, {
|
|
1635
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({}, props, {
|
|
1661
1636
|
ref: ref,
|
|
1662
|
-
className: classnames(className, prefix)
|
|
1637
|
+
className: index.classnames(className, prefix)
|
|
1663
1638
|
}));
|
|
1664
1639
|
});
|
|
1665
1640
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1666
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1641
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1667
1642
|
|
|
1668
1643
|
var context$1 = React__default['default'].createContext(null);
|
|
1669
1644
|
context$1.displayName = 'CardContext';
|
|
1670
1645
|
|
|
1671
|
-
var defaultProps$
|
|
1646
|
+
var defaultProps$u = {
|
|
1672
1647
|
variant: null
|
|
1673
1648
|
};
|
|
1674
1649
|
var CardImg = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1678,16 +1653,16 @@ function (_ref, ref) {
|
|
|
1678
1653
|
variant = _ref.variant,
|
|
1679
1654
|
_ref$as = _ref.as,
|
|
1680
1655
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1681
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1656
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1682
1657
|
|
|
1683
1658
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1684
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1659
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1685
1660
|
ref: ref,
|
|
1686
|
-
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1661
|
+
className: index.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1687
1662
|
}, props));
|
|
1688
1663
|
});
|
|
1689
1664
|
CardImg.displayName = 'CardImg';
|
|
1690
|
-
CardImg.defaultProps = defaultProps$
|
|
1665
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1691
1666
|
|
|
1692
1667
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1693
1668
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1707,7 +1682,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1707
1682
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1708
1683
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1709
1684
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1710
|
-
var defaultProps$
|
|
1685
|
+
var defaultProps$t = {
|
|
1711
1686
|
body: false
|
|
1712
1687
|
};
|
|
1713
1688
|
var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -1720,7 +1695,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1720
1695
|
children = _ref.children,
|
|
1721
1696
|
_ref$as = _ref.as,
|
|
1722
1697
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1723
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1698
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1724
1699
|
|
|
1725
1700
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1726
1701
|
var cardContext = React.useMemo(function () {
|
|
@@ -1730,17 +1705,17 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1730
1705
|
}, [prefix]);
|
|
1731
1706
|
return /*#__PURE__*/React__default['default'].createElement(context$1.Provider, {
|
|
1732
1707
|
value: cardContext
|
|
1733
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
1708
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1734
1709
|
ref: ref
|
|
1735
1710
|
}, props, {
|
|
1736
|
-
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1711
|
+
className: index.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1737
1712
|
}), body ?
|
|
1738
1713
|
/*#__PURE__*/
|
|
1739
1714
|
// @ts-ignore
|
|
1740
1715
|
React__default['default'].createElement(CardBody, null, children) : children));
|
|
1741
1716
|
});
|
|
1742
1717
|
Card.displayName = 'Card';
|
|
1743
|
-
Card.defaultProps = defaultProps$
|
|
1718
|
+
Card.defaultProps = defaultProps$t;
|
|
1744
1719
|
Card.Img = CardImg;
|
|
1745
1720
|
Card.Title = CardTitle;
|
|
1746
1721
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1873,6 +1848,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1873
1848
|
/**
|
|
1874
1849
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1875
1850
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1851
|
+
*
|
|
1852
|
+
*
|
|
1853
|
+
*
|
|
1854
|
+
* ```tsx
|
|
1855
|
+
* const { set, clear } = useTimeout();
|
|
1856
|
+
* const [hello, showHello] = useState(false);
|
|
1857
|
+
* //Display hello after 5 seconds
|
|
1858
|
+
* set(() => showHello(true), 5000);
|
|
1859
|
+
* return (
|
|
1860
|
+
* <div className="App">
|
|
1861
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1862
|
+
* </div>
|
|
1863
|
+
* );
|
|
1864
|
+
* ```
|
|
1876
1865
|
*/
|
|
1877
1866
|
|
|
1878
1867
|
|
|
@@ -1913,7 +1902,22 @@ function useTimeout() {
|
|
|
1913
1902
|
|
|
1914
1903
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1915
1904
|
|
|
1916
|
-
var CarouselItem =
|
|
1905
|
+
var CarouselItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
1906
|
+
var _ref$as = _ref.as,
|
|
1907
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1908
|
+
bsPrefix = _ref.bsPrefix,
|
|
1909
|
+
children = _ref.children,
|
|
1910
|
+
className = _ref.className,
|
|
1911
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1912
|
+
|
|
1913
|
+
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1914
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
1915
|
+
ref: ref
|
|
1916
|
+
}, props, {
|
|
1917
|
+
className: finalClassName
|
|
1918
|
+
}), children);
|
|
1919
|
+
});
|
|
1920
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1917
1921
|
|
|
1918
1922
|
/**
|
|
1919
1923
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1930,9 +1934,23 @@ function map(children, func) {
|
|
|
1930
1934
|
return React__default['default'].isValidElement(child) ? func(child, index++) : child;
|
|
1931
1935
|
});
|
|
1932
1936
|
}
|
|
1937
|
+
/**
|
|
1938
|
+
* Iterates through children that are "valid elements".
|
|
1939
|
+
*
|
|
1940
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1941
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1942
|
+
*/
|
|
1943
|
+
|
|
1944
|
+
|
|
1945
|
+
function forEach(children, func) {
|
|
1946
|
+
var index = 0;
|
|
1947
|
+
React__default['default'].Children.forEach(children, function (child) {
|
|
1948
|
+
if (React__default['default'].isValidElement(child)) func(child, index++);
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1933
1951
|
|
|
1934
1952
|
var SWIPE_THRESHOLD = 40;
|
|
1935
|
-
var propTypes$
|
|
1953
|
+
var propTypes$9 = {
|
|
1936
1954
|
/**
|
|
1937
1955
|
* @default 'carousel'
|
|
1938
1956
|
*/
|
|
@@ -2034,7 +2052,7 @@ var propTypes$1 = {
|
|
|
2034
2052
|
*/
|
|
2035
2053
|
nextLabel: PropTypes__default['default'].string
|
|
2036
2054
|
};
|
|
2037
|
-
var defaultProps$
|
|
2055
|
+
var defaultProps$s = {
|
|
2038
2056
|
slide: true,
|
|
2039
2057
|
fade: false,
|
|
2040
2058
|
controls: true,
|
|
@@ -2098,7 +2116,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2098
2116
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2099
2117
|
className = _useUncontrolled.className,
|
|
2100
2118
|
children = _useUncontrolled.children,
|
|
2101
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2119
|
+
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2102
2120
|
|
|
2103
2121
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2104
2122
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2118,7 +2136,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2118
2136
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2119
2137
|
if (nextDirectionRef.current) {
|
|
2120
2138
|
setDirection(nextDirectionRef.current);
|
|
2121
|
-
nextDirectionRef.current = null;
|
|
2122
2139
|
} else {
|
|
2123
2140
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2124
2141
|
}
|
|
@@ -2130,7 +2147,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2130
2147
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2131
2148
|
}
|
|
2132
2149
|
|
|
2133
|
-
|
|
2150
|
+
React.useEffect(function () {
|
|
2151
|
+
if (nextDirectionRef.current) {
|
|
2152
|
+
nextDirectionRef.current = null;
|
|
2153
|
+
}
|
|
2154
|
+
});
|
|
2155
|
+
var numChildren = 0;
|
|
2156
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2157
|
+
// (and count them, too)
|
|
2158
|
+
|
|
2159
|
+
forEach(children, function (child, index) {
|
|
2160
|
+
++numChildren;
|
|
2161
|
+
|
|
2162
|
+
if (index === activeIndex) {
|
|
2163
|
+
activeChildInterval = child.props.interval;
|
|
2164
|
+
}
|
|
2165
|
+
});
|
|
2166
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2134
2167
|
var prev = React.useCallback(function (event) {
|
|
2135
2168
|
if (isSliding) {
|
|
2136
2169
|
return;
|
|
@@ -2316,17 +2349,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2316
2349
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2317
2350
|
var intervalHandleRef = React.useRef();
|
|
2318
2351
|
React.useEffect(function () {
|
|
2352
|
+
var _ref, _activeChildIntervalR;
|
|
2353
|
+
|
|
2319
2354
|
if (!shouldPlay) {
|
|
2320
2355
|
return undefined;
|
|
2321
2356
|
}
|
|
2322
2357
|
|
|
2323
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2358
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2324
2359
|
return function () {
|
|
2325
2360
|
if (intervalHandleRef.current !== null) {
|
|
2326
2361
|
clearInterval(intervalHandleRef.current);
|
|
2327
2362
|
}
|
|
2328
2363
|
};
|
|
2329
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2364
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2330
2365
|
var indicatorOnClicks = React.useMemo(function () {
|
|
2331
2366
|
return indicators && Array.from({
|
|
2332
2367
|
length: numChildren
|
|
@@ -2338,7 +2373,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2338
2373
|
};
|
|
2339
2374
|
});
|
|
2340
2375
|
}, [indicators, numChildren, onSelect]);
|
|
2341
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
2376
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
2342
2377
|
ref: elementRef
|
|
2343
2378
|
}, props, {
|
|
2344
2379
|
onKeyDown: handleKeyDown,
|
|
@@ -2347,7 +2382,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2347
2382
|
onTouchStart: handleTouchStart,
|
|
2348
2383
|
onTouchMove: handleTouchMove,
|
|
2349
2384
|
onTouchEnd: handleTouchEnd,
|
|
2350
|
-
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2385
|
+
className: index.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2351
2386
|
}), indicators && /*#__PURE__*/React__default['default'].createElement("ol", {
|
|
2352
2387
|
className: prefix + "-indicators"
|
|
2353
2388
|
}, map(children, function (_child, index) {
|
|
@@ -2358,8 +2393,8 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2358
2393
|
});
|
|
2359
2394
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
2360
2395
|
className: prefix + "-inner"
|
|
2361
|
-
}, map(children, function (child, index) {
|
|
2362
|
-
var isActive = index === renderedActiveIndex;
|
|
2396
|
+
}, map(children, function (child, index$1) {
|
|
2397
|
+
var isActive = index$1 === renderedActiveIndex;
|
|
2363
2398
|
return slide ? /*#__PURE__*/React__default['default'].createElement(Transition, {
|
|
2364
2399
|
in: isActive,
|
|
2365
2400
|
onEnter: isActive ? handleEnter : undefined,
|
|
@@ -2367,10 +2402,10 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2367
2402
|
addEndListener: transitionEnd
|
|
2368
2403
|
}, function (status) {
|
|
2369
2404
|
return React__default['default'].cloneElement(child, {
|
|
2370
|
-
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2405
|
+
className: index.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2371
2406
|
});
|
|
2372
2407
|
}) : React__default['default'].cloneElement(child, {
|
|
2373
|
-
className: classnames(child.props.className, isActive && 'active')
|
|
2408
|
+
className: index.classnames(child.props.className, isActive && 'active')
|
|
2374
2409
|
});
|
|
2375
2410
|
})), controls && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default['default'].createElement(SafeAnchor, {
|
|
2376
2411
|
className: prefix + "-control-prev",
|
|
@@ -2387,24 +2422,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2387
2422
|
|
|
2388
2423
|
var Carousel = React__default['default'].forwardRef(CarouselFunc);
|
|
2389
2424
|
Carousel.displayName = 'Carousel';
|
|
2390
|
-
Carousel.propTypes = propTypes$
|
|
2391
|
-
Carousel.defaultProps = defaultProps$
|
|
2425
|
+
Carousel.propTypes = propTypes$9;
|
|
2426
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2392
2427
|
Carousel.Caption = CarouselCaption;
|
|
2393
2428
|
Carousel.Item = CarouselItem;
|
|
2394
2429
|
|
|
2395
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2430
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2396
2431
|
var Col = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2397
2432
|
function (_ref, ref) {
|
|
2398
2433
|
var bsPrefix = _ref.bsPrefix,
|
|
2399
2434
|
className = _ref.className,
|
|
2400
2435
|
_ref$as = _ref.as,
|
|
2401
2436
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2402
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2437
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2403
2438
|
|
|
2404
2439
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2405
2440
|
var spans = [];
|
|
2406
2441
|
var classes = [];
|
|
2407
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2442
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2408
2443
|
var propValue = props[brkPoint];
|
|
2409
2444
|
delete props[brkPoint];
|
|
2410
2445
|
var span;
|
|
@@ -2430,14 +2465,21 @@ function (_ref, ref) {
|
|
|
2430
2465
|
spans.push(prefix); // plain 'col'
|
|
2431
2466
|
}
|
|
2432
2467
|
|
|
2433
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
2468
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
2434
2469
|
ref: ref,
|
|
2435
|
-
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2470
|
+
className: index.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2436
2471
|
}));
|
|
2437
2472
|
});
|
|
2438
2473
|
Col.displayName = 'Col';
|
|
2439
2474
|
|
|
2440
2475
|
var matchesImpl;
|
|
2476
|
+
/**
|
|
2477
|
+
* Checks if a given element matches a selector.
|
|
2478
|
+
*
|
|
2479
|
+
* @param node the element
|
|
2480
|
+
* @param selector the selector
|
|
2481
|
+
*/
|
|
2482
|
+
|
|
2441
2483
|
function matches(node, selector) {
|
|
2442
2484
|
if (!matchesImpl) {
|
|
2443
2485
|
var body = document.body;
|
|
@@ -2452,6 +2494,13 @@ function matches(node, selector) {
|
|
|
2452
2494
|
}
|
|
2453
2495
|
|
|
2454
2496
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2497
|
+
/**
|
|
2498
|
+
* Runs `querySelectorAll` on a given element.
|
|
2499
|
+
*
|
|
2500
|
+
* @param element the element
|
|
2501
|
+
* @param selector the selector
|
|
2502
|
+
*/
|
|
2503
|
+
|
|
2455
2504
|
function qsa(element, selector) {
|
|
2456
2505
|
return toArray(element.querySelectorAll(selector));
|
|
2457
2506
|
}
|
|
@@ -2585,21 +2634,50 @@ function getBasePlacement(placement) {
|
|
|
2585
2634
|
return placement.split('-')[0];
|
|
2586
2635
|
}
|
|
2587
2636
|
|
|
2588
|
-
|
|
2637
|
+
function getBoundingClientRect(element) {
|
|
2638
|
+
var rect = element.getBoundingClientRect();
|
|
2639
|
+
return {
|
|
2640
|
+
width: rect.width,
|
|
2641
|
+
height: rect.height,
|
|
2642
|
+
top: rect.top,
|
|
2643
|
+
right: rect.right,
|
|
2644
|
+
bottom: rect.bottom,
|
|
2645
|
+
left: rect.left,
|
|
2646
|
+
x: rect.left,
|
|
2647
|
+
y: rect.top
|
|
2648
|
+
};
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2589
2651
|
// means it doesn't take into account transforms.
|
|
2652
|
+
|
|
2590
2653
|
function getLayoutRect(element) {
|
|
2654
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2655
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2656
|
+
|
|
2657
|
+
var width = element.offsetWidth;
|
|
2658
|
+
var height = element.offsetHeight;
|
|
2659
|
+
|
|
2660
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2661
|
+
width = clientRect.width;
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2665
|
+
height = clientRect.height;
|
|
2666
|
+
}
|
|
2667
|
+
|
|
2591
2668
|
return {
|
|
2592
2669
|
x: element.offsetLeft,
|
|
2593
2670
|
y: element.offsetTop,
|
|
2594
|
-
width:
|
|
2595
|
-
height:
|
|
2671
|
+
width: width,
|
|
2672
|
+
height: height
|
|
2596
2673
|
};
|
|
2597
2674
|
}
|
|
2598
2675
|
|
|
2599
|
-
/*:: import type { Window } from '../types'; */
|
|
2600
|
-
|
|
2601
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2602
2676
|
function getWindow(node) {
|
|
2677
|
+
if (node == null) {
|
|
2678
|
+
return window;
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2603
2681
|
if (node.toString() !== '[object Window]') {
|
|
2604
2682
|
var ownerDocument = node.ownerDocument;
|
|
2605
2683
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2608,43 +2686,39 @@ function getWindow(node) {
|
|
|
2608
2686
|
return node;
|
|
2609
2687
|
}
|
|
2610
2688
|
|
|
2611
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2612
|
-
Element); */
|
|
2613
|
-
|
|
2614
2689
|
function isElement(node) {
|
|
2615
2690
|
var OwnElement = getWindow(node).Element;
|
|
2616
2691
|
return node instanceof OwnElement || node instanceof Element;
|
|
2617
2692
|
}
|
|
2618
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2619
|
-
HTMLElement); */
|
|
2620
|
-
|
|
2621
2693
|
|
|
2622
2694
|
function isHTMLElement(node) {
|
|
2623
2695
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2624
2696
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2625
2697
|
}
|
|
2626
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2627
|
-
ShadowRoot); */
|
|
2628
|
-
|
|
2629
2698
|
|
|
2630
2699
|
function isShadowRoot(node) {
|
|
2700
|
+
// IE 11 has no ShadowRoot
|
|
2701
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2702
|
+
return false;
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2631
2705
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2632
2706
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2633
2707
|
}
|
|
2634
2708
|
|
|
2635
|
-
function contains(parent, child) {
|
|
2709
|
+
function contains$1(parent, child) {
|
|
2636
2710
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2637
2711
|
|
|
2638
2712
|
if (parent.contains(child)) {
|
|
2639
2713
|
return true;
|
|
2640
2714
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2641
|
-
else if (isShadowRoot(rootNode)) {
|
|
2715
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2642
2716
|
var next = child;
|
|
2643
2717
|
|
|
2644
2718
|
do {
|
|
2645
2719
|
if (next && parent.isSameNode(next)) {
|
|
2646
2720
|
return true;
|
|
2647
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2721
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2648
2722
|
|
|
2649
2723
|
|
|
2650
2724
|
next = next.parentNode || next.host;
|
|
@@ -2659,7 +2733,7 @@ function getNodeName(element) {
|
|
|
2659
2733
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2660
2734
|
}
|
|
2661
2735
|
|
|
2662
|
-
function getComputedStyle$
|
|
2736
|
+
function getComputedStyle$1(element) {
|
|
2663
2737
|
return getWindow(element).getComputedStyle(element);
|
|
2664
2738
|
}
|
|
2665
2739
|
|
|
@@ -2668,8 +2742,9 @@ function isTableElement(element) {
|
|
|
2668
2742
|
}
|
|
2669
2743
|
|
|
2670
2744
|
function getDocumentElement(element) {
|
|
2671
|
-
// $FlowFixMe: assume body is always available
|
|
2672
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2745
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2746
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2747
|
+
element.document) || window.document).documentElement;
|
|
2673
2748
|
}
|
|
2674
2749
|
|
|
2675
2750
|
function getParentNode(element) {
|
|
@@ -2677,12 +2752,13 @@ function getParentNode(element) {
|
|
|
2677
2752
|
return element;
|
|
2678
2753
|
}
|
|
2679
2754
|
|
|
2680
|
-
return (//
|
|
2755
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2756
|
+
// $FlowFixMe[incompatible-return]
|
|
2757
|
+
// $FlowFixMe[prop-missing]
|
|
2681
2758
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2682
|
-
element.parentNode || // DOM Element detected
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2759
|
+
element.parentNode || ( // DOM Element detected
|
|
2760
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2761
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2686
2762
|
getDocumentElement(element) // fallback
|
|
2687
2763
|
|
|
2688
2764
|
);
|
|
@@ -2690,33 +2766,36 @@ function getParentNode(element) {
|
|
|
2690
2766
|
|
|
2691
2767
|
function getTrueOffsetParent(element) {
|
|
2692
2768
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2693
|
-
getComputedStyle$
|
|
2769
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2694
2770
|
return null;
|
|
2695
2771
|
}
|
|
2696
2772
|
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
if (offsetParent) {
|
|
2700
|
-
var html = getDocumentElement(offsetParent);
|
|
2701
|
-
|
|
2702
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2703
|
-
return html;
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
return offsetParent;
|
|
2773
|
+
return element.offsetParent;
|
|
2708
2774
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2709
2775
|
// return the containing block
|
|
2710
2776
|
|
|
2711
2777
|
|
|
2712
2778
|
function getContainingBlock(element) {
|
|
2779
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2780
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2781
|
+
|
|
2782
|
+
if (isIE && isHTMLElement(element)) {
|
|
2783
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2784
|
+
var elementCss = getComputedStyle$1(element);
|
|
2785
|
+
|
|
2786
|
+
if (elementCss.position === 'fixed') {
|
|
2787
|
+
return null;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2790
|
+
|
|
2713
2791
|
var currentNode = getParentNode(element);
|
|
2714
2792
|
|
|
2715
2793
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2716
|
-
var css = getComputedStyle$
|
|
2794
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2717
2795
|
// create a containing block.
|
|
2796
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2718
2797
|
|
|
2719
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2798
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2720
2799
|
return currentNode;
|
|
2721
2800
|
} else {
|
|
2722
2801
|
currentNode = currentNode.parentNode;
|
|
@@ -2732,11 +2811,11 @@ function getOffsetParent(element) {
|
|
|
2732
2811
|
var window = getWindow(element);
|
|
2733
2812
|
var offsetParent = getTrueOffsetParent(element);
|
|
2734
2813
|
|
|
2735
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2814
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2736
2815
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2737
2816
|
}
|
|
2738
2817
|
|
|
2739
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2818
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2740
2819
|
return window;
|
|
2741
2820
|
}
|
|
2742
2821
|
|
|
@@ -2747,8 +2826,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2747
2826
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2748
2827
|
}
|
|
2749
2828
|
|
|
2750
|
-
|
|
2751
|
-
|
|
2829
|
+
var max = Math.max;
|
|
2830
|
+
var min = Math.min;
|
|
2831
|
+
var round = Math.round;
|
|
2832
|
+
|
|
2833
|
+
function within(min$1, value, max$1) {
|
|
2834
|
+
return max(min$1, min(value, max$1));
|
|
2752
2835
|
}
|
|
2753
2836
|
|
|
2754
2837
|
function getFreshSideObject() {
|
|
@@ -2761,7 +2844,7 @@ function getFreshSideObject() {
|
|
|
2761
2844
|
}
|
|
2762
2845
|
|
|
2763
2846
|
function mergePaddingObject(paddingObject) {
|
|
2764
|
-
return Object.assign(
|
|
2847
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2765
2848
|
}
|
|
2766
2849
|
|
|
2767
2850
|
function expandToHashMap(value, keys) {
|
|
@@ -2771,11 +2854,19 @@ function expandToHashMap(value, keys) {
|
|
|
2771
2854
|
}, {});
|
|
2772
2855
|
}
|
|
2773
2856
|
|
|
2857
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2858
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2859
|
+
placement: state.placement
|
|
2860
|
+
})) : padding;
|
|
2861
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2862
|
+
};
|
|
2863
|
+
|
|
2774
2864
|
function arrow(_ref) {
|
|
2775
2865
|
var _state$modifiersData$;
|
|
2776
2866
|
|
|
2777
2867
|
var state = _ref.state,
|
|
2778
|
-
name = _ref.name
|
|
2868
|
+
name = _ref.name,
|
|
2869
|
+
options = _ref.options;
|
|
2779
2870
|
var arrowElement = state.elements.arrow;
|
|
2780
2871
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2781
2872
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2787,7 +2878,7 @@ function arrow(_ref) {
|
|
|
2787
2878
|
return;
|
|
2788
2879
|
}
|
|
2789
2880
|
|
|
2790
|
-
var paddingObject =
|
|
2881
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2791
2882
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2792
2883
|
var minProp = axis === 'y' ? top : left;
|
|
2793
2884
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2807,14 +2898,11 @@ function arrow(_ref) {
|
|
|
2807
2898
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2808
2899
|
}
|
|
2809
2900
|
|
|
2810
|
-
function effect(_ref2) {
|
|
2901
|
+
function effect$1(_ref2) {
|
|
2811
2902
|
var state = _ref2.state,
|
|
2812
|
-
options = _ref2.options
|
|
2813
|
-
name = _ref2.name;
|
|
2903
|
+
options = _ref2.options;
|
|
2814
2904
|
var _options$element = options.element,
|
|
2815
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2816
|
-
_options$padding = options.padding,
|
|
2817
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2905
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2818
2906
|
|
|
2819
2907
|
if (arrowElement == null) {
|
|
2820
2908
|
return;
|
|
@@ -2835,7 +2923,7 @@ function effect(_ref2) {
|
|
|
2835
2923
|
}
|
|
2836
2924
|
}
|
|
2837
2925
|
|
|
2838
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2926
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2839
2927
|
if (process.env.NODE_ENV !== "production") {
|
|
2840
2928
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2841
2929
|
}
|
|
@@ -2844,9 +2932,6 @@ function effect(_ref2) {
|
|
|
2844
2932
|
}
|
|
2845
2933
|
|
|
2846
2934
|
state.elements.arrow = arrowElement;
|
|
2847
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2848
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2849
|
-
};
|
|
2850
2935
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2851
2936
|
|
|
2852
2937
|
|
|
@@ -2855,7 +2940,7 @@ var arrow$1 = {
|
|
|
2855
2940
|
enabled: true,
|
|
2856
2941
|
phase: 'main',
|
|
2857
2942
|
fn: arrow,
|
|
2858
|
-
effect: effect,
|
|
2943
|
+
effect: effect$1,
|
|
2859
2944
|
requires: ['popperOffsets'],
|
|
2860
2945
|
requiresIfExists: ['preventOverflow']
|
|
2861
2946
|
};
|
|
@@ -2869,14 +2954,14 @@ var unsetSides = {
|
|
|
2869
2954
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2870
2955
|
// cleanly divide the values into the appropriate subpixels.
|
|
2871
2956
|
|
|
2872
|
-
function
|
|
2957
|
+
function roundOffsetsByDPR(_ref) {
|
|
2873
2958
|
var x = _ref.x,
|
|
2874
2959
|
y = _ref.y;
|
|
2875
2960
|
var win = window;
|
|
2876
2961
|
var dpr = win.devicePixelRatio || 1;
|
|
2877
2962
|
return {
|
|
2878
|
-
x:
|
|
2879
|
-
y:
|
|
2963
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2964
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2880
2965
|
};
|
|
2881
2966
|
}
|
|
2882
2967
|
|
|
@@ -2889,11 +2974,14 @@ function mapToStyles(_ref2) {
|
|
|
2889
2974
|
offsets = _ref2.offsets,
|
|
2890
2975
|
position = _ref2.position,
|
|
2891
2976
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2892
|
-
adaptive = _ref2.adaptive
|
|
2977
|
+
adaptive = _ref2.adaptive,
|
|
2978
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2893
2979
|
|
|
2894
|
-
var
|
|
2895
|
-
x =
|
|
2896
|
-
|
|
2980
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2981
|
+
_ref3$x = _ref3.x,
|
|
2982
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2983
|
+
_ref3$y = _ref3.y,
|
|
2984
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2897
2985
|
|
|
2898
2986
|
var hasX = offsets.hasOwnProperty('x');
|
|
2899
2987
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2903,23 +2991,32 @@ function mapToStyles(_ref2) {
|
|
|
2903
2991
|
|
|
2904
2992
|
if (adaptive) {
|
|
2905
2993
|
var offsetParent = getOffsetParent(popper);
|
|
2994
|
+
var heightProp = 'clientHeight';
|
|
2995
|
+
var widthProp = 'clientWidth';
|
|
2906
2996
|
|
|
2907
2997
|
if (offsetParent === getWindow(popper)) {
|
|
2908
2998
|
offsetParent = getDocumentElement(popper);
|
|
2909
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2910
2999
|
|
|
2911
|
-
|
|
3000
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3001
|
+
heightProp = 'scrollHeight';
|
|
3002
|
+
widthProp = 'scrollWidth';
|
|
3003
|
+
}
|
|
3004
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
3005
|
+
|
|
2912
3006
|
|
|
3007
|
+
offsetParent = offsetParent;
|
|
2913
3008
|
|
|
2914
3009
|
if (placement === top) {
|
|
2915
|
-
sideY = bottom;
|
|
2916
|
-
|
|
3010
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3011
|
+
|
|
3012
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2917
3013
|
y *= gpuAcceleration ? 1 : -1;
|
|
2918
3014
|
}
|
|
2919
3015
|
|
|
2920
3016
|
if (placement === left) {
|
|
2921
|
-
sideX = right;
|
|
2922
|
-
|
|
3017
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3018
|
+
|
|
3019
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2923
3020
|
x *= gpuAcceleration ? 1 : -1;
|
|
2924
3021
|
}
|
|
2925
3022
|
}
|
|
@@ -2931,22 +3028,24 @@ function mapToStyles(_ref2) {
|
|
|
2931
3028
|
if (gpuAcceleration) {
|
|
2932
3029
|
var _Object$assign;
|
|
2933
3030
|
|
|
2934
|
-
return Object.assign(
|
|
3031
|
+
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));
|
|
2935
3032
|
}
|
|
2936
3033
|
|
|
2937
|
-
return Object.assign(
|
|
3034
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2938
3035
|
}
|
|
2939
3036
|
|
|
2940
|
-
function computeStyles(
|
|
2941
|
-
var state =
|
|
2942
|
-
options =
|
|
3037
|
+
function computeStyles(_ref4) {
|
|
3038
|
+
var state = _ref4.state,
|
|
3039
|
+
options = _ref4.options;
|
|
2943
3040
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2944
3041
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2945
3042
|
_options$adaptive = options.adaptive,
|
|
2946
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3043
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3044
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3045
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2947
3046
|
|
|
2948
3047
|
if (process.env.NODE_ENV !== "production") {
|
|
2949
|
-
var transitionProperty = getComputedStyle$
|
|
3048
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
2950
3049
|
|
|
2951
3050
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
2952
3051
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -2963,22 +3062,24 @@ function computeStyles(_ref3) {
|
|
|
2963
3062
|
};
|
|
2964
3063
|
|
|
2965
3064
|
if (state.modifiersData.popperOffsets != null) {
|
|
2966
|
-
state.styles.popper = Object.assign(
|
|
3065
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2967
3066
|
offsets: state.modifiersData.popperOffsets,
|
|
2968
3067
|
position: state.options.strategy,
|
|
2969
|
-
adaptive: adaptive
|
|
3068
|
+
adaptive: adaptive,
|
|
3069
|
+
roundOffsets: roundOffsets
|
|
2970
3070
|
})));
|
|
2971
3071
|
}
|
|
2972
3072
|
|
|
2973
3073
|
if (state.modifiersData.arrow != null) {
|
|
2974
|
-
state.styles.arrow = Object.assign(
|
|
3074
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2975
3075
|
offsets: state.modifiersData.arrow,
|
|
2976
3076
|
position: 'absolute',
|
|
2977
|
-
adaptive: false
|
|
3077
|
+
adaptive: false,
|
|
3078
|
+
roundOffsets: roundOffsets
|
|
2978
3079
|
})));
|
|
2979
3080
|
}
|
|
2980
3081
|
|
|
2981
|
-
state.attributes.popper = Object.assign(
|
|
3082
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2982
3083
|
'data-popper-placement': state.placement
|
|
2983
3084
|
});
|
|
2984
3085
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -2996,7 +3097,7 @@ var passive = {
|
|
|
2996
3097
|
passive: true
|
|
2997
3098
|
};
|
|
2998
3099
|
|
|
2999
|
-
function effect
|
|
3100
|
+
function effect(_ref) {
|
|
3000
3101
|
var state = _ref.state,
|
|
3001
3102
|
instance = _ref.instance,
|
|
3002
3103
|
options = _ref.options;
|
|
@@ -3036,11 +3137,11 @@ var eventListeners = {
|
|
|
3036
3137
|
enabled: true,
|
|
3037
3138
|
phase: 'write',
|
|
3038
3139
|
fn: function fn() {},
|
|
3039
|
-
effect: effect
|
|
3140
|
+
effect: effect,
|
|
3040
3141
|
data: {}
|
|
3041
3142
|
};
|
|
3042
3143
|
|
|
3043
|
-
var hash = {
|
|
3144
|
+
var hash$1 = {
|
|
3044
3145
|
left: 'right',
|
|
3045
3146
|
right: 'left',
|
|
3046
3147
|
bottom: 'top',
|
|
@@ -3048,34 +3149,20 @@ var hash = {
|
|
|
3048
3149
|
};
|
|
3049
3150
|
function getOppositePlacement(placement) {
|
|
3050
3151
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3051
|
-
return hash[matched];
|
|
3152
|
+
return hash$1[matched];
|
|
3052
3153
|
});
|
|
3053
3154
|
}
|
|
3054
3155
|
|
|
3055
|
-
var hash
|
|
3156
|
+
var hash = {
|
|
3056
3157
|
start: 'end',
|
|
3057
3158
|
end: 'start'
|
|
3058
3159
|
};
|
|
3059
3160
|
function getOppositeVariationPlacement(placement) {
|
|
3060
3161
|
return placement.replace(/start|end/g, function (matched) {
|
|
3061
|
-
return hash
|
|
3162
|
+
return hash[matched];
|
|
3062
3163
|
});
|
|
3063
3164
|
}
|
|
3064
3165
|
|
|
3065
|
-
function getBoundingClientRect(element) {
|
|
3066
|
-
var rect = element.getBoundingClientRect();
|
|
3067
|
-
return {
|
|
3068
|
-
width: rect.width,
|
|
3069
|
-
height: rect.height,
|
|
3070
|
-
top: rect.top,
|
|
3071
|
-
right: rect.right,
|
|
3072
|
-
bottom: rect.bottom,
|
|
3073
|
-
left: rect.left,
|
|
3074
|
-
x: rect.left,
|
|
3075
|
-
y: rect.top
|
|
3076
|
-
};
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
3166
|
function getWindowScroll(node) {
|
|
3080
3167
|
var win = getWindow(node);
|
|
3081
3168
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3138,16 +3225,18 @@ function getViewportRect(element) {
|
|
|
3138
3225
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3139
3226
|
|
|
3140
3227
|
function getDocumentRect(element) {
|
|
3228
|
+
var _element$ownerDocumen;
|
|
3229
|
+
|
|
3141
3230
|
var html = getDocumentElement(element);
|
|
3142
3231
|
var winScroll = getWindowScroll(element);
|
|
3143
|
-
var body = element.ownerDocument.body;
|
|
3144
|
-
var width =
|
|
3145
|
-
var height =
|
|
3232
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3233
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3234
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3146
3235
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3147
3236
|
var y = -winScroll.scrollTop;
|
|
3148
3237
|
|
|
3149
|
-
if (getComputedStyle$
|
|
3150
|
-
x +=
|
|
3238
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3239
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3151
3240
|
}
|
|
3152
3241
|
|
|
3153
3242
|
return {
|
|
@@ -3160,7 +3249,7 @@ function getDocumentRect(element) {
|
|
|
3160
3249
|
|
|
3161
3250
|
function isScrollParent(element) {
|
|
3162
3251
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3163
|
-
var _getComputedStyle = getComputedStyle$
|
|
3252
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3164
3253
|
overflow = _getComputedStyle.overflow,
|
|
3165
3254
|
overflowX = _getComputedStyle.overflowX,
|
|
3166
3255
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3170,7 +3259,7 @@ function isScrollParent(element) {
|
|
|
3170
3259
|
|
|
3171
3260
|
function getScrollParent(node) {
|
|
3172
3261
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3173
|
-
// $FlowFixMe: assume body is always available
|
|
3262
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3174
3263
|
return node.ownerDocument.body;
|
|
3175
3264
|
}
|
|
3176
3265
|
|
|
@@ -3184,26 +3273,28 @@ function getScrollParent(node) {
|
|
|
3184
3273
|
/*
|
|
3185
3274
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3186
3275
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3187
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3276
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3188
3277
|
reference element's position.
|
|
3189
3278
|
*/
|
|
3190
3279
|
|
|
3191
3280
|
function listScrollParents(element, list) {
|
|
3281
|
+
var _element$ownerDocumen;
|
|
3282
|
+
|
|
3192
3283
|
if (list === void 0) {
|
|
3193
3284
|
list = [];
|
|
3194
3285
|
}
|
|
3195
3286
|
|
|
3196
3287
|
var scrollParent = getScrollParent(element);
|
|
3197
|
-
var isBody =
|
|
3288
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3198
3289
|
var win = getWindow(scrollParent);
|
|
3199
3290
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3200
3291
|
var updatedList = list.concat(target);
|
|
3201
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3292
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3202
3293
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3203
3294
|
}
|
|
3204
3295
|
|
|
3205
3296
|
function rectToClientRect(rect) {
|
|
3206
|
-
return Object.assign(
|
|
3297
|
+
return Object.assign({}, rect, {
|
|
3207
3298
|
left: rect.x,
|
|
3208
3299
|
top: rect.y,
|
|
3209
3300
|
right: rect.x + rect.width,
|
|
@@ -3233,16 +3324,16 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3233
3324
|
|
|
3234
3325
|
function getClippingParents(element) {
|
|
3235
3326
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3236
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3327
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3237
3328
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3238
3329
|
|
|
3239
3330
|
if (!isElement(clipperElement)) {
|
|
3240
3331
|
return [];
|
|
3241
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3332
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3242
3333
|
|
|
3243
3334
|
|
|
3244
3335
|
return clippingParents.filter(function (clippingParent) {
|
|
3245
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3336
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3246
3337
|
});
|
|
3247
3338
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3248
3339
|
// clipping parents
|
|
@@ -3254,10 +3345,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3254
3345
|
var firstClippingParent = clippingParents[0];
|
|
3255
3346
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3256
3347
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3257
|
-
accRect.top =
|
|
3258
|
-
accRect.right =
|
|
3259
|
-
accRect.bottom =
|
|
3260
|
-
accRect.left =
|
|
3348
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3349
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3350
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3351
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3261
3352
|
return accRect;
|
|
3262
3353
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3263
3354
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3324,11 +3415,11 @@ function computeOffsets(_ref) {
|
|
|
3324
3415
|
|
|
3325
3416
|
switch (variation) {
|
|
3326
3417
|
case start:
|
|
3327
|
-
offsets[mainAxis] =
|
|
3418
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3328
3419
|
break;
|
|
3329
3420
|
|
|
3330
3421
|
case end:
|
|
3331
|
-
offsets[mainAxis] =
|
|
3422
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3332
3423
|
break;
|
|
3333
3424
|
}
|
|
3334
3425
|
}
|
|
@@ -3367,7 +3458,7 @@ function detectOverflow(state, options) {
|
|
|
3367
3458
|
strategy: 'absolute',
|
|
3368
3459
|
placement: placement
|
|
3369
3460
|
});
|
|
3370
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3461
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3371
3462
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3372
3463
|
// 0 or negative = within the clipping rect
|
|
3373
3464
|
|
|
@@ -3391,9 +3482,6 @@ function detectOverflow(state, options) {
|
|
|
3391
3482
|
return overflowOffsets;
|
|
3392
3483
|
}
|
|
3393
3484
|
|
|
3394
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3395
|
-
|
|
3396
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3397
3485
|
function computeAutoPlacement(state, options) {
|
|
3398
3486
|
if (options === void 0) {
|
|
3399
3487
|
options = {};
|
|
@@ -3410,8 +3498,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3410
3498
|
var variation = getVariation(placement);
|
|
3411
3499
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3412
3500
|
return getVariation(placement) === variation;
|
|
3413
|
-
}) : basePlacements;
|
|
3414
|
-
|
|
3501
|
+
}) : basePlacements;
|
|
3415
3502
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3416
3503
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3417
3504
|
});
|
|
@@ -3422,7 +3509,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3422
3509
|
if (process.env.NODE_ENV !== "production") {
|
|
3423
3510
|
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(' '));
|
|
3424
3511
|
}
|
|
3425
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3512
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3426
3513
|
|
|
3427
3514
|
|
|
3428
3515
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3623,7 +3710,7 @@ function hide(_ref) {
|
|
|
3623
3710
|
isReferenceHidden: isReferenceHidden,
|
|
3624
3711
|
hasPopperEscaped: hasPopperEscaped
|
|
3625
3712
|
};
|
|
3626
|
-
state.attributes.popper = Object.assign(
|
|
3713
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3627
3714
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3628
3715
|
'data-popper-escaped': hasPopperEscaped
|
|
3629
3716
|
});
|
|
@@ -3642,7 +3729,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3642
3729
|
var basePlacement = getBasePlacement(placement);
|
|
3643
3730
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3644
3731
|
|
|
3645
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3732
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3646
3733
|
placement: placement
|
|
3647
3734
|
})) : offset,
|
|
3648
3735
|
skidding = _ref[0],
|
|
@@ -3748,7 +3835,7 @@ function preventOverflow(_ref) {
|
|
|
3748
3835
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3749
3836
|
var referenceRect = state.rects.reference;
|
|
3750
3837
|
var popperRect = state.rects.popper;
|
|
3751
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3838
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3752
3839
|
placement: state.placement
|
|
3753
3840
|
})) : tetherOffset;
|
|
3754
3841
|
var data = {
|
|
@@ -3760,13 +3847,13 @@ function preventOverflow(_ref) {
|
|
|
3760
3847
|
return;
|
|
3761
3848
|
}
|
|
3762
3849
|
|
|
3763
|
-
if (checkMainAxis) {
|
|
3850
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3764
3851
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3765
3852
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3766
3853
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3767
3854
|
var offset = popperOffsets[mainAxis];
|
|
3768
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3769
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3855
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3856
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3770
3857
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3771
3858
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3772
3859
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3793,26 +3880,29 @@ function preventOverflow(_ref) {
|
|
|
3793
3880
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3794
3881
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3795
3882
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3796
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3797
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3798
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3799
|
-
}
|
|
3800
3883
|
|
|
3801
|
-
|
|
3802
|
-
|
|
3884
|
+
if (checkMainAxis) {
|
|
3885
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3886
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3887
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3888
|
+
}
|
|
3889
|
+
|
|
3890
|
+
if (checkAltAxis) {
|
|
3891
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3803
3892
|
|
|
3804
|
-
|
|
3893
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3805
3894
|
|
|
3806
|
-
|
|
3895
|
+
var _offset = popperOffsets[altAxis];
|
|
3807
3896
|
|
|
3808
|
-
|
|
3897
|
+
var _min = _offset + overflow[_mainSide];
|
|
3809
3898
|
|
|
3810
|
-
|
|
3899
|
+
var _max = _offset - overflow[_altSide];
|
|
3811
3900
|
|
|
3812
|
-
|
|
3901
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3813
3902
|
|
|
3814
|
-
|
|
3815
|
-
|
|
3903
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3904
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3905
|
+
}
|
|
3816
3906
|
}
|
|
3817
3907
|
|
|
3818
3908
|
state.modifiersData[name] = data;
|
|
@@ -4043,9 +4133,9 @@ function uniqueBy(arr, fn) {
|
|
|
4043
4133
|
function mergeByName(modifiers) {
|
|
4044
4134
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4045
4135
|
var existing = merged[current.name];
|
|
4046
|
-
merged[current.name] = existing ? Object.assign(
|
|
4047
|
-
options: Object.assign(
|
|
4048
|
-
data: Object.assign(
|
|
4136
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4137
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4138
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4049
4139
|
}) : current;
|
|
4050
4140
|
return merged;
|
|
4051
4141
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4091,7 +4181,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4091
4181
|
var state = {
|
|
4092
4182
|
placement: 'bottom',
|
|
4093
4183
|
orderedModifiers: [],
|
|
4094
|
-
options: Object.assign(
|
|
4184
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4095
4185
|
modifiersData: {},
|
|
4096
4186
|
elements: {
|
|
4097
4187
|
reference: reference,
|
|
@@ -4106,7 +4196,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4106
4196
|
state: state,
|
|
4107
4197
|
setOptions: function setOptions(options) {
|
|
4108
4198
|
cleanupModifierEffects();
|
|
4109
|
-
state.options = Object.assign(
|
|
4199
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4110
4200
|
state.scrollParents = {
|
|
4111
4201
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4112
4202
|
popper: listScrollParents(popper)
|
|
@@ -4138,7 +4228,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4138
4228
|
}
|
|
4139
4229
|
}
|
|
4140
4230
|
|
|
4141
|
-
var _getComputedStyle = getComputedStyle$
|
|
4231
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4142
4232
|
marginTop = _getComputedStyle.marginTop,
|
|
4143
4233
|
marginRight = _getComputedStyle.marginRight,
|
|
4144
4234
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4348,6 +4438,11 @@ var ariaDescribedByModifier = {
|
|
|
4348
4438
|
|
|
4349
4439
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4350
4440
|
var ids = reference.getAttribute('aria-describedby');
|
|
4441
|
+
|
|
4442
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4443
|
+
return;
|
|
4444
|
+
}
|
|
4445
|
+
|
|
4351
4446
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4352
4447
|
}
|
|
4353
4448
|
}
|
|
@@ -4380,7 +4475,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4380
4475
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4381
4476
|
_ref3$modifiers = _ref3.modifiers,
|
|
4382
4477
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4383
|
-
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4478
|
+
config = index._objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4384
4479
|
|
|
4385
4480
|
var popperInstanceRef = React.useRef();
|
|
4386
4481
|
var update = React.useCallback(function () {
|
|
@@ -4446,7 +4541,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4446
4541
|
return undefined;
|
|
4447
4542
|
}
|
|
4448
4543
|
|
|
4449
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4544
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, index._extends({}, config, {
|
|
4450
4545
|
placement: placement,
|
|
4451
4546
|
strategy: strategy,
|
|
4452
4547
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4456,7 +4551,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4456
4551
|
popperInstanceRef.current.destroy();
|
|
4457
4552
|
popperInstanceRef.current = undefined;
|
|
4458
4553
|
setState(function (s) {
|
|
4459
|
-
return _extends({}, s, {
|
|
4554
|
+
return index._extends({}, s, {
|
|
4460
4555
|
attributes: {},
|
|
4461
4556
|
styles: {
|
|
4462
4557
|
popper: initialPopperStyles(strategy)
|
|
@@ -4471,9 +4566,16 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4471
4566
|
}
|
|
4472
4567
|
|
|
4473
4568
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* Checks if an element contains another given element.
|
|
4572
|
+
*
|
|
4573
|
+
* @param context the context element
|
|
4574
|
+
* @param node the element to check
|
|
4575
|
+
*/
|
|
4576
|
+
function contains(context, node) {
|
|
4577
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4578
|
+
// so we need to check on context instead of a document root element.
|
|
4477
4579
|
if (context.contains) return context.contains(node);
|
|
4478
4580
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4479
4581
|
}
|
|
@@ -4547,13 +4649,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4547
4649
|
return componentOrElement != null ? componentOrElement : null;
|
|
4548
4650
|
}
|
|
4549
4651
|
|
|
4550
|
-
var ownerDocument
|
|
4551
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4652
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4653
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4552
4654
|
});
|
|
4553
4655
|
|
|
4554
4656
|
var escapeKeyCode = 27;
|
|
4555
4657
|
|
|
4556
|
-
var noop$
|
|
4658
|
+
var noop$4 = function noop() {};
|
|
4557
4659
|
|
|
4558
4660
|
function isLeftClickEvent(event) {
|
|
4559
4661
|
return event.button === 0;
|
|
@@ -4586,11 +4688,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4586
4688
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4587
4689
|
|
|
4588
4690
|
var preventMouseRootCloseRef = React.useRef(false);
|
|
4589
|
-
var onClose = onRootClose || noop$
|
|
4691
|
+
var onClose = onRootClose || noop$4;
|
|
4590
4692
|
var handleMouseCapture = React.useCallback(function (e) {
|
|
4591
4693
|
var currentTarget = getRefTarget(ref);
|
|
4592
4694
|
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');
|
|
4593
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4695
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4594
4696
|
}, [ref]);
|
|
4595
4697
|
var handleMouse = useEventCallback(function (e) {
|
|
4596
4698
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4603,19 +4705,38 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4603
4705
|
}
|
|
4604
4706
|
});
|
|
4605
4707
|
React.useEffect(function () {
|
|
4606
|
-
if (disabled || ref == null) return undefined;
|
|
4607
|
-
|
|
4708
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4709
|
+
// https://github.com/facebook/react/issues/20074
|
|
4710
|
+
|
|
4711
|
+
var currentEvent = window.event;
|
|
4712
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4608
4713
|
// avoid false positives in the contains() check below if the target DOM
|
|
4609
4714
|
// element is removed in the React mouse callback.
|
|
4610
4715
|
|
|
4611
4716
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4612
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4613
|
-
|
|
4717
|
+
var removeMouseListener = listen(doc, clickTrigger, function (e) {
|
|
4718
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4719
|
+
if (e === currentEvent) {
|
|
4720
|
+
currentEvent = undefined;
|
|
4721
|
+
return;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
handleMouse(e);
|
|
4725
|
+
});
|
|
4726
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4727
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4728
|
+
if (e === currentEvent) {
|
|
4729
|
+
currentEvent = undefined;
|
|
4730
|
+
return;
|
|
4731
|
+
}
|
|
4732
|
+
|
|
4733
|
+
handleKeyUp(e);
|
|
4734
|
+
});
|
|
4614
4735
|
var mobileSafariHackListeners = [];
|
|
4615
4736
|
|
|
4616
4737
|
if ('ontouchstart' in doc.documentElement) {
|
|
4617
4738
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4618
|
-
return listen(el, 'mousemove', noop$
|
|
4739
|
+
return listen(el, 'mousemove', noop$4);
|
|
4619
4740
|
});
|
|
4620
4741
|
}
|
|
4621
4742
|
|
|
@@ -4667,37 +4788,37 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4667
4788
|
_ref$popperConfig = _ref.popperConfig,
|
|
4668
4789
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4669
4790
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4670
|
-
return _extends({}, popperConfig, {
|
|
4791
|
+
return index._extends({}, popperConfig, {
|
|
4671
4792
|
placement: placement,
|
|
4672
4793
|
enabled: enabled,
|
|
4673
|
-
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4794
|
+
modifiers: toModifierArray(index._extends({}, modifiers, {
|
|
4674
4795
|
eventListeners: {
|
|
4675
4796
|
enabled: enableEvents
|
|
4676
4797
|
},
|
|
4677
|
-
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4678
|
-
options: containerPadding ? _extends({
|
|
4798
|
+
preventOverflow: index._extends({}, modifiers.preventOverflow, {
|
|
4799
|
+
options: containerPadding ? index._extends({
|
|
4679
4800
|
padding: containerPadding
|
|
4680
4801
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4681
4802
|
}),
|
|
4682
4803
|
offset: {
|
|
4683
|
-
options: _extends({
|
|
4804
|
+
options: index._extends({
|
|
4684
4805
|
offset: offset
|
|
4685
4806
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4686
4807
|
},
|
|
4687
|
-
arrow: _extends({}, modifiers.arrow, {
|
|
4808
|
+
arrow: index._extends({}, modifiers.arrow, {
|
|
4688
4809
|
enabled: !!arrowElement,
|
|
4689
|
-
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4810
|
+
options: index._extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4690
4811
|
element: arrowElement
|
|
4691
4812
|
})
|
|
4692
4813
|
}),
|
|
4693
|
-
flip: _extends({
|
|
4814
|
+
flip: index._extends({
|
|
4694
4815
|
enabled: !!flip
|
|
4695
4816
|
}, modifiers.flip)
|
|
4696
4817
|
}))
|
|
4697
4818
|
});
|
|
4698
4819
|
}
|
|
4699
4820
|
|
|
4700
|
-
var noop$
|
|
4821
|
+
var noop$3 = function noop() {};
|
|
4701
4822
|
/**
|
|
4702
4823
|
* @memberOf Dropdown
|
|
4703
4824
|
* @param {object} options
|
|
@@ -4761,11 +4882,11 @@ function useDropdownMenu(options) {
|
|
|
4761
4882
|
})),
|
|
4762
4883
|
styles = _usePopper.styles,
|
|
4763
4884
|
attributes = _usePopper.attributes,
|
|
4764
|
-
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4885
|
+
popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4765
4886
|
|
|
4766
4887
|
var menu;
|
|
4767
4888
|
var menuProps = {
|
|
4768
|
-
ref: setMenu || noop$
|
|
4889
|
+
ref: setMenu || noop$3,
|
|
4769
4890
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4770
4891
|
};
|
|
4771
4892
|
var childArgs = {
|
|
@@ -4776,15 +4897,15 @@ function useDropdownMenu(options) {
|
|
|
4776
4897
|
};
|
|
4777
4898
|
|
|
4778
4899
|
if (!shouldUsePopper) {
|
|
4779
|
-
menu = _extends({}, childArgs, {
|
|
4900
|
+
menu = index._extends({}, childArgs, {
|
|
4780
4901
|
props: menuProps
|
|
4781
4902
|
});
|
|
4782
4903
|
} else {
|
|
4783
|
-
menu = _extends({}, popper, childArgs, {
|
|
4784
|
-
props: _extends({}, menuProps, attributes.popper, {
|
|
4904
|
+
menu = index._extends({}, popper, childArgs, {
|
|
4905
|
+
props: index._extends({}, menuProps, attributes.popper, {
|
|
4785
4906
|
style: styles.popper
|
|
4786
4907
|
}),
|
|
4787
|
-
arrowProps: _extends({
|
|
4908
|
+
arrowProps: index._extends({
|
|
4788
4909
|
ref: attachArrowRef
|
|
4789
4910
|
}, attributes.arrow, {
|
|
4790
4911
|
style: styles.arrow
|
|
@@ -4798,7 +4919,7 @@ function useDropdownMenu(options) {
|
|
|
4798
4919
|
});
|
|
4799
4920
|
return menu;
|
|
4800
4921
|
}
|
|
4801
|
-
var propTypes$
|
|
4922
|
+
var propTypes$8 = {
|
|
4802
4923
|
/**
|
|
4803
4924
|
* A render prop that returns a Menu element. The `props`
|
|
4804
4925
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4855,7 +4976,7 @@ var propTypes$2 = {
|
|
|
4855
4976
|
*/
|
|
4856
4977
|
rootCloseEvent: PropTypes__default['default'].string
|
|
4857
4978
|
};
|
|
4858
|
-
var defaultProps$
|
|
4979
|
+
var defaultProps$r = {
|
|
4859
4980
|
usePopper: true
|
|
4860
4981
|
};
|
|
4861
4982
|
|
|
@@ -4865,19 +4986,19 @@ var defaultProps$d = {
|
|
|
4865
4986
|
* @displayName DropdownMenu
|
|
4866
4987
|
* @memberOf Dropdown
|
|
4867
4988
|
*/
|
|
4868
|
-
function DropdownMenu(_ref2) {
|
|
4989
|
+
function DropdownMenu$1(_ref2) {
|
|
4869
4990
|
var children = _ref2.children,
|
|
4870
|
-
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4991
|
+
options = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4871
4992
|
|
|
4872
4993
|
var args = useDropdownMenu(options);
|
|
4873
4994
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, args.hasShown ? children(args) : null);
|
|
4874
4995
|
}
|
|
4875
4996
|
|
|
4876
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4877
|
-
DropdownMenu.propTypes = propTypes$
|
|
4878
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
4997
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
4998
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
4999
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4879
5000
|
|
|
4880
|
-
var noop$
|
|
5001
|
+
var noop$2 = function noop() {};
|
|
4881
5002
|
/**
|
|
4882
5003
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4883
5004
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4891,11 +5012,11 @@ function useDropdownToggle() {
|
|
|
4891
5012
|
_ref$show = _ref.show,
|
|
4892
5013
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4893
5014
|
_ref$toggle = _ref.toggle,
|
|
4894
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5015
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4895
5016
|
setToggle = _ref.setToggle;
|
|
4896
5017
|
|
|
4897
5018
|
return [{
|
|
4898
|
-
ref: setToggle || noop$
|
|
5019
|
+
ref: setToggle || noop$2,
|
|
4899
5020
|
'aria-haspopup': true,
|
|
4900
5021
|
'aria-expanded': !!show
|
|
4901
5022
|
}, {
|
|
@@ -4903,7 +5024,7 @@ function useDropdownToggle() {
|
|
|
4903
5024
|
toggle: toggle
|
|
4904
5025
|
}];
|
|
4905
5026
|
}
|
|
4906
|
-
var propTypes$
|
|
5027
|
+
var propTypes$7 = {
|
|
4907
5028
|
/**
|
|
4908
5029
|
* A render prop that returns a Toggle element. The `props`
|
|
4909
5030
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -4928,7 +5049,7 @@ var propTypes$3 = {
|
|
|
4928
5049
|
* @displayName DropdownToggle
|
|
4929
5050
|
* @memberOf Dropdown
|
|
4930
5051
|
*/
|
|
4931
|
-
function DropdownToggle(_ref2) {
|
|
5052
|
+
function DropdownToggle$1(_ref2) {
|
|
4932
5053
|
var children = _ref2.children;
|
|
4933
5054
|
|
|
4934
5055
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -4944,10 +5065,10 @@ function DropdownToggle(_ref2) {
|
|
|
4944
5065
|
}));
|
|
4945
5066
|
}
|
|
4946
5067
|
|
|
4947
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4948
|
-
DropdownToggle.propTypes = propTypes$
|
|
5068
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5069
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
4949
5070
|
|
|
4950
|
-
var propTypes$
|
|
5071
|
+
var propTypes$6 = {
|
|
4951
5072
|
/**
|
|
4952
5073
|
* A render prop that returns the root dropdown element. The `props`
|
|
4953
5074
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5019,7 +5140,7 @@ var propTypes$4 = {
|
|
|
5019
5140
|
/**
|
|
5020
5141
|
* @displayName Dropdown
|
|
5021
5142
|
*/
|
|
5022
|
-
function Dropdown(_ref) {
|
|
5143
|
+
function Dropdown$1(_ref) {
|
|
5023
5144
|
var drop = _ref.drop,
|
|
5024
5145
|
alignEnd = _ref.alignEnd,
|
|
5025
5146
|
defaultShow = _ref.defaultShow,
|
|
@@ -5161,15 +5282,15 @@ function Dropdown(_ref) {
|
|
|
5161
5282
|
}));
|
|
5162
5283
|
}
|
|
5163
5284
|
|
|
5164
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5165
|
-
Dropdown.propTypes = propTypes$
|
|
5166
|
-
Dropdown.Menu = DropdownMenu;
|
|
5167
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5285
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5286
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5287
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5288
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5168
5289
|
|
|
5169
5290
|
var NavContext = React__default['default'].createContext(null);
|
|
5170
5291
|
NavContext.displayName = 'NavContext';
|
|
5171
5292
|
|
|
5172
|
-
var defaultProps$
|
|
5293
|
+
var defaultProps$q = {
|
|
5173
5294
|
as: SafeAnchor,
|
|
5174
5295
|
disabled: false
|
|
5175
5296
|
};
|
|
@@ -5184,16 +5305,17 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5184
5305
|
onSelect = _ref.onSelect,
|
|
5185
5306
|
propActive = _ref.active,
|
|
5186
5307
|
Component = _ref.as,
|
|
5187
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5308
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5188
5309
|
|
|
5189
5310
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5190
5311
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5191
5312
|
var navContext = React.useContext(NavContext);
|
|
5192
5313
|
|
|
5193
5314
|
var _ref2 = navContext || {},
|
|
5194
|
-
activeKey = _ref2.activeKey;
|
|
5315
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5316
|
+
|
|
5195
5317
|
|
|
5196
|
-
var key = makeEventKey(eventKey
|
|
5318
|
+
var key = makeEventKey(eventKey, href);
|
|
5197
5319
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5198
5320
|
var handleClick = useEventCallback(function (event) {
|
|
5199
5321
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5207,17 +5329,17 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5207
5329
|
/*#__PURE__*/
|
|
5208
5330
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5209
5331
|
// @ts-ignore
|
|
5210
|
-
React__default['default'].createElement(Component, _extends({}, props, {
|
|
5332
|
+
React__default['default'].createElement(Component, index._extends({}, props, {
|
|
5211
5333
|
ref: ref,
|
|
5212
5334
|
href: href,
|
|
5213
5335
|
disabled: disabled,
|
|
5214
|
-
className: classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5336
|
+
className: index.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5215
5337
|
onClick: handleClick
|
|
5216
5338
|
}), children)
|
|
5217
5339
|
);
|
|
5218
5340
|
});
|
|
5219
5341
|
DropdownItem.displayName = 'DropdownItem';
|
|
5220
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5342
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5221
5343
|
|
|
5222
5344
|
var toFnRef = function toFnRef(ref) {
|
|
5223
5345
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5256,8 +5378,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5256
5378
|
}, [refA, refB]);
|
|
5257
5379
|
}
|
|
5258
5380
|
|
|
5259
|
-
var context
|
|
5260
|
-
context
|
|
5381
|
+
var context = React__default['default'].createContext(null);
|
|
5382
|
+
context.displayName = 'NavbarContext';
|
|
5261
5383
|
|
|
5262
5384
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5263
5385
|
// @ts-ignore
|
|
@@ -5270,6 +5392,12 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5270
5392
|
return useMergedRefs(warningRef, ref);
|
|
5271
5393
|
}
|
|
5272
5394
|
|
|
5395
|
+
/**
|
|
5396
|
+
* Checks if a given element has a CSS class.
|
|
5397
|
+
*
|
|
5398
|
+
* @param element the element
|
|
5399
|
+
* @param className the CSS class name
|
|
5400
|
+
*/
|
|
5273
5401
|
function hasClass(element, className) {
|
|
5274
5402
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5275
5403
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5292,12 +5420,14 @@ function getMargins(element) {
|
|
|
5292
5420
|
function usePopperMarginModifiers() {
|
|
5293
5421
|
var overlayRef = React.useRef(null);
|
|
5294
5422
|
var margins = React.useRef(null);
|
|
5423
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5424
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5295
5425
|
var callback = React.useCallback(function (overlay) {
|
|
5296
|
-
if (!overlay || !(hasClass(overlay,
|
|
5426
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5297
5427
|
margins.current = getMargins(overlay);
|
|
5298
5428
|
overlay.style.margin = '0';
|
|
5299
5429
|
overlayRef.current = overlay;
|
|
5300
|
-
}, []);
|
|
5430
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5301
5431
|
var offset = React.useMemo(function () {
|
|
5302
5432
|
return {
|
|
5303
5433
|
name: 'offset',
|
|
@@ -5341,7 +5471,7 @@ function usePopperMarginModifiers() {
|
|
|
5341
5471
|
effect: function effect(_ref2) {
|
|
5342
5472
|
var state = _ref2.state;
|
|
5343
5473
|
|
|
5344
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5474
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5345
5475
|
return undefined;
|
|
5346
5476
|
}
|
|
5347
5477
|
|
|
@@ -5362,18 +5492,30 @@ function usePopperMarginModifiers() {
|
|
|
5362
5492
|
};
|
|
5363
5493
|
}
|
|
5364
5494
|
};
|
|
5365
|
-
}, []);
|
|
5495
|
+
}, [popoverClass]);
|
|
5366
5496
|
return [callback, [offset, popoverArrowMargins]];
|
|
5367
5497
|
}
|
|
5368
5498
|
|
|
5369
|
-
var
|
|
5499
|
+
var alignDirection = PropTypes__default['default'].oneOf(['left', 'right']);
|
|
5500
|
+
var alignPropType = PropTypes__default['default'].oneOfType([alignDirection, PropTypes__default['default'].shape({
|
|
5501
|
+
sm: alignDirection
|
|
5502
|
+
}), PropTypes__default['default'].shape({
|
|
5503
|
+
md: alignDirection
|
|
5504
|
+
}), PropTypes__default['default'].shape({
|
|
5505
|
+
lg: alignDirection
|
|
5506
|
+
}), PropTypes__default['default'].shape({
|
|
5507
|
+
xl: alignDirection
|
|
5508
|
+
})]);
|
|
5509
|
+
var defaultProps$p = {
|
|
5510
|
+
align: 'left',
|
|
5370
5511
|
alignRight: false,
|
|
5371
5512
|
flip: true
|
|
5372
5513
|
}; // TODO: remove this hack
|
|
5373
5514
|
|
|
5374
|
-
var DropdownMenu
|
|
5515
|
+
var DropdownMenu = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5375
5516
|
var bsPrefix = _ref.bsPrefix,
|
|
5376
5517
|
className = _ref.className,
|
|
5518
|
+
align = _ref.align,
|
|
5377
5519
|
alignRight = _ref.alignRight,
|
|
5378
5520
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5379
5521
|
flip = _ref.flip,
|
|
@@ -5382,22 +5524,43 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5382
5524
|
_ref$as = _ref.as,
|
|
5383
5525
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5384
5526
|
popperConfig = _ref.popperConfig,
|
|
5385
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5527
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5386
5528
|
|
|
5387
|
-
var isNavbar = React.useContext(context
|
|
5529
|
+
var isNavbar = React.useContext(context);
|
|
5388
5530
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5389
5531
|
|
|
5390
5532
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
5391
5533
|
popperRef = _usePopperMarginModif[0],
|
|
5392
5534
|
marginModifiers = _usePopperMarginModif[1];
|
|
5393
5535
|
|
|
5536
|
+
var alignClasses = [];
|
|
5537
|
+
|
|
5538
|
+
if (align) {
|
|
5539
|
+
if (typeof align === 'object') {
|
|
5540
|
+
var keys = Object.keys(align);
|
|
5541
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5542
|
+
|
|
5543
|
+
if (keys.length) {
|
|
5544
|
+
var brkPoint = keys[0];
|
|
5545
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5546
|
+
// left in addition to align left classes.
|
|
5547
|
+
// Reuse alignRight to toggle the class below.
|
|
5548
|
+
|
|
5549
|
+
alignRight = direction === 'left';
|
|
5550
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5551
|
+
}
|
|
5552
|
+
} else if (align === 'right') {
|
|
5553
|
+
alignRight = true;
|
|
5554
|
+
}
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5394
5557
|
var _ref2 = useDropdownMenu({
|
|
5395
5558
|
flip: flip,
|
|
5396
5559
|
rootCloseEvent: rootCloseEvent,
|
|
5397
5560
|
show: showProps,
|
|
5398
5561
|
alignEnd: alignRight,
|
|
5399
|
-
usePopper: !isNavbar,
|
|
5400
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5562
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5563
|
+
popperConfig: index._extends({}, popperConfig, {
|
|
5401
5564
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5402
5565
|
})
|
|
5403
5566
|
}),
|
|
@@ -5420,16 +5583,16 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5420
5583
|
if (placement) {
|
|
5421
5584
|
// we don't need the default popper style,
|
|
5422
5585
|
// menus are display: none when not shown.
|
|
5423
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5586
|
+
props.style = index._extends({}, props.style, {}, menuProps.style);
|
|
5424
5587
|
props['x-placement'] = placement;
|
|
5425
5588
|
}
|
|
5426
5589
|
|
|
5427
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, menuProps, {
|
|
5428
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5590
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, menuProps, {
|
|
5591
|
+
className: index.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5429
5592
|
}));
|
|
5430
5593
|
});
|
|
5431
|
-
DropdownMenu
|
|
5432
|
-
DropdownMenu
|
|
5594
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5595
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5433
5596
|
|
|
5434
5597
|
var isRequiredForA11y_1 = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
5435
5598
|
|
|
@@ -5458,15 +5621,14 @@ module.exports = exports['default'];
|
|
|
5458
5621
|
|
|
5459
5622
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5460
5623
|
|
|
5461
|
-
var DropdownToggle
|
|
5624
|
+
var DropdownToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
5462
5625
|
var bsPrefix = _ref.bsPrefix,
|
|
5463
5626
|
split = _ref.split,
|
|
5464
5627
|
className = _ref.className,
|
|
5465
|
-
children = _ref.children,
|
|
5466
5628
|
childBsPrefix = _ref.childBsPrefix,
|
|
5467
5629
|
_ref$as = _ref.as,
|
|
5468
5630
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5469
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5631
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5470
5632
|
|
|
5471
5633
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5472
5634
|
|
|
@@ -5481,12 +5643,12 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5481
5643
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5482
5644
|
// underlying component, to allow it to render size and style variants.
|
|
5483
5645
|
|
|
5484
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
5646
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
5485
5647
|
onClick: toggle,
|
|
5486
|
-
className: classnames(className, prefix, split && prefix + "-split")
|
|
5487
|
-
}, toggleProps, props)
|
|
5648
|
+
className: index.classnames(className, prefix, split && prefix + "-split")
|
|
5649
|
+
}, toggleProps, props));
|
|
5488
5650
|
});
|
|
5489
|
-
DropdownToggle
|
|
5651
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5490
5652
|
|
|
5491
5653
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5492
5654
|
defaultProps: {
|
|
@@ -5501,10 +5663,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5501
5663
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5502
5664
|
Component: 'span'
|
|
5503
5665
|
});
|
|
5504
|
-
var defaultProps$
|
|
5666
|
+
var defaultProps$o = {
|
|
5505
5667
|
navbar: false
|
|
5506
5668
|
};
|
|
5507
|
-
var Dropdown
|
|
5669
|
+
var Dropdown = React__default['default'].forwardRef(function (pProps, ref) {
|
|
5508
5670
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5509
5671
|
show: 'onToggle'
|
|
5510
5672
|
}),
|
|
@@ -5517,9 +5679,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5517
5679
|
onToggle = _useUncontrolled.onToggle,
|
|
5518
5680
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5519
5681
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5520
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5521
|
-
|
|
5522
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5682
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5683
|
+
_useUncontrolled.navbar;
|
|
5684
|
+
var props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5523
5685
|
|
|
5524
5686
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5525
5687
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5543,7 +5705,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5543
5705
|
});
|
|
5544
5706
|
return /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
5545
5707
|
value: handleSelect
|
|
5546
|
-
}, /*#__PURE__*/React__default['default'].createElement(Dropdown, {
|
|
5708
|
+
}, /*#__PURE__*/React__default['default'].createElement(Dropdown$1, {
|
|
5547
5709
|
drop: drop,
|
|
5548
5710
|
show: show,
|
|
5549
5711
|
alignEnd: alignRight,
|
|
@@ -5552,20 +5714,20 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5552
5714
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5553
5715
|
}, function (_ref) {
|
|
5554
5716
|
var dropdownProps = _ref.props;
|
|
5555
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, dropdownProps, {
|
|
5717
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, dropdownProps, {
|
|
5556
5718
|
ref: ref,
|
|
5557
|
-
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5719
|
+
className: index.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5558
5720
|
}));
|
|
5559
5721
|
}));
|
|
5560
5722
|
});
|
|
5561
|
-
Dropdown
|
|
5562
|
-
Dropdown
|
|
5563
|
-
Dropdown
|
|
5564
|
-
Dropdown
|
|
5565
|
-
Dropdown
|
|
5566
|
-
Dropdown
|
|
5567
|
-
Dropdown
|
|
5568
|
-
Dropdown
|
|
5723
|
+
Dropdown.displayName = 'Dropdown';
|
|
5724
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5725
|
+
Dropdown.Divider = DropdownDivider;
|
|
5726
|
+
Dropdown.Header = DropdownHeader;
|
|
5727
|
+
Dropdown.Item = DropdownItem;
|
|
5728
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5729
|
+
Dropdown.Menu = DropdownMenu;
|
|
5730
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5569
5731
|
|
|
5570
5732
|
var propTypes$5 = {
|
|
5571
5733
|
/**
|
|
@@ -5587,6 +5749,15 @@ var propTypes$5 = {
|
|
|
5587
5749
|
/** Disables both Buttons */
|
|
5588
5750
|
disabled: PropTypes__default['default'].bool,
|
|
5589
5751
|
|
|
5752
|
+
/**
|
|
5753
|
+
* Aligns the dropdown menu responsively.
|
|
5754
|
+
*
|
|
5755
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5756
|
+
*
|
|
5757
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5758
|
+
*/
|
|
5759
|
+
menuAlign: alignPropType,
|
|
5760
|
+
|
|
5590
5761
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5591
5762
|
menuRole: PropTypes__default['default'].string,
|
|
5592
5763
|
|
|
@@ -5596,7 +5767,7 @@ var propTypes$5 = {
|
|
|
5596
5767
|
/**
|
|
5597
5768
|
* Which event when fired outside the component will cause it to be closed.
|
|
5598
5769
|
*
|
|
5599
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5770
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5600
5771
|
*/
|
|
5601
5772
|
rootCloseEvent: PropTypes__default['default'].string,
|
|
5602
5773
|
|
|
@@ -5625,23 +5796,25 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5625
5796
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5626
5797
|
variant = _ref.variant,
|
|
5627
5798
|
size = _ref.size,
|
|
5799
|
+
menuAlign = _ref.menuAlign,
|
|
5628
5800
|
menuRole = _ref.menuRole,
|
|
5629
5801
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5630
5802
|
disabled = _ref.disabled,
|
|
5631
5803
|
href = _ref.href,
|
|
5632
5804
|
id = _ref.id,
|
|
5633
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5805
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5634
5806
|
|
|
5635
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
5807
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown, index._extends({
|
|
5636
5808
|
ref: ref
|
|
5637
|
-
}, props), /*#__PURE__*/React__default['default'].createElement(DropdownToggle
|
|
5809
|
+
}, props), /*#__PURE__*/React__default['default'].createElement(DropdownToggle, {
|
|
5638
5810
|
id: id,
|
|
5639
5811
|
href: href,
|
|
5640
5812
|
size: size,
|
|
5641
5813
|
variant: variant,
|
|
5642
5814
|
disabled: disabled,
|
|
5643
5815
|
childBsPrefix: bsPrefix
|
|
5644
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(DropdownMenu
|
|
5816
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(DropdownMenu, {
|
|
5817
|
+
align: menuAlign,
|
|
5645
5818
|
role: menuRole,
|
|
5646
5819
|
renderOnMount: renderMenuOnMount,
|
|
5647
5820
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5743,7 +5916,7 @@ module.exports = exports['default'];
|
|
|
5743
5916
|
|
|
5744
5917
|
_commonjsHelpers.unwrapExports(all_1);
|
|
5745
5918
|
|
|
5746
|
-
var propTypes$
|
|
5919
|
+
var propTypes$4 = {
|
|
5747
5920
|
/**
|
|
5748
5921
|
* Specify whether the feedback is for valid or invalid fields
|
|
5749
5922
|
*
|
|
@@ -5764,15 +5937,15 @@ function (_ref, ref) {
|
|
|
5764
5937
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5765
5938
|
_ref$tooltip = _ref.tooltip,
|
|
5766
5939
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5767
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5940
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5768
5941
|
|
|
5769
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
5942
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
5770
5943
|
ref: ref,
|
|
5771
|
-
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5944
|
+
className: index.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5772
5945
|
}));
|
|
5773
5946
|
});
|
|
5774
5947
|
Feedback.displayName = 'Feedback';
|
|
5775
|
-
Feedback.propTypes = propTypes$
|
|
5948
|
+
Feedback.propTypes = propTypes$4;
|
|
5776
5949
|
|
|
5777
5950
|
var FormContext = React__default['default'].createContext({
|
|
5778
5951
|
controlId: undefined
|
|
@@ -5792,7 +5965,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5792
5965
|
isStatic = _ref.isStatic,
|
|
5793
5966
|
_ref$as = _ref.as,
|
|
5794
5967
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5795
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5968
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5796
5969
|
|
|
5797
5970
|
var _useContext = React.useContext(FormContext),
|
|
5798
5971
|
controlId = _useContext.controlId,
|
|
@@ -5803,11 +5976,11 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5803
5976
|
defaultPrefix = _ref2[1];
|
|
5804
5977
|
|
|
5805
5978
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5806
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
5979
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
5807
5980
|
ref: ref,
|
|
5808
5981
|
type: type,
|
|
5809
5982
|
id: id || controlId,
|
|
5810
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5983
|
+
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5811
5984
|
}));
|
|
5812
5985
|
});
|
|
5813
5986
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
@@ -5817,7 +5990,7 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5817
5990
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5818
5991
|
className = _ref.className,
|
|
5819
5992
|
htmlFor = _ref.htmlFor,
|
|
5820
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5993
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5821
5994
|
|
|
5822
5995
|
var _useContext = React.useContext(FormContext),
|
|
5823
5996
|
controlId = _useContext.controlId,
|
|
@@ -5828,10 +6001,10 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5828
6001
|
defaultPrefix = _ref2[1];
|
|
5829
6002
|
|
|
5830
6003
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5831
|
-
return /*#__PURE__*/React__default['default'].createElement("label", _extends({}, props, {
|
|
6004
|
+
return /*#__PURE__*/React__default['default'].createElement("label", index._extends({}, props, {
|
|
5832
6005
|
ref: ref,
|
|
5833
6006
|
htmlFor: htmlFor || controlId,
|
|
5834
|
-
className: classnames(className, bsPrefix)
|
|
6007
|
+
className: index.classnames(className, bsPrefix)
|
|
5835
6008
|
}));
|
|
5836
6009
|
});
|
|
5837
6010
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
@@ -5862,7 +6035,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5862
6035
|
propCustom = _ref.custom,
|
|
5863
6036
|
_ref$as = _ref.as,
|
|
5864
6037
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5865
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6038
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5866
6039
|
|
|
5867
6040
|
var custom = type === 'switch' ? true : propCustom;
|
|
5868
6041
|
|
|
@@ -5881,8 +6054,8 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5881
6054
|
custom: custom
|
|
5882
6055
|
};
|
|
5883
6056
|
}, [controlId, custom, id]);
|
|
5884
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5885
|
-
var input = /*#__PURE__*/React__default['default'].createElement(FormCheckInput, _extends({}, props, {
|
|
6057
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6058
|
+
var input = /*#__PURE__*/React__default['default'].createElement(FormCheckInput, index._extends({}, props, {
|
|
5886
6059
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5887
6060
|
ref: ref,
|
|
5888
6061
|
isValid: isValid,
|
|
@@ -5895,7 +6068,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5895
6068
|
value: innerFormContext
|
|
5896
6069
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
5897
6070
|
style: style,
|
|
5898
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6071
|
+
className: index.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5899
6072
|
}, children || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, input, hasLabel && /*#__PURE__*/React__default['default'].createElement(FormCheckLabel, {
|
|
5900
6073
|
title: title
|
|
5901
6074
|
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default['default'].createElement(Feedback, {
|
|
@@ -5917,7 +6090,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5917
6090
|
lang = _ref.lang,
|
|
5918
6091
|
_ref$as = _ref.as,
|
|
5919
6092
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5920
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6093
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
5921
6094
|
|
|
5922
6095
|
var _useContext = React.useContext(FormContext),
|
|
5923
6096
|
controlId = _useContext.controlId,
|
|
@@ -5930,12 +6103,12 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5930
6103
|
defaultPrefix = _ref2[1];
|
|
5931
6104
|
|
|
5932
6105
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5933
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6106
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
5934
6107
|
ref: ref,
|
|
5935
6108
|
id: id || controlId,
|
|
5936
6109
|
type: type,
|
|
5937
6110
|
lang: lang,
|
|
5938
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6111
|
+
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
5939
6112
|
}));
|
|
5940
6113
|
});
|
|
5941
6114
|
FormFileInput.displayName = 'FormFileInput';
|
|
@@ -5945,7 +6118,7 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5945
6118
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5946
6119
|
className = _ref.className,
|
|
5947
6120
|
htmlFor = _ref.htmlFor,
|
|
5948
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6121
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5949
6122
|
|
|
5950
6123
|
var _useContext = React.useContext(FormContext),
|
|
5951
6124
|
controlId = _useContext.controlId,
|
|
@@ -5956,10 +6129,10 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5956
6129
|
defaultPrefix = _ref2[1];
|
|
5957
6130
|
|
|
5958
6131
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5959
|
-
return /*#__PURE__*/React__default['default'].createElement("label", _extends({}, props, {
|
|
6132
|
+
return /*#__PURE__*/React__default['default'].createElement("label", index._extends({}, props, {
|
|
5960
6133
|
ref: ref,
|
|
5961
6134
|
htmlFor: htmlFor || controlId,
|
|
5962
|
-
className: classnames(className, bsPrefix),
|
|
6135
|
+
className: index.classnames(className, bsPrefix),
|
|
5963
6136
|
"data-browse": props['data-browse']
|
|
5964
6137
|
}));
|
|
5965
6138
|
});
|
|
@@ -5989,7 +6162,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5989
6162
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5990
6163
|
_ref$inputAs = _ref.inputAs,
|
|
5991
6164
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
5992
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6165
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
5993
6166
|
|
|
5994
6167
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
5995
6168
|
prefix = _ref2[0],
|
|
@@ -6008,7 +6181,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6008
6181
|
};
|
|
6009
6182
|
}, [controlId, custom, id]);
|
|
6010
6183
|
var hasLabel = label != null && label !== false && !children;
|
|
6011
|
-
var input = /*#__PURE__*/React__default['default'].createElement(FormFileInput, _extends({}, props, {
|
|
6184
|
+
var input = /*#__PURE__*/React__default['default'].createElement(FormFileInput, index._extends({}, props, {
|
|
6012
6185
|
ref: ref,
|
|
6013
6186
|
isValid: isValid,
|
|
6014
6187
|
isInvalid: isInvalid,
|
|
@@ -6020,7 +6193,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6020
6193
|
value: innerFormContext
|
|
6021
6194
|
}, /*#__PURE__*/React__default['default'].createElement(Component, {
|
|
6022
6195
|
style: style,
|
|
6023
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6196
|
+
className: index.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6024
6197
|
}, children || /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, custom ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, input, hasLabel && /*#__PURE__*/React__default['default'].createElement(FormFileLabel, {
|
|
6025
6198
|
"data-browse": dataBrowse
|
|
6026
6199
|
}, label)) : /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, hasLabel && /*#__PURE__*/React__default['default'].createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default['default'].createElement(Feedback, {
|
|
@@ -6049,7 +6222,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6049
6222
|
custom = _ref.custom,
|
|
6050
6223
|
_ref$as = _ref.as,
|
|
6051
6224
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6052
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6225
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6053
6226
|
|
|
6054
6227
|
var _useContext = React.useContext(FormContext),
|
|
6055
6228
|
controlId = _useContext.controlId;
|
|
@@ -6084,13 +6257,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6084
6257
|
}
|
|
6085
6258
|
|
|
6086
6259
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6087
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6260
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6088
6261
|
type: type,
|
|
6089
6262
|
size: htmlSize,
|
|
6090
6263
|
ref: ref,
|
|
6091
6264
|
readOnly: readOnly,
|
|
6092
6265
|
id: id || controlId,
|
|
6093
|
-
className: classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6266
|
+
className: index.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6094
6267
|
}));
|
|
6095
6268
|
});
|
|
6096
6269
|
FormControl.displayName = 'FormControl';
|
|
@@ -6105,7 +6278,7 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6105
6278
|
controlId = _ref.controlId,
|
|
6106
6279
|
_ref$as = _ref.as,
|
|
6107
6280
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6108
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6281
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6109
6282
|
|
|
6110
6283
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6111
6284
|
var context = React.useMemo(function () {
|
|
@@ -6115,14 +6288,14 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6115
6288
|
}, [controlId]);
|
|
6116
6289
|
return /*#__PURE__*/React__default['default'].createElement(FormContext.Provider, {
|
|
6117
6290
|
value: context
|
|
6118
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6291
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6119
6292
|
ref: ref,
|
|
6120
|
-
className: classnames(className, bsPrefix)
|
|
6293
|
+
className: index.classnames(className, bsPrefix)
|
|
6121
6294
|
}), children));
|
|
6122
6295
|
});
|
|
6123
6296
|
FormGroup.displayName = 'FormGroup';
|
|
6124
6297
|
|
|
6125
|
-
var defaultProps$
|
|
6298
|
+
var defaultProps$n = {
|
|
6126
6299
|
column: false,
|
|
6127
6300
|
srOnly: false
|
|
6128
6301
|
};
|
|
@@ -6134,18 +6307,18 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6134
6307
|
srOnly = _ref.srOnly,
|
|
6135
6308
|
className = _ref.className,
|
|
6136
6309
|
htmlFor = _ref.htmlFor,
|
|
6137
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6310
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6138
6311
|
|
|
6139
6312
|
var _useContext = React.useContext(FormContext),
|
|
6140
6313
|
controlId = _useContext.controlId;
|
|
6141
6314
|
|
|
6142
6315
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6143
6316
|
var columnClass = 'col-form-label';
|
|
6144
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6145
|
-
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6317
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6318
|
+
var classes = index.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6146
6319
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6147
6320
|
htmlFor = htmlFor || controlId;
|
|
6148
|
-
if (column) return /*#__PURE__*/React__default['default'].createElement(Col, _extends({
|
|
6321
|
+
if (column) return /*#__PURE__*/React__default['default'].createElement(Col, index._extends({
|
|
6149
6322
|
as: "label",
|
|
6150
6323
|
className: classes,
|
|
6151
6324
|
htmlFor: htmlFor
|
|
@@ -6153,7 +6326,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6153
6326
|
return (
|
|
6154
6327
|
/*#__PURE__*/
|
|
6155
6328
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6156
|
-
React__default['default'].createElement(Component, _extends({
|
|
6329
|
+
React__default['default'].createElement(Component, index._extends({
|
|
6157
6330
|
ref: ref,
|
|
6158
6331
|
className: classes,
|
|
6159
6332
|
htmlFor: htmlFor
|
|
@@ -6161,7 +6334,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6161
6334
|
);
|
|
6162
6335
|
});
|
|
6163
6336
|
FormLabel.displayName = 'FormLabel';
|
|
6164
|
-
FormLabel.defaultProps = defaultProps$
|
|
6337
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6165
6338
|
|
|
6166
6339
|
var FormText = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6167
6340
|
function (_ref, ref) {
|
|
@@ -6170,18 +6343,18 @@ function (_ref, ref) {
|
|
|
6170
6343
|
_ref$as = _ref.as,
|
|
6171
6344
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6172
6345
|
muted = _ref.muted,
|
|
6173
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6346
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6174
6347
|
|
|
6175
6348
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6176
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6349
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6177
6350
|
ref: ref,
|
|
6178
|
-
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6351
|
+
className: index.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6179
6352
|
}));
|
|
6180
6353
|
});
|
|
6181
6354
|
FormText.displayName = 'FormText';
|
|
6182
6355
|
|
|
6183
6356
|
var Switch = React__default['default'].forwardRef(function (props, ref) {
|
|
6184
|
-
return /*#__PURE__*/React__default['default'].createElement(FormCheck, _extends({}, props, {
|
|
6357
|
+
return /*#__PURE__*/React__default['default'].createElement(FormCheck, index._extends({}, props, {
|
|
6185
6358
|
ref: ref,
|
|
6186
6359
|
type: "switch"
|
|
6187
6360
|
}));
|
|
@@ -6191,7 +6364,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6191
6364
|
Switch.Label = FormCheck.Label;
|
|
6192
6365
|
|
|
6193
6366
|
var FormRow = createWithBsPrefix('form-row');
|
|
6194
|
-
var defaultProps$
|
|
6367
|
+
var defaultProps$m = {
|
|
6195
6368
|
inline: false
|
|
6196
6369
|
};
|
|
6197
6370
|
var FormImpl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6201,16 +6374,16 @@ var FormImpl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6201
6374
|
validated = _ref.validated,
|
|
6202
6375
|
_ref$as = _ref.as,
|
|
6203
6376
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6204
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6377
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6205
6378
|
|
|
6206
6379
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6207
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6380
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6208
6381
|
ref: ref,
|
|
6209
|
-
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6382
|
+
className: index.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6210
6383
|
}));
|
|
6211
6384
|
});
|
|
6212
6385
|
FormImpl.displayName = 'Form';
|
|
6213
|
-
FormImpl.defaultProps = defaultProps$
|
|
6386
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6214
6387
|
FormImpl.Row = FormRow;
|
|
6215
6388
|
FormImpl.Group = FormGroup;
|
|
6216
6389
|
FormImpl.Control = FormControl$1;
|
|
@@ -6220,7 +6393,7 @@ FormImpl.Switch = Switch;
|
|
|
6220
6393
|
FormImpl.Label = FormLabel;
|
|
6221
6394
|
FormImpl.Text = FormText;
|
|
6222
6395
|
|
|
6223
|
-
var defaultProps$
|
|
6396
|
+
var defaultProps$l = {
|
|
6224
6397
|
fluid: false
|
|
6225
6398
|
};
|
|
6226
6399
|
var Container = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6229,20 +6402,20 @@ var Container = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6229
6402
|
_ref$as = _ref.as,
|
|
6230
6403
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6231
6404
|
className = _ref.className,
|
|
6232
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6405
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6233
6406
|
|
|
6234
6407
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6235
6408
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6236
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
6409
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
6237
6410
|
ref: ref
|
|
6238
6411
|
}, props, {
|
|
6239
|
-
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6412
|
+
className: index.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6240
6413
|
}));
|
|
6241
6414
|
});
|
|
6242
6415
|
Container.displayName = 'Container';
|
|
6243
|
-
Container.defaultProps = defaultProps$
|
|
6416
|
+
Container.defaultProps = defaultProps$l;
|
|
6244
6417
|
|
|
6245
|
-
var propTypes$
|
|
6418
|
+
var propTypes$3 = {
|
|
6246
6419
|
/**
|
|
6247
6420
|
* @default 'img'
|
|
6248
6421
|
*/
|
|
@@ -6281,36 +6454,36 @@ var Image = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6281
6454
|
rounded = _ref.rounded,
|
|
6282
6455
|
roundedCircle = _ref.roundedCircle,
|
|
6283
6456
|
thumbnail = _ref.thumbnail,
|
|
6284
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6457
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6285
6458
|
|
|
6286
6459
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6287
|
-
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6288
|
-
return /*#__PURE__*/React__default['default'].createElement("img", _extends({
|
|
6460
|
+
var classes = index.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6461
|
+
return /*#__PURE__*/React__default['default'].createElement("img", index._extends({
|
|
6289
6462
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6290
6463
|
ref: ref
|
|
6291
6464
|
}, props, {
|
|
6292
|
-
className: classnames(className, classes)
|
|
6465
|
+
className: index.classnames(className, classes)
|
|
6293
6466
|
}));
|
|
6294
6467
|
});
|
|
6295
6468
|
Image.displayName = 'Image';
|
|
6296
6469
|
Image.defaultProps = defaultProps$k;
|
|
6297
6470
|
|
|
6298
|
-
var defaultProps$
|
|
6471
|
+
var defaultProps$j = {
|
|
6299
6472
|
fluid: true
|
|
6300
6473
|
};
|
|
6301
6474
|
var FigureImage = React__default['default'].forwardRef(function (_ref, ref) {
|
|
6302
6475
|
var className = _ref.className,
|
|
6303
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6476
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6304
6477
|
|
|
6305
|
-
return /*#__PURE__*/React__default['default'].createElement(Image, _extends({
|
|
6478
|
+
return /*#__PURE__*/React__default['default'].createElement(Image, index._extends({
|
|
6306
6479
|
ref: ref
|
|
6307
6480
|
}, props, {
|
|
6308
|
-
className: classnames(className, 'figure-img')
|
|
6481
|
+
className: index.classnames(className, 'figure-img')
|
|
6309
6482
|
}));
|
|
6310
6483
|
});
|
|
6311
6484
|
FigureImage.displayName = 'FigureImage';
|
|
6312
|
-
FigureImage.propTypes = propTypes$
|
|
6313
|
-
FigureImage.defaultProps = defaultProps$
|
|
6485
|
+
FigureImage.propTypes = propTypes$3;
|
|
6486
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6314
6487
|
|
|
6315
6488
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6316
6489
|
Component: 'figcaption'
|
|
@@ -6329,13 +6502,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6329
6502
|
});
|
|
6330
6503
|
|
|
6331
6504
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6332
|
-
return /*#__PURE__*/React__default['default'].createElement(InputGroupText, null, /*#__PURE__*/React__default['default'].createElement("input", _extends({
|
|
6505
|
+
return /*#__PURE__*/React__default['default'].createElement(InputGroupText, null, /*#__PURE__*/React__default['default'].createElement("input", index._extends({
|
|
6333
6506
|
type: "checkbox"
|
|
6334
6507
|
}, props)));
|
|
6335
6508
|
};
|
|
6336
6509
|
|
|
6337
6510
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6338
|
-
return /*#__PURE__*/React__default['default'].createElement(InputGroupText, null, /*#__PURE__*/React__default['default'].createElement("input", _extends({
|
|
6511
|
+
return /*#__PURE__*/React__default['default'].createElement(InputGroupText, null, /*#__PURE__*/React__default['default'].createElement("input", index._extends({
|
|
6339
6512
|
type: "radio"
|
|
6340
6513
|
}, props)));
|
|
6341
6514
|
};
|
|
@@ -6354,18 +6527,18 @@ var InputGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6354
6527
|
className = _ref.className,
|
|
6355
6528
|
_ref$as = _ref.as,
|
|
6356
6529
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6357
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6530
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6358
6531
|
|
|
6359
6532
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6360
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
6533
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
6361
6534
|
ref: ref
|
|
6362
6535
|
}, props, {
|
|
6363
|
-
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6536
|
+
className: index.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6364
6537
|
}));
|
|
6365
6538
|
});
|
|
6366
6539
|
InputGroup.displayName = 'InputGroup';
|
|
6367
6540
|
|
|
6368
|
-
|
|
6541
|
+
index._extends({}, InputGroup, {
|
|
6369
6542
|
Text: InputGroupText,
|
|
6370
6543
|
Radio: InputGroupRadio,
|
|
6371
6544
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6373,7 +6546,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6373
6546
|
Prepend: InputGroupPrepend
|
|
6374
6547
|
});
|
|
6375
6548
|
|
|
6376
|
-
var defaultProps$
|
|
6549
|
+
var defaultProps$i = {
|
|
6377
6550
|
fluid: false
|
|
6378
6551
|
};
|
|
6379
6552
|
var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6384,23 +6557,23 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6384
6557
|
className = _ref.className,
|
|
6385
6558
|
fluid = _ref.fluid,
|
|
6386
6559
|
bsPrefix = _ref.bsPrefix,
|
|
6387
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6560
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6388
6561
|
|
|
6389
6562
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6390
6563
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6391
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
6564
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
6392
6565
|
ref: ref
|
|
6393
6566
|
}, props, {
|
|
6394
|
-
className: classnames(className, classes)
|
|
6567
|
+
className: index.classnames(className, classes)
|
|
6395
6568
|
}));
|
|
6396
6569
|
});
|
|
6397
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6570
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6398
6571
|
Jumbotron.displayName = 'Jumbotron';
|
|
6399
6572
|
|
|
6400
6573
|
var TabContext = React__default['default'].createContext(null);
|
|
6401
6574
|
|
|
6402
6575
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6403
|
-
var noop$
|
|
6576
|
+
var noop$1 = function noop() {};
|
|
6404
6577
|
|
|
6405
6578
|
var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
6406
6579
|
var _ref$as = _ref.as,
|
|
@@ -6409,7 +6582,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6409
6582
|
activeKey = _ref.activeKey,
|
|
6410
6583
|
role = _ref.role,
|
|
6411
6584
|
onKeyDown = _ref.onKeyDown,
|
|
6412
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6585
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6413
6586
|
|
|
6414
6587
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6415
6588
|
// and don't want to reset the set in the effect
|
|
@@ -6490,17 +6663,17 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6490
6663
|
role: role,
|
|
6491
6664
|
// used by NavLink to determine it's role
|
|
6492
6665
|
activeKey: makeEventKey(activeKey),
|
|
6493
|
-
getControlledId: getControlledId || noop$
|
|
6494
|
-
getControllerId: getControllerId || noop$
|
|
6666
|
+
getControlledId: getControlledId || noop$1,
|
|
6667
|
+
getControllerId: getControllerId || noop$1
|
|
6495
6668
|
}
|
|
6496
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6669
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6497
6670
|
onKeyDown: handleKeyDown,
|
|
6498
6671
|
ref: mergedRef,
|
|
6499
6672
|
role: role
|
|
6500
6673
|
}))));
|
|
6501
6674
|
});
|
|
6502
6675
|
|
|
6503
|
-
var defaultProps$
|
|
6676
|
+
var defaultProps$h = {
|
|
6504
6677
|
disabled: false
|
|
6505
6678
|
};
|
|
6506
6679
|
var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -6510,7 +6683,7 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6510
6683
|
onSelect = _ref.onSelect,
|
|
6511
6684
|
onClick = _ref.onClick,
|
|
6512
6685
|
Component = _ref.as,
|
|
6513
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6686
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6514
6687
|
|
|
6515
6688
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6516
6689
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6540,15 +6713,15 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6540
6713
|
if (onSelect) onSelect(navKey, e);
|
|
6541
6714
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6542
6715
|
});
|
|
6543
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6716
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6544
6717
|
ref: ref,
|
|
6545
6718
|
onClick: handleOnclick,
|
|
6546
|
-
className: classnames(className, isActive && 'active')
|
|
6719
|
+
className: index.classnames(className, isActive && 'active')
|
|
6547
6720
|
}));
|
|
6548
6721
|
});
|
|
6549
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6722
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6550
6723
|
|
|
6551
|
-
var defaultProps$
|
|
6724
|
+
var defaultProps$g = {
|
|
6552
6725
|
variant: undefined,
|
|
6553
6726
|
active: false,
|
|
6554
6727
|
disabled: false
|
|
@@ -6563,7 +6736,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6563
6736
|
as = _ref.as,
|
|
6564
6737
|
eventKey = _ref.eventKey,
|
|
6565
6738
|
onClick = _ref.onClick,
|
|
6566
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6739
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6567
6740
|
|
|
6568
6741
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6569
6742
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6575,20 +6748,21 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6575
6748
|
|
|
6576
6749
|
if (onClick) onClick(event);
|
|
6577
6750
|
}, [disabled, onClick]);
|
|
6578
|
-
return /*#__PURE__*/React__default['default'].createElement(AbstractNavItem, _extends({
|
|
6751
|
+
return /*#__PURE__*/React__default['default'].createElement(AbstractNavItem, index._extends({
|
|
6579
6752
|
ref: ref
|
|
6580
6753
|
}, props, {
|
|
6581
|
-
|
|
6754
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6755
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6582
6756
|
,
|
|
6583
6757
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6584
6758
|
onClick: handleClick,
|
|
6585
|
-
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6759
|
+
className: index.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6586
6760
|
}));
|
|
6587
6761
|
});
|
|
6588
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6762
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6589
6763
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6590
6764
|
|
|
6591
|
-
var defaultProps$
|
|
6765
|
+
var defaultProps$f = {
|
|
6592
6766
|
variant: undefined,
|
|
6593
6767
|
horizontal: undefined
|
|
6594
6768
|
};
|
|
@@ -6602,7 +6776,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6602
6776
|
horizontal = _useUncontrolled.horizontal,
|
|
6603
6777
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6604
6778
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6605
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6779
|
+
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6606
6780
|
|
|
6607
6781
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6608
6782
|
var horizontalVariant;
|
|
@@ -6614,14 +6788,14 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6614
6788
|
}
|
|
6615
6789
|
|
|
6616
6790
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6617
|
-
return /*#__PURE__*/React__default['default'].createElement(AbstractNav, _extends({
|
|
6791
|
+
return /*#__PURE__*/React__default['default'].createElement(AbstractNav, index._extends({
|
|
6618
6792
|
ref: ref
|
|
6619
6793
|
}, controlledProps, {
|
|
6620
6794
|
as: as,
|
|
6621
|
-
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6795
|
+
className: index.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6622
6796
|
}));
|
|
6623
6797
|
});
|
|
6624
|
-
ListGroup.defaultProps = defaultProps$
|
|
6798
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6625
6799
|
ListGroup.displayName = 'ListGroup';
|
|
6626
6800
|
ListGroup.Item = ListGroupItem;
|
|
6627
6801
|
|
|
@@ -6632,12 +6806,12 @@ function (_ref, ref) {
|
|
|
6632
6806
|
className = _ref.className,
|
|
6633
6807
|
_ref$as = _ref.as,
|
|
6634
6808
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6635
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6809
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6636
6810
|
|
|
6637
6811
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6638
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
6812
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
6639
6813
|
ref: ref,
|
|
6640
|
-
className: classnames(className, prefix)
|
|
6814
|
+
className: index.classnames(className, prefix)
|
|
6641
6815
|
}));
|
|
6642
6816
|
});
|
|
6643
6817
|
Media.displayName = 'Media';
|
|
@@ -6663,14 +6837,14 @@ function scrollbarSize(recalc) {
|
|
|
6663
6837
|
}
|
|
6664
6838
|
|
|
6665
6839
|
/**
|
|
6666
|
-
*
|
|
6840
|
+
* Returns the actively focused element safely.
|
|
6667
6841
|
*
|
|
6668
|
-
* @param doc the document to
|
|
6842
|
+
* @param doc the document to check
|
|
6669
6843
|
*/
|
|
6670
6844
|
|
|
6671
6845
|
function activeElement(doc) {
|
|
6672
6846
|
if (doc === void 0) {
|
|
6673
|
-
doc = ownerDocument();
|
|
6847
|
+
doc = ownerDocument$1();
|
|
6674
6848
|
}
|
|
6675
6849
|
|
|
6676
6850
|
// Support: IE 9 only
|
|
@@ -6687,6 +6861,13 @@ function activeElement(doc) {
|
|
|
6687
6861
|
}
|
|
6688
6862
|
}
|
|
6689
6863
|
|
|
6864
|
+
/**
|
|
6865
|
+
* Adds a CSS class to a given element.
|
|
6866
|
+
*
|
|
6867
|
+
* @param element the element
|
|
6868
|
+
* @param className the CSS class name
|
|
6869
|
+
*/
|
|
6870
|
+
|
|
6690
6871
|
function addClass(element, className) {
|
|
6691
6872
|
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);
|
|
6692
6873
|
}
|
|
@@ -6694,6 +6875,13 @@ function addClass(element, className) {
|
|
|
6694
6875
|
function replaceClassName(origClass, classToRemove) {
|
|
6695
6876
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6696
6877
|
}
|
|
6878
|
+
/**
|
|
6879
|
+
* Removes a CSS class from a given element.
|
|
6880
|
+
*
|
|
6881
|
+
* @param element the element
|
|
6882
|
+
* @param className the CSS class name
|
|
6883
|
+
*/
|
|
6884
|
+
|
|
6697
6885
|
|
|
6698
6886
|
function removeClass(element, className) {
|
|
6699
6887
|
if (element.classList) {
|
|
@@ -6720,7 +6908,7 @@ function isBody(node) {
|
|
|
6720
6908
|
}
|
|
6721
6909
|
|
|
6722
6910
|
function bodyIsOverflowing(node) {
|
|
6723
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6911
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6724
6912
|
var win = isWindow(node) || doc.defaultView;
|
|
6725
6913
|
return doc.body.clientWidth < win.innerWidth;
|
|
6726
6914
|
}
|
|
@@ -6932,7 +7120,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
6932
7120
|
var _ref;
|
|
6933
7121
|
|
|
6934
7122
|
if (typeof document === 'undefined') return null;
|
|
6935
|
-
if (ref == null) return ownerDocument().body;
|
|
7123
|
+
if (ref == null) return ownerDocument$1().body;
|
|
6936
7124
|
if (typeof ref === 'function') ref = ref();
|
|
6937
7125
|
if (ref && 'current' in ref) ref = ref.current;
|
|
6938
7126
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -6965,11 +7153,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
6965
7153
|
return resolvedRef;
|
|
6966
7154
|
}
|
|
6967
7155
|
|
|
6968
|
-
var manager;
|
|
7156
|
+
var manager$1;
|
|
6969
7157
|
|
|
6970
7158
|
function getManager() {
|
|
6971
|
-
if (!manager) manager = new ModalManager();
|
|
6972
|
-
return manager;
|
|
7159
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7160
|
+
return manager$1;
|
|
6973
7161
|
}
|
|
6974
7162
|
|
|
6975
7163
|
function useModalManager(provided) {
|
|
@@ -6997,7 +7185,7 @@ function useModalManager(provided) {
|
|
|
6997
7185
|
});
|
|
6998
7186
|
}
|
|
6999
7187
|
|
|
7000
|
-
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7188
|
+
var Modal$1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7001
7189
|
var _ref$show = _ref.show,
|
|
7002
7190
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7003
7191
|
_ref$role = _ref.role,
|
|
@@ -7037,7 +7225,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7037
7225
|
onEnter = _ref.onEnter,
|
|
7038
7226
|
onEntering = _ref.onEntering,
|
|
7039
7227
|
onEntered = _ref.onEntered,
|
|
7040
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7228
|
+
rest = index._objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7041
7229
|
|
|
7042
7230
|
var container = useWaitForDOMRef(containerRef);
|
|
7043
7231
|
var modal = useModalManager(providedManager);
|
|
@@ -7081,7 +7269,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7081
7269
|
if (autoFocus) {
|
|
7082
7270
|
var currentActiveElement = activeElement(document);
|
|
7083
7271
|
|
|
7084
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7272
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7085
7273
|
lastFocusRef.current = currentActiveElement;
|
|
7086
7274
|
modal.dialog.focus();
|
|
7087
7275
|
}
|
|
@@ -7127,7 +7315,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7127
7315
|
|
|
7128
7316
|
var currentActiveElement = activeElement();
|
|
7129
7317
|
|
|
7130
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7318
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7131
7319
|
modal.dialog.focus();
|
|
7132
7320
|
}
|
|
7133
7321
|
});
|
|
@@ -7170,7 +7358,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7170
7358
|
return null;
|
|
7171
7359
|
}
|
|
7172
7360
|
|
|
7173
|
-
var dialogProps = _extends({
|
|
7361
|
+
var dialogProps = index._extends({
|
|
7174
7362
|
role: role,
|
|
7175
7363
|
ref: modal.setDialogRef,
|
|
7176
7364
|
// apparently only works on the dialog role element
|
|
@@ -7218,7 +7406,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7218
7406
|
|
|
7219
7407
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/ReactDOM__default['default'].createPortal( /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, backdropElement, dialog), container));
|
|
7220
7408
|
});
|
|
7221
|
-
var propTypes$
|
|
7409
|
+
var propTypes$2 = {
|
|
7222
7410
|
/**
|
|
7223
7411
|
* Set the visibility of the Modal
|
|
7224
7412
|
*/
|
|
@@ -7374,9 +7562,9 @@ var propTypes$8 = {
|
|
|
7374
7562
|
*/
|
|
7375
7563
|
manager: PropTypes__default['default'].instanceOf(ModalManager)
|
|
7376
7564
|
};
|
|
7377
|
-
Modal.displayName = 'Modal';
|
|
7378
|
-
Modal.propTypes = propTypes$
|
|
7379
|
-
var BaseModal = Object.assign(Modal, {
|
|
7565
|
+
Modal$1.displayName = 'Modal';
|
|
7566
|
+
Modal$1.propTypes = propTypes$2;
|
|
7567
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7380
7568
|
Manager: ModalManager
|
|
7381
7569
|
});
|
|
7382
7570
|
|
|
@@ -7463,26 +7651,27 @@ var ModalContext = React__default['default'].createContext({
|
|
|
7463
7651
|
var ModalDialog = React__default['default'].forwardRef(function (_ref, ref) {
|
|
7464
7652
|
var bsPrefix = _ref.bsPrefix,
|
|
7465
7653
|
className = _ref.className,
|
|
7654
|
+
contentClassName = _ref.contentClassName,
|
|
7466
7655
|
centered = _ref.centered,
|
|
7467
7656
|
size = _ref.size,
|
|
7468
7657
|
children = _ref.children,
|
|
7469
7658
|
scrollable = _ref.scrollable,
|
|
7470
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7659
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7471
7660
|
|
|
7472
7661
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7473
7662
|
var dialogClass = bsPrefix + "-dialog";
|
|
7474
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, props, {
|
|
7663
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({}, props, {
|
|
7475
7664
|
ref: ref,
|
|
7476
|
-
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7665
|
+
className: index.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7477
7666
|
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7478
|
-
className: bsPrefix + "-content"
|
|
7667
|
+
className: index.classnames(bsPrefix + "-content", contentClassName)
|
|
7479
7668
|
}, children));
|
|
7480
7669
|
});
|
|
7481
7670
|
ModalDialog.displayName = 'ModalDialog';
|
|
7482
7671
|
|
|
7483
7672
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7484
7673
|
|
|
7485
|
-
var defaultProps$
|
|
7674
|
+
var defaultProps$e = {
|
|
7486
7675
|
closeLabel: 'Close',
|
|
7487
7676
|
closeButton: false
|
|
7488
7677
|
};
|
|
@@ -7493,7 +7682,7 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7493
7682
|
onHide = _ref.onHide,
|
|
7494
7683
|
className = _ref.className,
|
|
7495
7684
|
children = _ref.children,
|
|
7496
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7685
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7497
7686
|
|
|
7498
7687
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7499
7688
|
var context = React.useContext(ModalContext);
|
|
@@ -7501,25 +7690,25 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7501
7690
|
if (context) context.onHide();
|
|
7502
7691
|
if (onHide) onHide();
|
|
7503
7692
|
});
|
|
7504
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
7693
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
7505
7694
|
ref: ref
|
|
7506
7695
|
}, props, {
|
|
7507
|
-
className: classnames(className, bsPrefix)
|
|
7696
|
+
className: index.classnames(className, bsPrefix)
|
|
7508
7697
|
}), children, closeButton && /*#__PURE__*/React__default['default'].createElement(CloseButton, {
|
|
7509
7698
|
label: closeLabel,
|
|
7510
7699
|
onClick: handleClick
|
|
7511
7700
|
}));
|
|
7512
7701
|
});
|
|
7513
7702
|
ModalHeader.displayName = 'ModalHeader';
|
|
7514
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7703
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7515
7704
|
|
|
7516
|
-
var DivStyledAsH4
|
|
7705
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7517
7706
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7518
|
-
Component: DivStyledAsH4
|
|
7707
|
+
Component: DivStyledAsH4
|
|
7519
7708
|
});
|
|
7520
7709
|
|
|
7521
|
-
var manager
|
|
7522
|
-
var defaultProps$
|
|
7710
|
+
var manager;
|
|
7711
|
+
var defaultProps$d = {
|
|
7523
7712
|
show: false,
|
|
7524
7713
|
backdrop: true,
|
|
7525
7714
|
keyboard: true,
|
|
@@ -7541,11 +7730,12 @@ function BackdropTransition(props) {
|
|
|
7541
7730
|
/* eslint-enable no-use-before-define */
|
|
7542
7731
|
|
|
7543
7732
|
|
|
7544
|
-
var Modal
|
|
7733
|
+
var Modal = React__default['default'].forwardRef(function (_ref, ref) {
|
|
7545
7734
|
var bsPrefix = _ref.bsPrefix,
|
|
7546
7735
|
className = _ref.className,
|
|
7547
7736
|
style = _ref.style,
|
|
7548
7737
|
dialogClassName = _ref.dialogClassName,
|
|
7738
|
+
contentClassName = _ref.contentClassName,
|
|
7549
7739
|
children = _ref.children,
|
|
7550
7740
|
Dialog = _ref.dialogAs,
|
|
7551
7741
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7569,7 +7759,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7569
7759
|
onExited = _ref.onExited,
|
|
7570
7760
|
backdropClassName = _ref.backdropClassName,
|
|
7571
7761
|
propsManager = _ref.manager,
|
|
7572
|
-
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"]);
|
|
7762
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7573
7763
|
|
|
7574
7764
|
var _useState = React.useState({}),
|
|
7575
7765
|
modalStyle = _useState[0],
|
|
@@ -7606,14 +7796,14 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7606
7796
|
|
|
7607
7797
|
function getModalManager() {
|
|
7608
7798
|
if (propsManager) return propsManager;
|
|
7609
|
-
if (!manager
|
|
7610
|
-
return manager
|
|
7799
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7800
|
+
return manager;
|
|
7611
7801
|
}
|
|
7612
7802
|
|
|
7613
7803
|
function updateDialogStyle(node) {
|
|
7614
7804
|
if (!canUseDOM) return;
|
|
7615
7805
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7616
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7806
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7617
7807
|
setStyle({
|
|
7618
7808
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7619
7809
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7735,12 +7925,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7735
7925
|
};
|
|
7736
7926
|
|
|
7737
7927
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7738
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({}, backdropProps, {
|
|
7739
|
-
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7928
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({}, backdropProps, {
|
|
7929
|
+
className: index.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7740
7930
|
}));
|
|
7741
7931
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7742
7932
|
|
|
7743
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7933
|
+
var baseModalStyle = index._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7744
7934
|
|
|
7745
7935
|
|
|
7746
7936
|
if (!animation) {
|
|
@@ -7748,18 +7938,19 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7748
7938
|
}
|
|
7749
7939
|
|
|
7750
7940
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7751
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
7941
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
7752
7942
|
role: "dialog"
|
|
7753
7943
|
}, dialogProps, {
|
|
7754
7944
|
style: baseModalStyle,
|
|
7755
|
-
className: classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7945
|
+
className: index.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7756
7946
|
onClick: backdrop ? handleClick : undefined,
|
|
7757
7947
|
onMouseUp: handleMouseUp,
|
|
7758
7948
|
"aria-labelledby": ariaLabelledby
|
|
7759
|
-
}), /*#__PURE__*/React__default['default'].createElement(Dialog, _extends({}, props, {
|
|
7949
|
+
}), /*#__PURE__*/React__default['default'].createElement(Dialog, index._extends({}, props, {
|
|
7760
7950
|
role: "document",
|
|
7761
7951
|
onMouseDown: handleDialogMouseDown,
|
|
7762
|
-
className: dialogClassName
|
|
7952
|
+
className: dialogClassName,
|
|
7953
|
+
contentClassName: contentClassName
|
|
7763
7954
|
}), children));
|
|
7764
7955
|
};
|
|
7765
7956
|
|
|
@@ -7793,15 +7984,15 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7793
7984
|
renderDialog: renderDialog
|
|
7794
7985
|
}));
|
|
7795
7986
|
});
|
|
7796
|
-
Modal
|
|
7797
|
-
Modal
|
|
7798
|
-
Modal
|
|
7799
|
-
Modal
|
|
7800
|
-
Modal
|
|
7801
|
-
Modal
|
|
7802
|
-
Modal
|
|
7803
|
-
Modal
|
|
7804
|
-
Modal
|
|
7987
|
+
Modal.displayName = 'Modal';
|
|
7988
|
+
Modal.defaultProps = defaultProps$d;
|
|
7989
|
+
Modal.Body = ModalBody;
|
|
7990
|
+
Modal.Header = ModalHeader;
|
|
7991
|
+
Modal.Title = ModalTitle;
|
|
7992
|
+
Modal.Footer = ModalFooter;
|
|
7993
|
+
Modal.Dialog = ModalDialog;
|
|
7994
|
+
Modal.TRANSITION_DURATION = 300;
|
|
7995
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7805
7996
|
|
|
7806
7997
|
var NavItem = React__default['default'].forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7807
7998
|
function (_ref, ref) {
|
|
@@ -7810,17 +8001,17 @@ function (_ref, ref) {
|
|
|
7810
8001
|
children = _ref.children,
|
|
7811
8002
|
_ref$as = _ref.as,
|
|
7812
8003
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7813
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8004
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7814
8005
|
|
|
7815
8006
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7816
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
8007
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
7817
8008
|
ref: ref,
|
|
7818
|
-
className: classnames(className, bsPrefix)
|
|
8009
|
+
className: index.classnames(className, bsPrefix)
|
|
7819
8010
|
}), children);
|
|
7820
8011
|
});
|
|
7821
8012
|
NavItem.displayName = 'NavItem';
|
|
7822
8013
|
|
|
7823
|
-
var defaultProps$
|
|
8014
|
+
var defaultProps$c = {
|
|
7824
8015
|
disabled: false,
|
|
7825
8016
|
as: SafeAnchor
|
|
7826
8017
|
};
|
|
@@ -7832,23 +8023,23 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7832
8023
|
eventKey = _ref.eventKey,
|
|
7833
8024
|
onSelect = _ref.onSelect,
|
|
7834
8025
|
as = _ref.as,
|
|
7835
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8026
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7836
8027
|
|
|
7837
8028
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7838
|
-
return /*#__PURE__*/React__default['default'].createElement(AbstractNavItem, _extends({}, props, {
|
|
8029
|
+
return /*#__PURE__*/React__default['default'].createElement(AbstractNavItem, index._extends({}, props, {
|
|
7839
8030
|
href: href,
|
|
7840
8031
|
ref: ref,
|
|
7841
8032
|
eventKey: eventKey,
|
|
7842
8033
|
as: as,
|
|
7843
8034
|
disabled: disabled,
|
|
7844
8035
|
onSelect: onSelect,
|
|
7845
|
-
className: classnames(className, bsPrefix, disabled && 'disabled')
|
|
8036
|
+
className: index.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7846
8037
|
}));
|
|
7847
8038
|
});
|
|
7848
8039
|
NavLink.displayName = 'NavLink';
|
|
7849
|
-
NavLink.defaultProps = defaultProps$
|
|
8040
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7850
8041
|
|
|
7851
|
-
var defaultProps$
|
|
8042
|
+
var defaultProps$b = {
|
|
7852
8043
|
justify: false,
|
|
7853
8044
|
fill: false
|
|
7854
8045
|
};
|
|
@@ -7868,13 +8059,13 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7868
8059
|
className = _useUncontrolled.className,
|
|
7869
8060
|
children = _useUncontrolled.children,
|
|
7870
8061
|
activeKey = _useUncontrolled.activeKey,
|
|
7871
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8062
|
+
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7872
8063
|
|
|
7873
8064
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7874
8065
|
var navbarBsPrefix;
|
|
7875
8066
|
var cardHeaderBsPrefix;
|
|
7876
8067
|
var isNavbar = false;
|
|
7877
|
-
var navbarContext = React.useContext(context
|
|
8068
|
+
var navbarContext = React.useContext(context);
|
|
7878
8069
|
var cardContext = React.useContext(context$1);
|
|
7879
8070
|
|
|
7880
8071
|
if (navbarContext) {
|
|
@@ -7884,15 +8075,15 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7884
8075
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7885
8076
|
}
|
|
7886
8077
|
|
|
7887
|
-
return /*#__PURE__*/React__default['default'].createElement(AbstractNav, _extends({
|
|
8078
|
+
return /*#__PURE__*/React__default['default'].createElement(AbstractNav, index._extends({
|
|
7888
8079
|
as: as,
|
|
7889
8080
|
ref: ref,
|
|
7890
8081
|
activeKey: activeKey,
|
|
7891
|
-
className: classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
8082
|
+
className: index.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
7892
8083
|
}, props), children);
|
|
7893
8084
|
});
|
|
7894
8085
|
Nav.displayName = 'Nav';
|
|
7895
|
-
Nav.defaultProps = defaultProps$
|
|
8086
|
+
Nav.defaultProps = defaultProps$b;
|
|
7896
8087
|
Nav.Item = NavItem;
|
|
7897
8088
|
Nav.Link = NavLink;
|
|
7898
8089
|
|
|
@@ -7900,13 +8091,13 @@ var NavbarBrand = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7900
8091
|
var bsPrefix = _ref.bsPrefix,
|
|
7901
8092
|
className = _ref.className,
|
|
7902
8093
|
as = _ref.as,
|
|
7903
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8094
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
7904
8095
|
|
|
7905
8096
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7906
8097
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7907
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
8098
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
7908
8099
|
ref: ref,
|
|
7909
|
-
className: classnames(className, bsPrefix)
|
|
8100
|
+
className: index.classnames(className, bsPrefix)
|
|
7910
8101
|
}));
|
|
7911
8102
|
});
|
|
7912
8103
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
@@ -7914,11 +8105,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
7914
8105
|
var NavbarCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
7915
8106
|
var children = _ref.children,
|
|
7916
8107
|
bsPrefix = _ref.bsPrefix,
|
|
7917
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8108
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
7918
8109
|
|
|
7919
8110
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7920
|
-
return /*#__PURE__*/React__default['default'].createElement(context
|
|
7921
|
-
return /*#__PURE__*/React__default['default'].createElement(Collapse, _extends({
|
|
8111
|
+
return /*#__PURE__*/React__default['default'].createElement(context.Consumer, null, function (context) {
|
|
8112
|
+
return /*#__PURE__*/React__default['default'].createElement(Collapse, index._extends({
|
|
7922
8113
|
in: !!(context && context.expanded)
|
|
7923
8114
|
}, props), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
7924
8115
|
ref: ref,
|
|
@@ -7928,7 +8119,7 @@ var NavbarCollapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7928
8119
|
});
|
|
7929
8120
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
7930
8121
|
|
|
7931
|
-
var defaultProps$
|
|
8122
|
+
var defaultProps$a = {
|
|
7932
8123
|
label: 'Toggle navigation'
|
|
7933
8124
|
};
|
|
7934
8125
|
var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -7939,11 +8130,11 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7939
8130
|
_ref$as = _ref.as,
|
|
7940
8131
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
7941
8132
|
onClick = _ref.onClick,
|
|
7942
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8133
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
7943
8134
|
|
|
7944
8135
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
7945
8136
|
|
|
7946
|
-
var _ref2 = React.useContext(context
|
|
8137
|
+
var _ref2 = React.useContext(context) || {},
|
|
7947
8138
|
onToggle = _ref2.onToggle,
|
|
7948
8139
|
expanded = _ref2.expanded;
|
|
7949
8140
|
|
|
@@ -7956,22 +8147,22 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7956
8147
|
props.type = 'button';
|
|
7957
8148
|
}
|
|
7958
8149
|
|
|
7959
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, props, {
|
|
8150
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, props, {
|
|
7960
8151
|
ref: ref,
|
|
7961
8152
|
onClick: handleClick,
|
|
7962
8153
|
"aria-label": label,
|
|
7963
|
-
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8154
|
+
className: index.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
7964
8155
|
}), children || /*#__PURE__*/React__default['default'].createElement("span", {
|
|
7965
8156
|
className: bsPrefix + "-icon"
|
|
7966
8157
|
}));
|
|
7967
8158
|
});
|
|
7968
8159
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
7969
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8160
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
7970
8161
|
|
|
7971
8162
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
7972
8163
|
Component: 'span'
|
|
7973
8164
|
});
|
|
7974
|
-
var defaultProps$
|
|
8165
|
+
var defaultProps$9 = {
|
|
7975
8166
|
expand: true,
|
|
7976
8167
|
variant: 'light',
|
|
7977
8168
|
collapseOnSelect: false
|
|
@@ -7994,7 +8185,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
7994
8185
|
_onToggle = _useUncontrolled.onToggle,
|
|
7995
8186
|
onSelect = _useUncontrolled.onSelect,
|
|
7996
8187
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
7997
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8188
|
+
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
7998
8189
|
|
|
7999
8190
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8000
8191
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8024,24 +8215,24 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8024
8215
|
expanded: !!expanded
|
|
8025
8216
|
};
|
|
8026
8217
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8027
|
-
return /*#__PURE__*/React__default['default'].createElement(context
|
|
8218
|
+
return /*#__PURE__*/React__default['default'].createElement(context.Provider, {
|
|
8028
8219
|
value: navbarContext
|
|
8029
8220
|
}, /*#__PURE__*/React__default['default'].createElement(SelectableContext.Provider, {
|
|
8030
8221
|
value: handleCollapse
|
|
8031
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8222
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8032
8223
|
ref: ref
|
|
8033
8224
|
}, controlledProps, {
|
|
8034
|
-
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8225
|
+
className: index.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8035
8226
|
}), children)));
|
|
8036
8227
|
});
|
|
8037
|
-
Navbar.defaultProps = defaultProps$
|
|
8228
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8038
8229
|
Navbar.displayName = 'Navbar';
|
|
8039
8230
|
Navbar.Brand = NavbarBrand;
|
|
8040
8231
|
Navbar.Toggle = NavbarToggle;
|
|
8041
8232
|
Navbar.Collapse = NavbarCollapse;
|
|
8042
8233
|
Navbar.Text = NavbarText;
|
|
8043
8234
|
|
|
8044
|
-
var propTypes$
|
|
8235
|
+
var propTypes$1 = {
|
|
8045
8236
|
/**
|
|
8046
8237
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8047
8238
|
* @type {string|number}
|
|
@@ -8087,31 +8278,31 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8087
8278
|
disabled = _ref.disabled,
|
|
8088
8279
|
active = _ref.active,
|
|
8089
8280
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8090
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8281
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8091
8282
|
|
|
8092
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8283
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown, index._extends({
|
|
8093
8284
|
ref: ref
|
|
8094
8285
|
}, props, {
|
|
8095
8286
|
as: NavItem
|
|
8096
|
-
}), /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8287
|
+
}), /*#__PURE__*/React__default['default'].createElement(Dropdown.Toggle, {
|
|
8097
8288
|
id: id,
|
|
8098
8289
|
eventKey: null,
|
|
8099
8290
|
active: active,
|
|
8100
8291
|
disabled: disabled,
|
|
8101
8292
|
childBsPrefix: bsPrefix,
|
|
8102
8293
|
as: NavLink
|
|
8103
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8294
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown.Menu, {
|
|
8104
8295
|
role: menuRole,
|
|
8105
8296
|
renderOnMount: renderMenuOnMount,
|
|
8106
8297
|
rootCloseEvent: rootCloseEvent
|
|
8107
8298
|
}, children));
|
|
8108
8299
|
});
|
|
8109
8300
|
NavDropdown.displayName = 'NavDropdown';
|
|
8110
|
-
NavDropdown.propTypes = propTypes$
|
|
8111
|
-
NavDropdown.Item = Dropdown
|
|
8112
|
-
NavDropdown.ItemText = Dropdown
|
|
8113
|
-
NavDropdown.Divider = Dropdown
|
|
8114
|
-
NavDropdown.Header = Dropdown
|
|
8301
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8302
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8303
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8304
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8305
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8115
8306
|
|
|
8116
8307
|
/**
|
|
8117
8308
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8154,7 +8345,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8154
8345
|
})),
|
|
8155
8346
|
styles = _usePopper.styles,
|
|
8156
8347
|
attributes = _usePopper.attributes,
|
|
8157
|
-
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8348
|
+
popper = index._objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8158
8349
|
|
|
8159
8350
|
if (props.show) {
|
|
8160
8351
|
if (exited) setExited(false);
|
|
@@ -8182,13 +8373,13 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8182
8373
|
return null;
|
|
8183
8374
|
}
|
|
8184
8375
|
|
|
8185
|
-
var child = props.children(_extends({}, popper, {
|
|
8376
|
+
var child = props.children(index._extends({}, popper, {
|
|
8186
8377
|
show: !!props.show,
|
|
8187
|
-
props: _extends({}, attributes.popper, {
|
|
8378
|
+
props: index._extends({}, attributes.popper, {
|
|
8188
8379
|
style: styles.popper,
|
|
8189
8380
|
ref: mergedRef
|
|
8190
8381
|
}),
|
|
8191
|
-
arrowProps: _extends({}, attributes.arrow, {
|
|
8382
|
+
arrowProps: index._extends({}, attributes.arrow, {
|
|
8192
8383
|
style: styles.arrow,
|
|
8193
8384
|
ref: attachArrowRef
|
|
8194
8385
|
})
|
|
@@ -8352,7 +8543,7 @@ Overlay.propTypes = {
|
|
|
8352
8543
|
onExited: PropTypes__default['default'].func
|
|
8353
8544
|
};
|
|
8354
8545
|
|
|
8355
|
-
|
|
8546
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8356
8547
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8357
8548
|
|
|
8358
8549
|
function RefHolder() {
|
|
@@ -8366,9 +8557,9 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8366
8557
|
};
|
|
8367
8558
|
|
|
8368
8559
|
return RefHolder;
|
|
8369
|
-
}(React__default['default'].Component);
|
|
8560
|
+
})(React__default['default'].Component);
|
|
8370
8561
|
|
|
8371
|
-
var defaultProps$
|
|
8562
|
+
var defaultProps$8 = {
|
|
8372
8563
|
active: false,
|
|
8373
8564
|
disabled: false,
|
|
8374
8565
|
activeLabel: '(current)'
|
|
@@ -8380,24 +8571,24 @@ var PageItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8380
8571
|
style = _ref.style,
|
|
8381
8572
|
activeLabel = _ref.activeLabel,
|
|
8382
8573
|
children = _ref.children,
|
|
8383
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8574
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8384
8575
|
|
|
8385
8576
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8386
8577
|
return /*#__PURE__*/React__default['default'].createElement("li", {
|
|
8387
8578
|
ref: ref,
|
|
8388
8579
|
style: style,
|
|
8389
|
-
className: classnames(className, 'page-item', {
|
|
8580
|
+
className: index.classnames(className, 'page-item', {
|
|
8390
8581
|
active: active,
|
|
8391
8582
|
disabled: disabled
|
|
8392
8583
|
})
|
|
8393
|
-
}, /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8584
|
+
}, /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8394
8585
|
className: "page-link",
|
|
8395
8586
|
disabled: disabled
|
|
8396
8587
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default['default'].createElement("span", {
|
|
8397
8588
|
className: "sr-only"
|
|
8398
8589
|
}, activeLabel)));
|
|
8399
8590
|
});
|
|
8400
|
-
PageItem.defaultProps = defaultProps$
|
|
8591
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8401
8592
|
PageItem.displayName = 'PageItem';
|
|
8402
8593
|
|
|
8403
8594
|
function createButton(name, defaultValue, label) {
|
|
@@ -8407,7 +8598,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8407
8598
|
|
|
8408
8599
|
function Button(_ref2) {
|
|
8409
8600
|
var children = _ref2.children,
|
|
8410
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8601
|
+
props = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8411
8602
|
|
|
8412
8603
|
return /*#__PURE__*/React__default['default'].createElement(PageItem, props, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
8413
8604
|
"aria-hidden": "true"
|
|
@@ -8439,13 +8630,13 @@ var Pagination = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8439
8630
|
className = _ref.className,
|
|
8440
8631
|
children = _ref.children,
|
|
8441
8632
|
size = _ref.size,
|
|
8442
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8633
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8443
8634
|
|
|
8444
8635
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8445
|
-
return /*#__PURE__*/React__default['default'].createElement("ul", _extends({
|
|
8636
|
+
return /*#__PURE__*/React__default['default'].createElement("ul", index._extends({
|
|
8446
8637
|
ref: ref
|
|
8447
8638
|
}, props, {
|
|
8448
|
-
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8639
|
+
className: index.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8449
8640
|
}), children);
|
|
8450
8641
|
});
|
|
8451
8642
|
Pagination.First = First;
|
|
@@ -8461,13 +8652,13 @@ var PopoverTitle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8461
8652
|
bsPrefix = _ref.bsPrefix,
|
|
8462
8653
|
className = _ref.className,
|
|
8463
8654
|
children = _ref.children,
|
|
8464
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8655
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8465
8656
|
|
|
8466
8657
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8467
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8658
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8468
8659
|
ref: ref
|
|
8469
8660
|
}, props, {
|
|
8470
|
-
className: classnames(bsPrefix, className)
|
|
8661
|
+
className: index.classnames(bsPrefix, className)
|
|
8471
8662
|
}), children);
|
|
8472
8663
|
});
|
|
8473
8664
|
|
|
@@ -8477,17 +8668,17 @@ var PopoverContent = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8477
8668
|
bsPrefix = _ref.bsPrefix,
|
|
8478
8669
|
className = _ref.className,
|
|
8479
8670
|
children = _ref.children,
|
|
8480
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8671
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8481
8672
|
|
|
8482
8673
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8483
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8674
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8484
8675
|
ref: ref
|
|
8485
8676
|
}, props, {
|
|
8486
|
-
className: classnames(className, bsPrefix)
|
|
8677
|
+
className: index.classnames(className, bsPrefix)
|
|
8487
8678
|
}), children);
|
|
8488
8679
|
});
|
|
8489
8680
|
|
|
8490
|
-
var defaultProps$
|
|
8681
|
+
var defaultProps$7 = {
|
|
8491
8682
|
placement: 'right'
|
|
8492
8683
|
};
|
|
8493
8684
|
var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8497,33 +8688,33 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8497
8688
|
style = _ref.style,
|
|
8498
8689
|
children = _ref.children,
|
|
8499
8690
|
content = _ref.content,
|
|
8500
|
-
arrowProps = _ref.arrowProps
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8691
|
+
arrowProps = _ref.arrowProps;
|
|
8692
|
+
_ref.popper;
|
|
8693
|
+
_ref.show;
|
|
8694
|
+
var props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8504
8695
|
|
|
8505
8696
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8506
8697
|
|
|
8507
8698
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8508
8699
|
primaryPlacement = _ref2[0];
|
|
8509
8700
|
|
|
8510
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
8701
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
8511
8702
|
ref: ref,
|
|
8512
8703
|
role: "tooltip",
|
|
8513
8704
|
style: style,
|
|
8514
8705
|
"x-placement": primaryPlacement,
|
|
8515
|
-
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8516
|
-
}, props), /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
8706
|
+
className: index.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8707
|
+
}, props), /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
8517
8708
|
className: "arrow"
|
|
8518
8709
|
}, arrowProps)), content ? /*#__PURE__*/React__default['default'].createElement(PopoverContent, null, children) : children);
|
|
8519
8710
|
});
|
|
8520
|
-
Popover.defaultProps = defaultProps$
|
|
8711
|
+
Popover.defaultProps = defaultProps$7;
|
|
8521
8712
|
Popover.Title = PopoverTitle;
|
|
8522
8713
|
Popover.Content = PopoverContent;
|
|
8523
8714
|
|
|
8524
8715
|
var ROUND_PRECISION = 1000;
|
|
8525
8716
|
|
|
8526
|
-
var defaultProps$
|
|
8717
|
+
var defaultProps$6 = {
|
|
8527
8718
|
min: 0,
|
|
8528
8719
|
max: 100,
|
|
8529
8720
|
animated: false,
|
|
@@ -8551,14 +8742,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8551
8742
|
style = _ref.style,
|
|
8552
8743
|
variant = _ref.variant,
|
|
8553
8744
|
bsPrefix = _ref.bsPrefix,
|
|
8554
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8745
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8555
8746
|
|
|
8556
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
8747
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
8557
8748
|
ref: ref
|
|
8558
8749
|
}, props, {
|
|
8559
8750
|
role: "progressbar",
|
|
8560
|
-
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8561
|
-
style: _extends({
|
|
8751
|
+
className: index.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8752
|
+
style: index._extends({
|
|
8562
8753
|
width: getPercentage(now, min, max) + "%"
|
|
8563
8754
|
}, style),
|
|
8564
8755
|
"aria-valuenow": now,
|
|
@@ -8571,7 +8762,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8571
8762
|
|
|
8572
8763
|
var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
8573
8764
|
var isChild = _ref2.isChild,
|
|
8574
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8765
|
+
props = index._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8575
8766
|
|
|
8576
8767
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8577
8768
|
|
|
@@ -8590,12 +8781,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8590
8781
|
variant = props.variant,
|
|
8591
8782
|
className = props.className,
|
|
8592
8783
|
children = props.children,
|
|
8593
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8784
|
+
wrapperProps = index._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8594
8785
|
|
|
8595
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
8786
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
8596
8787
|
ref: ref
|
|
8597
8788
|
}, wrapperProps, {
|
|
8598
|
-
className: classnames(className, bsPrefix)
|
|
8789
|
+
className: index.classnames(className, bsPrefix)
|
|
8599
8790
|
}), children ? map(children, function (child) {
|
|
8600
8791
|
return React.cloneElement(child, {
|
|
8601
8792
|
isChild: true
|
|
@@ -8613,9 +8804,9 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8613
8804
|
}, ref));
|
|
8614
8805
|
});
|
|
8615
8806
|
ProgressBar.displayName = 'ProgressBar';
|
|
8616
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8807
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8617
8808
|
|
|
8618
|
-
var defaultProps$
|
|
8809
|
+
var defaultProps$5 = {
|
|
8619
8810
|
aspectRatio: '1by1'
|
|
8620
8811
|
};
|
|
8621
8812
|
var ResponsiveEmbed = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8623,22 +8814,22 @@ var ResponsiveEmbed = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
8623
8814
|
className = _ref.className,
|
|
8624
8815
|
children = _ref.children,
|
|
8625
8816
|
aspectRatio = _ref.aspectRatio,
|
|
8626
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8817
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8627
8818
|
|
|
8628
8819
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8629
8820
|
var child = React__default['default'].Children.only(children);
|
|
8630
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
8821
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
8631
8822
|
ref: ref
|
|
8632
8823
|
}, props, {
|
|
8633
|
-
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8824
|
+
className: index.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8634
8825
|
}), React__default['default'].cloneElement(child, {
|
|
8635
|
-
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8826
|
+
className: index.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8636
8827
|
}));
|
|
8637
8828
|
});
|
|
8638
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8829
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8639
8830
|
|
|
8640
|
-
var DEVICE_SIZES
|
|
8641
|
-
var defaultProps$
|
|
8831
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8832
|
+
var defaultProps$4 = {
|
|
8642
8833
|
noGutters: false
|
|
8643
8834
|
};
|
|
8644
8835
|
var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -8647,12 +8838,12 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8647
8838
|
noGutters = _ref.noGutters,
|
|
8648
8839
|
_ref$as = _ref.as,
|
|
8649
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8650
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8841
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8651
8842
|
|
|
8652
8843
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8653
8844
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8654
8845
|
var classes = [];
|
|
8655
|
-
DEVICE_SIZES
|
|
8846
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8656
8847
|
var propValue = props[brkPoint];
|
|
8657
8848
|
delete props[brkPoint];
|
|
8658
8849
|
var cols;
|
|
@@ -8666,14 +8857,14 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8666
8857
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8667
8858
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8668
8859
|
});
|
|
8669
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8860
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8670
8861
|
ref: ref
|
|
8671
8862
|
}, props, {
|
|
8672
|
-
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8863
|
+
className: index.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8673
8864
|
}));
|
|
8674
8865
|
});
|
|
8675
8866
|
Row.displayName = 'Row';
|
|
8676
|
-
Row.defaultProps = defaultProps$
|
|
8867
|
+
Row.defaultProps = defaultProps$4;
|
|
8677
8868
|
|
|
8678
8869
|
var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
8679
8870
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8684,19 +8875,19 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8684
8875
|
_ref$as = _ref.as,
|
|
8685
8876
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8686
8877
|
className = _ref.className,
|
|
8687
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8878
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8688
8879
|
|
|
8689
8880
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8690
8881
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8691
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
8882
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8692
8883
|
ref: ref
|
|
8693
8884
|
}, props, {
|
|
8694
|
-
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8885
|
+
className: index.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8695
8886
|
}), children);
|
|
8696
8887
|
});
|
|
8697
8888
|
Spinner.displayName = 'Spinner';
|
|
8698
8889
|
|
|
8699
|
-
var propTypes
|
|
8890
|
+
var propTypes = {
|
|
8700
8891
|
/**
|
|
8701
8892
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8702
8893
|
* @type {string|number}
|
|
@@ -8727,6 +8918,15 @@ var propTypes$a = {
|
|
|
8727
8918
|
/** Disables both Buttons */
|
|
8728
8919
|
disabled: PropTypes__default['default'].bool,
|
|
8729
8920
|
|
|
8921
|
+
/**
|
|
8922
|
+
* Aligns the dropdown menu responsively.
|
|
8923
|
+
*
|
|
8924
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8925
|
+
*
|
|
8926
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8927
|
+
*/
|
|
8928
|
+
menuAlign: alignPropType,
|
|
8929
|
+
|
|
8730
8930
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8731
8931
|
menuRole: PropTypes__default['default'].string,
|
|
8732
8932
|
|
|
@@ -8736,7 +8936,7 @@ var propTypes$a = {
|
|
|
8736
8936
|
/**
|
|
8737
8937
|
* Which event when fired outside the component will cause it to be closed.
|
|
8738
8938
|
*
|
|
8739
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8939
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8740
8940
|
*/
|
|
8741
8941
|
rootCloseEvent: PropTypes__default['default'].string,
|
|
8742
8942
|
|
|
@@ -8749,7 +8949,7 @@ var propTypes$a = {
|
|
|
8749
8949
|
/** @ignore */
|
|
8750
8950
|
size: PropTypes__default['default'].string
|
|
8751
8951
|
};
|
|
8752
|
-
var defaultProps$
|
|
8952
|
+
var defaultProps$3 = {
|
|
8753
8953
|
toggleLabel: 'Toggle dropdown',
|
|
8754
8954
|
type: 'button'
|
|
8755
8955
|
};
|
|
@@ -8765,12 +8965,13 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8765
8965
|
onClick = _ref.onClick,
|
|
8766
8966
|
href = _ref.href,
|
|
8767
8967
|
target = _ref.target,
|
|
8968
|
+
menuAlign = _ref.menuAlign,
|
|
8768
8969
|
menuRole = _ref.menuRole,
|
|
8769
8970
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8770
8971
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8771
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8972
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8772
8973
|
|
|
8773
|
-
return /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8974
|
+
return /*#__PURE__*/React__default['default'].createElement(Dropdown, index._extends({
|
|
8774
8975
|
ref: ref
|
|
8775
8976
|
}, props, {
|
|
8776
8977
|
as: ButtonGroup
|
|
@@ -8783,7 +8984,7 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8783
8984
|
target: target,
|
|
8784
8985
|
onClick: onClick,
|
|
8785
8986
|
type: type
|
|
8786
|
-
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8987
|
+
}, title), /*#__PURE__*/React__default['default'].createElement(Dropdown.Toggle, {
|
|
8787
8988
|
split: true,
|
|
8788
8989
|
id: id ? id.toString() : undefined,
|
|
8789
8990
|
size: size,
|
|
@@ -8792,14 +8993,15 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8792
8993
|
childBsPrefix: bsPrefix
|
|
8793
8994
|
}, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
8794
8995
|
className: "sr-only"
|
|
8795
|
-
}, toggleLabel)), /*#__PURE__*/React__default['default'].createElement(Dropdown
|
|
8996
|
+
}, toggleLabel)), /*#__PURE__*/React__default['default'].createElement(Dropdown.Menu, {
|
|
8997
|
+
align: menuAlign,
|
|
8796
8998
|
role: menuRole,
|
|
8797
8999
|
renderOnMount: renderMenuOnMount,
|
|
8798
9000
|
rootCloseEvent: rootCloseEvent
|
|
8799
9001
|
}, children));
|
|
8800
9002
|
});
|
|
8801
|
-
SplitButton.propTypes = propTypes
|
|
8802
|
-
SplitButton.defaultProps = defaultProps$
|
|
9003
|
+
SplitButton.propTypes = propTypes;
|
|
9004
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8803
9005
|
SplitButton.displayName = 'SplitButton';
|
|
8804
9006
|
|
|
8805
9007
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8847,13 +9049,13 @@ var TabContent = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8847
9049
|
_ref$as = _ref.as,
|
|
8848
9050
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8849
9051
|
className = _ref.className,
|
|
8850
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9052
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8851
9053
|
|
|
8852
9054
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8853
|
-
return /*#__PURE__*/React__default['default'].createElement(Component, _extends({
|
|
9055
|
+
return /*#__PURE__*/React__default['default'].createElement(Component, index._extends({
|
|
8854
9056
|
ref: ref
|
|
8855
9057
|
}, props, {
|
|
8856
|
-
className: classnames(className, decoratedBsPrefix)
|
|
9058
|
+
className: index.classnames(className, decoratedBsPrefix)
|
|
8857
9059
|
}));
|
|
8858
9060
|
});
|
|
8859
9061
|
|
|
@@ -8864,11 +9066,11 @@ function useTabContext(props) {
|
|
|
8864
9066
|
var activeKey = context.activeKey,
|
|
8865
9067
|
getControlledId = context.getControlledId,
|
|
8866
9068
|
getControllerId = context.getControllerId,
|
|
8867
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9069
|
+
rest = index._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8868
9070
|
|
|
8869
9071
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8870
9072
|
var key = makeEventKey(props.eventKey);
|
|
8871
|
-
return _extends({}, props, {
|
|
9073
|
+
return index._extends({}, props, {
|
|
8872
9074
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8873
9075
|
id: getControlledId(props.eventKey),
|
|
8874
9076
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8893,17 +9095,17 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8893
9095
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
8894
9096
|
Transition = _useTabContext.transition,
|
|
8895
9097
|
_useTabContext$as = _useTabContext.as,
|
|
8896
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
8897
|
-
|
|
8898
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9098
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9099
|
+
_useTabContext.eventKey;
|
|
9100
|
+
var rest = index._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8899
9101
|
|
|
8900
9102
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8901
9103
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8902
|
-
var pane = /*#__PURE__*/React__default['default'].createElement(Component, _extends({}, rest, {
|
|
9104
|
+
var pane = /*#__PURE__*/React__default['default'].createElement(Component, index._extends({}, rest, {
|
|
8903
9105
|
ref: ref,
|
|
8904
9106
|
role: "tabpanel",
|
|
8905
9107
|
"aria-hidden": !active,
|
|
8906
|
-
className: classnames(className, prefix, {
|
|
9108
|
+
className: index.classnames(className, prefix, {
|
|
8907
9109
|
active: active
|
|
8908
9110
|
})
|
|
8909
9111
|
}));
|
|
@@ -8949,7 +9151,7 @@ Tab.Container = TabContainer;
|
|
|
8949
9151
|
Tab.Content = TabContent;
|
|
8950
9152
|
Tab.Pane = TabPane;
|
|
8951
9153
|
|
|
8952
|
-
|
|
9154
|
+
React__default['default'].forwardRef(function (_ref, ref) {
|
|
8953
9155
|
var bsPrefix = _ref.bsPrefix,
|
|
8954
9156
|
className = _ref.className,
|
|
8955
9157
|
striped = _ref.striped,
|
|
@@ -8959,11 +9161,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8959
9161
|
size = _ref.size,
|
|
8960
9162
|
variant = _ref.variant,
|
|
8961
9163
|
responsive = _ref.responsive,
|
|
8962
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9164
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
8963
9165
|
|
|
8964
9166
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
8965
|
-
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
8966
|
-
var table = /*#__PURE__*/React__default['default'].createElement("table", _extends({}, props, {
|
|
9167
|
+
var classes = index.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9168
|
+
var table = /*#__PURE__*/React__default['default'].createElement("table", index._extends({}, props, {
|
|
8967
9169
|
className: classes,
|
|
8968
9170
|
ref: ref
|
|
8969
9171
|
}));
|
|
@@ -8988,7 +9190,7 @@ var ToastContext = React__default['default'].createContext({
|
|
|
8988
9190
|
onClose: function onClose() {}
|
|
8989
9191
|
});
|
|
8990
9192
|
|
|
8991
|
-
var defaultProps$
|
|
9193
|
+
var defaultProps$2 = {
|
|
8992
9194
|
closeLabel: 'Close',
|
|
8993
9195
|
closeButton: true
|
|
8994
9196
|
};
|
|
@@ -8998,7 +9200,7 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8998
9200
|
closeButton = _ref.closeButton,
|
|
8999
9201
|
className = _ref.className,
|
|
9000
9202
|
children = _ref.children,
|
|
9001
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9203
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9002
9204
|
|
|
9003
9205
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9004
9206
|
var context = React.useContext(ToastContext);
|
|
@@ -9007,10 +9209,10 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9007
9209
|
context.onClose(e);
|
|
9008
9210
|
}
|
|
9009
9211
|
});
|
|
9010
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
9212
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
9011
9213
|
ref: ref
|
|
9012
9214
|
}, props, {
|
|
9013
|
-
className: classnames(bsPrefix, className)
|
|
9215
|
+
className: index.classnames(bsPrefix, className)
|
|
9014
9216
|
}), children, closeButton && /*#__PURE__*/React__default['default'].createElement(CloseButton, {
|
|
9015
9217
|
label: closeLabel,
|
|
9016
9218
|
onClick: handleClick,
|
|
@@ -9019,7 +9221,7 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9019
9221
|
}));
|
|
9020
9222
|
});
|
|
9021
9223
|
ToastHeader.displayName = 'ToastHeader';
|
|
9022
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9224
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9023
9225
|
|
|
9024
9226
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9025
9227
|
|
|
@@ -9038,7 +9240,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9038
9240
|
_ref$autohide = _ref.autohide,
|
|
9039
9241
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9040
9242
|
onClose = _ref.onClose,
|
|
9041
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9243
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9042
9244
|
|
|
9043
9245
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9044
9246
|
// timer in case these values change.
|
|
@@ -9066,9 +9268,9 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9066
9268
|
};
|
|
9067
9269
|
}, [onClose]);
|
|
9068
9270
|
var hasAnimation = !!(Transition && animation);
|
|
9069
|
-
var toast = /*#__PURE__*/React__default['default'].createElement("div", _extends({}, props, {
|
|
9271
|
+
var toast = /*#__PURE__*/React__default['default'].createElement("div", index._extends({}, props, {
|
|
9070
9272
|
ref: ref,
|
|
9071
|
-
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9273
|
+
className: index.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9072
9274
|
role: "alert",
|
|
9073
9275
|
"aria-live": "assertive",
|
|
9074
9276
|
"aria-atomic": "true"
|
|
@@ -9086,7 +9288,7 @@ Object.assign(Toast, {
|
|
|
9086
9288
|
Header: ToastHeader
|
|
9087
9289
|
});
|
|
9088
9290
|
|
|
9089
|
-
var noop
|
|
9291
|
+
var noop = function noop() {
|
|
9090
9292
|
return undefined;
|
|
9091
9293
|
};
|
|
9092
9294
|
|
|
@@ -9100,7 +9302,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9100
9302
|
value = _ref.value,
|
|
9101
9303
|
disabled = _ref.disabled,
|
|
9102
9304
|
inputRef = _ref.inputRef,
|
|
9103
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9305
|
+
props = index._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9104
9306
|
|
|
9105
9307
|
var _useState = React.useState(false),
|
|
9106
9308
|
focused = _useState[0],
|
|
@@ -9112,9 +9314,9 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9112
9314
|
var handleBlur = React.useCallback(function (e) {
|
|
9113
9315
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9114
9316
|
}, []);
|
|
9115
|
-
return /*#__PURE__*/React__default['default'].createElement(Button, _extends({}, props, {
|
|
9317
|
+
return /*#__PURE__*/React__default['default'].createElement(Button, index._extends({}, props, {
|
|
9116
9318
|
ref: ref,
|
|
9117
|
-
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9319
|
+
className: index.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9118
9320
|
type: undefined,
|
|
9119
9321
|
active: !!checked,
|
|
9120
9322
|
as: "label"
|
|
@@ -9128,13 +9330,14 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9128
9330
|
disabled: !!disabled,
|
|
9129
9331
|
onFocus: handleFocus,
|
|
9130
9332
|
onBlur: handleBlur,
|
|
9131
|
-
onChange: onChange || noop
|
|
9333
|
+
onChange: onChange || noop
|
|
9132
9334
|
}), children);
|
|
9133
9335
|
});
|
|
9134
9336
|
ToggleButton.displayName = 'ToggleButton';
|
|
9135
9337
|
|
|
9136
|
-
var defaultProps$
|
|
9137
|
-
type: 'radio'
|
|
9338
|
+
var defaultProps$1 = {
|
|
9339
|
+
type: 'radio',
|
|
9340
|
+
vertical: false
|
|
9138
9341
|
};
|
|
9139
9342
|
var ToggleButtonGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
9140
9343
|
var _useUncontrolled = useUncontrolled(props, {
|
|
@@ -9145,7 +9348,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9145
9348
|
name = _useUncontrolled.name,
|
|
9146
9349
|
value = _useUncontrolled.value,
|
|
9147
9350
|
onChange = _useUncontrolled.onChange,
|
|
9148
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9351
|
+
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9149
9352
|
|
|
9150
9353
|
var getValues = function getValues() {
|
|
9151
9354
|
return value == null ? [] : [].concat(value);
|
|
@@ -9174,7 +9377,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9174
9377
|
};
|
|
9175
9378
|
|
|
9176
9379
|
!(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;
|
|
9177
|
-
return /*#__PURE__*/React__default['default'].createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9380
|
+
return /*#__PURE__*/React__default['default'].createElement(ButtonGroup, index._extends({}, controlledProps, {
|
|
9178
9381
|
ref: ref,
|
|
9179
9382
|
toggle: true
|
|
9180
9383
|
}), map(children, function (child) {
|
|
@@ -9195,10 +9398,10 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9195
9398
|
});
|
|
9196
9399
|
}));
|
|
9197
9400
|
});
|
|
9198
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9401
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9199
9402
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9200
9403
|
|
|
9201
|
-
var defaultProps
|
|
9404
|
+
var defaultProps = {
|
|
9202
9405
|
placement: 'right'
|
|
9203
9406
|
};
|
|
9204
9407
|
var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
@@ -9207,29 +9410,29 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9207
9410
|
className = _ref.className,
|
|
9208
9411
|
style = _ref.style,
|
|
9209
9412
|
children = _ref.children,
|
|
9210
|
-
arrowProps = _ref.arrowProps
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9413
|
+
arrowProps = _ref.arrowProps;
|
|
9414
|
+
_ref.popper;
|
|
9415
|
+
_ref.show;
|
|
9416
|
+
var props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9214
9417
|
|
|
9215
9418
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9216
9419
|
|
|
9217
9420
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9218
9421
|
primaryPlacement = _ref2[0];
|
|
9219
9422
|
|
|
9220
|
-
return /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
9423
|
+
return /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
9221
9424
|
ref: ref,
|
|
9222
9425
|
style: style,
|
|
9223
9426
|
role: "tooltip",
|
|
9224
9427
|
"x-placement": primaryPlacement,
|
|
9225
|
-
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9226
|
-
}, props), /*#__PURE__*/React__default['default'].createElement("div", _extends({
|
|
9428
|
+
className: index.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9429
|
+
}, props), /*#__PURE__*/React__default['default'].createElement("div", index._extends({
|
|
9227
9430
|
className: "arrow"
|
|
9228
9431
|
}, arrowProps)), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9229
9432
|
className: bsPrefix + "-inner"
|
|
9230
9433
|
}, children));
|
|
9231
9434
|
});
|
|
9232
|
-
Tooltip.defaultProps = defaultProps
|
|
9435
|
+
Tooltip.defaultProps = defaultProps;
|
|
9233
9436
|
Tooltip.displayName = 'Tooltip';
|
|
9234
9437
|
|
|
9235
9438
|
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
@@ -9256,7 +9459,7 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9256
9459
|
'figure',
|
|
9257
9460
|
null,
|
|
9258
9461
|
React__default['default'].createElement(
|
|
9259
|
-
index.LazyLoad,
|
|
9462
|
+
index$1.LazyLoad,
|
|
9260
9463
|
null,
|
|
9261
9464
|
React__default['default'].createElement('img', {
|
|
9262
9465
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
@@ -9297,6 +9500,6 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9297
9500
|
);
|
|
9298
9501
|
};
|
|
9299
9502
|
|
|
9300
|
-
exports.Dropdown = Dropdown
|
|
9503
|
+
exports.Dropdown = Dropdown;
|
|
9301
9504
|
exports.DropdownButton = DropdownButton;
|
|
9302
9505
|
exports.MediaSeriesCard = MediaSeriesCard;
|