@mjhls/mjh-framework 1.0.849 → 1.0.850-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +13 -13
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +13 -13
- package/dist/cjs/{ADInfeed-86e987a0.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +13 -13
- package/dist/cjs/ADSponsoredResources.js +13 -13
- package/dist/cjs/ADWebcast.js +13 -13
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-5d6f91d7.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +903 -11
- package/dist/cjs/AlgoliaSearch.js +14011 -48
- package/dist/cjs/AlphabeticList.js +16 -17
- package/dist/cjs/ArticleCarousel.js +11 -12
- package/dist/cjs/ArticleProgramLandingPage.js +24 -25
- package/dist/cjs/ArticleSeriesLandingPage.js +21 -21
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +144 -232
- package/dist/cjs/AuthWrapper.js +561 -26
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +65 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +34 -36
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +82 -85
- package/dist/cjs/DeckQueue.js +70 -73
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-26baccf1.js} +23 -23
- package/dist/cjs/EventsDeck.js +134 -141
- package/dist/cjs/ExternalResources.js +48 -49
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +205 -209
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +38 -39
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +61 -66
- package/dist/cjs/IssueLanding.js +58 -61
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -23
- package/dist/cjs/MasterDeck.js +59 -59
- package/dist/cjs/MediaSeriesLanding.js +909 -801
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +187 -289
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +20 -22
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +110 -114
- package/dist/cjs/QueueDeckExpanded.js +1129 -1109
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/Segment.js +362 -337
- package/dist/cjs/SeriesListingDeck.js +27 -26
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +55 -60
- package/dist/cjs/TaxonomyDescription.js +23 -24
- package/dist/cjs/TemplateNormal.js +36 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +41 -45
- package/dist/cjs/VideoSeriesCard.js +23 -24
- 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 +201 -205
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-0a918631.js} +1 -0
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getSerializers.js +13 -13
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-f1821260.js} +11 -11
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
- package/dist/cjs/{index-80e98193.js → index-bc88f898.js} +1099 -872
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +62 -65
- package/dist/cjs/{inherits-87492b40.js → inherits-452ff02c.js} +4 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +10 -9
- package/dist/esm/AD300x250x600.js +10 -9
- package/dist/esm/AD728x90.js +11 -10
- package/dist/esm/ADFloatingFooter.js +12 -11
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +12 -11
- package/dist/esm/{ADInfeed-4096aff2.js → ADInfeed-bbdd5398.js} +7 -7
- package/dist/esm/ADSkyscraper.js +12 -11
- package/dist/esm/ADSponsoredResources.js +12 -11
- package/dist/esm/ADWebcast.js +12 -11
- package/dist/esm/ADWelcome.js +16 -15
- package/dist/esm/{ADlgInfeed-8e4fcfbd.js → ADlgInfeed-4473ee3b.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +8 -7
- package/dist/esm/AdSlotsProvider.js +904 -11
- package/dist/esm/AlgoliaSearch.js +14004 -40
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +23 -23
- package/dist/esm/ArticleSeriesLandingPage.js +20 -19
- package/dist/esm/ArticleSeriesListing.js +38 -37
- package/dist/esm/Auth.js +128 -212
- package/dist/esm/AuthWrapper.js +561 -24
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/Beam.js +1 -1
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +63 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +33 -32
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +79 -78
- package/dist/esm/DeckQueue.js +66 -65
- package/dist/esm/{Dfp-85c9513e.js → Dfp-b7236041.js} +11 -10
- package/dist/esm/EventsDeck.js +110 -110
- package/dist/esm/ExternalResources.js +44 -44
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +175 -174
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +101 -101
- 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 +37 -37
- 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 -59
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +19 -18
- package/dist/esm/MasterDeck.js +57 -56
- package/dist/esm/MediaSeriesLanding.js +673 -562
- package/dist/esm/NavDvm.js +47 -47
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +104 -104
- package/dist/esm/NavNative.js +93 -93
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +79 -180
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -20
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +97 -97
- package/dist/esm/QueueDeckExpanded.js +1120 -1100
- 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/Segment.js +363 -338
- package/dist/esm/SeriesListingDeck.js +22 -21
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +51 -51
- package/dist/esm/TaxonomyDescription.js +19 -19
- package/dist/esm/TemplateNormal.js +34 -33
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +19 -19
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +35 -35
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +20 -19
- package/dist/esm/VideoSeriesListing.js +55 -54
- package/dist/esm/View.js +185 -185
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-4877b617.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +2 -2
- package/dist/esm/getRelatedArticle.js +127 -63
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +14 -14
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index-295b6942.js → index-f2a0d400.js} +1061 -826
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +55 -55
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-0d8cda6e.js → inherits-cf8dde54.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -6,147 +6,66 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends$
|
|
9
|
+
import { _ as _extends$2 } from './extends-6f2fcc99.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-
|
|
14
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
17
|
-
import './
|
|
16
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
|
+
import './events-6c3a7a63.js';
|
|
18
|
+
import './index-41a678ea.js';
|
|
18
19
|
import PropTypes from 'prop-types';
|
|
19
20
|
import 'react-bootstrap/Container';
|
|
20
21
|
import 'react-bootstrap/Row';
|
|
21
22
|
import 'react-bootstrap/Col';
|
|
22
23
|
import 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
24
25
|
import 'next/router';
|
|
25
26
|
import './isSymbol-1981418f.js';
|
|
26
27
|
import './debounce-9207d8ee.js';
|
|
27
28
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import './index.es-
|
|
29
|
+
import './index.es-29c1cef5.js';
|
|
29
30
|
import ReactDOM from 'react-dom';
|
|
30
|
-
import './visibility-sensor-
|
|
31
|
-
import './index-
|
|
31
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
32
|
+
import './index-73819142.js';
|
|
32
33
|
import urlFor from './urlFor.js';
|
|
33
|
-
import { L as LazyLoad } from './index-
|
|
34
|
-
import './main-
|
|
34
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
35
|
+
import './main-e4a934b2.js';
|
|
35
36
|
import './entities-7cc3bf45.js';
|
|
36
37
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
38
|
import './stringify-4330ccdc.js';
|
|
38
|
-
import {
|
|
39
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-4877b617.js';
|
|
39
40
|
import './Segment.js';
|
|
40
41
|
import './Beam.js';
|
|
41
42
|
import './AdSlot.js';
|
|
42
|
-
import './ADInfeed-
|
|
43
|
-
import './lodash-
|
|
44
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADInfeed-bbdd5398.js';
|
|
44
|
+
import './lodash-17fdfebb.js';
|
|
45
|
+
import './ADlgInfeed-4473ee3b.js';
|
|
45
46
|
import 'react-bootstrap/Button';
|
|
46
|
-
import { B as BlockContent } from './BlockContent-
|
|
47
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
47
48
|
import './index-c7e2ac95.js';
|
|
48
49
|
import './smoothscroll-0cd4c7a6.js';
|
|
49
50
|
import './GroupDeck.js';
|
|
50
51
|
import 'react-bootstrap';
|
|
51
52
|
import './iconBase-602d52fe.js';
|
|
52
|
-
import './index.esm-
|
|
53
|
-
import { g as getSerializers } from './index-
|
|
53
|
+
import './index.esm-29e48d38.js';
|
|
54
|
+
import { g as getSerializers } from './index-f2a0d400.js';
|
|
54
55
|
import './util-7700fc59.js';
|
|
55
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
56
57
|
import 'next/head';
|
|
57
58
|
import 'react-share';
|
|
58
59
|
import './SocialShare.js';
|
|
59
60
|
import './_object-to-array-7e804fce.js';
|
|
60
61
|
import 'react-bootstrap/Pagination';
|
|
61
62
|
import 'react-bootstrap/Figure';
|
|
62
|
-
import 'react-script-tag';
|
|
63
63
|
import MasterDeck from './MasterDeck.js';
|
|
64
64
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
65
66
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
66
67
|
import Link from 'next/link';
|
|
67
68
|
|
|
68
|
-
function _extends() {
|
|
69
|
-
_extends = Object.assign || function (target) {
|
|
70
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
71
|
-
var source = arguments[i];
|
|
72
|
-
|
|
73
|
-
for (var key in source) {
|
|
74
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
75
|
-
target[key] = source[key];
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return target;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
return _extends.apply(this, arguments);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
87
|
-
if (source == null) return {};
|
|
88
|
-
var target = {};
|
|
89
|
-
var sourceKeys = Object.keys(source);
|
|
90
|
-
var key, i;
|
|
91
|
-
|
|
92
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
93
|
-
key = sourceKeys[i];
|
|
94
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
95
|
-
target[key] = source[key];
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return target;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
var classnames = createCommonjsModule(function (module) {
|
|
102
|
-
/*!
|
|
103
|
-
Copyright (c) 2017 Jed Watson.
|
|
104
|
-
Licensed under the MIT License (MIT), see
|
|
105
|
-
http://jedwatson.github.io/classnames
|
|
106
|
-
*/
|
|
107
|
-
/* global define */
|
|
108
|
-
|
|
109
|
-
(function () {
|
|
110
|
-
|
|
111
|
-
var hasOwn = {}.hasOwnProperty;
|
|
112
|
-
|
|
113
|
-
function classNames () {
|
|
114
|
-
var classes = [];
|
|
115
|
-
|
|
116
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
117
|
-
var arg = arguments[i];
|
|
118
|
-
if (!arg) continue;
|
|
119
|
-
|
|
120
|
-
var argType = typeof arg;
|
|
121
|
-
|
|
122
|
-
if (argType === 'string' || argType === 'number') {
|
|
123
|
-
classes.push(arg);
|
|
124
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
125
|
-
var inner = classNames.apply(null, arg);
|
|
126
|
-
if (inner) {
|
|
127
|
-
classes.push(inner);
|
|
128
|
-
}
|
|
129
|
-
} else if (argType === 'object') {
|
|
130
|
-
for (var key in arg) {
|
|
131
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
132
|
-
classes.push(key);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
return classes.join(' ');
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
if ( module.exports) {
|
|
142
|
-
classNames.default = classNames;
|
|
143
|
-
module.exports = classNames;
|
|
144
|
-
} else {
|
|
145
|
-
window.classNames = classNames;
|
|
146
|
-
}
|
|
147
|
-
}());
|
|
148
|
-
});
|
|
149
|
-
|
|
150
69
|
/**
|
|
151
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
152
71
|
*
|
|
@@ -240,7 +159,7 @@ function useUncontrolled(props, config) {
|
|
|
240
159
|
var _ref = result,
|
|
241
160
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
242
161
|
propsValue = _ref[fieldName],
|
|
243
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
162
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
244
163
|
|
|
245
164
|
var handlerName = config[fieldName];
|
|
246
165
|
|
|
@@ -248,7 +167,7 @@ function useUncontrolled(props, config) {
|
|
|
248
167
|
value = _useUncontrolledProp[0],
|
|
249
168
|
handler = _useUncontrolledProp[1];
|
|
250
169
|
|
|
251
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
170
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
252
171
|
}, props);
|
|
253
172
|
}
|
|
254
173
|
|
|
@@ -258,7 +177,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
258
177
|
subClass.__proto__ = superClass;
|
|
259
178
|
}
|
|
260
179
|
|
|
261
|
-
var ThemeContext =
|
|
180
|
+
var ThemeContext = React__default.createContext({});
|
|
262
181
|
var Consumer = ThemeContext.Consumer,
|
|
263
182
|
Provider = ThemeContext.Provider;
|
|
264
183
|
|
|
@@ -267,7 +186,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
267
186
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
268
187
|
}
|
|
269
188
|
|
|
270
|
-
var SelectableContext =
|
|
189
|
+
var SelectableContext = React__default.createContext(null);
|
|
271
190
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
272
191
|
if (href === void 0) {
|
|
273
192
|
href = null;
|
|
@@ -277,7 +196,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
277
196
|
return href || null;
|
|
278
197
|
};
|
|
279
198
|
|
|
280
|
-
var context =
|
|
199
|
+
var context = React__default.createContext(null);
|
|
281
200
|
context.displayName = 'AccordionContext';
|
|
282
201
|
|
|
283
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -293,13 +212,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
293
212
|
if (onClick) onClick(e);
|
|
294
213
|
};
|
|
295
214
|
}
|
|
296
|
-
var AccordionToggle =
|
|
215
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
297
216
|
var _ref$as = _ref.as,
|
|
298
217
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
299
218
|
children = _ref.children,
|
|
300
219
|
eventKey = _ref.eventKey,
|
|
301
220
|
onClick = _ref.onClick,
|
|
302
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
221
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
303
222
|
|
|
304
223
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
305
224
|
|
|
@@ -307,7 +226,7 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
307
226
|
props.type = 'button';
|
|
308
227
|
}
|
|
309
228
|
|
|
310
|
-
return /*#__PURE__*/
|
|
229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
311
230
|
ref: ref,
|
|
312
231
|
onClick: accordionOnClick
|
|
313
232
|
}, props), children);
|
|
@@ -504,7 +423,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
504
423
|
exitActive: PropTypes.string
|
|
505
424
|
})]) : null;
|
|
506
425
|
|
|
507
|
-
var TransitionGroupContext =
|
|
426
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
508
427
|
|
|
509
428
|
var UNMOUNTED = 'unmounted';
|
|
510
429
|
var EXITED = 'exited';
|
|
@@ -889,19 +808,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
889
808
|
_onExiting = _this$props.onExiting,
|
|
890
809
|
_onExited = _this$props.onExited,
|
|
891
810
|
_nodeRef = _this$props.nodeRef,
|
|
892
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
811
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
893
812
|
|
|
894
813
|
return (
|
|
895
814
|
/*#__PURE__*/
|
|
896
815
|
// allows for nested Transitions
|
|
897
|
-
|
|
816
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
898
817
|
value: null
|
|
899
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
818
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
900
819
|
);
|
|
901
820
|
};
|
|
902
821
|
|
|
903
822
|
return Transition;
|
|
904
|
-
}(
|
|
823
|
+
}(React__default.Component);
|
|
905
824
|
|
|
906
825
|
Transition.contextType = TransitionGroupContext;
|
|
907
826
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1177,7 +1096,7 @@ var defaultProps = {
|
|
|
1177
1096
|
appear: false,
|
|
1178
1097
|
getDimensionValue: getDefaultDimensionValue
|
|
1179
1098
|
};
|
|
1180
|
-
var Collapse =
|
|
1099
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1181
1100
|
var onEnter = _ref.onEnter,
|
|
1182
1101
|
onEntering = _ref.onEntering,
|
|
1183
1102
|
onEntered = _ref.onEntered,
|
|
@@ -1189,7 +1108,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1189
1108
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1190
1109
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1191
1110
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1192
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1111
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1193
1112
|
|
|
1194
1113
|
/* Compute dimension */
|
|
1195
1114
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1224,8 +1143,8 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1224
1143
|
elem.style[computedDimension] = null;
|
|
1225
1144
|
}, onExiting);
|
|
1226
1145
|
}, [computedDimension, onExiting]);
|
|
1227
|
-
return /*#__PURE__*/
|
|
1228
|
-
, _extends({
|
|
1146
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1147
|
+
, _extends$1({
|
|
1229
1148
|
ref: ref,
|
|
1230
1149
|
addEndListener: transitionEnd
|
|
1231
1150
|
}, props, {
|
|
@@ -1236,7 +1155,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1236
1155
|
onExit: handleExit,
|
|
1237
1156
|
onExiting: handleExiting
|
|
1238
1157
|
}), function (state, innerProps) {
|
|
1239
|
-
return
|
|
1158
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1240
1159
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1241
1160
|
}));
|
|
1242
1161
|
});
|
|
@@ -1245,20 +1164,24 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1245
1164
|
// @ts-ignore
|
|
1246
1165
|
Collapse.defaultProps = defaultProps;
|
|
1247
1166
|
|
|
1248
|
-
var AccordionCollapse =
|
|
1167
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1249
1168
|
var children = _ref.children,
|
|
1250
1169
|
eventKey = _ref.eventKey,
|
|
1251
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1170
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1252
1171
|
|
|
1253
|
-
var contextEventKey = useContext(context);
|
|
1254
|
-
|
|
1172
|
+
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
|
+
// from collapsing the accordion when clicked.
|
|
1174
|
+
|
|
1175
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1176
|
+
value: null
|
|
1177
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1255
1178
|
ref: ref,
|
|
1256
1179
|
in: contextEventKey === eventKey
|
|
1257
|
-
}, props), /*#__PURE__*/
|
|
1180
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1258
1181
|
});
|
|
1259
1182
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1260
1183
|
|
|
1261
|
-
var Accordion =
|
|
1184
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1262
1185
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1263
1186
|
activeKey: 'onSelect'
|
|
1264
1187
|
}),
|
|
@@ -1269,14 +1192,14 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1269
1192
|
children = _useUncontrolled.children,
|
|
1270
1193
|
className = _useUncontrolled.className,
|
|
1271
1194
|
onSelect = _useUncontrolled.onSelect,
|
|
1272
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1195
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1273
1196
|
|
|
1274
1197
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1275
|
-
return /*#__PURE__*/
|
|
1198
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1276
1199
|
value: activeKey || null
|
|
1277
|
-
}, /*#__PURE__*/
|
|
1200
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1278
1201
|
value: onSelect || null
|
|
1279
|
-
}, /*#__PURE__*/
|
|
1202
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1280
1203
|
ref: ref
|
|
1281
1204
|
}, controlledProps, {
|
|
1282
1205
|
className: finalClassName
|
|
@@ -1320,22 +1243,22 @@ var defaultProps$1 = {
|
|
|
1320
1243
|
appear: false
|
|
1321
1244
|
};
|
|
1322
1245
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1323
|
-
var Fade =
|
|
1246
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1324
1247
|
var className = _ref.className,
|
|
1325
1248
|
children = _ref.children,
|
|
1326
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1249
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1327
1250
|
|
|
1328
1251
|
var handleEnter = useCallback(function (node) {
|
|
1329
1252
|
triggerBrowserReflow(node);
|
|
1330
1253
|
if (props.onEnter) props.onEnter(node);
|
|
1331
1254
|
}, [props]);
|
|
1332
|
-
return /*#__PURE__*/
|
|
1255
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1333
1256
|
ref: ref,
|
|
1334
1257
|
addEndListener: transitionEnd
|
|
1335
1258
|
}, props, {
|
|
1336
1259
|
onEnter: handleEnter
|
|
1337
1260
|
}), function (status, innerProps) {
|
|
1338
|
-
return
|
|
1261
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1339
1262
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1340
1263
|
}));
|
|
1341
1264
|
});
|
|
@@ -1350,20 +1273,20 @@ var propTypes = {
|
|
|
1350
1273
|
var defaultProps$2 = {
|
|
1351
1274
|
label: 'Close'
|
|
1352
1275
|
};
|
|
1353
|
-
var CloseButton =
|
|
1276
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1354
1277
|
var label = _ref.label,
|
|
1355
1278
|
onClick = _ref.onClick,
|
|
1356
1279
|
className = _ref.className,
|
|
1357
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1280
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1358
1281
|
|
|
1359
|
-
return /*#__PURE__*/
|
|
1282
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1360
1283
|
ref: ref,
|
|
1361
1284
|
type: "button",
|
|
1362
1285
|
className: classnames('close', className),
|
|
1363
1286
|
onClick: onClick
|
|
1364
|
-
}, props), /*#__PURE__*/
|
|
1287
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1365
1288
|
"aria-hidden": "true"
|
|
1366
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1289
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1367
1290
|
className: "sr-only"
|
|
1368
1291
|
}, label));
|
|
1369
1292
|
});
|
|
@@ -1372,8 +1295,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1372
1295
|
CloseButton.defaultProps = defaultProps$2;
|
|
1373
1296
|
|
|
1374
1297
|
var divWithClassName = (function (className) {
|
|
1375
|
-
return
|
|
1376
|
-
return /*#__PURE__*/
|
|
1298
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1299
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1377
1300
|
ref: ref,
|
|
1378
1301
|
className: classnames(p.className, className)
|
|
1379
1302
|
}));
|
|
@@ -1399,15 +1322,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1399
1322
|
Component = _ref.Component,
|
|
1400
1323
|
defaultProps = _ref.defaultProps;
|
|
1401
1324
|
|
|
1402
|
-
var BsComponent =
|
|
1325
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1403
1326
|
var className = _ref2.className,
|
|
1404
1327
|
bsPrefix = _ref2.bsPrefix,
|
|
1405
1328
|
_ref2$as = _ref2.as,
|
|
1406
1329
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1407
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1330
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1408
1331
|
|
|
1409
1332
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1410
|
-
return /*#__PURE__*/
|
|
1333
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1411
1334
|
ref: ref,
|
|
1412
1335
|
className: classnames(className, resolvedPrefix)
|
|
1413
1336
|
}, props));
|
|
@@ -1429,12 +1352,12 @@ function isTrivialHref(href) {
|
|
|
1429
1352
|
*/
|
|
1430
1353
|
|
|
1431
1354
|
|
|
1432
|
-
var SafeAnchor =
|
|
1355
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1433
1356
|
var _ref$as = _ref.as,
|
|
1434
1357
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1435
1358
|
disabled = _ref.disabled,
|
|
1436
1359
|
onKeyDown = _ref.onKeyDown,
|
|
1437
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1360
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1438
1361
|
|
|
1439
1362
|
var handleClick = function handleClick(event) {
|
|
1440
1363
|
var href = props.href,
|
|
@@ -1473,7 +1396,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1473
1396
|
props['aria-disabled'] = true;
|
|
1474
1397
|
}
|
|
1475
1398
|
|
|
1476
|
-
return /*#__PURE__*/
|
|
1399
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1477
1400
|
ref: ref
|
|
1478
1401
|
}, props, {
|
|
1479
1402
|
onClick: handleClick,
|
|
@@ -1495,7 +1418,7 @@ var defaultProps$3 = {
|
|
|
1495
1418
|
transition: Fade,
|
|
1496
1419
|
closeLabel: 'Close alert'
|
|
1497
1420
|
};
|
|
1498
|
-
var Alert =
|
|
1421
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1499
1422
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1500
1423
|
show: 'onClose'
|
|
1501
1424
|
}),
|
|
@@ -1508,7 +1431,7 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1508
1431
|
onClose = _useUncontrolled.onClose,
|
|
1509
1432
|
dismissible = _useUncontrolled.dismissible,
|
|
1510
1433
|
transition = _useUncontrolled.transition,
|
|
1511
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1434
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1512
1435
|
|
|
1513
1436
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1514
1437
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1517,17 +1440,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1517
1440
|
}
|
|
1518
1441
|
});
|
|
1519
1442
|
var Transition = transition === true ? Fade : transition;
|
|
1520
|
-
var alert = /*#__PURE__*/
|
|
1443
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1521
1444
|
role: "alert"
|
|
1522
1445
|
}, Transition ? props : undefined, {
|
|
1523
1446
|
ref: ref,
|
|
1524
1447
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1525
|
-
}), dismissible && /*#__PURE__*/
|
|
1448
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1526
1449
|
onClick: handleClose,
|
|
1527
1450
|
label: closeLabel
|
|
1528
1451
|
}), children);
|
|
1529
1452
|
if (!Transition) return show ? alert : null;
|
|
1530
|
-
return /*#__PURE__*/
|
|
1453
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1531
1454
|
unmountOnExit: true
|
|
1532
1455
|
}, props, {
|
|
1533
1456
|
ref: undefined,
|
|
@@ -1542,17 +1465,17 @@ Alert.Heading = AlertHeading;
|
|
|
1542
1465
|
var defaultProps$4 = {
|
|
1543
1466
|
pill: false
|
|
1544
1467
|
};
|
|
1545
|
-
var Badge =
|
|
1468
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1546
1469
|
var bsPrefix = _ref.bsPrefix,
|
|
1547
1470
|
variant = _ref.variant,
|
|
1548
1471
|
pill = _ref.pill,
|
|
1549
1472
|
className = _ref.className,
|
|
1550
1473
|
_ref$as = _ref.as,
|
|
1551
1474
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1552
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1475
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1553
1476
|
|
|
1554
1477
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1555
|
-
return /*#__PURE__*/
|
|
1478
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1556
1479
|
ref: ref
|
|
1557
1480
|
}, props, {
|
|
1558
1481
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1565,7 +1488,7 @@ var defaultProps$5 = {
|
|
|
1565
1488
|
active: false,
|
|
1566
1489
|
linkProps: {}
|
|
1567
1490
|
};
|
|
1568
|
-
var BreadcrumbItem =
|
|
1491
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1569
1492
|
var bsPrefix = _ref.bsPrefix,
|
|
1570
1493
|
active = _ref.active,
|
|
1571
1494
|
children = _ref.children,
|
|
@@ -1578,17 +1501,17 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1578
1501
|
href = _ref.href,
|
|
1579
1502
|
title = _ref.title,
|
|
1580
1503
|
target = _ref.target,
|
|
1581
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1504
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1582
1505
|
|
|
1583
1506
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1584
|
-
return /*#__PURE__*/
|
|
1507
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1585
1508
|
ref: ref
|
|
1586
1509
|
}, props, {
|
|
1587
1510
|
className: classnames(prefix, className, {
|
|
1588
1511
|
active: active
|
|
1589
1512
|
}),
|
|
1590
1513
|
"aria-current": active ? 'page' : undefined
|
|
1591
|
-
}), active ? children : /*#__PURE__*/
|
|
1514
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1592
1515
|
href: href,
|
|
1593
1516
|
title: title,
|
|
1594
1517
|
target: target
|
|
@@ -1601,7 +1524,7 @@ var defaultProps$6 = {
|
|
|
1601
1524
|
label: 'breadcrumb',
|
|
1602
1525
|
listProps: {}
|
|
1603
1526
|
};
|
|
1604
|
-
var Breadcrumb =
|
|
1527
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1605
1528
|
var bsPrefix = _ref.bsPrefix,
|
|
1606
1529
|
className = _ref.className,
|
|
1607
1530
|
listProps = _ref.listProps,
|
|
@@ -1609,14 +1532,14 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1609
1532
|
label = _ref.label,
|
|
1610
1533
|
_ref$as = _ref.as,
|
|
1611
1534
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1612
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1535
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1613
1536
|
|
|
1614
1537
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1615
|
-
return /*#__PURE__*/
|
|
1538
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1616
1539
|
"aria-label": label,
|
|
1617
1540
|
className: className,
|
|
1618
1541
|
ref: ref
|
|
1619
|
-
}, props), /*#__PURE__*/
|
|
1542
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1620
1543
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1621
1544
|
}), children));
|
|
1622
1545
|
});
|
|
@@ -1629,7 +1552,7 @@ var defaultProps$7 = {
|
|
|
1629
1552
|
active: false,
|
|
1630
1553
|
disabled: false
|
|
1631
1554
|
};
|
|
1632
|
-
var Button =
|
|
1555
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1633
1556
|
var bsPrefix = _ref.bsPrefix,
|
|
1634
1557
|
variant = _ref.variant,
|
|
1635
1558
|
size = _ref.size,
|
|
@@ -1638,13 +1561,13 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1638
1561
|
block = _ref.block,
|
|
1639
1562
|
type = _ref.type,
|
|
1640
1563
|
as = _ref.as,
|
|
1641
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1564
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1642
1565
|
|
|
1643
1566
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1644
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1567
|
+
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1645
1568
|
|
|
1646
1569
|
if (props.href) {
|
|
1647
|
-
return /*#__PURE__*/
|
|
1570
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1648
1571
|
as: as,
|
|
1649
1572
|
ref: ref,
|
|
1650
1573
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1662,7 +1585,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1662
1585
|
}
|
|
1663
1586
|
|
|
1664
1587
|
var Component = as || 'button';
|
|
1665
|
-
return /*#__PURE__*/
|
|
1588
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1666
1589
|
className: classes
|
|
1667
1590
|
}));
|
|
1668
1591
|
});
|
|
@@ -1674,7 +1597,7 @@ var defaultProps$8 = {
|
|
|
1674
1597
|
toggle: false,
|
|
1675
1598
|
role: 'group'
|
|
1676
1599
|
};
|
|
1677
|
-
var ButtonGroup =
|
|
1600
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1678
1601
|
var bsPrefix = _ref.bsPrefix,
|
|
1679
1602
|
size = _ref.size,
|
|
1680
1603
|
toggle = _ref.toggle,
|
|
@@ -1682,12 +1605,12 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1682
1605
|
className = _ref.className,
|
|
1683
1606
|
_ref$as = _ref.as,
|
|
1684
1607
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1685
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1608
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1686
1609
|
|
|
1687
1610
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1688
1611
|
var baseClass = prefix;
|
|
1689
1612
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1690
|
-
return /*#__PURE__*/
|
|
1613
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1691
1614
|
ref: ref,
|
|
1692
1615
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1693
1616
|
}));
|
|
@@ -1698,13 +1621,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1698
1621
|
var defaultProps$9 = {
|
|
1699
1622
|
role: 'toolbar'
|
|
1700
1623
|
};
|
|
1701
|
-
var ButtonToolbar =
|
|
1624
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1702
1625
|
var bsPrefix = _ref.bsPrefix,
|
|
1703
1626
|
className = _ref.className,
|
|
1704
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1627
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1705
1628
|
|
|
1706
1629
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1707
|
-
return /*#__PURE__*/
|
|
1630
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1708
1631
|
ref: ref,
|
|
1709
1632
|
className: classnames(className, prefix)
|
|
1710
1633
|
}));
|
|
@@ -1712,23 +1635,23 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1712
1635
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1713
1636
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1714
1637
|
|
|
1715
|
-
var context$1 =
|
|
1638
|
+
var context$1 = React__default.createContext(null);
|
|
1716
1639
|
context$1.displayName = 'CardContext';
|
|
1717
1640
|
|
|
1718
1641
|
var defaultProps$a = {
|
|
1719
1642
|
variant: null
|
|
1720
1643
|
};
|
|
1721
|
-
var CardImg =
|
|
1644
|
+
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1722
1645
|
function (_ref, ref) {
|
|
1723
1646
|
var bsPrefix = _ref.bsPrefix,
|
|
1724
1647
|
className = _ref.className,
|
|
1725
1648
|
variant = _ref.variant,
|
|
1726
1649
|
_ref$as = _ref.as,
|
|
1727
1650
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1728
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1651
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1729
1652
|
|
|
1730
1653
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1731
|
-
return /*#__PURE__*/
|
|
1654
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1732
1655
|
ref: ref,
|
|
1733
1656
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1734
1657
|
}, props));
|
|
@@ -1757,7 +1680,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1757
1680
|
var defaultProps$b = {
|
|
1758
1681
|
body: false
|
|
1759
1682
|
};
|
|
1760
|
-
var Card =
|
|
1683
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1761
1684
|
var bsPrefix = _ref.bsPrefix,
|
|
1762
1685
|
className = _ref.className,
|
|
1763
1686
|
bg = _ref.bg,
|
|
@@ -1767,7 +1690,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1767
1690
|
children = _ref.children,
|
|
1768
1691
|
_ref$as = _ref.as,
|
|
1769
1692
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1770
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1693
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1771
1694
|
|
|
1772
1695
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1773
1696
|
var cardContext = useMemo(function () {
|
|
@@ -1775,16 +1698,16 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1775
1698
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1776
1699
|
};
|
|
1777
1700
|
}, [prefix]);
|
|
1778
|
-
return /*#__PURE__*/
|
|
1701
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1779
1702
|
value: cardContext
|
|
1780
|
-
}, /*#__PURE__*/
|
|
1703
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1781
1704
|
ref: ref
|
|
1782
1705
|
}, props, {
|
|
1783
1706
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1784
1707
|
}), body ?
|
|
1785
1708
|
/*#__PURE__*/
|
|
1786
1709
|
// @ts-ignore
|
|
1787
|
-
|
|
1710
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1788
1711
|
});
|
|
1789
1712
|
Card.displayName = 'Card';
|
|
1790
1713
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1920,6 +1843,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1920
1843
|
/**
|
|
1921
1844
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1922
1845
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1846
|
+
*
|
|
1847
|
+
*
|
|
1848
|
+
*
|
|
1849
|
+
* ```tsx
|
|
1850
|
+
* const { set, clear } = useTimeout();
|
|
1851
|
+
* const [hello, showHello] = useState(false);
|
|
1852
|
+
* //Display hello after 5 seconds
|
|
1853
|
+
* set(() => showHello(true), 5000);
|
|
1854
|
+
* return (
|
|
1855
|
+
* <div className="App">
|
|
1856
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1857
|
+
* </div>
|
|
1858
|
+
* );
|
|
1859
|
+
* ```
|
|
1923
1860
|
*/
|
|
1924
1861
|
|
|
1925
1862
|
|
|
@@ -1960,7 +1897,22 @@ function useTimeout() {
|
|
|
1960
1897
|
|
|
1961
1898
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1962
1899
|
|
|
1963
|
-
var CarouselItem =
|
|
1900
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1901
|
+
var _ref$as = _ref.as,
|
|
1902
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1903
|
+
bsPrefix = _ref.bsPrefix,
|
|
1904
|
+
children = _ref.children,
|
|
1905
|
+
className = _ref.className,
|
|
1906
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
|
+
|
|
1908
|
+
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1909
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1910
|
+
ref: ref
|
|
1911
|
+
}, props, {
|
|
1912
|
+
className: finalClassName
|
|
1913
|
+
}), children);
|
|
1914
|
+
});
|
|
1915
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1964
1916
|
|
|
1965
1917
|
/**
|
|
1966
1918
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1973,8 +1925,22 @@ var CarouselItem = createWithBsPrefix('carousel-item');
|
|
|
1973
1925
|
|
|
1974
1926
|
function map(children, func) {
|
|
1975
1927
|
var index = 0;
|
|
1976
|
-
return
|
|
1977
|
-
return
|
|
1928
|
+
return React__default.Children.map(children, function (child) {
|
|
1929
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1930
|
+
});
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Iterates through children that are "valid elements".
|
|
1934
|
+
*
|
|
1935
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1936
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1937
|
+
*/
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
function forEach(children, func) {
|
|
1941
|
+
var index = 0;
|
|
1942
|
+
React__default.Children.forEach(children, function (child) {
|
|
1943
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1978
1944
|
});
|
|
1979
1945
|
}
|
|
1980
1946
|
|
|
@@ -2092,12 +2058,12 @@ var defaultProps$c = {
|
|
|
2092
2058
|
pause: 'hover',
|
|
2093
2059
|
wrap: true,
|
|
2094
2060
|
touch: true,
|
|
2095
|
-
prevIcon: /*#__PURE__*/
|
|
2061
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2096
2062
|
"aria-hidden": "true",
|
|
2097
2063
|
className: "carousel-control-prev-icon"
|
|
2098
2064
|
}),
|
|
2099
2065
|
prevLabel: 'Previous',
|
|
2100
|
-
nextIcon: /*#__PURE__*/
|
|
2066
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2101
2067
|
"aria-hidden": "true",
|
|
2102
2068
|
className: "carousel-control-next-icon"
|
|
2103
2069
|
}),
|
|
@@ -2145,7 +2111,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2145
2111
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2146
2112
|
className = _useUncontrolled.className,
|
|
2147
2113
|
children = _useUncontrolled.children,
|
|
2148
|
-
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"]);
|
|
2114
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2149
2115
|
|
|
2150
2116
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2151
2117
|
var nextDirectionRef = useRef(null);
|
|
@@ -2165,7 +2131,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2165
2131
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2166
2132
|
if (nextDirectionRef.current) {
|
|
2167
2133
|
setDirection(nextDirectionRef.current);
|
|
2168
|
-
nextDirectionRef.current = null;
|
|
2169
2134
|
} else {
|
|
2170
2135
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2171
2136
|
}
|
|
@@ -2177,7 +2142,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2177
2142
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2178
2143
|
}
|
|
2179
2144
|
|
|
2180
|
-
|
|
2145
|
+
useEffect(function () {
|
|
2146
|
+
if (nextDirectionRef.current) {
|
|
2147
|
+
nextDirectionRef.current = null;
|
|
2148
|
+
}
|
|
2149
|
+
});
|
|
2150
|
+
var numChildren = 0;
|
|
2151
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2152
|
+
// (and count them, too)
|
|
2153
|
+
|
|
2154
|
+
forEach(children, function (child, index) {
|
|
2155
|
+
++numChildren;
|
|
2156
|
+
|
|
2157
|
+
if (index === activeIndex) {
|
|
2158
|
+
activeChildInterval = child.props.interval;
|
|
2159
|
+
}
|
|
2160
|
+
});
|
|
2161
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2181
2162
|
var prev = useCallback(function (event) {
|
|
2182
2163
|
if (isSliding) {
|
|
2183
2164
|
return;
|
|
@@ -2363,17 +2344,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2363
2344
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2364
2345
|
var intervalHandleRef = useRef();
|
|
2365
2346
|
useEffect(function () {
|
|
2347
|
+
var _ref, _activeChildIntervalR;
|
|
2348
|
+
|
|
2366
2349
|
if (!shouldPlay) {
|
|
2367
2350
|
return undefined;
|
|
2368
2351
|
}
|
|
2369
2352
|
|
|
2370
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2353
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2371
2354
|
return function () {
|
|
2372
2355
|
if (intervalHandleRef.current !== null) {
|
|
2373
2356
|
clearInterval(intervalHandleRef.current);
|
|
2374
2357
|
}
|
|
2375
2358
|
};
|
|
2376
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2359
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2377
2360
|
var indicatorOnClicks = useMemo(function () {
|
|
2378
2361
|
return indicators && Array.from({
|
|
2379
2362
|
length: numChildren
|
|
@@ -2385,7 +2368,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2385
2368
|
};
|
|
2386
2369
|
});
|
|
2387
2370
|
}, [indicators, numChildren, onSelect]);
|
|
2388
|
-
return /*#__PURE__*/
|
|
2371
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2389
2372
|
ref: elementRef
|
|
2390
2373
|
}, props, {
|
|
2391
2374
|
onKeyDown: handleKeyDown,
|
|
@@ -2395,44 +2378,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2395
2378
|
onTouchMove: handleTouchMove,
|
|
2396
2379
|
onTouchEnd: handleTouchEnd,
|
|
2397
2380
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2398
|
-
}), indicators && /*#__PURE__*/
|
|
2381
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2399
2382
|
className: prefix + "-indicators"
|
|
2400
2383
|
}, map(children, function (_child, index) {
|
|
2401
|
-
return /*#__PURE__*/
|
|
2384
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2402
2385
|
key: index,
|
|
2403
2386
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2404
2387
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2405
2388
|
});
|
|
2406
|
-
})), /*#__PURE__*/
|
|
2389
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2407
2390
|
className: prefix + "-inner"
|
|
2408
2391
|
}, map(children, function (child, index) {
|
|
2409
2392
|
var isActive = index === renderedActiveIndex;
|
|
2410
|
-
return slide ? /*#__PURE__*/
|
|
2393
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2411
2394
|
in: isActive,
|
|
2412
2395
|
onEnter: isActive ? handleEnter : undefined,
|
|
2413
2396
|
onEntered: isActive ? handleEntered : undefined,
|
|
2414
2397
|
addEndListener: transitionEnd
|
|
2415
2398
|
}, function (status) {
|
|
2416
|
-
return
|
|
2399
|
+
return React__default.cloneElement(child, {
|
|
2417
2400
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2418
2401
|
});
|
|
2419
|
-
}) :
|
|
2402
|
+
}) : React__default.cloneElement(child, {
|
|
2420
2403
|
className: classnames(child.props.className, isActive && 'active')
|
|
2421
2404
|
});
|
|
2422
|
-
})), controls && /*#__PURE__*/
|
|
2405
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2423
2406
|
className: prefix + "-control-prev",
|
|
2424
2407
|
onClick: prev
|
|
2425
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2408
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2426
2409
|
className: "sr-only"
|
|
2427
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2410
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2428
2411
|
className: prefix + "-control-next",
|
|
2429
2412
|
onClick: next
|
|
2430
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2413
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2431
2414
|
className: "sr-only"
|
|
2432
2415
|
}, nextLabel))));
|
|
2433
2416
|
}
|
|
2434
2417
|
|
|
2435
|
-
var Carousel =
|
|
2418
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2436
2419
|
Carousel.displayName = 'Carousel';
|
|
2437
2420
|
Carousel.propTypes = propTypes$1;
|
|
2438
2421
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2440,13 +2423,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2440
2423
|
Carousel.Item = CarouselItem;
|
|
2441
2424
|
|
|
2442
2425
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2443
|
-
var Col =
|
|
2426
|
+
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2444
2427
|
function (_ref, ref) {
|
|
2445
2428
|
var bsPrefix = _ref.bsPrefix,
|
|
2446
2429
|
className = _ref.className,
|
|
2447
2430
|
_ref$as = _ref.as,
|
|
2448
2431
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2449
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2432
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2450
2433
|
|
|
2451
2434
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2452
2435
|
var spans = [];
|
|
@@ -2477,7 +2460,7 @@ function (_ref, ref) {
|
|
|
2477
2460
|
spans.push(prefix); // plain 'col'
|
|
2478
2461
|
}
|
|
2479
2462
|
|
|
2480
|
-
return /*#__PURE__*/
|
|
2463
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2481
2464
|
ref: ref,
|
|
2482
2465
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2483
2466
|
}));
|
|
@@ -2586,7 +2569,40 @@ function useForceUpdate() {
|
|
|
2586
2569
|
return dispatch;
|
|
2587
2570
|
}
|
|
2588
2571
|
|
|
2589
|
-
var DropdownContext = /*#__PURE__*/
|
|
2572
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2573
|
+
|
|
2574
|
+
function _extends() {
|
|
2575
|
+
_extends = Object.assign || function (target) {
|
|
2576
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2577
|
+
var source = arguments[i];
|
|
2578
|
+
|
|
2579
|
+
for (var key in source) {
|
|
2580
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2581
|
+
target[key] = source[key];
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
return target;
|
|
2587
|
+
};
|
|
2588
|
+
|
|
2589
|
+
return _extends.apply(this, arguments);
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2593
|
+
if (source == null) return {};
|
|
2594
|
+
var target = {};
|
|
2595
|
+
var sourceKeys = Object.keys(source);
|
|
2596
|
+
var key, i;
|
|
2597
|
+
|
|
2598
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2599
|
+
key = sourceKeys[i];
|
|
2600
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2601
|
+
target[key] = source[key];
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
return target;
|
|
2605
|
+
}
|
|
2590
2606
|
|
|
2591
2607
|
function useSafeState(state) {
|
|
2592
2608
|
var isMounted = useMounted();
|
|
@@ -2685,13 +2701,13 @@ function contains(parent, child) {
|
|
|
2685
2701
|
if (parent.contains(child)) {
|
|
2686
2702
|
return true;
|
|
2687
2703
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2688
|
-
else if (isShadowRoot(rootNode)) {
|
|
2704
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2689
2705
|
var next = child;
|
|
2690
2706
|
|
|
2691
2707
|
do {
|
|
2692
2708
|
if (next && parent.isSameNode(next)) {
|
|
2693
2709
|
return true;
|
|
2694
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2710
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2695
2711
|
|
|
2696
2712
|
|
|
2697
2713
|
next = next.parentNode || next.host;
|
|
@@ -2715,8 +2731,9 @@ function isTableElement(element) {
|
|
|
2715
2731
|
}
|
|
2716
2732
|
|
|
2717
2733
|
function getDocumentElement(element) {
|
|
2718
|
-
// $FlowFixMe: assume body is always available
|
|
2719
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2734
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2735
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2736
|
+
element.document) || window.document).documentElement;
|
|
2720
2737
|
}
|
|
2721
2738
|
|
|
2722
2739
|
function getParentNode(element) {
|
|
@@ -2724,12 +2741,14 @@ function getParentNode(element) {
|
|
|
2724
2741
|
return element;
|
|
2725
2742
|
}
|
|
2726
2743
|
|
|
2727
|
-
return (//
|
|
2744
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2745
|
+
// $FlowFixMe[incompatible-return]
|
|
2746
|
+
// $FlowFixMe[prop-missing]
|
|
2728
2747
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2729
2748
|
element.parentNode || // DOM Element detected
|
|
2730
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2749
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2731
2750
|
element.host || // ShadowRoot detected
|
|
2732
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2751
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2733
2752
|
getDocumentElement(element) // fallback
|
|
2734
2753
|
|
|
2735
2754
|
);
|
|
@@ -2916,7 +2935,7 @@ var unsetSides = {
|
|
|
2916
2935
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2917
2936
|
// cleanly divide the values into the appropriate subpixels.
|
|
2918
2937
|
|
|
2919
|
-
function
|
|
2938
|
+
function roundOffsetsByDPR(_ref) {
|
|
2920
2939
|
var x = _ref.x,
|
|
2921
2940
|
y = _ref.y;
|
|
2922
2941
|
var win = window;
|
|
@@ -2936,11 +2955,14 @@ function mapToStyles(_ref2) {
|
|
|
2936
2955
|
offsets = _ref2.offsets,
|
|
2937
2956
|
position = _ref2.position,
|
|
2938
2957
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2939
|
-
adaptive = _ref2.adaptive
|
|
2958
|
+
adaptive = _ref2.adaptive,
|
|
2959
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2940
2960
|
|
|
2941
|
-
var
|
|
2942
|
-
x =
|
|
2943
|
-
|
|
2961
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2962
|
+
_ref3$x = _ref3.x,
|
|
2963
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2964
|
+
_ref3$y = _ref3.y,
|
|
2965
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2944
2966
|
|
|
2945
2967
|
var hasX = offsets.hasOwnProperty('x');
|
|
2946
2968
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2953,7 +2975,7 @@ function mapToStyles(_ref2) {
|
|
|
2953
2975
|
|
|
2954
2976
|
if (offsetParent === getWindow(popper)) {
|
|
2955
2977
|
offsetParent = getDocumentElement(popper);
|
|
2956
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2978
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2957
2979
|
|
|
2958
2980
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2959
2981
|
|
|
@@ -2984,13 +3006,15 @@ function mapToStyles(_ref2) {
|
|
|
2984
3006
|
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));
|
|
2985
3007
|
}
|
|
2986
3008
|
|
|
2987
|
-
function computeStyles(
|
|
2988
|
-
var state =
|
|
2989
|
-
options =
|
|
3009
|
+
function computeStyles(_ref4) {
|
|
3010
|
+
var state = _ref4.state,
|
|
3011
|
+
options = _ref4.options;
|
|
2990
3012
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2991
3013
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2992
3014
|
_options$adaptive = options.adaptive,
|
|
2993
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3015
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3016
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3017
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2994
3018
|
|
|
2995
3019
|
if (process.env.NODE_ENV !== "production") {
|
|
2996
3020
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3013,7 +3037,8 @@ function computeStyles(_ref3) {
|
|
|
3013
3037
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3014
3038
|
offsets: state.modifiersData.popperOffsets,
|
|
3015
3039
|
position: state.options.strategy,
|
|
3016
|
-
adaptive: adaptive
|
|
3040
|
+
adaptive: adaptive,
|
|
3041
|
+
roundOffsets: roundOffsets
|
|
3017
3042
|
})));
|
|
3018
3043
|
}
|
|
3019
3044
|
|
|
@@ -3021,7 +3046,8 @@ function computeStyles(_ref3) {
|
|
|
3021
3046
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3022
3047
|
offsets: state.modifiersData.arrow,
|
|
3023
3048
|
position: 'absolute',
|
|
3024
|
-
adaptive: false
|
|
3049
|
+
adaptive: false,
|
|
3050
|
+
roundOffsets: roundOffsets
|
|
3025
3051
|
})));
|
|
3026
3052
|
}
|
|
3027
3053
|
|
|
@@ -3217,7 +3243,7 @@ function isScrollParent(element) {
|
|
|
3217
3243
|
|
|
3218
3244
|
function getScrollParent(node) {
|
|
3219
3245
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3220
|
-
// $FlowFixMe: assume body is always available
|
|
3246
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3221
3247
|
return node.ownerDocument.body;
|
|
3222
3248
|
}
|
|
3223
3249
|
|
|
@@ -3231,7 +3257,7 @@ function getScrollParent(node) {
|
|
|
3231
3257
|
/*
|
|
3232
3258
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3233
3259
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3234
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3260
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3235
3261
|
reference element's position.
|
|
3236
3262
|
*/
|
|
3237
3263
|
|
|
@@ -3245,7 +3271,7 @@ function listScrollParents(element, list) {
|
|
|
3245
3271
|
var win = getWindow(scrollParent);
|
|
3246
3272
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3247
3273
|
var updatedList = list.concat(target);
|
|
3248
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3274
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3249
3275
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3250
3276
|
}
|
|
3251
3277
|
|
|
@@ -3285,7 +3311,7 @@ function getClippingParents(element) {
|
|
|
3285
3311
|
|
|
3286
3312
|
if (!isElement(clipperElement)) {
|
|
3287
3313
|
return [];
|
|
3288
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3314
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3289
3315
|
|
|
3290
3316
|
|
|
3291
3317
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3371,11 +3397,11 @@ function computeOffsets(_ref) {
|
|
|
3371
3397
|
|
|
3372
3398
|
switch (variation) {
|
|
3373
3399
|
case start:
|
|
3374
|
-
offsets[mainAxis] =
|
|
3400
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3375
3401
|
break;
|
|
3376
3402
|
|
|
3377
3403
|
case end:
|
|
3378
|
-
offsets[mainAxis] =
|
|
3404
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3379
3405
|
break;
|
|
3380
3406
|
}
|
|
3381
3407
|
}
|
|
@@ -3457,8 +3483,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3457
3483
|
var variation = getVariation(placement);
|
|
3458
3484
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3459
3485
|
return getVariation(placement) === variation;
|
|
3460
|
-
}) : basePlacements;
|
|
3461
|
-
|
|
3486
|
+
}) : basePlacements;
|
|
3462
3487
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3463
3488
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3464
3489
|
});
|
|
@@ -3469,7 +3494,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3469
3494
|
if (process.env.NODE_ENV !== "production") {
|
|
3470
3495
|
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(' '));
|
|
3471
3496
|
}
|
|
3472
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3497
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3473
3498
|
|
|
3474
3499
|
|
|
3475
3500
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4395,6 +4420,11 @@ var ariaDescribedByModifier = {
|
|
|
4395
4420
|
|
|
4396
4421
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4397
4422
|
var ids = reference.getAttribute('aria-describedby');
|
|
4423
|
+
|
|
4424
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4425
|
+
return;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4398
4428
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4399
4429
|
}
|
|
4400
4430
|
}
|
|
@@ -4650,14 +4680,33 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4650
4680
|
}
|
|
4651
4681
|
});
|
|
4652
4682
|
useEffect(function () {
|
|
4653
|
-
if (disabled || ref == null) return undefined;
|
|
4683
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4684
|
+
// https://github.com/facebook/react/issues/20074
|
|
4685
|
+
|
|
4686
|
+
var currentEvent = window.event;
|
|
4654
4687
|
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4655
4688
|
// avoid false positives in the contains() check below if the target DOM
|
|
4656
4689
|
// element is removed in the React mouse callback.
|
|
4657
4690
|
|
|
4658
4691
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4659
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4660
|
-
|
|
4692
|
+
var removeMouseListener = listen(doc, clickTrigger, function (e) {
|
|
4693
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4694
|
+
if (e === currentEvent) {
|
|
4695
|
+
currentEvent = undefined;
|
|
4696
|
+
return;
|
|
4697
|
+
}
|
|
4698
|
+
|
|
4699
|
+
handleMouse(e);
|
|
4700
|
+
});
|
|
4701
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4702
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4703
|
+
if (e === currentEvent) {
|
|
4704
|
+
currentEvent = undefined;
|
|
4705
|
+
return;
|
|
4706
|
+
}
|
|
4707
|
+
|
|
4708
|
+
handleKeyUp(e);
|
|
4709
|
+
});
|
|
4661
4710
|
var mobileSafariHackListeners = [];
|
|
4662
4711
|
|
|
4663
4712
|
if ('ontouchstart' in doc.documentElement) {
|
|
@@ -4917,7 +4966,7 @@ function DropdownMenu(_ref2) {
|
|
|
4917
4966
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4918
4967
|
|
|
4919
4968
|
var args = useDropdownMenu(options);
|
|
4920
|
-
return /*#__PURE__*/
|
|
4969
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4921
4970
|
}
|
|
4922
4971
|
|
|
4923
4972
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4984,7 +5033,7 @@ function DropdownToggle(_ref2) {
|
|
|
4984
5033
|
show = _useDropdownToggle$.show,
|
|
4985
5034
|
toggle = _useDropdownToggle$.toggle;
|
|
4986
5035
|
|
|
4987
|
-
return /*#__PURE__*/
|
|
5036
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4988
5037
|
show: show,
|
|
4989
5038
|
toggle: toggle,
|
|
4990
5039
|
props: props
|
|
@@ -5199,7 +5248,7 @@ function Dropdown(_ref) {
|
|
|
5199
5248
|
}
|
|
5200
5249
|
};
|
|
5201
5250
|
|
|
5202
|
-
return /*#__PURE__*/
|
|
5251
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5203
5252
|
value: context
|
|
5204
5253
|
}, children({
|
|
5205
5254
|
props: {
|
|
@@ -5213,14 +5262,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5213
5262
|
Dropdown.Menu = DropdownMenu;
|
|
5214
5263
|
Dropdown.Toggle = DropdownToggle;
|
|
5215
5264
|
|
|
5216
|
-
var NavContext =
|
|
5265
|
+
var NavContext = React__default.createContext(null);
|
|
5217
5266
|
NavContext.displayName = 'NavContext';
|
|
5218
5267
|
|
|
5219
5268
|
var defaultProps$e = {
|
|
5220
5269
|
as: SafeAnchor,
|
|
5221
5270
|
disabled: false
|
|
5222
5271
|
};
|
|
5223
|
-
var DropdownItem =
|
|
5272
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5224
5273
|
var bsPrefix = _ref.bsPrefix,
|
|
5225
5274
|
className = _ref.className,
|
|
5226
5275
|
children = _ref.children,
|
|
@@ -5231,16 +5280,17 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5231
5280
|
onSelect = _ref.onSelect,
|
|
5232
5281
|
propActive = _ref.active,
|
|
5233
5282
|
Component = _ref.as,
|
|
5234
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5283
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5235
5284
|
|
|
5236
5285
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5237
5286
|
var onSelectCtx = useContext(SelectableContext);
|
|
5238
5287
|
var navContext = useContext(NavContext);
|
|
5239
5288
|
|
|
5240
5289
|
var _ref2 = navContext || {},
|
|
5241
|
-
activeKey = _ref2.activeKey;
|
|
5290
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5291
|
+
|
|
5242
5292
|
|
|
5243
|
-
var key = makeEventKey(eventKey
|
|
5293
|
+
var key = makeEventKey(eventKey, href);
|
|
5244
5294
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5245
5295
|
var handleClick = useEventCallback(function (event) {
|
|
5246
5296
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5254,7 +5304,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5254
5304
|
/*#__PURE__*/
|
|
5255
5305
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5256
5306
|
// @ts-ignore
|
|
5257
|
-
|
|
5307
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5258
5308
|
ref: ref,
|
|
5259
5309
|
href: href,
|
|
5260
5310
|
disabled: disabled,
|
|
@@ -5303,7 +5353,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5303
5353
|
}, [refA, refB]);
|
|
5304
5354
|
}
|
|
5305
5355
|
|
|
5306
|
-
var context$2 =
|
|
5356
|
+
var context$2 = React__default.createContext(null);
|
|
5307
5357
|
context$2.displayName = 'NavbarContext';
|
|
5308
5358
|
|
|
5309
5359
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5339,12 +5389,14 @@ function getMargins(element) {
|
|
|
5339
5389
|
function usePopperMarginModifiers() {
|
|
5340
5390
|
var overlayRef = useRef(null);
|
|
5341
5391
|
var margins = useRef(null);
|
|
5392
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5393
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5342
5394
|
var callback = useCallback(function (overlay) {
|
|
5343
|
-
if (!overlay || !(hasClass(overlay,
|
|
5395
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5344
5396
|
margins.current = getMargins(overlay);
|
|
5345
5397
|
overlay.style.margin = '0';
|
|
5346
5398
|
overlayRef.current = overlay;
|
|
5347
|
-
}, []);
|
|
5399
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5348
5400
|
var offset = useMemo(function () {
|
|
5349
5401
|
return {
|
|
5350
5402
|
name: 'offset',
|
|
@@ -5388,7 +5440,7 @@ function usePopperMarginModifiers() {
|
|
|
5388
5440
|
effect: function effect(_ref2) {
|
|
5389
5441
|
var state = _ref2.state;
|
|
5390
5442
|
|
|
5391
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5443
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5392
5444
|
return undefined;
|
|
5393
5445
|
}
|
|
5394
5446
|
|
|
@@ -5409,18 +5461,30 @@ function usePopperMarginModifiers() {
|
|
|
5409
5461
|
};
|
|
5410
5462
|
}
|
|
5411
5463
|
};
|
|
5412
|
-
}, []);
|
|
5464
|
+
}, [popoverClass]);
|
|
5413
5465
|
return [callback, [offset, popoverArrowMargins]];
|
|
5414
5466
|
}
|
|
5415
5467
|
|
|
5468
|
+
var alignDirection = PropTypes.oneOf(['left', 'right']);
|
|
5469
|
+
var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
5470
|
+
sm: alignDirection
|
|
5471
|
+
}), PropTypes.shape({
|
|
5472
|
+
md: alignDirection
|
|
5473
|
+
}), PropTypes.shape({
|
|
5474
|
+
lg: alignDirection
|
|
5475
|
+
}), PropTypes.shape({
|
|
5476
|
+
xl: alignDirection
|
|
5477
|
+
})]);
|
|
5416
5478
|
var defaultProps$f = {
|
|
5479
|
+
align: 'left',
|
|
5417
5480
|
alignRight: false,
|
|
5418
5481
|
flip: true
|
|
5419
5482
|
}; // TODO: remove this hack
|
|
5420
5483
|
|
|
5421
|
-
var DropdownMenu$1 =
|
|
5484
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5422
5485
|
var bsPrefix = _ref.bsPrefix,
|
|
5423
5486
|
className = _ref.className,
|
|
5487
|
+
align = _ref.align,
|
|
5424
5488
|
alignRight = _ref.alignRight,
|
|
5425
5489
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5426
5490
|
flip = _ref.flip,
|
|
@@ -5429,7 +5493,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5429
5493
|
_ref$as = _ref.as,
|
|
5430
5494
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5431
5495
|
popperConfig = _ref.popperConfig,
|
|
5432
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5496
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5433
5497
|
|
|
5434
5498
|
var isNavbar = useContext(context$2);
|
|
5435
5499
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5438,13 +5502,34 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5438
5502
|
popperRef = _usePopperMarginModif[0],
|
|
5439
5503
|
marginModifiers = _usePopperMarginModif[1];
|
|
5440
5504
|
|
|
5505
|
+
var alignClasses = [];
|
|
5506
|
+
|
|
5507
|
+
if (align) {
|
|
5508
|
+
if (typeof align === 'object') {
|
|
5509
|
+
var keys = Object.keys(align);
|
|
5510
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5511
|
+
|
|
5512
|
+
if (keys.length) {
|
|
5513
|
+
var brkPoint = keys[0];
|
|
5514
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5515
|
+
// left in addition to align left classes.
|
|
5516
|
+
// Reuse alignRight to toggle the class below.
|
|
5517
|
+
|
|
5518
|
+
alignRight = direction === 'left';
|
|
5519
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5520
|
+
}
|
|
5521
|
+
} else if (align === 'right') {
|
|
5522
|
+
alignRight = true;
|
|
5523
|
+
}
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5441
5526
|
var _ref2 = useDropdownMenu({
|
|
5442
5527
|
flip: flip,
|
|
5443
5528
|
rootCloseEvent: rootCloseEvent,
|
|
5444
5529
|
show: showProps,
|
|
5445
5530
|
alignEnd: alignRight,
|
|
5446
|
-
usePopper: !isNavbar,
|
|
5447
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5531
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5532
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5448
5533
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5449
5534
|
})
|
|
5450
5535
|
}),
|
|
@@ -5467,12 +5552,12 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5467
5552
|
if (placement) {
|
|
5468
5553
|
// we don't need the default popper style,
|
|
5469
5554
|
// menus are display: none when not shown.
|
|
5470
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5555
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5471
5556
|
props['x-placement'] = placement;
|
|
5472
5557
|
}
|
|
5473
5558
|
|
|
5474
|
-
return /*#__PURE__*/
|
|
5475
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5559
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5560
|
+
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5476
5561
|
}));
|
|
5477
5562
|
});
|
|
5478
5563
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5505,15 +5590,14 @@ module.exports = exports['default'];
|
|
|
5505
5590
|
|
|
5506
5591
|
unwrapExports(isRequiredForA11y_1);
|
|
5507
5592
|
|
|
5508
|
-
var DropdownToggle$1 =
|
|
5593
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5509
5594
|
var bsPrefix = _ref.bsPrefix,
|
|
5510
5595
|
split = _ref.split,
|
|
5511
5596
|
className = _ref.className,
|
|
5512
|
-
children = _ref.children,
|
|
5513
5597
|
childBsPrefix = _ref.childBsPrefix,
|
|
5514
5598
|
_ref$as = _ref.as,
|
|
5515
5599
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5516
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5600
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5517
5601
|
|
|
5518
5602
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5519
5603
|
|
|
@@ -5528,10 +5612,10 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5528
5612
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5529
5613
|
// underlying component, to allow it to render size and style variants.
|
|
5530
5614
|
|
|
5531
|
-
return /*#__PURE__*/
|
|
5615
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5532
5616
|
onClick: toggle,
|
|
5533
5617
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5534
|
-
}, toggleProps, props)
|
|
5618
|
+
}, toggleProps, props));
|
|
5535
5619
|
});
|
|
5536
5620
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5537
5621
|
|
|
@@ -5551,7 +5635,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5551
5635
|
var defaultProps$g = {
|
|
5552
5636
|
navbar: false
|
|
5553
5637
|
};
|
|
5554
|
-
var Dropdown$1 =
|
|
5638
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5555
5639
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5556
5640
|
show: 'onToggle'
|
|
5557
5641
|
}),
|
|
@@ -5566,7 +5650,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5566
5650
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5567
5651
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5568
5652
|
_4 = _useUncontrolled.navbar,
|
|
5569
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5653
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5570
5654
|
|
|
5571
5655
|
var onSelectCtx = useContext(SelectableContext);
|
|
5572
5656
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5588,9 +5672,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5588
5672
|
if (onSelect) onSelect(key, event);
|
|
5589
5673
|
handleToggle(false, event, 'select');
|
|
5590
5674
|
});
|
|
5591
|
-
return /*#__PURE__*/
|
|
5675
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5592
5676
|
value: handleSelect
|
|
5593
|
-
}, /*#__PURE__*/
|
|
5677
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5594
5678
|
drop: drop,
|
|
5595
5679
|
show: show,
|
|
5596
5680
|
alignEnd: alignRight,
|
|
@@ -5599,7 +5683,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5599
5683
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5600
5684
|
}, function (_ref) {
|
|
5601
5685
|
var dropdownProps = _ref.props;
|
|
5602
|
-
return /*#__PURE__*/
|
|
5686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5603
5687
|
ref: ref,
|
|
5604
5688
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5605
5689
|
}));
|
|
@@ -5634,6 +5718,15 @@ var propTypes$5 = {
|
|
|
5634
5718
|
/** Disables both Buttons */
|
|
5635
5719
|
disabled: PropTypes.bool,
|
|
5636
5720
|
|
|
5721
|
+
/**
|
|
5722
|
+
* Aligns the dropdown menu responsively.
|
|
5723
|
+
*
|
|
5724
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5725
|
+
*
|
|
5726
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5727
|
+
*/
|
|
5728
|
+
menuAlign: alignPropType,
|
|
5729
|
+
|
|
5637
5730
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5638
5731
|
menuRole: PropTypes.string,
|
|
5639
5732
|
|
|
@@ -5643,7 +5736,7 @@ var propTypes$5 = {
|
|
|
5643
5736
|
/**
|
|
5644
5737
|
* Which event when fired outside the component will cause it to be closed.
|
|
5645
5738
|
*
|
|
5646
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5739
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5647
5740
|
*/
|
|
5648
5741
|
rootCloseEvent: PropTypes.string,
|
|
5649
5742
|
|
|
@@ -5665,30 +5758,32 @@ var propTypes$5 = {
|
|
|
5665
5758
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5666
5759
|
*/
|
|
5667
5760
|
|
|
5668
|
-
var DropdownButton =
|
|
5761
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5669
5762
|
var title = _ref.title,
|
|
5670
5763
|
children = _ref.children,
|
|
5671
5764
|
bsPrefix = _ref.bsPrefix,
|
|
5672
5765
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5673
5766
|
variant = _ref.variant,
|
|
5674
5767
|
size = _ref.size,
|
|
5768
|
+
menuAlign = _ref.menuAlign,
|
|
5675
5769
|
menuRole = _ref.menuRole,
|
|
5676
5770
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5677
5771
|
disabled = _ref.disabled,
|
|
5678
5772
|
href = _ref.href,
|
|
5679
5773
|
id = _ref.id,
|
|
5680
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5774
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5681
5775
|
|
|
5682
|
-
return /*#__PURE__*/
|
|
5776
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5683
5777
|
ref: ref
|
|
5684
|
-
}, props), /*#__PURE__*/
|
|
5778
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5685
5779
|
id: id,
|
|
5686
5780
|
href: href,
|
|
5687
5781
|
size: size,
|
|
5688
5782
|
variant: variant,
|
|
5689
5783
|
disabled: disabled,
|
|
5690
5784
|
childBsPrefix: bsPrefix
|
|
5691
|
-
}, title), /*#__PURE__*/
|
|
5785
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5786
|
+
align: menuAlign,
|
|
5692
5787
|
role: menuRole,
|
|
5693
5788
|
renderOnMount: renderMenuOnMount,
|
|
5694
5789
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5802,7 +5897,7 @@ var propTypes$6 = {
|
|
|
5802
5897
|
tooltip: PropTypes.bool,
|
|
5803
5898
|
as: PropTypes.elementType
|
|
5804
5899
|
};
|
|
5805
|
-
var Feedback =
|
|
5900
|
+
var Feedback = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5806
5901
|
function (_ref, ref) {
|
|
5807
5902
|
var _ref$as = _ref.as,
|
|
5808
5903
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5811,9 +5906,9 @@ function (_ref, ref) {
|
|
|
5811
5906
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5812
5907
|
_ref$tooltip = _ref.tooltip,
|
|
5813
5908
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5814
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5909
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5815
5910
|
|
|
5816
|
-
return /*#__PURE__*/
|
|
5911
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5817
5912
|
ref: ref,
|
|
5818
5913
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5819
5914
|
}));
|
|
@@ -5821,11 +5916,11 @@ function (_ref, ref) {
|
|
|
5821
5916
|
Feedback.displayName = 'Feedback';
|
|
5822
5917
|
Feedback.propTypes = propTypes$6;
|
|
5823
5918
|
|
|
5824
|
-
var FormContext =
|
|
5919
|
+
var FormContext = React__default.createContext({
|
|
5825
5920
|
controlId: undefined
|
|
5826
5921
|
});
|
|
5827
5922
|
|
|
5828
|
-
var FormCheckInput =
|
|
5923
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5829
5924
|
var id = _ref.id,
|
|
5830
5925
|
bsPrefix = _ref.bsPrefix,
|
|
5831
5926
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5839,7 +5934,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5839
5934
|
isStatic = _ref.isStatic,
|
|
5840
5935
|
_ref$as = _ref.as,
|
|
5841
5936
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5842
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5937
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5843
5938
|
|
|
5844
5939
|
var _useContext = useContext(FormContext),
|
|
5845
5940
|
controlId = _useContext.controlId,
|
|
@@ -5850,7 +5945,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5850
5945
|
defaultPrefix = _ref2[1];
|
|
5851
5946
|
|
|
5852
5947
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5853
|
-
return /*#__PURE__*/
|
|
5948
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5854
5949
|
ref: ref,
|
|
5855
5950
|
type: type,
|
|
5856
5951
|
id: id || controlId,
|
|
@@ -5859,12 +5954,12 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5859
5954
|
});
|
|
5860
5955
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5861
5956
|
|
|
5862
|
-
var FormCheckLabel =
|
|
5957
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5863
5958
|
var bsPrefix = _ref.bsPrefix,
|
|
5864
5959
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5865
5960
|
className = _ref.className,
|
|
5866
5961
|
htmlFor = _ref.htmlFor,
|
|
5867
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5962
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5868
5963
|
|
|
5869
5964
|
var _useContext = useContext(FormContext),
|
|
5870
5965
|
controlId = _useContext.controlId,
|
|
@@ -5875,7 +5970,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5875
5970
|
defaultPrefix = _ref2[1];
|
|
5876
5971
|
|
|
5877
5972
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5878
|
-
return /*#__PURE__*/
|
|
5973
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
5879
5974
|
ref: ref,
|
|
5880
5975
|
htmlFor: htmlFor || controlId,
|
|
5881
5976
|
className: classnames(className, bsPrefix)
|
|
@@ -5883,7 +5978,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5883
5978
|
});
|
|
5884
5979
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5885
5980
|
|
|
5886
|
-
var FormCheck =
|
|
5981
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5887
5982
|
var id = _ref.id,
|
|
5888
5983
|
bsPrefix = _ref.bsPrefix,
|
|
5889
5984
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5909,7 +6004,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5909
6004
|
propCustom = _ref.custom,
|
|
5910
6005
|
_ref$as = _ref.as,
|
|
5911
6006
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5912
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6007
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5913
6008
|
|
|
5914
6009
|
var custom = type === 'switch' ? true : propCustom;
|
|
5915
6010
|
|
|
@@ -5928,8 +6023,8 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5928
6023
|
custom: custom
|
|
5929
6024
|
};
|
|
5930
6025
|
}, [controlId, custom, id]);
|
|
5931
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5932
|
-
var input = /*#__PURE__*/
|
|
6026
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6027
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
5933
6028
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5934
6029
|
ref: ref,
|
|
5935
6030
|
isValid: isValid,
|
|
@@ -5938,14 +6033,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5938
6033
|
disabled: disabled,
|
|
5939
6034
|
as: as
|
|
5940
6035
|
}));
|
|
5941
|
-
return /*#__PURE__*/
|
|
6036
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5942
6037
|
value: innerFormContext
|
|
5943
|
-
}, /*#__PURE__*/
|
|
6038
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5944
6039
|
style: style,
|
|
5945
6040
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5946
|
-
}, children || /*#__PURE__*/
|
|
6041
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5947
6042
|
title: title
|
|
5948
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6043
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5949
6044
|
type: isValid ? 'valid' : 'invalid',
|
|
5950
6045
|
tooltip: feedbackTooltip
|
|
5951
6046
|
}, feedback))));
|
|
@@ -5954,7 +6049,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5954
6049
|
FormCheck.Input = FormCheckInput;
|
|
5955
6050
|
FormCheck.Label = FormCheckLabel;
|
|
5956
6051
|
|
|
5957
|
-
var FormFileInput =
|
|
6052
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
5958
6053
|
var id = _ref.id,
|
|
5959
6054
|
bsPrefix = _ref.bsPrefix,
|
|
5960
6055
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5964,7 +6059,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5964
6059
|
lang = _ref.lang,
|
|
5965
6060
|
_ref$as = _ref.as,
|
|
5966
6061
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5967
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6062
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
5968
6063
|
|
|
5969
6064
|
var _useContext = useContext(FormContext),
|
|
5970
6065
|
controlId = _useContext.controlId,
|
|
@@ -5977,7 +6072,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5977
6072
|
defaultPrefix = _ref2[1];
|
|
5978
6073
|
|
|
5979
6074
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5980
|
-
return /*#__PURE__*/
|
|
6075
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5981
6076
|
ref: ref,
|
|
5982
6077
|
id: id || controlId,
|
|
5983
6078
|
type: type,
|
|
@@ -5987,12 +6082,12 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
5987
6082
|
});
|
|
5988
6083
|
FormFileInput.displayName = 'FormFileInput';
|
|
5989
6084
|
|
|
5990
|
-
var FormFileLabel =
|
|
6085
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5991
6086
|
var bsPrefix = _ref.bsPrefix,
|
|
5992
6087
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5993
6088
|
className = _ref.className,
|
|
5994
6089
|
htmlFor = _ref.htmlFor,
|
|
5995
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6090
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5996
6091
|
|
|
5997
6092
|
var _useContext = useContext(FormContext),
|
|
5998
6093
|
controlId = _useContext.controlId,
|
|
@@ -6003,7 +6098,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6003
6098
|
defaultPrefix = _ref2[1];
|
|
6004
6099
|
|
|
6005
6100
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6006
|
-
return /*#__PURE__*/
|
|
6101
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6007
6102
|
ref: ref,
|
|
6008
6103
|
htmlFor: htmlFor || controlId,
|
|
6009
6104
|
className: classnames(className, bsPrefix),
|
|
@@ -6012,7 +6107,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6012
6107
|
});
|
|
6013
6108
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6014
6109
|
|
|
6015
|
-
var FormFile =
|
|
6110
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6016
6111
|
var id = _ref.id,
|
|
6017
6112
|
bsPrefix = _ref.bsPrefix,
|
|
6018
6113
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6036,7 +6131,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6036
6131
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6037
6132
|
_ref$inputAs = _ref.inputAs,
|
|
6038
6133
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6039
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6134
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6040
6135
|
|
|
6041
6136
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6042
6137
|
prefix = _ref2[0],
|
|
@@ -6055,7 +6150,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6055
6150
|
};
|
|
6056
6151
|
}, [controlId, custom, id]);
|
|
6057
6152
|
var hasLabel = label != null && label !== false && !children;
|
|
6058
|
-
var input = /*#__PURE__*/
|
|
6153
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6059
6154
|
ref: ref,
|
|
6060
6155
|
isValid: isValid,
|
|
6061
6156
|
isInvalid: isInvalid,
|
|
@@ -6063,14 +6158,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6063
6158
|
as: inputAs,
|
|
6064
6159
|
lang: lang
|
|
6065
6160
|
}));
|
|
6066
|
-
return /*#__PURE__*/
|
|
6161
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6067
6162
|
value: innerFormContext
|
|
6068
|
-
}, /*#__PURE__*/
|
|
6163
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6069
6164
|
style: style,
|
|
6070
6165
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6071
|
-
}, children || /*#__PURE__*/
|
|
6166
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6072
6167
|
"data-browse": dataBrowse
|
|
6073
|
-
}, label)) : /*#__PURE__*/
|
|
6168
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6074
6169
|
type: isValid ? 'valid' : 'invalid',
|
|
6075
6170
|
tooltip: feedbackTooltip
|
|
6076
6171
|
}, feedback))));
|
|
@@ -6079,7 +6174,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6079
6174
|
FormFile.Input = FormFileInput;
|
|
6080
6175
|
FormFile.Label = FormFileLabel;
|
|
6081
6176
|
|
|
6082
|
-
var FormControl =
|
|
6177
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6083
6178
|
var bsPrefix = _ref.bsPrefix,
|
|
6084
6179
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6085
6180
|
type = _ref.type,
|
|
@@ -6096,7 +6191,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6096
6191
|
custom = _ref.custom,
|
|
6097
6192
|
_ref$as = _ref.as,
|
|
6098
6193
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6099
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6194
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6100
6195
|
|
|
6101
6196
|
var _useContext = useContext(FormContext),
|
|
6102
6197
|
controlId = _useContext.controlId;
|
|
@@ -6131,7 +6226,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6131
6226
|
}
|
|
6132
6227
|
|
|
6133
6228
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6134
|
-
return /*#__PURE__*/
|
|
6229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6135
6230
|
type: type,
|
|
6136
6231
|
size: htmlSize,
|
|
6137
6232
|
ref: ref,
|
|
@@ -6145,14 +6240,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6145
6240
|
Feedback: Feedback
|
|
6146
6241
|
});
|
|
6147
6242
|
|
|
6148
|
-
var FormGroup =
|
|
6243
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6149
6244
|
var bsPrefix = _ref.bsPrefix,
|
|
6150
6245
|
className = _ref.className,
|
|
6151
6246
|
children = _ref.children,
|
|
6152
6247
|
controlId = _ref.controlId,
|
|
6153
6248
|
_ref$as = _ref.as,
|
|
6154
6249
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6155
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6250
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6156
6251
|
|
|
6157
6252
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6158
6253
|
var context = useMemo(function () {
|
|
@@ -6160,9 +6255,9 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6160
6255
|
controlId: controlId
|
|
6161
6256
|
};
|
|
6162
6257
|
}, [controlId]);
|
|
6163
|
-
return /*#__PURE__*/
|
|
6258
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6164
6259
|
value: context
|
|
6165
|
-
}, /*#__PURE__*/
|
|
6260
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6166
6261
|
ref: ref,
|
|
6167
6262
|
className: classnames(className, bsPrefix)
|
|
6168
6263
|
}), children));
|
|
@@ -6173,7 +6268,7 @@ var defaultProps$h = {
|
|
|
6173
6268
|
column: false,
|
|
6174
6269
|
srOnly: false
|
|
6175
6270
|
};
|
|
6176
|
-
var FormLabel =
|
|
6271
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6177
6272
|
var _ref$as = _ref.as,
|
|
6178
6273
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6179
6274
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6181,18 +6276,18 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6181
6276
|
srOnly = _ref.srOnly,
|
|
6182
6277
|
className = _ref.className,
|
|
6183
6278
|
htmlFor = _ref.htmlFor,
|
|
6184
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6279
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6185
6280
|
|
|
6186
6281
|
var _useContext = useContext(FormContext),
|
|
6187
6282
|
controlId = _useContext.controlId;
|
|
6188
6283
|
|
|
6189
6284
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6190
6285
|
var columnClass = 'col-form-label';
|
|
6191
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6286
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6192
6287
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6193
6288
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6194
6289
|
htmlFor = htmlFor || controlId;
|
|
6195
|
-
if (column) return /*#__PURE__*/
|
|
6290
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6196
6291
|
as: "label",
|
|
6197
6292
|
className: classes,
|
|
6198
6293
|
htmlFor: htmlFor
|
|
@@ -6200,7 +6295,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6200
6295
|
return (
|
|
6201
6296
|
/*#__PURE__*/
|
|
6202
6297
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6203
|
-
|
|
6298
|
+
React__default.createElement(Component, _extends$1({
|
|
6204
6299
|
ref: ref,
|
|
6205
6300
|
className: classes,
|
|
6206
6301
|
htmlFor: htmlFor
|
|
@@ -6210,25 +6305,25 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6210
6305
|
FormLabel.displayName = 'FormLabel';
|
|
6211
6306
|
FormLabel.defaultProps = defaultProps$h;
|
|
6212
6307
|
|
|
6213
|
-
var FormText =
|
|
6308
|
+
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6214
6309
|
function (_ref, ref) {
|
|
6215
6310
|
var bsPrefix = _ref.bsPrefix,
|
|
6216
6311
|
className = _ref.className,
|
|
6217
6312
|
_ref$as = _ref.as,
|
|
6218
6313
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6219
6314
|
muted = _ref.muted,
|
|
6220
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6315
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6221
6316
|
|
|
6222
6317
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6223
|
-
return /*#__PURE__*/
|
|
6318
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6224
6319
|
ref: ref,
|
|
6225
6320
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6226
6321
|
}));
|
|
6227
6322
|
});
|
|
6228
6323
|
FormText.displayName = 'FormText';
|
|
6229
6324
|
|
|
6230
|
-
var Switch =
|
|
6231
|
-
return /*#__PURE__*/
|
|
6325
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6326
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6232
6327
|
ref: ref,
|
|
6233
6328
|
type: "switch"
|
|
6234
6329
|
}));
|
|
@@ -6241,17 +6336,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6241
6336
|
var defaultProps$i = {
|
|
6242
6337
|
inline: false
|
|
6243
6338
|
};
|
|
6244
|
-
var FormImpl =
|
|
6339
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6245
6340
|
var bsPrefix = _ref.bsPrefix,
|
|
6246
6341
|
inline = _ref.inline,
|
|
6247
6342
|
className = _ref.className,
|
|
6248
6343
|
validated = _ref.validated,
|
|
6249
6344
|
_ref$as = _ref.as,
|
|
6250
6345
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6251
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6346
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6252
6347
|
|
|
6253
6348
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6254
|
-
return /*#__PURE__*/
|
|
6349
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6255
6350
|
ref: ref,
|
|
6256
6351
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6257
6352
|
}));
|
|
@@ -6270,17 +6365,17 @@ FormImpl.Text = FormText;
|
|
|
6270
6365
|
var defaultProps$j = {
|
|
6271
6366
|
fluid: false
|
|
6272
6367
|
};
|
|
6273
|
-
var Container =
|
|
6368
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6274
6369
|
var bsPrefix = _ref.bsPrefix,
|
|
6275
6370
|
fluid = _ref.fluid,
|
|
6276
6371
|
_ref$as = _ref.as,
|
|
6277
6372
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6278
6373
|
className = _ref.className,
|
|
6279
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6374
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6280
6375
|
|
|
6281
6376
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6282
6377
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6283
|
-
return /*#__PURE__*/
|
|
6378
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6284
6379
|
ref: ref
|
|
6285
6380
|
}, props, {
|
|
6286
6381
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6321,18 +6416,18 @@ var defaultProps$k = {
|
|
|
6321
6416
|
roundedCircle: false,
|
|
6322
6417
|
thumbnail: false
|
|
6323
6418
|
};
|
|
6324
|
-
var Image =
|
|
6419
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6325
6420
|
var bsPrefix = _ref.bsPrefix,
|
|
6326
6421
|
className = _ref.className,
|
|
6327
6422
|
fluid = _ref.fluid,
|
|
6328
6423
|
rounded = _ref.rounded,
|
|
6329
6424
|
roundedCircle = _ref.roundedCircle,
|
|
6330
6425
|
thumbnail = _ref.thumbnail,
|
|
6331
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6426
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6332
6427
|
|
|
6333
6428
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6334
6429
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6335
|
-
return /*#__PURE__*/
|
|
6430
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6336
6431
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6337
6432
|
ref: ref
|
|
6338
6433
|
}, props, {
|
|
@@ -6345,11 +6440,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6345
6440
|
var defaultProps$l = {
|
|
6346
6441
|
fluid: true
|
|
6347
6442
|
};
|
|
6348
|
-
var FigureImage =
|
|
6443
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6349
6444
|
var className = _ref.className,
|
|
6350
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6445
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6351
6446
|
|
|
6352
|
-
return /*#__PURE__*/
|
|
6447
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6353
6448
|
ref: ref
|
|
6354
6449
|
}, props, {
|
|
6355
6450
|
className: classnames(className, 'figure-img')
|
|
@@ -6376,13 +6471,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6376
6471
|
});
|
|
6377
6472
|
|
|
6378
6473
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6379
|
-
return /*#__PURE__*/
|
|
6474
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6380
6475
|
type: "checkbox"
|
|
6381
6476
|
}, props)));
|
|
6382
6477
|
};
|
|
6383
6478
|
|
|
6384
6479
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6385
|
-
return /*#__PURE__*/
|
|
6480
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6386
6481
|
type: "radio"
|
|
6387
6482
|
}, props)));
|
|
6388
6483
|
};
|
|
@@ -6395,16 +6490,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6395
6490
|
* @property {InputGroupRadio} Radio
|
|
6396
6491
|
* @property {InputGroupCheckbox} Checkbox
|
|
6397
6492
|
*/
|
|
6398
|
-
var InputGroup =
|
|
6493
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6399
6494
|
var bsPrefix = _ref.bsPrefix,
|
|
6400
6495
|
size = _ref.size,
|
|
6401
6496
|
className = _ref.className,
|
|
6402
6497
|
_ref$as = _ref.as,
|
|
6403
6498
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6404
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6405
6500
|
|
|
6406
6501
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6407
|
-
return /*#__PURE__*/
|
|
6502
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6408
6503
|
ref: ref
|
|
6409
6504
|
}, props, {
|
|
6410
6505
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6412,7 +6507,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6412
6507
|
});
|
|
6413
6508
|
InputGroup.displayName = 'InputGroup';
|
|
6414
6509
|
|
|
6415
|
-
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6510
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6416
6511
|
Text: InputGroupText,
|
|
6417
6512
|
Radio: InputGroupRadio,
|
|
6418
6513
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6423,7 +6518,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6423
6518
|
var defaultProps$m = {
|
|
6424
6519
|
fluid: false
|
|
6425
6520
|
};
|
|
6426
|
-
var Jumbotron =
|
|
6521
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6427
6522
|
var _classes;
|
|
6428
6523
|
|
|
6429
6524
|
var _ref$as = _ref.as,
|
|
@@ -6431,11 +6526,11 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6431
6526
|
className = _ref.className,
|
|
6432
6527
|
fluid = _ref.fluid,
|
|
6433
6528
|
bsPrefix = _ref.bsPrefix,
|
|
6434
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6529
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6435
6530
|
|
|
6436
6531
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6437
6532
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6438
|
-
return /*#__PURE__*/
|
|
6533
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6439
6534
|
ref: ref
|
|
6440
6535
|
}, props, {
|
|
6441
6536
|
className: classnames(className, classes)
|
|
@@ -6444,19 +6539,19 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6444
6539
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6445
6540
|
Jumbotron.displayName = 'Jumbotron';
|
|
6446
6541
|
|
|
6447
|
-
var TabContext =
|
|
6542
|
+
var TabContext = React__default.createContext(null);
|
|
6448
6543
|
|
|
6449
6544
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6450
6545
|
var noop$4 = function noop() {};
|
|
6451
6546
|
|
|
6452
|
-
var AbstractNav =
|
|
6547
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6453
6548
|
var _ref$as = _ref.as,
|
|
6454
6549
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6455
6550
|
onSelect = _ref.onSelect,
|
|
6456
6551
|
activeKey = _ref.activeKey,
|
|
6457
6552
|
role = _ref.role,
|
|
6458
6553
|
onKeyDown = _ref.onKeyDown,
|
|
6459
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6554
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6460
6555
|
|
|
6461
6556
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6462
6557
|
// and don't want to reset the set in the effect
|
|
@@ -6530,9 +6625,9 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6530
6625
|
needsRefocusRef.current = false;
|
|
6531
6626
|
});
|
|
6532
6627
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6533
|
-
return /*#__PURE__*/
|
|
6628
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6534
6629
|
value: handleSelect
|
|
6535
|
-
}, /*#__PURE__*/
|
|
6630
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6536
6631
|
value: {
|
|
6537
6632
|
role: role,
|
|
6538
6633
|
// used by NavLink to determine it's role
|
|
@@ -6540,7 +6635,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6540
6635
|
getControlledId: getControlledId || noop$4,
|
|
6541
6636
|
getControllerId: getControllerId || noop$4
|
|
6542
6637
|
}
|
|
6543
|
-
}, /*#__PURE__*/
|
|
6638
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6544
6639
|
onKeyDown: handleKeyDown,
|
|
6545
6640
|
ref: mergedRef,
|
|
6546
6641
|
role: role
|
|
@@ -6550,14 +6645,14 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6550
6645
|
var defaultProps$n = {
|
|
6551
6646
|
disabled: false
|
|
6552
6647
|
};
|
|
6553
|
-
var AbstractNavItem =
|
|
6648
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6554
6649
|
var active = _ref.active,
|
|
6555
6650
|
className = _ref.className,
|
|
6556
6651
|
eventKey = _ref.eventKey,
|
|
6557
6652
|
onSelect = _ref.onSelect,
|
|
6558
6653
|
onClick = _ref.onClick,
|
|
6559
6654
|
Component = _ref.as,
|
|
6560
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6655
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6561
6656
|
|
|
6562
6657
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6563
6658
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6587,7 +6682,7 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6587
6682
|
if (onSelect) onSelect(navKey, e);
|
|
6588
6683
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6589
6684
|
});
|
|
6590
|
-
return /*#__PURE__*/
|
|
6685
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6591
6686
|
ref: ref,
|
|
6592
6687
|
onClick: handleOnclick,
|
|
6593
6688
|
className: classnames(className, isActive && 'active')
|
|
@@ -6600,7 +6695,7 @@ var defaultProps$o = {
|
|
|
6600
6695
|
active: false,
|
|
6601
6696
|
disabled: false
|
|
6602
6697
|
};
|
|
6603
|
-
var ListGroupItem =
|
|
6698
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6604
6699
|
var bsPrefix = _ref.bsPrefix,
|
|
6605
6700
|
active = _ref.active,
|
|
6606
6701
|
disabled = _ref.disabled,
|
|
@@ -6610,7 +6705,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6610
6705
|
as = _ref.as,
|
|
6611
6706
|
eventKey = _ref.eventKey,
|
|
6612
6707
|
onClick = _ref.onClick,
|
|
6613
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6708
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6614
6709
|
|
|
6615
6710
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6616
6711
|
var handleClick = useCallback(function (event) {
|
|
@@ -6622,10 +6717,11 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6622
6717
|
|
|
6623
6718
|
if (onClick) onClick(event);
|
|
6624
6719
|
}, [disabled, onClick]);
|
|
6625
|
-
return /*#__PURE__*/
|
|
6720
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6626
6721
|
ref: ref
|
|
6627
6722
|
}, props, {
|
|
6628
|
-
|
|
6723
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6724
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6629
6725
|
,
|
|
6630
6726
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6631
6727
|
onClick: handleClick,
|
|
@@ -6639,7 +6735,7 @@ var defaultProps$p = {
|
|
|
6639
6735
|
variant: undefined,
|
|
6640
6736
|
horizontal: undefined
|
|
6641
6737
|
};
|
|
6642
|
-
var ListGroup =
|
|
6738
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6643
6739
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6644
6740
|
activeKey: 'onSelect'
|
|
6645
6741
|
}),
|
|
@@ -6649,7 +6745,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6649
6745
|
horizontal = _useUncontrolled.horizontal,
|
|
6650
6746
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6651
6747
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6652
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6748
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6653
6749
|
|
|
6654
6750
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6655
6751
|
var horizontalVariant;
|
|
@@ -6661,7 +6757,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6661
6757
|
}
|
|
6662
6758
|
|
|
6663
6759
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6664
|
-
return /*#__PURE__*/
|
|
6760
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6665
6761
|
ref: ref
|
|
6666
6762
|
}, controlledProps, {
|
|
6667
6763
|
as: as,
|
|
@@ -6673,16 +6769,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6673
6769
|
ListGroup.Item = ListGroupItem;
|
|
6674
6770
|
|
|
6675
6771
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6676
|
-
var Media =
|
|
6772
|
+
var Media = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6677
6773
|
function (_ref, ref) {
|
|
6678
6774
|
var bsPrefix = _ref.bsPrefix,
|
|
6679
6775
|
className = _ref.className,
|
|
6680
6776
|
_ref$as = _ref.as,
|
|
6681
6777
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6682
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6778
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6683
6779
|
|
|
6684
6780
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6685
|
-
return /*#__PURE__*/
|
|
6781
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6686
6782
|
ref: ref,
|
|
6687
6783
|
className: classnames(className, prefix)
|
|
6688
6784
|
}));
|
|
@@ -7070,7 +7166,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7070
7166
|
renderDialog = _ref.renderDialog,
|
|
7071
7167
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7072
7168
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7073
|
-
return /*#__PURE__*/
|
|
7169
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7074
7170
|
} : _ref$renderBackdrop,
|
|
7075
7171
|
providedManager = _ref.manager,
|
|
7076
7172
|
containerRef = _ref.container,
|
|
@@ -7228,12 +7324,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7228
7324
|
tabIndex: -1
|
|
7229
7325
|
});
|
|
7230
7326
|
|
|
7231
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7327
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7232
7328
|
role: 'document'
|
|
7233
7329
|
}));
|
|
7234
7330
|
|
|
7235
7331
|
if (Transition) {
|
|
7236
|
-
dialog = /*#__PURE__*/
|
|
7332
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7237
7333
|
appear: true,
|
|
7238
7334
|
unmountOnExit: true,
|
|
7239
7335
|
"in": !!show,
|
|
@@ -7256,14 +7352,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7256
7352
|
});
|
|
7257
7353
|
|
|
7258
7354
|
if (BackdropTransition) {
|
|
7259
|
-
backdropElement = /*#__PURE__*/
|
|
7355
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7260
7356
|
appear: true,
|
|
7261
7357
|
"in": !!show
|
|
7262
7358
|
}, backdropElement);
|
|
7263
7359
|
}
|
|
7264
7360
|
}
|
|
7265
7361
|
|
|
7266
|
-
return /*#__PURE__*/
|
|
7362
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7267
7363
|
});
|
|
7268
7364
|
var propTypes$8 = {
|
|
7269
7365
|
/**
|
|
@@ -7502,27 +7598,28 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7502
7598
|
|
|
7503
7599
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7504
7600
|
|
|
7505
|
-
var ModalContext =
|
|
7601
|
+
var ModalContext = React__default.createContext({
|
|
7506
7602
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7507
7603
|
onHide: function onHide() {}
|
|
7508
7604
|
});
|
|
7509
7605
|
|
|
7510
|
-
var ModalDialog =
|
|
7606
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7511
7607
|
var bsPrefix = _ref.bsPrefix,
|
|
7512
7608
|
className = _ref.className,
|
|
7609
|
+
contentClassName = _ref.contentClassName,
|
|
7513
7610
|
centered = _ref.centered,
|
|
7514
7611
|
size = _ref.size,
|
|
7515
7612
|
children = _ref.children,
|
|
7516
7613
|
scrollable = _ref.scrollable,
|
|
7517
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7614
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7518
7615
|
|
|
7519
7616
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7520
7617
|
var dialogClass = bsPrefix + "-dialog";
|
|
7521
|
-
return /*#__PURE__*/
|
|
7618
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7522
7619
|
ref: ref,
|
|
7523
7620
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7524
|
-
}), /*#__PURE__*/
|
|
7525
|
-
className: bsPrefix + "-content"
|
|
7621
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7622
|
+
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7526
7623
|
}, children));
|
|
7527
7624
|
});
|
|
7528
7625
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7533,14 +7630,14 @@ var defaultProps$q = {
|
|
|
7533
7630
|
closeLabel: 'Close',
|
|
7534
7631
|
closeButton: false
|
|
7535
7632
|
};
|
|
7536
|
-
var ModalHeader =
|
|
7633
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7537
7634
|
var bsPrefix = _ref.bsPrefix,
|
|
7538
7635
|
closeLabel = _ref.closeLabel,
|
|
7539
7636
|
closeButton = _ref.closeButton,
|
|
7540
7637
|
onHide = _ref.onHide,
|
|
7541
7638
|
className = _ref.className,
|
|
7542
7639
|
children = _ref.children,
|
|
7543
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7640
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7544
7641
|
|
|
7545
7642
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7546
7643
|
var context = useContext(ModalContext);
|
|
@@ -7548,11 +7645,11 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7548
7645
|
if (context) context.onHide();
|
|
7549
7646
|
if (onHide) onHide();
|
|
7550
7647
|
});
|
|
7551
|
-
return /*#__PURE__*/
|
|
7648
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7552
7649
|
ref: ref
|
|
7553
7650
|
}, props, {
|
|
7554
7651
|
className: classnames(className, bsPrefix)
|
|
7555
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7652
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7556
7653
|
label: closeLabel,
|
|
7557
7654
|
onClick: handleClick
|
|
7558
7655
|
}));
|
|
@@ -7579,20 +7676,21 @@ var defaultProps$r = {
|
|
|
7579
7676
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7580
7677
|
|
|
7581
7678
|
function DialogTransition(props) {
|
|
7582
|
-
return /*#__PURE__*/
|
|
7679
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7583
7680
|
}
|
|
7584
7681
|
|
|
7585
7682
|
function BackdropTransition(props) {
|
|
7586
|
-
return /*#__PURE__*/
|
|
7683
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7587
7684
|
}
|
|
7588
7685
|
/* eslint-enable no-use-before-define */
|
|
7589
7686
|
|
|
7590
7687
|
|
|
7591
|
-
var Modal$1 =
|
|
7688
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7592
7689
|
var bsPrefix = _ref.bsPrefix,
|
|
7593
7690
|
className = _ref.className,
|
|
7594
7691
|
style = _ref.style,
|
|
7595
7692
|
dialogClassName = _ref.dialogClassName,
|
|
7693
|
+
contentClassName = _ref.contentClassName,
|
|
7596
7694
|
children = _ref.children,
|
|
7597
7695
|
Dialog = _ref.dialogAs,
|
|
7598
7696
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7616,7 +7714,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7616
7714
|
onExited = _ref.onExited,
|
|
7617
7715
|
backdropClassName = _ref.backdropClassName,
|
|
7618
7716
|
propsManager = _ref.manager,
|
|
7619
|
-
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"]);
|
|
7717
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7620
7718
|
|
|
7621
7719
|
var _useState = useState({}),
|
|
7622
7720
|
modalStyle = _useState[0],
|
|
@@ -7782,12 +7880,12 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7782
7880
|
};
|
|
7783
7881
|
|
|
7784
7882
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7785
|
-
return /*#__PURE__*/
|
|
7883
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7786
7884
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7787
7885
|
}));
|
|
7788
7886
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7789
7887
|
|
|
7790
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7888
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7791
7889
|
|
|
7792
7890
|
|
|
7793
7891
|
if (!animation) {
|
|
@@ -7795,7 +7893,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7795
7893
|
}
|
|
7796
7894
|
|
|
7797
7895
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7798
|
-
return /*#__PURE__*/
|
|
7896
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7799
7897
|
role: "dialog"
|
|
7800
7898
|
}, dialogProps, {
|
|
7801
7899
|
style: baseModalStyle,
|
|
@@ -7803,16 +7901,17 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7803
7901
|
onClick: backdrop ? handleClick : undefined,
|
|
7804
7902
|
onMouseUp: handleMouseUp,
|
|
7805
7903
|
"aria-labelledby": ariaLabelledby
|
|
7806
|
-
}), /*#__PURE__*/
|
|
7904
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7807
7905
|
role: "document",
|
|
7808
7906
|
onMouseDown: handleDialogMouseDown,
|
|
7809
|
-
className: dialogClassName
|
|
7907
|
+
className: dialogClassName,
|
|
7908
|
+
contentClassName: contentClassName
|
|
7810
7909
|
}), children));
|
|
7811
7910
|
};
|
|
7812
7911
|
|
|
7813
|
-
return /*#__PURE__*/
|
|
7912
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7814
7913
|
value: modalContext
|
|
7815
|
-
}, /*#__PURE__*/
|
|
7914
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7816
7915
|
show: show,
|
|
7817
7916
|
ref: setModalRef,
|
|
7818
7917
|
backdrop: backdrop,
|
|
@@ -7850,17 +7949,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7850
7949
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7851
7950
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7852
7951
|
|
|
7853
|
-
var NavItem =
|
|
7952
|
+
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7854
7953
|
function (_ref, ref) {
|
|
7855
7954
|
var bsPrefix = _ref.bsPrefix,
|
|
7856
7955
|
className = _ref.className,
|
|
7857
7956
|
children = _ref.children,
|
|
7858
7957
|
_ref$as = _ref.as,
|
|
7859
7958
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7860
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7959
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7861
7960
|
|
|
7862
7961
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7863
|
-
return /*#__PURE__*/
|
|
7962
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
7864
7963
|
ref: ref,
|
|
7865
7964
|
className: classnames(className, bsPrefix)
|
|
7866
7965
|
}), children);
|
|
@@ -7871,7 +7970,7 @@ var defaultProps$s = {
|
|
|
7871
7970
|
disabled: false,
|
|
7872
7971
|
as: SafeAnchor
|
|
7873
7972
|
};
|
|
7874
|
-
var NavLink =
|
|
7973
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7875
7974
|
var bsPrefix = _ref.bsPrefix,
|
|
7876
7975
|
disabled = _ref.disabled,
|
|
7877
7976
|
className = _ref.className,
|
|
@@ -7879,10 +7978,10 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7879
7978
|
eventKey = _ref.eventKey,
|
|
7880
7979
|
onSelect = _ref.onSelect,
|
|
7881
7980
|
as = _ref.as,
|
|
7882
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7981
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7883
7982
|
|
|
7884
7983
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7885
|
-
return /*#__PURE__*/
|
|
7984
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
7886
7985
|
href: href,
|
|
7887
7986
|
ref: ref,
|
|
7888
7987
|
eventKey: eventKey,
|
|
@@ -7899,7 +7998,7 @@ var defaultProps$t = {
|
|
|
7899
7998
|
justify: false,
|
|
7900
7999
|
fill: false
|
|
7901
8000
|
};
|
|
7902
|
-
var Nav =
|
|
8001
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7903
8002
|
var _classNames;
|
|
7904
8003
|
|
|
7905
8004
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7915,7 +8014,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7915
8014
|
className = _useUncontrolled.className,
|
|
7916
8015
|
children = _useUncontrolled.children,
|
|
7917
8016
|
activeKey = _useUncontrolled.activeKey,
|
|
7918
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8017
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7919
8018
|
|
|
7920
8019
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7921
8020
|
var navbarBsPrefix;
|
|
@@ -7931,7 +8030,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7931
8030
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7932
8031
|
}
|
|
7933
8032
|
|
|
7934
|
-
return /*#__PURE__*/
|
|
8033
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
7935
8034
|
as: as,
|
|
7936
8035
|
ref: ref,
|
|
7937
8036
|
activeKey: activeKey,
|
|
@@ -7943,31 +8042,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7943
8042
|
Nav.Item = NavItem;
|
|
7944
8043
|
Nav.Link = NavLink;
|
|
7945
8044
|
|
|
7946
|
-
var NavbarBrand =
|
|
8045
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7947
8046
|
var bsPrefix = _ref.bsPrefix,
|
|
7948
8047
|
className = _ref.className,
|
|
7949
8048
|
as = _ref.as,
|
|
7950
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8049
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
7951
8050
|
|
|
7952
8051
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7953
8052
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7954
|
-
return /*#__PURE__*/
|
|
8053
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
7955
8054
|
ref: ref,
|
|
7956
8055
|
className: classnames(className, bsPrefix)
|
|
7957
8056
|
}));
|
|
7958
8057
|
});
|
|
7959
8058
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
7960
8059
|
|
|
7961
|
-
var NavbarCollapse =
|
|
8060
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
7962
8061
|
var children = _ref.children,
|
|
7963
8062
|
bsPrefix = _ref.bsPrefix,
|
|
7964
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8063
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
7965
8064
|
|
|
7966
8065
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7967
|
-
return /*#__PURE__*/
|
|
7968
|
-
return /*#__PURE__*/
|
|
8066
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8067
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
7969
8068
|
in: !!(context && context.expanded)
|
|
7970
|
-
}, props), /*#__PURE__*/
|
|
8069
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7971
8070
|
ref: ref,
|
|
7972
8071
|
className: bsPrefix
|
|
7973
8072
|
}, children));
|
|
@@ -7978,7 +8077,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
7978
8077
|
var defaultProps$u = {
|
|
7979
8078
|
label: 'Toggle navigation'
|
|
7980
8079
|
};
|
|
7981
|
-
var NavbarToggle =
|
|
8080
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
7982
8081
|
var bsPrefix = _ref.bsPrefix,
|
|
7983
8082
|
className = _ref.className,
|
|
7984
8083
|
children = _ref.children,
|
|
@@ -7986,7 +8085,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
7986
8085
|
_ref$as = _ref.as,
|
|
7987
8086
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
7988
8087
|
onClick = _ref.onClick,
|
|
7989
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8088
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
7990
8089
|
|
|
7991
8090
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
7992
8091
|
|
|
@@ -8003,12 +8102,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8003
8102
|
props.type = 'button';
|
|
8004
8103
|
}
|
|
8005
8104
|
|
|
8006
|
-
return /*#__PURE__*/
|
|
8105
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8007
8106
|
ref: ref,
|
|
8008
8107
|
onClick: handleClick,
|
|
8009
8108
|
"aria-label": label,
|
|
8010
8109
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8011
|
-
}), children || /*#__PURE__*/
|
|
8110
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8012
8111
|
className: bsPrefix + "-icon"
|
|
8013
8112
|
}));
|
|
8014
8113
|
});
|
|
@@ -8023,7 +8122,7 @@ var defaultProps$v = {
|
|
|
8023
8122
|
variant: 'light',
|
|
8024
8123
|
collapseOnSelect: false
|
|
8025
8124
|
};
|
|
8026
|
-
var Navbar =
|
|
8125
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8027
8126
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8028
8127
|
expanded: 'onToggle'
|
|
8029
8128
|
}),
|
|
@@ -8041,7 +8140,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8041
8140
|
_onToggle = _useUncontrolled.onToggle,
|
|
8042
8141
|
onSelect = _useUncontrolled.onSelect,
|
|
8043
8142
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8044
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8143
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8045
8144
|
|
|
8046
8145
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8047
8146
|
var handleCollapse = useCallback(function () {
|
|
@@ -8071,11 +8170,11 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8071
8170
|
expanded: !!expanded
|
|
8072
8171
|
};
|
|
8073
8172
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8074
|
-
return /*#__PURE__*/
|
|
8173
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8075
8174
|
value: navbarContext
|
|
8076
|
-
}, /*#__PURE__*/
|
|
8175
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8077
8176
|
value: handleCollapse
|
|
8078
|
-
}, /*#__PURE__*/
|
|
8177
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8079
8178
|
ref: ref
|
|
8080
8179
|
}, controlledProps, {
|
|
8081
8180
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8124,7 +8223,7 @@ var propTypes$9 = {
|
|
|
8124
8223
|
/** @ignore */
|
|
8125
8224
|
bsPrefix: PropTypes.string
|
|
8126
8225
|
};
|
|
8127
|
-
var NavDropdown =
|
|
8226
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8128
8227
|
var id = _ref.id,
|
|
8129
8228
|
title = _ref.title,
|
|
8130
8229
|
children = _ref.children,
|
|
@@ -8134,20 +8233,20 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8134
8233
|
disabled = _ref.disabled,
|
|
8135
8234
|
active = _ref.active,
|
|
8136
8235
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8137
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8236
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8138
8237
|
|
|
8139
|
-
return /*#__PURE__*/
|
|
8238
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8140
8239
|
ref: ref
|
|
8141
8240
|
}, props, {
|
|
8142
8241
|
as: NavItem
|
|
8143
|
-
}), /*#__PURE__*/
|
|
8242
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8144
8243
|
id: id,
|
|
8145
8244
|
eventKey: null,
|
|
8146
8245
|
active: active,
|
|
8147
8246
|
disabled: disabled,
|
|
8148
8247
|
childBsPrefix: bsPrefix,
|
|
8149
8248
|
as: NavLink
|
|
8150
|
-
}, title), /*#__PURE__*/
|
|
8249
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8151
8250
|
role: menuRole,
|
|
8152
8251
|
renderOnMount: renderMenuOnMount,
|
|
8153
8252
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8164,7 +8263,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8164
8263
|
* Built on top of `Popper.js`, the overlay component is
|
|
8165
8264
|
* great for custom tooltip overlays.
|
|
8166
8265
|
*/
|
|
8167
|
-
var Overlay = /*#__PURE__*/
|
|
8266
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8168
8267
|
var flip = props.flip,
|
|
8169
8268
|
offset = props.offset,
|
|
8170
8269
|
placement = props.placement,
|
|
@@ -8247,7 +8346,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8247
8346
|
onEnter = props.onEnter,
|
|
8248
8347
|
onEntering = props.onEntering,
|
|
8249
8348
|
onEntered = props.onEntered;
|
|
8250
|
-
child = /*#__PURE__*/
|
|
8349
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8251
8350
|
"in": props.show,
|
|
8252
8351
|
appear: true,
|
|
8253
8352
|
onExit: onExit,
|
|
@@ -8413,34 +8512,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8413
8512
|
};
|
|
8414
8513
|
|
|
8415
8514
|
return RefHolder;
|
|
8416
|
-
}(
|
|
8515
|
+
}(React__default.Component);
|
|
8417
8516
|
|
|
8418
8517
|
var defaultProps$w = {
|
|
8419
8518
|
active: false,
|
|
8420
8519
|
disabled: false,
|
|
8421
8520
|
activeLabel: '(current)'
|
|
8422
8521
|
};
|
|
8423
|
-
var PageItem =
|
|
8522
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8424
8523
|
var active = _ref.active,
|
|
8425
8524
|
disabled = _ref.disabled,
|
|
8426
8525
|
className = _ref.className,
|
|
8427
8526
|
style = _ref.style,
|
|
8428
8527
|
activeLabel = _ref.activeLabel,
|
|
8429
8528
|
children = _ref.children,
|
|
8430
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8529
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8431
8530
|
|
|
8432
8531
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8433
|
-
return /*#__PURE__*/
|
|
8532
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8434
8533
|
ref: ref,
|
|
8435
8534
|
style: style,
|
|
8436
8535
|
className: classnames(className, 'page-item', {
|
|
8437
8536
|
active: active,
|
|
8438
8537
|
disabled: disabled
|
|
8439
8538
|
})
|
|
8440
|
-
}, /*#__PURE__*/
|
|
8539
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8441
8540
|
className: "page-link",
|
|
8442
8541
|
disabled: disabled
|
|
8443
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8542
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8444
8543
|
className: "sr-only"
|
|
8445
8544
|
}, activeLabel)));
|
|
8446
8545
|
});
|
|
@@ -8454,11 +8553,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8454
8553
|
|
|
8455
8554
|
function Button(_ref2) {
|
|
8456
8555
|
var children = _ref2.children,
|
|
8457
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8556
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8458
8557
|
|
|
8459
|
-
return /*#__PURE__*/
|
|
8558
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8460
8559
|
"aria-hidden": "true"
|
|
8461
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8560
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8462
8561
|
className: "sr-only"
|
|
8463
8562
|
}, label));
|
|
8464
8563
|
}
|
|
@@ -8481,15 +8580,15 @@ var Last = createButton('Last', '»');
|
|
|
8481
8580
|
* @property {PageItem} Next
|
|
8482
8581
|
* @property {PageItem} Last
|
|
8483
8582
|
*/
|
|
8484
|
-
var Pagination =
|
|
8583
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8485
8584
|
var bsPrefix = _ref.bsPrefix,
|
|
8486
8585
|
className = _ref.className,
|
|
8487
8586
|
children = _ref.children,
|
|
8488
8587
|
size = _ref.size,
|
|
8489
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8588
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8490
8589
|
|
|
8491
8590
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8492
|
-
return /*#__PURE__*/
|
|
8591
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8493
8592
|
ref: ref
|
|
8494
8593
|
}, props, {
|
|
8495
8594
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8502,32 +8601,32 @@ Pagination.Item = PageItem;
|
|
|
8502
8601
|
Pagination.Next = Next;
|
|
8503
8602
|
Pagination.Last = Last;
|
|
8504
8603
|
|
|
8505
|
-
var PopoverTitle =
|
|
8604
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8506
8605
|
var _ref$as = _ref.as,
|
|
8507
8606
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8508
8607
|
bsPrefix = _ref.bsPrefix,
|
|
8509
8608
|
className = _ref.className,
|
|
8510
8609
|
children = _ref.children,
|
|
8511
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8610
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8512
8611
|
|
|
8513
8612
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8514
|
-
return /*#__PURE__*/
|
|
8613
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8515
8614
|
ref: ref
|
|
8516
8615
|
}, props, {
|
|
8517
8616
|
className: classnames(bsPrefix, className)
|
|
8518
8617
|
}), children);
|
|
8519
8618
|
});
|
|
8520
8619
|
|
|
8521
|
-
var PopoverContent =
|
|
8620
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8522
8621
|
var _ref$as = _ref.as,
|
|
8523
8622
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8524
8623
|
bsPrefix = _ref.bsPrefix,
|
|
8525
8624
|
className = _ref.className,
|
|
8526
8625
|
children = _ref.children,
|
|
8527
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8626
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8528
8627
|
|
|
8529
8628
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8530
|
-
return /*#__PURE__*/
|
|
8629
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8531
8630
|
ref: ref
|
|
8532
8631
|
}, props, {
|
|
8533
8632
|
className: classnames(className, bsPrefix)
|
|
@@ -8537,7 +8636,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8537
8636
|
var defaultProps$x = {
|
|
8538
8637
|
placement: 'right'
|
|
8539
8638
|
};
|
|
8540
|
-
var Popover =
|
|
8639
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8541
8640
|
var bsPrefix = _ref.bsPrefix,
|
|
8542
8641
|
placement = _ref.placement,
|
|
8543
8642
|
className = _ref.className,
|
|
@@ -8547,22 +8646,22 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8547
8646
|
arrowProps = _ref.arrowProps,
|
|
8548
8647
|
_ = _ref.popper,
|
|
8549
8648
|
_1 = _ref.show,
|
|
8550
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8649
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8551
8650
|
|
|
8552
8651
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8553
8652
|
|
|
8554
8653
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8555
8654
|
primaryPlacement = _ref2[0];
|
|
8556
8655
|
|
|
8557
|
-
return /*#__PURE__*/
|
|
8656
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8558
8657
|
ref: ref,
|
|
8559
8658
|
role: "tooltip",
|
|
8560
8659
|
style: style,
|
|
8561
8660
|
"x-placement": primaryPlacement,
|
|
8562
8661
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8563
|
-
}, props), /*#__PURE__*/
|
|
8662
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8564
8663
|
className: "arrow"
|
|
8565
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8664
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8566
8665
|
});
|
|
8567
8666
|
Popover.defaultProps = defaultProps$x;
|
|
8568
8667
|
Popover.Title = PopoverTitle;
|
|
@@ -8598,27 +8697,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8598
8697
|
style = _ref.style,
|
|
8599
8698
|
variant = _ref.variant,
|
|
8600
8699
|
bsPrefix = _ref.bsPrefix,
|
|
8601
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8700
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8602
8701
|
|
|
8603
|
-
return /*#__PURE__*/
|
|
8702
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8604
8703
|
ref: ref
|
|
8605
8704
|
}, props, {
|
|
8606
8705
|
role: "progressbar",
|
|
8607
8706
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8608
|
-
style: _extends({
|
|
8707
|
+
style: _extends$1({
|
|
8609
8708
|
width: getPercentage(now, min, max) + "%"
|
|
8610
8709
|
}, style),
|
|
8611
8710
|
"aria-valuenow": now,
|
|
8612
8711
|
"aria-valuemin": min,
|
|
8613
8712
|
"aria-valuemax": max
|
|
8614
|
-
}), srOnly ? /*#__PURE__*/
|
|
8713
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8615
8714
|
className: "sr-only"
|
|
8616
8715
|
}, label) : label);
|
|
8617
8716
|
}
|
|
8618
8717
|
|
|
8619
|
-
var ProgressBar =
|
|
8718
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8620
8719
|
var isChild = _ref2.isChild,
|
|
8621
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8720
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8622
8721
|
|
|
8623
8722
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8624
8723
|
|
|
@@ -8637,9 +8736,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8637
8736
|
variant = props.variant,
|
|
8638
8737
|
className = props.className,
|
|
8639
8738
|
children = props.children,
|
|
8640
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8739
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8641
8740
|
|
|
8642
|
-
return /*#__PURE__*/
|
|
8741
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8643
8742
|
ref: ref
|
|
8644
8743
|
}, wrapperProps, {
|
|
8645
8744
|
className: classnames(className, bsPrefix)
|
|
@@ -8665,20 +8764,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8665
8764
|
var defaultProps$z = {
|
|
8666
8765
|
aspectRatio: '1by1'
|
|
8667
8766
|
};
|
|
8668
|
-
var ResponsiveEmbed =
|
|
8767
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8669
8768
|
var bsPrefix = _ref.bsPrefix,
|
|
8670
8769
|
className = _ref.className,
|
|
8671
8770
|
children = _ref.children,
|
|
8672
8771
|
aspectRatio = _ref.aspectRatio,
|
|
8673
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8772
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8674
8773
|
|
|
8675
8774
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8676
|
-
var child =
|
|
8677
|
-
return /*#__PURE__*/
|
|
8775
|
+
var child = React__default.Children.only(children);
|
|
8776
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8678
8777
|
ref: ref
|
|
8679
8778
|
}, props, {
|
|
8680
8779
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8681
|
-
}),
|
|
8780
|
+
}), React__default.cloneElement(child, {
|
|
8682
8781
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8683
8782
|
}));
|
|
8684
8783
|
});
|
|
@@ -8688,13 +8787,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8688
8787
|
var defaultProps$A = {
|
|
8689
8788
|
noGutters: false
|
|
8690
8789
|
};
|
|
8691
|
-
var Row =
|
|
8790
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8692
8791
|
var bsPrefix = _ref.bsPrefix,
|
|
8693
8792
|
className = _ref.className,
|
|
8694
8793
|
noGutters = _ref.noGutters,
|
|
8695
8794
|
_ref$as = _ref.as,
|
|
8696
8795
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8697
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8796
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8698
8797
|
|
|
8699
8798
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8700
8799
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8713,7 +8812,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8713
8812
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8714
8813
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8715
8814
|
});
|
|
8716
|
-
return /*#__PURE__*/
|
|
8815
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8717
8816
|
ref: ref
|
|
8718
8817
|
}, props, {
|
|
8719
8818
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8722,7 +8821,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8722
8821
|
Row.displayName = 'Row';
|
|
8723
8822
|
Row.defaultProps = defaultProps$A;
|
|
8724
8823
|
|
|
8725
|
-
var Spinner =
|
|
8824
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8726
8825
|
var bsPrefix = _ref.bsPrefix,
|
|
8727
8826
|
variant = _ref.variant,
|
|
8728
8827
|
animation = _ref.animation,
|
|
@@ -8731,11 +8830,11 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8731
8830
|
_ref$as = _ref.as,
|
|
8732
8831
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8733
8832
|
className = _ref.className,
|
|
8734
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8833
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8735
8834
|
|
|
8736
8835
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8737
8836
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8738
|
-
return /*#__PURE__*/
|
|
8837
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8739
8838
|
ref: ref
|
|
8740
8839
|
}, props, {
|
|
8741
8840
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8774,6 +8873,15 @@ var propTypes$a = {
|
|
|
8774
8873
|
/** Disables both Buttons */
|
|
8775
8874
|
disabled: PropTypes.bool,
|
|
8776
8875
|
|
|
8876
|
+
/**
|
|
8877
|
+
* Aligns the dropdown menu responsively.
|
|
8878
|
+
*
|
|
8879
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8880
|
+
*
|
|
8881
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8882
|
+
*/
|
|
8883
|
+
menuAlign: alignPropType,
|
|
8884
|
+
|
|
8777
8885
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8778
8886
|
menuRole: PropTypes.string,
|
|
8779
8887
|
|
|
@@ -8783,7 +8891,7 @@ var propTypes$a = {
|
|
|
8783
8891
|
/**
|
|
8784
8892
|
* Which event when fired outside the component will cause it to be closed.
|
|
8785
8893
|
*
|
|
8786
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8894
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8787
8895
|
*/
|
|
8788
8896
|
rootCloseEvent: PropTypes.string,
|
|
8789
8897
|
|
|
@@ -8800,7 +8908,7 @@ var defaultProps$B = {
|
|
|
8800
8908
|
toggleLabel: 'Toggle dropdown',
|
|
8801
8909
|
type: 'button'
|
|
8802
8910
|
};
|
|
8803
|
-
var SplitButton =
|
|
8911
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8804
8912
|
var id = _ref.id,
|
|
8805
8913
|
bsPrefix = _ref.bsPrefix,
|
|
8806
8914
|
size = _ref.size,
|
|
@@ -8812,16 +8920,17 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8812
8920
|
onClick = _ref.onClick,
|
|
8813
8921
|
href = _ref.href,
|
|
8814
8922
|
target = _ref.target,
|
|
8923
|
+
menuAlign = _ref.menuAlign,
|
|
8815
8924
|
menuRole = _ref.menuRole,
|
|
8816
8925
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8817
8926
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8818
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8927
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8819
8928
|
|
|
8820
|
-
return /*#__PURE__*/
|
|
8929
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8821
8930
|
ref: ref
|
|
8822
8931
|
}, props, {
|
|
8823
8932
|
as: ButtonGroup
|
|
8824
|
-
}), /*#__PURE__*/
|
|
8933
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8825
8934
|
size: size,
|
|
8826
8935
|
variant: variant,
|
|
8827
8936
|
disabled: props.disabled,
|
|
@@ -8830,16 +8939,17 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8830
8939
|
target: target,
|
|
8831
8940
|
onClick: onClick,
|
|
8832
8941
|
type: type
|
|
8833
|
-
}, title), /*#__PURE__*/
|
|
8942
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8834
8943
|
split: true,
|
|
8835
8944
|
id: id ? id.toString() : undefined,
|
|
8836
8945
|
size: size,
|
|
8837
8946
|
variant: variant,
|
|
8838
8947
|
disabled: props.disabled,
|
|
8839
8948
|
childBsPrefix: bsPrefix
|
|
8840
|
-
}, /*#__PURE__*/
|
|
8949
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8841
8950
|
className: "sr-only"
|
|
8842
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8951
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8952
|
+
align: menuAlign,
|
|
8843
8953
|
role: menuRole,
|
|
8844
8954
|
renderOnMount: renderMenuOnMount,
|
|
8845
8955
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8882,22 +8992,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8882
8992
|
}
|
|
8883
8993
|
};
|
|
8884
8994
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8885
|
-
return /*#__PURE__*/
|
|
8995
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8886
8996
|
value: tabContext
|
|
8887
|
-
}, /*#__PURE__*/
|
|
8997
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8888
8998
|
value: onSelect || null
|
|
8889
8999
|
}, children));
|
|
8890
9000
|
};
|
|
8891
9001
|
|
|
8892
|
-
var TabContent =
|
|
9002
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8893
9003
|
var bsPrefix = _ref.bsPrefix,
|
|
8894
9004
|
_ref$as = _ref.as,
|
|
8895
9005
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8896
9006
|
className = _ref.className,
|
|
8897
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9007
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
8898
9008
|
|
|
8899
9009
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8900
|
-
return /*#__PURE__*/
|
|
9010
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8901
9011
|
ref: ref
|
|
8902
9012
|
}, props, {
|
|
8903
9013
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -8911,11 +9021,11 @@ function useTabContext(props) {
|
|
|
8911
9021
|
var activeKey = context.activeKey,
|
|
8912
9022
|
getControlledId = context.getControlledId,
|
|
8913
9023
|
getControllerId = context.getControllerId,
|
|
8914
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9024
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8915
9025
|
|
|
8916
9026
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8917
9027
|
var key = makeEventKey(props.eventKey);
|
|
8918
|
-
return _extends({}, props, {
|
|
9028
|
+
return _extends$1({}, props, {
|
|
8919
9029
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8920
9030
|
id: getControlledId(props.eventKey),
|
|
8921
9031
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8925,7 +9035,7 @@ function useTabContext(props) {
|
|
|
8925
9035
|
});
|
|
8926
9036
|
}
|
|
8927
9037
|
|
|
8928
|
-
var TabPane =
|
|
9038
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8929
9039
|
var _useTabContext = useTabContext(props),
|
|
8930
9040
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8931
9041
|
className = _useTabContext.className,
|
|
@@ -8942,11 +9052,11 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8942
9052
|
_useTabContext$as = _useTabContext.as,
|
|
8943
9053
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8944
9054
|
_ = _useTabContext.eventKey,
|
|
8945
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9055
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8946
9056
|
|
|
8947
9057
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8948
9058
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8949
|
-
var pane = /*#__PURE__*/
|
|
9059
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
8950
9060
|
ref: ref,
|
|
8951
9061
|
role: "tabpanel",
|
|
8952
9062
|
"aria-hidden": !active,
|
|
@@ -8954,7 +9064,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8954
9064
|
active: active
|
|
8955
9065
|
})
|
|
8956
9066
|
}));
|
|
8957
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9067
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8958
9068
|
in: active,
|
|
8959
9069
|
onEnter: onEnter,
|
|
8960
9070
|
onEntering: onEntering,
|
|
@@ -8967,9 +9077,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8967
9077
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
8968
9078
|
// conflict with the top level one.
|
|
8969
9079
|
|
|
8970
|
-
return /*#__PURE__*/
|
|
9080
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8971
9081
|
value: null
|
|
8972
|
-
}, /*#__PURE__*/
|
|
9082
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8973
9083
|
value: null
|
|
8974
9084
|
}, pane));
|
|
8975
9085
|
});
|
|
@@ -8990,13 +9100,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
8990
9100
|
};
|
|
8991
9101
|
|
|
8992
9102
|
return Tab;
|
|
8993
|
-
}(
|
|
9103
|
+
}(React__default.Component);
|
|
8994
9104
|
|
|
8995
9105
|
Tab.Container = TabContainer;
|
|
8996
9106
|
Tab.Content = TabContent;
|
|
8997
9107
|
Tab.Pane = TabPane;
|
|
8998
9108
|
|
|
8999
|
-
var Table =
|
|
9109
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9000
9110
|
var bsPrefix = _ref.bsPrefix,
|
|
9001
9111
|
className = _ref.className,
|
|
9002
9112
|
striped = _ref.striped,
|
|
@@ -9006,11 +9116,11 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9006
9116
|
size = _ref.size,
|
|
9007
9117
|
variant = _ref.variant,
|
|
9008
9118
|
responsive = _ref.responsive,
|
|
9009
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9119
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9010
9120
|
|
|
9011
9121
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9012
9122
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9013
|
-
var table = /*#__PURE__*/
|
|
9123
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9014
9124
|
className: classes,
|
|
9015
9125
|
ref: ref
|
|
9016
9126
|
}));
|
|
@@ -9022,7 +9132,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9022
9132
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9023
9133
|
}
|
|
9024
9134
|
|
|
9025
|
-
return /*#__PURE__*/
|
|
9135
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9026
9136
|
className: responsiveClass
|
|
9027
9137
|
}, table);
|
|
9028
9138
|
}
|
|
@@ -9030,7 +9140,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9030
9140
|
return table;
|
|
9031
9141
|
});
|
|
9032
9142
|
|
|
9033
|
-
var ToastContext =
|
|
9143
|
+
var ToastContext = React__default.createContext({
|
|
9034
9144
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9035
9145
|
onClose: function onClose() {}
|
|
9036
9146
|
});
|
|
@@ -9039,13 +9149,13 @@ var defaultProps$C = {
|
|
|
9039
9149
|
closeLabel: 'Close',
|
|
9040
9150
|
closeButton: true
|
|
9041
9151
|
};
|
|
9042
|
-
var ToastHeader =
|
|
9152
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9043
9153
|
var bsPrefix = _ref.bsPrefix,
|
|
9044
9154
|
closeLabel = _ref.closeLabel,
|
|
9045
9155
|
closeButton = _ref.closeButton,
|
|
9046
9156
|
className = _ref.className,
|
|
9047
9157
|
children = _ref.children,
|
|
9048
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9158
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9049
9159
|
|
|
9050
9160
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9051
9161
|
var context = useContext(ToastContext);
|
|
@@ -9054,11 +9164,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9054
9164
|
context.onClose(e);
|
|
9055
9165
|
}
|
|
9056
9166
|
});
|
|
9057
|
-
return /*#__PURE__*/
|
|
9167
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9058
9168
|
ref: ref
|
|
9059
9169
|
}, props, {
|
|
9060
9170
|
className: classnames(bsPrefix, className)
|
|
9061
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9171
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9062
9172
|
label: closeLabel,
|
|
9063
9173
|
onClick: handleClick,
|
|
9064
9174
|
className: "ml-2 mb-1",
|
|
@@ -9070,7 +9180,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9070
9180
|
|
|
9071
9181
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9072
9182
|
|
|
9073
|
-
var Toast =
|
|
9183
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9074
9184
|
var bsPrefix = _ref.bsPrefix,
|
|
9075
9185
|
className = _ref.className,
|
|
9076
9186
|
children = _ref.children,
|
|
@@ -9085,7 +9195,7 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9085
9195
|
_ref$autohide = _ref.autohide,
|
|
9086
9196
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9087
9197
|
onClose = _ref.onClose,
|
|
9088
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9198
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9089
9199
|
|
|
9090
9200
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9091
9201
|
// timer in case these values change.
|
|
@@ -9113,16 +9223,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9113
9223
|
};
|
|
9114
9224
|
}, [onClose]);
|
|
9115
9225
|
var hasAnimation = !!(Transition && animation);
|
|
9116
|
-
var toast = /*#__PURE__*/
|
|
9226
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9117
9227
|
ref: ref,
|
|
9118
9228
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9119
9229
|
role: "alert",
|
|
9120
9230
|
"aria-live": "assertive",
|
|
9121
9231
|
"aria-atomic": "true"
|
|
9122
9232
|
}), children);
|
|
9123
|
-
return /*#__PURE__*/
|
|
9233
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9124
9234
|
value: toastContext
|
|
9125
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9235
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9126
9236
|
in: show,
|
|
9127
9237
|
unmountOnExit: true
|
|
9128
9238
|
}, toast) : toast);
|
|
@@ -9137,7 +9247,7 @@ var noop$5 = function noop() {
|
|
|
9137
9247
|
return undefined;
|
|
9138
9248
|
};
|
|
9139
9249
|
|
|
9140
|
-
var ToggleButton =
|
|
9250
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9141
9251
|
var children = _ref.children,
|
|
9142
9252
|
name = _ref.name,
|
|
9143
9253
|
className = _ref.className,
|
|
@@ -9147,7 +9257,7 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9147
9257
|
value = _ref.value,
|
|
9148
9258
|
disabled = _ref.disabled,
|
|
9149
9259
|
inputRef = _ref.inputRef,
|
|
9150
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9260
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9151
9261
|
|
|
9152
9262
|
var _useState = useState(false),
|
|
9153
9263
|
focused = _useState[0],
|
|
@@ -9159,13 +9269,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9159
9269
|
var handleBlur = useCallback(function (e) {
|
|
9160
9270
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9161
9271
|
}, []);
|
|
9162
|
-
return /*#__PURE__*/
|
|
9272
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9163
9273
|
ref: ref,
|
|
9164
9274
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9165
9275
|
type: undefined,
|
|
9166
9276
|
active: !!checked,
|
|
9167
9277
|
as: "label"
|
|
9168
|
-
}), /*#__PURE__*/
|
|
9278
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9169
9279
|
name: name,
|
|
9170
9280
|
type: type,
|
|
9171
9281
|
value: value,
|
|
@@ -9181,9 +9291,10 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9181
9291
|
ToggleButton.displayName = 'ToggleButton';
|
|
9182
9292
|
|
|
9183
9293
|
var defaultProps$D = {
|
|
9184
|
-
type: 'radio'
|
|
9294
|
+
type: 'radio',
|
|
9295
|
+
vertical: false
|
|
9185
9296
|
};
|
|
9186
|
-
var ToggleButtonGroup =
|
|
9297
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9187
9298
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9188
9299
|
value: 'onChange'
|
|
9189
9300
|
}),
|
|
@@ -9192,7 +9303,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9192
9303
|
name = _useUncontrolled.name,
|
|
9193
9304
|
value = _useUncontrolled.value,
|
|
9194
9305
|
onChange = _useUncontrolled.onChange,
|
|
9195
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9306
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9196
9307
|
|
|
9197
9308
|
var getValues = function getValues() {
|
|
9198
9309
|
return value == null ? [] : [].concat(value);
|
|
@@ -9221,7 +9332,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9221
9332
|
};
|
|
9222
9333
|
|
|
9223
9334
|
!(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;
|
|
9224
|
-
return /*#__PURE__*/
|
|
9335
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9225
9336
|
ref: ref,
|
|
9226
9337
|
toggle: true
|
|
9227
9338
|
}), map(children, function (child) {
|
|
@@ -9234,7 +9345,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9234
9345
|
return handleToggle(childVal, e);
|
|
9235
9346
|
};
|
|
9236
9347
|
|
|
9237
|
-
return
|
|
9348
|
+
return React__default.cloneElement(child, {
|
|
9238
9349
|
type: type,
|
|
9239
9350
|
name: child.name || name,
|
|
9240
9351
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9248,7 +9359,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9248
9359
|
var defaultProps$E = {
|
|
9249
9360
|
placement: 'right'
|
|
9250
9361
|
};
|
|
9251
|
-
var Tooltip =
|
|
9362
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9252
9363
|
var bsPrefix = _ref.bsPrefix,
|
|
9253
9364
|
placement = _ref.placement,
|
|
9254
9365
|
className = _ref.className,
|
|
@@ -9257,29 +9368,29 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9257
9368
|
arrowProps = _ref.arrowProps,
|
|
9258
9369
|
_ = _ref.popper,
|
|
9259
9370
|
_2 = _ref.show,
|
|
9260
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9371
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9261
9372
|
|
|
9262
9373
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9263
9374
|
|
|
9264
9375
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9265
9376
|
primaryPlacement = _ref2[0];
|
|
9266
9377
|
|
|
9267
|
-
return /*#__PURE__*/
|
|
9378
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9268
9379
|
ref: ref,
|
|
9269
9380
|
style: style,
|
|
9270
9381
|
role: "tooltip",
|
|
9271
9382
|
"x-placement": primaryPlacement,
|
|
9272
9383
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9273
|
-
}, props), /*#__PURE__*/
|
|
9384
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9274
9385
|
className: "arrow"
|
|
9275
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9386
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9276
9387
|
className: bsPrefix + "-inner"
|
|
9277
9388
|
}, children));
|
|
9278
9389
|
});
|
|
9279
9390
|
Tooltip.defaultProps = defaultProps$E;
|
|
9280
9391
|
Tooltip.displayName = 'Tooltip';
|
|
9281
9392
|
|
|
9282
|
-
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";
|
|
9393
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9283
9394
|
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" };
|
|
9284
9395
|
styleInject(css);
|
|
9285
9396
|
|
|
@@ -9290,54 +9401,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9290
9401
|
client = props.client;
|
|
9291
9402
|
|
|
9292
9403
|
|
|
9293
|
-
return
|
|
9404
|
+
return React__default.createElement(
|
|
9294
9405
|
'div',
|
|
9295
9406
|
{ className: styles.article },
|
|
9296
|
-
|
|
9407
|
+
React__default.createElement(
|
|
9297
9408
|
'a',
|
|
9298
9409
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9299
|
-
|
|
9410
|
+
React__default.createElement(
|
|
9300
9411
|
'div',
|
|
9301
9412
|
{ className: styles.thumb },
|
|
9302
|
-
|
|
9413
|
+
React__default.createElement(
|
|
9303
9414
|
'figure',
|
|
9304
9415
|
null,
|
|
9305
|
-
|
|
9416
|
+
React__default.createElement(
|
|
9306
9417
|
LazyLoad,
|
|
9307
9418
|
null,
|
|
9308
|
-
|
|
9419
|
+
React__default.createElement('img', {
|
|
9309
9420
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9310
9421
|
})
|
|
9311
9422
|
)
|
|
9312
9423
|
)
|
|
9313
9424
|
),
|
|
9314
|
-
|
|
9425
|
+
React__default.createElement(
|
|
9315
9426
|
'div',
|
|
9316
9427
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9317
|
-
|
|
9428
|
+
React__default.createElement(
|
|
9318
9429
|
'div',
|
|
9319
9430
|
{ className: styles.name },
|
|
9320
9431
|
data.name
|
|
9321
9432
|
),
|
|
9322
|
-
data.published &&
|
|
9433
|
+
data.published && React__default.createElement(
|
|
9323
9434
|
'p',
|
|
9324
9435
|
{ className: styles.published },
|
|
9325
9436
|
moment(data.published).format('MMMM Do YYYY')
|
|
9326
9437
|
),
|
|
9327
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9438
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9328
9439
|
'p',
|
|
9329
9440
|
{ className: styles.author },
|
|
9330
9441
|
'By ',
|
|
9331
|
-
|
|
9442
|
+
React__default.createElement(
|
|
9332
9443
|
'span',
|
|
9333
9444
|
null,
|
|
9334
9445
|
data.authorMapping.displayName
|
|
9335
9446
|
)
|
|
9336
9447
|
),
|
|
9337
|
-
data.description &&
|
|
9448
|
+
data.description && React__default.createElement(
|
|
9338
9449
|
'div',
|
|
9339
9450
|
{ className: 'media-series-desc' },
|
|
9340
|
-
|
|
9451
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9341
9452
|
)
|
|
9342
9453
|
)
|
|
9343
9454
|
)
|
|
@@ -9366,11 +9477,11 @@ var Filter = function Filter(_ref) {
|
|
|
9366
9477
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9367
9478
|
grandChildData = _useState6[0],
|
|
9368
9479
|
setGrandChildData = _useState6[1];
|
|
9369
|
-
/*
|
|
9370
|
-
{parent: showAll,
|
|
9371
|
-
chidlren: show selected from parent,
|
|
9372
|
-
grandchildren: show selected from children
|
|
9373
|
-
}
|
|
9480
|
+
/*
|
|
9481
|
+
{parent: showAll,
|
|
9482
|
+
chidlren: show selected from parent,
|
|
9483
|
+
grandchildren: show selected from children
|
|
9484
|
+
}
|
|
9374
9485
|
*/
|
|
9375
9486
|
|
|
9376
9487
|
|
|
@@ -9385,7 +9496,7 @@ var Filter = function Filter(_ref) {
|
|
|
9385
9496
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9386
9497
|
if (type === 'parent') {
|
|
9387
9498
|
setParentData(function (prevState) {
|
|
9388
|
-
return _extends$
|
|
9499
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9389
9500
|
});
|
|
9390
9501
|
if (group && group.children && group.children.length > 0) {
|
|
9391
9502
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9399,7 +9510,7 @@ var Filter = function Filter(_ref) {
|
|
|
9399
9510
|
}
|
|
9400
9511
|
if (type === 'child') {
|
|
9401
9512
|
setChildData(function (prevState) {
|
|
9402
|
-
return _extends$
|
|
9513
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9403
9514
|
});
|
|
9404
9515
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9405
9516
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9418,7 +9529,7 @@ var Filter = function Filter(_ref) {
|
|
|
9418
9529
|
}
|
|
9419
9530
|
if (type === 'grandchild') {
|
|
9420
9531
|
setGrandChildData(function (prevState) {
|
|
9421
|
-
return _extends$
|
|
9532
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9422
9533
|
});
|
|
9423
9534
|
//handle filter
|
|
9424
9535
|
if (!group._id) {
|
|
@@ -9434,13 +9545,13 @@ var Filter = function Filter(_ref) {
|
|
|
9434
9545
|
}
|
|
9435
9546
|
};
|
|
9436
9547
|
|
|
9437
|
-
return
|
|
9548
|
+
return React__default.createElement(
|
|
9438
9549
|
'div',
|
|
9439
9550
|
{ className: 'flex-container' },
|
|
9440
|
-
parentData &&
|
|
9551
|
+
parentData && React__default.createElement(
|
|
9441
9552
|
DropdownButton,
|
|
9442
9553
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9443
|
-
|
|
9554
|
+
React__default.createElement(
|
|
9444
9555
|
Dropdown$1.Item,
|
|
9445
9556
|
{ onSelect: function onSelect() {
|
|
9446
9557
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9449,7 +9560,7 @@ var Filter = function Filter(_ref) {
|
|
|
9449
9560
|
),
|
|
9450
9561
|
parentData.data.map(function (docGroup) {
|
|
9451
9562
|
if (!docGroup._id) return null;
|
|
9452
|
-
return
|
|
9563
|
+
return React__default.createElement(
|
|
9453
9564
|
Dropdown$1.Item,
|
|
9454
9565
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9455
9566
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9458,10 +9569,10 @@ var Filter = function Filter(_ref) {
|
|
|
9458
9569
|
);
|
|
9459
9570
|
})
|
|
9460
9571
|
),
|
|
9461
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9572
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9462
9573
|
DropdownButton,
|
|
9463
9574
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9464
|
-
|
|
9575
|
+
React__default.createElement(
|
|
9465
9576
|
Dropdown$1.Item,
|
|
9466
9577
|
{ onSelect: function onSelect() {
|
|
9467
9578
|
return handleFilterSelect({}, 'child');
|
|
@@ -9470,7 +9581,7 @@ var Filter = function Filter(_ref) {
|
|
|
9470
9581
|
),
|
|
9471
9582
|
childData.data.map(function (docGroup) {
|
|
9472
9583
|
if (!docGroup._id) return null;
|
|
9473
|
-
return
|
|
9584
|
+
return React__default.createElement(
|
|
9474
9585
|
Dropdown$1.Item,
|
|
9475
9586
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9476
9587
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9479,10 +9590,10 @@ var Filter = function Filter(_ref) {
|
|
|
9479
9590
|
);
|
|
9480
9591
|
})
|
|
9481
9592
|
),
|
|
9482
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9593
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9483
9594
|
DropdownButton,
|
|
9484
9595
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9485
|
-
|
|
9596
|
+
React__default.createElement(
|
|
9486
9597
|
Dropdown$1.Item,
|
|
9487
9598
|
{ onSelect: function onSelect() {
|
|
9488
9599
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9491,7 +9602,7 @@ var Filter = function Filter(_ref) {
|
|
|
9491
9602
|
),
|
|
9492
9603
|
grandChildData.data.map(function (docGroup) {
|
|
9493
9604
|
if (!docGroup._id) return null;
|
|
9494
|
-
return
|
|
9605
|
+
return React__default.createElement(
|
|
9495
9606
|
Dropdown$1.Item,
|
|
9496
9607
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9497
9608
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9500,7 +9611,7 @@ var Filter = function Filter(_ref) {
|
|
|
9500
9611
|
);
|
|
9501
9612
|
})
|
|
9502
9613
|
),
|
|
9503
|
-
|
|
9614
|
+
React__default.createElement(
|
|
9504
9615
|
'style',
|
|
9505
9616
|
{ jsx: 'true' },
|
|
9506
9617
|
'\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 '
|
|
@@ -9548,7 +9659,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9548
9659
|
while (1) {
|
|
9549
9660
|
switch (_context.prev = _context.next) {
|
|
9550
9661
|
case 0:
|
|
9551
|
-
newParams = _extends$
|
|
9662
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9552
9663
|
filterQuery = void 0;
|
|
9553
9664
|
|
|
9554
9665
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9590,27 +9701,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9590
9701
|
}();
|
|
9591
9702
|
|
|
9592
9703
|
if (props.statusCode === 404) {
|
|
9593
|
-
return
|
|
9704
|
+
return React__default.createElement(
|
|
9594
9705
|
'div',
|
|
9595
9706
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9596
|
-
|
|
9707
|
+
React__default.createElement(
|
|
9597
9708
|
'h3',
|
|
9598
9709
|
null,
|
|
9599
9710
|
'404: Resource not found'
|
|
9600
9711
|
),
|
|
9601
|
-
|
|
9712
|
+
React__default.createElement(
|
|
9602
9713
|
'p',
|
|
9603
9714
|
null,
|
|
9604
9715
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9605
9716
|
),
|
|
9606
|
-
|
|
9717
|
+
React__default.createElement(
|
|
9607
9718
|
'p',
|
|
9608
9719
|
null,
|
|
9609
9720
|
'Click here to',
|
|
9610
|
-
|
|
9721
|
+
React__default.createElement(
|
|
9611
9722
|
Link,
|
|
9612
9723
|
{ href: '/' },
|
|
9613
|
-
|
|
9724
|
+
React__default.createElement(
|
|
9614
9725
|
'a',
|
|
9615
9726
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9616
9727
|
' return to homepage.'
|
|
@@ -9620,17 +9731,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9620
9731
|
);
|
|
9621
9732
|
}
|
|
9622
9733
|
|
|
9623
|
-
return
|
|
9734
|
+
return React__default.createElement(
|
|
9624
9735
|
'div',
|
|
9625
9736
|
{ className: 'mb-5' },
|
|
9626
|
-
props.docGroup && props.docGroup.description &&
|
|
9627
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9737
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9738
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9628
9739
|
'div',
|
|
9629
9740
|
{ className: '' },
|
|
9630
|
-
|
|
9631
|
-
|
|
9741
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9742
|
+
React__default.createElement('hr', null)
|
|
9632
9743
|
),
|
|
9633
|
-
seriesData &&
|
|
9744
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9634
9745
|
deck: MediaSeriesCard,
|
|
9635
9746
|
variant: 'left',
|
|
9636
9747
|
defaultImage: '/placeholder.jpg',
|