@mjhls/mjh-framework 1.0.880 → 1.0.881-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-9a2e923a.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-957a1996.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1274 -1392
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +42 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +267 -309
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-36e54d77.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +366 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +138 -143
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +27 -28
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +94 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +468 -81
- package/dist/cjs/MediaSeriesLanding.js +1129 -1118
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +145 -150
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/Pagination-d6a59f99.js +62 -0
- package/dist/cjs/PartnerDetailListing.js +3917 -116
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +41 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +133 -137
- package/dist/cjs/QueueDeckExpanded.js +1649 -317
- package/dist/cjs/RecentNews.js +21 -22
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ce3261cb.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-5ec44406.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +27 -28
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +51 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +265 -268
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-3f9d0f2f.js → entities-310b46ee.js} +1 -1
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +18 -18
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-efca863c.js → index-be0c82be.js} +30 -36
- package/dist/cjs/{index-22bdde81.js → index-bf60a71c.js} +1081 -1080
- package/dist/cjs/{index-8041a4eb.js → index-e2e62963.js} +1 -11
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-8123cf40.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +165 -170
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-6f784d85.js → util-f2c1b65b.js} +1 -1
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +25 -25
- package/dist/esm/AD300x250x600.js +25 -25
- package/dist/esm/AD728x90.js +28 -28
- package/dist/esm/ADFloatingFooter.js +27 -27
- package/dist/esm/ADFooter.js +9 -9
- package/dist/esm/ADGutter.js +27 -27
- package/dist/esm/{ADInfeed-8c5f8c58.js → ADInfeed-0c13c803.js} +11 -11
- package/dist/esm/ADSkyscraper.js +27 -27
- package/dist/esm/ADSponsoredResources.js +27 -27
- package/dist/esm/ADWebcast.js +27 -27
- package/dist/esm/ADWelcome.js +28 -28
- package/dist/esm/{ADlgInfeed-2316e091.js → ADlgInfeed-e4e2031a.js} +8 -8
- package/dist/esm/AccordionPanel.js +22 -22
- package/dist/esm/AdSlot.js +23 -23
- package/dist/esm/AdSlotsProvider.js +907 -15
- package/dist/esm/AlgoliaSearch.js +703 -820
- package/dist/esm/AlphabeticList.js +20 -20
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleProgramLandingPage.js +54 -54
- package/dist/esm/ArticleSeriesLandingPage.js +37 -35
- package/dist/esm/ArticleSeriesListing.js +55 -55
- package/dist/esm/Auth.js +1487 -659
- package/dist/esm/AuthWrapper.js +265 -306
- package/dist/esm/{AuthorComponent-46a745ba.js → AuthorComponent-e6f95c2f.js} +11 -11
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-52cf21c5.js → BlockContent-e9b4ddcf.js} +35 -35
- package/dist/esm/Breadcrumbs.js +15 -15
- package/dist/esm/CMEDeck.js +77 -77
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +28 -28
- package/dist/esm/Column3.js +54 -54
- package/dist/esm/ConferenceArticleCard.js +38 -38
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +96 -96
- package/dist/esm/DeckQueue.js +362 -83
- package/dist/esm/{Dfp-4ca12f2e.js → Dfp-f867d061.js} +20 -20
- package/dist/esm/EventsDeck.js +129 -129
- package/dist/esm/ExternalResources.js +72 -72
- package/dist/esm/Feature.js +21 -21
- package/dist/esm/ForbesHero.js +33 -33
- package/dist/esm/GridContent.js +199 -199
- package/dist/esm/GridHero.js +35 -35
- package/dist/esm/GroupDeck.js +45 -45
- package/dist/esm/HamMagazine.js +114 -114
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +13 -13
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +68 -68
- package/dist/esm/HorizontalHero.js +25 -25
- package/dist/esm/IssueContentDeck.js +59 -59
- package/dist/esm/IssueDeck.js +63 -63
- package/dist/esm/IssueLanding.js +91 -90
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +33 -33
- package/dist/esm/MasterDeck.js +466 -78
- package/dist/esm/MediaSeriesLanding.js +853 -839
- package/dist/esm/NavDvm.js +57 -57
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +124 -124
- package/dist/esm/NavNative.js +114 -114
- package/dist/esm/OncliveHero.js +20 -19
- package/dist/esm/OncliveLargeHero.js +58 -58
- package/dist/esm/PageFilter.js +10 -10
- package/dist/esm/Pagination-f7c4c5ae.js +57 -0
- package/dist/esm/PartnerDetailListing.js +3913 -112
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +12 -12
- package/dist/esm/PubSection.js +38 -37
- package/dist/esm/PubToc.js +10 -10
- package/dist/esm/PublicationDeck.js +56 -56
- package/dist/esm/PublicationLanding.js +120 -120
- package/dist/esm/QueueDeckExpanded.js +1616 -284
- package/dist/esm/RecentNews.js +19 -19
- package/dist/esm/RelatedContent.js +51 -51
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +11 -11
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +30 -30
- package/dist/esm/{SeriesSlider-7a6c45ce.js → SeriesSlider-ce19fa25.js} +31 -31
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +32 -32
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-bdecba55.js → SocialSearchComponent-b5be0e6c.js} +30 -30
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +56 -56
- package/dist/esm/TaxonomyDescription.js +48 -48
- package/dist/esm/TemplateNormal.js +68 -68
- package/dist/esm/ThumbnailCard.js +17 -17
- package/dist/esm/Ustream.js +24 -24
- package/dist/esm/VerticalHero.js +17 -17
- package/dist/esm/VideoProgramLandingPage.js +65 -65
- package/dist/esm/VideoSeriesCard.js +26 -26
- package/dist/esm/VideoSeriesFilter.js +13 -13
- package/dist/esm/VideoSeriesLandingPage.js +42 -40
- package/dist/esm/VideoSeriesListing.js +72 -72
- package/dist/esm/View.js +247 -246
- package/dist/esm/YahooHero.js +33 -33
- package/dist/esm/YoutubeGroup.js +52 -52
- package/dist/esm/{_is-array-893ab020.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-f089461c.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-169d6272.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-50a6b9a3.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-b4dfe691.js → asyncToGenerator-64812e90.js} +31 -31
- package/dist/esm/{brightcove-react-player-loader.es-b43c695a.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/{core.get-iterator-method-e903ff31.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/{define-property-99e66838.js → define-property-6d26cb48.js} +6 -6
- package/dist/esm/{defineProperty-8fa0bc8d.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-932b50cf.js → entities-7cc3bf45.js} +1 -1
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-dc6a71fd.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +12 -12
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/{getTargeting-ff2c9409.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/esm/{index-2446af28.js → index-41a678ea.js} +6 -6
- package/dist/esm/{index-35bdcc81.js → index-5f7e79e7.js} +10 -10
- package/dist/esm/{index-0dbff1d1.js → index-73819142.js} +30 -36
- package/dist/esm/{index-67e1773f.js → index-aaa2dae0.js} +2 -11
- package/dist/esm/{index-c9bfc91f.js → index-e495ac6f.js} +1039 -1028
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8016b507.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +138 -140
- package/dist/esm/{inherits-8a801a18.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-425c8ab0.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-91f9716f.js → react-social-icons-a7d5c5c7.js} +20 -20
- package/dist/esm/{slicedToArray-ca2c8b8d.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-7b1c0e23.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-83d9eb10.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-41166338.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-3ab476bf.js → util-7700fc59.js} +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/dist/esm/{web.dom.iterable-fdf034f5.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +112 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/main-025fdc78.js +0 -973
- package/dist/esm/main-4136096f.js +0 -961
- package/dist/esm/stringify-c21932b3.js +0 -15
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
import { _ as _defineProperty } from './defineProperty-8fa0bc8d.js';
|
|
2
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-b4dfe691.js';
|
|
3
|
-
import { _ as _typeof } from './typeof-83d9eb10.js';
|
|
4
|
-
import { _ as _extends$1 } from './extends-dc6a71fd.js';
|
|
5
|
-
import { _ as _slicedToArray } from './slicedToArray-ca2c8b8d.js';
|
|
6
|
-
import React, { 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-67e1773f.js';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import ReactDOM from 'react-dom';
|
|
10
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
11
|
-
import
|
|
12
|
-
import MasterDeck from './MasterDeck.js';
|
|
13
|
-
import { L as LazyLoad } from './index-35bdcc81.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-52cf21c5.js';
|
|
18
|
-
import { g as getSerializers } from './index-c9bfc91f.js';
|
|
19
|
-
import './define-property-99e66838.js';
|
|
20
|
-
import './core.get-iterator-method-e903ff31.js';
|
|
21
|
-
import './web.dom.iterable-fdf034f5.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
22
3
|
import './_library-528f1934.js';
|
|
23
|
-
import './_iter-detect-
|
|
24
|
-
import './
|
|
25
|
-
import './_object-pie-
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends$2 } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
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';
|
|
30
15
|
import './events-6c3a7a63.js';
|
|
16
|
+
import './index-41a678ea.js';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
31
18
|
import 'react-bootstrap/Container';
|
|
32
19
|
import 'react-bootstrap/Row';
|
|
33
20
|
import 'react-bootstrap/Col';
|
|
34
21
|
import 'react-bootstrap/Card';
|
|
22
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
35
23
|
import 'next/router';
|
|
36
|
-
import './
|
|
37
|
-
import './debounce-
|
|
38
|
-
import './
|
|
39
|
-
import './
|
|
40
|
-
import '
|
|
41
|
-
import './visibility-sensor-
|
|
42
|
-
import './
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
24
|
+
import './isSymbol-1981418f.js';
|
|
25
|
+
import './debounce-9207d8ee.js';
|
|
26
|
+
import './toNumber-2f7a84cd.js';
|
|
27
|
+
import './index.es-29c1cef5.js';
|
|
28
|
+
import ReactDOM from 'react-dom';
|
|
29
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
30
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
|
+
import urlFor from './urlFor.js';
|
|
33
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
34
|
+
import './main-c0612122.js';
|
|
35
|
+
import './entities-7cc3bf45.js';
|
|
36
|
+
import './stringify-70b72959.js';
|
|
37
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-64812e90.js';
|
|
47
38
|
import './Segment.js';
|
|
48
|
-
import './
|
|
49
|
-
import './
|
|
50
|
-
import '
|
|
39
|
+
import './Beam.js';
|
|
40
|
+
import './AdSlot.js';
|
|
41
|
+
import './ADInfeed-0c13c803.js';
|
|
42
|
+
import './lodash-17fdfebb.js';
|
|
43
|
+
import './ADlgInfeed-e4e2031a.js';
|
|
44
|
+
import 'react-bootstrap/Button';
|
|
45
|
+
import 'react-bootstrap/Spinner';
|
|
46
|
+
import './Pagination-f7c4c5ae.js';
|
|
47
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
51
48
|
import './index-c7e2ac95.js';
|
|
52
|
-
import './
|
|
53
|
-
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
49
|
+
import './smoothscroll-0cd4c7a6.js';
|
|
54
50
|
import './GroupDeck.js';
|
|
55
|
-
import '
|
|
56
|
-
import './
|
|
51
|
+
import 'react-bootstrap';
|
|
52
|
+
import './iconBase-602d52fe.js';
|
|
53
|
+
import './index.esm-29e48d38.js';
|
|
54
|
+
import { g as getSerializers } from './index-e495ac6f.js';
|
|
55
|
+
import './util-7700fc59.js';
|
|
56
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
|
-
import './
|
|
59
|
+
import './SocialShare.js';
|
|
60
|
+
import './_object-to-array-c54dd835.js';
|
|
60
61
|
import 'react-bootstrap/Pagination';
|
|
61
|
-
import 'react-bootstrap/Button';
|
|
62
|
-
import './entities-932b50cf.js';
|
|
63
|
-
import './index.esm-3fdda599.js';
|
|
64
|
-
import './iconBase-602d52fe.js';
|
|
65
62
|
import 'react-bootstrap/Figure';
|
|
66
63
|
import 'react-bootstrap/OverlayTrigger';
|
|
67
64
|
import 'react-bootstrap/Tooltip';
|
|
68
65
|
import 'react-bootstrap/Popover';
|
|
66
|
+
import MasterDeck from './MasterDeck.js';
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-d7d9b577.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
69
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
|
+
import Link from 'next/link';
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
73
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -160,7 +162,7 @@ function useUncontrolled(props, config) {
|
|
|
160
162
|
var _ref = result,
|
|
161
163
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
164
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
165
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
166
|
|
|
165
167
|
var handlerName = config[fieldName];
|
|
166
168
|
|
|
@@ -168,26 +170,26 @@ function useUncontrolled(props, config) {
|
|
|
168
170
|
value = _useUncontrolledProp[0],
|
|
169
171
|
handler = _useUncontrolledProp[1];
|
|
170
172
|
|
|
171
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
173
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
174
|
}, props);
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
function _inheritsLoose(subClass, superClass) {
|
|
176
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
177
179
|
subClass.prototype.constructor = subClass;
|
|
178
|
-
|
|
180
|
+
subClass.__proto__ = superClass;
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
var ThemeContext =
|
|
182
|
-
ThemeContext.Consumer
|
|
183
|
-
ThemeContext.Provider;
|
|
183
|
+
var ThemeContext = React__default.createContext({});
|
|
184
|
+
var Consumer = ThemeContext.Consumer,
|
|
185
|
+
Provider = ThemeContext.Provider;
|
|
184
186
|
|
|
185
187
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
186
188
|
var prefixes = useContext(ThemeContext);
|
|
187
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React__default.createContext(null);
|
|
191
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
192
194
|
if (href === void 0) {
|
|
193
195
|
href = null;
|
|
@@ -197,11 +199,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
199
|
return href || null;
|
|
198
200
|
};
|
|
199
201
|
|
|
200
|
-
var context
|
|
201
|
-
context
|
|
202
|
+
var context = React__default.createContext(null);
|
|
203
|
+
context.displayName = 'AccordionContext';
|
|
202
204
|
|
|
203
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
204
|
-
var contextEventKey = useContext(context
|
|
206
|
+
var contextEventKey = useContext(context);
|
|
205
207
|
var onSelect = useContext(SelectableContext);
|
|
206
208
|
return function (e) {
|
|
207
209
|
/*
|
|
@@ -213,13 +215,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
213
215
|
if (onClick) onClick(e);
|
|
214
216
|
};
|
|
215
217
|
}
|
|
216
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
217
219
|
var _ref$as = _ref.as,
|
|
218
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
219
221
|
children = _ref.children,
|
|
220
222
|
eventKey = _ref.eventKey,
|
|
221
223
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
224
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
225
|
|
|
224
226
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
227
|
|
|
@@ -227,22 +229,22 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
227
229
|
props.type = 'button';
|
|
228
230
|
}
|
|
229
231
|
|
|
230
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
231
233
|
ref: ref,
|
|
232
234
|
onClick: accordionOnClick
|
|
233
235
|
}, props), children);
|
|
234
236
|
});
|
|
235
237
|
|
|
236
|
-
function ownerDocument
|
|
238
|
+
function ownerDocument(node) {
|
|
237
239
|
return node && node.ownerDocument || document;
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
function ownerWindow(node) {
|
|
241
|
-
var doc = ownerDocument
|
|
243
|
+
var doc = ownerDocument(node);
|
|
242
244
|
return doc && doc.defaultView || window;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
|
-
function getComputedStyle$
|
|
247
|
+
function getComputedStyle$1(node, psuedoElement) {
|
|
246
248
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
247
249
|
}
|
|
248
250
|
|
|
@@ -271,7 +273,7 @@ function style(node, property) {
|
|
|
271
273
|
var transforms = '';
|
|
272
274
|
|
|
273
275
|
if (typeof property === 'string') {
|
|
274
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
276
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$1(node).getPropertyValue(hyphenateStyleName(property));
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
Object.keys(property).forEach(function (key) {
|
|
@@ -411,7 +413,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
411
413
|
exit: PropTypes.number,
|
|
412
414
|
appear: PropTypes.number
|
|
413
415
|
}).isRequired]) : null;
|
|
414
|
-
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
416
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
415
417
|
enter: PropTypes.string,
|
|
416
418
|
exit: PropTypes.string,
|
|
417
419
|
active: PropTypes.string
|
|
@@ -424,7 +426,7 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
424
426
|
exitActive: PropTypes.string
|
|
425
427
|
})]) : null;
|
|
426
428
|
|
|
427
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
428
430
|
|
|
429
431
|
var UNMOUNTED = 'unmounted';
|
|
430
432
|
var EXITED = 'exited';
|
|
@@ -793,35 +795,35 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
793
795
|
}
|
|
794
796
|
|
|
795
797
|
var _this$props = this.props,
|
|
796
|
-
children = _this$props.children
|
|
797
|
-
_this$props.in
|
|
798
|
-
_this$props.mountOnEnter
|
|
799
|
-
_this$props.unmountOnExit
|
|
800
|
-
_this$props.appear
|
|
801
|
-
_this$props.enter
|
|
802
|
-
_this$props.exit
|
|
803
|
-
_this$props.timeout
|
|
804
|
-
_this$props.addEndListener
|
|
805
|
-
_this$props.onEnter
|
|
806
|
-
_this$props.onEntering
|
|
807
|
-
_this$props.onEntered
|
|
808
|
-
_this$props.onExit
|
|
809
|
-
_this$props.onExiting
|
|
810
|
-
_this$props.onExited
|
|
811
|
-
_this$props.nodeRef
|
|
812
|
-
|
|
798
|
+
children = _this$props.children,
|
|
799
|
+
_in = _this$props.in,
|
|
800
|
+
_mountOnEnter = _this$props.mountOnEnter,
|
|
801
|
+
_unmountOnExit = _this$props.unmountOnExit,
|
|
802
|
+
_appear = _this$props.appear,
|
|
803
|
+
_enter = _this$props.enter,
|
|
804
|
+
_exit = _this$props.exit,
|
|
805
|
+
_timeout = _this$props.timeout,
|
|
806
|
+
_addEndListener = _this$props.addEndListener,
|
|
807
|
+
_onEnter = _this$props.onEnter,
|
|
808
|
+
_onEntering = _this$props.onEntering,
|
|
809
|
+
_onEntered = _this$props.onEntered,
|
|
810
|
+
_onExit = _this$props.onExit,
|
|
811
|
+
_onExiting = _this$props.onExiting,
|
|
812
|
+
_onExited = _this$props.onExited,
|
|
813
|
+
_nodeRef = _this$props.nodeRef,
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
813
815
|
|
|
814
816
|
return (
|
|
815
817
|
/*#__PURE__*/
|
|
816
818
|
// allows for nested Transitions
|
|
817
|
-
|
|
819
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
818
820
|
value: null
|
|
819
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
820
822
|
);
|
|
821
823
|
};
|
|
822
824
|
|
|
823
825
|
return Transition;
|
|
824
|
-
}(
|
|
826
|
+
}(React__default.Component);
|
|
825
827
|
|
|
826
828
|
Transition.contextType = TransitionGroupContext;
|
|
827
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1009,7 +1011,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1009
1011
|
onExited: PropTypes.func
|
|
1010
1012
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1011
1013
|
|
|
1012
|
-
function noop
|
|
1014
|
+
function noop() {}
|
|
1013
1015
|
|
|
1014
1016
|
Transition.defaultProps = {
|
|
1015
1017
|
in: false,
|
|
@@ -1018,12 +1020,12 @@ Transition.defaultProps = {
|
|
|
1018
1020
|
appear: false,
|
|
1019
1021
|
enter: true,
|
|
1020
1022
|
exit: true,
|
|
1021
|
-
onEnter: noop
|
|
1022
|
-
onEntering: noop
|
|
1023
|
-
onEntered: noop
|
|
1024
|
-
onExit: noop
|
|
1025
|
-
onExiting: noop
|
|
1026
|
-
onExited: noop
|
|
1023
|
+
onEnter: noop,
|
|
1024
|
+
onEntering: noop,
|
|
1025
|
+
onEntered: noop,
|
|
1026
|
+
onExit: noop,
|
|
1027
|
+
onExiting: noop,
|
|
1028
|
+
onExited: noop
|
|
1027
1029
|
};
|
|
1028
1030
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1029
1031
|
Transition.EXITED = EXITED;
|
|
@@ -1089,7 +1091,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1089
1091
|
}
|
|
1090
1092
|
|
|
1091
1093
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1092
|
-
var defaultProps
|
|
1094
|
+
var defaultProps = {
|
|
1093
1095
|
in: false,
|
|
1094
1096
|
timeout: 300,
|
|
1095
1097
|
mountOnEnter: false,
|
|
@@ -1097,7 +1099,7 @@ var defaultProps$E = {
|
|
|
1097
1099
|
appear: false,
|
|
1098
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1099
1101
|
};
|
|
1100
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1101
1103
|
var onEnter = _ref.onEnter,
|
|
1102
1104
|
onEntering = _ref.onEntering,
|
|
1103
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1109,7 +1111,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1109
1111
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1110
1112
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1111
1113
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1112
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1114
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
1115
|
|
|
1114
1116
|
/* Compute dimension */
|
|
1115
1117
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1144,8 +1146,8 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1144
1146
|
elem.style[computedDimension] = null;
|
|
1145
1147
|
}, onExiting);
|
|
1146
1148
|
}, [computedDimension, onExiting]);
|
|
1147
|
-
return /*#__PURE__*/
|
|
1148
|
-
, _extends({
|
|
1149
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1150
|
+
, _extends$1({
|
|
1149
1151
|
ref: ref,
|
|
1150
1152
|
addEndListener: transitionEnd
|
|
1151
1153
|
}, props, {
|
|
@@ -1156,33 +1158,33 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1156
1158
|
onExit: handleExit,
|
|
1157
1159
|
onExiting: handleExiting
|
|
1158
1160
|
}), function (state, innerProps) {
|
|
1159
|
-
return
|
|
1161
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1160
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1161
1163
|
}));
|
|
1162
1164
|
});
|
|
1163
1165
|
}); // @ts-ignore
|
|
1164
1166
|
|
|
1165
1167
|
// @ts-ignore
|
|
1166
|
-
Collapse.defaultProps = defaultProps
|
|
1168
|
+
Collapse.defaultProps = defaultProps;
|
|
1167
1169
|
|
|
1168
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1169
1171
|
var children = _ref.children,
|
|
1170
1172
|
eventKey = _ref.eventKey,
|
|
1171
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1173
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1172
1174
|
|
|
1173
|
-
var contextEventKey = useContext(context
|
|
1175
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1174
1176
|
// from collapsing the accordion when clicked.
|
|
1175
1177
|
|
|
1176
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1177
1179
|
value: null
|
|
1178
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1179
1181
|
ref: ref,
|
|
1180
1182
|
in: contextEventKey === eventKey
|
|
1181
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1182
1184
|
});
|
|
1183
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1184
1186
|
|
|
1185
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1186
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1187
1189
|
activeKey: 'onSelect'
|
|
1188
1190
|
}),
|
|
@@ -1193,14 +1195,14 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1193
1195
|
children = _useUncontrolled.children,
|
|
1194
1196
|
className = _useUncontrolled.className,
|
|
1195
1197
|
onSelect = _useUncontrolled.onSelect,
|
|
1196
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1198
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
1199
|
|
|
1198
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1199
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1200
1202
|
value: activeKey || null
|
|
1201
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1202
1204
|
value: onSelect || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1204
1206
|
ref: ref
|
|
1205
1207
|
}, controlledProps, {
|
|
1206
1208
|
className: finalClassName
|
|
@@ -1236,7 +1238,7 @@ function useEventCallback(fn) {
|
|
|
1236
1238
|
}
|
|
1237
1239
|
|
|
1238
1240
|
var _fadeStyles;
|
|
1239
|
-
var defaultProps$
|
|
1241
|
+
var defaultProps$1 = {
|
|
1240
1242
|
in: false,
|
|
1241
1243
|
timeout: 300,
|
|
1242
1244
|
mountOnEnter: false,
|
|
@@ -1244,60 +1246,60 @@ var defaultProps$D = {
|
|
|
1244
1246
|
appear: false
|
|
1245
1247
|
};
|
|
1246
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1247
|
-
var Fade =
|
|
1249
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1248
1250
|
var className = _ref.className,
|
|
1249
1251
|
children = _ref.children,
|
|
1250
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1252
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1251
1253
|
|
|
1252
1254
|
var handleEnter = useCallback(function (node) {
|
|
1253
1255
|
triggerBrowserReflow(node);
|
|
1254
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1255
1257
|
}, [props]);
|
|
1256
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1257
1259
|
ref: ref,
|
|
1258
1260
|
addEndListener: transitionEnd
|
|
1259
1261
|
}, props, {
|
|
1260
1262
|
onEnter: handleEnter
|
|
1261
1263
|
}), function (status, innerProps) {
|
|
1262
|
-
return
|
|
1264
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1263
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1264
1266
|
}));
|
|
1265
1267
|
});
|
|
1266
1268
|
});
|
|
1267
|
-
Fade.defaultProps = defaultProps$
|
|
1269
|
+
Fade.defaultProps = defaultProps$1;
|
|
1268
1270
|
Fade.displayName = 'Fade';
|
|
1269
1271
|
|
|
1270
|
-
var propTypes
|
|
1272
|
+
var propTypes = {
|
|
1271
1273
|
label: PropTypes.string.isRequired,
|
|
1272
1274
|
onClick: PropTypes.func
|
|
1273
1275
|
};
|
|
1274
|
-
var defaultProps$
|
|
1276
|
+
var defaultProps$2 = {
|
|
1275
1277
|
label: 'Close'
|
|
1276
1278
|
};
|
|
1277
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1278
1280
|
var label = _ref.label,
|
|
1279
1281
|
onClick = _ref.onClick,
|
|
1280
1282
|
className = _ref.className,
|
|
1281
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1283
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1282
1284
|
|
|
1283
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1284
1286
|
ref: ref,
|
|
1285
1287
|
type: "button",
|
|
1286
1288
|
className: classnames('close', className),
|
|
1287
1289
|
onClick: onClick
|
|
1288
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1289
1291
|
"aria-hidden": "true"
|
|
1290
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1291
1293
|
className: "sr-only"
|
|
1292
1294
|
}, label));
|
|
1293
1295
|
});
|
|
1294
1296
|
CloseButton.displayName = 'CloseButton';
|
|
1295
|
-
CloseButton.propTypes = propTypes
|
|
1296
|
-
CloseButton.defaultProps = defaultProps$
|
|
1297
|
+
CloseButton.propTypes = propTypes;
|
|
1298
|
+
CloseButton.defaultProps = defaultProps$2;
|
|
1297
1299
|
|
|
1298
1300
|
var divWithClassName = (function (className) {
|
|
1299
|
-
return
|
|
1300
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1301
1303
|
ref: ref,
|
|
1302
1304
|
className: classnames(p.className, className)
|
|
1303
1305
|
}));
|
|
@@ -1323,15 +1325,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1323
1325
|
Component = _ref.Component,
|
|
1324
1326
|
defaultProps = _ref.defaultProps;
|
|
1325
1327
|
|
|
1326
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1327
1329
|
var className = _ref2.className,
|
|
1328
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1329
1331
|
_ref2$as = _ref2.as,
|
|
1330
1332
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1331
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1333
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
1334
|
|
|
1333
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1335
1337
|
ref: ref,
|
|
1336
1338
|
className: classnames(className, resolvedPrefix)
|
|
1337
1339
|
}, props));
|
|
@@ -1353,12 +1355,12 @@ function isTrivialHref(href) {
|
|
|
1353
1355
|
*/
|
|
1354
1356
|
|
|
1355
1357
|
|
|
1356
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1357
1359
|
var _ref$as = _ref.as,
|
|
1358
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1359
1361
|
disabled = _ref.disabled,
|
|
1360
1362
|
onKeyDown = _ref.onKeyDown,
|
|
1361
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1363
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
1364
|
|
|
1363
1365
|
var handleClick = function handleClick(event) {
|
|
1364
1366
|
var href = props.href,
|
|
@@ -1397,7 +1399,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1397
1399
|
props['aria-disabled'] = true;
|
|
1398
1400
|
}
|
|
1399
1401
|
|
|
1400
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1401
1403
|
ref: ref
|
|
1402
1404
|
}, props, {
|
|
1403
1405
|
onClick: handleClick,
|
|
@@ -1406,20 +1408,20 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1406
1408
|
});
|
|
1407
1409
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1408
1410
|
|
|
1409
|
-
var DivStyledAsH4
|
|
1410
|
-
DivStyledAsH4
|
|
1411
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
1412
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1411
1413
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1412
|
-
Component: DivStyledAsH4
|
|
1414
|
+
Component: DivStyledAsH4
|
|
1413
1415
|
});
|
|
1414
1416
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1415
1417
|
Component: SafeAnchor
|
|
1416
1418
|
});
|
|
1417
|
-
var defaultProps$
|
|
1419
|
+
var defaultProps$3 = {
|
|
1418
1420
|
show: true,
|
|
1419
1421
|
transition: Fade,
|
|
1420
1422
|
closeLabel: 'Close alert'
|
|
1421
1423
|
};
|
|
1422
|
-
var Alert =
|
|
1424
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1423
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1424
1426
|
show: 'onClose'
|
|
1425
1427
|
}),
|
|
@@ -1432,7 +1434,7 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1432
1434
|
onClose = _useUncontrolled.onClose,
|
|
1433
1435
|
dismissible = _useUncontrolled.dismissible,
|
|
1434
1436
|
transition = _useUncontrolled.transition,
|
|
1435
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1437
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
1438
|
|
|
1437
1439
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1438
1440
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1441,17 +1443,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1441
1443
|
}
|
|
1442
1444
|
});
|
|
1443
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1444
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1445
1447
|
role: "alert"
|
|
1446
1448
|
}, Transition ? props : undefined, {
|
|
1447
1449
|
ref: ref,
|
|
1448
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1449
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1450
1452
|
onClick: handleClose,
|
|
1451
1453
|
label: closeLabel
|
|
1452
1454
|
}), children);
|
|
1453
1455
|
if (!Transition) return show ? alert : null;
|
|
1454
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1455
1457
|
unmountOnExit: true
|
|
1456
1458
|
}, props, {
|
|
1457
1459
|
ref: undefined,
|
|
@@ -1459,37 +1461,37 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1459
1461
|
}), alert);
|
|
1460
1462
|
});
|
|
1461
1463
|
Alert.displayName = 'Alert';
|
|
1462
|
-
Alert.defaultProps = defaultProps$
|
|
1464
|
+
Alert.defaultProps = defaultProps$3;
|
|
1463
1465
|
Alert.Link = AlertLink;
|
|
1464
1466
|
Alert.Heading = AlertHeading;
|
|
1465
1467
|
|
|
1466
|
-
var defaultProps$
|
|
1468
|
+
var defaultProps$4 = {
|
|
1467
1469
|
pill: false
|
|
1468
1470
|
};
|
|
1469
|
-
var Badge =
|
|
1471
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1470
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1471
1473
|
variant = _ref.variant,
|
|
1472
1474
|
pill = _ref.pill,
|
|
1473
1475
|
className = _ref.className,
|
|
1474
1476
|
_ref$as = _ref.as,
|
|
1475
1477
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1476
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1478
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
1479
|
|
|
1478
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1479
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1480
1482
|
ref: ref
|
|
1481
1483
|
}, props, {
|
|
1482
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1483
1485
|
}));
|
|
1484
1486
|
});
|
|
1485
1487
|
Badge.displayName = 'Badge';
|
|
1486
|
-
Badge.defaultProps = defaultProps$
|
|
1488
|
+
Badge.defaultProps = defaultProps$4;
|
|
1487
1489
|
|
|
1488
|
-
var defaultProps$
|
|
1490
|
+
var defaultProps$5 = {
|
|
1489
1491
|
active: false,
|
|
1490
1492
|
linkProps: {}
|
|
1491
1493
|
};
|
|
1492
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1493
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1494
1496
|
active = _ref.active,
|
|
1495
1497
|
children = _ref.children,
|
|
@@ -1502,30 +1504,30 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1502
1504
|
href = _ref.href,
|
|
1503
1505
|
title = _ref.title,
|
|
1504
1506
|
target = _ref.target,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1507
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
1508
|
|
|
1507
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1508
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1509
1511
|
ref: ref
|
|
1510
1512
|
}, props, {
|
|
1511
1513
|
className: classnames(prefix, className, {
|
|
1512
1514
|
active: active
|
|
1513
1515
|
}),
|
|
1514
1516
|
"aria-current": active ? 'page' : undefined
|
|
1515
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1516
1518
|
href: href,
|
|
1517
1519
|
title: title,
|
|
1518
1520
|
target: target
|
|
1519
1521
|
}), children));
|
|
1520
1522
|
});
|
|
1521
1523
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1522
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1524
|
+
BreadcrumbItem.defaultProps = defaultProps$5;
|
|
1523
1525
|
|
|
1524
|
-
var defaultProps$
|
|
1526
|
+
var defaultProps$6 = {
|
|
1525
1527
|
label: 'breadcrumb',
|
|
1526
1528
|
listProps: {}
|
|
1527
1529
|
};
|
|
1528
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1529
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1530
1532
|
className = _ref.className,
|
|
1531
1533
|
listProps = _ref.listProps,
|
|
@@ -1533,27 +1535,27 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1533
1535
|
label = _ref.label,
|
|
1534
1536
|
_ref$as = _ref.as,
|
|
1535
1537
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1536
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1538
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
1539
|
|
|
1538
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1539
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1540
1542
|
"aria-label": label,
|
|
1541
1543
|
className: className,
|
|
1542
1544
|
ref: ref
|
|
1543
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1544
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1545
1547
|
}), children));
|
|
1546
1548
|
});
|
|
1547
1549
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1548
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1550
|
+
Breadcrumb.defaultProps = defaultProps$6;
|
|
1549
1551
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1550
1552
|
|
|
1551
|
-
var defaultProps$
|
|
1553
|
+
var defaultProps$7 = {
|
|
1552
1554
|
variant: 'primary',
|
|
1553
1555
|
active: false,
|
|
1554
1556
|
disabled: false
|
|
1555
1557
|
};
|
|
1556
|
-
var Button =
|
|
1558
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1557
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1558
1560
|
variant = _ref.variant,
|
|
1559
1561
|
size = _ref.size,
|
|
@@ -1562,13 +1564,13 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1562
1564
|
block = _ref.block,
|
|
1563
1565
|
type = _ref.type,
|
|
1564
1566
|
as = _ref.as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1567
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
1568
|
|
|
1567
1569
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1568
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1569
1571
|
|
|
1570
1572
|
if (props.href) {
|
|
1571
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1572
1574
|
as: as,
|
|
1573
1575
|
ref: ref,
|
|
1574
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1586,19 +1588,19 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1586
1588
|
}
|
|
1587
1589
|
|
|
1588
1590
|
var Component = as || 'button';
|
|
1589
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1590
1592
|
className: classes
|
|
1591
1593
|
}));
|
|
1592
1594
|
});
|
|
1593
1595
|
Button.displayName = 'Button';
|
|
1594
|
-
Button.defaultProps = defaultProps$
|
|
1596
|
+
Button.defaultProps = defaultProps$7;
|
|
1595
1597
|
|
|
1596
|
-
var defaultProps$
|
|
1598
|
+
var defaultProps$8 = {
|
|
1597
1599
|
vertical: false,
|
|
1598
1600
|
toggle: false,
|
|
1599
1601
|
role: 'group'
|
|
1600
1602
|
};
|
|
1601
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1602
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1603
1605
|
size = _ref.size,
|
|
1604
1606
|
toggle = _ref.toggle,
|
|
@@ -1606,59 +1608,59 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1606
1608
|
className = _ref.className,
|
|
1607
1609
|
_ref$as = _ref.as,
|
|
1608
1610
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1609
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1611
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
1612
|
|
|
1611
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1612
1614
|
var baseClass = prefix;
|
|
1613
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1614
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1615
1617
|
ref: ref,
|
|
1616
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1617
1619
|
}));
|
|
1618
1620
|
});
|
|
1619
1621
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1620
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1622
|
+
ButtonGroup.defaultProps = defaultProps$8;
|
|
1621
1623
|
|
|
1622
|
-
var defaultProps$
|
|
1624
|
+
var defaultProps$9 = {
|
|
1623
1625
|
role: 'toolbar'
|
|
1624
1626
|
};
|
|
1625
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1626
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1627
1629
|
className = _ref.className,
|
|
1628
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1630
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1629
1631
|
|
|
1630
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1631
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1632
1634
|
ref: ref,
|
|
1633
1635
|
className: classnames(className, prefix)
|
|
1634
1636
|
}));
|
|
1635
1637
|
});
|
|
1636
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1637
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1639
|
+
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1638
1640
|
|
|
1639
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React__default.createContext(null);
|
|
1640
1642
|
context$1.displayName = 'CardContext';
|
|
1641
1643
|
|
|
1642
|
-
var defaultProps$
|
|
1644
|
+
var defaultProps$a = {
|
|
1643
1645
|
variant: null
|
|
1644
1646
|
};
|
|
1645
|
-
var CardImg =
|
|
1647
|
+
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
|
|
1646
1648
|
function (_ref, ref) {
|
|
1647
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1648
1650
|
className = _ref.className,
|
|
1649
1651
|
variant = _ref.variant,
|
|
1650
1652
|
_ref$as = _ref.as,
|
|
1651
1653
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1652
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1654
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
1655
|
|
|
1654
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1655
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1656
1658
|
ref: ref,
|
|
1657
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1658
1660
|
}, props));
|
|
1659
1661
|
});
|
|
1660
1662
|
CardImg.displayName = 'CardImg';
|
|
1661
|
-
CardImg.defaultProps = defaultProps$
|
|
1663
|
+
CardImg.defaultProps = defaultProps$a;
|
|
1662
1664
|
|
|
1663
1665
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1664
1666
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1678,10 +1680,10 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1678
1680
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1679
1681
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1680
1682
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1681
|
-
var defaultProps$
|
|
1683
|
+
var defaultProps$b = {
|
|
1682
1684
|
body: false
|
|
1683
1685
|
};
|
|
1684
|
-
var Card =
|
|
1686
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1685
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1686
1688
|
className = _ref.className,
|
|
1687
1689
|
bg = _ref.bg,
|
|
@@ -1691,7 +1693,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1691
1693
|
children = _ref.children,
|
|
1692
1694
|
_ref$as = _ref.as,
|
|
1693
1695
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1694
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1696
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
1697
|
|
|
1696
1698
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1697
1699
|
var cardContext = useMemo(function () {
|
|
@@ -1699,19 +1701,19 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1699
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1700
1702
|
};
|
|
1701
1703
|
}, [prefix]);
|
|
1702
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1703
1705
|
value: cardContext
|
|
1704
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1705
1707
|
ref: ref
|
|
1706
1708
|
}, props, {
|
|
1707
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1708
1710
|
}), body ?
|
|
1709
1711
|
/*#__PURE__*/
|
|
1710
1712
|
// @ts-ignore
|
|
1711
|
-
|
|
1713
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1712
1714
|
});
|
|
1713
1715
|
Card.displayName = 'Card';
|
|
1714
|
-
Card.defaultProps = defaultProps$
|
|
1716
|
+
Card.defaultProps = defaultProps$b;
|
|
1715
1717
|
Card.Img = CardImg;
|
|
1716
1718
|
Card.Title = CardTitle;
|
|
1717
1719
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1898,16 +1900,16 @@ function useTimeout() {
|
|
|
1898
1900
|
|
|
1899
1901
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1900
1902
|
|
|
1901
|
-
var CarouselItem =
|
|
1903
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1902
1904
|
var _ref$as = _ref.as,
|
|
1903
1905
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1904
1906
|
bsPrefix = _ref.bsPrefix,
|
|
1905
1907
|
children = _ref.children,
|
|
1906
1908
|
className = _ref.className,
|
|
1907
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1909
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
1910
|
|
|
1909
1911
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1910
|
-
return /*#__PURE__*/
|
|
1912
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1911
1913
|
ref: ref
|
|
1912
1914
|
}, props, {
|
|
1913
1915
|
className: finalClassName
|
|
@@ -1926,8 +1928,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1926
1928
|
|
|
1927
1929
|
function map(children, func) {
|
|
1928
1930
|
var index = 0;
|
|
1929
|
-
return
|
|
1930
|
-
return
|
|
1931
|
+
return React__default.Children.map(children, function (child) {
|
|
1932
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1931
1933
|
});
|
|
1932
1934
|
}
|
|
1933
1935
|
/**
|
|
@@ -1940,13 +1942,13 @@ function map(children, func) {
|
|
|
1940
1942
|
|
|
1941
1943
|
function forEach(children, func) {
|
|
1942
1944
|
var index = 0;
|
|
1943
|
-
|
|
1944
|
-
if (
|
|
1945
|
+
React__default.Children.forEach(children, function (child) {
|
|
1946
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1945
1947
|
});
|
|
1946
1948
|
}
|
|
1947
1949
|
|
|
1948
1950
|
var SWIPE_THRESHOLD = 40;
|
|
1949
|
-
var propTypes$
|
|
1951
|
+
var propTypes$1 = {
|
|
1950
1952
|
/**
|
|
1951
1953
|
* @default 'carousel'
|
|
1952
1954
|
*/
|
|
@@ -2048,7 +2050,7 @@ var propTypes$9 = {
|
|
|
2048
2050
|
*/
|
|
2049
2051
|
nextLabel: PropTypes.string
|
|
2050
2052
|
};
|
|
2051
|
-
var defaultProps$
|
|
2053
|
+
var defaultProps$c = {
|
|
2052
2054
|
slide: true,
|
|
2053
2055
|
fade: false,
|
|
2054
2056
|
controls: true,
|
|
@@ -2059,12 +2061,12 @@ var defaultProps$s = {
|
|
|
2059
2061
|
pause: 'hover',
|
|
2060
2062
|
wrap: true,
|
|
2061
2063
|
touch: true,
|
|
2062
|
-
prevIcon: /*#__PURE__*/
|
|
2064
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2063
2065
|
"aria-hidden": "true",
|
|
2064
2066
|
className: "carousel-control-prev-icon"
|
|
2065
2067
|
}),
|
|
2066
2068
|
prevLabel: 'Previous',
|
|
2067
|
-
nextIcon: /*#__PURE__*/
|
|
2069
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2068
2070
|
"aria-hidden": "true",
|
|
2069
2071
|
className: "carousel-control-next-icon"
|
|
2070
2072
|
}),
|
|
@@ -2112,7 +2114,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2112
2114
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2113
2115
|
className = _useUncontrolled.className,
|
|
2114
2116
|
children = _useUncontrolled.children,
|
|
2115
|
-
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"]);
|
|
2117
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2116
2118
|
|
|
2117
2119
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2118
2120
|
var nextDirectionRef = useRef(null);
|
|
@@ -2369,7 +2371,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2369
2371
|
};
|
|
2370
2372
|
});
|
|
2371
2373
|
}, [indicators, numChildren, onSelect]);
|
|
2372
|
-
return /*#__PURE__*/
|
|
2374
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2373
2375
|
ref: elementRef
|
|
2374
2376
|
}, props, {
|
|
2375
2377
|
onKeyDown: handleKeyDown,
|
|
@@ -2379,63 +2381,63 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2379
2381
|
onTouchMove: handleTouchMove,
|
|
2380
2382
|
onTouchEnd: handleTouchEnd,
|
|
2381
2383
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2382
|
-
}), indicators && /*#__PURE__*/
|
|
2384
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2383
2385
|
className: prefix + "-indicators"
|
|
2384
2386
|
}, map(children, function (_child, index) {
|
|
2385
|
-
return /*#__PURE__*/
|
|
2387
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2386
2388
|
key: index,
|
|
2387
2389
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2388
2390
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2389
2391
|
});
|
|
2390
|
-
})), /*#__PURE__*/
|
|
2392
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2391
2393
|
className: prefix + "-inner"
|
|
2392
2394
|
}, map(children, function (child, index) {
|
|
2393
2395
|
var isActive = index === renderedActiveIndex;
|
|
2394
|
-
return slide ? /*#__PURE__*/
|
|
2396
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2395
2397
|
in: isActive,
|
|
2396
2398
|
onEnter: isActive ? handleEnter : undefined,
|
|
2397
2399
|
onEntered: isActive ? handleEntered : undefined,
|
|
2398
2400
|
addEndListener: transitionEnd
|
|
2399
2401
|
}, function (status) {
|
|
2400
|
-
return
|
|
2402
|
+
return React__default.cloneElement(child, {
|
|
2401
2403
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2402
2404
|
});
|
|
2403
|
-
}) :
|
|
2405
|
+
}) : React__default.cloneElement(child, {
|
|
2404
2406
|
className: classnames(child.props.className, isActive && 'active')
|
|
2405
2407
|
});
|
|
2406
|
-
})), controls && /*#__PURE__*/
|
|
2408
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2407
2409
|
className: prefix + "-control-prev",
|
|
2408
2410
|
onClick: prev
|
|
2409
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2411
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2410
2412
|
className: "sr-only"
|
|
2411
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2413
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2412
2414
|
className: prefix + "-control-next",
|
|
2413
2415
|
onClick: next
|
|
2414
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2416
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2415
2417
|
className: "sr-only"
|
|
2416
2418
|
}, nextLabel))));
|
|
2417
2419
|
}
|
|
2418
2420
|
|
|
2419
|
-
var Carousel =
|
|
2421
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2420
2422
|
Carousel.displayName = 'Carousel';
|
|
2421
|
-
Carousel.propTypes = propTypes$
|
|
2422
|
-
Carousel.defaultProps = defaultProps$
|
|
2423
|
+
Carousel.propTypes = propTypes$1;
|
|
2424
|
+
Carousel.defaultProps = defaultProps$c;
|
|
2423
2425
|
Carousel.Caption = CarouselCaption;
|
|
2424
2426
|
Carousel.Item = CarouselItem;
|
|
2425
2427
|
|
|
2426
|
-
var DEVICE_SIZES
|
|
2427
|
-
var Col =
|
|
2428
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2429
|
+
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
2430
|
function (_ref, ref) {
|
|
2429
2431
|
var bsPrefix = _ref.bsPrefix,
|
|
2430
2432
|
className = _ref.className,
|
|
2431
2433
|
_ref$as = _ref.as,
|
|
2432
2434
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2433
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2435
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
2436
|
|
|
2435
2437
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2436
2438
|
var spans = [];
|
|
2437
2439
|
var classes = [];
|
|
2438
|
-
DEVICE_SIZES
|
|
2440
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2439
2441
|
var propValue = props[brkPoint];
|
|
2440
2442
|
delete props[brkPoint];
|
|
2441
2443
|
var span;
|
|
@@ -2461,7 +2463,7 @@ function (_ref, ref) {
|
|
|
2461
2463
|
spans.push(prefix); // plain 'col'
|
|
2462
2464
|
}
|
|
2463
2465
|
|
|
2464
|
-
return /*#__PURE__*/
|
|
2466
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2465
2467
|
ref: ref,
|
|
2466
2468
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2467
2469
|
}));
|
|
@@ -2570,7 +2572,40 @@ function useForceUpdate() {
|
|
|
2570
2572
|
return dispatch;
|
|
2571
2573
|
}
|
|
2572
2574
|
|
|
2573
|
-
var DropdownContext = /*#__PURE__*/
|
|
2575
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2576
|
+
|
|
2577
|
+
function _extends() {
|
|
2578
|
+
_extends = Object.assign || function (target) {
|
|
2579
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2580
|
+
var source = arguments[i];
|
|
2581
|
+
|
|
2582
|
+
for (var key in source) {
|
|
2583
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2584
|
+
target[key] = source[key];
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
return target;
|
|
2590
|
+
};
|
|
2591
|
+
|
|
2592
|
+
return _extends.apply(this, arguments);
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2596
|
+
if (source == null) return {};
|
|
2597
|
+
var target = {};
|
|
2598
|
+
var sourceKeys = Object.keys(source);
|
|
2599
|
+
var key, i;
|
|
2600
|
+
|
|
2601
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2602
|
+
key = sourceKeys[i];
|
|
2603
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2604
|
+
target[key] = source[key];
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
return target;
|
|
2608
|
+
}
|
|
2574
2609
|
|
|
2575
2610
|
function useSafeState(state) {
|
|
2576
2611
|
var isMounted = useMounted();
|
|
@@ -2616,50 +2651,21 @@ function getBasePlacement(placement) {
|
|
|
2616
2651
|
return placement.split('-')[0];
|
|
2617
2652
|
}
|
|
2618
2653
|
|
|
2619
|
-
|
|
2620
|
-
var rect = element.getBoundingClientRect();
|
|
2621
|
-
return {
|
|
2622
|
-
width: rect.width,
|
|
2623
|
-
height: rect.height,
|
|
2624
|
-
top: rect.top,
|
|
2625
|
-
right: rect.right,
|
|
2626
|
-
bottom: rect.bottom,
|
|
2627
|
-
left: rect.left,
|
|
2628
|
-
x: rect.left,
|
|
2629
|
-
y: rect.top
|
|
2630
|
-
};
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2654
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2633
2655
|
// means it doesn't take into account transforms.
|
|
2634
|
-
|
|
2635
2656
|
function getLayoutRect(element) {
|
|
2636
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2637
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2638
|
-
|
|
2639
|
-
var width = element.offsetWidth;
|
|
2640
|
-
var height = element.offsetHeight;
|
|
2641
|
-
|
|
2642
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2643
|
-
width = clientRect.width;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2647
|
-
height = clientRect.height;
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
2657
|
return {
|
|
2651
2658
|
x: element.offsetLeft,
|
|
2652
2659
|
y: element.offsetTop,
|
|
2653
|
-
width:
|
|
2654
|
-
height:
|
|
2660
|
+
width: element.offsetWidth,
|
|
2661
|
+
height: element.offsetHeight
|
|
2655
2662
|
};
|
|
2656
2663
|
}
|
|
2657
2664
|
|
|
2658
|
-
|
|
2659
|
-
if (node == null) {
|
|
2660
|
-
return window;
|
|
2661
|
-
}
|
|
2665
|
+
/*:: import type { Window } from '../types'; */
|
|
2662
2666
|
|
|
2667
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2668
|
+
function getWindow(node) {
|
|
2663
2669
|
if (node.toString() !== '[object Window]') {
|
|
2664
2670
|
var ownerDocument = node.ownerDocument;
|
|
2665
2671
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2668,27 +2674,31 @@ function getWindow(node) {
|
|
|
2668
2674
|
return node;
|
|
2669
2675
|
}
|
|
2670
2676
|
|
|
2677
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2678
|
+
Element); */
|
|
2679
|
+
|
|
2671
2680
|
function isElement(node) {
|
|
2672
2681
|
var OwnElement = getWindow(node).Element;
|
|
2673
2682
|
return node instanceof OwnElement || node instanceof Element;
|
|
2674
2683
|
}
|
|
2684
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2685
|
+
HTMLElement); */
|
|
2686
|
+
|
|
2675
2687
|
|
|
2676
2688
|
function isHTMLElement(node) {
|
|
2677
2689
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2678
2690
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2679
2691
|
}
|
|
2692
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2693
|
+
ShadowRoot); */
|
|
2680
2694
|
|
|
2681
|
-
function isShadowRoot(node) {
|
|
2682
|
-
// IE 11 has no ShadowRoot
|
|
2683
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2684
|
-
return false;
|
|
2685
|
-
}
|
|
2686
2695
|
|
|
2696
|
+
function isShadowRoot(node) {
|
|
2687
2697
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2688
2698
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2689
2699
|
}
|
|
2690
2700
|
|
|
2691
|
-
function contains
|
|
2701
|
+
function contains(parent, child) {
|
|
2692
2702
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2693
2703
|
|
|
2694
2704
|
if (parent.contains(child)) {
|
|
@@ -2715,7 +2725,7 @@ function getNodeName(element) {
|
|
|
2715
2725
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2716
2726
|
}
|
|
2717
2727
|
|
|
2718
|
-
function getComputedStyle$
|
|
2728
|
+
function getComputedStyle$2(element) {
|
|
2719
2729
|
return getWindow(element).getComputedStyle(element);
|
|
2720
2730
|
}
|
|
2721
2731
|
|
|
@@ -2738,8 +2748,9 @@ function getParentNode(element) {
|
|
|
2738
2748
|
// $FlowFixMe[incompatible-return]
|
|
2739
2749
|
// $FlowFixMe[prop-missing]
|
|
2740
2750
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2741
|
-
element.parentNode ||
|
|
2742
|
-
|
|
2751
|
+
element.parentNode || // DOM Element detected
|
|
2752
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2753
|
+
element.host || // ShadowRoot detected
|
|
2743
2754
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2744
2755
|
getDocumentElement(element) // fallback
|
|
2745
2756
|
|
|
@@ -2748,25 +2759,33 @@ function getParentNode(element) {
|
|
|
2748
2759
|
|
|
2749
2760
|
function getTrueOffsetParent(element) {
|
|
2750
2761
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2751
|
-
getComputedStyle$
|
|
2762
|
+
getComputedStyle$2(element).position === 'fixed') {
|
|
2752
2763
|
return null;
|
|
2753
2764
|
}
|
|
2754
2765
|
|
|
2755
|
-
|
|
2766
|
+
var offsetParent = element.offsetParent;
|
|
2767
|
+
|
|
2768
|
+
if (offsetParent) {
|
|
2769
|
+
var html = getDocumentElement(offsetParent);
|
|
2770
|
+
|
|
2771
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2772
|
+
return html;
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
|
|
2776
|
+
return offsetParent;
|
|
2756
2777
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2757
2778
|
// return the containing block
|
|
2758
2779
|
|
|
2759
2780
|
|
|
2760
2781
|
function getContainingBlock(element) {
|
|
2761
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2762
2782
|
var currentNode = getParentNode(element);
|
|
2763
2783
|
|
|
2764
2784
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2765
|
-
var css = getComputedStyle$
|
|
2785
|
+
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2766
2786
|
// create a containing block.
|
|
2767
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2768
2787
|
|
|
2769
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2788
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2770
2789
|
return currentNode;
|
|
2771
2790
|
} else {
|
|
2772
2791
|
currentNode = currentNode.parentNode;
|
|
@@ -2782,11 +2801,11 @@ function getOffsetParent(element) {
|
|
|
2782
2801
|
var window = getWindow(element);
|
|
2783
2802
|
var offsetParent = getTrueOffsetParent(element);
|
|
2784
2803
|
|
|
2785
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2804
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2786
2805
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2787
2806
|
}
|
|
2788
2807
|
|
|
2789
|
-
if (offsetParent &&
|
|
2808
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2790
2809
|
return window;
|
|
2791
2810
|
}
|
|
2792
2811
|
|
|
@@ -2797,12 +2816,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2797
2816
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2798
2817
|
}
|
|
2799
2818
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
var round = Math.round;
|
|
2803
|
-
|
|
2804
|
-
function within(min$1, value, max$1) {
|
|
2805
|
-
return max(min$1, min(value, max$1));
|
|
2819
|
+
function within(min, value, max) {
|
|
2820
|
+
return Math.max(min, Math.min(value, max));
|
|
2806
2821
|
}
|
|
2807
2822
|
|
|
2808
2823
|
function getFreshSideObject() {
|
|
@@ -2815,7 +2830,7 @@ function getFreshSideObject() {
|
|
|
2815
2830
|
}
|
|
2816
2831
|
|
|
2817
2832
|
function mergePaddingObject(paddingObject) {
|
|
2818
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2833
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2819
2834
|
}
|
|
2820
2835
|
|
|
2821
2836
|
function expandToHashMap(value, keys) {
|
|
@@ -2825,19 +2840,11 @@ function expandToHashMap(value, keys) {
|
|
|
2825
2840
|
}, {});
|
|
2826
2841
|
}
|
|
2827
2842
|
|
|
2828
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2829
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2830
|
-
placement: state.placement
|
|
2831
|
-
})) : padding;
|
|
2832
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2833
|
-
};
|
|
2834
|
-
|
|
2835
2843
|
function arrow(_ref) {
|
|
2836
2844
|
var _state$modifiersData$;
|
|
2837
2845
|
|
|
2838
2846
|
var state = _ref.state,
|
|
2839
|
-
name = _ref.name
|
|
2840
|
-
options = _ref.options;
|
|
2847
|
+
name = _ref.name;
|
|
2841
2848
|
var arrowElement = state.elements.arrow;
|
|
2842
2849
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2843
2850
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2849,7 +2856,7 @@ function arrow(_ref) {
|
|
|
2849
2856
|
return;
|
|
2850
2857
|
}
|
|
2851
2858
|
|
|
2852
|
-
var paddingObject =
|
|
2859
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2853
2860
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2854
2861
|
var minProp = axis === 'y' ? top : left;
|
|
2855
2862
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2869,11 +2876,14 @@ function arrow(_ref) {
|
|
|
2869
2876
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2870
2877
|
}
|
|
2871
2878
|
|
|
2872
|
-
function effect
|
|
2879
|
+
function effect(_ref2) {
|
|
2873
2880
|
var state = _ref2.state,
|
|
2874
|
-
options = _ref2.options
|
|
2881
|
+
options = _ref2.options,
|
|
2882
|
+
name = _ref2.name;
|
|
2875
2883
|
var _options$element = options.element,
|
|
2876
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2884
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2885
|
+
_options$padding = options.padding,
|
|
2886
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2877
2887
|
|
|
2878
2888
|
if (arrowElement == null) {
|
|
2879
2889
|
return;
|
|
@@ -2894,7 +2904,7 @@ function effect$1(_ref2) {
|
|
|
2894
2904
|
}
|
|
2895
2905
|
}
|
|
2896
2906
|
|
|
2897
|
-
if (!contains
|
|
2907
|
+
if (!contains(state.elements.popper, arrowElement)) {
|
|
2898
2908
|
if (process.env.NODE_ENV !== "production") {
|
|
2899
2909
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2900
2910
|
}
|
|
@@ -2903,6 +2913,9 @@ function effect$1(_ref2) {
|
|
|
2903
2913
|
}
|
|
2904
2914
|
|
|
2905
2915
|
state.elements.arrow = arrowElement;
|
|
2916
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2917
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2918
|
+
};
|
|
2906
2919
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2907
2920
|
|
|
2908
2921
|
|
|
@@ -2911,7 +2924,7 @@ var arrow$1 = {
|
|
|
2911
2924
|
enabled: true,
|
|
2912
2925
|
phase: 'main',
|
|
2913
2926
|
fn: arrow,
|
|
2914
|
-
effect: effect
|
|
2927
|
+
effect: effect,
|
|
2915
2928
|
requires: ['popperOffsets'],
|
|
2916
2929
|
requiresIfExists: ['preventOverflow']
|
|
2917
2930
|
};
|
|
@@ -2931,8 +2944,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2931
2944
|
var win = window;
|
|
2932
2945
|
var dpr = win.devicePixelRatio || 1;
|
|
2933
2946
|
return {
|
|
2934
|
-
x: round(
|
|
2935
|
-
y: round(
|
|
2947
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2948
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2936
2949
|
};
|
|
2937
2950
|
}
|
|
2938
2951
|
|
|
@@ -2948,7 +2961,7 @@ function mapToStyles(_ref2) {
|
|
|
2948
2961
|
adaptive = _ref2.adaptive,
|
|
2949
2962
|
roundOffsets = _ref2.roundOffsets;
|
|
2950
2963
|
|
|
2951
|
-
var _ref3 = roundOffsets
|
|
2964
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2952
2965
|
_ref3$x = _ref3.x,
|
|
2953
2966
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2954
2967
|
_ref3$y = _ref3.y,
|
|
@@ -2962,32 +2975,23 @@ function mapToStyles(_ref2) {
|
|
|
2962
2975
|
|
|
2963
2976
|
if (adaptive) {
|
|
2964
2977
|
var offsetParent = getOffsetParent(popper);
|
|
2965
|
-
var heightProp = 'clientHeight';
|
|
2966
|
-
var widthProp = 'clientWidth';
|
|
2967
2978
|
|
|
2968
2979
|
if (offsetParent === getWindow(popper)) {
|
|
2969
2980
|
offsetParent = getDocumentElement(popper);
|
|
2970
|
-
|
|
2971
|
-
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
2972
|
-
heightProp = 'scrollHeight';
|
|
2973
|
-
widthProp = 'scrollWidth';
|
|
2974
|
-
}
|
|
2975
2981
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2976
2982
|
|
|
2983
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2977
2984
|
|
|
2978
|
-
offsetParent = offsetParent;
|
|
2979
2985
|
|
|
2980
2986
|
if (placement === top) {
|
|
2981
|
-
sideY = bottom;
|
|
2982
|
-
|
|
2983
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2987
|
+
sideY = bottom;
|
|
2988
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2984
2989
|
y *= gpuAcceleration ? 1 : -1;
|
|
2985
2990
|
}
|
|
2986
2991
|
|
|
2987
2992
|
if (placement === left) {
|
|
2988
|
-
sideX = right;
|
|
2989
|
-
|
|
2990
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2993
|
+
sideX = right;
|
|
2994
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2991
2995
|
x *= gpuAcceleration ? 1 : -1;
|
|
2992
2996
|
}
|
|
2993
2997
|
}
|
|
@@ -2999,10 +3003,10 @@ function mapToStyles(_ref2) {
|
|
|
2999
3003
|
if (gpuAcceleration) {
|
|
3000
3004
|
var _Object$assign;
|
|
3001
3005
|
|
|
3002
|
-
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));
|
|
3006
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3003
3007
|
}
|
|
3004
3008
|
|
|
3005
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3009
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3006
3010
|
}
|
|
3007
3011
|
|
|
3008
3012
|
function computeStyles(_ref4) {
|
|
@@ -3016,7 +3020,7 @@ function computeStyles(_ref4) {
|
|
|
3016
3020
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3017
3021
|
|
|
3018
3022
|
if (process.env.NODE_ENV !== "production") {
|
|
3019
|
-
var transitionProperty = getComputedStyle$
|
|
3023
|
+
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
3020
3024
|
|
|
3021
3025
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3022
3026
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3033,7 +3037,7 @@ function computeStyles(_ref4) {
|
|
|
3033
3037
|
};
|
|
3034
3038
|
|
|
3035
3039
|
if (state.modifiersData.popperOffsets != null) {
|
|
3036
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3040
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3037
3041
|
offsets: state.modifiersData.popperOffsets,
|
|
3038
3042
|
position: state.options.strategy,
|
|
3039
3043
|
adaptive: adaptive,
|
|
@@ -3042,7 +3046,7 @@ function computeStyles(_ref4) {
|
|
|
3042
3046
|
}
|
|
3043
3047
|
|
|
3044
3048
|
if (state.modifiersData.arrow != null) {
|
|
3045
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3049
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3046
3050
|
offsets: state.modifiersData.arrow,
|
|
3047
3051
|
position: 'absolute',
|
|
3048
3052
|
adaptive: false,
|
|
@@ -3050,7 +3054,7 @@ function computeStyles(_ref4) {
|
|
|
3050
3054
|
})));
|
|
3051
3055
|
}
|
|
3052
3056
|
|
|
3053
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3057
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3054
3058
|
'data-popper-placement': state.placement
|
|
3055
3059
|
});
|
|
3056
3060
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3068,7 +3072,7 @@ var passive = {
|
|
|
3068
3072
|
passive: true
|
|
3069
3073
|
};
|
|
3070
3074
|
|
|
3071
|
-
function effect(_ref) {
|
|
3075
|
+
function effect$1(_ref) {
|
|
3072
3076
|
var state = _ref.state,
|
|
3073
3077
|
instance = _ref.instance,
|
|
3074
3078
|
options = _ref.options;
|
|
@@ -3108,11 +3112,11 @@ var eventListeners = {
|
|
|
3108
3112
|
enabled: true,
|
|
3109
3113
|
phase: 'write',
|
|
3110
3114
|
fn: function fn() {},
|
|
3111
|
-
effect: effect,
|
|
3115
|
+
effect: effect$1,
|
|
3112
3116
|
data: {}
|
|
3113
3117
|
};
|
|
3114
3118
|
|
|
3115
|
-
var hash
|
|
3119
|
+
var hash = {
|
|
3116
3120
|
left: 'right',
|
|
3117
3121
|
right: 'left',
|
|
3118
3122
|
bottom: 'top',
|
|
@@ -3120,20 +3124,34 @@ var hash$1 = {
|
|
|
3120
3124
|
};
|
|
3121
3125
|
function getOppositePlacement(placement) {
|
|
3122
3126
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3123
|
-
return hash
|
|
3127
|
+
return hash[matched];
|
|
3124
3128
|
});
|
|
3125
3129
|
}
|
|
3126
3130
|
|
|
3127
|
-
var hash = {
|
|
3131
|
+
var hash$1 = {
|
|
3128
3132
|
start: 'end',
|
|
3129
3133
|
end: 'start'
|
|
3130
3134
|
};
|
|
3131
3135
|
function getOppositeVariationPlacement(placement) {
|
|
3132
3136
|
return placement.replace(/start|end/g, function (matched) {
|
|
3133
|
-
return hash[matched];
|
|
3137
|
+
return hash$1[matched];
|
|
3134
3138
|
});
|
|
3135
3139
|
}
|
|
3136
3140
|
|
|
3141
|
+
function getBoundingClientRect(element) {
|
|
3142
|
+
var rect = element.getBoundingClientRect();
|
|
3143
|
+
return {
|
|
3144
|
+
width: rect.width,
|
|
3145
|
+
height: rect.height,
|
|
3146
|
+
top: rect.top,
|
|
3147
|
+
right: rect.right,
|
|
3148
|
+
bottom: rect.bottom,
|
|
3149
|
+
left: rect.left,
|
|
3150
|
+
x: rect.left,
|
|
3151
|
+
y: rect.top
|
|
3152
|
+
};
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3137
3155
|
function getWindowScroll(node) {
|
|
3138
3156
|
var win = getWindow(node);
|
|
3139
3157
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3196,18 +3214,16 @@ function getViewportRect(element) {
|
|
|
3196
3214
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3197
3215
|
|
|
3198
3216
|
function getDocumentRect(element) {
|
|
3199
|
-
var _element$ownerDocumen;
|
|
3200
|
-
|
|
3201
3217
|
var html = getDocumentElement(element);
|
|
3202
3218
|
var winScroll = getWindowScroll(element);
|
|
3203
|
-
var body =
|
|
3204
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3205
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3219
|
+
var body = element.ownerDocument.body;
|
|
3220
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3221
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3206
3222
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3207
3223
|
var y = -winScroll.scrollTop;
|
|
3208
3224
|
|
|
3209
|
-
if (getComputedStyle$
|
|
3210
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3225
|
+
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3226
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3211
3227
|
}
|
|
3212
3228
|
|
|
3213
3229
|
return {
|
|
@@ -3220,7 +3236,7 @@ function getDocumentRect(element) {
|
|
|
3220
3236
|
|
|
3221
3237
|
function isScrollParent(element) {
|
|
3222
3238
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3223
|
-
var _getComputedStyle = getComputedStyle$
|
|
3239
|
+
var _getComputedStyle = getComputedStyle$2(element),
|
|
3224
3240
|
overflow = _getComputedStyle.overflow,
|
|
3225
3241
|
overflowX = _getComputedStyle.overflowX,
|
|
3226
3242
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3249,14 +3265,12 @@ reference element's position.
|
|
|
3249
3265
|
*/
|
|
3250
3266
|
|
|
3251
3267
|
function listScrollParents(element, list) {
|
|
3252
|
-
var _element$ownerDocumen;
|
|
3253
|
-
|
|
3254
3268
|
if (list === void 0) {
|
|
3255
3269
|
list = [];
|
|
3256
3270
|
}
|
|
3257
3271
|
|
|
3258
3272
|
var scrollParent = getScrollParent(element);
|
|
3259
|
-
var isBody = scrollParent ===
|
|
3273
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3260
3274
|
var win = getWindow(scrollParent);
|
|
3261
3275
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3262
3276
|
var updatedList = list.concat(target);
|
|
@@ -3265,7 +3279,7 @@ function listScrollParents(element, list) {
|
|
|
3265
3279
|
}
|
|
3266
3280
|
|
|
3267
3281
|
function rectToClientRect(rect) {
|
|
3268
|
-
return Object.assign({}, rect, {
|
|
3282
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3269
3283
|
left: rect.x,
|
|
3270
3284
|
top: rect.y,
|
|
3271
3285
|
right: rect.x + rect.width,
|
|
@@ -3295,7 +3309,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3295
3309
|
|
|
3296
3310
|
function getClippingParents(element) {
|
|
3297
3311
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3298
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3312
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
|
|
3299
3313
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3300
3314
|
|
|
3301
3315
|
if (!isElement(clipperElement)) {
|
|
@@ -3304,7 +3318,7 @@ function getClippingParents(element) {
|
|
|
3304
3318
|
|
|
3305
3319
|
|
|
3306
3320
|
return clippingParents.filter(function (clippingParent) {
|
|
3307
|
-
return isElement(clippingParent) && contains
|
|
3321
|
+
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3308
3322
|
});
|
|
3309
3323
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3310
3324
|
// clipping parents
|
|
@@ -3316,10 +3330,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3316
3330
|
var firstClippingParent = clippingParents[0];
|
|
3317
3331
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3318
3332
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3319
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3320
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3321
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3322
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3333
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3334
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3335
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3336
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3323
3337
|
return accRect;
|
|
3324
3338
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3325
3339
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3429,7 +3443,7 @@ function detectOverflow(state, options) {
|
|
|
3429
3443
|
strategy: 'absolute',
|
|
3430
3444
|
placement: placement
|
|
3431
3445
|
});
|
|
3432
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3446
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3433
3447
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3434
3448
|
// 0 or negative = within the clipping rect
|
|
3435
3449
|
|
|
@@ -3453,6 +3467,9 @@ function detectOverflow(state, options) {
|
|
|
3453
3467
|
return overflowOffsets;
|
|
3454
3468
|
}
|
|
3455
3469
|
|
|
3470
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3471
|
+
|
|
3472
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3456
3473
|
function computeAutoPlacement(state, options) {
|
|
3457
3474
|
if (options === void 0) {
|
|
3458
3475
|
options = {};
|
|
@@ -3681,7 +3698,7 @@ function hide(_ref) {
|
|
|
3681
3698
|
isReferenceHidden: isReferenceHidden,
|
|
3682
3699
|
hasPopperEscaped: hasPopperEscaped
|
|
3683
3700
|
};
|
|
3684
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3701
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3685
3702
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3686
3703
|
'data-popper-escaped': hasPopperEscaped
|
|
3687
3704
|
});
|
|
@@ -3700,7 +3717,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3700
3717
|
var basePlacement = getBasePlacement(placement);
|
|
3701
3718
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3702
3719
|
|
|
3703
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3720
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3704
3721
|
placement: placement
|
|
3705
3722
|
})) : offset,
|
|
3706
3723
|
skidding = _ref[0],
|
|
@@ -3806,7 +3823,7 @@ function preventOverflow(_ref) {
|
|
|
3806
3823
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3807
3824
|
var referenceRect = state.rects.reference;
|
|
3808
3825
|
var popperRect = state.rects.popper;
|
|
3809
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3826
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3810
3827
|
placement: state.placement
|
|
3811
3828
|
})) : tetherOffset;
|
|
3812
3829
|
var data = {
|
|
@@ -3818,13 +3835,13 @@ function preventOverflow(_ref) {
|
|
|
3818
3835
|
return;
|
|
3819
3836
|
}
|
|
3820
3837
|
|
|
3821
|
-
if (checkMainAxis
|
|
3838
|
+
if (checkMainAxis) {
|
|
3822
3839
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3823
3840
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3824
3841
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3825
3842
|
var offset = popperOffsets[mainAxis];
|
|
3826
|
-
var min
|
|
3827
|
-
var max
|
|
3843
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3844
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3828
3845
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3829
3846
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3830
3847
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3851,29 +3868,26 @@ function preventOverflow(_ref) {
|
|
|
3851
3868
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3852
3869
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3853
3870
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3871
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3872
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3873
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3874
|
+
}
|
|
3854
3875
|
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3858
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3859
|
-
}
|
|
3860
|
-
|
|
3861
|
-
if (checkAltAxis) {
|
|
3862
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3876
|
+
if (checkAltAxis) {
|
|
3877
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3863
3878
|
|
|
3864
|
-
|
|
3879
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3865
3880
|
|
|
3866
|
-
|
|
3881
|
+
var _offset = popperOffsets[altAxis];
|
|
3867
3882
|
|
|
3868
|
-
|
|
3883
|
+
var _min = _offset + overflow[_mainSide];
|
|
3869
3884
|
|
|
3870
|
-
|
|
3885
|
+
var _max = _offset - overflow[_altSide];
|
|
3871
3886
|
|
|
3872
|
-
|
|
3887
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3873
3888
|
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
}
|
|
3889
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3890
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3877
3891
|
}
|
|
3878
3892
|
|
|
3879
3893
|
state.modifiersData[name] = data;
|
|
@@ -4104,9 +4118,9 @@ function uniqueBy(arr, fn) {
|
|
|
4104
4118
|
function mergeByName(modifiers) {
|
|
4105
4119
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4106
4120
|
var existing = merged[current.name];
|
|
4107
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4108
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4109
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4121
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4122
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4123
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4110
4124
|
}) : current;
|
|
4111
4125
|
return merged;
|
|
4112
4126
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4152,7 +4166,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4152
4166
|
var state = {
|
|
4153
4167
|
placement: 'bottom',
|
|
4154
4168
|
orderedModifiers: [],
|
|
4155
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4169
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4156
4170
|
modifiersData: {},
|
|
4157
4171
|
elements: {
|
|
4158
4172
|
reference: reference,
|
|
@@ -4167,7 +4181,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4167
4181
|
state: state,
|
|
4168
4182
|
setOptions: function setOptions(options) {
|
|
4169
4183
|
cleanupModifierEffects();
|
|
4170
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4184
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4171
4185
|
state.scrollParents = {
|
|
4172
4186
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4173
4187
|
popper: listScrollParents(popper)
|
|
@@ -4199,7 +4213,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4199
4213
|
}
|
|
4200
4214
|
}
|
|
4201
4215
|
|
|
4202
|
-
var _getComputedStyle = getComputedStyle$
|
|
4216
|
+
var _getComputedStyle = getComputedStyle$2(popper),
|
|
4203
4217
|
marginTop = _getComputedStyle.marginTop,
|
|
4204
4218
|
marginRight = _getComputedStyle.marginRight,
|
|
4205
4219
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4539,7 +4553,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4539
4553
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4540
4554
|
// HTML DOM and SVG DOM may have different support levels,
|
|
4541
4555
|
// so we need to check on context instead of a document root element.
|
|
4542
|
-
function contains(context, node) {
|
|
4556
|
+
function contains$1(context, node) {
|
|
4543
4557
|
if (context.contains) return context.contains(node);
|
|
4544
4558
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4545
4559
|
}
|
|
@@ -4613,13 +4627,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4613
4627
|
return componentOrElement != null ? componentOrElement : null;
|
|
4614
4628
|
}
|
|
4615
4629
|
|
|
4616
|
-
var ownerDocument = (function (componentOrElement) {
|
|
4617
|
-
return ownerDocument
|
|
4630
|
+
var ownerDocument$1 = (function (componentOrElement) {
|
|
4631
|
+
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4618
4632
|
});
|
|
4619
4633
|
|
|
4620
4634
|
var escapeKeyCode = 27;
|
|
4621
4635
|
|
|
4622
|
-
var noop$
|
|
4636
|
+
var noop$1 = function noop() {};
|
|
4623
4637
|
|
|
4624
4638
|
function isLeftClickEvent(event) {
|
|
4625
4639
|
return event.button === 0;
|
|
@@ -4652,11 +4666,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4652
4666
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4653
4667
|
|
|
4654
4668
|
var preventMouseRootCloseRef = useRef(false);
|
|
4655
|
-
var onClose = onRootClose || noop$
|
|
4669
|
+
var onClose = onRootClose || noop$1;
|
|
4656
4670
|
var handleMouseCapture = useCallback(function (e) {
|
|
4657
4671
|
var currentTarget = getRefTarget(ref);
|
|
4658
4672
|
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');
|
|
4659
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4673
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains$1(currentTarget, e.target);
|
|
4660
4674
|
}, [ref]);
|
|
4661
4675
|
var handleMouse = useEventCallback(function (e) {
|
|
4662
4676
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4673,7 +4687,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4673
4687
|
// https://github.com/facebook/react/issues/20074
|
|
4674
4688
|
|
|
4675
4689
|
var currentEvent = window.event;
|
|
4676
|
-
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4690
|
+
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4677
4691
|
// avoid false positives in the contains() check below if the target DOM
|
|
4678
4692
|
// element is removed in the React mouse callback.
|
|
4679
4693
|
|
|
@@ -4700,7 +4714,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4700
4714
|
|
|
4701
4715
|
if ('ontouchstart' in doc.documentElement) {
|
|
4702
4716
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4703
|
-
return listen(el, 'mousemove', noop$
|
|
4717
|
+
return listen(el, 'mousemove', noop$1);
|
|
4704
4718
|
});
|
|
4705
4719
|
}
|
|
4706
4720
|
|
|
@@ -4782,7 +4796,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4782
4796
|
});
|
|
4783
4797
|
}
|
|
4784
4798
|
|
|
4785
|
-
var noop$
|
|
4799
|
+
var noop$2 = function noop() {};
|
|
4786
4800
|
/**
|
|
4787
4801
|
* @memberOf Dropdown
|
|
4788
4802
|
* @param {object} options
|
|
@@ -4850,7 +4864,7 @@ function useDropdownMenu(options) {
|
|
|
4850
4864
|
|
|
4851
4865
|
var menu;
|
|
4852
4866
|
var menuProps = {
|
|
4853
|
-
ref: setMenu || noop$
|
|
4867
|
+
ref: setMenu || noop$2,
|
|
4854
4868
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4855
4869
|
};
|
|
4856
4870
|
var childArgs = {
|
|
@@ -4883,7 +4897,7 @@ function useDropdownMenu(options) {
|
|
|
4883
4897
|
});
|
|
4884
4898
|
return menu;
|
|
4885
4899
|
}
|
|
4886
|
-
var propTypes$
|
|
4900
|
+
var propTypes$2 = {
|
|
4887
4901
|
/**
|
|
4888
4902
|
* A render prop that returns a Menu element. The `props`
|
|
4889
4903
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4940,7 +4954,7 @@ var propTypes$8 = {
|
|
|
4940
4954
|
*/
|
|
4941
4955
|
rootCloseEvent: PropTypes.string
|
|
4942
4956
|
};
|
|
4943
|
-
var defaultProps$
|
|
4957
|
+
var defaultProps$d = {
|
|
4944
4958
|
usePopper: true
|
|
4945
4959
|
};
|
|
4946
4960
|
|
|
@@ -4950,19 +4964,19 @@ var defaultProps$r = {
|
|
|
4950
4964
|
* @displayName DropdownMenu
|
|
4951
4965
|
* @memberOf Dropdown
|
|
4952
4966
|
*/
|
|
4953
|
-
function DropdownMenu
|
|
4967
|
+
function DropdownMenu(_ref2) {
|
|
4954
4968
|
var children = _ref2.children,
|
|
4955
4969
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4956
4970
|
|
|
4957
4971
|
var args = useDropdownMenu(options);
|
|
4958
|
-
return /*#__PURE__*/
|
|
4972
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4959
4973
|
}
|
|
4960
4974
|
|
|
4961
|
-
DropdownMenu
|
|
4962
|
-
DropdownMenu
|
|
4963
|
-
DropdownMenu
|
|
4975
|
+
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4976
|
+
DropdownMenu.propTypes = propTypes$2;
|
|
4977
|
+
DropdownMenu.defaultProps = defaultProps$d;
|
|
4964
4978
|
|
|
4965
|
-
var noop$
|
|
4979
|
+
var noop$3 = function noop() {};
|
|
4966
4980
|
/**
|
|
4967
4981
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4968
4982
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4976,11 +4990,11 @@ function useDropdownToggle() {
|
|
|
4976
4990
|
_ref$show = _ref.show,
|
|
4977
4991
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4978
4992
|
_ref$toggle = _ref.toggle,
|
|
4979
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
4993
|
+
toggle = _ref$toggle === void 0 ? noop$3 : _ref$toggle,
|
|
4980
4994
|
setToggle = _ref.setToggle;
|
|
4981
4995
|
|
|
4982
4996
|
return [{
|
|
4983
|
-
ref: setToggle || noop$
|
|
4997
|
+
ref: setToggle || noop$3,
|
|
4984
4998
|
'aria-haspopup': true,
|
|
4985
4999
|
'aria-expanded': !!show
|
|
4986
5000
|
}, {
|
|
@@ -4988,7 +5002,7 @@ function useDropdownToggle() {
|
|
|
4988
5002
|
toggle: toggle
|
|
4989
5003
|
}];
|
|
4990
5004
|
}
|
|
4991
|
-
var propTypes$
|
|
5005
|
+
var propTypes$3 = {
|
|
4992
5006
|
/**
|
|
4993
5007
|
* A render prop that returns a Toggle element. The `props`
|
|
4994
5008
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5013,7 +5027,7 @@ var propTypes$7 = {
|
|
|
5013
5027
|
* @displayName DropdownToggle
|
|
5014
5028
|
* @memberOf Dropdown
|
|
5015
5029
|
*/
|
|
5016
|
-
function DropdownToggle
|
|
5030
|
+
function DropdownToggle(_ref2) {
|
|
5017
5031
|
var children = _ref2.children;
|
|
5018
5032
|
|
|
5019
5033
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5022,17 +5036,17 @@ function DropdownToggle$1(_ref2) {
|
|
|
5022
5036
|
show = _useDropdownToggle$.show,
|
|
5023
5037
|
toggle = _useDropdownToggle$.toggle;
|
|
5024
5038
|
|
|
5025
|
-
return /*#__PURE__*/
|
|
5039
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
5026
5040
|
show: show,
|
|
5027
5041
|
toggle: toggle,
|
|
5028
5042
|
props: props
|
|
5029
5043
|
}));
|
|
5030
5044
|
}
|
|
5031
5045
|
|
|
5032
|
-
DropdownToggle
|
|
5033
|
-
DropdownToggle
|
|
5046
|
+
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5047
|
+
DropdownToggle.propTypes = propTypes$3;
|
|
5034
5048
|
|
|
5035
|
-
var propTypes$
|
|
5049
|
+
var propTypes$4 = {
|
|
5036
5050
|
/**
|
|
5037
5051
|
* A render prop that returns the root dropdown element. The `props`
|
|
5038
5052
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5104,7 +5118,7 @@ var propTypes$6 = {
|
|
|
5104
5118
|
/**
|
|
5105
5119
|
* @displayName Dropdown
|
|
5106
5120
|
*/
|
|
5107
|
-
function Dropdown
|
|
5121
|
+
function Dropdown(_ref) {
|
|
5108
5122
|
var drop = _ref.drop,
|
|
5109
5123
|
alignEnd = _ref.alignEnd,
|
|
5110
5124
|
defaultShow = _ref.defaultShow,
|
|
@@ -5237,7 +5251,7 @@ function Dropdown$1(_ref) {
|
|
|
5237
5251
|
}
|
|
5238
5252
|
};
|
|
5239
5253
|
|
|
5240
|
-
return /*#__PURE__*/
|
|
5254
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5241
5255
|
value: context
|
|
5242
5256
|
}, children({
|
|
5243
5257
|
props: {
|
|
@@ -5246,19 +5260,19 @@ function Dropdown$1(_ref) {
|
|
|
5246
5260
|
}));
|
|
5247
5261
|
}
|
|
5248
5262
|
|
|
5249
|
-
Dropdown
|
|
5250
|
-
Dropdown
|
|
5251
|
-
Dropdown
|
|
5252
|
-
Dropdown
|
|
5263
|
+
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5264
|
+
Dropdown.propTypes = propTypes$4;
|
|
5265
|
+
Dropdown.Menu = DropdownMenu;
|
|
5266
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5253
5267
|
|
|
5254
|
-
var NavContext =
|
|
5268
|
+
var NavContext = React__default.createContext(null);
|
|
5255
5269
|
NavContext.displayName = 'NavContext';
|
|
5256
5270
|
|
|
5257
|
-
var defaultProps$
|
|
5271
|
+
var defaultProps$e = {
|
|
5258
5272
|
as: SafeAnchor,
|
|
5259
5273
|
disabled: false
|
|
5260
5274
|
};
|
|
5261
|
-
var DropdownItem =
|
|
5275
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5262
5276
|
var bsPrefix = _ref.bsPrefix,
|
|
5263
5277
|
className = _ref.className,
|
|
5264
5278
|
children = _ref.children,
|
|
@@ -5269,7 +5283,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5269
5283
|
onSelect = _ref.onSelect,
|
|
5270
5284
|
propActive = _ref.active,
|
|
5271
5285
|
Component = _ref.as,
|
|
5272
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5286
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5273
5287
|
|
|
5274
5288
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5275
5289
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5293,7 +5307,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5293
5307
|
/*#__PURE__*/
|
|
5294
5308
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5295
5309
|
// @ts-ignore
|
|
5296
|
-
|
|
5310
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5297
5311
|
ref: ref,
|
|
5298
5312
|
href: href,
|
|
5299
5313
|
disabled: disabled,
|
|
@@ -5303,7 +5317,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5303
5317
|
);
|
|
5304
5318
|
});
|
|
5305
5319
|
DropdownItem.displayName = 'DropdownItem';
|
|
5306
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5320
|
+
DropdownItem.defaultProps = defaultProps$e;
|
|
5307
5321
|
|
|
5308
5322
|
var toFnRef = function toFnRef(ref) {
|
|
5309
5323
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5342,8 +5356,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5342
5356
|
}, [refA, refB]);
|
|
5343
5357
|
}
|
|
5344
5358
|
|
|
5345
|
-
var context =
|
|
5346
|
-
context.displayName = 'NavbarContext';
|
|
5359
|
+
var context$2 = React__default.createContext(null);
|
|
5360
|
+
context$2.displayName = 'NavbarContext';
|
|
5347
5361
|
|
|
5348
5362
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5349
5363
|
// @ts-ignore
|
|
@@ -5464,13 +5478,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5464
5478
|
}), PropTypes.shape({
|
|
5465
5479
|
xl: alignDirection
|
|
5466
5480
|
})]);
|
|
5467
|
-
var defaultProps$
|
|
5481
|
+
var defaultProps$f = {
|
|
5468
5482
|
align: 'left',
|
|
5469
5483
|
alignRight: false,
|
|
5470
5484
|
flip: true
|
|
5471
5485
|
}; // TODO: remove this hack
|
|
5472
5486
|
|
|
5473
|
-
var DropdownMenu =
|
|
5487
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5474
5488
|
var bsPrefix = _ref.bsPrefix,
|
|
5475
5489
|
className = _ref.className,
|
|
5476
5490
|
align = _ref.align,
|
|
@@ -5482,9 +5496,9 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5482
5496
|
_ref$as = _ref.as,
|
|
5483
5497
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5484
5498
|
popperConfig = _ref.popperConfig,
|
|
5485
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5486
5500
|
|
|
5487
|
-
var isNavbar = useContext(context);
|
|
5501
|
+
var isNavbar = useContext(context$2);
|
|
5488
5502
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5489
5503
|
|
|
5490
5504
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5518,7 +5532,7 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5518
5532
|
show: showProps,
|
|
5519
5533
|
alignEnd: alignRight,
|
|
5520
5534
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5521
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5535
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5522
5536
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5523
5537
|
})
|
|
5524
5538
|
}),
|
|
@@ -5541,16 +5555,16 @@ var DropdownMenu = React.forwardRef(function (_ref, ref) {
|
|
|
5541
5555
|
if (placement) {
|
|
5542
5556
|
// we don't need the default popper style,
|
|
5543
5557
|
// menus are display: none when not shown.
|
|
5544
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5558
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5545
5559
|
props['x-placement'] = placement;
|
|
5546
5560
|
}
|
|
5547
5561
|
|
|
5548
|
-
return /*#__PURE__*/
|
|
5562
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5549
5563
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5550
5564
|
}));
|
|
5551
5565
|
});
|
|
5552
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
5553
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5566
|
+
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
5567
|
+
DropdownMenu$1.defaultProps = defaultProps$f;
|
|
5554
5568
|
|
|
5555
5569
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5556
5570
|
|
|
@@ -5579,14 +5593,14 @@ module.exports = exports['default'];
|
|
|
5579
5593
|
|
|
5580
5594
|
unwrapExports(isRequiredForA11y_1);
|
|
5581
5595
|
|
|
5582
|
-
var DropdownToggle =
|
|
5596
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5583
5597
|
var bsPrefix = _ref.bsPrefix,
|
|
5584
5598
|
split = _ref.split,
|
|
5585
5599
|
className = _ref.className,
|
|
5586
5600
|
childBsPrefix = _ref.childBsPrefix,
|
|
5587
5601
|
_ref$as = _ref.as,
|
|
5588
5602
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5589
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5603
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5590
5604
|
|
|
5591
5605
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5592
5606
|
|
|
@@ -5601,12 +5615,12 @@ var DropdownToggle = React.forwardRef(function (_ref, ref) {
|
|
|
5601
5615
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5602
5616
|
// underlying component, to allow it to render size and style variants.
|
|
5603
5617
|
|
|
5604
|
-
return /*#__PURE__*/
|
|
5618
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5605
5619
|
onClick: toggle,
|
|
5606
5620
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5607
5621
|
}, toggleProps, props));
|
|
5608
5622
|
});
|
|
5609
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
5623
|
+
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5610
5624
|
|
|
5611
5625
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5612
5626
|
defaultProps: {
|
|
@@ -5621,10 +5635,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5621
5635
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5622
5636
|
Component: 'span'
|
|
5623
5637
|
});
|
|
5624
|
-
var defaultProps$
|
|
5638
|
+
var defaultProps$g = {
|
|
5625
5639
|
navbar: false
|
|
5626
5640
|
};
|
|
5627
|
-
var Dropdown =
|
|
5641
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5628
5642
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5629
5643
|
show: 'onToggle'
|
|
5630
5644
|
}),
|
|
@@ -5637,9 +5651,9 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5637
5651
|
onToggle = _useUncontrolled.onToggle,
|
|
5638
5652
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5639
5653
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5640
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5641
|
-
_useUncontrolled.navbar
|
|
5642
|
-
|
|
5654
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5655
|
+
_4 = _useUncontrolled.navbar,
|
|
5656
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5643
5657
|
|
|
5644
5658
|
var onSelectCtx = useContext(SelectableContext);
|
|
5645
5659
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5661,9 +5675,9 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5661
5675
|
if (onSelect) onSelect(key, event);
|
|
5662
5676
|
handleToggle(false, event, 'select');
|
|
5663
5677
|
});
|
|
5664
|
-
return /*#__PURE__*/
|
|
5678
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5665
5679
|
value: handleSelect
|
|
5666
|
-
}, /*#__PURE__*/
|
|
5680
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5667
5681
|
drop: drop,
|
|
5668
5682
|
show: show,
|
|
5669
5683
|
alignEnd: alignRight,
|
|
@@ -5672,20 +5686,20 @@ var Dropdown = React.forwardRef(function (pProps, ref) {
|
|
|
5672
5686
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5673
5687
|
}, function (_ref) {
|
|
5674
5688
|
var dropdownProps = _ref.props;
|
|
5675
|
-
return /*#__PURE__*/
|
|
5689
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5676
5690
|
ref: ref,
|
|
5677
5691
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5678
5692
|
}));
|
|
5679
5693
|
}));
|
|
5680
5694
|
});
|
|
5681
|
-
Dropdown.displayName = 'Dropdown';
|
|
5682
|
-
Dropdown.defaultProps = defaultProps$
|
|
5683
|
-
Dropdown.Divider = DropdownDivider;
|
|
5684
|
-
Dropdown.Header = DropdownHeader;
|
|
5685
|
-
Dropdown.Item = DropdownItem;
|
|
5686
|
-
Dropdown.ItemText = DropdownItemText;
|
|
5687
|
-
Dropdown.Menu = DropdownMenu;
|
|
5688
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5695
|
+
Dropdown$1.displayName = 'Dropdown';
|
|
5696
|
+
Dropdown$1.defaultProps = defaultProps$g;
|
|
5697
|
+
Dropdown$1.Divider = DropdownDivider;
|
|
5698
|
+
Dropdown$1.Header = DropdownHeader;
|
|
5699
|
+
Dropdown$1.Item = DropdownItem;
|
|
5700
|
+
Dropdown$1.ItemText = DropdownItemText;
|
|
5701
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5702
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5689
5703
|
|
|
5690
5704
|
var propTypes$5 = {
|
|
5691
5705
|
/**
|
|
@@ -5747,7 +5761,7 @@ var propTypes$5 = {
|
|
|
5747
5761
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5748
5762
|
*/
|
|
5749
5763
|
|
|
5750
|
-
var DropdownButton =
|
|
5764
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5751
5765
|
var title = _ref.title,
|
|
5752
5766
|
children = _ref.children,
|
|
5753
5767
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5760,18 +5774,18 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5760
5774
|
disabled = _ref.disabled,
|
|
5761
5775
|
href = _ref.href,
|
|
5762
5776
|
id = _ref.id,
|
|
5763
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5777
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5764
5778
|
|
|
5765
|
-
return /*#__PURE__*/
|
|
5779
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5766
5780
|
ref: ref
|
|
5767
|
-
}, props), /*#__PURE__*/
|
|
5781
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5768
5782
|
id: id,
|
|
5769
5783
|
href: href,
|
|
5770
5784
|
size: size,
|
|
5771
5785
|
variant: variant,
|
|
5772
5786
|
disabled: disabled,
|
|
5773
5787
|
childBsPrefix: bsPrefix
|
|
5774
|
-
}, title), /*#__PURE__*/
|
|
5788
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5775
5789
|
align: menuAlign,
|
|
5776
5790
|
role: menuRole,
|
|
5777
5791
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5874,7 +5888,7 @@ module.exports = exports['default'];
|
|
|
5874
5888
|
|
|
5875
5889
|
unwrapExports(all_1);
|
|
5876
5890
|
|
|
5877
|
-
var propTypes$
|
|
5891
|
+
var propTypes$6 = {
|
|
5878
5892
|
/**
|
|
5879
5893
|
* Specify whether the feedback is for valid or invalid fields
|
|
5880
5894
|
*
|
|
@@ -5886,7 +5900,7 @@ var propTypes$4 = {
|
|
|
5886
5900
|
tooltip: PropTypes.bool,
|
|
5887
5901
|
as: PropTypes.elementType
|
|
5888
5902
|
};
|
|
5889
|
-
var Feedback =
|
|
5903
|
+
var Feedback = 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
|
|
5890
5904
|
function (_ref, ref) {
|
|
5891
5905
|
var _ref$as = _ref.as,
|
|
5892
5906
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5895,21 +5909,21 @@ function (_ref, ref) {
|
|
|
5895
5909
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5896
5910
|
_ref$tooltip = _ref.tooltip,
|
|
5897
5911
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5898
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5912
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5899
5913
|
|
|
5900
|
-
return /*#__PURE__*/
|
|
5914
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5901
5915
|
ref: ref,
|
|
5902
5916
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5903
5917
|
}));
|
|
5904
5918
|
});
|
|
5905
5919
|
Feedback.displayName = 'Feedback';
|
|
5906
|
-
Feedback.propTypes = propTypes$
|
|
5920
|
+
Feedback.propTypes = propTypes$6;
|
|
5907
5921
|
|
|
5908
|
-
var FormContext =
|
|
5922
|
+
var FormContext = React__default.createContext({
|
|
5909
5923
|
controlId: undefined
|
|
5910
5924
|
});
|
|
5911
5925
|
|
|
5912
|
-
var FormCheckInput =
|
|
5926
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5913
5927
|
var id = _ref.id,
|
|
5914
5928
|
bsPrefix = _ref.bsPrefix,
|
|
5915
5929
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5923,7 +5937,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5923
5937
|
isStatic = _ref.isStatic,
|
|
5924
5938
|
_ref$as = _ref.as,
|
|
5925
5939
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5926
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5940
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5927
5941
|
|
|
5928
5942
|
var _useContext = useContext(FormContext),
|
|
5929
5943
|
controlId = _useContext.controlId,
|
|
@@ -5934,7 +5948,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5934
5948
|
defaultPrefix = _ref2[1];
|
|
5935
5949
|
|
|
5936
5950
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5937
|
-
return /*#__PURE__*/
|
|
5951
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5938
5952
|
ref: ref,
|
|
5939
5953
|
type: type,
|
|
5940
5954
|
id: id || controlId,
|
|
@@ -5943,12 +5957,12 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5943
5957
|
});
|
|
5944
5958
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5945
5959
|
|
|
5946
|
-
var FormCheckLabel =
|
|
5960
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5947
5961
|
var bsPrefix = _ref.bsPrefix,
|
|
5948
5962
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5949
5963
|
className = _ref.className,
|
|
5950
5964
|
htmlFor = _ref.htmlFor,
|
|
5951
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5965
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5952
5966
|
|
|
5953
5967
|
var _useContext = useContext(FormContext),
|
|
5954
5968
|
controlId = _useContext.controlId,
|
|
@@ -5959,7 +5973,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5959
5973
|
defaultPrefix = _ref2[1];
|
|
5960
5974
|
|
|
5961
5975
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5962
|
-
return /*#__PURE__*/
|
|
5976
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
5963
5977
|
ref: ref,
|
|
5964
5978
|
htmlFor: htmlFor || controlId,
|
|
5965
5979
|
className: classnames(className, bsPrefix)
|
|
@@ -5967,7 +5981,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5967
5981
|
});
|
|
5968
5982
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5969
5983
|
|
|
5970
|
-
var FormCheck =
|
|
5984
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5971
5985
|
var id = _ref.id,
|
|
5972
5986
|
bsPrefix = _ref.bsPrefix,
|
|
5973
5987
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5993,7 +6007,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5993
6007
|
propCustom = _ref.custom,
|
|
5994
6008
|
_ref$as = _ref.as,
|
|
5995
6009
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5996
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6010
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5997
6011
|
|
|
5998
6012
|
var custom = type === 'switch' ? true : propCustom;
|
|
5999
6013
|
|
|
@@ -6013,7 +6027,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
6013
6027
|
};
|
|
6014
6028
|
}, [controlId, custom, id]);
|
|
6015
6029
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6016
|
-
var input = /*#__PURE__*/
|
|
6030
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6017
6031
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6018
6032
|
ref: ref,
|
|
6019
6033
|
isValid: isValid,
|
|
@@ -6022,14 +6036,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
6022
6036
|
disabled: disabled,
|
|
6023
6037
|
as: as
|
|
6024
6038
|
}));
|
|
6025
|
-
return /*#__PURE__*/
|
|
6039
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6026
6040
|
value: innerFormContext
|
|
6027
|
-
}, /*#__PURE__*/
|
|
6041
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6028
6042
|
style: style,
|
|
6029
6043
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6030
|
-
}, children || /*#__PURE__*/
|
|
6044
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
6031
6045
|
title: title
|
|
6032
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6046
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6033
6047
|
type: isValid ? 'valid' : 'invalid',
|
|
6034
6048
|
tooltip: feedbackTooltip
|
|
6035
6049
|
}, feedback))));
|
|
@@ -6038,7 +6052,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6038
6052
|
FormCheck.Input = FormCheckInput;
|
|
6039
6053
|
FormCheck.Label = FormCheckLabel;
|
|
6040
6054
|
|
|
6041
|
-
var FormFileInput =
|
|
6055
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6042
6056
|
var id = _ref.id,
|
|
6043
6057
|
bsPrefix = _ref.bsPrefix,
|
|
6044
6058
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6048,7 +6062,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6048
6062
|
lang = _ref.lang,
|
|
6049
6063
|
_ref$as = _ref.as,
|
|
6050
6064
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6051
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6065
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6052
6066
|
|
|
6053
6067
|
var _useContext = useContext(FormContext),
|
|
6054
6068
|
controlId = _useContext.controlId,
|
|
@@ -6061,7 +6075,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6061
6075
|
defaultPrefix = _ref2[1];
|
|
6062
6076
|
|
|
6063
6077
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6064
|
-
return /*#__PURE__*/
|
|
6078
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6065
6079
|
ref: ref,
|
|
6066
6080
|
id: id || controlId,
|
|
6067
6081
|
type: type,
|
|
@@ -6071,12 +6085,12 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6071
6085
|
});
|
|
6072
6086
|
FormFileInput.displayName = 'FormFileInput';
|
|
6073
6087
|
|
|
6074
|
-
var FormFileLabel =
|
|
6088
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6075
6089
|
var bsPrefix = _ref.bsPrefix,
|
|
6076
6090
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6077
6091
|
className = _ref.className,
|
|
6078
6092
|
htmlFor = _ref.htmlFor,
|
|
6079
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6093
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6080
6094
|
|
|
6081
6095
|
var _useContext = useContext(FormContext),
|
|
6082
6096
|
controlId = _useContext.controlId,
|
|
@@ -6087,7 +6101,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6087
6101
|
defaultPrefix = _ref2[1];
|
|
6088
6102
|
|
|
6089
6103
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6090
|
-
return /*#__PURE__*/
|
|
6104
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6091
6105
|
ref: ref,
|
|
6092
6106
|
htmlFor: htmlFor || controlId,
|
|
6093
6107
|
className: classnames(className, bsPrefix),
|
|
@@ -6096,7 +6110,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6096
6110
|
});
|
|
6097
6111
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6098
6112
|
|
|
6099
|
-
var FormFile =
|
|
6113
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6100
6114
|
var id = _ref.id,
|
|
6101
6115
|
bsPrefix = _ref.bsPrefix,
|
|
6102
6116
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6120,7 +6134,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6120
6134
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6121
6135
|
_ref$inputAs = _ref.inputAs,
|
|
6122
6136
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6123
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6137
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6124
6138
|
|
|
6125
6139
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6126
6140
|
prefix = _ref2[0],
|
|
@@ -6139,7 +6153,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6139
6153
|
};
|
|
6140
6154
|
}, [controlId, custom, id]);
|
|
6141
6155
|
var hasLabel = label != null && label !== false && !children;
|
|
6142
|
-
var input = /*#__PURE__*/
|
|
6156
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6143
6157
|
ref: ref,
|
|
6144
6158
|
isValid: isValid,
|
|
6145
6159
|
isInvalid: isInvalid,
|
|
@@ -6147,14 +6161,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6147
6161
|
as: inputAs,
|
|
6148
6162
|
lang: lang
|
|
6149
6163
|
}));
|
|
6150
|
-
return /*#__PURE__*/
|
|
6164
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6151
6165
|
value: innerFormContext
|
|
6152
|
-
}, /*#__PURE__*/
|
|
6166
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6153
6167
|
style: style,
|
|
6154
6168
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6155
|
-
}, children || /*#__PURE__*/
|
|
6169
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6156
6170
|
"data-browse": dataBrowse
|
|
6157
|
-
}, label)) : /*#__PURE__*/
|
|
6171
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6158
6172
|
type: isValid ? 'valid' : 'invalid',
|
|
6159
6173
|
tooltip: feedbackTooltip
|
|
6160
6174
|
}, feedback))));
|
|
@@ -6163,7 +6177,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6163
6177
|
FormFile.Input = FormFileInput;
|
|
6164
6178
|
FormFile.Label = FormFileLabel;
|
|
6165
6179
|
|
|
6166
|
-
var FormControl =
|
|
6180
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6167
6181
|
var bsPrefix = _ref.bsPrefix,
|
|
6168
6182
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6169
6183
|
type = _ref.type,
|
|
@@ -6180,7 +6194,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6180
6194
|
custom = _ref.custom,
|
|
6181
6195
|
_ref$as = _ref.as,
|
|
6182
6196
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6183
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6197
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6184
6198
|
|
|
6185
6199
|
var _useContext = useContext(FormContext),
|
|
6186
6200
|
controlId = _useContext.controlId;
|
|
@@ -6215,7 +6229,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6215
6229
|
}
|
|
6216
6230
|
|
|
6217
6231
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6218
|
-
return /*#__PURE__*/
|
|
6232
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6219
6233
|
type: type,
|
|
6220
6234
|
size: htmlSize,
|
|
6221
6235
|
ref: ref,
|
|
@@ -6229,14 +6243,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6229
6243
|
Feedback: Feedback
|
|
6230
6244
|
});
|
|
6231
6245
|
|
|
6232
|
-
var FormGroup =
|
|
6246
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6233
6247
|
var bsPrefix = _ref.bsPrefix,
|
|
6234
6248
|
className = _ref.className,
|
|
6235
6249
|
children = _ref.children,
|
|
6236
6250
|
controlId = _ref.controlId,
|
|
6237
6251
|
_ref$as = _ref.as,
|
|
6238
6252
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6239
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6253
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6240
6254
|
|
|
6241
6255
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6242
6256
|
var context = useMemo(function () {
|
|
@@ -6244,20 +6258,20 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6244
6258
|
controlId: controlId
|
|
6245
6259
|
};
|
|
6246
6260
|
}, [controlId]);
|
|
6247
|
-
return /*#__PURE__*/
|
|
6261
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6248
6262
|
value: context
|
|
6249
|
-
}, /*#__PURE__*/
|
|
6263
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6250
6264
|
ref: ref,
|
|
6251
6265
|
className: classnames(className, bsPrefix)
|
|
6252
6266
|
}), children));
|
|
6253
6267
|
});
|
|
6254
6268
|
FormGroup.displayName = 'FormGroup';
|
|
6255
6269
|
|
|
6256
|
-
var defaultProps$
|
|
6270
|
+
var defaultProps$h = {
|
|
6257
6271
|
column: false,
|
|
6258
6272
|
srOnly: false
|
|
6259
6273
|
};
|
|
6260
|
-
var FormLabel =
|
|
6274
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6261
6275
|
var _ref$as = _ref.as,
|
|
6262
6276
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6263
6277
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6265,7 +6279,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6265
6279
|
srOnly = _ref.srOnly,
|
|
6266
6280
|
className = _ref.className,
|
|
6267
6281
|
htmlFor = _ref.htmlFor,
|
|
6268
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6282
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6269
6283
|
|
|
6270
6284
|
var _useContext = useContext(FormContext),
|
|
6271
6285
|
controlId = _useContext.controlId;
|
|
@@ -6276,7 +6290,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6276
6290
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6277
6291
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6278
6292
|
htmlFor = htmlFor || controlId;
|
|
6279
|
-
if (column) return /*#__PURE__*/
|
|
6293
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6280
6294
|
as: "label",
|
|
6281
6295
|
className: classes,
|
|
6282
6296
|
htmlFor: htmlFor
|
|
@@ -6284,7 +6298,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6284
6298
|
return (
|
|
6285
6299
|
/*#__PURE__*/
|
|
6286
6300
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6287
|
-
|
|
6301
|
+
React__default.createElement(Component, _extends$1({
|
|
6288
6302
|
ref: ref,
|
|
6289
6303
|
className: classes,
|
|
6290
6304
|
htmlFor: htmlFor
|
|
@@ -6292,27 +6306,27 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6292
6306
|
);
|
|
6293
6307
|
});
|
|
6294
6308
|
FormLabel.displayName = 'FormLabel';
|
|
6295
|
-
FormLabel.defaultProps = defaultProps$
|
|
6309
|
+
FormLabel.defaultProps = defaultProps$h;
|
|
6296
6310
|
|
|
6297
|
-
var FormText =
|
|
6311
|
+
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
|
|
6298
6312
|
function (_ref, ref) {
|
|
6299
6313
|
var bsPrefix = _ref.bsPrefix,
|
|
6300
6314
|
className = _ref.className,
|
|
6301
6315
|
_ref$as = _ref.as,
|
|
6302
6316
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6303
6317
|
muted = _ref.muted,
|
|
6304
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6318
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6305
6319
|
|
|
6306
6320
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6307
|
-
return /*#__PURE__*/
|
|
6321
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6308
6322
|
ref: ref,
|
|
6309
6323
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6310
6324
|
}));
|
|
6311
6325
|
});
|
|
6312
6326
|
FormText.displayName = 'FormText';
|
|
6313
6327
|
|
|
6314
|
-
var Switch =
|
|
6315
|
-
return /*#__PURE__*/
|
|
6328
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6329
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6316
6330
|
ref: ref,
|
|
6317
6331
|
type: "switch"
|
|
6318
6332
|
}));
|
|
@@ -6322,26 +6336,26 @@ Switch.Input = FormCheck.Input;
|
|
|
6322
6336
|
Switch.Label = FormCheck.Label;
|
|
6323
6337
|
|
|
6324
6338
|
var FormRow = createWithBsPrefix('form-row');
|
|
6325
|
-
var defaultProps$
|
|
6339
|
+
var defaultProps$i = {
|
|
6326
6340
|
inline: false
|
|
6327
6341
|
};
|
|
6328
|
-
var FormImpl =
|
|
6342
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6329
6343
|
var bsPrefix = _ref.bsPrefix,
|
|
6330
6344
|
inline = _ref.inline,
|
|
6331
6345
|
className = _ref.className,
|
|
6332
6346
|
validated = _ref.validated,
|
|
6333
6347
|
_ref$as = _ref.as,
|
|
6334
6348
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6335
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6349
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6336
6350
|
|
|
6337
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6338
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6339
6353
|
ref: ref,
|
|
6340
6354
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6341
6355
|
}));
|
|
6342
6356
|
});
|
|
6343
6357
|
FormImpl.displayName = 'Form';
|
|
6344
|
-
FormImpl.defaultProps = defaultProps$
|
|
6358
|
+
FormImpl.defaultProps = defaultProps$i;
|
|
6345
6359
|
FormImpl.Row = FormRow;
|
|
6346
6360
|
FormImpl.Group = FormGroup;
|
|
6347
6361
|
FormImpl.Control = FormControl$1;
|
|
@@ -6351,29 +6365,29 @@ FormImpl.Switch = Switch;
|
|
|
6351
6365
|
FormImpl.Label = FormLabel;
|
|
6352
6366
|
FormImpl.Text = FormText;
|
|
6353
6367
|
|
|
6354
|
-
var defaultProps$
|
|
6368
|
+
var defaultProps$j = {
|
|
6355
6369
|
fluid: false
|
|
6356
6370
|
};
|
|
6357
|
-
var Container =
|
|
6371
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6358
6372
|
var bsPrefix = _ref.bsPrefix,
|
|
6359
6373
|
fluid = _ref.fluid,
|
|
6360
6374
|
_ref$as = _ref.as,
|
|
6361
6375
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6362
6376
|
className = _ref.className,
|
|
6363
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6377
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6364
6378
|
|
|
6365
6379
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6366
6380
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6367
|
-
return /*#__PURE__*/
|
|
6381
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6368
6382
|
ref: ref
|
|
6369
6383
|
}, props, {
|
|
6370
6384
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6371
6385
|
}));
|
|
6372
6386
|
});
|
|
6373
6387
|
Container.displayName = 'Container';
|
|
6374
|
-
Container.defaultProps = defaultProps$
|
|
6388
|
+
Container.defaultProps = defaultProps$j;
|
|
6375
6389
|
|
|
6376
|
-
var propTypes$
|
|
6390
|
+
var propTypes$7 = {
|
|
6377
6391
|
/**
|
|
6378
6392
|
* @default 'img'
|
|
6379
6393
|
*/
|
|
@@ -6405,18 +6419,18 @@ var defaultProps$k = {
|
|
|
6405
6419
|
roundedCircle: false,
|
|
6406
6420
|
thumbnail: false
|
|
6407
6421
|
};
|
|
6408
|
-
var Image =
|
|
6422
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6409
6423
|
var bsPrefix = _ref.bsPrefix,
|
|
6410
6424
|
className = _ref.className,
|
|
6411
6425
|
fluid = _ref.fluid,
|
|
6412
6426
|
rounded = _ref.rounded,
|
|
6413
6427
|
roundedCircle = _ref.roundedCircle,
|
|
6414
6428
|
thumbnail = _ref.thumbnail,
|
|
6415
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6429
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6416
6430
|
|
|
6417
6431
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6418
6432
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6419
|
-
return /*#__PURE__*/
|
|
6433
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6420
6434
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6421
6435
|
ref: ref
|
|
6422
6436
|
}, props, {
|
|
@@ -6426,22 +6440,22 @@ var Image = React.forwardRef(function (_ref, ref) {
|
|
|
6426
6440
|
Image.displayName = 'Image';
|
|
6427
6441
|
Image.defaultProps = defaultProps$k;
|
|
6428
6442
|
|
|
6429
|
-
var defaultProps$
|
|
6443
|
+
var defaultProps$l = {
|
|
6430
6444
|
fluid: true
|
|
6431
6445
|
};
|
|
6432
|
-
var FigureImage =
|
|
6446
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6433
6447
|
var className = _ref.className,
|
|
6434
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6448
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6435
6449
|
|
|
6436
|
-
return /*#__PURE__*/
|
|
6450
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6437
6451
|
ref: ref
|
|
6438
6452
|
}, props, {
|
|
6439
6453
|
className: classnames(className, 'figure-img')
|
|
6440
6454
|
}));
|
|
6441
6455
|
});
|
|
6442
6456
|
FigureImage.displayName = 'FigureImage';
|
|
6443
|
-
FigureImage.propTypes = propTypes$
|
|
6444
|
-
FigureImage.defaultProps = defaultProps$
|
|
6457
|
+
FigureImage.propTypes = propTypes$7;
|
|
6458
|
+
FigureImage.defaultProps = defaultProps$l;
|
|
6445
6459
|
|
|
6446
6460
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6447
6461
|
Component: 'figcaption'
|
|
@@ -6460,13 +6474,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6460
6474
|
});
|
|
6461
6475
|
|
|
6462
6476
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6463
|
-
return /*#__PURE__*/
|
|
6477
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6464
6478
|
type: "checkbox"
|
|
6465
6479
|
}, props)));
|
|
6466
6480
|
};
|
|
6467
6481
|
|
|
6468
6482
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6469
|
-
return /*#__PURE__*/
|
|
6483
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6470
6484
|
type: "radio"
|
|
6471
6485
|
}, props)));
|
|
6472
6486
|
};
|
|
@@ -6479,16 +6493,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6479
6493
|
* @property {InputGroupRadio} Radio
|
|
6480
6494
|
* @property {InputGroupCheckbox} Checkbox
|
|
6481
6495
|
*/
|
|
6482
|
-
var InputGroup =
|
|
6496
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6483
6497
|
var bsPrefix = _ref.bsPrefix,
|
|
6484
6498
|
size = _ref.size,
|
|
6485
6499
|
className = _ref.className,
|
|
6486
6500
|
_ref$as = _ref.as,
|
|
6487
6501
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6488
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6502
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6489
6503
|
|
|
6490
6504
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6491
|
-
return /*#__PURE__*/
|
|
6505
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6492
6506
|
ref: ref
|
|
6493
6507
|
}, props, {
|
|
6494
6508
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6496,7 +6510,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6496
6510
|
});
|
|
6497
6511
|
InputGroup.displayName = 'InputGroup';
|
|
6498
6512
|
|
|
6499
|
-
_extends({}, InputGroup, {
|
|
6513
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6500
6514
|
Text: InputGroupText,
|
|
6501
6515
|
Radio: InputGroupRadio,
|
|
6502
6516
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6504,10 +6518,10 @@ _extends({}, InputGroup, {
|
|
|
6504
6518
|
Prepend: InputGroupPrepend
|
|
6505
6519
|
});
|
|
6506
6520
|
|
|
6507
|
-
var defaultProps$
|
|
6521
|
+
var defaultProps$m = {
|
|
6508
6522
|
fluid: false
|
|
6509
6523
|
};
|
|
6510
|
-
var Jumbotron =
|
|
6524
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6511
6525
|
var _classes;
|
|
6512
6526
|
|
|
6513
6527
|
var _ref$as = _ref.as,
|
|
@@ -6515,32 +6529,32 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6515
6529
|
className = _ref.className,
|
|
6516
6530
|
fluid = _ref.fluid,
|
|
6517
6531
|
bsPrefix = _ref.bsPrefix,
|
|
6518
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6532
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6519
6533
|
|
|
6520
6534
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6521
6535
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6522
|
-
return /*#__PURE__*/
|
|
6536
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6523
6537
|
ref: ref
|
|
6524
6538
|
}, props, {
|
|
6525
6539
|
className: classnames(className, classes)
|
|
6526
6540
|
}));
|
|
6527
6541
|
});
|
|
6528
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6542
|
+
Jumbotron.defaultProps = defaultProps$m;
|
|
6529
6543
|
Jumbotron.displayName = 'Jumbotron';
|
|
6530
6544
|
|
|
6531
|
-
var TabContext =
|
|
6545
|
+
var TabContext = React__default.createContext(null);
|
|
6532
6546
|
|
|
6533
6547
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6534
|
-
var noop$
|
|
6548
|
+
var noop$4 = function noop() {};
|
|
6535
6549
|
|
|
6536
|
-
var AbstractNav =
|
|
6550
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6537
6551
|
var _ref$as = _ref.as,
|
|
6538
6552
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6539
6553
|
onSelect = _ref.onSelect,
|
|
6540
6554
|
activeKey = _ref.activeKey,
|
|
6541
6555
|
role = _ref.role,
|
|
6542
6556
|
onKeyDown = _ref.onKeyDown,
|
|
6543
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6557
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6544
6558
|
|
|
6545
6559
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6546
6560
|
// and don't want to reset the set in the effect
|
|
@@ -6614,34 +6628,34 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6614
6628
|
needsRefocusRef.current = false;
|
|
6615
6629
|
});
|
|
6616
6630
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6617
|
-
return /*#__PURE__*/
|
|
6631
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6618
6632
|
value: handleSelect
|
|
6619
|
-
}, /*#__PURE__*/
|
|
6633
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6620
6634
|
value: {
|
|
6621
6635
|
role: role,
|
|
6622
6636
|
// used by NavLink to determine it's role
|
|
6623
6637
|
activeKey: makeEventKey(activeKey),
|
|
6624
|
-
getControlledId: getControlledId || noop$
|
|
6625
|
-
getControllerId: getControllerId || noop$
|
|
6638
|
+
getControlledId: getControlledId || noop$4,
|
|
6639
|
+
getControllerId: getControllerId || noop$4
|
|
6626
6640
|
}
|
|
6627
|
-
}, /*#__PURE__*/
|
|
6641
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6628
6642
|
onKeyDown: handleKeyDown,
|
|
6629
6643
|
ref: mergedRef,
|
|
6630
6644
|
role: role
|
|
6631
6645
|
}))));
|
|
6632
6646
|
});
|
|
6633
6647
|
|
|
6634
|
-
var defaultProps$
|
|
6648
|
+
var defaultProps$n = {
|
|
6635
6649
|
disabled: false
|
|
6636
6650
|
};
|
|
6637
|
-
var AbstractNavItem =
|
|
6651
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6638
6652
|
var active = _ref.active,
|
|
6639
6653
|
className = _ref.className,
|
|
6640
6654
|
eventKey = _ref.eventKey,
|
|
6641
6655
|
onSelect = _ref.onSelect,
|
|
6642
6656
|
onClick = _ref.onClick,
|
|
6643
6657
|
Component = _ref.as,
|
|
6644
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6658
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6645
6659
|
|
|
6646
6660
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6647
6661
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6671,20 +6685,20 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6671
6685
|
if (onSelect) onSelect(navKey, e);
|
|
6672
6686
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6673
6687
|
});
|
|
6674
|
-
return /*#__PURE__*/
|
|
6688
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6675
6689
|
ref: ref,
|
|
6676
6690
|
onClick: handleOnclick,
|
|
6677
6691
|
className: classnames(className, isActive && 'active')
|
|
6678
6692
|
}));
|
|
6679
6693
|
});
|
|
6680
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6694
|
+
AbstractNavItem.defaultProps = defaultProps$n;
|
|
6681
6695
|
|
|
6682
|
-
var defaultProps$
|
|
6696
|
+
var defaultProps$o = {
|
|
6683
6697
|
variant: undefined,
|
|
6684
6698
|
active: false,
|
|
6685
6699
|
disabled: false
|
|
6686
6700
|
};
|
|
6687
|
-
var ListGroupItem =
|
|
6701
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6688
6702
|
var bsPrefix = _ref.bsPrefix,
|
|
6689
6703
|
active = _ref.active,
|
|
6690
6704
|
disabled = _ref.disabled,
|
|
@@ -6694,7 +6708,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6694
6708
|
as = _ref.as,
|
|
6695
6709
|
eventKey = _ref.eventKey,
|
|
6696
6710
|
onClick = _ref.onClick,
|
|
6697
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6711
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6698
6712
|
|
|
6699
6713
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6700
6714
|
var handleClick = useCallback(function (event) {
|
|
@@ -6706,7 +6720,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6706
6720
|
|
|
6707
6721
|
if (onClick) onClick(event);
|
|
6708
6722
|
}, [disabled, onClick]);
|
|
6709
|
-
return /*#__PURE__*/
|
|
6723
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6710
6724
|
ref: ref
|
|
6711
6725
|
}, props, {
|
|
6712
6726
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6717,14 +6731,14 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6717
6731
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6718
6732
|
}));
|
|
6719
6733
|
});
|
|
6720
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6734
|
+
ListGroupItem.defaultProps = defaultProps$o;
|
|
6721
6735
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6722
6736
|
|
|
6723
|
-
var defaultProps$
|
|
6737
|
+
var defaultProps$p = {
|
|
6724
6738
|
variant: undefined,
|
|
6725
6739
|
horizontal: undefined
|
|
6726
6740
|
};
|
|
6727
|
-
var ListGroup =
|
|
6741
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6728
6742
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6729
6743
|
activeKey: 'onSelect'
|
|
6730
6744
|
}),
|
|
@@ -6734,7 +6748,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6734
6748
|
horizontal = _useUncontrolled.horizontal,
|
|
6735
6749
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6736
6750
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6737
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6751
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6738
6752
|
|
|
6739
6753
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6740
6754
|
var horizontalVariant;
|
|
@@ -6746,28 +6760,28 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6746
6760
|
}
|
|
6747
6761
|
|
|
6748
6762
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6749
|
-
return /*#__PURE__*/
|
|
6763
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6750
6764
|
ref: ref
|
|
6751
6765
|
}, controlledProps, {
|
|
6752
6766
|
as: as,
|
|
6753
6767
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6754
6768
|
}));
|
|
6755
6769
|
});
|
|
6756
|
-
ListGroup.defaultProps = defaultProps$
|
|
6770
|
+
ListGroup.defaultProps = defaultProps$p;
|
|
6757
6771
|
ListGroup.displayName = 'ListGroup';
|
|
6758
6772
|
ListGroup.Item = ListGroupItem;
|
|
6759
6773
|
|
|
6760
6774
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6761
|
-
var Media =
|
|
6775
|
+
var Media = 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
|
|
6762
6776
|
function (_ref, ref) {
|
|
6763
6777
|
var bsPrefix = _ref.bsPrefix,
|
|
6764
6778
|
className = _ref.className,
|
|
6765
6779
|
_ref$as = _ref.as,
|
|
6766
6780
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6767
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6781
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6768
6782
|
|
|
6769
6783
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6770
|
-
return /*#__PURE__*/
|
|
6784
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6771
6785
|
ref: ref,
|
|
6772
6786
|
className: classnames(className, prefix)
|
|
6773
6787
|
}));
|
|
@@ -6802,7 +6816,7 @@ function scrollbarSize(recalc) {
|
|
|
6802
6816
|
|
|
6803
6817
|
function activeElement(doc) {
|
|
6804
6818
|
if (doc === void 0) {
|
|
6805
|
-
doc = ownerDocument
|
|
6819
|
+
doc = ownerDocument();
|
|
6806
6820
|
}
|
|
6807
6821
|
|
|
6808
6822
|
// Support: IE 9 only
|
|
@@ -6852,7 +6866,7 @@ function isBody(node) {
|
|
|
6852
6866
|
}
|
|
6853
6867
|
|
|
6854
6868
|
function bodyIsOverflowing(node) {
|
|
6855
|
-
var doc = isWindow(node) ? ownerDocument
|
|
6869
|
+
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6856
6870
|
var win = isWindow(node) || doc.defaultView;
|
|
6857
6871
|
return doc.body.clientWidth < win.innerWidth;
|
|
6858
6872
|
}
|
|
@@ -7064,7 +7078,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7064
7078
|
var _ref;
|
|
7065
7079
|
|
|
7066
7080
|
if (typeof document === 'undefined') return null;
|
|
7067
|
-
if (ref == null) return ownerDocument
|
|
7081
|
+
if (ref == null) return ownerDocument().body;
|
|
7068
7082
|
if (typeof ref === 'function') ref = ref();
|
|
7069
7083
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7070
7084
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7097,11 +7111,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7097
7111
|
return resolvedRef;
|
|
7098
7112
|
}
|
|
7099
7113
|
|
|
7100
|
-
var manager
|
|
7114
|
+
var manager;
|
|
7101
7115
|
|
|
7102
7116
|
function getManager() {
|
|
7103
|
-
if (!manager
|
|
7104
|
-
return manager
|
|
7117
|
+
if (!manager) manager = new ModalManager();
|
|
7118
|
+
return manager;
|
|
7105
7119
|
}
|
|
7106
7120
|
|
|
7107
7121
|
function useModalManager(provided) {
|
|
@@ -7129,7 +7143,7 @@ function useModalManager(provided) {
|
|
|
7129
7143
|
});
|
|
7130
7144
|
}
|
|
7131
7145
|
|
|
7132
|
-
var Modal
|
|
7146
|
+
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7133
7147
|
var _ref$show = _ref.show,
|
|
7134
7148
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7135
7149
|
_ref$role = _ref.role,
|
|
@@ -7155,7 +7169,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7155
7169
|
renderDialog = _ref.renderDialog,
|
|
7156
7170
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7157
7171
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7158
|
-
return /*#__PURE__*/
|
|
7172
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7159
7173
|
} : _ref$renderBackdrop,
|
|
7160
7174
|
providedManager = _ref.manager,
|
|
7161
7175
|
containerRef = _ref.container,
|
|
@@ -7213,7 +7227,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7213
7227
|
if (autoFocus) {
|
|
7214
7228
|
var currentActiveElement = activeElement(document);
|
|
7215
7229
|
|
|
7216
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7230
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7217
7231
|
lastFocusRef.current = currentActiveElement;
|
|
7218
7232
|
modal.dialog.focus();
|
|
7219
7233
|
}
|
|
@@ -7259,7 +7273,7 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7259
7273
|
|
|
7260
7274
|
var currentActiveElement = activeElement();
|
|
7261
7275
|
|
|
7262
|
-
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7276
|
+
if (modal.dialog && currentActiveElement && !contains$1(modal.dialog, currentActiveElement)) {
|
|
7263
7277
|
modal.dialog.focus();
|
|
7264
7278
|
}
|
|
7265
7279
|
});
|
|
@@ -7313,12 +7327,12 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7313
7327
|
tabIndex: -1
|
|
7314
7328
|
});
|
|
7315
7329
|
|
|
7316
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7330
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7317
7331
|
role: 'document'
|
|
7318
7332
|
}));
|
|
7319
7333
|
|
|
7320
7334
|
if (Transition) {
|
|
7321
|
-
dialog = /*#__PURE__*/
|
|
7335
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7322
7336
|
appear: true,
|
|
7323
7337
|
unmountOnExit: true,
|
|
7324
7338
|
"in": !!show,
|
|
@@ -7341,16 +7355,16 @@ var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7341
7355
|
});
|
|
7342
7356
|
|
|
7343
7357
|
if (BackdropTransition) {
|
|
7344
|
-
backdropElement = /*#__PURE__*/
|
|
7358
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7345
7359
|
appear: true,
|
|
7346
7360
|
"in": !!show
|
|
7347
7361
|
}, backdropElement);
|
|
7348
7362
|
}
|
|
7349
7363
|
}
|
|
7350
7364
|
|
|
7351
|
-
return /*#__PURE__*/
|
|
7365
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7352
7366
|
});
|
|
7353
|
-
var propTypes$
|
|
7367
|
+
var propTypes$8 = {
|
|
7354
7368
|
/**
|
|
7355
7369
|
* Set the visibility of the Modal
|
|
7356
7370
|
*/
|
|
@@ -7506,9 +7520,9 @@ var propTypes$2 = {
|
|
|
7506
7520
|
*/
|
|
7507
7521
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7508
7522
|
};
|
|
7509
|
-
Modal
|
|
7510
|
-
Modal
|
|
7511
|
-
var BaseModal = Object.assign(Modal
|
|
7523
|
+
Modal.displayName = 'Modal';
|
|
7524
|
+
Modal.propTypes = propTypes$8;
|
|
7525
|
+
var BaseModal = Object.assign(Modal, {
|
|
7512
7526
|
Manager: ModalManager
|
|
7513
7527
|
});
|
|
7514
7528
|
|
|
@@ -7587,12 +7601,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7587
7601
|
|
|
7588
7602
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7589
7603
|
|
|
7590
|
-
var ModalContext =
|
|
7604
|
+
var ModalContext = React__default.createContext({
|
|
7591
7605
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7592
7606
|
onHide: function onHide() {}
|
|
7593
7607
|
});
|
|
7594
7608
|
|
|
7595
|
-
var ModalDialog =
|
|
7609
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7596
7610
|
var bsPrefix = _ref.bsPrefix,
|
|
7597
7611
|
className = _ref.className,
|
|
7598
7612
|
contentClassName = _ref.contentClassName,
|
|
@@ -7600,14 +7614,14 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
7600
7614
|
size = _ref.size,
|
|
7601
7615
|
children = _ref.children,
|
|
7602
7616
|
scrollable = _ref.scrollable,
|
|
7603
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7617
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7604
7618
|
|
|
7605
7619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7606
7620
|
var dialogClass = bsPrefix + "-dialog";
|
|
7607
|
-
return /*#__PURE__*/
|
|
7621
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7608
7622
|
ref: ref,
|
|
7609
7623
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7610
|
-
}), /*#__PURE__*/
|
|
7624
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7611
7625
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7612
7626
|
}, children));
|
|
7613
7627
|
});
|
|
@@ -7615,18 +7629,18 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7615
7629
|
|
|
7616
7630
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7617
7631
|
|
|
7618
|
-
var defaultProps$
|
|
7632
|
+
var defaultProps$q = {
|
|
7619
7633
|
closeLabel: 'Close',
|
|
7620
7634
|
closeButton: false
|
|
7621
7635
|
};
|
|
7622
|
-
var ModalHeader =
|
|
7636
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7623
7637
|
var bsPrefix = _ref.bsPrefix,
|
|
7624
7638
|
closeLabel = _ref.closeLabel,
|
|
7625
7639
|
closeButton = _ref.closeButton,
|
|
7626
7640
|
onHide = _ref.onHide,
|
|
7627
7641
|
className = _ref.className,
|
|
7628
7642
|
children = _ref.children,
|
|
7629
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7643
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7630
7644
|
|
|
7631
7645
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7632
7646
|
var context = useContext(ModalContext);
|
|
@@ -7634,25 +7648,25 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7634
7648
|
if (context) context.onHide();
|
|
7635
7649
|
if (onHide) onHide();
|
|
7636
7650
|
});
|
|
7637
|
-
return /*#__PURE__*/
|
|
7651
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7638
7652
|
ref: ref
|
|
7639
7653
|
}, props, {
|
|
7640
7654
|
className: classnames(className, bsPrefix)
|
|
7641
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7655
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7642
7656
|
label: closeLabel,
|
|
7643
7657
|
onClick: handleClick
|
|
7644
7658
|
}));
|
|
7645
7659
|
});
|
|
7646
7660
|
ModalHeader.displayName = 'ModalHeader';
|
|
7647
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7661
|
+
ModalHeader.defaultProps = defaultProps$q;
|
|
7648
7662
|
|
|
7649
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
7663
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
7650
7664
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7651
|
-
Component: DivStyledAsH4
|
|
7665
|
+
Component: DivStyledAsH4$1
|
|
7652
7666
|
});
|
|
7653
7667
|
|
|
7654
|
-
var manager;
|
|
7655
|
-
var defaultProps$
|
|
7668
|
+
var manager$1;
|
|
7669
|
+
var defaultProps$r = {
|
|
7656
7670
|
show: false,
|
|
7657
7671
|
backdrop: true,
|
|
7658
7672
|
keyboard: true,
|
|
@@ -7665,16 +7679,16 @@ var defaultProps$d = {
|
|
|
7665
7679
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7666
7680
|
|
|
7667
7681
|
function DialogTransition(props) {
|
|
7668
|
-
return /*#__PURE__*/
|
|
7682
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7669
7683
|
}
|
|
7670
7684
|
|
|
7671
7685
|
function BackdropTransition(props) {
|
|
7672
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7673
7687
|
}
|
|
7674
7688
|
/* eslint-enable no-use-before-define */
|
|
7675
7689
|
|
|
7676
7690
|
|
|
7677
|
-
var Modal =
|
|
7691
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7678
7692
|
var bsPrefix = _ref.bsPrefix,
|
|
7679
7693
|
className = _ref.className,
|
|
7680
7694
|
style = _ref.style,
|
|
@@ -7703,7 +7717,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7703
7717
|
onExited = _ref.onExited,
|
|
7704
7718
|
backdropClassName = _ref.backdropClassName,
|
|
7705
7719
|
propsManager = _ref.manager,
|
|
7706
|
-
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"]);
|
|
7720
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7707
7721
|
|
|
7708
7722
|
var _useState = useState({}),
|
|
7709
7723
|
modalStyle = _useState[0],
|
|
@@ -7740,14 +7754,14 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7740
7754
|
|
|
7741
7755
|
function getModalManager() {
|
|
7742
7756
|
if (propsManager) return propsManager;
|
|
7743
|
-
if (!manager) manager = new BootstrapModalManager();
|
|
7744
|
-
return manager;
|
|
7757
|
+
if (!manager$1) manager$1 = new BootstrapModalManager();
|
|
7758
|
+
return manager$1;
|
|
7745
7759
|
}
|
|
7746
7760
|
|
|
7747
7761
|
function updateDialogStyle(node) {
|
|
7748
7762
|
if (!canUseDOM) return;
|
|
7749
7763
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7750
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument
|
|
7764
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7751
7765
|
setStyle({
|
|
7752
7766
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7753
7767
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7869,12 +7883,12 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7869
7883
|
};
|
|
7870
7884
|
|
|
7871
7885
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7872
|
-
return /*#__PURE__*/
|
|
7886
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7873
7887
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7874
7888
|
}));
|
|
7875
7889
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7876
7890
|
|
|
7877
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7891
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7878
7892
|
|
|
7879
7893
|
|
|
7880
7894
|
if (!animation) {
|
|
@@ -7882,7 +7896,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7882
7896
|
}
|
|
7883
7897
|
|
|
7884
7898
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7885
|
-
return /*#__PURE__*/
|
|
7899
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7886
7900
|
role: "dialog"
|
|
7887
7901
|
}, dialogProps, {
|
|
7888
7902
|
style: baseModalStyle,
|
|
@@ -7890,7 +7904,7 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7890
7904
|
onClick: backdrop ? handleClick : undefined,
|
|
7891
7905
|
onMouseUp: handleMouseUp,
|
|
7892
7906
|
"aria-labelledby": ariaLabelledby
|
|
7893
|
-
}), /*#__PURE__*/
|
|
7907
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7894
7908
|
role: "document",
|
|
7895
7909
|
onMouseDown: handleDialogMouseDown,
|
|
7896
7910
|
className: dialogClassName,
|
|
@@ -7898,9 +7912,9 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7898
7912
|
}), children));
|
|
7899
7913
|
};
|
|
7900
7914
|
|
|
7901
|
-
return /*#__PURE__*/
|
|
7915
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7902
7916
|
value: modalContext
|
|
7903
|
-
}, /*#__PURE__*/
|
|
7917
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7904
7918
|
show: show,
|
|
7905
7919
|
ref: setModalRef,
|
|
7906
7920
|
backdrop: backdrop,
|
|
@@ -7928,38 +7942,38 @@ var Modal = React.forwardRef(function (_ref, ref) {
|
|
|
7928
7942
|
renderDialog: renderDialog
|
|
7929
7943
|
}));
|
|
7930
7944
|
});
|
|
7931
|
-
Modal.displayName = 'Modal';
|
|
7932
|
-
Modal.defaultProps = defaultProps$
|
|
7933
|
-
Modal.Body = ModalBody;
|
|
7934
|
-
Modal.Header = ModalHeader;
|
|
7935
|
-
Modal.Title = ModalTitle;
|
|
7936
|
-
Modal.Footer = ModalFooter;
|
|
7937
|
-
Modal.Dialog = ModalDialog;
|
|
7938
|
-
Modal.TRANSITION_DURATION = 300;
|
|
7939
|
-
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7940
|
-
|
|
7941
|
-
var NavItem =
|
|
7945
|
+
Modal$1.displayName = 'Modal';
|
|
7946
|
+
Modal$1.defaultProps = defaultProps$r;
|
|
7947
|
+
Modal$1.Body = ModalBody;
|
|
7948
|
+
Modal$1.Header = ModalHeader;
|
|
7949
|
+
Modal$1.Title = ModalTitle;
|
|
7950
|
+
Modal$1.Footer = ModalFooter;
|
|
7951
|
+
Modal$1.Dialog = ModalDialog;
|
|
7952
|
+
Modal$1.TRANSITION_DURATION = 300;
|
|
7953
|
+
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7954
|
+
|
|
7955
|
+
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
|
|
7942
7956
|
function (_ref, ref) {
|
|
7943
7957
|
var bsPrefix = _ref.bsPrefix,
|
|
7944
7958
|
className = _ref.className,
|
|
7945
7959
|
children = _ref.children,
|
|
7946
7960
|
_ref$as = _ref.as,
|
|
7947
7961
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7948
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7962
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7949
7963
|
|
|
7950
7964
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7951
|
-
return /*#__PURE__*/
|
|
7965
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
7952
7966
|
ref: ref,
|
|
7953
7967
|
className: classnames(className, bsPrefix)
|
|
7954
7968
|
}), children);
|
|
7955
7969
|
});
|
|
7956
7970
|
NavItem.displayName = 'NavItem';
|
|
7957
7971
|
|
|
7958
|
-
var defaultProps$
|
|
7972
|
+
var defaultProps$s = {
|
|
7959
7973
|
disabled: false,
|
|
7960
7974
|
as: SafeAnchor
|
|
7961
7975
|
};
|
|
7962
|
-
var NavLink =
|
|
7976
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7963
7977
|
var bsPrefix = _ref.bsPrefix,
|
|
7964
7978
|
disabled = _ref.disabled,
|
|
7965
7979
|
className = _ref.className,
|
|
@@ -7967,10 +7981,10 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7967
7981
|
eventKey = _ref.eventKey,
|
|
7968
7982
|
onSelect = _ref.onSelect,
|
|
7969
7983
|
as = _ref.as,
|
|
7970
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7984
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7971
7985
|
|
|
7972
7986
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7973
|
-
return /*#__PURE__*/
|
|
7987
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
7974
7988
|
href: href,
|
|
7975
7989
|
ref: ref,
|
|
7976
7990
|
eventKey: eventKey,
|
|
@@ -7981,13 +7995,13 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7981
7995
|
}));
|
|
7982
7996
|
});
|
|
7983
7997
|
NavLink.displayName = 'NavLink';
|
|
7984
|
-
NavLink.defaultProps = defaultProps$
|
|
7998
|
+
NavLink.defaultProps = defaultProps$s;
|
|
7985
7999
|
|
|
7986
|
-
var defaultProps$
|
|
8000
|
+
var defaultProps$t = {
|
|
7987
8001
|
justify: false,
|
|
7988
8002
|
fill: false
|
|
7989
8003
|
};
|
|
7990
|
-
var Nav =
|
|
8004
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7991
8005
|
var _classNames;
|
|
7992
8006
|
|
|
7993
8007
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8003,13 +8017,13 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8003
8017
|
className = _useUncontrolled.className,
|
|
8004
8018
|
children = _useUncontrolled.children,
|
|
8005
8019
|
activeKey = _useUncontrolled.activeKey,
|
|
8006
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8020
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8007
8021
|
|
|
8008
8022
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8009
8023
|
var navbarBsPrefix;
|
|
8010
8024
|
var cardHeaderBsPrefix;
|
|
8011
8025
|
var isNavbar = false;
|
|
8012
|
-
var navbarContext = useContext(context);
|
|
8026
|
+
var navbarContext = useContext(context$2);
|
|
8013
8027
|
var cardContext = useContext(context$1);
|
|
8014
8028
|
|
|
8015
8029
|
if (navbarContext) {
|
|
@@ -8019,7 +8033,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8019
8033
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8020
8034
|
}
|
|
8021
8035
|
|
|
8022
|
-
return /*#__PURE__*/
|
|
8036
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8023
8037
|
as: as,
|
|
8024
8038
|
ref: ref,
|
|
8025
8039
|
activeKey: activeKey,
|
|
@@ -8027,35 +8041,35 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8027
8041
|
}, props), children);
|
|
8028
8042
|
});
|
|
8029
8043
|
Nav.displayName = 'Nav';
|
|
8030
|
-
Nav.defaultProps = defaultProps$
|
|
8044
|
+
Nav.defaultProps = defaultProps$t;
|
|
8031
8045
|
Nav.Item = NavItem;
|
|
8032
8046
|
Nav.Link = NavLink;
|
|
8033
8047
|
|
|
8034
|
-
var NavbarBrand =
|
|
8048
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
8035
8049
|
var bsPrefix = _ref.bsPrefix,
|
|
8036
8050
|
className = _ref.className,
|
|
8037
8051
|
as = _ref.as,
|
|
8038
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8052
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8039
8053
|
|
|
8040
8054
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8041
8055
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8042
|
-
return /*#__PURE__*/
|
|
8056
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8043
8057
|
ref: ref,
|
|
8044
8058
|
className: classnames(className, bsPrefix)
|
|
8045
8059
|
}));
|
|
8046
8060
|
});
|
|
8047
8061
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8048
8062
|
|
|
8049
|
-
var NavbarCollapse =
|
|
8063
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8050
8064
|
var children = _ref.children,
|
|
8051
8065
|
bsPrefix = _ref.bsPrefix,
|
|
8052
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8066
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8053
8067
|
|
|
8054
8068
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8055
|
-
return /*#__PURE__*/
|
|
8056
|
-
return /*#__PURE__*/
|
|
8069
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8070
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8057
8071
|
in: !!(context && context.expanded)
|
|
8058
|
-
}, props), /*#__PURE__*/
|
|
8072
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8059
8073
|
ref: ref,
|
|
8060
8074
|
className: bsPrefix
|
|
8061
8075
|
}, children));
|
|
@@ -8063,10 +8077,10 @@ var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
|
8063
8077
|
});
|
|
8064
8078
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8065
8079
|
|
|
8066
|
-
var defaultProps$
|
|
8080
|
+
var defaultProps$u = {
|
|
8067
8081
|
label: 'Toggle navigation'
|
|
8068
8082
|
};
|
|
8069
|
-
var NavbarToggle =
|
|
8083
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8070
8084
|
var bsPrefix = _ref.bsPrefix,
|
|
8071
8085
|
className = _ref.className,
|
|
8072
8086
|
children = _ref.children,
|
|
@@ -8074,11 +8088,11 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8074
8088
|
_ref$as = _ref.as,
|
|
8075
8089
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8076
8090
|
onClick = _ref.onClick,
|
|
8077
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8091
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8078
8092
|
|
|
8079
8093
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8080
8094
|
|
|
8081
|
-
var _ref2 = useContext(context) || {},
|
|
8095
|
+
var _ref2 = useContext(context$2) || {},
|
|
8082
8096
|
onToggle = _ref2.onToggle,
|
|
8083
8097
|
expanded = _ref2.expanded;
|
|
8084
8098
|
|
|
@@ -8091,27 +8105,27 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8091
8105
|
props.type = 'button';
|
|
8092
8106
|
}
|
|
8093
8107
|
|
|
8094
|
-
return /*#__PURE__*/
|
|
8108
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8095
8109
|
ref: ref,
|
|
8096
8110
|
onClick: handleClick,
|
|
8097
8111
|
"aria-label": label,
|
|
8098
8112
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8099
|
-
}), children || /*#__PURE__*/
|
|
8113
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8100
8114
|
className: bsPrefix + "-icon"
|
|
8101
8115
|
}));
|
|
8102
8116
|
});
|
|
8103
8117
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8104
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8118
|
+
NavbarToggle.defaultProps = defaultProps$u;
|
|
8105
8119
|
|
|
8106
8120
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8107
8121
|
Component: 'span'
|
|
8108
8122
|
});
|
|
8109
|
-
var defaultProps$
|
|
8123
|
+
var defaultProps$v = {
|
|
8110
8124
|
expand: true,
|
|
8111
8125
|
variant: 'light',
|
|
8112
8126
|
collapseOnSelect: false
|
|
8113
8127
|
};
|
|
8114
|
-
var Navbar =
|
|
8128
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8115
8129
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8116
8130
|
expanded: 'onToggle'
|
|
8117
8131
|
}),
|
|
@@ -8129,7 +8143,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8129
8143
|
_onToggle = _useUncontrolled.onToggle,
|
|
8130
8144
|
onSelect = _useUncontrolled.onSelect,
|
|
8131
8145
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8132
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8146
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8133
8147
|
|
|
8134
8148
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8135
8149
|
var handleCollapse = useCallback(function () {
|
|
@@ -8159,24 +8173,24 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8159
8173
|
expanded: !!expanded
|
|
8160
8174
|
};
|
|
8161
8175
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8162
|
-
return /*#__PURE__*/
|
|
8176
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8163
8177
|
value: navbarContext
|
|
8164
|
-
}, /*#__PURE__*/
|
|
8178
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8165
8179
|
value: handleCollapse
|
|
8166
|
-
}, /*#__PURE__*/
|
|
8180
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8167
8181
|
ref: ref
|
|
8168
8182
|
}, controlledProps, {
|
|
8169
8183
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8170
8184
|
}), children)));
|
|
8171
8185
|
});
|
|
8172
|
-
Navbar.defaultProps = defaultProps$
|
|
8186
|
+
Navbar.defaultProps = defaultProps$v;
|
|
8173
8187
|
Navbar.displayName = 'Navbar';
|
|
8174
8188
|
Navbar.Brand = NavbarBrand;
|
|
8175
8189
|
Navbar.Toggle = NavbarToggle;
|
|
8176
8190
|
Navbar.Collapse = NavbarCollapse;
|
|
8177
8191
|
Navbar.Text = NavbarText;
|
|
8178
8192
|
|
|
8179
|
-
var propTypes$
|
|
8193
|
+
var propTypes$9 = {
|
|
8180
8194
|
/**
|
|
8181
8195
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8182
8196
|
* @type {string|number}
|
|
@@ -8212,7 +8226,7 @@ var propTypes$1 = {
|
|
|
8212
8226
|
/** @ignore */
|
|
8213
8227
|
bsPrefix: PropTypes.string
|
|
8214
8228
|
};
|
|
8215
|
-
var NavDropdown =
|
|
8229
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8216
8230
|
var id = _ref.id,
|
|
8217
8231
|
title = _ref.title,
|
|
8218
8232
|
children = _ref.children,
|
|
@@ -8222,37 +8236,37 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8222
8236
|
disabled = _ref.disabled,
|
|
8223
8237
|
active = _ref.active,
|
|
8224
8238
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8225
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8239
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8226
8240
|
|
|
8227
|
-
return /*#__PURE__*/
|
|
8241
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8228
8242
|
ref: ref
|
|
8229
8243
|
}, props, {
|
|
8230
8244
|
as: NavItem
|
|
8231
|
-
}), /*#__PURE__*/
|
|
8245
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8232
8246
|
id: id,
|
|
8233
8247
|
eventKey: null,
|
|
8234
8248
|
active: active,
|
|
8235
8249
|
disabled: disabled,
|
|
8236
8250
|
childBsPrefix: bsPrefix,
|
|
8237
8251
|
as: NavLink
|
|
8238
|
-
}, title), /*#__PURE__*/
|
|
8252
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8239
8253
|
role: menuRole,
|
|
8240
8254
|
renderOnMount: renderMenuOnMount,
|
|
8241
8255
|
rootCloseEvent: rootCloseEvent
|
|
8242
8256
|
}, children));
|
|
8243
8257
|
});
|
|
8244
8258
|
NavDropdown.displayName = 'NavDropdown';
|
|
8245
|
-
NavDropdown.propTypes = propTypes$
|
|
8246
|
-
NavDropdown.Item = Dropdown.Item;
|
|
8247
|
-
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8248
|
-
NavDropdown.Divider = Dropdown.Divider;
|
|
8249
|
-
NavDropdown.Header = Dropdown.Header;
|
|
8259
|
+
NavDropdown.propTypes = propTypes$9;
|
|
8260
|
+
NavDropdown.Item = Dropdown$1.Item;
|
|
8261
|
+
NavDropdown.ItemText = Dropdown$1.ItemText;
|
|
8262
|
+
NavDropdown.Divider = Dropdown$1.Divider;
|
|
8263
|
+
NavDropdown.Header = Dropdown$1.Header;
|
|
8250
8264
|
|
|
8251
8265
|
/**
|
|
8252
8266
|
* Built on top of `Popper.js`, the overlay component is
|
|
8253
8267
|
* great for custom tooltip overlays.
|
|
8254
8268
|
*/
|
|
8255
|
-
var Overlay = /*#__PURE__*/
|
|
8269
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8256
8270
|
var flip = props.flip,
|
|
8257
8271
|
offset = props.offset,
|
|
8258
8272
|
placement = props.placement,
|
|
@@ -8335,7 +8349,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8335
8349
|
onEnter = props.onEnter,
|
|
8336
8350
|
onEntering = props.onEntering,
|
|
8337
8351
|
onEntered = props.onEntered;
|
|
8338
|
-
child = /*#__PURE__*/
|
|
8352
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8339
8353
|
"in": props.show,
|
|
8340
8354
|
appear: true,
|
|
8341
8355
|
onExit: onExit,
|
|
@@ -8487,7 +8501,7 @@ Overlay.propTypes = {
|
|
|
8487
8501
|
onExited: PropTypes.func
|
|
8488
8502
|
};
|
|
8489
8503
|
|
|
8490
|
-
/*#__PURE__*/
|
|
8504
|
+
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
8491
8505
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8492
8506
|
|
|
8493
8507
|
function RefHolder() {
|
|
@@ -8501,38 +8515,38 @@ Overlay.propTypes = {
|
|
|
8501
8515
|
};
|
|
8502
8516
|
|
|
8503
8517
|
return RefHolder;
|
|
8504
|
-
}
|
|
8518
|
+
}(React__default.Component);
|
|
8505
8519
|
|
|
8506
|
-
var defaultProps$
|
|
8520
|
+
var defaultProps$w = {
|
|
8507
8521
|
active: false,
|
|
8508
8522
|
disabled: false,
|
|
8509
8523
|
activeLabel: '(current)'
|
|
8510
8524
|
};
|
|
8511
|
-
var PageItem =
|
|
8525
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8512
8526
|
var active = _ref.active,
|
|
8513
8527
|
disabled = _ref.disabled,
|
|
8514
8528
|
className = _ref.className,
|
|
8515
8529
|
style = _ref.style,
|
|
8516
8530
|
activeLabel = _ref.activeLabel,
|
|
8517
8531
|
children = _ref.children,
|
|
8518
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8532
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8519
8533
|
|
|
8520
8534
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8521
|
-
return /*#__PURE__*/
|
|
8535
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8522
8536
|
ref: ref,
|
|
8523
8537
|
style: style,
|
|
8524
8538
|
className: classnames(className, 'page-item', {
|
|
8525
8539
|
active: active,
|
|
8526
8540
|
disabled: disabled
|
|
8527
8541
|
})
|
|
8528
|
-
}, /*#__PURE__*/
|
|
8542
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8529
8543
|
className: "page-link",
|
|
8530
8544
|
disabled: disabled
|
|
8531
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8545
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8532
8546
|
className: "sr-only"
|
|
8533
8547
|
}, activeLabel)));
|
|
8534
8548
|
});
|
|
8535
|
-
PageItem.defaultProps = defaultProps$
|
|
8549
|
+
PageItem.defaultProps = defaultProps$w;
|
|
8536
8550
|
PageItem.displayName = 'PageItem';
|
|
8537
8551
|
|
|
8538
8552
|
function createButton(name, defaultValue, label) {
|
|
@@ -8542,11 +8556,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8542
8556
|
|
|
8543
8557
|
function Button(_ref2) {
|
|
8544
8558
|
var children = _ref2.children,
|
|
8545
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8559
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8546
8560
|
|
|
8547
|
-
return /*#__PURE__*/
|
|
8561
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8548
8562
|
"aria-hidden": "true"
|
|
8549
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8563
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8550
8564
|
className: "sr-only"
|
|
8551
8565
|
}, label));
|
|
8552
8566
|
}
|
|
@@ -8569,15 +8583,15 @@ var Last = createButton('Last', '»');
|
|
|
8569
8583
|
* @property {PageItem} Next
|
|
8570
8584
|
* @property {PageItem} Last
|
|
8571
8585
|
*/
|
|
8572
|
-
var Pagination =
|
|
8586
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8573
8587
|
var bsPrefix = _ref.bsPrefix,
|
|
8574
8588
|
className = _ref.className,
|
|
8575
8589
|
children = _ref.children,
|
|
8576
8590
|
size = _ref.size,
|
|
8577
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8591
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8578
8592
|
|
|
8579
8593
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8580
|
-
return /*#__PURE__*/
|
|
8594
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8581
8595
|
ref: ref
|
|
8582
8596
|
}, props, {
|
|
8583
8597
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8590,75 +8604,75 @@ Pagination.Item = PageItem;
|
|
|
8590
8604
|
Pagination.Next = Next;
|
|
8591
8605
|
Pagination.Last = Last;
|
|
8592
8606
|
|
|
8593
|
-
var PopoverTitle =
|
|
8607
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8594
8608
|
var _ref$as = _ref.as,
|
|
8595
8609
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8596
8610
|
bsPrefix = _ref.bsPrefix,
|
|
8597
8611
|
className = _ref.className,
|
|
8598
8612
|
children = _ref.children,
|
|
8599
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8613
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8600
8614
|
|
|
8601
8615
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8602
|
-
return /*#__PURE__*/
|
|
8616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8603
8617
|
ref: ref
|
|
8604
8618
|
}, props, {
|
|
8605
8619
|
className: classnames(bsPrefix, className)
|
|
8606
8620
|
}), children);
|
|
8607
8621
|
});
|
|
8608
8622
|
|
|
8609
|
-
var PopoverContent =
|
|
8623
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8610
8624
|
var _ref$as = _ref.as,
|
|
8611
8625
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8612
8626
|
bsPrefix = _ref.bsPrefix,
|
|
8613
8627
|
className = _ref.className,
|
|
8614
8628
|
children = _ref.children,
|
|
8615
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8629
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8616
8630
|
|
|
8617
8631
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8618
|
-
return /*#__PURE__*/
|
|
8632
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8619
8633
|
ref: ref
|
|
8620
8634
|
}, props, {
|
|
8621
8635
|
className: classnames(className, bsPrefix)
|
|
8622
8636
|
}), children);
|
|
8623
8637
|
});
|
|
8624
8638
|
|
|
8625
|
-
var defaultProps$
|
|
8639
|
+
var defaultProps$x = {
|
|
8626
8640
|
placement: 'right'
|
|
8627
8641
|
};
|
|
8628
|
-
var Popover =
|
|
8642
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8629
8643
|
var bsPrefix = _ref.bsPrefix,
|
|
8630
8644
|
placement = _ref.placement,
|
|
8631
8645
|
className = _ref.className,
|
|
8632
8646
|
style = _ref.style,
|
|
8633
8647
|
children = _ref.children,
|
|
8634
8648
|
content = _ref.content,
|
|
8635
|
-
arrowProps = _ref.arrowProps
|
|
8636
|
-
_ref.popper
|
|
8637
|
-
_ref.show
|
|
8638
|
-
|
|
8649
|
+
arrowProps = _ref.arrowProps,
|
|
8650
|
+
_ = _ref.popper,
|
|
8651
|
+
_1 = _ref.show,
|
|
8652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8639
8653
|
|
|
8640
8654
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8641
8655
|
|
|
8642
8656
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8643
8657
|
primaryPlacement = _ref2[0];
|
|
8644
8658
|
|
|
8645
|
-
return /*#__PURE__*/
|
|
8659
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8646
8660
|
ref: ref,
|
|
8647
8661
|
role: "tooltip",
|
|
8648
8662
|
style: style,
|
|
8649
8663
|
"x-placement": primaryPlacement,
|
|
8650
8664
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8651
|
-
}, props), /*#__PURE__*/
|
|
8665
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8652
8666
|
className: "arrow"
|
|
8653
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8667
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8654
8668
|
});
|
|
8655
|
-
Popover.defaultProps = defaultProps$
|
|
8669
|
+
Popover.defaultProps = defaultProps$x;
|
|
8656
8670
|
Popover.Title = PopoverTitle;
|
|
8657
8671
|
Popover.Content = PopoverContent;
|
|
8658
8672
|
|
|
8659
8673
|
var ROUND_PRECISION = 1000;
|
|
8660
8674
|
|
|
8661
|
-
var defaultProps$
|
|
8675
|
+
var defaultProps$y = {
|
|
8662
8676
|
min: 0,
|
|
8663
8677
|
max: 100,
|
|
8664
8678
|
animated: false,
|
|
@@ -8686,27 +8700,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8686
8700
|
style = _ref.style,
|
|
8687
8701
|
variant = _ref.variant,
|
|
8688
8702
|
bsPrefix = _ref.bsPrefix,
|
|
8689
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8703
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8690
8704
|
|
|
8691
|
-
return /*#__PURE__*/
|
|
8705
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8692
8706
|
ref: ref
|
|
8693
8707
|
}, props, {
|
|
8694
8708
|
role: "progressbar",
|
|
8695
8709
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8696
|
-
style: _extends({
|
|
8710
|
+
style: _extends$1({
|
|
8697
8711
|
width: getPercentage(now, min, max) + "%"
|
|
8698
8712
|
}, style),
|
|
8699
8713
|
"aria-valuenow": now,
|
|
8700
8714
|
"aria-valuemin": min,
|
|
8701
8715
|
"aria-valuemax": max
|
|
8702
|
-
}), srOnly ? /*#__PURE__*/
|
|
8716
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8703
8717
|
className: "sr-only"
|
|
8704
8718
|
}, label) : label);
|
|
8705
8719
|
}
|
|
8706
8720
|
|
|
8707
|
-
var ProgressBar =
|
|
8721
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8708
8722
|
var isChild = _ref2.isChild,
|
|
8709
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8723
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8710
8724
|
|
|
8711
8725
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8712
8726
|
|
|
@@ -8725,9 +8739,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8725
8739
|
variant = props.variant,
|
|
8726
8740
|
className = props.className,
|
|
8727
8741
|
children = props.children,
|
|
8728
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8742
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8729
8743
|
|
|
8730
|
-
return /*#__PURE__*/
|
|
8744
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8731
8745
|
ref: ref
|
|
8732
8746
|
}, wrapperProps, {
|
|
8733
8747
|
className: classnames(className, bsPrefix)
|
|
@@ -8748,46 +8762,46 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8748
8762
|
}, ref));
|
|
8749
8763
|
});
|
|
8750
8764
|
ProgressBar.displayName = 'ProgressBar';
|
|
8751
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8765
|
+
ProgressBar.defaultProps = defaultProps$y;
|
|
8752
8766
|
|
|
8753
|
-
var defaultProps$
|
|
8767
|
+
var defaultProps$z = {
|
|
8754
8768
|
aspectRatio: '1by1'
|
|
8755
8769
|
};
|
|
8756
|
-
var ResponsiveEmbed =
|
|
8770
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8757
8771
|
var bsPrefix = _ref.bsPrefix,
|
|
8758
8772
|
className = _ref.className,
|
|
8759
8773
|
children = _ref.children,
|
|
8760
8774
|
aspectRatio = _ref.aspectRatio,
|
|
8761
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8775
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8762
8776
|
|
|
8763
8777
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8764
|
-
var child =
|
|
8765
|
-
return /*#__PURE__*/
|
|
8778
|
+
var child = React__default.Children.only(children);
|
|
8779
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8766
8780
|
ref: ref
|
|
8767
8781
|
}, props, {
|
|
8768
8782
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8769
|
-
}),
|
|
8783
|
+
}), React__default.cloneElement(child, {
|
|
8770
8784
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8771
8785
|
}));
|
|
8772
8786
|
});
|
|
8773
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8787
|
+
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
8774
8788
|
|
|
8775
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8776
|
-
var defaultProps$
|
|
8789
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8790
|
+
var defaultProps$A = {
|
|
8777
8791
|
noGutters: false
|
|
8778
8792
|
};
|
|
8779
|
-
var Row =
|
|
8793
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8780
8794
|
var bsPrefix = _ref.bsPrefix,
|
|
8781
8795
|
className = _ref.className,
|
|
8782
8796
|
noGutters = _ref.noGutters,
|
|
8783
8797
|
_ref$as = _ref.as,
|
|
8784
8798
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8785
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8799
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8786
8800
|
|
|
8787
8801
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8788
8802
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8789
8803
|
var classes = [];
|
|
8790
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8804
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
8791
8805
|
var propValue = props[brkPoint];
|
|
8792
8806
|
delete props[brkPoint];
|
|
8793
8807
|
var cols;
|
|
@@ -8801,16 +8815,16 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8801
8815
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8802
8816
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8803
8817
|
});
|
|
8804
|
-
return /*#__PURE__*/
|
|
8818
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8805
8819
|
ref: ref
|
|
8806
8820
|
}, props, {
|
|
8807
8821
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8808
8822
|
}));
|
|
8809
8823
|
});
|
|
8810
8824
|
Row.displayName = 'Row';
|
|
8811
|
-
Row.defaultProps = defaultProps$
|
|
8825
|
+
Row.defaultProps = defaultProps$A;
|
|
8812
8826
|
|
|
8813
|
-
var Spinner =
|
|
8827
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8814
8828
|
var bsPrefix = _ref.bsPrefix,
|
|
8815
8829
|
variant = _ref.variant,
|
|
8816
8830
|
animation = _ref.animation,
|
|
@@ -8819,11 +8833,11 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8819
8833
|
_ref$as = _ref.as,
|
|
8820
8834
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8821
8835
|
className = _ref.className,
|
|
8822
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8836
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8823
8837
|
|
|
8824
8838
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8825
8839
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8826
|
-
return /*#__PURE__*/
|
|
8840
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8827
8841
|
ref: ref
|
|
8828
8842
|
}, props, {
|
|
8829
8843
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8831,7 +8845,7 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8831
8845
|
});
|
|
8832
8846
|
Spinner.displayName = 'Spinner';
|
|
8833
8847
|
|
|
8834
|
-
var propTypes = {
|
|
8848
|
+
var propTypes$a = {
|
|
8835
8849
|
/**
|
|
8836
8850
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8837
8851
|
* @type {string|number}
|
|
@@ -8893,11 +8907,11 @@ var propTypes = {
|
|
|
8893
8907
|
/** @ignore */
|
|
8894
8908
|
size: PropTypes.string
|
|
8895
8909
|
};
|
|
8896
|
-
var defaultProps$
|
|
8910
|
+
var defaultProps$B = {
|
|
8897
8911
|
toggleLabel: 'Toggle dropdown',
|
|
8898
8912
|
type: 'button'
|
|
8899
8913
|
};
|
|
8900
|
-
var SplitButton =
|
|
8914
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8901
8915
|
var id = _ref.id,
|
|
8902
8916
|
bsPrefix = _ref.bsPrefix,
|
|
8903
8917
|
size = _ref.size,
|
|
@@ -8913,13 +8927,13 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8913
8927
|
menuRole = _ref.menuRole,
|
|
8914
8928
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8915
8929
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8916
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8930
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8917
8931
|
|
|
8918
|
-
return /*#__PURE__*/
|
|
8932
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8919
8933
|
ref: ref
|
|
8920
8934
|
}, props, {
|
|
8921
8935
|
as: ButtonGroup
|
|
8922
|
-
}), /*#__PURE__*/
|
|
8936
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8923
8937
|
size: size,
|
|
8924
8938
|
variant: variant,
|
|
8925
8939
|
disabled: props.disabled,
|
|
@@ -8928,24 +8942,24 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8928
8942
|
target: target,
|
|
8929
8943
|
onClick: onClick,
|
|
8930
8944
|
type: type
|
|
8931
|
-
}, title), /*#__PURE__*/
|
|
8945
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8932
8946
|
split: true,
|
|
8933
8947
|
id: id ? id.toString() : undefined,
|
|
8934
8948
|
size: size,
|
|
8935
8949
|
variant: variant,
|
|
8936
8950
|
disabled: props.disabled,
|
|
8937
8951
|
childBsPrefix: bsPrefix
|
|
8938
|
-
}, /*#__PURE__*/
|
|
8952
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8939
8953
|
className: "sr-only"
|
|
8940
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8954
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8941
8955
|
align: menuAlign,
|
|
8942
8956
|
role: menuRole,
|
|
8943
8957
|
renderOnMount: renderMenuOnMount,
|
|
8944
8958
|
rootCloseEvent: rootCloseEvent
|
|
8945
8959
|
}, children));
|
|
8946
8960
|
});
|
|
8947
|
-
SplitButton.propTypes = propTypes;
|
|
8948
|
-
SplitButton.defaultProps = defaultProps$
|
|
8961
|
+
SplitButton.propTypes = propTypes$a;
|
|
8962
|
+
SplitButton.defaultProps = defaultProps$B;
|
|
8949
8963
|
SplitButton.displayName = 'SplitButton';
|
|
8950
8964
|
|
|
8951
8965
|
var TabContainer = function TabContainer(props) {
|
|
@@ -8981,22 +8995,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8981
8995
|
}
|
|
8982
8996
|
};
|
|
8983
8997
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8984
|
-
return /*#__PURE__*/
|
|
8998
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8985
8999
|
value: tabContext
|
|
8986
|
-
}, /*#__PURE__*/
|
|
9000
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8987
9001
|
value: onSelect || null
|
|
8988
9002
|
}, children));
|
|
8989
9003
|
};
|
|
8990
9004
|
|
|
8991
|
-
var TabContent =
|
|
9005
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8992
9006
|
var bsPrefix = _ref.bsPrefix,
|
|
8993
9007
|
_ref$as = _ref.as,
|
|
8994
9008
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8995
9009
|
className = _ref.className,
|
|
8996
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9010
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
8997
9011
|
|
|
8998
9012
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8999
|
-
return /*#__PURE__*/
|
|
9013
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9000
9014
|
ref: ref
|
|
9001
9015
|
}, props, {
|
|
9002
9016
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9010,11 +9024,11 @@ function useTabContext(props) {
|
|
|
9010
9024
|
var activeKey = context.activeKey,
|
|
9011
9025
|
getControlledId = context.getControlledId,
|
|
9012
9026
|
getControllerId = context.getControllerId,
|
|
9013
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9027
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9014
9028
|
|
|
9015
9029
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9016
9030
|
var key = makeEventKey(props.eventKey);
|
|
9017
|
-
return _extends({}, props, {
|
|
9031
|
+
return _extends$1({}, props, {
|
|
9018
9032
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9019
9033
|
id: getControlledId(props.eventKey),
|
|
9020
9034
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9024,7 +9038,7 @@ function useTabContext(props) {
|
|
|
9024
9038
|
});
|
|
9025
9039
|
}
|
|
9026
9040
|
|
|
9027
|
-
var TabPane =
|
|
9041
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
9028
9042
|
var _useTabContext = useTabContext(props),
|
|
9029
9043
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9030
9044
|
className = _useTabContext.className,
|
|
@@ -9039,13 +9053,13 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9039
9053
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9040
9054
|
Transition = _useTabContext.transition,
|
|
9041
9055
|
_useTabContext$as = _useTabContext.as,
|
|
9042
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9043
|
-
_useTabContext.eventKey
|
|
9044
|
-
|
|
9056
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9057
|
+
_ = _useTabContext.eventKey,
|
|
9058
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9045
9059
|
|
|
9046
9060
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9047
9061
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9048
|
-
var pane = /*#__PURE__*/
|
|
9062
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9049
9063
|
ref: ref,
|
|
9050
9064
|
role: "tabpanel",
|
|
9051
9065
|
"aria-hidden": !active,
|
|
@@ -9053,7 +9067,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9053
9067
|
active: active
|
|
9054
9068
|
})
|
|
9055
9069
|
}));
|
|
9056
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9070
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9057
9071
|
in: active,
|
|
9058
9072
|
onEnter: onEnter,
|
|
9059
9073
|
onEntering: onEntering,
|
|
@@ -9066,9 +9080,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9066
9080
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9067
9081
|
// conflict with the top level one.
|
|
9068
9082
|
|
|
9069
|
-
return /*#__PURE__*/
|
|
9083
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9070
9084
|
value: null
|
|
9071
|
-
}, /*#__PURE__*/
|
|
9085
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9072
9086
|
value: null
|
|
9073
9087
|
}, pane));
|
|
9074
9088
|
});
|
|
@@ -9089,13 +9103,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9089
9103
|
};
|
|
9090
9104
|
|
|
9091
9105
|
return Tab;
|
|
9092
|
-
}(
|
|
9106
|
+
}(React__default.Component);
|
|
9093
9107
|
|
|
9094
9108
|
Tab.Container = TabContainer;
|
|
9095
9109
|
Tab.Content = TabContent;
|
|
9096
9110
|
Tab.Pane = TabPane;
|
|
9097
9111
|
|
|
9098
|
-
|
|
9112
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9099
9113
|
var bsPrefix = _ref.bsPrefix,
|
|
9100
9114
|
className = _ref.className,
|
|
9101
9115
|
striped = _ref.striped,
|
|
@@ -9105,11 +9119,11 @@ React.forwardRef(function (_ref, ref) {
|
|
|
9105
9119
|
size = _ref.size,
|
|
9106
9120
|
variant = _ref.variant,
|
|
9107
9121
|
responsive = _ref.responsive,
|
|
9108
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9122
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9109
9123
|
|
|
9110
9124
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9111
9125
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9112
|
-
var table = /*#__PURE__*/
|
|
9126
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9113
9127
|
className: classes,
|
|
9114
9128
|
ref: ref
|
|
9115
9129
|
}));
|
|
@@ -9121,7 +9135,7 @@ React.forwardRef(function (_ref, ref) {
|
|
|
9121
9135
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9122
9136
|
}
|
|
9123
9137
|
|
|
9124
|
-
return /*#__PURE__*/
|
|
9138
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9125
9139
|
className: responsiveClass
|
|
9126
9140
|
}, table);
|
|
9127
9141
|
}
|
|
@@ -9129,22 +9143,22 @@ React.forwardRef(function (_ref, ref) {
|
|
|
9129
9143
|
return table;
|
|
9130
9144
|
});
|
|
9131
9145
|
|
|
9132
|
-
var ToastContext =
|
|
9146
|
+
var ToastContext = React__default.createContext({
|
|
9133
9147
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9134
9148
|
onClose: function onClose() {}
|
|
9135
9149
|
});
|
|
9136
9150
|
|
|
9137
|
-
var defaultProps$
|
|
9151
|
+
var defaultProps$C = {
|
|
9138
9152
|
closeLabel: 'Close',
|
|
9139
9153
|
closeButton: true
|
|
9140
9154
|
};
|
|
9141
|
-
var ToastHeader =
|
|
9155
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9142
9156
|
var bsPrefix = _ref.bsPrefix,
|
|
9143
9157
|
closeLabel = _ref.closeLabel,
|
|
9144
9158
|
closeButton = _ref.closeButton,
|
|
9145
9159
|
className = _ref.className,
|
|
9146
9160
|
children = _ref.children,
|
|
9147
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9161
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9148
9162
|
|
|
9149
9163
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9150
9164
|
var context = useContext(ToastContext);
|
|
@@ -9153,11 +9167,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9153
9167
|
context.onClose(e);
|
|
9154
9168
|
}
|
|
9155
9169
|
});
|
|
9156
|
-
return /*#__PURE__*/
|
|
9170
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9157
9171
|
ref: ref
|
|
9158
9172
|
}, props, {
|
|
9159
9173
|
className: classnames(bsPrefix, className)
|
|
9160
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9174
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9161
9175
|
label: closeLabel,
|
|
9162
9176
|
onClick: handleClick,
|
|
9163
9177
|
className: "ml-2 mb-1",
|
|
@@ -9165,11 +9179,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9165
9179
|
}));
|
|
9166
9180
|
});
|
|
9167
9181
|
ToastHeader.displayName = 'ToastHeader';
|
|
9168
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9182
|
+
ToastHeader.defaultProps = defaultProps$C;
|
|
9169
9183
|
|
|
9170
9184
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9171
9185
|
|
|
9172
|
-
var Toast =
|
|
9186
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9173
9187
|
var bsPrefix = _ref.bsPrefix,
|
|
9174
9188
|
className = _ref.className,
|
|
9175
9189
|
children = _ref.children,
|
|
@@ -9184,7 +9198,7 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9184
9198
|
_ref$autohide = _ref.autohide,
|
|
9185
9199
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9186
9200
|
onClose = _ref.onClose,
|
|
9187
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9201
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9188
9202
|
|
|
9189
9203
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9190
9204
|
// timer in case these values change.
|
|
@@ -9212,16 +9226,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9212
9226
|
};
|
|
9213
9227
|
}, [onClose]);
|
|
9214
9228
|
var hasAnimation = !!(Transition && animation);
|
|
9215
|
-
var toast = /*#__PURE__*/
|
|
9229
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9216
9230
|
ref: ref,
|
|
9217
9231
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9218
9232
|
role: "alert",
|
|
9219
9233
|
"aria-live": "assertive",
|
|
9220
9234
|
"aria-atomic": "true"
|
|
9221
9235
|
}), children);
|
|
9222
|
-
return /*#__PURE__*/
|
|
9236
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9223
9237
|
value: toastContext
|
|
9224
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9238
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9225
9239
|
in: show,
|
|
9226
9240
|
unmountOnExit: true
|
|
9227
9241
|
}, toast) : toast);
|
|
@@ -9232,11 +9246,11 @@ Object.assign(Toast, {
|
|
|
9232
9246
|
Header: ToastHeader
|
|
9233
9247
|
});
|
|
9234
9248
|
|
|
9235
|
-
var noop = function noop() {
|
|
9249
|
+
var noop$5 = function noop() {
|
|
9236
9250
|
return undefined;
|
|
9237
9251
|
};
|
|
9238
9252
|
|
|
9239
|
-
var ToggleButton =
|
|
9253
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9240
9254
|
var children = _ref.children,
|
|
9241
9255
|
name = _ref.name,
|
|
9242
9256
|
className = _ref.className,
|
|
@@ -9246,7 +9260,7 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9246
9260
|
value = _ref.value,
|
|
9247
9261
|
disabled = _ref.disabled,
|
|
9248
9262
|
inputRef = _ref.inputRef,
|
|
9249
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9263
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9250
9264
|
|
|
9251
9265
|
var _useState = useState(false),
|
|
9252
9266
|
focused = _useState[0],
|
|
@@ -9258,13 +9272,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9258
9272
|
var handleBlur = useCallback(function (e) {
|
|
9259
9273
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9260
9274
|
}, []);
|
|
9261
|
-
return /*#__PURE__*/
|
|
9275
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9262
9276
|
ref: ref,
|
|
9263
9277
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9264
9278
|
type: undefined,
|
|
9265
9279
|
active: !!checked,
|
|
9266
9280
|
as: "label"
|
|
9267
|
-
}), /*#__PURE__*/
|
|
9281
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9268
9282
|
name: name,
|
|
9269
9283
|
type: type,
|
|
9270
9284
|
value: value,
|
|
@@ -9274,16 +9288,16 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9274
9288
|
disabled: !!disabled,
|
|
9275
9289
|
onFocus: handleFocus,
|
|
9276
9290
|
onBlur: handleBlur,
|
|
9277
|
-
onChange: onChange || noop
|
|
9291
|
+
onChange: onChange || noop$5
|
|
9278
9292
|
}), children);
|
|
9279
9293
|
});
|
|
9280
9294
|
ToggleButton.displayName = 'ToggleButton';
|
|
9281
9295
|
|
|
9282
|
-
var defaultProps$
|
|
9296
|
+
var defaultProps$D = {
|
|
9283
9297
|
type: 'radio',
|
|
9284
9298
|
vertical: false
|
|
9285
9299
|
};
|
|
9286
|
-
var ToggleButtonGroup =
|
|
9300
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9287
9301
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9288
9302
|
value: 'onChange'
|
|
9289
9303
|
}),
|
|
@@ -9292,7 +9306,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9292
9306
|
name = _useUncontrolled.name,
|
|
9293
9307
|
value = _useUncontrolled.value,
|
|
9294
9308
|
onChange = _useUncontrolled.onChange,
|
|
9295
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9309
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9296
9310
|
|
|
9297
9311
|
var getValues = function getValues() {
|
|
9298
9312
|
return value == null ? [] : [].concat(value);
|
|
@@ -9321,7 +9335,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9321
9335
|
};
|
|
9322
9336
|
|
|
9323
9337
|
!(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;
|
|
9324
|
-
return /*#__PURE__*/
|
|
9338
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9325
9339
|
ref: ref,
|
|
9326
9340
|
toggle: true
|
|
9327
9341
|
}), map(children, function (child) {
|
|
@@ -9334,7 +9348,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9334
9348
|
return handleToggle(childVal, e);
|
|
9335
9349
|
};
|
|
9336
9350
|
|
|
9337
|
-
return
|
|
9351
|
+
return React__default.cloneElement(child, {
|
|
9338
9352
|
type: type,
|
|
9339
9353
|
name: child.name || name,
|
|
9340
9354
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9342,44 +9356,44 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9342
9356
|
});
|
|
9343
9357
|
}));
|
|
9344
9358
|
});
|
|
9345
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9359
|
+
ToggleButtonGroup.defaultProps = defaultProps$D;
|
|
9346
9360
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9347
9361
|
|
|
9348
|
-
var defaultProps = {
|
|
9362
|
+
var defaultProps$E = {
|
|
9349
9363
|
placement: 'right'
|
|
9350
9364
|
};
|
|
9351
|
-
var Tooltip =
|
|
9365
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9352
9366
|
var bsPrefix = _ref.bsPrefix,
|
|
9353
9367
|
placement = _ref.placement,
|
|
9354
9368
|
className = _ref.className,
|
|
9355
9369
|
style = _ref.style,
|
|
9356
9370
|
children = _ref.children,
|
|
9357
|
-
arrowProps = _ref.arrowProps
|
|
9358
|
-
_ref.popper
|
|
9359
|
-
_ref.show
|
|
9360
|
-
|
|
9371
|
+
arrowProps = _ref.arrowProps,
|
|
9372
|
+
_ = _ref.popper,
|
|
9373
|
+
_2 = _ref.show,
|
|
9374
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9361
9375
|
|
|
9362
9376
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9363
9377
|
|
|
9364
9378
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9365
9379
|
primaryPlacement = _ref2[0];
|
|
9366
9380
|
|
|
9367
|
-
return /*#__PURE__*/
|
|
9381
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9368
9382
|
ref: ref,
|
|
9369
9383
|
style: style,
|
|
9370
9384
|
role: "tooltip",
|
|
9371
9385
|
"x-placement": primaryPlacement,
|
|
9372
9386
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9373
|
-
}, props), /*#__PURE__*/
|
|
9387
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9374
9388
|
className: "arrow"
|
|
9375
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9389
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9376
9390
|
className: bsPrefix + "-inner"
|
|
9377
9391
|
}, children));
|
|
9378
9392
|
});
|
|
9379
|
-
Tooltip.defaultProps = defaultProps;
|
|
9393
|
+
Tooltip.defaultProps = defaultProps$E;
|
|
9380
9394
|
Tooltip.displayName = 'Tooltip';
|
|
9381
9395
|
|
|
9382
|
-
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";
|
|
9396
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9383
9397
|
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" };
|
|
9384
9398
|
styleInject(css);
|
|
9385
9399
|
|
|
@@ -9390,54 +9404,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9390
9404
|
client = props.client;
|
|
9391
9405
|
|
|
9392
9406
|
|
|
9393
|
-
return
|
|
9407
|
+
return React__default.createElement(
|
|
9394
9408
|
'div',
|
|
9395
9409
|
{ className: styles.article },
|
|
9396
|
-
|
|
9410
|
+
React__default.createElement(
|
|
9397
9411
|
'a',
|
|
9398
9412
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9399
|
-
|
|
9413
|
+
React__default.createElement(
|
|
9400
9414
|
'div',
|
|
9401
9415
|
{ className: styles.thumb },
|
|
9402
|
-
|
|
9416
|
+
React__default.createElement(
|
|
9403
9417
|
'figure',
|
|
9404
9418
|
null,
|
|
9405
|
-
|
|
9419
|
+
React__default.createElement(
|
|
9406
9420
|
LazyLoad,
|
|
9407
9421
|
null,
|
|
9408
|
-
|
|
9422
|
+
React__default.createElement('img', {
|
|
9409
9423
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9410
9424
|
})
|
|
9411
9425
|
)
|
|
9412
9426
|
)
|
|
9413
9427
|
),
|
|
9414
|
-
|
|
9428
|
+
React__default.createElement(
|
|
9415
9429
|
'div',
|
|
9416
9430
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9417
|
-
|
|
9431
|
+
React__default.createElement(
|
|
9418
9432
|
'div',
|
|
9419
9433
|
{ className: styles.name },
|
|
9420
9434
|
data.name
|
|
9421
9435
|
),
|
|
9422
|
-
data.published &&
|
|
9436
|
+
data.published && React__default.createElement(
|
|
9423
9437
|
'p',
|
|
9424
9438
|
{ className: styles.published },
|
|
9425
9439
|
moment(data.published).format('MMMM Do YYYY')
|
|
9426
9440
|
),
|
|
9427
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9441
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9428
9442
|
'p',
|
|
9429
9443
|
{ className: styles.author },
|
|
9430
9444
|
'By ',
|
|
9431
|
-
|
|
9445
|
+
React__default.createElement(
|
|
9432
9446
|
'span',
|
|
9433
9447
|
null,
|
|
9434
9448
|
data.authorMapping.displayName
|
|
9435
9449
|
)
|
|
9436
9450
|
),
|
|
9437
|
-
data.description &&
|
|
9451
|
+
data.description && React__default.createElement(
|
|
9438
9452
|
'div',
|
|
9439
9453
|
{ className: 'media-series-desc' },
|
|
9440
|
-
|
|
9454
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9441
9455
|
)
|
|
9442
9456
|
)
|
|
9443
9457
|
)
|
|
@@ -9466,11 +9480,11 @@ var Filter = function Filter(_ref) {
|
|
|
9466
9480
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9467
9481
|
grandChildData = _useState6[0],
|
|
9468
9482
|
setGrandChildData = _useState6[1];
|
|
9469
|
-
/*
|
|
9470
|
-
{parent: showAll,
|
|
9471
|
-
chidlren: show selected from parent,
|
|
9472
|
-
grandchildren: show selected from children
|
|
9473
|
-
}
|
|
9483
|
+
/*
|
|
9484
|
+
{parent: showAll,
|
|
9485
|
+
chidlren: show selected from parent,
|
|
9486
|
+
grandchildren: show selected from children
|
|
9487
|
+
}
|
|
9474
9488
|
*/
|
|
9475
9489
|
|
|
9476
9490
|
|
|
@@ -9485,7 +9499,7 @@ var Filter = function Filter(_ref) {
|
|
|
9485
9499
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9486
9500
|
if (type === 'parent') {
|
|
9487
9501
|
setParentData(function (prevState) {
|
|
9488
|
-
return _extends$
|
|
9502
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9489
9503
|
});
|
|
9490
9504
|
if (group && group.children && group.children.length > 0) {
|
|
9491
9505
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9499,7 +9513,7 @@ var Filter = function Filter(_ref) {
|
|
|
9499
9513
|
}
|
|
9500
9514
|
if (type === 'child') {
|
|
9501
9515
|
setChildData(function (prevState) {
|
|
9502
|
-
return _extends$
|
|
9516
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9503
9517
|
});
|
|
9504
9518
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9505
9519
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9518,7 +9532,7 @@ var Filter = function Filter(_ref) {
|
|
|
9518
9532
|
}
|
|
9519
9533
|
if (type === 'grandchild') {
|
|
9520
9534
|
setGrandChildData(function (prevState) {
|
|
9521
|
-
return _extends$
|
|
9535
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9522
9536
|
});
|
|
9523
9537
|
//handle filter
|
|
9524
9538
|
if (!group._id) {
|
|
@@ -9534,14 +9548,14 @@ var Filter = function Filter(_ref) {
|
|
|
9534
9548
|
}
|
|
9535
9549
|
};
|
|
9536
9550
|
|
|
9537
|
-
return
|
|
9551
|
+
return React__default.createElement(
|
|
9538
9552
|
'div',
|
|
9539
9553
|
{ className: 'flex-container' },
|
|
9540
|
-
parentData &&
|
|
9554
|
+
parentData && React__default.createElement(
|
|
9541
9555
|
DropdownButton,
|
|
9542
9556
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9543
|
-
|
|
9544
|
-
Dropdown.Item,
|
|
9557
|
+
React__default.createElement(
|
|
9558
|
+
Dropdown$1.Item,
|
|
9545
9559
|
{ onSelect: function onSelect() {
|
|
9546
9560
|
return handleFilterSelect({}, 'parent');
|
|
9547
9561
|
} },
|
|
@@ -9549,8 +9563,8 @@ var Filter = function Filter(_ref) {
|
|
|
9549
9563
|
),
|
|
9550
9564
|
parentData.data.map(function (docGroup) {
|
|
9551
9565
|
if (!docGroup._id) return null;
|
|
9552
|
-
return
|
|
9553
|
-
Dropdown.Item,
|
|
9566
|
+
return React__default.createElement(
|
|
9567
|
+
Dropdown$1.Item,
|
|
9554
9568
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9555
9569
|
return handleFilterSelect(docGroup, 'parent');
|
|
9556
9570
|
} },
|
|
@@ -9558,11 +9572,11 @@ var Filter = function Filter(_ref) {
|
|
|
9558
9572
|
);
|
|
9559
9573
|
})
|
|
9560
9574
|
),
|
|
9561
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9575
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9562
9576
|
DropdownButton,
|
|
9563
9577
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9564
|
-
|
|
9565
|
-
Dropdown.Item,
|
|
9578
|
+
React__default.createElement(
|
|
9579
|
+
Dropdown$1.Item,
|
|
9566
9580
|
{ onSelect: function onSelect() {
|
|
9567
9581
|
return handleFilterSelect({}, 'child');
|
|
9568
9582
|
} },
|
|
@@ -9570,8 +9584,8 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9584
|
),
|
|
9571
9585
|
childData.data.map(function (docGroup) {
|
|
9572
9586
|
if (!docGroup._id) return null;
|
|
9573
|
-
return
|
|
9574
|
-
Dropdown.Item,
|
|
9587
|
+
return React__default.createElement(
|
|
9588
|
+
Dropdown$1.Item,
|
|
9575
9589
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9576
9590
|
return handleFilterSelect(docGroup, 'child');
|
|
9577
9591
|
} },
|
|
@@ -9579,11 +9593,11 @@ var Filter = function Filter(_ref) {
|
|
|
9579
9593
|
);
|
|
9580
9594
|
})
|
|
9581
9595
|
),
|
|
9582
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9596
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9583
9597
|
DropdownButton,
|
|
9584
9598
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9585
|
-
|
|
9586
|
-
Dropdown.Item,
|
|
9599
|
+
React__default.createElement(
|
|
9600
|
+
Dropdown$1.Item,
|
|
9587
9601
|
{ onSelect: function onSelect() {
|
|
9588
9602
|
return handleFilterSelect({}, 'grandchild');
|
|
9589
9603
|
} },
|
|
@@ -9591,8 +9605,8 @@ var Filter = function Filter(_ref) {
|
|
|
9591
9605
|
),
|
|
9592
9606
|
grandChildData.data.map(function (docGroup) {
|
|
9593
9607
|
if (!docGroup._id) return null;
|
|
9594
|
-
return
|
|
9595
|
-
Dropdown.Item,
|
|
9608
|
+
return React__default.createElement(
|
|
9609
|
+
Dropdown$1.Item,
|
|
9596
9610
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9597
9611
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9598
9612
|
} },
|
|
@@ -9600,7 +9614,7 @@ var Filter = function Filter(_ref) {
|
|
|
9600
9614
|
);
|
|
9601
9615
|
})
|
|
9602
9616
|
),
|
|
9603
|
-
|
|
9617
|
+
React__default.createElement(
|
|
9604
9618
|
'style',
|
|
9605
9619
|
{ jsx: 'true' },
|
|
9606
9620
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9648,7 +9662,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9648
9662
|
while (1) {
|
|
9649
9663
|
switch (_context.prev = _context.next) {
|
|
9650
9664
|
case 0:
|
|
9651
|
-
newParams = _extends$
|
|
9665
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9652
9666
|
filterQuery = void 0;
|
|
9653
9667
|
|
|
9654
9668
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9690,27 +9704,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9690
9704
|
}();
|
|
9691
9705
|
|
|
9692
9706
|
if (props.statusCode === 404) {
|
|
9693
|
-
return
|
|
9707
|
+
return React__default.createElement(
|
|
9694
9708
|
'div',
|
|
9695
9709
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9696
|
-
|
|
9710
|
+
React__default.createElement(
|
|
9697
9711
|
'h3',
|
|
9698
9712
|
null,
|
|
9699
9713
|
'404: Resource not found'
|
|
9700
9714
|
),
|
|
9701
|
-
|
|
9715
|
+
React__default.createElement(
|
|
9702
9716
|
'p',
|
|
9703
9717
|
null,
|
|
9704
9718
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9705
9719
|
),
|
|
9706
|
-
|
|
9720
|
+
React__default.createElement(
|
|
9707
9721
|
'p',
|
|
9708
9722
|
null,
|
|
9709
9723
|
'Click here to',
|
|
9710
|
-
|
|
9724
|
+
React__default.createElement(
|
|
9711
9725
|
Link,
|
|
9712
9726
|
{ href: '/' },
|
|
9713
|
-
|
|
9727
|
+
React__default.createElement(
|
|
9714
9728
|
'a',
|
|
9715
9729
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9716
9730
|
' return to homepage.'
|
|
@@ -9720,17 +9734,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9720
9734
|
);
|
|
9721
9735
|
}
|
|
9722
9736
|
|
|
9723
|
-
return
|
|
9737
|
+
return React__default.createElement(
|
|
9724
9738
|
'div',
|
|
9725
9739
|
{ className: 'mb-5' },
|
|
9726
|
-
props.docGroup && props.docGroup.description &&
|
|
9727
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9740
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9741
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9728
9742
|
'div',
|
|
9729
9743
|
{ className: '' },
|
|
9730
|
-
|
|
9731
|
-
|
|
9744
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9745
|
+
React__default.createElement('hr', null)
|
|
9732
9746
|
),
|
|
9733
|
-
seriesData &&
|
|
9747
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9734
9748
|
deck: MediaSeriesCard,
|
|
9735
9749
|
variant: 'left',
|
|
9736
9750
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9750,12 +9764,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9750
9764
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9751
9765
|
var _ref4;
|
|
9752
9766
|
|
|
9753
|
-
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9767
|
+
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9754
9768
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9755
9769
|
while (1) {
|
|
9756
9770
|
switch (_context2.prev = _context2.next) {
|
|
9757
9771
|
case 0:
|
|
9758
|
-
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9772
|
+
urlQuery = ctx.query, pathname = ctx.pathname, req = ctx.req;
|
|
9759
9773
|
identifier = pathname.replace('/', '');
|
|
9760
9774
|
itemsPerPage = 10;
|
|
9761
9775
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|