@mjhls/mjh-framework 1.0.860-beta.0 → 1.0.860
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 +19 -17
- package/dist/cjs/AD300x250x600.js +19 -17
- package/dist/cjs/AD728x90.js +20 -18
- package/dist/cjs/ADFloatingFooter.js +21 -19
- package/dist/cjs/ADFooter.js +14 -11
- package/dist/cjs/ADGutter.js +21 -19
- package/dist/cjs/{ADInfeed-7c09edba.js → ADInfeed-ff26342c.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +21 -19
- package/dist/cjs/ADSponsoredResources.js +21 -19
- package/dist/cjs/ADWebcast.js +21 -19
- package/dist/cjs/ADWelcome.js +25 -23
- package/dist/cjs/{ADlgInfeed-2e7effc7.js → ADlgInfeed-ad4953d4.js} +8 -7
- package/dist/cjs/AccordionPanel.js +29 -25
- package/dist/cjs/AdSlot.js +23 -21
- package/dist/cjs/AdSlotsProvider.js +18 -908
- package/dist/cjs/AlgoliaSearch.js +55 -14018
- package/dist/cjs/AlphabeticList.js +24 -21
- package/dist/cjs/ArticleCarousel.js +18 -15
- package/dist/cjs/ArticleProgramLandingPage.js +38 -35
- package/dist/cjs/ArticleSeriesLandingPage.js +33 -31
- package/dist/cjs/ArticleSeriesListing.js +49 -47
- package/dist/cjs/Auth.js +245 -1203
- package/dist/cjs/AuthWrapper.js +31 -564
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -24
- package/dist/cjs/CMEDeck.js +73 -72
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -25
- package/dist/cjs/Column3.js +46 -42
- package/dist/cjs/ConferenceArticleCard.js +33 -35
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -92
- package/dist/cjs/DeckQueue.js +82 -78
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-0bf098b5.js} +28 -26
- package/dist/cjs/EventsDeck.js +153 -144
- package/dist/cjs/ExternalResources.js +62 -59
- package/dist/cjs/Feature.js +25 -26
- package/dist/cjs/ForbesHero.js +40 -37
- package/dist/cjs/GridContent.js +221 -215
- package/dist/cjs/GridHero.js +41 -38
- package/dist/cjs/GroupDeck.js +55 -52
- package/dist/cjs/HamMagazine.js +137 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -12
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +52 -49
- package/dist/cjs/HorizontalHero.js +24 -26
- package/dist/cjs/IssueContentDeck.js +75 -68
- package/dist/cjs/IssueDeck.js +73 -66
- package/dist/cjs/IssueLanding.js +73 -70
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +31 -28
- package/dist/cjs/MasterDeck.js +71 -69
- package/dist/cjs/MediaSeriesLanding.js +814 -920
- package/dist/cjs/NavDvm.js +75 -68
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -131
- package/dist/cjs/NavNative.js +132 -122
- package/dist/cjs/OncliveHero.js +17 -20
- package/dist/cjs/OncliveLargeHero.js +69 -66
- package/dist/cjs/PageFilter.js +14 -11
- package/dist/cjs/PartnerDetailListing.js +301 -199
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -16
- package/dist/cjs/PubSection.js +30 -28
- package/dist/cjs/PubToc.js +15 -12
- package/dist/cjs/PublicationDeck.js +64 -62
- package/dist/cjs/PublicationLanding.js +150 -144
- package/dist/cjs/QueueDeckExpanded.js +295 -294
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -53
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -15
- package/dist/cjs/Segment.js +6 -4
- package/dist/cjs/SeriesListingDeck.js +33 -32
- package/dist/cjs/{SeriesSlider-94af9fcb.js → SeriesSlider-60fa1342.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -30
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-650f6101.js → SocialSearchComponent-19548e2a.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -58
- package/dist/cjs/TaxonomyDescription.js +37 -34
- package/dist/cjs/TemplateNormal.js +46 -44
- package/dist/cjs/ThumbnailCard.js +19 -20
- package/dist/cjs/Ustream.js +29 -26
- package/dist/cjs/VerticalHero.js +16 -18
- package/dist/cjs/VideoProgramLandingPage.js +58 -52
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -14
- package/dist/cjs/VideoSeriesLandingPage.js +38 -36
- package/dist/cjs/VideoSeriesListing.js +66 -64
- package/dist/cjs/View.js +220 -214
- package/dist/cjs/YahooHero.js +36 -33
- package/dist/cjs/YoutubeGroup.js +61 -58
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-754e012d.js} +9 -9
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-60b2f026.js} +7 -6
- package/dist/cjs/_object-sap-5e74ba08.js +16 -0
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-5762f850.js} +4 -4
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → _to-object-329a650b.js} +3 -239
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-140e5f89.js} +67 -65
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-5c98aec7.js} +10 -8
- package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
- package/dist/cjs/{define-property-21887c62.js → define-property-f4d12f4e.js} +3 -3
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +210 -0
- package/dist/cjs/{extends-eed4f016.js → extends-60837c34.js} +8 -9
- package/dist/cjs/faundadb.js +7 -5
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +73 -135
- package/dist/cjs/getRootDocGroup.js +6 -4
- package/dist/cjs/getSerializers.js +26 -24
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-3e45e4d4.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -5
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-98e01cb9.js → index-44481153.js} +494 -47
- package/dist/cjs/{index-3294d3bc.js → index-99edf08a.js} +1 -1
- package/dist/cjs/{index-cdcc0b5e.js → index-9ac40041.js} +961 -1206
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- 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-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +80 -74
- package/dist/cjs/{inherits-12d44cca.js → inherits-87492b40.js} +14 -16
- package/dist/cjs/{keys-d207942e.js → keys-a586b7a0.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-7b5e57b0.js} +90 -54
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-8f385299.js} +9 -7
- package/dist/cjs/{stringify-bbc68047.js → stringify-7c5aff47.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-9a3476fe.js} +10 -8
- package/dist/cjs/{typeof-5f52cf64.js → typeof-9d7f610f.js} +74 -73
- package/dist/cjs/urlFor.js +4 -21
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-a0e279c1.js} +9 -8
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +16 -15
- package/dist/esm/AD300x250x600.js +16 -15
- package/dist/esm/AD728x90.js +17 -16
- package/dist/esm/ADFloatingFooter.js +18 -17
- package/dist/esm/ADFooter.js +11 -9
- package/dist/esm/ADGutter.js +18 -17
- package/dist/esm/{ADInfeed-bfd129d9.js → ADInfeed-422ad6e6.js} +8 -8
- package/dist/esm/ADSkyscraper.js +18 -17
- package/dist/esm/ADSponsoredResources.js +18 -17
- package/dist/esm/ADWebcast.js +18 -17
- package/dist/esm/ADWelcome.js +22 -21
- package/dist/esm/{ADlgInfeed-0489335b.js → ADlgInfeed-f7468db8.js} +5 -5
- package/dist/esm/AccordionPanel.js +22 -20
- package/dist/esm/AdSlot.js +14 -13
- package/dist/esm/AdSlotsProvider.js +16 -907
- package/dist/esm/AlgoliaSearch.js +47 -14011
- package/dist/esm/AlphabeticList.js +21 -19
- package/dist/esm/ArticleCarousel.js +15 -13
- package/dist/esm/ArticleProgramLandingPage.js +35 -33
- package/dist/esm/ArticleSeriesLandingPage.js +30 -29
- package/dist/esm/ArticleSeriesListing.js +45 -44
- package/dist/esm/Auth.js +225 -1187
- package/dist/esm/AuthWrapper.js +29 -564
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -5
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -14
- package/dist/esm/CMEDeck.js +70 -69
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -23
- package/dist/esm/Column3.js +41 -40
- package/dist/esm/ConferenceArticleCard.js +30 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +89 -88
- package/dist/esm/DeckQueue.js +74 -74
- package/dist/esm/{Dfp-f867d061.js → Dfp-85c9513e.js} +15 -14
- package/dist/esm/EventsDeck.js +121 -119
- package/dist/esm/ExternalResources.js +56 -54
- package/dist/esm/Feature.js +17 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +185 -184
- package/dist/esm/GridHero.js +34 -32
- package/dist/esm/GroupDeck.js +42 -40
- package/dist/esm/HamMagazine.js +107 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +49 -47
- package/dist/esm/HorizontalHero.js +21 -24
- package/dist/esm/IssueContentDeck.js +58 -56
- package/dist/esm/IssueDeck.js +62 -60
- package/dist/esm/IssueLanding.js +70 -68
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +25 -24
- package/dist/esm/MasterDeck.js +67 -66
- package/dist/esm/MediaSeriesLanding.js +575 -684
- package/dist/esm/NavDvm.js +53 -51
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +110 -108
- package/dist/esm/NavNative.js +99 -97
- package/dist/esm/OncliveHero.js +14 -18
- package/dist/esm/OncliveLargeHero.js +57 -55
- package/dist/esm/PageFilter.js +11 -9
- package/dist/esm/PartnerDetailListing.js +191 -90
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +13 -11
- package/dist/esm/PubSection.js +27 -26
- package/dist/esm/PubToc.js +12 -10
- package/dist/esm/PublicationDeck.js +51 -54
- package/dist/esm/PublicationLanding.js +105 -103
- package/dist/esm/QueueDeckExpanded.js +261 -260
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -10
- package/dist/esm/Segment.js +6 -4
- package/dist/esm/SeriesListingDeck.js +28 -27
- package/dist/esm/{SeriesSlider-0371fc11.js → SeriesSlider-05ecb544.js} +29 -29
- package/dist/esm/SideFooter.js +29 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d7dec0c2.js → SocialSearchComponent-47815365.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -54
- package/dist/esm/TaxonomyDescription.js +31 -29
- package/dist/esm/TemplateNormal.js +42 -41
- package/dist/esm/ThumbnailCard.js +10 -13
- package/dist/esm/Ustream.js +26 -24
- package/dist/esm/VerticalHero.js +13 -16
- package/dist/esm/VideoProgramLandingPage.js +47 -45
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +13 -11
- package/dist/esm/VideoSeriesLandingPage.js +30 -29
- package/dist/esm/VideoSeriesListing.js +62 -61
- package/dist/esm/View.js +199 -197
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +45 -43
- package/dist/esm/{_is-array-4df618a6.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-5d49a330.js} +2 -1
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{core.get-iterator-method-86d4db69.js → _to-object-a4107da3.js} +1 -230
- package/dist/esm/{asyncToGenerator-7bf8bc4d.js → asyncToGenerator-fc1c2e29.js} +5 -3
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-4abff0b1.js} +7 -6
- package/dist/esm/core.get-iterator-method-e1de7503.js +36 -0
- package/dist/esm/{define-property-6d26cb48.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/es6.string.iterator-c990c18c.js +201 -0
- package/dist/esm/{extends-5b1796d4.js → extends-eb69e8ac.js} +2 -2
- package/dist/esm/faundadb.js +7 -5
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +68 -130
- package/dist/esm/getRootDocGroup.js +6 -4
- package/dist/esm/getSerializers.js +26 -24
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-9cb7e014.js} +11 -11
- package/dist/esm/getTargeting.js +7 -5
- package/dist/esm/{index-fe008ffe.js → index-110c875e.js} +905 -1161
- package/dist/esm/{index-41a678ea.js → index-1819118a.js} +487 -41
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-ef6d5dcf.js → index-fa2ffe86.js} +1 -1
- 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-8ee5ff72.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 +69 -66
- package/dist/esm/{inherits-2409637d.js → inherits-0d8cda6e.js} +6 -5
- package/dist/esm/{keys-69989821.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-747e7d25.js} +87 -52
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-b6f49411.js} +10 -8
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-641f241f.js} +4 -2
- package/dist/esm/{stringify-70b72959.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-43aa614d.js} +4 -2
- package/dist/esm/{typeof-c05a82ba.js → typeof-af9c50d8.js} +5 -4
- package/dist/esm/urlFor.js +2 -19
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-4439f05a.js} +2 -1
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-171b9ea5.js +0 -16
- package/dist/cjs/events-1b438fe7.js +0 -469
- package/dist/cjs/index-e2e62963.js +0 -89
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/events-6c3a7a63.js +0 -467
- package/dist/esm/index-aaa2dae0.js +0 -85
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,72 +1,155 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
3
4
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './toConsumableArray-
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
6
8
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends$
|
|
8
|
-
import './_object-sap-
|
|
9
|
-
import './inherits-
|
|
10
|
-
import './define-property-
|
|
11
|
-
import './web.dom.iterable-
|
|
12
|
-
import { _ as _typeof } from './typeof-
|
|
13
|
-
import './_is-array-
|
|
14
|
-
import
|
|
15
|
-
import './
|
|
16
|
-
import './index-41a678ea.js';
|
|
9
|
+
import { _ as _extends$1 } from './extends-eb69e8ac.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-0d8cda6e.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
+
import './index-1819118a.js';
|
|
17
18
|
import PropTypes from 'prop-types';
|
|
18
19
|
import 'react-bootstrap/Container';
|
|
19
20
|
import 'react-bootstrap/Row';
|
|
20
21
|
import 'react-bootstrap/Col';
|
|
21
22
|
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
23
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
23
24
|
import 'next/router';
|
|
24
25
|
import './isSymbol-1981418f.js';
|
|
25
26
|
import './debounce-9207d8ee.js';
|
|
26
27
|
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import './index.es-
|
|
28
|
+
import './index.es-c6222053.js';
|
|
28
29
|
import ReactDOM from 'react-dom';
|
|
29
|
-
import './visibility-sensor-
|
|
30
|
-
import
|
|
31
|
-
import './index-73819142.js';
|
|
30
|
+
import './visibility-sensor-f40c2564.js';
|
|
31
|
+
import './index-51a80699.js';
|
|
32
32
|
import urlFor from './urlFor.js';
|
|
33
|
-
import { L as LazyLoad } from './index-
|
|
34
|
-
import './main-
|
|
33
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
34
|
+
import './main-747e7d25.js';
|
|
35
35
|
import './entities-7cc3bf45.js';
|
|
36
|
-
import './
|
|
37
|
-
import
|
|
36
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
|
+
import './stringify-4330ccdc.js';
|
|
38
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
38
39
|
import './Segment.js';
|
|
39
40
|
import './Beam.js';
|
|
40
41
|
import './AdSlot.js';
|
|
41
|
-
import './ADInfeed-
|
|
42
|
-
import './lodash-
|
|
43
|
-
import './ADlgInfeed-
|
|
42
|
+
import './ADInfeed-422ad6e6.js';
|
|
43
|
+
import './lodash-ec8c6b48.js';
|
|
44
|
+
import './ADlgInfeed-f7468db8.js';
|
|
44
45
|
import 'react-bootstrap/Button';
|
|
45
|
-
import { B as BlockContent } from './BlockContent-
|
|
46
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
46
47
|
import './index-c7e2ac95.js';
|
|
47
48
|
import './smoothscroll-0cd4c7a6.js';
|
|
48
49
|
import './GroupDeck.js';
|
|
49
50
|
import 'react-bootstrap';
|
|
50
51
|
import './iconBase-602d52fe.js';
|
|
51
|
-
import './index.esm-
|
|
52
|
-
import { g as getSerializers } from './index-
|
|
52
|
+
import './index.esm-3fdda599.js';
|
|
53
|
+
import { g as getSerializers } from './index-110c875e.js';
|
|
53
54
|
import './util-7700fc59.js';
|
|
54
|
-
import './brightcove-react-player-loader.es-
|
|
55
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
55
56
|
import 'next/head';
|
|
56
57
|
import 'react-share';
|
|
57
58
|
import './SocialShare.js';
|
|
58
|
-
import './_object-to-array-
|
|
59
|
+
import './_object-to-array-7e804fce.js';
|
|
59
60
|
import 'react-bootstrap/Pagination';
|
|
60
61
|
import 'react-bootstrap/Figure';
|
|
61
62
|
import 'react-bootstrap/OverlayTrigger';
|
|
62
63
|
import 'react-bootstrap/Tooltip';
|
|
63
64
|
import 'react-bootstrap/Popover';
|
|
65
|
+
import 'react-script-tag';
|
|
64
66
|
import MasterDeck from './MasterDeck.js';
|
|
65
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
66
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
67
68
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
69
|
import Link from 'next/link';
|
|
69
70
|
|
|
71
|
+
function _extends() {
|
|
72
|
+
_extends = Object.assign || function (target) {
|
|
73
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
74
|
+
var source = arguments[i];
|
|
75
|
+
|
|
76
|
+
for (var key in source) {
|
|
77
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
78
|
+
target[key] = source[key];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return target;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return _extends.apply(this, arguments);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
90
|
+
if (source == null) return {};
|
|
91
|
+
var target = {};
|
|
92
|
+
var sourceKeys = Object.keys(source);
|
|
93
|
+
var key, i;
|
|
94
|
+
|
|
95
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
96
|
+
key = sourceKeys[i];
|
|
97
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
+
target[key] = source[key];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return target;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
var classnames = createCommonjsModule(function (module) {
|
|
105
|
+
/*!
|
|
106
|
+
Copyright (c) 2017 Jed Watson.
|
|
107
|
+
Licensed under the MIT License (MIT), see
|
|
108
|
+
http://jedwatson.github.io/classnames
|
|
109
|
+
*/
|
|
110
|
+
/* global define */
|
|
111
|
+
|
|
112
|
+
(function () {
|
|
113
|
+
|
|
114
|
+
var hasOwn = {}.hasOwnProperty;
|
|
115
|
+
|
|
116
|
+
function classNames () {
|
|
117
|
+
var classes = [];
|
|
118
|
+
|
|
119
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
120
|
+
var arg = arguments[i];
|
|
121
|
+
if (!arg) continue;
|
|
122
|
+
|
|
123
|
+
var argType = typeof arg;
|
|
124
|
+
|
|
125
|
+
if (argType === 'string' || argType === 'number') {
|
|
126
|
+
classes.push(arg);
|
|
127
|
+
} else if (Array.isArray(arg) && arg.length) {
|
|
128
|
+
var inner = classNames.apply(null, arg);
|
|
129
|
+
if (inner) {
|
|
130
|
+
classes.push(inner);
|
|
131
|
+
}
|
|
132
|
+
} else if (argType === 'object') {
|
|
133
|
+
for (var key in arg) {
|
|
134
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
135
|
+
classes.push(key);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return classes.join(' ');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
if ( module.exports) {
|
|
145
|
+
classNames.default = classNames;
|
|
146
|
+
module.exports = classNames;
|
|
147
|
+
} else {
|
|
148
|
+
window.classNames = classNames;
|
|
149
|
+
}
|
|
150
|
+
}());
|
|
151
|
+
});
|
|
152
|
+
|
|
70
153
|
/**
|
|
71
154
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
72
155
|
*
|
|
@@ -160,7 +243,7 @@ function useUncontrolled(props, config) {
|
|
|
160
243
|
var _ref = result,
|
|
161
244
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
245
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose
|
|
246
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
247
|
|
|
165
248
|
var handlerName = config[fieldName];
|
|
166
249
|
|
|
@@ -168,7 +251,7 @@ function useUncontrolled(props, config) {
|
|
|
168
251
|
value = _useUncontrolledProp[0],
|
|
169
252
|
handler = _useUncontrolledProp[1];
|
|
170
253
|
|
|
171
|
-
return _extends
|
|
254
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
255
|
}, props);
|
|
173
256
|
}
|
|
174
257
|
|
|
@@ -178,7 +261,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
178
261
|
subClass.__proto__ = superClass;
|
|
179
262
|
}
|
|
180
263
|
|
|
181
|
-
var ThemeContext =
|
|
264
|
+
var ThemeContext = React.createContext({});
|
|
182
265
|
var Consumer = ThemeContext.Consumer,
|
|
183
266
|
Provider = ThemeContext.Provider;
|
|
184
267
|
|
|
@@ -187,7 +270,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
187
270
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
188
271
|
}
|
|
189
272
|
|
|
190
|
-
var SelectableContext =
|
|
273
|
+
var SelectableContext = React.createContext(null);
|
|
191
274
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
192
275
|
if (href === void 0) {
|
|
193
276
|
href = null;
|
|
@@ -197,7 +280,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
280
|
return href || null;
|
|
198
281
|
};
|
|
199
282
|
|
|
200
|
-
var context =
|
|
283
|
+
var context = React.createContext(null);
|
|
201
284
|
context.displayName = 'AccordionContext';
|
|
202
285
|
|
|
203
286
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -213,13 +296,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
213
296
|
if (onClick) onClick(e);
|
|
214
297
|
};
|
|
215
298
|
}
|
|
216
|
-
var AccordionToggle =
|
|
299
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
217
300
|
var _ref$as = _ref.as,
|
|
218
301
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
219
302
|
children = _ref.children,
|
|
220
303
|
eventKey = _ref.eventKey,
|
|
221
304
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose
|
|
305
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
306
|
|
|
224
307
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
308
|
|
|
@@ -227,7 +310,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
227
310
|
props.type = 'button';
|
|
228
311
|
}
|
|
229
312
|
|
|
230
|
-
return /*#__PURE__*/
|
|
313
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
231
314
|
ref: ref,
|
|
232
315
|
onClick: accordionOnClick
|
|
233
316
|
}, props), children);
|
|
@@ -424,7 +507,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
424
507
|
exitActive: PropTypes.string
|
|
425
508
|
})]) : null;
|
|
426
509
|
|
|
427
|
-
var TransitionGroupContext =
|
|
510
|
+
var TransitionGroupContext = React.createContext(null);
|
|
428
511
|
|
|
429
512
|
var UNMOUNTED = 'unmounted';
|
|
430
513
|
var EXITED = 'exited';
|
|
@@ -809,19 +892,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
809
892
|
_onExiting = _this$props.onExiting,
|
|
810
893
|
_onExited = _this$props.onExited,
|
|
811
894
|
_nodeRef = _this$props.nodeRef,
|
|
812
|
-
childProps = _objectWithoutPropertiesLoose
|
|
895
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
813
896
|
|
|
814
897
|
return (
|
|
815
898
|
/*#__PURE__*/
|
|
816
899
|
// allows for nested Transitions
|
|
817
|
-
|
|
900
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
818
901
|
value: null
|
|
819
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
902
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
820
903
|
);
|
|
821
904
|
};
|
|
822
905
|
|
|
823
906
|
return Transition;
|
|
824
|
-
}(
|
|
907
|
+
}(React.Component);
|
|
825
908
|
|
|
826
909
|
Transition.contextType = TransitionGroupContext;
|
|
827
910
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1097,7 +1180,7 @@ var defaultProps = {
|
|
|
1097
1180
|
appear: false,
|
|
1098
1181
|
getDimensionValue: getDefaultDimensionValue
|
|
1099
1182
|
};
|
|
1100
|
-
var Collapse =
|
|
1183
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1101
1184
|
var onEnter = _ref.onEnter,
|
|
1102
1185
|
onEntering = _ref.onEntering,
|
|
1103
1186
|
onEntered = _ref.onEntered,
|
|
@@ -1109,7 +1192,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1109
1192
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1110
1193
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1111
1194
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1112
|
-
props = _objectWithoutPropertiesLoose
|
|
1195
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
1196
|
|
|
1114
1197
|
/* Compute dimension */
|
|
1115
1198
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1144,8 +1227,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1144
1227
|
elem.style[computedDimension] = null;
|
|
1145
1228
|
}, onExiting);
|
|
1146
1229
|
}, [computedDimension, onExiting]);
|
|
1147
|
-
return /*#__PURE__*/
|
|
1148
|
-
, _extends
|
|
1230
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1231
|
+
, _extends({
|
|
1149
1232
|
ref: ref,
|
|
1150
1233
|
addEndListener: transitionEnd
|
|
1151
1234
|
}, props, {
|
|
@@ -1156,7 +1239,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1156
1239
|
onExit: handleExit,
|
|
1157
1240
|
onExiting: handleExiting
|
|
1158
1241
|
}), function (state, innerProps) {
|
|
1159
|
-
return
|
|
1242
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1160
1243
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1161
1244
|
}));
|
|
1162
1245
|
});
|
|
@@ -1165,24 +1248,20 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1165
1248
|
// @ts-ignore
|
|
1166
1249
|
Collapse.defaultProps = defaultProps;
|
|
1167
1250
|
|
|
1168
|
-
var AccordionCollapse =
|
|
1251
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1169
1252
|
var children = _ref.children,
|
|
1170
1253
|
eventKey = _ref.eventKey,
|
|
1171
|
-
props = _objectWithoutPropertiesLoose
|
|
1254
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1172
1255
|
|
|
1173
|
-
var contextEventKey = useContext(context);
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1177
|
-
value: null
|
|
1178
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1256
|
+
var contextEventKey = useContext(context);
|
|
1257
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1179
1258
|
ref: ref,
|
|
1180
1259
|
in: contextEventKey === eventKey
|
|
1181
|
-
}, props), /*#__PURE__*/
|
|
1260
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children)));
|
|
1182
1261
|
});
|
|
1183
1262
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1184
1263
|
|
|
1185
|
-
var Accordion =
|
|
1264
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1186
1265
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1187
1266
|
activeKey: 'onSelect'
|
|
1188
1267
|
}),
|
|
@@ -1193,14 +1272,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1193
1272
|
children = _useUncontrolled.children,
|
|
1194
1273
|
className = _useUncontrolled.className,
|
|
1195
1274
|
onSelect = _useUncontrolled.onSelect,
|
|
1196
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1275
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
1276
|
|
|
1198
1277
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1199
|
-
return /*#__PURE__*/
|
|
1278
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1200
1279
|
value: activeKey || null
|
|
1201
|
-
}, /*#__PURE__*/
|
|
1280
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1202
1281
|
value: onSelect || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1282
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1204
1283
|
ref: ref
|
|
1205
1284
|
}, controlledProps, {
|
|
1206
1285
|
className: finalClassName
|
|
@@ -1244,22 +1323,22 @@ var defaultProps$1 = {
|
|
|
1244
1323
|
appear: false
|
|
1245
1324
|
};
|
|
1246
1325
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1247
|
-
var Fade =
|
|
1326
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1248
1327
|
var className = _ref.className,
|
|
1249
1328
|
children = _ref.children,
|
|
1250
|
-
props = _objectWithoutPropertiesLoose
|
|
1329
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1251
1330
|
|
|
1252
1331
|
var handleEnter = useCallback(function (node) {
|
|
1253
1332
|
triggerBrowserReflow(node);
|
|
1254
1333
|
if (props.onEnter) props.onEnter(node);
|
|
1255
1334
|
}, [props]);
|
|
1256
|
-
return /*#__PURE__*/
|
|
1335
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1257
1336
|
ref: ref,
|
|
1258
1337
|
addEndListener: transitionEnd
|
|
1259
1338
|
}, props, {
|
|
1260
1339
|
onEnter: handleEnter
|
|
1261
1340
|
}), function (status, innerProps) {
|
|
1262
|
-
return
|
|
1341
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1263
1342
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1264
1343
|
}));
|
|
1265
1344
|
});
|
|
@@ -1274,20 +1353,20 @@ var propTypes = {
|
|
|
1274
1353
|
var defaultProps$2 = {
|
|
1275
1354
|
label: 'Close'
|
|
1276
1355
|
};
|
|
1277
|
-
var CloseButton =
|
|
1356
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1278
1357
|
var label = _ref.label,
|
|
1279
1358
|
onClick = _ref.onClick,
|
|
1280
1359
|
className = _ref.className,
|
|
1281
|
-
props = _objectWithoutPropertiesLoose
|
|
1360
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1282
1361
|
|
|
1283
|
-
return /*#__PURE__*/
|
|
1362
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1284
1363
|
ref: ref,
|
|
1285
1364
|
type: "button",
|
|
1286
1365
|
className: classnames('close', className),
|
|
1287
1366
|
onClick: onClick
|
|
1288
|
-
}, props), /*#__PURE__*/
|
|
1367
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1289
1368
|
"aria-hidden": "true"
|
|
1290
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1369
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1291
1370
|
className: "sr-only"
|
|
1292
1371
|
}, label));
|
|
1293
1372
|
});
|
|
@@ -1296,8 +1375,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1296
1375
|
CloseButton.defaultProps = defaultProps$2;
|
|
1297
1376
|
|
|
1298
1377
|
var divWithClassName = (function (className) {
|
|
1299
|
-
return
|
|
1300
|
-
return /*#__PURE__*/
|
|
1378
|
+
return React.forwardRef(function (p, ref) {
|
|
1379
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1301
1380
|
ref: ref,
|
|
1302
1381
|
className: classnames(p.className, className)
|
|
1303
1382
|
}));
|
|
@@ -1323,15 +1402,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1323
1402
|
Component = _ref.Component,
|
|
1324
1403
|
defaultProps = _ref.defaultProps;
|
|
1325
1404
|
|
|
1326
|
-
var BsComponent =
|
|
1405
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1327
1406
|
var className = _ref2.className,
|
|
1328
1407
|
bsPrefix = _ref2.bsPrefix,
|
|
1329
1408
|
_ref2$as = _ref2.as,
|
|
1330
1409
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1331
|
-
props = _objectWithoutPropertiesLoose
|
|
1410
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
1411
|
|
|
1333
1412
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1413
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1335
1414
|
ref: ref,
|
|
1336
1415
|
className: classnames(className, resolvedPrefix)
|
|
1337
1416
|
}, props));
|
|
@@ -1353,12 +1432,12 @@ function isTrivialHref(href) {
|
|
|
1353
1432
|
*/
|
|
1354
1433
|
|
|
1355
1434
|
|
|
1356
|
-
var SafeAnchor =
|
|
1435
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1357
1436
|
var _ref$as = _ref.as,
|
|
1358
1437
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1359
1438
|
disabled = _ref.disabled,
|
|
1360
1439
|
onKeyDown = _ref.onKeyDown,
|
|
1361
|
-
props = _objectWithoutPropertiesLoose
|
|
1440
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
1441
|
|
|
1363
1442
|
var handleClick = function handleClick(event) {
|
|
1364
1443
|
var href = props.href,
|
|
@@ -1397,7 +1476,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1397
1476
|
props['aria-disabled'] = true;
|
|
1398
1477
|
}
|
|
1399
1478
|
|
|
1400
|
-
return /*#__PURE__*/
|
|
1479
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1401
1480
|
ref: ref
|
|
1402
1481
|
}, props, {
|
|
1403
1482
|
onClick: handleClick,
|
|
@@ -1419,7 +1498,7 @@ var defaultProps$3 = {
|
|
|
1419
1498
|
transition: Fade,
|
|
1420
1499
|
closeLabel: 'Close alert'
|
|
1421
1500
|
};
|
|
1422
|
-
var Alert =
|
|
1501
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1423
1502
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1424
1503
|
show: 'onClose'
|
|
1425
1504
|
}),
|
|
@@ -1432,7 +1511,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1432
1511
|
onClose = _useUncontrolled.onClose,
|
|
1433
1512
|
dismissible = _useUncontrolled.dismissible,
|
|
1434
1513
|
transition = _useUncontrolled.transition,
|
|
1435
|
-
props = _objectWithoutPropertiesLoose
|
|
1514
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
1515
|
|
|
1437
1516
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1438
1517
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1441,17 +1520,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1441
1520
|
}
|
|
1442
1521
|
});
|
|
1443
1522
|
var Transition = transition === true ? Fade : transition;
|
|
1444
|
-
var alert = /*#__PURE__*/
|
|
1523
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1445
1524
|
role: "alert"
|
|
1446
1525
|
}, Transition ? props : undefined, {
|
|
1447
1526
|
ref: ref,
|
|
1448
1527
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1449
|
-
}), dismissible && /*#__PURE__*/
|
|
1528
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1450
1529
|
onClick: handleClose,
|
|
1451
1530
|
label: closeLabel
|
|
1452
1531
|
}), children);
|
|
1453
1532
|
if (!Transition) return show ? alert : null;
|
|
1454
|
-
return /*#__PURE__*/
|
|
1533
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1455
1534
|
unmountOnExit: true
|
|
1456
1535
|
}, props, {
|
|
1457
1536
|
ref: undefined,
|
|
@@ -1466,17 +1545,17 @@ Alert.Heading = AlertHeading;
|
|
|
1466
1545
|
var defaultProps$4 = {
|
|
1467
1546
|
pill: false
|
|
1468
1547
|
};
|
|
1469
|
-
var Badge =
|
|
1548
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1470
1549
|
var bsPrefix = _ref.bsPrefix,
|
|
1471
1550
|
variant = _ref.variant,
|
|
1472
1551
|
pill = _ref.pill,
|
|
1473
1552
|
className = _ref.className,
|
|
1474
1553
|
_ref$as = _ref.as,
|
|
1475
1554
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1476
|
-
props = _objectWithoutPropertiesLoose
|
|
1555
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
1556
|
|
|
1478
1557
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1479
|
-
return /*#__PURE__*/
|
|
1558
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1480
1559
|
ref: ref
|
|
1481
1560
|
}, props, {
|
|
1482
1561
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1489,7 +1568,7 @@ var defaultProps$5 = {
|
|
|
1489
1568
|
active: false,
|
|
1490
1569
|
linkProps: {}
|
|
1491
1570
|
};
|
|
1492
|
-
var BreadcrumbItem =
|
|
1571
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1493
1572
|
var bsPrefix = _ref.bsPrefix,
|
|
1494
1573
|
active = _ref.active,
|
|
1495
1574
|
children = _ref.children,
|
|
@@ -1502,17 +1581,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1502
1581
|
href = _ref.href,
|
|
1503
1582
|
title = _ref.title,
|
|
1504
1583
|
target = _ref.target,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose
|
|
1584
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
1585
|
|
|
1507
1586
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1508
|
-
return /*#__PURE__*/
|
|
1587
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1509
1588
|
ref: ref
|
|
1510
1589
|
}, props, {
|
|
1511
1590
|
className: classnames(prefix, className, {
|
|
1512
1591
|
active: active
|
|
1513
1592
|
}),
|
|
1514
1593
|
"aria-current": active ? 'page' : undefined
|
|
1515
|
-
}), active ? children : /*#__PURE__*/
|
|
1594
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1516
1595
|
href: href,
|
|
1517
1596
|
title: title,
|
|
1518
1597
|
target: target
|
|
@@ -1525,7 +1604,7 @@ var defaultProps$6 = {
|
|
|
1525
1604
|
label: 'breadcrumb',
|
|
1526
1605
|
listProps: {}
|
|
1527
1606
|
};
|
|
1528
|
-
var Breadcrumb =
|
|
1607
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1529
1608
|
var bsPrefix = _ref.bsPrefix,
|
|
1530
1609
|
className = _ref.className,
|
|
1531
1610
|
listProps = _ref.listProps,
|
|
@@ -1533,14 +1612,14 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1533
1612
|
label = _ref.label,
|
|
1534
1613
|
_ref$as = _ref.as,
|
|
1535
1614
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1536
|
-
props = _objectWithoutPropertiesLoose
|
|
1615
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
1616
|
|
|
1538
1617
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1539
|
-
return /*#__PURE__*/
|
|
1618
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1540
1619
|
"aria-label": label,
|
|
1541
1620
|
className: className,
|
|
1542
1621
|
ref: ref
|
|
1543
|
-
}, props), /*#__PURE__*/
|
|
1622
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1544
1623
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1545
1624
|
}), children));
|
|
1546
1625
|
});
|
|
@@ -1553,7 +1632,7 @@ var defaultProps$7 = {
|
|
|
1553
1632
|
active: false,
|
|
1554
1633
|
disabled: false
|
|
1555
1634
|
};
|
|
1556
|
-
var Button =
|
|
1635
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1557
1636
|
var bsPrefix = _ref.bsPrefix,
|
|
1558
1637
|
variant = _ref.variant,
|
|
1559
1638
|
size = _ref.size,
|
|
@@ -1562,13 +1641,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1562
1641
|
block = _ref.block,
|
|
1563
1642
|
type = _ref.type,
|
|
1564
1643
|
as = _ref.as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose
|
|
1644
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
1645
|
|
|
1567
1646
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1568
|
-
var classes = classnames(className, prefix, active && 'active',
|
|
1647
|
+
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1569
1648
|
|
|
1570
1649
|
if (props.href) {
|
|
1571
|
-
return /*#__PURE__*/
|
|
1650
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1572
1651
|
as: as,
|
|
1573
1652
|
ref: ref,
|
|
1574
1653
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1586,7 +1665,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1586
1665
|
}
|
|
1587
1666
|
|
|
1588
1667
|
var Component = as || 'button';
|
|
1589
|
-
return /*#__PURE__*/
|
|
1668
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1590
1669
|
className: classes
|
|
1591
1670
|
}));
|
|
1592
1671
|
});
|
|
@@ -1598,7 +1677,7 @@ var defaultProps$8 = {
|
|
|
1598
1677
|
toggle: false,
|
|
1599
1678
|
role: 'group'
|
|
1600
1679
|
};
|
|
1601
|
-
var ButtonGroup =
|
|
1680
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1602
1681
|
var bsPrefix = _ref.bsPrefix,
|
|
1603
1682
|
size = _ref.size,
|
|
1604
1683
|
toggle = _ref.toggle,
|
|
@@ -1606,12 +1685,12 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1606
1685
|
className = _ref.className,
|
|
1607
1686
|
_ref$as = _ref.as,
|
|
1608
1687
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1609
|
-
rest = _objectWithoutPropertiesLoose
|
|
1688
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
1689
|
|
|
1611
1690
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1612
1691
|
var baseClass = prefix;
|
|
1613
1692
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1614
|
-
return /*#__PURE__*/
|
|
1693
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1615
1694
|
ref: ref,
|
|
1616
1695
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1617
1696
|
}));
|
|
@@ -1622,13 +1701,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1622
1701
|
var defaultProps$9 = {
|
|
1623
1702
|
role: 'toolbar'
|
|
1624
1703
|
};
|
|
1625
|
-
var ButtonToolbar =
|
|
1704
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1626
1705
|
var bsPrefix = _ref.bsPrefix,
|
|
1627
1706
|
className = _ref.className,
|
|
1628
|
-
props = _objectWithoutPropertiesLoose
|
|
1707
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1629
1708
|
|
|
1630
1709
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1631
|
-
return /*#__PURE__*/
|
|
1710
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1632
1711
|
ref: ref,
|
|
1633
1712
|
className: classnames(className, prefix)
|
|
1634
1713
|
}));
|
|
@@ -1636,23 +1715,23 @@ var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
|
1636
1715
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1637
1716
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1638
1717
|
|
|
1639
|
-
var context$1 =
|
|
1718
|
+
var context$1 = React.createContext(null);
|
|
1640
1719
|
context$1.displayName = 'CardContext';
|
|
1641
1720
|
|
|
1642
1721
|
var defaultProps$a = {
|
|
1643
1722
|
variant: null
|
|
1644
1723
|
};
|
|
1645
|
-
var CardImg =
|
|
1724
|
+
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
|
|
1646
1725
|
function (_ref, ref) {
|
|
1647
1726
|
var bsPrefix = _ref.bsPrefix,
|
|
1648
1727
|
className = _ref.className,
|
|
1649
1728
|
variant = _ref.variant,
|
|
1650
1729
|
_ref$as = _ref.as,
|
|
1651
1730
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1652
|
-
props = _objectWithoutPropertiesLoose
|
|
1731
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
1732
|
|
|
1654
1733
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1655
|
-
return /*#__PURE__*/
|
|
1734
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1656
1735
|
ref: ref,
|
|
1657
1736
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1658
1737
|
}, props));
|
|
@@ -1681,7 +1760,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1681
1760
|
var defaultProps$b = {
|
|
1682
1761
|
body: false
|
|
1683
1762
|
};
|
|
1684
|
-
var Card =
|
|
1763
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1685
1764
|
var bsPrefix = _ref.bsPrefix,
|
|
1686
1765
|
className = _ref.className,
|
|
1687
1766
|
bg = _ref.bg,
|
|
@@ -1691,7 +1770,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1691
1770
|
children = _ref.children,
|
|
1692
1771
|
_ref$as = _ref.as,
|
|
1693
1772
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1694
|
-
props = _objectWithoutPropertiesLoose
|
|
1773
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
1774
|
|
|
1696
1775
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1697
1776
|
var cardContext = useMemo(function () {
|
|
@@ -1699,16 +1778,16 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1699
1778
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1700
1779
|
};
|
|
1701
1780
|
}, [prefix]);
|
|
1702
|
-
return /*#__PURE__*/
|
|
1781
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1703
1782
|
value: cardContext
|
|
1704
|
-
}, /*#__PURE__*/
|
|
1783
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1705
1784
|
ref: ref
|
|
1706
1785
|
}, props, {
|
|
1707
1786
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1708
1787
|
}), body ?
|
|
1709
1788
|
/*#__PURE__*/
|
|
1710
1789
|
// @ts-ignore
|
|
1711
|
-
|
|
1790
|
+
React.createElement(CardBody, null, children) : children));
|
|
1712
1791
|
});
|
|
1713
1792
|
Card.displayName = 'Card';
|
|
1714
1793
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1844,20 +1923,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1844
1923
|
/**
|
|
1845
1924
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1846
1925
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1849
|
-
*
|
|
1850
|
-
* ```tsx
|
|
1851
|
-
* const { set, clear } = useTimeout();
|
|
1852
|
-
* const [hello, showHello] = useState(false);
|
|
1853
|
-
* //Display hello after 5 seconds
|
|
1854
|
-
* set(() => showHello(true), 5000);
|
|
1855
|
-
* return (
|
|
1856
|
-
* <div className="App">
|
|
1857
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1858
|
-
* </div>
|
|
1859
|
-
* );
|
|
1860
|
-
* ```
|
|
1861
1926
|
*/
|
|
1862
1927
|
|
|
1863
1928
|
|
|
@@ -1898,22 +1963,7 @@ function useTimeout() {
|
|
|
1898
1963
|
|
|
1899
1964
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1900
1965
|
|
|
1901
|
-
var CarouselItem =
|
|
1902
|
-
var _ref$as = _ref.as,
|
|
1903
|
-
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1904
|
-
bsPrefix = _ref.bsPrefix,
|
|
1905
|
-
children = _ref.children,
|
|
1906
|
-
className = _ref.className,
|
|
1907
|
-
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
|
-
|
|
1909
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1910
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1911
|
-
ref: ref
|
|
1912
|
-
}, props, {
|
|
1913
|
-
className: finalClassName
|
|
1914
|
-
}), children);
|
|
1915
|
-
});
|
|
1916
|
-
CarouselItem.displayName = 'CarouselItem';
|
|
1966
|
+
var CarouselItem = createWithBsPrefix('carousel-item');
|
|
1917
1967
|
|
|
1918
1968
|
/**
|
|
1919
1969
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1926,22 +1976,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1926
1976
|
|
|
1927
1977
|
function map(children, func) {
|
|
1928
1978
|
var index = 0;
|
|
1929
|
-
return
|
|
1930
|
-
return
|
|
1931
|
-
});
|
|
1932
|
-
}
|
|
1933
|
-
/**
|
|
1934
|
-
* Iterates through children that are "valid elements".
|
|
1935
|
-
*
|
|
1936
|
-
* The provided forEachFunc(child, index) will be called for each
|
|
1937
|
-
* leaf child with the index reflecting the position relative to "valid components".
|
|
1938
|
-
*/
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
function forEach(children, func) {
|
|
1942
|
-
var index = 0;
|
|
1943
|
-
React__default.Children.forEach(children, function (child) {
|
|
1944
|
-
if (React__default.isValidElement(child)) func(child, index++);
|
|
1979
|
+
return React.Children.map(children, function (child) {
|
|
1980
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1945
1981
|
});
|
|
1946
1982
|
}
|
|
1947
1983
|
|
|
@@ -2059,12 +2095,12 @@ var defaultProps$c = {
|
|
|
2059
2095
|
pause: 'hover',
|
|
2060
2096
|
wrap: true,
|
|
2061
2097
|
touch: true,
|
|
2062
|
-
prevIcon: /*#__PURE__*/
|
|
2098
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2063
2099
|
"aria-hidden": "true",
|
|
2064
2100
|
className: "carousel-control-prev-icon"
|
|
2065
2101
|
}),
|
|
2066
2102
|
prevLabel: 'Previous',
|
|
2067
|
-
nextIcon: /*#__PURE__*/
|
|
2103
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2068
2104
|
"aria-hidden": "true",
|
|
2069
2105
|
className: "carousel-control-next-icon"
|
|
2070
2106
|
}),
|
|
@@ -2112,7 +2148,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2112
2148
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2113
2149
|
className = _useUncontrolled.className,
|
|
2114
2150
|
children = _useUncontrolled.children,
|
|
2115
|
-
props = _objectWithoutPropertiesLoose
|
|
2151
|
+
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"]);
|
|
2116
2152
|
|
|
2117
2153
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2118
2154
|
var nextDirectionRef = useRef(null);
|
|
@@ -2132,6 +2168,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2132
2168
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2133
2169
|
if (nextDirectionRef.current) {
|
|
2134
2170
|
setDirection(nextDirectionRef.current);
|
|
2171
|
+
nextDirectionRef.current = null;
|
|
2135
2172
|
} else {
|
|
2136
2173
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2137
2174
|
}
|
|
@@ -2143,23 +2180,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2143
2180
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2144
2181
|
}
|
|
2145
2182
|
|
|
2146
|
-
|
|
2147
|
-
if (nextDirectionRef.current) {
|
|
2148
|
-
nextDirectionRef.current = null;
|
|
2149
|
-
}
|
|
2150
|
-
});
|
|
2151
|
-
var numChildren = 0;
|
|
2152
|
-
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2153
|
-
// (and count them, too)
|
|
2154
|
-
|
|
2155
|
-
forEach(children, function (child, index) {
|
|
2156
|
-
++numChildren;
|
|
2157
|
-
|
|
2158
|
-
if (index === activeIndex) {
|
|
2159
|
-
activeChildInterval = child.props.interval;
|
|
2160
|
-
}
|
|
2161
|
-
});
|
|
2162
|
-
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2183
|
+
var numChildren = React.Children.toArray(children).filter(React.isValidElement).length;
|
|
2163
2184
|
var prev = useCallback(function (event) {
|
|
2164
2185
|
if (isSliding) {
|
|
2165
2186
|
return;
|
|
@@ -2345,19 +2366,17 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2345
2366
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2346
2367
|
var intervalHandleRef = useRef();
|
|
2347
2368
|
useEffect(function () {
|
|
2348
|
-
var _ref, _activeChildIntervalR;
|
|
2349
|
-
|
|
2350
2369
|
if (!shouldPlay) {
|
|
2351
2370
|
return undefined;
|
|
2352
2371
|
}
|
|
2353
2372
|
|
|
2354
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next,
|
|
2373
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval || undefined);
|
|
2355
2374
|
return function () {
|
|
2356
2375
|
if (intervalHandleRef.current !== null) {
|
|
2357
2376
|
clearInterval(intervalHandleRef.current);
|
|
2358
2377
|
}
|
|
2359
2378
|
};
|
|
2360
|
-
}, [shouldPlay, next,
|
|
2379
|
+
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2361
2380
|
var indicatorOnClicks = useMemo(function () {
|
|
2362
2381
|
return indicators && Array.from({
|
|
2363
2382
|
length: numChildren
|
|
@@ -2369,7 +2388,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2369
2388
|
};
|
|
2370
2389
|
});
|
|
2371
2390
|
}, [indicators, numChildren, onSelect]);
|
|
2372
|
-
return /*#__PURE__*/
|
|
2391
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2373
2392
|
ref: elementRef
|
|
2374
2393
|
}, props, {
|
|
2375
2394
|
onKeyDown: handleKeyDown,
|
|
@@ -2379,44 +2398,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2379
2398
|
onTouchMove: handleTouchMove,
|
|
2380
2399
|
onTouchEnd: handleTouchEnd,
|
|
2381
2400
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2382
|
-
}), indicators && /*#__PURE__*/
|
|
2401
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2383
2402
|
className: prefix + "-indicators"
|
|
2384
2403
|
}, map(children, function (_child, index) {
|
|
2385
|
-
return /*#__PURE__*/
|
|
2404
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2386
2405
|
key: index,
|
|
2387
2406
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2388
2407
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2389
2408
|
});
|
|
2390
|
-
})), /*#__PURE__*/
|
|
2409
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2391
2410
|
className: prefix + "-inner"
|
|
2392
2411
|
}, map(children, function (child, index) {
|
|
2393
2412
|
var isActive = index === renderedActiveIndex;
|
|
2394
|
-
return slide ? /*#__PURE__*/
|
|
2413
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2395
2414
|
in: isActive,
|
|
2396
2415
|
onEnter: isActive ? handleEnter : undefined,
|
|
2397
2416
|
onEntered: isActive ? handleEntered : undefined,
|
|
2398
2417
|
addEndListener: transitionEnd
|
|
2399
2418
|
}, function (status) {
|
|
2400
|
-
return
|
|
2419
|
+
return React.cloneElement(child, {
|
|
2401
2420
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2402
2421
|
});
|
|
2403
|
-
}) :
|
|
2422
|
+
}) : React.cloneElement(child, {
|
|
2404
2423
|
className: classnames(child.props.className, isActive && 'active')
|
|
2405
2424
|
});
|
|
2406
|
-
})), controls && /*#__PURE__*/
|
|
2425
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2407
2426
|
className: prefix + "-control-prev",
|
|
2408
2427
|
onClick: prev
|
|
2409
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2428
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2410
2429
|
className: "sr-only"
|
|
2411
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2430
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2412
2431
|
className: prefix + "-control-next",
|
|
2413
2432
|
onClick: next
|
|
2414
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2433
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2415
2434
|
className: "sr-only"
|
|
2416
2435
|
}, nextLabel))));
|
|
2417
2436
|
}
|
|
2418
2437
|
|
|
2419
|
-
var Carousel =
|
|
2438
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2420
2439
|
Carousel.displayName = 'Carousel';
|
|
2421
2440
|
Carousel.propTypes = propTypes$1;
|
|
2422
2441
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2424,13 +2443,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2424
2443
|
Carousel.Item = CarouselItem;
|
|
2425
2444
|
|
|
2426
2445
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
|
-
var Col =
|
|
2446
|
+
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
|
|
2428
2447
|
function (_ref, ref) {
|
|
2429
2448
|
var bsPrefix = _ref.bsPrefix,
|
|
2430
2449
|
className = _ref.className,
|
|
2431
2450
|
_ref$as = _ref.as,
|
|
2432
2451
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2433
|
-
props = _objectWithoutPropertiesLoose
|
|
2452
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
2453
|
|
|
2435
2454
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2436
2455
|
var spans = [];
|
|
@@ -2461,7 +2480,7 @@ function (_ref, ref) {
|
|
|
2461
2480
|
spans.push(prefix); // plain 'col'
|
|
2462
2481
|
}
|
|
2463
2482
|
|
|
2464
|
-
return /*#__PURE__*/
|
|
2483
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2465
2484
|
ref: ref,
|
|
2466
2485
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2467
2486
|
}));
|
|
@@ -2570,40 +2589,7 @@ function useForceUpdate() {
|
|
|
2570
2589
|
return dispatch;
|
|
2571
2590
|
}
|
|
2572
2591
|
|
|
2573
|
-
var DropdownContext = /*#__PURE__*/
|
|
2574
|
-
|
|
2575
|
-
function _extends() {
|
|
2576
|
-
_extends = Object.assign || function (target) {
|
|
2577
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
-
var source = arguments[i];
|
|
2579
|
-
|
|
2580
|
-
for (var key in source) {
|
|
2581
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
-
target[key] = source[key];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
return target;
|
|
2588
|
-
};
|
|
2589
|
-
|
|
2590
|
-
return _extends.apply(this, arguments);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
-
if (source == null) return {};
|
|
2595
|
-
var target = {};
|
|
2596
|
-
var sourceKeys = Object.keys(source);
|
|
2597
|
-
var key, i;
|
|
2598
|
-
|
|
2599
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
-
key = sourceKeys[i];
|
|
2601
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
-
target[key] = source[key];
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
return target;
|
|
2606
|
-
}
|
|
2592
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2607
2593
|
|
|
2608
2594
|
function useSafeState(state) {
|
|
2609
2595
|
var isMounted = useMounted();
|
|
@@ -2702,13 +2688,13 @@ function contains(parent, child) {
|
|
|
2702
2688
|
if (parent.contains(child)) {
|
|
2703
2689
|
return true;
|
|
2704
2690
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2705
|
-
else if (
|
|
2691
|
+
else if (isShadowRoot(rootNode)) {
|
|
2706
2692
|
var next = child;
|
|
2707
2693
|
|
|
2708
2694
|
do {
|
|
2709
2695
|
if (next && parent.isSameNode(next)) {
|
|
2710
2696
|
return true;
|
|
2711
|
-
} // $FlowFixMe
|
|
2697
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2712
2698
|
|
|
2713
2699
|
|
|
2714
2700
|
next = next.parentNode || next.host;
|
|
@@ -2732,9 +2718,8 @@ function isTableElement(element) {
|
|
|
2732
2718
|
}
|
|
2733
2719
|
|
|
2734
2720
|
function getDocumentElement(element) {
|
|
2735
|
-
// $FlowFixMe
|
|
2736
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2737
|
-
element.document) || window.document).documentElement;
|
|
2721
|
+
// $FlowFixMe: assume body is always available
|
|
2722
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2738
2723
|
}
|
|
2739
2724
|
|
|
2740
2725
|
function getParentNode(element) {
|
|
@@ -2742,14 +2727,12 @@ function getParentNode(element) {
|
|
|
2742
2727
|
return element;
|
|
2743
2728
|
}
|
|
2744
2729
|
|
|
2745
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2746
|
-
// $FlowFixMe[incompatible-return]
|
|
2747
|
-
// $FlowFixMe[prop-missing]
|
|
2730
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2748
2731
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2749
2732
|
element.parentNode || // DOM Element detected
|
|
2750
|
-
// $FlowFixMe
|
|
2733
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2751
2734
|
element.host || // ShadowRoot detected
|
|
2752
|
-
// $FlowFixMe
|
|
2735
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2753
2736
|
getDocumentElement(element) // fallback
|
|
2754
2737
|
|
|
2755
2738
|
);
|
|
@@ -2936,7 +2919,7 @@ var unsetSides = {
|
|
|
2936
2919
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2937
2920
|
// cleanly divide the values into the appropriate subpixels.
|
|
2938
2921
|
|
|
2939
|
-
function
|
|
2922
|
+
function roundOffsets(_ref) {
|
|
2940
2923
|
var x = _ref.x,
|
|
2941
2924
|
y = _ref.y;
|
|
2942
2925
|
var win = window;
|
|
@@ -2956,14 +2939,11 @@ function mapToStyles(_ref2) {
|
|
|
2956
2939
|
offsets = _ref2.offsets,
|
|
2957
2940
|
position = _ref2.position,
|
|
2958
2941
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2959
|
-
adaptive = _ref2.adaptive
|
|
2960
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2942
|
+
adaptive = _ref2.adaptive;
|
|
2961
2943
|
|
|
2962
|
-
var
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
_ref3$y = _ref3.y,
|
|
2966
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2944
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2945
|
+
x = _roundOffsets.x,
|
|
2946
|
+
y = _roundOffsets.y;
|
|
2967
2947
|
|
|
2968
2948
|
var hasX = offsets.hasOwnProperty('x');
|
|
2969
2949
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2976,7 +2956,7 @@ function mapToStyles(_ref2) {
|
|
|
2976
2956
|
|
|
2977
2957
|
if (offsetParent === getWindow(popper)) {
|
|
2978
2958
|
offsetParent = getDocumentElement(popper);
|
|
2979
|
-
} // $FlowFixMe
|
|
2959
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2980
2960
|
|
|
2981
2961
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2982
2962
|
|
|
@@ -3007,15 +2987,13 @@ function mapToStyles(_ref2) {
|
|
|
3007
2987
|
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3008
2988
|
}
|
|
3009
2989
|
|
|
3010
|
-
function computeStyles(
|
|
3011
|
-
var state =
|
|
3012
|
-
options =
|
|
2990
|
+
function computeStyles(_ref3) {
|
|
2991
|
+
var state = _ref3.state,
|
|
2992
|
+
options = _ref3.options;
|
|
3013
2993
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3014
2994
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3015
2995
|
_options$adaptive = options.adaptive,
|
|
3016
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3017
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3018
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2996
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3019
2997
|
|
|
3020
2998
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
2999
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3038,8 +3016,7 @@ function computeStyles(_ref4) {
|
|
|
3038
3016
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3039
3017
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
3018
|
position: state.options.strategy,
|
|
3041
|
-
adaptive: adaptive
|
|
3042
|
-
roundOffsets: roundOffsets
|
|
3019
|
+
adaptive: adaptive
|
|
3043
3020
|
})));
|
|
3044
3021
|
}
|
|
3045
3022
|
|
|
@@ -3047,8 +3024,7 @@ function computeStyles(_ref4) {
|
|
|
3047
3024
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3048
3025
|
offsets: state.modifiersData.arrow,
|
|
3049
3026
|
position: 'absolute',
|
|
3050
|
-
adaptive: false
|
|
3051
|
-
roundOffsets: roundOffsets
|
|
3027
|
+
adaptive: false
|
|
3052
3028
|
})));
|
|
3053
3029
|
}
|
|
3054
3030
|
|
|
@@ -3244,7 +3220,7 @@ function isScrollParent(element) {
|
|
|
3244
3220
|
|
|
3245
3221
|
function getScrollParent(node) {
|
|
3246
3222
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3247
|
-
// $FlowFixMe
|
|
3223
|
+
// $FlowFixMe: assume body is always available
|
|
3248
3224
|
return node.ownerDocument.body;
|
|
3249
3225
|
}
|
|
3250
3226
|
|
|
@@ -3258,7 +3234,7 @@ function getScrollParent(node) {
|
|
|
3258
3234
|
/*
|
|
3259
3235
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3260
3236
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3261
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3237
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3262
3238
|
reference element's position.
|
|
3263
3239
|
*/
|
|
3264
3240
|
|
|
@@ -3272,7 +3248,7 @@ function listScrollParents(element, list) {
|
|
|
3272
3248
|
var win = getWindow(scrollParent);
|
|
3273
3249
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3274
3250
|
var updatedList = list.concat(target);
|
|
3275
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3251
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3276
3252
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3277
3253
|
}
|
|
3278
3254
|
|
|
@@ -3312,7 +3288,7 @@ function getClippingParents(element) {
|
|
|
3312
3288
|
|
|
3313
3289
|
if (!isElement(clipperElement)) {
|
|
3314
3290
|
return [];
|
|
3315
|
-
} // $FlowFixMe
|
|
3291
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3316
3292
|
|
|
3317
3293
|
|
|
3318
3294
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3398,11 +3374,11 @@ function computeOffsets(_ref) {
|
|
|
3398
3374
|
|
|
3399
3375
|
switch (variation) {
|
|
3400
3376
|
case start:
|
|
3401
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3377
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3402
3378
|
break;
|
|
3403
3379
|
|
|
3404
3380
|
case end:
|
|
3405
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3381
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3406
3382
|
break;
|
|
3407
3383
|
}
|
|
3408
3384
|
}
|
|
@@ -3484,7 +3460,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3484
3460
|
var variation = getVariation(placement);
|
|
3485
3461
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3486
3462
|
return getVariation(placement) === variation;
|
|
3487
|
-
}) : basePlacements;
|
|
3463
|
+
}) : basePlacements; // $FlowFixMe
|
|
3464
|
+
|
|
3488
3465
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3489
3466
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3490
3467
|
});
|
|
@@ -3495,7 +3472,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3495
3472
|
if (process.env.NODE_ENV !== "production") {
|
|
3496
3473
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3497
3474
|
}
|
|
3498
|
-
} // $FlowFixMe
|
|
3475
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3499
3476
|
|
|
3500
3477
|
|
|
3501
3478
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4421,11 +4398,6 @@ var ariaDescribedByModifier = {
|
|
|
4421
4398
|
|
|
4422
4399
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4423
4400
|
var ids = reference.getAttribute('aria-describedby');
|
|
4424
|
-
|
|
4425
|
-
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4426
|
-
return;
|
|
4427
|
-
}
|
|
4428
|
-
|
|
4429
4401
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4430
4402
|
}
|
|
4431
4403
|
}
|
|
@@ -4681,33 +4653,14 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4681
4653
|
}
|
|
4682
4654
|
});
|
|
4683
4655
|
useEffect(function () {
|
|
4684
|
-
if (disabled || ref == null) return undefined;
|
|
4685
|
-
// https://github.com/facebook/react/issues/20074
|
|
4686
|
-
|
|
4687
|
-
var currentEvent = window.event;
|
|
4656
|
+
if (disabled || ref == null) return undefined;
|
|
4688
4657
|
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4689
4658
|
// avoid false positives in the contains() check below if the target DOM
|
|
4690
4659
|
// element is removed in the React mouse callback.
|
|
4691
4660
|
|
|
4692
4661
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4693
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4694
|
-
|
|
4695
|
-
if (e === currentEvent) {
|
|
4696
|
-
currentEvent = undefined;
|
|
4697
|
-
return;
|
|
4698
|
-
}
|
|
4699
|
-
|
|
4700
|
-
handleMouse(e);
|
|
4701
|
-
});
|
|
4702
|
-
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4703
|
-
// skip if this event is the same as the one running when we added the handlers
|
|
4704
|
-
if (e === currentEvent) {
|
|
4705
|
-
currentEvent = undefined;
|
|
4706
|
-
return;
|
|
4707
|
-
}
|
|
4708
|
-
|
|
4709
|
-
handleKeyUp(e);
|
|
4710
|
-
});
|
|
4662
|
+
var removeMouseListener = listen(doc, clickTrigger, handleMouse);
|
|
4663
|
+
var removeKeyupListener = listen(doc, 'keyup', handleKeyUp);
|
|
4711
4664
|
var mobileSafariHackListeners = [];
|
|
4712
4665
|
|
|
4713
4666
|
if ('ontouchstart' in doc.documentElement) {
|
|
@@ -4967,7 +4920,7 @@ function DropdownMenu(_ref2) {
|
|
|
4967
4920
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4968
4921
|
|
|
4969
4922
|
var args = useDropdownMenu(options);
|
|
4970
|
-
return /*#__PURE__*/
|
|
4923
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4971
4924
|
}
|
|
4972
4925
|
|
|
4973
4926
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5034,7 +4987,7 @@ function DropdownToggle(_ref2) {
|
|
|
5034
4987
|
show = _useDropdownToggle$.show,
|
|
5035
4988
|
toggle = _useDropdownToggle$.toggle;
|
|
5036
4989
|
|
|
5037
|
-
return /*#__PURE__*/
|
|
4990
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5038
4991
|
show: show,
|
|
5039
4992
|
toggle: toggle,
|
|
5040
4993
|
props: props
|
|
@@ -5249,7 +5202,7 @@ function Dropdown(_ref) {
|
|
|
5249
5202
|
}
|
|
5250
5203
|
};
|
|
5251
5204
|
|
|
5252
|
-
return /*#__PURE__*/
|
|
5205
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5253
5206
|
value: context
|
|
5254
5207
|
}, children({
|
|
5255
5208
|
props: {
|
|
@@ -5263,14 +5216,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5263
5216
|
Dropdown.Menu = DropdownMenu;
|
|
5264
5217
|
Dropdown.Toggle = DropdownToggle;
|
|
5265
5218
|
|
|
5266
|
-
var NavContext =
|
|
5219
|
+
var NavContext = React.createContext(null);
|
|
5267
5220
|
NavContext.displayName = 'NavContext';
|
|
5268
5221
|
|
|
5269
5222
|
var defaultProps$e = {
|
|
5270
5223
|
as: SafeAnchor,
|
|
5271
5224
|
disabled: false
|
|
5272
5225
|
};
|
|
5273
|
-
var DropdownItem =
|
|
5226
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5274
5227
|
var bsPrefix = _ref.bsPrefix,
|
|
5275
5228
|
className = _ref.className,
|
|
5276
5229
|
children = _ref.children,
|
|
@@ -5281,17 +5234,16 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5281
5234
|
onSelect = _ref.onSelect,
|
|
5282
5235
|
propActive = _ref.active,
|
|
5283
5236
|
Component = _ref.as,
|
|
5284
|
-
props = _objectWithoutPropertiesLoose
|
|
5237
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5285
5238
|
|
|
5286
5239
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5287
5240
|
var onSelectCtx = useContext(SelectableContext);
|
|
5288
5241
|
var navContext = useContext(NavContext);
|
|
5289
5242
|
|
|
5290
5243
|
var _ref2 = navContext || {},
|
|
5291
|
-
activeKey = _ref2.activeKey;
|
|
5292
|
-
|
|
5244
|
+
activeKey = _ref2.activeKey;
|
|
5293
5245
|
|
|
5294
|
-
var key = makeEventKey(eventKey, href);
|
|
5246
|
+
var key = makeEventKey(eventKey || null, href);
|
|
5295
5247
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5296
5248
|
var handleClick = useEventCallback(function (event) {
|
|
5297
5249
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5305,7 +5257,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5305
5257
|
/*#__PURE__*/
|
|
5306
5258
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5307
5259
|
// @ts-ignore
|
|
5308
|
-
|
|
5260
|
+
React.createElement(Component, _extends({}, props, {
|
|
5309
5261
|
ref: ref,
|
|
5310
5262
|
href: href,
|
|
5311
5263
|
disabled: disabled,
|
|
@@ -5354,7 +5306,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5354
5306
|
}, [refA, refB]);
|
|
5355
5307
|
}
|
|
5356
5308
|
|
|
5357
|
-
var context$2 =
|
|
5309
|
+
var context$2 = React.createContext(null);
|
|
5358
5310
|
context$2.displayName = 'NavbarContext';
|
|
5359
5311
|
|
|
5360
5312
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5390,14 +5342,12 @@ function getMargins(element) {
|
|
|
5390
5342
|
function usePopperMarginModifiers() {
|
|
5391
5343
|
var overlayRef = useRef(null);
|
|
5392
5344
|
var margins = useRef(null);
|
|
5393
|
-
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5394
|
-
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5395
5345
|
var callback = useCallback(function (overlay) {
|
|
5396
|
-
if (!overlay || !(hasClass(overlay,
|
|
5346
|
+
if (!overlay || !(hasClass(overlay, 'popover') || hasClass(overlay, 'dropdown-menu'))) return;
|
|
5397
5347
|
margins.current = getMargins(overlay);
|
|
5398
5348
|
overlay.style.margin = '0';
|
|
5399
5349
|
overlayRef.current = overlay;
|
|
5400
|
-
}, [
|
|
5350
|
+
}, []);
|
|
5401
5351
|
var offset = useMemo(function () {
|
|
5402
5352
|
return {
|
|
5403
5353
|
name: 'offset',
|
|
@@ -5441,7 +5391,7 @@ function usePopperMarginModifiers() {
|
|
|
5441
5391
|
effect: function effect(_ref2) {
|
|
5442
5392
|
var state = _ref2.state;
|
|
5443
5393
|
|
|
5444
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5394
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, 'popover') || !state.modifiersData['arrow#persistent']) {
|
|
5445
5395
|
return undefined;
|
|
5446
5396
|
}
|
|
5447
5397
|
|
|
@@ -5462,30 +5412,18 @@ function usePopperMarginModifiers() {
|
|
|
5462
5412
|
};
|
|
5463
5413
|
}
|
|
5464
5414
|
};
|
|
5465
|
-
}, [
|
|
5415
|
+
}, []);
|
|
5466
5416
|
return [callback, [offset, popoverArrowMargins]];
|
|
5467
5417
|
}
|
|
5468
5418
|
|
|
5469
|
-
var alignDirection = PropTypes.oneOf(['left', 'right']);
|
|
5470
|
-
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5471
|
-
sm: alignDirection
|
|
5472
|
-
}), PropTypes.shape({
|
|
5473
|
-
md: alignDirection
|
|
5474
|
-
}), PropTypes.shape({
|
|
5475
|
-
lg: alignDirection
|
|
5476
|
-
}), PropTypes.shape({
|
|
5477
|
-
xl: alignDirection
|
|
5478
|
-
})]);
|
|
5479
5419
|
var defaultProps$f = {
|
|
5480
|
-
align: 'left',
|
|
5481
5420
|
alignRight: false,
|
|
5482
5421
|
flip: true
|
|
5483
5422
|
}; // TODO: remove this hack
|
|
5484
5423
|
|
|
5485
|
-
var DropdownMenu$1 =
|
|
5424
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5486
5425
|
var bsPrefix = _ref.bsPrefix,
|
|
5487
5426
|
className = _ref.className,
|
|
5488
|
-
align = _ref.align,
|
|
5489
5427
|
alignRight = _ref.alignRight,
|
|
5490
5428
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5491
5429
|
flip = _ref.flip,
|
|
@@ -5494,7 +5432,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5494
5432
|
_ref$as = _ref.as,
|
|
5495
5433
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5496
5434
|
popperConfig = _ref.popperConfig,
|
|
5497
|
-
props = _objectWithoutPropertiesLoose
|
|
5435
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5498
5436
|
|
|
5499
5437
|
var isNavbar = useContext(context$2);
|
|
5500
5438
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5503,34 +5441,13 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5503
5441
|
popperRef = _usePopperMarginModif[0],
|
|
5504
5442
|
marginModifiers = _usePopperMarginModif[1];
|
|
5505
5443
|
|
|
5506
|
-
var alignClasses = [];
|
|
5507
|
-
|
|
5508
|
-
if (align) {
|
|
5509
|
-
if (typeof align === 'object') {
|
|
5510
|
-
var keys = Object.keys(align);
|
|
5511
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5512
|
-
|
|
5513
|
-
if (keys.length) {
|
|
5514
|
-
var brkPoint = keys[0];
|
|
5515
|
-
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5516
|
-
// left in addition to align left classes.
|
|
5517
|
-
// Reuse alignRight to toggle the class below.
|
|
5518
|
-
|
|
5519
|
-
alignRight = direction === 'left';
|
|
5520
|
-
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5521
|
-
}
|
|
5522
|
-
} else if (align === 'right') {
|
|
5523
|
-
alignRight = true;
|
|
5524
|
-
}
|
|
5525
|
-
}
|
|
5526
|
-
|
|
5527
5444
|
var _ref2 = useDropdownMenu({
|
|
5528
5445
|
flip: flip,
|
|
5529
5446
|
rootCloseEvent: rootCloseEvent,
|
|
5530
5447
|
show: showProps,
|
|
5531
5448
|
alignEnd: alignRight,
|
|
5532
|
-
usePopper: !isNavbar
|
|
5533
|
-
popperConfig: _extends
|
|
5449
|
+
usePopper: !isNavbar,
|
|
5450
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5534
5451
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5535
5452
|
})
|
|
5536
5453
|
}),
|
|
@@ -5553,12 +5470,12 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5553
5470
|
if (placement) {
|
|
5554
5471
|
// we don't need the default popper style,
|
|
5555
5472
|
// menus are display: none when not shown.
|
|
5556
|
-
props.style = _extends
|
|
5473
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5557
5474
|
props['x-placement'] = placement;
|
|
5558
5475
|
}
|
|
5559
5476
|
|
|
5560
|
-
return /*#__PURE__*/
|
|
5561
|
-
className: classnames
|
|
5477
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5478
|
+
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5562
5479
|
}));
|
|
5563
5480
|
});
|
|
5564
5481
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5591,14 +5508,15 @@ module.exports = exports['default'];
|
|
|
5591
5508
|
|
|
5592
5509
|
unwrapExports(isRequiredForA11y_1);
|
|
5593
5510
|
|
|
5594
|
-
var DropdownToggle$1 =
|
|
5511
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5595
5512
|
var bsPrefix = _ref.bsPrefix,
|
|
5596
5513
|
split = _ref.split,
|
|
5597
5514
|
className = _ref.className,
|
|
5515
|
+
children = _ref.children,
|
|
5598
5516
|
childBsPrefix = _ref.childBsPrefix,
|
|
5599
5517
|
_ref$as = _ref.as,
|
|
5600
5518
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5601
|
-
props = _objectWithoutPropertiesLoose
|
|
5519
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "children", "childBsPrefix", "as"]);
|
|
5602
5520
|
|
|
5603
5521
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5604
5522
|
|
|
@@ -5613,10 +5531,10 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5613
5531
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5614
5532
|
// underlying component, to allow it to render size and style variants.
|
|
5615
5533
|
|
|
5616
|
-
return /*#__PURE__*/
|
|
5534
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5617
5535
|
onClick: toggle,
|
|
5618
5536
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5619
|
-
}, toggleProps, props));
|
|
5537
|
+
}, toggleProps, props), children);
|
|
5620
5538
|
});
|
|
5621
5539
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5622
5540
|
|
|
@@ -5636,7 +5554,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5636
5554
|
var defaultProps$g = {
|
|
5637
5555
|
navbar: false
|
|
5638
5556
|
};
|
|
5639
|
-
var Dropdown$1 =
|
|
5557
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5640
5558
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5641
5559
|
show: 'onToggle'
|
|
5642
5560
|
}),
|
|
@@ -5651,7 +5569,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5651
5569
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5652
5570
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5653
5571
|
_4 = _useUncontrolled.navbar,
|
|
5654
|
-
props = _objectWithoutPropertiesLoose
|
|
5572
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5655
5573
|
|
|
5656
5574
|
var onSelectCtx = useContext(SelectableContext);
|
|
5657
5575
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5673,9 +5591,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5673
5591
|
if (onSelect) onSelect(key, event);
|
|
5674
5592
|
handleToggle(false, event, 'select');
|
|
5675
5593
|
});
|
|
5676
|
-
return /*#__PURE__*/
|
|
5594
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5677
5595
|
value: handleSelect
|
|
5678
|
-
}, /*#__PURE__*/
|
|
5596
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5679
5597
|
drop: drop,
|
|
5680
5598
|
show: show,
|
|
5681
5599
|
alignEnd: alignRight,
|
|
@@ -5684,7 +5602,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5684
5602
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5685
5603
|
}, function (_ref) {
|
|
5686
5604
|
var dropdownProps = _ref.props;
|
|
5687
|
-
return /*#__PURE__*/
|
|
5605
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5688
5606
|
ref: ref,
|
|
5689
5607
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5690
5608
|
}));
|
|
@@ -5719,15 +5637,6 @@ var propTypes$5 = {
|
|
|
5719
5637
|
/** Disables both Buttons */
|
|
5720
5638
|
disabled: PropTypes.bool,
|
|
5721
5639
|
|
|
5722
|
-
/**
|
|
5723
|
-
* Aligns the dropdown menu responsively.
|
|
5724
|
-
*
|
|
5725
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5726
|
-
*
|
|
5727
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5728
|
-
*/
|
|
5729
|
-
menuAlign: alignPropType,
|
|
5730
|
-
|
|
5731
5640
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5732
5641
|
menuRole: PropTypes.string,
|
|
5733
5642
|
|
|
@@ -5737,7 +5646,7 @@ var propTypes$5 = {
|
|
|
5737
5646
|
/**
|
|
5738
5647
|
* Which event when fired outside the component will cause it to be closed.
|
|
5739
5648
|
*
|
|
5740
|
-
* _see [DropdownMenu](#
|
|
5649
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
5741
5650
|
*/
|
|
5742
5651
|
rootCloseEvent: PropTypes.string,
|
|
5743
5652
|
|
|
@@ -5759,32 +5668,30 @@ var propTypes$5 = {
|
|
|
5759
5668
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5760
5669
|
*/
|
|
5761
5670
|
|
|
5762
|
-
var DropdownButton =
|
|
5671
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5763
5672
|
var title = _ref.title,
|
|
5764
5673
|
children = _ref.children,
|
|
5765
5674
|
bsPrefix = _ref.bsPrefix,
|
|
5766
5675
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5767
5676
|
variant = _ref.variant,
|
|
5768
5677
|
size = _ref.size,
|
|
5769
|
-
menuAlign = _ref.menuAlign,
|
|
5770
5678
|
menuRole = _ref.menuRole,
|
|
5771
5679
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5772
5680
|
disabled = _ref.disabled,
|
|
5773
5681
|
href = _ref.href,
|
|
5774
5682
|
id = _ref.id,
|
|
5775
|
-
props = _objectWithoutPropertiesLoose
|
|
5683
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5776
5684
|
|
|
5777
|
-
return /*#__PURE__*/
|
|
5685
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5778
5686
|
ref: ref
|
|
5779
|
-
}, props), /*#__PURE__*/
|
|
5687
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5780
5688
|
id: id,
|
|
5781
5689
|
href: href,
|
|
5782
5690
|
size: size,
|
|
5783
5691
|
variant: variant,
|
|
5784
5692
|
disabled: disabled,
|
|
5785
5693
|
childBsPrefix: bsPrefix
|
|
5786
|
-
}, title), /*#__PURE__*/
|
|
5787
|
-
align: menuAlign,
|
|
5694
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5788
5695
|
role: menuRole,
|
|
5789
5696
|
renderOnMount: renderMenuOnMount,
|
|
5790
5697
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5898,7 +5805,7 @@ var propTypes$6 = {
|
|
|
5898
5805
|
tooltip: PropTypes.bool,
|
|
5899
5806
|
as: PropTypes.elementType
|
|
5900
5807
|
};
|
|
5901
|
-
var Feedback =
|
|
5808
|
+
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
|
|
5902
5809
|
function (_ref, ref) {
|
|
5903
5810
|
var _ref$as = _ref.as,
|
|
5904
5811
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5907,9 +5814,9 @@ function (_ref, ref) {
|
|
|
5907
5814
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5908
5815
|
_ref$tooltip = _ref.tooltip,
|
|
5909
5816
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5910
|
-
props = _objectWithoutPropertiesLoose
|
|
5817
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5911
5818
|
|
|
5912
|
-
return /*#__PURE__*/
|
|
5819
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5913
5820
|
ref: ref,
|
|
5914
5821
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5915
5822
|
}));
|
|
@@ -5917,11 +5824,11 @@ function (_ref, ref) {
|
|
|
5917
5824
|
Feedback.displayName = 'Feedback';
|
|
5918
5825
|
Feedback.propTypes = propTypes$6;
|
|
5919
5826
|
|
|
5920
|
-
var FormContext =
|
|
5827
|
+
var FormContext = React.createContext({
|
|
5921
5828
|
controlId: undefined
|
|
5922
5829
|
});
|
|
5923
5830
|
|
|
5924
|
-
var FormCheckInput =
|
|
5831
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5925
5832
|
var id = _ref.id,
|
|
5926
5833
|
bsPrefix = _ref.bsPrefix,
|
|
5927
5834
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5935,7 +5842,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5935
5842
|
isStatic = _ref.isStatic,
|
|
5936
5843
|
_ref$as = _ref.as,
|
|
5937
5844
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5938
|
-
props = _objectWithoutPropertiesLoose
|
|
5845
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5939
5846
|
|
|
5940
5847
|
var _useContext = useContext(FormContext),
|
|
5941
5848
|
controlId = _useContext.controlId,
|
|
@@ -5946,7 +5853,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5946
5853
|
defaultPrefix = _ref2[1];
|
|
5947
5854
|
|
|
5948
5855
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5949
|
-
return /*#__PURE__*/
|
|
5856
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5950
5857
|
ref: ref,
|
|
5951
5858
|
type: type,
|
|
5952
5859
|
id: id || controlId,
|
|
@@ -5955,12 +5862,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5955
5862
|
});
|
|
5956
5863
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5957
5864
|
|
|
5958
|
-
var FormCheckLabel =
|
|
5865
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5959
5866
|
var bsPrefix = _ref.bsPrefix,
|
|
5960
5867
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5961
5868
|
className = _ref.className,
|
|
5962
5869
|
htmlFor = _ref.htmlFor,
|
|
5963
|
-
props = _objectWithoutPropertiesLoose
|
|
5870
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5964
5871
|
|
|
5965
5872
|
var _useContext = useContext(FormContext),
|
|
5966
5873
|
controlId = _useContext.controlId,
|
|
@@ -5971,7 +5878,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5971
5878
|
defaultPrefix = _ref2[1];
|
|
5972
5879
|
|
|
5973
5880
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5974
|
-
return /*#__PURE__*/
|
|
5881
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5975
5882
|
ref: ref,
|
|
5976
5883
|
htmlFor: htmlFor || controlId,
|
|
5977
5884
|
className: classnames(className, bsPrefix)
|
|
@@ -5979,7 +5886,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5979
5886
|
});
|
|
5980
5887
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5981
5888
|
|
|
5982
|
-
var FormCheck =
|
|
5889
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5983
5890
|
var id = _ref.id,
|
|
5984
5891
|
bsPrefix = _ref.bsPrefix,
|
|
5985
5892
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6005,7 +5912,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6005
5912
|
propCustom = _ref.custom,
|
|
6006
5913
|
_ref$as = _ref.as,
|
|
6007
5914
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6008
|
-
props = _objectWithoutPropertiesLoose
|
|
5915
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6009
5916
|
|
|
6010
5917
|
var custom = type === 'switch' ? true : propCustom;
|
|
6011
5918
|
|
|
@@ -6024,8 +5931,8 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
5931
|
custom: custom
|
|
6025
5932
|
};
|
|
6026
5933
|
}, [controlId, custom, id]);
|
|
6027
|
-
var hasLabel =
|
|
6028
|
-
var input = /*#__PURE__*/
|
|
5934
|
+
var hasLabel = label != null && label !== false && !children;
|
|
5935
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6029
5936
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6030
5937
|
ref: ref,
|
|
6031
5938
|
isValid: isValid,
|
|
@@ -6034,14 +5941,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6034
5941
|
disabled: disabled,
|
|
6035
5942
|
as: as
|
|
6036
5943
|
}));
|
|
6037
|
-
return /*#__PURE__*/
|
|
5944
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6038
5945
|
value: innerFormContext
|
|
6039
|
-
}, /*#__PURE__*/
|
|
5946
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6040
5947
|
style: style,
|
|
6041
5948
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6042
|
-
}, children || /*#__PURE__*/
|
|
5949
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6043
5950
|
title: title
|
|
6044
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5951
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6045
5952
|
type: isValid ? 'valid' : 'invalid',
|
|
6046
5953
|
tooltip: feedbackTooltip
|
|
6047
5954
|
}, feedback))));
|
|
@@ -6050,7 +5957,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6050
5957
|
FormCheck.Input = FormCheckInput;
|
|
6051
5958
|
FormCheck.Label = FormCheckLabel;
|
|
6052
5959
|
|
|
6053
|
-
var FormFileInput =
|
|
5960
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6054
5961
|
var id = _ref.id,
|
|
6055
5962
|
bsPrefix = _ref.bsPrefix,
|
|
6056
5963
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6060,7 +5967,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6060
5967
|
lang = _ref.lang,
|
|
6061
5968
|
_ref$as = _ref.as,
|
|
6062
5969
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6063
|
-
props = _objectWithoutPropertiesLoose
|
|
5970
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6064
5971
|
|
|
6065
5972
|
var _useContext = useContext(FormContext),
|
|
6066
5973
|
controlId = _useContext.controlId,
|
|
@@ -6073,7 +5980,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6073
5980
|
defaultPrefix = _ref2[1];
|
|
6074
5981
|
|
|
6075
5982
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6076
|
-
return /*#__PURE__*/
|
|
5983
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6077
5984
|
ref: ref,
|
|
6078
5985
|
id: id || controlId,
|
|
6079
5986
|
type: type,
|
|
@@ -6083,12 +5990,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6083
5990
|
});
|
|
6084
5991
|
FormFileInput.displayName = 'FormFileInput';
|
|
6085
5992
|
|
|
6086
|
-
var FormFileLabel =
|
|
5993
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6087
5994
|
var bsPrefix = _ref.bsPrefix,
|
|
6088
5995
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6089
5996
|
className = _ref.className,
|
|
6090
5997
|
htmlFor = _ref.htmlFor,
|
|
6091
|
-
props = _objectWithoutPropertiesLoose
|
|
5998
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6092
5999
|
|
|
6093
6000
|
var _useContext = useContext(FormContext),
|
|
6094
6001
|
controlId = _useContext.controlId,
|
|
@@ -6099,7 +6006,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6099
6006
|
defaultPrefix = _ref2[1];
|
|
6100
6007
|
|
|
6101
6008
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6102
|
-
return /*#__PURE__*/
|
|
6009
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6103
6010
|
ref: ref,
|
|
6104
6011
|
htmlFor: htmlFor || controlId,
|
|
6105
6012
|
className: classnames(className, bsPrefix),
|
|
@@ -6108,7 +6015,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6108
6015
|
});
|
|
6109
6016
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6110
6017
|
|
|
6111
|
-
var FormFile =
|
|
6018
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6112
6019
|
var id = _ref.id,
|
|
6113
6020
|
bsPrefix = _ref.bsPrefix,
|
|
6114
6021
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6132,7 +6039,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6132
6039
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6133
6040
|
_ref$inputAs = _ref.inputAs,
|
|
6134
6041
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6135
|
-
props = _objectWithoutPropertiesLoose
|
|
6042
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6136
6043
|
|
|
6137
6044
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6138
6045
|
prefix = _ref2[0],
|
|
@@ -6151,7 +6058,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6058
|
};
|
|
6152
6059
|
}, [controlId, custom, id]);
|
|
6153
6060
|
var hasLabel = label != null && label !== false && !children;
|
|
6154
|
-
var input = /*#__PURE__*/
|
|
6061
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6155
6062
|
ref: ref,
|
|
6156
6063
|
isValid: isValid,
|
|
6157
6064
|
isInvalid: isInvalid,
|
|
@@ -6159,14 +6066,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6159
6066
|
as: inputAs,
|
|
6160
6067
|
lang: lang
|
|
6161
6068
|
}));
|
|
6162
|
-
return /*#__PURE__*/
|
|
6069
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6163
6070
|
value: innerFormContext
|
|
6164
|
-
}, /*#__PURE__*/
|
|
6071
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6165
6072
|
style: style,
|
|
6166
6073
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6167
|
-
}, children || /*#__PURE__*/
|
|
6074
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6168
6075
|
"data-browse": dataBrowse
|
|
6169
|
-
}, label)) : /*#__PURE__*/
|
|
6076
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6170
6077
|
type: isValid ? 'valid' : 'invalid',
|
|
6171
6078
|
tooltip: feedbackTooltip
|
|
6172
6079
|
}, feedback))));
|
|
@@ -6175,7 +6082,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6175
6082
|
FormFile.Input = FormFileInput;
|
|
6176
6083
|
FormFile.Label = FormFileLabel;
|
|
6177
6084
|
|
|
6178
|
-
var FormControl =
|
|
6085
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6179
6086
|
var bsPrefix = _ref.bsPrefix,
|
|
6180
6087
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6181
6088
|
type = _ref.type,
|
|
@@ -6192,7 +6099,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6192
6099
|
custom = _ref.custom,
|
|
6193
6100
|
_ref$as = _ref.as,
|
|
6194
6101
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6195
|
-
props = _objectWithoutPropertiesLoose
|
|
6102
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6196
6103
|
|
|
6197
6104
|
var _useContext = useContext(FormContext),
|
|
6198
6105
|
controlId = _useContext.controlId;
|
|
@@ -6227,7 +6134,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6227
6134
|
}
|
|
6228
6135
|
|
|
6229
6136
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6230
|
-
return /*#__PURE__*/
|
|
6137
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6231
6138
|
type: type,
|
|
6232
6139
|
size: htmlSize,
|
|
6233
6140
|
ref: ref,
|
|
@@ -6241,14 +6148,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6241
6148
|
Feedback: Feedback
|
|
6242
6149
|
});
|
|
6243
6150
|
|
|
6244
|
-
var FormGroup =
|
|
6151
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6245
6152
|
var bsPrefix = _ref.bsPrefix,
|
|
6246
6153
|
className = _ref.className,
|
|
6247
6154
|
children = _ref.children,
|
|
6248
6155
|
controlId = _ref.controlId,
|
|
6249
6156
|
_ref$as = _ref.as,
|
|
6250
6157
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose
|
|
6158
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6252
6159
|
|
|
6253
6160
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6254
6161
|
var context = useMemo(function () {
|
|
@@ -6256,9 +6163,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6256
6163
|
controlId: controlId
|
|
6257
6164
|
};
|
|
6258
6165
|
}, [controlId]);
|
|
6259
|
-
return /*#__PURE__*/
|
|
6166
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6260
6167
|
value: context
|
|
6261
|
-
}, /*#__PURE__*/
|
|
6168
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6262
6169
|
ref: ref,
|
|
6263
6170
|
className: classnames(className, bsPrefix)
|
|
6264
6171
|
}), children));
|
|
@@ -6269,7 +6176,7 @@ var defaultProps$h = {
|
|
|
6269
6176
|
column: false,
|
|
6270
6177
|
srOnly: false
|
|
6271
6178
|
};
|
|
6272
|
-
var FormLabel =
|
|
6179
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6273
6180
|
var _ref$as = _ref.as,
|
|
6274
6181
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6275
6182
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6277,18 +6184,18 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6277
6184
|
srOnly = _ref.srOnly,
|
|
6278
6185
|
className = _ref.className,
|
|
6279
6186
|
htmlFor = _ref.htmlFor,
|
|
6280
|
-
props = _objectWithoutPropertiesLoose
|
|
6187
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6281
6188
|
|
|
6282
6189
|
var _useContext = useContext(FormContext),
|
|
6283
6190
|
controlId = _useContext.controlId;
|
|
6284
6191
|
|
|
6285
6192
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6286
6193
|
var columnClass = 'col-form-label';
|
|
6287
|
-
if (typeof column === 'string') columnClass = columnClass + "
|
|
6194
|
+
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6288
6195
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6289
6196
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6290
6197
|
htmlFor = htmlFor || controlId;
|
|
6291
|
-
if (column) return /*#__PURE__*/
|
|
6198
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6292
6199
|
as: "label",
|
|
6293
6200
|
className: classes,
|
|
6294
6201
|
htmlFor: htmlFor
|
|
@@ -6296,7 +6203,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6296
6203
|
return (
|
|
6297
6204
|
/*#__PURE__*/
|
|
6298
6205
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6299
|
-
|
|
6206
|
+
React.createElement(Component, _extends({
|
|
6300
6207
|
ref: ref,
|
|
6301
6208
|
className: classes,
|
|
6302
6209
|
htmlFor: htmlFor
|
|
@@ -6306,25 +6213,25 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6306
6213
|
FormLabel.displayName = 'FormLabel';
|
|
6307
6214
|
FormLabel.defaultProps = defaultProps$h;
|
|
6308
6215
|
|
|
6309
|
-
var FormText =
|
|
6216
|
+
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
|
|
6310
6217
|
function (_ref, ref) {
|
|
6311
6218
|
var bsPrefix = _ref.bsPrefix,
|
|
6312
6219
|
className = _ref.className,
|
|
6313
6220
|
_ref$as = _ref.as,
|
|
6314
6221
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6315
6222
|
muted = _ref.muted,
|
|
6316
|
-
props = _objectWithoutPropertiesLoose
|
|
6223
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6317
6224
|
|
|
6318
6225
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6319
|
-
return /*#__PURE__*/
|
|
6226
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6320
6227
|
ref: ref,
|
|
6321
6228
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6322
6229
|
}));
|
|
6323
6230
|
});
|
|
6324
6231
|
FormText.displayName = 'FormText';
|
|
6325
6232
|
|
|
6326
|
-
var Switch =
|
|
6327
|
-
return /*#__PURE__*/
|
|
6233
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6234
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6328
6235
|
ref: ref,
|
|
6329
6236
|
type: "switch"
|
|
6330
6237
|
}));
|
|
@@ -6337,17 +6244,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6337
6244
|
var defaultProps$i = {
|
|
6338
6245
|
inline: false
|
|
6339
6246
|
};
|
|
6340
|
-
var FormImpl =
|
|
6247
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6341
6248
|
var bsPrefix = _ref.bsPrefix,
|
|
6342
6249
|
inline = _ref.inline,
|
|
6343
6250
|
className = _ref.className,
|
|
6344
6251
|
validated = _ref.validated,
|
|
6345
6252
|
_ref$as = _ref.as,
|
|
6346
6253
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6347
|
-
props = _objectWithoutPropertiesLoose
|
|
6254
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6348
6255
|
|
|
6349
6256
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6350
|
-
return /*#__PURE__*/
|
|
6257
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6351
6258
|
ref: ref,
|
|
6352
6259
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6353
6260
|
}));
|
|
@@ -6366,17 +6273,17 @@ FormImpl.Text = FormText;
|
|
|
6366
6273
|
var defaultProps$j = {
|
|
6367
6274
|
fluid: false
|
|
6368
6275
|
};
|
|
6369
|
-
var Container =
|
|
6276
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6370
6277
|
var bsPrefix = _ref.bsPrefix,
|
|
6371
6278
|
fluid = _ref.fluid,
|
|
6372
6279
|
_ref$as = _ref.as,
|
|
6373
6280
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6374
6281
|
className = _ref.className,
|
|
6375
|
-
props = _objectWithoutPropertiesLoose
|
|
6282
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6376
6283
|
|
|
6377
6284
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6378
6285
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6379
|
-
return /*#__PURE__*/
|
|
6286
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6380
6287
|
ref: ref
|
|
6381
6288
|
}, props, {
|
|
6382
6289
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6417,18 +6324,18 @@ var defaultProps$k = {
|
|
|
6417
6324
|
roundedCircle: false,
|
|
6418
6325
|
thumbnail: false
|
|
6419
6326
|
};
|
|
6420
|
-
var Image =
|
|
6327
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6421
6328
|
var bsPrefix = _ref.bsPrefix,
|
|
6422
6329
|
className = _ref.className,
|
|
6423
6330
|
fluid = _ref.fluid,
|
|
6424
6331
|
rounded = _ref.rounded,
|
|
6425
6332
|
roundedCircle = _ref.roundedCircle,
|
|
6426
6333
|
thumbnail = _ref.thumbnail,
|
|
6427
|
-
props = _objectWithoutPropertiesLoose
|
|
6334
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6428
6335
|
|
|
6429
6336
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6430
6337
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6431
|
-
return /*#__PURE__*/
|
|
6338
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6432
6339
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6433
6340
|
ref: ref
|
|
6434
6341
|
}, props, {
|
|
@@ -6441,11 +6348,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6441
6348
|
var defaultProps$l = {
|
|
6442
6349
|
fluid: true
|
|
6443
6350
|
};
|
|
6444
|
-
var FigureImage =
|
|
6351
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6445
6352
|
var className = _ref.className,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose
|
|
6353
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6447
6354
|
|
|
6448
|
-
return /*#__PURE__*/
|
|
6355
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6449
6356
|
ref: ref
|
|
6450
6357
|
}, props, {
|
|
6451
6358
|
className: classnames(className, 'figure-img')
|
|
@@ -6472,13 +6379,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6472
6379
|
});
|
|
6473
6380
|
|
|
6474
6381
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6475
|
-
return /*#__PURE__*/
|
|
6382
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6476
6383
|
type: "checkbox"
|
|
6477
6384
|
}, props)));
|
|
6478
6385
|
};
|
|
6479
6386
|
|
|
6480
6387
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6481
|
-
return /*#__PURE__*/
|
|
6388
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6482
6389
|
type: "radio"
|
|
6483
6390
|
}, props)));
|
|
6484
6391
|
};
|
|
@@ -6491,16 +6398,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6491
6398
|
* @property {InputGroupRadio} Radio
|
|
6492
6399
|
* @property {InputGroupCheckbox} Checkbox
|
|
6493
6400
|
*/
|
|
6494
|
-
var InputGroup =
|
|
6401
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6495
6402
|
var bsPrefix = _ref.bsPrefix,
|
|
6496
6403
|
size = _ref.size,
|
|
6497
6404
|
className = _ref.className,
|
|
6498
6405
|
_ref$as = _ref.as,
|
|
6499
6406
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6500
|
-
props = _objectWithoutPropertiesLoose
|
|
6407
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6501
6408
|
|
|
6502
6409
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6503
|
-
return /*#__PURE__*/
|
|
6410
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6504
6411
|
ref: ref
|
|
6505
6412
|
}, props, {
|
|
6506
6413
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6508,7 +6415,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6508
6415
|
});
|
|
6509
6416
|
InputGroup.displayName = 'InputGroup';
|
|
6510
6417
|
|
|
6511
|
-
var InputGroupWithExtras = _extends
|
|
6418
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6512
6419
|
Text: InputGroupText,
|
|
6513
6420
|
Radio: InputGroupRadio,
|
|
6514
6421
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6519,7 +6426,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6519
6426
|
var defaultProps$m = {
|
|
6520
6427
|
fluid: false
|
|
6521
6428
|
};
|
|
6522
|
-
var Jumbotron =
|
|
6429
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6523
6430
|
var _classes;
|
|
6524
6431
|
|
|
6525
6432
|
var _ref$as = _ref.as,
|
|
@@ -6527,11 +6434,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6527
6434
|
className = _ref.className,
|
|
6528
6435
|
fluid = _ref.fluid,
|
|
6529
6436
|
bsPrefix = _ref.bsPrefix,
|
|
6530
|
-
props = _objectWithoutPropertiesLoose
|
|
6437
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6531
6438
|
|
|
6532
6439
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6533
6440
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6534
|
-
return /*#__PURE__*/
|
|
6441
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6535
6442
|
ref: ref
|
|
6536
6443
|
}, props, {
|
|
6537
6444
|
className: classnames(className, classes)
|
|
@@ -6540,19 +6447,19 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6540
6447
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6541
6448
|
Jumbotron.displayName = 'Jumbotron';
|
|
6542
6449
|
|
|
6543
|
-
var TabContext =
|
|
6450
|
+
var TabContext = React.createContext(null);
|
|
6544
6451
|
|
|
6545
6452
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6546
6453
|
var noop$4 = function noop() {};
|
|
6547
6454
|
|
|
6548
|
-
var AbstractNav =
|
|
6455
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6549
6456
|
var _ref$as = _ref.as,
|
|
6550
6457
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6551
6458
|
onSelect = _ref.onSelect,
|
|
6552
6459
|
activeKey = _ref.activeKey,
|
|
6553
6460
|
role = _ref.role,
|
|
6554
6461
|
onKeyDown = _ref.onKeyDown,
|
|
6555
|
-
props = _objectWithoutPropertiesLoose
|
|
6462
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6556
6463
|
|
|
6557
6464
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6558
6465
|
// and don't want to reset the set in the effect
|
|
@@ -6626,9 +6533,9 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6626
6533
|
needsRefocusRef.current = false;
|
|
6627
6534
|
});
|
|
6628
6535
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6629
|
-
return /*#__PURE__*/
|
|
6536
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6630
6537
|
value: handleSelect
|
|
6631
|
-
}, /*#__PURE__*/
|
|
6538
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6632
6539
|
value: {
|
|
6633
6540
|
role: role,
|
|
6634
6541
|
// used by NavLink to determine it's role
|
|
@@ -6636,7 +6543,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6636
6543
|
getControlledId: getControlledId || noop$4,
|
|
6637
6544
|
getControllerId: getControllerId || noop$4
|
|
6638
6545
|
}
|
|
6639
|
-
}, /*#__PURE__*/
|
|
6546
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6640
6547
|
onKeyDown: handleKeyDown,
|
|
6641
6548
|
ref: mergedRef,
|
|
6642
6549
|
role: role
|
|
@@ -6646,14 +6553,14 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6646
6553
|
var defaultProps$n = {
|
|
6647
6554
|
disabled: false
|
|
6648
6555
|
};
|
|
6649
|
-
var AbstractNavItem =
|
|
6556
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6650
6557
|
var active = _ref.active,
|
|
6651
6558
|
className = _ref.className,
|
|
6652
6559
|
eventKey = _ref.eventKey,
|
|
6653
6560
|
onSelect = _ref.onSelect,
|
|
6654
6561
|
onClick = _ref.onClick,
|
|
6655
6562
|
Component = _ref.as,
|
|
6656
|
-
props = _objectWithoutPropertiesLoose
|
|
6563
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6657
6564
|
|
|
6658
6565
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6659
6566
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6683,7 +6590,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6683
6590
|
if (onSelect) onSelect(navKey, e);
|
|
6684
6591
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6685
6592
|
});
|
|
6686
|
-
return /*#__PURE__*/
|
|
6593
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6687
6594
|
ref: ref,
|
|
6688
6595
|
onClick: handleOnclick,
|
|
6689
6596
|
className: classnames(className, isActive && 'active')
|
|
@@ -6696,7 +6603,7 @@ var defaultProps$o = {
|
|
|
6696
6603
|
active: false,
|
|
6697
6604
|
disabled: false
|
|
6698
6605
|
};
|
|
6699
|
-
var ListGroupItem =
|
|
6606
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6700
6607
|
var bsPrefix = _ref.bsPrefix,
|
|
6701
6608
|
active = _ref.active,
|
|
6702
6609
|
disabled = _ref.disabled,
|
|
@@ -6706,7 +6613,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6706
6613
|
as = _ref.as,
|
|
6707
6614
|
eventKey = _ref.eventKey,
|
|
6708
6615
|
onClick = _ref.onClick,
|
|
6709
|
-
props = _objectWithoutPropertiesLoose
|
|
6616
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6710
6617
|
|
|
6711
6618
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6712
6619
|
var handleClick = useCallback(function (event) {
|
|
@@ -6718,11 +6625,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6718
6625
|
|
|
6719
6626
|
if (onClick) onClick(event);
|
|
6720
6627
|
}, [disabled, onClick]);
|
|
6721
|
-
return /*#__PURE__*/
|
|
6628
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6722
6629
|
ref: ref
|
|
6723
6630
|
}, props, {
|
|
6724
|
-
|
|
6725
|
-
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6631
|
+
eventKey: makeEventKey(eventKey || null, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6726
6632
|
,
|
|
6727
6633
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6728
6634
|
onClick: handleClick,
|
|
@@ -6736,7 +6642,7 @@ var defaultProps$p = {
|
|
|
6736
6642
|
variant: undefined,
|
|
6737
6643
|
horizontal: undefined
|
|
6738
6644
|
};
|
|
6739
|
-
var ListGroup =
|
|
6645
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6740
6646
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6741
6647
|
activeKey: 'onSelect'
|
|
6742
6648
|
}),
|
|
@@ -6746,7 +6652,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6746
6652
|
horizontal = _useUncontrolled.horizontal,
|
|
6747
6653
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6748
6654
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6749
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6655
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6750
6656
|
|
|
6751
6657
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6752
6658
|
var horizontalVariant;
|
|
@@ -6758,7 +6664,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6758
6664
|
}
|
|
6759
6665
|
|
|
6760
6666
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6761
|
-
return /*#__PURE__*/
|
|
6667
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6762
6668
|
ref: ref
|
|
6763
6669
|
}, controlledProps, {
|
|
6764
6670
|
as: as,
|
|
@@ -6770,16 +6676,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6770
6676
|
ListGroup.Item = ListGroupItem;
|
|
6771
6677
|
|
|
6772
6678
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6773
|
-
var Media =
|
|
6679
|
+
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
|
|
6774
6680
|
function (_ref, ref) {
|
|
6775
6681
|
var bsPrefix = _ref.bsPrefix,
|
|
6776
6682
|
className = _ref.className,
|
|
6777
6683
|
_ref$as = _ref.as,
|
|
6778
6684
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6779
|
-
props = _objectWithoutPropertiesLoose
|
|
6685
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6780
6686
|
|
|
6781
6687
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6782
|
-
return /*#__PURE__*/
|
|
6688
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6783
6689
|
ref: ref,
|
|
6784
6690
|
className: classnames(className, prefix)
|
|
6785
6691
|
}));
|
|
@@ -7167,7 +7073,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7167
7073
|
renderDialog = _ref.renderDialog,
|
|
7168
7074
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7169
7075
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7170
|
-
return /*#__PURE__*/
|
|
7076
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7171
7077
|
} : _ref$renderBackdrop,
|
|
7172
7078
|
providedManager = _ref.manager,
|
|
7173
7079
|
containerRef = _ref.container,
|
|
@@ -7325,12 +7231,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7325
7231
|
tabIndex: -1
|
|
7326
7232
|
});
|
|
7327
7233
|
|
|
7328
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7234
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7329
7235
|
role: 'document'
|
|
7330
7236
|
}));
|
|
7331
7237
|
|
|
7332
7238
|
if (Transition) {
|
|
7333
|
-
dialog = /*#__PURE__*/
|
|
7239
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7334
7240
|
appear: true,
|
|
7335
7241
|
unmountOnExit: true,
|
|
7336
7242
|
"in": !!show,
|
|
@@ -7353,14 +7259,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7353
7259
|
});
|
|
7354
7260
|
|
|
7355
7261
|
if (BackdropTransition) {
|
|
7356
|
-
backdropElement = /*#__PURE__*/
|
|
7262
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7357
7263
|
appear: true,
|
|
7358
7264
|
"in": !!show
|
|
7359
7265
|
}, backdropElement);
|
|
7360
7266
|
}
|
|
7361
7267
|
}
|
|
7362
7268
|
|
|
7363
|
-
return /*#__PURE__*/
|
|
7269
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7364
7270
|
});
|
|
7365
7271
|
var propTypes$8 = {
|
|
7366
7272
|
/**
|
|
@@ -7599,28 +7505,27 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7599
7505
|
|
|
7600
7506
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7601
7507
|
|
|
7602
|
-
var ModalContext =
|
|
7508
|
+
var ModalContext = React.createContext({
|
|
7603
7509
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7604
7510
|
onHide: function onHide() {}
|
|
7605
7511
|
});
|
|
7606
7512
|
|
|
7607
|
-
var ModalDialog =
|
|
7513
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7608
7514
|
var bsPrefix = _ref.bsPrefix,
|
|
7609
7515
|
className = _ref.className,
|
|
7610
|
-
contentClassName = _ref.contentClassName,
|
|
7611
7516
|
centered = _ref.centered,
|
|
7612
7517
|
size = _ref.size,
|
|
7613
7518
|
children = _ref.children,
|
|
7614
7519
|
scrollable = _ref.scrollable,
|
|
7615
|
-
props = _objectWithoutPropertiesLoose
|
|
7520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7616
7521
|
|
|
7617
7522
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7618
7523
|
var dialogClass = bsPrefix + "-dialog";
|
|
7619
|
-
return /*#__PURE__*/
|
|
7524
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7620
7525
|
ref: ref,
|
|
7621
7526
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7622
|
-
}), /*#__PURE__*/
|
|
7623
|
-
className:
|
|
7527
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7528
|
+
className: bsPrefix + "-content"
|
|
7624
7529
|
}, children));
|
|
7625
7530
|
});
|
|
7626
7531
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7631,14 +7536,14 @@ var defaultProps$q = {
|
|
|
7631
7536
|
closeLabel: 'Close',
|
|
7632
7537
|
closeButton: false
|
|
7633
7538
|
};
|
|
7634
|
-
var ModalHeader =
|
|
7539
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7635
7540
|
var bsPrefix = _ref.bsPrefix,
|
|
7636
7541
|
closeLabel = _ref.closeLabel,
|
|
7637
7542
|
closeButton = _ref.closeButton,
|
|
7638
7543
|
onHide = _ref.onHide,
|
|
7639
7544
|
className = _ref.className,
|
|
7640
7545
|
children = _ref.children,
|
|
7641
|
-
props = _objectWithoutPropertiesLoose
|
|
7546
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7642
7547
|
|
|
7643
7548
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7644
7549
|
var context = useContext(ModalContext);
|
|
@@ -7646,11 +7551,11 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7646
7551
|
if (context) context.onHide();
|
|
7647
7552
|
if (onHide) onHide();
|
|
7648
7553
|
});
|
|
7649
|
-
return /*#__PURE__*/
|
|
7554
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7650
7555
|
ref: ref
|
|
7651
7556
|
}, props, {
|
|
7652
7557
|
className: classnames(className, bsPrefix)
|
|
7653
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7558
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7654
7559
|
label: closeLabel,
|
|
7655
7560
|
onClick: handleClick
|
|
7656
7561
|
}));
|
|
@@ -7677,21 +7582,20 @@ var defaultProps$r = {
|
|
|
7677
7582
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7678
7583
|
|
|
7679
7584
|
function DialogTransition(props) {
|
|
7680
|
-
return /*#__PURE__*/
|
|
7585
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7681
7586
|
}
|
|
7682
7587
|
|
|
7683
7588
|
function BackdropTransition(props) {
|
|
7684
|
-
return /*#__PURE__*/
|
|
7589
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7685
7590
|
}
|
|
7686
7591
|
/* eslint-enable no-use-before-define */
|
|
7687
7592
|
|
|
7688
7593
|
|
|
7689
|
-
var Modal$1 =
|
|
7594
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7690
7595
|
var bsPrefix = _ref.bsPrefix,
|
|
7691
7596
|
className = _ref.className,
|
|
7692
7597
|
style = _ref.style,
|
|
7693
7598
|
dialogClassName = _ref.dialogClassName,
|
|
7694
|
-
contentClassName = _ref.contentClassName,
|
|
7695
7599
|
children = _ref.children,
|
|
7696
7600
|
Dialog = _ref.dialogAs,
|
|
7697
7601
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7715,7 +7619,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7715
7619
|
onExited = _ref.onExited,
|
|
7716
7620
|
backdropClassName = _ref.backdropClassName,
|
|
7717
7621
|
propsManager = _ref.manager,
|
|
7718
|
-
props = _objectWithoutPropertiesLoose
|
|
7622
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7719
7623
|
|
|
7720
7624
|
var _useState = useState({}),
|
|
7721
7625
|
modalStyle = _useState[0],
|
|
@@ -7881,12 +7785,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7881
7785
|
};
|
|
7882
7786
|
|
|
7883
7787
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7884
|
-
return /*#__PURE__*/
|
|
7788
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7885
7789
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7886
7790
|
}));
|
|
7887
7791
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7888
7792
|
|
|
7889
|
-
var baseModalStyle = _extends
|
|
7793
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7890
7794
|
|
|
7891
7795
|
|
|
7892
7796
|
if (!animation) {
|
|
@@ -7894,7 +7798,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7894
7798
|
}
|
|
7895
7799
|
|
|
7896
7800
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7897
|
-
return /*#__PURE__*/
|
|
7801
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7898
7802
|
role: "dialog"
|
|
7899
7803
|
}, dialogProps, {
|
|
7900
7804
|
style: baseModalStyle,
|
|
@@ -7902,17 +7806,16 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7902
7806
|
onClick: backdrop ? handleClick : undefined,
|
|
7903
7807
|
onMouseUp: handleMouseUp,
|
|
7904
7808
|
"aria-labelledby": ariaLabelledby
|
|
7905
|
-
}), /*#__PURE__*/
|
|
7809
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7906
7810
|
role: "document",
|
|
7907
7811
|
onMouseDown: handleDialogMouseDown,
|
|
7908
|
-
className: dialogClassName
|
|
7909
|
-
contentClassName: contentClassName
|
|
7812
|
+
className: dialogClassName
|
|
7910
7813
|
}), children));
|
|
7911
7814
|
};
|
|
7912
7815
|
|
|
7913
|
-
return /*#__PURE__*/
|
|
7816
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7914
7817
|
value: modalContext
|
|
7915
|
-
}, /*#__PURE__*/
|
|
7818
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7916
7819
|
show: show,
|
|
7917
7820
|
ref: setModalRef,
|
|
7918
7821
|
backdrop: backdrop,
|
|
@@ -7950,17 +7853,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7950
7853
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7951
7854
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7952
7855
|
|
|
7953
|
-
var NavItem =
|
|
7856
|
+
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
|
|
7954
7857
|
function (_ref, ref) {
|
|
7955
7858
|
var bsPrefix = _ref.bsPrefix,
|
|
7956
7859
|
className = _ref.className,
|
|
7957
7860
|
children = _ref.children,
|
|
7958
7861
|
_ref$as = _ref.as,
|
|
7959
7862
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7960
|
-
props = _objectWithoutPropertiesLoose
|
|
7863
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7961
7864
|
|
|
7962
7865
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7963
|
-
return /*#__PURE__*/
|
|
7866
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7964
7867
|
ref: ref,
|
|
7965
7868
|
className: classnames(className, bsPrefix)
|
|
7966
7869
|
}), children);
|
|
@@ -7971,7 +7874,7 @@ var defaultProps$s = {
|
|
|
7971
7874
|
disabled: false,
|
|
7972
7875
|
as: SafeAnchor
|
|
7973
7876
|
};
|
|
7974
|
-
var NavLink =
|
|
7877
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7975
7878
|
var bsPrefix = _ref.bsPrefix,
|
|
7976
7879
|
disabled = _ref.disabled,
|
|
7977
7880
|
className = _ref.className,
|
|
@@ -7979,10 +7882,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7979
7882
|
eventKey = _ref.eventKey,
|
|
7980
7883
|
onSelect = _ref.onSelect,
|
|
7981
7884
|
as = _ref.as,
|
|
7982
|
-
props = _objectWithoutPropertiesLoose
|
|
7885
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7983
7886
|
|
|
7984
7887
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7985
|
-
return /*#__PURE__*/
|
|
7888
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7986
7889
|
href: href,
|
|
7987
7890
|
ref: ref,
|
|
7988
7891
|
eventKey: eventKey,
|
|
@@ -7999,7 +7902,7 @@ var defaultProps$t = {
|
|
|
7999
7902
|
justify: false,
|
|
8000
7903
|
fill: false
|
|
8001
7904
|
};
|
|
8002
|
-
var Nav =
|
|
7905
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8003
7906
|
var _classNames;
|
|
8004
7907
|
|
|
8005
7908
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8015,7 +7918,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8015
7918
|
className = _useUncontrolled.className,
|
|
8016
7919
|
children = _useUncontrolled.children,
|
|
8017
7920
|
activeKey = _useUncontrolled.activeKey,
|
|
8018
|
-
props = _objectWithoutPropertiesLoose
|
|
7921
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8019
7922
|
|
|
8020
7923
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8021
7924
|
var navbarBsPrefix;
|
|
@@ -8031,7 +7934,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8031
7934
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8032
7935
|
}
|
|
8033
7936
|
|
|
8034
|
-
return /*#__PURE__*/
|
|
7937
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8035
7938
|
as: as,
|
|
8036
7939
|
ref: ref,
|
|
8037
7940
|
activeKey: activeKey,
|
|
@@ -8043,31 +7946,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8043
7946
|
Nav.Item = NavItem;
|
|
8044
7947
|
Nav.Link = NavLink;
|
|
8045
7948
|
|
|
8046
|
-
var NavbarBrand =
|
|
7949
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8047
7950
|
var bsPrefix = _ref.bsPrefix,
|
|
8048
7951
|
className = _ref.className,
|
|
8049
7952
|
as = _ref.as,
|
|
8050
|
-
props = _objectWithoutPropertiesLoose
|
|
7953
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8051
7954
|
|
|
8052
7955
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8053
7956
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8054
|
-
return /*#__PURE__*/
|
|
7957
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8055
7958
|
ref: ref,
|
|
8056
7959
|
className: classnames(className, bsPrefix)
|
|
8057
7960
|
}));
|
|
8058
7961
|
});
|
|
8059
7962
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8060
7963
|
|
|
8061
|
-
var NavbarCollapse =
|
|
7964
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8062
7965
|
var children = _ref.children,
|
|
8063
7966
|
bsPrefix = _ref.bsPrefix,
|
|
8064
|
-
props = _objectWithoutPropertiesLoose
|
|
7967
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8065
7968
|
|
|
8066
7969
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8067
|
-
return /*#__PURE__*/
|
|
8068
|
-
return /*#__PURE__*/
|
|
7970
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
7971
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8069
7972
|
in: !!(context && context.expanded)
|
|
8070
|
-
}, props), /*#__PURE__*/
|
|
7973
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8071
7974
|
ref: ref,
|
|
8072
7975
|
className: bsPrefix
|
|
8073
7976
|
}, children));
|
|
@@ -8078,7 +7981,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8078
7981
|
var defaultProps$u = {
|
|
8079
7982
|
label: 'Toggle navigation'
|
|
8080
7983
|
};
|
|
8081
|
-
var NavbarToggle =
|
|
7984
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8082
7985
|
var bsPrefix = _ref.bsPrefix,
|
|
8083
7986
|
className = _ref.className,
|
|
8084
7987
|
children = _ref.children,
|
|
@@ -8086,7 +7989,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8086
7989
|
_ref$as = _ref.as,
|
|
8087
7990
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8088
7991
|
onClick = _ref.onClick,
|
|
8089
|
-
props = _objectWithoutPropertiesLoose
|
|
7992
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8090
7993
|
|
|
8091
7994
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8092
7995
|
|
|
@@ -8103,12 +8006,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8103
8006
|
props.type = 'button';
|
|
8104
8007
|
}
|
|
8105
8008
|
|
|
8106
|
-
return /*#__PURE__*/
|
|
8009
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8107
8010
|
ref: ref,
|
|
8108
8011
|
onClick: handleClick,
|
|
8109
8012
|
"aria-label": label,
|
|
8110
8013
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8111
|
-
}), children || /*#__PURE__*/
|
|
8014
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8112
8015
|
className: bsPrefix + "-icon"
|
|
8113
8016
|
}));
|
|
8114
8017
|
});
|
|
@@ -8123,7 +8026,7 @@ var defaultProps$v = {
|
|
|
8123
8026
|
variant: 'light',
|
|
8124
8027
|
collapseOnSelect: false
|
|
8125
8028
|
};
|
|
8126
|
-
var Navbar =
|
|
8029
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8127
8030
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8128
8031
|
expanded: 'onToggle'
|
|
8129
8032
|
}),
|
|
@@ -8141,7 +8044,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8141
8044
|
_onToggle = _useUncontrolled.onToggle,
|
|
8142
8045
|
onSelect = _useUncontrolled.onSelect,
|
|
8143
8046
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8144
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8047
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8145
8048
|
|
|
8146
8049
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8147
8050
|
var handleCollapse = useCallback(function () {
|
|
@@ -8171,11 +8074,11 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8171
8074
|
expanded: !!expanded
|
|
8172
8075
|
};
|
|
8173
8076
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8174
|
-
return /*#__PURE__*/
|
|
8077
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8175
8078
|
value: navbarContext
|
|
8176
|
-
}, /*#__PURE__*/
|
|
8079
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8177
8080
|
value: handleCollapse
|
|
8178
|
-
}, /*#__PURE__*/
|
|
8081
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8179
8082
|
ref: ref
|
|
8180
8083
|
}, controlledProps, {
|
|
8181
8084
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8224,7 +8127,7 @@ var propTypes$9 = {
|
|
|
8224
8127
|
/** @ignore */
|
|
8225
8128
|
bsPrefix: PropTypes.string
|
|
8226
8129
|
};
|
|
8227
|
-
var NavDropdown =
|
|
8130
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8228
8131
|
var id = _ref.id,
|
|
8229
8132
|
title = _ref.title,
|
|
8230
8133
|
children = _ref.children,
|
|
@@ -8234,20 +8137,20 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8234
8137
|
disabled = _ref.disabled,
|
|
8235
8138
|
active = _ref.active,
|
|
8236
8139
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8237
|
-
props = _objectWithoutPropertiesLoose
|
|
8140
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8238
8141
|
|
|
8239
|
-
return /*#__PURE__*/
|
|
8142
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8240
8143
|
ref: ref
|
|
8241
8144
|
}, props, {
|
|
8242
8145
|
as: NavItem
|
|
8243
|
-
}), /*#__PURE__*/
|
|
8146
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8244
8147
|
id: id,
|
|
8245
8148
|
eventKey: null,
|
|
8246
8149
|
active: active,
|
|
8247
8150
|
disabled: disabled,
|
|
8248
8151
|
childBsPrefix: bsPrefix,
|
|
8249
8152
|
as: NavLink
|
|
8250
|
-
}, title), /*#__PURE__*/
|
|
8153
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8251
8154
|
role: menuRole,
|
|
8252
8155
|
renderOnMount: renderMenuOnMount,
|
|
8253
8156
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8264,7 +8167,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8264
8167
|
* Built on top of `Popper.js`, the overlay component is
|
|
8265
8168
|
* great for custom tooltip overlays.
|
|
8266
8169
|
*/
|
|
8267
|
-
var Overlay = /*#__PURE__*/
|
|
8170
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8268
8171
|
var flip = props.flip,
|
|
8269
8172
|
offset = props.offset,
|
|
8270
8173
|
placement = props.placement,
|
|
@@ -8347,7 +8250,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8347
8250
|
onEnter = props.onEnter,
|
|
8348
8251
|
onEntering = props.onEntering,
|
|
8349
8252
|
onEntered = props.onEntered;
|
|
8350
|
-
child = /*#__PURE__*/
|
|
8253
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8351
8254
|
"in": props.show,
|
|
8352
8255
|
appear: true,
|
|
8353
8256
|
onExit: onExit,
|
|
@@ -8513,34 +8416,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8513
8416
|
};
|
|
8514
8417
|
|
|
8515
8418
|
return RefHolder;
|
|
8516
|
-
}(
|
|
8419
|
+
}(React.Component);
|
|
8517
8420
|
|
|
8518
8421
|
var defaultProps$w = {
|
|
8519
8422
|
active: false,
|
|
8520
8423
|
disabled: false,
|
|
8521
8424
|
activeLabel: '(current)'
|
|
8522
8425
|
};
|
|
8523
|
-
var PageItem =
|
|
8426
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8524
8427
|
var active = _ref.active,
|
|
8525
8428
|
disabled = _ref.disabled,
|
|
8526
8429
|
className = _ref.className,
|
|
8527
8430
|
style = _ref.style,
|
|
8528
8431
|
activeLabel = _ref.activeLabel,
|
|
8529
8432
|
children = _ref.children,
|
|
8530
|
-
props = _objectWithoutPropertiesLoose
|
|
8433
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8531
8434
|
|
|
8532
8435
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8533
|
-
return /*#__PURE__*/
|
|
8436
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8534
8437
|
ref: ref,
|
|
8535
8438
|
style: style,
|
|
8536
8439
|
className: classnames(className, 'page-item', {
|
|
8537
8440
|
active: active,
|
|
8538
8441
|
disabled: disabled
|
|
8539
8442
|
})
|
|
8540
|
-
}, /*#__PURE__*/
|
|
8443
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8541
8444
|
className: "page-link",
|
|
8542
8445
|
disabled: disabled
|
|
8543
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8446
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8544
8447
|
className: "sr-only"
|
|
8545
8448
|
}, activeLabel)));
|
|
8546
8449
|
});
|
|
@@ -8554,11 +8457,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8554
8457
|
|
|
8555
8458
|
function Button(_ref2) {
|
|
8556
8459
|
var children = _ref2.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose
|
|
8460
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8558
8461
|
|
|
8559
|
-
return /*#__PURE__*/
|
|
8462
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8560
8463
|
"aria-hidden": "true"
|
|
8561
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8464
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8562
8465
|
className: "sr-only"
|
|
8563
8466
|
}, label));
|
|
8564
8467
|
}
|
|
@@ -8581,15 +8484,15 @@ var Last = createButton('Last', '»');
|
|
|
8581
8484
|
* @property {PageItem} Next
|
|
8582
8485
|
* @property {PageItem} Last
|
|
8583
8486
|
*/
|
|
8584
|
-
var Pagination =
|
|
8487
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8585
8488
|
var bsPrefix = _ref.bsPrefix,
|
|
8586
8489
|
className = _ref.className,
|
|
8587
8490
|
children = _ref.children,
|
|
8588
8491
|
size = _ref.size,
|
|
8589
|
-
props = _objectWithoutPropertiesLoose
|
|
8492
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8590
8493
|
|
|
8591
8494
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8592
|
-
return /*#__PURE__*/
|
|
8495
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8593
8496
|
ref: ref
|
|
8594
8497
|
}, props, {
|
|
8595
8498
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8602,32 +8505,32 @@ Pagination.Item = PageItem;
|
|
|
8602
8505
|
Pagination.Next = Next;
|
|
8603
8506
|
Pagination.Last = Last;
|
|
8604
8507
|
|
|
8605
|
-
var PopoverTitle =
|
|
8508
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8606
8509
|
var _ref$as = _ref.as,
|
|
8607
8510
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8608
8511
|
bsPrefix = _ref.bsPrefix,
|
|
8609
8512
|
className = _ref.className,
|
|
8610
8513
|
children = _ref.children,
|
|
8611
|
-
props = _objectWithoutPropertiesLoose
|
|
8514
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8612
8515
|
|
|
8613
8516
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8614
|
-
return /*#__PURE__*/
|
|
8517
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8615
8518
|
ref: ref
|
|
8616
8519
|
}, props, {
|
|
8617
8520
|
className: classnames(bsPrefix, className)
|
|
8618
8521
|
}), children);
|
|
8619
8522
|
});
|
|
8620
8523
|
|
|
8621
|
-
var PopoverContent =
|
|
8524
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8622
8525
|
var _ref$as = _ref.as,
|
|
8623
8526
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8624
8527
|
bsPrefix = _ref.bsPrefix,
|
|
8625
8528
|
className = _ref.className,
|
|
8626
8529
|
children = _ref.children,
|
|
8627
|
-
props = _objectWithoutPropertiesLoose
|
|
8530
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8628
8531
|
|
|
8629
8532
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8630
|
-
return /*#__PURE__*/
|
|
8533
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8631
8534
|
ref: ref
|
|
8632
8535
|
}, props, {
|
|
8633
8536
|
className: classnames(className, bsPrefix)
|
|
@@ -8637,7 +8540,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8637
8540
|
var defaultProps$x = {
|
|
8638
8541
|
placement: 'right'
|
|
8639
8542
|
};
|
|
8640
|
-
var Popover =
|
|
8543
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8641
8544
|
var bsPrefix = _ref.bsPrefix,
|
|
8642
8545
|
placement = _ref.placement,
|
|
8643
8546
|
className = _ref.className,
|
|
@@ -8647,22 +8550,22 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8647
8550
|
arrowProps = _ref.arrowProps,
|
|
8648
8551
|
_ = _ref.popper,
|
|
8649
8552
|
_1 = _ref.show,
|
|
8650
|
-
props = _objectWithoutPropertiesLoose
|
|
8553
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8651
8554
|
|
|
8652
8555
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8653
8556
|
|
|
8654
8557
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8655
8558
|
primaryPlacement = _ref2[0];
|
|
8656
8559
|
|
|
8657
|
-
return /*#__PURE__*/
|
|
8560
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8658
8561
|
ref: ref,
|
|
8659
8562
|
role: "tooltip",
|
|
8660
8563
|
style: style,
|
|
8661
8564
|
"x-placement": primaryPlacement,
|
|
8662
8565
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8663
|
-
}, props), /*#__PURE__*/
|
|
8566
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8664
8567
|
className: "arrow"
|
|
8665
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8568
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8666
8569
|
});
|
|
8667
8570
|
Popover.defaultProps = defaultProps$x;
|
|
8668
8571
|
Popover.Title = PopoverTitle;
|
|
@@ -8698,27 +8601,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8698
8601
|
style = _ref.style,
|
|
8699
8602
|
variant = _ref.variant,
|
|
8700
8603
|
bsPrefix = _ref.bsPrefix,
|
|
8701
|
-
props = _objectWithoutPropertiesLoose
|
|
8604
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8702
8605
|
|
|
8703
|
-
return /*#__PURE__*/
|
|
8606
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8704
8607
|
ref: ref
|
|
8705
8608
|
}, props, {
|
|
8706
8609
|
role: "progressbar",
|
|
8707
8610
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8708
|
-
style: _extends
|
|
8611
|
+
style: _extends({
|
|
8709
8612
|
width: getPercentage(now, min, max) + "%"
|
|
8710
8613
|
}, style),
|
|
8711
8614
|
"aria-valuenow": now,
|
|
8712
8615
|
"aria-valuemin": min,
|
|
8713
8616
|
"aria-valuemax": max
|
|
8714
|
-
}), srOnly ? /*#__PURE__*/
|
|
8617
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8715
8618
|
className: "sr-only"
|
|
8716
8619
|
}, label) : label);
|
|
8717
8620
|
}
|
|
8718
8621
|
|
|
8719
|
-
var ProgressBar =
|
|
8622
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8720
8623
|
var isChild = _ref2.isChild,
|
|
8721
|
-
props = _objectWithoutPropertiesLoose
|
|
8624
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8722
8625
|
|
|
8723
8626
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8724
8627
|
|
|
@@ -8737,9 +8640,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8737
8640
|
variant = props.variant,
|
|
8738
8641
|
className = props.className,
|
|
8739
8642
|
children = props.children,
|
|
8740
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8643
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8741
8644
|
|
|
8742
|
-
return /*#__PURE__*/
|
|
8645
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8743
8646
|
ref: ref
|
|
8744
8647
|
}, wrapperProps, {
|
|
8745
8648
|
className: classnames(className, bsPrefix)
|
|
@@ -8765,20 +8668,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8765
8668
|
var defaultProps$z = {
|
|
8766
8669
|
aspectRatio: '1by1'
|
|
8767
8670
|
};
|
|
8768
|
-
var ResponsiveEmbed =
|
|
8671
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8769
8672
|
var bsPrefix = _ref.bsPrefix,
|
|
8770
8673
|
className = _ref.className,
|
|
8771
8674
|
children = _ref.children,
|
|
8772
8675
|
aspectRatio = _ref.aspectRatio,
|
|
8773
|
-
props = _objectWithoutPropertiesLoose
|
|
8676
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8774
8677
|
|
|
8775
8678
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8776
|
-
var child =
|
|
8777
|
-
return /*#__PURE__*/
|
|
8679
|
+
var child = React.Children.only(children);
|
|
8680
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8778
8681
|
ref: ref
|
|
8779
8682
|
}, props, {
|
|
8780
8683
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8781
|
-
}),
|
|
8684
|
+
}), React.cloneElement(child, {
|
|
8782
8685
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8783
8686
|
}));
|
|
8784
8687
|
});
|
|
@@ -8788,13 +8691,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8788
8691
|
var defaultProps$A = {
|
|
8789
8692
|
noGutters: false
|
|
8790
8693
|
};
|
|
8791
|
-
var Row =
|
|
8694
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8792
8695
|
var bsPrefix = _ref.bsPrefix,
|
|
8793
8696
|
className = _ref.className,
|
|
8794
8697
|
noGutters = _ref.noGutters,
|
|
8795
8698
|
_ref$as = _ref.as,
|
|
8796
8699
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8797
|
-
props = _objectWithoutPropertiesLoose
|
|
8700
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8798
8701
|
|
|
8799
8702
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8800
8703
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8813,7 +8716,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8813
8716
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8814
8717
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8815
8718
|
});
|
|
8816
|
-
return /*#__PURE__*/
|
|
8719
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8817
8720
|
ref: ref
|
|
8818
8721
|
}, props, {
|
|
8819
8722
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8822,7 +8725,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8822
8725
|
Row.displayName = 'Row';
|
|
8823
8726
|
Row.defaultProps = defaultProps$A;
|
|
8824
8727
|
|
|
8825
|
-
var Spinner =
|
|
8728
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8826
8729
|
var bsPrefix = _ref.bsPrefix,
|
|
8827
8730
|
variant = _ref.variant,
|
|
8828
8731
|
animation = _ref.animation,
|
|
@@ -8831,11 +8734,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8831
8734
|
_ref$as = _ref.as,
|
|
8832
8735
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8833
8736
|
className = _ref.className,
|
|
8834
|
-
props = _objectWithoutPropertiesLoose
|
|
8737
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8835
8738
|
|
|
8836
8739
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8837
8740
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8838
|
-
return /*#__PURE__*/
|
|
8741
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8839
8742
|
ref: ref
|
|
8840
8743
|
}, props, {
|
|
8841
8744
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8874,15 +8777,6 @@ var propTypes$a = {
|
|
|
8874
8777
|
/** Disables both Buttons */
|
|
8875
8778
|
disabled: PropTypes.bool,
|
|
8876
8779
|
|
|
8877
|
-
/**
|
|
8878
|
-
* Aligns the dropdown menu responsively.
|
|
8879
|
-
*
|
|
8880
|
-
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8881
|
-
*
|
|
8882
|
-
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8883
|
-
*/
|
|
8884
|
-
menuAlign: alignPropType,
|
|
8885
|
-
|
|
8886
8780
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8887
8781
|
menuRole: PropTypes.string,
|
|
8888
8782
|
|
|
@@ -8892,7 +8786,7 @@ var propTypes$a = {
|
|
|
8892
8786
|
/**
|
|
8893
8787
|
* Which event when fired outside the component will cause it to be closed.
|
|
8894
8788
|
*
|
|
8895
|
-
* _see [DropdownMenu](#
|
|
8789
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
8896
8790
|
*/
|
|
8897
8791
|
rootCloseEvent: PropTypes.string,
|
|
8898
8792
|
|
|
@@ -8909,7 +8803,7 @@ var defaultProps$B = {
|
|
|
8909
8803
|
toggleLabel: 'Toggle dropdown',
|
|
8910
8804
|
type: 'button'
|
|
8911
8805
|
};
|
|
8912
|
-
var SplitButton =
|
|
8806
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8913
8807
|
var id = _ref.id,
|
|
8914
8808
|
bsPrefix = _ref.bsPrefix,
|
|
8915
8809
|
size = _ref.size,
|
|
@@ -8921,17 +8815,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8921
8815
|
onClick = _ref.onClick,
|
|
8922
8816
|
href = _ref.href,
|
|
8923
8817
|
target = _ref.target,
|
|
8924
|
-
menuAlign = _ref.menuAlign,
|
|
8925
8818
|
menuRole = _ref.menuRole,
|
|
8926
8819
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8927
8820
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8928
|
-
props = _objectWithoutPropertiesLoose
|
|
8821
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8929
8822
|
|
|
8930
|
-
return /*#__PURE__*/
|
|
8823
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8931
8824
|
ref: ref
|
|
8932
8825
|
}, props, {
|
|
8933
8826
|
as: ButtonGroup
|
|
8934
|
-
}), /*#__PURE__*/
|
|
8827
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8935
8828
|
size: size,
|
|
8936
8829
|
variant: variant,
|
|
8937
8830
|
disabled: props.disabled,
|
|
@@ -8940,17 +8833,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8940
8833
|
target: target,
|
|
8941
8834
|
onClick: onClick,
|
|
8942
8835
|
type: type
|
|
8943
|
-
}, title), /*#__PURE__*/
|
|
8836
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8944
8837
|
split: true,
|
|
8945
8838
|
id: id ? id.toString() : undefined,
|
|
8946
8839
|
size: size,
|
|
8947
8840
|
variant: variant,
|
|
8948
8841
|
disabled: props.disabled,
|
|
8949
8842
|
childBsPrefix: bsPrefix
|
|
8950
|
-
}, /*#__PURE__*/
|
|
8843
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8951
8844
|
className: "sr-only"
|
|
8952
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8953
|
-
align: menuAlign,
|
|
8845
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8954
8846
|
role: menuRole,
|
|
8955
8847
|
renderOnMount: renderMenuOnMount,
|
|
8956
8848
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8993,22 +8885,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8993
8885
|
}
|
|
8994
8886
|
};
|
|
8995
8887
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8996
|
-
return /*#__PURE__*/
|
|
8888
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8997
8889
|
value: tabContext
|
|
8998
|
-
}, /*#__PURE__*/
|
|
8890
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8999
8891
|
value: onSelect || null
|
|
9000
8892
|
}, children));
|
|
9001
8893
|
};
|
|
9002
8894
|
|
|
9003
|
-
var TabContent =
|
|
8895
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9004
8896
|
var bsPrefix = _ref.bsPrefix,
|
|
9005
8897
|
_ref$as = _ref.as,
|
|
9006
8898
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9007
8899
|
className = _ref.className,
|
|
9008
|
-
props = _objectWithoutPropertiesLoose
|
|
8900
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9009
8901
|
|
|
9010
8902
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9011
|
-
return /*#__PURE__*/
|
|
8903
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9012
8904
|
ref: ref
|
|
9013
8905
|
}, props, {
|
|
9014
8906
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9022,11 +8914,11 @@ function useTabContext(props) {
|
|
|
9022
8914
|
var activeKey = context.activeKey,
|
|
9023
8915
|
getControlledId = context.getControlledId,
|
|
9024
8916
|
getControllerId = context.getControllerId,
|
|
9025
|
-
rest = _objectWithoutPropertiesLoose
|
|
8917
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9026
8918
|
|
|
9027
8919
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9028
8920
|
var key = makeEventKey(props.eventKey);
|
|
9029
|
-
return _extends
|
|
8921
|
+
return _extends({}, props, {
|
|
9030
8922
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9031
8923
|
id: getControlledId(props.eventKey),
|
|
9032
8924
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9036,7 +8928,7 @@ function useTabContext(props) {
|
|
|
9036
8928
|
});
|
|
9037
8929
|
}
|
|
9038
8930
|
|
|
9039
|
-
var TabPane =
|
|
8931
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9040
8932
|
var _useTabContext = useTabContext(props),
|
|
9041
8933
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9042
8934
|
className = _useTabContext.className,
|
|
@@ -9053,11 +8945,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9053
8945
|
_useTabContext$as = _useTabContext.as,
|
|
9054
8946
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9055
8947
|
_ = _useTabContext.eventKey,
|
|
9056
|
-
rest = _objectWithoutPropertiesLoose
|
|
8948
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9057
8949
|
|
|
9058
8950
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9059
8951
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9060
|
-
var pane = /*#__PURE__*/
|
|
8952
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9061
8953
|
ref: ref,
|
|
9062
8954
|
role: "tabpanel",
|
|
9063
8955
|
"aria-hidden": !active,
|
|
@@ -9065,7 +8957,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9065
8957
|
active: active
|
|
9066
8958
|
})
|
|
9067
8959
|
}));
|
|
9068
|
-
if (Transition) pane = /*#__PURE__*/
|
|
8960
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9069
8961
|
in: active,
|
|
9070
8962
|
onEnter: onEnter,
|
|
9071
8963
|
onEntering: onEntering,
|
|
@@ -9078,9 +8970,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9078
8970
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9079
8971
|
// conflict with the top level one.
|
|
9080
8972
|
|
|
9081
|
-
return /*#__PURE__*/
|
|
8973
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9082
8974
|
value: null
|
|
9083
|
-
}, /*#__PURE__*/
|
|
8975
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9084
8976
|
value: null
|
|
9085
8977
|
}, pane));
|
|
9086
8978
|
});
|
|
@@ -9101,13 +8993,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9101
8993
|
};
|
|
9102
8994
|
|
|
9103
8995
|
return Tab;
|
|
9104
|
-
}(
|
|
8996
|
+
}(React.Component);
|
|
9105
8997
|
|
|
9106
8998
|
Tab.Container = TabContainer;
|
|
9107
8999
|
Tab.Content = TabContent;
|
|
9108
9000
|
Tab.Pane = TabPane;
|
|
9109
9001
|
|
|
9110
|
-
var Table =
|
|
9002
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9111
9003
|
var bsPrefix = _ref.bsPrefix,
|
|
9112
9004
|
className = _ref.className,
|
|
9113
9005
|
striped = _ref.striped,
|
|
@@ -9117,11 +9009,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9117
9009
|
size = _ref.size,
|
|
9118
9010
|
variant = _ref.variant,
|
|
9119
9011
|
responsive = _ref.responsive,
|
|
9120
|
-
props = _objectWithoutPropertiesLoose
|
|
9012
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9121
9013
|
|
|
9122
9014
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9123
9015
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9124
|
-
var table = /*#__PURE__*/
|
|
9016
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9125
9017
|
className: classes,
|
|
9126
9018
|
ref: ref
|
|
9127
9019
|
}));
|
|
@@ -9133,7 +9025,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9133
9025
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9134
9026
|
}
|
|
9135
9027
|
|
|
9136
|
-
return /*#__PURE__*/
|
|
9028
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9137
9029
|
className: responsiveClass
|
|
9138
9030
|
}, table);
|
|
9139
9031
|
}
|
|
@@ -9141,7 +9033,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9141
9033
|
return table;
|
|
9142
9034
|
});
|
|
9143
9035
|
|
|
9144
|
-
var ToastContext =
|
|
9036
|
+
var ToastContext = React.createContext({
|
|
9145
9037
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9146
9038
|
onClose: function onClose() {}
|
|
9147
9039
|
});
|
|
@@ -9150,13 +9042,13 @@ var defaultProps$C = {
|
|
|
9150
9042
|
closeLabel: 'Close',
|
|
9151
9043
|
closeButton: true
|
|
9152
9044
|
};
|
|
9153
|
-
var ToastHeader =
|
|
9045
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9154
9046
|
var bsPrefix = _ref.bsPrefix,
|
|
9155
9047
|
closeLabel = _ref.closeLabel,
|
|
9156
9048
|
closeButton = _ref.closeButton,
|
|
9157
9049
|
className = _ref.className,
|
|
9158
9050
|
children = _ref.children,
|
|
9159
|
-
props = _objectWithoutPropertiesLoose
|
|
9051
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9160
9052
|
|
|
9161
9053
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9162
9054
|
var context = useContext(ToastContext);
|
|
@@ -9165,11 +9057,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9165
9057
|
context.onClose(e);
|
|
9166
9058
|
}
|
|
9167
9059
|
});
|
|
9168
|
-
return /*#__PURE__*/
|
|
9060
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9169
9061
|
ref: ref
|
|
9170
9062
|
}, props, {
|
|
9171
9063
|
className: classnames(bsPrefix, className)
|
|
9172
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9064
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9173
9065
|
label: closeLabel,
|
|
9174
9066
|
onClick: handleClick,
|
|
9175
9067
|
className: "ml-2 mb-1",
|
|
@@ -9181,7 +9073,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9181
9073
|
|
|
9182
9074
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9183
9075
|
|
|
9184
|
-
var Toast =
|
|
9076
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9185
9077
|
var bsPrefix = _ref.bsPrefix,
|
|
9186
9078
|
className = _ref.className,
|
|
9187
9079
|
children = _ref.children,
|
|
@@ -9196,7 +9088,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9196
9088
|
_ref$autohide = _ref.autohide,
|
|
9197
9089
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9198
9090
|
onClose = _ref.onClose,
|
|
9199
|
-
props = _objectWithoutPropertiesLoose
|
|
9091
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9200
9092
|
|
|
9201
9093
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9202
9094
|
// timer in case these values change.
|
|
@@ -9224,16 +9116,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9224
9116
|
};
|
|
9225
9117
|
}, [onClose]);
|
|
9226
9118
|
var hasAnimation = !!(Transition && animation);
|
|
9227
|
-
var toast = /*#__PURE__*/
|
|
9119
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9228
9120
|
ref: ref,
|
|
9229
9121
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9230
9122
|
role: "alert",
|
|
9231
9123
|
"aria-live": "assertive",
|
|
9232
9124
|
"aria-atomic": "true"
|
|
9233
9125
|
}), children);
|
|
9234
|
-
return /*#__PURE__*/
|
|
9126
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9235
9127
|
value: toastContext
|
|
9236
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9128
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9237
9129
|
in: show,
|
|
9238
9130
|
unmountOnExit: true
|
|
9239
9131
|
}, toast) : toast);
|
|
@@ -9248,7 +9140,7 @@ var noop$5 = function noop() {
|
|
|
9248
9140
|
return undefined;
|
|
9249
9141
|
};
|
|
9250
9142
|
|
|
9251
|
-
var ToggleButton =
|
|
9143
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9252
9144
|
var children = _ref.children,
|
|
9253
9145
|
name = _ref.name,
|
|
9254
9146
|
className = _ref.className,
|
|
@@ -9258,7 +9150,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9258
9150
|
value = _ref.value,
|
|
9259
9151
|
disabled = _ref.disabled,
|
|
9260
9152
|
inputRef = _ref.inputRef,
|
|
9261
|
-
props = _objectWithoutPropertiesLoose
|
|
9153
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9262
9154
|
|
|
9263
9155
|
var _useState = useState(false),
|
|
9264
9156
|
focused = _useState[0],
|
|
@@ -9270,13 +9162,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9270
9162
|
var handleBlur = useCallback(function (e) {
|
|
9271
9163
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9272
9164
|
}, []);
|
|
9273
|
-
return /*#__PURE__*/
|
|
9165
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9274
9166
|
ref: ref,
|
|
9275
9167
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9276
9168
|
type: undefined,
|
|
9277
9169
|
active: !!checked,
|
|
9278
9170
|
as: "label"
|
|
9279
|
-
}), /*#__PURE__*/
|
|
9171
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9280
9172
|
name: name,
|
|
9281
9173
|
type: type,
|
|
9282
9174
|
value: value,
|
|
@@ -9292,10 +9184,9 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9292
9184
|
ToggleButton.displayName = 'ToggleButton';
|
|
9293
9185
|
|
|
9294
9186
|
var defaultProps$D = {
|
|
9295
|
-
type: 'radio'
|
|
9296
|
-
vertical: false
|
|
9187
|
+
type: 'radio'
|
|
9297
9188
|
};
|
|
9298
|
-
var ToggleButtonGroup =
|
|
9189
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9299
9190
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9300
9191
|
value: 'onChange'
|
|
9301
9192
|
}),
|
|
@@ -9304,7 +9195,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9304
9195
|
name = _useUncontrolled.name,
|
|
9305
9196
|
value = _useUncontrolled.value,
|
|
9306
9197
|
onChange = _useUncontrolled.onChange,
|
|
9307
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9198
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9308
9199
|
|
|
9309
9200
|
var getValues = function getValues() {
|
|
9310
9201
|
return value == null ? [] : [].concat(value);
|
|
@@ -9333,7 +9224,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9333
9224
|
};
|
|
9334
9225
|
|
|
9335
9226
|
!(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;
|
|
9336
|
-
return /*#__PURE__*/
|
|
9227
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9337
9228
|
ref: ref,
|
|
9338
9229
|
toggle: true
|
|
9339
9230
|
}), map(children, function (child) {
|
|
@@ -9346,7 +9237,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9346
9237
|
return handleToggle(childVal, e);
|
|
9347
9238
|
};
|
|
9348
9239
|
|
|
9349
|
-
return
|
|
9240
|
+
return React.cloneElement(child, {
|
|
9350
9241
|
type: type,
|
|
9351
9242
|
name: child.name || name,
|
|
9352
9243
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9360,7 +9251,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9360
9251
|
var defaultProps$E = {
|
|
9361
9252
|
placement: 'right'
|
|
9362
9253
|
};
|
|
9363
|
-
var Tooltip =
|
|
9254
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9364
9255
|
var bsPrefix = _ref.bsPrefix,
|
|
9365
9256
|
placement = _ref.placement,
|
|
9366
9257
|
className = _ref.className,
|
|
@@ -9369,29 +9260,29 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9369
9260
|
arrowProps = _ref.arrowProps,
|
|
9370
9261
|
_ = _ref.popper,
|
|
9371
9262
|
_2 = _ref.show,
|
|
9372
|
-
props = _objectWithoutPropertiesLoose
|
|
9263
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9373
9264
|
|
|
9374
9265
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9375
9266
|
|
|
9376
9267
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9377
9268
|
primaryPlacement = _ref2[0];
|
|
9378
9269
|
|
|
9379
|
-
return /*#__PURE__*/
|
|
9270
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9380
9271
|
ref: ref,
|
|
9381
9272
|
style: style,
|
|
9382
9273
|
role: "tooltip",
|
|
9383
9274
|
"x-placement": primaryPlacement,
|
|
9384
9275
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9385
|
-
}, props), /*#__PURE__*/
|
|
9276
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9386
9277
|
className: "arrow"
|
|
9387
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9278
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9388
9279
|
className: bsPrefix + "-inner"
|
|
9389
9280
|
}, children));
|
|
9390
9281
|
});
|
|
9391
9282
|
Tooltip.defaultProps = defaultProps$E;
|
|
9392
9283
|
Tooltip.displayName = 'Tooltip';
|
|
9393
9284
|
|
|
9394
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9285
|
+
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";
|
|
9395
9286
|
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" };
|
|
9396
9287
|
styleInject(css);
|
|
9397
9288
|
|
|
@@ -9402,54 +9293,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9402
9293
|
client = props.client;
|
|
9403
9294
|
|
|
9404
9295
|
|
|
9405
|
-
return
|
|
9296
|
+
return React.createElement(
|
|
9406
9297
|
'div',
|
|
9407
9298
|
{ className: styles.article },
|
|
9408
|
-
|
|
9299
|
+
React.createElement(
|
|
9409
9300
|
'a',
|
|
9410
9301
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9411
|
-
|
|
9302
|
+
React.createElement(
|
|
9412
9303
|
'div',
|
|
9413
9304
|
{ className: styles.thumb },
|
|
9414
|
-
|
|
9305
|
+
React.createElement(
|
|
9415
9306
|
'figure',
|
|
9416
9307
|
null,
|
|
9417
|
-
|
|
9308
|
+
React.createElement(
|
|
9418
9309
|
LazyLoad,
|
|
9419
9310
|
null,
|
|
9420
|
-
|
|
9311
|
+
React.createElement('img', {
|
|
9421
9312
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9422
9313
|
})
|
|
9423
9314
|
)
|
|
9424
9315
|
)
|
|
9425
9316
|
),
|
|
9426
|
-
|
|
9317
|
+
React.createElement(
|
|
9427
9318
|
'div',
|
|
9428
9319
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9429
|
-
|
|
9320
|
+
React.createElement(
|
|
9430
9321
|
'div',
|
|
9431
9322
|
{ className: styles.name },
|
|
9432
9323
|
data.name
|
|
9433
9324
|
),
|
|
9434
|
-
data.published &&
|
|
9325
|
+
data.published && React.createElement(
|
|
9435
9326
|
'p',
|
|
9436
9327
|
{ className: styles.published },
|
|
9437
9328
|
moment(data.published).format('MMMM Do YYYY')
|
|
9438
9329
|
),
|
|
9439
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9330
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9440
9331
|
'p',
|
|
9441
9332
|
{ className: styles.author },
|
|
9442
9333
|
'By ',
|
|
9443
|
-
|
|
9334
|
+
React.createElement(
|
|
9444
9335
|
'span',
|
|
9445
9336
|
null,
|
|
9446
9337
|
data.authorMapping.displayName
|
|
9447
9338
|
)
|
|
9448
9339
|
),
|
|
9449
|
-
data.description &&
|
|
9340
|
+
data.description && React.createElement(
|
|
9450
9341
|
'div',
|
|
9451
9342
|
{ className: 'media-series-desc' },
|
|
9452
|
-
|
|
9343
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9453
9344
|
)
|
|
9454
9345
|
)
|
|
9455
9346
|
)
|
|
@@ -9478,11 +9369,11 @@ var Filter = function Filter(_ref) {
|
|
|
9478
9369
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9479
9370
|
grandChildData = _useState6[0],
|
|
9480
9371
|
setGrandChildData = _useState6[1];
|
|
9481
|
-
/*
|
|
9482
|
-
{parent: showAll,
|
|
9483
|
-
chidlren: show selected from parent,
|
|
9484
|
-
grandchildren: show selected from children
|
|
9485
|
-
}
|
|
9372
|
+
/*
|
|
9373
|
+
{parent: showAll,
|
|
9374
|
+
chidlren: show selected from parent,
|
|
9375
|
+
grandchildren: show selected from children
|
|
9376
|
+
}
|
|
9486
9377
|
*/
|
|
9487
9378
|
|
|
9488
9379
|
|
|
@@ -9497,7 +9388,7 @@ var Filter = function Filter(_ref) {
|
|
|
9497
9388
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9498
9389
|
if (type === 'parent') {
|
|
9499
9390
|
setParentData(function (prevState) {
|
|
9500
|
-
return _extends$
|
|
9391
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9501
9392
|
});
|
|
9502
9393
|
if (group && group.children && group.children.length > 0) {
|
|
9503
9394
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9511,7 +9402,7 @@ var Filter = function Filter(_ref) {
|
|
|
9511
9402
|
}
|
|
9512
9403
|
if (type === 'child') {
|
|
9513
9404
|
setChildData(function (prevState) {
|
|
9514
|
-
return _extends$
|
|
9405
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9515
9406
|
});
|
|
9516
9407
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9517
9408
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9530,7 +9421,7 @@ var Filter = function Filter(_ref) {
|
|
|
9530
9421
|
}
|
|
9531
9422
|
if (type === 'grandchild') {
|
|
9532
9423
|
setGrandChildData(function (prevState) {
|
|
9533
|
-
return _extends$
|
|
9424
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9534
9425
|
});
|
|
9535
9426
|
//handle filter
|
|
9536
9427
|
if (!group._id) {
|
|
@@ -9546,13 +9437,13 @@ var Filter = function Filter(_ref) {
|
|
|
9546
9437
|
}
|
|
9547
9438
|
};
|
|
9548
9439
|
|
|
9549
|
-
return
|
|
9440
|
+
return React.createElement(
|
|
9550
9441
|
'div',
|
|
9551
9442
|
{ className: 'flex-container' },
|
|
9552
|
-
parentData &&
|
|
9443
|
+
parentData && React.createElement(
|
|
9553
9444
|
DropdownButton,
|
|
9554
9445
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9555
|
-
|
|
9446
|
+
React.createElement(
|
|
9556
9447
|
Dropdown$1.Item,
|
|
9557
9448
|
{ onSelect: function onSelect() {
|
|
9558
9449
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9561,7 +9452,7 @@ var Filter = function Filter(_ref) {
|
|
|
9561
9452
|
),
|
|
9562
9453
|
parentData.data.map(function (docGroup) {
|
|
9563
9454
|
if (!docGroup._id) return null;
|
|
9564
|
-
return
|
|
9455
|
+
return React.createElement(
|
|
9565
9456
|
Dropdown$1.Item,
|
|
9566
9457
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9567
9458
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9570,10 +9461,10 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9461
|
);
|
|
9571
9462
|
})
|
|
9572
9463
|
),
|
|
9573
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9464
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9574
9465
|
DropdownButton,
|
|
9575
9466
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9576
|
-
|
|
9467
|
+
React.createElement(
|
|
9577
9468
|
Dropdown$1.Item,
|
|
9578
9469
|
{ onSelect: function onSelect() {
|
|
9579
9470
|
return handleFilterSelect({}, 'child');
|
|
@@ -9582,7 +9473,7 @@ var Filter = function Filter(_ref) {
|
|
|
9582
9473
|
),
|
|
9583
9474
|
childData.data.map(function (docGroup) {
|
|
9584
9475
|
if (!docGroup._id) return null;
|
|
9585
|
-
return
|
|
9476
|
+
return React.createElement(
|
|
9586
9477
|
Dropdown$1.Item,
|
|
9587
9478
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9588
9479
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9591,10 +9482,10 @@ var Filter = function Filter(_ref) {
|
|
|
9591
9482
|
);
|
|
9592
9483
|
})
|
|
9593
9484
|
),
|
|
9594
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9485
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9595
9486
|
DropdownButton,
|
|
9596
9487
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9597
|
-
|
|
9488
|
+
React.createElement(
|
|
9598
9489
|
Dropdown$1.Item,
|
|
9599
9490
|
{ onSelect: function onSelect() {
|
|
9600
9491
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9603,7 +9494,7 @@ var Filter = function Filter(_ref) {
|
|
|
9603
9494
|
),
|
|
9604
9495
|
grandChildData.data.map(function (docGroup) {
|
|
9605
9496
|
if (!docGroup._id) return null;
|
|
9606
|
-
return
|
|
9497
|
+
return React.createElement(
|
|
9607
9498
|
Dropdown$1.Item,
|
|
9608
9499
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9609
9500
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9612,7 +9503,7 @@ var Filter = function Filter(_ref) {
|
|
|
9612
9503
|
);
|
|
9613
9504
|
})
|
|
9614
9505
|
),
|
|
9615
|
-
|
|
9506
|
+
React.createElement(
|
|
9616
9507
|
'style',
|
|
9617
9508
|
{ jsx: 'true' },
|
|
9618
9509
|
'\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 '
|
|
@@ -9660,7 +9551,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9660
9551
|
while (1) {
|
|
9661
9552
|
switch (_context.prev = _context.next) {
|
|
9662
9553
|
case 0:
|
|
9663
|
-
newParams = _extends$
|
|
9554
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9664
9555
|
filterQuery = void 0;
|
|
9665
9556
|
|
|
9666
9557
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9702,27 +9593,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9702
9593
|
}();
|
|
9703
9594
|
|
|
9704
9595
|
if (props.statusCode === 404) {
|
|
9705
|
-
return
|
|
9596
|
+
return React.createElement(
|
|
9706
9597
|
'div',
|
|
9707
9598
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9708
|
-
|
|
9599
|
+
React.createElement(
|
|
9709
9600
|
'h3',
|
|
9710
9601
|
null,
|
|
9711
9602
|
'404: Resource not found'
|
|
9712
9603
|
),
|
|
9713
|
-
|
|
9604
|
+
React.createElement(
|
|
9714
9605
|
'p',
|
|
9715
9606
|
null,
|
|
9716
9607
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9717
9608
|
),
|
|
9718
|
-
|
|
9609
|
+
React.createElement(
|
|
9719
9610
|
'p',
|
|
9720
9611
|
null,
|
|
9721
9612
|
'Click here to',
|
|
9722
|
-
|
|
9613
|
+
React.createElement(
|
|
9723
9614
|
Link,
|
|
9724
9615
|
{ href: '/' },
|
|
9725
|
-
|
|
9616
|
+
React.createElement(
|
|
9726
9617
|
'a',
|
|
9727
9618
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9728
9619
|
' return to homepage.'
|
|
@@ -9732,17 +9623,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9732
9623
|
);
|
|
9733
9624
|
}
|
|
9734
9625
|
|
|
9735
|
-
return
|
|
9626
|
+
return React.createElement(
|
|
9736
9627
|
'div',
|
|
9737
9628
|
{ className: 'mb-5' },
|
|
9738
|
-
props.docGroup && props.docGroup.description &&
|
|
9739
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9629
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9630
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9740
9631
|
'div',
|
|
9741
9632
|
{ className: '' },
|
|
9742
|
-
|
|
9743
|
-
|
|
9633
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9634
|
+
React.createElement('hr', null)
|
|
9744
9635
|
),
|
|
9745
|
-
seriesData &&
|
|
9636
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9746
9637
|
deck: MediaSeriesCard,
|
|
9747
9638
|
variant: 'left',
|
|
9748
9639
|
defaultImage: '/placeholder.jpg',
|