@mjhls/mjh-framework 1.0.859-segment-targeting-v3 → 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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +16 -19
- package/dist/cjs/AD300x250x600.js +16 -19
- package/dist/cjs/AD728x90.js +17 -20
- package/dist/cjs/ADFloatingFooter.js +18 -21
- package/dist/cjs/ADFooter.js +11 -14
- package/dist/cjs/ADGutter.js +18 -21
- package/dist/cjs/{ADInfeed-7cd00f5d.js → ADInfeed-7c09edba.js} +10 -12
- package/dist/cjs/ADSkyscraper.js +18 -21
- package/dist/cjs/ADSponsoredResources.js +18 -21
- package/dist/cjs/ADWebcast.js +18 -21
- package/dist/cjs/ADWelcome.js +22 -25
- package/dist/cjs/{ADlgInfeed-0c68c2d8.js → ADlgInfeed-2e7effc7.js} +7 -8
- package/dist/cjs/AccordionPanel.js +25 -29
- package/dist/cjs/AdSlot.js +20 -23
- package/dist/cjs/AdSlotsProvider.js +907 -18
- package/dist/cjs/AlgoliaSearch.js +849 -959
- package/dist/cjs/AlphabeticList.js +21 -24
- package/dist/cjs/ArticleCarousel.js +15 -18
- package/dist/cjs/ArticleProgramLandingPage.js +34 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +30 -33
- package/dist/cjs/ArticleSeriesListing.js +46 -49
- package/dist/cjs/Auth.js +1203 -245
- package/dist/cjs/AuthWrapper.js +41 -124
- 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 +71 -73
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +25 -30
- package/dist/cjs/Column3.js +41 -46
- package/dist/cjs/ConferenceArticleCard.js +20 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +83 -89
- package/dist/cjs/DeckQueue.js +77 -82
- package/dist/cjs/{Dfp-391fd124.js → Dfp-14d2455c.js} +25 -28
- package/dist/cjs/EventsDeck.js +127 -136
- package/dist/cjs/ExternalResources.js +58 -61
- package/dist/cjs/Feature.js +26 -25
- package/dist/cjs/ForbesHero.js +37 -40
- package/dist/cjs/GridContent.js +214 -221
- package/dist/cjs/GridHero.js +38 -41
- package/dist/cjs/GroupDeck.js +52 -55
- package/dist/cjs/HamMagazine.js +121 -128
- 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 +48 -51
- 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 +40 -43
- package/dist/cjs/LeftNav.js +27 -31
- package/dist/cjs/MasterDeck.js +60 -63
- package/dist/cjs/MediaSeriesLanding.js +792 -741
- package/dist/cjs/NavDvm.js +68 -75
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +121 -128
- package/dist/cjs/NavNative.js +113 -123
- 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 +1179 -84
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +16 -20
- package/dist/cjs/PubSection.js +27 -30
- package/dist/cjs/PubToc.js +12 -15
- package/dist/cjs/PublicationDeck.js +62 -64
- package/dist/cjs/PublicationLanding.js +118 -124
- package/dist/cjs/QueueDeckExpanded.js +293 -295
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +25 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +15 -21
- package/dist/cjs/Segment.js +25 -15
- package/dist/cjs/SeriesListingDeck.js +31 -33
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-94af9fcb.js} +34 -35
- package/dist/cjs/SideFooter.js +28 -31
- 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 +33 -36
- package/dist/cjs/TemplateNormal.js +43 -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 +51 -57
- package/dist/cjs/VideoSeriesCard.js +26 -27
- package/dist/cjs/VideoSeriesFilter.js +14 -16
- package/dist/cjs/VideoSeriesLandingPage.js +35 -38
- package/dist/cjs/VideoSeriesListing.js +63 -66
- package/dist/cjs/View.js +216 -228
- package/dist/cjs/YahooHero.js +33 -36
- package/dist/cjs/YoutubeGroup.js +54 -57
- 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/{extends-0a918631.js → extends-eed4f016.js} +8 -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 +23 -25
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-8874437b.js} +3 -3
- package/dist/cjs/getTargeting.js +5 -7
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-efd6512d.js → index-cdcc0b5e.js} +963 -968
- 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 +72 -79
- package/dist/cjs/{inherits-0c7830c5.js → inherits-12d44cca.js} +13 -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 +14 -16
- package/dist/esm/AD300x250x600.js +14 -16
- package/dist/esm/AD728x90.js +15 -17
- package/dist/esm/ADFloatingFooter.js +16 -18
- package/dist/esm/ADFooter.js +9 -11
- package/dist/esm/ADGutter.js +16 -18
- package/dist/esm/{ADInfeed-77da0e2a.js → ADInfeed-bfd129d9.js} +8 -8
- package/dist/esm/ADSkyscraper.js +16 -18
- package/dist/esm/ADSponsoredResources.js +16 -18
- package/dist/esm/ADWebcast.js +16 -18
- package/dist/esm/ADWelcome.js +20 -22
- package/dist/esm/{ADlgInfeed-d3e3000f.js → ADlgInfeed-0489335b.js} +5 -5
- package/dist/esm/AccordionPanel.js +20 -22
- package/dist/esm/AdSlot.js +12 -14
- package/dist/esm/AdSlotsProvider.js +906 -16
- package/dist/esm/AlgoliaSearch.js +245 -354
- package/dist/esm/AlphabeticList.js +19 -21
- package/dist/esm/ArticleCarousel.js +13 -15
- package/dist/esm/ArticleProgramLandingPage.js +32 -34
- package/dist/esm/ArticleSeriesLandingPage.js +28 -30
- package/dist/esm/ArticleSeriesListing.js +43 -45
- package/dist/esm/Auth.js +1187 -225
- package/dist/esm/AuthWrapper.js +39 -121
- 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 +68 -70
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +23 -25
- package/dist/esm/Column3.js +39 -41
- package/dist/esm/ConferenceArticleCard.js +18 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -81
- package/dist/esm/DeckQueue.js +73 -74
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-f867d061.js} +13 -15
- package/dist/esm/EventsDeck.js +102 -104
- package/dist/esm/ExternalResources.js +53 -55
- package/dist/esm/Feature.js +20 -17
- package/dist/esm/ForbesHero.js +31 -33
- package/dist/esm/GridContent.js +183 -185
- package/dist/esm/GridHero.js +32 -34
- package/dist/esm/GroupDeck.js +40 -42
- package/dist/esm/HamMagazine.js +96 -98
- 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 +46 -48
- 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 +38 -40
- package/dist/esm/LeftNav.js +23 -25
- package/dist/esm/MasterDeck.js +57 -59
- package/dist/esm/MediaSeriesLanding.js +518 -464
- package/dist/esm/NavDvm.js +51 -53
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +98 -100
- package/dist/esm/NavNative.js +88 -90
- 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 +1178 -83
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +11 -13
- package/dist/esm/PubSection.js +25 -27
- package/dist/esm/PubToc.js +10 -12
- package/dist/esm/PublicationDeck.js +54 -51
- package/dist/esm/PublicationLanding.js +77 -79
- package/dist/esm/QueueDeckExpanded.js +259 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +20 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +10 -12
- package/dist/esm/Segment.js +25 -15
- package/dist/esm/SeriesListingDeck.js +26 -28
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-0371fc11.js} +25 -25
- package/dist/esm/SideFooter.js +25 -27
- 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 +28 -30
- package/dist/esm/TemplateNormal.js +40 -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 +44 -46
- package/dist/esm/VideoSeriesCard.js +21 -21
- package/dist/esm/VideoSeriesFilter.js +11 -13
- package/dist/esm/VideoSeriesLandingPage.js +28 -30
- package/dist/esm/VideoSeriesListing.js +60 -62
- package/dist/esm/View.js +199 -207
- package/dist/esm/YahooHero.js +28 -30
- package/dist/esm/YoutubeGroup.js +39 -41
- 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/{extends-6f2fcc99.js → extends-5b1796d4.js} +1 -1
- 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 +23 -25
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-277c801e.js} +2 -2
- package/dist/esm/getTargeting.js +5 -7
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- 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-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index-23415831.js → index-fe008ffe.js} +914 -909
- 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 +64 -68
- package/dist/esm/{inherits-75d45541.js → inherits-2409637d.js} +4 -5
- 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 +1 -1
- 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,82 +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 = 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
|
+
var React__default = _interopDefault(React);
|
|
19
20
|
require('./events-1b438fe7.js');
|
|
20
|
-
require('./index-
|
|
21
|
+
require('./index-98e01cb9.js');
|
|
21
22
|
var PropTypes = require('prop-types');
|
|
23
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
22
24
|
require('react-bootstrap/Container');
|
|
23
25
|
require('react-bootstrap/Row');
|
|
24
26
|
require('react-bootstrap/Col');
|
|
25
27
|
require('react-bootstrap/Card');
|
|
26
|
-
var moment = require('./moment-
|
|
28
|
+
var moment = require('./moment-575fe24c.js');
|
|
27
29
|
require('next/router');
|
|
28
30
|
require('./isSymbol-04666465.js');
|
|
29
31
|
require('./debounce-529c8d06.js');
|
|
30
32
|
require('./toNumber-36d1e7e5.js');
|
|
31
|
-
require('./index.es-
|
|
32
|
-
var ReactDOM = require('react-dom');
|
|
33
|
-
require('./visibility-sensor-
|
|
34
|
-
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');
|
|
35
38
|
var urlFor = require('./urlFor.js');
|
|
36
|
-
var index$
|
|
37
|
-
require('./main-
|
|
39
|
+
var index$2 = require('./index-96b3db50.js');
|
|
40
|
+
require('./main-02daeefe.js');
|
|
38
41
|
require('./entities-310b46ee.js');
|
|
39
|
-
|
|
40
|
-
require('./
|
|
41
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
42
|
+
require('./stringify-bbc68047.js');
|
|
43
|
+
var asyncToGenerator = require('./asyncToGenerator-df19209d.js');
|
|
42
44
|
require('./Segment.js');
|
|
43
45
|
require('./Beam.js');
|
|
44
46
|
require('./AdSlot.js');
|
|
45
|
-
require('./ADInfeed-
|
|
46
|
-
require('./lodash-
|
|
47
|
-
require('./ADlgInfeed-
|
|
47
|
+
require('./ADInfeed-7c09edba.js');
|
|
48
|
+
require('./lodash-fc2922d0.js');
|
|
49
|
+
require('./ADlgInfeed-2e7effc7.js');
|
|
48
50
|
require('react-bootstrap/Button');
|
|
49
|
-
var BlockContent = require('./BlockContent-
|
|
51
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
50
52
|
require('./index-187c967e.js');
|
|
51
53
|
require('./smoothscroll-5054361f.js');
|
|
52
54
|
require('./GroupDeck.js');
|
|
53
55
|
require('react-bootstrap');
|
|
54
56
|
require('./iconBase-68959171.js');
|
|
55
|
-
require('./index.esm-
|
|
56
|
-
var getSerializers = require('./index-
|
|
57
|
+
require('./index.esm-90433435.js');
|
|
58
|
+
var getSerializers = require('./index-cdcc0b5e.js');
|
|
57
59
|
require('./util-f2c1b65b.js');
|
|
58
|
-
require('./brightcove-react-player-loader.es-
|
|
60
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
59
61
|
require('next/head');
|
|
60
62
|
require('react-share');
|
|
61
63
|
require('./SocialShare.js');
|
|
62
|
-
require('./_object-to-array-
|
|
64
|
+
require('./_object-to-array-9bac8737.js');
|
|
63
65
|
require('react-bootstrap/Pagination');
|
|
64
66
|
require('react-bootstrap/Figure');
|
|
65
67
|
require('react-bootstrap/OverlayTrigger');
|
|
66
68
|
require('react-bootstrap/Tooltip');
|
|
67
69
|
require('react-bootstrap/Popover');
|
|
68
70
|
var MasterDeck = require('./MasterDeck.js');
|
|
69
|
-
var defineProperty = require('./defineProperty-
|
|
70
|
-
var index = require('./index-e2e62963.js');
|
|
71
|
+
var defineProperty$1$1 = require('./defineProperty-77a37684.js');
|
|
72
|
+
var index$5 = require('./index-e2e62963.js');
|
|
71
73
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
72
|
-
var Link = require('next/link');
|
|
73
|
-
|
|
74
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
75
|
-
|
|
76
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
77
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
78
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
79
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
74
|
+
var Link = _interopDefault(require('next/link'));
|
|
80
75
|
|
|
81
76
|
/**
|
|
82
77
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -171,7 +166,7 @@ function useUncontrolled(props, config) {
|
|
|
171
166
|
var _ref = result,
|
|
172
167
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
173
168
|
propsValue = _ref[fieldName],
|
|
174
|
-
rest = index._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
169
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
175
170
|
|
|
176
171
|
var handlerName = config[fieldName];
|
|
177
172
|
|
|
@@ -179,7 +174,7 @@ function useUncontrolled(props, config) {
|
|
|
179
174
|
value = _useUncontrolledProp[0],
|
|
180
175
|
handler = _useUncontrolledProp[1];
|
|
181
176
|
|
|
182
|
-
return index._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
177
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
183
178
|
}, props);
|
|
184
179
|
}
|
|
185
180
|
|
|
@@ -189,7 +184,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
189
184
|
subClass.__proto__ = superClass;
|
|
190
185
|
}
|
|
191
186
|
|
|
192
|
-
var ThemeContext = React__default
|
|
187
|
+
var ThemeContext = React__default.createContext({});
|
|
193
188
|
var Consumer = ThemeContext.Consumer,
|
|
194
189
|
Provider = ThemeContext.Provider;
|
|
195
190
|
|
|
@@ -198,7 +193,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
198
193
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
199
194
|
}
|
|
200
195
|
|
|
201
|
-
var SelectableContext = React__default
|
|
196
|
+
var SelectableContext = React__default.createContext(null);
|
|
202
197
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
203
198
|
if (href === void 0) {
|
|
204
199
|
href = null;
|
|
@@ -208,7 +203,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
208
203
|
return href || null;
|
|
209
204
|
};
|
|
210
205
|
|
|
211
|
-
var context = React__default
|
|
206
|
+
var context = React__default.createContext(null);
|
|
212
207
|
context.displayName = 'AccordionContext';
|
|
213
208
|
|
|
214
209
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -224,13 +219,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
224
219
|
if (onClick) onClick(e);
|
|
225
220
|
};
|
|
226
221
|
}
|
|
227
|
-
var AccordionToggle = React__default
|
|
222
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
228
223
|
var _ref$as = _ref.as,
|
|
229
224
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
230
225
|
children = _ref.children,
|
|
231
226
|
eventKey = _ref.eventKey,
|
|
232
227
|
onClick = _ref.onClick,
|
|
233
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
228
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
234
229
|
|
|
235
230
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
236
231
|
|
|
@@ -238,7 +233,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
238
233
|
props.type = 'button';
|
|
239
234
|
}
|
|
240
235
|
|
|
241
|
-
return /*#__PURE__*/React__default
|
|
236
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
242
237
|
ref: ref,
|
|
243
238
|
onClick: accordionOnClick
|
|
244
239
|
}, props), children);
|
|
@@ -417,25 +412,25 @@ var config = {
|
|
|
417
412
|
disabled: false
|
|
418
413
|
};
|
|
419
414
|
|
|
420
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
421
|
-
enter: PropTypes__default
|
|
422
|
-
exit: PropTypes__default
|
|
423
|
-
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
|
|
424
419
|
}).isRequired]) : null;
|
|
425
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
426
|
-
enter: PropTypes__default
|
|
427
|
-
exit: PropTypes__default
|
|
428
|
-
active: PropTypes__default
|
|
429
|
-
}), PropTypes__default
|
|
430
|
-
enter: PropTypes__default
|
|
431
|
-
enterDone: PropTypes__default
|
|
432
|
-
enterActive: PropTypes__default
|
|
433
|
-
exit: PropTypes__default
|
|
434
|
-
exitDone: PropTypes__default
|
|
435
|
-
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
|
|
436
431
|
})]) : null;
|
|
437
432
|
|
|
438
|
-
var TransitionGroupContext = React__default
|
|
433
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
439
434
|
|
|
440
435
|
var UNMOUNTED = 'unmounted';
|
|
441
436
|
var EXITED = 'exited';
|
|
@@ -673,7 +668,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
673
668
|
var enter = this.props.enter;
|
|
674
669
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
675
670
|
|
|
676
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
671
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
677
672
|
maybeNode = _ref2[0],
|
|
678
673
|
maybeAppearing = _ref2[1];
|
|
679
674
|
|
|
@@ -711,7 +706,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
711
706
|
|
|
712
707
|
var exit = this.props.exit;
|
|
713
708
|
var timeouts = this.getTimeouts();
|
|
714
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
709
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
715
710
|
|
|
716
711
|
if (!exit || config.disabled) {
|
|
717
712
|
this.safeSetState({
|
|
@@ -775,7 +770,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
775
770
|
|
|
776
771
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
777
772
|
this.setNextCallback(handler);
|
|
778
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
773
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
779
774
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
780
775
|
|
|
781
776
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -820,19 +815,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
820
815
|
_onExiting = _this$props.onExiting,
|
|
821
816
|
_onExited = _this$props.onExited,
|
|
822
817
|
_nodeRef = _this$props.nodeRef,
|
|
823
|
-
childProps = index._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"]);
|
|
824
819
|
|
|
825
820
|
return (
|
|
826
821
|
/*#__PURE__*/
|
|
827
822
|
// allows for nested Transitions
|
|
828
|
-
React__default
|
|
823
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
829
824
|
value: null
|
|
830
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
825
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
831
826
|
);
|
|
832
827
|
};
|
|
833
828
|
|
|
834
829
|
return Transition;
|
|
835
|
-
}(React__default
|
|
830
|
+
}(React__default.Component);
|
|
836
831
|
|
|
837
832
|
Transition.contextType = TransitionGroupContext;
|
|
838
833
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -847,8 +842,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
847
842
|
* (see
|
|
848
843
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
849
844
|
*/
|
|
850
|
-
nodeRef: PropTypes__default
|
|
851
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
845
|
+
nodeRef: PropTypes__default.shape({
|
|
846
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
852
847
|
}),
|
|
853
848
|
|
|
854
849
|
/**
|
|
@@ -865,12 +860,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
865
860
|
* </Transition>
|
|
866
861
|
* ```
|
|
867
862
|
*/
|
|
868
|
-
children: PropTypes__default
|
|
863
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
869
864
|
|
|
870
865
|
/**
|
|
871
866
|
* Show the component; triggers the enter or exit states
|
|
872
867
|
*/
|
|
873
|
-
in: PropTypes__default
|
|
868
|
+
in: PropTypes__default.bool,
|
|
874
869
|
|
|
875
870
|
/**
|
|
876
871
|
* By default the child component is mounted immediately along with
|
|
@@ -878,13 +873,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
878
873
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
879
874
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
880
875
|
*/
|
|
881
|
-
mountOnEnter: PropTypes__default
|
|
876
|
+
mountOnEnter: PropTypes__default.bool,
|
|
882
877
|
|
|
883
878
|
/**
|
|
884
879
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
885
880
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
886
881
|
*/
|
|
887
|
-
unmountOnExit: PropTypes__default
|
|
882
|
+
unmountOnExit: PropTypes__default.bool,
|
|
888
883
|
|
|
889
884
|
/**
|
|
890
885
|
* By default the child component does not perform the enter transition when
|
|
@@ -897,17 +892,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
897
892
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
898
893
|
* > differently.
|
|
899
894
|
*/
|
|
900
|
-
appear: PropTypes__default
|
|
895
|
+
appear: PropTypes__default.bool,
|
|
901
896
|
|
|
902
897
|
/**
|
|
903
898
|
* Enable or disable enter transitions.
|
|
904
899
|
*/
|
|
905
|
-
enter: PropTypes__default
|
|
900
|
+
enter: PropTypes__default.bool,
|
|
906
901
|
|
|
907
902
|
/**
|
|
908
903
|
* Enable or disable exit transitions.
|
|
909
904
|
*/
|
|
910
|
-
exit: PropTypes__default
|
|
905
|
+
exit: PropTypes__default.bool,
|
|
911
906
|
|
|
912
907
|
/**
|
|
913
908
|
* The duration of the transition, in milliseconds.
|
|
@@ -960,7 +955,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
960
955
|
* }}
|
|
961
956
|
* ```
|
|
962
957
|
*/
|
|
963
|
-
addEndListener: PropTypes__default
|
|
958
|
+
addEndListener: PropTypes__default.func,
|
|
964
959
|
|
|
965
960
|
/**
|
|
966
961
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -970,7 +965,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
970
965
|
*
|
|
971
966
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
972
967
|
*/
|
|
973
|
-
onEnter: PropTypes__default
|
|
968
|
+
onEnter: PropTypes__default.func,
|
|
974
969
|
|
|
975
970
|
/**
|
|
976
971
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -980,7 +975,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
980
975
|
*
|
|
981
976
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
982
977
|
*/
|
|
983
|
-
onEntering: PropTypes__default
|
|
978
|
+
onEntering: PropTypes__default.func,
|
|
984
979
|
|
|
985
980
|
/**
|
|
986
981
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -990,7 +985,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
990
985
|
*
|
|
991
986
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
992
987
|
*/
|
|
993
|
-
onEntered: PropTypes__default
|
|
988
|
+
onEntered: PropTypes__default.func,
|
|
994
989
|
|
|
995
990
|
/**
|
|
996
991
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -999,7 +994,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
999
994
|
*
|
|
1000
995
|
* @type Function(node: HtmlElement) -> void
|
|
1001
996
|
*/
|
|
1002
|
-
onExit: PropTypes__default
|
|
997
|
+
onExit: PropTypes__default.func,
|
|
1003
998
|
|
|
1004
999
|
/**
|
|
1005
1000
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1008,7 +1003,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1003
|
*
|
|
1009
1004
|
* @type Function(node: HtmlElement) -> void
|
|
1010
1005
|
*/
|
|
1011
|
-
onExiting: PropTypes__default
|
|
1006
|
+
onExiting: PropTypes__default.func,
|
|
1012
1007
|
|
|
1013
1008
|
/**
|
|
1014
1009
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1017,7 +1012,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1017
1012
|
*
|
|
1018
1013
|
* @type Function(node: HtmlElement) -> void
|
|
1019
1014
|
*/
|
|
1020
|
-
onExited: PropTypes__default
|
|
1015
|
+
onExited: PropTypes__default.func
|
|
1021
1016
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1022
1017
|
|
|
1023
1018
|
function noop() {}
|
|
@@ -1108,7 +1103,7 @@ var defaultProps = {
|
|
|
1108
1103
|
appear: false,
|
|
1109
1104
|
getDimensionValue: getDefaultDimensionValue
|
|
1110
1105
|
};
|
|
1111
|
-
var Collapse = React__default
|
|
1106
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1112
1107
|
var onEnter = _ref.onEnter,
|
|
1113
1108
|
onEntering = _ref.onEntering,
|
|
1114
1109
|
onEntered = _ref.onEntered,
|
|
@@ -1120,7 +1115,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1120
1115
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1121
1116
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1122
1117
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1123
|
-
props = index._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"]);
|
|
1124
1119
|
|
|
1125
1120
|
/* Compute dimension */
|
|
1126
1121
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1155,8 +1150,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1155
1150
|
elem.style[computedDimension] = null;
|
|
1156
1151
|
}, onExiting);
|
|
1157
1152
|
}, [computedDimension, onExiting]);
|
|
1158
|
-
return /*#__PURE__*/React__default
|
|
1159
|
-
, index._extends({
|
|
1153
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1154
|
+
, index$5._extends({
|
|
1160
1155
|
ref: ref,
|
|
1161
1156
|
addEndListener: transitionEnd
|
|
1162
1157
|
}, props, {
|
|
@@ -1167,8 +1162,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1167
1162
|
onExit: handleExit,
|
|
1168
1163
|
onExiting: handleExiting
|
|
1169
1164
|
}), function (state, innerProps) {
|
|
1170
|
-
return React__default
|
|
1171
|
-
className: index.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')
|
|
1172
1167
|
}));
|
|
1173
1168
|
});
|
|
1174
1169
|
}); // @ts-ignore
|
|
@@ -1176,24 +1171,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1176
1171
|
// @ts-ignore
|
|
1177
1172
|
Collapse.defaultProps = defaultProps;
|
|
1178
1173
|
|
|
1179
|
-
var AccordionCollapse = React__default
|
|
1174
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1180
1175
|
var children = _ref.children,
|
|
1181
1176
|
eventKey = _ref.eventKey,
|
|
1182
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1177
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1183
1178
|
|
|
1184
1179
|
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1185
1180
|
// from collapsing the accordion when clicked.
|
|
1186
1181
|
|
|
1187
|
-
return /*#__PURE__*/React__default
|
|
1182
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1188
1183
|
value: null
|
|
1189
|
-
}, /*#__PURE__*/React__default
|
|
1184
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1190
1185
|
ref: ref,
|
|
1191
1186
|
in: contextEventKey === eventKey
|
|
1192
|
-
}, props), /*#__PURE__*/React__default
|
|
1187
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1193
1188
|
});
|
|
1194
1189
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1195
1190
|
|
|
1196
|
-
var Accordion = React__default
|
|
1191
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1197
1192
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1198
1193
|
activeKey: 'onSelect'
|
|
1199
1194
|
}),
|
|
@@ -1204,14 +1199,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1204
1199
|
children = _useUncontrolled.children,
|
|
1205
1200
|
className = _useUncontrolled.className,
|
|
1206
1201
|
onSelect = _useUncontrolled.onSelect,
|
|
1207
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1202
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1208
1203
|
|
|
1209
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1210
|
-
return /*#__PURE__*/React__default
|
|
1204
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1205
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1211
1206
|
value: activeKey || null
|
|
1212
|
-
}, /*#__PURE__*/React__default
|
|
1207
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1213
1208
|
value: onSelect || null
|
|
1214
|
-
}, /*#__PURE__*/React__default
|
|
1209
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1215
1210
|
ref: ref
|
|
1216
1211
|
}, controlledProps, {
|
|
1217
1212
|
className: finalClassName
|
|
@@ -1255,23 +1250,23 @@ var defaultProps$1 = {
|
|
|
1255
1250
|
appear: false
|
|
1256
1251
|
};
|
|
1257
1252
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1258
|
-
var Fade = React__default
|
|
1253
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1259
1254
|
var className = _ref.className,
|
|
1260
1255
|
children = _ref.children,
|
|
1261
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1256
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1262
1257
|
|
|
1263
1258
|
var handleEnter = React.useCallback(function (node) {
|
|
1264
1259
|
triggerBrowserReflow(node);
|
|
1265
1260
|
if (props.onEnter) props.onEnter(node);
|
|
1266
1261
|
}, [props]);
|
|
1267
|
-
return /*#__PURE__*/React__default
|
|
1262
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1268
1263
|
ref: ref,
|
|
1269
1264
|
addEndListener: transitionEnd
|
|
1270
1265
|
}, props, {
|
|
1271
1266
|
onEnter: handleEnter
|
|
1272
1267
|
}), function (status, innerProps) {
|
|
1273
|
-
return React__default
|
|
1274
|
-
className: index.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])
|
|
1275
1270
|
}));
|
|
1276
1271
|
});
|
|
1277
1272
|
});
|
|
@@ -1279,26 +1274,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1279
1274
|
Fade.displayName = 'Fade';
|
|
1280
1275
|
|
|
1281
1276
|
var propTypes = {
|
|
1282
|
-
label: PropTypes__default
|
|
1283
|
-
onClick: PropTypes__default
|
|
1277
|
+
label: PropTypes__default.string.isRequired,
|
|
1278
|
+
onClick: PropTypes__default.func
|
|
1284
1279
|
};
|
|
1285
1280
|
var defaultProps$2 = {
|
|
1286
1281
|
label: 'Close'
|
|
1287
1282
|
};
|
|
1288
|
-
var CloseButton = React__default
|
|
1283
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1289
1284
|
var label = _ref.label,
|
|
1290
1285
|
onClick = _ref.onClick,
|
|
1291
1286
|
className = _ref.className,
|
|
1292
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1287
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1293
1288
|
|
|
1294
|
-
return /*#__PURE__*/React__default
|
|
1289
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1295
1290
|
ref: ref,
|
|
1296
1291
|
type: "button",
|
|
1297
|
-
className: index.classnames('close', className),
|
|
1292
|
+
className: index$5.classnames('close', className),
|
|
1298
1293
|
onClick: onClick
|
|
1299
|
-
}, props), /*#__PURE__*/React__default
|
|
1294
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1300
1295
|
"aria-hidden": "true"
|
|
1301
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1296
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1302
1297
|
className: "sr-only"
|
|
1303
1298
|
}, label));
|
|
1304
1299
|
});
|
|
@@ -1307,10 +1302,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1307
1302
|
CloseButton.defaultProps = defaultProps$2;
|
|
1308
1303
|
|
|
1309
1304
|
var divWithClassName = (function (className) {
|
|
1310
|
-
return React__default
|
|
1311
|
-
return /*#__PURE__*/React__default
|
|
1305
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1306
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1312
1307
|
ref: ref,
|
|
1313
|
-
className: index.classnames(p.className, className)
|
|
1308
|
+
className: index$5.classnames(p.className, className)
|
|
1314
1309
|
}));
|
|
1315
1310
|
});
|
|
1316
1311
|
});
|
|
@@ -1334,17 +1329,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1334
1329
|
Component = _ref.Component,
|
|
1335
1330
|
defaultProps = _ref.defaultProps;
|
|
1336
1331
|
|
|
1337
|
-
var BsComponent = React__default
|
|
1332
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1338
1333
|
var className = _ref2.className,
|
|
1339
1334
|
bsPrefix = _ref2.bsPrefix,
|
|
1340
1335
|
_ref2$as = _ref2.as,
|
|
1341
1336
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1342
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1337
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1343
1338
|
|
|
1344
1339
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1345
|
-
return /*#__PURE__*/React__default
|
|
1340
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1346
1341
|
ref: ref,
|
|
1347
|
-
className: index.classnames(className, resolvedPrefix)
|
|
1342
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1348
1343
|
}, props));
|
|
1349
1344
|
});
|
|
1350
1345
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1364,12 +1359,12 @@ function isTrivialHref(href) {
|
|
|
1364
1359
|
*/
|
|
1365
1360
|
|
|
1366
1361
|
|
|
1367
|
-
var SafeAnchor = React__default
|
|
1362
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1368
1363
|
var _ref$as = _ref.as,
|
|
1369
1364
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1370
1365
|
disabled = _ref.disabled,
|
|
1371
1366
|
onKeyDown = _ref.onKeyDown,
|
|
1372
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1367
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1373
1368
|
|
|
1374
1369
|
var handleClick = function handleClick(event) {
|
|
1375
1370
|
var href = props.href,
|
|
@@ -1408,7 +1403,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1408
1403
|
props['aria-disabled'] = true;
|
|
1409
1404
|
}
|
|
1410
1405
|
|
|
1411
|
-
return /*#__PURE__*/React__default
|
|
1406
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1412
1407
|
ref: ref
|
|
1413
1408
|
}, props, {
|
|
1414
1409
|
onClick: handleClick,
|
|
@@ -1430,7 +1425,7 @@ var defaultProps$3 = {
|
|
|
1430
1425
|
transition: Fade,
|
|
1431
1426
|
closeLabel: 'Close alert'
|
|
1432
1427
|
};
|
|
1433
|
-
var Alert = React__default
|
|
1428
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1434
1429
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1435
1430
|
show: 'onClose'
|
|
1436
1431
|
}),
|
|
@@ -1443,7 +1438,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1443
1438
|
onClose = _useUncontrolled.onClose,
|
|
1444
1439
|
dismissible = _useUncontrolled.dismissible,
|
|
1445
1440
|
transition = _useUncontrolled.transition,
|
|
1446
|
-
props = index._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"]);
|
|
1447
1442
|
|
|
1448
1443
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1449
1444
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1452,17 +1447,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1452
1447
|
}
|
|
1453
1448
|
});
|
|
1454
1449
|
var Transition = transition === true ? Fade : transition;
|
|
1455
|
-
var alert = /*#__PURE__*/React__default
|
|
1450
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1456
1451
|
role: "alert"
|
|
1457
1452
|
}, Transition ? props : undefined, {
|
|
1458
1453
|
ref: ref,
|
|
1459
|
-
className: index.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1460
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1454
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1455
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1461
1456
|
onClick: handleClose,
|
|
1462
1457
|
label: closeLabel
|
|
1463
1458
|
}), children);
|
|
1464
1459
|
if (!Transition) return show ? alert : null;
|
|
1465
|
-
return /*#__PURE__*/React__default
|
|
1460
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1466
1461
|
unmountOnExit: true
|
|
1467
1462
|
}, props, {
|
|
1468
1463
|
ref: undefined,
|
|
@@ -1477,20 +1472,20 @@ Alert.Heading = AlertHeading;
|
|
|
1477
1472
|
var defaultProps$4 = {
|
|
1478
1473
|
pill: false
|
|
1479
1474
|
};
|
|
1480
|
-
var Badge = React__default
|
|
1475
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1481
1476
|
var bsPrefix = _ref.bsPrefix,
|
|
1482
1477
|
variant = _ref.variant,
|
|
1483
1478
|
pill = _ref.pill,
|
|
1484
1479
|
className = _ref.className,
|
|
1485
1480
|
_ref$as = _ref.as,
|
|
1486
1481
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1487
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1482
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1488
1483
|
|
|
1489
1484
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1490
|
-
return /*#__PURE__*/React__default
|
|
1485
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1491
1486
|
ref: ref
|
|
1492
1487
|
}, props, {
|
|
1493
|
-
className: index.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1488
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1494
1489
|
}));
|
|
1495
1490
|
});
|
|
1496
1491
|
Badge.displayName = 'Badge';
|
|
@@ -1500,7 +1495,7 @@ var defaultProps$5 = {
|
|
|
1500
1495
|
active: false,
|
|
1501
1496
|
linkProps: {}
|
|
1502
1497
|
};
|
|
1503
|
-
var BreadcrumbItem = React__default
|
|
1498
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1504
1499
|
var bsPrefix = _ref.bsPrefix,
|
|
1505
1500
|
active = _ref.active,
|
|
1506
1501
|
children = _ref.children,
|
|
@@ -1513,17 +1508,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1513
1508
|
href = _ref.href,
|
|
1514
1509
|
title = _ref.title,
|
|
1515
1510
|
target = _ref.target,
|
|
1516
|
-
props = index._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"]);
|
|
1517
1512
|
|
|
1518
1513
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1519
|
-
return /*#__PURE__*/React__default
|
|
1514
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1520
1515
|
ref: ref
|
|
1521
1516
|
}, props, {
|
|
1522
|
-
className: index.classnames(prefix, className, {
|
|
1517
|
+
className: index$5.classnames(prefix, className, {
|
|
1523
1518
|
active: active
|
|
1524
1519
|
}),
|
|
1525
1520
|
"aria-current": active ? 'page' : undefined
|
|
1526
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1521
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1527
1522
|
href: href,
|
|
1528
1523
|
title: title,
|
|
1529
1524
|
target: target
|
|
@@ -1536,7 +1531,7 @@ var defaultProps$6 = {
|
|
|
1536
1531
|
label: 'breadcrumb',
|
|
1537
1532
|
listProps: {}
|
|
1538
1533
|
};
|
|
1539
|
-
var Breadcrumb = React__default
|
|
1534
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1540
1535
|
var bsPrefix = _ref.bsPrefix,
|
|
1541
1536
|
className = _ref.className,
|
|
1542
1537
|
listProps = _ref.listProps,
|
|
@@ -1544,15 +1539,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1544
1539
|
label = _ref.label,
|
|
1545
1540
|
_ref$as = _ref.as,
|
|
1546
1541
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1547
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1542
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1548
1543
|
|
|
1549
1544
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1550
|
-
return /*#__PURE__*/React__default
|
|
1545
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1551
1546
|
"aria-label": label,
|
|
1552
1547
|
className: className,
|
|
1553
1548
|
ref: ref
|
|
1554
|
-
}, props), /*#__PURE__*/React__default
|
|
1555
|
-
className: index.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)
|
|
1556
1551
|
}), children));
|
|
1557
1552
|
});
|
|
1558
1553
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1564,7 +1559,7 @@ var defaultProps$7 = {
|
|
|
1564
1559
|
active: false,
|
|
1565
1560
|
disabled: false
|
|
1566
1561
|
};
|
|
1567
|
-
var Button = React__default
|
|
1562
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1568
1563
|
var bsPrefix = _ref.bsPrefix,
|
|
1569
1564
|
variant = _ref.variant,
|
|
1570
1565
|
size = _ref.size,
|
|
@@ -1573,16 +1568,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1573
1568
|
block = _ref.block,
|
|
1574
1569
|
type = _ref.type,
|
|
1575
1570
|
as = _ref.as,
|
|
1576
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1571
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1577
1572
|
|
|
1578
1573
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1579
|
-
var classes = index.classnames(className, prefix, active && 'active', variant && 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);
|
|
1580
1575
|
|
|
1581
1576
|
if (props.href) {
|
|
1582
|
-
return /*#__PURE__*/React__default
|
|
1577
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1583
1578
|
as: as,
|
|
1584
1579
|
ref: ref,
|
|
1585
|
-
className: index.classnames(classes, props.disabled && 'disabled')
|
|
1580
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1586
1581
|
}));
|
|
1587
1582
|
}
|
|
1588
1583
|
|
|
@@ -1597,7 +1592,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1597
1592
|
}
|
|
1598
1593
|
|
|
1599
1594
|
var Component = as || 'button';
|
|
1600
|
-
return /*#__PURE__*/React__default
|
|
1595
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1601
1596
|
className: classes
|
|
1602
1597
|
}));
|
|
1603
1598
|
});
|
|
@@ -1609,7 +1604,7 @@ var defaultProps$8 = {
|
|
|
1609
1604
|
toggle: false,
|
|
1610
1605
|
role: 'group'
|
|
1611
1606
|
};
|
|
1612
|
-
var ButtonGroup = React__default
|
|
1607
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1613
1608
|
var bsPrefix = _ref.bsPrefix,
|
|
1614
1609
|
size = _ref.size,
|
|
1615
1610
|
toggle = _ref.toggle,
|
|
@@ -1617,14 +1612,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1617
1612
|
className = _ref.className,
|
|
1618
1613
|
_ref$as = _ref.as,
|
|
1619
1614
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1620
|
-
rest = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1615
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1621
1616
|
|
|
1622
1617
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1623
1618
|
var baseClass = prefix;
|
|
1624
1619
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1625
|
-
return /*#__PURE__*/React__default
|
|
1620
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1626
1621
|
ref: ref,
|
|
1627
|
-
className: index.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1622
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1628
1623
|
}));
|
|
1629
1624
|
});
|
|
1630
1625
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1633,39 +1628,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1633
1628
|
var defaultProps$9 = {
|
|
1634
1629
|
role: 'toolbar'
|
|
1635
1630
|
};
|
|
1636
|
-
var ButtonToolbar = React__default
|
|
1631
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1637
1632
|
var bsPrefix = _ref.bsPrefix,
|
|
1638
1633
|
className = _ref.className,
|
|
1639
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1634
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1640
1635
|
|
|
1641
1636
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1642
|
-
return /*#__PURE__*/React__default
|
|
1637
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1643
1638
|
ref: ref,
|
|
1644
|
-
className: index.classnames(className, prefix)
|
|
1639
|
+
className: index$5.classnames(className, prefix)
|
|
1645
1640
|
}));
|
|
1646
1641
|
});
|
|
1647
1642
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1648
1643
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1649
1644
|
|
|
1650
|
-
var context$1 = React__default
|
|
1645
|
+
var context$1 = React__default.createContext(null);
|
|
1651
1646
|
context$1.displayName = 'CardContext';
|
|
1652
1647
|
|
|
1653
1648
|
var defaultProps$a = {
|
|
1654
1649
|
variant: null
|
|
1655
1650
|
};
|
|
1656
|
-
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
|
|
1657
1652
|
function (_ref, ref) {
|
|
1658
1653
|
var bsPrefix = _ref.bsPrefix,
|
|
1659
1654
|
className = _ref.className,
|
|
1660
1655
|
variant = _ref.variant,
|
|
1661
1656
|
_ref$as = _ref.as,
|
|
1662
1657
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1663
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1658
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1664
1659
|
|
|
1665
1660
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1666
|
-
return /*#__PURE__*/React__default
|
|
1661
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1667
1662
|
ref: ref,
|
|
1668
|
-
className: index.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1663
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1669
1664
|
}, props));
|
|
1670
1665
|
});
|
|
1671
1666
|
CardImg.displayName = 'CardImg';
|
|
@@ -1692,7 +1687,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1692
1687
|
var defaultProps$b = {
|
|
1693
1688
|
body: false
|
|
1694
1689
|
};
|
|
1695
|
-
var Card = React__default
|
|
1690
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1696
1691
|
var bsPrefix = _ref.bsPrefix,
|
|
1697
1692
|
className = _ref.className,
|
|
1698
1693
|
bg = _ref.bg,
|
|
@@ -1702,7 +1697,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1702
1697
|
children = _ref.children,
|
|
1703
1698
|
_ref$as = _ref.as,
|
|
1704
1699
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1705
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1700
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1706
1701
|
|
|
1707
1702
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1708
1703
|
var cardContext = React.useMemo(function () {
|
|
@@ -1710,16 +1705,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1710
1705
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1711
1706
|
};
|
|
1712
1707
|
}, [prefix]);
|
|
1713
|
-
return /*#__PURE__*/React__default
|
|
1708
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1714
1709
|
value: cardContext
|
|
1715
|
-
}, /*#__PURE__*/React__default
|
|
1710
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1716
1711
|
ref: ref
|
|
1717
1712
|
}, props, {
|
|
1718
|
-
className: index.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)
|
|
1719
1714
|
}), body ?
|
|
1720
1715
|
/*#__PURE__*/
|
|
1721
1716
|
// @ts-ignore
|
|
1722
|
-
React__default
|
|
1717
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1723
1718
|
});
|
|
1724
1719
|
Card.displayName = 'Card';
|
|
1725
1720
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1855,6 +1850,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1855
1850
|
/**
|
|
1856
1851
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1857
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
|
+
* ```
|
|
1858
1867
|
*/
|
|
1859
1868
|
|
|
1860
1869
|
|
|
@@ -1895,16 +1904,16 @@ function useTimeout() {
|
|
|
1895
1904
|
|
|
1896
1905
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1897
1906
|
|
|
1898
|
-
var CarouselItem = React__default
|
|
1907
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1899
1908
|
var _ref$as = _ref.as,
|
|
1900
1909
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1901
1910
|
bsPrefix = _ref.bsPrefix,
|
|
1902
1911
|
children = _ref.children,
|
|
1903
1912
|
className = _ref.className,
|
|
1904
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1913
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1905
1914
|
|
|
1906
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1907
|
-
return /*#__PURE__*/React__default
|
|
1915
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1916
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1908
1917
|
ref: ref
|
|
1909
1918
|
}, props, {
|
|
1910
1919
|
className: finalClassName
|
|
@@ -1923,8 +1932,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1923
1932
|
|
|
1924
1933
|
function map(children, func) {
|
|
1925
1934
|
var index = 0;
|
|
1926
|
-
return React__default
|
|
1927
|
-
return React__default
|
|
1935
|
+
return React__default.Children.map(children, function (child) {
|
|
1936
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1928
1937
|
});
|
|
1929
1938
|
}
|
|
1930
1939
|
/**
|
|
@@ -1937,8 +1946,8 @@ function map(children, func) {
|
|
|
1937
1946
|
|
|
1938
1947
|
function forEach(children, func) {
|
|
1939
1948
|
var index = 0;
|
|
1940
|
-
React__default
|
|
1941
|
-
if (React__default
|
|
1949
|
+
React__default.Children.forEach(children, function (child) {
|
|
1950
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1942
1951
|
});
|
|
1943
1952
|
}
|
|
1944
1953
|
|
|
@@ -1947,33 +1956,33 @@ var propTypes$1 = {
|
|
|
1947
1956
|
/**
|
|
1948
1957
|
* @default 'carousel'
|
|
1949
1958
|
*/
|
|
1950
|
-
bsPrefix: PropTypes__default
|
|
1951
|
-
as: PropTypes__default
|
|
1959
|
+
bsPrefix: PropTypes__default.string,
|
|
1960
|
+
as: PropTypes__default.elementType,
|
|
1952
1961
|
|
|
1953
1962
|
/**
|
|
1954
1963
|
* Enables animation on the Carousel as it transitions between slides.
|
|
1955
1964
|
*/
|
|
1956
|
-
slide: PropTypes__default
|
|
1965
|
+
slide: PropTypes__default.bool,
|
|
1957
1966
|
|
|
1958
1967
|
/** Cross fade slides instead of the default slide animation */
|
|
1959
|
-
fade: PropTypes__default
|
|
1968
|
+
fade: PropTypes__default.bool,
|
|
1960
1969
|
|
|
1961
1970
|
/**
|
|
1962
1971
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
1963
1972
|
*/
|
|
1964
|
-
controls: PropTypes__default
|
|
1973
|
+
controls: PropTypes__default.bool,
|
|
1965
1974
|
|
|
1966
1975
|
/**
|
|
1967
1976
|
* Show a set of slide position indicators
|
|
1968
1977
|
*/
|
|
1969
|
-
indicators: PropTypes__default
|
|
1978
|
+
indicators: PropTypes__default.bool,
|
|
1970
1979
|
|
|
1971
1980
|
/**
|
|
1972
1981
|
* Controls the current visible slide
|
|
1973
1982
|
*
|
|
1974
1983
|
* @controllable onSelect
|
|
1975
1984
|
*/
|
|
1976
|
-
activeIndex: PropTypes__default
|
|
1985
|
+
activeIndex: PropTypes__default.number,
|
|
1977
1986
|
|
|
1978
1987
|
/**
|
|
1979
1988
|
* Callback fired when the active item changes.
|
|
@@ -1984,7 +1993,7 @@ var propTypes$1 = {
|
|
|
1984
1993
|
*
|
|
1985
1994
|
* @controllable activeIndex
|
|
1986
1995
|
*/
|
|
1987
|
-
onSelect: PropTypes__default
|
|
1996
|
+
onSelect: PropTypes__default.func,
|
|
1988
1997
|
|
|
1989
1998
|
/**
|
|
1990
1999
|
* Callback fired when a slide transition starts.
|
|
@@ -1992,7 +2001,7 @@ var propTypes$1 = {
|
|
|
1992
2001
|
* ```js
|
|
1993
2002
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
1994
2003
|
*/
|
|
1995
|
-
onSlide: PropTypes__default
|
|
2004
|
+
onSlide: PropTypes__default.func,
|
|
1996
2005
|
|
|
1997
2006
|
/**
|
|
1998
2007
|
* Callback fired when a slide transition ends.
|
|
@@ -2000,50 +2009,50 @@ var propTypes$1 = {
|
|
|
2000
2009
|
* ```js
|
|
2001
2010
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2002
2011
|
*/
|
|
2003
|
-
onSlid: PropTypes__default
|
|
2012
|
+
onSlid: PropTypes__default.func,
|
|
2004
2013
|
|
|
2005
2014
|
/**
|
|
2006
2015
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2007
2016
|
*/
|
|
2008
|
-
interval: PropTypes__default
|
|
2017
|
+
interval: PropTypes__default.number,
|
|
2009
2018
|
|
|
2010
2019
|
/** Whether the carousel should react to keyboard events. */
|
|
2011
|
-
keyboard: PropTypes__default
|
|
2020
|
+
keyboard: PropTypes__default.bool,
|
|
2012
2021
|
|
|
2013
2022
|
/**
|
|
2014
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.
|
|
2015
2024
|
*
|
|
2016
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.
|
|
2017
2026
|
*/
|
|
2018
|
-
pause: PropTypes__default
|
|
2027
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2019
2028
|
|
|
2020
2029
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2021
|
-
wrap: PropTypes__default
|
|
2030
|
+
wrap: PropTypes__default.bool,
|
|
2022
2031
|
|
|
2023
2032
|
/**
|
|
2024
2033
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2025
2034
|
*/
|
|
2026
|
-
touch: PropTypes__default
|
|
2035
|
+
touch: PropTypes__default.bool,
|
|
2027
2036
|
|
|
2028
2037
|
/** Override the default button icon for the "previous" control */
|
|
2029
|
-
prevIcon: PropTypes__default
|
|
2038
|
+
prevIcon: PropTypes__default.node,
|
|
2030
2039
|
|
|
2031
2040
|
/**
|
|
2032
2041
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2033
2042
|
* in the carousel.
|
|
2034
2043
|
* Set to null to deactivate.
|
|
2035
2044
|
*/
|
|
2036
|
-
prevLabel: PropTypes__default
|
|
2045
|
+
prevLabel: PropTypes__default.string,
|
|
2037
2046
|
|
|
2038
2047
|
/** Override the default button icon for the "next" control */
|
|
2039
|
-
nextIcon: PropTypes__default
|
|
2048
|
+
nextIcon: PropTypes__default.node,
|
|
2040
2049
|
|
|
2041
2050
|
/**
|
|
2042
2051
|
* Label shown to screen readers only, can be used to show the next element
|
|
2043
2052
|
* in the carousel.
|
|
2044
2053
|
* Set to null to deactivate.
|
|
2045
2054
|
*/
|
|
2046
|
-
nextLabel: PropTypes__default
|
|
2055
|
+
nextLabel: PropTypes__default.string
|
|
2047
2056
|
};
|
|
2048
2057
|
var defaultProps$c = {
|
|
2049
2058
|
slide: true,
|
|
@@ -2056,12 +2065,12 @@ var defaultProps$c = {
|
|
|
2056
2065
|
pause: 'hover',
|
|
2057
2066
|
wrap: true,
|
|
2058
2067
|
touch: true,
|
|
2059
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2068
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2060
2069
|
"aria-hidden": "true",
|
|
2061
2070
|
className: "carousel-control-prev-icon"
|
|
2062
2071
|
}),
|
|
2063
2072
|
prevLabel: 'Previous',
|
|
2064
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2073
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2065
2074
|
"aria-hidden": "true",
|
|
2066
2075
|
className: "carousel-control-next-icon"
|
|
2067
2076
|
}),
|
|
@@ -2109,7 +2118,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2109
2118
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2110
2119
|
className = _useUncontrolled.className,
|
|
2111
2120
|
children = _useUncontrolled.children,
|
|
2112
|
-
props = index._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"]);
|
|
2113
2122
|
|
|
2114
2123
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2115
2124
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2366,7 +2375,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2366
2375
|
};
|
|
2367
2376
|
});
|
|
2368
2377
|
}, [indicators, numChildren, onSelect]);
|
|
2369
|
-
return /*#__PURE__*/React__default
|
|
2378
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2370
2379
|
ref: elementRef
|
|
2371
2380
|
}, props, {
|
|
2372
2381
|
onKeyDown: handleKeyDown,
|
|
@@ -2375,45 +2384,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2384
|
onTouchStart: handleTouchStart,
|
|
2376
2385
|
onTouchMove: handleTouchMove,
|
|
2377
2386
|
onTouchEnd: handleTouchEnd,
|
|
2378
|
-
className: index.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2379
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2387
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2388
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2380
2389
|
className: prefix + "-indicators"
|
|
2381
2390
|
}, map(children, function (_child, index) {
|
|
2382
|
-
return /*#__PURE__*/React__default
|
|
2391
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2383
2392
|
key: index,
|
|
2384
2393
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2385
2394
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2386
2395
|
});
|
|
2387
|
-
})), /*#__PURE__*/React__default
|
|
2396
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2388
2397
|
className: prefix + "-inner"
|
|
2389
|
-
}, map(children, function (child, index
|
|
2390
|
-
var isActive = index
|
|
2391
|
-
return slide ? /*#__PURE__*/React__default
|
|
2398
|
+
}, map(children, function (child, index) {
|
|
2399
|
+
var isActive = index === renderedActiveIndex;
|
|
2400
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2392
2401
|
in: isActive,
|
|
2393
2402
|
onEnter: isActive ? handleEnter : undefined,
|
|
2394
2403
|
onEntered: isActive ? handleEntered : undefined,
|
|
2395
2404
|
addEndListener: transitionEnd
|
|
2396
2405
|
}, function (status) {
|
|
2397
|
-
return React__default
|
|
2398
|
-
className: index.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)
|
|
2399
2408
|
});
|
|
2400
|
-
}) : React__default
|
|
2401
|
-
className: index.classnames(child.props.className, isActive && 'active')
|
|
2409
|
+
}) : React__default.cloneElement(child, {
|
|
2410
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2402
2411
|
});
|
|
2403
|
-
})), controls && /*#__PURE__*/React__default
|
|
2412
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2404
2413
|
className: prefix + "-control-prev",
|
|
2405
2414
|
onClick: prev
|
|
2406
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2415
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2407
2416
|
className: "sr-only"
|
|
2408
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2417
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2409
2418
|
className: prefix + "-control-next",
|
|
2410
2419
|
onClick: next
|
|
2411
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2420
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2412
2421
|
className: "sr-only"
|
|
2413
2422
|
}, nextLabel))));
|
|
2414
2423
|
}
|
|
2415
2424
|
|
|
2416
|
-
var Carousel = React__default
|
|
2425
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2417
2426
|
Carousel.displayName = 'Carousel';
|
|
2418
2427
|
Carousel.propTypes = propTypes$1;
|
|
2419
2428
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2421,13 +2430,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2421
2430
|
Carousel.Item = CarouselItem;
|
|
2422
2431
|
|
|
2423
2432
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2424
|
-
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
|
|
2425
2434
|
function (_ref, ref) {
|
|
2426
2435
|
var bsPrefix = _ref.bsPrefix,
|
|
2427
2436
|
className = _ref.className,
|
|
2428
2437
|
_ref$as = _ref.as,
|
|
2429
2438
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2430
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2439
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2431
2440
|
|
|
2432
2441
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2433
2442
|
var spans = [];
|
|
@@ -2458,9 +2467,9 @@ function (_ref, ref) {
|
|
|
2458
2467
|
spans.push(prefix); // plain 'col'
|
|
2459
2468
|
}
|
|
2460
2469
|
|
|
2461
|
-
return /*#__PURE__*/React__default
|
|
2470
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2462
2471
|
ref: ref,
|
|
2463
|
-
className: index.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2472
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2464
2473
|
}));
|
|
2465
2474
|
});
|
|
2466
2475
|
Col.displayName = 'Col';
|
|
@@ -2567,7 +2576,40 @@ function useForceUpdate() {
|
|
|
2567
2576
|
return dispatch;
|
|
2568
2577
|
}
|
|
2569
2578
|
|
|
2570
|
-
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
|
+
}
|
|
2571
2613
|
|
|
2572
2614
|
function useSafeState(state) {
|
|
2573
2615
|
var isMounted = useMounted();
|
|
@@ -2672,7 +2714,7 @@ function contains(parent, child) {
|
|
|
2672
2714
|
do {
|
|
2673
2715
|
if (next && parent.isSameNode(next)) {
|
|
2674
2716
|
return true;
|
|
2675
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2717
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2676
2718
|
|
|
2677
2719
|
|
|
2678
2720
|
next = next.parentNode || next.host;
|
|
@@ -2696,8 +2738,9 @@ function isTableElement(element) {
|
|
|
2696
2738
|
}
|
|
2697
2739
|
|
|
2698
2740
|
function getDocumentElement(element) {
|
|
2699
|
-
// $FlowFixMe: assume body is always available
|
|
2700
|
-
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;
|
|
2701
2744
|
}
|
|
2702
2745
|
|
|
2703
2746
|
function getParentNode(element) {
|
|
@@ -2705,12 +2748,14 @@ function getParentNode(element) {
|
|
|
2705
2748
|
return element;
|
|
2706
2749
|
}
|
|
2707
2750
|
|
|
2708
|
-
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]
|
|
2709
2754
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2710
2755
|
element.parentNode || // DOM Element detected
|
|
2711
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2756
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2712
2757
|
element.host || // ShadowRoot detected
|
|
2713
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2758
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2714
2759
|
getDocumentElement(element) // fallback
|
|
2715
2760
|
|
|
2716
2761
|
);
|
|
@@ -2897,7 +2942,7 @@ var unsetSides = {
|
|
|
2897
2942
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2898
2943
|
// cleanly divide the values into the appropriate subpixels.
|
|
2899
2944
|
|
|
2900
|
-
function
|
|
2945
|
+
function roundOffsetsByDPR(_ref) {
|
|
2901
2946
|
var x = _ref.x,
|
|
2902
2947
|
y = _ref.y;
|
|
2903
2948
|
var win = window;
|
|
@@ -2917,11 +2962,14 @@ function mapToStyles(_ref2) {
|
|
|
2917
2962
|
offsets = _ref2.offsets,
|
|
2918
2963
|
position = _ref2.position,
|
|
2919
2964
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2920
|
-
adaptive = _ref2.adaptive
|
|
2965
|
+
adaptive = _ref2.adaptive,
|
|
2966
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2921
2967
|
|
|
2922
|
-
var
|
|
2923
|
-
x =
|
|
2924
|
-
|
|
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;
|
|
2925
2973
|
|
|
2926
2974
|
var hasX = offsets.hasOwnProperty('x');
|
|
2927
2975
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2934,7 +2982,7 @@ function mapToStyles(_ref2) {
|
|
|
2934
2982
|
|
|
2935
2983
|
if (offsetParent === getWindow(popper)) {
|
|
2936
2984
|
offsetParent = getDocumentElement(popper);
|
|
2937
|
-
} // $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
|
|
2938
2986
|
|
|
2939
2987
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2940
2988
|
|
|
@@ -2965,13 +3013,15 @@ function mapToStyles(_ref2) {
|
|
|
2965
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));
|
|
2966
3014
|
}
|
|
2967
3015
|
|
|
2968
|
-
function computeStyles(
|
|
2969
|
-
var state =
|
|
2970
|
-
options =
|
|
3016
|
+
function computeStyles(_ref4) {
|
|
3017
|
+
var state = _ref4.state,
|
|
3018
|
+
options = _ref4.options;
|
|
2971
3019
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2972
3020
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2973
3021
|
_options$adaptive = options.adaptive,
|
|
2974
|
-
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;
|
|
2975
3025
|
|
|
2976
3026
|
if (process.env.NODE_ENV !== "production") {
|
|
2977
3027
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -2994,7 +3044,8 @@ function computeStyles(_ref3) {
|
|
|
2994
3044
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2995
3045
|
offsets: state.modifiersData.popperOffsets,
|
|
2996
3046
|
position: state.options.strategy,
|
|
2997
|
-
adaptive: adaptive
|
|
3047
|
+
adaptive: adaptive,
|
|
3048
|
+
roundOffsets: roundOffsets
|
|
2998
3049
|
})));
|
|
2999
3050
|
}
|
|
3000
3051
|
|
|
@@ -3002,7 +3053,8 @@ function computeStyles(_ref3) {
|
|
|
3002
3053
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3003
3054
|
offsets: state.modifiersData.arrow,
|
|
3004
3055
|
position: 'absolute',
|
|
3005
|
-
adaptive: false
|
|
3056
|
+
adaptive: false,
|
|
3057
|
+
roundOffsets: roundOffsets
|
|
3006
3058
|
})));
|
|
3007
3059
|
}
|
|
3008
3060
|
|
|
@@ -3198,7 +3250,7 @@ function isScrollParent(element) {
|
|
|
3198
3250
|
|
|
3199
3251
|
function getScrollParent(node) {
|
|
3200
3252
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3201
|
-
// $FlowFixMe: assume body is always available
|
|
3253
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3202
3254
|
return node.ownerDocument.body;
|
|
3203
3255
|
}
|
|
3204
3256
|
|
|
@@ -3212,7 +3264,7 @@ function getScrollParent(node) {
|
|
|
3212
3264
|
/*
|
|
3213
3265
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3214
3266
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3215
|
-
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
|
|
3216
3268
|
reference element's position.
|
|
3217
3269
|
*/
|
|
3218
3270
|
|
|
@@ -3226,7 +3278,7 @@ function listScrollParents(element, list) {
|
|
|
3226
3278
|
var win = getWindow(scrollParent);
|
|
3227
3279
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3228
3280
|
var updatedList = list.concat(target);
|
|
3229
|
-
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
|
|
3230
3282
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3231
3283
|
}
|
|
3232
3284
|
|
|
@@ -3266,7 +3318,7 @@ function getClippingParents(element) {
|
|
|
3266
3318
|
|
|
3267
3319
|
if (!isElement(clipperElement)) {
|
|
3268
3320
|
return [];
|
|
3269
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3321
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3270
3322
|
|
|
3271
3323
|
|
|
3272
3324
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3352,11 +3404,11 @@ function computeOffsets(_ref) {
|
|
|
3352
3404
|
|
|
3353
3405
|
switch (variation) {
|
|
3354
3406
|
case start:
|
|
3355
|
-
offsets[mainAxis] =
|
|
3407
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3356
3408
|
break;
|
|
3357
3409
|
|
|
3358
3410
|
case end:
|
|
3359
|
-
offsets[mainAxis] =
|
|
3411
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3360
3412
|
break;
|
|
3361
3413
|
}
|
|
3362
3414
|
}
|
|
@@ -3438,8 +3490,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3438
3490
|
var variation = getVariation(placement);
|
|
3439
3491
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3440
3492
|
return getVariation(placement) === variation;
|
|
3441
|
-
}) : basePlacements;
|
|
3442
|
-
|
|
3493
|
+
}) : basePlacements;
|
|
3443
3494
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3444
3495
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3445
3496
|
});
|
|
@@ -3450,7 +3501,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3450
3501
|
if (process.env.NODE_ENV !== "production") {
|
|
3451
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(' '));
|
|
3452
3503
|
}
|
|
3453
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3504
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3454
3505
|
|
|
3455
3506
|
|
|
3456
3507
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4413,7 +4464,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4413
4464
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4414
4465
|
_ref3$modifiers = _ref3.modifiers,
|
|
4415
4466
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4416
|
-
config =
|
|
4467
|
+
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4417
4468
|
|
|
4418
4469
|
var popperInstanceRef = React.useRef();
|
|
4419
4470
|
var update = React.useCallback(function () {
|
|
@@ -4479,7 +4530,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4479
4530
|
return undefined;
|
|
4480
4531
|
}
|
|
4481
4532
|
|
|
4482
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement,
|
|
4533
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4483
4534
|
placement: placement,
|
|
4484
4535
|
strategy: strategy,
|
|
4485
4536
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4489,7 +4540,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4489
4540
|
popperInstanceRef.current.destroy();
|
|
4490
4541
|
popperInstanceRef.current = undefined;
|
|
4491
4542
|
setState(function (s) {
|
|
4492
|
-
return
|
|
4543
|
+
return _extends({}, s, {
|
|
4493
4544
|
attributes: {},
|
|
4494
4545
|
styles: {
|
|
4495
4546
|
popper: initialPopperStyles(strategy)
|
|
@@ -4574,7 +4625,7 @@ var warning_1 = warning;
|
|
|
4574
4625
|
|
|
4575
4626
|
function safeFindDOMNode(componentOrElement) {
|
|
4576
4627
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4577
|
-
return
|
|
4628
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4578
4629
|
}
|
|
4579
4630
|
|
|
4580
4631
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4719,30 +4770,30 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4719
4770
|
_ref$popperConfig = _ref.popperConfig,
|
|
4720
4771
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4721
4772
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4722
|
-
return
|
|
4773
|
+
return _extends({}, popperConfig, {
|
|
4723
4774
|
placement: placement,
|
|
4724
4775
|
enabled: enabled,
|
|
4725
|
-
modifiers: toModifierArray(
|
|
4776
|
+
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4726
4777
|
eventListeners: {
|
|
4727
4778
|
enabled: enableEvents
|
|
4728
4779
|
},
|
|
4729
|
-
preventOverflow:
|
|
4730
|
-
options: containerPadding ?
|
|
4780
|
+
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4781
|
+
options: containerPadding ? _extends({
|
|
4731
4782
|
padding: containerPadding
|
|
4732
4783
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4733
4784
|
}),
|
|
4734
4785
|
offset: {
|
|
4735
|
-
options:
|
|
4786
|
+
options: _extends({
|
|
4736
4787
|
offset: offset
|
|
4737
4788
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4738
4789
|
},
|
|
4739
|
-
arrow:
|
|
4790
|
+
arrow: _extends({}, modifiers.arrow, {
|
|
4740
4791
|
enabled: !!arrowElement,
|
|
4741
|
-
options:
|
|
4792
|
+
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4742
4793
|
element: arrowElement
|
|
4743
4794
|
})
|
|
4744
4795
|
}),
|
|
4745
|
-
flip:
|
|
4796
|
+
flip: _extends({
|
|
4746
4797
|
enabled: !!flip
|
|
4747
4798
|
}, modifiers.flip)
|
|
4748
4799
|
}))
|
|
@@ -4813,7 +4864,7 @@ function useDropdownMenu(options) {
|
|
|
4813
4864
|
})),
|
|
4814
4865
|
styles = _usePopper.styles,
|
|
4815
4866
|
attributes = _usePopper.attributes,
|
|
4816
|
-
popper =
|
|
4867
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4817
4868
|
|
|
4818
4869
|
var menu;
|
|
4819
4870
|
var menuProps = {
|
|
@@ -4828,15 +4879,15 @@ function useDropdownMenu(options) {
|
|
|
4828
4879
|
};
|
|
4829
4880
|
|
|
4830
4881
|
if (!shouldUsePopper) {
|
|
4831
|
-
menu =
|
|
4882
|
+
menu = _extends({}, childArgs, {
|
|
4832
4883
|
props: menuProps
|
|
4833
4884
|
});
|
|
4834
4885
|
} else {
|
|
4835
|
-
menu =
|
|
4836
|
-
props:
|
|
4886
|
+
menu = _extends({}, popper, childArgs, {
|
|
4887
|
+
props: _extends({}, menuProps, attributes.popper, {
|
|
4837
4888
|
style: styles.popper
|
|
4838
4889
|
}),
|
|
4839
|
-
arrowProps:
|
|
4890
|
+
arrowProps: _extends({
|
|
4840
4891
|
ref: attachArrowRef
|
|
4841
4892
|
}, attributes.arrow, {
|
|
4842
4893
|
style: styles.arrow
|
|
@@ -4873,39 +4924,39 @@ var propTypes$2 = {
|
|
|
4873
4924
|
* },
|
|
4874
4925
|
* }) => React.Element}
|
|
4875
4926
|
*/
|
|
4876
|
-
children: PropTypes__default
|
|
4927
|
+
children: PropTypes__default.func.isRequired,
|
|
4877
4928
|
|
|
4878
4929
|
/**
|
|
4879
4930
|
* Controls the visible state of the menu, generally this is
|
|
4880
4931
|
* provided by the parent `Dropdown` component,
|
|
4881
4932
|
* but may also be specified as a prop directly.
|
|
4882
4933
|
*/
|
|
4883
|
-
show: PropTypes__default
|
|
4934
|
+
show: PropTypes__default.bool,
|
|
4884
4935
|
|
|
4885
4936
|
/**
|
|
4886
4937
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4887
4938
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4888
4939
|
* but may also be specified as a prop directly.
|
|
4889
4940
|
*/
|
|
4890
|
-
alignEnd: PropTypes__default
|
|
4941
|
+
alignEnd: PropTypes__default.bool,
|
|
4891
4942
|
|
|
4892
4943
|
/**
|
|
4893
4944
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4894
4945
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4895
4946
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4896
4947
|
*/
|
|
4897
|
-
flip: PropTypes__default
|
|
4898
|
-
usePopper: PropTypes__default
|
|
4948
|
+
flip: PropTypes__default.bool,
|
|
4949
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4899
4950
|
|
|
4900
4951
|
/**
|
|
4901
4952
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4902
4953
|
*/
|
|
4903
|
-
popperConfig: PropTypes__default
|
|
4954
|
+
popperConfig: PropTypes__default.object,
|
|
4904
4955
|
|
|
4905
4956
|
/**
|
|
4906
4957
|
* Override the default event used by RootCloseWrapper.
|
|
4907
4958
|
*/
|
|
4908
|
-
rootCloseEvent: PropTypes__default
|
|
4959
|
+
rootCloseEvent: PropTypes__default.string
|
|
4909
4960
|
};
|
|
4910
4961
|
var defaultProps$d = {
|
|
4911
4962
|
usePopper: true
|
|
@@ -4919,10 +4970,10 @@ var defaultProps$d = {
|
|
|
4919
4970
|
*/
|
|
4920
4971
|
function DropdownMenu(_ref2) {
|
|
4921
4972
|
var children = _ref2.children,
|
|
4922
|
-
options =
|
|
4973
|
+
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4923
4974
|
|
|
4924
4975
|
var args = useDropdownMenu(options);
|
|
4925
|
-
return /*#__PURE__*/React__default
|
|
4976
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4926
4977
|
}
|
|
4927
4978
|
|
|
4928
4979
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4971,7 +5022,7 @@ var propTypes$3 = {
|
|
|
4971
5022
|
* },
|
|
4972
5023
|
* }) => React.Element}
|
|
4973
5024
|
*/
|
|
4974
|
-
children: PropTypes__default
|
|
5025
|
+
children: PropTypes__default.func.isRequired
|
|
4975
5026
|
};
|
|
4976
5027
|
|
|
4977
5028
|
/**
|
|
@@ -4989,7 +5040,7 @@ function DropdownToggle(_ref2) {
|
|
|
4989
5040
|
show = _useDropdownToggle$.show,
|
|
4990
5041
|
toggle = _useDropdownToggle$.toggle;
|
|
4991
5042
|
|
|
4992
|
-
return /*#__PURE__*/React__default
|
|
5043
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4993
5044
|
show: show,
|
|
4994
5045
|
toggle: toggle,
|
|
4995
5046
|
props: props
|
|
@@ -5011,12 +5062,12 @@ var propTypes$4 = {
|
|
|
5011
5062
|
* },
|
|
5012
5063
|
* }) => React.Element}
|
|
5013
5064
|
*/
|
|
5014
|
-
children: PropTypes__default
|
|
5065
|
+
children: PropTypes__default.func.isRequired,
|
|
5015
5066
|
|
|
5016
5067
|
/**
|
|
5017
5068
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5018
5069
|
*/
|
|
5019
|
-
drop: PropTypes__default
|
|
5070
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5020
5071
|
|
|
5021
5072
|
/**
|
|
5022
5073
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5026,31 +5077,31 @@ var propTypes$4 = {
|
|
|
5026
5077
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5027
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).
|
|
5028
5079
|
*/
|
|
5029
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5080
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5030
5081
|
|
|
5031
5082
|
/**
|
|
5032
5083
|
* A css slector string that will return __focusable__ menu items.
|
|
5033
5084
|
* Selectors should be relative to the menu component:
|
|
5034
5085
|
* e.g. ` > li:not('.disabled')`
|
|
5035
5086
|
*/
|
|
5036
|
-
itemSelector: PropTypes__default
|
|
5087
|
+
itemSelector: PropTypes__default.string,
|
|
5037
5088
|
|
|
5038
5089
|
/**
|
|
5039
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`.
|
|
5040
5091
|
*/
|
|
5041
|
-
alignEnd: PropTypes__default
|
|
5092
|
+
alignEnd: PropTypes__default.bool,
|
|
5042
5093
|
|
|
5043
5094
|
/**
|
|
5044
5095
|
* Whether or not the Dropdown is visible.
|
|
5045
5096
|
*
|
|
5046
5097
|
* @controllable onToggle
|
|
5047
5098
|
*/
|
|
5048
|
-
show: PropTypes__default
|
|
5099
|
+
show: PropTypes__default.bool,
|
|
5049
5100
|
|
|
5050
5101
|
/**
|
|
5051
5102
|
* Sets the initial show position of the Dropdown.
|
|
5052
5103
|
*/
|
|
5053
|
-
defaultShow: PropTypes__default
|
|
5104
|
+
defaultShow: PropTypes__default.bool,
|
|
5054
5105
|
|
|
5055
5106
|
/**
|
|
5056
5107
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5065,7 +5116,7 @@ var propTypes$4 = {
|
|
|
5065
5116
|
*
|
|
5066
5117
|
* @controllable show
|
|
5067
5118
|
*/
|
|
5068
|
-
onToggle: PropTypes__default
|
|
5119
|
+
onToggle: PropTypes__default.func
|
|
5069
5120
|
};
|
|
5070
5121
|
|
|
5071
5122
|
/**
|
|
@@ -5204,7 +5255,7 @@ function Dropdown(_ref) {
|
|
|
5204
5255
|
}
|
|
5205
5256
|
};
|
|
5206
5257
|
|
|
5207
|
-
return /*#__PURE__*/React__default
|
|
5258
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5208
5259
|
value: context
|
|
5209
5260
|
}, children({
|
|
5210
5261
|
props: {
|
|
@@ -5218,14 +5269,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5218
5269
|
Dropdown.Menu = DropdownMenu;
|
|
5219
5270
|
Dropdown.Toggle = DropdownToggle;
|
|
5220
5271
|
|
|
5221
|
-
var NavContext = React__default
|
|
5272
|
+
var NavContext = React__default.createContext(null);
|
|
5222
5273
|
NavContext.displayName = 'NavContext';
|
|
5223
5274
|
|
|
5224
5275
|
var defaultProps$e = {
|
|
5225
5276
|
as: SafeAnchor,
|
|
5226
5277
|
disabled: false
|
|
5227
5278
|
};
|
|
5228
|
-
var DropdownItem = React__default
|
|
5279
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5229
5280
|
var bsPrefix = _ref.bsPrefix,
|
|
5230
5281
|
className = _ref.className,
|
|
5231
5282
|
children = _ref.children,
|
|
@@ -5236,7 +5287,7 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5236
5287
|
onSelect = _ref.onSelect,
|
|
5237
5288
|
propActive = _ref.active,
|
|
5238
5289
|
Component = _ref.as,
|
|
5239
|
-
props = index._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"]);
|
|
5240
5291
|
|
|
5241
5292
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5242
5293
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
@@ -5260,11 +5311,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5260
5311
|
/*#__PURE__*/
|
|
5261
5312
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5262
5313
|
// @ts-ignore
|
|
5263
|
-
React__default
|
|
5314
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5264
5315
|
ref: ref,
|
|
5265
5316
|
href: href,
|
|
5266
5317
|
disabled: disabled,
|
|
5267
|
-
className: index.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5318
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5268
5319
|
onClick: handleClick
|
|
5269
5320
|
}), children)
|
|
5270
5321
|
);
|
|
@@ -5309,7 +5360,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5309
5360
|
}, [refA, refB]);
|
|
5310
5361
|
}
|
|
5311
5362
|
|
|
5312
|
-
var context$2 = React__default
|
|
5363
|
+
var context$2 = React__default.createContext(null);
|
|
5313
5364
|
context$2.displayName = 'NavbarContext';
|
|
5314
5365
|
|
|
5315
5366
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5421,14 +5472,14 @@ function usePopperMarginModifiers() {
|
|
|
5421
5472
|
return [callback, [offset, popoverArrowMargins]];
|
|
5422
5473
|
}
|
|
5423
5474
|
|
|
5424
|
-
var alignDirection = PropTypes__default
|
|
5425
|
-
var alignPropType = PropTypes__default
|
|
5475
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5476
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5426
5477
|
sm: alignDirection
|
|
5427
|
-
}), PropTypes__default
|
|
5478
|
+
}), PropTypes__default.shape({
|
|
5428
5479
|
md: alignDirection
|
|
5429
|
-
}), PropTypes__default
|
|
5480
|
+
}), PropTypes__default.shape({
|
|
5430
5481
|
lg: alignDirection
|
|
5431
|
-
}), PropTypes__default
|
|
5482
|
+
}), PropTypes__default.shape({
|
|
5432
5483
|
xl: alignDirection
|
|
5433
5484
|
})]);
|
|
5434
5485
|
var defaultProps$f = {
|
|
@@ -5437,7 +5488,7 @@ var defaultProps$f = {
|
|
|
5437
5488
|
flip: true
|
|
5438
5489
|
}; // TODO: remove this hack
|
|
5439
5490
|
|
|
5440
|
-
var DropdownMenu$1 = React__default
|
|
5491
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5441
5492
|
var bsPrefix = _ref.bsPrefix,
|
|
5442
5493
|
className = _ref.className,
|
|
5443
5494
|
align = _ref.align,
|
|
@@ -5449,7 +5500,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5449
5500
|
_ref$as = _ref.as,
|
|
5450
5501
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5451
5502
|
popperConfig = _ref.popperConfig,
|
|
5452
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5503
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5453
5504
|
|
|
5454
5505
|
var isNavbar = React.useContext(context$2);
|
|
5455
5506
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5485,7 +5536,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5485
5536
|
show: showProps,
|
|
5486
5537
|
alignEnd: alignRight,
|
|
5487
5538
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5488
|
-
popperConfig: index._extends({}, popperConfig, {
|
|
5539
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5489
5540
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5490
5541
|
})
|
|
5491
5542
|
}),
|
|
@@ -5508,12 +5559,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5508
5559
|
if (placement) {
|
|
5509
5560
|
// we don't need the default popper style,
|
|
5510
5561
|
// menus are display: none when not shown.
|
|
5511
|
-
props.style = index._extends({}, props.style, {}, menuProps.style);
|
|
5562
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5512
5563
|
props['x-placement'] = placement;
|
|
5513
5564
|
}
|
|
5514
5565
|
|
|
5515
|
-
return /*#__PURE__*/React__default
|
|
5516
|
-
className: index.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
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))
|
|
5517
5568
|
}));
|
|
5518
5569
|
});
|
|
5519
5570
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5546,14 +5597,14 @@ module.exports = exports['default'];
|
|
|
5546
5597
|
|
|
5547
5598
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5548
5599
|
|
|
5549
|
-
var DropdownToggle$1 = React__default
|
|
5600
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5550
5601
|
var bsPrefix = _ref.bsPrefix,
|
|
5551
5602
|
split = _ref.split,
|
|
5552
5603
|
className = _ref.className,
|
|
5553
5604
|
childBsPrefix = _ref.childBsPrefix,
|
|
5554
5605
|
_ref$as = _ref.as,
|
|
5555
5606
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5556
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5607
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5557
5608
|
|
|
5558
5609
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5559
5610
|
|
|
@@ -5568,9 +5619,9 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5568
5619
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5569
5620
|
// underlying component, to allow it to render size and style variants.
|
|
5570
5621
|
|
|
5571
|
-
return /*#__PURE__*/React__default
|
|
5622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5572
5623
|
onClick: toggle,
|
|
5573
|
-
className: index.classnames(className, prefix, split && prefix + "-split")
|
|
5624
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5574
5625
|
}, toggleProps, props));
|
|
5575
5626
|
});
|
|
5576
5627
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
@@ -5591,7 +5642,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5591
5642
|
var defaultProps$g = {
|
|
5592
5643
|
navbar: false
|
|
5593
5644
|
};
|
|
5594
|
-
var Dropdown$1 = React__default
|
|
5645
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5595
5646
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5596
5647
|
show: 'onToggle'
|
|
5597
5648
|
}),
|
|
@@ -5606,7 +5657,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5606
5657
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5607
5658
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5608
5659
|
_4 = _useUncontrolled.navbar,
|
|
5609
|
-
props = index._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"]);
|
|
5610
5661
|
|
|
5611
5662
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5612
5663
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5628,9 +5679,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5628
5679
|
if (onSelect) onSelect(key, event);
|
|
5629
5680
|
handleToggle(false, event, 'select');
|
|
5630
5681
|
});
|
|
5631
|
-
return /*#__PURE__*/React__default
|
|
5682
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5632
5683
|
value: handleSelect
|
|
5633
|
-
}, /*#__PURE__*/React__default
|
|
5684
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5634
5685
|
drop: drop,
|
|
5635
5686
|
show: show,
|
|
5636
5687
|
alignEnd: alignRight,
|
|
@@ -5639,9 +5690,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5639
5690
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5640
5691
|
}, function (_ref) {
|
|
5641
5692
|
var dropdownProps = _ref.props;
|
|
5642
|
-
return /*#__PURE__*/React__default
|
|
5693
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5643
5694
|
ref: ref,
|
|
5644
|
-
className: index.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')
|
|
5645
5696
|
}));
|
|
5646
5697
|
}));
|
|
5647
5698
|
});
|
|
@@ -5660,19 +5711,19 @@ var propTypes$5 = {
|
|
|
5660
5711
|
* @type {string|number}
|
|
5661
5712
|
* @required
|
|
5662
5713
|
*/
|
|
5663
|
-
id: PropTypes__default
|
|
5714
|
+
id: PropTypes__default.any,
|
|
5664
5715
|
|
|
5665
5716
|
/** An `href` passed to the Toggle component */
|
|
5666
|
-
href: PropTypes__default
|
|
5717
|
+
href: PropTypes__default.string,
|
|
5667
5718
|
|
|
5668
5719
|
/** An `onClick` handler passed to the Toggle component */
|
|
5669
|
-
onClick: PropTypes__default
|
|
5720
|
+
onClick: PropTypes__default.func,
|
|
5670
5721
|
|
|
5671
5722
|
/** The content of the non-toggle Button. */
|
|
5672
|
-
title: PropTypes__default
|
|
5723
|
+
title: PropTypes__default.node.isRequired,
|
|
5673
5724
|
|
|
5674
5725
|
/** Disables both Buttons */
|
|
5675
|
-
disabled: PropTypes__default
|
|
5726
|
+
disabled: PropTypes__default.bool,
|
|
5676
5727
|
|
|
5677
5728
|
/**
|
|
5678
5729
|
* Aligns the dropdown menu responsively.
|
|
@@ -5684,26 +5735,26 @@ var propTypes$5 = {
|
|
|
5684
5735
|
menuAlign: alignPropType,
|
|
5685
5736
|
|
|
5686
5737
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5687
|
-
menuRole: PropTypes__default
|
|
5738
|
+
menuRole: PropTypes__default.string,
|
|
5688
5739
|
|
|
5689
5740
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5690
|
-
renderMenuOnMount: PropTypes__default
|
|
5741
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5691
5742
|
|
|
5692
5743
|
/**
|
|
5693
5744
|
* Which event when fired outside the component will cause it to be closed.
|
|
5694
5745
|
*
|
|
5695
5746
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5696
5747
|
*/
|
|
5697
|
-
rootCloseEvent: PropTypes__default
|
|
5748
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5698
5749
|
|
|
5699
5750
|
/** @ignore */
|
|
5700
|
-
bsPrefix: PropTypes__default
|
|
5751
|
+
bsPrefix: PropTypes__default.string,
|
|
5701
5752
|
|
|
5702
5753
|
/** @ignore */
|
|
5703
|
-
variant: PropTypes__default
|
|
5754
|
+
variant: PropTypes__default.string,
|
|
5704
5755
|
|
|
5705
5756
|
/** @ignore */
|
|
5706
|
-
size: PropTypes__default
|
|
5757
|
+
size: PropTypes__default.string
|
|
5707
5758
|
};
|
|
5708
5759
|
/**
|
|
5709
5760
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5714,7 +5765,7 @@ var propTypes$5 = {
|
|
|
5714
5765
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5715
5766
|
*/
|
|
5716
5767
|
|
|
5717
|
-
var DropdownButton = React__default
|
|
5768
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5718
5769
|
var title = _ref.title,
|
|
5719
5770
|
children = _ref.children,
|
|
5720
5771
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5727,18 +5778,18 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5727
5778
|
disabled = _ref.disabled,
|
|
5728
5779
|
href = _ref.href,
|
|
5729
5780
|
id = _ref.id,
|
|
5730
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5781
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5731
5782
|
|
|
5732
|
-
return /*#__PURE__*/React__default
|
|
5783
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5733
5784
|
ref: ref
|
|
5734
|
-
}, props), /*#__PURE__*/React__default
|
|
5785
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5735
5786
|
id: id,
|
|
5736
5787
|
href: href,
|
|
5737
5788
|
size: size,
|
|
5738
5789
|
variant: variant,
|
|
5739
5790
|
disabled: disabled,
|
|
5740
5791
|
childBsPrefix: bsPrefix
|
|
5741
|
-
}, title), /*#__PURE__*/React__default
|
|
5792
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5742
5793
|
align: menuAlign,
|
|
5743
5794
|
role: menuRole,
|
|
5744
5795
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5847,13 +5898,13 @@ var propTypes$6 = {
|
|
|
5847
5898
|
*
|
|
5848
5899
|
* @type {('valid'|'invalid')}
|
|
5849
5900
|
*/
|
|
5850
|
-
type: PropTypes__default
|
|
5901
|
+
type: PropTypes__default.string,
|
|
5851
5902
|
|
|
5852
5903
|
/** Display feedback as a tooltip. */
|
|
5853
|
-
tooltip: PropTypes__default
|
|
5854
|
-
as: PropTypes__default
|
|
5904
|
+
tooltip: PropTypes__default.bool,
|
|
5905
|
+
as: PropTypes__default.elementType
|
|
5855
5906
|
};
|
|
5856
|
-
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
|
|
5857
5908
|
function (_ref, ref) {
|
|
5858
5909
|
var _ref$as = _ref.as,
|
|
5859
5910
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5862,21 +5913,21 @@ function (_ref, ref) {
|
|
|
5862
5913
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5863
5914
|
_ref$tooltip = _ref.tooltip,
|
|
5864
5915
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5865
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5916
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5866
5917
|
|
|
5867
|
-
return /*#__PURE__*/React__default
|
|
5918
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5868
5919
|
ref: ref,
|
|
5869
|
-
className: index.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5920
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5870
5921
|
}));
|
|
5871
5922
|
});
|
|
5872
5923
|
Feedback.displayName = 'Feedback';
|
|
5873
5924
|
Feedback.propTypes = propTypes$6;
|
|
5874
5925
|
|
|
5875
|
-
var FormContext = React__default
|
|
5926
|
+
var FormContext = React__default.createContext({
|
|
5876
5927
|
controlId: undefined
|
|
5877
5928
|
});
|
|
5878
5929
|
|
|
5879
|
-
var FormCheckInput = React__default
|
|
5930
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5880
5931
|
var id = _ref.id,
|
|
5881
5932
|
bsPrefix = _ref.bsPrefix,
|
|
5882
5933
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5890,7 +5941,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5890
5941
|
isStatic = _ref.isStatic,
|
|
5891
5942
|
_ref$as = _ref.as,
|
|
5892
5943
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5893
|
-
props = index._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"]);
|
|
5894
5945
|
|
|
5895
5946
|
var _useContext = React.useContext(FormContext),
|
|
5896
5947
|
controlId = _useContext.controlId,
|
|
@@ -5901,21 +5952,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5901
5952
|
defaultPrefix = _ref2[1];
|
|
5902
5953
|
|
|
5903
5954
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5904
|
-
return /*#__PURE__*/React__default
|
|
5955
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5905
5956
|
ref: ref,
|
|
5906
5957
|
type: type,
|
|
5907
5958
|
id: id || controlId,
|
|
5908
|
-
className: index.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')
|
|
5909
5960
|
}));
|
|
5910
5961
|
});
|
|
5911
5962
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5912
5963
|
|
|
5913
|
-
var FormCheckLabel = React__default
|
|
5964
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5914
5965
|
var bsPrefix = _ref.bsPrefix,
|
|
5915
5966
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5916
5967
|
className = _ref.className,
|
|
5917
5968
|
htmlFor = _ref.htmlFor,
|
|
5918
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5969
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5919
5970
|
|
|
5920
5971
|
var _useContext = React.useContext(FormContext),
|
|
5921
5972
|
controlId = _useContext.controlId,
|
|
@@ -5926,15 +5977,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5926
5977
|
defaultPrefix = _ref2[1];
|
|
5927
5978
|
|
|
5928
5979
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5929
|
-
return /*#__PURE__*/React__default
|
|
5980
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5930
5981
|
ref: ref,
|
|
5931
5982
|
htmlFor: htmlFor || controlId,
|
|
5932
|
-
className: index.classnames(className, bsPrefix)
|
|
5983
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5933
5984
|
}));
|
|
5934
5985
|
});
|
|
5935
5986
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5936
5987
|
|
|
5937
|
-
var FormCheck = React__default
|
|
5988
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5938
5989
|
var id = _ref.id,
|
|
5939
5990
|
bsPrefix = _ref.bsPrefix,
|
|
5940
5991
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5960,7 +6011,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5960
6011
|
propCustom = _ref.custom,
|
|
5961
6012
|
_ref$as = _ref.as,
|
|
5962
6013
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5963
|
-
props = index._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"]);
|
|
5964
6015
|
|
|
5965
6016
|
var custom = type === 'switch' ? true : propCustom;
|
|
5966
6017
|
|
|
@@ -5980,7 +6031,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5980
6031
|
};
|
|
5981
6032
|
}, [controlId, custom, id]);
|
|
5982
6033
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
5983
|
-
var input = /*#__PURE__*/React__default
|
|
6034
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
5984
6035
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5985
6036
|
ref: ref,
|
|
5986
6037
|
isValid: isValid,
|
|
@@ -5989,14 +6040,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5989
6040
|
disabled: disabled,
|
|
5990
6041
|
as: as
|
|
5991
6042
|
}));
|
|
5992
|
-
return /*#__PURE__*/React__default
|
|
6043
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5993
6044
|
value: innerFormContext
|
|
5994
|
-
}, /*#__PURE__*/React__default
|
|
6045
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5995
6046
|
style: style,
|
|
5996
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5997
|
-
}, 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, {
|
|
5998
6049
|
title: title
|
|
5999
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6050
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6000
6051
|
type: isValid ? 'valid' : 'invalid',
|
|
6001
6052
|
tooltip: feedbackTooltip
|
|
6002
6053
|
}, feedback))));
|
|
@@ -6005,7 +6056,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6005
6056
|
FormCheck.Input = FormCheckInput;
|
|
6006
6057
|
FormCheck.Label = FormCheckLabel;
|
|
6007
6058
|
|
|
6008
|
-
var FormFileInput = React__default
|
|
6059
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6009
6060
|
var id = _ref.id,
|
|
6010
6061
|
bsPrefix = _ref.bsPrefix,
|
|
6011
6062
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6015,7 +6066,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6015
6066
|
lang = _ref.lang,
|
|
6016
6067
|
_ref$as = _ref.as,
|
|
6017
6068
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6018
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6069
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6019
6070
|
|
|
6020
6071
|
var _useContext = React.useContext(FormContext),
|
|
6021
6072
|
controlId = _useContext.controlId,
|
|
@@ -6028,22 +6079,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6028
6079
|
defaultPrefix = _ref2[1];
|
|
6029
6080
|
|
|
6030
6081
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6031
|
-
return /*#__PURE__*/React__default
|
|
6082
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6032
6083
|
ref: ref,
|
|
6033
6084
|
id: id || controlId,
|
|
6034
6085
|
type: type,
|
|
6035
6086
|
lang: lang,
|
|
6036
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6087
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6037
6088
|
}));
|
|
6038
6089
|
});
|
|
6039
6090
|
FormFileInput.displayName = 'FormFileInput';
|
|
6040
6091
|
|
|
6041
|
-
var FormFileLabel = React__default
|
|
6092
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6042
6093
|
var bsPrefix = _ref.bsPrefix,
|
|
6043
6094
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6044
6095
|
className = _ref.className,
|
|
6045
6096
|
htmlFor = _ref.htmlFor,
|
|
6046
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6097
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6047
6098
|
|
|
6048
6099
|
var _useContext = React.useContext(FormContext),
|
|
6049
6100
|
controlId = _useContext.controlId,
|
|
@@ -6054,16 +6105,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6054
6105
|
defaultPrefix = _ref2[1];
|
|
6055
6106
|
|
|
6056
6107
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6057
|
-
return /*#__PURE__*/React__default
|
|
6108
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6058
6109
|
ref: ref,
|
|
6059
6110
|
htmlFor: htmlFor || controlId,
|
|
6060
|
-
className: index.classnames(className, bsPrefix),
|
|
6111
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6061
6112
|
"data-browse": props['data-browse']
|
|
6062
6113
|
}));
|
|
6063
6114
|
});
|
|
6064
6115
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6065
6116
|
|
|
6066
|
-
var FormFile = React__default
|
|
6117
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6067
6118
|
var id = _ref.id,
|
|
6068
6119
|
bsPrefix = _ref.bsPrefix,
|
|
6069
6120
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6087,7 +6138,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6087
6138
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6088
6139
|
_ref$inputAs = _ref.inputAs,
|
|
6089
6140
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6090
|
-
props = index._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"]);
|
|
6091
6142
|
|
|
6092
6143
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6093
6144
|
prefix = _ref2[0],
|
|
@@ -6106,7 +6157,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6106
6157
|
};
|
|
6107
6158
|
}, [controlId, custom, id]);
|
|
6108
6159
|
var hasLabel = label != null && label !== false && !children;
|
|
6109
|
-
var input = /*#__PURE__*/React__default
|
|
6160
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6110
6161
|
ref: ref,
|
|
6111
6162
|
isValid: isValid,
|
|
6112
6163
|
isInvalid: isInvalid,
|
|
@@ -6114,14 +6165,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6114
6165
|
as: inputAs,
|
|
6115
6166
|
lang: lang
|
|
6116
6167
|
}));
|
|
6117
|
-
return /*#__PURE__*/React__default
|
|
6168
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6118
6169
|
value: innerFormContext
|
|
6119
|
-
}, /*#__PURE__*/React__default
|
|
6170
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6120
6171
|
style: style,
|
|
6121
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6122
|
-
}, 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, {
|
|
6123
6174
|
"data-browse": dataBrowse
|
|
6124
|
-
}, 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, {
|
|
6125
6176
|
type: isValid ? 'valid' : 'invalid',
|
|
6126
6177
|
tooltip: feedbackTooltip
|
|
6127
6178
|
}, feedback))));
|
|
@@ -6130,7 +6181,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6130
6181
|
FormFile.Input = FormFileInput;
|
|
6131
6182
|
FormFile.Label = FormFileLabel;
|
|
6132
6183
|
|
|
6133
|
-
var FormControl = React__default
|
|
6184
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6134
6185
|
var bsPrefix = _ref.bsPrefix,
|
|
6135
6186
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6136
6187
|
type = _ref.type,
|
|
@@ -6147,7 +6198,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6147
6198
|
custom = _ref.custom,
|
|
6148
6199
|
_ref$as = _ref.as,
|
|
6149
6200
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6150
|
-
props = index._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"]);
|
|
6151
6202
|
|
|
6152
6203
|
var _useContext = React.useContext(FormContext),
|
|
6153
6204
|
controlId = _useContext.controlId;
|
|
@@ -6182,13 +6233,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6182
6233
|
}
|
|
6183
6234
|
|
|
6184
6235
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6185
|
-
return /*#__PURE__*/React__default
|
|
6236
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6186
6237
|
type: type,
|
|
6187
6238
|
size: htmlSize,
|
|
6188
6239
|
ref: ref,
|
|
6189
6240
|
readOnly: readOnly,
|
|
6190
6241
|
id: id || controlId,
|
|
6191
|
-
className: index.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6242
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6192
6243
|
}));
|
|
6193
6244
|
});
|
|
6194
6245
|
FormControl.displayName = 'FormControl';
|
|
@@ -6196,14 +6247,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6196
6247
|
Feedback: Feedback
|
|
6197
6248
|
});
|
|
6198
6249
|
|
|
6199
|
-
var FormGroup = React__default
|
|
6250
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6200
6251
|
var bsPrefix = _ref.bsPrefix,
|
|
6201
6252
|
className = _ref.className,
|
|
6202
6253
|
children = _ref.children,
|
|
6203
6254
|
controlId = _ref.controlId,
|
|
6204
6255
|
_ref$as = _ref.as,
|
|
6205
6256
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6206
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6257
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6207
6258
|
|
|
6208
6259
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6209
6260
|
var context = React.useMemo(function () {
|
|
@@ -6211,11 +6262,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6211
6262
|
controlId: controlId
|
|
6212
6263
|
};
|
|
6213
6264
|
}, [controlId]);
|
|
6214
|
-
return /*#__PURE__*/React__default
|
|
6265
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6215
6266
|
value: context
|
|
6216
|
-
}, /*#__PURE__*/React__default
|
|
6267
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6217
6268
|
ref: ref,
|
|
6218
|
-
className: index.classnames(className, bsPrefix)
|
|
6269
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6219
6270
|
}), children));
|
|
6220
6271
|
});
|
|
6221
6272
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6224,7 +6275,7 @@ var defaultProps$h = {
|
|
|
6224
6275
|
column: false,
|
|
6225
6276
|
srOnly: false
|
|
6226
6277
|
};
|
|
6227
|
-
var FormLabel = React__default
|
|
6278
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6228
6279
|
var _ref$as = _ref.as,
|
|
6229
6280
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6230
6281
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6232,7 +6283,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6232
6283
|
srOnly = _ref.srOnly,
|
|
6233
6284
|
className = _ref.className,
|
|
6234
6285
|
htmlFor = _ref.htmlFor,
|
|
6235
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6286
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6236
6287
|
|
|
6237
6288
|
var _useContext = React.useContext(FormContext),
|
|
6238
6289
|
controlId = _useContext.controlId;
|
|
@@ -6240,10 +6291,10 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6240
6291
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6241
6292
|
var columnClass = 'col-form-label';
|
|
6242
6293
|
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6243
|
-
var classes = index.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6294
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6244
6295
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6245
6296
|
htmlFor = htmlFor || controlId;
|
|
6246
|
-
if (column) return /*#__PURE__*/React__default
|
|
6297
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6247
6298
|
as: "label",
|
|
6248
6299
|
className: classes,
|
|
6249
6300
|
htmlFor: htmlFor
|
|
@@ -6251,7 +6302,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6251
6302
|
return (
|
|
6252
6303
|
/*#__PURE__*/
|
|
6253
6304
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6254
|
-
React__default
|
|
6305
|
+
React__default.createElement(Component, index$5._extends({
|
|
6255
6306
|
ref: ref,
|
|
6256
6307
|
className: classes,
|
|
6257
6308
|
htmlFor: htmlFor
|
|
@@ -6261,25 +6312,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6261
6312
|
FormLabel.displayName = 'FormLabel';
|
|
6262
6313
|
FormLabel.defaultProps = defaultProps$h;
|
|
6263
6314
|
|
|
6264
|
-
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
|
|
6265
6316
|
function (_ref, ref) {
|
|
6266
6317
|
var bsPrefix = _ref.bsPrefix,
|
|
6267
6318
|
className = _ref.className,
|
|
6268
6319
|
_ref$as = _ref.as,
|
|
6269
6320
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6270
6321
|
muted = _ref.muted,
|
|
6271
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6322
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6272
6323
|
|
|
6273
6324
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6274
|
-
return /*#__PURE__*/React__default
|
|
6325
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6275
6326
|
ref: ref,
|
|
6276
|
-
className: index.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6327
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6277
6328
|
}));
|
|
6278
6329
|
});
|
|
6279
6330
|
FormText.displayName = 'FormText';
|
|
6280
6331
|
|
|
6281
|
-
var Switch = React__default
|
|
6282
|
-
return /*#__PURE__*/React__default
|
|
6332
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6333
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6283
6334
|
ref: ref,
|
|
6284
6335
|
type: "switch"
|
|
6285
6336
|
}));
|
|
@@ -6292,19 +6343,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6292
6343
|
var defaultProps$i = {
|
|
6293
6344
|
inline: false
|
|
6294
6345
|
};
|
|
6295
|
-
var FormImpl = React__default
|
|
6346
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6296
6347
|
var bsPrefix = _ref.bsPrefix,
|
|
6297
6348
|
inline = _ref.inline,
|
|
6298
6349
|
className = _ref.className,
|
|
6299
6350
|
validated = _ref.validated,
|
|
6300
6351
|
_ref$as = _ref.as,
|
|
6301
6352
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6302
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6353
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6303
6354
|
|
|
6304
6355
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6305
|
-
return /*#__PURE__*/React__default
|
|
6356
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6306
6357
|
ref: ref,
|
|
6307
|
-
className: index.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6358
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6308
6359
|
}));
|
|
6309
6360
|
});
|
|
6310
6361
|
FormImpl.displayName = 'Form';
|
|
@@ -6321,20 +6372,20 @@ FormImpl.Text = FormText;
|
|
|
6321
6372
|
var defaultProps$j = {
|
|
6322
6373
|
fluid: false
|
|
6323
6374
|
};
|
|
6324
|
-
var Container = React__default
|
|
6375
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6325
6376
|
var bsPrefix = _ref.bsPrefix,
|
|
6326
6377
|
fluid = _ref.fluid,
|
|
6327
6378
|
_ref$as = _ref.as,
|
|
6328
6379
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6329
6380
|
className = _ref.className,
|
|
6330
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6381
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6331
6382
|
|
|
6332
6383
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6333
6384
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6334
|
-
return /*#__PURE__*/React__default
|
|
6385
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6335
6386
|
ref: ref
|
|
6336
6387
|
}, props, {
|
|
6337
|
-
className: index.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6388
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6338
6389
|
}));
|
|
6339
6390
|
});
|
|
6340
6391
|
Container.displayName = 'Container';
|
|
@@ -6344,27 +6395,27 @@ var propTypes$7 = {
|
|
|
6344
6395
|
/**
|
|
6345
6396
|
* @default 'img'
|
|
6346
6397
|
*/
|
|
6347
|
-
bsPrefix: PropTypes__default
|
|
6398
|
+
bsPrefix: PropTypes__default.string,
|
|
6348
6399
|
|
|
6349
6400
|
/**
|
|
6350
6401
|
* Sets image as fluid image.
|
|
6351
6402
|
*/
|
|
6352
|
-
fluid: PropTypes__default
|
|
6403
|
+
fluid: PropTypes__default.bool,
|
|
6353
6404
|
|
|
6354
6405
|
/**
|
|
6355
6406
|
* Sets image shape as rounded.
|
|
6356
6407
|
*/
|
|
6357
|
-
rounded: PropTypes__default
|
|
6408
|
+
rounded: PropTypes__default.bool,
|
|
6358
6409
|
|
|
6359
6410
|
/**
|
|
6360
6411
|
* Sets image shape as circle.
|
|
6361
6412
|
*/
|
|
6362
|
-
roundedCircle: PropTypes__default
|
|
6413
|
+
roundedCircle: PropTypes__default.bool,
|
|
6363
6414
|
|
|
6364
6415
|
/**
|
|
6365
6416
|
* Sets image shape as thumbnail.
|
|
6366
6417
|
*/
|
|
6367
|
-
thumbnail: PropTypes__default
|
|
6418
|
+
thumbnail: PropTypes__default.bool
|
|
6368
6419
|
};
|
|
6369
6420
|
var defaultProps$k = {
|
|
6370
6421
|
fluid: false,
|
|
@@ -6372,22 +6423,22 @@ var defaultProps$k = {
|
|
|
6372
6423
|
roundedCircle: false,
|
|
6373
6424
|
thumbnail: false
|
|
6374
6425
|
};
|
|
6375
|
-
var Image = React__default
|
|
6426
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6376
6427
|
var bsPrefix = _ref.bsPrefix,
|
|
6377
6428
|
className = _ref.className,
|
|
6378
6429
|
fluid = _ref.fluid,
|
|
6379
6430
|
rounded = _ref.rounded,
|
|
6380
6431
|
roundedCircle = _ref.roundedCircle,
|
|
6381
6432
|
thumbnail = _ref.thumbnail,
|
|
6382
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6433
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6383
6434
|
|
|
6384
6435
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6385
|
-
var classes = index.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6386
|
-
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({
|
|
6387
6438
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6388
6439
|
ref: ref
|
|
6389
6440
|
}, props, {
|
|
6390
|
-
className: index.classnames(className, classes)
|
|
6441
|
+
className: index$5.classnames(className, classes)
|
|
6391
6442
|
}));
|
|
6392
6443
|
});
|
|
6393
6444
|
Image.displayName = 'Image';
|
|
@@ -6396,14 +6447,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6396
6447
|
var defaultProps$l = {
|
|
6397
6448
|
fluid: true
|
|
6398
6449
|
};
|
|
6399
|
-
var FigureImage = React__default
|
|
6450
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6400
6451
|
var className = _ref.className,
|
|
6401
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6452
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6402
6453
|
|
|
6403
|
-
return /*#__PURE__*/React__default
|
|
6454
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6404
6455
|
ref: ref
|
|
6405
6456
|
}, props, {
|
|
6406
|
-
className: index.classnames(className, 'figure-img')
|
|
6457
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6407
6458
|
}));
|
|
6408
6459
|
});
|
|
6409
6460
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6427,13 +6478,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6427
6478
|
});
|
|
6428
6479
|
|
|
6429
6480
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6430
|
-
return /*#__PURE__*/React__default
|
|
6481
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6431
6482
|
type: "checkbox"
|
|
6432
6483
|
}, props)));
|
|
6433
6484
|
};
|
|
6434
6485
|
|
|
6435
6486
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6436
|
-
return /*#__PURE__*/React__default
|
|
6487
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6437
6488
|
type: "radio"
|
|
6438
6489
|
}, props)));
|
|
6439
6490
|
};
|
|
@@ -6446,24 +6497,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6446
6497
|
* @property {InputGroupRadio} Radio
|
|
6447
6498
|
* @property {InputGroupCheckbox} Checkbox
|
|
6448
6499
|
*/
|
|
6449
|
-
var InputGroup = React__default
|
|
6500
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6450
6501
|
var bsPrefix = _ref.bsPrefix,
|
|
6451
6502
|
size = _ref.size,
|
|
6452
6503
|
className = _ref.className,
|
|
6453
6504
|
_ref$as = _ref.as,
|
|
6454
6505
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6455
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6506
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6456
6507
|
|
|
6457
6508
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6458
|
-
return /*#__PURE__*/React__default
|
|
6509
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6459
6510
|
ref: ref
|
|
6460
6511
|
}, props, {
|
|
6461
|
-
className: index.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6512
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6462
6513
|
}));
|
|
6463
6514
|
});
|
|
6464
6515
|
InputGroup.displayName = 'InputGroup';
|
|
6465
6516
|
|
|
6466
|
-
var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
6517
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6467
6518
|
Text: InputGroupText,
|
|
6468
6519
|
Radio: InputGroupRadio,
|
|
6469
6520
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6474,7 +6525,7 @@ var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
|
6474
6525
|
var defaultProps$m = {
|
|
6475
6526
|
fluid: false
|
|
6476
6527
|
};
|
|
6477
|
-
var Jumbotron = React__default
|
|
6528
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6478
6529
|
var _classes;
|
|
6479
6530
|
|
|
6480
6531
|
var _ref$as = _ref.as,
|
|
@@ -6482,32 +6533,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6482
6533
|
className = _ref.className,
|
|
6483
6534
|
fluid = _ref.fluid,
|
|
6484
6535
|
bsPrefix = _ref.bsPrefix,
|
|
6485
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6536
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6486
6537
|
|
|
6487
6538
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6488
6539
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6489
|
-
return /*#__PURE__*/React__default
|
|
6540
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6490
6541
|
ref: ref
|
|
6491
6542
|
}, props, {
|
|
6492
|
-
className: index.classnames(className, classes)
|
|
6543
|
+
className: index$5.classnames(className, classes)
|
|
6493
6544
|
}));
|
|
6494
6545
|
});
|
|
6495
6546
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6496
6547
|
Jumbotron.displayName = 'Jumbotron';
|
|
6497
6548
|
|
|
6498
|
-
var TabContext = React__default
|
|
6549
|
+
var TabContext = React__default.createContext(null);
|
|
6499
6550
|
|
|
6500
6551
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6501
6552
|
var noop$4 = function noop() {};
|
|
6502
6553
|
|
|
6503
|
-
var AbstractNav = React__default
|
|
6554
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6504
6555
|
var _ref$as = _ref.as,
|
|
6505
6556
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6506
6557
|
onSelect = _ref.onSelect,
|
|
6507
6558
|
activeKey = _ref.activeKey,
|
|
6508
6559
|
role = _ref.role,
|
|
6509
6560
|
onKeyDown = _ref.onKeyDown,
|
|
6510
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6561
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6511
6562
|
|
|
6512
6563
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6513
6564
|
// and don't want to reset the set in the effect
|
|
@@ -6581,9 +6632,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6581
6632
|
needsRefocusRef.current = false;
|
|
6582
6633
|
});
|
|
6583
6634
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6584
|
-
return /*#__PURE__*/React__default
|
|
6635
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6585
6636
|
value: handleSelect
|
|
6586
|
-
}, /*#__PURE__*/React__default
|
|
6637
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6587
6638
|
value: {
|
|
6588
6639
|
role: role,
|
|
6589
6640
|
// used by NavLink to determine it's role
|
|
@@ -6591,7 +6642,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6591
6642
|
getControlledId: getControlledId || noop$4,
|
|
6592
6643
|
getControllerId: getControllerId || noop$4
|
|
6593
6644
|
}
|
|
6594
|
-
}, /*#__PURE__*/React__default
|
|
6645
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6595
6646
|
onKeyDown: handleKeyDown,
|
|
6596
6647
|
ref: mergedRef,
|
|
6597
6648
|
role: role
|
|
@@ -6601,14 +6652,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6601
6652
|
var defaultProps$n = {
|
|
6602
6653
|
disabled: false
|
|
6603
6654
|
};
|
|
6604
|
-
var AbstractNavItem = React__default
|
|
6655
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6605
6656
|
var active = _ref.active,
|
|
6606
6657
|
className = _ref.className,
|
|
6607
6658
|
eventKey = _ref.eventKey,
|
|
6608
6659
|
onSelect = _ref.onSelect,
|
|
6609
6660
|
onClick = _ref.onClick,
|
|
6610
6661
|
Component = _ref.as,
|
|
6611
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6662
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6612
6663
|
|
|
6613
6664
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6614
6665
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6638,10 +6689,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6638
6689
|
if (onSelect) onSelect(navKey, e);
|
|
6639
6690
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6640
6691
|
});
|
|
6641
|
-
return /*#__PURE__*/React__default
|
|
6692
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6642
6693
|
ref: ref,
|
|
6643
6694
|
onClick: handleOnclick,
|
|
6644
|
-
className: index.classnames(className, isActive && 'active')
|
|
6695
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6645
6696
|
}));
|
|
6646
6697
|
});
|
|
6647
6698
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6651,7 +6702,7 @@ var defaultProps$o = {
|
|
|
6651
6702
|
active: false,
|
|
6652
6703
|
disabled: false
|
|
6653
6704
|
};
|
|
6654
|
-
var ListGroupItem = React__default
|
|
6705
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6655
6706
|
var bsPrefix = _ref.bsPrefix,
|
|
6656
6707
|
active = _ref.active,
|
|
6657
6708
|
disabled = _ref.disabled,
|
|
@@ -6661,7 +6712,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6661
6712
|
as = _ref.as,
|
|
6662
6713
|
eventKey = _ref.eventKey,
|
|
6663
6714
|
onClick = _ref.onClick,
|
|
6664
|
-
props = index._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"]);
|
|
6665
6716
|
|
|
6666
6717
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6667
6718
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6673,7 +6724,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6673
6724
|
|
|
6674
6725
|
if (onClick) onClick(event);
|
|
6675
6726
|
}, [disabled, onClick]);
|
|
6676
|
-
return /*#__PURE__*/React__default
|
|
6727
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6677
6728
|
ref: ref
|
|
6678
6729
|
}, props, {
|
|
6679
6730
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6681,7 +6732,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6681
6732
|
,
|
|
6682
6733
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6683
6734
|
onClick: handleClick,
|
|
6684
|
-
className: index.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")
|
|
6685
6736
|
}));
|
|
6686
6737
|
});
|
|
6687
6738
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6691,7 +6742,7 @@ var defaultProps$p = {
|
|
|
6691
6742
|
variant: undefined,
|
|
6692
6743
|
horizontal: undefined
|
|
6693
6744
|
};
|
|
6694
|
-
var ListGroup = React__default
|
|
6745
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6695
6746
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6696
6747
|
activeKey: 'onSelect'
|
|
6697
6748
|
}),
|
|
@@ -6701,7 +6752,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6701
6752
|
horizontal = _useUncontrolled.horizontal,
|
|
6702
6753
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6703
6754
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6704
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6755
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6705
6756
|
|
|
6706
6757
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6707
6758
|
var horizontalVariant;
|
|
@@ -6713,11 +6764,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6713
6764
|
}
|
|
6714
6765
|
|
|
6715
6766
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6716
|
-
return /*#__PURE__*/React__default
|
|
6767
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6717
6768
|
ref: ref
|
|
6718
6769
|
}, controlledProps, {
|
|
6719
6770
|
as: as,
|
|
6720
|
-
className: index.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6771
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6721
6772
|
}));
|
|
6722
6773
|
});
|
|
6723
6774
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6725,18 +6776,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6725
6776
|
ListGroup.Item = ListGroupItem;
|
|
6726
6777
|
|
|
6727
6778
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6728
|
-
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
|
|
6729
6780
|
function (_ref, ref) {
|
|
6730
6781
|
var bsPrefix = _ref.bsPrefix,
|
|
6731
6782
|
className = _ref.className,
|
|
6732
6783
|
_ref$as = _ref.as,
|
|
6733
6784
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6734
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6785
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6735
6786
|
|
|
6736
6787
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6737
|
-
return /*#__PURE__*/React__default
|
|
6788
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6738
6789
|
ref: ref,
|
|
6739
|
-
className: index.classnames(className, prefix)
|
|
6790
|
+
className: index$5.classnames(className, prefix)
|
|
6740
6791
|
}));
|
|
6741
6792
|
});
|
|
6742
6793
|
Media.displayName = 'Media';
|
|
@@ -7122,7 +7173,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7122
7173
|
renderDialog = _ref.renderDialog,
|
|
7123
7174
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7124
7175
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7125
|
-
return /*#__PURE__*/React__default
|
|
7176
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7126
7177
|
} : _ref$renderBackdrop,
|
|
7127
7178
|
providedManager = _ref.manager,
|
|
7128
7179
|
containerRef = _ref.container,
|
|
@@ -7136,7 +7187,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7136
7187
|
onEnter = _ref.onEnter,
|
|
7137
7188
|
onEntering = _ref.onEntering,
|
|
7138
7189
|
onEntered = _ref.onEntered,
|
|
7139
|
-
rest =
|
|
7190
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7140
7191
|
|
|
7141
7192
|
var container = useWaitForDOMRef(containerRef);
|
|
7142
7193
|
var modal = useModalManager(providedManager);
|
|
@@ -7269,7 +7320,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7269
7320
|
return null;
|
|
7270
7321
|
}
|
|
7271
7322
|
|
|
7272
|
-
var dialogProps =
|
|
7323
|
+
var dialogProps = _extends({
|
|
7273
7324
|
role: role,
|
|
7274
7325
|
ref: modal.setDialogRef,
|
|
7275
7326
|
// apparently only works on the dialog role element
|
|
@@ -7280,12 +7331,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7280
7331
|
tabIndex: -1
|
|
7281
7332
|
});
|
|
7282
7333
|
|
|
7283
|
-
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, {
|
|
7284
7335
|
role: 'document'
|
|
7285
7336
|
}));
|
|
7286
7337
|
|
|
7287
7338
|
if (Transition) {
|
|
7288
|
-
dialog = /*#__PURE__*/React__default
|
|
7339
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7289
7340
|
appear: true,
|
|
7290
7341
|
unmountOnExit: true,
|
|
7291
7342
|
"in": !!show,
|
|
@@ -7308,20 +7359,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7308
7359
|
});
|
|
7309
7360
|
|
|
7310
7361
|
if (BackdropTransition) {
|
|
7311
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7362
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7312
7363
|
appear: true,
|
|
7313
7364
|
"in": !!show
|
|
7314
7365
|
}, backdropElement);
|
|
7315
7366
|
}
|
|
7316
7367
|
}
|
|
7317
7368
|
|
|
7318
|
-
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));
|
|
7319
7370
|
});
|
|
7320
7371
|
var propTypes$8 = {
|
|
7321
7372
|
/**
|
|
7322
7373
|
* Set the visibility of the Modal
|
|
7323
7374
|
*/
|
|
7324
|
-
show: PropTypes__default
|
|
7375
|
+
show: PropTypes__default.bool,
|
|
7325
7376
|
|
|
7326
7377
|
/**
|
|
7327
7378
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7329,12 +7380,12 @@ var propTypes$8 = {
|
|
|
7329
7380
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7330
7381
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7331
7382
|
*/
|
|
7332
|
-
container: PropTypes__default
|
|
7383
|
+
container: PropTypes__default.any,
|
|
7333
7384
|
|
|
7334
7385
|
/**
|
|
7335
7386
|
* A callback fired when the Modal is opening.
|
|
7336
7387
|
*/
|
|
7337
|
-
onShow: PropTypes__default
|
|
7388
|
+
onShow: PropTypes__default.func,
|
|
7338
7389
|
|
|
7339
7390
|
/**
|
|
7340
7391
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7342,12 +7393,12 @@ var propTypes$8 = {
|
|
|
7342
7393
|
* The `onHide` callback only signals intent from the Modal,
|
|
7343
7394
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7344
7395
|
*/
|
|
7345
|
-
onHide: PropTypes__default
|
|
7396
|
+
onHide: PropTypes__default.func,
|
|
7346
7397
|
|
|
7347
7398
|
/**
|
|
7348
7399
|
* Include a backdrop component.
|
|
7349
7400
|
*/
|
|
7350
|
-
backdrop: PropTypes__default
|
|
7401
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7351
7402
|
|
|
7352
7403
|
/**
|
|
7353
7404
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7357,7 +7408,7 @@ var propTypes$8 = {
|
|
|
7357
7408
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7358
7409
|
* ```
|
|
7359
7410
|
*/
|
|
7360
|
-
renderDialog: PropTypes__default
|
|
7411
|
+
renderDialog: PropTypes__default.func,
|
|
7361
7412
|
|
|
7362
7413
|
/**
|
|
7363
7414
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7367,42 +7418,42 @@ var propTypes$8 = {
|
|
|
7367
7418
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7368
7419
|
* ```
|
|
7369
7420
|
*/
|
|
7370
|
-
renderBackdrop: PropTypes__default
|
|
7421
|
+
renderBackdrop: PropTypes__default.func,
|
|
7371
7422
|
|
|
7372
7423
|
/**
|
|
7373
7424
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7374
7425
|
*
|
|
7375
7426
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7376
7427
|
*/
|
|
7377
|
-
onEscapeKeyDown: PropTypes__default
|
|
7428
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7378
7429
|
|
|
7379
7430
|
/**
|
|
7380
7431
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7381
7432
|
*/
|
|
7382
|
-
onBackdropClick: PropTypes__default
|
|
7433
|
+
onBackdropClick: PropTypes__default.func,
|
|
7383
7434
|
|
|
7384
7435
|
/**
|
|
7385
7436
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7386
7437
|
* and removed when it is closed.
|
|
7387
7438
|
*/
|
|
7388
|
-
containerClassName: PropTypes__default
|
|
7439
|
+
containerClassName: PropTypes__default.string,
|
|
7389
7440
|
|
|
7390
7441
|
/**
|
|
7391
7442
|
* Close the modal when escape key is pressed
|
|
7392
7443
|
*/
|
|
7393
|
-
keyboard: PropTypes__default
|
|
7444
|
+
keyboard: PropTypes__default.bool,
|
|
7394
7445
|
|
|
7395
7446
|
/**
|
|
7396
7447
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7397
7448
|
* to control animations for the dialog component.
|
|
7398
7449
|
*/
|
|
7399
|
-
transition: PropTypes__default
|
|
7450
|
+
transition: PropTypes__default.elementType,
|
|
7400
7451
|
|
|
7401
7452
|
/**
|
|
7402
7453
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7403
7454
|
* to control animations for the backdrop components.
|
|
7404
7455
|
*/
|
|
7405
|
-
backdropTransition: PropTypes__default
|
|
7456
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7406
7457
|
|
|
7407
7458
|
/**
|
|
7408
7459
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7412,7 +7463,7 @@ var propTypes$8 = {
|
|
|
7412
7463
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7413
7464
|
* accessible to assistive technologies, like screen readers.
|
|
7414
7465
|
*/
|
|
7415
|
-
autoFocus: PropTypes__default
|
|
7466
|
+
autoFocus: PropTypes__default.bool,
|
|
7416
7467
|
|
|
7417
7468
|
/**
|
|
7418
7469
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7420,58 +7471,58 @@ var propTypes$8 = {
|
|
|
7420
7471
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7421
7472
|
* accessible to assistive technologies, like screen readers.
|
|
7422
7473
|
*/
|
|
7423
|
-
enforceFocus: PropTypes__default
|
|
7474
|
+
enforceFocus: PropTypes__default.bool,
|
|
7424
7475
|
|
|
7425
7476
|
/**
|
|
7426
7477
|
* When `true` The modal will restore focus to previously focused element once
|
|
7427
7478
|
* modal is hidden
|
|
7428
7479
|
*/
|
|
7429
|
-
restoreFocus: PropTypes__default
|
|
7480
|
+
restoreFocus: PropTypes__default.bool,
|
|
7430
7481
|
|
|
7431
7482
|
/**
|
|
7432
7483
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7433
7484
|
*
|
|
7434
7485
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7435
7486
|
*/
|
|
7436
|
-
restoreFocusOptions: PropTypes__default
|
|
7437
|
-
preventScroll: PropTypes__default
|
|
7487
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7488
|
+
preventScroll: PropTypes__default.bool
|
|
7438
7489
|
}),
|
|
7439
7490
|
|
|
7440
7491
|
/**
|
|
7441
7492
|
* Callback fired before the Modal transitions in
|
|
7442
7493
|
*/
|
|
7443
|
-
onEnter: PropTypes__default
|
|
7494
|
+
onEnter: PropTypes__default.func,
|
|
7444
7495
|
|
|
7445
7496
|
/**
|
|
7446
7497
|
* Callback fired as the Modal begins to transition in
|
|
7447
7498
|
*/
|
|
7448
|
-
onEntering: PropTypes__default
|
|
7499
|
+
onEntering: PropTypes__default.func,
|
|
7449
7500
|
|
|
7450
7501
|
/**
|
|
7451
7502
|
* Callback fired after the Modal finishes transitioning in
|
|
7452
7503
|
*/
|
|
7453
|
-
onEntered: PropTypes__default
|
|
7504
|
+
onEntered: PropTypes__default.func,
|
|
7454
7505
|
|
|
7455
7506
|
/**
|
|
7456
7507
|
* Callback fired right before the Modal transitions out
|
|
7457
7508
|
*/
|
|
7458
|
-
onExit: PropTypes__default
|
|
7509
|
+
onExit: PropTypes__default.func,
|
|
7459
7510
|
|
|
7460
7511
|
/**
|
|
7461
7512
|
* Callback fired as the Modal begins to transition out
|
|
7462
7513
|
*/
|
|
7463
|
-
onExiting: PropTypes__default
|
|
7514
|
+
onExiting: PropTypes__default.func,
|
|
7464
7515
|
|
|
7465
7516
|
/**
|
|
7466
7517
|
* Callback fired after the Modal finishes transitioning out
|
|
7467
7518
|
*/
|
|
7468
|
-
onExited: PropTypes__default
|
|
7519
|
+
onExited: PropTypes__default.func,
|
|
7469
7520
|
|
|
7470
7521
|
/**
|
|
7471
7522
|
* A ModalManager instance used to track and manage the state of open
|
|
7472
7523
|
* Modals. Useful when customizing how modals interact within a container
|
|
7473
7524
|
*/
|
|
7474
|
-
manager: PropTypes__default
|
|
7525
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7475
7526
|
};
|
|
7476
7527
|
Modal.displayName = 'Modal';
|
|
7477
7528
|
Modal.propTypes = propTypes$8;
|
|
@@ -7554,12 +7605,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7554
7605
|
|
|
7555
7606
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7556
7607
|
|
|
7557
|
-
var ModalContext = React__default
|
|
7608
|
+
var ModalContext = React__default.createContext({
|
|
7558
7609
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7559
7610
|
onHide: function onHide() {}
|
|
7560
7611
|
});
|
|
7561
7612
|
|
|
7562
|
-
var ModalDialog = React__default
|
|
7613
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7563
7614
|
var bsPrefix = _ref.bsPrefix,
|
|
7564
7615
|
className = _ref.className,
|
|
7565
7616
|
contentClassName = _ref.contentClassName,
|
|
@@ -7567,15 +7618,15 @@ var ModalDialog = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7567
7618
|
size = _ref.size,
|
|
7568
7619
|
children = _ref.children,
|
|
7569
7620
|
scrollable = _ref.scrollable,
|
|
7570
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7621
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7571
7622
|
|
|
7572
7623
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7573
7624
|
var dialogClass = bsPrefix + "-dialog";
|
|
7574
|
-
return /*#__PURE__*/React__default
|
|
7625
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7575
7626
|
ref: ref,
|
|
7576
|
-
className: index.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7577
|
-
}), /*#__PURE__*/React__default
|
|
7578
|
-
className: index.classnames(bsPrefix + "-content", contentClassName)
|
|
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)
|
|
7579
7630
|
}, children));
|
|
7580
7631
|
});
|
|
7581
7632
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7586,14 +7637,14 @@ var defaultProps$q = {
|
|
|
7586
7637
|
closeLabel: 'Close',
|
|
7587
7638
|
closeButton: false
|
|
7588
7639
|
};
|
|
7589
|
-
var ModalHeader = React__default
|
|
7640
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7590
7641
|
var bsPrefix = _ref.bsPrefix,
|
|
7591
7642
|
closeLabel = _ref.closeLabel,
|
|
7592
7643
|
closeButton = _ref.closeButton,
|
|
7593
7644
|
onHide = _ref.onHide,
|
|
7594
7645
|
className = _ref.className,
|
|
7595
7646
|
children = _ref.children,
|
|
7596
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7647
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7597
7648
|
|
|
7598
7649
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7599
7650
|
var context = React.useContext(ModalContext);
|
|
@@ -7601,11 +7652,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7601
7652
|
if (context) context.onHide();
|
|
7602
7653
|
if (onHide) onHide();
|
|
7603
7654
|
});
|
|
7604
|
-
return /*#__PURE__*/React__default
|
|
7655
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7605
7656
|
ref: ref
|
|
7606
7657
|
}, props, {
|
|
7607
|
-
className: index.classnames(className, bsPrefix)
|
|
7608
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7658
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7659
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7609
7660
|
label: closeLabel,
|
|
7610
7661
|
onClick: handleClick
|
|
7611
7662
|
}));
|
|
@@ -7632,16 +7683,16 @@ var defaultProps$r = {
|
|
|
7632
7683
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7633
7684
|
|
|
7634
7685
|
function DialogTransition(props) {
|
|
7635
|
-
return /*#__PURE__*/React__default
|
|
7686
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7636
7687
|
}
|
|
7637
7688
|
|
|
7638
7689
|
function BackdropTransition(props) {
|
|
7639
|
-
return /*#__PURE__*/React__default
|
|
7690
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7640
7691
|
}
|
|
7641
7692
|
/* eslint-enable no-use-before-define */
|
|
7642
7693
|
|
|
7643
7694
|
|
|
7644
|
-
var Modal$1 = React__default
|
|
7695
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7645
7696
|
var bsPrefix = _ref.bsPrefix,
|
|
7646
7697
|
className = _ref.className,
|
|
7647
7698
|
style = _ref.style,
|
|
@@ -7670,7 +7721,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7670
7721
|
onExited = _ref.onExited,
|
|
7671
7722
|
backdropClassName = _ref.backdropClassName,
|
|
7672
7723
|
propsManager = _ref.manager,
|
|
7673
|
-
props = index._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"]);
|
|
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"]);
|
|
7674
7725
|
|
|
7675
7726
|
var _useState = React.useState({}),
|
|
7676
7727
|
modalStyle = _useState[0],
|
|
@@ -7836,12 +7887,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7836
7887
|
};
|
|
7837
7888
|
|
|
7838
7889
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7839
|
-
return /*#__PURE__*/React__default
|
|
7840
|
-
className: index.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')
|
|
7841
7892
|
}));
|
|
7842
7893
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7843
7894
|
|
|
7844
|
-
var baseModalStyle = index._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
|
|
7845
7896
|
|
|
7846
7897
|
|
|
7847
7898
|
if (!animation) {
|
|
@@ -7849,15 +7900,15 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7849
7900
|
}
|
|
7850
7901
|
|
|
7851
7902
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7852
|
-
return /*#__PURE__*/React__default
|
|
7903
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7853
7904
|
role: "dialog"
|
|
7854
7905
|
}, dialogProps, {
|
|
7855
7906
|
style: baseModalStyle,
|
|
7856
|
-
className: index.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7907
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7857
7908
|
onClick: backdrop ? handleClick : undefined,
|
|
7858
7909
|
onMouseUp: handleMouseUp,
|
|
7859
7910
|
"aria-labelledby": ariaLabelledby
|
|
7860
|
-
}), /*#__PURE__*/React__default
|
|
7911
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7861
7912
|
role: "document",
|
|
7862
7913
|
onMouseDown: handleDialogMouseDown,
|
|
7863
7914
|
className: dialogClassName,
|
|
@@ -7865,9 +7916,9 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7865
7916
|
}), children));
|
|
7866
7917
|
};
|
|
7867
7918
|
|
|
7868
|
-
return /*#__PURE__*/React__default
|
|
7919
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7869
7920
|
value: modalContext
|
|
7870
|
-
}, /*#__PURE__*/React__default
|
|
7921
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7871
7922
|
show: show,
|
|
7872
7923
|
ref: setModalRef,
|
|
7873
7924
|
backdrop: backdrop,
|
|
@@ -7905,19 +7956,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7905
7956
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7906
7957
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7907
7958
|
|
|
7908
|
-
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
|
|
7909
7960
|
function (_ref, ref) {
|
|
7910
7961
|
var bsPrefix = _ref.bsPrefix,
|
|
7911
7962
|
className = _ref.className,
|
|
7912
7963
|
children = _ref.children,
|
|
7913
7964
|
_ref$as = _ref.as,
|
|
7914
7965
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7915
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7966
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7916
7967
|
|
|
7917
7968
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7918
|
-
return /*#__PURE__*/React__default
|
|
7969
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7919
7970
|
ref: ref,
|
|
7920
|
-
className: index.classnames(className, bsPrefix)
|
|
7971
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7921
7972
|
}), children);
|
|
7922
7973
|
});
|
|
7923
7974
|
NavItem.displayName = 'NavItem';
|
|
@@ -7926,7 +7977,7 @@ var defaultProps$s = {
|
|
|
7926
7977
|
disabled: false,
|
|
7927
7978
|
as: SafeAnchor
|
|
7928
7979
|
};
|
|
7929
|
-
var NavLink = React__default
|
|
7980
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7930
7981
|
var bsPrefix = _ref.bsPrefix,
|
|
7931
7982
|
disabled = _ref.disabled,
|
|
7932
7983
|
className = _ref.className,
|
|
@@ -7934,17 +7985,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7934
7985
|
eventKey = _ref.eventKey,
|
|
7935
7986
|
onSelect = _ref.onSelect,
|
|
7936
7987
|
as = _ref.as,
|
|
7937
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7988
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7938
7989
|
|
|
7939
7990
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7940
|
-
return /*#__PURE__*/React__default
|
|
7991
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7941
7992
|
href: href,
|
|
7942
7993
|
ref: ref,
|
|
7943
7994
|
eventKey: eventKey,
|
|
7944
7995
|
as: as,
|
|
7945
7996
|
disabled: disabled,
|
|
7946
7997
|
onSelect: onSelect,
|
|
7947
|
-
className: index.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7998
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7948
7999
|
}));
|
|
7949
8000
|
});
|
|
7950
8001
|
NavLink.displayName = 'NavLink';
|
|
@@ -7954,7 +8005,7 @@ var defaultProps$t = {
|
|
|
7954
8005
|
justify: false,
|
|
7955
8006
|
fill: false
|
|
7956
8007
|
};
|
|
7957
|
-
var Nav = React__default
|
|
8008
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7958
8009
|
var _classNames;
|
|
7959
8010
|
|
|
7960
8011
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7970,7 +8021,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7970
8021
|
className = _useUncontrolled.className,
|
|
7971
8022
|
children = _useUncontrolled.children,
|
|
7972
8023
|
activeKey = _useUncontrolled.activeKey,
|
|
7973
|
-
props = index._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"]);
|
|
7974
8025
|
|
|
7975
8026
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7976
8027
|
var navbarBsPrefix;
|
|
@@ -7986,11 +8037,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7986
8037
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7987
8038
|
}
|
|
7988
8039
|
|
|
7989
|
-
return /*#__PURE__*/React__default
|
|
8040
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
7990
8041
|
as: as,
|
|
7991
8042
|
ref: ref,
|
|
7992
8043
|
activeKey: activeKey,
|
|
7993
|
-
className: index.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))
|
|
7994
8045
|
}, props), children);
|
|
7995
8046
|
});
|
|
7996
8047
|
Nav.displayName = 'Nav';
|
|
@@ -7998,31 +8049,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7998
8049
|
Nav.Item = NavItem;
|
|
7999
8050
|
Nav.Link = NavLink;
|
|
8000
8051
|
|
|
8001
|
-
var NavbarBrand = React__default
|
|
8052
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
8002
8053
|
var bsPrefix = _ref.bsPrefix,
|
|
8003
8054
|
className = _ref.className,
|
|
8004
8055
|
as = _ref.as,
|
|
8005
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8056
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8006
8057
|
|
|
8007
8058
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8008
8059
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8009
|
-
return /*#__PURE__*/React__default
|
|
8060
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8010
8061
|
ref: ref,
|
|
8011
|
-
className: index.classnames(className, bsPrefix)
|
|
8062
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8012
8063
|
}));
|
|
8013
8064
|
});
|
|
8014
8065
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8015
8066
|
|
|
8016
|
-
var NavbarCollapse = React__default
|
|
8067
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8017
8068
|
var children = _ref.children,
|
|
8018
8069
|
bsPrefix = _ref.bsPrefix,
|
|
8019
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8070
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8020
8071
|
|
|
8021
8072
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8022
|
-
return /*#__PURE__*/React__default
|
|
8023
|
-
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({
|
|
8024
8075
|
in: !!(context && context.expanded)
|
|
8025
|
-
}, props), /*#__PURE__*/React__default
|
|
8076
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8026
8077
|
ref: ref,
|
|
8027
8078
|
className: bsPrefix
|
|
8028
8079
|
}, children));
|
|
@@ -8033,7 +8084,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8033
8084
|
var defaultProps$u = {
|
|
8034
8085
|
label: 'Toggle navigation'
|
|
8035
8086
|
};
|
|
8036
|
-
var NavbarToggle = React__default
|
|
8087
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8037
8088
|
var bsPrefix = _ref.bsPrefix,
|
|
8038
8089
|
className = _ref.className,
|
|
8039
8090
|
children = _ref.children,
|
|
@@ -8041,7 +8092,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8041
8092
|
_ref$as = _ref.as,
|
|
8042
8093
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8043
8094
|
onClick = _ref.onClick,
|
|
8044
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8095
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8045
8096
|
|
|
8046
8097
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8047
8098
|
|
|
@@ -8058,12 +8109,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8058
8109
|
props.type = 'button';
|
|
8059
8110
|
}
|
|
8060
8111
|
|
|
8061
|
-
return /*#__PURE__*/React__default
|
|
8112
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8062
8113
|
ref: ref,
|
|
8063
8114
|
onClick: handleClick,
|
|
8064
8115
|
"aria-label": label,
|
|
8065
|
-
className: index.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8066
|
-
}), children || /*#__PURE__*/React__default
|
|
8116
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8117
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8067
8118
|
className: bsPrefix + "-icon"
|
|
8068
8119
|
}));
|
|
8069
8120
|
});
|
|
@@ -8078,7 +8129,7 @@ var defaultProps$v = {
|
|
|
8078
8129
|
variant: 'light',
|
|
8079
8130
|
collapseOnSelect: false
|
|
8080
8131
|
};
|
|
8081
|
-
var Navbar = React__default
|
|
8132
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8082
8133
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8083
8134
|
expanded: 'onToggle'
|
|
8084
8135
|
}),
|
|
@@ -8096,7 +8147,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8096
8147
|
_onToggle = _useUncontrolled.onToggle,
|
|
8097
8148
|
onSelect = _useUncontrolled.onSelect,
|
|
8098
8149
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8099
|
-
controlledProps = index._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"]);
|
|
8100
8151
|
|
|
8101
8152
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8102
8153
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8126,14 +8177,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8126
8177
|
expanded: !!expanded
|
|
8127
8178
|
};
|
|
8128
8179
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8129
|
-
return /*#__PURE__*/React__default
|
|
8180
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8130
8181
|
value: navbarContext
|
|
8131
|
-
}, /*#__PURE__*/React__default
|
|
8182
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8132
8183
|
value: handleCollapse
|
|
8133
|
-
}, /*#__PURE__*/React__default
|
|
8184
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8134
8185
|
ref: ref
|
|
8135
8186
|
}, controlledProps, {
|
|
8136
|
-
className: index.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)
|
|
8137
8188
|
}), children)));
|
|
8138
8189
|
});
|
|
8139
8190
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8149,37 +8200,37 @@ var propTypes$9 = {
|
|
|
8149
8200
|
* @type {string|number}
|
|
8150
8201
|
* @required
|
|
8151
8202
|
*/
|
|
8152
|
-
id: PropTypes__default
|
|
8203
|
+
id: PropTypes__default.any,
|
|
8153
8204
|
|
|
8154
8205
|
/** An `onClick` handler passed to the Toggle component */
|
|
8155
|
-
onClick: PropTypes__default
|
|
8206
|
+
onClick: PropTypes__default.func,
|
|
8156
8207
|
|
|
8157
8208
|
/** The content of the non-toggle Button. */
|
|
8158
|
-
title: PropTypes__default
|
|
8209
|
+
title: PropTypes__default.node.isRequired,
|
|
8159
8210
|
|
|
8160
8211
|
/** Disables the toggle NavLink */
|
|
8161
|
-
disabled: PropTypes__default
|
|
8212
|
+
disabled: PropTypes__default.bool,
|
|
8162
8213
|
|
|
8163
8214
|
/** Style the toggle NavLink as active */
|
|
8164
|
-
active: PropTypes__default
|
|
8215
|
+
active: PropTypes__default.bool,
|
|
8165
8216
|
|
|
8166
8217
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8167
|
-
menuRole: PropTypes__default
|
|
8218
|
+
menuRole: PropTypes__default.string,
|
|
8168
8219
|
|
|
8169
8220
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8170
|
-
renderMenuOnMount: PropTypes__default
|
|
8221
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8171
8222
|
|
|
8172
8223
|
/**
|
|
8173
8224
|
* Which event when fired outside the component will cause it to be closed.
|
|
8174
8225
|
*
|
|
8175
8226
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8176
8227
|
*/
|
|
8177
|
-
rootCloseEvent: PropTypes__default
|
|
8228
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8178
8229
|
|
|
8179
8230
|
/** @ignore */
|
|
8180
|
-
bsPrefix: PropTypes__default
|
|
8231
|
+
bsPrefix: PropTypes__default.string
|
|
8181
8232
|
};
|
|
8182
|
-
var NavDropdown = React__default
|
|
8233
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8183
8234
|
var id = _ref.id,
|
|
8184
8235
|
title = _ref.title,
|
|
8185
8236
|
children = _ref.children,
|
|
@@ -8189,20 +8240,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8189
8240
|
disabled = _ref.disabled,
|
|
8190
8241
|
active = _ref.active,
|
|
8191
8242
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8192
|
-
props = index._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"]);
|
|
8193
8244
|
|
|
8194
|
-
return /*#__PURE__*/React__default
|
|
8245
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8195
8246
|
ref: ref
|
|
8196
8247
|
}, props, {
|
|
8197
8248
|
as: NavItem
|
|
8198
|
-
}), /*#__PURE__*/React__default
|
|
8249
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8199
8250
|
id: id,
|
|
8200
8251
|
eventKey: null,
|
|
8201
8252
|
active: active,
|
|
8202
8253
|
disabled: disabled,
|
|
8203
8254
|
childBsPrefix: bsPrefix,
|
|
8204
8255
|
as: NavLink
|
|
8205
|
-
}, title), /*#__PURE__*/React__default
|
|
8256
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8206
8257
|
role: menuRole,
|
|
8207
8258
|
renderOnMount: renderMenuOnMount,
|
|
8208
8259
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8219,7 +8270,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8219
8270
|
* Built on top of `Popper.js`, the overlay component is
|
|
8220
8271
|
* great for custom tooltip overlays.
|
|
8221
8272
|
*/
|
|
8222
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8273
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8223
8274
|
var flip = props.flip,
|
|
8224
8275
|
offset = props.offset,
|
|
8225
8276
|
placement = props.placement,
|
|
@@ -8256,7 +8307,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8256
8307
|
})),
|
|
8257
8308
|
styles = _usePopper.styles,
|
|
8258
8309
|
attributes = _usePopper.attributes,
|
|
8259
|
-
popper =
|
|
8310
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8260
8311
|
|
|
8261
8312
|
if (props.show) {
|
|
8262
8313
|
if (exited) setExited(false);
|
|
@@ -8284,13 +8335,13 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8284
8335
|
return null;
|
|
8285
8336
|
}
|
|
8286
8337
|
|
|
8287
|
-
var child = props.children(
|
|
8338
|
+
var child = props.children(_extends({}, popper, {
|
|
8288
8339
|
show: !!props.show,
|
|
8289
|
-
props:
|
|
8340
|
+
props: _extends({}, attributes.popper, {
|
|
8290
8341
|
style: styles.popper,
|
|
8291
8342
|
ref: mergedRef
|
|
8292
8343
|
}),
|
|
8293
|
-
arrowProps:
|
|
8344
|
+
arrowProps: _extends({}, attributes.arrow, {
|
|
8294
8345
|
style: styles.arrow,
|
|
8295
8346
|
ref: attachArrowRef
|
|
8296
8347
|
})
|
|
@@ -8302,7 +8353,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8302
8353
|
onEnter = props.onEnter,
|
|
8303
8354
|
onEntering = props.onEntering,
|
|
8304
8355
|
onEntered = props.onEntered;
|
|
8305
|
-
child = /*#__PURE__*/React__default
|
|
8356
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8306
8357
|
"in": props.show,
|
|
8307
8358
|
appear: true,
|
|
8308
8359
|
onExit: onExit,
|
|
@@ -8314,36 +8365,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8314
8365
|
}, child);
|
|
8315
8366
|
}
|
|
8316
8367
|
|
|
8317
|
-
return container ? /*#__PURE__*/
|
|
8368
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8318
8369
|
});
|
|
8319
8370
|
Overlay.displayName = 'Overlay';
|
|
8320
8371
|
Overlay.propTypes = {
|
|
8321
8372
|
/**
|
|
8322
8373
|
* Set the visibility of the Overlay
|
|
8323
8374
|
*/
|
|
8324
|
-
show: PropTypes__default
|
|
8375
|
+
show: PropTypes__default.bool,
|
|
8325
8376
|
|
|
8326
8377
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8327
|
-
placement: PropTypes__default
|
|
8378
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8328
8379
|
|
|
8329
8380
|
/**
|
|
8330
8381
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8331
8382
|
* the overlay is positioned relative to.
|
|
8332
8383
|
*/
|
|
8333
|
-
target: PropTypes__default
|
|
8384
|
+
target: PropTypes__default.any,
|
|
8334
8385
|
|
|
8335
8386
|
/**
|
|
8336
8387
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8337
8388
|
* appended to it.
|
|
8338
8389
|
*/
|
|
8339
|
-
container: PropTypes__default
|
|
8390
|
+
container: PropTypes__default.any,
|
|
8340
8391
|
|
|
8341
8392
|
/**
|
|
8342
8393
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8343
8394
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8344
8395
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8345
8396
|
*/
|
|
8346
|
-
flip: PropTypes__default
|
|
8397
|
+
flip: PropTypes__default.bool,
|
|
8347
8398
|
|
|
8348
8399
|
/**
|
|
8349
8400
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8367,33 +8418,33 @@ Overlay.propTypes = {
|
|
|
8367
8418
|
* },
|
|
8368
8419
|
* }) => React.Element}
|
|
8369
8420
|
*/
|
|
8370
|
-
children: PropTypes__default
|
|
8421
|
+
children: PropTypes__default.func.isRequired,
|
|
8371
8422
|
|
|
8372
8423
|
/**
|
|
8373
8424
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8374
8425
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8375
8426
|
*/
|
|
8376
|
-
containerPadding: PropTypes__default
|
|
8427
|
+
containerPadding: PropTypes__default.number,
|
|
8377
8428
|
|
|
8378
8429
|
/**
|
|
8379
8430
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8380
8431
|
*/
|
|
8381
|
-
popperConfig: PropTypes__default
|
|
8432
|
+
popperConfig: PropTypes__default.object,
|
|
8382
8433
|
|
|
8383
8434
|
/**
|
|
8384
8435
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8385
8436
|
*/
|
|
8386
|
-
rootClose: PropTypes__default
|
|
8437
|
+
rootClose: PropTypes__default.bool,
|
|
8387
8438
|
|
|
8388
8439
|
/**
|
|
8389
8440
|
* Specify event for toggling overlay
|
|
8390
8441
|
*/
|
|
8391
|
-
rootCloseEvent: PropTypes__default
|
|
8442
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8392
8443
|
|
|
8393
8444
|
/**
|
|
8394
8445
|
* Specify disabled for disable RootCloseWrapper
|
|
8395
8446
|
*/
|
|
8396
|
-
rootCloseDisabled: PropTypes__default
|
|
8447
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8397
8448
|
|
|
8398
8449
|
/**
|
|
8399
8450
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8410,10 +8461,10 @@ Overlay.propTypes = {
|
|
|
8410
8461
|
if (props.rootClose) {
|
|
8411
8462
|
var _PropTypes$func;
|
|
8412
8463
|
|
|
8413
|
-
return (_PropTypes$func = PropTypes__default
|
|
8464
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8414
8465
|
}
|
|
8415
8466
|
|
|
8416
|
-
return PropTypes__default
|
|
8467
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8417
8468
|
},
|
|
8418
8469
|
|
|
8419
8470
|
/**
|
|
@@ -8421,37 +8472,37 @@ Overlay.propTypes = {
|
|
|
8421
8472
|
* used to animate the overlay as it changes visibility.
|
|
8422
8473
|
*/
|
|
8423
8474
|
// @ts-ignore
|
|
8424
|
-
transition: PropTypes__default
|
|
8475
|
+
transition: PropTypes__default.elementType,
|
|
8425
8476
|
|
|
8426
8477
|
/**
|
|
8427
8478
|
* Callback fired before the Overlay transitions in
|
|
8428
8479
|
*/
|
|
8429
|
-
onEnter: PropTypes__default
|
|
8480
|
+
onEnter: PropTypes__default.func,
|
|
8430
8481
|
|
|
8431
8482
|
/**
|
|
8432
8483
|
* Callback fired as the Overlay begins to transition in
|
|
8433
8484
|
*/
|
|
8434
|
-
onEntering: PropTypes__default
|
|
8485
|
+
onEntering: PropTypes__default.func,
|
|
8435
8486
|
|
|
8436
8487
|
/**
|
|
8437
8488
|
* Callback fired after the Overlay finishes transitioning in
|
|
8438
8489
|
*/
|
|
8439
|
-
onEntered: PropTypes__default
|
|
8490
|
+
onEntered: PropTypes__default.func,
|
|
8440
8491
|
|
|
8441
8492
|
/**
|
|
8442
8493
|
* Callback fired right before the Overlay transitions out
|
|
8443
8494
|
*/
|
|
8444
|
-
onExit: PropTypes__default
|
|
8495
|
+
onExit: PropTypes__default.func,
|
|
8445
8496
|
|
|
8446
8497
|
/**
|
|
8447
8498
|
* Callback fired as the Overlay begins to transition out
|
|
8448
8499
|
*/
|
|
8449
|
-
onExiting: PropTypes__default
|
|
8500
|
+
onExiting: PropTypes__default.func,
|
|
8450
8501
|
|
|
8451
8502
|
/**
|
|
8452
8503
|
* Callback fired after the Overlay finishes transitioning out
|
|
8453
8504
|
*/
|
|
8454
|
-
onExited: PropTypes__default
|
|
8505
|
+
onExited: PropTypes__default.func
|
|
8455
8506
|
};
|
|
8456
8507
|
|
|
8457
8508
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8468,34 +8519,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8468
8519
|
};
|
|
8469
8520
|
|
|
8470
8521
|
return RefHolder;
|
|
8471
|
-
}(React__default
|
|
8522
|
+
}(React__default.Component);
|
|
8472
8523
|
|
|
8473
8524
|
var defaultProps$w = {
|
|
8474
8525
|
active: false,
|
|
8475
8526
|
disabled: false,
|
|
8476
8527
|
activeLabel: '(current)'
|
|
8477
8528
|
};
|
|
8478
|
-
var PageItem = React__default
|
|
8529
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8479
8530
|
var active = _ref.active,
|
|
8480
8531
|
disabled = _ref.disabled,
|
|
8481
8532
|
className = _ref.className,
|
|
8482
8533
|
style = _ref.style,
|
|
8483
8534
|
activeLabel = _ref.activeLabel,
|
|
8484
8535
|
children = _ref.children,
|
|
8485
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8536
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8486
8537
|
|
|
8487
8538
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8488
|
-
return /*#__PURE__*/React__default
|
|
8539
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8489
8540
|
ref: ref,
|
|
8490
8541
|
style: style,
|
|
8491
|
-
className: index.classnames(className, 'page-item', {
|
|
8542
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8492
8543
|
active: active,
|
|
8493
8544
|
disabled: disabled
|
|
8494
8545
|
})
|
|
8495
|
-
}, /*#__PURE__*/React__default
|
|
8546
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8496
8547
|
className: "page-link",
|
|
8497
8548
|
disabled: disabled
|
|
8498
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8549
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8499
8550
|
className: "sr-only"
|
|
8500
8551
|
}, activeLabel)));
|
|
8501
8552
|
});
|
|
@@ -8509,11 +8560,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8509
8560
|
|
|
8510
8561
|
function Button(_ref2) {
|
|
8511
8562
|
var children = _ref2.children,
|
|
8512
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8563
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8513
8564
|
|
|
8514
|
-
return /*#__PURE__*/React__default
|
|
8565
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8515
8566
|
"aria-hidden": "true"
|
|
8516
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8567
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8517
8568
|
className: "sr-only"
|
|
8518
8569
|
}, label));
|
|
8519
8570
|
}
|
|
@@ -8536,18 +8587,18 @@ var Last = createButton('Last', '»');
|
|
|
8536
8587
|
* @property {PageItem} Next
|
|
8537
8588
|
* @property {PageItem} Last
|
|
8538
8589
|
*/
|
|
8539
|
-
var Pagination = React__default
|
|
8590
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8540
8591
|
var bsPrefix = _ref.bsPrefix,
|
|
8541
8592
|
className = _ref.className,
|
|
8542
8593
|
children = _ref.children,
|
|
8543
8594
|
size = _ref.size,
|
|
8544
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8595
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8545
8596
|
|
|
8546
8597
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8547
|
-
return /*#__PURE__*/React__default
|
|
8598
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8548
8599
|
ref: ref
|
|
8549
8600
|
}, props, {
|
|
8550
|
-
className: index.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8601
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8551
8602
|
}), children);
|
|
8552
8603
|
});
|
|
8553
8604
|
Pagination.First = First;
|
|
@@ -8557,42 +8608,42 @@ Pagination.Item = PageItem;
|
|
|
8557
8608
|
Pagination.Next = Next;
|
|
8558
8609
|
Pagination.Last = Last;
|
|
8559
8610
|
|
|
8560
|
-
var PopoverTitle = React__default
|
|
8611
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8561
8612
|
var _ref$as = _ref.as,
|
|
8562
8613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8563
8614
|
bsPrefix = _ref.bsPrefix,
|
|
8564
8615
|
className = _ref.className,
|
|
8565
8616
|
children = _ref.children,
|
|
8566
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8617
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8567
8618
|
|
|
8568
8619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8569
|
-
return /*#__PURE__*/React__default
|
|
8620
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8570
8621
|
ref: ref
|
|
8571
8622
|
}, props, {
|
|
8572
|
-
className: index.classnames(bsPrefix, className)
|
|
8623
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8573
8624
|
}), children);
|
|
8574
8625
|
});
|
|
8575
8626
|
|
|
8576
|
-
var PopoverContent = React__default
|
|
8627
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8577
8628
|
var _ref$as = _ref.as,
|
|
8578
8629
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8579
8630
|
bsPrefix = _ref.bsPrefix,
|
|
8580
8631
|
className = _ref.className,
|
|
8581
8632
|
children = _ref.children,
|
|
8582
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8633
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8583
8634
|
|
|
8584
8635
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8585
|
-
return /*#__PURE__*/React__default
|
|
8636
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8586
8637
|
ref: ref
|
|
8587
8638
|
}, props, {
|
|
8588
|
-
className: index.classnames(className, bsPrefix)
|
|
8639
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8589
8640
|
}), children);
|
|
8590
8641
|
});
|
|
8591
8642
|
|
|
8592
8643
|
var defaultProps$x = {
|
|
8593
8644
|
placement: 'right'
|
|
8594
8645
|
};
|
|
8595
|
-
var Popover = React__default
|
|
8646
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8596
8647
|
var bsPrefix = _ref.bsPrefix,
|
|
8597
8648
|
placement = _ref.placement,
|
|
8598
8649
|
className = _ref.className,
|
|
@@ -8602,22 +8653,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8602
8653
|
arrowProps = _ref.arrowProps,
|
|
8603
8654
|
_ = _ref.popper,
|
|
8604
8655
|
_1 = _ref.show,
|
|
8605
|
-
props = index._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"]);
|
|
8606
8657
|
|
|
8607
8658
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8608
8659
|
|
|
8609
8660
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8610
8661
|
primaryPlacement = _ref2[0];
|
|
8611
8662
|
|
|
8612
|
-
return /*#__PURE__*/React__default
|
|
8663
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8613
8664
|
ref: ref,
|
|
8614
8665
|
role: "tooltip",
|
|
8615
8666
|
style: style,
|
|
8616
8667
|
"x-placement": primaryPlacement,
|
|
8617
|
-
className: index.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8618
|
-
}, 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({
|
|
8619
8670
|
className: "arrow"
|
|
8620
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8671
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8621
8672
|
});
|
|
8622
8673
|
Popover.defaultProps = defaultProps$x;
|
|
8623
8674
|
Popover.Title = PopoverTitle;
|
|
@@ -8653,27 +8704,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8653
8704
|
style = _ref.style,
|
|
8654
8705
|
variant = _ref.variant,
|
|
8655
8706
|
bsPrefix = _ref.bsPrefix,
|
|
8656
|
-
props = index._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"]);
|
|
8657
8708
|
|
|
8658
|
-
return /*#__PURE__*/React__default
|
|
8709
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8659
8710
|
ref: ref
|
|
8660
8711
|
}, props, {
|
|
8661
8712
|
role: "progressbar",
|
|
8662
|
-
className: index.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8663
|
-
style: index._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({
|
|
8664
8715
|
width: getPercentage(now, min, max) + "%"
|
|
8665
8716
|
}, style),
|
|
8666
8717
|
"aria-valuenow": now,
|
|
8667
8718
|
"aria-valuemin": min,
|
|
8668
8719
|
"aria-valuemax": max
|
|
8669
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8720
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8670
8721
|
className: "sr-only"
|
|
8671
8722
|
}, label) : label);
|
|
8672
8723
|
}
|
|
8673
8724
|
|
|
8674
|
-
var ProgressBar = React__default
|
|
8725
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8675
8726
|
var isChild = _ref2.isChild,
|
|
8676
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8727
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8677
8728
|
|
|
8678
8729
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8679
8730
|
|
|
@@ -8692,12 +8743,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8692
8743
|
variant = props.variant,
|
|
8693
8744
|
className = props.className,
|
|
8694
8745
|
children = props.children,
|
|
8695
|
-
wrapperProps = index._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"]);
|
|
8696
8747
|
|
|
8697
|
-
return /*#__PURE__*/React__default
|
|
8748
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8698
8749
|
ref: ref
|
|
8699
8750
|
}, wrapperProps, {
|
|
8700
|
-
className: index.classnames(className, bsPrefix)
|
|
8751
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8701
8752
|
}), children ? map(children, function (child) {
|
|
8702
8753
|
return React.cloneElement(child, {
|
|
8703
8754
|
isChild: true
|
|
@@ -8720,21 +8771,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8720
8771
|
var defaultProps$z = {
|
|
8721
8772
|
aspectRatio: '1by1'
|
|
8722
8773
|
};
|
|
8723
|
-
var ResponsiveEmbed = React__default
|
|
8774
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8724
8775
|
var bsPrefix = _ref.bsPrefix,
|
|
8725
8776
|
className = _ref.className,
|
|
8726
8777
|
children = _ref.children,
|
|
8727
8778
|
aspectRatio = _ref.aspectRatio,
|
|
8728
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8779
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8729
8780
|
|
|
8730
8781
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8731
|
-
var child = React__default
|
|
8732
|
-
return /*#__PURE__*/React__default
|
|
8782
|
+
var child = React__default.Children.only(children);
|
|
8783
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8733
8784
|
ref: ref
|
|
8734
8785
|
}, props, {
|
|
8735
|
-
className: index.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8736
|
-
}), React__default
|
|
8737
|
-
className: index.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")
|
|
8738
8789
|
}));
|
|
8739
8790
|
});
|
|
8740
8791
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8743,13 +8794,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8743
8794
|
var defaultProps$A = {
|
|
8744
8795
|
noGutters: false
|
|
8745
8796
|
};
|
|
8746
|
-
var Row = React__default
|
|
8797
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8747
8798
|
var bsPrefix = _ref.bsPrefix,
|
|
8748
8799
|
className = _ref.className,
|
|
8749
8800
|
noGutters = _ref.noGutters,
|
|
8750
8801
|
_ref$as = _ref.as,
|
|
8751
8802
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8752
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8803
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8753
8804
|
|
|
8754
8805
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8755
8806
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8768,16 +8819,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8768
8819
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8769
8820
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8770
8821
|
});
|
|
8771
|
-
return /*#__PURE__*/React__default
|
|
8822
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8772
8823
|
ref: ref
|
|
8773
8824
|
}, props, {
|
|
8774
|
-
className: index.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))
|
|
8775
8826
|
}));
|
|
8776
8827
|
});
|
|
8777
8828
|
Row.displayName = 'Row';
|
|
8778
8829
|
Row.defaultProps = defaultProps$A;
|
|
8779
8830
|
|
|
8780
|
-
var Spinner = React__default
|
|
8831
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8781
8832
|
var bsPrefix = _ref.bsPrefix,
|
|
8782
8833
|
variant = _ref.variant,
|
|
8783
8834
|
animation = _ref.animation,
|
|
@@ -8786,14 +8837,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8786
8837
|
_ref$as = _ref.as,
|
|
8787
8838
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8788
8839
|
className = _ref.className,
|
|
8789
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8840
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8790
8841
|
|
|
8791
8842
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8792
8843
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8793
|
-
return /*#__PURE__*/React__default
|
|
8844
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8794
8845
|
ref: ref
|
|
8795
8846
|
}, props, {
|
|
8796
|
-
className: index.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8847
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8797
8848
|
}), children);
|
|
8798
8849
|
});
|
|
8799
8850
|
Spinner.displayName = 'Spinner';
|
|
@@ -8804,30 +8855,30 @@ var propTypes$a = {
|
|
|
8804
8855
|
* @type {string|number}
|
|
8805
8856
|
* @required
|
|
8806
8857
|
*/
|
|
8807
|
-
id: PropTypes__default
|
|
8858
|
+
id: PropTypes__default.any,
|
|
8808
8859
|
|
|
8809
8860
|
/**
|
|
8810
8861
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8811
8862
|
*/
|
|
8812
|
-
toggleLabel: PropTypes__default
|
|
8863
|
+
toggleLabel: PropTypes__default.string,
|
|
8813
8864
|
|
|
8814
8865
|
/** An `href` passed to the non-toggle Button */
|
|
8815
|
-
href: PropTypes__default
|
|
8866
|
+
href: PropTypes__default.string,
|
|
8816
8867
|
|
|
8817
8868
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8818
|
-
target: PropTypes__default
|
|
8869
|
+
target: PropTypes__default.string,
|
|
8819
8870
|
|
|
8820
8871
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8821
|
-
onClick: PropTypes__default
|
|
8872
|
+
onClick: PropTypes__default.func,
|
|
8822
8873
|
|
|
8823
8874
|
/** The content of the non-toggle Button. */
|
|
8824
|
-
title: PropTypes__default
|
|
8875
|
+
title: PropTypes__default.node.isRequired,
|
|
8825
8876
|
|
|
8826
8877
|
/** A `type` passed to the non-toggle Button */
|
|
8827
|
-
type: PropTypes__default
|
|
8878
|
+
type: PropTypes__default.string,
|
|
8828
8879
|
|
|
8829
8880
|
/** Disables both Buttons */
|
|
8830
|
-
disabled: PropTypes__default
|
|
8881
|
+
disabled: PropTypes__default.bool,
|
|
8831
8882
|
|
|
8832
8883
|
/**
|
|
8833
8884
|
* Aligns the dropdown menu responsively.
|
|
@@ -8839,32 +8890,32 @@ var propTypes$a = {
|
|
|
8839
8890
|
menuAlign: alignPropType,
|
|
8840
8891
|
|
|
8841
8892
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8842
|
-
menuRole: PropTypes__default
|
|
8893
|
+
menuRole: PropTypes__default.string,
|
|
8843
8894
|
|
|
8844
8895
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8845
|
-
renderMenuOnMount: PropTypes__default
|
|
8896
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8846
8897
|
|
|
8847
8898
|
/**
|
|
8848
8899
|
* Which event when fired outside the component will cause it to be closed.
|
|
8849
8900
|
*
|
|
8850
8901
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8851
8902
|
*/
|
|
8852
|
-
rootCloseEvent: PropTypes__default
|
|
8903
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8853
8904
|
|
|
8854
8905
|
/** @ignore */
|
|
8855
|
-
bsPrefix: PropTypes__default
|
|
8906
|
+
bsPrefix: PropTypes__default.string,
|
|
8856
8907
|
|
|
8857
8908
|
/** @ignore */
|
|
8858
|
-
variant: PropTypes__default
|
|
8909
|
+
variant: PropTypes__default.string,
|
|
8859
8910
|
|
|
8860
8911
|
/** @ignore */
|
|
8861
|
-
size: PropTypes__default
|
|
8912
|
+
size: PropTypes__default.string
|
|
8862
8913
|
};
|
|
8863
8914
|
var defaultProps$B = {
|
|
8864
8915
|
toggleLabel: 'Toggle dropdown',
|
|
8865
8916
|
type: 'button'
|
|
8866
8917
|
};
|
|
8867
|
-
var SplitButton = React__default
|
|
8918
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8868
8919
|
var id = _ref.id,
|
|
8869
8920
|
bsPrefix = _ref.bsPrefix,
|
|
8870
8921
|
size = _ref.size,
|
|
@@ -8880,13 +8931,13 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8880
8931
|
menuRole = _ref.menuRole,
|
|
8881
8932
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8882
8933
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8883
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8934
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8884
8935
|
|
|
8885
|
-
return /*#__PURE__*/React__default
|
|
8936
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8886
8937
|
ref: ref
|
|
8887
8938
|
}, props, {
|
|
8888
8939
|
as: ButtonGroup
|
|
8889
|
-
}), /*#__PURE__*/React__default
|
|
8940
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8890
8941
|
size: size,
|
|
8891
8942
|
variant: variant,
|
|
8892
8943
|
disabled: props.disabled,
|
|
@@ -8895,16 +8946,16 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8895
8946
|
target: target,
|
|
8896
8947
|
onClick: onClick,
|
|
8897
8948
|
type: type
|
|
8898
|
-
}, title), /*#__PURE__*/React__default
|
|
8949
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8899
8950
|
split: true,
|
|
8900
8951
|
id: id ? id.toString() : undefined,
|
|
8901
8952
|
size: size,
|
|
8902
8953
|
variant: variant,
|
|
8903
8954
|
disabled: props.disabled,
|
|
8904
8955
|
childBsPrefix: bsPrefix
|
|
8905
|
-
}, /*#__PURE__*/React__default
|
|
8956
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8906
8957
|
className: "sr-only"
|
|
8907
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8958
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8908
8959
|
align: menuAlign,
|
|
8909
8960
|
role: menuRole,
|
|
8910
8961
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8948,25 +8999,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8948
8999
|
}
|
|
8949
9000
|
};
|
|
8950
9001
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8951
|
-
return /*#__PURE__*/React__default
|
|
9002
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8952
9003
|
value: tabContext
|
|
8953
|
-
}, /*#__PURE__*/React__default
|
|
9004
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8954
9005
|
value: onSelect || null
|
|
8955
9006
|
}, children));
|
|
8956
9007
|
};
|
|
8957
9008
|
|
|
8958
|
-
var TabContent = React__default
|
|
9009
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8959
9010
|
var bsPrefix = _ref.bsPrefix,
|
|
8960
9011
|
_ref$as = _ref.as,
|
|
8961
9012
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8962
9013
|
className = _ref.className,
|
|
8963
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9014
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8964
9015
|
|
|
8965
9016
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8966
|
-
return /*#__PURE__*/React__default
|
|
9017
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8967
9018
|
ref: ref
|
|
8968
9019
|
}, props, {
|
|
8969
|
-
className: index.classnames(className, decoratedBsPrefix)
|
|
9020
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
8970
9021
|
}));
|
|
8971
9022
|
});
|
|
8972
9023
|
|
|
@@ -8977,11 +9028,11 @@ function useTabContext(props) {
|
|
|
8977
9028
|
var activeKey = context.activeKey,
|
|
8978
9029
|
getControlledId = context.getControlledId,
|
|
8979
9030
|
getControllerId = context.getControllerId,
|
|
8980
|
-
rest = index._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9031
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8981
9032
|
|
|
8982
9033
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8983
9034
|
var key = makeEventKey(props.eventKey);
|
|
8984
|
-
return index._extends({}, props, {
|
|
9035
|
+
return index$5._extends({}, props, {
|
|
8985
9036
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8986
9037
|
id: getControlledId(props.eventKey),
|
|
8987
9038
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8991,7 +9042,7 @@ function useTabContext(props) {
|
|
|
8991
9042
|
});
|
|
8992
9043
|
}
|
|
8993
9044
|
|
|
8994
|
-
var TabPane = React__default
|
|
9045
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8995
9046
|
var _useTabContext = useTabContext(props),
|
|
8996
9047
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8997
9048
|
className = _useTabContext.className,
|
|
@@ -9008,19 +9059,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9008
9059
|
_useTabContext$as = _useTabContext.as,
|
|
9009
9060
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9010
9061
|
_ = _useTabContext.eventKey,
|
|
9011
|
-
rest = index._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"]);
|
|
9012
9063
|
|
|
9013
9064
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9014
9065
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9015
|
-
var pane = /*#__PURE__*/React__default
|
|
9066
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
9016
9067
|
ref: ref,
|
|
9017
9068
|
role: "tabpanel",
|
|
9018
9069
|
"aria-hidden": !active,
|
|
9019
|
-
className: index.classnames(className, prefix, {
|
|
9070
|
+
className: index$5.classnames(className, prefix, {
|
|
9020
9071
|
active: active
|
|
9021
9072
|
})
|
|
9022
9073
|
}));
|
|
9023
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9074
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9024
9075
|
in: active,
|
|
9025
9076
|
onEnter: onEnter,
|
|
9026
9077
|
onEntering: onEntering,
|
|
@@ -9033,9 +9084,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9033
9084
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9034
9085
|
// conflict with the top level one.
|
|
9035
9086
|
|
|
9036
|
-
return /*#__PURE__*/React__default
|
|
9087
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9037
9088
|
value: null
|
|
9038
|
-
}, /*#__PURE__*/React__default
|
|
9089
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9039
9090
|
value: null
|
|
9040
9091
|
}, pane));
|
|
9041
9092
|
});
|
|
@@ -9056,13 +9107,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9056
9107
|
};
|
|
9057
9108
|
|
|
9058
9109
|
return Tab;
|
|
9059
|
-
}(React__default
|
|
9110
|
+
}(React__default.Component);
|
|
9060
9111
|
|
|
9061
9112
|
Tab.Container = TabContainer;
|
|
9062
9113
|
Tab.Content = TabContent;
|
|
9063
9114
|
Tab.Pane = TabPane;
|
|
9064
9115
|
|
|
9065
|
-
var Table = React__default
|
|
9116
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9066
9117
|
var bsPrefix = _ref.bsPrefix,
|
|
9067
9118
|
className = _ref.className,
|
|
9068
9119
|
striped = _ref.striped,
|
|
@@ -9072,11 +9123,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9072
9123
|
size = _ref.size,
|
|
9073
9124
|
variant = _ref.variant,
|
|
9074
9125
|
responsive = _ref.responsive,
|
|
9075
|
-
props = index._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"]);
|
|
9076
9127
|
|
|
9077
9128
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9078
|
-
var classes = index.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9079
|
-
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, {
|
|
9080
9131
|
className: classes,
|
|
9081
9132
|
ref: ref
|
|
9082
9133
|
}));
|
|
@@ -9088,7 +9139,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9088
9139
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9089
9140
|
}
|
|
9090
9141
|
|
|
9091
|
-
return /*#__PURE__*/React__default
|
|
9142
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9092
9143
|
className: responsiveClass
|
|
9093
9144
|
}, table);
|
|
9094
9145
|
}
|
|
@@ -9096,7 +9147,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9096
9147
|
return table;
|
|
9097
9148
|
});
|
|
9098
9149
|
|
|
9099
|
-
var ToastContext = React__default
|
|
9150
|
+
var ToastContext = React__default.createContext({
|
|
9100
9151
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9101
9152
|
onClose: function onClose() {}
|
|
9102
9153
|
});
|
|
@@ -9105,13 +9156,13 @@ var defaultProps$C = {
|
|
|
9105
9156
|
closeLabel: 'Close',
|
|
9106
9157
|
closeButton: true
|
|
9107
9158
|
};
|
|
9108
|
-
var ToastHeader = React__default
|
|
9159
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9109
9160
|
var bsPrefix = _ref.bsPrefix,
|
|
9110
9161
|
closeLabel = _ref.closeLabel,
|
|
9111
9162
|
closeButton = _ref.closeButton,
|
|
9112
9163
|
className = _ref.className,
|
|
9113
9164
|
children = _ref.children,
|
|
9114
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9165
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9115
9166
|
|
|
9116
9167
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9117
9168
|
var context = React.useContext(ToastContext);
|
|
@@ -9120,11 +9171,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9120
9171
|
context.onClose(e);
|
|
9121
9172
|
}
|
|
9122
9173
|
});
|
|
9123
|
-
return /*#__PURE__*/React__default
|
|
9174
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9124
9175
|
ref: ref
|
|
9125
9176
|
}, props, {
|
|
9126
|
-
className: index.classnames(bsPrefix, className)
|
|
9127
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9177
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9178
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9128
9179
|
label: closeLabel,
|
|
9129
9180
|
onClick: handleClick,
|
|
9130
9181
|
className: "ml-2 mb-1",
|
|
@@ -9136,7 +9187,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9136
9187
|
|
|
9137
9188
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9138
9189
|
|
|
9139
|
-
var Toast = React__default
|
|
9190
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9140
9191
|
var bsPrefix = _ref.bsPrefix,
|
|
9141
9192
|
className = _ref.className,
|
|
9142
9193
|
children = _ref.children,
|
|
@@ -9151,7 +9202,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9151
9202
|
_ref$autohide = _ref.autohide,
|
|
9152
9203
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9153
9204
|
onClose = _ref.onClose,
|
|
9154
|
-
props = index._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"]);
|
|
9155
9206
|
|
|
9156
9207
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9157
9208
|
// timer in case these values change.
|
|
@@ -9179,16 +9230,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9179
9230
|
};
|
|
9180
9231
|
}, [onClose]);
|
|
9181
9232
|
var hasAnimation = !!(Transition && animation);
|
|
9182
|
-
var toast = /*#__PURE__*/React__default
|
|
9233
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9183
9234
|
ref: ref,
|
|
9184
|
-
className: index.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9235
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9185
9236
|
role: "alert",
|
|
9186
9237
|
"aria-live": "assertive",
|
|
9187
9238
|
"aria-atomic": "true"
|
|
9188
9239
|
}), children);
|
|
9189
|
-
return /*#__PURE__*/React__default
|
|
9240
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9190
9241
|
value: toastContext
|
|
9191
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9242
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9192
9243
|
in: show,
|
|
9193
9244
|
unmountOnExit: true
|
|
9194
9245
|
}, toast) : toast);
|
|
@@ -9203,7 +9254,7 @@ var noop$5 = function noop() {
|
|
|
9203
9254
|
return undefined;
|
|
9204
9255
|
};
|
|
9205
9256
|
|
|
9206
|
-
var ToggleButton = React__default
|
|
9257
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9207
9258
|
var children = _ref.children,
|
|
9208
9259
|
name = _ref.name,
|
|
9209
9260
|
className = _ref.className,
|
|
@@ -9213,7 +9264,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9213
9264
|
value = _ref.value,
|
|
9214
9265
|
disabled = _ref.disabled,
|
|
9215
9266
|
inputRef = _ref.inputRef,
|
|
9216
|
-
props = index._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"]);
|
|
9217
9268
|
|
|
9218
9269
|
var _useState = React.useState(false),
|
|
9219
9270
|
focused = _useState[0],
|
|
@@ -9225,13 +9276,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9225
9276
|
var handleBlur = React.useCallback(function (e) {
|
|
9226
9277
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9227
9278
|
}, []);
|
|
9228
|
-
return /*#__PURE__*/React__default
|
|
9279
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9229
9280
|
ref: ref,
|
|
9230
|
-
className: index.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9281
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9231
9282
|
type: undefined,
|
|
9232
9283
|
active: !!checked,
|
|
9233
9284
|
as: "label"
|
|
9234
|
-
}), /*#__PURE__*/React__default
|
|
9285
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9235
9286
|
name: name,
|
|
9236
9287
|
type: type,
|
|
9237
9288
|
value: value,
|
|
@@ -9250,7 +9301,7 @@ var defaultProps$D = {
|
|
|
9250
9301
|
type: 'radio',
|
|
9251
9302
|
vertical: false
|
|
9252
9303
|
};
|
|
9253
|
-
var ToggleButtonGroup = React__default
|
|
9304
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9254
9305
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9255
9306
|
value: 'onChange'
|
|
9256
9307
|
}),
|
|
@@ -9259,7 +9310,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9259
9310
|
name = _useUncontrolled.name,
|
|
9260
9311
|
value = _useUncontrolled.value,
|
|
9261
9312
|
onChange = _useUncontrolled.onChange,
|
|
9262
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9313
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9263
9314
|
|
|
9264
9315
|
var getValues = function getValues() {
|
|
9265
9316
|
return value == null ? [] : [].concat(value);
|
|
@@ -9288,7 +9339,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9288
9339
|
};
|
|
9289
9340
|
|
|
9290
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;
|
|
9291
|
-
return /*#__PURE__*/React__default
|
|
9342
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9292
9343
|
ref: ref,
|
|
9293
9344
|
toggle: true
|
|
9294
9345
|
}), map(children, function (child) {
|
|
@@ -9301,7 +9352,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9301
9352
|
return handleToggle(childVal, e);
|
|
9302
9353
|
};
|
|
9303
9354
|
|
|
9304
|
-
return React__default
|
|
9355
|
+
return React__default.cloneElement(child, {
|
|
9305
9356
|
type: type,
|
|
9306
9357
|
name: child.name || name,
|
|
9307
9358
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9315,7 +9366,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9315
9366
|
var defaultProps$E = {
|
|
9316
9367
|
placement: 'right'
|
|
9317
9368
|
};
|
|
9318
|
-
var Tooltip = React__default
|
|
9369
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9319
9370
|
var bsPrefix = _ref.bsPrefix,
|
|
9320
9371
|
placement = _ref.placement,
|
|
9321
9372
|
className = _ref.className,
|
|
@@ -9324,22 +9375,22 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9324
9375
|
arrowProps = _ref.arrowProps,
|
|
9325
9376
|
_ = _ref.popper,
|
|
9326
9377
|
_2 = _ref.show,
|
|
9327
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9378
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9328
9379
|
|
|
9329
9380
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9330
9381
|
|
|
9331
9382
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9332
9383
|
primaryPlacement = _ref2[0];
|
|
9333
9384
|
|
|
9334
|
-
return /*#__PURE__*/React__default
|
|
9385
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9335
9386
|
ref: ref,
|
|
9336
9387
|
style: style,
|
|
9337
9388
|
role: "tooltip",
|
|
9338
9389
|
"x-placement": primaryPlacement,
|
|
9339
|
-
className: index.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9340
|
-
}, props), /*#__PURE__*/React__default
|
|
9390
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9391
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9341
9392
|
className: "arrow"
|
|
9342
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9393
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9343
9394
|
className: bsPrefix + "-inner"
|
|
9344
9395
|
}, children));
|
|
9345
9396
|
});
|
|
@@ -9357,54 +9408,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9357
9408
|
client = props.client;
|
|
9358
9409
|
|
|
9359
9410
|
|
|
9360
|
-
return React__default
|
|
9411
|
+
return React__default.createElement(
|
|
9361
9412
|
'div',
|
|
9362
9413
|
{ className: styles.article },
|
|
9363
|
-
React__default
|
|
9414
|
+
React__default.createElement(
|
|
9364
9415
|
'a',
|
|
9365
9416
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9366
|
-
React__default
|
|
9417
|
+
React__default.createElement(
|
|
9367
9418
|
'div',
|
|
9368
9419
|
{ className: styles.thumb },
|
|
9369
|
-
React__default
|
|
9420
|
+
React__default.createElement(
|
|
9370
9421
|
'figure',
|
|
9371
9422
|
null,
|
|
9372
|
-
React__default
|
|
9373
|
-
index$
|
|
9423
|
+
React__default.createElement(
|
|
9424
|
+
index$2.LazyLoad,
|
|
9374
9425
|
null,
|
|
9375
|
-
React__default
|
|
9426
|
+
React__default.createElement('img', {
|
|
9376
9427
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9377
9428
|
})
|
|
9378
9429
|
)
|
|
9379
9430
|
)
|
|
9380
9431
|
),
|
|
9381
|
-
React__default
|
|
9432
|
+
React__default.createElement(
|
|
9382
9433
|
'div',
|
|
9383
9434
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9384
|
-
React__default
|
|
9435
|
+
React__default.createElement(
|
|
9385
9436
|
'div',
|
|
9386
9437
|
{ className: styles.name },
|
|
9387
9438
|
data.name
|
|
9388
9439
|
),
|
|
9389
|
-
data.published && React__default
|
|
9440
|
+
data.published && React__default.createElement(
|
|
9390
9441
|
'p',
|
|
9391
9442
|
{ className: styles.published },
|
|
9392
9443
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9393
9444
|
),
|
|
9394
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9445
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9395
9446
|
'p',
|
|
9396
9447
|
{ className: styles.author },
|
|
9397
9448
|
'By ',
|
|
9398
|
-
React__default
|
|
9449
|
+
React__default.createElement(
|
|
9399
9450
|
'span',
|
|
9400
9451
|
null,
|
|
9401
9452
|
data.authorMapping.displayName
|
|
9402
9453
|
)
|
|
9403
9454
|
),
|
|
9404
|
-
data.description && React__default
|
|
9455
|
+
data.description && React__default.createElement(
|
|
9405
9456
|
'div',
|
|
9406
9457
|
{ className: 'media-series-desc' },
|
|
9407
|
-
React__default
|
|
9458
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9408
9459
|
)
|
|
9409
9460
|
)
|
|
9410
9461
|
)
|
|
@@ -9452,7 +9503,7 @@ var Filter = function Filter(_ref) {
|
|
|
9452
9503
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9453
9504
|
if (type === 'parent') {
|
|
9454
9505
|
setParentData(function (prevState) {
|
|
9455
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9506
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9456
9507
|
});
|
|
9457
9508
|
if (group && group.children && group.children.length > 0) {
|
|
9458
9509
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9466,7 +9517,7 @@ var Filter = function Filter(_ref) {
|
|
|
9466
9517
|
}
|
|
9467
9518
|
if (type === 'child') {
|
|
9468
9519
|
setChildData(function (prevState) {
|
|
9469
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9520
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9470
9521
|
});
|
|
9471
9522
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9472
9523
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9485,7 +9536,7 @@ var Filter = function Filter(_ref) {
|
|
|
9485
9536
|
}
|
|
9486
9537
|
if (type === 'grandchild') {
|
|
9487
9538
|
setGrandChildData(function (prevState) {
|
|
9488
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9539
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9489
9540
|
});
|
|
9490
9541
|
//handle filter
|
|
9491
9542
|
if (!group._id) {
|
|
@@ -9501,13 +9552,13 @@ var Filter = function Filter(_ref) {
|
|
|
9501
9552
|
}
|
|
9502
9553
|
};
|
|
9503
9554
|
|
|
9504
|
-
return React__default
|
|
9555
|
+
return React__default.createElement(
|
|
9505
9556
|
'div',
|
|
9506
9557
|
{ className: 'flex-container' },
|
|
9507
|
-
parentData && React__default
|
|
9558
|
+
parentData && React__default.createElement(
|
|
9508
9559
|
DropdownButton,
|
|
9509
9560
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9510
|
-
React__default
|
|
9561
|
+
React__default.createElement(
|
|
9511
9562
|
Dropdown$1.Item,
|
|
9512
9563
|
{ onSelect: function onSelect() {
|
|
9513
9564
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9516,7 +9567,7 @@ var Filter = function Filter(_ref) {
|
|
|
9516
9567
|
),
|
|
9517
9568
|
parentData.data.map(function (docGroup) {
|
|
9518
9569
|
if (!docGroup._id) return null;
|
|
9519
|
-
return React__default
|
|
9570
|
+
return React__default.createElement(
|
|
9520
9571
|
Dropdown$1.Item,
|
|
9521
9572
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9522
9573
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9525,10 +9576,10 @@ var Filter = function Filter(_ref) {
|
|
|
9525
9576
|
);
|
|
9526
9577
|
})
|
|
9527
9578
|
),
|
|
9528
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9579
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9529
9580
|
DropdownButton,
|
|
9530
9581
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9531
|
-
React__default
|
|
9582
|
+
React__default.createElement(
|
|
9532
9583
|
Dropdown$1.Item,
|
|
9533
9584
|
{ onSelect: function onSelect() {
|
|
9534
9585
|
return handleFilterSelect({}, 'child');
|
|
@@ -9537,7 +9588,7 @@ var Filter = function Filter(_ref) {
|
|
|
9537
9588
|
),
|
|
9538
9589
|
childData.data.map(function (docGroup) {
|
|
9539
9590
|
if (!docGroup._id) return null;
|
|
9540
|
-
return React__default
|
|
9591
|
+
return React__default.createElement(
|
|
9541
9592
|
Dropdown$1.Item,
|
|
9542
9593
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9543
9594
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9546,10 +9597,10 @@ var Filter = function Filter(_ref) {
|
|
|
9546
9597
|
);
|
|
9547
9598
|
})
|
|
9548
9599
|
),
|
|
9549
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9600
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9550
9601
|
DropdownButton,
|
|
9551
9602
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9552
|
-
React__default
|
|
9603
|
+
React__default.createElement(
|
|
9553
9604
|
Dropdown$1.Item,
|
|
9554
9605
|
{ onSelect: function onSelect() {
|
|
9555
9606
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9558,7 +9609,7 @@ var Filter = function Filter(_ref) {
|
|
|
9558
9609
|
),
|
|
9559
9610
|
grandChildData.data.map(function (docGroup) {
|
|
9560
9611
|
if (!docGroup._id) return null;
|
|
9561
|
-
return React__default
|
|
9612
|
+
return React__default.createElement(
|
|
9562
9613
|
Dropdown$1.Item,
|
|
9563
9614
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9564
9615
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9567,7 +9618,7 @@ var Filter = function Filter(_ref) {
|
|
|
9567
9618
|
);
|
|
9568
9619
|
})
|
|
9569
9620
|
),
|
|
9570
|
-
React__default
|
|
9621
|
+
React__default.createElement(
|
|
9571
9622
|
'style',
|
|
9572
9623
|
{ jsx: 'true' },
|
|
9573
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 '
|
|
@@ -9615,7 +9666,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9615
9666
|
while (1) {
|
|
9616
9667
|
switch (_context.prev = _context.next) {
|
|
9617
9668
|
case 0:
|
|
9618
|
-
newParams = _extends._extends({}, params, { from: 0, to: 10 });
|
|
9669
|
+
newParams = _extends$1._extends({}, params, { from: 0, to: 10 });
|
|
9619
9670
|
filterQuery = void 0;
|
|
9620
9671
|
|
|
9621
9672
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof._typeof(filterTopicID)) == 'object') {
|
|
@@ -9657,27 +9708,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9657
9708
|
}();
|
|
9658
9709
|
|
|
9659
9710
|
if (props.statusCode === 404) {
|
|
9660
|
-
return React__default
|
|
9711
|
+
return React__default.createElement(
|
|
9661
9712
|
'div',
|
|
9662
9713
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9663
|
-
React__default
|
|
9714
|
+
React__default.createElement(
|
|
9664
9715
|
'h3',
|
|
9665
9716
|
null,
|
|
9666
9717
|
'404: Resource not found'
|
|
9667
9718
|
),
|
|
9668
|
-
React__default
|
|
9719
|
+
React__default.createElement(
|
|
9669
9720
|
'p',
|
|
9670
9721
|
null,
|
|
9671
9722
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9672
9723
|
),
|
|
9673
|
-
React__default
|
|
9724
|
+
React__default.createElement(
|
|
9674
9725
|
'p',
|
|
9675
9726
|
null,
|
|
9676
9727
|
'Click here to',
|
|
9677
|
-
React__default
|
|
9678
|
-
|
|
9728
|
+
React__default.createElement(
|
|
9729
|
+
Link,
|
|
9679
9730
|
{ href: '/' },
|
|
9680
|
-
React__default
|
|
9731
|
+
React__default.createElement(
|
|
9681
9732
|
'a',
|
|
9682
9733
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9683
9734
|
' return to homepage.'
|
|
@@ -9687,17 +9738,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9687
9738
|
);
|
|
9688
9739
|
}
|
|
9689
9740
|
|
|
9690
|
-
return React__default
|
|
9741
|
+
return React__default.createElement(
|
|
9691
9742
|
'div',
|
|
9692
9743
|
{ className: 'mb-5' },
|
|
9693
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9694
|
-
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(
|
|
9695
9746
|
'div',
|
|
9696
9747
|
{ className: '' },
|
|
9697
|
-
React__default
|
|
9698
|
-
React__default
|
|
9748
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9749
|
+
React__default.createElement('hr', null)
|
|
9699
9750
|
),
|
|
9700
|
-
seriesData && React__default
|
|
9751
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9701
9752
|
deck: MediaSeriesCard,
|
|
9702
9753
|
variant: 'left',
|
|
9703
9754
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9801,7 +9852,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9801
9852
|
statusCode = 404;
|
|
9802
9853
|
}
|
|
9803
9854
|
|
|
9804
|
-
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));
|
|
9805
9856
|
|
|
9806
9857
|
case 25:
|
|
9807
9858
|
case 'end':
|