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