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