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