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