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