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