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