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