@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,163 +1,77 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
require('./
|
|
5
|
-
require('./es6.string.iterator-cc0bbaa4.js');
|
|
6
|
+
require('./core.get-iterator-method-f3c44602.js');
|
|
6
7
|
require('./_library-dd23b178.js');
|
|
7
|
-
require('./_iter-detect-
|
|
8
|
-
require('./toConsumableArray-
|
|
9
|
-
require('./core.get-iterator-method-f62321d4.js');
|
|
8
|
+
require('./_iter-detect-05795553.js');
|
|
9
|
+
require('./toConsumableArray-c9b8a0d0.js');
|
|
10
10
|
require('./_object-pie-68c5bcbc.js');
|
|
11
|
-
var _extends$1 = require('./extends-
|
|
12
|
-
require('./_object-sap-
|
|
13
|
-
require('./inherits-
|
|
14
|
-
require('./define-property-
|
|
15
|
-
require('./web.dom.iterable-
|
|
16
|
-
var _typeof = require('./typeof-
|
|
17
|
-
require('./_is-array-
|
|
11
|
+
var _extends$1 = require('./extends-eed4f016.js');
|
|
12
|
+
require('./_object-sap-171b9ea5.js');
|
|
13
|
+
require('./inherits-12d44cca.js');
|
|
14
|
+
require('./define-property-21887c62.js');
|
|
15
|
+
require('./web.dom.iterable-e34bf324.js');
|
|
16
|
+
var _typeof = require('./typeof-5f52cf64.js');
|
|
17
|
+
require('./_is-array-aa52fa1e.js');
|
|
18
18
|
var React = require('react');
|
|
19
|
-
|
|
19
|
+
var React__default = _interopDefault(React);
|
|
20
|
+
require('./events-1b438fe7.js');
|
|
21
|
+
require('./index-98e01cb9.js');
|
|
20
22
|
var PropTypes = require('prop-types');
|
|
23
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
21
24
|
require('react-bootstrap/Container');
|
|
22
25
|
require('react-bootstrap/Row');
|
|
23
26
|
require('react-bootstrap/Col');
|
|
24
27
|
require('react-bootstrap/Card');
|
|
25
|
-
var moment = require('./moment-
|
|
28
|
+
var moment = require('./moment-575fe24c.js');
|
|
26
29
|
require('next/router');
|
|
27
30
|
require('./isSymbol-04666465.js');
|
|
28
31
|
require('./debounce-529c8d06.js');
|
|
29
32
|
require('./toNumber-36d1e7e5.js');
|
|
30
|
-
require('./index.es-
|
|
31
|
-
var ReactDOM = require('react-dom');
|
|
32
|
-
require('./visibility-sensor-
|
|
33
|
-
require('./
|
|
33
|
+
require('./index.es-9110add6.js');
|
|
34
|
+
var ReactDOM = _interopDefault(require('react-dom'));
|
|
35
|
+
require('./visibility-sensor-ad5e3116.js');
|
|
36
|
+
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
37
|
+
require('./index-be0c82be.js');
|
|
34
38
|
var urlFor = require('./urlFor.js');
|
|
35
|
-
var index = require('./index-
|
|
36
|
-
require('./main-
|
|
39
|
+
var index$2 = require('./index-96b3db50.js');
|
|
40
|
+
require('./main-02daeefe.js');
|
|
37
41
|
require('./entities-310b46ee.js');
|
|
38
|
-
|
|
39
|
-
require('./
|
|
40
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
42
|
+
require('./stringify-bbc68047.js');
|
|
43
|
+
var asyncToGenerator = require('./asyncToGenerator-df19209d.js');
|
|
41
44
|
require('./Segment.js');
|
|
42
45
|
require('./Beam.js');
|
|
43
46
|
require('./AdSlot.js');
|
|
44
|
-
require('./ADInfeed-
|
|
45
|
-
require('./lodash-
|
|
46
|
-
require('./ADlgInfeed-
|
|
47
|
+
require('./ADInfeed-7c09edba.js');
|
|
48
|
+
require('./lodash-fc2922d0.js');
|
|
49
|
+
require('./ADlgInfeed-2e7effc7.js');
|
|
47
50
|
require('react-bootstrap/Button');
|
|
48
|
-
var BlockContent = require('./BlockContent-
|
|
51
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
49
52
|
require('./index-187c967e.js');
|
|
50
53
|
require('./smoothscroll-5054361f.js');
|
|
51
54
|
require('./GroupDeck.js');
|
|
52
55
|
require('react-bootstrap');
|
|
53
56
|
require('./iconBase-68959171.js');
|
|
54
|
-
require('./index.esm-
|
|
55
|
-
var getSerializers = require('./index-
|
|
57
|
+
require('./index.esm-90433435.js');
|
|
58
|
+
var getSerializers = require('./index-cdcc0b5e.js');
|
|
56
59
|
require('./util-f2c1b65b.js');
|
|
57
|
-
require('./brightcove-react-player-loader.es-
|
|
60
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
58
61
|
require('next/head');
|
|
59
62
|
require('react-share');
|
|
60
63
|
require('./SocialShare.js');
|
|
61
|
-
require('./_object-to-array-
|
|
64
|
+
require('./_object-to-array-9bac8737.js');
|
|
62
65
|
require('react-bootstrap/Pagination');
|
|
63
66
|
require('react-bootstrap/Figure');
|
|
64
67
|
require('react-bootstrap/OverlayTrigger');
|
|
65
68
|
require('react-bootstrap/Tooltip');
|
|
66
69
|
require('react-bootstrap/Popover');
|
|
67
|
-
require('react-script-tag');
|
|
68
70
|
var MasterDeck = require('./MasterDeck.js');
|
|
69
|
-
var defineProperty = require('./defineProperty-
|
|
71
|
+
var defineProperty$1$1 = require('./defineProperty-77a37684.js');
|
|
72
|
+
var index$5 = require('./index-e2e62963.js');
|
|
70
73
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
71
|
-
var Link = require('next/link');
|
|
72
|
-
|
|
73
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
74
|
-
|
|
75
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
76
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
77
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
78
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
79
|
-
|
|
80
|
-
function _extends() {
|
|
81
|
-
_extends = Object.assign || function (target) {
|
|
82
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
83
|
-
var source = arguments[i];
|
|
84
|
-
|
|
85
|
-
for (var key in source) {
|
|
86
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
87
|
-
target[key] = source[key];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return target;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
return _extends.apply(this, arguments);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
99
|
-
if (source == null) return {};
|
|
100
|
-
var target = {};
|
|
101
|
-
var sourceKeys = Object.keys(source);
|
|
102
|
-
var key, i;
|
|
103
|
-
|
|
104
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
105
|
-
key = sourceKeys[i];
|
|
106
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
107
|
-
target[key] = source[key];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return target;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
114
|
-
/*!
|
|
115
|
-
Copyright (c) 2017 Jed Watson.
|
|
116
|
-
Licensed under the MIT License (MIT), see
|
|
117
|
-
http://jedwatson.github.io/classnames
|
|
118
|
-
*/
|
|
119
|
-
/* global define */
|
|
120
|
-
|
|
121
|
-
(function () {
|
|
122
|
-
|
|
123
|
-
var hasOwn = {}.hasOwnProperty;
|
|
124
|
-
|
|
125
|
-
function classNames () {
|
|
126
|
-
var classes = [];
|
|
127
|
-
|
|
128
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
129
|
-
var arg = arguments[i];
|
|
130
|
-
if (!arg) continue;
|
|
131
|
-
|
|
132
|
-
var argType = typeof arg;
|
|
133
|
-
|
|
134
|
-
if (argType === 'string' || argType === 'number') {
|
|
135
|
-
classes.push(arg);
|
|
136
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
137
|
-
var inner = classNames.apply(null, arg);
|
|
138
|
-
if (inner) {
|
|
139
|
-
classes.push(inner);
|
|
140
|
-
}
|
|
141
|
-
} else if (argType === 'object') {
|
|
142
|
-
for (var key in arg) {
|
|
143
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
144
|
-
classes.push(key);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return classes.join(' ');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if ( module.exports) {
|
|
154
|
-
classNames.default = classNames;
|
|
155
|
-
module.exports = classNames;
|
|
156
|
-
} else {
|
|
157
|
-
window.classNames = classNames;
|
|
158
|
-
}
|
|
159
|
-
}());
|
|
160
|
-
});
|
|
74
|
+
var Link = _interopDefault(require('next/link'));
|
|
161
75
|
|
|
162
76
|
/**
|
|
163
77
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -252,7 +166,7 @@ function useUncontrolled(props, config) {
|
|
|
252
166
|
var _ref = result,
|
|
253
167
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
254
168
|
propsValue = _ref[fieldName],
|
|
255
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
169
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
256
170
|
|
|
257
171
|
var handlerName = config[fieldName];
|
|
258
172
|
|
|
@@ -260,7 +174,7 @@ function useUncontrolled(props, config) {
|
|
|
260
174
|
value = _useUncontrolledProp[0],
|
|
261
175
|
handler = _useUncontrolledProp[1];
|
|
262
176
|
|
|
263
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
177
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
264
178
|
}, props);
|
|
265
179
|
}
|
|
266
180
|
|
|
@@ -270,7 +184,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
270
184
|
subClass.__proto__ = superClass;
|
|
271
185
|
}
|
|
272
186
|
|
|
273
|
-
var ThemeContext = React__default
|
|
187
|
+
var ThemeContext = React__default.createContext({});
|
|
274
188
|
var Consumer = ThemeContext.Consumer,
|
|
275
189
|
Provider = ThemeContext.Provider;
|
|
276
190
|
|
|
@@ -279,7 +193,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
279
193
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
280
194
|
}
|
|
281
195
|
|
|
282
|
-
var SelectableContext = React__default
|
|
196
|
+
var SelectableContext = React__default.createContext(null);
|
|
283
197
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
284
198
|
if (href === void 0) {
|
|
285
199
|
href = null;
|
|
@@ -289,7 +203,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
289
203
|
return href || null;
|
|
290
204
|
};
|
|
291
205
|
|
|
292
|
-
var context = React__default
|
|
206
|
+
var context = React__default.createContext(null);
|
|
293
207
|
context.displayName = 'AccordionContext';
|
|
294
208
|
|
|
295
209
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -305,13 +219,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
305
219
|
if (onClick) onClick(e);
|
|
306
220
|
};
|
|
307
221
|
}
|
|
308
|
-
var AccordionToggle = React__default
|
|
222
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
309
223
|
var _ref$as = _ref.as,
|
|
310
224
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
311
225
|
children = _ref.children,
|
|
312
226
|
eventKey = _ref.eventKey,
|
|
313
227
|
onClick = _ref.onClick,
|
|
314
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
228
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
315
229
|
|
|
316
230
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
317
231
|
|
|
@@ -319,7 +233,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
319
233
|
props.type = 'button';
|
|
320
234
|
}
|
|
321
235
|
|
|
322
|
-
return /*#__PURE__*/React__default
|
|
236
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
323
237
|
ref: ref,
|
|
324
238
|
onClick: accordionOnClick
|
|
325
239
|
}, props), children);
|
|
@@ -498,25 +412,25 @@ var config = {
|
|
|
498
412
|
disabled: false
|
|
499
413
|
};
|
|
500
414
|
|
|
501
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
502
|
-
enter: PropTypes__default
|
|
503
|
-
exit: PropTypes__default
|
|
504
|
-
appear: PropTypes__default
|
|
415
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.shape({
|
|
416
|
+
enter: PropTypes__default.number,
|
|
417
|
+
exit: PropTypes__default.number,
|
|
418
|
+
appear: PropTypes__default.number
|
|
505
419
|
}).isRequired]) : null;
|
|
506
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
507
|
-
enter: PropTypes__default
|
|
508
|
-
exit: PropTypes__default
|
|
509
|
-
active: PropTypes__default
|
|
510
|
-
}), PropTypes__default
|
|
511
|
-
enter: PropTypes__default
|
|
512
|
-
enterDone: PropTypes__default
|
|
513
|
-
enterActive: PropTypes__default
|
|
514
|
-
exit: PropTypes__default
|
|
515
|
-
exitDone: PropTypes__default
|
|
516
|
-
exitActive: PropTypes__default
|
|
420
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.shape({
|
|
421
|
+
enter: PropTypes__default.string,
|
|
422
|
+
exit: PropTypes__default.string,
|
|
423
|
+
active: PropTypes__default.string
|
|
424
|
+
}), PropTypes__default.shape({
|
|
425
|
+
enter: PropTypes__default.string,
|
|
426
|
+
enterDone: PropTypes__default.string,
|
|
427
|
+
enterActive: PropTypes__default.string,
|
|
428
|
+
exit: PropTypes__default.string,
|
|
429
|
+
exitDone: PropTypes__default.string,
|
|
430
|
+
exitActive: PropTypes__default.string
|
|
517
431
|
})]) : null;
|
|
518
432
|
|
|
519
|
-
var TransitionGroupContext = React__default
|
|
433
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
520
434
|
|
|
521
435
|
var UNMOUNTED = 'unmounted';
|
|
522
436
|
var EXITED = 'exited';
|
|
@@ -754,7 +668,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
754
668
|
var enter = this.props.enter;
|
|
755
669
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
756
670
|
|
|
757
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
671
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
758
672
|
maybeNode = _ref2[0],
|
|
759
673
|
maybeAppearing = _ref2[1];
|
|
760
674
|
|
|
@@ -792,7 +706,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
706
|
|
|
793
707
|
var exit = this.props.exit;
|
|
794
708
|
var timeouts = this.getTimeouts();
|
|
795
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
709
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
796
710
|
|
|
797
711
|
if (!exit || config.disabled) {
|
|
798
712
|
this.safeSetState({
|
|
@@ -856,7 +770,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
856
770
|
|
|
857
771
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
858
772
|
this.setNextCallback(handler);
|
|
859
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
773
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
860
774
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
861
775
|
|
|
862
776
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -901,19 +815,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
901
815
|
_onExiting = _this$props.onExiting,
|
|
902
816
|
_onExited = _this$props.onExited,
|
|
903
817
|
_nodeRef = _this$props.nodeRef,
|
|
904
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
818
|
+
childProps = index$5._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
905
819
|
|
|
906
820
|
return (
|
|
907
821
|
/*#__PURE__*/
|
|
908
822
|
// allows for nested Transitions
|
|
909
|
-
React__default
|
|
823
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
910
824
|
value: null
|
|
911
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
825
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
912
826
|
);
|
|
913
827
|
};
|
|
914
828
|
|
|
915
829
|
return Transition;
|
|
916
|
-
}(React__default
|
|
830
|
+
}(React__default.Component);
|
|
917
831
|
|
|
918
832
|
Transition.contextType = TransitionGroupContext;
|
|
919
833
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -928,8 +842,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
928
842
|
* (see
|
|
929
843
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
930
844
|
*/
|
|
931
|
-
nodeRef: PropTypes__default
|
|
932
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
845
|
+
nodeRef: PropTypes__default.shape({
|
|
846
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
933
847
|
}),
|
|
934
848
|
|
|
935
849
|
/**
|
|
@@ -946,12 +860,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
946
860
|
* </Transition>
|
|
947
861
|
* ```
|
|
948
862
|
*/
|
|
949
|
-
children: PropTypes__default
|
|
863
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
950
864
|
|
|
951
865
|
/**
|
|
952
866
|
* Show the component; triggers the enter or exit states
|
|
953
867
|
*/
|
|
954
|
-
in: PropTypes__default
|
|
868
|
+
in: PropTypes__default.bool,
|
|
955
869
|
|
|
956
870
|
/**
|
|
957
871
|
* By default the child component is mounted immediately along with
|
|
@@ -959,13 +873,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
959
873
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
960
874
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
961
875
|
*/
|
|
962
|
-
mountOnEnter: PropTypes__default
|
|
876
|
+
mountOnEnter: PropTypes__default.bool,
|
|
963
877
|
|
|
964
878
|
/**
|
|
965
879
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
966
880
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
967
881
|
*/
|
|
968
|
-
unmountOnExit: PropTypes__default
|
|
882
|
+
unmountOnExit: PropTypes__default.bool,
|
|
969
883
|
|
|
970
884
|
/**
|
|
971
885
|
* By default the child component does not perform the enter transition when
|
|
@@ -978,17 +892,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
978
892
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
979
893
|
* > differently.
|
|
980
894
|
*/
|
|
981
|
-
appear: PropTypes__default
|
|
895
|
+
appear: PropTypes__default.bool,
|
|
982
896
|
|
|
983
897
|
/**
|
|
984
898
|
* Enable or disable enter transitions.
|
|
985
899
|
*/
|
|
986
|
-
enter: PropTypes__default
|
|
900
|
+
enter: PropTypes__default.bool,
|
|
987
901
|
|
|
988
902
|
/**
|
|
989
903
|
* Enable or disable exit transitions.
|
|
990
904
|
*/
|
|
991
|
-
exit: PropTypes__default
|
|
905
|
+
exit: PropTypes__default.bool,
|
|
992
906
|
|
|
993
907
|
/**
|
|
994
908
|
* The duration of the transition, in milliseconds.
|
|
@@ -1041,7 +955,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1041
955
|
* }}
|
|
1042
956
|
* ```
|
|
1043
957
|
*/
|
|
1044
|
-
addEndListener: PropTypes__default
|
|
958
|
+
addEndListener: PropTypes__default.func,
|
|
1045
959
|
|
|
1046
960
|
/**
|
|
1047
961
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -1051,7 +965,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1051
965
|
*
|
|
1052
966
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1053
967
|
*/
|
|
1054
|
-
onEnter: PropTypes__default
|
|
968
|
+
onEnter: PropTypes__default.func,
|
|
1055
969
|
|
|
1056
970
|
/**
|
|
1057
971
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -1061,7 +975,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1061
975
|
*
|
|
1062
976
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1063
977
|
*/
|
|
1064
|
-
onEntering: PropTypes__default
|
|
978
|
+
onEntering: PropTypes__default.func,
|
|
1065
979
|
|
|
1066
980
|
/**
|
|
1067
981
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -1071,7 +985,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1071
985
|
*
|
|
1072
986
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1073
987
|
*/
|
|
1074
|
-
onEntered: PropTypes__default
|
|
988
|
+
onEntered: PropTypes__default.func,
|
|
1075
989
|
|
|
1076
990
|
/**
|
|
1077
991
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -1080,7 +994,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1080
994
|
*
|
|
1081
995
|
* @type Function(node: HtmlElement) -> void
|
|
1082
996
|
*/
|
|
1083
|
-
onExit: PropTypes__default
|
|
997
|
+
onExit: PropTypes__default.func,
|
|
1084
998
|
|
|
1085
999
|
/**
|
|
1086
1000
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1089,7 +1003,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1089
1003
|
*
|
|
1090
1004
|
* @type Function(node: HtmlElement) -> void
|
|
1091
1005
|
*/
|
|
1092
|
-
onExiting: PropTypes__default
|
|
1006
|
+
onExiting: PropTypes__default.func,
|
|
1093
1007
|
|
|
1094
1008
|
/**
|
|
1095
1009
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1098,7 +1012,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1098
1012
|
*
|
|
1099
1013
|
* @type Function(node: HtmlElement) -> void
|
|
1100
1014
|
*/
|
|
1101
|
-
onExited: PropTypes__default
|
|
1015
|
+
onExited: PropTypes__default.func
|
|
1102
1016
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1103
1017
|
|
|
1104
1018
|
function noop() {}
|
|
@@ -1189,7 +1103,7 @@ var defaultProps = {
|
|
|
1189
1103
|
appear: false,
|
|
1190
1104
|
getDimensionValue: getDefaultDimensionValue
|
|
1191
1105
|
};
|
|
1192
|
-
var Collapse = React__default
|
|
1106
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1193
1107
|
var onEnter = _ref.onEnter,
|
|
1194
1108
|
onEntering = _ref.onEntering,
|
|
1195
1109
|
onEntered = _ref.onEntered,
|
|
@@ -1201,7 +1115,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1201
1115
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1202
1116
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1203
1117
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1204
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1118
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1205
1119
|
|
|
1206
1120
|
/* Compute dimension */
|
|
1207
1121
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1236,8 +1150,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1236
1150
|
elem.style[computedDimension] = null;
|
|
1237
1151
|
}, onExiting);
|
|
1238
1152
|
}, [computedDimension, onExiting]);
|
|
1239
|
-
return /*#__PURE__*/React__default
|
|
1240
|
-
, _extends({
|
|
1153
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1154
|
+
, index$5._extends({
|
|
1241
1155
|
ref: ref,
|
|
1242
1156
|
addEndListener: transitionEnd
|
|
1243
1157
|
}, props, {
|
|
@@ -1248,8 +1162,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1248
1162
|
onExit: handleExit,
|
|
1249
1163
|
onExiting: handleExiting
|
|
1250
1164
|
}), function (state, innerProps) {
|
|
1251
|
-
return React__default
|
|
1252
|
-
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1165
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1166
|
+
className: index$5.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1253
1167
|
}));
|
|
1254
1168
|
});
|
|
1255
1169
|
}); // @ts-ignore
|
|
@@ -1257,20 +1171,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1257
1171
|
// @ts-ignore
|
|
1258
1172
|
Collapse.defaultProps = defaultProps;
|
|
1259
1173
|
|
|
1260
|
-
var AccordionCollapse = React__default
|
|
1174
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1261
1175
|
var children = _ref.children,
|
|
1262
1176
|
eventKey = _ref.eventKey,
|
|
1263
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1177
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1264
1178
|
|
|
1265
|
-
var contextEventKey = React.useContext(context);
|
|
1266
|
-
|
|
1179
|
+
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1180
|
+
// from collapsing the accordion when clicked.
|
|
1181
|
+
|
|
1182
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1183
|
+
value: null
|
|
1184
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1267
1185
|
ref: ref,
|
|
1268
1186
|
in: contextEventKey === eventKey
|
|
1269
|
-
}, props), /*#__PURE__*/React__default
|
|
1187
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1270
1188
|
});
|
|
1271
1189
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1272
1190
|
|
|
1273
|
-
var Accordion = React__default
|
|
1191
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1274
1192
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1275
1193
|
activeKey: 'onSelect'
|
|
1276
1194
|
}),
|
|
@@ -1281,14 +1199,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1281
1199
|
children = _useUncontrolled.children,
|
|
1282
1200
|
className = _useUncontrolled.className,
|
|
1283
1201
|
onSelect = _useUncontrolled.onSelect,
|
|
1284
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1202
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1285
1203
|
|
|
1286
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1287
|
-
return /*#__PURE__*/React__default
|
|
1204
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1205
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1288
1206
|
value: activeKey || null
|
|
1289
|
-
}, /*#__PURE__*/React__default
|
|
1207
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1290
1208
|
value: onSelect || null
|
|
1291
|
-
}, /*#__PURE__*/React__default
|
|
1209
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1292
1210
|
ref: ref
|
|
1293
1211
|
}, controlledProps, {
|
|
1294
1212
|
className: finalClassName
|
|
@@ -1332,23 +1250,23 @@ var defaultProps$1 = {
|
|
|
1332
1250
|
appear: false
|
|
1333
1251
|
};
|
|
1334
1252
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1335
|
-
var Fade = React__default
|
|
1253
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1336
1254
|
var className = _ref.className,
|
|
1337
1255
|
children = _ref.children,
|
|
1338
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1256
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1339
1257
|
|
|
1340
1258
|
var handleEnter = React.useCallback(function (node) {
|
|
1341
1259
|
triggerBrowserReflow(node);
|
|
1342
1260
|
if (props.onEnter) props.onEnter(node);
|
|
1343
1261
|
}, [props]);
|
|
1344
|
-
return /*#__PURE__*/React__default
|
|
1262
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1345
1263
|
ref: ref,
|
|
1346
1264
|
addEndListener: transitionEnd
|
|
1347
1265
|
}, props, {
|
|
1348
1266
|
onEnter: handleEnter
|
|
1349
1267
|
}), function (status, innerProps) {
|
|
1350
|
-
return React__default
|
|
1351
|
-
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1268
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1269
|
+
className: index$5.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1352
1270
|
}));
|
|
1353
1271
|
});
|
|
1354
1272
|
});
|
|
@@ -1356,26 +1274,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1356
1274
|
Fade.displayName = 'Fade';
|
|
1357
1275
|
|
|
1358
1276
|
var propTypes = {
|
|
1359
|
-
label: PropTypes__default
|
|
1360
|
-
onClick: PropTypes__default
|
|
1277
|
+
label: PropTypes__default.string.isRequired,
|
|
1278
|
+
onClick: PropTypes__default.func
|
|
1361
1279
|
};
|
|
1362
1280
|
var defaultProps$2 = {
|
|
1363
1281
|
label: 'Close'
|
|
1364
1282
|
};
|
|
1365
|
-
var CloseButton = React__default
|
|
1283
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1366
1284
|
var label = _ref.label,
|
|
1367
1285
|
onClick = _ref.onClick,
|
|
1368
1286
|
className = _ref.className,
|
|
1369
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1287
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1370
1288
|
|
|
1371
|
-
return /*#__PURE__*/React__default
|
|
1289
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1372
1290
|
ref: ref,
|
|
1373
1291
|
type: "button",
|
|
1374
|
-
className: classnames('close', className),
|
|
1292
|
+
className: index$5.classnames('close', className),
|
|
1375
1293
|
onClick: onClick
|
|
1376
|
-
}, props), /*#__PURE__*/React__default
|
|
1294
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1377
1295
|
"aria-hidden": "true"
|
|
1378
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1296
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1379
1297
|
className: "sr-only"
|
|
1380
1298
|
}, label));
|
|
1381
1299
|
});
|
|
@@ -1384,10 +1302,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1384
1302
|
CloseButton.defaultProps = defaultProps$2;
|
|
1385
1303
|
|
|
1386
1304
|
var divWithClassName = (function (className) {
|
|
1387
|
-
return React__default
|
|
1388
|
-
return /*#__PURE__*/React__default
|
|
1305
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1306
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1389
1307
|
ref: ref,
|
|
1390
|
-
className: classnames(p.className, className)
|
|
1308
|
+
className: index$5.classnames(p.className, className)
|
|
1391
1309
|
}));
|
|
1392
1310
|
});
|
|
1393
1311
|
});
|
|
@@ -1411,17 +1329,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1411
1329
|
Component = _ref.Component,
|
|
1412
1330
|
defaultProps = _ref.defaultProps;
|
|
1413
1331
|
|
|
1414
|
-
var BsComponent = React__default
|
|
1332
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1415
1333
|
var className = _ref2.className,
|
|
1416
1334
|
bsPrefix = _ref2.bsPrefix,
|
|
1417
1335
|
_ref2$as = _ref2.as,
|
|
1418
1336
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1419
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1337
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1420
1338
|
|
|
1421
1339
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1422
|
-
return /*#__PURE__*/React__default
|
|
1340
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1423
1341
|
ref: ref,
|
|
1424
|
-
className: classnames(className, resolvedPrefix)
|
|
1342
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1425
1343
|
}, props));
|
|
1426
1344
|
});
|
|
1427
1345
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1441,12 +1359,12 @@ function isTrivialHref(href) {
|
|
|
1441
1359
|
*/
|
|
1442
1360
|
|
|
1443
1361
|
|
|
1444
|
-
var SafeAnchor = React__default
|
|
1362
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1445
1363
|
var _ref$as = _ref.as,
|
|
1446
1364
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1447
1365
|
disabled = _ref.disabled,
|
|
1448
1366
|
onKeyDown = _ref.onKeyDown,
|
|
1449
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1367
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1450
1368
|
|
|
1451
1369
|
var handleClick = function handleClick(event) {
|
|
1452
1370
|
var href = props.href,
|
|
@@ -1485,7 +1403,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1485
1403
|
props['aria-disabled'] = true;
|
|
1486
1404
|
}
|
|
1487
1405
|
|
|
1488
|
-
return /*#__PURE__*/React__default
|
|
1406
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1489
1407
|
ref: ref
|
|
1490
1408
|
}, props, {
|
|
1491
1409
|
onClick: handleClick,
|
|
@@ -1507,7 +1425,7 @@ var defaultProps$3 = {
|
|
|
1507
1425
|
transition: Fade,
|
|
1508
1426
|
closeLabel: 'Close alert'
|
|
1509
1427
|
};
|
|
1510
|
-
var Alert = React__default
|
|
1428
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1511
1429
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1512
1430
|
show: 'onClose'
|
|
1513
1431
|
}),
|
|
@@ -1520,7 +1438,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1520
1438
|
onClose = _useUncontrolled.onClose,
|
|
1521
1439
|
dismissible = _useUncontrolled.dismissible,
|
|
1522
1440
|
transition = _useUncontrolled.transition,
|
|
1523
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1441
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1524
1442
|
|
|
1525
1443
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1526
1444
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1529,17 +1447,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1529
1447
|
}
|
|
1530
1448
|
});
|
|
1531
1449
|
var Transition = transition === true ? Fade : transition;
|
|
1532
|
-
var alert = /*#__PURE__*/React__default
|
|
1450
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1533
1451
|
role: "alert"
|
|
1534
1452
|
}, Transition ? props : undefined, {
|
|
1535
1453
|
ref: ref,
|
|
1536
|
-
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1537
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1454
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1455
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1538
1456
|
onClick: handleClose,
|
|
1539
1457
|
label: closeLabel
|
|
1540
1458
|
}), children);
|
|
1541
1459
|
if (!Transition) return show ? alert : null;
|
|
1542
|
-
return /*#__PURE__*/React__default
|
|
1460
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1543
1461
|
unmountOnExit: true
|
|
1544
1462
|
}, props, {
|
|
1545
1463
|
ref: undefined,
|
|
@@ -1554,20 +1472,20 @@ Alert.Heading = AlertHeading;
|
|
|
1554
1472
|
var defaultProps$4 = {
|
|
1555
1473
|
pill: false
|
|
1556
1474
|
};
|
|
1557
|
-
var Badge = React__default
|
|
1475
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1558
1476
|
var bsPrefix = _ref.bsPrefix,
|
|
1559
1477
|
variant = _ref.variant,
|
|
1560
1478
|
pill = _ref.pill,
|
|
1561
1479
|
className = _ref.className,
|
|
1562
1480
|
_ref$as = _ref.as,
|
|
1563
1481
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1564
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1482
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1565
1483
|
|
|
1566
1484
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1567
|
-
return /*#__PURE__*/React__default
|
|
1485
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1568
1486
|
ref: ref
|
|
1569
1487
|
}, props, {
|
|
1570
|
-
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1488
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1571
1489
|
}));
|
|
1572
1490
|
});
|
|
1573
1491
|
Badge.displayName = 'Badge';
|
|
@@ -1577,7 +1495,7 @@ var defaultProps$5 = {
|
|
|
1577
1495
|
active: false,
|
|
1578
1496
|
linkProps: {}
|
|
1579
1497
|
};
|
|
1580
|
-
var BreadcrumbItem = React__default
|
|
1498
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1581
1499
|
var bsPrefix = _ref.bsPrefix,
|
|
1582
1500
|
active = _ref.active,
|
|
1583
1501
|
children = _ref.children,
|
|
@@ -1590,17 +1508,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1590
1508
|
href = _ref.href,
|
|
1591
1509
|
title = _ref.title,
|
|
1592
1510
|
target = _ref.target,
|
|
1593
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1511
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1594
1512
|
|
|
1595
1513
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1596
|
-
return /*#__PURE__*/React__default
|
|
1514
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1597
1515
|
ref: ref
|
|
1598
1516
|
}, props, {
|
|
1599
|
-
className: classnames(prefix, className, {
|
|
1517
|
+
className: index$5.classnames(prefix, className, {
|
|
1600
1518
|
active: active
|
|
1601
1519
|
}),
|
|
1602
1520
|
"aria-current": active ? 'page' : undefined
|
|
1603
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1521
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1604
1522
|
href: href,
|
|
1605
1523
|
title: title,
|
|
1606
1524
|
target: target
|
|
@@ -1613,7 +1531,7 @@ var defaultProps$6 = {
|
|
|
1613
1531
|
label: 'breadcrumb',
|
|
1614
1532
|
listProps: {}
|
|
1615
1533
|
};
|
|
1616
|
-
var Breadcrumb = React__default
|
|
1534
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1617
1535
|
var bsPrefix = _ref.bsPrefix,
|
|
1618
1536
|
className = _ref.className,
|
|
1619
1537
|
listProps = _ref.listProps,
|
|
@@ -1621,15 +1539,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1621
1539
|
label = _ref.label,
|
|
1622
1540
|
_ref$as = _ref.as,
|
|
1623
1541
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1624
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1542
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1625
1543
|
|
|
1626
1544
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1627
|
-
return /*#__PURE__*/React__default
|
|
1545
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1628
1546
|
"aria-label": label,
|
|
1629
1547
|
className: className,
|
|
1630
1548
|
ref: ref
|
|
1631
|
-
}, props), /*#__PURE__*/React__default
|
|
1632
|
-
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1549
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", index$5._extends({}, listProps, {
|
|
1550
|
+
className: index$5.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1633
1551
|
}), children));
|
|
1634
1552
|
});
|
|
1635
1553
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1641,7 +1559,7 @@ var defaultProps$7 = {
|
|
|
1641
1559
|
active: false,
|
|
1642
1560
|
disabled: false
|
|
1643
1561
|
};
|
|
1644
|
-
var Button = React__default
|
|
1562
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1645
1563
|
var bsPrefix = _ref.bsPrefix,
|
|
1646
1564
|
variant = _ref.variant,
|
|
1647
1565
|
size = _ref.size,
|
|
@@ -1650,16 +1568,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1650
1568
|
block = _ref.block,
|
|
1651
1569
|
type = _ref.type,
|
|
1652
1570
|
as = _ref.as,
|
|
1653
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1571
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1654
1572
|
|
|
1655
1573
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1656
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1574
|
+
var classes = index$5.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1657
1575
|
|
|
1658
1576
|
if (props.href) {
|
|
1659
|
-
return /*#__PURE__*/React__default
|
|
1577
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1660
1578
|
as: as,
|
|
1661
1579
|
ref: ref,
|
|
1662
|
-
className: classnames(classes, props.disabled && 'disabled')
|
|
1580
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1663
1581
|
}));
|
|
1664
1582
|
}
|
|
1665
1583
|
|
|
@@ -1674,7 +1592,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1674
1592
|
}
|
|
1675
1593
|
|
|
1676
1594
|
var Component = as || 'button';
|
|
1677
|
-
return /*#__PURE__*/React__default
|
|
1595
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1678
1596
|
className: classes
|
|
1679
1597
|
}));
|
|
1680
1598
|
});
|
|
@@ -1686,7 +1604,7 @@ var defaultProps$8 = {
|
|
|
1686
1604
|
toggle: false,
|
|
1687
1605
|
role: 'group'
|
|
1688
1606
|
};
|
|
1689
|
-
var ButtonGroup = React__default
|
|
1607
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1690
1608
|
var bsPrefix = _ref.bsPrefix,
|
|
1691
1609
|
size = _ref.size,
|
|
1692
1610
|
toggle = _ref.toggle,
|
|
@@ -1694,14 +1612,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1694
1612
|
className = _ref.className,
|
|
1695
1613
|
_ref$as = _ref.as,
|
|
1696
1614
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1697
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1615
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1698
1616
|
|
|
1699
1617
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1700
1618
|
var baseClass = prefix;
|
|
1701
1619
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1702
|
-
return /*#__PURE__*/React__default
|
|
1620
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1703
1621
|
ref: ref,
|
|
1704
|
-
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1622
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1705
1623
|
}));
|
|
1706
1624
|
});
|
|
1707
1625
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1710,39 +1628,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1710
1628
|
var defaultProps$9 = {
|
|
1711
1629
|
role: 'toolbar'
|
|
1712
1630
|
};
|
|
1713
|
-
var ButtonToolbar = React__default
|
|
1631
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1714
1632
|
var bsPrefix = _ref.bsPrefix,
|
|
1715
1633
|
className = _ref.className,
|
|
1716
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1634
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1717
1635
|
|
|
1718
1636
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1719
|
-
return /*#__PURE__*/React__default
|
|
1637
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1720
1638
|
ref: ref,
|
|
1721
|
-
className: classnames(className, prefix)
|
|
1639
|
+
className: index$5.classnames(className, prefix)
|
|
1722
1640
|
}));
|
|
1723
1641
|
});
|
|
1724
1642
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1725
1643
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1726
1644
|
|
|
1727
|
-
var context$1 = React__default
|
|
1645
|
+
var context$1 = React__default.createContext(null);
|
|
1728
1646
|
context$1.displayName = 'CardContext';
|
|
1729
1647
|
|
|
1730
1648
|
var defaultProps$a = {
|
|
1731
1649
|
variant: null
|
|
1732
1650
|
};
|
|
1733
|
-
var CardImg = React__default
|
|
1651
|
+
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
|
|
1734
1652
|
function (_ref, ref) {
|
|
1735
1653
|
var bsPrefix = _ref.bsPrefix,
|
|
1736
1654
|
className = _ref.className,
|
|
1737
1655
|
variant = _ref.variant,
|
|
1738
1656
|
_ref$as = _ref.as,
|
|
1739
1657
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1740
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1658
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1741
1659
|
|
|
1742
1660
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1743
|
-
return /*#__PURE__*/React__default
|
|
1661
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1744
1662
|
ref: ref,
|
|
1745
|
-
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1663
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1746
1664
|
}, props));
|
|
1747
1665
|
});
|
|
1748
1666
|
CardImg.displayName = 'CardImg';
|
|
@@ -1769,7 +1687,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1769
1687
|
var defaultProps$b = {
|
|
1770
1688
|
body: false
|
|
1771
1689
|
};
|
|
1772
|
-
var Card = React__default
|
|
1690
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1773
1691
|
var bsPrefix = _ref.bsPrefix,
|
|
1774
1692
|
className = _ref.className,
|
|
1775
1693
|
bg = _ref.bg,
|
|
@@ -1779,7 +1697,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1779
1697
|
children = _ref.children,
|
|
1780
1698
|
_ref$as = _ref.as,
|
|
1781
1699
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1782
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1700
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1783
1701
|
|
|
1784
1702
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1785
1703
|
var cardContext = React.useMemo(function () {
|
|
@@ -1787,16 +1705,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1787
1705
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1788
1706
|
};
|
|
1789
1707
|
}, [prefix]);
|
|
1790
|
-
return /*#__PURE__*/React__default
|
|
1708
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1791
1709
|
value: cardContext
|
|
1792
|
-
}, /*#__PURE__*/React__default
|
|
1710
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1793
1711
|
ref: ref
|
|
1794
1712
|
}, props, {
|
|
1795
|
-
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1713
|
+
className: index$5.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1796
1714
|
}), body ?
|
|
1797
1715
|
/*#__PURE__*/
|
|
1798
1716
|
// @ts-ignore
|
|
1799
|
-
React__default
|
|
1717
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1800
1718
|
});
|
|
1801
1719
|
Card.displayName = 'Card';
|
|
1802
1720
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1932,6 +1850,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1932
1850
|
/**
|
|
1933
1851
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1934
1852
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1853
|
+
*
|
|
1854
|
+
*
|
|
1855
|
+
*
|
|
1856
|
+
* ```tsx
|
|
1857
|
+
* const { set, clear } = useTimeout();
|
|
1858
|
+
* const [hello, showHello] = useState(false);
|
|
1859
|
+
* //Display hello after 5 seconds
|
|
1860
|
+
* set(() => showHello(true), 5000);
|
|
1861
|
+
* return (
|
|
1862
|
+
* <div className="App">
|
|
1863
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1864
|
+
* </div>
|
|
1865
|
+
* );
|
|
1866
|
+
* ```
|
|
1935
1867
|
*/
|
|
1936
1868
|
|
|
1937
1869
|
|
|
@@ -1972,7 +1904,22 @@ function useTimeout() {
|
|
|
1972
1904
|
|
|
1973
1905
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1974
1906
|
|
|
1975
|
-
var CarouselItem =
|
|
1907
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1908
|
+
var _ref$as = _ref.as,
|
|
1909
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1910
|
+
bsPrefix = _ref.bsPrefix,
|
|
1911
|
+
children = _ref.children,
|
|
1912
|
+
className = _ref.className,
|
|
1913
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1914
|
+
|
|
1915
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1916
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1917
|
+
ref: ref
|
|
1918
|
+
}, props, {
|
|
1919
|
+
className: finalClassName
|
|
1920
|
+
}), children);
|
|
1921
|
+
});
|
|
1922
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1976
1923
|
|
|
1977
1924
|
/**
|
|
1978
1925
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1985,8 +1932,22 @@ var CarouselItem = createWithBsPrefix('carousel-item');
|
|
|
1985
1932
|
|
|
1986
1933
|
function map(children, func) {
|
|
1987
1934
|
var index = 0;
|
|
1988
|
-
return React__default
|
|
1989
|
-
return React__default
|
|
1935
|
+
return React__default.Children.map(children, function (child) {
|
|
1936
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
/**
|
|
1940
|
+
* Iterates through children that are "valid elements".
|
|
1941
|
+
*
|
|
1942
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1943
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1944
|
+
*/
|
|
1945
|
+
|
|
1946
|
+
|
|
1947
|
+
function forEach(children, func) {
|
|
1948
|
+
var index = 0;
|
|
1949
|
+
React__default.Children.forEach(children, function (child) {
|
|
1950
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1990
1951
|
});
|
|
1991
1952
|
}
|
|
1992
1953
|
|
|
@@ -1995,33 +1956,33 @@ var propTypes$1 = {
|
|
|
1995
1956
|
/**
|
|
1996
1957
|
* @default 'carousel'
|
|
1997
1958
|
*/
|
|
1998
|
-
bsPrefix: PropTypes__default
|
|
1999
|
-
as: PropTypes__default
|
|
1959
|
+
bsPrefix: PropTypes__default.string,
|
|
1960
|
+
as: PropTypes__default.elementType,
|
|
2000
1961
|
|
|
2001
1962
|
/**
|
|
2002
1963
|
* Enables animation on the Carousel as it transitions between slides.
|
|
2003
1964
|
*/
|
|
2004
|
-
slide: PropTypes__default
|
|
1965
|
+
slide: PropTypes__default.bool,
|
|
2005
1966
|
|
|
2006
1967
|
/** Cross fade slides instead of the default slide animation */
|
|
2007
|
-
fade: PropTypes__default
|
|
1968
|
+
fade: PropTypes__default.bool,
|
|
2008
1969
|
|
|
2009
1970
|
/**
|
|
2010
1971
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
2011
1972
|
*/
|
|
2012
|
-
controls: PropTypes__default
|
|
1973
|
+
controls: PropTypes__default.bool,
|
|
2013
1974
|
|
|
2014
1975
|
/**
|
|
2015
1976
|
* Show a set of slide position indicators
|
|
2016
1977
|
*/
|
|
2017
|
-
indicators: PropTypes__default
|
|
1978
|
+
indicators: PropTypes__default.bool,
|
|
2018
1979
|
|
|
2019
1980
|
/**
|
|
2020
1981
|
* Controls the current visible slide
|
|
2021
1982
|
*
|
|
2022
1983
|
* @controllable onSelect
|
|
2023
1984
|
*/
|
|
2024
|
-
activeIndex: PropTypes__default
|
|
1985
|
+
activeIndex: PropTypes__default.number,
|
|
2025
1986
|
|
|
2026
1987
|
/**
|
|
2027
1988
|
* Callback fired when the active item changes.
|
|
@@ -2032,7 +1993,7 @@ var propTypes$1 = {
|
|
|
2032
1993
|
*
|
|
2033
1994
|
* @controllable activeIndex
|
|
2034
1995
|
*/
|
|
2035
|
-
onSelect: PropTypes__default
|
|
1996
|
+
onSelect: PropTypes__default.func,
|
|
2036
1997
|
|
|
2037
1998
|
/**
|
|
2038
1999
|
* Callback fired when a slide transition starts.
|
|
@@ -2040,7 +2001,7 @@ var propTypes$1 = {
|
|
|
2040
2001
|
* ```js
|
|
2041
2002
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2042
2003
|
*/
|
|
2043
|
-
onSlide: PropTypes__default
|
|
2004
|
+
onSlide: PropTypes__default.func,
|
|
2044
2005
|
|
|
2045
2006
|
/**
|
|
2046
2007
|
* Callback fired when a slide transition ends.
|
|
@@ -2048,50 +2009,50 @@ var propTypes$1 = {
|
|
|
2048
2009
|
* ```js
|
|
2049
2010
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2050
2011
|
*/
|
|
2051
|
-
onSlid: PropTypes__default
|
|
2012
|
+
onSlid: PropTypes__default.func,
|
|
2052
2013
|
|
|
2053
2014
|
/**
|
|
2054
2015
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2055
2016
|
*/
|
|
2056
|
-
interval: PropTypes__default
|
|
2017
|
+
interval: PropTypes__default.number,
|
|
2057
2018
|
|
|
2058
2019
|
/** Whether the carousel should react to keyboard events. */
|
|
2059
|
-
keyboard: PropTypes__default
|
|
2020
|
+
keyboard: PropTypes__default.bool,
|
|
2060
2021
|
|
|
2061
2022
|
/**
|
|
2062
2023
|
* If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on `mouseleave`. If set to `false`, hovering over the carousel won't pause it.
|
|
2063
2024
|
*
|
|
2064
2025
|
* On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.
|
|
2065
2026
|
*/
|
|
2066
|
-
pause: PropTypes__default
|
|
2027
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2067
2028
|
|
|
2068
2029
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2069
|
-
wrap: PropTypes__default
|
|
2030
|
+
wrap: PropTypes__default.bool,
|
|
2070
2031
|
|
|
2071
2032
|
/**
|
|
2072
2033
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2073
2034
|
*/
|
|
2074
|
-
touch: PropTypes__default
|
|
2035
|
+
touch: PropTypes__default.bool,
|
|
2075
2036
|
|
|
2076
2037
|
/** Override the default button icon for the "previous" control */
|
|
2077
|
-
prevIcon: PropTypes__default
|
|
2038
|
+
prevIcon: PropTypes__default.node,
|
|
2078
2039
|
|
|
2079
2040
|
/**
|
|
2080
2041
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2081
2042
|
* in the carousel.
|
|
2082
2043
|
* Set to null to deactivate.
|
|
2083
2044
|
*/
|
|
2084
|
-
prevLabel: PropTypes__default
|
|
2045
|
+
prevLabel: PropTypes__default.string,
|
|
2085
2046
|
|
|
2086
2047
|
/** Override the default button icon for the "next" control */
|
|
2087
|
-
nextIcon: PropTypes__default
|
|
2048
|
+
nextIcon: PropTypes__default.node,
|
|
2088
2049
|
|
|
2089
2050
|
/**
|
|
2090
2051
|
* Label shown to screen readers only, can be used to show the next element
|
|
2091
2052
|
* in the carousel.
|
|
2092
2053
|
* Set to null to deactivate.
|
|
2093
2054
|
*/
|
|
2094
|
-
nextLabel: PropTypes__default
|
|
2055
|
+
nextLabel: PropTypes__default.string
|
|
2095
2056
|
};
|
|
2096
2057
|
var defaultProps$c = {
|
|
2097
2058
|
slide: true,
|
|
@@ -2104,12 +2065,12 @@ var defaultProps$c = {
|
|
|
2104
2065
|
pause: 'hover',
|
|
2105
2066
|
wrap: true,
|
|
2106
2067
|
touch: true,
|
|
2107
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2068
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2108
2069
|
"aria-hidden": "true",
|
|
2109
2070
|
className: "carousel-control-prev-icon"
|
|
2110
2071
|
}),
|
|
2111
2072
|
prevLabel: 'Previous',
|
|
2112
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2073
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2113
2074
|
"aria-hidden": "true",
|
|
2114
2075
|
className: "carousel-control-next-icon"
|
|
2115
2076
|
}),
|
|
@@ -2157,7 +2118,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2157
2118
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2158
2119
|
className = _useUncontrolled.className,
|
|
2159
2120
|
children = _useUncontrolled.children,
|
|
2160
|
-
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"]);
|
|
2121
|
+
props = index$5._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"]);
|
|
2161
2122
|
|
|
2162
2123
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2163
2124
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2177,7 +2138,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2177
2138
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2178
2139
|
if (nextDirectionRef.current) {
|
|
2179
2140
|
setDirection(nextDirectionRef.current);
|
|
2180
|
-
nextDirectionRef.current = null;
|
|
2181
2141
|
} else {
|
|
2182
2142
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2183
2143
|
}
|
|
@@ -2189,7 +2149,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2189
2149
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2190
2150
|
}
|
|
2191
2151
|
|
|
2192
|
-
|
|
2152
|
+
React.useEffect(function () {
|
|
2153
|
+
if (nextDirectionRef.current) {
|
|
2154
|
+
nextDirectionRef.current = null;
|
|
2155
|
+
}
|
|
2156
|
+
});
|
|
2157
|
+
var numChildren = 0;
|
|
2158
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2159
|
+
// (and count them, too)
|
|
2160
|
+
|
|
2161
|
+
forEach(children, function (child, index) {
|
|
2162
|
+
++numChildren;
|
|
2163
|
+
|
|
2164
|
+
if (index === activeIndex) {
|
|
2165
|
+
activeChildInterval = child.props.interval;
|
|
2166
|
+
}
|
|
2167
|
+
});
|
|
2168
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2193
2169
|
var prev = React.useCallback(function (event) {
|
|
2194
2170
|
if (isSliding) {
|
|
2195
2171
|
return;
|
|
@@ -2375,17 +2351,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2351
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2376
2352
|
var intervalHandleRef = React.useRef();
|
|
2377
2353
|
React.useEffect(function () {
|
|
2354
|
+
var _ref, _activeChildIntervalR;
|
|
2355
|
+
|
|
2378
2356
|
if (!shouldPlay) {
|
|
2379
2357
|
return undefined;
|
|
2380
2358
|
}
|
|
2381
2359
|
|
|
2382
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2360
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2383
2361
|
return function () {
|
|
2384
2362
|
if (intervalHandleRef.current !== null) {
|
|
2385
2363
|
clearInterval(intervalHandleRef.current);
|
|
2386
2364
|
}
|
|
2387
2365
|
};
|
|
2388
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2366
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2389
2367
|
var indicatorOnClicks = React.useMemo(function () {
|
|
2390
2368
|
return indicators && Array.from({
|
|
2391
2369
|
length: numChildren
|
|
@@ -2397,7 +2375,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2397
2375
|
};
|
|
2398
2376
|
});
|
|
2399
2377
|
}, [indicators, numChildren, onSelect]);
|
|
2400
|
-
return /*#__PURE__*/React__default
|
|
2378
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2401
2379
|
ref: elementRef
|
|
2402
2380
|
}, props, {
|
|
2403
2381
|
onKeyDown: handleKeyDown,
|
|
@@ -2406,45 +2384,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2406
2384
|
onTouchStart: handleTouchStart,
|
|
2407
2385
|
onTouchMove: handleTouchMove,
|
|
2408
2386
|
onTouchEnd: handleTouchEnd,
|
|
2409
|
-
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2410
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2387
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2388
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2411
2389
|
className: prefix + "-indicators"
|
|
2412
2390
|
}, map(children, function (_child, index) {
|
|
2413
|
-
return /*#__PURE__*/React__default
|
|
2391
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2414
2392
|
key: index,
|
|
2415
2393
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2416
2394
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2417
2395
|
});
|
|
2418
|
-
})), /*#__PURE__*/React__default
|
|
2396
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2419
2397
|
className: prefix + "-inner"
|
|
2420
2398
|
}, map(children, function (child, index) {
|
|
2421
2399
|
var isActive = index === renderedActiveIndex;
|
|
2422
|
-
return slide ? /*#__PURE__*/React__default
|
|
2400
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2423
2401
|
in: isActive,
|
|
2424
2402
|
onEnter: isActive ? handleEnter : undefined,
|
|
2425
2403
|
onEntered: isActive ? handleEntered : undefined,
|
|
2426
2404
|
addEndListener: transitionEnd
|
|
2427
2405
|
}, function (status) {
|
|
2428
|
-
return React__default
|
|
2429
|
-
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2406
|
+
return React__default.cloneElement(child, {
|
|
2407
|
+
className: index$5.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2430
2408
|
});
|
|
2431
|
-
}) : React__default
|
|
2432
|
-
className: classnames(child.props.className, isActive && 'active')
|
|
2409
|
+
}) : React__default.cloneElement(child, {
|
|
2410
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2433
2411
|
});
|
|
2434
|
-
})), controls && /*#__PURE__*/React__default
|
|
2412
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2435
2413
|
className: prefix + "-control-prev",
|
|
2436
2414
|
onClick: prev
|
|
2437
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2415
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2438
2416
|
className: "sr-only"
|
|
2439
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2417
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2440
2418
|
className: prefix + "-control-next",
|
|
2441
2419
|
onClick: next
|
|
2442
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2420
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2443
2421
|
className: "sr-only"
|
|
2444
2422
|
}, nextLabel))));
|
|
2445
2423
|
}
|
|
2446
2424
|
|
|
2447
|
-
var Carousel = React__default
|
|
2425
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2448
2426
|
Carousel.displayName = 'Carousel';
|
|
2449
2427
|
Carousel.propTypes = propTypes$1;
|
|
2450
2428
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2452,13 +2430,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2452
2430
|
Carousel.Item = CarouselItem;
|
|
2453
2431
|
|
|
2454
2432
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2455
|
-
var Col = React__default
|
|
2433
|
+
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
|
|
2456
2434
|
function (_ref, ref) {
|
|
2457
2435
|
var bsPrefix = _ref.bsPrefix,
|
|
2458
2436
|
className = _ref.className,
|
|
2459
2437
|
_ref$as = _ref.as,
|
|
2460
2438
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2461
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2439
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2462
2440
|
|
|
2463
2441
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2464
2442
|
var spans = [];
|
|
@@ -2489,9 +2467,9 @@ function (_ref, ref) {
|
|
|
2489
2467
|
spans.push(prefix); // plain 'col'
|
|
2490
2468
|
}
|
|
2491
2469
|
|
|
2492
|
-
return /*#__PURE__*/React__default
|
|
2470
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2493
2471
|
ref: ref,
|
|
2494
|
-
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2472
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2495
2473
|
}));
|
|
2496
2474
|
});
|
|
2497
2475
|
Col.displayName = 'Col';
|
|
@@ -2598,7 +2576,40 @@ function useForceUpdate() {
|
|
|
2598
2576
|
return dispatch;
|
|
2599
2577
|
}
|
|
2600
2578
|
|
|
2601
|
-
var DropdownContext = /*#__PURE__*/React__default
|
|
2579
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2580
|
+
|
|
2581
|
+
function _extends() {
|
|
2582
|
+
_extends = Object.assign || function (target) {
|
|
2583
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2584
|
+
var source = arguments[i];
|
|
2585
|
+
|
|
2586
|
+
for (var key in source) {
|
|
2587
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2588
|
+
target[key] = source[key];
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
return target;
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2596
|
+
return _extends.apply(this, arguments);
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2600
|
+
if (source == null) return {};
|
|
2601
|
+
var target = {};
|
|
2602
|
+
var sourceKeys = Object.keys(source);
|
|
2603
|
+
var key, i;
|
|
2604
|
+
|
|
2605
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2606
|
+
key = sourceKeys[i];
|
|
2607
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2608
|
+
target[key] = source[key];
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
return target;
|
|
2612
|
+
}
|
|
2602
2613
|
|
|
2603
2614
|
function useSafeState(state) {
|
|
2604
2615
|
var isMounted = useMounted();
|
|
@@ -2697,13 +2708,13 @@ function contains(parent, child) {
|
|
|
2697
2708
|
if (parent.contains(child)) {
|
|
2698
2709
|
return true;
|
|
2699
2710
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2700
|
-
else if (isShadowRoot(rootNode)) {
|
|
2711
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2701
2712
|
var next = child;
|
|
2702
2713
|
|
|
2703
2714
|
do {
|
|
2704
2715
|
if (next && parent.isSameNode(next)) {
|
|
2705
2716
|
return true;
|
|
2706
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2717
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2707
2718
|
|
|
2708
2719
|
|
|
2709
2720
|
next = next.parentNode || next.host;
|
|
@@ -2727,8 +2738,9 @@ function isTableElement(element) {
|
|
|
2727
2738
|
}
|
|
2728
2739
|
|
|
2729
2740
|
function getDocumentElement(element) {
|
|
2730
|
-
// $FlowFixMe: assume body is always available
|
|
2731
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2741
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2742
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2743
|
+
element.document) || window.document).documentElement;
|
|
2732
2744
|
}
|
|
2733
2745
|
|
|
2734
2746
|
function getParentNode(element) {
|
|
@@ -2736,12 +2748,14 @@ function getParentNode(element) {
|
|
|
2736
2748
|
return element;
|
|
2737
2749
|
}
|
|
2738
2750
|
|
|
2739
|
-
return (//
|
|
2751
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2752
|
+
// $FlowFixMe[incompatible-return]
|
|
2753
|
+
// $FlowFixMe[prop-missing]
|
|
2740
2754
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2741
2755
|
element.parentNode || // DOM Element detected
|
|
2742
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2756
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2743
2757
|
element.host || // ShadowRoot detected
|
|
2744
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2758
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2745
2759
|
getDocumentElement(element) // fallback
|
|
2746
2760
|
|
|
2747
2761
|
);
|
|
@@ -2928,7 +2942,7 @@ var unsetSides = {
|
|
|
2928
2942
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2929
2943
|
// cleanly divide the values into the appropriate subpixels.
|
|
2930
2944
|
|
|
2931
|
-
function
|
|
2945
|
+
function roundOffsetsByDPR(_ref) {
|
|
2932
2946
|
var x = _ref.x,
|
|
2933
2947
|
y = _ref.y;
|
|
2934
2948
|
var win = window;
|
|
@@ -2948,11 +2962,14 @@ function mapToStyles(_ref2) {
|
|
|
2948
2962
|
offsets = _ref2.offsets,
|
|
2949
2963
|
position = _ref2.position,
|
|
2950
2964
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2951
|
-
adaptive = _ref2.adaptive
|
|
2965
|
+
adaptive = _ref2.adaptive,
|
|
2966
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2952
2967
|
|
|
2953
|
-
var
|
|
2954
|
-
x =
|
|
2955
|
-
|
|
2968
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2969
|
+
_ref3$x = _ref3.x,
|
|
2970
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2971
|
+
_ref3$y = _ref3.y,
|
|
2972
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2956
2973
|
|
|
2957
2974
|
var hasX = offsets.hasOwnProperty('x');
|
|
2958
2975
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2965,7 +2982,7 @@ function mapToStyles(_ref2) {
|
|
|
2965
2982
|
|
|
2966
2983
|
if (offsetParent === getWindow(popper)) {
|
|
2967
2984
|
offsetParent = getDocumentElement(popper);
|
|
2968
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2985
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2969
2986
|
|
|
2970
2987
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2971
2988
|
|
|
@@ -2996,13 +3013,15 @@ function mapToStyles(_ref2) {
|
|
|
2996
3013
|
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));
|
|
2997
3014
|
}
|
|
2998
3015
|
|
|
2999
|
-
function computeStyles(
|
|
3000
|
-
var state =
|
|
3001
|
-
options =
|
|
3016
|
+
function computeStyles(_ref4) {
|
|
3017
|
+
var state = _ref4.state,
|
|
3018
|
+
options = _ref4.options;
|
|
3002
3019
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3003
3020
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3004
3021
|
_options$adaptive = options.adaptive,
|
|
3005
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3022
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3023
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3024
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3006
3025
|
|
|
3007
3026
|
if (process.env.NODE_ENV !== "production") {
|
|
3008
3027
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3025,7 +3044,8 @@ function computeStyles(_ref3) {
|
|
|
3025
3044
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3026
3045
|
offsets: state.modifiersData.popperOffsets,
|
|
3027
3046
|
position: state.options.strategy,
|
|
3028
|
-
adaptive: adaptive
|
|
3047
|
+
adaptive: adaptive,
|
|
3048
|
+
roundOffsets: roundOffsets
|
|
3029
3049
|
})));
|
|
3030
3050
|
}
|
|
3031
3051
|
|
|
@@ -3033,7 +3053,8 @@ function computeStyles(_ref3) {
|
|
|
3033
3053
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3034
3054
|
offsets: state.modifiersData.arrow,
|
|
3035
3055
|
position: 'absolute',
|
|
3036
|
-
adaptive: false
|
|
3056
|
+
adaptive: false,
|
|
3057
|
+
roundOffsets: roundOffsets
|
|
3037
3058
|
})));
|
|
3038
3059
|
}
|
|
3039
3060
|
|
|
@@ -3229,7 +3250,7 @@ function isScrollParent(element) {
|
|
|
3229
3250
|
|
|
3230
3251
|
function getScrollParent(node) {
|
|
3231
3252
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3232
|
-
// $FlowFixMe: assume body is always available
|
|
3253
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3233
3254
|
return node.ownerDocument.body;
|
|
3234
3255
|
}
|
|
3235
3256
|
|
|
@@ -3243,7 +3264,7 @@ function getScrollParent(node) {
|
|
|
3243
3264
|
/*
|
|
3244
3265
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3245
3266
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3246
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3267
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3247
3268
|
reference element's position.
|
|
3248
3269
|
*/
|
|
3249
3270
|
|
|
@@ -3257,7 +3278,7 @@ function listScrollParents(element, list) {
|
|
|
3257
3278
|
var win = getWindow(scrollParent);
|
|
3258
3279
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3259
3280
|
var updatedList = list.concat(target);
|
|
3260
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3281
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3261
3282
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3262
3283
|
}
|
|
3263
3284
|
|
|
@@ -3297,7 +3318,7 @@ function getClippingParents(element) {
|
|
|
3297
3318
|
|
|
3298
3319
|
if (!isElement(clipperElement)) {
|
|
3299
3320
|
return [];
|
|
3300
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3321
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3301
3322
|
|
|
3302
3323
|
|
|
3303
3324
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3383,11 +3404,11 @@ function computeOffsets(_ref) {
|
|
|
3383
3404
|
|
|
3384
3405
|
switch (variation) {
|
|
3385
3406
|
case start:
|
|
3386
|
-
offsets[mainAxis] =
|
|
3407
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3387
3408
|
break;
|
|
3388
3409
|
|
|
3389
3410
|
case end:
|
|
3390
|
-
offsets[mainAxis] =
|
|
3411
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3391
3412
|
break;
|
|
3392
3413
|
}
|
|
3393
3414
|
}
|
|
@@ -3469,8 +3490,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3469
3490
|
var variation = getVariation(placement);
|
|
3470
3491
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3471
3492
|
return getVariation(placement) === variation;
|
|
3472
|
-
}) : basePlacements;
|
|
3473
|
-
|
|
3493
|
+
}) : basePlacements;
|
|
3474
3494
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3475
3495
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3476
3496
|
});
|
|
@@ -3481,7 +3501,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3481
3501
|
if (process.env.NODE_ENV !== "production") {
|
|
3482
3502
|
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(' '));
|
|
3483
3503
|
}
|
|
3484
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3504
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3485
3505
|
|
|
3486
3506
|
|
|
3487
3507
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4407,6 +4427,11 @@ var ariaDescribedByModifier = {
|
|
|
4407
4427
|
|
|
4408
4428
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4409
4429
|
var ids = reference.getAttribute('aria-describedby');
|
|
4430
|
+
|
|
4431
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4432
|
+
return;
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4410
4435
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4411
4436
|
}
|
|
4412
4437
|
}
|
|
@@ -4600,7 +4625,7 @@ var warning_1 = warning;
|
|
|
4600
4625
|
|
|
4601
4626
|
function safeFindDOMNode(componentOrElement) {
|
|
4602
4627
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4603
|
-
return
|
|
4628
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4604
4629
|
}
|
|
4605
4630
|
|
|
4606
4631
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4662,14 +4687,33 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4662
4687
|
}
|
|
4663
4688
|
});
|
|
4664
4689
|
React.useEffect(function () {
|
|
4665
|
-
if (disabled || ref == null) return undefined;
|
|
4690
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4691
|
+
// https://github.com/facebook/react/issues/20074
|
|
4692
|
+
|
|
4693
|
+
var currentEvent = window.event;
|
|
4666
4694
|
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4667
4695
|
// avoid false positives in the contains() check below if the target DOM
|
|
4668
4696
|
// element is removed in the React mouse callback.
|
|
4669
4697
|
|
|
4670
4698
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4671
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4672
|
-
|
|
4699
|
+
var removeMouseListener = listen(doc, clickTrigger, function (e) {
|
|
4700
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4701
|
+
if (e === currentEvent) {
|
|
4702
|
+
currentEvent = undefined;
|
|
4703
|
+
return;
|
|
4704
|
+
}
|
|
4705
|
+
|
|
4706
|
+
handleMouse(e);
|
|
4707
|
+
});
|
|
4708
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4709
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4710
|
+
if (e === currentEvent) {
|
|
4711
|
+
currentEvent = undefined;
|
|
4712
|
+
return;
|
|
4713
|
+
}
|
|
4714
|
+
|
|
4715
|
+
handleKeyUp(e);
|
|
4716
|
+
});
|
|
4673
4717
|
var mobileSafariHackListeners = [];
|
|
4674
4718
|
|
|
4675
4719
|
if ('ontouchstart' in doc.documentElement) {
|
|
@@ -4880,39 +4924,39 @@ var propTypes$2 = {
|
|
|
4880
4924
|
* },
|
|
4881
4925
|
* }) => React.Element}
|
|
4882
4926
|
*/
|
|
4883
|
-
children: PropTypes__default
|
|
4927
|
+
children: PropTypes__default.func.isRequired,
|
|
4884
4928
|
|
|
4885
4929
|
/**
|
|
4886
4930
|
* Controls the visible state of the menu, generally this is
|
|
4887
4931
|
* provided by the parent `Dropdown` component,
|
|
4888
4932
|
* but may also be specified as a prop directly.
|
|
4889
4933
|
*/
|
|
4890
|
-
show: PropTypes__default
|
|
4934
|
+
show: PropTypes__default.bool,
|
|
4891
4935
|
|
|
4892
4936
|
/**
|
|
4893
4937
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4894
4938
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4895
4939
|
* but may also be specified as a prop directly.
|
|
4896
4940
|
*/
|
|
4897
|
-
alignEnd: PropTypes__default
|
|
4941
|
+
alignEnd: PropTypes__default.bool,
|
|
4898
4942
|
|
|
4899
4943
|
/**
|
|
4900
4944
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4901
4945
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4902
4946
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4903
4947
|
*/
|
|
4904
|
-
flip: PropTypes__default
|
|
4905
|
-
usePopper: PropTypes__default
|
|
4948
|
+
flip: PropTypes__default.bool,
|
|
4949
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4906
4950
|
|
|
4907
4951
|
/**
|
|
4908
4952
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4909
4953
|
*/
|
|
4910
|
-
popperConfig: PropTypes__default
|
|
4954
|
+
popperConfig: PropTypes__default.object,
|
|
4911
4955
|
|
|
4912
4956
|
/**
|
|
4913
4957
|
* Override the default event used by RootCloseWrapper.
|
|
4914
4958
|
*/
|
|
4915
|
-
rootCloseEvent: PropTypes__default
|
|
4959
|
+
rootCloseEvent: PropTypes__default.string
|
|
4916
4960
|
};
|
|
4917
4961
|
var defaultProps$d = {
|
|
4918
4962
|
usePopper: true
|
|
@@ -4929,7 +4973,7 @@ function DropdownMenu(_ref2) {
|
|
|
4929
4973
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4930
4974
|
|
|
4931
4975
|
var args = useDropdownMenu(options);
|
|
4932
|
-
return /*#__PURE__*/React__default
|
|
4976
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4933
4977
|
}
|
|
4934
4978
|
|
|
4935
4979
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4978,7 +5022,7 @@ var propTypes$3 = {
|
|
|
4978
5022
|
* },
|
|
4979
5023
|
* }) => React.Element}
|
|
4980
5024
|
*/
|
|
4981
|
-
children: PropTypes__default
|
|
5025
|
+
children: PropTypes__default.func.isRequired
|
|
4982
5026
|
};
|
|
4983
5027
|
|
|
4984
5028
|
/**
|
|
@@ -4996,7 +5040,7 @@ function DropdownToggle(_ref2) {
|
|
|
4996
5040
|
show = _useDropdownToggle$.show,
|
|
4997
5041
|
toggle = _useDropdownToggle$.toggle;
|
|
4998
5042
|
|
|
4999
|
-
return /*#__PURE__*/React__default
|
|
5043
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
5000
5044
|
show: show,
|
|
5001
5045
|
toggle: toggle,
|
|
5002
5046
|
props: props
|
|
@@ -5018,12 +5062,12 @@ var propTypes$4 = {
|
|
|
5018
5062
|
* },
|
|
5019
5063
|
* }) => React.Element}
|
|
5020
5064
|
*/
|
|
5021
|
-
children: PropTypes__default
|
|
5065
|
+
children: PropTypes__default.func.isRequired,
|
|
5022
5066
|
|
|
5023
5067
|
/**
|
|
5024
5068
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5025
5069
|
*/
|
|
5026
|
-
drop: PropTypes__default
|
|
5070
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5027
5071
|
|
|
5028
5072
|
/**
|
|
5029
5073
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5033,31 +5077,31 @@ var propTypes$4 = {
|
|
|
5033
5077
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5034
5078
|
* where it will default to `keyboard` to match the recommended [ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).
|
|
5035
5079
|
*/
|
|
5036
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5080
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5037
5081
|
|
|
5038
5082
|
/**
|
|
5039
5083
|
* A css slector string that will return __focusable__ menu items.
|
|
5040
5084
|
* Selectors should be relative to the menu component:
|
|
5041
5085
|
* e.g. ` > li:not('.disabled')`
|
|
5042
5086
|
*/
|
|
5043
|
-
itemSelector: PropTypes__default
|
|
5087
|
+
itemSelector: PropTypes__default.string,
|
|
5044
5088
|
|
|
5045
5089
|
/**
|
|
5046
5090
|
* Align the menu to the 'end' side of the placement side of the Dropdown toggle. The default placement is `top-start` or `bottom-start`.
|
|
5047
5091
|
*/
|
|
5048
|
-
alignEnd: PropTypes__default
|
|
5092
|
+
alignEnd: PropTypes__default.bool,
|
|
5049
5093
|
|
|
5050
5094
|
/**
|
|
5051
5095
|
* Whether or not the Dropdown is visible.
|
|
5052
5096
|
*
|
|
5053
5097
|
* @controllable onToggle
|
|
5054
5098
|
*/
|
|
5055
|
-
show: PropTypes__default
|
|
5099
|
+
show: PropTypes__default.bool,
|
|
5056
5100
|
|
|
5057
5101
|
/**
|
|
5058
5102
|
* Sets the initial show position of the Dropdown.
|
|
5059
5103
|
*/
|
|
5060
|
-
defaultShow: PropTypes__default
|
|
5104
|
+
defaultShow: PropTypes__default.bool,
|
|
5061
5105
|
|
|
5062
5106
|
/**
|
|
5063
5107
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5072,7 +5116,7 @@ var propTypes$4 = {
|
|
|
5072
5116
|
*
|
|
5073
5117
|
* @controllable show
|
|
5074
5118
|
*/
|
|
5075
|
-
onToggle: PropTypes__default
|
|
5119
|
+
onToggle: PropTypes__default.func
|
|
5076
5120
|
};
|
|
5077
5121
|
|
|
5078
5122
|
/**
|
|
@@ -5211,7 +5255,7 @@ function Dropdown(_ref) {
|
|
|
5211
5255
|
}
|
|
5212
5256
|
};
|
|
5213
5257
|
|
|
5214
|
-
return /*#__PURE__*/React__default
|
|
5258
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5215
5259
|
value: context
|
|
5216
5260
|
}, children({
|
|
5217
5261
|
props: {
|
|
@@ -5225,14 +5269,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5225
5269
|
Dropdown.Menu = DropdownMenu;
|
|
5226
5270
|
Dropdown.Toggle = DropdownToggle;
|
|
5227
5271
|
|
|
5228
|
-
var NavContext = React__default
|
|
5272
|
+
var NavContext = React__default.createContext(null);
|
|
5229
5273
|
NavContext.displayName = 'NavContext';
|
|
5230
5274
|
|
|
5231
5275
|
var defaultProps$e = {
|
|
5232
5276
|
as: SafeAnchor,
|
|
5233
5277
|
disabled: false
|
|
5234
5278
|
};
|
|
5235
|
-
var DropdownItem = React__default
|
|
5279
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5236
5280
|
var bsPrefix = _ref.bsPrefix,
|
|
5237
5281
|
className = _ref.className,
|
|
5238
5282
|
children = _ref.children,
|
|
@@ -5243,16 +5287,17 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5243
5287
|
onSelect = _ref.onSelect,
|
|
5244
5288
|
propActive = _ref.active,
|
|
5245
5289
|
Component = _ref.as,
|
|
5246
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5290
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5247
5291
|
|
|
5248
5292
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5249
5293
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5250
5294
|
var navContext = React.useContext(NavContext);
|
|
5251
5295
|
|
|
5252
5296
|
var _ref2 = navContext || {},
|
|
5253
|
-
activeKey = _ref2.activeKey;
|
|
5297
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5298
|
+
|
|
5254
5299
|
|
|
5255
|
-
var key = makeEventKey(eventKey
|
|
5300
|
+
var key = makeEventKey(eventKey, href);
|
|
5256
5301
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5257
5302
|
var handleClick = useEventCallback(function (event) {
|
|
5258
5303
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5266,11 +5311,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5266
5311
|
/*#__PURE__*/
|
|
5267
5312
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5268
5313
|
// @ts-ignore
|
|
5269
|
-
React__default
|
|
5314
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5270
5315
|
ref: ref,
|
|
5271
5316
|
href: href,
|
|
5272
5317
|
disabled: disabled,
|
|
5273
|
-
className: classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5318
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5274
5319
|
onClick: handleClick
|
|
5275
5320
|
}), children)
|
|
5276
5321
|
);
|
|
@@ -5315,7 +5360,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5315
5360
|
}, [refA, refB]);
|
|
5316
5361
|
}
|
|
5317
5362
|
|
|
5318
|
-
var context$2 = React__default
|
|
5363
|
+
var context$2 = React__default.createContext(null);
|
|
5319
5364
|
context$2.displayName = 'NavbarContext';
|
|
5320
5365
|
|
|
5321
5366
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5351,12 +5396,14 @@ function getMargins(element) {
|
|
|
5351
5396
|
function usePopperMarginModifiers() {
|
|
5352
5397
|
var overlayRef = React.useRef(null);
|
|
5353
5398
|
var margins = React.useRef(null);
|
|
5399
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5400
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5354
5401
|
var callback = React.useCallback(function (overlay) {
|
|
5355
|
-
if (!overlay || !(hasClass(overlay,
|
|
5402
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5356
5403
|
margins.current = getMargins(overlay);
|
|
5357
5404
|
overlay.style.margin = '0';
|
|
5358
5405
|
overlayRef.current = overlay;
|
|
5359
|
-
}, []);
|
|
5406
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5360
5407
|
var offset = React.useMemo(function () {
|
|
5361
5408
|
return {
|
|
5362
5409
|
name: 'offset',
|
|
@@ -5400,7 +5447,7 @@ function usePopperMarginModifiers() {
|
|
|
5400
5447
|
effect: function effect(_ref2) {
|
|
5401
5448
|
var state = _ref2.state;
|
|
5402
5449
|
|
|
5403
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5450
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5404
5451
|
return undefined;
|
|
5405
5452
|
}
|
|
5406
5453
|
|
|
@@ -5421,18 +5468,30 @@ function usePopperMarginModifiers() {
|
|
|
5421
5468
|
};
|
|
5422
5469
|
}
|
|
5423
5470
|
};
|
|
5424
|
-
}, []);
|
|
5471
|
+
}, [popoverClass]);
|
|
5425
5472
|
return [callback, [offset, popoverArrowMargins]];
|
|
5426
5473
|
}
|
|
5427
5474
|
|
|
5475
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5476
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5477
|
+
sm: alignDirection
|
|
5478
|
+
}), PropTypes__default.shape({
|
|
5479
|
+
md: alignDirection
|
|
5480
|
+
}), PropTypes__default.shape({
|
|
5481
|
+
lg: alignDirection
|
|
5482
|
+
}), PropTypes__default.shape({
|
|
5483
|
+
xl: alignDirection
|
|
5484
|
+
})]);
|
|
5428
5485
|
var defaultProps$f = {
|
|
5486
|
+
align: 'left',
|
|
5429
5487
|
alignRight: false,
|
|
5430
5488
|
flip: true
|
|
5431
5489
|
}; // TODO: remove this hack
|
|
5432
5490
|
|
|
5433
|
-
var DropdownMenu$1 = React__default
|
|
5491
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5434
5492
|
var bsPrefix = _ref.bsPrefix,
|
|
5435
5493
|
className = _ref.className,
|
|
5494
|
+
align = _ref.align,
|
|
5436
5495
|
alignRight = _ref.alignRight,
|
|
5437
5496
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5438
5497
|
flip = _ref.flip,
|
|
@@ -5441,7 +5500,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5441
5500
|
_ref$as = _ref.as,
|
|
5442
5501
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5443
5502
|
popperConfig = _ref.popperConfig,
|
|
5444
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5503
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5445
5504
|
|
|
5446
5505
|
var isNavbar = React.useContext(context$2);
|
|
5447
5506
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5450,13 +5509,34 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5450
5509
|
popperRef = _usePopperMarginModif[0],
|
|
5451
5510
|
marginModifiers = _usePopperMarginModif[1];
|
|
5452
5511
|
|
|
5512
|
+
var alignClasses = [];
|
|
5513
|
+
|
|
5514
|
+
if (align) {
|
|
5515
|
+
if (typeof align === 'object') {
|
|
5516
|
+
var keys = Object.keys(align);
|
|
5517
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5518
|
+
|
|
5519
|
+
if (keys.length) {
|
|
5520
|
+
var brkPoint = keys[0];
|
|
5521
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5522
|
+
// left in addition to align left classes.
|
|
5523
|
+
// Reuse alignRight to toggle the class below.
|
|
5524
|
+
|
|
5525
|
+
alignRight = direction === 'left';
|
|
5526
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5527
|
+
}
|
|
5528
|
+
} else if (align === 'right') {
|
|
5529
|
+
alignRight = true;
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5453
5533
|
var _ref2 = useDropdownMenu({
|
|
5454
5534
|
flip: flip,
|
|
5455
5535
|
rootCloseEvent: rootCloseEvent,
|
|
5456
5536
|
show: showProps,
|
|
5457
5537
|
alignEnd: alignRight,
|
|
5458
|
-
usePopper: !isNavbar,
|
|
5459
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5538
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5539
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5460
5540
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5461
5541
|
})
|
|
5462
5542
|
}),
|
|
@@ -5479,12 +5559,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5479
5559
|
if (placement) {
|
|
5480
5560
|
// we don't need the default popper style,
|
|
5481
5561
|
// menus are display: none when not shown.
|
|
5482
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5562
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5483
5563
|
props['x-placement'] = placement;
|
|
5484
5564
|
}
|
|
5485
5565
|
|
|
5486
|
-
return /*#__PURE__*/React__default
|
|
5487
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5566
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, menuProps, {
|
|
5567
|
+
className: index$5.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5488
5568
|
}));
|
|
5489
5569
|
});
|
|
5490
5570
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5517,15 +5597,14 @@ module.exports = exports['default'];
|
|
|
5517
5597
|
|
|
5518
5598
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5519
5599
|
|
|
5520
|
-
var DropdownToggle$1 = React__default
|
|
5600
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5521
5601
|
var bsPrefix = _ref.bsPrefix,
|
|
5522
5602
|
split = _ref.split,
|
|
5523
5603
|
className = _ref.className,
|
|
5524
|
-
children = _ref.children,
|
|
5525
5604
|
childBsPrefix = _ref.childBsPrefix,
|
|
5526
5605
|
_ref$as = _ref.as,
|
|
5527
5606
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5528
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5607
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5529
5608
|
|
|
5530
5609
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5531
5610
|
|
|
@@ -5540,10 +5619,10 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5540
5619
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5541
5620
|
// underlying component, to allow it to render size and style variants.
|
|
5542
5621
|
|
|
5543
|
-
return /*#__PURE__*/React__default
|
|
5622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5544
5623
|
onClick: toggle,
|
|
5545
|
-
className: classnames(className, prefix, split && prefix + "-split")
|
|
5546
|
-
}, toggleProps, props)
|
|
5624
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5625
|
+
}, toggleProps, props));
|
|
5547
5626
|
});
|
|
5548
5627
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5549
5628
|
|
|
@@ -5563,7 +5642,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5563
5642
|
var defaultProps$g = {
|
|
5564
5643
|
navbar: false
|
|
5565
5644
|
};
|
|
5566
|
-
var Dropdown$1 = React__default
|
|
5645
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5567
5646
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5568
5647
|
show: 'onToggle'
|
|
5569
5648
|
}),
|
|
@@ -5578,7 +5657,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5578
5657
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5579
5658
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5580
5659
|
_4 = _useUncontrolled.navbar,
|
|
5581
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5660
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5582
5661
|
|
|
5583
5662
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5584
5663
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5600,9 +5679,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5600
5679
|
if (onSelect) onSelect(key, event);
|
|
5601
5680
|
handleToggle(false, event, 'select');
|
|
5602
5681
|
});
|
|
5603
|
-
return /*#__PURE__*/React__default
|
|
5682
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5604
5683
|
value: handleSelect
|
|
5605
|
-
}, /*#__PURE__*/React__default
|
|
5684
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5606
5685
|
drop: drop,
|
|
5607
5686
|
show: show,
|
|
5608
5687
|
alignEnd: alignRight,
|
|
@@ -5611,9 +5690,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5611
5690
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5612
5691
|
}, function (_ref) {
|
|
5613
5692
|
var dropdownProps = _ref.props;
|
|
5614
|
-
return /*#__PURE__*/React__default
|
|
5693
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5615
5694
|
ref: ref,
|
|
5616
|
-
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5695
|
+
className: index$5.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5617
5696
|
}));
|
|
5618
5697
|
}));
|
|
5619
5698
|
});
|
|
@@ -5632,41 +5711,50 @@ var propTypes$5 = {
|
|
|
5632
5711
|
* @type {string|number}
|
|
5633
5712
|
* @required
|
|
5634
5713
|
*/
|
|
5635
|
-
id: PropTypes__default
|
|
5714
|
+
id: PropTypes__default.any,
|
|
5636
5715
|
|
|
5637
5716
|
/** An `href` passed to the Toggle component */
|
|
5638
|
-
href: PropTypes__default
|
|
5717
|
+
href: PropTypes__default.string,
|
|
5639
5718
|
|
|
5640
5719
|
/** An `onClick` handler passed to the Toggle component */
|
|
5641
|
-
onClick: PropTypes__default
|
|
5720
|
+
onClick: PropTypes__default.func,
|
|
5642
5721
|
|
|
5643
5722
|
/** The content of the non-toggle Button. */
|
|
5644
|
-
title: PropTypes__default
|
|
5723
|
+
title: PropTypes__default.node.isRequired,
|
|
5645
5724
|
|
|
5646
5725
|
/** Disables both Buttons */
|
|
5647
|
-
disabled: PropTypes__default
|
|
5726
|
+
disabled: PropTypes__default.bool,
|
|
5727
|
+
|
|
5728
|
+
/**
|
|
5729
|
+
* Aligns the dropdown menu responsively.
|
|
5730
|
+
*
|
|
5731
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5732
|
+
*
|
|
5733
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5734
|
+
*/
|
|
5735
|
+
menuAlign: alignPropType,
|
|
5648
5736
|
|
|
5649
5737
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5650
|
-
menuRole: PropTypes__default
|
|
5738
|
+
menuRole: PropTypes__default.string,
|
|
5651
5739
|
|
|
5652
5740
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5653
|
-
renderMenuOnMount: PropTypes__default
|
|
5741
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5654
5742
|
|
|
5655
5743
|
/**
|
|
5656
5744
|
* Which event when fired outside the component will cause it to be closed.
|
|
5657
5745
|
*
|
|
5658
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5746
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5659
5747
|
*/
|
|
5660
|
-
rootCloseEvent: PropTypes__default
|
|
5748
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5661
5749
|
|
|
5662
5750
|
/** @ignore */
|
|
5663
|
-
bsPrefix: PropTypes__default
|
|
5751
|
+
bsPrefix: PropTypes__default.string,
|
|
5664
5752
|
|
|
5665
5753
|
/** @ignore */
|
|
5666
|
-
variant: PropTypes__default
|
|
5754
|
+
variant: PropTypes__default.string,
|
|
5667
5755
|
|
|
5668
5756
|
/** @ignore */
|
|
5669
|
-
size: PropTypes__default
|
|
5757
|
+
size: PropTypes__default.string
|
|
5670
5758
|
};
|
|
5671
5759
|
/**
|
|
5672
5760
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5677,30 +5765,32 @@ var propTypes$5 = {
|
|
|
5677
5765
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5678
5766
|
*/
|
|
5679
5767
|
|
|
5680
|
-
var DropdownButton = React__default
|
|
5768
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5681
5769
|
var title = _ref.title,
|
|
5682
5770
|
children = _ref.children,
|
|
5683
5771
|
bsPrefix = _ref.bsPrefix,
|
|
5684
5772
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5685
5773
|
variant = _ref.variant,
|
|
5686
5774
|
size = _ref.size,
|
|
5775
|
+
menuAlign = _ref.menuAlign,
|
|
5687
5776
|
menuRole = _ref.menuRole,
|
|
5688
5777
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5689
5778
|
disabled = _ref.disabled,
|
|
5690
5779
|
href = _ref.href,
|
|
5691
5780
|
id = _ref.id,
|
|
5692
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5781
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5693
5782
|
|
|
5694
|
-
return /*#__PURE__*/React__default
|
|
5783
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5695
5784
|
ref: ref
|
|
5696
|
-
}, props), /*#__PURE__*/React__default
|
|
5785
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5697
5786
|
id: id,
|
|
5698
5787
|
href: href,
|
|
5699
5788
|
size: size,
|
|
5700
5789
|
variant: variant,
|
|
5701
5790
|
disabled: disabled,
|
|
5702
5791
|
childBsPrefix: bsPrefix
|
|
5703
|
-
}, title), /*#__PURE__*/React__default
|
|
5792
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5793
|
+
align: menuAlign,
|
|
5704
5794
|
role: menuRole,
|
|
5705
5795
|
renderOnMount: renderMenuOnMount,
|
|
5706
5796
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5808,13 +5898,13 @@ var propTypes$6 = {
|
|
|
5808
5898
|
*
|
|
5809
5899
|
* @type {('valid'|'invalid')}
|
|
5810
5900
|
*/
|
|
5811
|
-
type: PropTypes__default
|
|
5901
|
+
type: PropTypes__default.string,
|
|
5812
5902
|
|
|
5813
5903
|
/** Display feedback as a tooltip. */
|
|
5814
|
-
tooltip: PropTypes__default
|
|
5815
|
-
as: PropTypes__default
|
|
5904
|
+
tooltip: PropTypes__default.bool,
|
|
5905
|
+
as: PropTypes__default.elementType
|
|
5816
5906
|
};
|
|
5817
|
-
var Feedback = React__default
|
|
5907
|
+
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
|
|
5818
5908
|
function (_ref, ref) {
|
|
5819
5909
|
var _ref$as = _ref.as,
|
|
5820
5910
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5823,21 +5913,21 @@ function (_ref, ref) {
|
|
|
5823
5913
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5824
5914
|
_ref$tooltip = _ref.tooltip,
|
|
5825
5915
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5826
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5916
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5827
5917
|
|
|
5828
|
-
return /*#__PURE__*/React__default
|
|
5918
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5829
5919
|
ref: ref,
|
|
5830
|
-
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5920
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5831
5921
|
}));
|
|
5832
5922
|
});
|
|
5833
5923
|
Feedback.displayName = 'Feedback';
|
|
5834
5924
|
Feedback.propTypes = propTypes$6;
|
|
5835
5925
|
|
|
5836
|
-
var FormContext = React__default
|
|
5926
|
+
var FormContext = React__default.createContext({
|
|
5837
5927
|
controlId: undefined
|
|
5838
5928
|
});
|
|
5839
5929
|
|
|
5840
|
-
var FormCheckInput = React__default
|
|
5930
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5841
5931
|
var id = _ref.id,
|
|
5842
5932
|
bsPrefix = _ref.bsPrefix,
|
|
5843
5933
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5851,7 +5941,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5851
5941
|
isStatic = _ref.isStatic,
|
|
5852
5942
|
_ref$as = _ref.as,
|
|
5853
5943
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5854
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5944
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5855
5945
|
|
|
5856
5946
|
var _useContext = React.useContext(FormContext),
|
|
5857
5947
|
controlId = _useContext.controlId,
|
|
@@ -5862,21 +5952,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5862
5952
|
defaultPrefix = _ref2[1];
|
|
5863
5953
|
|
|
5864
5954
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5865
|
-
return /*#__PURE__*/React__default
|
|
5955
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5866
5956
|
ref: ref,
|
|
5867
5957
|
type: type,
|
|
5868
5958
|
id: id || controlId,
|
|
5869
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5959
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5870
5960
|
}));
|
|
5871
5961
|
});
|
|
5872
5962
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5873
5963
|
|
|
5874
|
-
var FormCheckLabel = React__default
|
|
5964
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5875
5965
|
var bsPrefix = _ref.bsPrefix,
|
|
5876
5966
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5877
5967
|
className = _ref.className,
|
|
5878
5968
|
htmlFor = _ref.htmlFor,
|
|
5879
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5969
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5880
5970
|
|
|
5881
5971
|
var _useContext = React.useContext(FormContext),
|
|
5882
5972
|
controlId = _useContext.controlId,
|
|
@@ -5887,15 +5977,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5887
5977
|
defaultPrefix = _ref2[1];
|
|
5888
5978
|
|
|
5889
5979
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5890
|
-
return /*#__PURE__*/React__default
|
|
5980
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5891
5981
|
ref: ref,
|
|
5892
5982
|
htmlFor: htmlFor || controlId,
|
|
5893
|
-
className: classnames(className, bsPrefix)
|
|
5983
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5894
5984
|
}));
|
|
5895
5985
|
});
|
|
5896
5986
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5897
5987
|
|
|
5898
|
-
var FormCheck = React__default
|
|
5988
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5899
5989
|
var id = _ref.id,
|
|
5900
5990
|
bsPrefix = _ref.bsPrefix,
|
|
5901
5991
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5921,7 +6011,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5921
6011
|
propCustom = _ref.custom,
|
|
5922
6012
|
_ref$as = _ref.as,
|
|
5923
6013
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5924
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6014
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5925
6015
|
|
|
5926
6016
|
var custom = type === 'switch' ? true : propCustom;
|
|
5927
6017
|
|
|
@@ -5940,8 +6030,8 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5940
6030
|
custom: custom
|
|
5941
6031
|
};
|
|
5942
6032
|
}, [controlId, custom, id]);
|
|
5943
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5944
|
-
var input = /*#__PURE__*/React__default
|
|
6033
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6034
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
5945
6035
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5946
6036
|
ref: ref,
|
|
5947
6037
|
isValid: isValid,
|
|
@@ -5950,14 +6040,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5950
6040
|
disabled: disabled,
|
|
5951
6041
|
as: as
|
|
5952
6042
|
}));
|
|
5953
|
-
return /*#__PURE__*/React__default
|
|
6043
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5954
6044
|
value: innerFormContext
|
|
5955
|
-
}, /*#__PURE__*/React__default
|
|
6045
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5956
6046
|
style: style,
|
|
5957
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5958
|
-
}, children || /*#__PURE__*/React__default
|
|
6047
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6048
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5959
6049
|
title: title
|
|
5960
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6050
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5961
6051
|
type: isValid ? 'valid' : 'invalid',
|
|
5962
6052
|
tooltip: feedbackTooltip
|
|
5963
6053
|
}, feedback))));
|
|
@@ -5966,7 +6056,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5966
6056
|
FormCheck.Input = FormCheckInput;
|
|
5967
6057
|
FormCheck.Label = FormCheckLabel;
|
|
5968
6058
|
|
|
5969
|
-
var FormFileInput = React__default
|
|
6059
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
5970
6060
|
var id = _ref.id,
|
|
5971
6061
|
bsPrefix = _ref.bsPrefix,
|
|
5972
6062
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5976,7 +6066,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5976
6066
|
lang = _ref.lang,
|
|
5977
6067
|
_ref$as = _ref.as,
|
|
5978
6068
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5979
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6069
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
5980
6070
|
|
|
5981
6071
|
var _useContext = React.useContext(FormContext),
|
|
5982
6072
|
controlId = _useContext.controlId,
|
|
@@ -5989,22 +6079,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5989
6079
|
defaultPrefix = _ref2[1];
|
|
5990
6080
|
|
|
5991
6081
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5992
|
-
return /*#__PURE__*/React__default
|
|
6082
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5993
6083
|
ref: ref,
|
|
5994
6084
|
id: id || controlId,
|
|
5995
6085
|
type: type,
|
|
5996
6086
|
lang: lang,
|
|
5997
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6087
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
5998
6088
|
}));
|
|
5999
6089
|
});
|
|
6000
6090
|
FormFileInput.displayName = 'FormFileInput';
|
|
6001
6091
|
|
|
6002
|
-
var FormFileLabel = React__default
|
|
6092
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6003
6093
|
var bsPrefix = _ref.bsPrefix,
|
|
6004
6094
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6005
6095
|
className = _ref.className,
|
|
6006
6096
|
htmlFor = _ref.htmlFor,
|
|
6007
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6097
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6008
6098
|
|
|
6009
6099
|
var _useContext = React.useContext(FormContext),
|
|
6010
6100
|
controlId = _useContext.controlId,
|
|
@@ -6015,16 +6105,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6015
6105
|
defaultPrefix = _ref2[1];
|
|
6016
6106
|
|
|
6017
6107
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6018
|
-
return /*#__PURE__*/React__default
|
|
6108
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6019
6109
|
ref: ref,
|
|
6020
6110
|
htmlFor: htmlFor || controlId,
|
|
6021
|
-
className: classnames(className, bsPrefix),
|
|
6111
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6022
6112
|
"data-browse": props['data-browse']
|
|
6023
6113
|
}));
|
|
6024
6114
|
});
|
|
6025
6115
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6026
6116
|
|
|
6027
|
-
var FormFile = React__default
|
|
6117
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6028
6118
|
var id = _ref.id,
|
|
6029
6119
|
bsPrefix = _ref.bsPrefix,
|
|
6030
6120
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6048,7 +6138,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6048
6138
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6049
6139
|
_ref$inputAs = _ref.inputAs,
|
|
6050
6140
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6051
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6141
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6052
6142
|
|
|
6053
6143
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6054
6144
|
prefix = _ref2[0],
|
|
@@ -6067,7 +6157,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6067
6157
|
};
|
|
6068
6158
|
}, [controlId, custom, id]);
|
|
6069
6159
|
var hasLabel = label != null && label !== false && !children;
|
|
6070
|
-
var input = /*#__PURE__*/React__default
|
|
6160
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6071
6161
|
ref: ref,
|
|
6072
6162
|
isValid: isValid,
|
|
6073
6163
|
isInvalid: isInvalid,
|
|
@@ -6075,14 +6165,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6075
6165
|
as: inputAs,
|
|
6076
6166
|
lang: lang
|
|
6077
6167
|
}));
|
|
6078
|
-
return /*#__PURE__*/React__default
|
|
6168
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6079
6169
|
value: innerFormContext
|
|
6080
|
-
}, /*#__PURE__*/React__default
|
|
6170
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6081
6171
|
style: style,
|
|
6082
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6083
|
-
}, children || /*#__PURE__*/React__default
|
|
6172
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6173
|
+
}, 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, {
|
|
6084
6174
|
"data-browse": dataBrowse
|
|
6085
|
-
}, label)) : /*#__PURE__*/React__default
|
|
6175
|
+
}, 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, {
|
|
6086
6176
|
type: isValid ? 'valid' : 'invalid',
|
|
6087
6177
|
tooltip: feedbackTooltip
|
|
6088
6178
|
}, feedback))));
|
|
@@ -6091,7 +6181,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6091
6181
|
FormFile.Input = FormFileInput;
|
|
6092
6182
|
FormFile.Label = FormFileLabel;
|
|
6093
6183
|
|
|
6094
|
-
var FormControl = React__default
|
|
6184
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6095
6185
|
var bsPrefix = _ref.bsPrefix,
|
|
6096
6186
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6097
6187
|
type = _ref.type,
|
|
@@ -6108,7 +6198,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6108
6198
|
custom = _ref.custom,
|
|
6109
6199
|
_ref$as = _ref.as,
|
|
6110
6200
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6111
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6201
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6112
6202
|
|
|
6113
6203
|
var _useContext = React.useContext(FormContext),
|
|
6114
6204
|
controlId = _useContext.controlId;
|
|
@@ -6143,13 +6233,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6143
6233
|
}
|
|
6144
6234
|
|
|
6145
6235
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6146
|
-
return /*#__PURE__*/React__default
|
|
6236
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6147
6237
|
type: type,
|
|
6148
6238
|
size: htmlSize,
|
|
6149
6239
|
ref: ref,
|
|
6150
6240
|
readOnly: readOnly,
|
|
6151
6241
|
id: id || controlId,
|
|
6152
|
-
className: classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6242
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6153
6243
|
}));
|
|
6154
6244
|
});
|
|
6155
6245
|
FormControl.displayName = 'FormControl';
|
|
@@ -6157,14 +6247,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6157
6247
|
Feedback: Feedback
|
|
6158
6248
|
});
|
|
6159
6249
|
|
|
6160
|
-
var FormGroup = React__default
|
|
6250
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6161
6251
|
var bsPrefix = _ref.bsPrefix,
|
|
6162
6252
|
className = _ref.className,
|
|
6163
6253
|
children = _ref.children,
|
|
6164
6254
|
controlId = _ref.controlId,
|
|
6165
6255
|
_ref$as = _ref.as,
|
|
6166
6256
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6167
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6257
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6168
6258
|
|
|
6169
6259
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6170
6260
|
var context = React.useMemo(function () {
|
|
@@ -6172,11 +6262,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6172
6262
|
controlId: controlId
|
|
6173
6263
|
};
|
|
6174
6264
|
}, [controlId]);
|
|
6175
|
-
return /*#__PURE__*/React__default
|
|
6265
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6176
6266
|
value: context
|
|
6177
|
-
}, /*#__PURE__*/React__default
|
|
6267
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6178
6268
|
ref: ref,
|
|
6179
|
-
className: classnames(className, bsPrefix)
|
|
6269
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6180
6270
|
}), children));
|
|
6181
6271
|
});
|
|
6182
6272
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6185,7 +6275,7 @@ var defaultProps$h = {
|
|
|
6185
6275
|
column: false,
|
|
6186
6276
|
srOnly: false
|
|
6187
6277
|
};
|
|
6188
|
-
var FormLabel = React__default
|
|
6278
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6189
6279
|
var _ref$as = _ref.as,
|
|
6190
6280
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6191
6281
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6193,18 +6283,18 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6193
6283
|
srOnly = _ref.srOnly,
|
|
6194
6284
|
className = _ref.className,
|
|
6195
6285
|
htmlFor = _ref.htmlFor,
|
|
6196
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6286
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6197
6287
|
|
|
6198
6288
|
var _useContext = React.useContext(FormContext),
|
|
6199
6289
|
controlId = _useContext.controlId;
|
|
6200
6290
|
|
|
6201
6291
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6202
6292
|
var columnClass = 'col-form-label';
|
|
6203
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6204
|
-
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6293
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6294
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6205
6295
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6206
6296
|
htmlFor = htmlFor || controlId;
|
|
6207
|
-
if (column) return /*#__PURE__*/React__default
|
|
6297
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6208
6298
|
as: "label",
|
|
6209
6299
|
className: classes,
|
|
6210
6300
|
htmlFor: htmlFor
|
|
@@ -6212,7 +6302,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6212
6302
|
return (
|
|
6213
6303
|
/*#__PURE__*/
|
|
6214
6304
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6215
|
-
React__default
|
|
6305
|
+
React__default.createElement(Component, index$5._extends({
|
|
6216
6306
|
ref: ref,
|
|
6217
6307
|
className: classes,
|
|
6218
6308
|
htmlFor: htmlFor
|
|
@@ -6222,25 +6312,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6222
6312
|
FormLabel.displayName = 'FormLabel';
|
|
6223
6313
|
FormLabel.defaultProps = defaultProps$h;
|
|
6224
6314
|
|
|
6225
|
-
var FormText = React__default
|
|
6315
|
+
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
|
|
6226
6316
|
function (_ref, ref) {
|
|
6227
6317
|
var bsPrefix = _ref.bsPrefix,
|
|
6228
6318
|
className = _ref.className,
|
|
6229
6319
|
_ref$as = _ref.as,
|
|
6230
6320
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6231
6321
|
muted = _ref.muted,
|
|
6232
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6322
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6233
6323
|
|
|
6234
6324
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6235
|
-
return /*#__PURE__*/React__default
|
|
6325
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6236
6326
|
ref: ref,
|
|
6237
|
-
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6327
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6238
6328
|
}));
|
|
6239
6329
|
});
|
|
6240
6330
|
FormText.displayName = 'FormText';
|
|
6241
6331
|
|
|
6242
|
-
var Switch = React__default
|
|
6243
|
-
return /*#__PURE__*/React__default
|
|
6332
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6333
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6244
6334
|
ref: ref,
|
|
6245
6335
|
type: "switch"
|
|
6246
6336
|
}));
|
|
@@ -6253,19 +6343,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6253
6343
|
var defaultProps$i = {
|
|
6254
6344
|
inline: false
|
|
6255
6345
|
};
|
|
6256
|
-
var FormImpl = React__default
|
|
6346
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6257
6347
|
var bsPrefix = _ref.bsPrefix,
|
|
6258
6348
|
inline = _ref.inline,
|
|
6259
6349
|
className = _ref.className,
|
|
6260
6350
|
validated = _ref.validated,
|
|
6261
6351
|
_ref$as = _ref.as,
|
|
6262
6352
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6263
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6353
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6264
6354
|
|
|
6265
6355
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6266
|
-
return /*#__PURE__*/React__default
|
|
6356
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6267
6357
|
ref: ref,
|
|
6268
|
-
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6358
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6269
6359
|
}));
|
|
6270
6360
|
});
|
|
6271
6361
|
FormImpl.displayName = 'Form';
|
|
@@ -6282,20 +6372,20 @@ FormImpl.Text = FormText;
|
|
|
6282
6372
|
var defaultProps$j = {
|
|
6283
6373
|
fluid: false
|
|
6284
6374
|
};
|
|
6285
|
-
var Container = React__default
|
|
6375
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6286
6376
|
var bsPrefix = _ref.bsPrefix,
|
|
6287
6377
|
fluid = _ref.fluid,
|
|
6288
6378
|
_ref$as = _ref.as,
|
|
6289
6379
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6290
6380
|
className = _ref.className,
|
|
6291
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6381
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6292
6382
|
|
|
6293
6383
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6294
6384
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6295
|
-
return /*#__PURE__*/React__default
|
|
6385
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6296
6386
|
ref: ref
|
|
6297
6387
|
}, props, {
|
|
6298
|
-
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6388
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6299
6389
|
}));
|
|
6300
6390
|
});
|
|
6301
6391
|
Container.displayName = 'Container';
|
|
@@ -6305,27 +6395,27 @@ var propTypes$7 = {
|
|
|
6305
6395
|
/**
|
|
6306
6396
|
* @default 'img'
|
|
6307
6397
|
*/
|
|
6308
|
-
bsPrefix: PropTypes__default
|
|
6398
|
+
bsPrefix: PropTypes__default.string,
|
|
6309
6399
|
|
|
6310
6400
|
/**
|
|
6311
6401
|
* Sets image as fluid image.
|
|
6312
6402
|
*/
|
|
6313
|
-
fluid: PropTypes__default
|
|
6403
|
+
fluid: PropTypes__default.bool,
|
|
6314
6404
|
|
|
6315
6405
|
/**
|
|
6316
6406
|
* Sets image shape as rounded.
|
|
6317
6407
|
*/
|
|
6318
|
-
rounded: PropTypes__default
|
|
6408
|
+
rounded: PropTypes__default.bool,
|
|
6319
6409
|
|
|
6320
6410
|
/**
|
|
6321
6411
|
* Sets image shape as circle.
|
|
6322
6412
|
*/
|
|
6323
|
-
roundedCircle: PropTypes__default
|
|
6413
|
+
roundedCircle: PropTypes__default.bool,
|
|
6324
6414
|
|
|
6325
6415
|
/**
|
|
6326
6416
|
* Sets image shape as thumbnail.
|
|
6327
6417
|
*/
|
|
6328
|
-
thumbnail: PropTypes__default
|
|
6418
|
+
thumbnail: PropTypes__default.bool
|
|
6329
6419
|
};
|
|
6330
6420
|
var defaultProps$k = {
|
|
6331
6421
|
fluid: false,
|
|
@@ -6333,22 +6423,22 @@ var defaultProps$k = {
|
|
|
6333
6423
|
roundedCircle: false,
|
|
6334
6424
|
thumbnail: false
|
|
6335
6425
|
};
|
|
6336
|
-
var Image = React__default
|
|
6426
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6337
6427
|
var bsPrefix = _ref.bsPrefix,
|
|
6338
6428
|
className = _ref.className,
|
|
6339
6429
|
fluid = _ref.fluid,
|
|
6340
6430
|
rounded = _ref.rounded,
|
|
6341
6431
|
roundedCircle = _ref.roundedCircle,
|
|
6342
6432
|
thumbnail = _ref.thumbnail,
|
|
6343
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6433
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6344
6434
|
|
|
6345
6435
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6346
|
-
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6347
|
-
return /*#__PURE__*/React__default
|
|
6436
|
+
var classes = index$5.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6437
|
+
return /*#__PURE__*/React__default.createElement("img", index$5._extends({
|
|
6348
6438
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6349
6439
|
ref: ref
|
|
6350
6440
|
}, props, {
|
|
6351
|
-
className: classnames(className, classes)
|
|
6441
|
+
className: index$5.classnames(className, classes)
|
|
6352
6442
|
}));
|
|
6353
6443
|
});
|
|
6354
6444
|
Image.displayName = 'Image';
|
|
@@ -6357,14 +6447,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6357
6447
|
var defaultProps$l = {
|
|
6358
6448
|
fluid: true
|
|
6359
6449
|
};
|
|
6360
|
-
var FigureImage = React__default
|
|
6450
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6361
6451
|
var className = _ref.className,
|
|
6362
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6452
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6363
6453
|
|
|
6364
|
-
return /*#__PURE__*/React__default
|
|
6454
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6365
6455
|
ref: ref
|
|
6366
6456
|
}, props, {
|
|
6367
|
-
className: classnames(className, 'figure-img')
|
|
6457
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6368
6458
|
}));
|
|
6369
6459
|
});
|
|
6370
6460
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6388,13 +6478,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6388
6478
|
});
|
|
6389
6479
|
|
|
6390
6480
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6391
|
-
return /*#__PURE__*/React__default
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6392
6482
|
type: "checkbox"
|
|
6393
6483
|
}, props)));
|
|
6394
6484
|
};
|
|
6395
6485
|
|
|
6396
6486
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6397
|
-
return /*#__PURE__*/React__default
|
|
6487
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6398
6488
|
type: "radio"
|
|
6399
6489
|
}, props)));
|
|
6400
6490
|
};
|
|
@@ -6407,24 +6497,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6407
6497
|
* @property {InputGroupRadio} Radio
|
|
6408
6498
|
* @property {InputGroupCheckbox} Checkbox
|
|
6409
6499
|
*/
|
|
6410
|
-
var InputGroup = React__default
|
|
6500
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6411
6501
|
var bsPrefix = _ref.bsPrefix,
|
|
6412
6502
|
size = _ref.size,
|
|
6413
6503
|
className = _ref.className,
|
|
6414
6504
|
_ref$as = _ref.as,
|
|
6415
6505
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6416
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6506
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6417
6507
|
|
|
6418
6508
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6419
|
-
return /*#__PURE__*/React__default
|
|
6509
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6420
6510
|
ref: ref
|
|
6421
6511
|
}, props, {
|
|
6422
|
-
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6512
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6423
6513
|
}));
|
|
6424
6514
|
});
|
|
6425
6515
|
InputGroup.displayName = 'InputGroup';
|
|
6426
6516
|
|
|
6427
|
-
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6517
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6428
6518
|
Text: InputGroupText,
|
|
6429
6519
|
Radio: InputGroupRadio,
|
|
6430
6520
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6435,7 +6525,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6435
6525
|
var defaultProps$m = {
|
|
6436
6526
|
fluid: false
|
|
6437
6527
|
};
|
|
6438
|
-
var Jumbotron = React__default
|
|
6528
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6439
6529
|
var _classes;
|
|
6440
6530
|
|
|
6441
6531
|
var _ref$as = _ref.as,
|
|
@@ -6443,32 +6533,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6443
6533
|
className = _ref.className,
|
|
6444
6534
|
fluid = _ref.fluid,
|
|
6445
6535
|
bsPrefix = _ref.bsPrefix,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6536
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6447
6537
|
|
|
6448
6538
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6449
6539
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6450
|
-
return /*#__PURE__*/React__default
|
|
6540
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6451
6541
|
ref: ref
|
|
6452
6542
|
}, props, {
|
|
6453
|
-
className: classnames(className, classes)
|
|
6543
|
+
className: index$5.classnames(className, classes)
|
|
6454
6544
|
}));
|
|
6455
6545
|
});
|
|
6456
6546
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6457
6547
|
Jumbotron.displayName = 'Jumbotron';
|
|
6458
6548
|
|
|
6459
|
-
var TabContext = React__default
|
|
6549
|
+
var TabContext = React__default.createContext(null);
|
|
6460
6550
|
|
|
6461
6551
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6462
6552
|
var noop$4 = function noop() {};
|
|
6463
6553
|
|
|
6464
|
-
var AbstractNav = React__default
|
|
6554
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6465
6555
|
var _ref$as = _ref.as,
|
|
6466
6556
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6467
6557
|
onSelect = _ref.onSelect,
|
|
6468
6558
|
activeKey = _ref.activeKey,
|
|
6469
6559
|
role = _ref.role,
|
|
6470
6560
|
onKeyDown = _ref.onKeyDown,
|
|
6471
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6561
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6472
6562
|
|
|
6473
6563
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6474
6564
|
// and don't want to reset the set in the effect
|
|
@@ -6542,9 +6632,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6542
6632
|
needsRefocusRef.current = false;
|
|
6543
6633
|
});
|
|
6544
6634
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6545
|
-
return /*#__PURE__*/React__default
|
|
6635
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6546
6636
|
value: handleSelect
|
|
6547
|
-
}, /*#__PURE__*/React__default
|
|
6637
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6548
6638
|
value: {
|
|
6549
6639
|
role: role,
|
|
6550
6640
|
// used by NavLink to determine it's role
|
|
@@ -6552,7 +6642,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6552
6642
|
getControlledId: getControlledId || noop$4,
|
|
6553
6643
|
getControllerId: getControllerId || noop$4
|
|
6554
6644
|
}
|
|
6555
|
-
}, /*#__PURE__*/React__default
|
|
6645
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6556
6646
|
onKeyDown: handleKeyDown,
|
|
6557
6647
|
ref: mergedRef,
|
|
6558
6648
|
role: role
|
|
@@ -6562,14 +6652,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6562
6652
|
var defaultProps$n = {
|
|
6563
6653
|
disabled: false
|
|
6564
6654
|
};
|
|
6565
|
-
var AbstractNavItem = React__default
|
|
6655
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6566
6656
|
var active = _ref.active,
|
|
6567
6657
|
className = _ref.className,
|
|
6568
6658
|
eventKey = _ref.eventKey,
|
|
6569
6659
|
onSelect = _ref.onSelect,
|
|
6570
6660
|
onClick = _ref.onClick,
|
|
6571
6661
|
Component = _ref.as,
|
|
6572
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6662
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6573
6663
|
|
|
6574
6664
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6575
6665
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6599,10 +6689,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6599
6689
|
if (onSelect) onSelect(navKey, e);
|
|
6600
6690
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6601
6691
|
});
|
|
6602
|
-
return /*#__PURE__*/React__default
|
|
6692
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6603
6693
|
ref: ref,
|
|
6604
6694
|
onClick: handleOnclick,
|
|
6605
|
-
className: classnames(className, isActive && 'active')
|
|
6695
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6606
6696
|
}));
|
|
6607
6697
|
});
|
|
6608
6698
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6612,7 +6702,7 @@ var defaultProps$o = {
|
|
|
6612
6702
|
active: false,
|
|
6613
6703
|
disabled: false
|
|
6614
6704
|
};
|
|
6615
|
-
var ListGroupItem = React__default
|
|
6705
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6616
6706
|
var bsPrefix = _ref.bsPrefix,
|
|
6617
6707
|
active = _ref.active,
|
|
6618
6708
|
disabled = _ref.disabled,
|
|
@@ -6622,7 +6712,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6622
6712
|
as = _ref.as,
|
|
6623
6713
|
eventKey = _ref.eventKey,
|
|
6624
6714
|
onClick = _ref.onClick,
|
|
6625
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6715
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6626
6716
|
|
|
6627
6717
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6628
6718
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6634,14 +6724,15 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6634
6724
|
|
|
6635
6725
|
if (onClick) onClick(event);
|
|
6636
6726
|
}, [disabled, onClick]);
|
|
6637
|
-
return /*#__PURE__*/React__default
|
|
6727
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6638
6728
|
ref: ref
|
|
6639
6729
|
}, props, {
|
|
6640
|
-
|
|
6730
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6731
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6641
6732
|
,
|
|
6642
6733
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6643
6734
|
onClick: handleClick,
|
|
6644
|
-
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6735
|
+
className: index$5.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6645
6736
|
}));
|
|
6646
6737
|
});
|
|
6647
6738
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6651,7 +6742,7 @@ var defaultProps$p = {
|
|
|
6651
6742
|
variant: undefined,
|
|
6652
6743
|
horizontal: undefined
|
|
6653
6744
|
};
|
|
6654
|
-
var ListGroup = React__default
|
|
6745
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6655
6746
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6656
6747
|
activeKey: 'onSelect'
|
|
6657
6748
|
}),
|
|
@@ -6661,7 +6752,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6661
6752
|
horizontal = _useUncontrolled.horizontal,
|
|
6662
6753
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6663
6754
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6664
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6755
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6665
6756
|
|
|
6666
6757
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6667
6758
|
var horizontalVariant;
|
|
@@ -6673,11 +6764,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6673
6764
|
}
|
|
6674
6765
|
|
|
6675
6766
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6676
|
-
return /*#__PURE__*/React__default
|
|
6767
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6677
6768
|
ref: ref
|
|
6678
6769
|
}, controlledProps, {
|
|
6679
6770
|
as: as,
|
|
6680
|
-
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6771
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6681
6772
|
}));
|
|
6682
6773
|
});
|
|
6683
6774
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6685,18 +6776,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6685
6776
|
ListGroup.Item = ListGroupItem;
|
|
6686
6777
|
|
|
6687
6778
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6688
|
-
var Media = React__default
|
|
6779
|
+
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
|
|
6689
6780
|
function (_ref, ref) {
|
|
6690
6781
|
var bsPrefix = _ref.bsPrefix,
|
|
6691
6782
|
className = _ref.className,
|
|
6692
6783
|
_ref$as = _ref.as,
|
|
6693
6784
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6694
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6785
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6695
6786
|
|
|
6696
6787
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6697
|
-
return /*#__PURE__*/React__default
|
|
6788
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6698
6789
|
ref: ref,
|
|
6699
|
-
className: classnames(className, prefix)
|
|
6790
|
+
className: index$5.classnames(className, prefix)
|
|
6700
6791
|
}));
|
|
6701
6792
|
});
|
|
6702
6793
|
Media.displayName = 'Media';
|
|
@@ -7082,7 +7173,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7082
7173
|
renderDialog = _ref.renderDialog,
|
|
7083
7174
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7084
7175
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7085
|
-
return /*#__PURE__*/React__default
|
|
7176
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7086
7177
|
} : _ref$renderBackdrop,
|
|
7087
7178
|
providedManager = _ref.manager,
|
|
7088
7179
|
containerRef = _ref.container,
|
|
@@ -7240,12 +7331,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7240
7331
|
tabIndex: -1
|
|
7241
7332
|
});
|
|
7242
7333
|
|
|
7243
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default
|
|
7334
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7244
7335
|
role: 'document'
|
|
7245
7336
|
}));
|
|
7246
7337
|
|
|
7247
7338
|
if (Transition) {
|
|
7248
|
-
dialog = /*#__PURE__*/React__default
|
|
7339
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7249
7340
|
appear: true,
|
|
7250
7341
|
unmountOnExit: true,
|
|
7251
7342
|
"in": !!show,
|
|
@@ -7268,20 +7359,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7268
7359
|
});
|
|
7269
7360
|
|
|
7270
7361
|
if (BackdropTransition) {
|
|
7271
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7362
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7272
7363
|
appear: true,
|
|
7273
7364
|
"in": !!show
|
|
7274
7365
|
}, backdropElement);
|
|
7275
7366
|
}
|
|
7276
7367
|
}
|
|
7277
7368
|
|
|
7278
|
-
return /*#__PURE__*/React__default
|
|
7369
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7279
7370
|
});
|
|
7280
7371
|
var propTypes$8 = {
|
|
7281
7372
|
/**
|
|
7282
7373
|
* Set the visibility of the Modal
|
|
7283
7374
|
*/
|
|
7284
|
-
show: PropTypes__default
|
|
7375
|
+
show: PropTypes__default.bool,
|
|
7285
7376
|
|
|
7286
7377
|
/**
|
|
7287
7378
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7289,12 +7380,12 @@ var propTypes$8 = {
|
|
|
7289
7380
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7290
7381
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7291
7382
|
*/
|
|
7292
|
-
container: PropTypes__default
|
|
7383
|
+
container: PropTypes__default.any,
|
|
7293
7384
|
|
|
7294
7385
|
/**
|
|
7295
7386
|
* A callback fired when the Modal is opening.
|
|
7296
7387
|
*/
|
|
7297
|
-
onShow: PropTypes__default
|
|
7388
|
+
onShow: PropTypes__default.func,
|
|
7298
7389
|
|
|
7299
7390
|
/**
|
|
7300
7391
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7302,12 +7393,12 @@ var propTypes$8 = {
|
|
|
7302
7393
|
* The `onHide` callback only signals intent from the Modal,
|
|
7303
7394
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7304
7395
|
*/
|
|
7305
|
-
onHide: PropTypes__default
|
|
7396
|
+
onHide: PropTypes__default.func,
|
|
7306
7397
|
|
|
7307
7398
|
/**
|
|
7308
7399
|
* Include a backdrop component.
|
|
7309
7400
|
*/
|
|
7310
|
-
backdrop: PropTypes__default
|
|
7401
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7311
7402
|
|
|
7312
7403
|
/**
|
|
7313
7404
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7317,7 +7408,7 @@ var propTypes$8 = {
|
|
|
7317
7408
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7318
7409
|
* ```
|
|
7319
7410
|
*/
|
|
7320
|
-
renderDialog: PropTypes__default
|
|
7411
|
+
renderDialog: PropTypes__default.func,
|
|
7321
7412
|
|
|
7322
7413
|
/**
|
|
7323
7414
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7327,42 +7418,42 @@ var propTypes$8 = {
|
|
|
7327
7418
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7328
7419
|
* ```
|
|
7329
7420
|
*/
|
|
7330
|
-
renderBackdrop: PropTypes__default
|
|
7421
|
+
renderBackdrop: PropTypes__default.func,
|
|
7331
7422
|
|
|
7332
7423
|
/**
|
|
7333
7424
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7334
7425
|
*
|
|
7335
7426
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7336
7427
|
*/
|
|
7337
|
-
onEscapeKeyDown: PropTypes__default
|
|
7428
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7338
7429
|
|
|
7339
7430
|
/**
|
|
7340
7431
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7341
7432
|
*/
|
|
7342
|
-
onBackdropClick: PropTypes__default
|
|
7433
|
+
onBackdropClick: PropTypes__default.func,
|
|
7343
7434
|
|
|
7344
7435
|
/**
|
|
7345
7436
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7346
7437
|
* and removed when it is closed.
|
|
7347
7438
|
*/
|
|
7348
|
-
containerClassName: PropTypes__default
|
|
7439
|
+
containerClassName: PropTypes__default.string,
|
|
7349
7440
|
|
|
7350
7441
|
/**
|
|
7351
7442
|
* Close the modal when escape key is pressed
|
|
7352
7443
|
*/
|
|
7353
|
-
keyboard: PropTypes__default
|
|
7444
|
+
keyboard: PropTypes__default.bool,
|
|
7354
7445
|
|
|
7355
7446
|
/**
|
|
7356
7447
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7357
7448
|
* to control animations for the dialog component.
|
|
7358
7449
|
*/
|
|
7359
|
-
transition: PropTypes__default
|
|
7450
|
+
transition: PropTypes__default.elementType,
|
|
7360
7451
|
|
|
7361
7452
|
/**
|
|
7362
7453
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7363
7454
|
* to control animations for the backdrop components.
|
|
7364
7455
|
*/
|
|
7365
|
-
backdropTransition: PropTypes__default
|
|
7456
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7366
7457
|
|
|
7367
7458
|
/**
|
|
7368
7459
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7372,7 +7463,7 @@ var propTypes$8 = {
|
|
|
7372
7463
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7373
7464
|
* accessible to assistive technologies, like screen readers.
|
|
7374
7465
|
*/
|
|
7375
|
-
autoFocus: PropTypes__default
|
|
7466
|
+
autoFocus: PropTypes__default.bool,
|
|
7376
7467
|
|
|
7377
7468
|
/**
|
|
7378
7469
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7380,58 +7471,58 @@ var propTypes$8 = {
|
|
|
7380
7471
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7381
7472
|
* accessible to assistive technologies, like screen readers.
|
|
7382
7473
|
*/
|
|
7383
|
-
enforceFocus: PropTypes__default
|
|
7474
|
+
enforceFocus: PropTypes__default.bool,
|
|
7384
7475
|
|
|
7385
7476
|
/**
|
|
7386
7477
|
* When `true` The modal will restore focus to previously focused element once
|
|
7387
7478
|
* modal is hidden
|
|
7388
7479
|
*/
|
|
7389
|
-
restoreFocus: PropTypes__default
|
|
7480
|
+
restoreFocus: PropTypes__default.bool,
|
|
7390
7481
|
|
|
7391
7482
|
/**
|
|
7392
7483
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7393
7484
|
*
|
|
7394
7485
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7395
7486
|
*/
|
|
7396
|
-
restoreFocusOptions: PropTypes__default
|
|
7397
|
-
preventScroll: PropTypes__default
|
|
7487
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7488
|
+
preventScroll: PropTypes__default.bool
|
|
7398
7489
|
}),
|
|
7399
7490
|
|
|
7400
7491
|
/**
|
|
7401
7492
|
* Callback fired before the Modal transitions in
|
|
7402
7493
|
*/
|
|
7403
|
-
onEnter: PropTypes__default
|
|
7494
|
+
onEnter: PropTypes__default.func,
|
|
7404
7495
|
|
|
7405
7496
|
/**
|
|
7406
7497
|
* Callback fired as the Modal begins to transition in
|
|
7407
7498
|
*/
|
|
7408
|
-
onEntering: PropTypes__default
|
|
7499
|
+
onEntering: PropTypes__default.func,
|
|
7409
7500
|
|
|
7410
7501
|
/**
|
|
7411
7502
|
* Callback fired after the Modal finishes transitioning in
|
|
7412
7503
|
*/
|
|
7413
|
-
onEntered: PropTypes__default
|
|
7504
|
+
onEntered: PropTypes__default.func,
|
|
7414
7505
|
|
|
7415
7506
|
/**
|
|
7416
7507
|
* Callback fired right before the Modal transitions out
|
|
7417
7508
|
*/
|
|
7418
|
-
onExit: PropTypes__default
|
|
7509
|
+
onExit: PropTypes__default.func,
|
|
7419
7510
|
|
|
7420
7511
|
/**
|
|
7421
7512
|
* Callback fired as the Modal begins to transition out
|
|
7422
7513
|
*/
|
|
7423
|
-
onExiting: PropTypes__default
|
|
7514
|
+
onExiting: PropTypes__default.func,
|
|
7424
7515
|
|
|
7425
7516
|
/**
|
|
7426
7517
|
* Callback fired after the Modal finishes transitioning out
|
|
7427
7518
|
*/
|
|
7428
|
-
onExited: PropTypes__default
|
|
7519
|
+
onExited: PropTypes__default.func,
|
|
7429
7520
|
|
|
7430
7521
|
/**
|
|
7431
7522
|
* A ModalManager instance used to track and manage the state of open
|
|
7432
7523
|
* Modals. Useful when customizing how modals interact within a container
|
|
7433
7524
|
*/
|
|
7434
|
-
manager: PropTypes__default
|
|
7525
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7435
7526
|
};
|
|
7436
7527
|
Modal.displayName = 'Modal';
|
|
7437
7528
|
Modal.propTypes = propTypes$8;
|
|
@@ -7514,27 +7605,28 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7514
7605
|
|
|
7515
7606
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7516
7607
|
|
|
7517
|
-
var ModalContext = React__default
|
|
7608
|
+
var ModalContext = React__default.createContext({
|
|
7518
7609
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7519
7610
|
onHide: function onHide() {}
|
|
7520
7611
|
});
|
|
7521
7612
|
|
|
7522
|
-
var ModalDialog = React__default
|
|
7613
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7523
7614
|
var bsPrefix = _ref.bsPrefix,
|
|
7524
7615
|
className = _ref.className,
|
|
7616
|
+
contentClassName = _ref.contentClassName,
|
|
7525
7617
|
centered = _ref.centered,
|
|
7526
7618
|
size = _ref.size,
|
|
7527
7619
|
children = _ref.children,
|
|
7528
7620
|
scrollable = _ref.scrollable,
|
|
7529
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7621
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7530
7622
|
|
|
7531
7623
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7532
7624
|
var dialogClass = bsPrefix + "-dialog";
|
|
7533
|
-
return /*#__PURE__*/React__default
|
|
7625
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7534
7626
|
ref: ref,
|
|
7535
|
-
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7536
|
-
}), /*#__PURE__*/React__default
|
|
7537
|
-
className: bsPrefix + "-content"
|
|
7627
|
+
className: index$5.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7628
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7629
|
+
className: index$5.classnames(bsPrefix + "-content", contentClassName)
|
|
7538
7630
|
}, children));
|
|
7539
7631
|
});
|
|
7540
7632
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7545,14 +7637,14 @@ var defaultProps$q = {
|
|
|
7545
7637
|
closeLabel: 'Close',
|
|
7546
7638
|
closeButton: false
|
|
7547
7639
|
};
|
|
7548
|
-
var ModalHeader = React__default
|
|
7640
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7549
7641
|
var bsPrefix = _ref.bsPrefix,
|
|
7550
7642
|
closeLabel = _ref.closeLabel,
|
|
7551
7643
|
closeButton = _ref.closeButton,
|
|
7552
7644
|
onHide = _ref.onHide,
|
|
7553
7645
|
className = _ref.className,
|
|
7554
7646
|
children = _ref.children,
|
|
7555
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7647
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7556
7648
|
|
|
7557
7649
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7558
7650
|
var context = React.useContext(ModalContext);
|
|
@@ -7560,11 +7652,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7560
7652
|
if (context) context.onHide();
|
|
7561
7653
|
if (onHide) onHide();
|
|
7562
7654
|
});
|
|
7563
|
-
return /*#__PURE__*/React__default
|
|
7655
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7564
7656
|
ref: ref
|
|
7565
7657
|
}, props, {
|
|
7566
|
-
className: classnames(className, bsPrefix)
|
|
7567
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7658
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7659
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7568
7660
|
label: closeLabel,
|
|
7569
7661
|
onClick: handleClick
|
|
7570
7662
|
}));
|
|
@@ -7591,20 +7683,21 @@ var defaultProps$r = {
|
|
|
7591
7683
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7592
7684
|
|
|
7593
7685
|
function DialogTransition(props) {
|
|
7594
|
-
return /*#__PURE__*/React__default
|
|
7686
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7595
7687
|
}
|
|
7596
7688
|
|
|
7597
7689
|
function BackdropTransition(props) {
|
|
7598
|
-
return /*#__PURE__*/React__default
|
|
7690
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7599
7691
|
}
|
|
7600
7692
|
/* eslint-enable no-use-before-define */
|
|
7601
7693
|
|
|
7602
7694
|
|
|
7603
|
-
var Modal$1 = React__default
|
|
7695
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7604
7696
|
var bsPrefix = _ref.bsPrefix,
|
|
7605
7697
|
className = _ref.className,
|
|
7606
7698
|
style = _ref.style,
|
|
7607
7699
|
dialogClassName = _ref.dialogClassName,
|
|
7700
|
+
contentClassName = _ref.contentClassName,
|
|
7608
7701
|
children = _ref.children,
|
|
7609
7702
|
Dialog = _ref.dialogAs,
|
|
7610
7703
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7628,7 +7721,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7628
7721
|
onExited = _ref.onExited,
|
|
7629
7722
|
backdropClassName = _ref.backdropClassName,
|
|
7630
7723
|
propsManager = _ref.manager,
|
|
7631
|
-
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"]);
|
|
7724
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7632
7725
|
|
|
7633
7726
|
var _useState = React.useState({}),
|
|
7634
7727
|
modalStyle = _useState[0],
|
|
@@ -7794,12 +7887,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7794
7887
|
};
|
|
7795
7888
|
|
|
7796
7889
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7797
|
-
return /*#__PURE__*/React__default
|
|
7798
|
-
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7890
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, backdropProps, {
|
|
7891
|
+
className: index$5.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7799
7892
|
}));
|
|
7800
7893
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7801
7894
|
|
|
7802
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7895
|
+
var baseModalStyle = index$5._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7803
7896
|
|
|
7804
7897
|
|
|
7805
7898
|
if (!animation) {
|
|
@@ -7807,24 +7900,25 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7807
7900
|
}
|
|
7808
7901
|
|
|
7809
7902
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7810
|
-
return /*#__PURE__*/React__default
|
|
7903
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7811
7904
|
role: "dialog"
|
|
7812
7905
|
}, dialogProps, {
|
|
7813
7906
|
style: baseModalStyle,
|
|
7814
|
-
className: classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7907
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7815
7908
|
onClick: backdrop ? handleClick : undefined,
|
|
7816
7909
|
onMouseUp: handleMouseUp,
|
|
7817
7910
|
"aria-labelledby": ariaLabelledby
|
|
7818
|
-
}), /*#__PURE__*/React__default
|
|
7911
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7819
7912
|
role: "document",
|
|
7820
7913
|
onMouseDown: handleDialogMouseDown,
|
|
7821
|
-
className: dialogClassName
|
|
7914
|
+
className: dialogClassName,
|
|
7915
|
+
contentClassName: contentClassName
|
|
7822
7916
|
}), children));
|
|
7823
7917
|
};
|
|
7824
7918
|
|
|
7825
|
-
return /*#__PURE__*/React__default
|
|
7919
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7826
7920
|
value: modalContext
|
|
7827
|
-
}, /*#__PURE__*/React__default
|
|
7921
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7828
7922
|
show: show,
|
|
7829
7923
|
ref: setModalRef,
|
|
7830
7924
|
backdrop: backdrop,
|
|
@@ -7862,19 +7956,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7862
7956
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7863
7957
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7864
7958
|
|
|
7865
|
-
var NavItem = React__default
|
|
7959
|
+
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
|
|
7866
7960
|
function (_ref, ref) {
|
|
7867
7961
|
var bsPrefix = _ref.bsPrefix,
|
|
7868
7962
|
className = _ref.className,
|
|
7869
7963
|
children = _ref.children,
|
|
7870
7964
|
_ref$as = _ref.as,
|
|
7871
7965
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7872
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7966
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7873
7967
|
|
|
7874
7968
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7875
|
-
return /*#__PURE__*/React__default
|
|
7969
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7876
7970
|
ref: ref,
|
|
7877
|
-
className: classnames(className, bsPrefix)
|
|
7971
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7878
7972
|
}), children);
|
|
7879
7973
|
});
|
|
7880
7974
|
NavItem.displayName = 'NavItem';
|
|
@@ -7883,7 +7977,7 @@ var defaultProps$s = {
|
|
|
7883
7977
|
disabled: false,
|
|
7884
7978
|
as: SafeAnchor
|
|
7885
7979
|
};
|
|
7886
|
-
var NavLink = React__default
|
|
7980
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7887
7981
|
var bsPrefix = _ref.bsPrefix,
|
|
7888
7982
|
disabled = _ref.disabled,
|
|
7889
7983
|
className = _ref.className,
|
|
@@ -7891,17 +7985,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7891
7985
|
eventKey = _ref.eventKey,
|
|
7892
7986
|
onSelect = _ref.onSelect,
|
|
7893
7987
|
as = _ref.as,
|
|
7894
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7988
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7895
7989
|
|
|
7896
7990
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7897
|
-
return /*#__PURE__*/React__default
|
|
7991
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7898
7992
|
href: href,
|
|
7899
7993
|
ref: ref,
|
|
7900
7994
|
eventKey: eventKey,
|
|
7901
7995
|
as: as,
|
|
7902
7996
|
disabled: disabled,
|
|
7903
7997
|
onSelect: onSelect,
|
|
7904
|
-
className: classnames(className, bsPrefix, disabled && 'disabled')
|
|
7998
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7905
7999
|
}));
|
|
7906
8000
|
});
|
|
7907
8001
|
NavLink.displayName = 'NavLink';
|
|
@@ -7911,7 +8005,7 @@ var defaultProps$t = {
|
|
|
7911
8005
|
justify: false,
|
|
7912
8006
|
fill: false
|
|
7913
8007
|
};
|
|
7914
|
-
var Nav = React__default
|
|
8008
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7915
8009
|
var _classNames;
|
|
7916
8010
|
|
|
7917
8011
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7927,7 +8021,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7927
8021
|
className = _useUncontrolled.className,
|
|
7928
8022
|
children = _useUncontrolled.children,
|
|
7929
8023
|
activeKey = _useUncontrolled.activeKey,
|
|
7930
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8024
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7931
8025
|
|
|
7932
8026
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7933
8027
|
var navbarBsPrefix;
|
|
@@ -7943,11 +8037,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7943
8037
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7944
8038
|
}
|
|
7945
8039
|
|
|
7946
|
-
return /*#__PURE__*/React__default
|
|
8040
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
7947
8041
|
as: as,
|
|
7948
8042
|
ref: ref,
|
|
7949
8043
|
activeKey: activeKey,
|
|
7950
|
-
className: classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
8044
|
+
className: index$5.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
7951
8045
|
}, props), children);
|
|
7952
8046
|
});
|
|
7953
8047
|
Nav.displayName = 'Nav';
|
|
@@ -7955,31 +8049,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7955
8049
|
Nav.Item = NavItem;
|
|
7956
8050
|
Nav.Link = NavLink;
|
|
7957
8051
|
|
|
7958
|
-
var NavbarBrand = React__default
|
|
8052
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7959
8053
|
var bsPrefix = _ref.bsPrefix,
|
|
7960
8054
|
className = _ref.className,
|
|
7961
8055
|
as = _ref.as,
|
|
7962
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8056
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
7963
8057
|
|
|
7964
8058
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7965
8059
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7966
|
-
return /*#__PURE__*/React__default
|
|
8060
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7967
8061
|
ref: ref,
|
|
7968
|
-
className: classnames(className, bsPrefix)
|
|
8062
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7969
8063
|
}));
|
|
7970
8064
|
});
|
|
7971
8065
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
7972
8066
|
|
|
7973
|
-
var NavbarCollapse = React__default
|
|
8067
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
7974
8068
|
var children = _ref.children,
|
|
7975
8069
|
bsPrefix = _ref.bsPrefix,
|
|
7976
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8070
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
7977
8071
|
|
|
7978
8072
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7979
|
-
return /*#__PURE__*/React__default
|
|
7980
|
-
return /*#__PURE__*/React__default
|
|
8073
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8074
|
+
return /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
7981
8075
|
in: !!(context && context.expanded)
|
|
7982
|
-
}, props), /*#__PURE__*/React__default
|
|
8076
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7983
8077
|
ref: ref,
|
|
7984
8078
|
className: bsPrefix
|
|
7985
8079
|
}, children));
|
|
@@ -7990,7 +8084,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
7990
8084
|
var defaultProps$u = {
|
|
7991
8085
|
label: 'Toggle navigation'
|
|
7992
8086
|
};
|
|
7993
|
-
var NavbarToggle = React__default
|
|
8087
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
7994
8088
|
var bsPrefix = _ref.bsPrefix,
|
|
7995
8089
|
className = _ref.className,
|
|
7996
8090
|
children = _ref.children,
|
|
@@ -7998,7 +8092,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7998
8092
|
_ref$as = _ref.as,
|
|
7999
8093
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8000
8094
|
onClick = _ref.onClick,
|
|
8001
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8095
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8002
8096
|
|
|
8003
8097
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8004
8098
|
|
|
@@ -8015,12 +8109,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8015
8109
|
props.type = 'button';
|
|
8016
8110
|
}
|
|
8017
8111
|
|
|
8018
|
-
return /*#__PURE__*/React__default
|
|
8112
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8019
8113
|
ref: ref,
|
|
8020
8114
|
onClick: handleClick,
|
|
8021
8115
|
"aria-label": label,
|
|
8022
|
-
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8023
|
-
}), children || /*#__PURE__*/React__default
|
|
8116
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8117
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8024
8118
|
className: bsPrefix + "-icon"
|
|
8025
8119
|
}));
|
|
8026
8120
|
});
|
|
@@ -8035,7 +8129,7 @@ var defaultProps$v = {
|
|
|
8035
8129
|
variant: 'light',
|
|
8036
8130
|
collapseOnSelect: false
|
|
8037
8131
|
};
|
|
8038
|
-
var Navbar = React__default
|
|
8132
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8039
8133
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8040
8134
|
expanded: 'onToggle'
|
|
8041
8135
|
}),
|
|
@@ -8053,7 +8147,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8053
8147
|
_onToggle = _useUncontrolled.onToggle,
|
|
8054
8148
|
onSelect = _useUncontrolled.onSelect,
|
|
8055
8149
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8056
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8150
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8057
8151
|
|
|
8058
8152
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8059
8153
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8083,14 +8177,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8083
8177
|
expanded: !!expanded
|
|
8084
8178
|
};
|
|
8085
8179
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8086
|
-
return /*#__PURE__*/React__default
|
|
8180
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8087
8181
|
value: navbarContext
|
|
8088
|
-
}, /*#__PURE__*/React__default
|
|
8182
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8089
8183
|
value: handleCollapse
|
|
8090
|
-
}, /*#__PURE__*/React__default
|
|
8184
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8091
8185
|
ref: ref
|
|
8092
8186
|
}, controlledProps, {
|
|
8093
|
-
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8187
|
+
className: index$5.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8094
8188
|
}), children)));
|
|
8095
8189
|
});
|
|
8096
8190
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8106,37 +8200,37 @@ var propTypes$9 = {
|
|
|
8106
8200
|
* @type {string|number}
|
|
8107
8201
|
* @required
|
|
8108
8202
|
*/
|
|
8109
|
-
id: PropTypes__default
|
|
8203
|
+
id: PropTypes__default.any,
|
|
8110
8204
|
|
|
8111
8205
|
/** An `onClick` handler passed to the Toggle component */
|
|
8112
|
-
onClick: PropTypes__default
|
|
8206
|
+
onClick: PropTypes__default.func,
|
|
8113
8207
|
|
|
8114
8208
|
/** The content of the non-toggle Button. */
|
|
8115
|
-
title: PropTypes__default
|
|
8209
|
+
title: PropTypes__default.node.isRequired,
|
|
8116
8210
|
|
|
8117
8211
|
/** Disables the toggle NavLink */
|
|
8118
|
-
disabled: PropTypes__default
|
|
8212
|
+
disabled: PropTypes__default.bool,
|
|
8119
8213
|
|
|
8120
8214
|
/** Style the toggle NavLink as active */
|
|
8121
|
-
active: PropTypes__default
|
|
8215
|
+
active: PropTypes__default.bool,
|
|
8122
8216
|
|
|
8123
8217
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8124
|
-
menuRole: PropTypes__default
|
|
8218
|
+
menuRole: PropTypes__default.string,
|
|
8125
8219
|
|
|
8126
8220
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8127
|
-
renderMenuOnMount: PropTypes__default
|
|
8221
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8128
8222
|
|
|
8129
8223
|
/**
|
|
8130
8224
|
* Which event when fired outside the component will cause it to be closed.
|
|
8131
8225
|
*
|
|
8132
8226
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8133
8227
|
*/
|
|
8134
|
-
rootCloseEvent: PropTypes__default
|
|
8228
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8135
8229
|
|
|
8136
8230
|
/** @ignore */
|
|
8137
|
-
bsPrefix: PropTypes__default
|
|
8231
|
+
bsPrefix: PropTypes__default.string
|
|
8138
8232
|
};
|
|
8139
|
-
var NavDropdown = React__default
|
|
8233
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8140
8234
|
var id = _ref.id,
|
|
8141
8235
|
title = _ref.title,
|
|
8142
8236
|
children = _ref.children,
|
|
@@ -8146,20 +8240,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8146
8240
|
disabled = _ref.disabled,
|
|
8147
8241
|
active = _ref.active,
|
|
8148
8242
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8149
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8243
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8150
8244
|
|
|
8151
|
-
return /*#__PURE__*/React__default
|
|
8245
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8152
8246
|
ref: ref
|
|
8153
8247
|
}, props, {
|
|
8154
8248
|
as: NavItem
|
|
8155
|
-
}), /*#__PURE__*/React__default
|
|
8249
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8156
8250
|
id: id,
|
|
8157
8251
|
eventKey: null,
|
|
8158
8252
|
active: active,
|
|
8159
8253
|
disabled: disabled,
|
|
8160
8254
|
childBsPrefix: bsPrefix,
|
|
8161
8255
|
as: NavLink
|
|
8162
|
-
}, title), /*#__PURE__*/React__default
|
|
8256
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8163
8257
|
role: menuRole,
|
|
8164
8258
|
renderOnMount: renderMenuOnMount,
|
|
8165
8259
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8176,7 +8270,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8176
8270
|
* Built on top of `Popper.js`, the overlay component is
|
|
8177
8271
|
* great for custom tooltip overlays.
|
|
8178
8272
|
*/
|
|
8179
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8273
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8180
8274
|
var flip = props.flip,
|
|
8181
8275
|
offset = props.offset,
|
|
8182
8276
|
placement = props.placement,
|
|
@@ -8259,7 +8353,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8259
8353
|
onEnter = props.onEnter,
|
|
8260
8354
|
onEntering = props.onEntering,
|
|
8261
8355
|
onEntered = props.onEntered;
|
|
8262
|
-
child = /*#__PURE__*/React__default
|
|
8356
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8263
8357
|
"in": props.show,
|
|
8264
8358
|
appear: true,
|
|
8265
8359
|
onExit: onExit,
|
|
@@ -8271,36 +8365,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8271
8365
|
}, child);
|
|
8272
8366
|
}
|
|
8273
8367
|
|
|
8274
|
-
return container ? /*#__PURE__*/
|
|
8368
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8275
8369
|
});
|
|
8276
8370
|
Overlay.displayName = 'Overlay';
|
|
8277
8371
|
Overlay.propTypes = {
|
|
8278
8372
|
/**
|
|
8279
8373
|
* Set the visibility of the Overlay
|
|
8280
8374
|
*/
|
|
8281
|
-
show: PropTypes__default
|
|
8375
|
+
show: PropTypes__default.bool,
|
|
8282
8376
|
|
|
8283
8377
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8284
|
-
placement: PropTypes__default
|
|
8378
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8285
8379
|
|
|
8286
8380
|
/**
|
|
8287
8381
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8288
8382
|
* the overlay is positioned relative to.
|
|
8289
8383
|
*/
|
|
8290
|
-
target: PropTypes__default
|
|
8384
|
+
target: PropTypes__default.any,
|
|
8291
8385
|
|
|
8292
8386
|
/**
|
|
8293
8387
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8294
8388
|
* appended to it.
|
|
8295
8389
|
*/
|
|
8296
|
-
container: PropTypes__default
|
|
8390
|
+
container: PropTypes__default.any,
|
|
8297
8391
|
|
|
8298
8392
|
/**
|
|
8299
8393
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8300
8394
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8301
8395
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8302
8396
|
*/
|
|
8303
|
-
flip: PropTypes__default
|
|
8397
|
+
flip: PropTypes__default.bool,
|
|
8304
8398
|
|
|
8305
8399
|
/**
|
|
8306
8400
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8324,33 +8418,33 @@ Overlay.propTypes = {
|
|
|
8324
8418
|
* },
|
|
8325
8419
|
* }) => React.Element}
|
|
8326
8420
|
*/
|
|
8327
|
-
children: PropTypes__default
|
|
8421
|
+
children: PropTypes__default.func.isRequired,
|
|
8328
8422
|
|
|
8329
8423
|
/**
|
|
8330
8424
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8331
8425
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8332
8426
|
*/
|
|
8333
|
-
containerPadding: PropTypes__default
|
|
8427
|
+
containerPadding: PropTypes__default.number,
|
|
8334
8428
|
|
|
8335
8429
|
/**
|
|
8336
8430
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8337
8431
|
*/
|
|
8338
|
-
popperConfig: PropTypes__default
|
|
8432
|
+
popperConfig: PropTypes__default.object,
|
|
8339
8433
|
|
|
8340
8434
|
/**
|
|
8341
8435
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8342
8436
|
*/
|
|
8343
|
-
rootClose: PropTypes__default
|
|
8437
|
+
rootClose: PropTypes__default.bool,
|
|
8344
8438
|
|
|
8345
8439
|
/**
|
|
8346
8440
|
* Specify event for toggling overlay
|
|
8347
8441
|
*/
|
|
8348
|
-
rootCloseEvent: PropTypes__default
|
|
8442
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8349
8443
|
|
|
8350
8444
|
/**
|
|
8351
8445
|
* Specify disabled for disable RootCloseWrapper
|
|
8352
8446
|
*/
|
|
8353
|
-
rootCloseDisabled: PropTypes__default
|
|
8447
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8354
8448
|
|
|
8355
8449
|
/**
|
|
8356
8450
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8367,10 +8461,10 @@ Overlay.propTypes = {
|
|
|
8367
8461
|
if (props.rootClose) {
|
|
8368
8462
|
var _PropTypes$func;
|
|
8369
8463
|
|
|
8370
|
-
return (_PropTypes$func = PropTypes__default
|
|
8464
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8371
8465
|
}
|
|
8372
8466
|
|
|
8373
|
-
return PropTypes__default
|
|
8467
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8374
8468
|
},
|
|
8375
8469
|
|
|
8376
8470
|
/**
|
|
@@ -8378,37 +8472,37 @@ Overlay.propTypes = {
|
|
|
8378
8472
|
* used to animate the overlay as it changes visibility.
|
|
8379
8473
|
*/
|
|
8380
8474
|
// @ts-ignore
|
|
8381
|
-
transition: PropTypes__default
|
|
8475
|
+
transition: PropTypes__default.elementType,
|
|
8382
8476
|
|
|
8383
8477
|
/**
|
|
8384
8478
|
* Callback fired before the Overlay transitions in
|
|
8385
8479
|
*/
|
|
8386
|
-
onEnter: PropTypes__default
|
|
8480
|
+
onEnter: PropTypes__default.func,
|
|
8387
8481
|
|
|
8388
8482
|
/**
|
|
8389
8483
|
* Callback fired as the Overlay begins to transition in
|
|
8390
8484
|
*/
|
|
8391
|
-
onEntering: PropTypes__default
|
|
8485
|
+
onEntering: PropTypes__default.func,
|
|
8392
8486
|
|
|
8393
8487
|
/**
|
|
8394
8488
|
* Callback fired after the Overlay finishes transitioning in
|
|
8395
8489
|
*/
|
|
8396
|
-
onEntered: PropTypes__default
|
|
8490
|
+
onEntered: PropTypes__default.func,
|
|
8397
8491
|
|
|
8398
8492
|
/**
|
|
8399
8493
|
* Callback fired right before the Overlay transitions out
|
|
8400
8494
|
*/
|
|
8401
|
-
onExit: PropTypes__default
|
|
8495
|
+
onExit: PropTypes__default.func,
|
|
8402
8496
|
|
|
8403
8497
|
/**
|
|
8404
8498
|
* Callback fired as the Overlay begins to transition out
|
|
8405
8499
|
*/
|
|
8406
|
-
onExiting: PropTypes__default
|
|
8500
|
+
onExiting: PropTypes__default.func,
|
|
8407
8501
|
|
|
8408
8502
|
/**
|
|
8409
8503
|
* Callback fired after the Overlay finishes transitioning out
|
|
8410
8504
|
*/
|
|
8411
|
-
onExited: PropTypes__default
|
|
8505
|
+
onExited: PropTypes__default.func
|
|
8412
8506
|
};
|
|
8413
8507
|
|
|
8414
8508
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8425,34 +8519,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8425
8519
|
};
|
|
8426
8520
|
|
|
8427
8521
|
return RefHolder;
|
|
8428
|
-
}(React__default
|
|
8522
|
+
}(React__default.Component);
|
|
8429
8523
|
|
|
8430
8524
|
var defaultProps$w = {
|
|
8431
8525
|
active: false,
|
|
8432
8526
|
disabled: false,
|
|
8433
8527
|
activeLabel: '(current)'
|
|
8434
8528
|
};
|
|
8435
|
-
var PageItem = React__default
|
|
8529
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8436
8530
|
var active = _ref.active,
|
|
8437
8531
|
disabled = _ref.disabled,
|
|
8438
8532
|
className = _ref.className,
|
|
8439
8533
|
style = _ref.style,
|
|
8440
8534
|
activeLabel = _ref.activeLabel,
|
|
8441
8535
|
children = _ref.children,
|
|
8442
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8536
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8443
8537
|
|
|
8444
8538
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8445
|
-
return /*#__PURE__*/React__default
|
|
8539
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8446
8540
|
ref: ref,
|
|
8447
8541
|
style: style,
|
|
8448
|
-
className: classnames(className, 'page-item', {
|
|
8542
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8449
8543
|
active: active,
|
|
8450
8544
|
disabled: disabled
|
|
8451
8545
|
})
|
|
8452
|
-
}, /*#__PURE__*/React__default
|
|
8546
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8453
8547
|
className: "page-link",
|
|
8454
8548
|
disabled: disabled
|
|
8455
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8549
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8456
8550
|
className: "sr-only"
|
|
8457
8551
|
}, activeLabel)));
|
|
8458
8552
|
});
|
|
@@ -8466,11 +8560,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8466
8560
|
|
|
8467
8561
|
function Button(_ref2) {
|
|
8468
8562
|
var children = _ref2.children,
|
|
8469
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8563
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8470
8564
|
|
|
8471
|
-
return /*#__PURE__*/React__default
|
|
8565
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8472
8566
|
"aria-hidden": "true"
|
|
8473
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8567
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8474
8568
|
className: "sr-only"
|
|
8475
8569
|
}, label));
|
|
8476
8570
|
}
|
|
@@ -8493,18 +8587,18 @@ var Last = createButton('Last', '»');
|
|
|
8493
8587
|
* @property {PageItem} Next
|
|
8494
8588
|
* @property {PageItem} Last
|
|
8495
8589
|
*/
|
|
8496
|
-
var Pagination = React__default
|
|
8590
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8497
8591
|
var bsPrefix = _ref.bsPrefix,
|
|
8498
8592
|
className = _ref.className,
|
|
8499
8593
|
children = _ref.children,
|
|
8500
8594
|
size = _ref.size,
|
|
8501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8595
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8502
8596
|
|
|
8503
8597
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8504
|
-
return /*#__PURE__*/React__default
|
|
8598
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8505
8599
|
ref: ref
|
|
8506
8600
|
}, props, {
|
|
8507
|
-
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8601
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8508
8602
|
}), children);
|
|
8509
8603
|
});
|
|
8510
8604
|
Pagination.First = First;
|
|
@@ -8514,42 +8608,42 @@ Pagination.Item = PageItem;
|
|
|
8514
8608
|
Pagination.Next = Next;
|
|
8515
8609
|
Pagination.Last = Last;
|
|
8516
8610
|
|
|
8517
|
-
var PopoverTitle = React__default
|
|
8611
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8518
8612
|
var _ref$as = _ref.as,
|
|
8519
8613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8520
8614
|
bsPrefix = _ref.bsPrefix,
|
|
8521
8615
|
className = _ref.className,
|
|
8522
8616
|
children = _ref.children,
|
|
8523
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8617
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8524
8618
|
|
|
8525
8619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8526
|
-
return /*#__PURE__*/React__default
|
|
8620
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8527
8621
|
ref: ref
|
|
8528
8622
|
}, props, {
|
|
8529
|
-
className: classnames(bsPrefix, className)
|
|
8623
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8530
8624
|
}), children);
|
|
8531
8625
|
});
|
|
8532
8626
|
|
|
8533
|
-
var PopoverContent = React__default
|
|
8627
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8534
8628
|
var _ref$as = _ref.as,
|
|
8535
8629
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8536
8630
|
bsPrefix = _ref.bsPrefix,
|
|
8537
8631
|
className = _ref.className,
|
|
8538
8632
|
children = _ref.children,
|
|
8539
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8633
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8540
8634
|
|
|
8541
8635
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8542
|
-
return /*#__PURE__*/React__default
|
|
8636
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8543
8637
|
ref: ref
|
|
8544
8638
|
}, props, {
|
|
8545
|
-
className: classnames(className, bsPrefix)
|
|
8639
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8546
8640
|
}), children);
|
|
8547
8641
|
});
|
|
8548
8642
|
|
|
8549
8643
|
var defaultProps$x = {
|
|
8550
8644
|
placement: 'right'
|
|
8551
8645
|
};
|
|
8552
|
-
var Popover = React__default
|
|
8646
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8553
8647
|
var bsPrefix = _ref.bsPrefix,
|
|
8554
8648
|
placement = _ref.placement,
|
|
8555
8649
|
className = _ref.className,
|
|
@@ -8559,22 +8653,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8559
8653
|
arrowProps = _ref.arrowProps,
|
|
8560
8654
|
_ = _ref.popper,
|
|
8561
8655
|
_1 = _ref.show,
|
|
8562
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8656
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8563
8657
|
|
|
8564
8658
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8565
8659
|
|
|
8566
8660
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8567
8661
|
primaryPlacement = _ref2[0];
|
|
8568
8662
|
|
|
8569
|
-
return /*#__PURE__*/React__default
|
|
8663
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8570
8664
|
ref: ref,
|
|
8571
8665
|
role: "tooltip",
|
|
8572
8666
|
style: style,
|
|
8573
8667
|
"x-placement": primaryPlacement,
|
|
8574
|
-
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8575
|
-
}, props), /*#__PURE__*/React__default
|
|
8668
|
+
className: index$5.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8669
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8576
8670
|
className: "arrow"
|
|
8577
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8671
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8578
8672
|
});
|
|
8579
8673
|
Popover.defaultProps = defaultProps$x;
|
|
8580
8674
|
Popover.Title = PopoverTitle;
|
|
@@ -8610,27 +8704,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8610
8704
|
style = _ref.style,
|
|
8611
8705
|
variant = _ref.variant,
|
|
8612
8706
|
bsPrefix = _ref.bsPrefix,
|
|
8613
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8707
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8614
8708
|
|
|
8615
|
-
return /*#__PURE__*/React__default
|
|
8709
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8616
8710
|
ref: ref
|
|
8617
8711
|
}, props, {
|
|
8618
8712
|
role: "progressbar",
|
|
8619
|
-
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8620
|
-
style: _extends({
|
|
8713
|
+
className: index$5.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8714
|
+
style: index$5._extends({
|
|
8621
8715
|
width: getPercentage(now, min, max) + "%"
|
|
8622
8716
|
}, style),
|
|
8623
8717
|
"aria-valuenow": now,
|
|
8624
8718
|
"aria-valuemin": min,
|
|
8625
8719
|
"aria-valuemax": max
|
|
8626
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8720
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8627
8721
|
className: "sr-only"
|
|
8628
8722
|
}, label) : label);
|
|
8629
8723
|
}
|
|
8630
8724
|
|
|
8631
|
-
var ProgressBar = React__default
|
|
8725
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8632
8726
|
var isChild = _ref2.isChild,
|
|
8633
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8727
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8634
8728
|
|
|
8635
8729
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8636
8730
|
|
|
@@ -8649,12 +8743,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8649
8743
|
variant = props.variant,
|
|
8650
8744
|
className = props.className,
|
|
8651
8745
|
children = props.children,
|
|
8652
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8746
|
+
wrapperProps = index$5._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8653
8747
|
|
|
8654
|
-
return /*#__PURE__*/React__default
|
|
8748
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8655
8749
|
ref: ref
|
|
8656
8750
|
}, wrapperProps, {
|
|
8657
|
-
className: classnames(className, bsPrefix)
|
|
8751
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8658
8752
|
}), children ? map(children, function (child) {
|
|
8659
8753
|
return React.cloneElement(child, {
|
|
8660
8754
|
isChild: true
|
|
@@ -8677,21 +8771,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8677
8771
|
var defaultProps$z = {
|
|
8678
8772
|
aspectRatio: '1by1'
|
|
8679
8773
|
};
|
|
8680
|
-
var ResponsiveEmbed = React__default
|
|
8774
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8681
8775
|
var bsPrefix = _ref.bsPrefix,
|
|
8682
8776
|
className = _ref.className,
|
|
8683
8777
|
children = _ref.children,
|
|
8684
8778
|
aspectRatio = _ref.aspectRatio,
|
|
8685
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8779
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8686
8780
|
|
|
8687
8781
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8688
|
-
var child = React__default
|
|
8689
|
-
return /*#__PURE__*/React__default
|
|
8782
|
+
var child = React__default.Children.only(children);
|
|
8783
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8690
8784
|
ref: ref
|
|
8691
8785
|
}, props, {
|
|
8692
|
-
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8693
|
-
}), React__default
|
|
8694
|
-
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8786
|
+
className: index$5.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8787
|
+
}), React__default.cloneElement(child, {
|
|
8788
|
+
className: index$5.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8695
8789
|
}));
|
|
8696
8790
|
});
|
|
8697
8791
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8700,13 +8794,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8700
8794
|
var defaultProps$A = {
|
|
8701
8795
|
noGutters: false
|
|
8702
8796
|
};
|
|
8703
|
-
var Row = React__default
|
|
8797
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8704
8798
|
var bsPrefix = _ref.bsPrefix,
|
|
8705
8799
|
className = _ref.className,
|
|
8706
8800
|
noGutters = _ref.noGutters,
|
|
8707
8801
|
_ref$as = _ref.as,
|
|
8708
8802
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8709
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8803
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8710
8804
|
|
|
8711
8805
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8712
8806
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8725,16 +8819,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8725
8819
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8726
8820
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8727
8821
|
});
|
|
8728
|
-
return /*#__PURE__*/React__default
|
|
8822
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8729
8823
|
ref: ref
|
|
8730
8824
|
}, props, {
|
|
8731
|
-
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8825
|
+
className: index$5.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8732
8826
|
}));
|
|
8733
8827
|
});
|
|
8734
8828
|
Row.displayName = 'Row';
|
|
8735
8829
|
Row.defaultProps = defaultProps$A;
|
|
8736
8830
|
|
|
8737
|
-
var Spinner = React__default
|
|
8831
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8738
8832
|
var bsPrefix = _ref.bsPrefix,
|
|
8739
8833
|
variant = _ref.variant,
|
|
8740
8834
|
animation = _ref.animation,
|
|
@@ -8743,14 +8837,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8743
8837
|
_ref$as = _ref.as,
|
|
8744
8838
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8745
8839
|
className = _ref.className,
|
|
8746
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8840
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8747
8841
|
|
|
8748
8842
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8749
8843
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8750
|
-
return /*#__PURE__*/React__default
|
|
8844
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8751
8845
|
ref: ref
|
|
8752
8846
|
}, props, {
|
|
8753
|
-
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8847
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8754
8848
|
}), children);
|
|
8755
8849
|
});
|
|
8756
8850
|
Spinner.displayName = 'Spinner';
|
|
@@ -8761,58 +8855,67 @@ var propTypes$a = {
|
|
|
8761
8855
|
* @type {string|number}
|
|
8762
8856
|
* @required
|
|
8763
8857
|
*/
|
|
8764
|
-
id: PropTypes__default
|
|
8858
|
+
id: PropTypes__default.any,
|
|
8765
8859
|
|
|
8766
8860
|
/**
|
|
8767
8861
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8768
8862
|
*/
|
|
8769
|
-
toggleLabel: PropTypes__default
|
|
8863
|
+
toggleLabel: PropTypes__default.string,
|
|
8770
8864
|
|
|
8771
8865
|
/** An `href` passed to the non-toggle Button */
|
|
8772
|
-
href: PropTypes__default
|
|
8866
|
+
href: PropTypes__default.string,
|
|
8773
8867
|
|
|
8774
8868
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8775
|
-
target: PropTypes__default
|
|
8869
|
+
target: PropTypes__default.string,
|
|
8776
8870
|
|
|
8777
8871
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8778
|
-
onClick: PropTypes__default
|
|
8872
|
+
onClick: PropTypes__default.func,
|
|
8779
8873
|
|
|
8780
8874
|
/** The content of the non-toggle Button. */
|
|
8781
|
-
title: PropTypes__default
|
|
8875
|
+
title: PropTypes__default.node.isRequired,
|
|
8782
8876
|
|
|
8783
8877
|
/** A `type` passed to the non-toggle Button */
|
|
8784
|
-
type: PropTypes__default
|
|
8878
|
+
type: PropTypes__default.string,
|
|
8785
8879
|
|
|
8786
8880
|
/** Disables both Buttons */
|
|
8787
|
-
disabled: PropTypes__default
|
|
8881
|
+
disabled: PropTypes__default.bool,
|
|
8882
|
+
|
|
8883
|
+
/**
|
|
8884
|
+
* Aligns the dropdown menu responsively.
|
|
8885
|
+
*
|
|
8886
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8887
|
+
*
|
|
8888
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8889
|
+
*/
|
|
8890
|
+
menuAlign: alignPropType,
|
|
8788
8891
|
|
|
8789
8892
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8790
|
-
menuRole: PropTypes__default
|
|
8893
|
+
menuRole: PropTypes__default.string,
|
|
8791
8894
|
|
|
8792
8895
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8793
|
-
renderMenuOnMount: PropTypes__default
|
|
8896
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8794
8897
|
|
|
8795
8898
|
/**
|
|
8796
8899
|
* Which event when fired outside the component will cause it to be closed.
|
|
8797
8900
|
*
|
|
8798
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8901
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8799
8902
|
*/
|
|
8800
|
-
rootCloseEvent: PropTypes__default
|
|
8903
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8801
8904
|
|
|
8802
8905
|
/** @ignore */
|
|
8803
|
-
bsPrefix: PropTypes__default
|
|
8906
|
+
bsPrefix: PropTypes__default.string,
|
|
8804
8907
|
|
|
8805
8908
|
/** @ignore */
|
|
8806
|
-
variant: PropTypes__default
|
|
8909
|
+
variant: PropTypes__default.string,
|
|
8807
8910
|
|
|
8808
8911
|
/** @ignore */
|
|
8809
|
-
size: PropTypes__default
|
|
8912
|
+
size: PropTypes__default.string
|
|
8810
8913
|
};
|
|
8811
8914
|
var defaultProps$B = {
|
|
8812
8915
|
toggleLabel: 'Toggle dropdown',
|
|
8813
8916
|
type: 'button'
|
|
8814
8917
|
};
|
|
8815
|
-
var SplitButton = React__default
|
|
8918
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8816
8919
|
var id = _ref.id,
|
|
8817
8920
|
bsPrefix = _ref.bsPrefix,
|
|
8818
8921
|
size = _ref.size,
|
|
@@ -8824,16 +8927,17 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8824
8927
|
onClick = _ref.onClick,
|
|
8825
8928
|
href = _ref.href,
|
|
8826
8929
|
target = _ref.target,
|
|
8930
|
+
menuAlign = _ref.menuAlign,
|
|
8827
8931
|
menuRole = _ref.menuRole,
|
|
8828
8932
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8829
8933
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8830
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8934
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8831
8935
|
|
|
8832
|
-
return /*#__PURE__*/React__default
|
|
8936
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8833
8937
|
ref: ref
|
|
8834
8938
|
}, props, {
|
|
8835
8939
|
as: ButtonGroup
|
|
8836
|
-
}), /*#__PURE__*/React__default
|
|
8940
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8837
8941
|
size: size,
|
|
8838
8942
|
variant: variant,
|
|
8839
8943
|
disabled: props.disabled,
|
|
@@ -8842,16 +8946,17 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8842
8946
|
target: target,
|
|
8843
8947
|
onClick: onClick,
|
|
8844
8948
|
type: type
|
|
8845
|
-
}, title), /*#__PURE__*/React__default
|
|
8949
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8846
8950
|
split: true,
|
|
8847
8951
|
id: id ? id.toString() : undefined,
|
|
8848
8952
|
size: size,
|
|
8849
8953
|
variant: variant,
|
|
8850
8954
|
disabled: props.disabled,
|
|
8851
8955
|
childBsPrefix: bsPrefix
|
|
8852
|
-
}, /*#__PURE__*/React__default
|
|
8956
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8853
8957
|
className: "sr-only"
|
|
8854
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8958
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8959
|
+
align: menuAlign,
|
|
8855
8960
|
role: menuRole,
|
|
8856
8961
|
renderOnMount: renderMenuOnMount,
|
|
8857
8962
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8894,25 +8999,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8894
8999
|
}
|
|
8895
9000
|
};
|
|
8896
9001
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8897
|
-
return /*#__PURE__*/React__default
|
|
9002
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8898
9003
|
value: tabContext
|
|
8899
|
-
}, /*#__PURE__*/React__default
|
|
9004
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8900
9005
|
value: onSelect || null
|
|
8901
9006
|
}, children));
|
|
8902
9007
|
};
|
|
8903
9008
|
|
|
8904
|
-
var TabContent = React__default
|
|
9009
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8905
9010
|
var bsPrefix = _ref.bsPrefix,
|
|
8906
9011
|
_ref$as = _ref.as,
|
|
8907
9012
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8908
9013
|
className = _ref.className,
|
|
8909
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9014
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8910
9015
|
|
|
8911
9016
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8912
|
-
return /*#__PURE__*/React__default
|
|
9017
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8913
9018
|
ref: ref
|
|
8914
9019
|
}, props, {
|
|
8915
|
-
className: classnames(className, decoratedBsPrefix)
|
|
9020
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
8916
9021
|
}));
|
|
8917
9022
|
});
|
|
8918
9023
|
|
|
@@ -8923,11 +9028,11 @@ function useTabContext(props) {
|
|
|
8923
9028
|
var activeKey = context.activeKey,
|
|
8924
9029
|
getControlledId = context.getControlledId,
|
|
8925
9030
|
getControllerId = context.getControllerId,
|
|
8926
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9031
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8927
9032
|
|
|
8928
9033
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8929
9034
|
var key = makeEventKey(props.eventKey);
|
|
8930
|
-
return _extends({}, props, {
|
|
9035
|
+
return index$5._extends({}, props, {
|
|
8931
9036
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8932
9037
|
id: getControlledId(props.eventKey),
|
|
8933
9038
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8937,7 +9042,7 @@ function useTabContext(props) {
|
|
|
8937
9042
|
});
|
|
8938
9043
|
}
|
|
8939
9044
|
|
|
8940
|
-
var TabPane = React__default
|
|
9045
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8941
9046
|
var _useTabContext = useTabContext(props),
|
|
8942
9047
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8943
9048
|
className = _useTabContext.className,
|
|
@@ -8954,19 +9059,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8954
9059
|
_useTabContext$as = _useTabContext.as,
|
|
8955
9060
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8956
9061
|
_ = _useTabContext.eventKey,
|
|
8957
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9062
|
+
rest = index$5._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8958
9063
|
|
|
8959
9064
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8960
9065
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8961
|
-
var pane = /*#__PURE__*/React__default
|
|
9066
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
8962
9067
|
ref: ref,
|
|
8963
9068
|
role: "tabpanel",
|
|
8964
9069
|
"aria-hidden": !active,
|
|
8965
|
-
className: classnames(className, prefix, {
|
|
9070
|
+
className: index$5.classnames(className, prefix, {
|
|
8966
9071
|
active: active
|
|
8967
9072
|
})
|
|
8968
9073
|
}));
|
|
8969
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9074
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8970
9075
|
in: active,
|
|
8971
9076
|
onEnter: onEnter,
|
|
8972
9077
|
onEntering: onEntering,
|
|
@@ -8979,9 +9084,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8979
9084
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
8980
9085
|
// conflict with the top level one.
|
|
8981
9086
|
|
|
8982
|
-
return /*#__PURE__*/React__default
|
|
9087
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8983
9088
|
value: null
|
|
8984
|
-
}, /*#__PURE__*/React__default
|
|
9089
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8985
9090
|
value: null
|
|
8986
9091
|
}, pane));
|
|
8987
9092
|
});
|
|
@@ -9002,13 +9107,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9002
9107
|
};
|
|
9003
9108
|
|
|
9004
9109
|
return Tab;
|
|
9005
|
-
}(React__default
|
|
9110
|
+
}(React__default.Component);
|
|
9006
9111
|
|
|
9007
9112
|
Tab.Container = TabContainer;
|
|
9008
9113
|
Tab.Content = TabContent;
|
|
9009
9114
|
Tab.Pane = TabPane;
|
|
9010
9115
|
|
|
9011
|
-
var Table = React__default
|
|
9116
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9012
9117
|
var bsPrefix = _ref.bsPrefix,
|
|
9013
9118
|
className = _ref.className,
|
|
9014
9119
|
striped = _ref.striped,
|
|
@@ -9018,11 +9123,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9018
9123
|
size = _ref.size,
|
|
9019
9124
|
variant = _ref.variant,
|
|
9020
9125
|
responsive = _ref.responsive,
|
|
9021
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9126
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9022
9127
|
|
|
9023
9128
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9024
|
-
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9025
|
-
var table = /*#__PURE__*/React__default
|
|
9129
|
+
var classes = index$5.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9130
|
+
var table = /*#__PURE__*/React__default.createElement("table", index$5._extends({}, props, {
|
|
9026
9131
|
className: classes,
|
|
9027
9132
|
ref: ref
|
|
9028
9133
|
}));
|
|
@@ -9034,7 +9139,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9034
9139
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9035
9140
|
}
|
|
9036
9141
|
|
|
9037
|
-
return /*#__PURE__*/React__default
|
|
9142
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9038
9143
|
className: responsiveClass
|
|
9039
9144
|
}, table);
|
|
9040
9145
|
}
|
|
@@ -9042,7 +9147,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9042
9147
|
return table;
|
|
9043
9148
|
});
|
|
9044
9149
|
|
|
9045
|
-
var ToastContext = React__default
|
|
9150
|
+
var ToastContext = React__default.createContext({
|
|
9046
9151
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9047
9152
|
onClose: function onClose() {}
|
|
9048
9153
|
});
|
|
@@ -9051,13 +9156,13 @@ var defaultProps$C = {
|
|
|
9051
9156
|
closeLabel: 'Close',
|
|
9052
9157
|
closeButton: true
|
|
9053
9158
|
};
|
|
9054
|
-
var ToastHeader = React__default
|
|
9159
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9055
9160
|
var bsPrefix = _ref.bsPrefix,
|
|
9056
9161
|
closeLabel = _ref.closeLabel,
|
|
9057
9162
|
closeButton = _ref.closeButton,
|
|
9058
9163
|
className = _ref.className,
|
|
9059
9164
|
children = _ref.children,
|
|
9060
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9165
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9061
9166
|
|
|
9062
9167
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9063
9168
|
var context = React.useContext(ToastContext);
|
|
@@ -9066,11 +9171,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9066
9171
|
context.onClose(e);
|
|
9067
9172
|
}
|
|
9068
9173
|
});
|
|
9069
|
-
return /*#__PURE__*/React__default
|
|
9174
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9070
9175
|
ref: ref
|
|
9071
9176
|
}, props, {
|
|
9072
|
-
className: classnames(bsPrefix, className)
|
|
9073
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9177
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9178
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9074
9179
|
label: closeLabel,
|
|
9075
9180
|
onClick: handleClick,
|
|
9076
9181
|
className: "ml-2 mb-1",
|
|
@@ -9082,7 +9187,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9082
9187
|
|
|
9083
9188
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9084
9189
|
|
|
9085
|
-
var Toast = React__default
|
|
9190
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9086
9191
|
var bsPrefix = _ref.bsPrefix,
|
|
9087
9192
|
className = _ref.className,
|
|
9088
9193
|
children = _ref.children,
|
|
@@ -9097,7 +9202,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9097
9202
|
_ref$autohide = _ref.autohide,
|
|
9098
9203
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9099
9204
|
onClose = _ref.onClose,
|
|
9100
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9205
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9101
9206
|
|
|
9102
9207
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9103
9208
|
// timer in case these values change.
|
|
@@ -9125,16 +9230,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9125
9230
|
};
|
|
9126
9231
|
}, [onClose]);
|
|
9127
9232
|
var hasAnimation = !!(Transition && animation);
|
|
9128
|
-
var toast = /*#__PURE__*/React__default
|
|
9233
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9129
9234
|
ref: ref,
|
|
9130
|
-
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9235
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9131
9236
|
role: "alert",
|
|
9132
9237
|
"aria-live": "assertive",
|
|
9133
9238
|
"aria-atomic": "true"
|
|
9134
9239
|
}), children);
|
|
9135
|
-
return /*#__PURE__*/React__default
|
|
9240
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9136
9241
|
value: toastContext
|
|
9137
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9242
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9138
9243
|
in: show,
|
|
9139
9244
|
unmountOnExit: true
|
|
9140
9245
|
}, toast) : toast);
|
|
@@ -9149,7 +9254,7 @@ var noop$5 = function noop() {
|
|
|
9149
9254
|
return undefined;
|
|
9150
9255
|
};
|
|
9151
9256
|
|
|
9152
|
-
var ToggleButton = React__default
|
|
9257
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9153
9258
|
var children = _ref.children,
|
|
9154
9259
|
name = _ref.name,
|
|
9155
9260
|
className = _ref.className,
|
|
@@ -9159,7 +9264,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9159
9264
|
value = _ref.value,
|
|
9160
9265
|
disabled = _ref.disabled,
|
|
9161
9266
|
inputRef = _ref.inputRef,
|
|
9162
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9267
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9163
9268
|
|
|
9164
9269
|
var _useState = React.useState(false),
|
|
9165
9270
|
focused = _useState[0],
|
|
@@ -9171,13 +9276,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9171
9276
|
var handleBlur = React.useCallback(function (e) {
|
|
9172
9277
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9173
9278
|
}, []);
|
|
9174
|
-
return /*#__PURE__*/React__default
|
|
9279
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9175
9280
|
ref: ref,
|
|
9176
|
-
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9281
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9177
9282
|
type: undefined,
|
|
9178
9283
|
active: !!checked,
|
|
9179
9284
|
as: "label"
|
|
9180
|
-
}), /*#__PURE__*/React__default
|
|
9285
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9181
9286
|
name: name,
|
|
9182
9287
|
type: type,
|
|
9183
9288
|
value: value,
|
|
@@ -9193,9 +9298,10 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9193
9298
|
ToggleButton.displayName = 'ToggleButton';
|
|
9194
9299
|
|
|
9195
9300
|
var defaultProps$D = {
|
|
9196
|
-
type: 'radio'
|
|
9301
|
+
type: 'radio',
|
|
9302
|
+
vertical: false
|
|
9197
9303
|
};
|
|
9198
|
-
var ToggleButtonGroup = React__default
|
|
9304
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9199
9305
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9200
9306
|
value: 'onChange'
|
|
9201
9307
|
}),
|
|
@@ -9204,7 +9310,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9204
9310
|
name = _useUncontrolled.name,
|
|
9205
9311
|
value = _useUncontrolled.value,
|
|
9206
9312
|
onChange = _useUncontrolled.onChange,
|
|
9207
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9313
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9208
9314
|
|
|
9209
9315
|
var getValues = function getValues() {
|
|
9210
9316
|
return value == null ? [] : [].concat(value);
|
|
@@ -9233,7 +9339,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9233
9339
|
};
|
|
9234
9340
|
|
|
9235
9341
|
!(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;
|
|
9236
|
-
return /*#__PURE__*/React__default
|
|
9342
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9237
9343
|
ref: ref,
|
|
9238
9344
|
toggle: true
|
|
9239
9345
|
}), map(children, function (child) {
|
|
@@ -9246,7 +9352,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9246
9352
|
return handleToggle(childVal, e);
|
|
9247
9353
|
};
|
|
9248
9354
|
|
|
9249
|
-
return React__default
|
|
9355
|
+
return React__default.cloneElement(child, {
|
|
9250
9356
|
type: type,
|
|
9251
9357
|
name: child.name || name,
|
|
9252
9358
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9260,7 +9366,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9260
9366
|
var defaultProps$E = {
|
|
9261
9367
|
placement: 'right'
|
|
9262
9368
|
};
|
|
9263
|
-
var Tooltip = React__default
|
|
9369
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9264
9370
|
var bsPrefix = _ref.bsPrefix,
|
|
9265
9371
|
placement = _ref.placement,
|
|
9266
9372
|
className = _ref.className,
|
|
@@ -9269,29 +9375,29 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9269
9375
|
arrowProps = _ref.arrowProps,
|
|
9270
9376
|
_ = _ref.popper,
|
|
9271
9377
|
_2 = _ref.show,
|
|
9272
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9378
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9273
9379
|
|
|
9274
9380
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9275
9381
|
|
|
9276
9382
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9277
9383
|
primaryPlacement = _ref2[0];
|
|
9278
9384
|
|
|
9279
|
-
return /*#__PURE__*/React__default
|
|
9385
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9280
9386
|
ref: ref,
|
|
9281
9387
|
style: style,
|
|
9282
9388
|
role: "tooltip",
|
|
9283
9389
|
"x-placement": primaryPlacement,
|
|
9284
|
-
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9285
|
-
}, props), /*#__PURE__*/React__default
|
|
9390
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9391
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9286
9392
|
className: "arrow"
|
|
9287
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9393
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9288
9394
|
className: bsPrefix + "-inner"
|
|
9289
9395
|
}, children));
|
|
9290
9396
|
});
|
|
9291
9397
|
Tooltip.defaultProps = defaultProps$E;
|
|
9292
9398
|
Tooltip.displayName = 'Tooltip';
|
|
9293
9399
|
|
|
9294
|
-
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";
|
|
9400
|
+
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";
|
|
9295
9401
|
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" };
|
|
9296
9402
|
styleInject_es.styleInject(css);
|
|
9297
9403
|
|
|
@@ -9302,54 +9408,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9302
9408
|
client = props.client;
|
|
9303
9409
|
|
|
9304
9410
|
|
|
9305
|
-
return React__default
|
|
9411
|
+
return React__default.createElement(
|
|
9306
9412
|
'div',
|
|
9307
9413
|
{ className: styles.article },
|
|
9308
|
-
React__default
|
|
9414
|
+
React__default.createElement(
|
|
9309
9415
|
'a',
|
|
9310
9416
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9311
|
-
React__default
|
|
9417
|
+
React__default.createElement(
|
|
9312
9418
|
'div',
|
|
9313
9419
|
{ className: styles.thumb },
|
|
9314
|
-
React__default
|
|
9420
|
+
React__default.createElement(
|
|
9315
9421
|
'figure',
|
|
9316
9422
|
null,
|
|
9317
|
-
React__default
|
|
9318
|
-
index.LazyLoad,
|
|
9423
|
+
React__default.createElement(
|
|
9424
|
+
index$2.LazyLoad,
|
|
9319
9425
|
null,
|
|
9320
|
-
React__default
|
|
9426
|
+
React__default.createElement('img', {
|
|
9321
9427
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9322
9428
|
})
|
|
9323
9429
|
)
|
|
9324
9430
|
)
|
|
9325
9431
|
),
|
|
9326
|
-
React__default
|
|
9432
|
+
React__default.createElement(
|
|
9327
9433
|
'div',
|
|
9328
9434
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9329
|
-
React__default
|
|
9435
|
+
React__default.createElement(
|
|
9330
9436
|
'div',
|
|
9331
9437
|
{ className: styles.name },
|
|
9332
9438
|
data.name
|
|
9333
9439
|
),
|
|
9334
|
-
data.published && React__default
|
|
9440
|
+
data.published && React__default.createElement(
|
|
9335
9441
|
'p',
|
|
9336
9442
|
{ className: styles.published },
|
|
9337
9443
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9338
9444
|
),
|
|
9339
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9445
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9340
9446
|
'p',
|
|
9341
9447
|
{ className: styles.author },
|
|
9342
9448
|
'By ',
|
|
9343
|
-
React__default
|
|
9449
|
+
React__default.createElement(
|
|
9344
9450
|
'span',
|
|
9345
9451
|
null,
|
|
9346
9452
|
data.authorMapping.displayName
|
|
9347
9453
|
)
|
|
9348
9454
|
),
|
|
9349
|
-
data.description && React__default
|
|
9455
|
+
data.description && React__default.createElement(
|
|
9350
9456
|
'div',
|
|
9351
9457
|
{ className: 'media-series-desc' },
|
|
9352
|
-
React__default
|
|
9458
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9353
9459
|
)
|
|
9354
9460
|
)
|
|
9355
9461
|
)
|
|
@@ -9378,11 +9484,11 @@ var Filter = function Filter(_ref) {
|
|
|
9378
9484
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
9379
9485
|
grandChildData = _useState6[0],
|
|
9380
9486
|
setGrandChildData = _useState6[1];
|
|
9381
|
-
/*
|
|
9382
|
-
{parent: showAll,
|
|
9383
|
-
chidlren: show selected from parent,
|
|
9384
|
-
grandchildren: show selected from children
|
|
9385
|
-
}
|
|
9487
|
+
/*
|
|
9488
|
+
{parent: showAll,
|
|
9489
|
+
chidlren: show selected from parent,
|
|
9490
|
+
grandchildren: show selected from children
|
|
9491
|
+
}
|
|
9386
9492
|
*/
|
|
9387
9493
|
|
|
9388
9494
|
|
|
@@ -9446,13 +9552,13 @@ var Filter = function Filter(_ref) {
|
|
|
9446
9552
|
}
|
|
9447
9553
|
};
|
|
9448
9554
|
|
|
9449
|
-
return React__default
|
|
9555
|
+
return React__default.createElement(
|
|
9450
9556
|
'div',
|
|
9451
9557
|
{ className: 'flex-container' },
|
|
9452
|
-
parentData && React__default
|
|
9558
|
+
parentData && React__default.createElement(
|
|
9453
9559
|
DropdownButton,
|
|
9454
9560
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9455
|
-
React__default
|
|
9561
|
+
React__default.createElement(
|
|
9456
9562
|
Dropdown$1.Item,
|
|
9457
9563
|
{ onSelect: function onSelect() {
|
|
9458
9564
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9461,7 +9567,7 @@ var Filter = function Filter(_ref) {
|
|
|
9461
9567
|
),
|
|
9462
9568
|
parentData.data.map(function (docGroup) {
|
|
9463
9569
|
if (!docGroup._id) return null;
|
|
9464
|
-
return React__default
|
|
9570
|
+
return React__default.createElement(
|
|
9465
9571
|
Dropdown$1.Item,
|
|
9466
9572
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9467
9573
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9470,10 +9576,10 @@ var Filter = function Filter(_ref) {
|
|
|
9470
9576
|
);
|
|
9471
9577
|
})
|
|
9472
9578
|
),
|
|
9473
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9579
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9474
9580
|
DropdownButton,
|
|
9475
9581
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9476
|
-
React__default
|
|
9582
|
+
React__default.createElement(
|
|
9477
9583
|
Dropdown$1.Item,
|
|
9478
9584
|
{ onSelect: function onSelect() {
|
|
9479
9585
|
return handleFilterSelect({}, 'child');
|
|
@@ -9482,7 +9588,7 @@ var Filter = function Filter(_ref) {
|
|
|
9482
9588
|
),
|
|
9483
9589
|
childData.data.map(function (docGroup) {
|
|
9484
9590
|
if (!docGroup._id) return null;
|
|
9485
|
-
return React__default
|
|
9591
|
+
return React__default.createElement(
|
|
9486
9592
|
Dropdown$1.Item,
|
|
9487
9593
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9488
9594
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9491,10 +9597,10 @@ var Filter = function Filter(_ref) {
|
|
|
9491
9597
|
);
|
|
9492
9598
|
})
|
|
9493
9599
|
),
|
|
9494
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9600
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9495
9601
|
DropdownButton,
|
|
9496
9602
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9497
|
-
React__default
|
|
9603
|
+
React__default.createElement(
|
|
9498
9604
|
Dropdown$1.Item,
|
|
9499
9605
|
{ onSelect: function onSelect() {
|
|
9500
9606
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9503,7 +9609,7 @@ var Filter = function Filter(_ref) {
|
|
|
9503
9609
|
),
|
|
9504
9610
|
grandChildData.data.map(function (docGroup) {
|
|
9505
9611
|
if (!docGroup._id) return null;
|
|
9506
|
-
return React__default
|
|
9612
|
+
return React__default.createElement(
|
|
9507
9613
|
Dropdown$1.Item,
|
|
9508
9614
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9509
9615
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9512,7 +9618,7 @@ var Filter = function Filter(_ref) {
|
|
|
9512
9618
|
);
|
|
9513
9619
|
})
|
|
9514
9620
|
),
|
|
9515
|
-
React__default
|
|
9621
|
+
React__default.createElement(
|
|
9516
9622
|
'style',
|
|
9517
9623
|
{ jsx: 'true' },
|
|
9518
9624
|
'\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 '
|
|
@@ -9602,27 +9708,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9602
9708
|
}();
|
|
9603
9709
|
|
|
9604
9710
|
if (props.statusCode === 404) {
|
|
9605
|
-
return React__default
|
|
9711
|
+
return React__default.createElement(
|
|
9606
9712
|
'div',
|
|
9607
9713
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9608
|
-
React__default
|
|
9714
|
+
React__default.createElement(
|
|
9609
9715
|
'h3',
|
|
9610
9716
|
null,
|
|
9611
9717
|
'404: Resource not found'
|
|
9612
9718
|
),
|
|
9613
|
-
React__default
|
|
9719
|
+
React__default.createElement(
|
|
9614
9720
|
'p',
|
|
9615
9721
|
null,
|
|
9616
9722
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9617
9723
|
),
|
|
9618
|
-
React__default
|
|
9724
|
+
React__default.createElement(
|
|
9619
9725
|
'p',
|
|
9620
9726
|
null,
|
|
9621
9727
|
'Click here to',
|
|
9622
|
-
React__default
|
|
9623
|
-
|
|
9728
|
+
React__default.createElement(
|
|
9729
|
+
Link,
|
|
9624
9730
|
{ href: '/' },
|
|
9625
|
-
React__default
|
|
9731
|
+
React__default.createElement(
|
|
9626
9732
|
'a',
|
|
9627
9733
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9628
9734
|
' return to homepage.'
|
|
@@ -9632,17 +9738,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9632
9738
|
);
|
|
9633
9739
|
}
|
|
9634
9740
|
|
|
9635
|
-
return React__default
|
|
9741
|
+
return React__default.createElement(
|
|
9636
9742
|
'div',
|
|
9637
9743
|
{ className: 'mb-5' },
|
|
9638
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9639
|
-
props.taxonomyFilter && props.taxonomyFilter && React__default
|
|
9744
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent.BlockContent, { blocks: props.docGroup.description, serializers: getSerializers.getSerializers(client) }),
|
|
9745
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9640
9746
|
'div',
|
|
9641
9747
|
{ className: '' },
|
|
9642
|
-
React__default
|
|
9643
|
-
React__default
|
|
9748
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9749
|
+
React__default.createElement('hr', null)
|
|
9644
9750
|
),
|
|
9645
|
-
seriesData && React__default
|
|
9751
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9646
9752
|
deck: MediaSeriesCard,
|
|
9647
9753
|
variant: 'left',
|
|
9648
9754
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9746,7 +9852,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9746
9852
|
statusCode = 404;
|
|
9747
9853
|
}
|
|
9748
9854
|
|
|
9749
|
-
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9855
|
+
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty$1$1._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty$1$1._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9750
9856
|
|
|
9751
9857
|
case 25:
|
|
9752
9858
|
case 'end':
|