@mjhls/mjh-framework 1.0.876-beta.0 → 1.0.877-v1pageviewfix
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 +168 -168
- 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-c628363f.js → ADInfeed-b6b7b0ec.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-a827d389.js → ADlgInfeed-8e290400.js} +11 -10
- package/dist/cjs/AccordionPanel.js +29 -27
- package/dist/cjs/AdSlot.js +34 -33
- 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 +61 -60
- package/dist/cjs/ArticleSeriesLandingPage.js +41 -40
- package/dist/cjs/ArticleSeriesListing.js +60 -59
- package/dist/cjs/Auth.js +680 -1504
- package/dist/cjs/AuthWrapper.js +1637 -419
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-39b37d84.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- 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 +41 -40
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +105 -101
- package/dist/cjs/DeckQueue.js +91 -87
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-9be904d5.js} +33 -32
- package/dist/cjs/EventsDeck.js +157 -150
- 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 +236 -231
- package/dist/cjs/GridHero.js +43 -42
- package/dist/cjs/GroupDeck.js +58 -57
- package/dist/cjs/HamMagazine.js +144 -139
- 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/IssueContentDeck.js +76 -71
- package/dist/cjs/IssueDeck.js +75 -70
- package/dist/cjs/IssueLanding.js +94 -91
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +39 -37
- package/dist/cjs/MasterDeck.js +79 -78
- package/dist/cjs/MediaSeriesLanding.js +1233 -1138
- package/dist/cjs/NavDvm.js +77 -72
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +151 -146
- package/dist/cjs/NavNative.js +145 -137
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +71 -70
- package/dist/cjs/PageFilter.js +13 -12
- package/dist/cjs/PartnerDetailListing.js +304 -1476
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +19 -17
- package/dist/cjs/PubSection.js +41 -38
- package/dist/cjs/PubToc.js +14 -13
- package/dist/cjs/PublicationDeck.js +70 -65
- package/dist/cjs/PublicationLanding.js +141 -133
- package/dist/cjs/QueueDeckExpanded.js +1172 -1052
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +58 -57
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +20 -16
- package/dist/cjs/Segment.js +4 -5
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-ba0c5d1a.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +37 -36
- 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 +78 -74
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +50 -49
- package/dist/cjs/VideoSeriesListing.js +77 -76
- package/dist/cjs/View.js +280 -273
- package/dist/cjs/YahooHero.js +40 -39
- package/dist/cjs/YoutubeGroup.js +68 -67
- 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 +19 -19
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-9d509319.js} +12 -12
- 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-cdacba23.js → index-602af93b.js} +1091 -1065
- 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 +171 -164
- package/dist/cjs/{inherits-cba9c846.js → inherits-de66ea16.js} +19 -19
- 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-35a2a91f.js → ADInfeed-19675d06.js} +6 -6
- 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-fd34a881.js → ADlgInfeed-970ed008.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +22 -22
- 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 +32 -32
- package/dist/esm/Auth.js +591 -1419
- package/dist/esm/AuthWrapper.js +1609 -392
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-11adff02.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- 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/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-f867d061.js → Dfp-102f0beb.js} +13 -13
- package/dist/esm/EventsDeck.js +65 -65
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- 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/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -80
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/MediaSeriesLanding.js +752 -660
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +7 -8
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +210 -1383
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -30
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +78 -74
- package/dist/esm/QueueDeckExpanded.js +1104 -984
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -5
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-d555a1d2.js → SeriesSlider-45adb8dc.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-d240935c.js → SocialSearchComponent-8e0fcf66.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- 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 +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +102 -99
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- 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-64812e90.js → asyncToGenerator-5ef104a7.js} +31 -31
- 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/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-4061f839.js} +11 -11
- 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-604589b2.js → index-51694988.js} +655 -639
- 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-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 +111 -112
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- 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-e4a934b2.js +0 -851
- package/dist/esm/stringify-70b72959.js +0 -15
|
@@ -1,71 +1,71 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-8c30428f.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
6
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import ReactDOM from 'react-dom';
|
|
1
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
13
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
+
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
18
|
+
import { g as getSerializers } from './index-51694988.js';
|
|
19
|
+
import './define-property-5f1bda73.js';
|
|
20
|
+
import './core.get-iterator-method-ea258bb1.js';
|
|
21
|
+
import './web.dom.iterable-ab4dea5c.js';
|
|
3
22
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './
|
|
6
|
-
import './_object-pie-
|
|
7
|
-
import
|
|
8
|
-
import './
|
|
9
|
-
import './
|
|
10
|
-
import './
|
|
11
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
-
import { _ as _typeof } from './typeof-c05a82ba.js';
|
|
13
|
-
import './_is-array-4df618a6.js';
|
|
14
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
23
|
+
import './_iter-detect-98db3b07.js';
|
|
24
|
+
import './_is-array-8d21b9e3.js';
|
|
25
|
+
import './_object-pie-133f504a.js';
|
|
26
|
+
import './toConsumableArray-f7074d7c.js';
|
|
27
|
+
import './inherits-a6ba2ec4.js';
|
|
28
|
+
import './_object-sap-7cee6f84.js';
|
|
29
|
+
import './index-f0fc23eb.js';
|
|
15
30
|
import './events-6c3a7a63.js';
|
|
16
|
-
import './index-41a678ea.js';
|
|
17
|
-
import PropTypes from 'prop-types';
|
|
18
31
|
import 'react-bootstrap/Container';
|
|
19
32
|
import 'react-bootstrap/Row';
|
|
20
33
|
import 'react-bootstrap/Col';
|
|
21
34
|
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
23
35
|
import 'next/router';
|
|
24
|
-
import './
|
|
25
|
-
import './debounce-
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import
|
|
36
|
+
import './lodash-f97fd99a.js';
|
|
37
|
+
import './debounce-533d9748.js';
|
|
38
|
+
import './isSymbol-a7e9aafe.js';
|
|
39
|
+
import './toNumber-5aeba6e7.js';
|
|
40
|
+
import './index.es-a6137319.js';
|
|
29
41
|
import './visibility-sensor-72fd8f8b.js';
|
|
30
|
-
import
|
|
31
|
-
import './
|
|
32
|
-
import urlFor from './urlFor.js';
|
|
33
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
-
import './main-e4a934b2.js';
|
|
35
|
-
import './entities-7cc3bf45.js';
|
|
36
|
-
import './stringify-70b72959.js';
|
|
37
|
-
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
38
|
-
import './Segment.js';
|
|
39
|
-
import './Beam.js';
|
|
42
|
+
import './index-3f5c03b2.js';
|
|
43
|
+
import './ADlgInfeed-970ed008.js';
|
|
40
44
|
import './AdSlot.js';
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import '
|
|
45
|
-
import
|
|
45
|
+
import './Beam.js';
|
|
46
|
+
import './stringify-2b084bee.js';
|
|
47
|
+
import './Segment.js';
|
|
48
|
+
import './main-1894c974.js';
|
|
49
|
+
import './ADInfeed-19675d06.js';
|
|
50
|
+
import 'react-bootstrap';
|
|
46
51
|
import './index-c7e2ac95.js';
|
|
47
|
-
import './
|
|
52
|
+
import './util-8ed16d48.js';
|
|
53
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
48
54
|
import './GroupDeck.js';
|
|
49
|
-
import '
|
|
50
|
-
import './
|
|
51
|
-
import './index.esm-29e48d38.js';
|
|
52
|
-
import { g as getSerializers } from './index-604589b2.js';
|
|
53
|
-
import './util-7700fc59.js';
|
|
54
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
55
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
56
|
+
import './SocialShare.js';
|
|
55
57
|
import 'next/head';
|
|
56
58
|
import 'react-share';
|
|
57
|
-
import './
|
|
58
|
-
import './_object-to-array-c54dd835.js';
|
|
59
|
+
import './_object-to-array-2300e51b.js';
|
|
59
60
|
import 'react-bootstrap/Pagination';
|
|
61
|
+
import 'react-bootstrap/Button';
|
|
62
|
+
import './entities-6d9154b4.js';
|
|
63
|
+
import './index.esm-f6156a57.js';
|
|
64
|
+
import './iconBase-ccc56b97.js';
|
|
60
65
|
import 'react-bootstrap/Figure';
|
|
61
66
|
import 'react-bootstrap/OverlayTrigger';
|
|
62
67
|
import 'react-bootstrap/Tooltip';
|
|
63
68
|
import 'react-bootstrap/Popover';
|
|
64
|
-
import MasterDeck from './MasterDeck.js';
|
|
65
|
-
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
66
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
67
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
|
-
import Link from 'next/link';
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -160,7 +160,7 @@ function useUncontrolled(props, config) {
|
|
|
160
160
|
var _ref = result,
|
|
161
161
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
162
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose
|
|
163
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
164
|
|
|
165
165
|
var handlerName = config[fieldName];
|
|
166
166
|
|
|
@@ -168,19 +168,19 @@ function useUncontrolled(props, config) {
|
|
|
168
168
|
value = _useUncontrolledProp[0],
|
|
169
169
|
handler = _useUncontrolledProp[1];
|
|
170
170
|
|
|
171
|
-
return _extends
|
|
171
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
172
|
}, props);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
function _inheritsLoose(subClass, superClass) {
|
|
176
176
|
subClass.prototype = Object.create(superClass.prototype);
|
|
177
177
|
subClass.prototype.constructor = subClass;
|
|
178
|
-
subClass
|
|
178
|
+
_setPrototypeOf(subClass, superClass);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
var ThemeContext = React__default.createContext({});
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
ThemeContext.Consumer;
|
|
183
|
+
ThemeContext.Provider;
|
|
184
184
|
|
|
185
185
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
186
186
|
var prefixes = useContext(ThemeContext);
|
|
@@ -197,11 +197,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
197
|
return href || null;
|
|
198
198
|
};
|
|
199
199
|
|
|
200
|
-
var context = React__default.createContext(null);
|
|
201
|
-
context.displayName = 'AccordionContext';
|
|
200
|
+
var context$2 = React__default.createContext(null);
|
|
201
|
+
context$2.displayName = 'AccordionContext';
|
|
202
202
|
|
|
203
203
|
function useAccordionToggle(eventKey, onClick) {
|
|
204
|
-
var contextEventKey = useContext(context);
|
|
204
|
+
var contextEventKey = useContext(context$2);
|
|
205
205
|
var onSelect = useContext(SelectableContext);
|
|
206
206
|
return function (e) {
|
|
207
207
|
/*
|
|
@@ -219,7 +219,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
219
219
|
children = _ref.children,
|
|
220
220
|
eventKey = _ref.eventKey,
|
|
221
221
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose
|
|
222
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
223
|
|
|
224
224
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
225
|
|
|
@@ -227,22 +227,40 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
227
227
|
props.type = 'button';
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
230
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
231
231
|
ref: ref,
|
|
232
232
|
onClick: accordionOnClick
|
|
233
233
|
}, props), children);
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
/**
|
|
237
|
+
* Returns the owner document of a given element.
|
|
238
|
+
*
|
|
239
|
+
* @param node the element
|
|
240
|
+
*/
|
|
241
|
+
function ownerDocument$1(node) {
|
|
237
242
|
return node && node.ownerDocument || document;
|
|
238
243
|
}
|
|
239
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Returns the owner window of a given element.
|
|
247
|
+
*
|
|
248
|
+
* @param node the element
|
|
249
|
+
*/
|
|
250
|
+
|
|
240
251
|
function ownerWindow(node) {
|
|
241
|
-
var doc = ownerDocument(node);
|
|
252
|
+
var doc = ownerDocument$1(node);
|
|
242
253
|
return doc && doc.defaultView || window;
|
|
243
254
|
}
|
|
244
255
|
|
|
245
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Returns one or all computed style properties of an element.
|
|
258
|
+
*
|
|
259
|
+
* @param node the element
|
|
260
|
+
* @param psuedoElement the style property
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
246
264
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
247
265
|
}
|
|
248
266
|
|
|
@@ -271,7 +289,7 @@ function style(node, property) {
|
|
|
271
289
|
var transforms = '';
|
|
272
290
|
|
|
273
291
|
if (typeof property === 'string') {
|
|
274
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
292
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
275
293
|
}
|
|
276
294
|
|
|
277
295
|
Object.keys(property).forEach(function (key) {
|
|
@@ -322,6 +340,11 @@ try {
|
|
|
322
340
|
|
|
323
341
|
/**
|
|
324
342
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
343
|
+
*
|
|
344
|
+
* @param node the element
|
|
345
|
+
* @param eventName the event name
|
|
346
|
+
* @param handle the handler
|
|
347
|
+
* @param options event options
|
|
325
348
|
*/
|
|
326
349
|
function addEventListener(node, eventName, handler, options) {
|
|
327
350
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -344,6 +367,14 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
344
367
|
node.addEventListener(eventName, handler, options);
|
|
345
368
|
}
|
|
346
369
|
|
|
370
|
+
/**
|
|
371
|
+
* A `removeEventListener` ponyfill
|
|
372
|
+
*
|
|
373
|
+
* @param node the element
|
|
374
|
+
* @param eventName the event name
|
|
375
|
+
* @param handle the handler
|
|
376
|
+
* @param options event options
|
|
377
|
+
*/
|
|
347
378
|
function removeEventListener(node, eventName, handler, options) {
|
|
348
379
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
349
380
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -360,18 +391,36 @@ function listen(node, eventName, handler, options) {
|
|
|
360
391
|
};
|
|
361
392
|
}
|
|
362
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Triggers an event on a given element.
|
|
396
|
+
*
|
|
397
|
+
* @param node the element
|
|
398
|
+
* @param eventName the event name to trigger
|
|
399
|
+
* @param bubbles whether the event should bubble up
|
|
400
|
+
* @param cancelable whether the event should be cancelable
|
|
401
|
+
*/
|
|
402
|
+
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
403
|
+
if (bubbles === void 0) {
|
|
404
|
+
bubbles = false;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
if (cancelable === void 0) {
|
|
408
|
+
cancelable = true;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
if (node) {
|
|
412
|
+
var event = document.createEvent('HTMLEvents');
|
|
413
|
+
event.initEvent(eventName, bubbles, cancelable);
|
|
414
|
+
node.dispatchEvent(event);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
363
418
|
function parseDuration(node) {
|
|
364
419
|
var str = style(node, 'transitionDuration') || '';
|
|
365
420
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
366
421
|
return parseFloat(str) * mult;
|
|
367
422
|
}
|
|
368
423
|
|
|
369
|
-
function triggerTransitionEnd(element) {
|
|
370
|
-
var evt = document.createEvent('HTMLEvents');
|
|
371
|
-
evt.initEvent('transitionend', true, true);
|
|
372
|
-
element.dispatchEvent(evt);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
424
|
function emulateTransitionEnd(element, duration, padding) {
|
|
376
425
|
if (padding === void 0) {
|
|
377
426
|
padding = 5;
|
|
@@ -379,7 +428,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
379
428
|
|
|
380
429
|
var called = false;
|
|
381
430
|
var handle = setTimeout(function () {
|
|
382
|
-
if (!called)
|
|
431
|
+
if (!called) triggerEvent(element, 'transitionend', true);
|
|
383
432
|
}, duration + padding);
|
|
384
433
|
var remove = listen(element, 'transitionend', function () {
|
|
385
434
|
called = true;
|
|
@@ -411,7 +460,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
411
460
|
exit: PropTypes.number,
|
|
412
461
|
appear: PropTypes.number
|
|
413
462
|
}).isRequired]) : null;
|
|
414
|
-
|
|
463
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
415
464
|
enter: PropTypes.string,
|
|
416
465
|
exit: PropTypes.string,
|
|
417
466
|
active: PropTypes.string
|
|
@@ -793,23 +842,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
793
842
|
}
|
|
794
843
|
|
|
795
844
|
var _this$props = this.props,
|
|
796
|
-
children = _this$props.children
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
childProps = _objectWithoutPropertiesLoose
|
|
845
|
+
children = _this$props.children;
|
|
846
|
+
_this$props.in;
|
|
847
|
+
_this$props.mountOnEnter;
|
|
848
|
+
_this$props.unmountOnExit;
|
|
849
|
+
_this$props.appear;
|
|
850
|
+
_this$props.enter;
|
|
851
|
+
_this$props.exit;
|
|
852
|
+
_this$props.timeout;
|
|
853
|
+
_this$props.addEndListener;
|
|
854
|
+
_this$props.onEnter;
|
|
855
|
+
_this$props.onEntering;
|
|
856
|
+
_this$props.onEntered;
|
|
857
|
+
_this$props.onExit;
|
|
858
|
+
_this$props.onExiting;
|
|
859
|
+
_this$props.onExited;
|
|
860
|
+
_this$props.nodeRef;
|
|
861
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
813
862
|
|
|
814
863
|
return (
|
|
815
864
|
/*#__PURE__*/
|
|
@@ -837,7 +886,10 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
837
886
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
838
887
|
*/
|
|
839
888
|
nodeRef: PropTypes.shape({
|
|
840
|
-
current: typeof Element === 'undefined' ? PropTypes.any :
|
|
889
|
+
current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {
|
|
890
|
+
var value = propValue[key];
|
|
891
|
+
return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);
|
|
892
|
+
}
|
|
841
893
|
}),
|
|
842
894
|
|
|
843
895
|
/**
|
|
@@ -1009,7 +1061,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1009
1061
|
onExited: PropTypes.func
|
|
1010
1062
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1011
1063
|
|
|
1012
|
-
function noop() {}
|
|
1064
|
+
function noop$5() {}
|
|
1013
1065
|
|
|
1014
1066
|
Transition.defaultProps = {
|
|
1015
1067
|
in: false,
|
|
@@ -1018,12 +1070,12 @@ Transition.defaultProps = {
|
|
|
1018
1070
|
appear: false,
|
|
1019
1071
|
enter: true,
|
|
1020
1072
|
exit: true,
|
|
1021
|
-
onEnter: noop,
|
|
1022
|
-
onEntering: noop,
|
|
1023
|
-
onEntered: noop,
|
|
1024
|
-
onExit: noop,
|
|
1025
|
-
onExiting: noop,
|
|
1026
|
-
onExited: noop
|
|
1073
|
+
onEnter: noop$5,
|
|
1074
|
+
onEntering: noop$5,
|
|
1075
|
+
onEntered: noop$5,
|
|
1076
|
+
onExit: noop$5,
|
|
1077
|
+
onExiting: noop$5,
|
|
1078
|
+
onExited: noop$5
|
|
1027
1079
|
};
|
|
1028
1080
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1029
1081
|
Transition.EXITED = EXITED;
|
|
@@ -1089,7 +1141,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1089
1141
|
}
|
|
1090
1142
|
|
|
1091
1143
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1092
|
-
var defaultProps = {
|
|
1144
|
+
var defaultProps$E = {
|
|
1093
1145
|
in: false,
|
|
1094
1146
|
timeout: 300,
|
|
1095
1147
|
mountOnEnter: false,
|
|
@@ -1109,7 +1161,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1109
1161
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1110
1162
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1111
1163
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1112
|
-
props = _objectWithoutPropertiesLoose
|
|
1164
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
1165
|
|
|
1114
1166
|
/* Compute dimension */
|
|
1115
1167
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1145,7 +1197,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1145
1197
|
}, onExiting);
|
|
1146
1198
|
}, [computedDimension, onExiting]);
|
|
1147
1199
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1148
|
-
, _extends
|
|
1200
|
+
, _extends({
|
|
1149
1201
|
ref: ref,
|
|
1150
1202
|
addEndListener: transitionEnd
|
|
1151
1203
|
}, props, {
|
|
@@ -1156,26 +1208,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1156
1208
|
onExit: handleExit,
|
|
1157
1209
|
onExiting: handleExiting
|
|
1158
1210
|
}), function (state, innerProps) {
|
|
1159
|
-
return React__default.cloneElement(children, _extends
|
|
1211
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1160
1212
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1161
1213
|
}));
|
|
1162
1214
|
});
|
|
1163
1215
|
}); // @ts-ignore
|
|
1164
1216
|
|
|
1165
1217
|
// @ts-ignore
|
|
1166
|
-
Collapse.defaultProps = defaultProps;
|
|
1218
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1167
1219
|
|
|
1168
1220
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1169
1221
|
var children = _ref.children,
|
|
1170
1222
|
eventKey = _ref.eventKey,
|
|
1171
|
-
props = _objectWithoutPropertiesLoose
|
|
1223
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1172
1224
|
|
|
1173
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1225
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1174
1226
|
// from collapsing the accordion when clicked.
|
|
1175
1227
|
|
|
1176
1228
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1177
1229
|
value: null
|
|
1178
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends
|
|
1230
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1179
1231
|
ref: ref,
|
|
1180
1232
|
in: contextEventKey === eventKey
|
|
1181
1233
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1193,14 +1245,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1193
1245
|
children = _useUncontrolled.children,
|
|
1194
1246
|
className = _useUncontrolled.className,
|
|
1195
1247
|
onSelect = _useUncontrolled.onSelect,
|
|
1196
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1248
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
1249
|
|
|
1198
1250
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1199
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1251
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
1200
1252
|
value: activeKey || null
|
|
1201
1253
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1202
1254
|
value: onSelect || null
|
|
1203
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1255
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1204
1256
|
ref: ref
|
|
1205
1257
|
}, controlledProps, {
|
|
1206
1258
|
className: finalClassName
|
|
@@ -1236,7 +1288,7 @@ function useEventCallback(fn) {
|
|
|
1236
1288
|
}
|
|
1237
1289
|
|
|
1238
1290
|
var _fadeStyles;
|
|
1239
|
-
var defaultProps$
|
|
1291
|
+
var defaultProps$D = {
|
|
1240
1292
|
in: false,
|
|
1241
1293
|
timeout: 300,
|
|
1242
1294
|
mountOnEnter: false,
|
|
@@ -1247,40 +1299,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1247
1299
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1248
1300
|
var className = _ref.className,
|
|
1249
1301
|
children = _ref.children,
|
|
1250
|
-
props = _objectWithoutPropertiesLoose
|
|
1302
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1251
1303
|
|
|
1252
1304
|
var handleEnter = useCallback(function (node) {
|
|
1253
1305
|
triggerBrowserReflow(node);
|
|
1254
1306
|
if (props.onEnter) props.onEnter(node);
|
|
1255
1307
|
}, [props]);
|
|
1256
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends
|
|
1308
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1257
1309
|
ref: ref,
|
|
1258
1310
|
addEndListener: transitionEnd
|
|
1259
1311
|
}, props, {
|
|
1260
1312
|
onEnter: handleEnter
|
|
1261
1313
|
}), function (status, innerProps) {
|
|
1262
|
-
return React__default.cloneElement(children, _extends
|
|
1314
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1263
1315
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1264
1316
|
}));
|
|
1265
1317
|
});
|
|
1266
1318
|
});
|
|
1267
|
-
Fade.defaultProps = defaultProps$
|
|
1319
|
+
Fade.defaultProps = defaultProps$D;
|
|
1268
1320
|
Fade.displayName = 'Fade';
|
|
1269
1321
|
|
|
1270
|
-
var propTypes = {
|
|
1322
|
+
var propTypes$a = {
|
|
1271
1323
|
label: PropTypes.string.isRequired,
|
|
1272
1324
|
onClick: PropTypes.func
|
|
1273
1325
|
};
|
|
1274
|
-
var defaultProps$
|
|
1326
|
+
var defaultProps$C = {
|
|
1275
1327
|
label: 'Close'
|
|
1276
1328
|
};
|
|
1277
1329
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1278
1330
|
var label = _ref.label,
|
|
1279
1331
|
onClick = _ref.onClick,
|
|
1280
1332
|
className = _ref.className,
|
|
1281
|
-
props = _objectWithoutPropertiesLoose
|
|
1333
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1282
1334
|
|
|
1283
|
-
return /*#__PURE__*/React__default.createElement("button", _extends
|
|
1335
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1284
1336
|
ref: ref,
|
|
1285
1337
|
type: "button",
|
|
1286
1338
|
className: classnames('close', className),
|
|
@@ -1292,12 +1344,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1292
1344
|
}, label));
|
|
1293
1345
|
});
|
|
1294
1346
|
CloseButton.displayName = 'CloseButton';
|
|
1295
|
-
CloseButton.propTypes = propTypes;
|
|
1296
|
-
CloseButton.defaultProps = defaultProps$
|
|
1347
|
+
CloseButton.propTypes = propTypes$a;
|
|
1348
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1297
1349
|
|
|
1298
1350
|
var divWithClassName = (function (className) {
|
|
1299
1351
|
return React__default.forwardRef(function (p, ref) {
|
|
1300
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
1352
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1301
1353
|
ref: ref,
|
|
1302
1354
|
className: classnames(p.className, className)
|
|
1303
1355
|
}));
|
|
@@ -1328,10 +1380,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1328
1380
|
bsPrefix = _ref2.bsPrefix,
|
|
1329
1381
|
_ref2$as = _ref2.as,
|
|
1330
1382
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1331
|
-
props = _objectWithoutPropertiesLoose
|
|
1383
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
1384
|
|
|
1333
1385
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1334
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends
|
|
1386
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1335
1387
|
ref: ref,
|
|
1336
1388
|
className: classnames(className, resolvedPrefix)
|
|
1337
1389
|
}, props));
|
|
@@ -1358,7 +1410,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1358
1410
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1359
1411
|
disabled = _ref.disabled,
|
|
1360
1412
|
onKeyDown = _ref.onKeyDown,
|
|
1361
|
-
props = _objectWithoutPropertiesLoose
|
|
1413
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
1414
|
|
|
1363
1415
|
var handleClick = function handleClick(event) {
|
|
1364
1416
|
var href = props.href,
|
|
@@ -1397,7 +1449,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1397
1449
|
props['aria-disabled'] = true;
|
|
1398
1450
|
}
|
|
1399
1451
|
|
|
1400
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1452
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1401
1453
|
ref: ref
|
|
1402
1454
|
}, props, {
|
|
1403
1455
|
onClick: handleClick,
|
|
@@ -1406,15 +1458,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1406
1458
|
});
|
|
1407
1459
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1408
1460
|
|
|
1409
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1410
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1461
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1462
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1411
1463
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1412
|
-
Component: DivStyledAsH4
|
|
1464
|
+
Component: DivStyledAsH4$1
|
|
1413
1465
|
});
|
|
1414
1466
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1415
1467
|
Component: SafeAnchor
|
|
1416
1468
|
});
|
|
1417
|
-
var defaultProps$
|
|
1469
|
+
var defaultProps$B = {
|
|
1418
1470
|
show: true,
|
|
1419
1471
|
transition: Fade,
|
|
1420
1472
|
closeLabel: 'Close alert'
|
|
@@ -1432,7 +1484,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1432
1484
|
onClose = _useUncontrolled.onClose,
|
|
1433
1485
|
dismissible = _useUncontrolled.dismissible,
|
|
1434
1486
|
transition = _useUncontrolled.transition,
|
|
1435
|
-
props = _objectWithoutPropertiesLoose
|
|
1487
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
1488
|
|
|
1437
1489
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1438
1490
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1441,7 +1493,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1441
1493
|
}
|
|
1442
1494
|
});
|
|
1443
1495
|
var Transition = transition === true ? Fade : transition;
|
|
1444
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends
|
|
1496
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1445
1497
|
role: "alert"
|
|
1446
1498
|
}, Transition ? props : undefined, {
|
|
1447
1499
|
ref: ref,
|
|
@@ -1451,7 +1503,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1451
1503
|
label: closeLabel
|
|
1452
1504
|
}), children);
|
|
1453
1505
|
if (!Transition) return show ? alert : null;
|
|
1454
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends
|
|
1506
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1455
1507
|
unmountOnExit: true
|
|
1456
1508
|
}, props, {
|
|
1457
1509
|
ref: undefined,
|
|
@@ -1459,11 +1511,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1459
1511
|
}), alert);
|
|
1460
1512
|
});
|
|
1461
1513
|
Alert.displayName = 'Alert';
|
|
1462
|
-
Alert.defaultProps = defaultProps$
|
|
1514
|
+
Alert.defaultProps = defaultProps$B;
|
|
1463
1515
|
Alert.Link = AlertLink;
|
|
1464
1516
|
Alert.Heading = AlertHeading;
|
|
1465
1517
|
|
|
1466
|
-
var defaultProps$
|
|
1518
|
+
var defaultProps$A = {
|
|
1467
1519
|
pill: false
|
|
1468
1520
|
};
|
|
1469
1521
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1473,19 +1525,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1473
1525
|
className = _ref.className,
|
|
1474
1526
|
_ref$as = _ref.as,
|
|
1475
1527
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1476
|
-
props = _objectWithoutPropertiesLoose
|
|
1528
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
1529
|
|
|
1478
1530
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1479
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1531
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1480
1532
|
ref: ref
|
|
1481
1533
|
}, props, {
|
|
1482
1534
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1483
1535
|
}));
|
|
1484
1536
|
});
|
|
1485
1537
|
Badge.displayName = 'Badge';
|
|
1486
|
-
Badge.defaultProps = defaultProps$
|
|
1538
|
+
Badge.defaultProps = defaultProps$A;
|
|
1487
1539
|
|
|
1488
|
-
var defaultProps$
|
|
1540
|
+
var defaultProps$z = {
|
|
1489
1541
|
active: false,
|
|
1490
1542
|
linkProps: {}
|
|
1491
1543
|
};
|
|
@@ -1502,26 +1554,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1502
1554
|
href = _ref.href,
|
|
1503
1555
|
title = _ref.title,
|
|
1504
1556
|
target = _ref.target,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose
|
|
1557
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
1558
|
|
|
1507
1559
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1508
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1560
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1509
1561
|
ref: ref
|
|
1510
1562
|
}, props, {
|
|
1511
1563
|
className: classnames(prefix, className, {
|
|
1512
1564
|
active: active
|
|
1513
1565
|
}),
|
|
1514
1566
|
"aria-current": active ? 'page' : undefined
|
|
1515
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends
|
|
1567
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1516
1568
|
href: href,
|
|
1517
1569
|
title: title,
|
|
1518
1570
|
target: target
|
|
1519
1571
|
}), children));
|
|
1520
1572
|
});
|
|
1521
1573
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1522
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1574
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1523
1575
|
|
|
1524
|
-
var defaultProps$
|
|
1576
|
+
var defaultProps$y = {
|
|
1525
1577
|
label: 'breadcrumb',
|
|
1526
1578
|
listProps: {}
|
|
1527
1579
|
};
|
|
@@ -1533,22 +1585,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1533
1585
|
label = _ref.label,
|
|
1534
1586
|
_ref$as = _ref.as,
|
|
1535
1587
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1536
|
-
props = _objectWithoutPropertiesLoose
|
|
1588
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
1589
|
|
|
1538
1590
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1539
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1591
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1540
1592
|
"aria-label": label,
|
|
1541
1593
|
className: className,
|
|
1542
1594
|
ref: ref
|
|
1543
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends
|
|
1595
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1544
1596
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1545
1597
|
}), children));
|
|
1546
1598
|
});
|
|
1547
1599
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1548
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1600
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1549
1601
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1550
1602
|
|
|
1551
|
-
var defaultProps$
|
|
1603
|
+
var defaultProps$x = {
|
|
1552
1604
|
variant: 'primary',
|
|
1553
1605
|
active: false,
|
|
1554
1606
|
disabled: false
|
|
@@ -1562,13 +1614,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1562
1614
|
block = _ref.block,
|
|
1563
1615
|
type = _ref.type,
|
|
1564
1616
|
as = _ref.as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose
|
|
1617
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
1618
|
|
|
1567
1619
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1568
1620
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1569
1621
|
|
|
1570
1622
|
if (props.href) {
|
|
1571
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends
|
|
1623
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1572
1624
|
as: as,
|
|
1573
1625
|
ref: ref,
|
|
1574
1626
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1586,14 +1638,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1586
1638
|
}
|
|
1587
1639
|
|
|
1588
1640
|
var Component = as || 'button';
|
|
1589
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1641
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1590
1642
|
className: classes
|
|
1591
1643
|
}));
|
|
1592
1644
|
});
|
|
1593
1645
|
Button.displayName = 'Button';
|
|
1594
|
-
Button.defaultProps = defaultProps$
|
|
1646
|
+
Button.defaultProps = defaultProps$x;
|
|
1595
1647
|
|
|
1596
|
-
var defaultProps$
|
|
1648
|
+
var defaultProps$w = {
|
|
1597
1649
|
vertical: false,
|
|
1598
1650
|
toggle: false,
|
|
1599
1651
|
role: 'group'
|
|
@@ -1606,40 +1658,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1606
1658
|
className = _ref.className,
|
|
1607
1659
|
_ref$as = _ref.as,
|
|
1608
1660
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1609
|
-
rest = _objectWithoutPropertiesLoose
|
|
1661
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
1662
|
|
|
1611
1663
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1612
1664
|
var baseClass = prefix;
|
|
1613
1665
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1614
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1666
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1615
1667
|
ref: ref,
|
|
1616
1668
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1617
1669
|
}));
|
|
1618
1670
|
});
|
|
1619
1671
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1620
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1672
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1621
1673
|
|
|
1622
|
-
var defaultProps$
|
|
1674
|
+
var defaultProps$v = {
|
|
1623
1675
|
role: 'toolbar'
|
|
1624
1676
|
};
|
|
1625
1677
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1626
1678
|
var bsPrefix = _ref.bsPrefix,
|
|
1627
1679
|
className = _ref.className,
|
|
1628
|
-
props = _objectWithoutPropertiesLoose
|
|
1680
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1629
1681
|
|
|
1630
1682
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1631
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
1683
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1632
1684
|
ref: ref,
|
|
1633
1685
|
className: classnames(className, prefix)
|
|
1634
1686
|
}));
|
|
1635
1687
|
});
|
|
1636
1688
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1637
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1689
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1638
1690
|
|
|
1639
1691
|
var context$1 = React__default.createContext(null);
|
|
1640
1692
|
context$1.displayName = 'CardContext';
|
|
1641
1693
|
|
|
1642
|
-
var defaultProps$
|
|
1694
|
+
var defaultProps$u = {
|
|
1643
1695
|
variant: null
|
|
1644
1696
|
};
|
|
1645
1697
|
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
|
|
@@ -1649,16 +1701,16 @@ function (_ref, ref) {
|
|
|
1649
1701
|
variant = _ref.variant,
|
|
1650
1702
|
_ref$as = _ref.as,
|
|
1651
1703
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1652
|
-
props = _objectWithoutPropertiesLoose
|
|
1704
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
1705
|
|
|
1654
1706
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1655
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1707
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1656
1708
|
ref: ref,
|
|
1657
1709
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1658
1710
|
}, props));
|
|
1659
1711
|
});
|
|
1660
1712
|
CardImg.displayName = 'CardImg';
|
|
1661
|
-
CardImg.defaultProps = defaultProps$
|
|
1713
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1662
1714
|
|
|
1663
1715
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1664
1716
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1678,7 +1730,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1678
1730
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1679
1731
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1680
1732
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1681
|
-
var defaultProps$
|
|
1733
|
+
var defaultProps$t = {
|
|
1682
1734
|
body: false
|
|
1683
1735
|
};
|
|
1684
1736
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1691,7 +1743,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1691
1743
|
children = _ref.children,
|
|
1692
1744
|
_ref$as = _ref.as,
|
|
1693
1745
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1694
|
-
props = _objectWithoutPropertiesLoose
|
|
1746
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
1747
|
|
|
1696
1748
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1697
1749
|
var cardContext = useMemo(function () {
|
|
@@ -1701,7 +1753,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1701
1753
|
}, [prefix]);
|
|
1702
1754
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1703
1755
|
value: cardContext
|
|
1704
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1756
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1705
1757
|
ref: ref
|
|
1706
1758
|
}, props, {
|
|
1707
1759
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1711,7 +1763,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1711
1763
|
React__default.createElement(CardBody, null, children) : children));
|
|
1712
1764
|
});
|
|
1713
1765
|
Card.displayName = 'Card';
|
|
1714
|
-
Card.defaultProps = defaultProps$
|
|
1766
|
+
Card.defaultProps = defaultProps$t;
|
|
1715
1767
|
Card.Img = CardImg;
|
|
1716
1768
|
Card.Title = CardTitle;
|
|
1717
1769
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1904,10 +1956,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1904
1956
|
bsPrefix = _ref.bsPrefix,
|
|
1905
1957
|
children = _ref.children,
|
|
1906
1958
|
className = _ref.className,
|
|
1907
|
-
props = _objectWithoutPropertiesLoose
|
|
1959
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
1960
|
|
|
1909
1961
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1910
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1962
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1911
1963
|
ref: ref
|
|
1912
1964
|
}, props, {
|
|
1913
1965
|
className: finalClassName
|
|
@@ -1946,7 +1998,7 @@ function forEach(children, func) {
|
|
|
1946
1998
|
}
|
|
1947
1999
|
|
|
1948
2000
|
var SWIPE_THRESHOLD = 40;
|
|
1949
|
-
var propTypes$
|
|
2001
|
+
var propTypes$9 = {
|
|
1950
2002
|
/**
|
|
1951
2003
|
* @default 'carousel'
|
|
1952
2004
|
*/
|
|
@@ -2048,7 +2100,7 @@ var propTypes$1 = {
|
|
|
2048
2100
|
*/
|
|
2049
2101
|
nextLabel: PropTypes.string
|
|
2050
2102
|
};
|
|
2051
|
-
var defaultProps$
|
|
2103
|
+
var defaultProps$s = {
|
|
2052
2104
|
slide: true,
|
|
2053
2105
|
fade: false,
|
|
2054
2106
|
controls: true,
|
|
@@ -2112,7 +2164,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2112
2164
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2113
2165
|
className = _useUncontrolled.className,
|
|
2114
2166
|
children = _useUncontrolled.children,
|
|
2115
|
-
props = _objectWithoutPropertiesLoose
|
|
2167
|
+
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"]);
|
|
2116
2168
|
|
|
2117
2169
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2118
2170
|
var nextDirectionRef = useRef(null);
|
|
@@ -2369,7 +2421,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2369
2421
|
};
|
|
2370
2422
|
});
|
|
2371
2423
|
}, [indicators, numChildren, onSelect]);
|
|
2372
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
2424
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2373
2425
|
ref: elementRef
|
|
2374
2426
|
}, props, {
|
|
2375
2427
|
onKeyDown: handleKeyDown,
|
|
@@ -2418,24 +2470,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2418
2470
|
|
|
2419
2471
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2420
2472
|
Carousel.displayName = 'Carousel';
|
|
2421
|
-
Carousel.propTypes = propTypes$
|
|
2422
|
-
Carousel.defaultProps = defaultProps$
|
|
2473
|
+
Carousel.propTypes = propTypes$9;
|
|
2474
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2423
2475
|
Carousel.Caption = CarouselCaption;
|
|
2424
2476
|
Carousel.Item = CarouselItem;
|
|
2425
2477
|
|
|
2426
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2478
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
2479
|
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
|
|
2428
2480
|
function (_ref, ref) {
|
|
2429
2481
|
var bsPrefix = _ref.bsPrefix,
|
|
2430
2482
|
className = _ref.className,
|
|
2431
2483
|
_ref$as = _ref.as,
|
|
2432
2484
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2433
|
-
props = _objectWithoutPropertiesLoose
|
|
2485
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
2486
|
|
|
2435
2487
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2436
2488
|
var spans = [];
|
|
2437
2489
|
var classes = [];
|
|
2438
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2490
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2439
2491
|
var propValue = props[brkPoint];
|
|
2440
2492
|
delete props[brkPoint];
|
|
2441
2493
|
var span;
|
|
@@ -2461,7 +2513,7 @@ function (_ref, ref) {
|
|
|
2461
2513
|
spans.push(prefix); // plain 'col'
|
|
2462
2514
|
}
|
|
2463
2515
|
|
|
2464
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
2516
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2465
2517
|
ref: ref,
|
|
2466
2518
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2467
2519
|
}));
|
|
@@ -2469,6 +2521,13 @@ function (_ref, ref) {
|
|
|
2469
2521
|
Col.displayName = 'Col';
|
|
2470
2522
|
|
|
2471
2523
|
var matchesImpl;
|
|
2524
|
+
/**
|
|
2525
|
+
* Checks if a given element matches a selector.
|
|
2526
|
+
*
|
|
2527
|
+
* @param node the element
|
|
2528
|
+
* @param selector the selector
|
|
2529
|
+
*/
|
|
2530
|
+
|
|
2472
2531
|
function matches(node, selector) {
|
|
2473
2532
|
if (!matchesImpl) {
|
|
2474
2533
|
var body = document.body;
|
|
@@ -2483,6 +2542,13 @@ function matches(node, selector) {
|
|
|
2483
2542
|
}
|
|
2484
2543
|
|
|
2485
2544
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2545
|
+
/**
|
|
2546
|
+
* Runs `querySelectorAll` on a given element.
|
|
2547
|
+
*
|
|
2548
|
+
* @param element the element
|
|
2549
|
+
* @param selector the selector
|
|
2550
|
+
*/
|
|
2551
|
+
|
|
2486
2552
|
function qsa(element, selector) {
|
|
2487
2553
|
return toArray(element.querySelectorAll(selector));
|
|
2488
2554
|
}
|
|
@@ -2572,39 +2638,6 @@ function useForceUpdate() {
|
|
|
2572
2638
|
|
|
2573
2639
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2574
2640
|
|
|
2575
|
-
function _extends() {
|
|
2576
|
-
_extends = Object.assign || function (target) {
|
|
2577
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
-
var source = arguments[i];
|
|
2579
|
-
|
|
2580
|
-
for (var key in source) {
|
|
2581
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
-
target[key] = source[key];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
return target;
|
|
2588
|
-
};
|
|
2589
|
-
|
|
2590
|
-
return _extends.apply(this, arguments);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
-
if (source == null) return {};
|
|
2595
|
-
var target = {};
|
|
2596
|
-
var sourceKeys = Object.keys(source);
|
|
2597
|
-
var key, i;
|
|
2598
|
-
|
|
2599
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
-
key = sourceKeys[i];
|
|
2601
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
-
target[key] = source[key];
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
return target;
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
2641
|
function useSafeState(state) {
|
|
2609
2642
|
var isMounted = useMounted();
|
|
2610
2643
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2649,21 +2682,50 @@ function getBasePlacement(placement) {
|
|
|
2649
2682
|
return placement.split('-')[0];
|
|
2650
2683
|
}
|
|
2651
2684
|
|
|
2652
|
-
|
|
2685
|
+
function getBoundingClientRect(element) {
|
|
2686
|
+
var rect = element.getBoundingClientRect();
|
|
2687
|
+
return {
|
|
2688
|
+
width: rect.width,
|
|
2689
|
+
height: rect.height,
|
|
2690
|
+
top: rect.top,
|
|
2691
|
+
right: rect.right,
|
|
2692
|
+
bottom: rect.bottom,
|
|
2693
|
+
left: rect.left,
|
|
2694
|
+
x: rect.left,
|
|
2695
|
+
y: rect.top
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2653
2699
|
// means it doesn't take into account transforms.
|
|
2700
|
+
|
|
2654
2701
|
function getLayoutRect(element) {
|
|
2702
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2703
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2704
|
+
|
|
2705
|
+
var width = element.offsetWidth;
|
|
2706
|
+
var height = element.offsetHeight;
|
|
2707
|
+
|
|
2708
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2709
|
+
width = clientRect.width;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2712
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2713
|
+
height = clientRect.height;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2655
2716
|
return {
|
|
2656
2717
|
x: element.offsetLeft,
|
|
2657
2718
|
y: element.offsetTop,
|
|
2658
|
-
width:
|
|
2659
|
-
height:
|
|
2719
|
+
width: width,
|
|
2720
|
+
height: height
|
|
2660
2721
|
};
|
|
2661
2722
|
}
|
|
2662
2723
|
|
|
2663
|
-
/*:: import type { Window } from '../types'; */
|
|
2664
|
-
|
|
2665
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2666
2724
|
function getWindow(node) {
|
|
2725
|
+
if (node == null) {
|
|
2726
|
+
return window;
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2667
2729
|
if (node.toString() !== '[object Window]') {
|
|
2668
2730
|
var ownerDocument = node.ownerDocument;
|
|
2669
2731
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2672,31 +2734,27 @@ function getWindow(node) {
|
|
|
2672
2734
|
return node;
|
|
2673
2735
|
}
|
|
2674
2736
|
|
|
2675
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2676
|
-
Element); */
|
|
2677
|
-
|
|
2678
2737
|
function isElement(node) {
|
|
2679
2738
|
var OwnElement = getWindow(node).Element;
|
|
2680
2739
|
return node instanceof OwnElement || node instanceof Element;
|
|
2681
2740
|
}
|
|
2682
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2683
|
-
HTMLElement); */
|
|
2684
|
-
|
|
2685
2741
|
|
|
2686
2742
|
function isHTMLElement(node) {
|
|
2687
2743
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2688
2744
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2689
2745
|
}
|
|
2690
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2691
|
-
ShadowRoot); */
|
|
2692
|
-
|
|
2693
2746
|
|
|
2694
2747
|
function isShadowRoot(node) {
|
|
2748
|
+
// IE 11 has no ShadowRoot
|
|
2749
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2750
|
+
return false;
|
|
2751
|
+
}
|
|
2752
|
+
|
|
2695
2753
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2696
2754
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2697
2755
|
}
|
|
2698
2756
|
|
|
2699
|
-
function contains(parent, child) {
|
|
2757
|
+
function contains$1(parent, child) {
|
|
2700
2758
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2701
2759
|
|
|
2702
2760
|
if (parent.contains(child)) {
|
|
@@ -2723,7 +2781,7 @@ function getNodeName(element) {
|
|
|
2723
2781
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2724
2782
|
}
|
|
2725
2783
|
|
|
2726
|
-
function getComputedStyle$
|
|
2784
|
+
function getComputedStyle$1(element) {
|
|
2727
2785
|
return getWindow(element).getComputedStyle(element);
|
|
2728
2786
|
}
|
|
2729
2787
|
|
|
@@ -2746,9 +2804,8 @@ function getParentNode(element) {
|
|
|
2746
2804
|
// $FlowFixMe[incompatible-return]
|
|
2747
2805
|
// $FlowFixMe[prop-missing]
|
|
2748
2806
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2749
|
-
element.parentNode || // DOM Element detected
|
|
2750
|
-
|
|
2751
|
-
element.host || // ShadowRoot detected
|
|
2807
|
+
element.parentNode || ( // DOM Element detected
|
|
2808
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2752
2809
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2753
2810
|
getDocumentElement(element) // fallback
|
|
2754
2811
|
|
|
@@ -2757,33 +2814,36 @@ function getParentNode(element) {
|
|
|
2757
2814
|
|
|
2758
2815
|
function getTrueOffsetParent(element) {
|
|
2759
2816
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2760
|
-
getComputedStyle$
|
|
2817
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2761
2818
|
return null;
|
|
2762
2819
|
}
|
|
2763
2820
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
if (offsetParent) {
|
|
2767
|
-
var html = getDocumentElement(offsetParent);
|
|
2768
|
-
|
|
2769
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2770
|
-
return html;
|
|
2771
|
-
}
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
return offsetParent;
|
|
2821
|
+
return element.offsetParent;
|
|
2775
2822
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2776
2823
|
// return the containing block
|
|
2777
2824
|
|
|
2778
2825
|
|
|
2779
2826
|
function getContainingBlock(element) {
|
|
2827
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2828
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2829
|
+
|
|
2830
|
+
if (isIE && isHTMLElement(element)) {
|
|
2831
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2832
|
+
var elementCss = getComputedStyle$1(element);
|
|
2833
|
+
|
|
2834
|
+
if (elementCss.position === 'fixed') {
|
|
2835
|
+
return null;
|
|
2836
|
+
}
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2780
2839
|
var currentNode = getParentNode(element);
|
|
2781
2840
|
|
|
2782
2841
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2783
|
-
var css = getComputedStyle$
|
|
2842
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2784
2843
|
// create a containing block.
|
|
2844
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2785
2845
|
|
|
2786
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2846
|
+
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') {
|
|
2787
2847
|
return currentNode;
|
|
2788
2848
|
} else {
|
|
2789
2849
|
currentNode = currentNode.parentNode;
|
|
@@ -2799,11 +2859,11 @@ function getOffsetParent(element) {
|
|
|
2799
2859
|
var window = getWindow(element);
|
|
2800
2860
|
var offsetParent = getTrueOffsetParent(element);
|
|
2801
2861
|
|
|
2802
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2862
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2803
2863
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2804
2864
|
}
|
|
2805
2865
|
|
|
2806
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2866
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2807
2867
|
return window;
|
|
2808
2868
|
}
|
|
2809
2869
|
|
|
@@ -2814,8 +2874,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2814
2874
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2815
2875
|
}
|
|
2816
2876
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2877
|
+
var max = Math.max;
|
|
2878
|
+
var min = Math.min;
|
|
2879
|
+
var round = Math.round;
|
|
2880
|
+
|
|
2881
|
+
function within(min$1, value, max$1) {
|
|
2882
|
+
return max(min$1, min(value, max$1));
|
|
2819
2883
|
}
|
|
2820
2884
|
|
|
2821
2885
|
function getFreshSideObject() {
|
|
@@ -2828,7 +2892,7 @@ function getFreshSideObject() {
|
|
|
2828
2892
|
}
|
|
2829
2893
|
|
|
2830
2894
|
function mergePaddingObject(paddingObject) {
|
|
2831
|
-
return Object.assign(
|
|
2895
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2832
2896
|
}
|
|
2833
2897
|
|
|
2834
2898
|
function expandToHashMap(value, keys) {
|
|
@@ -2838,11 +2902,19 @@ function expandToHashMap(value, keys) {
|
|
|
2838
2902
|
}, {});
|
|
2839
2903
|
}
|
|
2840
2904
|
|
|
2905
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2906
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2907
|
+
placement: state.placement
|
|
2908
|
+
})) : padding;
|
|
2909
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2910
|
+
};
|
|
2911
|
+
|
|
2841
2912
|
function arrow(_ref) {
|
|
2842
2913
|
var _state$modifiersData$;
|
|
2843
2914
|
|
|
2844
2915
|
var state = _ref.state,
|
|
2845
|
-
name = _ref.name
|
|
2916
|
+
name = _ref.name,
|
|
2917
|
+
options = _ref.options;
|
|
2846
2918
|
var arrowElement = state.elements.arrow;
|
|
2847
2919
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2848
2920
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2854,7 +2926,7 @@ function arrow(_ref) {
|
|
|
2854
2926
|
return;
|
|
2855
2927
|
}
|
|
2856
2928
|
|
|
2857
|
-
var paddingObject =
|
|
2929
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2858
2930
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2859
2931
|
var minProp = axis === 'y' ? top : left;
|
|
2860
2932
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2874,14 +2946,11 @@ function arrow(_ref) {
|
|
|
2874
2946
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2875
2947
|
}
|
|
2876
2948
|
|
|
2877
|
-
function effect(_ref2) {
|
|
2949
|
+
function effect$1(_ref2) {
|
|
2878
2950
|
var state = _ref2.state,
|
|
2879
|
-
options = _ref2.options
|
|
2880
|
-
name = _ref2.name;
|
|
2951
|
+
options = _ref2.options;
|
|
2881
2952
|
var _options$element = options.element,
|
|
2882
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2883
|
-
_options$padding = options.padding,
|
|
2884
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2953
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2885
2954
|
|
|
2886
2955
|
if (arrowElement == null) {
|
|
2887
2956
|
return;
|
|
@@ -2902,7 +2971,7 @@ function effect(_ref2) {
|
|
|
2902
2971
|
}
|
|
2903
2972
|
}
|
|
2904
2973
|
|
|
2905
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2974
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2906
2975
|
if (process.env.NODE_ENV !== "production") {
|
|
2907
2976
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2908
2977
|
}
|
|
@@ -2911,9 +2980,6 @@ function effect(_ref2) {
|
|
|
2911
2980
|
}
|
|
2912
2981
|
|
|
2913
2982
|
state.elements.arrow = arrowElement;
|
|
2914
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2915
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2916
|
-
};
|
|
2917
2983
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2918
2984
|
|
|
2919
2985
|
|
|
@@ -2922,7 +2988,7 @@ var arrow$1 = {
|
|
|
2922
2988
|
enabled: true,
|
|
2923
2989
|
phase: 'main',
|
|
2924
2990
|
fn: arrow,
|
|
2925
|
-
effect: effect,
|
|
2991
|
+
effect: effect$1,
|
|
2926
2992
|
requires: ['popperOffsets'],
|
|
2927
2993
|
requiresIfExists: ['preventOverflow']
|
|
2928
2994
|
};
|
|
@@ -2942,8 +3008,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2942
3008
|
var win = window;
|
|
2943
3009
|
var dpr = win.devicePixelRatio || 1;
|
|
2944
3010
|
return {
|
|
2945
|
-
x:
|
|
2946
|
-
y:
|
|
3011
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
3012
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2947
3013
|
};
|
|
2948
3014
|
}
|
|
2949
3015
|
|
|
@@ -2959,7 +3025,7 @@ function mapToStyles(_ref2) {
|
|
|
2959
3025
|
adaptive = _ref2.adaptive,
|
|
2960
3026
|
roundOffsets = _ref2.roundOffsets;
|
|
2961
3027
|
|
|
2962
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3028
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2963
3029
|
_ref3$x = _ref3.x,
|
|
2964
3030
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2965
3031
|
_ref3$y = _ref3.y,
|
|
@@ -2973,23 +3039,32 @@ function mapToStyles(_ref2) {
|
|
|
2973
3039
|
|
|
2974
3040
|
if (adaptive) {
|
|
2975
3041
|
var offsetParent = getOffsetParent(popper);
|
|
3042
|
+
var heightProp = 'clientHeight';
|
|
3043
|
+
var widthProp = 'clientWidth';
|
|
2976
3044
|
|
|
2977
3045
|
if (offsetParent === getWindow(popper)) {
|
|
2978
3046
|
offsetParent = getDocumentElement(popper);
|
|
3047
|
+
|
|
3048
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3049
|
+
heightProp = 'scrollHeight';
|
|
3050
|
+
widthProp = 'scrollWidth';
|
|
3051
|
+
}
|
|
2979
3052
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2980
3053
|
|
|
2981
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2982
3054
|
|
|
3055
|
+
offsetParent = offsetParent;
|
|
2983
3056
|
|
|
2984
3057
|
if (placement === top) {
|
|
2985
|
-
sideY = bottom;
|
|
2986
|
-
|
|
3058
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3059
|
+
|
|
3060
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2987
3061
|
y *= gpuAcceleration ? 1 : -1;
|
|
2988
3062
|
}
|
|
2989
3063
|
|
|
2990
3064
|
if (placement === left) {
|
|
2991
|
-
sideX = right;
|
|
2992
|
-
|
|
3065
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3066
|
+
|
|
3067
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2993
3068
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
3069
|
}
|
|
2995
3070
|
}
|
|
@@ -3001,10 +3076,10 @@ function mapToStyles(_ref2) {
|
|
|
3001
3076
|
if (gpuAcceleration) {
|
|
3002
3077
|
var _Object$assign;
|
|
3003
3078
|
|
|
3004
|
-
return Object.assign(
|
|
3079
|
+
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));
|
|
3005
3080
|
}
|
|
3006
3081
|
|
|
3007
|
-
return Object.assign(
|
|
3082
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3008
3083
|
}
|
|
3009
3084
|
|
|
3010
3085
|
function computeStyles(_ref4) {
|
|
@@ -3018,7 +3093,7 @@ function computeStyles(_ref4) {
|
|
|
3018
3093
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3019
3094
|
|
|
3020
3095
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
|
-
var transitionProperty = getComputedStyle$
|
|
3096
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3022
3097
|
|
|
3023
3098
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3024
3099
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3035,7 +3110,7 @@ function computeStyles(_ref4) {
|
|
|
3035
3110
|
};
|
|
3036
3111
|
|
|
3037
3112
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign(
|
|
3113
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3039
3114
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
3115
|
position: state.options.strategy,
|
|
3041
3116
|
adaptive: adaptive,
|
|
@@ -3044,7 +3119,7 @@ function computeStyles(_ref4) {
|
|
|
3044
3119
|
}
|
|
3045
3120
|
|
|
3046
3121
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign(
|
|
3122
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3048
3123
|
offsets: state.modifiersData.arrow,
|
|
3049
3124
|
position: 'absolute',
|
|
3050
3125
|
adaptive: false,
|
|
@@ -3052,7 +3127,7 @@ function computeStyles(_ref4) {
|
|
|
3052
3127
|
})));
|
|
3053
3128
|
}
|
|
3054
3129
|
|
|
3055
|
-
state.attributes.popper = Object.assign(
|
|
3130
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3056
3131
|
'data-popper-placement': state.placement
|
|
3057
3132
|
});
|
|
3058
3133
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3070,7 +3145,7 @@ var passive = {
|
|
|
3070
3145
|
passive: true
|
|
3071
3146
|
};
|
|
3072
3147
|
|
|
3073
|
-
function effect
|
|
3148
|
+
function effect(_ref) {
|
|
3074
3149
|
var state = _ref.state,
|
|
3075
3150
|
instance = _ref.instance,
|
|
3076
3151
|
options = _ref.options;
|
|
@@ -3110,11 +3185,11 @@ var eventListeners = {
|
|
|
3110
3185
|
enabled: true,
|
|
3111
3186
|
phase: 'write',
|
|
3112
3187
|
fn: function fn() {},
|
|
3113
|
-
effect: effect
|
|
3188
|
+
effect: effect,
|
|
3114
3189
|
data: {}
|
|
3115
3190
|
};
|
|
3116
3191
|
|
|
3117
|
-
var hash = {
|
|
3192
|
+
var hash$1 = {
|
|
3118
3193
|
left: 'right',
|
|
3119
3194
|
right: 'left',
|
|
3120
3195
|
bottom: 'top',
|
|
@@ -3122,34 +3197,20 @@ var hash = {
|
|
|
3122
3197
|
};
|
|
3123
3198
|
function getOppositePlacement(placement) {
|
|
3124
3199
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3125
|
-
return hash[matched];
|
|
3200
|
+
return hash$1[matched];
|
|
3126
3201
|
});
|
|
3127
3202
|
}
|
|
3128
3203
|
|
|
3129
|
-
var hash
|
|
3204
|
+
var hash = {
|
|
3130
3205
|
start: 'end',
|
|
3131
3206
|
end: 'start'
|
|
3132
3207
|
};
|
|
3133
3208
|
function getOppositeVariationPlacement(placement) {
|
|
3134
3209
|
return placement.replace(/start|end/g, function (matched) {
|
|
3135
|
-
return hash
|
|
3210
|
+
return hash[matched];
|
|
3136
3211
|
});
|
|
3137
3212
|
}
|
|
3138
3213
|
|
|
3139
|
-
function getBoundingClientRect(element) {
|
|
3140
|
-
var rect = element.getBoundingClientRect();
|
|
3141
|
-
return {
|
|
3142
|
-
width: rect.width,
|
|
3143
|
-
height: rect.height,
|
|
3144
|
-
top: rect.top,
|
|
3145
|
-
right: rect.right,
|
|
3146
|
-
bottom: rect.bottom,
|
|
3147
|
-
left: rect.left,
|
|
3148
|
-
x: rect.left,
|
|
3149
|
-
y: rect.top
|
|
3150
|
-
};
|
|
3151
|
-
}
|
|
3152
|
-
|
|
3153
3214
|
function getWindowScroll(node) {
|
|
3154
3215
|
var win = getWindow(node);
|
|
3155
3216
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3212,16 +3273,18 @@ function getViewportRect(element) {
|
|
|
3212
3273
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3213
3274
|
|
|
3214
3275
|
function getDocumentRect(element) {
|
|
3276
|
+
var _element$ownerDocumen;
|
|
3277
|
+
|
|
3215
3278
|
var html = getDocumentElement(element);
|
|
3216
3279
|
var winScroll = getWindowScroll(element);
|
|
3217
|
-
var body = element.ownerDocument.body;
|
|
3218
|
-
var width =
|
|
3219
|
-
var height =
|
|
3280
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3281
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3282
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3220
3283
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3221
3284
|
var y = -winScroll.scrollTop;
|
|
3222
3285
|
|
|
3223
|
-
if (getComputedStyle$
|
|
3224
|
-
x +=
|
|
3286
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3287
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3225
3288
|
}
|
|
3226
3289
|
|
|
3227
3290
|
return {
|
|
@@ -3234,7 +3297,7 @@ function getDocumentRect(element) {
|
|
|
3234
3297
|
|
|
3235
3298
|
function isScrollParent(element) {
|
|
3236
3299
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3237
|
-
var _getComputedStyle = getComputedStyle$
|
|
3300
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3238
3301
|
overflow = _getComputedStyle.overflow,
|
|
3239
3302
|
overflowX = _getComputedStyle.overflowX,
|
|
3240
3303
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3263,12 +3326,14 @@ reference element's position.
|
|
|
3263
3326
|
*/
|
|
3264
3327
|
|
|
3265
3328
|
function listScrollParents(element, list) {
|
|
3329
|
+
var _element$ownerDocumen;
|
|
3330
|
+
|
|
3266
3331
|
if (list === void 0) {
|
|
3267
3332
|
list = [];
|
|
3268
3333
|
}
|
|
3269
3334
|
|
|
3270
3335
|
var scrollParent = getScrollParent(element);
|
|
3271
|
-
var isBody =
|
|
3336
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3272
3337
|
var win = getWindow(scrollParent);
|
|
3273
3338
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3274
3339
|
var updatedList = list.concat(target);
|
|
@@ -3277,7 +3342,7 @@ function listScrollParents(element, list) {
|
|
|
3277
3342
|
}
|
|
3278
3343
|
|
|
3279
3344
|
function rectToClientRect(rect) {
|
|
3280
|
-
return Object.assign(
|
|
3345
|
+
return Object.assign({}, rect, {
|
|
3281
3346
|
left: rect.x,
|
|
3282
3347
|
top: rect.y,
|
|
3283
3348
|
right: rect.x + rect.width,
|
|
@@ -3307,7 +3372,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3307
3372
|
|
|
3308
3373
|
function getClippingParents(element) {
|
|
3309
3374
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3310
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3375
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3311
3376
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3312
3377
|
|
|
3313
3378
|
if (!isElement(clipperElement)) {
|
|
@@ -3316,7 +3381,7 @@ function getClippingParents(element) {
|
|
|
3316
3381
|
|
|
3317
3382
|
|
|
3318
3383
|
return clippingParents.filter(function (clippingParent) {
|
|
3319
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3384
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3320
3385
|
});
|
|
3321
3386
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3322
3387
|
// clipping parents
|
|
@@ -3328,10 +3393,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3328
3393
|
var firstClippingParent = clippingParents[0];
|
|
3329
3394
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3330
3395
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3331
|
-
accRect.top =
|
|
3332
|
-
accRect.right =
|
|
3333
|
-
accRect.bottom =
|
|
3334
|
-
accRect.left =
|
|
3396
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3397
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3398
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3399
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3335
3400
|
return accRect;
|
|
3336
3401
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3337
3402
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3441,7 +3506,7 @@ function detectOverflow(state, options) {
|
|
|
3441
3506
|
strategy: 'absolute',
|
|
3442
3507
|
placement: placement
|
|
3443
3508
|
});
|
|
3444
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3509
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3445
3510
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3446
3511
|
// 0 or negative = within the clipping rect
|
|
3447
3512
|
|
|
@@ -3465,9 +3530,6 @@ function detectOverflow(state, options) {
|
|
|
3465
3530
|
return overflowOffsets;
|
|
3466
3531
|
}
|
|
3467
3532
|
|
|
3468
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3469
|
-
|
|
3470
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3471
3533
|
function computeAutoPlacement(state, options) {
|
|
3472
3534
|
if (options === void 0) {
|
|
3473
3535
|
options = {};
|
|
@@ -3696,7 +3758,7 @@ function hide(_ref) {
|
|
|
3696
3758
|
isReferenceHidden: isReferenceHidden,
|
|
3697
3759
|
hasPopperEscaped: hasPopperEscaped
|
|
3698
3760
|
};
|
|
3699
|
-
state.attributes.popper = Object.assign(
|
|
3761
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3700
3762
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3701
3763
|
'data-popper-escaped': hasPopperEscaped
|
|
3702
3764
|
});
|
|
@@ -3715,7 +3777,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3715
3777
|
var basePlacement = getBasePlacement(placement);
|
|
3716
3778
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3717
3779
|
|
|
3718
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3780
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3719
3781
|
placement: placement
|
|
3720
3782
|
})) : offset,
|
|
3721
3783
|
skidding = _ref[0],
|
|
@@ -3821,7 +3883,7 @@ function preventOverflow(_ref) {
|
|
|
3821
3883
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3822
3884
|
var referenceRect = state.rects.reference;
|
|
3823
3885
|
var popperRect = state.rects.popper;
|
|
3824
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3886
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3825
3887
|
placement: state.placement
|
|
3826
3888
|
})) : tetherOffset;
|
|
3827
3889
|
var data = {
|
|
@@ -3833,13 +3895,13 @@ function preventOverflow(_ref) {
|
|
|
3833
3895
|
return;
|
|
3834
3896
|
}
|
|
3835
3897
|
|
|
3836
|
-
if (checkMainAxis) {
|
|
3898
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3837
3899
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3838
3900
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3839
3901
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3840
3902
|
var offset = popperOffsets[mainAxis];
|
|
3841
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3842
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3903
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3904
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3843
3905
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3844
3906
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3845
3907
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3866,26 +3928,29 @@ function preventOverflow(_ref) {
|
|
|
3866
3928
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3867
3929
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3868
3930
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3869
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3870
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
-
}
|
|
3873
3931
|
|
|
3874
|
-
|
|
3875
|
-
|
|
3932
|
+
if (checkMainAxis) {
|
|
3933
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3934
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3935
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3936
|
+
}
|
|
3876
3937
|
|
|
3877
|
-
|
|
3938
|
+
if (checkAltAxis) {
|
|
3939
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3878
3940
|
|
|
3879
|
-
|
|
3941
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3880
3942
|
|
|
3881
|
-
|
|
3943
|
+
var _offset = popperOffsets[altAxis];
|
|
3882
3944
|
|
|
3883
|
-
|
|
3945
|
+
var _min = _offset + overflow[_mainSide];
|
|
3884
3946
|
|
|
3885
|
-
|
|
3947
|
+
var _max = _offset - overflow[_altSide];
|
|
3886
3948
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3949
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3950
|
+
|
|
3951
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3952
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3953
|
+
}
|
|
3889
3954
|
}
|
|
3890
3955
|
|
|
3891
3956
|
state.modifiersData[name] = data;
|
|
@@ -4116,9 +4181,9 @@ function uniqueBy(arr, fn) {
|
|
|
4116
4181
|
function mergeByName(modifiers) {
|
|
4117
4182
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4118
4183
|
var existing = merged[current.name];
|
|
4119
|
-
merged[current.name] = existing ? Object.assign(
|
|
4120
|
-
options: Object.assign(
|
|
4121
|
-
data: Object.assign(
|
|
4184
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4185
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4186
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4122
4187
|
}) : current;
|
|
4123
4188
|
return merged;
|
|
4124
4189
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4164,7 +4229,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4164
4229
|
var state = {
|
|
4165
4230
|
placement: 'bottom',
|
|
4166
4231
|
orderedModifiers: [],
|
|
4167
|
-
options: Object.assign(
|
|
4232
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4168
4233
|
modifiersData: {},
|
|
4169
4234
|
elements: {
|
|
4170
4235
|
reference: reference,
|
|
@@ -4179,7 +4244,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4179
4244
|
state: state,
|
|
4180
4245
|
setOptions: function setOptions(options) {
|
|
4181
4246
|
cleanupModifierEffects();
|
|
4182
|
-
state.options = Object.assign(
|
|
4247
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4183
4248
|
state.scrollParents = {
|
|
4184
4249
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4185
4250
|
popper: listScrollParents(popper)
|
|
@@ -4211,7 +4276,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4211
4276
|
}
|
|
4212
4277
|
}
|
|
4213
4278
|
|
|
4214
|
-
var _getComputedStyle = getComputedStyle$
|
|
4279
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4215
4280
|
marginTop = _getComputedStyle.marginTop,
|
|
4216
4281
|
marginRight = _getComputedStyle.marginRight,
|
|
4217
4282
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4549,9 +4614,16 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4549
4614
|
}
|
|
4550
4615
|
|
|
4551
4616
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
|
|
4617
|
+
|
|
4618
|
+
/**
|
|
4619
|
+
* Checks if an element contains another given element.
|
|
4620
|
+
*
|
|
4621
|
+
* @param context the context element
|
|
4622
|
+
* @param node the element to check
|
|
4623
|
+
*/
|
|
4624
|
+
function contains(context, node) {
|
|
4625
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4626
|
+
// so we need to check on context instead of a document root element.
|
|
4555
4627
|
if (context.contains) return context.contains(node);
|
|
4556
4628
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4557
4629
|
}
|
|
@@ -4625,13 +4697,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4625
4697
|
return componentOrElement != null ? componentOrElement : null;
|
|
4626
4698
|
}
|
|
4627
4699
|
|
|
4628
|
-
var ownerDocument
|
|
4629
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4700
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4701
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4630
4702
|
});
|
|
4631
4703
|
|
|
4632
4704
|
var escapeKeyCode = 27;
|
|
4633
4705
|
|
|
4634
|
-
var noop$
|
|
4706
|
+
var noop$4 = function noop() {};
|
|
4635
4707
|
|
|
4636
4708
|
function isLeftClickEvent(event) {
|
|
4637
4709
|
return event.button === 0;
|
|
@@ -4664,11 +4736,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4664
4736
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4665
4737
|
|
|
4666
4738
|
var preventMouseRootCloseRef = useRef(false);
|
|
4667
|
-
var onClose = onRootClose || noop$
|
|
4739
|
+
var onClose = onRootClose || noop$4;
|
|
4668
4740
|
var handleMouseCapture = useCallback(function (e) {
|
|
4669
4741
|
var currentTarget = getRefTarget(ref);
|
|
4670
4742
|
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');
|
|
4671
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4743
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4672
4744
|
}, [ref]);
|
|
4673
4745
|
var handleMouse = useEventCallback(function (e) {
|
|
4674
4746
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4685,7 +4757,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4685
4757
|
// https://github.com/facebook/react/issues/20074
|
|
4686
4758
|
|
|
4687
4759
|
var currentEvent = window.event;
|
|
4688
|
-
var doc = ownerDocument
|
|
4760
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4689
4761
|
// avoid false positives in the contains() check below if the target DOM
|
|
4690
4762
|
// element is removed in the React mouse callback.
|
|
4691
4763
|
|
|
@@ -4712,7 +4784,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4712
4784
|
|
|
4713
4785
|
if ('ontouchstart' in doc.documentElement) {
|
|
4714
4786
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4715
|
-
return listen(el, 'mousemove', noop$
|
|
4787
|
+
return listen(el, 'mousemove', noop$4);
|
|
4716
4788
|
});
|
|
4717
4789
|
}
|
|
4718
4790
|
|
|
@@ -4794,7 +4866,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4794
4866
|
});
|
|
4795
4867
|
}
|
|
4796
4868
|
|
|
4797
|
-
var noop$
|
|
4869
|
+
var noop$3 = function noop() {};
|
|
4798
4870
|
/**
|
|
4799
4871
|
* @memberOf Dropdown
|
|
4800
4872
|
* @param {object} options
|
|
@@ -4862,7 +4934,7 @@ function useDropdownMenu(options) {
|
|
|
4862
4934
|
|
|
4863
4935
|
var menu;
|
|
4864
4936
|
var menuProps = {
|
|
4865
|
-
ref: setMenu || noop$
|
|
4937
|
+
ref: setMenu || noop$3,
|
|
4866
4938
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4867
4939
|
};
|
|
4868
4940
|
var childArgs = {
|
|
@@ -4895,7 +4967,7 @@ function useDropdownMenu(options) {
|
|
|
4895
4967
|
});
|
|
4896
4968
|
return menu;
|
|
4897
4969
|
}
|
|
4898
|
-
var propTypes$
|
|
4970
|
+
var propTypes$8 = {
|
|
4899
4971
|
/**
|
|
4900
4972
|
* A render prop that returns a Menu element. The `props`
|
|
4901
4973
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4952,7 +5024,7 @@ var propTypes$2 = {
|
|
|
4952
5024
|
*/
|
|
4953
5025
|
rootCloseEvent: PropTypes.string
|
|
4954
5026
|
};
|
|
4955
|
-
var defaultProps$
|
|
5027
|
+
var defaultProps$r = {
|
|
4956
5028
|
usePopper: true
|
|
4957
5029
|
};
|
|
4958
5030
|
|
|
@@ -4962,7 +5034,7 @@ var defaultProps$d = {
|
|
|
4962
5034
|
* @displayName DropdownMenu
|
|
4963
5035
|
* @memberOf Dropdown
|
|
4964
5036
|
*/
|
|
4965
|
-
function DropdownMenu(_ref2) {
|
|
5037
|
+
function DropdownMenu$1(_ref2) {
|
|
4966
5038
|
var children = _ref2.children,
|
|
4967
5039
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4968
5040
|
|
|
@@ -4970,11 +5042,11 @@ function DropdownMenu(_ref2) {
|
|
|
4970
5042
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4971
5043
|
}
|
|
4972
5044
|
|
|
4973
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4974
|
-
DropdownMenu.propTypes = propTypes$
|
|
4975
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5045
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5046
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5047
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4976
5048
|
|
|
4977
|
-
var noop$
|
|
5049
|
+
var noop$2 = function noop() {};
|
|
4978
5050
|
/**
|
|
4979
5051
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4980
5052
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4988,11 +5060,11 @@ function useDropdownToggle() {
|
|
|
4988
5060
|
_ref$show = _ref.show,
|
|
4989
5061
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4990
5062
|
_ref$toggle = _ref.toggle,
|
|
4991
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5063
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4992
5064
|
setToggle = _ref.setToggle;
|
|
4993
5065
|
|
|
4994
5066
|
return [{
|
|
4995
|
-
ref: setToggle || noop$
|
|
5067
|
+
ref: setToggle || noop$2,
|
|
4996
5068
|
'aria-haspopup': true,
|
|
4997
5069
|
'aria-expanded': !!show
|
|
4998
5070
|
}, {
|
|
@@ -5000,7 +5072,7 @@ function useDropdownToggle() {
|
|
|
5000
5072
|
toggle: toggle
|
|
5001
5073
|
}];
|
|
5002
5074
|
}
|
|
5003
|
-
var propTypes$
|
|
5075
|
+
var propTypes$7 = {
|
|
5004
5076
|
/**
|
|
5005
5077
|
* A render prop that returns a Toggle element. The `props`
|
|
5006
5078
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5025,7 +5097,7 @@ var propTypes$3 = {
|
|
|
5025
5097
|
* @displayName DropdownToggle
|
|
5026
5098
|
* @memberOf Dropdown
|
|
5027
5099
|
*/
|
|
5028
|
-
function DropdownToggle(_ref2) {
|
|
5100
|
+
function DropdownToggle$1(_ref2) {
|
|
5029
5101
|
var children = _ref2.children;
|
|
5030
5102
|
|
|
5031
5103
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5041,10 +5113,10 @@ function DropdownToggle(_ref2) {
|
|
|
5041
5113
|
}));
|
|
5042
5114
|
}
|
|
5043
5115
|
|
|
5044
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5045
|
-
DropdownToggle.propTypes = propTypes$
|
|
5116
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5117
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5046
5118
|
|
|
5047
|
-
var propTypes$
|
|
5119
|
+
var propTypes$6 = {
|
|
5048
5120
|
/**
|
|
5049
5121
|
* A render prop that returns the root dropdown element. The `props`
|
|
5050
5122
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5116,7 +5188,7 @@ var propTypes$4 = {
|
|
|
5116
5188
|
/**
|
|
5117
5189
|
* @displayName Dropdown
|
|
5118
5190
|
*/
|
|
5119
|
-
function Dropdown(_ref) {
|
|
5191
|
+
function Dropdown$1(_ref) {
|
|
5120
5192
|
var drop = _ref.drop,
|
|
5121
5193
|
alignEnd = _ref.alignEnd,
|
|
5122
5194
|
defaultShow = _ref.defaultShow,
|
|
@@ -5258,15 +5330,15 @@ function Dropdown(_ref) {
|
|
|
5258
5330
|
}));
|
|
5259
5331
|
}
|
|
5260
5332
|
|
|
5261
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5262
|
-
Dropdown.propTypes = propTypes$
|
|
5263
|
-
Dropdown.Menu = DropdownMenu;
|
|
5264
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5333
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5334
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5335
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5336
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5265
5337
|
|
|
5266
5338
|
var NavContext = React__default.createContext(null);
|
|
5267
5339
|
NavContext.displayName = 'NavContext';
|
|
5268
5340
|
|
|
5269
|
-
var defaultProps$
|
|
5341
|
+
var defaultProps$q = {
|
|
5270
5342
|
as: SafeAnchor,
|
|
5271
5343
|
disabled: false
|
|
5272
5344
|
};
|
|
@@ -5281,7 +5353,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5281
5353
|
onSelect = _ref.onSelect,
|
|
5282
5354
|
propActive = _ref.active,
|
|
5283
5355
|
Component = _ref.as,
|
|
5284
|
-
props = _objectWithoutPropertiesLoose
|
|
5356
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5285
5357
|
|
|
5286
5358
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5287
5359
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5305,7 +5377,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5305
5377
|
/*#__PURE__*/
|
|
5306
5378
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5307
5379
|
// @ts-ignore
|
|
5308
|
-
React__default.createElement(Component, _extends
|
|
5380
|
+
React__default.createElement(Component, _extends({}, props, {
|
|
5309
5381
|
ref: ref,
|
|
5310
5382
|
href: href,
|
|
5311
5383
|
disabled: disabled,
|
|
@@ -5315,7 +5387,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5315
5387
|
);
|
|
5316
5388
|
});
|
|
5317
5389
|
DropdownItem.displayName = 'DropdownItem';
|
|
5318
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5390
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5319
5391
|
|
|
5320
5392
|
var toFnRef = function toFnRef(ref) {
|
|
5321
5393
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5354,8 +5426,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5354
5426
|
}, [refA, refB]);
|
|
5355
5427
|
}
|
|
5356
5428
|
|
|
5357
|
-
var context
|
|
5358
|
-
context
|
|
5429
|
+
var context = React__default.createContext(null);
|
|
5430
|
+
context.displayName = 'NavbarContext';
|
|
5359
5431
|
|
|
5360
5432
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5361
5433
|
// @ts-ignore
|
|
@@ -5368,6 +5440,12 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5368
5440
|
return useMergedRefs(warningRef, ref);
|
|
5369
5441
|
}
|
|
5370
5442
|
|
|
5443
|
+
/**
|
|
5444
|
+
* Checks if a given element has a CSS class.
|
|
5445
|
+
*
|
|
5446
|
+
* @param element the element
|
|
5447
|
+
* @param className the CSS class name
|
|
5448
|
+
*/
|
|
5371
5449
|
function hasClass(element, className) {
|
|
5372
5450
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5373
5451
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5476,13 +5554,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5476
5554
|
}), PropTypes.shape({
|
|
5477
5555
|
xl: alignDirection
|
|
5478
5556
|
})]);
|
|
5479
|
-
var defaultProps$
|
|
5557
|
+
var defaultProps$p = {
|
|
5480
5558
|
align: 'left',
|
|
5481
5559
|
alignRight: false,
|
|
5482
5560
|
flip: true
|
|
5483
5561
|
}; // TODO: remove this hack
|
|
5484
5562
|
|
|
5485
|
-
var DropdownMenu
|
|
5563
|
+
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5486
5564
|
var bsPrefix = _ref.bsPrefix,
|
|
5487
5565
|
className = _ref.className,
|
|
5488
5566
|
align = _ref.align,
|
|
@@ -5494,9 +5572,9 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5494
5572
|
_ref$as = _ref.as,
|
|
5495
5573
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5496
5574
|
popperConfig = _ref.popperConfig,
|
|
5497
|
-
props = _objectWithoutPropertiesLoose
|
|
5575
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5498
5576
|
|
|
5499
|
-
var isNavbar = useContext(context
|
|
5577
|
+
var isNavbar = useContext(context);
|
|
5500
5578
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5501
5579
|
|
|
5502
5580
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5530,7 +5608,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5530
5608
|
show: showProps,
|
|
5531
5609
|
alignEnd: alignRight,
|
|
5532
5610
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5533
|
-
popperConfig: _extends
|
|
5611
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5534
5612
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5535
5613
|
})
|
|
5536
5614
|
}),
|
|
@@ -5553,16 +5631,16 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5553
5631
|
if (placement) {
|
|
5554
5632
|
// we don't need the default popper style,
|
|
5555
5633
|
// menus are display: none when not shown.
|
|
5556
|
-
props.style = _extends
|
|
5634
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5557
5635
|
props['x-placement'] = placement;
|
|
5558
5636
|
}
|
|
5559
5637
|
|
|
5560
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5638
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5561
5639
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5562
5640
|
}));
|
|
5563
5641
|
});
|
|
5564
|
-
DropdownMenu
|
|
5565
|
-
DropdownMenu
|
|
5642
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5643
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5566
5644
|
|
|
5567
5645
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5568
5646
|
|
|
@@ -5591,14 +5669,14 @@ module.exports = exports['default'];
|
|
|
5591
5669
|
|
|
5592
5670
|
unwrapExports(isRequiredForA11y_1);
|
|
5593
5671
|
|
|
5594
|
-
var DropdownToggle
|
|
5672
|
+
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5595
5673
|
var bsPrefix = _ref.bsPrefix,
|
|
5596
5674
|
split = _ref.split,
|
|
5597
5675
|
className = _ref.className,
|
|
5598
5676
|
childBsPrefix = _ref.childBsPrefix,
|
|
5599
5677
|
_ref$as = _ref.as,
|
|
5600
5678
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5601
|
-
props = _objectWithoutPropertiesLoose
|
|
5679
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5602
5680
|
|
|
5603
5681
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5604
5682
|
|
|
@@ -5613,12 +5691,12 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5613
5691
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5614
5692
|
// underlying component, to allow it to render size and style variants.
|
|
5615
5693
|
|
|
5616
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5694
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5617
5695
|
onClick: toggle,
|
|
5618
5696
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5619
5697
|
}, toggleProps, props));
|
|
5620
5698
|
});
|
|
5621
|
-
DropdownToggle
|
|
5699
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5622
5700
|
|
|
5623
5701
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5624
5702
|
defaultProps: {
|
|
@@ -5633,10 +5711,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5633
5711
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5634
5712
|
Component: 'span'
|
|
5635
5713
|
});
|
|
5636
|
-
var defaultProps$
|
|
5714
|
+
var defaultProps$o = {
|
|
5637
5715
|
navbar: false
|
|
5638
5716
|
};
|
|
5639
|
-
var Dropdown
|
|
5717
|
+
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5640
5718
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5641
5719
|
show: 'onToggle'
|
|
5642
5720
|
}),
|
|
@@ -5649,9 +5727,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5649
5727
|
onToggle = _useUncontrolled.onToggle,
|
|
5650
5728
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5651
5729
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5652
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5653
|
-
|
|
5654
|
-
props = _objectWithoutPropertiesLoose
|
|
5730
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5731
|
+
_useUncontrolled.navbar;
|
|
5732
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5655
5733
|
|
|
5656
5734
|
var onSelectCtx = useContext(SelectableContext);
|
|
5657
5735
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5675,7 +5753,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5675
5753
|
});
|
|
5676
5754
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5677
5755
|
value: handleSelect
|
|
5678
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5756
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
5679
5757
|
drop: drop,
|
|
5680
5758
|
show: show,
|
|
5681
5759
|
alignEnd: alignRight,
|
|
@@ -5684,20 +5762,20 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5684
5762
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5685
5763
|
}, function (_ref) {
|
|
5686
5764
|
var dropdownProps = _ref.props;
|
|
5687
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5765
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5688
5766
|
ref: ref,
|
|
5689
5767
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5690
5768
|
}));
|
|
5691
5769
|
}));
|
|
5692
5770
|
});
|
|
5693
|
-
Dropdown
|
|
5694
|
-
Dropdown
|
|
5695
|
-
Dropdown
|
|
5696
|
-
Dropdown
|
|
5697
|
-
Dropdown
|
|
5698
|
-
Dropdown
|
|
5699
|
-
Dropdown
|
|
5700
|
-
Dropdown
|
|
5771
|
+
Dropdown.displayName = 'Dropdown';
|
|
5772
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5773
|
+
Dropdown.Divider = DropdownDivider;
|
|
5774
|
+
Dropdown.Header = DropdownHeader;
|
|
5775
|
+
Dropdown.Item = DropdownItem;
|
|
5776
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5777
|
+
Dropdown.Menu = DropdownMenu;
|
|
5778
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5701
5779
|
|
|
5702
5780
|
var propTypes$5 = {
|
|
5703
5781
|
/**
|
|
@@ -5772,18 +5850,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5772
5850
|
disabled = _ref.disabled,
|
|
5773
5851
|
href = _ref.href,
|
|
5774
5852
|
id = _ref.id,
|
|
5775
|
-
props = _objectWithoutPropertiesLoose
|
|
5853
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5776
5854
|
|
|
5777
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
5855
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5778
5856
|
ref: ref
|
|
5779
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle
|
|
5857
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5780
5858
|
id: id,
|
|
5781
5859
|
href: href,
|
|
5782
5860
|
size: size,
|
|
5783
5861
|
variant: variant,
|
|
5784
5862
|
disabled: disabled,
|
|
5785
5863
|
childBsPrefix: bsPrefix
|
|
5786
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu
|
|
5864
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5787
5865
|
align: menuAlign,
|
|
5788
5866
|
role: menuRole,
|
|
5789
5867
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5886,7 +5964,7 @@ module.exports = exports['default'];
|
|
|
5886
5964
|
|
|
5887
5965
|
unwrapExports(all_1);
|
|
5888
5966
|
|
|
5889
|
-
var propTypes$
|
|
5967
|
+
var propTypes$4 = {
|
|
5890
5968
|
/**
|
|
5891
5969
|
* Specify whether the feedback is for valid or invalid fields
|
|
5892
5970
|
*
|
|
@@ -5907,15 +5985,15 @@ function (_ref, ref) {
|
|
|
5907
5985
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5908
5986
|
_ref$tooltip = _ref.tooltip,
|
|
5909
5987
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5910
|
-
props = _objectWithoutPropertiesLoose
|
|
5988
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5911
5989
|
|
|
5912
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5990
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5913
5991
|
ref: ref,
|
|
5914
5992
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5915
5993
|
}));
|
|
5916
5994
|
});
|
|
5917
5995
|
Feedback.displayName = 'Feedback';
|
|
5918
|
-
Feedback.propTypes = propTypes$
|
|
5996
|
+
Feedback.propTypes = propTypes$4;
|
|
5919
5997
|
|
|
5920
5998
|
var FormContext = React__default.createContext({
|
|
5921
5999
|
controlId: undefined
|
|
@@ -5935,7 +6013,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5935
6013
|
isStatic = _ref.isStatic,
|
|
5936
6014
|
_ref$as = _ref.as,
|
|
5937
6015
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5938
|
-
props = _objectWithoutPropertiesLoose
|
|
6016
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5939
6017
|
|
|
5940
6018
|
var _useContext = useContext(FormContext),
|
|
5941
6019
|
controlId = _useContext.controlId,
|
|
@@ -5946,7 +6024,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5946
6024
|
defaultPrefix = _ref2[1];
|
|
5947
6025
|
|
|
5948
6026
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5949
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6027
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5950
6028
|
ref: ref,
|
|
5951
6029
|
type: type,
|
|
5952
6030
|
id: id || controlId,
|
|
@@ -5960,7 +6038,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5960
6038
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5961
6039
|
className = _ref.className,
|
|
5962
6040
|
htmlFor = _ref.htmlFor,
|
|
5963
|
-
props = _objectWithoutPropertiesLoose
|
|
6041
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5964
6042
|
|
|
5965
6043
|
var _useContext = useContext(FormContext),
|
|
5966
6044
|
controlId = _useContext.controlId,
|
|
@@ -5971,7 +6049,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5971
6049
|
defaultPrefix = _ref2[1];
|
|
5972
6050
|
|
|
5973
6051
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5974
|
-
return /*#__PURE__*/React__default.createElement("label", _extends
|
|
6052
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5975
6053
|
ref: ref,
|
|
5976
6054
|
htmlFor: htmlFor || controlId,
|
|
5977
6055
|
className: classnames(className, bsPrefix)
|
|
@@ -6005,7 +6083,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6005
6083
|
propCustom = _ref.custom,
|
|
6006
6084
|
_ref$as = _ref.as,
|
|
6007
6085
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6008
|
-
props = _objectWithoutPropertiesLoose
|
|
6086
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6009
6087
|
|
|
6010
6088
|
var custom = type === 'switch' ? true : propCustom;
|
|
6011
6089
|
|
|
@@ -6025,7 +6103,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6025
6103
|
};
|
|
6026
6104
|
}, [controlId, custom, id]);
|
|
6027
6105
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6028
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends
|
|
6106
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6029
6107
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6030
6108
|
ref: ref,
|
|
6031
6109
|
isValid: isValid,
|
|
@@ -6060,7 +6138,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6060
6138
|
lang = _ref.lang,
|
|
6061
6139
|
_ref$as = _ref.as,
|
|
6062
6140
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6063
|
-
props = _objectWithoutPropertiesLoose
|
|
6141
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6064
6142
|
|
|
6065
6143
|
var _useContext = useContext(FormContext),
|
|
6066
6144
|
controlId = _useContext.controlId,
|
|
@@ -6073,7 +6151,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6073
6151
|
defaultPrefix = _ref2[1];
|
|
6074
6152
|
|
|
6075
6153
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6076
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6154
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6077
6155
|
ref: ref,
|
|
6078
6156
|
id: id || controlId,
|
|
6079
6157
|
type: type,
|
|
@@ -6088,7 +6166,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6088
6166
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6089
6167
|
className = _ref.className,
|
|
6090
6168
|
htmlFor = _ref.htmlFor,
|
|
6091
|
-
props = _objectWithoutPropertiesLoose
|
|
6169
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6092
6170
|
|
|
6093
6171
|
var _useContext = useContext(FormContext),
|
|
6094
6172
|
controlId = _useContext.controlId,
|
|
@@ -6099,7 +6177,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6099
6177
|
defaultPrefix = _ref2[1];
|
|
6100
6178
|
|
|
6101
6179
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6102
|
-
return /*#__PURE__*/React__default.createElement("label", _extends
|
|
6180
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6103
6181
|
ref: ref,
|
|
6104
6182
|
htmlFor: htmlFor || controlId,
|
|
6105
6183
|
className: classnames(className, bsPrefix),
|
|
@@ -6132,7 +6210,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6132
6210
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6133
6211
|
_ref$inputAs = _ref.inputAs,
|
|
6134
6212
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6135
|
-
props = _objectWithoutPropertiesLoose
|
|
6213
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6136
6214
|
|
|
6137
6215
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6138
6216
|
prefix = _ref2[0],
|
|
@@ -6151,7 +6229,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6229
|
};
|
|
6152
6230
|
}, [controlId, custom, id]);
|
|
6153
6231
|
var hasLabel = label != null && label !== false && !children;
|
|
6154
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends
|
|
6232
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6155
6233
|
ref: ref,
|
|
6156
6234
|
isValid: isValid,
|
|
6157
6235
|
isInvalid: isInvalid,
|
|
@@ -6192,7 +6270,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6192
6270
|
custom = _ref.custom,
|
|
6193
6271
|
_ref$as = _ref.as,
|
|
6194
6272
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6195
|
-
props = _objectWithoutPropertiesLoose
|
|
6273
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6196
6274
|
|
|
6197
6275
|
var _useContext = useContext(FormContext),
|
|
6198
6276
|
controlId = _useContext.controlId;
|
|
@@ -6227,7 +6305,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6227
6305
|
}
|
|
6228
6306
|
|
|
6229
6307
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6230
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6308
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6231
6309
|
type: type,
|
|
6232
6310
|
size: htmlSize,
|
|
6233
6311
|
ref: ref,
|
|
@@ -6248,7 +6326,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6248
6326
|
controlId = _ref.controlId,
|
|
6249
6327
|
_ref$as = _ref.as,
|
|
6250
6328
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose
|
|
6329
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6252
6330
|
|
|
6253
6331
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6254
6332
|
var context = useMemo(function () {
|
|
@@ -6258,14 +6336,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6258
6336
|
}, [controlId]);
|
|
6259
6337
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6260
6338
|
value: context
|
|
6261
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6339
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6262
6340
|
ref: ref,
|
|
6263
6341
|
className: classnames(className, bsPrefix)
|
|
6264
6342
|
}), children));
|
|
6265
6343
|
});
|
|
6266
6344
|
FormGroup.displayName = 'FormGroup';
|
|
6267
6345
|
|
|
6268
|
-
var defaultProps$
|
|
6346
|
+
var defaultProps$n = {
|
|
6269
6347
|
column: false,
|
|
6270
6348
|
srOnly: false
|
|
6271
6349
|
};
|
|
@@ -6277,7 +6355,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6277
6355
|
srOnly = _ref.srOnly,
|
|
6278
6356
|
className = _ref.className,
|
|
6279
6357
|
htmlFor = _ref.htmlFor,
|
|
6280
|
-
props = _objectWithoutPropertiesLoose
|
|
6358
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6281
6359
|
|
|
6282
6360
|
var _useContext = useContext(FormContext),
|
|
6283
6361
|
controlId = _useContext.controlId;
|
|
@@ -6288,7 +6366,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6288
6366
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6289
6367
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6290
6368
|
htmlFor = htmlFor || controlId;
|
|
6291
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends
|
|
6369
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6292
6370
|
as: "label",
|
|
6293
6371
|
className: classes,
|
|
6294
6372
|
htmlFor: htmlFor
|
|
@@ -6296,7 +6374,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6296
6374
|
return (
|
|
6297
6375
|
/*#__PURE__*/
|
|
6298
6376
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6299
|
-
React__default.createElement(Component, _extends
|
|
6377
|
+
React__default.createElement(Component, _extends({
|
|
6300
6378
|
ref: ref,
|
|
6301
6379
|
className: classes,
|
|
6302
6380
|
htmlFor: htmlFor
|
|
@@ -6304,7 +6382,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6304
6382
|
);
|
|
6305
6383
|
});
|
|
6306
6384
|
FormLabel.displayName = 'FormLabel';
|
|
6307
|
-
FormLabel.defaultProps = defaultProps$
|
|
6385
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6308
6386
|
|
|
6309
6387
|
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
|
|
6310
6388
|
function (_ref, ref) {
|
|
@@ -6313,10 +6391,10 @@ function (_ref, ref) {
|
|
|
6313
6391
|
_ref$as = _ref.as,
|
|
6314
6392
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6315
6393
|
muted = _ref.muted,
|
|
6316
|
-
props = _objectWithoutPropertiesLoose
|
|
6394
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6317
6395
|
|
|
6318
6396
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6319
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6397
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6320
6398
|
ref: ref,
|
|
6321
6399
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6322
6400
|
}));
|
|
@@ -6324,7 +6402,7 @@ function (_ref, ref) {
|
|
|
6324
6402
|
FormText.displayName = 'FormText';
|
|
6325
6403
|
|
|
6326
6404
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6327
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends
|
|
6405
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6328
6406
|
ref: ref,
|
|
6329
6407
|
type: "switch"
|
|
6330
6408
|
}));
|
|
@@ -6334,7 +6412,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6334
6412
|
Switch.Label = FormCheck.Label;
|
|
6335
6413
|
|
|
6336
6414
|
var FormRow = createWithBsPrefix('form-row');
|
|
6337
|
-
var defaultProps$
|
|
6415
|
+
var defaultProps$m = {
|
|
6338
6416
|
inline: false
|
|
6339
6417
|
};
|
|
6340
6418
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6344,16 +6422,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6344
6422
|
validated = _ref.validated,
|
|
6345
6423
|
_ref$as = _ref.as,
|
|
6346
6424
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6347
|
-
props = _objectWithoutPropertiesLoose
|
|
6425
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6348
6426
|
|
|
6349
6427
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6350
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6428
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6351
6429
|
ref: ref,
|
|
6352
6430
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6353
6431
|
}));
|
|
6354
6432
|
});
|
|
6355
6433
|
FormImpl.displayName = 'Form';
|
|
6356
|
-
FormImpl.defaultProps = defaultProps$
|
|
6434
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6357
6435
|
FormImpl.Row = FormRow;
|
|
6358
6436
|
FormImpl.Group = FormGroup;
|
|
6359
6437
|
FormImpl.Control = FormControl$1;
|
|
@@ -6363,7 +6441,7 @@ FormImpl.Switch = Switch;
|
|
|
6363
6441
|
FormImpl.Label = FormLabel;
|
|
6364
6442
|
FormImpl.Text = FormText;
|
|
6365
6443
|
|
|
6366
|
-
var defaultProps$
|
|
6444
|
+
var defaultProps$l = {
|
|
6367
6445
|
fluid: false
|
|
6368
6446
|
};
|
|
6369
6447
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6372,20 +6450,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6372
6450
|
_ref$as = _ref.as,
|
|
6373
6451
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6374
6452
|
className = _ref.className,
|
|
6375
|
-
props = _objectWithoutPropertiesLoose
|
|
6453
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6376
6454
|
|
|
6377
6455
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6378
6456
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6379
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6457
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6380
6458
|
ref: ref
|
|
6381
6459
|
}, props, {
|
|
6382
6460
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6383
6461
|
}));
|
|
6384
6462
|
});
|
|
6385
6463
|
Container.displayName = 'Container';
|
|
6386
|
-
Container.defaultProps = defaultProps$
|
|
6464
|
+
Container.defaultProps = defaultProps$l;
|
|
6387
6465
|
|
|
6388
|
-
var propTypes$
|
|
6466
|
+
var propTypes$3 = {
|
|
6389
6467
|
/**
|
|
6390
6468
|
* @default 'img'
|
|
6391
6469
|
*/
|
|
@@ -6424,11 +6502,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6424
6502
|
rounded = _ref.rounded,
|
|
6425
6503
|
roundedCircle = _ref.roundedCircle,
|
|
6426
6504
|
thumbnail = _ref.thumbnail,
|
|
6427
|
-
props = _objectWithoutPropertiesLoose
|
|
6505
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6428
6506
|
|
|
6429
6507
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6430
6508
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6431
|
-
return /*#__PURE__*/React__default.createElement("img", _extends
|
|
6509
|
+
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6432
6510
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6433
6511
|
ref: ref
|
|
6434
6512
|
}, props, {
|
|
@@ -6438,22 +6516,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6438
6516
|
Image.displayName = 'Image';
|
|
6439
6517
|
Image.defaultProps = defaultProps$k;
|
|
6440
6518
|
|
|
6441
|
-
var defaultProps$
|
|
6519
|
+
var defaultProps$j = {
|
|
6442
6520
|
fluid: true
|
|
6443
6521
|
};
|
|
6444
6522
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6445
6523
|
var className = _ref.className,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose
|
|
6524
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6447
6525
|
|
|
6448
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends
|
|
6526
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6449
6527
|
ref: ref
|
|
6450
6528
|
}, props, {
|
|
6451
6529
|
className: classnames(className, 'figure-img')
|
|
6452
6530
|
}));
|
|
6453
6531
|
});
|
|
6454
6532
|
FigureImage.displayName = 'FigureImage';
|
|
6455
|
-
FigureImage.propTypes = propTypes$
|
|
6456
|
-
FigureImage.defaultProps = defaultProps$
|
|
6533
|
+
FigureImage.propTypes = propTypes$3;
|
|
6534
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6457
6535
|
|
|
6458
6536
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6459
6537
|
Component: 'figcaption'
|
|
@@ -6472,13 +6550,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6472
6550
|
});
|
|
6473
6551
|
|
|
6474
6552
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6475
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends
|
|
6553
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6476
6554
|
type: "checkbox"
|
|
6477
6555
|
}, props)));
|
|
6478
6556
|
};
|
|
6479
6557
|
|
|
6480
6558
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6481
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends
|
|
6559
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6482
6560
|
type: "radio"
|
|
6483
6561
|
}, props)));
|
|
6484
6562
|
};
|
|
@@ -6497,10 +6575,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6497
6575
|
className = _ref.className,
|
|
6498
6576
|
_ref$as = _ref.as,
|
|
6499
6577
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6500
|
-
props = _objectWithoutPropertiesLoose
|
|
6578
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6501
6579
|
|
|
6502
6580
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6503
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6581
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6504
6582
|
ref: ref
|
|
6505
6583
|
}, props, {
|
|
6506
6584
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6508,7 +6586,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6508
6586
|
});
|
|
6509
6587
|
InputGroup.displayName = 'InputGroup';
|
|
6510
6588
|
|
|
6511
|
-
|
|
6589
|
+
_extends({}, InputGroup, {
|
|
6512
6590
|
Text: InputGroupText,
|
|
6513
6591
|
Radio: InputGroupRadio,
|
|
6514
6592
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6516,7 +6594,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6516
6594
|
Prepend: InputGroupPrepend
|
|
6517
6595
|
});
|
|
6518
6596
|
|
|
6519
|
-
var defaultProps$
|
|
6597
|
+
var defaultProps$i = {
|
|
6520
6598
|
fluid: false
|
|
6521
6599
|
};
|
|
6522
6600
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6527,23 +6605,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6527
6605
|
className = _ref.className,
|
|
6528
6606
|
fluid = _ref.fluid,
|
|
6529
6607
|
bsPrefix = _ref.bsPrefix,
|
|
6530
|
-
props = _objectWithoutPropertiesLoose
|
|
6608
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6531
6609
|
|
|
6532
6610
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6533
6611
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6534
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6612
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6535
6613
|
ref: ref
|
|
6536
6614
|
}, props, {
|
|
6537
6615
|
className: classnames(className, classes)
|
|
6538
6616
|
}));
|
|
6539
6617
|
});
|
|
6540
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6618
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6541
6619
|
Jumbotron.displayName = 'Jumbotron';
|
|
6542
6620
|
|
|
6543
6621
|
var TabContext = React__default.createContext(null);
|
|
6544
6622
|
|
|
6545
6623
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6546
|
-
var noop$
|
|
6624
|
+
var noop$1 = function noop() {};
|
|
6547
6625
|
|
|
6548
6626
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6549
6627
|
var _ref$as = _ref.as,
|
|
@@ -6552,7 +6630,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6552
6630
|
activeKey = _ref.activeKey,
|
|
6553
6631
|
role = _ref.role,
|
|
6554
6632
|
onKeyDown = _ref.onKeyDown,
|
|
6555
|
-
props = _objectWithoutPropertiesLoose
|
|
6633
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6556
6634
|
|
|
6557
6635
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6558
6636
|
// and don't want to reset the set in the effect
|
|
@@ -6633,17 +6711,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6633
6711
|
role: role,
|
|
6634
6712
|
// used by NavLink to determine it's role
|
|
6635
6713
|
activeKey: makeEventKey(activeKey),
|
|
6636
|
-
getControlledId: getControlledId || noop$
|
|
6637
|
-
getControllerId: getControllerId || noop$
|
|
6714
|
+
getControlledId: getControlledId || noop$1,
|
|
6715
|
+
getControllerId: getControllerId || noop$1
|
|
6638
6716
|
}
|
|
6639
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6717
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6640
6718
|
onKeyDown: handleKeyDown,
|
|
6641
6719
|
ref: mergedRef,
|
|
6642
6720
|
role: role
|
|
6643
6721
|
}))));
|
|
6644
6722
|
});
|
|
6645
6723
|
|
|
6646
|
-
var defaultProps$
|
|
6724
|
+
var defaultProps$h = {
|
|
6647
6725
|
disabled: false
|
|
6648
6726
|
};
|
|
6649
6727
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6653,7 +6731,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6653
6731
|
onSelect = _ref.onSelect,
|
|
6654
6732
|
onClick = _ref.onClick,
|
|
6655
6733
|
Component = _ref.as,
|
|
6656
|
-
props = _objectWithoutPropertiesLoose
|
|
6734
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6657
6735
|
|
|
6658
6736
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6659
6737
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6683,15 +6761,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6683
6761
|
if (onSelect) onSelect(navKey, e);
|
|
6684
6762
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6685
6763
|
});
|
|
6686
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6764
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6687
6765
|
ref: ref,
|
|
6688
6766
|
onClick: handleOnclick,
|
|
6689
6767
|
className: classnames(className, isActive && 'active')
|
|
6690
6768
|
}));
|
|
6691
6769
|
});
|
|
6692
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6770
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6693
6771
|
|
|
6694
|
-
var defaultProps$
|
|
6772
|
+
var defaultProps$g = {
|
|
6695
6773
|
variant: undefined,
|
|
6696
6774
|
active: false,
|
|
6697
6775
|
disabled: false
|
|
@@ -6706,7 +6784,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6706
6784
|
as = _ref.as,
|
|
6707
6785
|
eventKey = _ref.eventKey,
|
|
6708
6786
|
onClick = _ref.onClick,
|
|
6709
|
-
props = _objectWithoutPropertiesLoose
|
|
6787
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6710
6788
|
|
|
6711
6789
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6712
6790
|
var handleClick = useCallback(function (event) {
|
|
@@ -6718,7 +6796,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6718
6796
|
|
|
6719
6797
|
if (onClick) onClick(event);
|
|
6720
6798
|
}, [disabled, onClick]);
|
|
6721
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends
|
|
6799
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6722
6800
|
ref: ref
|
|
6723
6801
|
}, props, {
|
|
6724
6802
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6729,10 +6807,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6729
6807
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6730
6808
|
}));
|
|
6731
6809
|
});
|
|
6732
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6810
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6733
6811
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6734
6812
|
|
|
6735
|
-
var defaultProps$
|
|
6813
|
+
var defaultProps$f = {
|
|
6736
6814
|
variant: undefined,
|
|
6737
6815
|
horizontal: undefined
|
|
6738
6816
|
};
|
|
@@ -6746,7 +6824,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6746
6824
|
horizontal = _useUncontrolled.horizontal,
|
|
6747
6825
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6748
6826
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6749
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6827
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6750
6828
|
|
|
6751
6829
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6752
6830
|
var horizontalVariant;
|
|
@@ -6758,14 +6836,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6758
6836
|
}
|
|
6759
6837
|
|
|
6760
6838
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6761
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends
|
|
6839
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6762
6840
|
ref: ref
|
|
6763
6841
|
}, controlledProps, {
|
|
6764
6842
|
as: as,
|
|
6765
6843
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6766
6844
|
}));
|
|
6767
6845
|
});
|
|
6768
|
-
ListGroup.defaultProps = defaultProps$
|
|
6846
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6769
6847
|
ListGroup.displayName = 'ListGroup';
|
|
6770
6848
|
ListGroup.Item = ListGroupItem;
|
|
6771
6849
|
|
|
@@ -6776,10 +6854,10 @@ function (_ref, ref) {
|
|
|
6776
6854
|
className = _ref.className,
|
|
6777
6855
|
_ref$as = _ref.as,
|
|
6778
6856
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6779
|
-
props = _objectWithoutPropertiesLoose
|
|
6857
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6780
6858
|
|
|
6781
6859
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6782
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6860
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6783
6861
|
ref: ref,
|
|
6784
6862
|
className: classnames(className, prefix)
|
|
6785
6863
|
}));
|
|
@@ -6807,14 +6885,14 @@ function scrollbarSize(recalc) {
|
|
|
6807
6885
|
}
|
|
6808
6886
|
|
|
6809
6887
|
/**
|
|
6810
|
-
*
|
|
6888
|
+
* Returns the actively focused element safely.
|
|
6811
6889
|
*
|
|
6812
|
-
* @param doc the document to
|
|
6890
|
+
* @param doc the document to check
|
|
6813
6891
|
*/
|
|
6814
6892
|
|
|
6815
6893
|
function activeElement(doc) {
|
|
6816
6894
|
if (doc === void 0) {
|
|
6817
|
-
doc = ownerDocument();
|
|
6895
|
+
doc = ownerDocument$1();
|
|
6818
6896
|
}
|
|
6819
6897
|
|
|
6820
6898
|
// Support: IE 9 only
|
|
@@ -6831,6 +6909,13 @@ function activeElement(doc) {
|
|
|
6831
6909
|
}
|
|
6832
6910
|
}
|
|
6833
6911
|
|
|
6912
|
+
/**
|
|
6913
|
+
* Adds a CSS class to a given element.
|
|
6914
|
+
*
|
|
6915
|
+
* @param element the element
|
|
6916
|
+
* @param className the CSS class name
|
|
6917
|
+
*/
|
|
6918
|
+
|
|
6834
6919
|
function addClass(element, className) {
|
|
6835
6920
|
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);
|
|
6836
6921
|
}
|
|
@@ -6838,6 +6923,13 @@ function addClass(element, className) {
|
|
|
6838
6923
|
function replaceClassName(origClass, classToRemove) {
|
|
6839
6924
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6840
6925
|
}
|
|
6926
|
+
/**
|
|
6927
|
+
* Removes a CSS class from a given element.
|
|
6928
|
+
*
|
|
6929
|
+
* @param element the element
|
|
6930
|
+
* @param className the CSS class name
|
|
6931
|
+
*/
|
|
6932
|
+
|
|
6841
6933
|
|
|
6842
6934
|
function removeClass(element, className) {
|
|
6843
6935
|
if (element.classList) {
|
|
@@ -6864,7 +6956,7 @@ function isBody(node) {
|
|
|
6864
6956
|
}
|
|
6865
6957
|
|
|
6866
6958
|
function bodyIsOverflowing(node) {
|
|
6867
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6959
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6868
6960
|
var win = isWindow(node) || doc.defaultView;
|
|
6869
6961
|
return doc.body.clientWidth < win.innerWidth;
|
|
6870
6962
|
}
|
|
@@ -7076,7 +7168,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7076
7168
|
var _ref;
|
|
7077
7169
|
|
|
7078
7170
|
if (typeof document === 'undefined') return null;
|
|
7079
|
-
if (ref == null) return ownerDocument().body;
|
|
7171
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7080
7172
|
if (typeof ref === 'function') ref = ref();
|
|
7081
7173
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7082
7174
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7109,11 +7201,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7109
7201
|
return resolvedRef;
|
|
7110
7202
|
}
|
|
7111
7203
|
|
|
7112
|
-
var manager;
|
|
7204
|
+
var manager$1;
|
|
7113
7205
|
|
|
7114
7206
|
function getManager() {
|
|
7115
|
-
if (!manager) manager = new ModalManager();
|
|
7116
|
-
return manager;
|
|
7207
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7208
|
+
return manager$1;
|
|
7117
7209
|
}
|
|
7118
7210
|
|
|
7119
7211
|
function useModalManager(provided) {
|
|
@@ -7141,7 +7233,7 @@ function useModalManager(provided) {
|
|
|
7141
7233
|
});
|
|
7142
7234
|
}
|
|
7143
7235
|
|
|
7144
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7236
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7145
7237
|
var _ref$show = _ref.show,
|
|
7146
7238
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7147
7239
|
_ref$role = _ref.role,
|
|
@@ -7225,7 +7317,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7225
7317
|
if (autoFocus) {
|
|
7226
7318
|
var currentActiveElement = activeElement(document);
|
|
7227
7319
|
|
|
7228
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7320
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7229
7321
|
lastFocusRef.current = currentActiveElement;
|
|
7230
7322
|
modal.dialog.focus();
|
|
7231
7323
|
}
|
|
@@ -7271,7 +7363,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7271
7363
|
|
|
7272
7364
|
var currentActiveElement = activeElement();
|
|
7273
7365
|
|
|
7274
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7366
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7275
7367
|
modal.dialog.focus();
|
|
7276
7368
|
}
|
|
7277
7369
|
});
|
|
@@ -7362,7 +7454,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7362
7454
|
|
|
7363
7455
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7364
7456
|
});
|
|
7365
|
-
var propTypes$
|
|
7457
|
+
var propTypes$2 = {
|
|
7366
7458
|
/**
|
|
7367
7459
|
* Set the visibility of the Modal
|
|
7368
7460
|
*/
|
|
@@ -7518,9 +7610,9 @@ var propTypes$8 = {
|
|
|
7518
7610
|
*/
|
|
7519
7611
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7520
7612
|
};
|
|
7521
|
-
Modal.displayName = 'Modal';
|
|
7522
|
-
Modal.propTypes = propTypes$
|
|
7523
|
-
var BaseModal = Object.assign(Modal, {
|
|
7613
|
+
Modal$1.displayName = 'Modal';
|
|
7614
|
+
Modal$1.propTypes = propTypes$2;
|
|
7615
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7524
7616
|
Manager: ModalManager
|
|
7525
7617
|
});
|
|
7526
7618
|
|
|
@@ -7612,11 +7704,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7612
7704
|
size = _ref.size,
|
|
7613
7705
|
children = _ref.children,
|
|
7614
7706
|
scrollable = _ref.scrollable,
|
|
7615
|
-
props = _objectWithoutPropertiesLoose
|
|
7707
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7616
7708
|
|
|
7617
7709
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7618
7710
|
var dialogClass = bsPrefix + "-dialog";
|
|
7619
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7711
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7620
7712
|
ref: ref,
|
|
7621
7713
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7622
7714
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7627,7 +7719,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7627
7719
|
|
|
7628
7720
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7629
7721
|
|
|
7630
|
-
var defaultProps$
|
|
7722
|
+
var defaultProps$e = {
|
|
7631
7723
|
closeLabel: 'Close',
|
|
7632
7724
|
closeButton: false
|
|
7633
7725
|
};
|
|
@@ -7638,7 +7730,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7638
7730
|
onHide = _ref.onHide,
|
|
7639
7731
|
className = _ref.className,
|
|
7640
7732
|
children = _ref.children,
|
|
7641
|
-
props = _objectWithoutPropertiesLoose
|
|
7733
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7642
7734
|
|
|
7643
7735
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7644
7736
|
var context = useContext(ModalContext);
|
|
@@ -7646,7 +7738,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7646
7738
|
if (context) context.onHide();
|
|
7647
7739
|
if (onHide) onHide();
|
|
7648
7740
|
});
|
|
7649
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7741
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7650
7742
|
ref: ref
|
|
7651
7743
|
}, props, {
|
|
7652
7744
|
className: classnames(className, bsPrefix)
|
|
@@ -7656,15 +7748,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7656
7748
|
}));
|
|
7657
7749
|
});
|
|
7658
7750
|
ModalHeader.displayName = 'ModalHeader';
|
|
7659
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7751
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7660
7752
|
|
|
7661
|
-
var DivStyledAsH4
|
|
7753
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7662
7754
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7663
|
-
Component: DivStyledAsH4
|
|
7755
|
+
Component: DivStyledAsH4
|
|
7664
7756
|
});
|
|
7665
7757
|
|
|
7666
|
-
var manager
|
|
7667
|
-
var defaultProps$
|
|
7758
|
+
var manager;
|
|
7759
|
+
var defaultProps$d = {
|
|
7668
7760
|
show: false,
|
|
7669
7761
|
backdrop: true,
|
|
7670
7762
|
keyboard: true,
|
|
@@ -7686,7 +7778,7 @@ function BackdropTransition(props) {
|
|
|
7686
7778
|
/* eslint-enable no-use-before-define */
|
|
7687
7779
|
|
|
7688
7780
|
|
|
7689
|
-
var Modal
|
|
7781
|
+
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7690
7782
|
var bsPrefix = _ref.bsPrefix,
|
|
7691
7783
|
className = _ref.className,
|
|
7692
7784
|
style = _ref.style,
|
|
@@ -7715,7 +7807,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7715
7807
|
onExited = _ref.onExited,
|
|
7716
7808
|
backdropClassName = _ref.backdropClassName,
|
|
7717
7809
|
propsManager = _ref.manager,
|
|
7718
|
-
props = _objectWithoutPropertiesLoose
|
|
7810
|
+
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"]);
|
|
7719
7811
|
|
|
7720
7812
|
var _useState = useState({}),
|
|
7721
7813
|
modalStyle = _useState[0],
|
|
@@ -7752,14 +7844,14 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7752
7844
|
|
|
7753
7845
|
function getModalManager() {
|
|
7754
7846
|
if (propsManager) return propsManager;
|
|
7755
|
-
if (!manager
|
|
7756
|
-
return manager
|
|
7847
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7848
|
+
return manager;
|
|
7757
7849
|
}
|
|
7758
7850
|
|
|
7759
7851
|
function updateDialogStyle(node) {
|
|
7760
7852
|
if (!canUseDOM) return;
|
|
7761
7853
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7762
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7854
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7763
7855
|
setStyle({
|
|
7764
7856
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7765
7857
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7881,12 +7973,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7881
7973
|
};
|
|
7882
7974
|
|
|
7883
7975
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7884
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7976
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7885
7977
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7886
7978
|
}));
|
|
7887
7979
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7888
7980
|
|
|
7889
|
-
var baseModalStyle = _extends
|
|
7981
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7890
7982
|
|
|
7891
7983
|
|
|
7892
7984
|
if (!animation) {
|
|
@@ -7894,7 +7986,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7894
7986
|
}
|
|
7895
7987
|
|
|
7896
7988
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7897
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7989
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7898
7990
|
role: "dialog"
|
|
7899
7991
|
}, dialogProps, {
|
|
7900
7992
|
style: baseModalStyle,
|
|
@@ -7902,7 +7994,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7902
7994
|
onClick: backdrop ? handleClick : undefined,
|
|
7903
7995
|
onMouseUp: handleMouseUp,
|
|
7904
7996
|
"aria-labelledby": ariaLabelledby
|
|
7905
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends
|
|
7997
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7906
7998
|
role: "document",
|
|
7907
7999
|
onMouseDown: handleDialogMouseDown,
|
|
7908
8000
|
className: dialogClassName,
|
|
@@ -7940,15 +8032,15 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7940
8032
|
renderDialog: renderDialog
|
|
7941
8033
|
}));
|
|
7942
8034
|
});
|
|
7943
|
-
Modal
|
|
7944
|
-
Modal
|
|
7945
|
-
Modal
|
|
7946
|
-
Modal
|
|
7947
|
-
Modal
|
|
7948
|
-
Modal
|
|
7949
|
-
Modal
|
|
7950
|
-
Modal
|
|
7951
|
-
Modal
|
|
8035
|
+
Modal.displayName = 'Modal';
|
|
8036
|
+
Modal.defaultProps = defaultProps$d;
|
|
8037
|
+
Modal.Body = ModalBody;
|
|
8038
|
+
Modal.Header = ModalHeader;
|
|
8039
|
+
Modal.Title = ModalTitle;
|
|
8040
|
+
Modal.Footer = ModalFooter;
|
|
8041
|
+
Modal.Dialog = ModalDialog;
|
|
8042
|
+
Modal.TRANSITION_DURATION = 300;
|
|
8043
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7952
8044
|
|
|
7953
8045
|
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
|
|
7954
8046
|
function (_ref, ref) {
|
|
@@ -7957,17 +8049,17 @@ function (_ref, ref) {
|
|
|
7957
8049
|
children = _ref.children,
|
|
7958
8050
|
_ref$as = _ref.as,
|
|
7959
8051
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7960
|
-
props = _objectWithoutPropertiesLoose
|
|
8052
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7961
8053
|
|
|
7962
8054
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7963
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8055
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7964
8056
|
ref: ref,
|
|
7965
8057
|
className: classnames(className, bsPrefix)
|
|
7966
8058
|
}), children);
|
|
7967
8059
|
});
|
|
7968
8060
|
NavItem.displayName = 'NavItem';
|
|
7969
8061
|
|
|
7970
|
-
var defaultProps$
|
|
8062
|
+
var defaultProps$c = {
|
|
7971
8063
|
disabled: false,
|
|
7972
8064
|
as: SafeAnchor
|
|
7973
8065
|
};
|
|
@@ -7979,10 +8071,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7979
8071
|
eventKey = _ref.eventKey,
|
|
7980
8072
|
onSelect = _ref.onSelect,
|
|
7981
8073
|
as = _ref.as,
|
|
7982
|
-
props = _objectWithoutPropertiesLoose
|
|
8074
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7983
8075
|
|
|
7984
8076
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7985
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends
|
|
8077
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7986
8078
|
href: href,
|
|
7987
8079
|
ref: ref,
|
|
7988
8080
|
eventKey: eventKey,
|
|
@@ -7993,9 +8085,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7993
8085
|
}));
|
|
7994
8086
|
});
|
|
7995
8087
|
NavLink.displayName = 'NavLink';
|
|
7996
|
-
NavLink.defaultProps = defaultProps$
|
|
8088
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7997
8089
|
|
|
7998
|
-
var defaultProps$
|
|
8090
|
+
var defaultProps$b = {
|
|
7999
8091
|
justify: false,
|
|
8000
8092
|
fill: false
|
|
8001
8093
|
};
|
|
@@ -8015,13 +8107,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8015
8107
|
className = _useUncontrolled.className,
|
|
8016
8108
|
children = _useUncontrolled.children,
|
|
8017
8109
|
activeKey = _useUncontrolled.activeKey,
|
|
8018
|
-
props = _objectWithoutPropertiesLoose
|
|
8110
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8019
8111
|
|
|
8020
8112
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8021
8113
|
var navbarBsPrefix;
|
|
8022
8114
|
var cardHeaderBsPrefix;
|
|
8023
8115
|
var isNavbar = false;
|
|
8024
|
-
var navbarContext = useContext(context
|
|
8116
|
+
var navbarContext = useContext(context);
|
|
8025
8117
|
var cardContext = useContext(context$1);
|
|
8026
8118
|
|
|
8027
8119
|
if (navbarContext) {
|
|
@@ -8031,7 +8123,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8031
8123
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8032
8124
|
}
|
|
8033
8125
|
|
|
8034
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends
|
|
8126
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8035
8127
|
as: as,
|
|
8036
8128
|
ref: ref,
|
|
8037
8129
|
activeKey: activeKey,
|
|
@@ -8039,7 +8131,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8039
8131
|
}, props), children);
|
|
8040
8132
|
});
|
|
8041
8133
|
Nav.displayName = 'Nav';
|
|
8042
|
-
Nav.defaultProps = defaultProps$
|
|
8134
|
+
Nav.defaultProps = defaultProps$b;
|
|
8043
8135
|
Nav.Item = NavItem;
|
|
8044
8136
|
Nav.Link = NavLink;
|
|
8045
8137
|
|
|
@@ -8047,11 +8139,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8047
8139
|
var bsPrefix = _ref.bsPrefix,
|
|
8048
8140
|
className = _ref.className,
|
|
8049
8141
|
as = _ref.as,
|
|
8050
|
-
props = _objectWithoutPropertiesLoose
|
|
8142
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8051
8143
|
|
|
8052
8144
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8053
8145
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8054
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8146
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8055
8147
|
ref: ref,
|
|
8056
8148
|
className: classnames(className, bsPrefix)
|
|
8057
8149
|
}));
|
|
@@ -8061,11 +8153,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8061
8153
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8062
8154
|
var children = _ref.children,
|
|
8063
8155
|
bsPrefix = _ref.bsPrefix,
|
|
8064
|
-
props = _objectWithoutPropertiesLoose
|
|
8156
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8065
8157
|
|
|
8066
8158
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8067
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
8068
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends
|
|
8159
|
+
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8160
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8069
8161
|
in: !!(context && context.expanded)
|
|
8070
8162
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8071
8163
|
ref: ref,
|
|
@@ -8075,7 +8167,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8075
8167
|
});
|
|
8076
8168
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8077
8169
|
|
|
8078
|
-
var defaultProps$
|
|
8170
|
+
var defaultProps$a = {
|
|
8079
8171
|
label: 'Toggle navigation'
|
|
8080
8172
|
};
|
|
8081
8173
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8086,11 +8178,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8086
8178
|
_ref$as = _ref.as,
|
|
8087
8179
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8088
8180
|
onClick = _ref.onClick,
|
|
8089
|
-
props = _objectWithoutPropertiesLoose
|
|
8181
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8090
8182
|
|
|
8091
8183
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8092
8184
|
|
|
8093
|
-
var _ref2 = useContext(context
|
|
8185
|
+
var _ref2 = useContext(context) || {},
|
|
8094
8186
|
onToggle = _ref2.onToggle,
|
|
8095
8187
|
expanded = _ref2.expanded;
|
|
8096
8188
|
|
|
@@ -8103,7 +8195,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8103
8195
|
props.type = 'button';
|
|
8104
8196
|
}
|
|
8105
8197
|
|
|
8106
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8198
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8107
8199
|
ref: ref,
|
|
8108
8200
|
onClick: handleClick,
|
|
8109
8201
|
"aria-label": label,
|
|
@@ -8113,12 +8205,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8113
8205
|
}));
|
|
8114
8206
|
});
|
|
8115
8207
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8116
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8208
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8117
8209
|
|
|
8118
8210
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8119
8211
|
Component: 'span'
|
|
8120
8212
|
});
|
|
8121
|
-
var defaultProps$
|
|
8213
|
+
var defaultProps$9 = {
|
|
8122
8214
|
expand: true,
|
|
8123
8215
|
variant: 'light',
|
|
8124
8216
|
collapseOnSelect: false
|
|
@@ -8141,7 +8233,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8141
8233
|
_onToggle = _useUncontrolled.onToggle,
|
|
8142
8234
|
onSelect = _useUncontrolled.onSelect,
|
|
8143
8235
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8144
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8236
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8145
8237
|
|
|
8146
8238
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8147
8239
|
var handleCollapse = useCallback(function () {
|
|
@@ -8171,24 +8263,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8171
8263
|
expanded: !!expanded
|
|
8172
8264
|
};
|
|
8173
8265
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8174
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
8266
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8175
8267
|
value: navbarContext
|
|
8176
8268
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8177
8269
|
value: handleCollapse
|
|
8178
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8270
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8179
8271
|
ref: ref
|
|
8180
8272
|
}, controlledProps, {
|
|
8181
8273
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8182
8274
|
}), children)));
|
|
8183
8275
|
});
|
|
8184
|
-
Navbar.defaultProps = defaultProps$
|
|
8276
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8185
8277
|
Navbar.displayName = 'Navbar';
|
|
8186
8278
|
Navbar.Brand = NavbarBrand;
|
|
8187
8279
|
Navbar.Toggle = NavbarToggle;
|
|
8188
8280
|
Navbar.Collapse = NavbarCollapse;
|
|
8189
8281
|
Navbar.Text = NavbarText;
|
|
8190
8282
|
|
|
8191
|
-
var propTypes$
|
|
8283
|
+
var propTypes$1 = {
|
|
8192
8284
|
/**
|
|
8193
8285
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8194
8286
|
* @type {string|number}
|
|
@@ -8234,31 +8326,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8234
8326
|
disabled = _ref.disabled,
|
|
8235
8327
|
active = _ref.active,
|
|
8236
8328
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8237
|
-
props = _objectWithoutPropertiesLoose
|
|
8329
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8238
8330
|
|
|
8239
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
8331
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8240
8332
|
ref: ref
|
|
8241
8333
|
}, props, {
|
|
8242
8334
|
as: NavItem
|
|
8243
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown
|
|
8335
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8244
8336
|
id: id,
|
|
8245
8337
|
eventKey: null,
|
|
8246
8338
|
active: active,
|
|
8247
8339
|
disabled: disabled,
|
|
8248
8340
|
childBsPrefix: bsPrefix,
|
|
8249
8341
|
as: NavLink
|
|
8250
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown
|
|
8342
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8251
8343
|
role: menuRole,
|
|
8252
8344
|
renderOnMount: renderMenuOnMount,
|
|
8253
8345
|
rootCloseEvent: rootCloseEvent
|
|
8254
8346
|
}, children));
|
|
8255
8347
|
});
|
|
8256
8348
|
NavDropdown.displayName = 'NavDropdown';
|
|
8257
|
-
NavDropdown.propTypes = propTypes$
|
|
8258
|
-
NavDropdown.Item = Dropdown
|
|
8259
|
-
NavDropdown.ItemText = Dropdown
|
|
8260
|
-
NavDropdown.Divider = Dropdown
|
|
8261
|
-
NavDropdown.Header = Dropdown
|
|
8349
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8350
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8351
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8352
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8353
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8262
8354
|
|
|
8263
8355
|
/**
|
|
8264
8356
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8499,7 +8591,7 @@ Overlay.propTypes = {
|
|
|
8499
8591
|
onExited: PropTypes.func
|
|
8500
8592
|
};
|
|
8501
8593
|
|
|
8502
|
-
|
|
8594
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8503
8595
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8504
8596
|
|
|
8505
8597
|
function RefHolder() {
|
|
@@ -8513,9 +8605,9 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8513
8605
|
};
|
|
8514
8606
|
|
|
8515
8607
|
return RefHolder;
|
|
8516
|
-
}(React__default.Component);
|
|
8608
|
+
})(React__default.Component);
|
|
8517
8609
|
|
|
8518
|
-
var defaultProps$
|
|
8610
|
+
var defaultProps$8 = {
|
|
8519
8611
|
active: false,
|
|
8520
8612
|
disabled: false,
|
|
8521
8613
|
activeLabel: '(current)'
|
|
@@ -8527,7 +8619,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8527
8619
|
style = _ref.style,
|
|
8528
8620
|
activeLabel = _ref.activeLabel,
|
|
8529
8621
|
children = _ref.children,
|
|
8530
|
-
props = _objectWithoutPropertiesLoose
|
|
8622
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8531
8623
|
|
|
8532
8624
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8533
8625
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8537,14 +8629,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8537
8629
|
active: active,
|
|
8538
8630
|
disabled: disabled
|
|
8539
8631
|
})
|
|
8540
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8632
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8541
8633
|
className: "page-link",
|
|
8542
8634
|
disabled: disabled
|
|
8543
8635
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8544
8636
|
className: "sr-only"
|
|
8545
8637
|
}, activeLabel)));
|
|
8546
8638
|
});
|
|
8547
|
-
PageItem.defaultProps = defaultProps$
|
|
8639
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8548
8640
|
PageItem.displayName = 'PageItem';
|
|
8549
8641
|
|
|
8550
8642
|
function createButton(name, defaultValue, label) {
|
|
@@ -8554,7 +8646,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8554
8646
|
|
|
8555
8647
|
function Button(_ref2) {
|
|
8556
8648
|
var children = _ref2.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose
|
|
8649
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8558
8650
|
|
|
8559
8651
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8560
8652
|
"aria-hidden": "true"
|
|
@@ -8586,10 +8678,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8586
8678
|
className = _ref.className,
|
|
8587
8679
|
children = _ref.children,
|
|
8588
8680
|
size = _ref.size,
|
|
8589
|
-
props = _objectWithoutPropertiesLoose
|
|
8681
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8590
8682
|
|
|
8591
8683
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8592
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends
|
|
8684
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8593
8685
|
ref: ref
|
|
8594
8686
|
}, props, {
|
|
8595
8687
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8608,10 +8700,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8608
8700
|
bsPrefix = _ref.bsPrefix,
|
|
8609
8701
|
className = _ref.className,
|
|
8610
8702
|
children = _ref.children,
|
|
8611
|
-
props = _objectWithoutPropertiesLoose
|
|
8703
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8612
8704
|
|
|
8613
8705
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8614
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8706
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8615
8707
|
ref: ref
|
|
8616
8708
|
}, props, {
|
|
8617
8709
|
className: classnames(bsPrefix, className)
|
|
@@ -8624,17 +8716,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8624
8716
|
bsPrefix = _ref.bsPrefix,
|
|
8625
8717
|
className = _ref.className,
|
|
8626
8718
|
children = _ref.children,
|
|
8627
|
-
props = _objectWithoutPropertiesLoose
|
|
8719
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8628
8720
|
|
|
8629
8721
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8630
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8722
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8631
8723
|
ref: ref
|
|
8632
8724
|
}, props, {
|
|
8633
8725
|
className: classnames(className, bsPrefix)
|
|
8634
8726
|
}), children);
|
|
8635
8727
|
});
|
|
8636
8728
|
|
|
8637
|
-
var defaultProps$
|
|
8729
|
+
var defaultProps$7 = {
|
|
8638
8730
|
placement: 'right'
|
|
8639
8731
|
};
|
|
8640
8732
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8644,33 +8736,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8644
8736
|
style = _ref.style,
|
|
8645
8737
|
children = _ref.children,
|
|
8646
8738
|
content = _ref.content,
|
|
8647
|
-
arrowProps = _ref.arrowProps
|
|
8648
|
-
|
|
8649
|
-
|
|
8650
|
-
props = _objectWithoutPropertiesLoose
|
|
8739
|
+
arrowProps = _ref.arrowProps;
|
|
8740
|
+
_ref.popper;
|
|
8741
|
+
_ref.show;
|
|
8742
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8651
8743
|
|
|
8652
8744
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8653
8745
|
|
|
8654
8746
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8655
8747
|
primaryPlacement = _ref2[0];
|
|
8656
8748
|
|
|
8657
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8749
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8658
8750
|
ref: ref,
|
|
8659
8751
|
role: "tooltip",
|
|
8660
8752
|
style: style,
|
|
8661
8753
|
"x-placement": primaryPlacement,
|
|
8662
8754
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8663
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends
|
|
8755
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8664
8756
|
className: "arrow"
|
|
8665
8757
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8666
8758
|
});
|
|
8667
|
-
Popover.defaultProps = defaultProps$
|
|
8759
|
+
Popover.defaultProps = defaultProps$7;
|
|
8668
8760
|
Popover.Title = PopoverTitle;
|
|
8669
8761
|
Popover.Content = PopoverContent;
|
|
8670
8762
|
|
|
8671
8763
|
var ROUND_PRECISION = 1000;
|
|
8672
8764
|
|
|
8673
|
-
var defaultProps$
|
|
8765
|
+
var defaultProps$6 = {
|
|
8674
8766
|
min: 0,
|
|
8675
8767
|
max: 100,
|
|
8676
8768
|
animated: false,
|
|
@@ -8698,14 +8790,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8698
8790
|
style = _ref.style,
|
|
8699
8791
|
variant = _ref.variant,
|
|
8700
8792
|
bsPrefix = _ref.bsPrefix,
|
|
8701
|
-
props = _objectWithoutPropertiesLoose
|
|
8793
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8702
8794
|
|
|
8703
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8795
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8704
8796
|
ref: ref
|
|
8705
8797
|
}, props, {
|
|
8706
8798
|
role: "progressbar",
|
|
8707
8799
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8708
|
-
style: _extends
|
|
8800
|
+
style: _extends({
|
|
8709
8801
|
width: getPercentage(now, min, max) + "%"
|
|
8710
8802
|
}, style),
|
|
8711
8803
|
"aria-valuenow": now,
|
|
@@ -8718,7 +8810,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8718
8810
|
|
|
8719
8811
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8720
8812
|
var isChild = _ref2.isChild,
|
|
8721
|
-
props = _objectWithoutPropertiesLoose
|
|
8813
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8722
8814
|
|
|
8723
8815
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8724
8816
|
|
|
@@ -8737,9 +8829,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8737
8829
|
variant = props.variant,
|
|
8738
8830
|
className = props.className,
|
|
8739
8831
|
children = props.children,
|
|
8740
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8832
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8741
8833
|
|
|
8742
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8834
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8743
8835
|
ref: ref
|
|
8744
8836
|
}, wrapperProps, {
|
|
8745
8837
|
className: classnames(className, bsPrefix)
|
|
@@ -8760,9 +8852,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8760
8852
|
}, ref));
|
|
8761
8853
|
});
|
|
8762
8854
|
ProgressBar.displayName = 'ProgressBar';
|
|
8763
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8855
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8764
8856
|
|
|
8765
|
-
var defaultProps$
|
|
8857
|
+
var defaultProps$5 = {
|
|
8766
8858
|
aspectRatio: '1by1'
|
|
8767
8859
|
};
|
|
8768
8860
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8770,11 +8862,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8770
8862
|
className = _ref.className,
|
|
8771
8863
|
children = _ref.children,
|
|
8772
8864
|
aspectRatio = _ref.aspectRatio,
|
|
8773
|
-
props = _objectWithoutPropertiesLoose
|
|
8865
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8774
8866
|
|
|
8775
8867
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8776
8868
|
var child = React__default.Children.only(children);
|
|
8777
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8869
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8778
8870
|
ref: ref
|
|
8779
8871
|
}, props, {
|
|
8780
8872
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8782,10 +8874,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8782
8874
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8783
8875
|
}));
|
|
8784
8876
|
});
|
|
8785
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8877
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8786
8878
|
|
|
8787
|
-
var DEVICE_SIZES
|
|
8788
|
-
var defaultProps$
|
|
8879
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8880
|
+
var defaultProps$4 = {
|
|
8789
8881
|
noGutters: false
|
|
8790
8882
|
};
|
|
8791
8883
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8794,12 +8886,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8794
8886
|
noGutters = _ref.noGutters,
|
|
8795
8887
|
_ref$as = _ref.as,
|
|
8796
8888
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8797
|
-
props = _objectWithoutPropertiesLoose
|
|
8889
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8798
8890
|
|
|
8799
8891
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8800
8892
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8801
8893
|
var classes = [];
|
|
8802
|
-
DEVICE_SIZES
|
|
8894
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8803
8895
|
var propValue = props[brkPoint];
|
|
8804
8896
|
delete props[brkPoint];
|
|
8805
8897
|
var cols;
|
|
@@ -8813,14 +8905,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8813
8905
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8814
8906
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8815
8907
|
});
|
|
8816
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8908
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8817
8909
|
ref: ref
|
|
8818
8910
|
}, props, {
|
|
8819
8911
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8820
8912
|
}));
|
|
8821
8913
|
});
|
|
8822
8914
|
Row.displayName = 'Row';
|
|
8823
|
-
Row.defaultProps = defaultProps$
|
|
8915
|
+
Row.defaultProps = defaultProps$4;
|
|
8824
8916
|
|
|
8825
8917
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8826
8918
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8831,11 +8923,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8831
8923
|
_ref$as = _ref.as,
|
|
8832
8924
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8833
8925
|
className = _ref.className,
|
|
8834
|
-
props = _objectWithoutPropertiesLoose
|
|
8926
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8835
8927
|
|
|
8836
8928
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8837
8929
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8838
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8930
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8839
8931
|
ref: ref
|
|
8840
8932
|
}, props, {
|
|
8841
8933
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8843,7 +8935,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8843
8935
|
});
|
|
8844
8936
|
Spinner.displayName = 'Spinner';
|
|
8845
8937
|
|
|
8846
|
-
var propTypes
|
|
8938
|
+
var propTypes = {
|
|
8847
8939
|
/**
|
|
8848
8940
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8849
8941
|
* @type {string|number}
|
|
@@ -8905,7 +8997,7 @@ var propTypes$a = {
|
|
|
8905
8997
|
/** @ignore */
|
|
8906
8998
|
size: PropTypes.string
|
|
8907
8999
|
};
|
|
8908
|
-
var defaultProps$
|
|
9000
|
+
var defaultProps$3 = {
|
|
8909
9001
|
toggleLabel: 'Toggle dropdown',
|
|
8910
9002
|
type: 'button'
|
|
8911
9003
|
};
|
|
@@ -8925,9 +9017,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8925
9017
|
menuRole = _ref.menuRole,
|
|
8926
9018
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8927
9019
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8928
|
-
props = _objectWithoutPropertiesLoose
|
|
9020
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8929
9021
|
|
|
8930
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
9022
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8931
9023
|
ref: ref
|
|
8932
9024
|
}, props, {
|
|
8933
9025
|
as: ButtonGroup
|
|
@@ -8940,7 +9032,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8940
9032
|
target: target,
|
|
8941
9033
|
onClick: onClick,
|
|
8942
9034
|
type: type
|
|
8943
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown
|
|
9035
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8944
9036
|
split: true,
|
|
8945
9037
|
id: id ? id.toString() : undefined,
|
|
8946
9038
|
size: size,
|
|
@@ -8949,15 +9041,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8949
9041
|
childBsPrefix: bsPrefix
|
|
8950
9042
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8951
9043
|
className: "sr-only"
|
|
8952
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown
|
|
9044
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8953
9045
|
align: menuAlign,
|
|
8954
9046
|
role: menuRole,
|
|
8955
9047
|
renderOnMount: renderMenuOnMount,
|
|
8956
9048
|
rootCloseEvent: rootCloseEvent
|
|
8957
9049
|
}, children));
|
|
8958
9050
|
});
|
|
8959
|
-
SplitButton.propTypes = propTypes
|
|
8960
|
-
SplitButton.defaultProps = defaultProps$
|
|
9051
|
+
SplitButton.propTypes = propTypes;
|
|
9052
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8961
9053
|
SplitButton.displayName = 'SplitButton';
|
|
8962
9054
|
|
|
8963
9055
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9005,10 +9097,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9005
9097
|
_ref$as = _ref.as,
|
|
9006
9098
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9007
9099
|
className = _ref.className,
|
|
9008
|
-
props = _objectWithoutPropertiesLoose
|
|
9100
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9009
9101
|
|
|
9010
9102
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9011
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
9103
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9012
9104
|
ref: ref
|
|
9013
9105
|
}, props, {
|
|
9014
9106
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9022,11 +9114,11 @@ function useTabContext(props) {
|
|
|
9022
9114
|
var activeKey = context.activeKey,
|
|
9023
9115
|
getControlledId = context.getControlledId,
|
|
9024
9116
|
getControllerId = context.getControllerId,
|
|
9025
|
-
rest = _objectWithoutPropertiesLoose
|
|
9117
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9026
9118
|
|
|
9027
9119
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9028
9120
|
var key = makeEventKey(props.eventKey);
|
|
9029
|
-
return _extends
|
|
9121
|
+
return _extends({}, props, {
|
|
9030
9122
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9031
9123
|
id: getControlledId(props.eventKey),
|
|
9032
9124
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9051,13 +9143,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9051
9143
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9052
9144
|
Transition = _useTabContext.transition,
|
|
9053
9145
|
_useTabContext$as = _useTabContext.as,
|
|
9054
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9055
|
-
|
|
9056
|
-
rest = _objectWithoutPropertiesLoose
|
|
9146
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9147
|
+
_useTabContext.eventKey;
|
|
9148
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9057
9149
|
|
|
9058
9150
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9059
9151
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9060
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends
|
|
9152
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9061
9153
|
ref: ref,
|
|
9062
9154
|
role: "tabpanel",
|
|
9063
9155
|
"aria-hidden": !active,
|
|
@@ -9107,7 +9199,7 @@ Tab.Container = TabContainer;
|
|
|
9107
9199
|
Tab.Content = TabContent;
|
|
9108
9200
|
Tab.Pane = TabPane;
|
|
9109
9201
|
|
|
9110
|
-
|
|
9202
|
+
React__default.forwardRef(function (_ref, ref) {
|
|
9111
9203
|
var bsPrefix = _ref.bsPrefix,
|
|
9112
9204
|
className = _ref.className,
|
|
9113
9205
|
striped = _ref.striped,
|
|
@@ -9117,11 +9209,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9117
9209
|
size = _ref.size,
|
|
9118
9210
|
variant = _ref.variant,
|
|
9119
9211
|
responsive = _ref.responsive,
|
|
9120
|
-
props = _objectWithoutPropertiesLoose
|
|
9212
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9121
9213
|
|
|
9122
9214
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9123
9215
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9124
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends
|
|
9216
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9125
9217
|
className: classes,
|
|
9126
9218
|
ref: ref
|
|
9127
9219
|
}));
|
|
@@ -9146,7 +9238,7 @@ var ToastContext = React__default.createContext({
|
|
|
9146
9238
|
onClose: function onClose() {}
|
|
9147
9239
|
});
|
|
9148
9240
|
|
|
9149
|
-
var defaultProps$
|
|
9241
|
+
var defaultProps$2 = {
|
|
9150
9242
|
closeLabel: 'Close',
|
|
9151
9243
|
closeButton: true
|
|
9152
9244
|
};
|
|
@@ -9156,7 +9248,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9156
9248
|
closeButton = _ref.closeButton,
|
|
9157
9249
|
className = _ref.className,
|
|
9158
9250
|
children = _ref.children,
|
|
9159
|
-
props = _objectWithoutPropertiesLoose
|
|
9251
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9160
9252
|
|
|
9161
9253
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9162
9254
|
var context = useContext(ToastContext);
|
|
@@ -9165,7 +9257,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9165
9257
|
context.onClose(e);
|
|
9166
9258
|
}
|
|
9167
9259
|
});
|
|
9168
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
9260
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9169
9261
|
ref: ref
|
|
9170
9262
|
}, props, {
|
|
9171
9263
|
className: classnames(bsPrefix, className)
|
|
@@ -9177,7 +9269,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9177
9269
|
}));
|
|
9178
9270
|
});
|
|
9179
9271
|
ToastHeader.displayName = 'ToastHeader';
|
|
9180
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9272
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9181
9273
|
|
|
9182
9274
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9183
9275
|
|
|
@@ -9196,7 +9288,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9196
9288
|
_ref$autohide = _ref.autohide,
|
|
9197
9289
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9198
9290
|
onClose = _ref.onClose,
|
|
9199
|
-
props = _objectWithoutPropertiesLoose
|
|
9291
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9200
9292
|
|
|
9201
9293
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9202
9294
|
// timer in case these values change.
|
|
@@ -9224,7 +9316,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9224
9316
|
};
|
|
9225
9317
|
}, [onClose]);
|
|
9226
9318
|
var hasAnimation = !!(Transition && animation);
|
|
9227
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends
|
|
9319
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9228
9320
|
ref: ref,
|
|
9229
9321
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9230
9322
|
role: "alert",
|
|
@@ -9244,7 +9336,7 @@ Object.assign(Toast, {
|
|
|
9244
9336
|
Header: ToastHeader
|
|
9245
9337
|
});
|
|
9246
9338
|
|
|
9247
|
-
var noop
|
|
9339
|
+
var noop = function noop() {
|
|
9248
9340
|
return undefined;
|
|
9249
9341
|
};
|
|
9250
9342
|
|
|
@@ -9258,7 +9350,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9258
9350
|
value = _ref.value,
|
|
9259
9351
|
disabled = _ref.disabled,
|
|
9260
9352
|
inputRef = _ref.inputRef,
|
|
9261
|
-
props = _objectWithoutPropertiesLoose
|
|
9353
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9262
9354
|
|
|
9263
9355
|
var _useState = useState(false),
|
|
9264
9356
|
focused = _useState[0],
|
|
@@ -9270,7 +9362,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9270
9362
|
var handleBlur = useCallback(function (e) {
|
|
9271
9363
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9272
9364
|
}, []);
|
|
9273
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends
|
|
9365
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9274
9366
|
ref: ref,
|
|
9275
9367
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9276
9368
|
type: undefined,
|
|
@@ -9286,12 +9378,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9286
9378
|
disabled: !!disabled,
|
|
9287
9379
|
onFocus: handleFocus,
|
|
9288
9380
|
onBlur: handleBlur,
|
|
9289
|
-
onChange: onChange || noop
|
|
9381
|
+
onChange: onChange || noop
|
|
9290
9382
|
}), children);
|
|
9291
9383
|
});
|
|
9292
9384
|
ToggleButton.displayName = 'ToggleButton';
|
|
9293
9385
|
|
|
9294
|
-
var defaultProps$
|
|
9386
|
+
var defaultProps$1 = {
|
|
9295
9387
|
type: 'radio',
|
|
9296
9388
|
vertical: false
|
|
9297
9389
|
};
|
|
@@ -9304,7 +9396,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9304
9396
|
name = _useUncontrolled.name,
|
|
9305
9397
|
value = _useUncontrolled.value,
|
|
9306
9398
|
onChange = _useUncontrolled.onChange,
|
|
9307
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9399
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9308
9400
|
|
|
9309
9401
|
var getValues = function getValues() {
|
|
9310
9402
|
return value == null ? [] : [].concat(value);
|
|
@@ -9333,7 +9425,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9333
9425
|
};
|
|
9334
9426
|
|
|
9335
9427
|
!(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;
|
|
9336
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends
|
|
9428
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9337
9429
|
ref: ref,
|
|
9338
9430
|
toggle: true
|
|
9339
9431
|
}), map(children, function (child) {
|
|
@@ -9354,10 +9446,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9354
9446
|
});
|
|
9355
9447
|
}));
|
|
9356
9448
|
});
|
|
9357
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9449
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9358
9450
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9359
9451
|
|
|
9360
|
-
var defaultProps
|
|
9452
|
+
var defaultProps = {
|
|
9361
9453
|
placement: 'right'
|
|
9362
9454
|
};
|
|
9363
9455
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9366,32 +9458,32 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9366
9458
|
className = _ref.className,
|
|
9367
9459
|
style = _ref.style,
|
|
9368
9460
|
children = _ref.children,
|
|
9369
|
-
arrowProps = _ref.arrowProps
|
|
9370
|
-
|
|
9371
|
-
|
|
9372
|
-
props = _objectWithoutPropertiesLoose
|
|
9461
|
+
arrowProps = _ref.arrowProps;
|
|
9462
|
+
_ref.popper;
|
|
9463
|
+
_ref.show;
|
|
9464
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9373
9465
|
|
|
9374
9466
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9375
9467
|
|
|
9376
9468
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9377
9469
|
primaryPlacement = _ref2[0];
|
|
9378
9470
|
|
|
9379
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
9471
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9380
9472
|
ref: ref,
|
|
9381
9473
|
style: style,
|
|
9382
9474
|
role: "tooltip",
|
|
9383
9475
|
"x-placement": primaryPlacement,
|
|
9384
9476
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9385
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends
|
|
9477
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9386
9478
|
className: "arrow"
|
|
9387
9479
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9388
9480
|
className: bsPrefix + "-inner"
|
|
9389
9481
|
}, children));
|
|
9390
9482
|
});
|
|
9391
|
-
Tooltip.defaultProps = defaultProps
|
|
9483
|
+
Tooltip.defaultProps = defaultProps;
|
|
9392
9484
|
Tooltip.displayName = 'Tooltip';
|
|
9393
9485
|
|
|
9394
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9486
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9395
9487
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9396
9488
|
styleInject(css);
|
|
9397
9489
|
|
|
@@ -9478,11 +9570,11 @@ var Filter = function Filter(_ref) {
|
|
|
9478
9570
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9479
9571
|
grandChildData = _useState6[0],
|
|
9480
9572
|
setGrandChildData = _useState6[1];
|
|
9481
|
-
/*
|
|
9482
|
-
{parent: showAll,
|
|
9483
|
-
chidlren: show selected from parent,
|
|
9484
|
-
grandchildren: show selected from children
|
|
9485
|
-
}
|
|
9573
|
+
/*
|
|
9574
|
+
{parent: showAll,
|
|
9575
|
+
chidlren: show selected from parent,
|
|
9576
|
+
grandchildren: show selected from children
|
|
9577
|
+
}
|
|
9486
9578
|
*/
|
|
9487
9579
|
|
|
9488
9580
|
|
|
@@ -9497,7 +9589,7 @@ var Filter = function Filter(_ref) {
|
|
|
9497
9589
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9498
9590
|
if (type === 'parent') {
|
|
9499
9591
|
setParentData(function (prevState) {
|
|
9500
|
-
return _extends$
|
|
9592
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9501
9593
|
});
|
|
9502
9594
|
if (group && group.children && group.children.length > 0) {
|
|
9503
9595
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9511,7 +9603,7 @@ var Filter = function Filter(_ref) {
|
|
|
9511
9603
|
}
|
|
9512
9604
|
if (type === 'child') {
|
|
9513
9605
|
setChildData(function (prevState) {
|
|
9514
|
-
return _extends$
|
|
9606
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9515
9607
|
});
|
|
9516
9608
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9517
9609
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9530,7 +9622,7 @@ var Filter = function Filter(_ref) {
|
|
|
9530
9622
|
}
|
|
9531
9623
|
if (type === 'grandchild') {
|
|
9532
9624
|
setGrandChildData(function (prevState) {
|
|
9533
|
-
return _extends$
|
|
9625
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9534
9626
|
});
|
|
9535
9627
|
//handle filter
|
|
9536
9628
|
if (!group._id) {
|
|
@@ -9553,7 +9645,7 @@ var Filter = function Filter(_ref) {
|
|
|
9553
9645
|
DropdownButton,
|
|
9554
9646
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9555
9647
|
React__default.createElement(
|
|
9556
|
-
Dropdown
|
|
9648
|
+
Dropdown.Item,
|
|
9557
9649
|
{ onSelect: function onSelect() {
|
|
9558
9650
|
return handleFilterSelect({}, 'parent');
|
|
9559
9651
|
} },
|
|
@@ -9562,7 +9654,7 @@ var Filter = function Filter(_ref) {
|
|
|
9562
9654
|
parentData.data.map(function (docGroup) {
|
|
9563
9655
|
if (!docGroup._id) return null;
|
|
9564
9656
|
return React__default.createElement(
|
|
9565
|
-
Dropdown
|
|
9657
|
+
Dropdown.Item,
|
|
9566
9658
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9567
9659
|
return handleFilterSelect(docGroup, 'parent');
|
|
9568
9660
|
} },
|
|
@@ -9574,7 +9666,7 @@ var Filter = function Filter(_ref) {
|
|
|
9574
9666
|
DropdownButton,
|
|
9575
9667
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9576
9668
|
React__default.createElement(
|
|
9577
|
-
Dropdown
|
|
9669
|
+
Dropdown.Item,
|
|
9578
9670
|
{ onSelect: function onSelect() {
|
|
9579
9671
|
return handleFilterSelect({}, 'child');
|
|
9580
9672
|
} },
|
|
@@ -9583,7 +9675,7 @@ var Filter = function Filter(_ref) {
|
|
|
9583
9675
|
childData.data.map(function (docGroup) {
|
|
9584
9676
|
if (!docGroup._id) return null;
|
|
9585
9677
|
return React__default.createElement(
|
|
9586
|
-
Dropdown
|
|
9678
|
+
Dropdown.Item,
|
|
9587
9679
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9588
9680
|
return handleFilterSelect(docGroup, 'child');
|
|
9589
9681
|
} },
|
|
@@ -9595,7 +9687,7 @@ var Filter = function Filter(_ref) {
|
|
|
9595
9687
|
DropdownButton,
|
|
9596
9688
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9597
9689
|
React__default.createElement(
|
|
9598
|
-
Dropdown
|
|
9690
|
+
Dropdown.Item,
|
|
9599
9691
|
{ onSelect: function onSelect() {
|
|
9600
9692
|
return handleFilterSelect({}, 'grandchild');
|
|
9601
9693
|
} },
|
|
@@ -9604,7 +9696,7 @@ var Filter = function Filter(_ref) {
|
|
|
9604
9696
|
grandChildData.data.map(function (docGroup) {
|
|
9605
9697
|
if (!docGroup._id) return null;
|
|
9606
9698
|
return React__default.createElement(
|
|
9607
|
-
Dropdown
|
|
9699
|
+
Dropdown.Item,
|
|
9608
9700
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9609
9701
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9610
9702
|
} },
|
|
@@ -9660,7 +9752,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9660
9752
|
while (1) {
|
|
9661
9753
|
switch (_context.prev = _context.next) {
|
|
9662
9754
|
case 0:
|
|
9663
|
-
newParams = _extends$
|
|
9755
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9664
9756
|
filterQuery = void 0;
|
|
9665
9757
|
|
|
9666
9758
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9762,12 +9854,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9762
9854
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9763
9855
|
var _ref4;
|
|
9764
9856
|
|
|
9765
|
-
var urlQuery, pathname,
|
|
9857
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9766
9858
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9767
9859
|
while (1) {
|
|
9768
9860
|
switch (_context2.prev = _context2.next) {
|
|
9769
9861
|
case 0:
|
|
9770
|
-
urlQuery = ctx.query, pathname = ctx.pathname
|
|
9862
|
+
urlQuery = ctx.query, pathname = ctx.pathname;
|
|
9771
9863
|
identifier = pathname.replace('/', '');
|
|
9772
9864
|
itemsPerPage = 10;
|
|
9773
9865
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|