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