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