@mjhls/mjh-framework 1.0.866-beta.0 → 1.0.866-d4d665.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +19 -16
- package/dist/cjs/AD300x250x600.js +19 -16
- package/dist/cjs/AD728x90.js +20 -17
- package/dist/cjs/ADFloatingFooter.js +21 -18
- package/dist/cjs/ADFooter.js +14 -11
- package/dist/cjs/ADGutter.js +21 -18
- package/dist/cjs/{ADInfeed-7c09edba.js → ADInfeed-799275aa.js} +12 -10
- package/dist/cjs/ADSkyscraper.js +21 -18
- package/dist/cjs/ADSponsoredResources.js +21 -18
- package/dist/cjs/ADWebcast.js +21 -18
- package/dist/cjs/ADWelcome.js +25 -22
- package/dist/cjs/{ADlgInfeed-2e7effc7.js → ADlgInfeed-591d014e.js} +8 -7
- package/dist/cjs/AccordionPanel.js +29 -25
- package/dist/cjs/AdSlot.js +23 -20
- package/dist/cjs/AdSlotsProvider.js +18 -907
- package/dist/cjs/AlgoliaSearch.js +978 -850
- package/dist/cjs/AlphabeticList.js +24 -21
- package/dist/cjs/ArticleCarousel.js +16 -13
- package/dist/cjs/ArticleProgramLandingPage.js +40 -37
- package/dist/cjs/ArticleSeriesLandingPage.js +35 -32
- package/dist/cjs/ArticleSeriesListing.js +49 -46
- package/dist/cjs/Auth.js +205 -1198
- package/dist/cjs/AuthWrapper.js +306 -262
- package/dist/cjs/{AuthorComponent-02e827ae.js → AuthorComponent-ac8972ce.js} +14 -13
- package/dist/cjs/Beam.js +7 -5
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-8b494587.js} +25 -24
- package/dist/cjs/Breadcrumbs.js +28 -24
- package/dist/cjs/CMEDeck.js +73 -71
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +30 -25
- package/dist/cjs/Column3.js +46 -41
- package/dist/cjs/ConferenceArticleCard.js +33 -35
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +97 -91
- package/dist/cjs/DeckQueue.js +82 -77
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-391fd124.js} +28 -25
- package/dist/cjs/EventsDeck.js +153 -144
- package/dist/cjs/ExternalResources.js +61 -58
- package/dist/cjs/Feature.js +25 -26
- package/dist/cjs/ForbesHero.js +40 -37
- package/dist/cjs/GridContent.js +221 -214
- package/dist/cjs/GridHero.js +41 -38
- package/dist/cjs/GroupDeck.js +55 -52
- package/dist/cjs/HamMagazine.js +137 -130
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +10 -12
- package/dist/cjs/HighlightenVideo.js +17 -16
- package/dist/cjs/HorizontalArticleListing.js +51 -48
- package/dist/cjs/HorizontalHero.js +24 -26
- package/dist/cjs/IssueContentDeck.js +75 -68
- package/dist/cjs/IssueDeck.js +73 -66
- package/dist/cjs/IssueLanding.js +72 -69
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +31 -27
- package/dist/cjs/MasterDeck.js +71 -68
- package/dist/cjs/MediaSeriesLanding.js +855 -862
- package/dist/cjs/NavDvm.js +75 -68
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +138 -131
- package/dist/cjs/NavNative.js +132 -122
- package/dist/cjs/OncliveHero.js +17 -20
- package/dist/cjs/OncliveLargeHero.js +69 -66
- package/dist/cjs/PageFilter.js +14 -11
- package/dist/cjs/PartnerDetailListing.js +259 -1329
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +20 -16
- package/dist/cjs/PubSection.js +30 -27
- package/dist/cjs/PubToc.js +15 -12
- package/dist/cjs/PublicationDeck.js +64 -62
- package/dist/cjs/PublicationLanding.js +150 -144
- package/dist/cjs/QueueDeckExpanded.js +297 -295
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -53
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +21 -15
- package/dist/cjs/Segment.js +6 -4
- package/dist/cjs/SeriesListingDeck.js +33 -31
- package/dist/cjs/{SeriesSlider-49b81b0b.js → SeriesSlider-d38767ae.js} +39 -38
- package/dist/cjs/SideFooter.js +33 -30
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-650f6101.js → SocialSearchComponent-9a9d6f8c.js} +39 -35
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +61 -58
- package/dist/cjs/TaxonomyDescription.js +36 -33
- package/dist/cjs/TemplateNormal.js +46 -43
- package/dist/cjs/ThumbnailCard.js +19 -20
- package/dist/cjs/Ustream.js +29 -26
- package/dist/cjs/VerticalHero.js +16 -18
- package/dist/cjs/VideoProgramLandingPage.js +59 -53
- package/dist/cjs/VideoSeriesCard.js +28 -27
- package/dist/cjs/VideoSeriesFilter.js +16 -14
- package/dist/cjs/VideoSeriesLandingPage.js +40 -37
- package/dist/cjs/VideoSeriesListing.js +66 -63
- package/dist/cjs/View.js +220 -214
- package/dist/cjs/YahooHero.js +36 -33
- package/dist/cjs/YoutubeGroup.js +59 -56
- package/dist/cjs/{_is-array-aa52fa1e.js → _is-array-754e012d.js} +9 -9
- package/dist/cjs/{_iter-detect-05795553.js → _iter-detect-60b2f026.js} +7 -6
- package/dist/cjs/_object-sap-5e74ba08.js +16 -0
- package/dist/cjs/{_object-to-array-9bac8737.js → _object-to-array-5762f850.js} +4 -4
- package/dist/cjs/{core.get-iterator-method-f3c44602.js → _to-object-329a650b.js} +3 -239
- package/dist/cjs/{asyncToGenerator-df19209d.js → asyncToGenerator-140e5f89.js} +67 -65
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-4ba0d3d5.js} +6 -5
- package/dist/cjs/core.get-iterator-method-f62321d4.js +39 -0
- package/dist/cjs/{define-property-21887c62.js → define-property-f4d12f4e.js} +3 -3
- package/dist/cjs/{defineProperty-77a37684.js → defineProperty-55548b25.js} +1 -1
- package/dist/cjs/es6.string.iterator-cc0bbaa4.js +210 -0
- package/dist/cjs/{extends-eed4f016.js → extends-0a918631.js} +8 -8
- package/dist/cjs/faundadb.js +21 -19
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/getRelatedArticle.js +12 -10
- package/dist/cjs/getRootDocGroup.js +8 -6
- package/dist/cjs/getSerializers.js +25 -23
- package/dist/cjs/{getTargeting-8874437b.js → getTargeting-21103688.js} +12 -12
- package/dist/cjs/getTargeting.js +7 -5
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-59af05c4.js → index-4990e6c9.js} +970 -965
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- package/dist/cjs/{index-96b3db50.js → index-9d365128.js} +12 -10
- package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
- package/dist/cjs/{index-e2e62963.js → index-f0677b9d.js} +10 -0
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-05850a2f.js} +5 -12
- package/dist/cjs/{index.esm-4d410430.js → index.esm-3ffa049c.js} +20 -20
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-44f3e2d0.js} +3 -6
- package/dist/cjs/{index.esm-90433435.js → index.esm-974f47d9.js} +6 -15
- package/dist/cjs/index.js +80 -73
- package/dist/cjs/{inherits-cba9c846.js → inherits-0c7830c5.js} +15 -14
- package/dist/cjs/{keys-d207942e.js → keys-a586b7a0.js} +4 -4
- package/dist/cjs/{lodash-fc2922d0.js → lodash-7fd85bcf.js} +71 -22
- package/dist/cjs/{main-02daeefe.js → main-11ec04d2.js} +85 -53
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/{slicedToArray-f6d4eaa8.js → slicedToArray-8f385299.js} +9 -7
- package/dist/cjs/{stringify-bbc68047.js → stringify-7c5aff47.js} +2 -2
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-c9b8a0d0.js → toConsumableArray-9a3476fe.js} +10 -8
- package/dist/cjs/{typeof-5f52cf64.js → typeof-9d7f610f.js} +74 -73
- package/dist/cjs/urlFor.js +4 -21
- package/dist/cjs/{ustream-api-9ebe112f.js → ustream-api-d092dc31.js} +4 -4
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-e34bf324.js → web.dom.iterable-a0e279c1.js} +9 -8
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +16 -14
- package/dist/esm/AD300x250x600.js +16 -14
- package/dist/esm/AD728x90.js +17 -15
- package/dist/esm/ADFloatingFooter.js +18 -16
- package/dist/esm/ADFooter.js +11 -9
- package/dist/esm/ADGutter.js +18 -16
- package/dist/esm/{ADInfeed-bfd129d9.js → ADInfeed-4b8902ae.js} +8 -8
- package/dist/esm/ADSkyscraper.js +18 -16
- package/dist/esm/ADSponsoredResources.js +18 -16
- package/dist/esm/ADWebcast.js +18 -16
- package/dist/esm/ADWelcome.js +22 -20
- package/dist/esm/{ADlgInfeed-0489335b.js → ADlgInfeed-5193b48f.js} +5 -5
- package/dist/esm/AccordionPanel.js +22 -20
- package/dist/esm/AdSlot.js +14 -12
- package/dist/esm/AdSlotsProvider.js +16 -906
- package/dist/esm/AlgoliaSearch.js +376 -249
- package/dist/esm/AlphabeticList.js +21 -19
- package/dist/esm/ArticleCarousel.js +13 -11
- package/dist/esm/ArticleProgramLandingPage.js +34 -32
- package/dist/esm/ArticleSeriesLandingPage.js +30 -28
- package/dist/esm/ArticleSeriesListing.js +45 -43
- package/dist/esm/Auth.js +184 -1181
- package/dist/esm/AuthWrapper.js +303 -260
- package/dist/esm/{AuthorComponent-e6f95c2f.js → AuthorComponent-8ffd4679.js} +11 -11
- package/dist/esm/Beam.js +7 -5
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-d05b5b23.js} +4 -4
- package/dist/esm/Breadcrumbs.js +16 -14
- package/dist/esm/CMEDeck.js +70 -68
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +25 -23
- package/dist/esm/Column3.js +41 -39
- package/dist/esm/ConferenceArticleCard.js +30 -33
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +89 -87
- package/dist/esm/DeckQueue.js +74 -73
- package/dist/esm/{Dfp-f867d061.js → Dfp-2f9796e1.js} +15 -13
- package/dist/esm/EventsDeck.js +121 -119
- package/dist/esm/ExternalResources.js +55 -53
- package/dist/esm/Feature.js +17 -20
- package/dist/esm/ForbesHero.js +33 -31
- package/dist/esm/GridContent.js +185 -183
- package/dist/esm/GridHero.js +34 -32
- package/dist/esm/GroupDeck.js +42 -40
- package/dist/esm/HamMagazine.js +107 -105
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -10
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +48 -46
- package/dist/esm/HorizontalHero.js +21 -24
- package/dist/esm/IssueContentDeck.js +58 -56
- package/dist/esm/IssueDeck.js +62 -60
- package/dist/esm/IssueLanding.js +69 -67
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +25 -23
- package/dist/esm/MasterDeck.js +67 -65
- package/dist/esm/MediaSeriesLanding.js +574 -584
- package/dist/esm/NavDvm.js +53 -51
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +110 -108
- package/dist/esm/NavNative.js +99 -97
- package/dist/esm/OncliveHero.js +14 -18
- package/dist/esm/OncliveLargeHero.js +57 -55
- package/dist/esm/PageFilter.js +11 -9
- package/dist/esm/PartnerDetailListing.js +256 -1327
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +13 -11
- package/dist/esm/PubSection.js +27 -25
- package/dist/esm/PubToc.js +12 -10
- package/dist/esm/PublicationDeck.js +51 -54
- package/dist/esm/PublicationLanding.js +105 -103
- package/dist/esm/QueueDeckExpanded.js +263 -261
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -48
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +12 -10
- package/dist/esm/Segment.js +6 -4
- package/dist/esm/SeriesListingDeck.js +28 -26
- package/dist/esm/{SeriesSlider-d555a1d2.js → SeriesSlider-b8cc1baa.js} +29 -29
- package/dist/esm/SideFooter.js +29 -27
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-d7dec0c2.js → SocialSearchComponent-c54d43cb.js} +29 -29
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +52 -54
- package/dist/esm/TaxonomyDescription.js +30 -28
- package/dist/esm/TemplateNormal.js +42 -40
- package/dist/esm/ThumbnailCard.js +10 -13
- package/dist/esm/Ustream.js +26 -24
- package/dist/esm/VerticalHero.js +13 -16
- package/dist/esm/VideoProgramLandingPage.js +46 -44
- package/dist/esm/VideoSeriesCard.js +22 -22
- package/dist/esm/VideoSeriesFilter.js +13 -11
- package/dist/esm/VideoSeriesLandingPage.js +30 -28
- package/dist/esm/VideoSeriesListing.js +62 -60
- package/dist/esm/View.js +198 -196
- package/dist/esm/YahooHero.js +30 -28
- package/dist/esm/YoutubeGroup.js +43 -41
- package/dist/esm/{_is-array-4df618a6.js → _is-array-58e95429.js} +1 -1
- package/dist/esm/{_iter-detect-130ee549.js → _iter-detect-5d49a330.js} +2 -1
- package/dist/esm/{_object-sap-8b8ea5a9.js → _object-sap-964b6feb.js} +1 -1
- package/dist/esm/{_object-to-array-c54dd835.js → _object-to-array-7e804fce.js} +1 -1
- package/dist/esm/{core.get-iterator-method-86d4db69.js → _to-object-a4107da3.js} +1 -230
- package/dist/esm/{asyncToGenerator-7bf8bc4d.js → asyncToGenerator-fc1c2e29.js} +5 -3
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e1c6b0f2.js} +3 -3
- package/dist/esm/core.get-iterator-method-e1de7503.js +36 -0
- package/dist/esm/{define-property-6d26cb48.js → define-property-8af5f002.js} +1 -1
- package/dist/esm/{defineProperty-d7d9b577.js → defineProperty-94fd8bfc.js} +1 -1
- package/dist/esm/es6.string.iterator-c990c18c.js +201 -0
- package/dist/esm/{extends-5b1796d4.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +7 -5
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/getRelatedArticle.js +6 -4
- package/dist/esm/getRootDocGroup.js +6 -4
- package/dist/esm/getSerializers.js +25 -23
- package/dist/esm/{getTargeting-277c801e.js → getTargeting-88d69971.js} +11 -11
- package/dist/esm/getTargeting.js +7 -5
- package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
- package/dist/esm/{index-5f7e79e7.js → index-6c12bdd5.js} +4 -4
- package/dist/esm/{index-aaa2dae0.js → index-b68072f5.js} +10 -1
- package/dist/esm/{index-efc23b2b.js → index-bec35c6c.js} +911 -916
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- package/dist/esm/{index.esm-29e48d38.js → index.esm-3fdda599.js} +6 -15
- package/dist/esm/{index.esm-fd746768.js → index.esm-8ee5ff72.js} +17 -18
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-a8ff922c.js} +5 -12
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-c6715e80.js} +3 -6
- package/dist/esm/index.js +69 -65
- package/dist/esm/{inherits-2409637d.js → inherits-75d45541.js} +5 -4
- package/dist/esm/{keys-69989821.js → keys-8eda7a5c.js} +2 -2
- package/dist/esm/{lodash-17fdfebb.js → lodash-ec8c6b48.js} +71 -22
- package/dist/esm/{main-e4a934b2.js → main-aef58dbc.js} +81 -50
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-3822f1ce.js} +5 -5
- package/dist/esm/{slicedToArray-67a08c9c.js → slicedToArray-641f241f.js} +4 -2
- package/dist/esm/{stringify-70b72959.js → stringify-4330ccdc.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-32282905.js → toConsumableArray-43aa614d.js} +4 -2
- package/dist/esm/{typeof-c05a82ba.js → typeof-af9c50d8.js} +5 -4
- package/dist/esm/urlFor.js +2 -19
- package/dist/esm/{ustream-api-4c4fe0ba.js → ustream-api-9a50644d.js} +4 -4
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/dist/esm/{web.dom.iterable-f8f967cd.js → web.dom.iterable-4439f05a.js} +2 -1
- package/package.json +111 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/_object-sap-171b9ea5.js +0 -16
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/esm/inherits-77d5e4fc.js +0 -101
|
@@ -1,69 +1,71 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './
|
|
2
|
+
import './_to-object-a4107da3.js';
|
|
3
|
+
import './es6.string.iterator-c990c18c.js';
|
|
3
4
|
import './_library-528f1934.js';
|
|
4
|
-
import './_iter-detect-
|
|
5
|
-
import './toConsumableArray-
|
|
5
|
+
import './_iter-detect-5d49a330.js';
|
|
6
|
+
import './toConsumableArray-43aa614d.js';
|
|
7
|
+
import './core.get-iterator-method-e1de7503.js';
|
|
6
8
|
import './_object-pie-33c40e79.js';
|
|
7
|
-
import { _ as _extends$
|
|
8
|
-
import './_object-sap-
|
|
9
|
-
import './inherits-
|
|
10
|
-
import './define-property-
|
|
11
|
-
import './web.dom.iterable-
|
|
12
|
-
import { _ as _typeof } from './typeof-
|
|
13
|
-
import './_is-array-
|
|
14
|
-
import
|
|
9
|
+
import { _ as _extends$1 } from './extends-6f2fcc99.js';
|
|
10
|
+
import './_object-sap-964b6feb.js';
|
|
11
|
+
import './inherits-75d45541.js';
|
|
12
|
+
import './define-property-8af5f002.js';
|
|
13
|
+
import './web.dom.iterable-4439f05a.js';
|
|
14
|
+
import { _ as _typeof } from './typeof-af9c50d8.js';
|
|
15
|
+
import './_is-array-58e95429.js';
|
|
16
|
+
import React, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
15
17
|
import './events-6c3a7a63.js';
|
|
16
|
-
import './index-
|
|
18
|
+
import './index-f7fb1e25.js';
|
|
17
19
|
import PropTypes from 'prop-types';
|
|
18
20
|
import 'react-bootstrap/Container';
|
|
19
21
|
import 'react-bootstrap/Row';
|
|
20
22
|
import 'react-bootstrap/Col';
|
|
21
23
|
import 'react-bootstrap/Card';
|
|
22
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-12415288.js';
|
|
23
25
|
import 'next/router';
|
|
24
26
|
import './isSymbol-1981418f.js';
|
|
25
27
|
import './debounce-9207d8ee.js';
|
|
26
28
|
import './toNumber-2f7a84cd.js';
|
|
27
|
-
import './index.es-
|
|
29
|
+
import './index.es-7dda2f0a.js';
|
|
28
30
|
import ReactDOM from 'react-dom';
|
|
29
|
-
import './visibility-sensor-
|
|
30
|
-
import
|
|
31
|
-
import './index-73819142.js';
|
|
31
|
+
import './visibility-sensor-f40c2564.js';
|
|
32
|
+
import './index-51a80699.js';
|
|
32
33
|
import urlFor from './urlFor.js';
|
|
33
|
-
import { L as LazyLoad } from './index-
|
|
34
|
-
import './main-
|
|
34
|
+
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
+
import './main-aef58dbc.js';
|
|
35
36
|
import './entities-7cc3bf45.js';
|
|
36
|
-
import './
|
|
37
|
-
import
|
|
37
|
+
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
|
+
import './stringify-4330ccdc.js';
|
|
39
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
38
40
|
import './Segment.js';
|
|
39
41
|
import './Beam.js';
|
|
40
42
|
import './AdSlot.js';
|
|
41
|
-
import './ADInfeed-
|
|
42
|
-
import './lodash-
|
|
43
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADInfeed-4b8902ae.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-5193b48f.js';
|
|
44
46
|
import 'react-bootstrap/Button';
|
|
45
|
-
import { B as BlockContent } from './BlockContent-
|
|
47
|
+
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
46
48
|
import './index-c7e2ac95.js';
|
|
47
49
|
import './smoothscroll-0cd4c7a6.js';
|
|
48
50
|
import './GroupDeck.js';
|
|
49
51
|
import 'react-bootstrap';
|
|
50
52
|
import './iconBase-602d52fe.js';
|
|
51
|
-
import './index.esm-
|
|
52
|
-
import { g as getSerializers } from './index-
|
|
53
|
+
import './index.esm-3fdda599.js';
|
|
54
|
+
import { g as getSerializers } from './index-bec35c6c.js';
|
|
53
55
|
import './util-7700fc59.js';
|
|
54
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
55
57
|
import 'next/head';
|
|
56
58
|
import 'react-share';
|
|
57
59
|
import './SocialShare.js';
|
|
58
|
-
import './_object-to-array-
|
|
60
|
+
import './_object-to-array-7e804fce.js';
|
|
59
61
|
import 'react-bootstrap/Pagination';
|
|
60
62
|
import 'react-bootstrap/Figure';
|
|
61
63
|
import 'react-bootstrap/OverlayTrigger';
|
|
62
64
|
import 'react-bootstrap/Tooltip';
|
|
63
65
|
import 'react-bootstrap/Popover';
|
|
64
66
|
import MasterDeck from './MasterDeck.js';
|
|
65
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
66
|
-
import { _ as _objectWithoutPropertiesLoose
|
|
67
|
+
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-b68072f5.js';
|
|
67
69
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
68
70
|
import Link from 'next/link';
|
|
69
71
|
|
|
@@ -160,7 +162,7 @@ function useUncontrolled(props, config) {
|
|
|
160
162
|
var _ref = result,
|
|
161
163
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
162
164
|
propsValue = _ref[fieldName],
|
|
163
|
-
rest = _objectWithoutPropertiesLoose
|
|
165
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
164
166
|
|
|
165
167
|
var handlerName = config[fieldName];
|
|
166
168
|
|
|
@@ -168,17 +170,17 @@ function useUncontrolled(props, config) {
|
|
|
168
170
|
value = _useUncontrolledProp[0],
|
|
169
171
|
handler = _useUncontrolledProp[1];
|
|
170
172
|
|
|
171
|
-
return _extends
|
|
173
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
172
174
|
}, props);
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
function _inheritsLoose(subClass, superClass) {
|
|
176
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
177
179
|
subClass.prototype.constructor = subClass;
|
|
178
|
-
subClass
|
|
180
|
+
_setPrototypeOf(subClass, superClass);
|
|
179
181
|
}
|
|
180
182
|
|
|
181
|
-
var ThemeContext =
|
|
183
|
+
var ThemeContext = React.createContext({});
|
|
182
184
|
var Consumer = ThemeContext.Consumer,
|
|
183
185
|
Provider = ThemeContext.Provider;
|
|
184
186
|
|
|
@@ -187,7 +189,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
187
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React.createContext(null);
|
|
191
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
192
194
|
if (href === void 0) {
|
|
193
195
|
href = null;
|
|
@@ -197,7 +199,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
197
199
|
return href || null;
|
|
198
200
|
};
|
|
199
201
|
|
|
200
|
-
var context =
|
|
202
|
+
var context = React.createContext(null);
|
|
201
203
|
context.displayName = 'AccordionContext';
|
|
202
204
|
|
|
203
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -213,13 +215,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
213
215
|
if (onClick) onClick(e);
|
|
214
216
|
};
|
|
215
217
|
}
|
|
216
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
217
219
|
var _ref$as = _ref.as,
|
|
218
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
219
221
|
children = _ref.children,
|
|
220
222
|
eventKey = _ref.eventKey,
|
|
221
223
|
onClick = _ref.onClick,
|
|
222
|
-
props = _objectWithoutPropertiesLoose
|
|
224
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
223
225
|
|
|
224
226
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
225
227
|
|
|
@@ -227,7 +229,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
227
229
|
props.type = 'button';
|
|
228
230
|
}
|
|
229
231
|
|
|
230
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
231
233
|
ref: ref,
|
|
232
234
|
onClick: accordionOnClick
|
|
233
235
|
}, props), children);
|
|
@@ -424,7 +426,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
424
426
|
exitActive: PropTypes.string
|
|
425
427
|
})]) : null;
|
|
426
428
|
|
|
427
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React.createContext(null);
|
|
428
430
|
|
|
429
431
|
var UNMOUNTED = 'unmounted';
|
|
430
432
|
var EXITED = 'exited';
|
|
@@ -809,19 +811,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
809
811
|
_onExiting = _this$props.onExiting,
|
|
810
812
|
_onExited = _this$props.onExited,
|
|
811
813
|
_nodeRef = _this$props.nodeRef,
|
|
812
|
-
childProps = _objectWithoutPropertiesLoose
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
813
815
|
|
|
814
816
|
return (
|
|
815
817
|
/*#__PURE__*/
|
|
816
818
|
// allows for nested Transitions
|
|
817
|
-
|
|
819
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
818
820
|
value: null
|
|
819
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
820
822
|
);
|
|
821
823
|
};
|
|
822
824
|
|
|
823
825
|
return Transition;
|
|
824
|
-
}(
|
|
826
|
+
}(React.Component);
|
|
825
827
|
|
|
826
828
|
Transition.contextType = TransitionGroupContext;
|
|
827
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1097,7 +1099,7 @@ var defaultProps = {
|
|
|
1097
1099
|
appear: false,
|
|
1098
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1099
1101
|
};
|
|
1100
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1101
1103
|
var onEnter = _ref.onEnter,
|
|
1102
1104
|
onEntering = _ref.onEntering,
|
|
1103
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1109,7 +1111,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1109
1111
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1110
1112
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1111
1113
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1112
|
-
props = _objectWithoutPropertiesLoose
|
|
1114
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
1115
|
|
|
1114
1116
|
/* Compute dimension */
|
|
1115
1117
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1144,8 +1146,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1144
1146
|
elem.style[computedDimension] = null;
|
|
1145
1147
|
}, onExiting);
|
|
1146
1148
|
}, [computedDimension, onExiting]);
|
|
1147
|
-
return /*#__PURE__*/
|
|
1148
|
-
, _extends
|
|
1149
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1150
|
+
, _extends({
|
|
1149
1151
|
ref: ref,
|
|
1150
1152
|
addEndListener: transitionEnd
|
|
1151
1153
|
}, props, {
|
|
@@ -1156,7 +1158,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1156
1158
|
onExit: handleExit,
|
|
1157
1159
|
onExiting: handleExiting
|
|
1158
1160
|
}), function (state, innerProps) {
|
|
1159
|
-
return
|
|
1161
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1160
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1161
1163
|
}));
|
|
1162
1164
|
});
|
|
@@ -1165,24 +1167,24 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1165
1167
|
// @ts-ignore
|
|
1166
1168
|
Collapse.defaultProps = defaultProps;
|
|
1167
1169
|
|
|
1168
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1169
1171
|
var children = _ref.children,
|
|
1170
1172
|
eventKey = _ref.eventKey,
|
|
1171
|
-
props = _objectWithoutPropertiesLoose
|
|
1173
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1172
1174
|
|
|
1173
1175
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1174
1176
|
// from collapsing the accordion when clicked.
|
|
1175
1177
|
|
|
1176
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1177
1179
|
value: null
|
|
1178
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1179
1181
|
ref: ref,
|
|
1180
1182
|
in: contextEventKey === eventKey
|
|
1181
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1182
1184
|
});
|
|
1183
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1184
1186
|
|
|
1185
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1186
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1187
1189
|
activeKey: 'onSelect'
|
|
1188
1190
|
}),
|
|
@@ -1193,14 +1195,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1193
1195
|
children = _useUncontrolled.children,
|
|
1194
1196
|
className = _useUncontrolled.className,
|
|
1195
1197
|
onSelect = _useUncontrolled.onSelect,
|
|
1196
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1198
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
1199
|
|
|
1198
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1199
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1200
1202
|
value: activeKey || null
|
|
1201
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1202
1204
|
value: onSelect || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1204
1206
|
ref: ref
|
|
1205
1207
|
}, controlledProps, {
|
|
1206
1208
|
className: finalClassName
|
|
@@ -1244,22 +1246,22 @@ var defaultProps$1 = {
|
|
|
1244
1246
|
appear: false
|
|
1245
1247
|
};
|
|
1246
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1247
|
-
var Fade =
|
|
1249
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1248
1250
|
var className = _ref.className,
|
|
1249
1251
|
children = _ref.children,
|
|
1250
|
-
props = _objectWithoutPropertiesLoose
|
|
1252
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1251
1253
|
|
|
1252
1254
|
var handleEnter = useCallback(function (node) {
|
|
1253
1255
|
triggerBrowserReflow(node);
|
|
1254
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1255
1257
|
}, [props]);
|
|
1256
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1257
1259
|
ref: ref,
|
|
1258
1260
|
addEndListener: transitionEnd
|
|
1259
1261
|
}, props, {
|
|
1260
1262
|
onEnter: handleEnter
|
|
1261
1263
|
}), function (status, innerProps) {
|
|
1262
|
-
return
|
|
1264
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1263
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1264
1266
|
}));
|
|
1265
1267
|
});
|
|
@@ -1274,20 +1276,20 @@ var propTypes = {
|
|
|
1274
1276
|
var defaultProps$2 = {
|
|
1275
1277
|
label: 'Close'
|
|
1276
1278
|
};
|
|
1277
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1278
1280
|
var label = _ref.label,
|
|
1279
1281
|
onClick = _ref.onClick,
|
|
1280
1282
|
className = _ref.className,
|
|
1281
|
-
props = _objectWithoutPropertiesLoose
|
|
1283
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1282
1284
|
|
|
1283
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1284
1286
|
ref: ref,
|
|
1285
1287
|
type: "button",
|
|
1286
1288
|
className: classnames('close', className),
|
|
1287
1289
|
onClick: onClick
|
|
1288
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1289
1291
|
"aria-hidden": "true"
|
|
1290
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1291
1293
|
className: "sr-only"
|
|
1292
1294
|
}, label));
|
|
1293
1295
|
});
|
|
@@ -1296,8 +1298,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1296
1298
|
CloseButton.defaultProps = defaultProps$2;
|
|
1297
1299
|
|
|
1298
1300
|
var divWithClassName = (function (className) {
|
|
1299
|
-
return
|
|
1300
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1301
1303
|
ref: ref,
|
|
1302
1304
|
className: classnames(p.className, className)
|
|
1303
1305
|
}));
|
|
@@ -1323,15 +1325,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1323
1325
|
Component = _ref.Component,
|
|
1324
1326
|
defaultProps = _ref.defaultProps;
|
|
1325
1327
|
|
|
1326
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1327
1329
|
var className = _ref2.className,
|
|
1328
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1329
1331
|
_ref2$as = _ref2.as,
|
|
1330
1332
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1331
|
-
props = _objectWithoutPropertiesLoose
|
|
1333
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
1334
|
|
|
1333
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1335
1337
|
ref: ref,
|
|
1336
1338
|
className: classnames(className, resolvedPrefix)
|
|
1337
1339
|
}, props));
|
|
@@ -1353,12 +1355,12 @@ function isTrivialHref(href) {
|
|
|
1353
1355
|
*/
|
|
1354
1356
|
|
|
1355
1357
|
|
|
1356
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1357
1359
|
var _ref$as = _ref.as,
|
|
1358
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1359
1361
|
disabled = _ref.disabled,
|
|
1360
1362
|
onKeyDown = _ref.onKeyDown,
|
|
1361
|
-
props = _objectWithoutPropertiesLoose
|
|
1363
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
1364
|
|
|
1363
1365
|
var handleClick = function handleClick(event) {
|
|
1364
1366
|
var href = props.href,
|
|
@@ -1397,7 +1399,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1397
1399
|
props['aria-disabled'] = true;
|
|
1398
1400
|
}
|
|
1399
1401
|
|
|
1400
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1401
1403
|
ref: ref
|
|
1402
1404
|
}, props, {
|
|
1403
1405
|
onClick: handleClick,
|
|
@@ -1419,7 +1421,7 @@ var defaultProps$3 = {
|
|
|
1419
1421
|
transition: Fade,
|
|
1420
1422
|
closeLabel: 'Close alert'
|
|
1421
1423
|
};
|
|
1422
|
-
var Alert =
|
|
1424
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1423
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1424
1426
|
show: 'onClose'
|
|
1425
1427
|
}),
|
|
@@ -1432,7 +1434,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1432
1434
|
onClose = _useUncontrolled.onClose,
|
|
1433
1435
|
dismissible = _useUncontrolled.dismissible,
|
|
1434
1436
|
transition = _useUncontrolled.transition,
|
|
1435
|
-
props = _objectWithoutPropertiesLoose
|
|
1437
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
1438
|
|
|
1437
1439
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1438
1440
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1441,17 +1443,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1441
1443
|
}
|
|
1442
1444
|
});
|
|
1443
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1444
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1445
1447
|
role: "alert"
|
|
1446
1448
|
}, Transition ? props : undefined, {
|
|
1447
1449
|
ref: ref,
|
|
1448
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1449
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1450
1452
|
onClick: handleClose,
|
|
1451
1453
|
label: closeLabel
|
|
1452
1454
|
}), children);
|
|
1453
1455
|
if (!Transition) return show ? alert : null;
|
|
1454
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1455
1457
|
unmountOnExit: true
|
|
1456
1458
|
}, props, {
|
|
1457
1459
|
ref: undefined,
|
|
@@ -1466,17 +1468,17 @@ Alert.Heading = AlertHeading;
|
|
|
1466
1468
|
var defaultProps$4 = {
|
|
1467
1469
|
pill: false
|
|
1468
1470
|
};
|
|
1469
|
-
var Badge =
|
|
1471
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1470
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1471
1473
|
variant = _ref.variant,
|
|
1472
1474
|
pill = _ref.pill,
|
|
1473
1475
|
className = _ref.className,
|
|
1474
1476
|
_ref$as = _ref.as,
|
|
1475
1477
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1476
|
-
props = _objectWithoutPropertiesLoose
|
|
1478
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
1479
|
|
|
1478
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1479
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1480
1482
|
ref: ref
|
|
1481
1483
|
}, props, {
|
|
1482
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1489,7 +1491,7 @@ var defaultProps$5 = {
|
|
|
1489
1491
|
active: false,
|
|
1490
1492
|
linkProps: {}
|
|
1491
1493
|
};
|
|
1492
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1493
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1494
1496
|
active = _ref.active,
|
|
1495
1497
|
children = _ref.children,
|
|
@@ -1502,17 +1504,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1502
1504
|
href = _ref.href,
|
|
1503
1505
|
title = _ref.title,
|
|
1504
1506
|
target = _ref.target,
|
|
1505
|
-
props = _objectWithoutPropertiesLoose
|
|
1507
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
1508
|
|
|
1507
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1508
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1509
1511
|
ref: ref
|
|
1510
1512
|
}, props, {
|
|
1511
1513
|
className: classnames(prefix, className, {
|
|
1512
1514
|
active: active
|
|
1513
1515
|
}),
|
|
1514
1516
|
"aria-current": active ? 'page' : undefined
|
|
1515
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1516
1518
|
href: href,
|
|
1517
1519
|
title: title,
|
|
1518
1520
|
target: target
|
|
@@ -1525,7 +1527,7 @@ var defaultProps$6 = {
|
|
|
1525
1527
|
label: 'breadcrumb',
|
|
1526
1528
|
listProps: {}
|
|
1527
1529
|
};
|
|
1528
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1529
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1530
1532
|
className = _ref.className,
|
|
1531
1533
|
listProps = _ref.listProps,
|
|
@@ -1533,14 +1535,14 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1533
1535
|
label = _ref.label,
|
|
1534
1536
|
_ref$as = _ref.as,
|
|
1535
1537
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1536
|
-
props = _objectWithoutPropertiesLoose
|
|
1538
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
1539
|
|
|
1538
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1539
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1540
1542
|
"aria-label": label,
|
|
1541
1543
|
className: className,
|
|
1542
1544
|
ref: ref
|
|
1543
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1544
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1545
1547
|
}), children));
|
|
1546
1548
|
});
|
|
@@ -1553,7 +1555,7 @@ var defaultProps$7 = {
|
|
|
1553
1555
|
active: false,
|
|
1554
1556
|
disabled: false
|
|
1555
1557
|
};
|
|
1556
|
-
var Button =
|
|
1558
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1557
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1558
1560
|
variant = _ref.variant,
|
|
1559
1561
|
size = _ref.size,
|
|
@@ -1562,13 +1564,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1562
1564
|
block = _ref.block,
|
|
1563
1565
|
type = _ref.type,
|
|
1564
1566
|
as = _ref.as,
|
|
1565
|
-
props = _objectWithoutPropertiesLoose
|
|
1567
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
1568
|
|
|
1567
1569
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1568
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1569
1571
|
|
|
1570
1572
|
if (props.href) {
|
|
1571
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1572
1574
|
as: as,
|
|
1573
1575
|
ref: ref,
|
|
1574
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1586,7 +1588,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1586
1588
|
}
|
|
1587
1589
|
|
|
1588
1590
|
var Component = as || 'button';
|
|
1589
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1590
1592
|
className: classes
|
|
1591
1593
|
}));
|
|
1592
1594
|
});
|
|
@@ -1598,7 +1600,7 @@ var defaultProps$8 = {
|
|
|
1598
1600
|
toggle: false,
|
|
1599
1601
|
role: 'group'
|
|
1600
1602
|
};
|
|
1601
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1602
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1603
1605
|
size = _ref.size,
|
|
1604
1606
|
toggle = _ref.toggle,
|
|
@@ -1606,12 +1608,12 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1606
1608
|
className = _ref.className,
|
|
1607
1609
|
_ref$as = _ref.as,
|
|
1608
1610
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1609
|
-
rest = _objectWithoutPropertiesLoose
|
|
1611
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
1612
|
|
|
1611
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1612
1614
|
var baseClass = prefix;
|
|
1613
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1614
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1615
1617
|
ref: ref,
|
|
1616
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1617
1619
|
}));
|
|
@@ -1622,13 +1624,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1622
1624
|
var defaultProps$9 = {
|
|
1623
1625
|
role: 'toolbar'
|
|
1624
1626
|
};
|
|
1625
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1626
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1627
1629
|
className = _ref.className,
|
|
1628
|
-
props = _objectWithoutPropertiesLoose
|
|
1630
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1629
1631
|
|
|
1630
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1631
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1632
1634
|
ref: ref,
|
|
1633
1635
|
className: classnames(className, prefix)
|
|
1634
1636
|
}));
|
|
@@ -1636,23 +1638,23 @@ var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
|
1636
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1637
1639
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1638
1640
|
|
|
1639
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React.createContext(null);
|
|
1640
1642
|
context$1.displayName = 'CardContext';
|
|
1641
1643
|
|
|
1642
1644
|
var defaultProps$a = {
|
|
1643
1645
|
variant: null
|
|
1644
1646
|
};
|
|
1645
|
-
var CardImg =
|
|
1647
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1646
1648
|
function (_ref, ref) {
|
|
1647
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1648
1650
|
className = _ref.className,
|
|
1649
1651
|
variant = _ref.variant,
|
|
1650
1652
|
_ref$as = _ref.as,
|
|
1651
1653
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1652
|
-
props = _objectWithoutPropertiesLoose
|
|
1654
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
1655
|
|
|
1654
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1655
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1656
1658
|
ref: ref,
|
|
1657
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1658
1660
|
}, props));
|
|
@@ -1681,7 +1683,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1681
1683
|
var defaultProps$b = {
|
|
1682
1684
|
body: false
|
|
1683
1685
|
};
|
|
1684
|
-
var Card =
|
|
1686
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1685
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1686
1688
|
className = _ref.className,
|
|
1687
1689
|
bg = _ref.bg,
|
|
@@ -1691,7 +1693,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1691
1693
|
children = _ref.children,
|
|
1692
1694
|
_ref$as = _ref.as,
|
|
1693
1695
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1694
|
-
props = _objectWithoutPropertiesLoose
|
|
1696
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
1697
|
|
|
1696
1698
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1697
1699
|
var cardContext = useMemo(function () {
|
|
@@ -1699,16 +1701,16 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1699
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1700
1702
|
};
|
|
1701
1703
|
}, [prefix]);
|
|
1702
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1703
1705
|
value: cardContext
|
|
1704
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1705
1707
|
ref: ref
|
|
1706
1708
|
}, props, {
|
|
1707
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1708
1710
|
}), body ?
|
|
1709
1711
|
/*#__PURE__*/
|
|
1710
1712
|
// @ts-ignore
|
|
1711
|
-
|
|
1713
|
+
React.createElement(CardBody, null, children) : children));
|
|
1712
1714
|
});
|
|
1713
1715
|
Card.displayName = 'Card';
|
|
1714
1716
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1898,16 +1900,16 @@ function useTimeout() {
|
|
|
1898
1900
|
|
|
1899
1901
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1900
1902
|
|
|
1901
|
-
var CarouselItem =
|
|
1903
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1902
1904
|
var _ref$as = _ref.as,
|
|
1903
1905
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1904
1906
|
bsPrefix = _ref.bsPrefix,
|
|
1905
1907
|
children = _ref.children,
|
|
1906
1908
|
className = _ref.className,
|
|
1907
|
-
props = _objectWithoutPropertiesLoose
|
|
1909
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
1910
|
|
|
1909
1911
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1910
|
-
return /*#__PURE__*/
|
|
1912
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1911
1913
|
ref: ref
|
|
1912
1914
|
}, props, {
|
|
1913
1915
|
className: finalClassName
|
|
@@ -1926,8 +1928,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1926
1928
|
|
|
1927
1929
|
function map(children, func) {
|
|
1928
1930
|
var index = 0;
|
|
1929
|
-
return
|
|
1930
|
-
return
|
|
1931
|
+
return React.Children.map(children, function (child) {
|
|
1932
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1931
1933
|
});
|
|
1932
1934
|
}
|
|
1933
1935
|
/**
|
|
@@ -1940,8 +1942,8 @@ function map(children, func) {
|
|
|
1940
1942
|
|
|
1941
1943
|
function forEach(children, func) {
|
|
1942
1944
|
var index = 0;
|
|
1943
|
-
|
|
1944
|
-
if (
|
|
1945
|
+
React.Children.forEach(children, function (child) {
|
|
1946
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1945
1947
|
});
|
|
1946
1948
|
}
|
|
1947
1949
|
|
|
@@ -2059,12 +2061,12 @@ var defaultProps$c = {
|
|
|
2059
2061
|
pause: 'hover',
|
|
2060
2062
|
wrap: true,
|
|
2061
2063
|
touch: true,
|
|
2062
|
-
prevIcon: /*#__PURE__*/
|
|
2064
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2063
2065
|
"aria-hidden": "true",
|
|
2064
2066
|
className: "carousel-control-prev-icon"
|
|
2065
2067
|
}),
|
|
2066
2068
|
prevLabel: 'Previous',
|
|
2067
|
-
nextIcon: /*#__PURE__*/
|
|
2069
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2068
2070
|
"aria-hidden": "true",
|
|
2069
2071
|
className: "carousel-control-next-icon"
|
|
2070
2072
|
}),
|
|
@@ -2112,7 +2114,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2112
2114
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2113
2115
|
className = _useUncontrolled.className,
|
|
2114
2116
|
children = _useUncontrolled.children,
|
|
2115
|
-
props = _objectWithoutPropertiesLoose
|
|
2117
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2116
2118
|
|
|
2117
2119
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2118
2120
|
var nextDirectionRef = useRef(null);
|
|
@@ -2369,7 +2371,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2369
2371
|
};
|
|
2370
2372
|
});
|
|
2371
2373
|
}, [indicators, numChildren, onSelect]);
|
|
2372
|
-
return /*#__PURE__*/
|
|
2374
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2373
2375
|
ref: elementRef
|
|
2374
2376
|
}, props, {
|
|
2375
2377
|
onKeyDown: handleKeyDown,
|
|
@@ -2379,44 +2381,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2379
2381
|
onTouchMove: handleTouchMove,
|
|
2380
2382
|
onTouchEnd: handleTouchEnd,
|
|
2381
2383
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2382
|
-
}), indicators && /*#__PURE__*/
|
|
2384
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2383
2385
|
className: prefix + "-indicators"
|
|
2384
2386
|
}, map(children, function (_child, index) {
|
|
2385
|
-
return /*#__PURE__*/
|
|
2387
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2386
2388
|
key: index,
|
|
2387
2389
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2388
2390
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2389
2391
|
});
|
|
2390
|
-
})), /*#__PURE__*/
|
|
2392
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2391
2393
|
className: prefix + "-inner"
|
|
2392
2394
|
}, map(children, function (child, index) {
|
|
2393
2395
|
var isActive = index === renderedActiveIndex;
|
|
2394
|
-
return slide ? /*#__PURE__*/
|
|
2396
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2395
2397
|
in: isActive,
|
|
2396
2398
|
onEnter: isActive ? handleEnter : undefined,
|
|
2397
2399
|
onEntered: isActive ? handleEntered : undefined,
|
|
2398
2400
|
addEndListener: transitionEnd
|
|
2399
2401
|
}, function (status) {
|
|
2400
|
-
return
|
|
2402
|
+
return React.cloneElement(child, {
|
|
2401
2403
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2402
2404
|
});
|
|
2403
|
-
}) :
|
|
2405
|
+
}) : React.cloneElement(child, {
|
|
2404
2406
|
className: classnames(child.props.className, isActive && 'active')
|
|
2405
2407
|
});
|
|
2406
|
-
})), controls && /*#__PURE__*/
|
|
2408
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2407
2409
|
className: prefix + "-control-prev",
|
|
2408
2410
|
onClick: prev
|
|
2409
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2411
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2410
2412
|
className: "sr-only"
|
|
2411
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2413
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2412
2414
|
className: prefix + "-control-next",
|
|
2413
2415
|
onClick: next
|
|
2414
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2416
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2415
2417
|
className: "sr-only"
|
|
2416
2418
|
}, nextLabel))));
|
|
2417
2419
|
}
|
|
2418
2420
|
|
|
2419
|
-
var Carousel =
|
|
2421
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2420
2422
|
Carousel.displayName = 'Carousel';
|
|
2421
2423
|
Carousel.propTypes = propTypes$1;
|
|
2422
2424
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2424,13 +2426,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2424
2426
|
Carousel.Item = CarouselItem;
|
|
2425
2427
|
|
|
2426
2428
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2427
|
-
var Col =
|
|
2429
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2428
2430
|
function (_ref, ref) {
|
|
2429
2431
|
var bsPrefix = _ref.bsPrefix,
|
|
2430
2432
|
className = _ref.className,
|
|
2431
2433
|
_ref$as = _ref.as,
|
|
2432
2434
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2433
|
-
props = _objectWithoutPropertiesLoose
|
|
2435
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
2436
|
|
|
2435
2437
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2436
2438
|
var spans = [];
|
|
@@ -2461,7 +2463,7 @@ function (_ref, ref) {
|
|
|
2461
2463
|
spans.push(prefix); // plain 'col'
|
|
2462
2464
|
}
|
|
2463
2465
|
|
|
2464
|
-
return /*#__PURE__*/
|
|
2466
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2465
2467
|
ref: ref,
|
|
2466
2468
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2467
2469
|
}));
|
|
@@ -2570,40 +2572,7 @@ function useForceUpdate() {
|
|
|
2570
2572
|
return dispatch;
|
|
2571
2573
|
}
|
|
2572
2574
|
|
|
2573
|
-
var DropdownContext = /*#__PURE__*/
|
|
2574
|
-
|
|
2575
|
-
function _extends() {
|
|
2576
|
-
_extends = Object.assign || function (target) {
|
|
2577
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2578
|
-
var source = arguments[i];
|
|
2579
|
-
|
|
2580
|
-
for (var key in source) {
|
|
2581
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2582
|
-
target[key] = source[key];
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
}
|
|
2586
|
-
|
|
2587
|
-
return target;
|
|
2588
|
-
};
|
|
2589
|
-
|
|
2590
|
-
return _extends.apply(this, arguments);
|
|
2591
|
-
}
|
|
2592
|
-
|
|
2593
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2594
|
-
if (source == null) return {};
|
|
2595
|
-
var target = {};
|
|
2596
|
-
var sourceKeys = Object.keys(source);
|
|
2597
|
-
var key, i;
|
|
2598
|
-
|
|
2599
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2600
|
-
key = sourceKeys[i];
|
|
2601
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2602
|
-
target[key] = source[key];
|
|
2603
|
-
}
|
|
2604
|
-
|
|
2605
|
-
return target;
|
|
2606
|
-
}
|
|
2575
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2607
2576
|
|
|
2608
2577
|
function useSafeState(state) {
|
|
2609
2578
|
var isMounted = useMounted();
|
|
@@ -2649,21 +2618,50 @@ function getBasePlacement(placement) {
|
|
|
2649
2618
|
return placement.split('-')[0];
|
|
2650
2619
|
}
|
|
2651
2620
|
|
|
2652
|
-
|
|
2621
|
+
function getBoundingClientRect(element) {
|
|
2622
|
+
var rect = element.getBoundingClientRect();
|
|
2623
|
+
return {
|
|
2624
|
+
width: rect.width,
|
|
2625
|
+
height: rect.height,
|
|
2626
|
+
top: rect.top,
|
|
2627
|
+
right: rect.right,
|
|
2628
|
+
bottom: rect.bottom,
|
|
2629
|
+
left: rect.left,
|
|
2630
|
+
x: rect.left,
|
|
2631
|
+
y: rect.top
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2653
2635
|
// means it doesn't take into account transforms.
|
|
2636
|
+
|
|
2654
2637
|
function getLayoutRect(element) {
|
|
2638
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2639
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2640
|
+
|
|
2641
|
+
var width = element.offsetWidth;
|
|
2642
|
+
var height = element.offsetHeight;
|
|
2643
|
+
|
|
2644
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2645
|
+
width = clientRect.width;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2649
|
+
height = clientRect.height;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2655
2652
|
return {
|
|
2656
2653
|
x: element.offsetLeft,
|
|
2657
2654
|
y: element.offsetTop,
|
|
2658
|
-
width:
|
|
2659
|
-
height:
|
|
2655
|
+
width: width,
|
|
2656
|
+
height: height
|
|
2660
2657
|
};
|
|
2661
2658
|
}
|
|
2662
2659
|
|
|
2663
|
-
/*:: import type { Window } from '../types'; */
|
|
2664
|
-
|
|
2665
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2666
2660
|
function getWindow(node) {
|
|
2661
|
+
if (node == null) {
|
|
2662
|
+
return window;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2667
2665
|
if (node.toString() !== '[object Window]') {
|
|
2668
2666
|
var ownerDocument = node.ownerDocument;
|
|
2669
2667
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2672,26 +2670,22 @@ function getWindow(node) {
|
|
|
2672
2670
|
return node;
|
|
2673
2671
|
}
|
|
2674
2672
|
|
|
2675
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2676
|
-
Element); */
|
|
2677
|
-
|
|
2678
2673
|
function isElement(node) {
|
|
2679
2674
|
var OwnElement = getWindow(node).Element;
|
|
2680
2675
|
return node instanceof OwnElement || node instanceof Element;
|
|
2681
2676
|
}
|
|
2682
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2683
|
-
HTMLElement); */
|
|
2684
|
-
|
|
2685
2677
|
|
|
2686
2678
|
function isHTMLElement(node) {
|
|
2687
2679
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2688
2680
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2689
2681
|
}
|
|
2690
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2691
|
-
ShadowRoot); */
|
|
2692
|
-
|
|
2693
2682
|
|
|
2694
2683
|
function isShadowRoot(node) {
|
|
2684
|
+
// IE 11 has no ShadowRoot
|
|
2685
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
+
return false;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2695
2689
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2696
2690
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2697
2691
|
}
|
|
@@ -2746,9 +2740,8 @@ function getParentNode(element) {
|
|
|
2746
2740
|
// $FlowFixMe[incompatible-return]
|
|
2747
2741
|
// $FlowFixMe[prop-missing]
|
|
2748
2742
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2749
|
-
element.parentNode || // DOM Element detected
|
|
2750
|
-
|
|
2751
|
-
element.host || // ShadowRoot detected
|
|
2743
|
+
element.parentNode || ( // DOM Element detected
|
|
2744
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2752
2745
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2753
2746
|
getDocumentElement(element) // fallback
|
|
2754
2747
|
|
|
@@ -2761,29 +2754,21 @@ function getTrueOffsetParent(element) {
|
|
|
2761
2754
|
return null;
|
|
2762
2755
|
}
|
|
2763
2756
|
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
if (offsetParent) {
|
|
2767
|
-
var html = getDocumentElement(offsetParent);
|
|
2768
|
-
|
|
2769
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2770
|
-
return html;
|
|
2771
|
-
}
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
return offsetParent;
|
|
2757
|
+
return element.offsetParent;
|
|
2775
2758
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2776
2759
|
// return the containing block
|
|
2777
2760
|
|
|
2778
2761
|
|
|
2779
2762
|
function getContainingBlock(element) {
|
|
2763
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2780
2764
|
var currentNode = getParentNode(element);
|
|
2781
2765
|
|
|
2782
2766
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2783
2767
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2784
2768
|
// create a containing block.
|
|
2769
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2785
2770
|
|
|
2786
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2771
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2787
2772
|
return currentNode;
|
|
2788
2773
|
} else {
|
|
2789
2774
|
currentNode = currentNode.parentNode;
|
|
@@ -2803,7 +2788,7 @@ function getOffsetParent(element) {
|
|
|
2803
2788
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2804
2789
|
}
|
|
2805
2790
|
|
|
2806
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2791
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static')) {
|
|
2807
2792
|
return window;
|
|
2808
2793
|
}
|
|
2809
2794
|
|
|
@@ -2814,8 +2799,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2814
2799
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2815
2800
|
}
|
|
2816
2801
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2802
|
+
var max = Math.max;
|
|
2803
|
+
var min = Math.min;
|
|
2804
|
+
var round = Math.round;
|
|
2805
|
+
|
|
2806
|
+
function within(min$1, value, max$1) {
|
|
2807
|
+
return max(min$1, min(value, max$1));
|
|
2819
2808
|
}
|
|
2820
2809
|
|
|
2821
2810
|
function getFreshSideObject() {
|
|
@@ -2828,7 +2817,7 @@ function getFreshSideObject() {
|
|
|
2828
2817
|
}
|
|
2829
2818
|
|
|
2830
2819
|
function mergePaddingObject(paddingObject) {
|
|
2831
|
-
return Object.assign(
|
|
2820
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2832
2821
|
}
|
|
2833
2822
|
|
|
2834
2823
|
function expandToHashMap(value, keys) {
|
|
@@ -2838,11 +2827,19 @@ function expandToHashMap(value, keys) {
|
|
|
2838
2827
|
}, {});
|
|
2839
2828
|
}
|
|
2840
2829
|
|
|
2830
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2831
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2832
|
+
placement: state.placement
|
|
2833
|
+
})) : padding;
|
|
2834
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2841
2837
|
function arrow(_ref) {
|
|
2842
2838
|
var _state$modifiersData$;
|
|
2843
2839
|
|
|
2844
2840
|
var state = _ref.state,
|
|
2845
|
-
name = _ref.name
|
|
2841
|
+
name = _ref.name,
|
|
2842
|
+
options = _ref.options;
|
|
2846
2843
|
var arrowElement = state.elements.arrow;
|
|
2847
2844
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2848
2845
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2854,7 +2851,7 @@ function arrow(_ref) {
|
|
|
2854
2851
|
return;
|
|
2855
2852
|
}
|
|
2856
2853
|
|
|
2857
|
-
var paddingObject =
|
|
2854
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2858
2855
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2859
2856
|
var minProp = axis === 'y' ? top : left;
|
|
2860
2857
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2876,12 +2873,9 @@ function arrow(_ref) {
|
|
|
2876
2873
|
|
|
2877
2874
|
function effect(_ref2) {
|
|
2878
2875
|
var state = _ref2.state,
|
|
2879
|
-
options = _ref2.options
|
|
2880
|
-
name = _ref2.name;
|
|
2876
|
+
options = _ref2.options;
|
|
2881
2877
|
var _options$element = options.element,
|
|
2882
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2883
|
-
_options$padding = options.padding,
|
|
2884
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2878
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2885
2879
|
|
|
2886
2880
|
if (arrowElement == null) {
|
|
2887
2881
|
return;
|
|
@@ -2911,9 +2905,6 @@ function effect(_ref2) {
|
|
|
2911
2905
|
}
|
|
2912
2906
|
|
|
2913
2907
|
state.elements.arrow = arrowElement;
|
|
2914
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2915
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2916
|
-
};
|
|
2917
2908
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2918
2909
|
|
|
2919
2910
|
|
|
@@ -2942,8 +2933,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2942
2933
|
var win = window;
|
|
2943
2934
|
var dpr = win.devicePixelRatio || 1;
|
|
2944
2935
|
return {
|
|
2945
|
-
x:
|
|
2946
|
-
y:
|
|
2936
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2937
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2947
2938
|
};
|
|
2948
2939
|
}
|
|
2949
2940
|
|
|
@@ -2959,7 +2950,7 @@ function mapToStyles(_ref2) {
|
|
|
2959
2950
|
adaptive = _ref2.adaptive,
|
|
2960
2951
|
roundOffsets = _ref2.roundOffsets;
|
|
2961
2952
|
|
|
2962
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2953
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2963
2954
|
_ref3$x = _ref3.x,
|
|
2964
2955
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2965
2956
|
_ref3$y = _ref3.y,
|
|
@@ -2973,23 +2964,32 @@ function mapToStyles(_ref2) {
|
|
|
2973
2964
|
|
|
2974
2965
|
if (adaptive) {
|
|
2975
2966
|
var offsetParent = getOffsetParent(popper);
|
|
2967
|
+
var heightProp = 'clientHeight';
|
|
2968
|
+
var widthProp = 'clientWidth';
|
|
2976
2969
|
|
|
2977
2970
|
if (offsetParent === getWindow(popper)) {
|
|
2978
2971
|
offsetParent = getDocumentElement(popper);
|
|
2972
|
+
|
|
2973
|
+
if (getComputedStyle$2(offsetParent).position !== 'static') {
|
|
2974
|
+
heightProp = 'scrollHeight';
|
|
2975
|
+
widthProp = 'scrollWidth';
|
|
2976
|
+
}
|
|
2979
2977
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2980
2978
|
|
|
2981
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2982
2979
|
|
|
2980
|
+
offsetParent = offsetParent;
|
|
2983
2981
|
|
|
2984
2982
|
if (placement === top) {
|
|
2985
|
-
sideY = bottom;
|
|
2986
|
-
|
|
2983
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2984
|
+
|
|
2985
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2987
2986
|
y *= gpuAcceleration ? 1 : -1;
|
|
2988
2987
|
}
|
|
2989
2988
|
|
|
2990
2989
|
if (placement === left) {
|
|
2991
|
-
sideX = right;
|
|
2992
|
-
|
|
2990
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
2991
|
+
|
|
2992
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2993
2993
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
2994
|
}
|
|
2995
2995
|
}
|
|
@@ -3001,10 +3001,10 @@ function mapToStyles(_ref2) {
|
|
|
3001
3001
|
if (gpuAcceleration) {
|
|
3002
3002
|
var _Object$assign;
|
|
3003
3003
|
|
|
3004
|
-
return Object.assign(
|
|
3004
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3005
3005
|
}
|
|
3006
3006
|
|
|
3007
|
-
return Object.assign(
|
|
3007
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3008
3008
|
}
|
|
3009
3009
|
|
|
3010
3010
|
function computeStyles(_ref4) {
|
|
@@ -3035,7 +3035,7 @@ function computeStyles(_ref4) {
|
|
|
3035
3035
|
};
|
|
3036
3036
|
|
|
3037
3037
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign(
|
|
3038
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3039
3039
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
3040
|
position: state.options.strategy,
|
|
3041
3041
|
adaptive: adaptive,
|
|
@@ -3044,7 +3044,7 @@ function computeStyles(_ref4) {
|
|
|
3044
3044
|
}
|
|
3045
3045
|
|
|
3046
3046
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign(
|
|
3047
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3048
3048
|
offsets: state.modifiersData.arrow,
|
|
3049
3049
|
position: 'absolute',
|
|
3050
3050
|
adaptive: false,
|
|
@@ -3052,7 +3052,7 @@ function computeStyles(_ref4) {
|
|
|
3052
3052
|
})));
|
|
3053
3053
|
}
|
|
3054
3054
|
|
|
3055
|
-
state.attributes.popper = Object.assign(
|
|
3055
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3056
3056
|
'data-popper-placement': state.placement
|
|
3057
3057
|
});
|
|
3058
3058
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3136,20 +3136,6 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3136
3136
|
});
|
|
3137
3137
|
}
|
|
3138
3138
|
|
|
3139
|
-
function getBoundingClientRect(element) {
|
|
3140
|
-
var rect = element.getBoundingClientRect();
|
|
3141
|
-
return {
|
|
3142
|
-
width: rect.width,
|
|
3143
|
-
height: rect.height,
|
|
3144
|
-
top: rect.top,
|
|
3145
|
-
right: rect.right,
|
|
3146
|
-
bottom: rect.bottom,
|
|
3147
|
-
left: rect.left,
|
|
3148
|
-
x: rect.left,
|
|
3149
|
-
y: rect.top
|
|
3150
|
-
};
|
|
3151
|
-
}
|
|
3152
|
-
|
|
3153
3139
|
function getWindowScroll(node) {
|
|
3154
3140
|
var win = getWindow(node);
|
|
3155
3141
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3212,16 +3198,18 @@ function getViewportRect(element) {
|
|
|
3212
3198
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3213
3199
|
|
|
3214
3200
|
function getDocumentRect(element) {
|
|
3201
|
+
var _element$ownerDocumen;
|
|
3202
|
+
|
|
3215
3203
|
var html = getDocumentElement(element);
|
|
3216
3204
|
var winScroll = getWindowScroll(element);
|
|
3217
|
-
var body = element.ownerDocument.body;
|
|
3218
|
-
var width =
|
|
3219
|
-
var height =
|
|
3205
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3206
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3207
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3220
3208
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3221
3209
|
var y = -winScroll.scrollTop;
|
|
3222
3210
|
|
|
3223
3211
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3224
|
-
x +=
|
|
3212
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3225
3213
|
}
|
|
3226
3214
|
|
|
3227
3215
|
return {
|
|
@@ -3263,12 +3251,14 @@ reference element's position.
|
|
|
3263
3251
|
*/
|
|
3264
3252
|
|
|
3265
3253
|
function listScrollParents(element, list) {
|
|
3254
|
+
var _element$ownerDocumen;
|
|
3255
|
+
|
|
3266
3256
|
if (list === void 0) {
|
|
3267
3257
|
list = [];
|
|
3268
3258
|
}
|
|
3269
3259
|
|
|
3270
3260
|
var scrollParent = getScrollParent(element);
|
|
3271
|
-
var isBody =
|
|
3261
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3272
3262
|
var win = getWindow(scrollParent);
|
|
3273
3263
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3274
3264
|
var updatedList = list.concat(target);
|
|
@@ -3277,7 +3267,7 @@ function listScrollParents(element, list) {
|
|
|
3277
3267
|
}
|
|
3278
3268
|
|
|
3279
3269
|
function rectToClientRect(rect) {
|
|
3280
|
-
return Object.assign(
|
|
3270
|
+
return Object.assign({}, rect, {
|
|
3281
3271
|
left: rect.x,
|
|
3282
3272
|
top: rect.y,
|
|
3283
3273
|
right: rect.x + rect.width,
|
|
@@ -3328,10 +3318,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3328
3318
|
var firstClippingParent = clippingParents[0];
|
|
3329
3319
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3330
3320
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3331
|
-
accRect.top =
|
|
3332
|
-
accRect.right =
|
|
3333
|
-
accRect.bottom =
|
|
3334
|
-
accRect.left =
|
|
3321
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3322
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3323
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3324
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3335
3325
|
return accRect;
|
|
3336
3326
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3337
3327
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3441,7 +3431,7 @@ function detectOverflow(state, options) {
|
|
|
3441
3431
|
strategy: 'absolute',
|
|
3442
3432
|
placement: placement
|
|
3443
3433
|
});
|
|
3444
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3434
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3445
3435
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3446
3436
|
// 0 or negative = within the clipping rect
|
|
3447
3437
|
|
|
@@ -3465,9 +3455,6 @@ function detectOverflow(state, options) {
|
|
|
3465
3455
|
return overflowOffsets;
|
|
3466
3456
|
}
|
|
3467
3457
|
|
|
3468
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3469
|
-
|
|
3470
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3471
3458
|
function computeAutoPlacement(state, options) {
|
|
3472
3459
|
if (options === void 0) {
|
|
3473
3460
|
options = {};
|
|
@@ -3696,7 +3683,7 @@ function hide(_ref) {
|
|
|
3696
3683
|
isReferenceHidden: isReferenceHidden,
|
|
3697
3684
|
hasPopperEscaped: hasPopperEscaped
|
|
3698
3685
|
};
|
|
3699
|
-
state.attributes.popper = Object.assign(
|
|
3686
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3700
3687
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3701
3688
|
'data-popper-escaped': hasPopperEscaped
|
|
3702
3689
|
});
|
|
@@ -3715,7 +3702,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3715
3702
|
var basePlacement = getBasePlacement(placement);
|
|
3716
3703
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3717
3704
|
|
|
3718
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3705
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3719
3706
|
placement: placement
|
|
3720
3707
|
})) : offset,
|
|
3721
3708
|
skidding = _ref[0],
|
|
@@ -3821,7 +3808,7 @@ function preventOverflow(_ref) {
|
|
|
3821
3808
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3822
3809
|
var referenceRect = state.rects.reference;
|
|
3823
3810
|
var popperRect = state.rects.popper;
|
|
3824
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3811
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3825
3812
|
placement: state.placement
|
|
3826
3813
|
})) : tetherOffset;
|
|
3827
3814
|
var data = {
|
|
@@ -3833,13 +3820,13 @@ function preventOverflow(_ref) {
|
|
|
3833
3820
|
return;
|
|
3834
3821
|
}
|
|
3835
3822
|
|
|
3836
|
-
if (checkMainAxis) {
|
|
3823
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3837
3824
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3838
3825
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3839
3826
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3840
3827
|
var offset = popperOffsets[mainAxis];
|
|
3841
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3842
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3828
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3829
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3843
3830
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3844
3831
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3845
3832
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3866,26 +3853,29 @@ function preventOverflow(_ref) {
|
|
|
3866
3853
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3867
3854
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3868
3855
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3869
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3870
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3871
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3872
|
-
}
|
|
3873
3856
|
|
|
3874
|
-
|
|
3875
|
-
|
|
3857
|
+
if (checkMainAxis) {
|
|
3858
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3859
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3860
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
if (checkAltAxis) {
|
|
3864
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3876
3865
|
|
|
3877
|
-
|
|
3866
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3878
3867
|
|
|
3879
|
-
|
|
3868
|
+
var _offset = popperOffsets[altAxis];
|
|
3880
3869
|
|
|
3881
|
-
|
|
3870
|
+
var _min = _offset + overflow[_mainSide];
|
|
3882
3871
|
|
|
3883
|
-
|
|
3872
|
+
var _max = _offset - overflow[_altSide];
|
|
3884
3873
|
|
|
3885
|
-
|
|
3874
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3886
3875
|
|
|
3887
|
-
|
|
3888
|
-
|
|
3876
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3877
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3878
|
+
}
|
|
3889
3879
|
}
|
|
3890
3880
|
|
|
3891
3881
|
state.modifiersData[name] = data;
|
|
@@ -4116,9 +4106,9 @@ function uniqueBy(arr, fn) {
|
|
|
4116
4106
|
function mergeByName(modifiers) {
|
|
4117
4107
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4118
4108
|
var existing = merged[current.name];
|
|
4119
|
-
merged[current.name] = existing ? Object.assign(
|
|
4120
|
-
options: Object.assign(
|
|
4121
|
-
data: Object.assign(
|
|
4109
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4110
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4111
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4122
4112
|
}) : current;
|
|
4123
4113
|
return merged;
|
|
4124
4114
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4164,7 +4154,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4164
4154
|
var state = {
|
|
4165
4155
|
placement: 'bottom',
|
|
4166
4156
|
orderedModifiers: [],
|
|
4167
|
-
options: Object.assign(
|
|
4157
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4168
4158
|
modifiersData: {},
|
|
4169
4159
|
elements: {
|
|
4170
4160
|
reference: reference,
|
|
@@ -4179,7 +4169,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4179
4169
|
state: state,
|
|
4180
4170
|
setOptions: function setOptions(options) {
|
|
4181
4171
|
cleanupModifierEffects();
|
|
4182
|
-
state.options = Object.assign(
|
|
4172
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4183
4173
|
state.scrollParents = {
|
|
4184
4174
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4185
4175
|
popper: listScrollParents(popper)
|
|
@@ -4967,7 +4957,7 @@ function DropdownMenu(_ref2) {
|
|
|
4967
4957
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4968
4958
|
|
|
4969
4959
|
var args = useDropdownMenu(options);
|
|
4970
|
-
return /*#__PURE__*/
|
|
4960
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4971
4961
|
}
|
|
4972
4962
|
|
|
4973
4963
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5034,7 +5024,7 @@ function DropdownToggle(_ref2) {
|
|
|
5034
5024
|
show = _useDropdownToggle$.show,
|
|
5035
5025
|
toggle = _useDropdownToggle$.toggle;
|
|
5036
5026
|
|
|
5037
|
-
return /*#__PURE__*/
|
|
5027
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5038
5028
|
show: show,
|
|
5039
5029
|
toggle: toggle,
|
|
5040
5030
|
props: props
|
|
@@ -5249,7 +5239,7 @@ function Dropdown(_ref) {
|
|
|
5249
5239
|
}
|
|
5250
5240
|
};
|
|
5251
5241
|
|
|
5252
|
-
return /*#__PURE__*/
|
|
5242
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5253
5243
|
value: context
|
|
5254
5244
|
}, children({
|
|
5255
5245
|
props: {
|
|
@@ -5263,14 +5253,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5263
5253
|
Dropdown.Menu = DropdownMenu;
|
|
5264
5254
|
Dropdown.Toggle = DropdownToggle;
|
|
5265
5255
|
|
|
5266
|
-
var NavContext =
|
|
5256
|
+
var NavContext = React.createContext(null);
|
|
5267
5257
|
NavContext.displayName = 'NavContext';
|
|
5268
5258
|
|
|
5269
5259
|
var defaultProps$e = {
|
|
5270
5260
|
as: SafeAnchor,
|
|
5271
5261
|
disabled: false
|
|
5272
5262
|
};
|
|
5273
|
-
var DropdownItem =
|
|
5263
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5274
5264
|
var bsPrefix = _ref.bsPrefix,
|
|
5275
5265
|
className = _ref.className,
|
|
5276
5266
|
children = _ref.children,
|
|
@@ -5281,7 +5271,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5281
5271
|
onSelect = _ref.onSelect,
|
|
5282
5272
|
propActive = _ref.active,
|
|
5283
5273
|
Component = _ref.as,
|
|
5284
|
-
props = _objectWithoutPropertiesLoose
|
|
5274
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5285
5275
|
|
|
5286
5276
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5287
5277
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5305,7 +5295,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5305
5295
|
/*#__PURE__*/
|
|
5306
5296
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5307
5297
|
// @ts-ignore
|
|
5308
|
-
|
|
5298
|
+
React.createElement(Component, _extends({}, props, {
|
|
5309
5299
|
ref: ref,
|
|
5310
5300
|
href: href,
|
|
5311
5301
|
disabled: disabled,
|
|
@@ -5354,7 +5344,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5354
5344
|
}, [refA, refB]);
|
|
5355
5345
|
}
|
|
5356
5346
|
|
|
5357
|
-
var context$2 =
|
|
5347
|
+
var context$2 = React.createContext(null);
|
|
5358
5348
|
context$2.displayName = 'NavbarContext';
|
|
5359
5349
|
|
|
5360
5350
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5482,7 +5472,7 @@ var defaultProps$f = {
|
|
|
5482
5472
|
flip: true
|
|
5483
5473
|
}; // TODO: remove this hack
|
|
5484
5474
|
|
|
5485
|
-
var DropdownMenu$1 =
|
|
5475
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5486
5476
|
var bsPrefix = _ref.bsPrefix,
|
|
5487
5477
|
className = _ref.className,
|
|
5488
5478
|
align = _ref.align,
|
|
@@ -5494,7 +5484,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5494
5484
|
_ref$as = _ref.as,
|
|
5495
5485
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5496
5486
|
popperConfig = _ref.popperConfig,
|
|
5497
|
-
props = _objectWithoutPropertiesLoose
|
|
5487
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5498
5488
|
|
|
5499
5489
|
var isNavbar = useContext(context$2);
|
|
5500
5490
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5530,7 +5520,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5530
5520
|
show: showProps,
|
|
5531
5521
|
alignEnd: alignRight,
|
|
5532
5522
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5533
|
-
popperConfig: _extends
|
|
5523
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5534
5524
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5535
5525
|
})
|
|
5536
5526
|
}),
|
|
@@ -5553,11 +5543,11 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5553
5543
|
if (placement) {
|
|
5554
5544
|
// we don't need the default popper style,
|
|
5555
5545
|
// menus are display: none when not shown.
|
|
5556
|
-
props.style = _extends
|
|
5546
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5557
5547
|
props['x-placement'] = placement;
|
|
5558
5548
|
}
|
|
5559
5549
|
|
|
5560
|
-
return /*#__PURE__*/
|
|
5550
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5561
5551
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5562
5552
|
}));
|
|
5563
5553
|
});
|
|
@@ -5591,14 +5581,14 @@ module.exports = exports['default'];
|
|
|
5591
5581
|
|
|
5592
5582
|
unwrapExports(isRequiredForA11y_1);
|
|
5593
5583
|
|
|
5594
|
-
var DropdownToggle$1 =
|
|
5584
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5595
5585
|
var bsPrefix = _ref.bsPrefix,
|
|
5596
5586
|
split = _ref.split,
|
|
5597
5587
|
className = _ref.className,
|
|
5598
5588
|
childBsPrefix = _ref.childBsPrefix,
|
|
5599
5589
|
_ref$as = _ref.as,
|
|
5600
5590
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5601
|
-
props = _objectWithoutPropertiesLoose
|
|
5591
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5602
5592
|
|
|
5603
5593
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5604
5594
|
|
|
@@ -5613,7 +5603,7 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5613
5603
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5614
5604
|
// underlying component, to allow it to render size and style variants.
|
|
5615
5605
|
|
|
5616
|
-
return /*#__PURE__*/
|
|
5606
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5617
5607
|
onClick: toggle,
|
|
5618
5608
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5619
5609
|
}, toggleProps, props));
|
|
@@ -5636,7 +5626,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5636
5626
|
var defaultProps$g = {
|
|
5637
5627
|
navbar: false
|
|
5638
5628
|
};
|
|
5639
|
-
var Dropdown$1 =
|
|
5629
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5640
5630
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5641
5631
|
show: 'onToggle'
|
|
5642
5632
|
}),
|
|
@@ -5651,7 +5641,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5651
5641
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5652
5642
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5653
5643
|
_4 = _useUncontrolled.navbar,
|
|
5654
|
-
props = _objectWithoutPropertiesLoose
|
|
5644
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5655
5645
|
|
|
5656
5646
|
var onSelectCtx = useContext(SelectableContext);
|
|
5657
5647
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5673,9 +5663,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5673
5663
|
if (onSelect) onSelect(key, event);
|
|
5674
5664
|
handleToggle(false, event, 'select');
|
|
5675
5665
|
});
|
|
5676
|
-
return /*#__PURE__*/
|
|
5666
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5677
5667
|
value: handleSelect
|
|
5678
|
-
}, /*#__PURE__*/
|
|
5668
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5679
5669
|
drop: drop,
|
|
5680
5670
|
show: show,
|
|
5681
5671
|
alignEnd: alignRight,
|
|
@@ -5684,7 +5674,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5684
5674
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5685
5675
|
}, function (_ref) {
|
|
5686
5676
|
var dropdownProps = _ref.props;
|
|
5687
|
-
return /*#__PURE__*/
|
|
5677
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5688
5678
|
ref: ref,
|
|
5689
5679
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5690
5680
|
}));
|
|
@@ -5759,7 +5749,7 @@ var propTypes$5 = {
|
|
|
5759
5749
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5760
5750
|
*/
|
|
5761
5751
|
|
|
5762
|
-
var DropdownButton =
|
|
5752
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5763
5753
|
var title = _ref.title,
|
|
5764
5754
|
children = _ref.children,
|
|
5765
5755
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5772,18 +5762,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5772
5762
|
disabled = _ref.disabled,
|
|
5773
5763
|
href = _ref.href,
|
|
5774
5764
|
id = _ref.id,
|
|
5775
|
-
props = _objectWithoutPropertiesLoose
|
|
5765
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5776
5766
|
|
|
5777
|
-
return /*#__PURE__*/
|
|
5767
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5778
5768
|
ref: ref
|
|
5779
|
-
}, props), /*#__PURE__*/
|
|
5769
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5780
5770
|
id: id,
|
|
5781
5771
|
href: href,
|
|
5782
5772
|
size: size,
|
|
5783
5773
|
variant: variant,
|
|
5784
5774
|
disabled: disabled,
|
|
5785
5775
|
childBsPrefix: bsPrefix
|
|
5786
|
-
}, title), /*#__PURE__*/
|
|
5776
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5787
5777
|
align: menuAlign,
|
|
5788
5778
|
role: menuRole,
|
|
5789
5779
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5898,7 +5888,7 @@ var propTypes$6 = {
|
|
|
5898
5888
|
tooltip: PropTypes.bool,
|
|
5899
5889
|
as: PropTypes.elementType
|
|
5900
5890
|
};
|
|
5901
|
-
var Feedback =
|
|
5891
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5902
5892
|
function (_ref, ref) {
|
|
5903
5893
|
var _ref$as = _ref.as,
|
|
5904
5894
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5907,9 +5897,9 @@ function (_ref, ref) {
|
|
|
5907
5897
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5908
5898
|
_ref$tooltip = _ref.tooltip,
|
|
5909
5899
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5910
|
-
props = _objectWithoutPropertiesLoose
|
|
5900
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5911
5901
|
|
|
5912
|
-
return /*#__PURE__*/
|
|
5902
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5913
5903
|
ref: ref,
|
|
5914
5904
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5915
5905
|
}));
|
|
@@ -5917,11 +5907,11 @@ function (_ref, ref) {
|
|
|
5917
5907
|
Feedback.displayName = 'Feedback';
|
|
5918
5908
|
Feedback.propTypes = propTypes$6;
|
|
5919
5909
|
|
|
5920
|
-
var FormContext =
|
|
5910
|
+
var FormContext = React.createContext({
|
|
5921
5911
|
controlId: undefined
|
|
5922
5912
|
});
|
|
5923
5913
|
|
|
5924
|
-
var FormCheckInput =
|
|
5914
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5925
5915
|
var id = _ref.id,
|
|
5926
5916
|
bsPrefix = _ref.bsPrefix,
|
|
5927
5917
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5935,7 +5925,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5935
5925
|
isStatic = _ref.isStatic,
|
|
5936
5926
|
_ref$as = _ref.as,
|
|
5937
5927
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5938
|
-
props = _objectWithoutPropertiesLoose
|
|
5928
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5939
5929
|
|
|
5940
5930
|
var _useContext = useContext(FormContext),
|
|
5941
5931
|
controlId = _useContext.controlId,
|
|
@@ -5946,7 +5936,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5946
5936
|
defaultPrefix = _ref2[1];
|
|
5947
5937
|
|
|
5948
5938
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5949
|
-
return /*#__PURE__*/
|
|
5939
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5950
5940
|
ref: ref,
|
|
5951
5941
|
type: type,
|
|
5952
5942
|
id: id || controlId,
|
|
@@ -5955,12 +5945,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5955
5945
|
});
|
|
5956
5946
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5957
5947
|
|
|
5958
|
-
var FormCheckLabel =
|
|
5948
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5959
5949
|
var bsPrefix = _ref.bsPrefix,
|
|
5960
5950
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5961
5951
|
className = _ref.className,
|
|
5962
5952
|
htmlFor = _ref.htmlFor,
|
|
5963
|
-
props = _objectWithoutPropertiesLoose
|
|
5953
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5964
5954
|
|
|
5965
5955
|
var _useContext = useContext(FormContext),
|
|
5966
5956
|
controlId = _useContext.controlId,
|
|
@@ -5971,7 +5961,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5971
5961
|
defaultPrefix = _ref2[1];
|
|
5972
5962
|
|
|
5973
5963
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5974
|
-
return /*#__PURE__*/
|
|
5964
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5975
5965
|
ref: ref,
|
|
5976
5966
|
htmlFor: htmlFor || controlId,
|
|
5977
5967
|
className: classnames(className, bsPrefix)
|
|
@@ -5979,7 +5969,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5979
5969
|
});
|
|
5980
5970
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5981
5971
|
|
|
5982
|
-
var FormCheck =
|
|
5972
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5983
5973
|
var id = _ref.id,
|
|
5984
5974
|
bsPrefix = _ref.bsPrefix,
|
|
5985
5975
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6005,7 +5995,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6005
5995
|
propCustom = _ref.custom,
|
|
6006
5996
|
_ref$as = _ref.as,
|
|
6007
5997
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6008
|
-
props = _objectWithoutPropertiesLoose
|
|
5998
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6009
5999
|
|
|
6010
6000
|
var custom = type === 'switch' ? true : propCustom;
|
|
6011
6001
|
|
|
@@ -6025,7 +6015,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6025
6015
|
};
|
|
6026
6016
|
}, [controlId, custom, id]);
|
|
6027
6017
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6028
|
-
var input = /*#__PURE__*/
|
|
6018
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6029
6019
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6030
6020
|
ref: ref,
|
|
6031
6021
|
isValid: isValid,
|
|
@@ -6034,14 +6024,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6034
6024
|
disabled: disabled,
|
|
6035
6025
|
as: as
|
|
6036
6026
|
}));
|
|
6037
|
-
return /*#__PURE__*/
|
|
6027
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6038
6028
|
value: innerFormContext
|
|
6039
|
-
}, /*#__PURE__*/
|
|
6029
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6040
6030
|
style: style,
|
|
6041
6031
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6042
|
-
}, children || /*#__PURE__*/
|
|
6032
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6043
6033
|
title: title
|
|
6044
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6034
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6045
6035
|
type: isValid ? 'valid' : 'invalid',
|
|
6046
6036
|
tooltip: feedbackTooltip
|
|
6047
6037
|
}, feedback))));
|
|
@@ -6050,7 +6040,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6050
6040
|
FormCheck.Input = FormCheckInput;
|
|
6051
6041
|
FormCheck.Label = FormCheckLabel;
|
|
6052
6042
|
|
|
6053
|
-
var FormFileInput =
|
|
6043
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6054
6044
|
var id = _ref.id,
|
|
6055
6045
|
bsPrefix = _ref.bsPrefix,
|
|
6056
6046
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6060,7 +6050,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6060
6050
|
lang = _ref.lang,
|
|
6061
6051
|
_ref$as = _ref.as,
|
|
6062
6052
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6063
|
-
props = _objectWithoutPropertiesLoose
|
|
6053
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6064
6054
|
|
|
6065
6055
|
var _useContext = useContext(FormContext),
|
|
6066
6056
|
controlId = _useContext.controlId,
|
|
@@ -6073,7 +6063,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6073
6063
|
defaultPrefix = _ref2[1];
|
|
6074
6064
|
|
|
6075
6065
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6076
|
-
return /*#__PURE__*/
|
|
6066
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6077
6067
|
ref: ref,
|
|
6078
6068
|
id: id || controlId,
|
|
6079
6069
|
type: type,
|
|
@@ -6083,12 +6073,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6083
6073
|
});
|
|
6084
6074
|
FormFileInput.displayName = 'FormFileInput';
|
|
6085
6075
|
|
|
6086
|
-
var FormFileLabel =
|
|
6076
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6087
6077
|
var bsPrefix = _ref.bsPrefix,
|
|
6088
6078
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6089
6079
|
className = _ref.className,
|
|
6090
6080
|
htmlFor = _ref.htmlFor,
|
|
6091
|
-
props = _objectWithoutPropertiesLoose
|
|
6081
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6092
6082
|
|
|
6093
6083
|
var _useContext = useContext(FormContext),
|
|
6094
6084
|
controlId = _useContext.controlId,
|
|
@@ -6099,7 +6089,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6099
6089
|
defaultPrefix = _ref2[1];
|
|
6100
6090
|
|
|
6101
6091
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6102
|
-
return /*#__PURE__*/
|
|
6092
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6103
6093
|
ref: ref,
|
|
6104
6094
|
htmlFor: htmlFor || controlId,
|
|
6105
6095
|
className: classnames(className, bsPrefix),
|
|
@@ -6108,7 +6098,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6108
6098
|
});
|
|
6109
6099
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6110
6100
|
|
|
6111
|
-
var FormFile =
|
|
6101
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6112
6102
|
var id = _ref.id,
|
|
6113
6103
|
bsPrefix = _ref.bsPrefix,
|
|
6114
6104
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6132,7 +6122,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6132
6122
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6133
6123
|
_ref$inputAs = _ref.inputAs,
|
|
6134
6124
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6135
|
-
props = _objectWithoutPropertiesLoose
|
|
6125
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6136
6126
|
|
|
6137
6127
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6138
6128
|
prefix = _ref2[0],
|
|
@@ -6151,7 +6141,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6141
|
};
|
|
6152
6142
|
}, [controlId, custom, id]);
|
|
6153
6143
|
var hasLabel = label != null && label !== false && !children;
|
|
6154
|
-
var input = /*#__PURE__*/
|
|
6144
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6155
6145
|
ref: ref,
|
|
6156
6146
|
isValid: isValid,
|
|
6157
6147
|
isInvalid: isInvalid,
|
|
@@ -6159,14 +6149,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6159
6149
|
as: inputAs,
|
|
6160
6150
|
lang: lang
|
|
6161
6151
|
}));
|
|
6162
|
-
return /*#__PURE__*/
|
|
6152
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6163
6153
|
value: innerFormContext
|
|
6164
|
-
}, /*#__PURE__*/
|
|
6154
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6165
6155
|
style: style,
|
|
6166
6156
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6167
|
-
}, children || /*#__PURE__*/
|
|
6157
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6168
6158
|
"data-browse": dataBrowse
|
|
6169
|
-
}, label)) : /*#__PURE__*/
|
|
6159
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6170
6160
|
type: isValid ? 'valid' : 'invalid',
|
|
6171
6161
|
tooltip: feedbackTooltip
|
|
6172
6162
|
}, feedback))));
|
|
@@ -6175,7 +6165,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6175
6165
|
FormFile.Input = FormFileInput;
|
|
6176
6166
|
FormFile.Label = FormFileLabel;
|
|
6177
6167
|
|
|
6178
|
-
var FormControl =
|
|
6168
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6179
6169
|
var bsPrefix = _ref.bsPrefix,
|
|
6180
6170
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6181
6171
|
type = _ref.type,
|
|
@@ -6192,7 +6182,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6192
6182
|
custom = _ref.custom,
|
|
6193
6183
|
_ref$as = _ref.as,
|
|
6194
6184
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6195
|
-
props = _objectWithoutPropertiesLoose
|
|
6185
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6196
6186
|
|
|
6197
6187
|
var _useContext = useContext(FormContext),
|
|
6198
6188
|
controlId = _useContext.controlId;
|
|
@@ -6227,7 +6217,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6227
6217
|
}
|
|
6228
6218
|
|
|
6229
6219
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6230
|
-
return /*#__PURE__*/
|
|
6220
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6231
6221
|
type: type,
|
|
6232
6222
|
size: htmlSize,
|
|
6233
6223
|
ref: ref,
|
|
@@ -6241,14 +6231,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6241
6231
|
Feedback: Feedback
|
|
6242
6232
|
});
|
|
6243
6233
|
|
|
6244
|
-
var FormGroup =
|
|
6234
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6245
6235
|
var bsPrefix = _ref.bsPrefix,
|
|
6246
6236
|
className = _ref.className,
|
|
6247
6237
|
children = _ref.children,
|
|
6248
6238
|
controlId = _ref.controlId,
|
|
6249
6239
|
_ref$as = _ref.as,
|
|
6250
6240
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose
|
|
6241
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6252
6242
|
|
|
6253
6243
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6254
6244
|
var context = useMemo(function () {
|
|
@@ -6256,9 +6246,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6256
6246
|
controlId: controlId
|
|
6257
6247
|
};
|
|
6258
6248
|
}, [controlId]);
|
|
6259
|
-
return /*#__PURE__*/
|
|
6249
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6260
6250
|
value: context
|
|
6261
|
-
}, /*#__PURE__*/
|
|
6251
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6262
6252
|
ref: ref,
|
|
6263
6253
|
className: classnames(className, bsPrefix)
|
|
6264
6254
|
}), children));
|
|
@@ -6269,7 +6259,7 @@ var defaultProps$h = {
|
|
|
6269
6259
|
column: false,
|
|
6270
6260
|
srOnly: false
|
|
6271
6261
|
};
|
|
6272
|
-
var FormLabel =
|
|
6262
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6273
6263
|
var _ref$as = _ref.as,
|
|
6274
6264
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6275
6265
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6277,7 +6267,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6277
6267
|
srOnly = _ref.srOnly,
|
|
6278
6268
|
className = _ref.className,
|
|
6279
6269
|
htmlFor = _ref.htmlFor,
|
|
6280
|
-
props = _objectWithoutPropertiesLoose
|
|
6270
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6281
6271
|
|
|
6282
6272
|
var _useContext = useContext(FormContext),
|
|
6283
6273
|
controlId = _useContext.controlId;
|
|
@@ -6288,7 +6278,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6288
6278
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6289
6279
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6290
6280
|
htmlFor = htmlFor || controlId;
|
|
6291
|
-
if (column) return /*#__PURE__*/
|
|
6281
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6292
6282
|
as: "label",
|
|
6293
6283
|
className: classes,
|
|
6294
6284
|
htmlFor: htmlFor
|
|
@@ -6296,7 +6286,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6296
6286
|
return (
|
|
6297
6287
|
/*#__PURE__*/
|
|
6298
6288
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6299
|
-
|
|
6289
|
+
React.createElement(Component, _extends({
|
|
6300
6290
|
ref: ref,
|
|
6301
6291
|
className: classes,
|
|
6302
6292
|
htmlFor: htmlFor
|
|
@@ -6306,25 +6296,25 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6306
6296
|
FormLabel.displayName = 'FormLabel';
|
|
6307
6297
|
FormLabel.defaultProps = defaultProps$h;
|
|
6308
6298
|
|
|
6309
|
-
var FormText =
|
|
6299
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6310
6300
|
function (_ref, ref) {
|
|
6311
6301
|
var bsPrefix = _ref.bsPrefix,
|
|
6312
6302
|
className = _ref.className,
|
|
6313
6303
|
_ref$as = _ref.as,
|
|
6314
6304
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6315
6305
|
muted = _ref.muted,
|
|
6316
|
-
props = _objectWithoutPropertiesLoose
|
|
6306
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6317
6307
|
|
|
6318
6308
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6319
|
-
return /*#__PURE__*/
|
|
6309
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6320
6310
|
ref: ref,
|
|
6321
6311
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6322
6312
|
}));
|
|
6323
6313
|
});
|
|
6324
6314
|
FormText.displayName = 'FormText';
|
|
6325
6315
|
|
|
6326
|
-
var Switch =
|
|
6327
|
-
return /*#__PURE__*/
|
|
6316
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6317
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6328
6318
|
ref: ref,
|
|
6329
6319
|
type: "switch"
|
|
6330
6320
|
}));
|
|
@@ -6337,17 +6327,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6337
6327
|
var defaultProps$i = {
|
|
6338
6328
|
inline: false
|
|
6339
6329
|
};
|
|
6340
|
-
var FormImpl =
|
|
6330
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6341
6331
|
var bsPrefix = _ref.bsPrefix,
|
|
6342
6332
|
inline = _ref.inline,
|
|
6343
6333
|
className = _ref.className,
|
|
6344
6334
|
validated = _ref.validated,
|
|
6345
6335
|
_ref$as = _ref.as,
|
|
6346
6336
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6347
|
-
props = _objectWithoutPropertiesLoose
|
|
6337
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6348
6338
|
|
|
6349
6339
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6350
|
-
return /*#__PURE__*/
|
|
6340
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6351
6341
|
ref: ref,
|
|
6352
6342
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6353
6343
|
}));
|
|
@@ -6366,17 +6356,17 @@ FormImpl.Text = FormText;
|
|
|
6366
6356
|
var defaultProps$j = {
|
|
6367
6357
|
fluid: false
|
|
6368
6358
|
};
|
|
6369
|
-
var Container =
|
|
6359
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6370
6360
|
var bsPrefix = _ref.bsPrefix,
|
|
6371
6361
|
fluid = _ref.fluid,
|
|
6372
6362
|
_ref$as = _ref.as,
|
|
6373
6363
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6374
6364
|
className = _ref.className,
|
|
6375
|
-
props = _objectWithoutPropertiesLoose
|
|
6365
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6376
6366
|
|
|
6377
6367
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6378
6368
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6379
|
-
return /*#__PURE__*/
|
|
6369
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6380
6370
|
ref: ref
|
|
6381
6371
|
}, props, {
|
|
6382
6372
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6417,18 +6407,18 @@ var defaultProps$k = {
|
|
|
6417
6407
|
roundedCircle: false,
|
|
6418
6408
|
thumbnail: false
|
|
6419
6409
|
};
|
|
6420
|
-
var Image =
|
|
6410
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6421
6411
|
var bsPrefix = _ref.bsPrefix,
|
|
6422
6412
|
className = _ref.className,
|
|
6423
6413
|
fluid = _ref.fluid,
|
|
6424
6414
|
rounded = _ref.rounded,
|
|
6425
6415
|
roundedCircle = _ref.roundedCircle,
|
|
6426
6416
|
thumbnail = _ref.thumbnail,
|
|
6427
|
-
props = _objectWithoutPropertiesLoose
|
|
6417
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6428
6418
|
|
|
6429
6419
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6430
6420
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6431
|
-
return /*#__PURE__*/
|
|
6421
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6432
6422
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6433
6423
|
ref: ref
|
|
6434
6424
|
}, props, {
|
|
@@ -6441,11 +6431,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6441
6431
|
var defaultProps$l = {
|
|
6442
6432
|
fluid: true
|
|
6443
6433
|
};
|
|
6444
|
-
var FigureImage =
|
|
6434
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6445
6435
|
var className = _ref.className,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose
|
|
6436
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6447
6437
|
|
|
6448
|
-
return /*#__PURE__*/
|
|
6438
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6449
6439
|
ref: ref
|
|
6450
6440
|
}, props, {
|
|
6451
6441
|
className: classnames(className, 'figure-img')
|
|
@@ -6472,13 +6462,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6472
6462
|
});
|
|
6473
6463
|
|
|
6474
6464
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6475
|
-
return /*#__PURE__*/
|
|
6465
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6476
6466
|
type: "checkbox"
|
|
6477
6467
|
}, props)));
|
|
6478
6468
|
};
|
|
6479
6469
|
|
|
6480
6470
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6481
|
-
return /*#__PURE__*/
|
|
6471
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6482
6472
|
type: "radio"
|
|
6483
6473
|
}, props)));
|
|
6484
6474
|
};
|
|
@@ -6491,16 +6481,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6491
6481
|
* @property {InputGroupRadio} Radio
|
|
6492
6482
|
* @property {InputGroupCheckbox} Checkbox
|
|
6493
6483
|
*/
|
|
6494
|
-
var InputGroup =
|
|
6484
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6495
6485
|
var bsPrefix = _ref.bsPrefix,
|
|
6496
6486
|
size = _ref.size,
|
|
6497
6487
|
className = _ref.className,
|
|
6498
6488
|
_ref$as = _ref.as,
|
|
6499
6489
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6500
|
-
props = _objectWithoutPropertiesLoose
|
|
6490
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6501
6491
|
|
|
6502
6492
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6503
|
-
return /*#__PURE__*/
|
|
6493
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6504
6494
|
ref: ref
|
|
6505
6495
|
}, props, {
|
|
6506
6496
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6508,7 +6498,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6508
6498
|
});
|
|
6509
6499
|
InputGroup.displayName = 'InputGroup';
|
|
6510
6500
|
|
|
6511
|
-
var InputGroupWithExtras = _extends
|
|
6501
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6512
6502
|
Text: InputGroupText,
|
|
6513
6503
|
Radio: InputGroupRadio,
|
|
6514
6504
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6519,7 +6509,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6519
6509
|
var defaultProps$m = {
|
|
6520
6510
|
fluid: false
|
|
6521
6511
|
};
|
|
6522
|
-
var Jumbotron =
|
|
6512
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6523
6513
|
var _classes;
|
|
6524
6514
|
|
|
6525
6515
|
var _ref$as = _ref.as,
|
|
@@ -6527,11 +6517,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6527
6517
|
className = _ref.className,
|
|
6528
6518
|
fluid = _ref.fluid,
|
|
6529
6519
|
bsPrefix = _ref.bsPrefix,
|
|
6530
|
-
props = _objectWithoutPropertiesLoose
|
|
6520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6531
6521
|
|
|
6532
6522
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6533
6523
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6534
|
-
return /*#__PURE__*/
|
|
6524
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6535
6525
|
ref: ref
|
|
6536
6526
|
}, props, {
|
|
6537
6527
|
className: classnames(className, classes)
|
|
@@ -6540,19 +6530,19 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6540
6530
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6541
6531
|
Jumbotron.displayName = 'Jumbotron';
|
|
6542
6532
|
|
|
6543
|
-
var TabContext =
|
|
6533
|
+
var TabContext = React.createContext(null);
|
|
6544
6534
|
|
|
6545
6535
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6546
6536
|
var noop$4 = function noop() {};
|
|
6547
6537
|
|
|
6548
|
-
var AbstractNav =
|
|
6538
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6549
6539
|
var _ref$as = _ref.as,
|
|
6550
6540
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6551
6541
|
onSelect = _ref.onSelect,
|
|
6552
6542
|
activeKey = _ref.activeKey,
|
|
6553
6543
|
role = _ref.role,
|
|
6554
6544
|
onKeyDown = _ref.onKeyDown,
|
|
6555
|
-
props = _objectWithoutPropertiesLoose
|
|
6545
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6556
6546
|
|
|
6557
6547
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6558
6548
|
// and don't want to reset the set in the effect
|
|
@@ -6626,9 +6616,9 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6626
6616
|
needsRefocusRef.current = false;
|
|
6627
6617
|
});
|
|
6628
6618
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6629
|
-
return /*#__PURE__*/
|
|
6619
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6630
6620
|
value: handleSelect
|
|
6631
|
-
}, /*#__PURE__*/
|
|
6621
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6632
6622
|
value: {
|
|
6633
6623
|
role: role,
|
|
6634
6624
|
// used by NavLink to determine it's role
|
|
@@ -6636,7 +6626,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6636
6626
|
getControlledId: getControlledId || noop$4,
|
|
6637
6627
|
getControllerId: getControllerId || noop$4
|
|
6638
6628
|
}
|
|
6639
|
-
}, /*#__PURE__*/
|
|
6629
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6640
6630
|
onKeyDown: handleKeyDown,
|
|
6641
6631
|
ref: mergedRef,
|
|
6642
6632
|
role: role
|
|
@@ -6646,14 +6636,14 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6646
6636
|
var defaultProps$n = {
|
|
6647
6637
|
disabled: false
|
|
6648
6638
|
};
|
|
6649
|
-
var AbstractNavItem =
|
|
6639
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6650
6640
|
var active = _ref.active,
|
|
6651
6641
|
className = _ref.className,
|
|
6652
6642
|
eventKey = _ref.eventKey,
|
|
6653
6643
|
onSelect = _ref.onSelect,
|
|
6654
6644
|
onClick = _ref.onClick,
|
|
6655
6645
|
Component = _ref.as,
|
|
6656
|
-
props = _objectWithoutPropertiesLoose
|
|
6646
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6657
6647
|
|
|
6658
6648
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6659
6649
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6683,7 +6673,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6683
6673
|
if (onSelect) onSelect(navKey, e);
|
|
6684
6674
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6685
6675
|
});
|
|
6686
|
-
return /*#__PURE__*/
|
|
6676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6687
6677
|
ref: ref,
|
|
6688
6678
|
onClick: handleOnclick,
|
|
6689
6679
|
className: classnames(className, isActive && 'active')
|
|
@@ -6696,7 +6686,7 @@ var defaultProps$o = {
|
|
|
6696
6686
|
active: false,
|
|
6697
6687
|
disabled: false
|
|
6698
6688
|
};
|
|
6699
|
-
var ListGroupItem =
|
|
6689
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6700
6690
|
var bsPrefix = _ref.bsPrefix,
|
|
6701
6691
|
active = _ref.active,
|
|
6702
6692
|
disabled = _ref.disabled,
|
|
@@ -6706,7 +6696,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6706
6696
|
as = _ref.as,
|
|
6707
6697
|
eventKey = _ref.eventKey,
|
|
6708
6698
|
onClick = _ref.onClick,
|
|
6709
|
-
props = _objectWithoutPropertiesLoose
|
|
6699
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6710
6700
|
|
|
6711
6701
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6712
6702
|
var handleClick = useCallback(function (event) {
|
|
@@ -6718,7 +6708,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6718
6708
|
|
|
6719
6709
|
if (onClick) onClick(event);
|
|
6720
6710
|
}, [disabled, onClick]);
|
|
6721
|
-
return /*#__PURE__*/
|
|
6711
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6722
6712
|
ref: ref
|
|
6723
6713
|
}, props, {
|
|
6724
6714
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6736,7 +6726,7 @@ var defaultProps$p = {
|
|
|
6736
6726
|
variant: undefined,
|
|
6737
6727
|
horizontal: undefined
|
|
6738
6728
|
};
|
|
6739
|
-
var ListGroup =
|
|
6729
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6740
6730
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6741
6731
|
activeKey: 'onSelect'
|
|
6742
6732
|
}),
|
|
@@ -6746,7 +6736,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6746
6736
|
horizontal = _useUncontrolled.horizontal,
|
|
6747
6737
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6748
6738
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6749
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6739
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6750
6740
|
|
|
6751
6741
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6752
6742
|
var horizontalVariant;
|
|
@@ -6758,7 +6748,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6758
6748
|
}
|
|
6759
6749
|
|
|
6760
6750
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6761
|
-
return /*#__PURE__*/
|
|
6751
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6762
6752
|
ref: ref
|
|
6763
6753
|
}, controlledProps, {
|
|
6764
6754
|
as: as,
|
|
@@ -6770,16 +6760,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6770
6760
|
ListGroup.Item = ListGroupItem;
|
|
6771
6761
|
|
|
6772
6762
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6773
|
-
var Media =
|
|
6763
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6774
6764
|
function (_ref, ref) {
|
|
6775
6765
|
var bsPrefix = _ref.bsPrefix,
|
|
6776
6766
|
className = _ref.className,
|
|
6777
6767
|
_ref$as = _ref.as,
|
|
6778
6768
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6779
|
-
props = _objectWithoutPropertiesLoose
|
|
6769
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6780
6770
|
|
|
6781
6771
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6782
|
-
return /*#__PURE__*/
|
|
6772
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6783
6773
|
ref: ref,
|
|
6784
6774
|
className: classnames(className, prefix)
|
|
6785
6775
|
}));
|
|
@@ -7167,7 +7157,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7167
7157
|
renderDialog = _ref.renderDialog,
|
|
7168
7158
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7169
7159
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7170
|
-
return /*#__PURE__*/
|
|
7160
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7171
7161
|
} : _ref$renderBackdrop,
|
|
7172
7162
|
providedManager = _ref.manager,
|
|
7173
7163
|
containerRef = _ref.container,
|
|
@@ -7325,12 +7315,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7325
7315
|
tabIndex: -1
|
|
7326
7316
|
});
|
|
7327
7317
|
|
|
7328
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7318
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7329
7319
|
role: 'document'
|
|
7330
7320
|
}));
|
|
7331
7321
|
|
|
7332
7322
|
if (Transition) {
|
|
7333
|
-
dialog = /*#__PURE__*/
|
|
7323
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7334
7324
|
appear: true,
|
|
7335
7325
|
unmountOnExit: true,
|
|
7336
7326
|
"in": !!show,
|
|
@@ -7353,14 +7343,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7353
7343
|
});
|
|
7354
7344
|
|
|
7355
7345
|
if (BackdropTransition) {
|
|
7356
|
-
backdropElement = /*#__PURE__*/
|
|
7346
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7357
7347
|
appear: true,
|
|
7358
7348
|
"in": !!show
|
|
7359
7349
|
}, backdropElement);
|
|
7360
7350
|
}
|
|
7361
7351
|
}
|
|
7362
7352
|
|
|
7363
|
-
return /*#__PURE__*/
|
|
7353
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7364
7354
|
});
|
|
7365
7355
|
var propTypes$8 = {
|
|
7366
7356
|
/**
|
|
@@ -7599,12 +7589,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7599
7589
|
|
|
7600
7590
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7601
7591
|
|
|
7602
|
-
var ModalContext =
|
|
7592
|
+
var ModalContext = React.createContext({
|
|
7603
7593
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7604
7594
|
onHide: function onHide() {}
|
|
7605
7595
|
});
|
|
7606
7596
|
|
|
7607
|
-
var ModalDialog =
|
|
7597
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7608
7598
|
var bsPrefix = _ref.bsPrefix,
|
|
7609
7599
|
className = _ref.className,
|
|
7610
7600
|
contentClassName = _ref.contentClassName,
|
|
@@ -7612,14 +7602,14 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7612
7602
|
size = _ref.size,
|
|
7613
7603
|
children = _ref.children,
|
|
7614
7604
|
scrollable = _ref.scrollable,
|
|
7615
|
-
props = _objectWithoutPropertiesLoose
|
|
7605
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7616
7606
|
|
|
7617
7607
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7618
7608
|
var dialogClass = bsPrefix + "-dialog";
|
|
7619
|
-
return /*#__PURE__*/
|
|
7609
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7620
7610
|
ref: ref,
|
|
7621
7611
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7622
|
-
}), /*#__PURE__*/
|
|
7612
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7623
7613
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7624
7614
|
}, children));
|
|
7625
7615
|
});
|
|
@@ -7631,14 +7621,14 @@ var defaultProps$q = {
|
|
|
7631
7621
|
closeLabel: 'Close',
|
|
7632
7622
|
closeButton: false
|
|
7633
7623
|
};
|
|
7634
|
-
var ModalHeader =
|
|
7624
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7635
7625
|
var bsPrefix = _ref.bsPrefix,
|
|
7636
7626
|
closeLabel = _ref.closeLabel,
|
|
7637
7627
|
closeButton = _ref.closeButton,
|
|
7638
7628
|
onHide = _ref.onHide,
|
|
7639
7629
|
className = _ref.className,
|
|
7640
7630
|
children = _ref.children,
|
|
7641
|
-
props = _objectWithoutPropertiesLoose
|
|
7631
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7642
7632
|
|
|
7643
7633
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7644
7634
|
var context = useContext(ModalContext);
|
|
@@ -7646,11 +7636,11 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7646
7636
|
if (context) context.onHide();
|
|
7647
7637
|
if (onHide) onHide();
|
|
7648
7638
|
});
|
|
7649
|
-
return /*#__PURE__*/
|
|
7639
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7650
7640
|
ref: ref
|
|
7651
7641
|
}, props, {
|
|
7652
7642
|
className: classnames(className, bsPrefix)
|
|
7653
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7643
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7654
7644
|
label: closeLabel,
|
|
7655
7645
|
onClick: handleClick
|
|
7656
7646
|
}));
|
|
@@ -7677,16 +7667,16 @@ var defaultProps$r = {
|
|
|
7677
7667
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7678
7668
|
|
|
7679
7669
|
function DialogTransition(props) {
|
|
7680
|
-
return /*#__PURE__*/
|
|
7670
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7681
7671
|
}
|
|
7682
7672
|
|
|
7683
7673
|
function BackdropTransition(props) {
|
|
7684
|
-
return /*#__PURE__*/
|
|
7674
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7685
7675
|
}
|
|
7686
7676
|
/* eslint-enable no-use-before-define */
|
|
7687
7677
|
|
|
7688
7678
|
|
|
7689
|
-
var Modal$1 =
|
|
7679
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7690
7680
|
var bsPrefix = _ref.bsPrefix,
|
|
7691
7681
|
className = _ref.className,
|
|
7692
7682
|
style = _ref.style,
|
|
@@ -7715,7 +7705,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7715
7705
|
onExited = _ref.onExited,
|
|
7716
7706
|
backdropClassName = _ref.backdropClassName,
|
|
7717
7707
|
propsManager = _ref.manager,
|
|
7718
|
-
props = _objectWithoutPropertiesLoose
|
|
7708
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7719
7709
|
|
|
7720
7710
|
var _useState = useState({}),
|
|
7721
7711
|
modalStyle = _useState[0],
|
|
@@ -7881,12 +7871,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7881
7871
|
};
|
|
7882
7872
|
|
|
7883
7873
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7884
|
-
return /*#__PURE__*/
|
|
7874
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7885
7875
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7886
7876
|
}));
|
|
7887
7877
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7888
7878
|
|
|
7889
|
-
var baseModalStyle = _extends
|
|
7879
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7890
7880
|
|
|
7891
7881
|
|
|
7892
7882
|
if (!animation) {
|
|
@@ -7894,7 +7884,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7894
7884
|
}
|
|
7895
7885
|
|
|
7896
7886
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7897
|
-
return /*#__PURE__*/
|
|
7887
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7898
7888
|
role: "dialog"
|
|
7899
7889
|
}, dialogProps, {
|
|
7900
7890
|
style: baseModalStyle,
|
|
@@ -7902,7 +7892,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7902
7892
|
onClick: backdrop ? handleClick : undefined,
|
|
7903
7893
|
onMouseUp: handleMouseUp,
|
|
7904
7894
|
"aria-labelledby": ariaLabelledby
|
|
7905
|
-
}), /*#__PURE__*/
|
|
7895
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7906
7896
|
role: "document",
|
|
7907
7897
|
onMouseDown: handleDialogMouseDown,
|
|
7908
7898
|
className: dialogClassName,
|
|
@@ -7910,9 +7900,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7910
7900
|
}), children));
|
|
7911
7901
|
};
|
|
7912
7902
|
|
|
7913
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7914
7904
|
value: modalContext
|
|
7915
|
-
}, /*#__PURE__*/
|
|
7905
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7916
7906
|
show: show,
|
|
7917
7907
|
ref: setModalRef,
|
|
7918
7908
|
backdrop: backdrop,
|
|
@@ -7950,17 +7940,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7950
7940
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7951
7941
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7952
7942
|
|
|
7953
|
-
var NavItem =
|
|
7943
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7954
7944
|
function (_ref, ref) {
|
|
7955
7945
|
var bsPrefix = _ref.bsPrefix,
|
|
7956
7946
|
className = _ref.className,
|
|
7957
7947
|
children = _ref.children,
|
|
7958
7948
|
_ref$as = _ref.as,
|
|
7959
7949
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7960
|
-
props = _objectWithoutPropertiesLoose
|
|
7950
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7961
7951
|
|
|
7962
7952
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7963
|
-
return /*#__PURE__*/
|
|
7953
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7964
7954
|
ref: ref,
|
|
7965
7955
|
className: classnames(className, bsPrefix)
|
|
7966
7956
|
}), children);
|
|
@@ -7971,7 +7961,7 @@ var defaultProps$s = {
|
|
|
7971
7961
|
disabled: false,
|
|
7972
7962
|
as: SafeAnchor
|
|
7973
7963
|
};
|
|
7974
|
-
var NavLink =
|
|
7964
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7975
7965
|
var bsPrefix = _ref.bsPrefix,
|
|
7976
7966
|
disabled = _ref.disabled,
|
|
7977
7967
|
className = _ref.className,
|
|
@@ -7979,10 +7969,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7979
7969
|
eventKey = _ref.eventKey,
|
|
7980
7970
|
onSelect = _ref.onSelect,
|
|
7981
7971
|
as = _ref.as,
|
|
7982
|
-
props = _objectWithoutPropertiesLoose
|
|
7972
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7983
7973
|
|
|
7984
7974
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7985
|
-
return /*#__PURE__*/
|
|
7975
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7986
7976
|
href: href,
|
|
7987
7977
|
ref: ref,
|
|
7988
7978
|
eventKey: eventKey,
|
|
@@ -7999,7 +7989,7 @@ var defaultProps$t = {
|
|
|
7999
7989
|
justify: false,
|
|
8000
7990
|
fill: false
|
|
8001
7991
|
};
|
|
8002
|
-
var Nav =
|
|
7992
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8003
7993
|
var _classNames;
|
|
8004
7994
|
|
|
8005
7995
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8015,7 +8005,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8015
8005
|
className = _useUncontrolled.className,
|
|
8016
8006
|
children = _useUncontrolled.children,
|
|
8017
8007
|
activeKey = _useUncontrolled.activeKey,
|
|
8018
|
-
props = _objectWithoutPropertiesLoose
|
|
8008
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8019
8009
|
|
|
8020
8010
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8021
8011
|
var navbarBsPrefix;
|
|
@@ -8031,7 +8021,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8031
8021
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8032
8022
|
}
|
|
8033
8023
|
|
|
8034
|
-
return /*#__PURE__*/
|
|
8024
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8035
8025
|
as: as,
|
|
8036
8026
|
ref: ref,
|
|
8037
8027
|
activeKey: activeKey,
|
|
@@ -8043,31 +8033,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8043
8033
|
Nav.Item = NavItem;
|
|
8044
8034
|
Nav.Link = NavLink;
|
|
8045
8035
|
|
|
8046
|
-
var NavbarBrand =
|
|
8036
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8047
8037
|
var bsPrefix = _ref.bsPrefix,
|
|
8048
8038
|
className = _ref.className,
|
|
8049
8039
|
as = _ref.as,
|
|
8050
|
-
props = _objectWithoutPropertiesLoose
|
|
8040
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8051
8041
|
|
|
8052
8042
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8053
8043
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8054
|
-
return /*#__PURE__*/
|
|
8044
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8055
8045
|
ref: ref,
|
|
8056
8046
|
className: classnames(className, bsPrefix)
|
|
8057
8047
|
}));
|
|
8058
8048
|
});
|
|
8059
8049
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8060
8050
|
|
|
8061
|
-
var NavbarCollapse =
|
|
8051
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8062
8052
|
var children = _ref.children,
|
|
8063
8053
|
bsPrefix = _ref.bsPrefix,
|
|
8064
|
-
props = _objectWithoutPropertiesLoose
|
|
8054
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8065
8055
|
|
|
8066
8056
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8067
|
-
return /*#__PURE__*/
|
|
8068
|
-
return /*#__PURE__*/
|
|
8057
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8058
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8069
8059
|
in: !!(context && context.expanded)
|
|
8070
|
-
}, props), /*#__PURE__*/
|
|
8060
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8071
8061
|
ref: ref,
|
|
8072
8062
|
className: bsPrefix
|
|
8073
8063
|
}, children));
|
|
@@ -8078,7 +8068,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8078
8068
|
var defaultProps$u = {
|
|
8079
8069
|
label: 'Toggle navigation'
|
|
8080
8070
|
};
|
|
8081
|
-
var NavbarToggle =
|
|
8071
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8082
8072
|
var bsPrefix = _ref.bsPrefix,
|
|
8083
8073
|
className = _ref.className,
|
|
8084
8074
|
children = _ref.children,
|
|
@@ -8086,7 +8076,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8086
8076
|
_ref$as = _ref.as,
|
|
8087
8077
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8088
8078
|
onClick = _ref.onClick,
|
|
8089
|
-
props = _objectWithoutPropertiesLoose
|
|
8079
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8090
8080
|
|
|
8091
8081
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8092
8082
|
|
|
@@ -8103,12 +8093,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8103
8093
|
props.type = 'button';
|
|
8104
8094
|
}
|
|
8105
8095
|
|
|
8106
|
-
return /*#__PURE__*/
|
|
8096
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8107
8097
|
ref: ref,
|
|
8108
8098
|
onClick: handleClick,
|
|
8109
8099
|
"aria-label": label,
|
|
8110
8100
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8111
|
-
}), children || /*#__PURE__*/
|
|
8101
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8112
8102
|
className: bsPrefix + "-icon"
|
|
8113
8103
|
}));
|
|
8114
8104
|
});
|
|
@@ -8123,7 +8113,7 @@ var defaultProps$v = {
|
|
|
8123
8113
|
variant: 'light',
|
|
8124
8114
|
collapseOnSelect: false
|
|
8125
8115
|
};
|
|
8126
|
-
var Navbar =
|
|
8116
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8127
8117
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8128
8118
|
expanded: 'onToggle'
|
|
8129
8119
|
}),
|
|
@@ -8141,7 +8131,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8141
8131
|
_onToggle = _useUncontrolled.onToggle,
|
|
8142
8132
|
onSelect = _useUncontrolled.onSelect,
|
|
8143
8133
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8144
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8134
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8145
8135
|
|
|
8146
8136
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8147
8137
|
var handleCollapse = useCallback(function () {
|
|
@@ -8171,11 +8161,11 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8171
8161
|
expanded: !!expanded
|
|
8172
8162
|
};
|
|
8173
8163
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8174
|
-
return /*#__PURE__*/
|
|
8164
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8175
8165
|
value: navbarContext
|
|
8176
|
-
}, /*#__PURE__*/
|
|
8166
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8177
8167
|
value: handleCollapse
|
|
8178
|
-
}, /*#__PURE__*/
|
|
8168
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8179
8169
|
ref: ref
|
|
8180
8170
|
}, controlledProps, {
|
|
8181
8171
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8224,7 +8214,7 @@ var propTypes$9 = {
|
|
|
8224
8214
|
/** @ignore */
|
|
8225
8215
|
bsPrefix: PropTypes.string
|
|
8226
8216
|
};
|
|
8227
|
-
var NavDropdown =
|
|
8217
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8228
8218
|
var id = _ref.id,
|
|
8229
8219
|
title = _ref.title,
|
|
8230
8220
|
children = _ref.children,
|
|
@@ -8234,20 +8224,20 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8234
8224
|
disabled = _ref.disabled,
|
|
8235
8225
|
active = _ref.active,
|
|
8236
8226
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8237
|
-
props = _objectWithoutPropertiesLoose
|
|
8227
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8238
8228
|
|
|
8239
|
-
return /*#__PURE__*/
|
|
8229
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8240
8230
|
ref: ref
|
|
8241
8231
|
}, props, {
|
|
8242
8232
|
as: NavItem
|
|
8243
|
-
}), /*#__PURE__*/
|
|
8233
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8244
8234
|
id: id,
|
|
8245
8235
|
eventKey: null,
|
|
8246
8236
|
active: active,
|
|
8247
8237
|
disabled: disabled,
|
|
8248
8238
|
childBsPrefix: bsPrefix,
|
|
8249
8239
|
as: NavLink
|
|
8250
|
-
}, title), /*#__PURE__*/
|
|
8240
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8251
8241
|
role: menuRole,
|
|
8252
8242
|
renderOnMount: renderMenuOnMount,
|
|
8253
8243
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8264,7 +8254,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8264
8254
|
* Built on top of `Popper.js`, the overlay component is
|
|
8265
8255
|
* great for custom tooltip overlays.
|
|
8266
8256
|
*/
|
|
8267
|
-
var Overlay = /*#__PURE__*/
|
|
8257
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8268
8258
|
var flip = props.flip,
|
|
8269
8259
|
offset = props.offset,
|
|
8270
8260
|
placement = props.placement,
|
|
@@ -8347,7 +8337,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8347
8337
|
onEnter = props.onEnter,
|
|
8348
8338
|
onEntering = props.onEntering,
|
|
8349
8339
|
onEntered = props.onEntered;
|
|
8350
|
-
child = /*#__PURE__*/
|
|
8340
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8351
8341
|
"in": props.show,
|
|
8352
8342
|
appear: true,
|
|
8353
8343
|
onExit: onExit,
|
|
@@ -8513,34 +8503,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8513
8503
|
};
|
|
8514
8504
|
|
|
8515
8505
|
return RefHolder;
|
|
8516
|
-
}(
|
|
8506
|
+
}(React.Component);
|
|
8517
8507
|
|
|
8518
8508
|
var defaultProps$w = {
|
|
8519
8509
|
active: false,
|
|
8520
8510
|
disabled: false,
|
|
8521
8511
|
activeLabel: '(current)'
|
|
8522
8512
|
};
|
|
8523
|
-
var PageItem =
|
|
8513
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8524
8514
|
var active = _ref.active,
|
|
8525
8515
|
disabled = _ref.disabled,
|
|
8526
8516
|
className = _ref.className,
|
|
8527
8517
|
style = _ref.style,
|
|
8528
8518
|
activeLabel = _ref.activeLabel,
|
|
8529
8519
|
children = _ref.children,
|
|
8530
|
-
props = _objectWithoutPropertiesLoose
|
|
8520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8531
8521
|
|
|
8532
8522
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8533
|
-
return /*#__PURE__*/
|
|
8523
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8534
8524
|
ref: ref,
|
|
8535
8525
|
style: style,
|
|
8536
8526
|
className: classnames(className, 'page-item', {
|
|
8537
8527
|
active: active,
|
|
8538
8528
|
disabled: disabled
|
|
8539
8529
|
})
|
|
8540
|
-
}, /*#__PURE__*/
|
|
8530
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8541
8531
|
className: "page-link",
|
|
8542
8532
|
disabled: disabled
|
|
8543
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8533
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8544
8534
|
className: "sr-only"
|
|
8545
8535
|
}, activeLabel)));
|
|
8546
8536
|
});
|
|
@@ -8554,11 +8544,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8554
8544
|
|
|
8555
8545
|
function Button(_ref2) {
|
|
8556
8546
|
var children = _ref2.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose
|
|
8547
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8558
8548
|
|
|
8559
|
-
return /*#__PURE__*/
|
|
8549
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8560
8550
|
"aria-hidden": "true"
|
|
8561
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8551
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8562
8552
|
className: "sr-only"
|
|
8563
8553
|
}, label));
|
|
8564
8554
|
}
|
|
@@ -8581,15 +8571,15 @@ var Last = createButton('Last', '»');
|
|
|
8581
8571
|
* @property {PageItem} Next
|
|
8582
8572
|
* @property {PageItem} Last
|
|
8583
8573
|
*/
|
|
8584
|
-
var Pagination =
|
|
8574
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8585
8575
|
var bsPrefix = _ref.bsPrefix,
|
|
8586
8576
|
className = _ref.className,
|
|
8587
8577
|
children = _ref.children,
|
|
8588
8578
|
size = _ref.size,
|
|
8589
|
-
props = _objectWithoutPropertiesLoose
|
|
8579
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8590
8580
|
|
|
8591
8581
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8592
|
-
return /*#__PURE__*/
|
|
8582
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8593
8583
|
ref: ref
|
|
8594
8584
|
}, props, {
|
|
8595
8585
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8602,32 +8592,32 @@ Pagination.Item = PageItem;
|
|
|
8602
8592
|
Pagination.Next = Next;
|
|
8603
8593
|
Pagination.Last = Last;
|
|
8604
8594
|
|
|
8605
|
-
var PopoverTitle =
|
|
8595
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8606
8596
|
var _ref$as = _ref.as,
|
|
8607
8597
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8608
8598
|
bsPrefix = _ref.bsPrefix,
|
|
8609
8599
|
className = _ref.className,
|
|
8610
8600
|
children = _ref.children,
|
|
8611
|
-
props = _objectWithoutPropertiesLoose
|
|
8601
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8612
8602
|
|
|
8613
8603
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8614
|
-
return /*#__PURE__*/
|
|
8604
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8615
8605
|
ref: ref
|
|
8616
8606
|
}, props, {
|
|
8617
8607
|
className: classnames(bsPrefix, className)
|
|
8618
8608
|
}), children);
|
|
8619
8609
|
});
|
|
8620
8610
|
|
|
8621
|
-
var PopoverContent =
|
|
8611
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8622
8612
|
var _ref$as = _ref.as,
|
|
8623
8613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8624
8614
|
bsPrefix = _ref.bsPrefix,
|
|
8625
8615
|
className = _ref.className,
|
|
8626
8616
|
children = _ref.children,
|
|
8627
|
-
props = _objectWithoutPropertiesLoose
|
|
8617
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8628
8618
|
|
|
8629
8619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8630
|
-
return /*#__PURE__*/
|
|
8620
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8631
8621
|
ref: ref
|
|
8632
8622
|
}, props, {
|
|
8633
8623
|
className: classnames(className, bsPrefix)
|
|
@@ -8637,7 +8627,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8637
8627
|
var defaultProps$x = {
|
|
8638
8628
|
placement: 'right'
|
|
8639
8629
|
};
|
|
8640
|
-
var Popover =
|
|
8630
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8641
8631
|
var bsPrefix = _ref.bsPrefix,
|
|
8642
8632
|
placement = _ref.placement,
|
|
8643
8633
|
className = _ref.className,
|
|
@@ -8647,22 +8637,22 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8647
8637
|
arrowProps = _ref.arrowProps,
|
|
8648
8638
|
_ = _ref.popper,
|
|
8649
8639
|
_1 = _ref.show,
|
|
8650
|
-
props = _objectWithoutPropertiesLoose
|
|
8640
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8651
8641
|
|
|
8652
8642
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8653
8643
|
|
|
8654
8644
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8655
8645
|
primaryPlacement = _ref2[0];
|
|
8656
8646
|
|
|
8657
|
-
return /*#__PURE__*/
|
|
8647
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8658
8648
|
ref: ref,
|
|
8659
8649
|
role: "tooltip",
|
|
8660
8650
|
style: style,
|
|
8661
8651
|
"x-placement": primaryPlacement,
|
|
8662
8652
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8663
|
-
}, props), /*#__PURE__*/
|
|
8653
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8664
8654
|
className: "arrow"
|
|
8665
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8655
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8666
8656
|
});
|
|
8667
8657
|
Popover.defaultProps = defaultProps$x;
|
|
8668
8658
|
Popover.Title = PopoverTitle;
|
|
@@ -8698,27 +8688,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8698
8688
|
style = _ref.style,
|
|
8699
8689
|
variant = _ref.variant,
|
|
8700
8690
|
bsPrefix = _ref.bsPrefix,
|
|
8701
|
-
props = _objectWithoutPropertiesLoose
|
|
8691
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8702
8692
|
|
|
8703
|
-
return /*#__PURE__*/
|
|
8693
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8704
8694
|
ref: ref
|
|
8705
8695
|
}, props, {
|
|
8706
8696
|
role: "progressbar",
|
|
8707
8697
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8708
|
-
style: _extends
|
|
8698
|
+
style: _extends({
|
|
8709
8699
|
width: getPercentage(now, min, max) + "%"
|
|
8710
8700
|
}, style),
|
|
8711
8701
|
"aria-valuenow": now,
|
|
8712
8702
|
"aria-valuemin": min,
|
|
8713
8703
|
"aria-valuemax": max
|
|
8714
|
-
}), srOnly ? /*#__PURE__*/
|
|
8704
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8715
8705
|
className: "sr-only"
|
|
8716
8706
|
}, label) : label);
|
|
8717
8707
|
}
|
|
8718
8708
|
|
|
8719
|
-
var ProgressBar =
|
|
8709
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8720
8710
|
var isChild = _ref2.isChild,
|
|
8721
|
-
props = _objectWithoutPropertiesLoose
|
|
8711
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8722
8712
|
|
|
8723
8713
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8724
8714
|
|
|
@@ -8737,9 +8727,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8737
8727
|
variant = props.variant,
|
|
8738
8728
|
className = props.className,
|
|
8739
8729
|
children = props.children,
|
|
8740
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8730
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8741
8731
|
|
|
8742
|
-
return /*#__PURE__*/
|
|
8732
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8743
8733
|
ref: ref
|
|
8744
8734
|
}, wrapperProps, {
|
|
8745
8735
|
className: classnames(className, bsPrefix)
|
|
@@ -8765,20 +8755,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8765
8755
|
var defaultProps$z = {
|
|
8766
8756
|
aspectRatio: '1by1'
|
|
8767
8757
|
};
|
|
8768
|
-
var ResponsiveEmbed =
|
|
8758
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8769
8759
|
var bsPrefix = _ref.bsPrefix,
|
|
8770
8760
|
className = _ref.className,
|
|
8771
8761
|
children = _ref.children,
|
|
8772
8762
|
aspectRatio = _ref.aspectRatio,
|
|
8773
|
-
props = _objectWithoutPropertiesLoose
|
|
8763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8774
8764
|
|
|
8775
8765
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8776
|
-
var child =
|
|
8777
|
-
return /*#__PURE__*/
|
|
8766
|
+
var child = React.Children.only(children);
|
|
8767
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8778
8768
|
ref: ref
|
|
8779
8769
|
}, props, {
|
|
8780
8770
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8781
|
-
}),
|
|
8771
|
+
}), React.cloneElement(child, {
|
|
8782
8772
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8783
8773
|
}));
|
|
8784
8774
|
});
|
|
@@ -8788,13 +8778,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8788
8778
|
var defaultProps$A = {
|
|
8789
8779
|
noGutters: false
|
|
8790
8780
|
};
|
|
8791
|
-
var Row =
|
|
8781
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8792
8782
|
var bsPrefix = _ref.bsPrefix,
|
|
8793
8783
|
className = _ref.className,
|
|
8794
8784
|
noGutters = _ref.noGutters,
|
|
8795
8785
|
_ref$as = _ref.as,
|
|
8796
8786
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8797
|
-
props = _objectWithoutPropertiesLoose
|
|
8787
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8798
8788
|
|
|
8799
8789
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8800
8790
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8813,7 +8803,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8813
8803
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8814
8804
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8815
8805
|
});
|
|
8816
|
-
return /*#__PURE__*/
|
|
8806
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8817
8807
|
ref: ref
|
|
8818
8808
|
}, props, {
|
|
8819
8809
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8822,7 +8812,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8822
8812
|
Row.displayName = 'Row';
|
|
8823
8813
|
Row.defaultProps = defaultProps$A;
|
|
8824
8814
|
|
|
8825
|
-
var Spinner =
|
|
8815
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8826
8816
|
var bsPrefix = _ref.bsPrefix,
|
|
8827
8817
|
variant = _ref.variant,
|
|
8828
8818
|
animation = _ref.animation,
|
|
@@ -8831,11 +8821,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8831
8821
|
_ref$as = _ref.as,
|
|
8832
8822
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8833
8823
|
className = _ref.className,
|
|
8834
|
-
props = _objectWithoutPropertiesLoose
|
|
8824
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8835
8825
|
|
|
8836
8826
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8837
8827
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8838
|
-
return /*#__PURE__*/
|
|
8828
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8839
8829
|
ref: ref
|
|
8840
8830
|
}, props, {
|
|
8841
8831
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8909,7 +8899,7 @@ var defaultProps$B = {
|
|
|
8909
8899
|
toggleLabel: 'Toggle dropdown',
|
|
8910
8900
|
type: 'button'
|
|
8911
8901
|
};
|
|
8912
|
-
var SplitButton =
|
|
8902
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8913
8903
|
var id = _ref.id,
|
|
8914
8904
|
bsPrefix = _ref.bsPrefix,
|
|
8915
8905
|
size = _ref.size,
|
|
@@ -8925,13 +8915,13 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8925
8915
|
menuRole = _ref.menuRole,
|
|
8926
8916
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8927
8917
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8928
|
-
props = _objectWithoutPropertiesLoose
|
|
8918
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8929
8919
|
|
|
8930
|
-
return /*#__PURE__*/
|
|
8920
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8931
8921
|
ref: ref
|
|
8932
8922
|
}, props, {
|
|
8933
8923
|
as: ButtonGroup
|
|
8934
|
-
}), /*#__PURE__*/
|
|
8924
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8935
8925
|
size: size,
|
|
8936
8926
|
variant: variant,
|
|
8937
8927
|
disabled: props.disabled,
|
|
@@ -8940,16 +8930,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8940
8930
|
target: target,
|
|
8941
8931
|
onClick: onClick,
|
|
8942
8932
|
type: type
|
|
8943
|
-
}, title), /*#__PURE__*/
|
|
8933
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8944
8934
|
split: true,
|
|
8945
8935
|
id: id ? id.toString() : undefined,
|
|
8946
8936
|
size: size,
|
|
8947
8937
|
variant: variant,
|
|
8948
8938
|
disabled: props.disabled,
|
|
8949
8939
|
childBsPrefix: bsPrefix
|
|
8950
|
-
}, /*#__PURE__*/
|
|
8940
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8951
8941
|
className: "sr-only"
|
|
8952
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8942
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8953
8943
|
align: menuAlign,
|
|
8954
8944
|
role: menuRole,
|
|
8955
8945
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8993,22 +8983,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8993
8983
|
}
|
|
8994
8984
|
};
|
|
8995
8985
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8996
|
-
return /*#__PURE__*/
|
|
8986
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8997
8987
|
value: tabContext
|
|
8998
|
-
}, /*#__PURE__*/
|
|
8988
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8999
8989
|
value: onSelect || null
|
|
9000
8990
|
}, children));
|
|
9001
8991
|
};
|
|
9002
8992
|
|
|
9003
|
-
var TabContent =
|
|
8993
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9004
8994
|
var bsPrefix = _ref.bsPrefix,
|
|
9005
8995
|
_ref$as = _ref.as,
|
|
9006
8996
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9007
8997
|
className = _ref.className,
|
|
9008
|
-
props = _objectWithoutPropertiesLoose
|
|
8998
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9009
8999
|
|
|
9010
9000
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9011
|
-
return /*#__PURE__*/
|
|
9001
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9012
9002
|
ref: ref
|
|
9013
9003
|
}, props, {
|
|
9014
9004
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9022,11 +9012,11 @@ function useTabContext(props) {
|
|
|
9022
9012
|
var activeKey = context.activeKey,
|
|
9023
9013
|
getControlledId = context.getControlledId,
|
|
9024
9014
|
getControllerId = context.getControllerId,
|
|
9025
|
-
rest = _objectWithoutPropertiesLoose
|
|
9015
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9026
9016
|
|
|
9027
9017
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9028
9018
|
var key = makeEventKey(props.eventKey);
|
|
9029
|
-
return _extends
|
|
9019
|
+
return _extends({}, props, {
|
|
9030
9020
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9031
9021
|
id: getControlledId(props.eventKey),
|
|
9032
9022
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9036,7 +9026,7 @@ function useTabContext(props) {
|
|
|
9036
9026
|
});
|
|
9037
9027
|
}
|
|
9038
9028
|
|
|
9039
|
-
var TabPane =
|
|
9029
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9040
9030
|
var _useTabContext = useTabContext(props),
|
|
9041
9031
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9042
9032
|
className = _useTabContext.className,
|
|
@@ -9053,11 +9043,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9053
9043
|
_useTabContext$as = _useTabContext.as,
|
|
9054
9044
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9055
9045
|
_ = _useTabContext.eventKey,
|
|
9056
|
-
rest = _objectWithoutPropertiesLoose
|
|
9046
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9057
9047
|
|
|
9058
9048
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9059
9049
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9060
|
-
var pane = /*#__PURE__*/
|
|
9050
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9061
9051
|
ref: ref,
|
|
9062
9052
|
role: "tabpanel",
|
|
9063
9053
|
"aria-hidden": !active,
|
|
@@ -9065,7 +9055,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9065
9055
|
active: active
|
|
9066
9056
|
})
|
|
9067
9057
|
}));
|
|
9068
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9058
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9069
9059
|
in: active,
|
|
9070
9060
|
onEnter: onEnter,
|
|
9071
9061
|
onEntering: onEntering,
|
|
@@ -9078,9 +9068,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9078
9068
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9079
9069
|
// conflict with the top level one.
|
|
9080
9070
|
|
|
9081
|
-
return /*#__PURE__*/
|
|
9071
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9082
9072
|
value: null
|
|
9083
|
-
}, /*#__PURE__*/
|
|
9073
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9084
9074
|
value: null
|
|
9085
9075
|
}, pane));
|
|
9086
9076
|
});
|
|
@@ -9101,13 +9091,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9101
9091
|
};
|
|
9102
9092
|
|
|
9103
9093
|
return Tab;
|
|
9104
|
-
}(
|
|
9094
|
+
}(React.Component);
|
|
9105
9095
|
|
|
9106
9096
|
Tab.Container = TabContainer;
|
|
9107
9097
|
Tab.Content = TabContent;
|
|
9108
9098
|
Tab.Pane = TabPane;
|
|
9109
9099
|
|
|
9110
|
-
var Table =
|
|
9100
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9111
9101
|
var bsPrefix = _ref.bsPrefix,
|
|
9112
9102
|
className = _ref.className,
|
|
9113
9103
|
striped = _ref.striped,
|
|
@@ -9117,11 +9107,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9117
9107
|
size = _ref.size,
|
|
9118
9108
|
variant = _ref.variant,
|
|
9119
9109
|
responsive = _ref.responsive,
|
|
9120
|
-
props = _objectWithoutPropertiesLoose
|
|
9110
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9121
9111
|
|
|
9122
9112
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9123
9113
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9124
|
-
var table = /*#__PURE__*/
|
|
9114
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9125
9115
|
className: classes,
|
|
9126
9116
|
ref: ref
|
|
9127
9117
|
}));
|
|
@@ -9133,7 +9123,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9133
9123
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9134
9124
|
}
|
|
9135
9125
|
|
|
9136
|
-
return /*#__PURE__*/
|
|
9126
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9137
9127
|
className: responsiveClass
|
|
9138
9128
|
}, table);
|
|
9139
9129
|
}
|
|
@@ -9141,7 +9131,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9141
9131
|
return table;
|
|
9142
9132
|
});
|
|
9143
9133
|
|
|
9144
|
-
var ToastContext =
|
|
9134
|
+
var ToastContext = React.createContext({
|
|
9145
9135
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9146
9136
|
onClose: function onClose() {}
|
|
9147
9137
|
});
|
|
@@ -9150,13 +9140,13 @@ var defaultProps$C = {
|
|
|
9150
9140
|
closeLabel: 'Close',
|
|
9151
9141
|
closeButton: true
|
|
9152
9142
|
};
|
|
9153
|
-
var ToastHeader =
|
|
9143
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9154
9144
|
var bsPrefix = _ref.bsPrefix,
|
|
9155
9145
|
closeLabel = _ref.closeLabel,
|
|
9156
9146
|
closeButton = _ref.closeButton,
|
|
9157
9147
|
className = _ref.className,
|
|
9158
9148
|
children = _ref.children,
|
|
9159
|
-
props = _objectWithoutPropertiesLoose
|
|
9149
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9160
9150
|
|
|
9161
9151
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9162
9152
|
var context = useContext(ToastContext);
|
|
@@ -9165,11 +9155,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9165
9155
|
context.onClose(e);
|
|
9166
9156
|
}
|
|
9167
9157
|
});
|
|
9168
|
-
return /*#__PURE__*/
|
|
9158
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9169
9159
|
ref: ref
|
|
9170
9160
|
}, props, {
|
|
9171
9161
|
className: classnames(bsPrefix, className)
|
|
9172
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9162
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9173
9163
|
label: closeLabel,
|
|
9174
9164
|
onClick: handleClick,
|
|
9175
9165
|
className: "ml-2 mb-1",
|
|
@@ -9181,7 +9171,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9181
9171
|
|
|
9182
9172
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9183
9173
|
|
|
9184
|
-
var Toast =
|
|
9174
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9185
9175
|
var bsPrefix = _ref.bsPrefix,
|
|
9186
9176
|
className = _ref.className,
|
|
9187
9177
|
children = _ref.children,
|
|
@@ -9196,7 +9186,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9196
9186
|
_ref$autohide = _ref.autohide,
|
|
9197
9187
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9198
9188
|
onClose = _ref.onClose,
|
|
9199
|
-
props = _objectWithoutPropertiesLoose
|
|
9189
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9200
9190
|
|
|
9201
9191
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9202
9192
|
// timer in case these values change.
|
|
@@ -9224,16 +9214,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9224
9214
|
};
|
|
9225
9215
|
}, [onClose]);
|
|
9226
9216
|
var hasAnimation = !!(Transition && animation);
|
|
9227
|
-
var toast = /*#__PURE__*/
|
|
9217
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9228
9218
|
ref: ref,
|
|
9229
9219
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9230
9220
|
role: "alert",
|
|
9231
9221
|
"aria-live": "assertive",
|
|
9232
9222
|
"aria-atomic": "true"
|
|
9233
9223
|
}), children);
|
|
9234
|
-
return /*#__PURE__*/
|
|
9224
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9235
9225
|
value: toastContext
|
|
9236
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9226
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9237
9227
|
in: show,
|
|
9238
9228
|
unmountOnExit: true
|
|
9239
9229
|
}, toast) : toast);
|
|
@@ -9248,7 +9238,7 @@ var noop$5 = function noop() {
|
|
|
9248
9238
|
return undefined;
|
|
9249
9239
|
};
|
|
9250
9240
|
|
|
9251
|
-
var ToggleButton =
|
|
9241
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9252
9242
|
var children = _ref.children,
|
|
9253
9243
|
name = _ref.name,
|
|
9254
9244
|
className = _ref.className,
|
|
@@ -9258,7 +9248,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9258
9248
|
value = _ref.value,
|
|
9259
9249
|
disabled = _ref.disabled,
|
|
9260
9250
|
inputRef = _ref.inputRef,
|
|
9261
|
-
props = _objectWithoutPropertiesLoose
|
|
9251
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9262
9252
|
|
|
9263
9253
|
var _useState = useState(false),
|
|
9264
9254
|
focused = _useState[0],
|
|
@@ -9270,13 +9260,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9270
9260
|
var handleBlur = useCallback(function (e) {
|
|
9271
9261
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9272
9262
|
}, []);
|
|
9273
|
-
return /*#__PURE__*/
|
|
9263
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9274
9264
|
ref: ref,
|
|
9275
9265
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9276
9266
|
type: undefined,
|
|
9277
9267
|
active: !!checked,
|
|
9278
9268
|
as: "label"
|
|
9279
|
-
}), /*#__PURE__*/
|
|
9269
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9280
9270
|
name: name,
|
|
9281
9271
|
type: type,
|
|
9282
9272
|
value: value,
|
|
@@ -9295,7 +9285,7 @@ var defaultProps$D = {
|
|
|
9295
9285
|
type: 'radio',
|
|
9296
9286
|
vertical: false
|
|
9297
9287
|
};
|
|
9298
|
-
var ToggleButtonGroup =
|
|
9288
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9299
9289
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9300
9290
|
value: 'onChange'
|
|
9301
9291
|
}),
|
|
@@ -9304,7 +9294,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9304
9294
|
name = _useUncontrolled.name,
|
|
9305
9295
|
value = _useUncontrolled.value,
|
|
9306
9296
|
onChange = _useUncontrolled.onChange,
|
|
9307
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9297
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9308
9298
|
|
|
9309
9299
|
var getValues = function getValues() {
|
|
9310
9300
|
return value == null ? [] : [].concat(value);
|
|
@@ -9333,7 +9323,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9333
9323
|
};
|
|
9334
9324
|
|
|
9335
9325
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9336
|
-
return /*#__PURE__*/
|
|
9326
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9337
9327
|
ref: ref,
|
|
9338
9328
|
toggle: true
|
|
9339
9329
|
}), map(children, function (child) {
|
|
@@ -9346,7 +9336,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9346
9336
|
return handleToggle(childVal, e);
|
|
9347
9337
|
};
|
|
9348
9338
|
|
|
9349
|
-
return
|
|
9339
|
+
return React.cloneElement(child, {
|
|
9350
9340
|
type: type,
|
|
9351
9341
|
name: child.name || name,
|
|
9352
9342
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9360,7 +9350,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9360
9350
|
var defaultProps$E = {
|
|
9361
9351
|
placement: 'right'
|
|
9362
9352
|
};
|
|
9363
|
-
var Tooltip =
|
|
9353
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9364
9354
|
var bsPrefix = _ref.bsPrefix,
|
|
9365
9355
|
placement = _ref.placement,
|
|
9366
9356
|
className = _ref.className,
|
|
@@ -9369,29 +9359,29 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9369
9359
|
arrowProps = _ref.arrowProps,
|
|
9370
9360
|
_ = _ref.popper,
|
|
9371
9361
|
_2 = _ref.show,
|
|
9372
|
-
props = _objectWithoutPropertiesLoose
|
|
9362
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9373
9363
|
|
|
9374
9364
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9375
9365
|
|
|
9376
9366
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9377
9367
|
primaryPlacement = _ref2[0];
|
|
9378
9368
|
|
|
9379
|
-
return /*#__PURE__*/
|
|
9369
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9380
9370
|
ref: ref,
|
|
9381
9371
|
style: style,
|
|
9382
9372
|
role: "tooltip",
|
|
9383
9373
|
"x-placement": primaryPlacement,
|
|
9384
9374
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9385
|
-
}, props), /*#__PURE__*/
|
|
9375
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9386
9376
|
className: "arrow"
|
|
9387
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9377
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9388
9378
|
className: bsPrefix + "-inner"
|
|
9389
9379
|
}, children));
|
|
9390
9380
|
});
|
|
9391
9381
|
Tooltip.defaultProps = defaultProps$E;
|
|
9392
9382
|
Tooltip.displayName = 'Tooltip';
|
|
9393
9383
|
|
|
9394
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9384
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9395
9385
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9396
9386
|
styleInject(css);
|
|
9397
9387
|
|
|
@@ -9402,54 +9392,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9402
9392
|
client = props.client;
|
|
9403
9393
|
|
|
9404
9394
|
|
|
9405
|
-
return
|
|
9395
|
+
return React.createElement(
|
|
9406
9396
|
'div',
|
|
9407
9397
|
{ className: styles.article },
|
|
9408
|
-
|
|
9398
|
+
React.createElement(
|
|
9409
9399
|
'a',
|
|
9410
9400
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9411
|
-
|
|
9401
|
+
React.createElement(
|
|
9412
9402
|
'div',
|
|
9413
9403
|
{ className: styles.thumb },
|
|
9414
|
-
|
|
9404
|
+
React.createElement(
|
|
9415
9405
|
'figure',
|
|
9416
9406
|
null,
|
|
9417
|
-
|
|
9407
|
+
React.createElement(
|
|
9418
9408
|
LazyLoad,
|
|
9419
9409
|
null,
|
|
9420
|
-
|
|
9410
|
+
React.createElement('img', {
|
|
9421
9411
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9422
9412
|
})
|
|
9423
9413
|
)
|
|
9424
9414
|
)
|
|
9425
9415
|
),
|
|
9426
|
-
|
|
9416
|
+
React.createElement(
|
|
9427
9417
|
'div',
|
|
9428
9418
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9429
|
-
|
|
9419
|
+
React.createElement(
|
|
9430
9420
|
'div',
|
|
9431
9421
|
{ className: styles.name },
|
|
9432
9422
|
data.name
|
|
9433
9423
|
),
|
|
9434
|
-
data.published &&
|
|
9424
|
+
data.published && React.createElement(
|
|
9435
9425
|
'p',
|
|
9436
9426
|
{ className: styles.published },
|
|
9437
9427
|
moment(data.published).format('MMMM Do YYYY')
|
|
9438
9428
|
),
|
|
9439
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9429
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9440
9430
|
'p',
|
|
9441
9431
|
{ className: styles.author },
|
|
9442
9432
|
'By ',
|
|
9443
|
-
|
|
9433
|
+
React.createElement(
|
|
9444
9434
|
'span',
|
|
9445
9435
|
null,
|
|
9446
9436
|
data.authorMapping.displayName
|
|
9447
9437
|
)
|
|
9448
9438
|
),
|
|
9449
|
-
data.description &&
|
|
9439
|
+
data.description && React.createElement(
|
|
9450
9440
|
'div',
|
|
9451
9441
|
{ className: 'media-series-desc' },
|
|
9452
|
-
|
|
9442
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9453
9443
|
)
|
|
9454
9444
|
)
|
|
9455
9445
|
)
|
|
@@ -9478,11 +9468,11 @@ var Filter = function Filter(_ref) {
|
|
|
9478
9468
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9479
9469
|
grandChildData = _useState6[0],
|
|
9480
9470
|
setGrandChildData = _useState6[1];
|
|
9481
|
-
/*
|
|
9482
|
-
{parent: showAll,
|
|
9483
|
-
chidlren: show selected from parent,
|
|
9484
|
-
grandchildren: show selected from children
|
|
9485
|
-
}
|
|
9471
|
+
/*
|
|
9472
|
+
{parent: showAll,
|
|
9473
|
+
chidlren: show selected from parent,
|
|
9474
|
+
grandchildren: show selected from children
|
|
9475
|
+
}
|
|
9486
9476
|
*/
|
|
9487
9477
|
|
|
9488
9478
|
|
|
@@ -9497,7 +9487,7 @@ var Filter = function Filter(_ref) {
|
|
|
9497
9487
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9498
9488
|
if (type === 'parent') {
|
|
9499
9489
|
setParentData(function (prevState) {
|
|
9500
|
-
return _extends$
|
|
9490
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9501
9491
|
});
|
|
9502
9492
|
if (group && group.children && group.children.length > 0) {
|
|
9503
9493
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9511,7 +9501,7 @@ var Filter = function Filter(_ref) {
|
|
|
9511
9501
|
}
|
|
9512
9502
|
if (type === 'child') {
|
|
9513
9503
|
setChildData(function (prevState) {
|
|
9514
|
-
return _extends$
|
|
9504
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9515
9505
|
});
|
|
9516
9506
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9517
9507
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9530,7 +9520,7 @@ var Filter = function Filter(_ref) {
|
|
|
9530
9520
|
}
|
|
9531
9521
|
if (type === 'grandchild') {
|
|
9532
9522
|
setGrandChildData(function (prevState) {
|
|
9533
|
-
return _extends$
|
|
9523
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9534
9524
|
});
|
|
9535
9525
|
//handle filter
|
|
9536
9526
|
if (!group._id) {
|
|
@@ -9546,13 +9536,13 @@ var Filter = function Filter(_ref) {
|
|
|
9546
9536
|
}
|
|
9547
9537
|
};
|
|
9548
9538
|
|
|
9549
|
-
return
|
|
9539
|
+
return React.createElement(
|
|
9550
9540
|
'div',
|
|
9551
9541
|
{ className: 'flex-container' },
|
|
9552
|
-
parentData &&
|
|
9542
|
+
parentData && React.createElement(
|
|
9553
9543
|
DropdownButton,
|
|
9554
9544
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9555
|
-
|
|
9545
|
+
React.createElement(
|
|
9556
9546
|
Dropdown$1.Item,
|
|
9557
9547
|
{ onSelect: function onSelect() {
|
|
9558
9548
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9561,7 +9551,7 @@ var Filter = function Filter(_ref) {
|
|
|
9561
9551
|
),
|
|
9562
9552
|
parentData.data.map(function (docGroup) {
|
|
9563
9553
|
if (!docGroup._id) return null;
|
|
9564
|
-
return
|
|
9554
|
+
return React.createElement(
|
|
9565
9555
|
Dropdown$1.Item,
|
|
9566
9556
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9567
9557
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9570,10 +9560,10 @@ var Filter = function Filter(_ref) {
|
|
|
9570
9560
|
);
|
|
9571
9561
|
})
|
|
9572
9562
|
),
|
|
9573
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9563
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9574
9564
|
DropdownButton,
|
|
9575
9565
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9576
|
-
|
|
9566
|
+
React.createElement(
|
|
9577
9567
|
Dropdown$1.Item,
|
|
9578
9568
|
{ onSelect: function onSelect() {
|
|
9579
9569
|
return handleFilterSelect({}, 'child');
|
|
@@ -9582,7 +9572,7 @@ var Filter = function Filter(_ref) {
|
|
|
9582
9572
|
),
|
|
9583
9573
|
childData.data.map(function (docGroup) {
|
|
9584
9574
|
if (!docGroup._id) return null;
|
|
9585
|
-
return
|
|
9575
|
+
return React.createElement(
|
|
9586
9576
|
Dropdown$1.Item,
|
|
9587
9577
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9588
9578
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9591,10 +9581,10 @@ var Filter = function Filter(_ref) {
|
|
|
9591
9581
|
);
|
|
9592
9582
|
})
|
|
9593
9583
|
),
|
|
9594
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9584
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9595
9585
|
DropdownButton,
|
|
9596
9586
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9597
|
-
|
|
9587
|
+
React.createElement(
|
|
9598
9588
|
Dropdown$1.Item,
|
|
9599
9589
|
{ onSelect: function onSelect() {
|
|
9600
9590
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9603,7 +9593,7 @@ var Filter = function Filter(_ref) {
|
|
|
9603
9593
|
),
|
|
9604
9594
|
grandChildData.data.map(function (docGroup) {
|
|
9605
9595
|
if (!docGroup._id) return null;
|
|
9606
|
-
return
|
|
9596
|
+
return React.createElement(
|
|
9607
9597
|
Dropdown$1.Item,
|
|
9608
9598
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9609
9599
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9612,7 +9602,7 @@ var Filter = function Filter(_ref) {
|
|
|
9612
9602
|
);
|
|
9613
9603
|
})
|
|
9614
9604
|
),
|
|
9615
|
-
|
|
9605
|
+
React.createElement(
|
|
9616
9606
|
'style',
|
|
9617
9607
|
{ jsx: 'true' },
|
|
9618
9608
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9660,7 +9650,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9660
9650
|
while (1) {
|
|
9661
9651
|
switch (_context.prev = _context.next) {
|
|
9662
9652
|
case 0:
|
|
9663
|
-
newParams = _extends$
|
|
9653
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9664
9654
|
filterQuery = void 0;
|
|
9665
9655
|
|
|
9666
9656
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9702,27 +9692,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9702
9692
|
}();
|
|
9703
9693
|
|
|
9704
9694
|
if (props.statusCode === 404) {
|
|
9705
|
-
return
|
|
9695
|
+
return React.createElement(
|
|
9706
9696
|
'div',
|
|
9707
9697
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9708
|
-
|
|
9698
|
+
React.createElement(
|
|
9709
9699
|
'h3',
|
|
9710
9700
|
null,
|
|
9711
9701
|
'404: Resource not found'
|
|
9712
9702
|
),
|
|
9713
|
-
|
|
9703
|
+
React.createElement(
|
|
9714
9704
|
'p',
|
|
9715
9705
|
null,
|
|
9716
9706
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9717
9707
|
),
|
|
9718
|
-
|
|
9708
|
+
React.createElement(
|
|
9719
9709
|
'p',
|
|
9720
9710
|
null,
|
|
9721
9711
|
'Click here to',
|
|
9722
|
-
|
|
9712
|
+
React.createElement(
|
|
9723
9713
|
Link,
|
|
9724
9714
|
{ href: '/' },
|
|
9725
|
-
|
|
9715
|
+
React.createElement(
|
|
9726
9716
|
'a',
|
|
9727
9717
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9728
9718
|
' return to homepage.'
|
|
@@ -9732,17 +9722,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9732
9722
|
);
|
|
9733
9723
|
}
|
|
9734
9724
|
|
|
9735
|
-
return
|
|
9725
|
+
return React.createElement(
|
|
9736
9726
|
'div',
|
|
9737
9727
|
{ className: 'mb-5' },
|
|
9738
|
-
props.docGroup && props.docGroup.description &&
|
|
9739
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9728
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9729
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9740
9730
|
'div',
|
|
9741
9731
|
{ className: '' },
|
|
9742
|
-
|
|
9743
|
-
|
|
9732
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9733
|
+
React.createElement('hr', null)
|
|
9744
9734
|
),
|
|
9745
|
-
seriesData &&
|
|
9735
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9746
9736
|
deck: MediaSeriesCard,
|
|
9747
9737
|
variant: 'left',
|
|
9748
9738
|
defaultImage: '/placeholder.jpg',
|