@mjhls/mjh-framework 1.0.884-gridcontent-paginated-v2 → 1.0.885-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1306 -1490
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +57 -58
- package/dist/cjs/ArticleSeriesLandingPage.js +38 -39
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +417 -1635
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +25 -26
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/ContentCardPaginated.js +92 -97
- package/dist/cjs/DeckContent.js +93 -97
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/DeckQueuePaginated.js +86 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-f492f985.js} +31 -32
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +185 -189
- package/dist/cjs/GridContentPaginated.js +184 -189
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +130 -135
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/{ImageSlider-b96720eb.js → ImageSlider-38f25e66.js} +1375 -199
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +64 -65
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +70 -71
- package/dist/cjs/MasterDeckPaginated.js +65 -67
- package/dist/cjs/{MediaSeriesCard-3d5c69ba.js → MediaSeriesCard-8d27612b.js} +1050 -1144
- package/dist/cjs/MediaSeriesLanding.js +85 -87
- package/dist/cjs/MediaSeriesLandingPaginated.js +86 -88
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +136 -141
- package/dist/cjs/NavNative.js +128 -136
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-90473595.js +59 -0
- package/dist/cjs/PartnerDetailListing.js +94 -96
- package/dist/cjs/PartnerDetailListingPaginated.js +92 -94
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/{PublicationFeature-5ccf9b13.js → PublicationFeature-28c549f2.js} +36 -40
- package/dist/cjs/PublicationLanding.js +106 -114
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/QueueDeckExpandedPaginated.js +267 -267
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +29 -30
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Schema.js +100 -0
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-de93a303.js → SeriesSlider-49b81b0b.js} +35 -36
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +34 -35
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +28 -29
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +72 -76
- package/dist/cjs/VideoSeriesCard.js +31 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +47 -48
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +263 -346
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +63 -64
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +5 -5
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +4 -4
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-6d59cc5b.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-6f89aea7.js → index-54adcbc3.js} +1044 -1070
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-00a6aade.js → index.esm-90433435.js} +16 -7
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-f27f80d9.js → index.esm-ff47db6f.js} +13 -6
- package/dist/cjs/index.js +168 -173
- package/dist/cjs/{inherits-de66ea16.js → inherits-12d44cca.js} +18 -18
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-d767ebe2.js} +4 -4
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +906 -14
- package/dist/esm/AlgoliaSearch.js +534 -717
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +31 -31
- package/dist/esm/Auth.js +1419 -591
- package/dist/esm/AuthWrapper.js +390 -1607
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column2.js +14 -14
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +10 -10
- package/dist/esm/ContentCardPaginated.js +35 -35
- package/dist/esm/DeckContent.js +33 -33
- package/dist/esm/DeckQueue.js +31 -31
- package/dist/esm/DeckQueuePaginated.js +31 -31
- package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
- package/dist/esm/EventsDeck.js +24 -24
- package/dist/esm/ExternalResources.js +45 -45
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +47 -47
- package/dist/esm/GridContentPaginated.js +45 -45
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +26 -26
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/{ImageSlider-de7846ea.js → ImageSlider-a3154b97.js} +1317 -141
- package/dist/esm/IssueContentDeck.js +11 -11
- package/dist/esm/IssueDeck.js +14 -14
- package/dist/esm/IssueLanding.js +53 -53
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +32 -32
- package/dist/esm/MasterDeckPaginated.js +30 -30
- package/dist/esm/{MediaSeriesCard-5b1d13dd.js → MediaSeriesCard-1dd7eae8.js} +601 -693
- package/dist/esm/MediaSeriesLanding.js +52 -52
- package/dist/esm/MediaSeriesLandingPaginated.js +55 -55
- package/dist/esm/NavDvm.js +11 -11
- package/dist/esm/NavMagazine.js +29 -29
- package/dist/esm/NavNative.js +28 -28
- package/dist/esm/OncliveHero.js +8 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/{Pagination-481eaaf5.js → Pagination-683fa8ef.js} +2 -2
- package/dist/esm/PartnerDetailListing.js +58 -59
- package/dist/esm/PartnerDetailListingPaginated.js +56 -57
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +10 -10
- package/dist/esm/{PublicationFeature-d88e76b9.js → PublicationFeature-fa24dedb.js} +2 -2
- package/dist/esm/PublicationLanding.js +25 -29
- package/dist/esm/QueueDeckExpanded.js +36 -36
- package/dist/esm/QueueDeckExpandedPaginated.js +35 -35
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +10 -10
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +5 -5
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-98ad6d97.js → SeriesSlider-ce19fa25.js} +10 -10
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +13 -13
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-dca69151.js} +10 -10
- package/dist/esm/TaxonomyCard.js +12 -12
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +46 -46
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +12 -12
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +49 -49
- package/dist/esm/VideoSeriesCard.js +13 -13
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +31 -31
- package/dist/esm/View.js +89 -168
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +17 -17
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-36031a00.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-ca0c9ff5.js → index-d1476645.js} +599 -615
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-f6156a57.js → index.esm-29e48d38.js} +16 -7
- package/dist/esm/{index.esm-d4932dea.js → index.esm-cf08bf18.js} +13 -6
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +122 -125
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/Pagination-b5e8b8dc.js +0 -60
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
+
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
2
3
|
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
5
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
4
6
|
import ReactDOM from 'react-dom';
|
|
5
|
-
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
6
|
-
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
7
|
-
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
8
7
|
import urlFor from './urlFor.js';
|
|
9
|
-
import {
|
|
8
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
9
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
10
|
+
import { g as getSerializers } from './index-d1476645.js';
|
|
11
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
10
12
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-ca0c9ff5.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -104,7 +104,7 @@ function useUncontrolled(props, config) {
|
|
|
104
104
|
var _ref = result,
|
|
105
105
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
106
106
|
propsValue = _ref[fieldName],
|
|
107
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
107
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
108
108
|
|
|
109
109
|
var handlerName = config[fieldName];
|
|
110
110
|
|
|
@@ -112,19 +112,19 @@ function useUncontrolled(props, config) {
|
|
|
112
112
|
value = _useUncontrolledProp[0],
|
|
113
113
|
handler = _useUncontrolledProp[1];
|
|
114
114
|
|
|
115
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
115
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
116
116
|
}, props);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
function _inheritsLoose(subClass, superClass) {
|
|
120
120
|
subClass.prototype = Object.create(superClass.prototype);
|
|
121
121
|
subClass.prototype.constructor = subClass;
|
|
122
|
-
|
|
122
|
+
subClass.__proto__ = superClass;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
var ThemeContext = React__default.createContext({});
|
|
126
|
-
ThemeContext.Consumer
|
|
127
|
-
ThemeContext.Provider;
|
|
126
|
+
var Consumer = ThemeContext.Consumer,
|
|
127
|
+
Provider = ThemeContext.Provider;
|
|
128
128
|
|
|
129
129
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
130
130
|
var prefixes = useContext(ThemeContext);
|
|
@@ -141,11 +141,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
141
141
|
return href || null;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
|
-
var context
|
|
145
|
-
context
|
|
144
|
+
var context = React__default.createContext(null);
|
|
145
|
+
context.displayName = 'AccordionContext';
|
|
146
146
|
|
|
147
147
|
function useAccordionToggle(eventKey, onClick) {
|
|
148
|
-
var contextEventKey = useContext(context
|
|
148
|
+
var contextEventKey = useContext(context);
|
|
149
149
|
var onSelect = useContext(SelectableContext);
|
|
150
150
|
return function (e) {
|
|
151
151
|
/*
|
|
@@ -163,7 +163,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
163
163
|
children = _ref.children,
|
|
164
164
|
eventKey = _ref.eventKey,
|
|
165
165
|
onClick = _ref.onClick,
|
|
166
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
166
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
167
167
|
|
|
168
168
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
169
169
|
|
|
@@ -171,40 +171,22 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
171
171
|
props.type = 'button';
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
174
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
175
175
|
ref: ref,
|
|
176
176
|
onClick: accordionOnClick
|
|
177
177
|
}, props), children);
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
* Returns the owner document of a given element.
|
|
182
|
-
*
|
|
183
|
-
* @param node the element
|
|
184
|
-
*/
|
|
185
|
-
function ownerDocument$1(node) {
|
|
180
|
+
function ownerDocument(node) {
|
|
186
181
|
return node && node.ownerDocument || document;
|
|
187
182
|
}
|
|
188
183
|
|
|
189
|
-
/**
|
|
190
|
-
* Returns the owner window of a given element.
|
|
191
|
-
*
|
|
192
|
-
* @param node the element
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
184
|
function ownerWindow(node) {
|
|
196
|
-
var doc = ownerDocument
|
|
185
|
+
var doc = ownerDocument(node);
|
|
197
186
|
return doc && doc.defaultView || window;
|
|
198
187
|
}
|
|
199
188
|
|
|
200
|
-
|
|
201
|
-
* Returns one or all computed style properties of an element.
|
|
202
|
-
*
|
|
203
|
-
* @param node the element
|
|
204
|
-
* @param psuedoElement the style property
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
function getComputedStyle$2(node, psuedoElement) {
|
|
189
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
208
190
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
209
191
|
}
|
|
210
192
|
|
|
@@ -233,7 +215,7 @@ function style(node, property) {
|
|
|
233
215
|
var transforms = '';
|
|
234
216
|
|
|
235
217
|
if (typeof property === 'string') {
|
|
236
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
218
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
237
219
|
}
|
|
238
220
|
|
|
239
221
|
Object.keys(property).forEach(function (key) {
|
|
@@ -284,11 +266,6 @@ try {
|
|
|
284
266
|
|
|
285
267
|
/**
|
|
286
268
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
287
|
-
*
|
|
288
|
-
* @param node the element
|
|
289
|
-
* @param eventName the event name
|
|
290
|
-
* @param handle the handler
|
|
291
|
-
* @param options event options
|
|
292
269
|
*/
|
|
293
270
|
function addEventListener(node, eventName, handler, options) {
|
|
294
271
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -311,14 +288,6 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
311
288
|
node.addEventListener(eventName, handler, options);
|
|
312
289
|
}
|
|
313
290
|
|
|
314
|
-
/**
|
|
315
|
-
* A `removeEventListener` ponyfill
|
|
316
|
-
*
|
|
317
|
-
* @param node the element
|
|
318
|
-
* @param eventName the event name
|
|
319
|
-
* @param handle the handler
|
|
320
|
-
* @param options event options
|
|
321
|
-
*/
|
|
322
291
|
function removeEventListener(node, eventName, handler, options) {
|
|
323
292
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
324
293
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -335,36 +304,18 @@ function listen(node, eventName, handler, options) {
|
|
|
335
304
|
};
|
|
336
305
|
}
|
|
337
306
|
|
|
338
|
-
/**
|
|
339
|
-
* Triggers an event on a given element.
|
|
340
|
-
*
|
|
341
|
-
* @param node the element
|
|
342
|
-
* @param eventName the event name to trigger
|
|
343
|
-
* @param bubbles whether the event should bubble up
|
|
344
|
-
* @param cancelable whether the event should be cancelable
|
|
345
|
-
*/
|
|
346
|
-
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
347
|
-
if (bubbles === void 0) {
|
|
348
|
-
bubbles = false;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
if (cancelable === void 0) {
|
|
352
|
-
cancelable = true;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
if (node) {
|
|
356
|
-
var event = document.createEvent('HTMLEvents');
|
|
357
|
-
event.initEvent(eventName, bubbles, cancelable);
|
|
358
|
-
node.dispatchEvent(event);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
307
|
function parseDuration(node) {
|
|
363
308
|
var str = style(node, 'transitionDuration') || '';
|
|
364
309
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
365
310
|
return parseFloat(str) * mult;
|
|
366
311
|
}
|
|
367
312
|
|
|
313
|
+
function triggerTransitionEnd(element) {
|
|
314
|
+
var evt = document.createEvent('HTMLEvents');
|
|
315
|
+
evt.initEvent('transitionend', true, true);
|
|
316
|
+
element.dispatchEvent(evt);
|
|
317
|
+
}
|
|
318
|
+
|
|
368
319
|
function emulateTransitionEnd(element, duration, padding) {
|
|
369
320
|
if (padding === void 0) {
|
|
370
321
|
padding = 5;
|
|
@@ -372,7 +323,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
372
323
|
|
|
373
324
|
var called = false;
|
|
374
325
|
var handle = setTimeout(function () {
|
|
375
|
-
if (!called)
|
|
326
|
+
if (!called) triggerTransitionEnd(element);
|
|
376
327
|
}, duration + padding);
|
|
377
328
|
var remove = listen(element, 'transitionend', function () {
|
|
378
329
|
called = true;
|
|
@@ -404,7 +355,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
404
355
|
exit: PropTypes.number,
|
|
405
356
|
appear: PropTypes.number
|
|
406
357
|
}).isRequired]) : null;
|
|
407
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
358
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
408
359
|
enter: PropTypes.string,
|
|
409
360
|
exit: PropTypes.string,
|
|
410
361
|
active: PropTypes.string
|
|
@@ -786,23 +737,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
786
737
|
}
|
|
787
738
|
|
|
788
739
|
var _this$props = this.props,
|
|
789
|
-
children = _this$props.children
|
|
790
|
-
_this$props.in
|
|
791
|
-
_this$props.mountOnEnter
|
|
792
|
-
_this$props.unmountOnExit
|
|
793
|
-
_this$props.appear
|
|
794
|
-
_this$props.enter
|
|
795
|
-
_this$props.exit
|
|
796
|
-
_this$props.timeout
|
|
797
|
-
_this$props.addEndListener
|
|
798
|
-
_this$props.onEnter
|
|
799
|
-
_this$props.onEntering
|
|
800
|
-
_this$props.onEntered
|
|
801
|
-
_this$props.onExit
|
|
802
|
-
_this$props.onExiting
|
|
803
|
-
_this$props.onExited
|
|
804
|
-
_this$props.nodeRef
|
|
805
|
-
|
|
740
|
+
children = _this$props.children,
|
|
741
|
+
_in = _this$props.in,
|
|
742
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
743
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
744
|
+
_appear = _this$props.appear,
|
|
745
|
+
_enter = _this$props.enter,
|
|
746
|
+
_exit = _this$props.exit,
|
|
747
|
+
_timeout = _this$props.timeout,
|
|
748
|
+
_addEndListener = _this$props.addEndListener,
|
|
749
|
+
_onEnter = _this$props.onEnter,
|
|
750
|
+
_onEntering = _this$props.onEntering,
|
|
751
|
+
_onEntered = _this$props.onEntered,
|
|
752
|
+
_onExit = _this$props.onExit,
|
|
753
|
+
_onExiting = _this$props.onExiting,
|
|
754
|
+
_onExited = _this$props.onExited,
|
|
755
|
+
_nodeRef = _this$props.nodeRef,
|
|
756
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
806
757
|
|
|
807
758
|
return (
|
|
808
759
|
/*#__PURE__*/
|
|
@@ -830,10 +781,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
830
781
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
831
782
|
*/
|
|
832
783
|
nodeRef: PropTypes.shape({
|
|
833
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
834
|
-
var value = propValue[key];
|
|
835
|
-
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
836
|
-
}
|
|
784
|
+
current: typeof Element === 'undefined' ? PropTypes.any : PropTypes.instanceOf(Element)
|
|
837
785
|
}),
|
|
838
786
|
|
|
839
787
|
/**
|
|
@@ -1005,7 +953,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1005
953
|
onExited: PropTypes.func
|
|
1006
954
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1007
955
|
|
|
1008
|
-
function noop
|
|
956
|
+
function noop() {}
|
|
1009
957
|
|
|
1010
958
|
Transition.defaultProps = {
|
|
1011
959
|
in: false,
|
|
@@ -1014,12 +962,12 @@ Transition.defaultProps = {
|
|
|
1014
962
|
appear: false,
|
|
1015
963
|
enter: true,
|
|
1016
964
|
exit: true,
|
|
1017
|
-
onEnter: noop
|
|
1018
|
-
onEntering: noop
|
|
1019
|
-
onEntered: noop
|
|
1020
|
-
onExit: noop
|
|
1021
|
-
onExiting: noop
|
|
1022
|
-
onExited: noop
|
|
965
|
+
onEnter: noop,
|
|
966
|
+
onEntering: noop,
|
|
967
|
+
onEntered: noop,
|
|
968
|
+
onExit: noop,
|
|
969
|
+
onExiting: noop,
|
|
970
|
+
onExited: noop
|
|
1023
971
|
};
|
|
1024
972
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1025
973
|
Transition.EXITED = EXITED;
|
|
@@ -1085,7 +1033,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1085
1033
|
}
|
|
1086
1034
|
|
|
1087
1035
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1088
|
-
var defaultProps
|
|
1036
|
+
var defaultProps = {
|
|
1089
1037
|
in: false,
|
|
1090
1038
|
timeout: 300,
|
|
1091
1039
|
mountOnEnter: false,
|
|
@@ -1105,7 +1053,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1105
1053
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1106
1054
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1107
1055
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1108
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1056
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1109
1057
|
|
|
1110
1058
|
/* Compute dimension */
|
|
1111
1059
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1141,7 +1089,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1141
1089
|
}, onExiting);
|
|
1142
1090
|
}, [computedDimension, onExiting]);
|
|
1143
1091
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1144
|
-
, _extends({
|
|
1092
|
+
, _extends$1({
|
|
1145
1093
|
ref: ref,
|
|
1146
1094
|
addEndListener: transitionEnd
|
|
1147
1095
|
}, props, {
|
|
@@ -1152,26 +1100,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1152
1100
|
onExit: handleExit,
|
|
1153
1101
|
onExiting: handleExiting
|
|
1154
1102
|
}), function (state, innerProps) {
|
|
1155
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1103
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1156
1104
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1157
1105
|
}));
|
|
1158
1106
|
});
|
|
1159
1107
|
}); // @ts-ignore
|
|
1160
1108
|
|
|
1161
1109
|
// @ts-ignore
|
|
1162
|
-
Collapse.defaultProps = defaultProps
|
|
1110
|
+
Collapse.defaultProps = defaultProps;
|
|
1163
1111
|
|
|
1164
1112
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1165
1113
|
var children = _ref.children,
|
|
1166
1114
|
eventKey = _ref.eventKey,
|
|
1167
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1115
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1168
1116
|
|
|
1169
|
-
var contextEventKey = useContext(context
|
|
1117
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1170
1118
|
// from collapsing the accordion when clicked.
|
|
1171
1119
|
|
|
1172
1120
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1173
1121
|
value: null
|
|
1174
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1122
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1175
1123
|
ref: ref,
|
|
1176
1124
|
in: contextEventKey === eventKey
|
|
1177
1125
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1189,14 +1137,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1189
1137
|
children = _useUncontrolled.children,
|
|
1190
1138
|
className = _useUncontrolled.className,
|
|
1191
1139
|
onSelect = _useUncontrolled.onSelect,
|
|
1192
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1140
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1193
1141
|
|
|
1194
1142
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1195
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
1143
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1196
1144
|
value: activeKey || null
|
|
1197
1145
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1198
1146
|
value: onSelect || null
|
|
1199
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1147
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1200
1148
|
ref: ref
|
|
1201
1149
|
}, controlledProps, {
|
|
1202
1150
|
className: finalClassName
|
|
@@ -1232,7 +1180,7 @@ function useEventCallback(fn) {
|
|
|
1232
1180
|
}
|
|
1233
1181
|
|
|
1234
1182
|
var _fadeStyles;
|
|
1235
|
-
var defaultProps$
|
|
1183
|
+
var defaultProps$1 = {
|
|
1236
1184
|
in: false,
|
|
1237
1185
|
timeout: 300,
|
|
1238
1186
|
mountOnEnter: false,
|
|
@@ -1243,40 +1191,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1243
1191
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1244
1192
|
var className = _ref.className,
|
|
1245
1193
|
children = _ref.children,
|
|
1246
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1194
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1247
1195
|
|
|
1248
1196
|
var handleEnter = useCallback(function (node) {
|
|
1249
1197
|
triggerBrowserReflow(node);
|
|
1250
1198
|
if (props.onEnter) props.onEnter(node);
|
|
1251
1199
|
}, [props]);
|
|
1252
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1200
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1253
1201
|
ref: ref,
|
|
1254
1202
|
addEndListener: transitionEnd
|
|
1255
1203
|
}, props, {
|
|
1256
1204
|
onEnter: handleEnter
|
|
1257
1205
|
}), function (status, innerProps) {
|
|
1258
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1206
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1259
1207
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1260
1208
|
}));
|
|
1261
1209
|
});
|
|
1262
1210
|
});
|
|
1263
|
-
Fade.defaultProps = defaultProps$
|
|
1211
|
+
Fade.defaultProps = defaultProps$1;
|
|
1264
1212
|
Fade.displayName = 'Fade';
|
|
1265
1213
|
|
|
1266
|
-
var propTypes
|
|
1214
|
+
var propTypes = {
|
|
1267
1215
|
label: PropTypes.string.isRequired,
|
|
1268
1216
|
onClick: PropTypes.func
|
|
1269
1217
|
};
|
|
1270
|
-
var defaultProps$
|
|
1218
|
+
var defaultProps$2 = {
|
|
1271
1219
|
label: 'Close'
|
|
1272
1220
|
};
|
|
1273
1221
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1274
1222
|
var label = _ref.label,
|
|
1275
1223
|
onClick = _ref.onClick,
|
|
1276
1224
|
className = _ref.className,
|
|
1277
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1225
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1278
1226
|
|
|
1279
|
-
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1227
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1280
1228
|
ref: ref,
|
|
1281
1229
|
type: "button",
|
|
1282
1230
|
className: classnames('close', className),
|
|
@@ -1288,12 +1236,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1288
1236
|
}, label));
|
|
1289
1237
|
});
|
|
1290
1238
|
CloseButton.displayName = 'CloseButton';
|
|
1291
|
-
CloseButton.propTypes = propTypes
|
|
1292
|
-
CloseButton.defaultProps = defaultProps$
|
|
1239
|
+
CloseButton.propTypes = propTypes;
|
|
1240
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1293
1241
|
|
|
1294
1242
|
var divWithClassName = (function (className) {
|
|
1295
1243
|
return React__default.forwardRef(function (p, ref) {
|
|
1296
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1244
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1297
1245
|
ref: ref,
|
|
1298
1246
|
className: classnames(p.className, className)
|
|
1299
1247
|
}));
|
|
@@ -1324,10 +1272,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1324
1272
|
bsPrefix = _ref2.bsPrefix,
|
|
1325
1273
|
_ref2$as = _ref2.as,
|
|
1326
1274
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1327
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1275
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1328
1276
|
|
|
1329
1277
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1330
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1278
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1331
1279
|
ref: ref,
|
|
1332
1280
|
className: classnames(className, resolvedPrefix)
|
|
1333
1281
|
}, props));
|
|
@@ -1354,7 +1302,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1354
1302
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1355
1303
|
disabled = _ref.disabled,
|
|
1356
1304
|
onKeyDown = _ref.onKeyDown,
|
|
1357
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1305
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1358
1306
|
|
|
1359
1307
|
var handleClick = function handleClick(event) {
|
|
1360
1308
|
var href = props.href,
|
|
@@ -1393,7 +1341,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1393
1341
|
props['aria-disabled'] = true;
|
|
1394
1342
|
}
|
|
1395
1343
|
|
|
1396
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1344
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1397
1345
|
ref: ref
|
|
1398
1346
|
}, props, {
|
|
1399
1347
|
onClick: handleClick,
|
|
@@ -1402,15 +1350,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1402
1350
|
});
|
|
1403
1351
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1404
1352
|
|
|
1405
|
-
var DivStyledAsH4
|
|
1406
|
-
DivStyledAsH4
|
|
1353
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1354
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1407
1355
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1408
|
-
Component: DivStyledAsH4
|
|
1356
|
+
Component: DivStyledAsH4
|
|
1409
1357
|
});
|
|
1410
1358
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1411
1359
|
Component: SafeAnchor
|
|
1412
1360
|
});
|
|
1413
|
-
var defaultProps$
|
|
1361
|
+
var defaultProps$3 = {
|
|
1414
1362
|
show: true,
|
|
1415
1363
|
transition: Fade,
|
|
1416
1364
|
closeLabel: 'Close alert'
|
|
@@ -1428,7 +1376,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1428
1376
|
onClose = _useUncontrolled.onClose,
|
|
1429
1377
|
dismissible = _useUncontrolled.dismissible,
|
|
1430
1378
|
transition = _useUncontrolled.transition,
|
|
1431
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1379
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1432
1380
|
|
|
1433
1381
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1434
1382
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1437,7 +1385,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1437
1385
|
}
|
|
1438
1386
|
});
|
|
1439
1387
|
var Transition = transition === true ? Fade : transition;
|
|
1440
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1388
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1441
1389
|
role: "alert"
|
|
1442
1390
|
}, Transition ? props : undefined, {
|
|
1443
1391
|
ref: ref,
|
|
@@ -1447,7 +1395,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1447
1395
|
label: closeLabel
|
|
1448
1396
|
}), children);
|
|
1449
1397
|
if (!Transition) return show ? alert : null;
|
|
1450
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1398
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1451
1399
|
unmountOnExit: true
|
|
1452
1400
|
}, props, {
|
|
1453
1401
|
ref: undefined,
|
|
@@ -1455,11 +1403,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1455
1403
|
}), alert);
|
|
1456
1404
|
});
|
|
1457
1405
|
Alert.displayName = 'Alert';
|
|
1458
|
-
Alert.defaultProps = defaultProps$
|
|
1406
|
+
Alert.defaultProps = defaultProps$3;
|
|
1459
1407
|
Alert.Link = AlertLink;
|
|
1460
1408
|
Alert.Heading = AlertHeading;
|
|
1461
1409
|
|
|
1462
|
-
var defaultProps$
|
|
1410
|
+
var defaultProps$4 = {
|
|
1463
1411
|
pill: false
|
|
1464
1412
|
};
|
|
1465
1413
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1469,19 +1417,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1469
1417
|
className = _ref.className,
|
|
1470
1418
|
_ref$as = _ref.as,
|
|
1471
1419
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1472
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1420
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1473
1421
|
|
|
1474
1422
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1475
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1423
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1476
1424
|
ref: ref
|
|
1477
1425
|
}, props, {
|
|
1478
1426
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1479
1427
|
}));
|
|
1480
1428
|
});
|
|
1481
1429
|
Badge.displayName = 'Badge';
|
|
1482
|
-
Badge.defaultProps = defaultProps$
|
|
1430
|
+
Badge.defaultProps = defaultProps$4;
|
|
1483
1431
|
|
|
1484
|
-
var defaultProps$
|
|
1432
|
+
var defaultProps$5 = {
|
|
1485
1433
|
active: false,
|
|
1486
1434
|
linkProps: {}
|
|
1487
1435
|
};
|
|
@@ -1498,26 +1446,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1498
1446
|
href = _ref.href,
|
|
1499
1447
|
title = _ref.title,
|
|
1500
1448
|
target = _ref.target,
|
|
1501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1449
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1502
1450
|
|
|
1503
1451
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1504
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1452
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1505
1453
|
ref: ref
|
|
1506
1454
|
}, props, {
|
|
1507
1455
|
className: classnames(prefix, className, {
|
|
1508
1456
|
active: active
|
|
1509
1457
|
}),
|
|
1510
1458
|
"aria-current": active ? 'page' : undefined
|
|
1511
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1459
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1512
1460
|
href: href,
|
|
1513
1461
|
title: title,
|
|
1514
1462
|
target: target
|
|
1515
1463
|
}), children));
|
|
1516
1464
|
});
|
|
1517
1465
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1518
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1466
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1519
1467
|
|
|
1520
|
-
var defaultProps$
|
|
1468
|
+
var defaultProps$6 = {
|
|
1521
1469
|
label: 'breadcrumb',
|
|
1522
1470
|
listProps: {}
|
|
1523
1471
|
};
|
|
@@ -1529,22 +1477,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1529
1477
|
label = _ref.label,
|
|
1530
1478
|
_ref$as = _ref.as,
|
|
1531
1479
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1532
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1480
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1533
1481
|
|
|
1534
1482
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1535
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1483
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1536
1484
|
"aria-label": label,
|
|
1537
1485
|
className: className,
|
|
1538
1486
|
ref: ref
|
|
1539
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1487
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1540
1488
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1541
1489
|
}), children));
|
|
1542
1490
|
});
|
|
1543
1491
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1544
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1492
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1545
1493
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1546
1494
|
|
|
1547
|
-
var defaultProps$
|
|
1495
|
+
var defaultProps$7 = {
|
|
1548
1496
|
variant: 'primary',
|
|
1549
1497
|
active: false,
|
|
1550
1498
|
disabled: false
|
|
@@ -1558,13 +1506,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1558
1506
|
block = _ref.block,
|
|
1559
1507
|
type = _ref.type,
|
|
1560
1508
|
as = _ref.as,
|
|
1561
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1509
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1562
1510
|
|
|
1563
1511
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1564
1512
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1565
1513
|
|
|
1566
1514
|
if (props.href) {
|
|
1567
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1515
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1568
1516
|
as: as,
|
|
1569
1517
|
ref: ref,
|
|
1570
1518
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1582,14 +1530,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1582
1530
|
}
|
|
1583
1531
|
|
|
1584
1532
|
var Component = as || 'button';
|
|
1585
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1533
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1586
1534
|
className: classes
|
|
1587
1535
|
}));
|
|
1588
1536
|
});
|
|
1589
1537
|
Button.displayName = 'Button';
|
|
1590
|
-
Button.defaultProps = defaultProps$
|
|
1538
|
+
Button.defaultProps = defaultProps$7;
|
|
1591
1539
|
|
|
1592
|
-
var defaultProps$
|
|
1540
|
+
var defaultProps$8 = {
|
|
1593
1541
|
vertical: false,
|
|
1594
1542
|
toggle: false,
|
|
1595
1543
|
role: 'group'
|
|
@@ -1602,40 +1550,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1602
1550
|
className = _ref.className,
|
|
1603
1551
|
_ref$as = _ref.as,
|
|
1604
1552
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1605
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1553
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1606
1554
|
|
|
1607
1555
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1608
1556
|
var baseClass = prefix;
|
|
1609
1557
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1610
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1558
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1611
1559
|
ref: ref,
|
|
1612
1560
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1613
1561
|
}));
|
|
1614
1562
|
});
|
|
1615
1563
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1616
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1564
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1617
1565
|
|
|
1618
|
-
var defaultProps$
|
|
1566
|
+
var defaultProps$9 = {
|
|
1619
1567
|
role: 'toolbar'
|
|
1620
1568
|
};
|
|
1621
1569
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1622
1570
|
var bsPrefix = _ref.bsPrefix,
|
|
1623
1571
|
className = _ref.className,
|
|
1624
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1572
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1625
1573
|
|
|
1626
1574
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1627
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1575
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1628
1576
|
ref: ref,
|
|
1629
1577
|
className: classnames(className, prefix)
|
|
1630
1578
|
}));
|
|
1631
1579
|
});
|
|
1632
1580
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1633
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1581
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1634
1582
|
|
|
1635
1583
|
var context$1 = React__default.createContext(null);
|
|
1636
1584
|
context$1.displayName = 'CardContext';
|
|
1637
1585
|
|
|
1638
|
-
var defaultProps$
|
|
1586
|
+
var defaultProps$a = {
|
|
1639
1587
|
variant: null
|
|
1640
1588
|
};
|
|
1641
1589
|
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
@@ -1645,16 +1593,16 @@ function (_ref, ref) {
|
|
|
1645
1593
|
variant = _ref.variant,
|
|
1646
1594
|
_ref$as = _ref.as,
|
|
1647
1595
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1648
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1596
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1649
1597
|
|
|
1650
1598
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1651
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1599
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1652
1600
|
ref: ref,
|
|
1653
1601
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1654
1602
|
}, props));
|
|
1655
1603
|
});
|
|
1656
1604
|
CardImg.displayName = 'CardImg';
|
|
1657
|
-
CardImg.defaultProps = defaultProps$
|
|
1605
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1658
1606
|
|
|
1659
1607
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1660
1608
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1674,7 +1622,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1674
1622
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1675
1623
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1676
1624
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1677
|
-
var defaultProps$
|
|
1625
|
+
var defaultProps$b = {
|
|
1678
1626
|
body: false
|
|
1679
1627
|
};
|
|
1680
1628
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1687,7 +1635,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1687
1635
|
children = _ref.children,
|
|
1688
1636
|
_ref$as = _ref.as,
|
|
1689
1637
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1690
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1638
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1691
1639
|
|
|
1692
1640
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1693
1641
|
var cardContext = useMemo(function () {
|
|
@@ -1697,7 +1645,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1697
1645
|
}, [prefix]);
|
|
1698
1646
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1699
1647
|
value: cardContext
|
|
1700
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1648
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1701
1649
|
ref: ref
|
|
1702
1650
|
}, props, {
|
|
1703
1651
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1707,7 +1655,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1707
1655
|
React__default.createElement(CardBody, null, children) : children));
|
|
1708
1656
|
});
|
|
1709
1657
|
Card.displayName = 'Card';
|
|
1710
|
-
Card.defaultProps = defaultProps$
|
|
1658
|
+
Card.defaultProps = defaultProps$b;
|
|
1711
1659
|
Card.Img = CardImg;
|
|
1712
1660
|
Card.Title = CardTitle;
|
|
1713
1661
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1900,10 +1848,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1900
1848
|
bsPrefix = _ref.bsPrefix,
|
|
1901
1849
|
children = _ref.children,
|
|
1902
1850
|
className = _ref.className,
|
|
1903
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1851
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1904
1852
|
|
|
1905
1853
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1906
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1854
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1907
1855
|
ref: ref
|
|
1908
1856
|
}, props, {
|
|
1909
1857
|
className: finalClassName
|
|
@@ -1942,7 +1890,7 @@ function forEach(children, func) {
|
|
|
1942
1890
|
}
|
|
1943
1891
|
|
|
1944
1892
|
var SWIPE_THRESHOLD = 40;
|
|
1945
|
-
var propTypes$
|
|
1893
|
+
var propTypes$1 = {
|
|
1946
1894
|
/**
|
|
1947
1895
|
* @default 'carousel'
|
|
1948
1896
|
*/
|
|
@@ -2044,7 +1992,7 @@ var propTypes$9 = {
|
|
|
2044
1992
|
*/
|
|
2045
1993
|
nextLabel: PropTypes.string
|
|
2046
1994
|
};
|
|
2047
|
-
var defaultProps$
|
|
1995
|
+
var defaultProps$c = {
|
|
2048
1996
|
slide: true,
|
|
2049
1997
|
fade: false,
|
|
2050
1998
|
controls: true,
|
|
@@ -2108,7 +2056,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2108
2056
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2109
2057
|
className = _useUncontrolled.className,
|
|
2110
2058
|
children = _useUncontrolled.children,
|
|
2111
|
-
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"]);
|
|
2059
|
+
props = _objectWithoutPropertiesLoose$1(_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"]);
|
|
2112
2060
|
|
|
2113
2061
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2114
2062
|
var nextDirectionRef = useRef(null);
|
|
@@ -2365,7 +2313,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2365
2313
|
};
|
|
2366
2314
|
});
|
|
2367
2315
|
}, [indicators, numChildren, onSelect]);
|
|
2368
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2316
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2369
2317
|
ref: elementRef
|
|
2370
2318
|
}, props, {
|
|
2371
2319
|
onKeyDown: handleKeyDown,
|
|
@@ -2414,24 +2362,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2414
2362
|
|
|
2415
2363
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2416
2364
|
Carousel.displayName = 'Carousel';
|
|
2417
|
-
Carousel.propTypes = propTypes$
|
|
2418
|
-
Carousel.defaultProps = defaultProps$
|
|
2365
|
+
Carousel.propTypes = propTypes$1;
|
|
2366
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2419
2367
|
Carousel.Caption = CarouselCaption;
|
|
2420
2368
|
Carousel.Item = CarouselItem;
|
|
2421
2369
|
|
|
2422
|
-
var DEVICE_SIZES
|
|
2370
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2423
2371
|
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2424
2372
|
function (_ref, ref) {
|
|
2425
2373
|
var bsPrefix = _ref.bsPrefix,
|
|
2426
2374
|
className = _ref.className,
|
|
2427
2375
|
_ref$as = _ref.as,
|
|
2428
2376
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2429
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2377
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2430
2378
|
|
|
2431
2379
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2432
2380
|
var spans = [];
|
|
2433
2381
|
var classes = [];
|
|
2434
|
-
DEVICE_SIZES
|
|
2382
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2435
2383
|
var propValue = props[brkPoint];
|
|
2436
2384
|
delete props[brkPoint];
|
|
2437
2385
|
var span;
|
|
@@ -2457,7 +2405,7 @@ function (_ref, ref) {
|
|
|
2457
2405
|
spans.push(prefix); // plain 'col'
|
|
2458
2406
|
}
|
|
2459
2407
|
|
|
2460
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2408
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2461
2409
|
ref: ref,
|
|
2462
2410
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2463
2411
|
}));
|
|
@@ -2465,13 +2413,6 @@ function (_ref, ref) {
|
|
|
2465
2413
|
Col.displayName = 'Col';
|
|
2466
2414
|
|
|
2467
2415
|
var matchesImpl;
|
|
2468
|
-
/**
|
|
2469
|
-
* Checks if a given element matches a selector.
|
|
2470
|
-
*
|
|
2471
|
-
* @param node the element
|
|
2472
|
-
* @param selector the selector
|
|
2473
|
-
*/
|
|
2474
|
-
|
|
2475
2416
|
function matches(node, selector) {
|
|
2476
2417
|
if (!matchesImpl) {
|
|
2477
2418
|
var body = document.body;
|
|
@@ -2486,13 +2427,6 @@ function matches(node, selector) {
|
|
|
2486
2427
|
}
|
|
2487
2428
|
|
|
2488
2429
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2489
|
-
/**
|
|
2490
|
-
* Runs `querySelectorAll` on a given element.
|
|
2491
|
-
*
|
|
2492
|
-
* @param element the element
|
|
2493
|
-
* @param selector the selector
|
|
2494
|
-
*/
|
|
2495
|
-
|
|
2496
2430
|
function qsa(element, selector) {
|
|
2497
2431
|
return toArray(element.querySelectorAll(selector));
|
|
2498
2432
|
}
|
|
@@ -2582,6 +2516,39 @@ function useForceUpdate() {
|
|
|
2582
2516
|
|
|
2583
2517
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2584
2518
|
|
|
2519
|
+
function _extends() {
|
|
2520
|
+
_extends = Object.assign || function (target) {
|
|
2521
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2522
|
+
var source = arguments[i];
|
|
2523
|
+
|
|
2524
|
+
for (var key in source) {
|
|
2525
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2526
|
+
target[key] = source[key];
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
return target;
|
|
2532
|
+
};
|
|
2533
|
+
|
|
2534
|
+
return _extends.apply(this, arguments);
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2538
|
+
if (source == null) return {};
|
|
2539
|
+
var target = {};
|
|
2540
|
+
var sourceKeys = Object.keys(source);
|
|
2541
|
+
var key, i;
|
|
2542
|
+
|
|
2543
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2544
|
+
key = sourceKeys[i];
|
|
2545
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2546
|
+
target[key] = source[key];
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
return target;
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2585
2552
|
function useSafeState(state) {
|
|
2586
2553
|
var isMounted = useMounted();
|
|
2587
2554
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2626,50 +2593,21 @@ function getBasePlacement(placement) {
|
|
|
2626
2593
|
return placement.split('-')[0];
|
|
2627
2594
|
}
|
|
2628
2595
|
|
|
2629
|
-
|
|
2630
|
-
var rect = element.getBoundingClientRect();
|
|
2631
|
-
return {
|
|
2632
|
-
width: rect.width,
|
|
2633
|
-
height: rect.height,
|
|
2634
|
-
top: rect.top,
|
|
2635
|
-
right: rect.right,
|
|
2636
|
-
bottom: rect.bottom,
|
|
2637
|
-
left: rect.left,
|
|
2638
|
-
x: rect.left,
|
|
2639
|
-
y: rect.top
|
|
2640
|
-
};
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2596
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2643
2597
|
// means it doesn't take into account transforms.
|
|
2644
|
-
|
|
2645
2598
|
function getLayoutRect(element) {
|
|
2646
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2647
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2648
|
-
|
|
2649
|
-
var width = element.offsetWidth;
|
|
2650
|
-
var height = element.offsetHeight;
|
|
2651
|
-
|
|
2652
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2653
|
-
width = clientRect.width;
|
|
2654
|
-
}
|
|
2655
|
-
|
|
2656
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2657
|
-
height = clientRect.height;
|
|
2658
|
-
}
|
|
2659
|
-
|
|
2660
2599
|
return {
|
|
2661
2600
|
x: element.offsetLeft,
|
|
2662
2601
|
y: element.offsetTop,
|
|
2663
|
-
width:
|
|
2664
|
-
height:
|
|
2602
|
+
width: element.offsetWidth,
|
|
2603
|
+
height: element.offsetHeight
|
|
2665
2604
|
};
|
|
2666
2605
|
}
|
|
2667
2606
|
|
|
2668
|
-
|
|
2669
|
-
if (node == null) {
|
|
2670
|
-
return window;
|
|
2671
|
-
}
|
|
2607
|
+
/*:: import type { Window } from '../types'; */
|
|
2672
2608
|
|
|
2609
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2610
|
+
function getWindow(node) {
|
|
2673
2611
|
if (node.toString() !== '[object Window]') {
|
|
2674
2612
|
var ownerDocument = node.ownerDocument;
|
|
2675
2613
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2678,27 +2616,31 @@ function getWindow(node) {
|
|
|
2678
2616
|
return node;
|
|
2679
2617
|
}
|
|
2680
2618
|
|
|
2619
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2620
|
+
Element); */
|
|
2621
|
+
|
|
2681
2622
|
function isElement(node) {
|
|
2682
2623
|
var OwnElement = getWindow(node).Element;
|
|
2683
2624
|
return node instanceof OwnElement || node instanceof Element;
|
|
2684
2625
|
}
|
|
2626
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2627
|
+
HTMLElement); */
|
|
2628
|
+
|
|
2685
2629
|
|
|
2686
2630
|
function isHTMLElement(node) {
|
|
2687
2631
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2688
2632
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2689
2633
|
}
|
|
2634
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2635
|
+
ShadowRoot); */
|
|
2690
2636
|
|
|
2691
|
-
function isShadowRoot(node) {
|
|
2692
|
-
// IE 11 has no ShadowRoot
|
|
2693
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2694
|
-
return false;
|
|
2695
|
-
}
|
|
2696
2637
|
|
|
2638
|
+
function isShadowRoot(node) {
|
|
2697
2639
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2698
2640
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2699
2641
|
}
|
|
2700
2642
|
|
|
2701
|
-
function contains
|
|
2643
|
+
function contains(parent, child) {
|
|
2702
2644
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2703
2645
|
|
|
2704
2646
|
if (parent.contains(child)) {
|
|
@@ -2725,7 +2667,7 @@ function getNodeName(element) {
|
|
|
2725
2667
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2726
2668
|
}
|
|
2727
2669
|
|
|
2728
|
-
function getComputedStyle$
|
|
2670
|
+
function getComputedStyle$2(element) {
|
|
2729
2671
|
return getWindow(element).getComputedStyle(element);
|
|
2730
2672
|
}
|
|
2731
2673
|
|
|
@@ -2748,8 +2690,9 @@ function getParentNode(element) {
|
|
|
2748
2690
|
// $FlowFixMe[incompatible-return]
|
|
2749
2691
|
// $FlowFixMe[prop-missing]
|
|
2750
2692
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2751
|
-
element.parentNode ||
|
|
2752
|
-
|
|
2693
|
+
element.parentNode || // DOM Element detected
|
|
2694
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2695
|
+
element.host || // ShadowRoot detected
|
|
2753
2696
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2754
2697
|
getDocumentElement(element) // fallback
|
|
2755
2698
|
|
|
@@ -2758,36 +2701,33 @@ function getParentNode(element) {
|
|
|
2758
2701
|
|
|
2759
2702
|
function getTrueOffsetParent(element) {
|
|
2760
2703
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2761
|
-
getComputedStyle$
|
|
2704
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2762
2705
|
return null;
|
|
2763
2706
|
}
|
|
2764
2707
|
|
|
2765
|
-
|
|
2766
|
-
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2767
|
-
// return the containing block
|
|
2708
|
+
var offsetParent = element.offsetParent;
|
|
2768
2709
|
|
|
2710
|
+
if (offsetParent) {
|
|
2711
|
+
var html = getDocumentElement(offsetParent);
|
|
2769
2712
|
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2773
|
-
|
|
2774
|
-
if (isIE && isHTMLElement(element)) {
|
|
2775
|
-
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2776
|
-
var elementCss = getComputedStyle$1(element);
|
|
2777
|
-
|
|
2778
|
-
if (elementCss.position === 'fixed') {
|
|
2779
|
-
return null;
|
|
2713
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2714
|
+
return html;
|
|
2780
2715
|
}
|
|
2781
2716
|
}
|
|
2782
2717
|
|
|
2718
|
+
return offsetParent;
|
|
2719
|
+
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2720
|
+
// return the containing block
|
|
2721
|
+
|
|
2722
|
+
|
|
2723
|
+
function getContainingBlock(element) {
|
|
2783
2724
|
var currentNode = getParentNode(element);
|
|
2784
2725
|
|
|
2785
2726
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2786
|
-
var css = getComputedStyle$
|
|
2727
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2787
2728
|
// create a containing block.
|
|
2788
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2789
2729
|
|
|
2790
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2730
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2791
2731
|
return currentNode;
|
|
2792
2732
|
} else {
|
|
2793
2733
|
currentNode = currentNode.parentNode;
|
|
@@ -2803,11 +2743,11 @@ function getOffsetParent(element) {
|
|
|
2803
2743
|
var window = getWindow(element);
|
|
2804
2744
|
var offsetParent = getTrueOffsetParent(element);
|
|
2805
2745
|
|
|
2806
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2746
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2807
2747
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2808
2748
|
}
|
|
2809
2749
|
|
|
2810
|
-
if (offsetParent &&
|
|
2750
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2811
2751
|
return window;
|
|
2812
2752
|
}
|
|
2813
2753
|
|
|
@@ -2818,12 +2758,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2818
2758
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2819
2759
|
}
|
|
2820
2760
|
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
var round = Math.round;
|
|
2824
|
-
|
|
2825
|
-
function within(min$1, value, max$1) {
|
|
2826
|
-
return max(min$1, min(value, max$1));
|
|
2761
|
+
function within(min, value, max) {
|
|
2762
|
+
return Math.max(min, Math.min(value, max));
|
|
2827
2763
|
}
|
|
2828
2764
|
|
|
2829
2765
|
function getFreshSideObject() {
|
|
@@ -2836,7 +2772,7 @@ function getFreshSideObject() {
|
|
|
2836
2772
|
}
|
|
2837
2773
|
|
|
2838
2774
|
function mergePaddingObject(paddingObject) {
|
|
2839
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2775
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2840
2776
|
}
|
|
2841
2777
|
|
|
2842
2778
|
function expandToHashMap(value, keys) {
|
|
@@ -2846,19 +2782,11 @@ function expandToHashMap(value, keys) {
|
|
|
2846
2782
|
}, {});
|
|
2847
2783
|
}
|
|
2848
2784
|
|
|
2849
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2850
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2851
|
-
placement: state.placement
|
|
2852
|
-
})) : padding;
|
|
2853
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2854
|
-
};
|
|
2855
|
-
|
|
2856
2785
|
function arrow(_ref) {
|
|
2857
2786
|
var _state$modifiersData$;
|
|
2858
2787
|
|
|
2859
2788
|
var state = _ref.state,
|
|
2860
|
-
name = _ref.name
|
|
2861
|
-
options = _ref.options;
|
|
2789
|
+
name = _ref.name;
|
|
2862
2790
|
var arrowElement = state.elements.arrow;
|
|
2863
2791
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2864
2792
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2870,7 +2798,7 @@ function arrow(_ref) {
|
|
|
2870
2798
|
return;
|
|
2871
2799
|
}
|
|
2872
2800
|
|
|
2873
|
-
var paddingObject =
|
|
2801
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2874
2802
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2875
2803
|
var minProp = axis === 'y' ? top : left;
|
|
2876
2804
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2890,11 +2818,14 @@ function arrow(_ref) {
|
|
|
2890
2818
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2891
2819
|
}
|
|
2892
2820
|
|
|
2893
|
-
function effect
|
|
2821
|
+
function effect(_ref2) {
|
|
2894
2822
|
var state = _ref2.state,
|
|
2895
|
-
options = _ref2.options
|
|
2823
|
+
options = _ref2.options,
|
|
2824
|
+
name = _ref2.name;
|
|
2896
2825
|
var _options$element = options.element,
|
|
2897
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2826
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2827
|
+
_options$padding = options.padding,
|
|
2828
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2898
2829
|
|
|
2899
2830
|
if (arrowElement == null) {
|
|
2900
2831
|
return;
|
|
@@ -2915,7 +2846,7 @@ function effect$1(_ref2) {
|
|
|
2915
2846
|
}
|
|
2916
2847
|
}
|
|
2917
2848
|
|
|
2918
|
-
if (!contains
|
|
2849
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2919
2850
|
if (process.env.NODE_ENV !== "production") {
|
|
2920
2851
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2921
2852
|
}
|
|
@@ -2924,6 +2855,9 @@ function effect$1(_ref2) {
|
|
|
2924
2855
|
}
|
|
2925
2856
|
|
|
2926
2857
|
state.elements.arrow = arrowElement;
|
|
2858
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2859
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2860
|
+
};
|
|
2927
2861
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2928
2862
|
|
|
2929
2863
|
|
|
@@ -2932,7 +2866,7 @@ var arrow$1 = {
|
|
|
2932
2866
|
enabled: true,
|
|
2933
2867
|
phase: 'main',
|
|
2934
2868
|
fn: arrow,
|
|
2935
|
-
effect: effect
|
|
2869
|
+
effect: effect,
|
|
2936
2870
|
requires: ['popperOffsets'],
|
|
2937
2871
|
requiresIfExists: ['preventOverflow']
|
|
2938
2872
|
};
|
|
@@ -2952,8 +2886,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2952
2886
|
var win = window;
|
|
2953
2887
|
var dpr = win.devicePixelRatio || 1;
|
|
2954
2888
|
return {
|
|
2955
|
-
x: round(
|
|
2956
|
-
y: round(
|
|
2889
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2890
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2957
2891
|
};
|
|
2958
2892
|
}
|
|
2959
2893
|
|
|
@@ -2969,7 +2903,7 @@ function mapToStyles(_ref2) {
|
|
|
2969
2903
|
adaptive = _ref2.adaptive,
|
|
2970
2904
|
roundOffsets = _ref2.roundOffsets;
|
|
2971
2905
|
|
|
2972
|
-
var _ref3 = roundOffsets
|
|
2906
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2973
2907
|
_ref3$x = _ref3.x,
|
|
2974
2908
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2975
2909
|
_ref3$y = _ref3.y,
|
|
@@ -2983,32 +2917,23 @@ function mapToStyles(_ref2) {
|
|
|
2983
2917
|
|
|
2984
2918
|
if (adaptive) {
|
|
2985
2919
|
var offsetParent = getOffsetParent(popper);
|
|
2986
|
-
var heightProp = 'clientHeight';
|
|
2987
|
-
var widthProp = 'clientWidth';
|
|
2988
2920
|
|
|
2989
2921
|
if (offsetParent === getWindow(popper)) {
|
|
2990
2922
|
offsetParent = getDocumentElement(popper);
|
|
2991
|
-
|
|
2992
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
2993
|
-
heightProp = 'scrollHeight';
|
|
2994
|
-
widthProp = 'scrollWidth';
|
|
2995
|
-
}
|
|
2996
2923
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2997
2924
|
|
|
2925
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2998
2926
|
|
|
2999
|
-
offsetParent = offsetParent;
|
|
3000
2927
|
|
|
3001
2928
|
if (placement === top) {
|
|
3002
|
-
sideY = bottom;
|
|
3003
|
-
|
|
3004
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2929
|
+
sideY = bottom;
|
|
2930
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
3005
2931
|
y *= gpuAcceleration ? 1 : -1;
|
|
3006
2932
|
}
|
|
3007
2933
|
|
|
3008
2934
|
if (placement === left) {
|
|
3009
|
-
sideX = right;
|
|
3010
|
-
|
|
3011
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2935
|
+
sideX = right;
|
|
2936
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
3012
2937
|
x *= gpuAcceleration ? 1 : -1;
|
|
3013
2938
|
}
|
|
3014
2939
|
}
|
|
@@ -3020,10 +2945,10 @@ function mapToStyles(_ref2) {
|
|
|
3020
2945
|
if (gpuAcceleration) {
|
|
3021
2946
|
var _Object$assign;
|
|
3022
2947
|
|
|
3023
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2948
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3024
2949
|
}
|
|
3025
2950
|
|
|
3026
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2951
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3027
2952
|
}
|
|
3028
2953
|
|
|
3029
2954
|
function computeStyles(_ref4) {
|
|
@@ -3037,7 +2962,7 @@ function computeStyles(_ref4) {
|
|
|
3037
2962
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3038
2963
|
|
|
3039
2964
|
if (process.env.NODE_ENV !== "production") {
|
|
3040
|
-
var transitionProperty = getComputedStyle$
|
|
2965
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3041
2966
|
|
|
3042
2967
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3043
2968
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3054,7 +2979,7 @@ function computeStyles(_ref4) {
|
|
|
3054
2979
|
};
|
|
3055
2980
|
|
|
3056
2981
|
if (state.modifiersData.popperOffsets != null) {
|
|
3057
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2982
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3058
2983
|
offsets: state.modifiersData.popperOffsets,
|
|
3059
2984
|
position: state.options.strategy,
|
|
3060
2985
|
adaptive: adaptive,
|
|
@@ -3063,7 +2988,7 @@ function computeStyles(_ref4) {
|
|
|
3063
2988
|
}
|
|
3064
2989
|
|
|
3065
2990
|
if (state.modifiersData.arrow != null) {
|
|
3066
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2991
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3067
2992
|
offsets: state.modifiersData.arrow,
|
|
3068
2993
|
position: 'absolute',
|
|
3069
2994
|
adaptive: false,
|
|
@@ -3071,7 +2996,7 @@ function computeStyles(_ref4) {
|
|
|
3071
2996
|
})));
|
|
3072
2997
|
}
|
|
3073
2998
|
|
|
3074
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2999
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3075
3000
|
'data-popper-placement': state.placement
|
|
3076
3001
|
});
|
|
3077
3002
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3089,7 +3014,7 @@ var passive = {
|
|
|
3089
3014
|
passive: true
|
|
3090
3015
|
};
|
|
3091
3016
|
|
|
3092
|
-
function effect(_ref) {
|
|
3017
|
+
function effect$1(_ref) {
|
|
3093
3018
|
var state = _ref.state,
|
|
3094
3019
|
instance = _ref.instance,
|
|
3095
3020
|
options = _ref.options;
|
|
@@ -3129,11 +3054,11 @@ var eventListeners = {
|
|
|
3129
3054
|
enabled: true,
|
|
3130
3055
|
phase: 'write',
|
|
3131
3056
|
fn: function fn() {},
|
|
3132
|
-
effect: effect,
|
|
3057
|
+
effect: effect$1,
|
|
3133
3058
|
data: {}
|
|
3134
3059
|
};
|
|
3135
3060
|
|
|
3136
|
-
var hash
|
|
3061
|
+
var hash = {
|
|
3137
3062
|
left: 'right',
|
|
3138
3063
|
right: 'left',
|
|
3139
3064
|
bottom: 'top',
|
|
@@ -3141,20 +3066,34 @@ var hash$1 = {
|
|
|
3141
3066
|
};
|
|
3142
3067
|
function getOppositePlacement(placement) {
|
|
3143
3068
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3144
|
-
return hash
|
|
3069
|
+
return hash[matched];
|
|
3145
3070
|
});
|
|
3146
3071
|
}
|
|
3147
3072
|
|
|
3148
|
-
var hash = {
|
|
3073
|
+
var hash$1 = {
|
|
3149
3074
|
start: 'end',
|
|
3150
3075
|
end: 'start'
|
|
3151
3076
|
};
|
|
3152
3077
|
function getOppositeVariationPlacement(placement) {
|
|
3153
3078
|
return placement.replace(/start|end/g, function (matched) {
|
|
3154
|
-
return hash[matched];
|
|
3079
|
+
return hash$1[matched];
|
|
3155
3080
|
});
|
|
3156
3081
|
}
|
|
3157
3082
|
|
|
3083
|
+
function getBoundingClientRect(element) {
|
|
3084
|
+
var rect = element.getBoundingClientRect();
|
|
3085
|
+
return {
|
|
3086
|
+
width: rect.width,
|
|
3087
|
+
height: rect.height,
|
|
3088
|
+
top: rect.top,
|
|
3089
|
+
right: rect.right,
|
|
3090
|
+
bottom: rect.bottom,
|
|
3091
|
+
left: rect.left,
|
|
3092
|
+
x: rect.left,
|
|
3093
|
+
y: rect.top
|
|
3094
|
+
};
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3158
3097
|
function getWindowScroll(node) {
|
|
3159
3098
|
var win = getWindow(node);
|
|
3160
3099
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3217,18 +3156,16 @@ function getViewportRect(element) {
|
|
|
3217
3156
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3218
3157
|
|
|
3219
3158
|
function getDocumentRect(element) {
|
|
3220
|
-
var _element$ownerDocumen;
|
|
3221
|
-
|
|
3222
3159
|
var html = getDocumentElement(element);
|
|
3223
3160
|
var winScroll = getWindowScroll(element);
|
|
3224
|
-
var body =
|
|
3225
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3226
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3161
|
+
var body = element.ownerDocument.body;
|
|
3162
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3163
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3227
3164
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3228
3165
|
var y = -winScroll.scrollTop;
|
|
3229
3166
|
|
|
3230
|
-
if (getComputedStyle$
|
|
3231
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3167
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3168
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3232
3169
|
}
|
|
3233
3170
|
|
|
3234
3171
|
return {
|
|
@@ -3241,7 +3178,7 @@ function getDocumentRect(element) {
|
|
|
3241
3178
|
|
|
3242
3179
|
function isScrollParent(element) {
|
|
3243
3180
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3244
|
-
var _getComputedStyle = getComputedStyle$
|
|
3181
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3245
3182
|
overflow = _getComputedStyle.overflow,
|
|
3246
3183
|
overflowX = _getComputedStyle.overflowX,
|
|
3247
3184
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3270,14 +3207,12 @@ reference element's position.
|
|
|
3270
3207
|
*/
|
|
3271
3208
|
|
|
3272
3209
|
function listScrollParents(element, list) {
|
|
3273
|
-
var _element$ownerDocumen;
|
|
3274
|
-
|
|
3275
3210
|
if (list === void 0) {
|
|
3276
3211
|
list = [];
|
|
3277
3212
|
}
|
|
3278
3213
|
|
|
3279
3214
|
var scrollParent = getScrollParent(element);
|
|
3280
|
-
var isBody = scrollParent ===
|
|
3215
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3281
3216
|
var win = getWindow(scrollParent);
|
|
3282
3217
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3283
3218
|
var updatedList = list.concat(target);
|
|
@@ -3286,7 +3221,7 @@ function listScrollParents(element, list) {
|
|
|
3286
3221
|
}
|
|
3287
3222
|
|
|
3288
3223
|
function rectToClientRect(rect) {
|
|
3289
|
-
return Object.assign({}, rect, {
|
|
3224
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3290
3225
|
left: rect.x,
|
|
3291
3226
|
top: rect.y,
|
|
3292
3227
|
right: rect.x + rect.width,
|
|
@@ -3316,7 +3251,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3316
3251
|
|
|
3317
3252
|
function getClippingParents(element) {
|
|
3318
3253
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3319
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3254
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3320
3255
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3321
3256
|
|
|
3322
3257
|
if (!isElement(clipperElement)) {
|
|
@@ -3325,7 +3260,7 @@ function getClippingParents(element) {
|
|
|
3325
3260
|
|
|
3326
3261
|
|
|
3327
3262
|
return clippingParents.filter(function (clippingParent) {
|
|
3328
|
-
return isElement(clippingParent) && contains
|
|
3263
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3329
3264
|
});
|
|
3330
3265
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3331
3266
|
// clipping parents
|
|
@@ -3337,10 +3272,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3337
3272
|
var firstClippingParent = clippingParents[0];
|
|
3338
3273
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3339
3274
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3340
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3341
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3342
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3343
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3275
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3276
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3277
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3278
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3344
3279
|
return accRect;
|
|
3345
3280
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3346
3281
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3450,7 +3385,7 @@ function detectOverflow(state, options) {
|
|
|
3450
3385
|
strategy: 'absolute',
|
|
3451
3386
|
placement: placement
|
|
3452
3387
|
});
|
|
3453
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3388
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3454
3389
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3455
3390
|
// 0 or negative = within the clipping rect
|
|
3456
3391
|
|
|
@@ -3474,6 +3409,9 @@ function detectOverflow(state, options) {
|
|
|
3474
3409
|
return overflowOffsets;
|
|
3475
3410
|
}
|
|
3476
3411
|
|
|
3412
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3413
|
+
|
|
3414
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3477
3415
|
function computeAutoPlacement(state, options) {
|
|
3478
3416
|
if (options === void 0) {
|
|
3479
3417
|
options = {};
|
|
@@ -3702,7 +3640,7 @@ function hide(_ref) {
|
|
|
3702
3640
|
isReferenceHidden: isReferenceHidden,
|
|
3703
3641
|
hasPopperEscaped: hasPopperEscaped
|
|
3704
3642
|
};
|
|
3705
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3643
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3706
3644
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3707
3645
|
'data-popper-escaped': hasPopperEscaped
|
|
3708
3646
|
});
|
|
@@ -3721,7 +3659,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3721
3659
|
var basePlacement = getBasePlacement(placement);
|
|
3722
3660
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3723
3661
|
|
|
3724
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3662
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3725
3663
|
placement: placement
|
|
3726
3664
|
})) : offset,
|
|
3727
3665
|
skidding = _ref[0],
|
|
@@ -3827,7 +3765,7 @@ function preventOverflow(_ref) {
|
|
|
3827
3765
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3828
3766
|
var referenceRect = state.rects.reference;
|
|
3829
3767
|
var popperRect = state.rects.popper;
|
|
3830
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3768
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3831
3769
|
placement: state.placement
|
|
3832
3770
|
})) : tetherOffset;
|
|
3833
3771
|
var data = {
|
|
@@ -3839,13 +3777,13 @@ function preventOverflow(_ref) {
|
|
|
3839
3777
|
return;
|
|
3840
3778
|
}
|
|
3841
3779
|
|
|
3842
|
-
if (checkMainAxis
|
|
3780
|
+
if (checkMainAxis) {
|
|
3843
3781
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3844
3782
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3845
3783
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3846
3784
|
var offset = popperOffsets[mainAxis];
|
|
3847
|
-
var min
|
|
3848
|
-
var max
|
|
3785
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3786
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3849
3787
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3850
3788
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3851
3789
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3872,29 +3810,26 @@ function preventOverflow(_ref) {
|
|
|
3872
3810
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3873
3811
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3874
3812
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3813
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3814
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3815
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3816
|
+
}
|
|
3875
3817
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3879
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3880
|
-
}
|
|
3881
|
-
|
|
3882
|
-
if (checkAltAxis) {
|
|
3883
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3818
|
+
if (checkAltAxis) {
|
|
3819
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3884
3820
|
|
|
3885
|
-
|
|
3821
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3886
3822
|
|
|
3887
|
-
|
|
3823
|
+
var _offset = popperOffsets[altAxis];
|
|
3888
3824
|
|
|
3889
|
-
|
|
3825
|
+
var _min = _offset + overflow[_mainSide];
|
|
3890
3826
|
|
|
3891
|
-
|
|
3827
|
+
var _max = _offset - overflow[_altSide];
|
|
3892
3828
|
|
|
3893
|
-
|
|
3829
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3894
3830
|
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
}
|
|
3831
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3832
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3898
3833
|
}
|
|
3899
3834
|
|
|
3900
3835
|
state.modifiersData[name] = data;
|
|
@@ -4125,9 +4060,9 @@ function uniqueBy(arr, fn) {
|
|
|
4125
4060
|
function mergeByName(modifiers) {
|
|
4126
4061
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4127
4062
|
var existing = merged[current.name];
|
|
4128
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4129
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4130
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4063
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4064
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4065
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4131
4066
|
}) : current;
|
|
4132
4067
|
return merged;
|
|
4133
4068
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4173,7 +4108,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4173
4108
|
var state = {
|
|
4174
4109
|
placement: 'bottom',
|
|
4175
4110
|
orderedModifiers: [],
|
|
4176
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4111
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4177
4112
|
modifiersData: {},
|
|
4178
4113
|
elements: {
|
|
4179
4114
|
reference: reference,
|
|
@@ -4188,7 +4123,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4188
4123
|
state: state,
|
|
4189
4124
|
setOptions: function setOptions(options) {
|
|
4190
4125
|
cleanupModifierEffects();
|
|
4191
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4126
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4192
4127
|
state.scrollParents = {
|
|
4193
4128
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4194
4129
|
popper: listScrollParents(popper)
|
|
@@ -4220,7 +4155,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4220
4155
|
}
|
|
4221
4156
|
}
|
|
4222
4157
|
|
|
4223
|
-
var _getComputedStyle = getComputedStyle$
|
|
4158
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4224
4159
|
marginTop = _getComputedStyle.marginTop,
|
|
4225
4160
|
marginRight = _getComputedStyle.marginRight,
|
|
4226
4161
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4558,16 +4493,9 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4558
4493
|
}
|
|
4559
4494
|
|
|
4560
4495
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
*
|
|
4565
|
-
* @param context the context element
|
|
4566
|
-
* @param node the element to check
|
|
4567
|
-
*/
|
|
4568
|
-
function contains(context, node) {
|
|
4569
|
-
// HTML DOM and SVG DOM may have different support levels,
|
|
4570
|
-
// so we need to check on context instead of a document root element.
|
|
4496
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4497
|
+
// so we need to check on context instead of a document root element.
|
|
4498
|
+
function contains$1(context, node) {
|
|
4571
4499
|
if (context.contains) return context.contains(node);
|
|
4572
4500
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4573
4501
|
}
|
|
@@ -4641,13 +4569,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4641
4569
|
return componentOrElement != null ? componentOrElement : null;
|
|
4642
4570
|
}
|
|
4643
4571
|
|
|
4644
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4645
|
-
return ownerDocument
|
|
4572
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4573
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4646
4574
|
});
|
|
4647
4575
|
|
|
4648
4576
|
var escapeKeyCode = 27;
|
|
4649
4577
|
|
|
4650
|
-
var noop$
|
|
4578
|
+
var noop$1 = function noop() {};
|
|
4651
4579
|
|
|
4652
4580
|
function isLeftClickEvent(event) {
|
|
4653
4581
|
return event.button === 0;
|
|
@@ -4680,11 +4608,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4680
4608
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4681
4609
|
|
|
4682
4610
|
var preventMouseRootCloseRef = useRef(false);
|
|
4683
|
-
var onClose = onRootClose || noop$
|
|
4611
|
+
var onClose = onRootClose || noop$1;
|
|
4684
4612
|
var handleMouseCapture = useCallback(function (e) {
|
|
4685
4613
|
var currentTarget = getRefTarget(ref);
|
|
4686
4614
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4687
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4615
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4688
4616
|
}, [ref]);
|
|
4689
4617
|
var handleMouse = useEventCallback(function (e) {
|
|
4690
4618
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4701,7 +4629,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4701
4629
|
// https://github.com/facebook/react/issues/20074
|
|
4702
4630
|
|
|
4703
4631
|
var currentEvent = window.event;
|
|
4704
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4632
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4705
4633
|
// avoid false positives in the contains() check below if the target DOM
|
|
4706
4634
|
// element is removed in the React mouse callback.
|
|
4707
4635
|
|
|
@@ -4728,7 +4656,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4728
4656
|
|
|
4729
4657
|
if ('ontouchstart' in doc.documentElement) {
|
|
4730
4658
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4731
|
-
return listen(el, 'mousemove', noop$
|
|
4659
|
+
return listen(el, 'mousemove', noop$1);
|
|
4732
4660
|
});
|
|
4733
4661
|
}
|
|
4734
4662
|
|
|
@@ -4810,7 +4738,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4810
4738
|
});
|
|
4811
4739
|
}
|
|
4812
4740
|
|
|
4813
|
-
var noop$
|
|
4741
|
+
var noop$2 = function noop() {};
|
|
4814
4742
|
/**
|
|
4815
4743
|
* @memberOf Dropdown
|
|
4816
4744
|
* @param {object} options
|
|
@@ -4878,7 +4806,7 @@ function useDropdownMenu(options) {
|
|
|
4878
4806
|
|
|
4879
4807
|
var menu;
|
|
4880
4808
|
var menuProps = {
|
|
4881
|
-
ref: setMenu || noop$
|
|
4809
|
+
ref: setMenu || noop$2,
|
|
4882
4810
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4883
4811
|
};
|
|
4884
4812
|
var childArgs = {
|
|
@@ -4911,7 +4839,7 @@ function useDropdownMenu(options) {
|
|
|
4911
4839
|
});
|
|
4912
4840
|
return menu;
|
|
4913
4841
|
}
|
|
4914
|
-
var propTypes$
|
|
4842
|
+
var propTypes$2 = {
|
|
4915
4843
|
/**
|
|
4916
4844
|
* A render prop that returns a Menu element. The `props`
|
|
4917
4845
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4968,7 +4896,7 @@ var propTypes$8 = {
|
|
|
4968
4896
|
*/
|
|
4969
4897
|
rootCloseEvent: PropTypes.string
|
|
4970
4898
|
};
|
|
4971
|
-
var defaultProps$
|
|
4899
|
+
var defaultProps$d = {
|
|
4972
4900
|
usePopper: true
|
|
4973
4901
|
};
|
|
4974
4902
|
|
|
@@ -4978,7 +4906,7 @@ var defaultProps$r = {
|
|
|
4978
4906
|
* @displayName DropdownMenu
|
|
4979
4907
|
* @memberOf Dropdown
|
|
4980
4908
|
*/
|
|
4981
|
-
function DropdownMenu
|
|
4909
|
+
function DropdownMenu(_ref2) {
|
|
4982
4910
|
var children = _ref2.children,
|
|
4983
4911
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4984
4912
|
|
|
@@ -4986,11 +4914,11 @@ function DropdownMenu$1(_ref2) {
|
|
|
4986
4914
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4987
4915
|
}
|
|
4988
4916
|
|
|
4989
|
-
DropdownMenu
|
|
4990
|
-
DropdownMenu
|
|
4991
|
-
DropdownMenu
|
|
4917
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4918
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4919
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4992
4920
|
|
|
4993
|
-
var noop$
|
|
4921
|
+
var noop$3 = function noop() {};
|
|
4994
4922
|
/**
|
|
4995
4923
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4996
4924
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -5004,11 +4932,11 @@ function useDropdownToggle() {
|
|
|
5004
4932
|
_ref$show = _ref.show,
|
|
5005
4933
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
5006
4934
|
_ref$toggle = _ref.toggle,
|
|
5007
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4935
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
5008
4936
|
setToggle = _ref.setToggle;
|
|
5009
4937
|
|
|
5010
4938
|
return [{
|
|
5011
|
-
ref: setToggle || noop$
|
|
4939
|
+
ref: setToggle || noop$3,
|
|
5012
4940
|
'aria-haspopup': true,
|
|
5013
4941
|
'aria-expanded': !!show
|
|
5014
4942
|
}, {
|
|
@@ -5016,7 +4944,7 @@ function useDropdownToggle() {
|
|
|
5016
4944
|
toggle: toggle
|
|
5017
4945
|
}];
|
|
5018
4946
|
}
|
|
5019
|
-
var propTypes$
|
|
4947
|
+
var propTypes$3 = {
|
|
5020
4948
|
/**
|
|
5021
4949
|
* A render prop that returns a Toggle element. The `props`
|
|
5022
4950
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5041,7 +4969,7 @@ var propTypes$7 = {
|
|
|
5041
4969
|
* @displayName DropdownToggle
|
|
5042
4970
|
* @memberOf Dropdown
|
|
5043
4971
|
*/
|
|
5044
|
-
function DropdownToggle
|
|
4972
|
+
function DropdownToggle(_ref2) {
|
|
5045
4973
|
var children = _ref2.children;
|
|
5046
4974
|
|
|
5047
4975
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5057,10 +4985,10 @@ function DropdownToggle$1(_ref2) {
|
|
|
5057
4985
|
}));
|
|
5058
4986
|
}
|
|
5059
4987
|
|
|
5060
|
-
DropdownToggle
|
|
5061
|
-
DropdownToggle
|
|
4988
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
4989
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5062
4990
|
|
|
5063
|
-
var propTypes$
|
|
4991
|
+
var propTypes$4 = {
|
|
5064
4992
|
/**
|
|
5065
4993
|
* A render prop that returns the root dropdown element. The `props`
|
|
5066
4994
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5132,7 +5060,7 @@ var propTypes$6 = {
|
|
|
5132
5060
|
/**
|
|
5133
5061
|
* @displayName Dropdown
|
|
5134
5062
|
*/
|
|
5135
|
-
function Dropdown
|
|
5063
|
+
function Dropdown(_ref) {
|
|
5136
5064
|
var drop = _ref.drop,
|
|
5137
5065
|
alignEnd = _ref.alignEnd,
|
|
5138
5066
|
defaultShow = _ref.defaultShow,
|
|
@@ -5274,15 +5202,15 @@ function Dropdown$1(_ref) {
|
|
|
5274
5202
|
}));
|
|
5275
5203
|
}
|
|
5276
5204
|
|
|
5277
|
-
Dropdown
|
|
5278
|
-
Dropdown
|
|
5279
|
-
Dropdown
|
|
5280
|
-
Dropdown
|
|
5205
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5206
|
+
Dropdown.propTypes = propTypes$4;
|
|
5207
|
+
Dropdown.Menu = DropdownMenu;
|
|
5208
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5281
5209
|
|
|
5282
5210
|
var NavContext = React__default.createContext(null);
|
|
5283
5211
|
NavContext.displayName = 'NavContext';
|
|
5284
5212
|
|
|
5285
|
-
var defaultProps$
|
|
5213
|
+
var defaultProps$e = {
|
|
5286
5214
|
as: SafeAnchor,
|
|
5287
5215
|
disabled: false
|
|
5288
5216
|
};
|
|
@@ -5297,7 +5225,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5297
5225
|
onSelect = _ref.onSelect,
|
|
5298
5226
|
propActive = _ref.active,
|
|
5299
5227
|
Component = _ref.as,
|
|
5300
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5228
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5301
5229
|
|
|
5302
5230
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5303
5231
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5321,7 +5249,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5321
5249
|
/*#__PURE__*/
|
|
5322
5250
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5323
5251
|
// @ts-ignore
|
|
5324
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5252
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5325
5253
|
ref: ref,
|
|
5326
5254
|
href: href,
|
|
5327
5255
|
disabled: disabled,
|
|
@@ -5331,7 +5259,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5331
5259
|
);
|
|
5332
5260
|
});
|
|
5333
5261
|
DropdownItem.displayName = 'DropdownItem';
|
|
5334
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5262
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5335
5263
|
|
|
5336
5264
|
var toFnRef = function toFnRef(ref) {
|
|
5337
5265
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5370,8 +5298,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5370
5298
|
}, [refA, refB]);
|
|
5371
5299
|
}
|
|
5372
5300
|
|
|
5373
|
-
var context = React__default.createContext(null);
|
|
5374
|
-
context.displayName = 'NavbarContext';
|
|
5301
|
+
var context$2 = React__default.createContext(null);
|
|
5302
|
+
context$2.displayName = 'NavbarContext';
|
|
5375
5303
|
|
|
5376
5304
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5377
5305
|
// @ts-ignore
|
|
@@ -5384,12 +5312,6 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5384
5312
|
return useMergedRefs(warningRef, ref);
|
|
5385
5313
|
}
|
|
5386
5314
|
|
|
5387
|
-
/**
|
|
5388
|
-
* Checks if a given element has a CSS class.
|
|
5389
|
-
*
|
|
5390
|
-
* @param element the element
|
|
5391
|
-
* @param className the CSS class name
|
|
5392
|
-
*/
|
|
5393
5315
|
function hasClass(element, className) {
|
|
5394
5316
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5395
5317
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5498,13 +5420,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5498
5420
|
}), PropTypes.shape({
|
|
5499
5421
|
xl: alignDirection
|
|
5500
5422
|
})]);
|
|
5501
|
-
var defaultProps$
|
|
5423
|
+
var defaultProps$f = {
|
|
5502
5424
|
align: 'left',
|
|
5503
5425
|
alignRight: false,
|
|
5504
5426
|
flip: true
|
|
5505
5427
|
}; // TODO: remove this hack
|
|
5506
5428
|
|
|
5507
|
-
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5429
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5508
5430
|
var bsPrefix = _ref.bsPrefix,
|
|
5509
5431
|
className = _ref.className,
|
|
5510
5432
|
align = _ref.align,
|
|
@@ -5516,9 +5438,9 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5516
5438
|
_ref$as = _ref.as,
|
|
5517
5439
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5518
5440
|
popperConfig = _ref.popperConfig,
|
|
5519
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5441
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5520
5442
|
|
|
5521
|
-
var isNavbar = useContext(context);
|
|
5443
|
+
var isNavbar = useContext(context$2);
|
|
5522
5444
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5523
5445
|
|
|
5524
5446
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5552,7 +5474,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5552
5474
|
show: showProps,
|
|
5553
5475
|
alignEnd: alignRight,
|
|
5554
5476
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5555
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5477
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5556
5478
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5557
5479
|
})
|
|
5558
5480
|
}),
|
|
@@ -5575,16 +5497,16 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5575
5497
|
if (placement) {
|
|
5576
5498
|
// we don't need the default popper style,
|
|
5577
5499
|
// menus are display: none when not shown.
|
|
5578
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5500
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5579
5501
|
props['x-placement'] = placement;
|
|
5580
5502
|
}
|
|
5581
5503
|
|
|
5582
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5504
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5583
5505
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5584
5506
|
}));
|
|
5585
5507
|
});
|
|
5586
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5587
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5508
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5509
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5588
5510
|
|
|
5589
5511
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5590
5512
|
|
|
@@ -5613,14 +5535,14 @@ module.exports = exports['default'];
|
|
|
5613
5535
|
|
|
5614
5536
|
unwrapExports(isRequiredForA11y_1);
|
|
5615
5537
|
|
|
5616
|
-
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5538
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5617
5539
|
var bsPrefix = _ref.bsPrefix,
|
|
5618
5540
|
split = _ref.split,
|
|
5619
5541
|
className = _ref.className,
|
|
5620
5542
|
childBsPrefix = _ref.childBsPrefix,
|
|
5621
5543
|
_ref$as = _ref.as,
|
|
5622
5544
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5623
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5545
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5624
5546
|
|
|
5625
5547
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5626
5548
|
|
|
@@ -5635,12 +5557,12 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5635
5557
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5636
5558
|
// underlying component, to allow it to render size and style variants.
|
|
5637
5559
|
|
|
5638
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5560
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5639
5561
|
onClick: toggle,
|
|
5640
5562
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5641
5563
|
}, toggleProps, props));
|
|
5642
5564
|
});
|
|
5643
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5565
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5644
5566
|
|
|
5645
5567
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5646
5568
|
defaultProps: {
|
|
@@ -5655,10 +5577,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5655
5577
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5656
5578
|
Component: 'span'
|
|
5657
5579
|
});
|
|
5658
|
-
var defaultProps$
|
|
5580
|
+
var defaultProps$g = {
|
|
5659
5581
|
navbar: false
|
|
5660
5582
|
};
|
|
5661
|
-
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5583
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5662
5584
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5663
5585
|
show: 'onToggle'
|
|
5664
5586
|
}),
|
|
@@ -5671,9 +5593,9 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5671
5593
|
onToggle = _useUncontrolled.onToggle,
|
|
5672
5594
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5673
5595
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5674
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5675
|
-
_useUncontrolled.navbar
|
|
5676
|
-
|
|
5596
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5597
|
+
_4 = _useUncontrolled.navbar,
|
|
5598
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5677
5599
|
|
|
5678
5600
|
var onSelectCtx = useContext(SelectableContext);
|
|
5679
5601
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5697,7 +5619,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5697
5619
|
});
|
|
5698
5620
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5699
5621
|
value: handleSelect
|
|
5700
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown
|
|
5622
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5701
5623
|
drop: drop,
|
|
5702
5624
|
show: show,
|
|
5703
5625
|
alignEnd: alignRight,
|
|
@@ -5706,20 +5628,20 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5706
5628
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5707
5629
|
}, function (_ref) {
|
|
5708
5630
|
var dropdownProps = _ref.props;
|
|
5709
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5631
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5710
5632
|
ref: ref,
|
|
5711
5633
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5712
5634
|
}));
|
|
5713
5635
|
}));
|
|
5714
5636
|
});
|
|
5715
|
-
Dropdown.displayName = 'Dropdown';
|
|
5716
|
-
Dropdown.defaultProps = defaultProps$
|
|
5717
|
-
Dropdown.Divider = DropdownDivider;
|
|
5718
|
-
Dropdown.Header = DropdownHeader;
|
|
5719
|
-
Dropdown.Item = DropdownItem;
|
|
5720
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5721
|
-
Dropdown.Menu = DropdownMenu;
|
|
5722
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5637
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5638
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5639
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5640
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5641
|
+
Dropdown$1.Item = DropdownItem;
|
|
5642
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5643
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5644
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5723
5645
|
|
|
5724
5646
|
var propTypes$5 = {
|
|
5725
5647
|
/**
|
|
@@ -5794,18 +5716,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5794
5716
|
disabled = _ref.disabled,
|
|
5795
5717
|
href = _ref.href,
|
|
5796
5718
|
id = _ref.id,
|
|
5797
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5719
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5798
5720
|
|
|
5799
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5721
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5800
5722
|
ref: ref
|
|
5801
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5723
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5802
5724
|
id: id,
|
|
5803
5725
|
href: href,
|
|
5804
5726
|
size: size,
|
|
5805
5727
|
variant: variant,
|
|
5806
5728
|
disabled: disabled,
|
|
5807
5729
|
childBsPrefix: bsPrefix
|
|
5808
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5730
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5809
5731
|
align: menuAlign,
|
|
5810
5732
|
role: menuRole,
|
|
5811
5733
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5908,7 +5830,7 @@ module.exports = exports['default'];
|
|
|
5908
5830
|
|
|
5909
5831
|
unwrapExports(all_1);
|
|
5910
5832
|
|
|
5911
|
-
var propTypes$
|
|
5833
|
+
var propTypes$6 = {
|
|
5912
5834
|
/**
|
|
5913
5835
|
* Specify whether the feedback is for valid or invalid fields
|
|
5914
5836
|
*
|
|
@@ -5929,15 +5851,15 @@ function (_ref, ref) {
|
|
|
5929
5851
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5930
5852
|
_ref$tooltip = _ref.tooltip,
|
|
5931
5853
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5932
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5854
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5933
5855
|
|
|
5934
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5856
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5935
5857
|
ref: ref,
|
|
5936
5858
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5937
5859
|
}));
|
|
5938
5860
|
});
|
|
5939
5861
|
Feedback.displayName = 'Feedback';
|
|
5940
|
-
Feedback.propTypes = propTypes$
|
|
5862
|
+
Feedback.propTypes = propTypes$6;
|
|
5941
5863
|
|
|
5942
5864
|
var FormContext = React__default.createContext({
|
|
5943
5865
|
controlId: undefined
|
|
@@ -5957,7 +5879,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5957
5879
|
isStatic = _ref.isStatic,
|
|
5958
5880
|
_ref$as = _ref.as,
|
|
5959
5881
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5960
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5882
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5961
5883
|
|
|
5962
5884
|
var _useContext = useContext(FormContext),
|
|
5963
5885
|
controlId = _useContext.controlId,
|
|
@@ -5968,7 +5890,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5968
5890
|
defaultPrefix = _ref2[1];
|
|
5969
5891
|
|
|
5970
5892
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5971
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5893
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5972
5894
|
ref: ref,
|
|
5973
5895
|
type: type,
|
|
5974
5896
|
id: id || controlId,
|
|
@@ -5982,7 +5904,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5982
5904
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5983
5905
|
className = _ref.className,
|
|
5984
5906
|
htmlFor = _ref.htmlFor,
|
|
5985
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5907
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5986
5908
|
|
|
5987
5909
|
var _useContext = useContext(FormContext),
|
|
5988
5910
|
controlId = _useContext.controlId,
|
|
@@ -5993,7 +5915,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5993
5915
|
defaultPrefix = _ref2[1];
|
|
5994
5916
|
|
|
5995
5917
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5996
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5918
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
5997
5919
|
ref: ref,
|
|
5998
5920
|
htmlFor: htmlFor || controlId,
|
|
5999
5921
|
className: classnames(className, bsPrefix)
|
|
@@ -6027,7 +5949,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6027
5949
|
propCustom = _ref.custom,
|
|
6028
5950
|
_ref$as = _ref.as,
|
|
6029
5951
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6030
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5952
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6031
5953
|
|
|
6032
5954
|
var custom = type === 'switch' ? true : propCustom;
|
|
6033
5955
|
|
|
@@ -6047,7 +5969,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6047
5969
|
};
|
|
6048
5970
|
}, [controlId, custom, id]);
|
|
6049
5971
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6050
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
5972
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6051
5973
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6052
5974
|
ref: ref,
|
|
6053
5975
|
isValid: isValid,
|
|
@@ -6082,7 +6004,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6082
6004
|
lang = _ref.lang,
|
|
6083
6005
|
_ref$as = _ref.as,
|
|
6084
6006
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6085
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6007
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6086
6008
|
|
|
6087
6009
|
var _useContext = useContext(FormContext),
|
|
6088
6010
|
controlId = _useContext.controlId,
|
|
@@ -6095,7 +6017,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6095
6017
|
defaultPrefix = _ref2[1];
|
|
6096
6018
|
|
|
6097
6019
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6098
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6020
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6099
6021
|
ref: ref,
|
|
6100
6022
|
id: id || controlId,
|
|
6101
6023
|
type: type,
|
|
@@ -6110,7 +6032,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6110
6032
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6111
6033
|
className = _ref.className,
|
|
6112
6034
|
htmlFor = _ref.htmlFor,
|
|
6113
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6035
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6114
6036
|
|
|
6115
6037
|
var _useContext = useContext(FormContext),
|
|
6116
6038
|
controlId = _useContext.controlId,
|
|
@@ -6121,7 +6043,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6121
6043
|
defaultPrefix = _ref2[1];
|
|
6122
6044
|
|
|
6123
6045
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6124
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6046
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6125
6047
|
ref: ref,
|
|
6126
6048
|
htmlFor: htmlFor || controlId,
|
|
6127
6049
|
className: classnames(className, bsPrefix),
|
|
@@ -6154,7 +6076,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6154
6076
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6155
6077
|
_ref$inputAs = _ref.inputAs,
|
|
6156
6078
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6157
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6079
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6158
6080
|
|
|
6159
6081
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6160
6082
|
prefix = _ref2[0],
|
|
@@ -6173,7 +6095,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6173
6095
|
};
|
|
6174
6096
|
}, [controlId, custom, id]);
|
|
6175
6097
|
var hasLabel = label != null && label !== false && !children;
|
|
6176
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6098
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6177
6099
|
ref: ref,
|
|
6178
6100
|
isValid: isValid,
|
|
6179
6101
|
isInvalid: isInvalid,
|
|
@@ -6214,7 +6136,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6214
6136
|
custom = _ref.custom,
|
|
6215
6137
|
_ref$as = _ref.as,
|
|
6216
6138
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6217
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6139
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6218
6140
|
|
|
6219
6141
|
var _useContext = useContext(FormContext),
|
|
6220
6142
|
controlId = _useContext.controlId;
|
|
@@ -6249,7 +6171,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6249
6171
|
}
|
|
6250
6172
|
|
|
6251
6173
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6252
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6174
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6253
6175
|
type: type,
|
|
6254
6176
|
size: htmlSize,
|
|
6255
6177
|
ref: ref,
|
|
@@ -6270,7 +6192,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6270
6192
|
controlId = _ref.controlId,
|
|
6271
6193
|
_ref$as = _ref.as,
|
|
6272
6194
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6273
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6195
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6274
6196
|
|
|
6275
6197
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6276
6198
|
var context = useMemo(function () {
|
|
@@ -6280,14 +6202,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6280
6202
|
}, [controlId]);
|
|
6281
6203
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6282
6204
|
value: context
|
|
6283
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6205
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6284
6206
|
ref: ref,
|
|
6285
6207
|
className: classnames(className, bsPrefix)
|
|
6286
6208
|
}), children));
|
|
6287
6209
|
});
|
|
6288
6210
|
FormGroup.displayName = 'FormGroup';
|
|
6289
6211
|
|
|
6290
|
-
var defaultProps$
|
|
6212
|
+
var defaultProps$h = {
|
|
6291
6213
|
column: false,
|
|
6292
6214
|
srOnly: false
|
|
6293
6215
|
};
|
|
@@ -6299,7 +6221,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6299
6221
|
srOnly = _ref.srOnly,
|
|
6300
6222
|
className = _ref.className,
|
|
6301
6223
|
htmlFor = _ref.htmlFor,
|
|
6302
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6224
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6303
6225
|
|
|
6304
6226
|
var _useContext = useContext(FormContext),
|
|
6305
6227
|
controlId = _useContext.controlId;
|
|
@@ -6310,7 +6232,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6310
6232
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6311
6233
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6312
6234
|
htmlFor = htmlFor || controlId;
|
|
6313
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6235
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6314
6236
|
as: "label",
|
|
6315
6237
|
className: classes,
|
|
6316
6238
|
htmlFor: htmlFor
|
|
@@ -6318,7 +6240,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6318
6240
|
return (
|
|
6319
6241
|
/*#__PURE__*/
|
|
6320
6242
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6321
|
-
React__default.createElement(Component, _extends({
|
|
6243
|
+
React__default.createElement(Component, _extends$1({
|
|
6322
6244
|
ref: ref,
|
|
6323
6245
|
className: classes,
|
|
6324
6246
|
htmlFor: htmlFor
|
|
@@ -6326,7 +6248,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6326
6248
|
);
|
|
6327
6249
|
});
|
|
6328
6250
|
FormLabel.displayName = 'FormLabel';
|
|
6329
|
-
FormLabel.defaultProps = defaultProps$
|
|
6251
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6330
6252
|
|
|
6331
6253
|
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6332
6254
|
function (_ref, ref) {
|
|
@@ -6335,10 +6257,10 @@ function (_ref, ref) {
|
|
|
6335
6257
|
_ref$as = _ref.as,
|
|
6336
6258
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6337
6259
|
muted = _ref.muted,
|
|
6338
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6260
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6339
6261
|
|
|
6340
6262
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6341
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6263
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6342
6264
|
ref: ref,
|
|
6343
6265
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6344
6266
|
}));
|
|
@@ -6346,7 +6268,7 @@ function (_ref, ref) {
|
|
|
6346
6268
|
FormText.displayName = 'FormText';
|
|
6347
6269
|
|
|
6348
6270
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6349
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6271
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6350
6272
|
ref: ref,
|
|
6351
6273
|
type: "switch"
|
|
6352
6274
|
}));
|
|
@@ -6356,7 +6278,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6356
6278
|
Switch.Label = FormCheck.Label;
|
|
6357
6279
|
|
|
6358
6280
|
var FormRow = createWithBsPrefix('form-row');
|
|
6359
|
-
var defaultProps$
|
|
6281
|
+
var defaultProps$i = {
|
|
6360
6282
|
inline: false
|
|
6361
6283
|
};
|
|
6362
6284
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6366,16 +6288,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6366
6288
|
validated = _ref.validated,
|
|
6367
6289
|
_ref$as = _ref.as,
|
|
6368
6290
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6369
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6291
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6370
6292
|
|
|
6371
6293
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6372
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6294
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6373
6295
|
ref: ref,
|
|
6374
6296
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6375
6297
|
}));
|
|
6376
6298
|
});
|
|
6377
6299
|
FormImpl.displayName = 'Form';
|
|
6378
|
-
FormImpl.defaultProps = defaultProps$
|
|
6300
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6379
6301
|
FormImpl.Row = FormRow;
|
|
6380
6302
|
FormImpl.Group = FormGroup;
|
|
6381
6303
|
FormImpl.Control = FormControl$1;
|
|
@@ -6385,7 +6307,7 @@ FormImpl.Switch = Switch;
|
|
|
6385
6307
|
FormImpl.Label = FormLabel;
|
|
6386
6308
|
FormImpl.Text = FormText;
|
|
6387
6309
|
|
|
6388
|
-
var defaultProps$
|
|
6310
|
+
var defaultProps$j = {
|
|
6389
6311
|
fluid: false
|
|
6390
6312
|
};
|
|
6391
6313
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6394,20 +6316,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6394
6316
|
_ref$as = _ref.as,
|
|
6395
6317
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6396
6318
|
className = _ref.className,
|
|
6397
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6319
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6398
6320
|
|
|
6399
6321
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6400
6322
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6401
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6323
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6402
6324
|
ref: ref
|
|
6403
6325
|
}, props, {
|
|
6404
6326
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6405
6327
|
}));
|
|
6406
6328
|
});
|
|
6407
6329
|
Container.displayName = 'Container';
|
|
6408
|
-
Container.defaultProps = defaultProps$
|
|
6330
|
+
Container.defaultProps = defaultProps$j;
|
|
6409
6331
|
|
|
6410
|
-
var propTypes$
|
|
6332
|
+
var propTypes$7 = {
|
|
6411
6333
|
/**
|
|
6412
6334
|
* @default 'img'
|
|
6413
6335
|
*/
|
|
@@ -6446,11 +6368,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6446
6368
|
rounded = _ref.rounded,
|
|
6447
6369
|
roundedCircle = _ref.roundedCircle,
|
|
6448
6370
|
thumbnail = _ref.thumbnail,
|
|
6449
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6371
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6450
6372
|
|
|
6451
6373
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6452
6374
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6453
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6375
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6454
6376
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6455
6377
|
ref: ref
|
|
6456
6378
|
}, props, {
|
|
@@ -6460,22 +6382,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6460
6382
|
Image.displayName = 'Image';
|
|
6461
6383
|
Image.defaultProps = defaultProps$k;
|
|
6462
6384
|
|
|
6463
|
-
var defaultProps$
|
|
6385
|
+
var defaultProps$l = {
|
|
6464
6386
|
fluid: true
|
|
6465
6387
|
};
|
|
6466
6388
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6467
6389
|
var className = _ref.className,
|
|
6468
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6390
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6469
6391
|
|
|
6470
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6392
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6471
6393
|
ref: ref
|
|
6472
6394
|
}, props, {
|
|
6473
6395
|
className: classnames(className, 'figure-img')
|
|
6474
6396
|
}));
|
|
6475
6397
|
});
|
|
6476
6398
|
FigureImage.displayName = 'FigureImage';
|
|
6477
|
-
FigureImage.propTypes = propTypes$
|
|
6478
|
-
FigureImage.defaultProps = defaultProps$
|
|
6399
|
+
FigureImage.propTypes = propTypes$7;
|
|
6400
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6479
6401
|
|
|
6480
6402
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6481
6403
|
Component: 'figcaption'
|
|
@@ -6494,13 +6416,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6494
6416
|
});
|
|
6495
6417
|
|
|
6496
6418
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6497
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6419
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6498
6420
|
type: "checkbox"
|
|
6499
6421
|
}, props)));
|
|
6500
6422
|
};
|
|
6501
6423
|
|
|
6502
6424
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6503
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6425
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6504
6426
|
type: "radio"
|
|
6505
6427
|
}, props)));
|
|
6506
6428
|
};
|
|
@@ -6519,10 +6441,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6519
6441
|
className = _ref.className,
|
|
6520
6442
|
_ref$as = _ref.as,
|
|
6521
6443
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6522
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6444
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6523
6445
|
|
|
6524
6446
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6525
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6447
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6526
6448
|
ref: ref
|
|
6527
6449
|
}, props, {
|
|
6528
6450
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6530,7 +6452,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6530
6452
|
});
|
|
6531
6453
|
InputGroup.displayName = 'InputGroup';
|
|
6532
6454
|
|
|
6533
|
-
_extends({}, InputGroup, {
|
|
6455
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6534
6456
|
Text: InputGroupText,
|
|
6535
6457
|
Radio: InputGroupRadio,
|
|
6536
6458
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6538,7 +6460,7 @@ _extends({}, InputGroup, {
|
|
|
6538
6460
|
Prepend: InputGroupPrepend
|
|
6539
6461
|
});
|
|
6540
6462
|
|
|
6541
|
-
var defaultProps$
|
|
6463
|
+
var defaultProps$m = {
|
|
6542
6464
|
fluid: false
|
|
6543
6465
|
};
|
|
6544
6466
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6549,23 +6471,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6549
6471
|
className = _ref.className,
|
|
6550
6472
|
fluid = _ref.fluid,
|
|
6551
6473
|
bsPrefix = _ref.bsPrefix,
|
|
6552
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6474
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6553
6475
|
|
|
6554
6476
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6555
6477
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6556
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6478
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6557
6479
|
ref: ref
|
|
6558
6480
|
}, props, {
|
|
6559
6481
|
className: classnames(className, classes)
|
|
6560
6482
|
}));
|
|
6561
6483
|
});
|
|
6562
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6484
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6563
6485
|
Jumbotron.displayName = 'Jumbotron';
|
|
6564
6486
|
|
|
6565
6487
|
var TabContext = React__default.createContext(null);
|
|
6566
6488
|
|
|
6567
6489
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6568
|
-
var noop$
|
|
6490
|
+
var noop$4 = function noop() {};
|
|
6569
6491
|
|
|
6570
6492
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6571
6493
|
var _ref$as = _ref.as,
|
|
@@ -6574,7 +6496,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6574
6496
|
activeKey = _ref.activeKey,
|
|
6575
6497
|
role = _ref.role,
|
|
6576
6498
|
onKeyDown = _ref.onKeyDown,
|
|
6577
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6578
6500
|
|
|
6579
6501
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6580
6502
|
// and don't want to reset the set in the effect
|
|
@@ -6655,17 +6577,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6655
6577
|
role: role,
|
|
6656
6578
|
// used by NavLink to determine it's role
|
|
6657
6579
|
activeKey: makeEventKey(activeKey),
|
|
6658
|
-
getControlledId: getControlledId || noop$
|
|
6659
|
-
getControllerId: getControllerId || noop$
|
|
6580
|
+
getControlledId: getControlledId || noop$4,
|
|
6581
|
+
getControllerId: getControllerId || noop$4
|
|
6660
6582
|
}
|
|
6661
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6583
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6662
6584
|
onKeyDown: handleKeyDown,
|
|
6663
6585
|
ref: mergedRef,
|
|
6664
6586
|
role: role
|
|
6665
6587
|
}))));
|
|
6666
6588
|
});
|
|
6667
6589
|
|
|
6668
|
-
var defaultProps$
|
|
6590
|
+
var defaultProps$n = {
|
|
6669
6591
|
disabled: false
|
|
6670
6592
|
};
|
|
6671
6593
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6675,7 +6597,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6675
6597
|
onSelect = _ref.onSelect,
|
|
6676
6598
|
onClick = _ref.onClick,
|
|
6677
6599
|
Component = _ref.as,
|
|
6678
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6600
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6679
6601
|
|
|
6680
6602
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6681
6603
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6705,15 +6627,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6705
6627
|
if (onSelect) onSelect(navKey, e);
|
|
6706
6628
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6707
6629
|
});
|
|
6708
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6630
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6709
6631
|
ref: ref,
|
|
6710
6632
|
onClick: handleOnclick,
|
|
6711
6633
|
className: classnames(className, isActive && 'active')
|
|
6712
6634
|
}));
|
|
6713
6635
|
});
|
|
6714
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6636
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6715
6637
|
|
|
6716
|
-
var defaultProps$
|
|
6638
|
+
var defaultProps$o = {
|
|
6717
6639
|
variant: undefined,
|
|
6718
6640
|
active: false,
|
|
6719
6641
|
disabled: false
|
|
@@ -6728,7 +6650,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6728
6650
|
as = _ref.as,
|
|
6729
6651
|
eventKey = _ref.eventKey,
|
|
6730
6652
|
onClick = _ref.onClick,
|
|
6731
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6653
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6732
6654
|
|
|
6733
6655
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6734
6656
|
var handleClick = useCallback(function (event) {
|
|
@@ -6740,7 +6662,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6740
6662
|
|
|
6741
6663
|
if (onClick) onClick(event);
|
|
6742
6664
|
}, [disabled, onClick]);
|
|
6743
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6665
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6744
6666
|
ref: ref
|
|
6745
6667
|
}, props, {
|
|
6746
6668
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6751,10 +6673,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6751
6673
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6752
6674
|
}));
|
|
6753
6675
|
});
|
|
6754
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6676
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6755
6677
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6756
6678
|
|
|
6757
|
-
var defaultProps$
|
|
6679
|
+
var defaultProps$p = {
|
|
6758
6680
|
variant: undefined,
|
|
6759
6681
|
horizontal: undefined
|
|
6760
6682
|
};
|
|
@@ -6768,7 +6690,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6768
6690
|
horizontal = _useUncontrolled.horizontal,
|
|
6769
6691
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6770
6692
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6771
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6693
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6772
6694
|
|
|
6773
6695
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6774
6696
|
var horizontalVariant;
|
|
@@ -6780,14 +6702,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6780
6702
|
}
|
|
6781
6703
|
|
|
6782
6704
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6783
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6705
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6784
6706
|
ref: ref
|
|
6785
6707
|
}, controlledProps, {
|
|
6786
6708
|
as: as,
|
|
6787
6709
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6788
6710
|
}));
|
|
6789
6711
|
});
|
|
6790
|
-
ListGroup.defaultProps = defaultProps$
|
|
6712
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6791
6713
|
ListGroup.displayName = 'ListGroup';
|
|
6792
6714
|
ListGroup.Item = ListGroupItem;
|
|
6793
6715
|
|
|
@@ -6798,10 +6720,10 @@ function (_ref, ref) {
|
|
|
6798
6720
|
className = _ref.className,
|
|
6799
6721
|
_ref$as = _ref.as,
|
|
6800
6722
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6801
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6723
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6802
6724
|
|
|
6803
6725
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6804
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6726
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6805
6727
|
ref: ref,
|
|
6806
6728
|
className: classnames(className, prefix)
|
|
6807
6729
|
}));
|
|
@@ -6829,14 +6751,14 @@ function scrollbarSize(recalc) {
|
|
|
6829
6751
|
}
|
|
6830
6752
|
|
|
6831
6753
|
/**
|
|
6832
|
-
*
|
|
6754
|
+
* Return the actively focused element safely.
|
|
6833
6755
|
*
|
|
6834
|
-
* @param doc the document to
|
|
6756
|
+
* @param doc the document to checl
|
|
6835
6757
|
*/
|
|
6836
6758
|
|
|
6837
6759
|
function activeElement(doc) {
|
|
6838
6760
|
if (doc === void 0) {
|
|
6839
|
-
doc = ownerDocument
|
|
6761
|
+
doc = ownerDocument();
|
|
6840
6762
|
}
|
|
6841
6763
|
|
|
6842
6764
|
// Support: IE 9 only
|
|
@@ -6853,13 +6775,6 @@ function activeElement(doc) {
|
|
|
6853
6775
|
}
|
|
6854
6776
|
}
|
|
6855
6777
|
|
|
6856
|
-
/**
|
|
6857
|
-
* Adds a CSS class to a given element.
|
|
6858
|
-
*
|
|
6859
|
-
* @param element the element
|
|
6860
|
-
* @param className the CSS class name
|
|
6861
|
-
*/
|
|
6862
|
-
|
|
6863
6778
|
function addClass(element, className) {
|
|
6864
6779
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6865
6780
|
}
|
|
@@ -6867,13 +6782,6 @@ function addClass(element, className) {
|
|
|
6867
6782
|
function replaceClassName(origClass, classToRemove) {
|
|
6868
6783
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6869
6784
|
}
|
|
6870
|
-
/**
|
|
6871
|
-
* Removes a CSS class from a given element.
|
|
6872
|
-
*
|
|
6873
|
-
* @param element the element
|
|
6874
|
-
* @param className the CSS class name
|
|
6875
|
-
*/
|
|
6876
|
-
|
|
6877
6785
|
|
|
6878
6786
|
function removeClass(element, className) {
|
|
6879
6787
|
if (element.classList) {
|
|
@@ -6900,7 +6808,7 @@ function isBody(node) {
|
|
|
6900
6808
|
}
|
|
6901
6809
|
|
|
6902
6810
|
function bodyIsOverflowing(node) {
|
|
6903
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6811
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6904
6812
|
var win = isWindow(node) || doc.defaultView;
|
|
6905
6813
|
return doc.body.clientWidth < win.innerWidth;
|
|
6906
6814
|
}
|
|
@@ -7112,7 +7020,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7112
7020
|
var _ref;
|
|
7113
7021
|
|
|
7114
7022
|
if (typeof document === 'undefined') return null;
|
|
7115
|
-
if (ref == null) return ownerDocument
|
|
7023
|
+
if (ref == null) return ownerDocument().body;
|
|
7116
7024
|
if (typeof ref === 'function') ref = ref();
|
|
7117
7025
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7118
7026
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7145,11 +7053,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7145
7053
|
return resolvedRef;
|
|
7146
7054
|
}
|
|
7147
7055
|
|
|
7148
|
-
var manager
|
|
7056
|
+
var manager;
|
|
7149
7057
|
|
|
7150
7058
|
function getManager() {
|
|
7151
|
-
if (!manager
|
|
7152
|
-
return manager
|
|
7059
|
+
if (!manager) manager = new ModalManager();
|
|
7060
|
+
return manager;
|
|
7153
7061
|
}
|
|
7154
7062
|
|
|
7155
7063
|
function useModalManager(provided) {
|
|
@@ -7177,7 +7085,7 @@ function useModalManager(provided) {
|
|
|
7177
7085
|
});
|
|
7178
7086
|
}
|
|
7179
7087
|
|
|
7180
|
-
var Modal
|
|
7088
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7181
7089
|
var _ref$show = _ref.show,
|
|
7182
7090
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7183
7091
|
_ref$role = _ref.role,
|
|
@@ -7261,7 +7169,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7261
7169
|
if (autoFocus) {
|
|
7262
7170
|
var currentActiveElement = activeElement(document);
|
|
7263
7171
|
|
|
7264
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7172
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7265
7173
|
lastFocusRef.current = currentActiveElement;
|
|
7266
7174
|
modal.dialog.focus();
|
|
7267
7175
|
}
|
|
@@ -7307,7 +7215,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7307
7215
|
|
|
7308
7216
|
var currentActiveElement = activeElement();
|
|
7309
7217
|
|
|
7310
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7218
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7311
7219
|
modal.dialog.focus();
|
|
7312
7220
|
}
|
|
7313
7221
|
});
|
|
@@ -7398,7 +7306,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7398
7306
|
|
|
7399
7307
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7400
7308
|
});
|
|
7401
|
-
var propTypes$
|
|
7309
|
+
var propTypes$8 = {
|
|
7402
7310
|
/**
|
|
7403
7311
|
* Set the visibility of the Modal
|
|
7404
7312
|
*/
|
|
@@ -7554,9 +7462,9 @@ var propTypes$2 = {
|
|
|
7554
7462
|
*/
|
|
7555
7463
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7556
7464
|
};
|
|
7557
|
-
Modal
|
|
7558
|
-
Modal
|
|
7559
|
-
var BaseModal = Object.assign(Modal
|
|
7465
|
+
Modal.displayName = 'Modal';
|
|
7466
|
+
Modal.propTypes = propTypes$8;
|
|
7467
|
+
var BaseModal = Object.assign(Modal, {
|
|
7560
7468
|
Manager: ModalManager
|
|
7561
7469
|
});
|
|
7562
7470
|
|
|
@@ -7648,11 +7556,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7648
7556
|
size = _ref.size,
|
|
7649
7557
|
children = _ref.children,
|
|
7650
7558
|
scrollable = _ref.scrollable,
|
|
7651
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7559
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7652
7560
|
|
|
7653
7561
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7654
7562
|
var dialogClass = bsPrefix + "-dialog";
|
|
7655
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7563
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7656
7564
|
ref: ref,
|
|
7657
7565
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7658
7566
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7663,7 +7571,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7663
7571
|
|
|
7664
7572
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7665
7573
|
|
|
7666
|
-
var defaultProps$
|
|
7574
|
+
var defaultProps$q = {
|
|
7667
7575
|
closeLabel: 'Close',
|
|
7668
7576
|
closeButton: false
|
|
7669
7577
|
};
|
|
@@ -7674,7 +7582,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7674
7582
|
onHide = _ref.onHide,
|
|
7675
7583
|
className = _ref.className,
|
|
7676
7584
|
children = _ref.children,
|
|
7677
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7585
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7678
7586
|
|
|
7679
7587
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7680
7588
|
var context = useContext(ModalContext);
|
|
@@ -7682,7 +7590,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7682
7590
|
if (context) context.onHide();
|
|
7683
7591
|
if (onHide) onHide();
|
|
7684
7592
|
});
|
|
7685
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7593
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7686
7594
|
ref: ref
|
|
7687
7595
|
}, props, {
|
|
7688
7596
|
className: classnames(className, bsPrefix)
|
|
@@ -7692,15 +7600,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7692
7600
|
}));
|
|
7693
7601
|
});
|
|
7694
7602
|
ModalHeader.displayName = 'ModalHeader';
|
|
7695
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7603
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7696
7604
|
|
|
7697
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7605
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7698
7606
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7699
|
-
Component: DivStyledAsH4
|
|
7607
|
+
Component: DivStyledAsH4$1
|
|
7700
7608
|
});
|
|
7701
7609
|
|
|
7702
|
-
var manager;
|
|
7703
|
-
var defaultProps$
|
|
7610
|
+
var manager$1;
|
|
7611
|
+
var defaultProps$r = {
|
|
7704
7612
|
show: false,
|
|
7705
7613
|
backdrop: true,
|
|
7706
7614
|
keyboard: true,
|
|
@@ -7722,7 +7630,7 @@ function BackdropTransition(props) {
|
|
|
7722
7630
|
/* eslint-enable no-use-before-define */
|
|
7723
7631
|
|
|
7724
7632
|
|
|
7725
|
-
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7633
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7726
7634
|
var bsPrefix = _ref.bsPrefix,
|
|
7727
7635
|
className = _ref.className,
|
|
7728
7636
|
style = _ref.style,
|
|
@@ -7751,7 +7659,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7751
7659
|
onExited = _ref.onExited,
|
|
7752
7660
|
backdropClassName = _ref.backdropClassName,
|
|
7753
7661
|
propsManager = _ref.manager,
|
|
7754
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7662
|
+
props = _objectWithoutPropertiesLoose$1(_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"]);
|
|
7755
7663
|
|
|
7756
7664
|
var _useState = useState({}),
|
|
7757
7665
|
modalStyle = _useState[0],
|
|
@@ -7788,14 +7696,14 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7788
7696
|
|
|
7789
7697
|
function getModalManager() {
|
|
7790
7698
|
if (propsManager) return propsManager;
|
|
7791
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7792
|
-
return manager;
|
|
7699
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7700
|
+
return manager$1;
|
|
7793
7701
|
}
|
|
7794
7702
|
|
|
7795
7703
|
function updateDialogStyle(node) {
|
|
7796
7704
|
if (!canUseDOM) return;
|
|
7797
7705
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7798
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7706
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7799
7707
|
setStyle({
|
|
7800
7708
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7801
7709
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7917,12 +7825,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7917
7825
|
};
|
|
7918
7826
|
|
|
7919
7827
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7920
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7828
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7921
7829
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7922
7830
|
}));
|
|
7923
7831
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7924
7832
|
|
|
7925
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7833
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7926
7834
|
|
|
7927
7835
|
|
|
7928
7836
|
if (!animation) {
|
|
@@ -7930,7 +7838,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7930
7838
|
}
|
|
7931
7839
|
|
|
7932
7840
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7933
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7841
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7934
7842
|
role: "dialog"
|
|
7935
7843
|
}, dialogProps, {
|
|
7936
7844
|
style: baseModalStyle,
|
|
@@ -7938,7 +7846,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7938
7846
|
onClick: backdrop ? handleClick : undefined,
|
|
7939
7847
|
onMouseUp: handleMouseUp,
|
|
7940
7848
|
"aria-labelledby": ariaLabelledby
|
|
7941
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7849
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7942
7850
|
role: "document",
|
|
7943
7851
|
onMouseDown: handleDialogMouseDown,
|
|
7944
7852
|
className: dialogClassName,
|
|
@@ -7976,15 +7884,15 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7976
7884
|
renderDialog: renderDialog
|
|
7977
7885
|
}));
|
|
7978
7886
|
});
|
|
7979
|
-
Modal.displayName = 'Modal';
|
|
7980
|
-
Modal.defaultProps = defaultProps$
|
|
7981
|
-
Modal.Body = ModalBody;
|
|
7982
|
-
Modal.Header = ModalHeader;
|
|
7983
|
-
Modal.Title = ModalTitle;
|
|
7984
|
-
Modal.Footer = ModalFooter;
|
|
7985
|
-
Modal.Dialog = ModalDialog;
|
|
7986
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7987
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7887
|
+
Modal$1.displayName = 'Modal';
|
|
7888
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7889
|
+
Modal$1.Body = ModalBody;
|
|
7890
|
+
Modal$1.Header = ModalHeader;
|
|
7891
|
+
Modal$1.Title = ModalTitle;
|
|
7892
|
+
Modal$1.Footer = ModalFooter;
|
|
7893
|
+
Modal$1.Dialog = ModalDialog;
|
|
7894
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7895
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7988
7896
|
|
|
7989
7897
|
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7990
7898
|
function (_ref, ref) {
|
|
@@ -7993,17 +7901,17 @@ function (_ref, ref) {
|
|
|
7993
7901
|
children = _ref.children,
|
|
7994
7902
|
_ref$as = _ref.as,
|
|
7995
7903
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7996
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7904
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7997
7905
|
|
|
7998
7906
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7999
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7907
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8000
7908
|
ref: ref,
|
|
8001
7909
|
className: classnames(className, bsPrefix)
|
|
8002
7910
|
}), children);
|
|
8003
7911
|
});
|
|
8004
7912
|
NavItem.displayName = 'NavItem';
|
|
8005
7913
|
|
|
8006
|
-
var defaultProps$
|
|
7914
|
+
var defaultProps$s = {
|
|
8007
7915
|
disabled: false,
|
|
8008
7916
|
as: SafeAnchor
|
|
8009
7917
|
};
|
|
@@ -8015,10 +7923,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8015
7923
|
eventKey = _ref.eventKey,
|
|
8016
7924
|
onSelect = _ref.onSelect,
|
|
8017
7925
|
as = _ref.as,
|
|
8018
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7926
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8019
7927
|
|
|
8020
7928
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8021
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7929
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8022
7930
|
href: href,
|
|
8023
7931
|
ref: ref,
|
|
8024
7932
|
eventKey: eventKey,
|
|
@@ -8029,9 +7937,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8029
7937
|
}));
|
|
8030
7938
|
});
|
|
8031
7939
|
NavLink.displayName = 'NavLink';
|
|
8032
|
-
NavLink.defaultProps = defaultProps$
|
|
7940
|
+
NavLink.defaultProps = defaultProps$s;
|
|
8033
7941
|
|
|
8034
|
-
var defaultProps$
|
|
7942
|
+
var defaultProps$t = {
|
|
8035
7943
|
justify: false,
|
|
8036
7944
|
fill: false
|
|
8037
7945
|
};
|
|
@@ -8051,13 +7959,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8051
7959
|
className = _useUncontrolled.className,
|
|
8052
7960
|
children = _useUncontrolled.children,
|
|
8053
7961
|
activeKey = _useUncontrolled.activeKey,
|
|
8054
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7962
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8055
7963
|
|
|
8056
7964
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8057
7965
|
var navbarBsPrefix;
|
|
8058
7966
|
var cardHeaderBsPrefix;
|
|
8059
7967
|
var isNavbar = false;
|
|
8060
|
-
var navbarContext = useContext(context);
|
|
7968
|
+
var navbarContext = useContext(context$2);
|
|
8061
7969
|
var cardContext = useContext(context$1);
|
|
8062
7970
|
|
|
8063
7971
|
if (navbarContext) {
|
|
@@ -8067,7 +7975,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8067
7975
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8068
7976
|
}
|
|
8069
7977
|
|
|
8070
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
7978
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8071
7979
|
as: as,
|
|
8072
7980
|
ref: ref,
|
|
8073
7981
|
activeKey: activeKey,
|
|
@@ -8075,7 +7983,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8075
7983
|
}, props), children);
|
|
8076
7984
|
});
|
|
8077
7985
|
Nav.displayName = 'Nav';
|
|
8078
|
-
Nav.defaultProps = defaultProps$
|
|
7986
|
+
Nav.defaultProps = defaultProps$t;
|
|
8079
7987
|
Nav.Item = NavItem;
|
|
8080
7988
|
Nav.Link = NavLink;
|
|
8081
7989
|
|
|
@@ -8083,11 +7991,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8083
7991
|
var bsPrefix = _ref.bsPrefix,
|
|
8084
7992
|
className = _ref.className,
|
|
8085
7993
|
as = _ref.as,
|
|
8086
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
7994
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8087
7995
|
|
|
8088
7996
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8089
7997
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8090
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7998
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8091
7999
|
ref: ref,
|
|
8092
8000
|
className: classnames(className, bsPrefix)
|
|
8093
8001
|
}));
|
|
@@ -8097,11 +8005,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8097
8005
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8098
8006
|
var children = _ref.children,
|
|
8099
8007
|
bsPrefix = _ref.bsPrefix,
|
|
8100
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8008
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8101
8009
|
|
|
8102
8010
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8103
|
-
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8104
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8011
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8012
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8105
8013
|
in: !!(context && context.expanded)
|
|
8106
8014
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8107
8015
|
ref: ref,
|
|
@@ -8111,7 +8019,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8111
8019
|
});
|
|
8112
8020
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8113
8021
|
|
|
8114
|
-
var defaultProps$
|
|
8022
|
+
var defaultProps$u = {
|
|
8115
8023
|
label: 'Toggle navigation'
|
|
8116
8024
|
};
|
|
8117
8025
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8122,11 +8030,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8122
8030
|
_ref$as = _ref.as,
|
|
8123
8031
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8124
8032
|
onClick = _ref.onClick,
|
|
8125
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8033
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8126
8034
|
|
|
8127
8035
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8128
8036
|
|
|
8129
|
-
var _ref2 = useContext(context) || {},
|
|
8037
|
+
var _ref2 = useContext(context$2) || {},
|
|
8130
8038
|
onToggle = _ref2.onToggle,
|
|
8131
8039
|
expanded = _ref2.expanded;
|
|
8132
8040
|
|
|
@@ -8139,7 +8047,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8139
8047
|
props.type = 'button';
|
|
8140
8048
|
}
|
|
8141
8049
|
|
|
8142
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8050
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8143
8051
|
ref: ref,
|
|
8144
8052
|
onClick: handleClick,
|
|
8145
8053
|
"aria-label": label,
|
|
@@ -8149,12 +8057,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8149
8057
|
}));
|
|
8150
8058
|
});
|
|
8151
8059
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8152
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8060
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8153
8061
|
|
|
8154
8062
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8155
8063
|
Component: 'span'
|
|
8156
8064
|
});
|
|
8157
|
-
var defaultProps$
|
|
8065
|
+
var defaultProps$v = {
|
|
8158
8066
|
expand: true,
|
|
8159
8067
|
variant: 'light',
|
|
8160
8068
|
collapseOnSelect: false
|
|
@@ -8177,7 +8085,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8177
8085
|
_onToggle = _useUncontrolled.onToggle,
|
|
8178
8086
|
onSelect = _useUncontrolled.onSelect,
|
|
8179
8087
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8180
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8088
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8181
8089
|
|
|
8182
8090
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8183
8091
|
var handleCollapse = useCallback(function () {
|
|
@@ -8207,24 +8115,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8207
8115
|
expanded: !!expanded
|
|
8208
8116
|
};
|
|
8209
8117
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8210
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8118
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8211
8119
|
value: navbarContext
|
|
8212
8120
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8213
8121
|
value: handleCollapse
|
|
8214
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8122
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8215
8123
|
ref: ref
|
|
8216
8124
|
}, controlledProps, {
|
|
8217
8125
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8218
8126
|
}), children)));
|
|
8219
8127
|
});
|
|
8220
|
-
Navbar.defaultProps = defaultProps$
|
|
8128
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8221
8129
|
Navbar.displayName = 'Navbar';
|
|
8222
8130
|
Navbar.Brand = NavbarBrand;
|
|
8223
8131
|
Navbar.Toggle = NavbarToggle;
|
|
8224
8132
|
Navbar.Collapse = NavbarCollapse;
|
|
8225
8133
|
Navbar.Text = NavbarText;
|
|
8226
8134
|
|
|
8227
|
-
var propTypes$
|
|
8135
|
+
var propTypes$9 = {
|
|
8228
8136
|
/**
|
|
8229
8137
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8230
8138
|
* @type {string|number}
|
|
@@ -8270,31 +8178,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8270
8178
|
disabled = _ref.disabled,
|
|
8271
8179
|
active = _ref.active,
|
|
8272
8180
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8273
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8181
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8274
8182
|
|
|
8275
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8183
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8276
8184
|
ref: ref
|
|
8277
8185
|
}, props, {
|
|
8278
8186
|
as: NavItem
|
|
8279
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8187
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8280
8188
|
id: id,
|
|
8281
8189
|
eventKey: null,
|
|
8282
8190
|
active: active,
|
|
8283
8191
|
disabled: disabled,
|
|
8284
8192
|
childBsPrefix: bsPrefix,
|
|
8285
8193
|
as: NavLink
|
|
8286
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8194
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8287
8195
|
role: menuRole,
|
|
8288
8196
|
renderOnMount: renderMenuOnMount,
|
|
8289
8197
|
rootCloseEvent: rootCloseEvent
|
|
8290
8198
|
}, children));
|
|
8291
8199
|
});
|
|
8292
8200
|
NavDropdown.displayName = 'NavDropdown';
|
|
8293
|
-
NavDropdown.propTypes = propTypes$
|
|
8294
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8295
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8296
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8297
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8201
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8202
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8203
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8204
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8205
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8298
8206
|
|
|
8299
8207
|
/**
|
|
8300
8208
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8535,7 +8443,7 @@ Overlay.propTypes = {
|
|
|
8535
8443
|
onExited: PropTypes.func
|
|
8536
8444
|
};
|
|
8537
8445
|
|
|
8538
|
-
/*#__PURE__*/
|
|
8446
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8539
8447
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8540
8448
|
|
|
8541
8449
|
function RefHolder() {
|
|
@@ -8549,9 +8457,9 @@ Overlay.propTypes = {
|
|
|
8549
8457
|
};
|
|
8550
8458
|
|
|
8551
8459
|
return RefHolder;
|
|
8552
|
-
}
|
|
8460
|
+
}(React__default.Component);
|
|
8553
8461
|
|
|
8554
|
-
var defaultProps$
|
|
8462
|
+
var defaultProps$w = {
|
|
8555
8463
|
active: false,
|
|
8556
8464
|
disabled: false,
|
|
8557
8465
|
activeLabel: '(current)'
|
|
@@ -8563,7 +8471,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8563
8471
|
style = _ref.style,
|
|
8564
8472
|
activeLabel = _ref.activeLabel,
|
|
8565
8473
|
children = _ref.children,
|
|
8566
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8474
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8567
8475
|
|
|
8568
8476
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8569
8477
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8573,14 +8481,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8573
8481
|
active: active,
|
|
8574
8482
|
disabled: disabled
|
|
8575
8483
|
})
|
|
8576
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8484
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8577
8485
|
className: "page-link",
|
|
8578
8486
|
disabled: disabled
|
|
8579
8487
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8580
8488
|
className: "sr-only"
|
|
8581
8489
|
}, activeLabel)));
|
|
8582
8490
|
});
|
|
8583
|
-
PageItem.defaultProps = defaultProps$
|
|
8491
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8584
8492
|
PageItem.displayName = 'PageItem';
|
|
8585
8493
|
|
|
8586
8494
|
function createButton(name, defaultValue, label) {
|
|
@@ -8590,7 +8498,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8590
8498
|
|
|
8591
8499
|
function Button(_ref2) {
|
|
8592
8500
|
var children = _ref2.children,
|
|
8593
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8501
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8594
8502
|
|
|
8595
8503
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8596
8504
|
"aria-hidden": "true"
|
|
@@ -8622,10 +8530,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8622
8530
|
className = _ref.className,
|
|
8623
8531
|
children = _ref.children,
|
|
8624
8532
|
size = _ref.size,
|
|
8625
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8533
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8626
8534
|
|
|
8627
8535
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8628
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8536
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8629
8537
|
ref: ref
|
|
8630
8538
|
}, props, {
|
|
8631
8539
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8644,10 +8552,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8644
8552
|
bsPrefix = _ref.bsPrefix,
|
|
8645
8553
|
className = _ref.className,
|
|
8646
8554
|
children = _ref.children,
|
|
8647
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8555
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8648
8556
|
|
|
8649
8557
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8650
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8558
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8651
8559
|
ref: ref
|
|
8652
8560
|
}, props, {
|
|
8653
8561
|
className: classnames(bsPrefix, className)
|
|
@@ -8660,17 +8568,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8660
8568
|
bsPrefix = _ref.bsPrefix,
|
|
8661
8569
|
className = _ref.className,
|
|
8662
8570
|
children = _ref.children,
|
|
8663
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8571
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8664
8572
|
|
|
8665
8573
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8666
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8574
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8667
8575
|
ref: ref
|
|
8668
8576
|
}, props, {
|
|
8669
8577
|
className: classnames(className, bsPrefix)
|
|
8670
8578
|
}), children);
|
|
8671
8579
|
});
|
|
8672
8580
|
|
|
8673
|
-
var defaultProps$
|
|
8581
|
+
var defaultProps$x = {
|
|
8674
8582
|
placement: 'right'
|
|
8675
8583
|
};
|
|
8676
8584
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8680,33 +8588,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8680
8588
|
style = _ref.style,
|
|
8681
8589
|
children = _ref.children,
|
|
8682
8590
|
content = _ref.content,
|
|
8683
|
-
arrowProps = _ref.arrowProps
|
|
8684
|
-
_ref.popper
|
|
8685
|
-
_ref.show
|
|
8686
|
-
|
|
8591
|
+
arrowProps = _ref.arrowProps,
|
|
8592
|
+
_ = _ref.popper,
|
|
8593
|
+
_1 = _ref.show,
|
|
8594
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8687
8595
|
|
|
8688
8596
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8689
8597
|
|
|
8690
8598
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8691
8599
|
primaryPlacement = _ref2[0];
|
|
8692
8600
|
|
|
8693
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8601
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8694
8602
|
ref: ref,
|
|
8695
8603
|
role: "tooltip",
|
|
8696
8604
|
style: style,
|
|
8697
8605
|
"x-placement": primaryPlacement,
|
|
8698
8606
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8699
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8607
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8700
8608
|
className: "arrow"
|
|
8701
8609
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8702
8610
|
});
|
|
8703
|
-
Popover.defaultProps = defaultProps$
|
|
8611
|
+
Popover.defaultProps = defaultProps$x;
|
|
8704
8612
|
Popover.Title = PopoverTitle;
|
|
8705
8613
|
Popover.Content = PopoverContent;
|
|
8706
8614
|
|
|
8707
8615
|
var ROUND_PRECISION = 1000;
|
|
8708
8616
|
|
|
8709
|
-
var defaultProps$
|
|
8617
|
+
var defaultProps$y = {
|
|
8710
8618
|
min: 0,
|
|
8711
8619
|
max: 100,
|
|
8712
8620
|
animated: false,
|
|
@@ -8734,14 +8642,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8734
8642
|
style = _ref.style,
|
|
8735
8643
|
variant = _ref.variant,
|
|
8736
8644
|
bsPrefix = _ref.bsPrefix,
|
|
8737
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8645
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8738
8646
|
|
|
8739
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8647
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8740
8648
|
ref: ref
|
|
8741
8649
|
}, props, {
|
|
8742
8650
|
role: "progressbar",
|
|
8743
8651
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8744
|
-
style: _extends({
|
|
8652
|
+
style: _extends$1({
|
|
8745
8653
|
width: getPercentage(now, min, max) + "%"
|
|
8746
8654
|
}, style),
|
|
8747
8655
|
"aria-valuenow": now,
|
|
@@ -8754,7 +8662,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8754
8662
|
|
|
8755
8663
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8756
8664
|
var isChild = _ref2.isChild,
|
|
8757
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8665
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8758
8666
|
|
|
8759
8667
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8760
8668
|
|
|
@@ -8773,9 +8681,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8773
8681
|
variant = props.variant,
|
|
8774
8682
|
className = props.className,
|
|
8775
8683
|
children = props.children,
|
|
8776
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8684
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8777
8685
|
|
|
8778
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8686
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8779
8687
|
ref: ref
|
|
8780
8688
|
}, wrapperProps, {
|
|
8781
8689
|
className: classnames(className, bsPrefix)
|
|
@@ -8796,9 +8704,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8796
8704
|
}, ref));
|
|
8797
8705
|
});
|
|
8798
8706
|
ProgressBar.displayName = 'ProgressBar';
|
|
8799
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8707
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8800
8708
|
|
|
8801
|
-
var defaultProps$
|
|
8709
|
+
var defaultProps$z = {
|
|
8802
8710
|
aspectRatio: '1by1'
|
|
8803
8711
|
};
|
|
8804
8712
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8806,11 +8714,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8806
8714
|
className = _ref.className,
|
|
8807
8715
|
children = _ref.children,
|
|
8808
8716
|
aspectRatio = _ref.aspectRatio,
|
|
8809
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8717
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8810
8718
|
|
|
8811
8719
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8812
8720
|
var child = React__default.Children.only(children);
|
|
8813
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8721
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8814
8722
|
ref: ref
|
|
8815
8723
|
}, props, {
|
|
8816
8724
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8818,10 +8726,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8818
8726
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8819
8727
|
}));
|
|
8820
8728
|
});
|
|
8821
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8729
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8822
8730
|
|
|
8823
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8824
|
-
var defaultProps$
|
|
8731
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8732
|
+
var defaultProps$A = {
|
|
8825
8733
|
noGutters: false
|
|
8826
8734
|
};
|
|
8827
8735
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8830,12 +8738,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8830
8738
|
noGutters = _ref.noGutters,
|
|
8831
8739
|
_ref$as = _ref.as,
|
|
8832
8740
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8833
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8741
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8834
8742
|
|
|
8835
8743
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8836
8744
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8837
8745
|
var classes = [];
|
|
8838
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8746
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8839
8747
|
var propValue = props[brkPoint];
|
|
8840
8748
|
delete props[brkPoint];
|
|
8841
8749
|
var cols;
|
|
@@ -8849,14 +8757,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8849
8757
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8850
8758
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8851
8759
|
});
|
|
8852
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8760
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8853
8761
|
ref: ref
|
|
8854
8762
|
}, props, {
|
|
8855
8763
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8856
8764
|
}));
|
|
8857
8765
|
});
|
|
8858
8766
|
Row.displayName = 'Row';
|
|
8859
|
-
Row.defaultProps = defaultProps$
|
|
8767
|
+
Row.defaultProps = defaultProps$A;
|
|
8860
8768
|
|
|
8861
8769
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8862
8770
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8867,11 +8775,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8867
8775
|
_ref$as = _ref.as,
|
|
8868
8776
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8869
8777
|
className = _ref.className,
|
|
8870
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8778
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8871
8779
|
|
|
8872
8780
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8873
8781
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8874
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8782
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8875
8783
|
ref: ref
|
|
8876
8784
|
}, props, {
|
|
8877
8785
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8879,7 +8787,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8879
8787
|
});
|
|
8880
8788
|
Spinner.displayName = 'Spinner';
|
|
8881
8789
|
|
|
8882
|
-
var propTypes = {
|
|
8790
|
+
var propTypes$a = {
|
|
8883
8791
|
/**
|
|
8884
8792
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8885
8793
|
* @type {string|number}
|
|
@@ -8941,7 +8849,7 @@ var propTypes = {
|
|
|
8941
8849
|
/** @ignore */
|
|
8942
8850
|
size: PropTypes.string
|
|
8943
8851
|
};
|
|
8944
|
-
var defaultProps$
|
|
8852
|
+
var defaultProps$B = {
|
|
8945
8853
|
toggleLabel: 'Toggle dropdown',
|
|
8946
8854
|
type: 'button'
|
|
8947
8855
|
};
|
|
@@ -8961,9 +8869,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8961
8869
|
menuRole = _ref.menuRole,
|
|
8962
8870
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8963
8871
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8964
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8872
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8965
8873
|
|
|
8966
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8874
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8967
8875
|
ref: ref
|
|
8968
8876
|
}, props, {
|
|
8969
8877
|
as: ButtonGroup
|
|
@@ -8976,7 +8884,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8976
8884
|
target: target,
|
|
8977
8885
|
onClick: onClick,
|
|
8978
8886
|
type: type
|
|
8979
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8887
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8980
8888
|
split: true,
|
|
8981
8889
|
id: id ? id.toString() : undefined,
|
|
8982
8890
|
size: size,
|
|
@@ -8985,15 +8893,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8985
8893
|
childBsPrefix: bsPrefix
|
|
8986
8894
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8987
8895
|
className: "sr-only"
|
|
8988
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8896
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8989
8897
|
align: menuAlign,
|
|
8990
8898
|
role: menuRole,
|
|
8991
8899
|
renderOnMount: renderMenuOnMount,
|
|
8992
8900
|
rootCloseEvent: rootCloseEvent
|
|
8993
8901
|
}, children));
|
|
8994
8902
|
});
|
|
8995
|
-
SplitButton.propTypes = propTypes;
|
|
8996
|
-
SplitButton.defaultProps = defaultProps$
|
|
8903
|
+
SplitButton.propTypes = propTypes$a;
|
|
8904
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8997
8905
|
SplitButton.displayName = 'SplitButton';
|
|
8998
8906
|
|
|
8999
8907
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9041,10 +8949,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9041
8949
|
_ref$as = _ref.as,
|
|
9042
8950
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9043
8951
|
className = _ref.className,
|
|
9044
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8952
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9045
8953
|
|
|
9046
8954
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9047
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8955
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9048
8956
|
ref: ref
|
|
9049
8957
|
}, props, {
|
|
9050
8958
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9058,11 +8966,11 @@ function useTabContext(props) {
|
|
|
9058
8966
|
var activeKey = context.activeKey,
|
|
9059
8967
|
getControlledId = context.getControlledId,
|
|
9060
8968
|
getControllerId = context.getControllerId,
|
|
9061
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8969
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9062
8970
|
|
|
9063
8971
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9064
8972
|
var key = makeEventKey(props.eventKey);
|
|
9065
|
-
return _extends({}, props, {
|
|
8973
|
+
return _extends$1({}, props, {
|
|
9066
8974
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9067
8975
|
id: getControlledId(props.eventKey),
|
|
9068
8976
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9087,13 +8995,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9087
8995
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9088
8996
|
Transition = _useTabContext.transition,
|
|
9089
8997
|
_useTabContext$as = _useTabContext.as,
|
|
9090
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9091
|
-
_useTabContext.eventKey
|
|
9092
|
-
|
|
8998
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8999
|
+
_ = _useTabContext.eventKey,
|
|
9000
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9093
9001
|
|
|
9094
9002
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9095
9003
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9096
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9004
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9097
9005
|
ref: ref,
|
|
9098
9006
|
role: "tabpanel",
|
|
9099
9007
|
"aria-hidden": !active,
|
|
@@ -9143,7 +9051,7 @@ Tab.Container = TabContainer;
|
|
|
9143
9051
|
Tab.Content = TabContent;
|
|
9144
9052
|
Tab.Pane = TabPane;
|
|
9145
9053
|
|
|
9146
|
-
React__default.forwardRef(function (_ref, ref) {
|
|
9054
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9147
9055
|
var bsPrefix = _ref.bsPrefix,
|
|
9148
9056
|
className = _ref.className,
|
|
9149
9057
|
striped = _ref.striped,
|
|
@@ -9153,11 +9061,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9153
9061
|
size = _ref.size,
|
|
9154
9062
|
variant = _ref.variant,
|
|
9155
9063
|
responsive = _ref.responsive,
|
|
9156
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9064
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9157
9065
|
|
|
9158
9066
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9159
9067
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9160
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9068
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9161
9069
|
className: classes,
|
|
9162
9070
|
ref: ref
|
|
9163
9071
|
}));
|
|
@@ -9182,7 +9090,7 @@ var ToastContext = React__default.createContext({
|
|
|
9182
9090
|
onClose: function onClose() {}
|
|
9183
9091
|
});
|
|
9184
9092
|
|
|
9185
|
-
var defaultProps$
|
|
9093
|
+
var defaultProps$C = {
|
|
9186
9094
|
closeLabel: 'Close',
|
|
9187
9095
|
closeButton: true
|
|
9188
9096
|
};
|
|
@@ -9192,7 +9100,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9192
9100
|
closeButton = _ref.closeButton,
|
|
9193
9101
|
className = _ref.className,
|
|
9194
9102
|
children = _ref.children,
|
|
9195
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9103
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9196
9104
|
|
|
9197
9105
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9198
9106
|
var context = useContext(ToastContext);
|
|
@@ -9201,7 +9109,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9201
9109
|
context.onClose(e);
|
|
9202
9110
|
}
|
|
9203
9111
|
});
|
|
9204
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9112
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9205
9113
|
ref: ref
|
|
9206
9114
|
}, props, {
|
|
9207
9115
|
className: classnames(bsPrefix, className)
|
|
@@ -9213,7 +9121,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9213
9121
|
}));
|
|
9214
9122
|
});
|
|
9215
9123
|
ToastHeader.displayName = 'ToastHeader';
|
|
9216
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9124
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9217
9125
|
|
|
9218
9126
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9219
9127
|
|
|
@@ -9232,7 +9140,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9232
9140
|
_ref$autohide = _ref.autohide,
|
|
9233
9141
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9234
9142
|
onClose = _ref.onClose,
|
|
9235
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9143
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9236
9144
|
|
|
9237
9145
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9238
9146
|
// timer in case these values change.
|
|
@@ -9260,7 +9168,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9260
9168
|
};
|
|
9261
9169
|
}, [onClose]);
|
|
9262
9170
|
var hasAnimation = !!(Transition && animation);
|
|
9263
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9171
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9264
9172
|
ref: ref,
|
|
9265
9173
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9266
9174
|
role: "alert",
|
|
@@ -9280,7 +9188,7 @@ Object.assign(Toast, {
|
|
|
9280
9188
|
Header: ToastHeader
|
|
9281
9189
|
});
|
|
9282
9190
|
|
|
9283
|
-
var noop = function noop() {
|
|
9191
|
+
var noop$5 = function noop() {
|
|
9284
9192
|
return undefined;
|
|
9285
9193
|
};
|
|
9286
9194
|
|
|
@@ -9294,7 +9202,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9294
9202
|
value = _ref.value,
|
|
9295
9203
|
disabled = _ref.disabled,
|
|
9296
9204
|
inputRef = _ref.inputRef,
|
|
9297
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9205
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9298
9206
|
|
|
9299
9207
|
var _useState = useState(false),
|
|
9300
9208
|
focused = _useState[0],
|
|
@@ -9306,7 +9214,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9306
9214
|
var handleBlur = useCallback(function (e) {
|
|
9307
9215
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9308
9216
|
}, []);
|
|
9309
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9217
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9310
9218
|
ref: ref,
|
|
9311
9219
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9312
9220
|
type: undefined,
|
|
@@ -9322,12 +9230,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9322
9230
|
disabled: !!disabled,
|
|
9323
9231
|
onFocus: handleFocus,
|
|
9324
9232
|
onBlur: handleBlur,
|
|
9325
|
-
onChange: onChange || noop
|
|
9233
|
+
onChange: onChange || noop$5
|
|
9326
9234
|
}), children);
|
|
9327
9235
|
});
|
|
9328
9236
|
ToggleButton.displayName = 'ToggleButton';
|
|
9329
9237
|
|
|
9330
|
-
var defaultProps$
|
|
9238
|
+
var defaultProps$D = {
|
|
9331
9239
|
type: 'radio',
|
|
9332
9240
|
vertical: false
|
|
9333
9241
|
};
|
|
@@ -9340,7 +9248,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9340
9248
|
name = _useUncontrolled.name,
|
|
9341
9249
|
value = _useUncontrolled.value,
|
|
9342
9250
|
onChange = _useUncontrolled.onChange,
|
|
9343
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9251
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9344
9252
|
|
|
9345
9253
|
var getValues = function getValues() {
|
|
9346
9254
|
return value == null ? [] : [].concat(value);
|
|
@@ -9369,7 +9277,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9369
9277
|
};
|
|
9370
9278
|
|
|
9371
9279
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9372
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9280
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9373
9281
|
ref: ref,
|
|
9374
9282
|
toggle: true
|
|
9375
9283
|
}), map(children, function (child) {
|
|
@@ -9390,10 +9298,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9390
9298
|
});
|
|
9391
9299
|
}));
|
|
9392
9300
|
});
|
|
9393
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9301
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9394
9302
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9395
9303
|
|
|
9396
|
-
var defaultProps = {
|
|
9304
|
+
var defaultProps$E = {
|
|
9397
9305
|
placement: 'right'
|
|
9398
9306
|
};
|
|
9399
9307
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9402,29 +9310,29 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9402
9310
|
className = _ref.className,
|
|
9403
9311
|
style = _ref.style,
|
|
9404
9312
|
children = _ref.children,
|
|
9405
|
-
arrowProps = _ref.arrowProps
|
|
9406
|
-
_ref.popper
|
|
9407
|
-
_ref.show
|
|
9408
|
-
|
|
9313
|
+
arrowProps = _ref.arrowProps,
|
|
9314
|
+
_ = _ref.popper,
|
|
9315
|
+
_2 = _ref.show,
|
|
9316
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9409
9317
|
|
|
9410
9318
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9411
9319
|
|
|
9412
9320
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9413
9321
|
primaryPlacement = _ref2[0];
|
|
9414
9322
|
|
|
9415
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9323
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9416
9324
|
ref: ref,
|
|
9417
9325
|
style: style,
|
|
9418
9326
|
role: "tooltip",
|
|
9419
9327
|
"x-placement": primaryPlacement,
|
|
9420
9328
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9421
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9329
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9422
9330
|
className: "arrow"
|
|
9423
9331
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9424
9332
|
className: bsPrefix + "-inner"
|
|
9425
9333
|
}, children));
|
|
9426
9334
|
});
|
|
9427
|
-
Tooltip.defaultProps = defaultProps;
|
|
9335
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9428
9336
|
Tooltip.displayName = 'Tooltip';
|
|
9429
9337
|
|
|
9430
9338
|
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
@@ -9492,4 +9400,4 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9492
9400
|
);
|
|
9493
9401
|
};
|
|
9494
9402
|
|
|
9495
|
-
export { DropdownButton as D, MediaSeriesCard as M, Dropdown as a };
|
|
9403
|
+
export { DropdownButton as D, MediaSeriesCard as M, Dropdown$1 as a };
|