@mjhls/mjh-framework 1.0.861 → 1.0.862-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +11 -11
- package/dist/cjs/AD300x250x600.js +11 -11
- package/dist/cjs/AD728x90.js +12 -12
- package/dist/cjs/ADFloatingFooter.js +13 -13
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +13 -13
- package/dist/cjs/{ADInfeed-ff26342c.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +13 -13
- package/dist/cjs/ADSponsoredResources.js +13 -13
- package/dist/cjs/ADWebcast.js +13 -13
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-ad4953d4.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +15 -15
- package/dist/cjs/AdSlotsProvider.js +903 -11
- package/dist/cjs/AlgoliaSearch.js +14012 -49
- package/dist/cjs/AlphabeticList.js +16 -17
- package/dist/cjs/ArticleCarousel.js +11 -12
- package/dist/cjs/ArticleProgramLandingPage.js +28 -29
- package/dist/cjs/ArticleSeriesLandingPage.js +24 -24
- package/dist/cjs/ArticleSeriesListing.js +41 -41
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +561 -26
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +65 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +34 -36
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +82 -85
- package/dist/cjs/DeckQueue.js +70 -73
- package/dist/cjs/{Dfp-0bf098b5.js → Dfp-26baccf1.js} +23 -23
- package/dist/cjs/EventsDeck.js +134 -141
- package/dist/cjs/ExternalResources.js +48 -49
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +205 -209
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +38 -39
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +61 -66
- package/dist/cjs/IssueLanding.js +59 -60
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -23
- package/dist/cjs/MasterDeck.js +59 -59
- package/dist/cjs/MediaSeriesLanding.js +914 -806
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +3071 -449
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +21 -21
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +110 -114
- package/dist/cjs/QueueDeckExpanded.js +287 -286
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +27 -26
- package/dist/cjs/{SeriesSlider-60fa1342.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +55 -60
- package/dist/cjs/TaxonomyDescription.js +23 -24
- package/dist/cjs/TemplateNormal.js +36 -36
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +44 -48
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +29 -29
- package/dist/cjs/VideoSeriesListing.js +58 -58
- package/dist/cjs/View.js +202 -206
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/events-1b438fe7.js +469 -0
- package/dist/cjs/{extends-60837c34.js → extends-0a918631.js} +1 -0
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +13 -13
- package/dist/cjs/{getTargeting-3e45e4d4.js → getTargeting-f1821260.js} +11 -11
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-99edf08a.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-44481153.js → index-98e01cb9.js} +47 -494
- package/dist/cjs/{index-87d0db67.js → index-a1e54356.js} +1178 -954
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/index-e2e62963.js +89 -0
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +61 -65
- package/dist/cjs/{inherits-87492b40.js → inherits-1f5a1c72.js} +6 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +9 -8
- package/dist/esm/AD300x250x600.js +9 -8
- package/dist/esm/AD728x90.js +10 -9
- package/dist/esm/ADFloatingFooter.js +11 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +11 -10
- package/dist/esm/{ADInfeed-422ad6e6.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +11 -10
- package/dist/esm/ADSponsoredResources.js +11 -10
- package/dist/esm/ADWebcast.js +11 -10
- package/dist/esm/ADWelcome.js +15 -14
- package/dist/esm/{ADlgInfeed-f7468db8.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +7 -6
- package/dist/esm/AdSlotsProvider.js +903 -10
- package/dist/esm/AlgoliaSearch.js +14005 -41
- package/dist/esm/AlphabeticList.js +14 -14
- package/dist/esm/ArticleCarousel.js +9 -9
- package/dist/esm/ArticleProgramLandingPage.js +22 -22
- package/dist/esm/ArticleSeriesLandingPage.js +19 -18
- package/dist/esm/ArticleSeriesListing.js +38 -37
- package/dist/esm/Auth.js +1181 -217
- package/dist/esm/AuthWrapper.js +561 -24
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +62 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +32 -31
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +78 -77
- package/dist/esm/DeckQueue.js +66 -65
- package/dist/esm/{Dfp-85c9513e.js → Dfp-b7236041.js} +11 -10
- package/dist/esm/EventsDeck.js +110 -110
- package/dist/esm/ExternalResources.js +43 -43
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +174 -173
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +36 -36
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +55 -55
- package/dist/esm/IssueLanding.js +57 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +18 -17
- package/dist/esm/MasterDeck.js +56 -55
- package/dist/esm/MediaSeriesLanding.js +672 -561
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +2967 -344
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +19 -18
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +253 -252
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +22 -21
- package/dist/esm/{SeriesSlider-05ecb544.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +51 -51
- package/dist/esm/TaxonomyDescription.js +18 -18
- package/dist/esm/TemplateNormal.js +33 -32
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +34 -34
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +19 -18
- package/dist/esm/VideoSeriesListing.js +55 -54
- package/dist/esm/View.js +185 -185
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/events-6c3a7a63.js +467 -0
- package/dist/esm/{extends-eb69e8ac.js → extends-6f2fcc99.js} +1 -1
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +13 -13
- package/dist/esm/{getTargeting-9cb7e014.js → getTargeting-bd800589.js} +10 -10
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-1819118a.js → index-41a678ea.js} +41 -487
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-20e503c9.js → index-a1c5f00a.js} +1135 -900
- package/dist/esm/index-aaa2dae0.js +85 -0
- package/dist/esm/{index-fa2ffe86.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +53 -54
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-0d8cda6e.js → inherits-cf8dde54.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +111 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
6
|
require('./_to-object-329a650b.js');
|
|
5
7
|
require('./es6.string.iterator-cc0bbaa4.js');
|
|
@@ -8,53 +10,56 @@ require('./_iter-detect-60b2f026.js');
|
|
|
8
10
|
require('./toConsumableArray-9a3476fe.js');
|
|
9
11
|
require('./core.get-iterator-method-f62321d4.js');
|
|
10
12
|
require('./_object-pie-68c5bcbc.js');
|
|
11
|
-
var _extends$1 = require('./extends-
|
|
13
|
+
var _extends$1 = require('./extends-0a918631.js');
|
|
12
14
|
require('./_object-sap-5e74ba08.js');
|
|
13
|
-
require('./inherits-
|
|
15
|
+
require('./inherits-1f5a1c72.js');
|
|
14
16
|
require('./define-property-f4d12f4e.js');
|
|
15
17
|
require('./web.dom.iterable-a0e279c1.js');
|
|
16
|
-
var _typeof = require('./typeof-
|
|
18
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
17
19
|
require('./_is-array-754e012d.js');
|
|
18
20
|
var React = require('react');
|
|
19
|
-
|
|
21
|
+
var React__default = _interopDefault(React);
|
|
22
|
+
require('./events-1b438fe7.js');
|
|
23
|
+
require('./index-98e01cb9.js');
|
|
20
24
|
var PropTypes = require('prop-types');
|
|
25
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
21
26
|
require('react-bootstrap/Container');
|
|
22
27
|
require('react-bootstrap/Row');
|
|
23
28
|
require('react-bootstrap/Col');
|
|
24
29
|
require('react-bootstrap/Card');
|
|
25
|
-
var moment = require('./moment-
|
|
30
|
+
var moment = require('./moment-575fe24c.js');
|
|
26
31
|
require('next/router');
|
|
27
32
|
require('./isSymbol-04666465.js');
|
|
28
33
|
require('./debounce-529c8d06.js');
|
|
29
34
|
require('./toNumber-36d1e7e5.js');
|
|
30
|
-
require('./index.es-
|
|
31
|
-
var ReactDOM = require('react-dom');
|
|
32
|
-
require('./visibility-sensor-
|
|
33
|
-
require('./index-
|
|
35
|
+
require('./index.es-9110add6.js');
|
|
36
|
+
var ReactDOM = _interopDefault(require('react-dom'));
|
|
37
|
+
require('./visibility-sensor-ad5e3116.js');
|
|
38
|
+
require('./index-be0c82be.js');
|
|
34
39
|
var urlFor = require('./urlFor.js');
|
|
35
|
-
var index = require('./index-
|
|
36
|
-
require('./main-
|
|
40
|
+
var index$2 = require('./index-96b3db50.js');
|
|
41
|
+
require('./main-02daeefe.js');
|
|
37
42
|
require('./entities-310b46ee.js');
|
|
38
43
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
39
44
|
require('./stringify-7c5aff47.js');
|
|
40
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
45
|
+
var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
|
|
41
46
|
require('./Segment.js');
|
|
42
47
|
require('./Beam.js');
|
|
43
48
|
require('./AdSlot.js');
|
|
44
|
-
require('./ADInfeed-
|
|
45
|
-
require('./lodash-
|
|
46
|
-
require('./ADlgInfeed-
|
|
49
|
+
require('./ADInfeed-98c71bcd.js');
|
|
50
|
+
require('./lodash-fc2922d0.js');
|
|
51
|
+
require('./ADlgInfeed-9de32585.js');
|
|
47
52
|
require('react-bootstrap/Button');
|
|
48
|
-
var BlockContent = require('./BlockContent-
|
|
53
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
49
54
|
require('./index-187c967e.js');
|
|
50
55
|
require('./smoothscroll-5054361f.js');
|
|
51
56
|
require('./GroupDeck.js');
|
|
52
57
|
require('react-bootstrap');
|
|
53
58
|
require('./iconBase-68959171.js');
|
|
54
|
-
require('./index.esm-
|
|
55
|
-
var getSerializers = require('./index-
|
|
59
|
+
require('./index.esm-90433435.js');
|
|
60
|
+
var getSerializers = require('./index-a1e54356.js');
|
|
56
61
|
require('./util-f2c1b65b.js');
|
|
57
|
-
require('./brightcove-react-player-loader.es-
|
|
62
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
58
63
|
require('next/head');
|
|
59
64
|
require('react-share');
|
|
60
65
|
require('./SocialShare.js');
|
|
@@ -64,100 +69,11 @@ require('react-bootstrap/Figure');
|
|
|
64
69
|
require('react-bootstrap/OverlayTrigger');
|
|
65
70
|
require('react-bootstrap/Tooltip');
|
|
66
71
|
require('react-bootstrap/Popover');
|
|
67
|
-
require('react-script-tag');
|
|
68
72
|
var MasterDeck = require('./MasterDeck.js');
|
|
69
|
-
var defineProperty = require('./defineProperty-55548b25.js');
|
|
73
|
+
var defineProperty$1$1 = require('./defineProperty-55548b25.js');
|
|
74
|
+
var index$5 = require('./index-e2e62963.js');
|
|
70
75
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
71
|
-
var Link = require('next/link');
|
|
72
|
-
|
|
73
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
74
|
-
|
|
75
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
76
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
77
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
78
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
79
|
-
|
|
80
|
-
function _extends() {
|
|
81
|
-
_extends = Object.assign || function (target) {
|
|
82
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
83
|
-
var source = arguments[i];
|
|
84
|
-
|
|
85
|
-
for (var key in source) {
|
|
86
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
87
|
-
target[key] = source[key];
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
return target;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
return _extends.apply(this, arguments);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
99
|
-
if (source == null) return {};
|
|
100
|
-
var target = {};
|
|
101
|
-
var sourceKeys = Object.keys(source);
|
|
102
|
-
var key, i;
|
|
103
|
-
|
|
104
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
105
|
-
key = sourceKeys[i];
|
|
106
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
107
|
-
target[key] = source[key];
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return target;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
114
|
-
/*!
|
|
115
|
-
Copyright (c) 2017 Jed Watson.
|
|
116
|
-
Licensed under the MIT License (MIT), see
|
|
117
|
-
http://jedwatson.github.io/classnames
|
|
118
|
-
*/
|
|
119
|
-
/* global define */
|
|
120
|
-
|
|
121
|
-
(function () {
|
|
122
|
-
|
|
123
|
-
var hasOwn = {}.hasOwnProperty;
|
|
124
|
-
|
|
125
|
-
function classNames () {
|
|
126
|
-
var classes = [];
|
|
127
|
-
|
|
128
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
129
|
-
var arg = arguments[i];
|
|
130
|
-
if (!arg) continue;
|
|
131
|
-
|
|
132
|
-
var argType = typeof arg;
|
|
133
|
-
|
|
134
|
-
if (argType === 'string' || argType === 'number') {
|
|
135
|
-
classes.push(arg);
|
|
136
|
-
} else if (Array.isArray(arg) && arg.length) {
|
|
137
|
-
var inner = classNames.apply(null, arg);
|
|
138
|
-
if (inner) {
|
|
139
|
-
classes.push(inner);
|
|
140
|
-
}
|
|
141
|
-
} else if (argType === 'object') {
|
|
142
|
-
for (var key in arg) {
|
|
143
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
144
|
-
classes.push(key);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
return classes.join(' ');
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
if ( module.exports) {
|
|
154
|
-
classNames.default = classNames;
|
|
155
|
-
module.exports = classNames;
|
|
156
|
-
} else {
|
|
157
|
-
window.classNames = classNames;
|
|
158
|
-
}
|
|
159
|
-
}());
|
|
160
|
-
});
|
|
76
|
+
var Link = _interopDefault(require('next/link'));
|
|
161
77
|
|
|
162
78
|
/**
|
|
163
79
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -252,7 +168,7 @@ function useUncontrolled(props, config) {
|
|
|
252
168
|
var _ref = result,
|
|
253
169
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
254
170
|
propsValue = _ref[fieldName],
|
|
255
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
171
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
256
172
|
|
|
257
173
|
var handlerName = config[fieldName];
|
|
258
174
|
|
|
@@ -260,7 +176,7 @@ function useUncontrolled(props, config) {
|
|
|
260
176
|
value = _useUncontrolledProp[0],
|
|
261
177
|
handler = _useUncontrolledProp[1];
|
|
262
178
|
|
|
263
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
179
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
264
180
|
}, props);
|
|
265
181
|
}
|
|
266
182
|
|
|
@@ -270,7 +186,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
270
186
|
subClass.__proto__ = superClass;
|
|
271
187
|
}
|
|
272
188
|
|
|
273
|
-
var ThemeContext = React__default
|
|
189
|
+
var ThemeContext = React__default.createContext({});
|
|
274
190
|
var Consumer = ThemeContext.Consumer,
|
|
275
191
|
Provider = ThemeContext.Provider;
|
|
276
192
|
|
|
@@ -279,7 +195,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
279
195
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
280
196
|
}
|
|
281
197
|
|
|
282
|
-
var SelectableContext = React__default
|
|
198
|
+
var SelectableContext = React__default.createContext(null);
|
|
283
199
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
284
200
|
if (href === void 0) {
|
|
285
201
|
href = null;
|
|
@@ -289,7 +205,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
289
205
|
return href || null;
|
|
290
206
|
};
|
|
291
207
|
|
|
292
|
-
var context = React__default
|
|
208
|
+
var context = React__default.createContext(null);
|
|
293
209
|
context.displayName = 'AccordionContext';
|
|
294
210
|
|
|
295
211
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -305,13 +221,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
305
221
|
if (onClick) onClick(e);
|
|
306
222
|
};
|
|
307
223
|
}
|
|
308
|
-
var AccordionToggle = React__default
|
|
224
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
309
225
|
var _ref$as = _ref.as,
|
|
310
226
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
311
227
|
children = _ref.children,
|
|
312
228
|
eventKey = _ref.eventKey,
|
|
313
229
|
onClick = _ref.onClick,
|
|
314
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
230
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
315
231
|
|
|
316
232
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
317
233
|
|
|
@@ -319,7 +235,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
319
235
|
props.type = 'button';
|
|
320
236
|
}
|
|
321
237
|
|
|
322
|
-
return /*#__PURE__*/React__default
|
|
238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
323
239
|
ref: ref,
|
|
324
240
|
onClick: accordionOnClick
|
|
325
241
|
}, props), children);
|
|
@@ -498,25 +414,25 @@ var config = {
|
|
|
498
414
|
disabled: false
|
|
499
415
|
};
|
|
500
416
|
|
|
501
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
502
|
-
enter: PropTypes__default
|
|
503
|
-
exit: PropTypes__default
|
|
504
|
-
appear: PropTypes__default
|
|
417
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.shape({
|
|
418
|
+
enter: PropTypes__default.number,
|
|
419
|
+
exit: PropTypes__default.number,
|
|
420
|
+
appear: PropTypes__default.number
|
|
505
421
|
}).isRequired]) : null;
|
|
506
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
507
|
-
enter: PropTypes__default
|
|
508
|
-
exit: PropTypes__default
|
|
509
|
-
active: PropTypes__default
|
|
510
|
-
}), PropTypes__default
|
|
511
|
-
enter: PropTypes__default
|
|
512
|
-
enterDone: PropTypes__default
|
|
513
|
-
enterActive: PropTypes__default
|
|
514
|
-
exit: PropTypes__default
|
|
515
|
-
exitDone: PropTypes__default
|
|
516
|
-
exitActive: PropTypes__default
|
|
422
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.shape({
|
|
423
|
+
enter: PropTypes__default.string,
|
|
424
|
+
exit: PropTypes__default.string,
|
|
425
|
+
active: PropTypes__default.string
|
|
426
|
+
}), PropTypes__default.shape({
|
|
427
|
+
enter: PropTypes__default.string,
|
|
428
|
+
enterDone: PropTypes__default.string,
|
|
429
|
+
enterActive: PropTypes__default.string,
|
|
430
|
+
exit: PropTypes__default.string,
|
|
431
|
+
exitDone: PropTypes__default.string,
|
|
432
|
+
exitActive: PropTypes__default.string
|
|
517
433
|
})]) : null;
|
|
518
434
|
|
|
519
|
-
var TransitionGroupContext = React__default
|
|
435
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
520
436
|
|
|
521
437
|
var UNMOUNTED = 'unmounted';
|
|
522
438
|
var EXITED = 'exited';
|
|
@@ -754,7 +670,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
754
670
|
var enter = this.props.enter;
|
|
755
671
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
756
672
|
|
|
757
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
673
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
758
674
|
maybeNode = _ref2[0],
|
|
759
675
|
maybeAppearing = _ref2[1];
|
|
760
676
|
|
|
@@ -792,7 +708,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
708
|
|
|
793
709
|
var exit = this.props.exit;
|
|
794
710
|
var timeouts = this.getTimeouts();
|
|
795
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
711
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
796
712
|
|
|
797
713
|
if (!exit || config.disabled) {
|
|
798
714
|
this.safeSetState({
|
|
@@ -856,7 +772,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
856
772
|
|
|
857
773
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
858
774
|
this.setNextCallback(handler);
|
|
859
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
775
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
860
776
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
861
777
|
|
|
862
778
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -901,19 +817,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
901
817
|
_onExiting = _this$props.onExiting,
|
|
902
818
|
_onExited = _this$props.onExited,
|
|
903
819
|
_nodeRef = _this$props.nodeRef,
|
|
904
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
820
|
+
childProps = index$5._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
905
821
|
|
|
906
822
|
return (
|
|
907
823
|
/*#__PURE__*/
|
|
908
824
|
// allows for nested Transitions
|
|
909
|
-
React__default
|
|
825
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
910
826
|
value: null
|
|
911
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
827
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
912
828
|
);
|
|
913
829
|
};
|
|
914
830
|
|
|
915
831
|
return Transition;
|
|
916
|
-
}(React__default
|
|
832
|
+
}(React__default.Component);
|
|
917
833
|
|
|
918
834
|
Transition.contextType = TransitionGroupContext;
|
|
919
835
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -928,8 +844,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
928
844
|
* (see
|
|
929
845
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
930
846
|
*/
|
|
931
|
-
nodeRef: PropTypes__default
|
|
932
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
847
|
+
nodeRef: PropTypes__default.shape({
|
|
848
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
933
849
|
}),
|
|
934
850
|
|
|
935
851
|
/**
|
|
@@ -946,12 +862,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
946
862
|
* </Transition>
|
|
947
863
|
* ```
|
|
948
864
|
*/
|
|
949
|
-
children: PropTypes__default
|
|
865
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
950
866
|
|
|
951
867
|
/**
|
|
952
868
|
* Show the component; triggers the enter or exit states
|
|
953
869
|
*/
|
|
954
|
-
in: PropTypes__default
|
|
870
|
+
in: PropTypes__default.bool,
|
|
955
871
|
|
|
956
872
|
/**
|
|
957
873
|
* By default the child component is mounted immediately along with
|
|
@@ -959,13 +875,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
959
875
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
960
876
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
961
877
|
*/
|
|
962
|
-
mountOnEnter: PropTypes__default
|
|
878
|
+
mountOnEnter: PropTypes__default.bool,
|
|
963
879
|
|
|
964
880
|
/**
|
|
965
881
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
966
882
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
967
883
|
*/
|
|
968
|
-
unmountOnExit: PropTypes__default
|
|
884
|
+
unmountOnExit: PropTypes__default.bool,
|
|
969
885
|
|
|
970
886
|
/**
|
|
971
887
|
* By default the child component does not perform the enter transition when
|
|
@@ -978,17 +894,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
978
894
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
979
895
|
* > differently.
|
|
980
896
|
*/
|
|
981
|
-
appear: PropTypes__default
|
|
897
|
+
appear: PropTypes__default.bool,
|
|
982
898
|
|
|
983
899
|
/**
|
|
984
900
|
* Enable or disable enter transitions.
|
|
985
901
|
*/
|
|
986
|
-
enter: PropTypes__default
|
|
902
|
+
enter: PropTypes__default.bool,
|
|
987
903
|
|
|
988
904
|
/**
|
|
989
905
|
* Enable or disable exit transitions.
|
|
990
906
|
*/
|
|
991
|
-
exit: PropTypes__default
|
|
907
|
+
exit: PropTypes__default.bool,
|
|
992
908
|
|
|
993
909
|
/**
|
|
994
910
|
* The duration of the transition, in milliseconds.
|
|
@@ -1041,7 +957,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1041
957
|
* }}
|
|
1042
958
|
* ```
|
|
1043
959
|
*/
|
|
1044
|
-
addEndListener: PropTypes__default
|
|
960
|
+
addEndListener: PropTypes__default.func,
|
|
1045
961
|
|
|
1046
962
|
/**
|
|
1047
963
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -1051,7 +967,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1051
967
|
*
|
|
1052
968
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1053
969
|
*/
|
|
1054
|
-
onEnter: PropTypes__default
|
|
970
|
+
onEnter: PropTypes__default.func,
|
|
1055
971
|
|
|
1056
972
|
/**
|
|
1057
973
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -1061,7 +977,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1061
977
|
*
|
|
1062
978
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1063
979
|
*/
|
|
1064
|
-
onEntering: PropTypes__default
|
|
980
|
+
onEntering: PropTypes__default.func,
|
|
1065
981
|
|
|
1066
982
|
/**
|
|
1067
983
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -1071,7 +987,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1071
987
|
*
|
|
1072
988
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1073
989
|
*/
|
|
1074
|
-
onEntered: PropTypes__default
|
|
990
|
+
onEntered: PropTypes__default.func,
|
|
1075
991
|
|
|
1076
992
|
/**
|
|
1077
993
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -1080,7 +996,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1080
996
|
*
|
|
1081
997
|
* @type Function(node: HtmlElement) -> void
|
|
1082
998
|
*/
|
|
1083
|
-
onExit: PropTypes__default
|
|
999
|
+
onExit: PropTypes__default.func,
|
|
1084
1000
|
|
|
1085
1001
|
/**
|
|
1086
1002
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1089,7 +1005,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1089
1005
|
*
|
|
1090
1006
|
* @type Function(node: HtmlElement) -> void
|
|
1091
1007
|
*/
|
|
1092
|
-
onExiting: PropTypes__default
|
|
1008
|
+
onExiting: PropTypes__default.func,
|
|
1093
1009
|
|
|
1094
1010
|
/**
|
|
1095
1011
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1098,7 +1014,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1098
1014
|
*
|
|
1099
1015
|
* @type Function(node: HtmlElement) -> void
|
|
1100
1016
|
*/
|
|
1101
|
-
onExited: PropTypes__default
|
|
1017
|
+
onExited: PropTypes__default.func
|
|
1102
1018
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1103
1019
|
|
|
1104
1020
|
function noop() {}
|
|
@@ -1189,7 +1105,7 @@ var defaultProps = {
|
|
|
1189
1105
|
appear: false,
|
|
1190
1106
|
getDimensionValue: getDefaultDimensionValue
|
|
1191
1107
|
};
|
|
1192
|
-
var Collapse = React__default
|
|
1108
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1193
1109
|
var onEnter = _ref.onEnter,
|
|
1194
1110
|
onEntering = _ref.onEntering,
|
|
1195
1111
|
onEntered = _ref.onEntered,
|
|
@@ -1201,7 +1117,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1201
1117
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1202
1118
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1203
1119
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1204
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1120
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1205
1121
|
|
|
1206
1122
|
/* Compute dimension */
|
|
1207
1123
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1236,8 +1152,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1236
1152
|
elem.style[computedDimension] = null;
|
|
1237
1153
|
}, onExiting);
|
|
1238
1154
|
}, [computedDimension, onExiting]);
|
|
1239
|
-
return /*#__PURE__*/React__default
|
|
1240
|
-
, _extends({
|
|
1155
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1156
|
+
, index$5._extends({
|
|
1241
1157
|
ref: ref,
|
|
1242
1158
|
addEndListener: transitionEnd
|
|
1243
1159
|
}, props, {
|
|
@@ -1248,8 +1164,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1248
1164
|
onExit: handleExit,
|
|
1249
1165
|
onExiting: handleExiting
|
|
1250
1166
|
}), function (state, innerProps) {
|
|
1251
|
-
return React__default
|
|
1252
|
-
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1167
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1168
|
+
className: index$5.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1253
1169
|
}));
|
|
1254
1170
|
});
|
|
1255
1171
|
}); // @ts-ignore
|
|
@@ -1257,20 +1173,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1257
1173
|
// @ts-ignore
|
|
1258
1174
|
Collapse.defaultProps = defaultProps;
|
|
1259
1175
|
|
|
1260
|
-
var AccordionCollapse = React__default
|
|
1176
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1261
1177
|
var children = _ref.children,
|
|
1262
1178
|
eventKey = _ref.eventKey,
|
|
1263
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1179
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1264
1180
|
|
|
1265
|
-
var contextEventKey = React.useContext(context);
|
|
1266
|
-
|
|
1181
|
+
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1182
|
+
// from collapsing the accordion when clicked.
|
|
1183
|
+
|
|
1184
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1185
|
+
value: null
|
|
1186
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1267
1187
|
ref: ref,
|
|
1268
1188
|
in: contextEventKey === eventKey
|
|
1269
|
-
}, props), /*#__PURE__*/React__default
|
|
1189
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1270
1190
|
});
|
|
1271
1191
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1272
1192
|
|
|
1273
|
-
var Accordion = React__default
|
|
1193
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1274
1194
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1275
1195
|
activeKey: 'onSelect'
|
|
1276
1196
|
}),
|
|
@@ -1281,14 +1201,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1281
1201
|
children = _useUncontrolled.children,
|
|
1282
1202
|
className = _useUncontrolled.className,
|
|
1283
1203
|
onSelect = _useUncontrolled.onSelect,
|
|
1284
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1204
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1285
1205
|
|
|
1286
|
-
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1287
|
-
return /*#__PURE__*/React__default
|
|
1206
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1207
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1288
1208
|
value: activeKey || null
|
|
1289
|
-
}, /*#__PURE__*/React__default
|
|
1209
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1290
1210
|
value: onSelect || null
|
|
1291
|
-
}, /*#__PURE__*/React__default
|
|
1211
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1292
1212
|
ref: ref
|
|
1293
1213
|
}, controlledProps, {
|
|
1294
1214
|
className: finalClassName
|
|
@@ -1332,23 +1252,23 @@ var defaultProps$1 = {
|
|
|
1332
1252
|
appear: false
|
|
1333
1253
|
};
|
|
1334
1254
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1335
|
-
var Fade = React__default
|
|
1255
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1336
1256
|
var className = _ref.className,
|
|
1337
1257
|
children = _ref.children,
|
|
1338
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1258
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1339
1259
|
|
|
1340
1260
|
var handleEnter = React.useCallback(function (node) {
|
|
1341
1261
|
triggerBrowserReflow(node);
|
|
1342
1262
|
if (props.onEnter) props.onEnter(node);
|
|
1343
1263
|
}, [props]);
|
|
1344
|
-
return /*#__PURE__*/React__default
|
|
1264
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1345
1265
|
ref: ref,
|
|
1346
1266
|
addEndListener: transitionEnd
|
|
1347
1267
|
}, props, {
|
|
1348
1268
|
onEnter: handleEnter
|
|
1349
1269
|
}), function (status, innerProps) {
|
|
1350
|
-
return React__default
|
|
1351
|
-
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1270
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1271
|
+
className: index$5.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1352
1272
|
}));
|
|
1353
1273
|
});
|
|
1354
1274
|
});
|
|
@@ -1356,26 +1276,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1356
1276
|
Fade.displayName = 'Fade';
|
|
1357
1277
|
|
|
1358
1278
|
var propTypes = {
|
|
1359
|
-
label: PropTypes__default
|
|
1360
|
-
onClick: PropTypes__default
|
|
1279
|
+
label: PropTypes__default.string.isRequired,
|
|
1280
|
+
onClick: PropTypes__default.func
|
|
1361
1281
|
};
|
|
1362
1282
|
var defaultProps$2 = {
|
|
1363
1283
|
label: 'Close'
|
|
1364
1284
|
};
|
|
1365
|
-
var CloseButton = React__default
|
|
1285
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1366
1286
|
var label = _ref.label,
|
|
1367
1287
|
onClick = _ref.onClick,
|
|
1368
1288
|
className = _ref.className,
|
|
1369
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1289
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1370
1290
|
|
|
1371
|
-
return /*#__PURE__*/React__default
|
|
1291
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1372
1292
|
ref: ref,
|
|
1373
1293
|
type: "button",
|
|
1374
|
-
className: classnames('close', className),
|
|
1294
|
+
className: index$5.classnames('close', className),
|
|
1375
1295
|
onClick: onClick
|
|
1376
|
-
}, props), /*#__PURE__*/React__default
|
|
1296
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1377
1297
|
"aria-hidden": "true"
|
|
1378
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1298
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1379
1299
|
className: "sr-only"
|
|
1380
1300
|
}, label));
|
|
1381
1301
|
});
|
|
@@ -1384,10 +1304,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1384
1304
|
CloseButton.defaultProps = defaultProps$2;
|
|
1385
1305
|
|
|
1386
1306
|
var divWithClassName = (function (className) {
|
|
1387
|
-
return React__default
|
|
1388
|
-
return /*#__PURE__*/React__default
|
|
1307
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1308
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1389
1309
|
ref: ref,
|
|
1390
|
-
className: classnames(p.className, className)
|
|
1310
|
+
className: index$5.classnames(p.className, className)
|
|
1391
1311
|
}));
|
|
1392
1312
|
});
|
|
1393
1313
|
});
|
|
@@ -1411,17 +1331,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1411
1331
|
Component = _ref.Component,
|
|
1412
1332
|
defaultProps = _ref.defaultProps;
|
|
1413
1333
|
|
|
1414
|
-
var BsComponent = React__default
|
|
1334
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1415
1335
|
var className = _ref2.className,
|
|
1416
1336
|
bsPrefix = _ref2.bsPrefix,
|
|
1417
1337
|
_ref2$as = _ref2.as,
|
|
1418
1338
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1419
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1339
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1420
1340
|
|
|
1421
1341
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1422
|
-
return /*#__PURE__*/React__default
|
|
1342
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1423
1343
|
ref: ref,
|
|
1424
|
-
className: classnames(className, resolvedPrefix)
|
|
1344
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1425
1345
|
}, props));
|
|
1426
1346
|
});
|
|
1427
1347
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1441,12 +1361,12 @@ function isTrivialHref(href) {
|
|
|
1441
1361
|
*/
|
|
1442
1362
|
|
|
1443
1363
|
|
|
1444
|
-
var SafeAnchor = React__default
|
|
1364
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1445
1365
|
var _ref$as = _ref.as,
|
|
1446
1366
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1447
1367
|
disabled = _ref.disabled,
|
|
1448
1368
|
onKeyDown = _ref.onKeyDown,
|
|
1449
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1369
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1450
1370
|
|
|
1451
1371
|
var handleClick = function handleClick(event) {
|
|
1452
1372
|
var href = props.href,
|
|
@@ -1485,7 +1405,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1485
1405
|
props['aria-disabled'] = true;
|
|
1486
1406
|
}
|
|
1487
1407
|
|
|
1488
|
-
return /*#__PURE__*/React__default
|
|
1408
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1489
1409
|
ref: ref
|
|
1490
1410
|
}, props, {
|
|
1491
1411
|
onClick: handleClick,
|
|
@@ -1507,7 +1427,7 @@ var defaultProps$3 = {
|
|
|
1507
1427
|
transition: Fade,
|
|
1508
1428
|
closeLabel: 'Close alert'
|
|
1509
1429
|
};
|
|
1510
|
-
var Alert = React__default
|
|
1430
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1511
1431
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1512
1432
|
show: 'onClose'
|
|
1513
1433
|
}),
|
|
@@ -1520,7 +1440,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1520
1440
|
onClose = _useUncontrolled.onClose,
|
|
1521
1441
|
dismissible = _useUncontrolled.dismissible,
|
|
1522
1442
|
transition = _useUncontrolled.transition,
|
|
1523
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1443
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1524
1444
|
|
|
1525
1445
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1526
1446
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1529,17 +1449,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1529
1449
|
}
|
|
1530
1450
|
});
|
|
1531
1451
|
var Transition = transition === true ? Fade : transition;
|
|
1532
|
-
var alert = /*#__PURE__*/React__default
|
|
1452
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1533
1453
|
role: "alert"
|
|
1534
1454
|
}, Transition ? props : undefined, {
|
|
1535
1455
|
ref: ref,
|
|
1536
|
-
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1537
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1456
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1457
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1538
1458
|
onClick: handleClose,
|
|
1539
1459
|
label: closeLabel
|
|
1540
1460
|
}), children);
|
|
1541
1461
|
if (!Transition) return show ? alert : null;
|
|
1542
|
-
return /*#__PURE__*/React__default
|
|
1462
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1543
1463
|
unmountOnExit: true
|
|
1544
1464
|
}, props, {
|
|
1545
1465
|
ref: undefined,
|
|
@@ -1554,20 +1474,20 @@ Alert.Heading = AlertHeading;
|
|
|
1554
1474
|
var defaultProps$4 = {
|
|
1555
1475
|
pill: false
|
|
1556
1476
|
};
|
|
1557
|
-
var Badge = React__default
|
|
1477
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1558
1478
|
var bsPrefix = _ref.bsPrefix,
|
|
1559
1479
|
variant = _ref.variant,
|
|
1560
1480
|
pill = _ref.pill,
|
|
1561
1481
|
className = _ref.className,
|
|
1562
1482
|
_ref$as = _ref.as,
|
|
1563
1483
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1564
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1484
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1565
1485
|
|
|
1566
1486
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1567
|
-
return /*#__PURE__*/React__default
|
|
1487
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1568
1488
|
ref: ref
|
|
1569
1489
|
}, props, {
|
|
1570
|
-
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1490
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1571
1491
|
}));
|
|
1572
1492
|
});
|
|
1573
1493
|
Badge.displayName = 'Badge';
|
|
@@ -1577,7 +1497,7 @@ var defaultProps$5 = {
|
|
|
1577
1497
|
active: false,
|
|
1578
1498
|
linkProps: {}
|
|
1579
1499
|
};
|
|
1580
|
-
var BreadcrumbItem = React__default
|
|
1500
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1581
1501
|
var bsPrefix = _ref.bsPrefix,
|
|
1582
1502
|
active = _ref.active,
|
|
1583
1503
|
children = _ref.children,
|
|
@@ -1590,17 +1510,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1590
1510
|
href = _ref.href,
|
|
1591
1511
|
title = _ref.title,
|
|
1592
1512
|
target = _ref.target,
|
|
1593
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1513
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1594
1514
|
|
|
1595
1515
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1596
|
-
return /*#__PURE__*/React__default
|
|
1516
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1597
1517
|
ref: ref
|
|
1598
1518
|
}, props, {
|
|
1599
|
-
className: classnames(prefix, className, {
|
|
1519
|
+
className: index$5.classnames(prefix, className, {
|
|
1600
1520
|
active: active
|
|
1601
1521
|
}),
|
|
1602
1522
|
"aria-current": active ? 'page' : undefined
|
|
1603
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1523
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1604
1524
|
href: href,
|
|
1605
1525
|
title: title,
|
|
1606
1526
|
target: target
|
|
@@ -1613,7 +1533,7 @@ var defaultProps$6 = {
|
|
|
1613
1533
|
label: 'breadcrumb',
|
|
1614
1534
|
listProps: {}
|
|
1615
1535
|
};
|
|
1616
|
-
var Breadcrumb = React__default
|
|
1536
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1617
1537
|
var bsPrefix = _ref.bsPrefix,
|
|
1618
1538
|
className = _ref.className,
|
|
1619
1539
|
listProps = _ref.listProps,
|
|
@@ -1621,15 +1541,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1621
1541
|
label = _ref.label,
|
|
1622
1542
|
_ref$as = _ref.as,
|
|
1623
1543
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1624
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1544
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1625
1545
|
|
|
1626
1546
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1627
|
-
return /*#__PURE__*/React__default
|
|
1547
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1628
1548
|
"aria-label": label,
|
|
1629
1549
|
className: className,
|
|
1630
1550
|
ref: ref
|
|
1631
|
-
}, props), /*#__PURE__*/React__default
|
|
1632
|
-
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1551
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", index$5._extends({}, listProps, {
|
|
1552
|
+
className: index$5.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1633
1553
|
}), children));
|
|
1634
1554
|
});
|
|
1635
1555
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1641,7 +1561,7 @@ var defaultProps$7 = {
|
|
|
1641
1561
|
active: false,
|
|
1642
1562
|
disabled: false
|
|
1643
1563
|
};
|
|
1644
|
-
var Button = React__default
|
|
1564
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1645
1565
|
var bsPrefix = _ref.bsPrefix,
|
|
1646
1566
|
variant = _ref.variant,
|
|
1647
1567
|
size = _ref.size,
|
|
@@ -1650,16 +1570,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1650
1570
|
block = _ref.block,
|
|
1651
1571
|
type = _ref.type,
|
|
1652
1572
|
as = _ref.as,
|
|
1653
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1573
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1654
1574
|
|
|
1655
1575
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1656
|
-
var classes = classnames(className, prefix, active && 'active', prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1576
|
+
var classes = index$5.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1657
1577
|
|
|
1658
1578
|
if (props.href) {
|
|
1659
|
-
return /*#__PURE__*/React__default
|
|
1579
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1660
1580
|
as: as,
|
|
1661
1581
|
ref: ref,
|
|
1662
|
-
className: classnames(classes, props.disabled && 'disabled')
|
|
1582
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1663
1583
|
}));
|
|
1664
1584
|
}
|
|
1665
1585
|
|
|
@@ -1674,7 +1594,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1674
1594
|
}
|
|
1675
1595
|
|
|
1676
1596
|
var Component = as || 'button';
|
|
1677
|
-
return /*#__PURE__*/React__default
|
|
1597
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1678
1598
|
className: classes
|
|
1679
1599
|
}));
|
|
1680
1600
|
});
|
|
@@ -1686,7 +1606,7 @@ var defaultProps$8 = {
|
|
|
1686
1606
|
toggle: false,
|
|
1687
1607
|
role: 'group'
|
|
1688
1608
|
};
|
|
1689
|
-
var ButtonGroup = React__default
|
|
1609
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1690
1610
|
var bsPrefix = _ref.bsPrefix,
|
|
1691
1611
|
size = _ref.size,
|
|
1692
1612
|
toggle = _ref.toggle,
|
|
@@ -1694,14 +1614,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1694
1614
|
className = _ref.className,
|
|
1695
1615
|
_ref$as = _ref.as,
|
|
1696
1616
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1697
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1617
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1698
1618
|
|
|
1699
1619
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1700
1620
|
var baseClass = prefix;
|
|
1701
1621
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1702
|
-
return /*#__PURE__*/React__default
|
|
1622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1703
1623
|
ref: ref,
|
|
1704
|
-
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1624
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1705
1625
|
}));
|
|
1706
1626
|
});
|
|
1707
1627
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1710,39 +1630,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1710
1630
|
var defaultProps$9 = {
|
|
1711
1631
|
role: 'toolbar'
|
|
1712
1632
|
};
|
|
1713
|
-
var ButtonToolbar = React__default
|
|
1633
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1714
1634
|
var bsPrefix = _ref.bsPrefix,
|
|
1715
1635
|
className = _ref.className,
|
|
1716
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1636
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1717
1637
|
|
|
1718
1638
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1719
|
-
return /*#__PURE__*/React__default
|
|
1639
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1720
1640
|
ref: ref,
|
|
1721
|
-
className: classnames(className, prefix)
|
|
1641
|
+
className: index$5.classnames(className, prefix)
|
|
1722
1642
|
}));
|
|
1723
1643
|
});
|
|
1724
1644
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1725
1645
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1726
1646
|
|
|
1727
|
-
var context$1 = React__default
|
|
1647
|
+
var context$1 = React__default.createContext(null);
|
|
1728
1648
|
context$1.displayName = 'CardContext';
|
|
1729
1649
|
|
|
1730
1650
|
var defaultProps$a = {
|
|
1731
1651
|
variant: null
|
|
1732
1652
|
};
|
|
1733
|
-
var CardImg = React__default
|
|
1653
|
+
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
|
|
1734
1654
|
function (_ref, ref) {
|
|
1735
1655
|
var bsPrefix = _ref.bsPrefix,
|
|
1736
1656
|
className = _ref.className,
|
|
1737
1657
|
variant = _ref.variant,
|
|
1738
1658
|
_ref$as = _ref.as,
|
|
1739
1659
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1740
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1660
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1741
1661
|
|
|
1742
1662
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1743
|
-
return /*#__PURE__*/React__default
|
|
1663
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1744
1664
|
ref: ref,
|
|
1745
|
-
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1665
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1746
1666
|
}, props));
|
|
1747
1667
|
});
|
|
1748
1668
|
CardImg.displayName = 'CardImg';
|
|
@@ -1769,7 +1689,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1769
1689
|
var defaultProps$b = {
|
|
1770
1690
|
body: false
|
|
1771
1691
|
};
|
|
1772
|
-
var Card = React__default
|
|
1692
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1773
1693
|
var bsPrefix = _ref.bsPrefix,
|
|
1774
1694
|
className = _ref.className,
|
|
1775
1695
|
bg = _ref.bg,
|
|
@@ -1779,7 +1699,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1779
1699
|
children = _ref.children,
|
|
1780
1700
|
_ref$as = _ref.as,
|
|
1781
1701
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1782
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1702
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1783
1703
|
|
|
1784
1704
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1785
1705
|
var cardContext = React.useMemo(function () {
|
|
@@ -1787,16 +1707,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1787
1707
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1788
1708
|
};
|
|
1789
1709
|
}, [prefix]);
|
|
1790
|
-
return /*#__PURE__*/React__default
|
|
1710
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1791
1711
|
value: cardContext
|
|
1792
|
-
}, /*#__PURE__*/React__default
|
|
1712
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1793
1713
|
ref: ref
|
|
1794
1714
|
}, props, {
|
|
1795
|
-
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1715
|
+
className: index$5.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1796
1716
|
}), body ?
|
|
1797
1717
|
/*#__PURE__*/
|
|
1798
1718
|
// @ts-ignore
|
|
1799
|
-
React__default
|
|
1719
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1800
1720
|
});
|
|
1801
1721
|
Card.displayName = 'Card';
|
|
1802
1722
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1932,6 +1852,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1932
1852
|
/**
|
|
1933
1853
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1934
1854
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1855
|
+
*
|
|
1856
|
+
*
|
|
1857
|
+
*
|
|
1858
|
+
* ```tsx
|
|
1859
|
+
* const { set, clear } = useTimeout();
|
|
1860
|
+
* const [hello, showHello] = useState(false);
|
|
1861
|
+
* //Display hello after 5 seconds
|
|
1862
|
+
* set(() => showHello(true), 5000);
|
|
1863
|
+
* return (
|
|
1864
|
+
* <div className="App">
|
|
1865
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1866
|
+
* </div>
|
|
1867
|
+
* );
|
|
1868
|
+
* ```
|
|
1935
1869
|
*/
|
|
1936
1870
|
|
|
1937
1871
|
|
|
@@ -1972,7 +1906,22 @@ function useTimeout() {
|
|
|
1972
1906
|
|
|
1973
1907
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1974
1908
|
|
|
1975
|
-
var CarouselItem =
|
|
1909
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1910
|
+
var _ref$as = _ref.as,
|
|
1911
|
+
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1912
|
+
bsPrefix = _ref.bsPrefix,
|
|
1913
|
+
children = _ref.children,
|
|
1914
|
+
className = _ref.className,
|
|
1915
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1916
|
+
|
|
1917
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1918
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1919
|
+
ref: ref
|
|
1920
|
+
}, props, {
|
|
1921
|
+
className: finalClassName
|
|
1922
|
+
}), children);
|
|
1923
|
+
});
|
|
1924
|
+
CarouselItem.displayName = 'CarouselItem';
|
|
1976
1925
|
|
|
1977
1926
|
/**
|
|
1978
1927
|
* Iterates through children that are typically specified as `props.children`,
|
|
@@ -1985,8 +1934,22 @@ var CarouselItem = createWithBsPrefix('carousel-item');
|
|
|
1985
1934
|
|
|
1986
1935
|
function map(children, func) {
|
|
1987
1936
|
var index = 0;
|
|
1988
|
-
return React__default
|
|
1989
|
-
return React__default
|
|
1937
|
+
return React__default.Children.map(children, function (child) {
|
|
1938
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
/**
|
|
1942
|
+
* Iterates through children that are "valid elements".
|
|
1943
|
+
*
|
|
1944
|
+
* The provided forEachFunc(child, index) will be called for each
|
|
1945
|
+
* leaf child with the index reflecting the position relative to "valid components".
|
|
1946
|
+
*/
|
|
1947
|
+
|
|
1948
|
+
|
|
1949
|
+
function forEach(children, func) {
|
|
1950
|
+
var index = 0;
|
|
1951
|
+
React__default.Children.forEach(children, function (child) {
|
|
1952
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1990
1953
|
});
|
|
1991
1954
|
}
|
|
1992
1955
|
|
|
@@ -1995,33 +1958,33 @@ var propTypes$1 = {
|
|
|
1995
1958
|
/**
|
|
1996
1959
|
* @default 'carousel'
|
|
1997
1960
|
*/
|
|
1998
|
-
bsPrefix: PropTypes__default
|
|
1999
|
-
as: PropTypes__default
|
|
1961
|
+
bsPrefix: PropTypes__default.string,
|
|
1962
|
+
as: PropTypes__default.elementType,
|
|
2000
1963
|
|
|
2001
1964
|
/**
|
|
2002
1965
|
* Enables animation on the Carousel as it transitions between slides.
|
|
2003
1966
|
*/
|
|
2004
|
-
slide: PropTypes__default
|
|
1967
|
+
slide: PropTypes__default.bool,
|
|
2005
1968
|
|
|
2006
1969
|
/** Cross fade slides instead of the default slide animation */
|
|
2007
|
-
fade: PropTypes__default
|
|
1970
|
+
fade: PropTypes__default.bool,
|
|
2008
1971
|
|
|
2009
1972
|
/**
|
|
2010
1973
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
2011
1974
|
*/
|
|
2012
|
-
controls: PropTypes__default
|
|
1975
|
+
controls: PropTypes__default.bool,
|
|
2013
1976
|
|
|
2014
1977
|
/**
|
|
2015
1978
|
* Show a set of slide position indicators
|
|
2016
1979
|
*/
|
|
2017
|
-
indicators: PropTypes__default
|
|
1980
|
+
indicators: PropTypes__default.bool,
|
|
2018
1981
|
|
|
2019
1982
|
/**
|
|
2020
1983
|
* Controls the current visible slide
|
|
2021
1984
|
*
|
|
2022
1985
|
* @controllable onSelect
|
|
2023
1986
|
*/
|
|
2024
|
-
activeIndex: PropTypes__default
|
|
1987
|
+
activeIndex: PropTypes__default.number,
|
|
2025
1988
|
|
|
2026
1989
|
/**
|
|
2027
1990
|
* Callback fired when the active item changes.
|
|
@@ -2032,7 +1995,7 @@ var propTypes$1 = {
|
|
|
2032
1995
|
*
|
|
2033
1996
|
* @controllable activeIndex
|
|
2034
1997
|
*/
|
|
2035
|
-
onSelect: PropTypes__default
|
|
1998
|
+
onSelect: PropTypes__default.func,
|
|
2036
1999
|
|
|
2037
2000
|
/**
|
|
2038
2001
|
* Callback fired when a slide transition starts.
|
|
@@ -2040,7 +2003,7 @@ var propTypes$1 = {
|
|
|
2040
2003
|
* ```js
|
|
2041
2004
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2042
2005
|
*/
|
|
2043
|
-
onSlide: PropTypes__default
|
|
2006
|
+
onSlide: PropTypes__default.func,
|
|
2044
2007
|
|
|
2045
2008
|
/**
|
|
2046
2009
|
* Callback fired when a slide transition ends.
|
|
@@ -2048,50 +2011,50 @@ var propTypes$1 = {
|
|
|
2048
2011
|
* ```js
|
|
2049
2012
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2050
2013
|
*/
|
|
2051
|
-
onSlid: PropTypes__default
|
|
2014
|
+
onSlid: PropTypes__default.func,
|
|
2052
2015
|
|
|
2053
2016
|
/**
|
|
2054
2017
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2055
2018
|
*/
|
|
2056
|
-
interval: PropTypes__default
|
|
2019
|
+
interval: PropTypes__default.number,
|
|
2057
2020
|
|
|
2058
2021
|
/** Whether the carousel should react to keyboard events. */
|
|
2059
|
-
keyboard: PropTypes__default
|
|
2022
|
+
keyboard: PropTypes__default.bool,
|
|
2060
2023
|
|
|
2061
2024
|
/**
|
|
2062
2025
|
* If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on `mouseleave`. If set to `false`, hovering over the carousel won't pause it.
|
|
2063
2026
|
*
|
|
2064
2027
|
* On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.
|
|
2065
2028
|
*/
|
|
2066
|
-
pause: PropTypes__default
|
|
2029
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2067
2030
|
|
|
2068
2031
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2069
|
-
wrap: PropTypes__default
|
|
2032
|
+
wrap: PropTypes__default.bool,
|
|
2070
2033
|
|
|
2071
2034
|
/**
|
|
2072
2035
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2073
2036
|
*/
|
|
2074
|
-
touch: PropTypes__default
|
|
2037
|
+
touch: PropTypes__default.bool,
|
|
2075
2038
|
|
|
2076
2039
|
/** Override the default button icon for the "previous" control */
|
|
2077
|
-
prevIcon: PropTypes__default
|
|
2040
|
+
prevIcon: PropTypes__default.node,
|
|
2078
2041
|
|
|
2079
2042
|
/**
|
|
2080
2043
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2081
2044
|
* in the carousel.
|
|
2082
2045
|
* Set to null to deactivate.
|
|
2083
2046
|
*/
|
|
2084
|
-
prevLabel: PropTypes__default
|
|
2047
|
+
prevLabel: PropTypes__default.string,
|
|
2085
2048
|
|
|
2086
2049
|
/** Override the default button icon for the "next" control */
|
|
2087
|
-
nextIcon: PropTypes__default
|
|
2050
|
+
nextIcon: PropTypes__default.node,
|
|
2088
2051
|
|
|
2089
2052
|
/**
|
|
2090
2053
|
* Label shown to screen readers only, can be used to show the next element
|
|
2091
2054
|
* in the carousel.
|
|
2092
2055
|
* Set to null to deactivate.
|
|
2093
2056
|
*/
|
|
2094
|
-
nextLabel: PropTypes__default
|
|
2057
|
+
nextLabel: PropTypes__default.string
|
|
2095
2058
|
};
|
|
2096
2059
|
var defaultProps$c = {
|
|
2097
2060
|
slide: true,
|
|
@@ -2104,12 +2067,12 @@ var defaultProps$c = {
|
|
|
2104
2067
|
pause: 'hover',
|
|
2105
2068
|
wrap: true,
|
|
2106
2069
|
touch: true,
|
|
2107
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2070
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2108
2071
|
"aria-hidden": "true",
|
|
2109
2072
|
className: "carousel-control-prev-icon"
|
|
2110
2073
|
}),
|
|
2111
2074
|
prevLabel: 'Previous',
|
|
2112
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2075
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2113
2076
|
"aria-hidden": "true",
|
|
2114
2077
|
className: "carousel-control-next-icon"
|
|
2115
2078
|
}),
|
|
@@ -2157,7 +2120,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2157
2120
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2158
2121
|
className = _useUncontrolled.className,
|
|
2159
2122
|
children = _useUncontrolled.children,
|
|
2160
|
-
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"]);
|
|
2123
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2161
2124
|
|
|
2162
2125
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2163
2126
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2177,7 +2140,6 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2177
2140
|
if (!isSliding && activeIndex !== renderedActiveIndex) {
|
|
2178
2141
|
if (nextDirectionRef.current) {
|
|
2179
2142
|
setDirection(nextDirectionRef.current);
|
|
2180
|
-
nextDirectionRef.current = null;
|
|
2181
2143
|
} else {
|
|
2182
2144
|
setDirection((activeIndex || 0) > renderedActiveIndex ? 'next' : 'prev');
|
|
2183
2145
|
}
|
|
@@ -2189,7 +2151,23 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2189
2151
|
setRenderedActiveIndex(activeIndex || 0);
|
|
2190
2152
|
}
|
|
2191
2153
|
|
|
2192
|
-
|
|
2154
|
+
React.useEffect(function () {
|
|
2155
|
+
if (nextDirectionRef.current) {
|
|
2156
|
+
nextDirectionRef.current = null;
|
|
2157
|
+
}
|
|
2158
|
+
});
|
|
2159
|
+
var numChildren = 0;
|
|
2160
|
+
var activeChildInterval; // Iterate to grab all of the children's interval values
|
|
2161
|
+
// (and count them, too)
|
|
2162
|
+
|
|
2163
|
+
forEach(children, function (child, index) {
|
|
2164
|
+
++numChildren;
|
|
2165
|
+
|
|
2166
|
+
if (index === activeIndex) {
|
|
2167
|
+
activeChildInterval = child.props.interval;
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
var activeChildIntervalRef = useCommittedRef(activeChildInterval);
|
|
2193
2171
|
var prev = React.useCallback(function (event) {
|
|
2194
2172
|
if (isSliding) {
|
|
2195
2173
|
return;
|
|
@@ -2375,17 +2353,19 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2353
|
var shouldPlay = interval != null && !pausedOnHover && !pausedOnTouch && !isSliding;
|
|
2376
2354
|
var intervalHandleRef = React.useRef();
|
|
2377
2355
|
React.useEffect(function () {
|
|
2356
|
+
var _ref, _activeChildIntervalR;
|
|
2357
|
+
|
|
2378
2358
|
if (!shouldPlay) {
|
|
2379
2359
|
return undefined;
|
|
2380
2360
|
}
|
|
2381
2361
|
|
|
2382
|
-
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, interval
|
|
2362
|
+
intervalHandleRef.current = window.setInterval(document.visibilityState ? nextWhenVisible : next, (_ref = (_activeChildIntervalR = activeChildIntervalRef.current) != null ? _activeChildIntervalR : interval) != null ? _ref : undefined);
|
|
2383
2363
|
return function () {
|
|
2384
2364
|
if (intervalHandleRef.current !== null) {
|
|
2385
2365
|
clearInterval(intervalHandleRef.current);
|
|
2386
2366
|
}
|
|
2387
2367
|
};
|
|
2388
|
-
}, [shouldPlay, next, interval, nextWhenVisible]);
|
|
2368
|
+
}, [shouldPlay, next, activeChildIntervalRef, interval, nextWhenVisible]);
|
|
2389
2369
|
var indicatorOnClicks = React.useMemo(function () {
|
|
2390
2370
|
return indicators && Array.from({
|
|
2391
2371
|
length: numChildren
|
|
@@ -2397,7 +2377,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2397
2377
|
};
|
|
2398
2378
|
});
|
|
2399
2379
|
}, [indicators, numChildren, onSelect]);
|
|
2400
|
-
return /*#__PURE__*/React__default
|
|
2380
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2401
2381
|
ref: elementRef
|
|
2402
2382
|
}, props, {
|
|
2403
2383
|
onKeyDown: handleKeyDown,
|
|
@@ -2406,45 +2386,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2406
2386
|
onTouchStart: handleTouchStart,
|
|
2407
2387
|
onTouchMove: handleTouchMove,
|
|
2408
2388
|
onTouchEnd: handleTouchEnd,
|
|
2409
|
-
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2410
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2389
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2390
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2411
2391
|
className: prefix + "-indicators"
|
|
2412
2392
|
}, map(children, function (_child, index) {
|
|
2413
|
-
return /*#__PURE__*/React__default
|
|
2393
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2414
2394
|
key: index,
|
|
2415
2395
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2416
2396
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2417
2397
|
});
|
|
2418
|
-
})), /*#__PURE__*/React__default
|
|
2398
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2419
2399
|
className: prefix + "-inner"
|
|
2420
2400
|
}, map(children, function (child, index) {
|
|
2421
2401
|
var isActive = index === renderedActiveIndex;
|
|
2422
|
-
return slide ? /*#__PURE__*/React__default
|
|
2402
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2423
2403
|
in: isActive,
|
|
2424
2404
|
onEnter: isActive ? handleEnter : undefined,
|
|
2425
2405
|
onEntered: isActive ? handleEntered : undefined,
|
|
2426
2406
|
addEndListener: transitionEnd
|
|
2427
2407
|
}, function (status) {
|
|
2428
|
-
return React__default
|
|
2429
|
-
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2408
|
+
return React__default.cloneElement(child, {
|
|
2409
|
+
className: index$5.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2430
2410
|
});
|
|
2431
|
-
}) : React__default
|
|
2432
|
-
className: classnames(child.props.className, isActive && 'active')
|
|
2411
|
+
}) : React__default.cloneElement(child, {
|
|
2412
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2433
2413
|
});
|
|
2434
|
-
})), controls && /*#__PURE__*/React__default
|
|
2414
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2435
2415
|
className: prefix + "-control-prev",
|
|
2436
2416
|
onClick: prev
|
|
2437
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2417
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2438
2418
|
className: "sr-only"
|
|
2439
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2419
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2440
2420
|
className: prefix + "-control-next",
|
|
2441
2421
|
onClick: next
|
|
2442
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2422
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2443
2423
|
className: "sr-only"
|
|
2444
2424
|
}, nextLabel))));
|
|
2445
2425
|
}
|
|
2446
2426
|
|
|
2447
|
-
var Carousel = React__default
|
|
2427
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2448
2428
|
Carousel.displayName = 'Carousel';
|
|
2449
2429
|
Carousel.propTypes = propTypes$1;
|
|
2450
2430
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2452,13 +2432,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2452
2432
|
Carousel.Item = CarouselItem;
|
|
2453
2433
|
|
|
2454
2434
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2455
|
-
var Col = React__default
|
|
2435
|
+
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
|
|
2456
2436
|
function (_ref, ref) {
|
|
2457
2437
|
var bsPrefix = _ref.bsPrefix,
|
|
2458
2438
|
className = _ref.className,
|
|
2459
2439
|
_ref$as = _ref.as,
|
|
2460
2440
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2461
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2441
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2462
2442
|
|
|
2463
2443
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2464
2444
|
var spans = [];
|
|
@@ -2489,9 +2469,9 @@ function (_ref, ref) {
|
|
|
2489
2469
|
spans.push(prefix); // plain 'col'
|
|
2490
2470
|
}
|
|
2491
2471
|
|
|
2492
|
-
return /*#__PURE__*/React__default
|
|
2472
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2493
2473
|
ref: ref,
|
|
2494
|
-
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2474
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2495
2475
|
}));
|
|
2496
2476
|
});
|
|
2497
2477
|
Col.displayName = 'Col';
|
|
@@ -2598,7 +2578,40 @@ function useForceUpdate() {
|
|
|
2598
2578
|
return dispatch;
|
|
2599
2579
|
}
|
|
2600
2580
|
|
|
2601
|
-
var DropdownContext = /*#__PURE__*/React__default
|
|
2581
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2582
|
+
|
|
2583
|
+
function _extends() {
|
|
2584
|
+
_extends = Object.assign || function (target) {
|
|
2585
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2586
|
+
var source = arguments[i];
|
|
2587
|
+
|
|
2588
|
+
for (var key in source) {
|
|
2589
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2590
|
+
target[key] = source[key];
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
return target;
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
return _extends.apply(this, arguments);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2602
|
+
if (source == null) return {};
|
|
2603
|
+
var target = {};
|
|
2604
|
+
var sourceKeys = Object.keys(source);
|
|
2605
|
+
var key, i;
|
|
2606
|
+
|
|
2607
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2608
|
+
key = sourceKeys[i];
|
|
2609
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2610
|
+
target[key] = source[key];
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
return target;
|
|
2614
|
+
}
|
|
2602
2615
|
|
|
2603
2616
|
function useSafeState(state) {
|
|
2604
2617
|
var isMounted = useMounted();
|
|
@@ -2697,13 +2710,13 @@ function contains(parent, child) {
|
|
|
2697
2710
|
if (parent.contains(child)) {
|
|
2698
2711
|
return true;
|
|
2699
2712
|
} // then fallback to custom implementation with Shadow DOM support
|
|
2700
|
-
else if (isShadowRoot(rootNode)) {
|
|
2713
|
+
else if (rootNode && isShadowRoot(rootNode)) {
|
|
2701
2714
|
var next = child;
|
|
2702
2715
|
|
|
2703
2716
|
do {
|
|
2704
2717
|
if (next && parent.isSameNode(next)) {
|
|
2705
2718
|
return true;
|
|
2706
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2719
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2707
2720
|
|
|
2708
2721
|
|
|
2709
2722
|
next = next.parentNode || next.host;
|
|
@@ -2727,8 +2740,9 @@ function isTableElement(element) {
|
|
|
2727
2740
|
}
|
|
2728
2741
|
|
|
2729
2742
|
function getDocumentElement(element) {
|
|
2730
|
-
// $FlowFixMe: assume body is always available
|
|
2731
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2743
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2744
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2745
|
+
element.document) || window.document).documentElement;
|
|
2732
2746
|
}
|
|
2733
2747
|
|
|
2734
2748
|
function getParentNode(element) {
|
|
@@ -2736,12 +2750,14 @@ function getParentNode(element) {
|
|
|
2736
2750
|
return element;
|
|
2737
2751
|
}
|
|
2738
2752
|
|
|
2739
|
-
return (//
|
|
2753
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2754
|
+
// $FlowFixMe[incompatible-return]
|
|
2755
|
+
// $FlowFixMe[prop-missing]
|
|
2740
2756
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2741
2757
|
element.parentNode || // DOM Element detected
|
|
2742
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2758
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2743
2759
|
element.host || // ShadowRoot detected
|
|
2744
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2760
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2745
2761
|
getDocumentElement(element) // fallback
|
|
2746
2762
|
|
|
2747
2763
|
);
|
|
@@ -2928,7 +2944,7 @@ var unsetSides = {
|
|
|
2928
2944
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2929
2945
|
// cleanly divide the values into the appropriate subpixels.
|
|
2930
2946
|
|
|
2931
|
-
function
|
|
2947
|
+
function roundOffsetsByDPR(_ref) {
|
|
2932
2948
|
var x = _ref.x,
|
|
2933
2949
|
y = _ref.y;
|
|
2934
2950
|
var win = window;
|
|
@@ -2948,11 +2964,14 @@ function mapToStyles(_ref2) {
|
|
|
2948
2964
|
offsets = _ref2.offsets,
|
|
2949
2965
|
position = _ref2.position,
|
|
2950
2966
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2951
|
-
adaptive = _ref2.adaptive
|
|
2967
|
+
adaptive = _ref2.adaptive,
|
|
2968
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2952
2969
|
|
|
2953
|
-
var
|
|
2954
|
-
x =
|
|
2955
|
-
|
|
2970
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2971
|
+
_ref3$x = _ref3.x,
|
|
2972
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2973
|
+
_ref3$y = _ref3.y,
|
|
2974
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2956
2975
|
|
|
2957
2976
|
var hasX = offsets.hasOwnProperty('x');
|
|
2958
2977
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2965,7 +2984,7 @@ function mapToStyles(_ref2) {
|
|
|
2965
2984
|
|
|
2966
2985
|
if (offsetParent === getWindow(popper)) {
|
|
2967
2986
|
offsetParent = getDocumentElement(popper);
|
|
2968
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2987
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2969
2988
|
|
|
2970
2989
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2971
2990
|
|
|
@@ -2996,13 +3015,15 @@ function mapToStyles(_ref2) {
|
|
|
2996
3015
|
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));
|
|
2997
3016
|
}
|
|
2998
3017
|
|
|
2999
|
-
function computeStyles(
|
|
3000
|
-
var state =
|
|
3001
|
-
options =
|
|
3018
|
+
function computeStyles(_ref4) {
|
|
3019
|
+
var state = _ref4.state,
|
|
3020
|
+
options = _ref4.options;
|
|
3002
3021
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3003
3022
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3004
3023
|
_options$adaptive = options.adaptive,
|
|
3005
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3024
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3025
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3026
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3006
3027
|
|
|
3007
3028
|
if (process.env.NODE_ENV !== "production") {
|
|
3008
3029
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3025,7 +3046,8 @@ function computeStyles(_ref3) {
|
|
|
3025
3046
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3026
3047
|
offsets: state.modifiersData.popperOffsets,
|
|
3027
3048
|
position: state.options.strategy,
|
|
3028
|
-
adaptive: adaptive
|
|
3049
|
+
adaptive: adaptive,
|
|
3050
|
+
roundOffsets: roundOffsets
|
|
3029
3051
|
})));
|
|
3030
3052
|
}
|
|
3031
3053
|
|
|
@@ -3033,7 +3055,8 @@ function computeStyles(_ref3) {
|
|
|
3033
3055
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3034
3056
|
offsets: state.modifiersData.arrow,
|
|
3035
3057
|
position: 'absolute',
|
|
3036
|
-
adaptive: false
|
|
3058
|
+
adaptive: false,
|
|
3059
|
+
roundOffsets: roundOffsets
|
|
3037
3060
|
})));
|
|
3038
3061
|
}
|
|
3039
3062
|
|
|
@@ -3229,7 +3252,7 @@ function isScrollParent(element) {
|
|
|
3229
3252
|
|
|
3230
3253
|
function getScrollParent(node) {
|
|
3231
3254
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3232
|
-
// $FlowFixMe: assume body is always available
|
|
3255
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3233
3256
|
return node.ownerDocument.body;
|
|
3234
3257
|
}
|
|
3235
3258
|
|
|
@@ -3243,7 +3266,7 @@ function getScrollParent(node) {
|
|
|
3243
3266
|
/*
|
|
3244
3267
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3245
3268
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3246
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3269
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3247
3270
|
reference element's position.
|
|
3248
3271
|
*/
|
|
3249
3272
|
|
|
@@ -3257,7 +3280,7 @@ function listScrollParents(element, list) {
|
|
|
3257
3280
|
var win = getWindow(scrollParent);
|
|
3258
3281
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3259
3282
|
var updatedList = list.concat(target);
|
|
3260
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3283
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3261
3284
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3262
3285
|
}
|
|
3263
3286
|
|
|
@@ -3297,7 +3320,7 @@ function getClippingParents(element) {
|
|
|
3297
3320
|
|
|
3298
3321
|
if (!isElement(clipperElement)) {
|
|
3299
3322
|
return [];
|
|
3300
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3323
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3301
3324
|
|
|
3302
3325
|
|
|
3303
3326
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3383,11 +3406,11 @@ function computeOffsets(_ref) {
|
|
|
3383
3406
|
|
|
3384
3407
|
switch (variation) {
|
|
3385
3408
|
case start:
|
|
3386
|
-
offsets[mainAxis] =
|
|
3409
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3387
3410
|
break;
|
|
3388
3411
|
|
|
3389
3412
|
case end:
|
|
3390
|
-
offsets[mainAxis] =
|
|
3413
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3391
3414
|
break;
|
|
3392
3415
|
}
|
|
3393
3416
|
}
|
|
@@ -3469,8 +3492,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3469
3492
|
var variation = getVariation(placement);
|
|
3470
3493
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3471
3494
|
return getVariation(placement) === variation;
|
|
3472
|
-
}) : basePlacements;
|
|
3473
|
-
|
|
3495
|
+
}) : basePlacements;
|
|
3474
3496
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3475
3497
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3476
3498
|
});
|
|
@@ -3481,7 +3503,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3481
3503
|
if (process.env.NODE_ENV !== "production") {
|
|
3482
3504
|
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(' '));
|
|
3483
3505
|
}
|
|
3484
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3506
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3485
3507
|
|
|
3486
3508
|
|
|
3487
3509
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4407,6 +4429,11 @@ var ariaDescribedByModifier = {
|
|
|
4407
4429
|
|
|
4408
4430
|
if (popper.id && role === 'tooltip' && 'setAttribute' in reference) {
|
|
4409
4431
|
var ids = reference.getAttribute('aria-describedby');
|
|
4432
|
+
|
|
4433
|
+
if (ids && ids.split(',').indexOf(popper.id) !== -1) {
|
|
4434
|
+
return;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4410
4437
|
reference.setAttribute('aria-describedby', ids ? ids + "," + popper.id : popper.id);
|
|
4411
4438
|
}
|
|
4412
4439
|
}
|
|
@@ -4600,7 +4627,7 @@ var warning_1 = warning;
|
|
|
4600
4627
|
|
|
4601
4628
|
function safeFindDOMNode(componentOrElement) {
|
|
4602
4629
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4603
|
-
return
|
|
4630
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4604
4631
|
}
|
|
4605
4632
|
|
|
4606
4633
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4662,14 +4689,33 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4662
4689
|
}
|
|
4663
4690
|
});
|
|
4664
4691
|
React.useEffect(function () {
|
|
4665
|
-
if (disabled || ref == null) return undefined;
|
|
4692
|
+
if (disabled || ref == null) return undefined; // Store the current event to avoid triggering handlers immediately
|
|
4693
|
+
// https://github.com/facebook/react/issues/20074
|
|
4694
|
+
|
|
4695
|
+
var currentEvent = window.event;
|
|
4666
4696
|
var doc = ownerDocument$1(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4667
4697
|
// avoid false positives in the contains() check below if the target DOM
|
|
4668
4698
|
// element is removed in the React mouse callback.
|
|
4669
4699
|
|
|
4670
4700
|
var removeMouseCaptureListener = listen(doc, clickTrigger, handleMouseCapture, true);
|
|
4671
|
-
var removeMouseListener = listen(doc, clickTrigger,
|
|
4672
|
-
|
|
4701
|
+
var removeMouseListener = listen(doc, clickTrigger, 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
|
+
handleMouse(e);
|
|
4709
|
+
});
|
|
4710
|
+
var removeKeyupListener = listen(doc, 'keyup', function (e) {
|
|
4711
|
+
// skip if this event is the same as the one running when we added the handlers
|
|
4712
|
+
if (e === currentEvent) {
|
|
4713
|
+
currentEvent = undefined;
|
|
4714
|
+
return;
|
|
4715
|
+
}
|
|
4716
|
+
|
|
4717
|
+
handleKeyUp(e);
|
|
4718
|
+
});
|
|
4673
4719
|
var mobileSafariHackListeners = [];
|
|
4674
4720
|
|
|
4675
4721
|
if ('ontouchstart' in doc.documentElement) {
|
|
@@ -4880,39 +4926,39 @@ var propTypes$2 = {
|
|
|
4880
4926
|
* },
|
|
4881
4927
|
* }) => React.Element}
|
|
4882
4928
|
*/
|
|
4883
|
-
children: PropTypes__default
|
|
4929
|
+
children: PropTypes__default.func.isRequired,
|
|
4884
4930
|
|
|
4885
4931
|
/**
|
|
4886
4932
|
* Controls the visible state of the menu, generally this is
|
|
4887
4933
|
* provided by the parent `Dropdown` component,
|
|
4888
4934
|
* but may also be specified as a prop directly.
|
|
4889
4935
|
*/
|
|
4890
|
-
show: PropTypes__default
|
|
4936
|
+
show: PropTypes__default.bool,
|
|
4891
4937
|
|
|
4892
4938
|
/**
|
|
4893
4939
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4894
4940
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4895
4941
|
* but may also be specified as a prop directly.
|
|
4896
4942
|
*/
|
|
4897
|
-
alignEnd: PropTypes__default
|
|
4943
|
+
alignEnd: PropTypes__default.bool,
|
|
4898
4944
|
|
|
4899
4945
|
/**
|
|
4900
4946
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4901
4947
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4902
4948
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4903
4949
|
*/
|
|
4904
|
-
flip: PropTypes__default
|
|
4905
|
-
usePopper: PropTypes__default
|
|
4950
|
+
flip: PropTypes__default.bool,
|
|
4951
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4906
4952
|
|
|
4907
4953
|
/**
|
|
4908
4954
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4909
4955
|
*/
|
|
4910
|
-
popperConfig: PropTypes__default
|
|
4956
|
+
popperConfig: PropTypes__default.object,
|
|
4911
4957
|
|
|
4912
4958
|
/**
|
|
4913
4959
|
* Override the default event used by RootCloseWrapper.
|
|
4914
4960
|
*/
|
|
4915
|
-
rootCloseEvent: PropTypes__default
|
|
4961
|
+
rootCloseEvent: PropTypes__default.string
|
|
4916
4962
|
};
|
|
4917
4963
|
var defaultProps$d = {
|
|
4918
4964
|
usePopper: true
|
|
@@ -4929,7 +4975,7 @@ function DropdownMenu(_ref2) {
|
|
|
4929
4975
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4930
4976
|
|
|
4931
4977
|
var args = useDropdownMenu(options);
|
|
4932
|
-
return /*#__PURE__*/React__default
|
|
4978
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4933
4979
|
}
|
|
4934
4980
|
|
|
4935
4981
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4978,7 +5024,7 @@ var propTypes$3 = {
|
|
|
4978
5024
|
* },
|
|
4979
5025
|
* }) => React.Element}
|
|
4980
5026
|
*/
|
|
4981
|
-
children: PropTypes__default
|
|
5027
|
+
children: PropTypes__default.func.isRequired
|
|
4982
5028
|
};
|
|
4983
5029
|
|
|
4984
5030
|
/**
|
|
@@ -4996,7 +5042,7 @@ function DropdownToggle(_ref2) {
|
|
|
4996
5042
|
show = _useDropdownToggle$.show,
|
|
4997
5043
|
toggle = _useDropdownToggle$.toggle;
|
|
4998
5044
|
|
|
4999
|
-
return /*#__PURE__*/React__default
|
|
5045
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
5000
5046
|
show: show,
|
|
5001
5047
|
toggle: toggle,
|
|
5002
5048
|
props: props
|
|
@@ -5018,12 +5064,12 @@ var propTypes$4 = {
|
|
|
5018
5064
|
* },
|
|
5019
5065
|
* }) => React.Element}
|
|
5020
5066
|
*/
|
|
5021
|
-
children: PropTypes__default
|
|
5067
|
+
children: PropTypes__default.func.isRequired,
|
|
5022
5068
|
|
|
5023
5069
|
/**
|
|
5024
5070
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5025
5071
|
*/
|
|
5026
|
-
drop: PropTypes__default
|
|
5072
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5027
5073
|
|
|
5028
5074
|
/**
|
|
5029
5075
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5033,31 +5079,31 @@ var propTypes$4 = {
|
|
|
5033
5079
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5034
5080
|
* where it will default to `keyboard` to match the recommended [ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).
|
|
5035
5081
|
*/
|
|
5036
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5082
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5037
5083
|
|
|
5038
5084
|
/**
|
|
5039
5085
|
* A css slector string that will return __focusable__ menu items.
|
|
5040
5086
|
* Selectors should be relative to the menu component:
|
|
5041
5087
|
* e.g. ` > li:not('.disabled')`
|
|
5042
5088
|
*/
|
|
5043
|
-
itemSelector: PropTypes__default
|
|
5089
|
+
itemSelector: PropTypes__default.string,
|
|
5044
5090
|
|
|
5045
5091
|
/**
|
|
5046
5092
|
* Align the menu to the 'end' side of the placement side of the Dropdown toggle. The default placement is `top-start` or `bottom-start`.
|
|
5047
5093
|
*/
|
|
5048
|
-
alignEnd: PropTypes__default
|
|
5094
|
+
alignEnd: PropTypes__default.bool,
|
|
5049
5095
|
|
|
5050
5096
|
/**
|
|
5051
5097
|
* Whether or not the Dropdown is visible.
|
|
5052
5098
|
*
|
|
5053
5099
|
* @controllable onToggle
|
|
5054
5100
|
*/
|
|
5055
|
-
show: PropTypes__default
|
|
5101
|
+
show: PropTypes__default.bool,
|
|
5056
5102
|
|
|
5057
5103
|
/**
|
|
5058
5104
|
* Sets the initial show position of the Dropdown.
|
|
5059
5105
|
*/
|
|
5060
|
-
defaultShow: PropTypes__default
|
|
5106
|
+
defaultShow: PropTypes__default.bool,
|
|
5061
5107
|
|
|
5062
5108
|
/**
|
|
5063
5109
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5072,7 +5118,7 @@ var propTypes$4 = {
|
|
|
5072
5118
|
*
|
|
5073
5119
|
* @controllable show
|
|
5074
5120
|
*/
|
|
5075
|
-
onToggle: PropTypes__default
|
|
5121
|
+
onToggle: PropTypes__default.func
|
|
5076
5122
|
};
|
|
5077
5123
|
|
|
5078
5124
|
/**
|
|
@@ -5211,7 +5257,7 @@ function Dropdown(_ref) {
|
|
|
5211
5257
|
}
|
|
5212
5258
|
};
|
|
5213
5259
|
|
|
5214
|
-
return /*#__PURE__*/React__default
|
|
5260
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5215
5261
|
value: context
|
|
5216
5262
|
}, children({
|
|
5217
5263
|
props: {
|
|
@@ -5225,14 +5271,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5225
5271
|
Dropdown.Menu = DropdownMenu;
|
|
5226
5272
|
Dropdown.Toggle = DropdownToggle;
|
|
5227
5273
|
|
|
5228
|
-
var NavContext = React__default
|
|
5274
|
+
var NavContext = React__default.createContext(null);
|
|
5229
5275
|
NavContext.displayName = 'NavContext';
|
|
5230
5276
|
|
|
5231
5277
|
var defaultProps$e = {
|
|
5232
5278
|
as: SafeAnchor,
|
|
5233
5279
|
disabled: false
|
|
5234
5280
|
};
|
|
5235
|
-
var DropdownItem = React__default
|
|
5281
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5236
5282
|
var bsPrefix = _ref.bsPrefix,
|
|
5237
5283
|
className = _ref.className,
|
|
5238
5284
|
children = _ref.children,
|
|
@@ -5243,16 +5289,17 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5243
5289
|
onSelect = _ref.onSelect,
|
|
5244
5290
|
propActive = _ref.active,
|
|
5245
5291
|
Component = _ref.as,
|
|
5246
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5292
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5247
5293
|
|
|
5248
5294
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5249
5295
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5250
5296
|
var navContext = React.useContext(NavContext);
|
|
5251
5297
|
|
|
5252
5298
|
var _ref2 = navContext || {},
|
|
5253
|
-
activeKey = _ref2.activeKey;
|
|
5299
|
+
activeKey = _ref2.activeKey; // TODO: Restrict eventKey to string in v5?
|
|
5300
|
+
|
|
5254
5301
|
|
|
5255
|
-
var key = makeEventKey(eventKey
|
|
5302
|
+
var key = makeEventKey(eventKey, href);
|
|
5256
5303
|
var active = propActive == null && key != null ? makeEventKey(activeKey) === key : propActive;
|
|
5257
5304
|
var handleClick = useEventCallback(function (event) {
|
|
5258
5305
|
// SafeAnchor handles the disabled case, but we handle it here
|
|
@@ -5266,11 +5313,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5266
5313
|
/*#__PURE__*/
|
|
5267
5314
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5268
5315
|
// @ts-ignore
|
|
5269
|
-
React__default
|
|
5316
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5270
5317
|
ref: ref,
|
|
5271
5318
|
href: href,
|
|
5272
5319
|
disabled: disabled,
|
|
5273
|
-
className: classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5320
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5274
5321
|
onClick: handleClick
|
|
5275
5322
|
}), children)
|
|
5276
5323
|
);
|
|
@@ -5315,7 +5362,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5315
5362
|
}, [refA, refB]);
|
|
5316
5363
|
}
|
|
5317
5364
|
|
|
5318
|
-
var context$2 = React__default
|
|
5365
|
+
var context$2 = React__default.createContext(null);
|
|
5319
5366
|
context$2.displayName = 'NavbarContext';
|
|
5320
5367
|
|
|
5321
5368
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5351,12 +5398,14 @@ function getMargins(element) {
|
|
|
5351
5398
|
function usePopperMarginModifiers() {
|
|
5352
5399
|
var overlayRef = React.useRef(null);
|
|
5353
5400
|
var margins = React.useRef(null);
|
|
5401
|
+
var popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
5402
|
+
var dropdownMenuClass = useBootstrapPrefix(undefined, 'dropdown-menu');
|
|
5354
5403
|
var callback = React.useCallback(function (overlay) {
|
|
5355
|
-
if (!overlay || !(hasClass(overlay,
|
|
5404
|
+
if (!overlay || !(hasClass(overlay, popoverClass) || hasClass(overlay, dropdownMenuClass))) return;
|
|
5356
5405
|
margins.current = getMargins(overlay);
|
|
5357
5406
|
overlay.style.margin = '0';
|
|
5358
5407
|
overlayRef.current = overlay;
|
|
5359
|
-
}, []);
|
|
5408
|
+
}, [popoverClass, dropdownMenuClass]);
|
|
5360
5409
|
var offset = React.useMemo(function () {
|
|
5361
5410
|
return {
|
|
5362
5411
|
name: 'offset',
|
|
@@ -5400,7 +5449,7 @@ function usePopperMarginModifiers() {
|
|
|
5400
5449
|
effect: function effect(_ref2) {
|
|
5401
5450
|
var state = _ref2.state;
|
|
5402
5451
|
|
|
5403
|
-
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current,
|
|
5452
|
+
if (!overlayRef.current || !state.elements.arrow || !hasClass(overlayRef.current, popoverClass) || !state.modifiersData['arrow#persistent']) {
|
|
5404
5453
|
return undefined;
|
|
5405
5454
|
}
|
|
5406
5455
|
|
|
@@ -5421,18 +5470,30 @@ function usePopperMarginModifiers() {
|
|
|
5421
5470
|
};
|
|
5422
5471
|
}
|
|
5423
5472
|
};
|
|
5424
|
-
}, []);
|
|
5473
|
+
}, [popoverClass]);
|
|
5425
5474
|
return [callback, [offset, popoverArrowMargins]];
|
|
5426
5475
|
}
|
|
5427
5476
|
|
|
5477
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5478
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5479
|
+
sm: alignDirection
|
|
5480
|
+
}), PropTypes__default.shape({
|
|
5481
|
+
md: alignDirection
|
|
5482
|
+
}), PropTypes__default.shape({
|
|
5483
|
+
lg: alignDirection
|
|
5484
|
+
}), PropTypes__default.shape({
|
|
5485
|
+
xl: alignDirection
|
|
5486
|
+
})]);
|
|
5428
5487
|
var defaultProps$f = {
|
|
5488
|
+
align: 'left',
|
|
5429
5489
|
alignRight: false,
|
|
5430
5490
|
flip: true
|
|
5431
5491
|
}; // TODO: remove this hack
|
|
5432
5492
|
|
|
5433
|
-
var DropdownMenu$1 = React__default
|
|
5493
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5434
5494
|
var bsPrefix = _ref.bsPrefix,
|
|
5435
5495
|
className = _ref.className,
|
|
5496
|
+
align = _ref.align,
|
|
5436
5497
|
alignRight = _ref.alignRight,
|
|
5437
5498
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5438
5499
|
flip = _ref.flip,
|
|
@@ -5441,7 +5502,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5441
5502
|
_ref$as = _ref.as,
|
|
5442
5503
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5443
5504
|
popperConfig = _ref.popperConfig,
|
|
5444
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5505
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5445
5506
|
|
|
5446
5507
|
var isNavbar = React.useContext(context$2);
|
|
5447
5508
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5450,13 +5511,34 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5450
5511
|
popperRef = _usePopperMarginModif[0],
|
|
5451
5512
|
marginModifiers = _usePopperMarginModif[1];
|
|
5452
5513
|
|
|
5514
|
+
var alignClasses = [];
|
|
5515
|
+
|
|
5516
|
+
if (align) {
|
|
5517
|
+
if (typeof align === 'object') {
|
|
5518
|
+
var keys = Object.keys(align);
|
|
5519
|
+
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
5520
|
+
|
|
5521
|
+
if (keys.length) {
|
|
5522
|
+
var brkPoint = keys[0];
|
|
5523
|
+
var direction = align[brkPoint]; // .dropdown-menu-right is required for responsively aligning
|
|
5524
|
+
// left in addition to align left classes.
|
|
5525
|
+
// Reuse alignRight to toggle the class below.
|
|
5526
|
+
|
|
5527
|
+
alignRight = direction === 'left';
|
|
5528
|
+
alignClasses.push(prefix + "-" + brkPoint + "-" + direction);
|
|
5529
|
+
}
|
|
5530
|
+
} else if (align === 'right') {
|
|
5531
|
+
alignRight = true;
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
|
|
5453
5535
|
var _ref2 = useDropdownMenu({
|
|
5454
5536
|
flip: flip,
|
|
5455
5537
|
rootCloseEvent: rootCloseEvent,
|
|
5456
5538
|
show: showProps,
|
|
5457
5539
|
alignEnd: alignRight,
|
|
5458
|
-
usePopper: !isNavbar,
|
|
5459
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5540
|
+
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5541
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5460
5542
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5461
5543
|
})
|
|
5462
5544
|
}),
|
|
@@ -5479,12 +5561,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5479
5561
|
if (placement) {
|
|
5480
5562
|
// we don't need the default popper style,
|
|
5481
5563
|
// menus are display: none when not shown.
|
|
5482
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5564
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5483
5565
|
props['x-placement'] = placement;
|
|
5484
5566
|
}
|
|
5485
5567
|
|
|
5486
|
-
return /*#__PURE__*/React__default
|
|
5487
|
-
className: classnames(className, prefix, show && 'show', alignEnd && prefix + "-right")
|
|
5568
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, menuProps, {
|
|
5569
|
+
className: index$5.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5488
5570
|
}));
|
|
5489
5571
|
});
|
|
5490
5572
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5517,15 +5599,14 @@ module.exports = exports['default'];
|
|
|
5517
5599
|
|
|
5518
5600
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5519
5601
|
|
|
5520
|
-
var DropdownToggle$1 = React__default
|
|
5602
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5521
5603
|
var bsPrefix = _ref.bsPrefix,
|
|
5522
5604
|
split = _ref.split,
|
|
5523
5605
|
className = _ref.className,
|
|
5524
|
-
children = _ref.children,
|
|
5525
5606
|
childBsPrefix = _ref.childBsPrefix,
|
|
5526
5607
|
_ref$as = _ref.as,
|
|
5527
5608
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5528
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "
|
|
5609
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5529
5610
|
|
|
5530
5611
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5531
5612
|
|
|
@@ -5540,10 +5621,10 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5540
5621
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5541
5622
|
// underlying component, to allow it to render size and style variants.
|
|
5542
5623
|
|
|
5543
|
-
return /*#__PURE__*/React__default
|
|
5624
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5544
5625
|
onClick: toggle,
|
|
5545
|
-
className: classnames(className, prefix, split && prefix + "-split")
|
|
5546
|
-
}, toggleProps, props)
|
|
5626
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5627
|
+
}, toggleProps, props));
|
|
5547
5628
|
});
|
|
5548
5629
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
5549
5630
|
|
|
@@ -5563,7 +5644,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5563
5644
|
var defaultProps$g = {
|
|
5564
5645
|
navbar: false
|
|
5565
5646
|
};
|
|
5566
|
-
var Dropdown$1 = React__default
|
|
5647
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5567
5648
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5568
5649
|
show: 'onToggle'
|
|
5569
5650
|
}),
|
|
@@ -5578,7 +5659,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5578
5659
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5579
5660
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5580
5661
|
_4 = _useUncontrolled.navbar,
|
|
5581
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5662
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5582
5663
|
|
|
5583
5664
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5584
5665
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5600,9 +5681,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5600
5681
|
if (onSelect) onSelect(key, event);
|
|
5601
5682
|
handleToggle(false, event, 'select');
|
|
5602
5683
|
});
|
|
5603
|
-
return /*#__PURE__*/React__default
|
|
5684
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5604
5685
|
value: handleSelect
|
|
5605
|
-
}, /*#__PURE__*/React__default
|
|
5686
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5606
5687
|
drop: drop,
|
|
5607
5688
|
show: show,
|
|
5608
5689
|
alignEnd: alignRight,
|
|
@@ -5611,9 +5692,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5611
5692
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5612
5693
|
}, function (_ref) {
|
|
5613
5694
|
var dropdownProps = _ref.props;
|
|
5614
|
-
return /*#__PURE__*/React__default
|
|
5695
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5615
5696
|
ref: ref,
|
|
5616
|
-
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5697
|
+
className: index$5.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5617
5698
|
}));
|
|
5618
5699
|
}));
|
|
5619
5700
|
});
|
|
@@ -5632,41 +5713,50 @@ var propTypes$5 = {
|
|
|
5632
5713
|
* @type {string|number}
|
|
5633
5714
|
* @required
|
|
5634
5715
|
*/
|
|
5635
|
-
id: PropTypes__default
|
|
5716
|
+
id: PropTypes__default.any,
|
|
5636
5717
|
|
|
5637
5718
|
/** An `href` passed to the Toggle component */
|
|
5638
|
-
href: PropTypes__default
|
|
5719
|
+
href: PropTypes__default.string,
|
|
5639
5720
|
|
|
5640
5721
|
/** An `onClick` handler passed to the Toggle component */
|
|
5641
|
-
onClick: PropTypes__default
|
|
5722
|
+
onClick: PropTypes__default.func,
|
|
5642
5723
|
|
|
5643
5724
|
/** The content of the non-toggle Button. */
|
|
5644
|
-
title: PropTypes__default
|
|
5725
|
+
title: PropTypes__default.node.isRequired,
|
|
5645
5726
|
|
|
5646
5727
|
/** Disables both Buttons */
|
|
5647
|
-
disabled: PropTypes__default
|
|
5728
|
+
disabled: PropTypes__default.bool,
|
|
5729
|
+
|
|
5730
|
+
/**
|
|
5731
|
+
* Aligns the dropdown menu responsively.
|
|
5732
|
+
*
|
|
5733
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5734
|
+
*
|
|
5735
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
5736
|
+
*/
|
|
5737
|
+
menuAlign: alignPropType,
|
|
5648
5738
|
|
|
5649
5739
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5650
|
-
menuRole: PropTypes__default
|
|
5740
|
+
menuRole: PropTypes__default.string,
|
|
5651
5741
|
|
|
5652
5742
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5653
|
-
renderMenuOnMount: PropTypes__default
|
|
5743
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5654
5744
|
|
|
5655
5745
|
/**
|
|
5656
5746
|
* Which event when fired outside the component will cause it to be closed.
|
|
5657
5747
|
*
|
|
5658
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
5748
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5659
5749
|
*/
|
|
5660
|
-
rootCloseEvent: PropTypes__default
|
|
5750
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5661
5751
|
|
|
5662
5752
|
/** @ignore */
|
|
5663
|
-
bsPrefix: PropTypes__default
|
|
5753
|
+
bsPrefix: PropTypes__default.string,
|
|
5664
5754
|
|
|
5665
5755
|
/** @ignore */
|
|
5666
|
-
variant: PropTypes__default
|
|
5756
|
+
variant: PropTypes__default.string,
|
|
5667
5757
|
|
|
5668
5758
|
/** @ignore */
|
|
5669
|
-
size: PropTypes__default
|
|
5759
|
+
size: PropTypes__default.string
|
|
5670
5760
|
};
|
|
5671
5761
|
/**
|
|
5672
5762
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5677,30 +5767,32 @@ var propTypes$5 = {
|
|
|
5677
5767
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5678
5768
|
*/
|
|
5679
5769
|
|
|
5680
|
-
var DropdownButton = React__default
|
|
5770
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5681
5771
|
var title = _ref.title,
|
|
5682
5772
|
children = _ref.children,
|
|
5683
5773
|
bsPrefix = _ref.bsPrefix,
|
|
5684
5774
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
5685
5775
|
variant = _ref.variant,
|
|
5686
5776
|
size = _ref.size,
|
|
5777
|
+
menuAlign = _ref.menuAlign,
|
|
5687
5778
|
menuRole = _ref.menuRole,
|
|
5688
5779
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
5689
5780
|
disabled = _ref.disabled,
|
|
5690
5781
|
href = _ref.href,
|
|
5691
5782
|
id = _ref.id,
|
|
5692
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5783
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5693
5784
|
|
|
5694
|
-
return /*#__PURE__*/React__default
|
|
5785
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5695
5786
|
ref: ref
|
|
5696
|
-
}, props), /*#__PURE__*/React__default
|
|
5787
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5697
5788
|
id: id,
|
|
5698
5789
|
href: href,
|
|
5699
5790
|
size: size,
|
|
5700
5791
|
variant: variant,
|
|
5701
5792
|
disabled: disabled,
|
|
5702
5793
|
childBsPrefix: bsPrefix
|
|
5703
|
-
}, title), /*#__PURE__*/React__default
|
|
5794
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5795
|
+
align: menuAlign,
|
|
5704
5796
|
role: menuRole,
|
|
5705
5797
|
renderOnMount: renderMenuOnMount,
|
|
5706
5798
|
rootCloseEvent: rootCloseEvent
|
|
@@ -5808,13 +5900,13 @@ var propTypes$6 = {
|
|
|
5808
5900
|
*
|
|
5809
5901
|
* @type {('valid'|'invalid')}
|
|
5810
5902
|
*/
|
|
5811
|
-
type: PropTypes__default
|
|
5903
|
+
type: PropTypes__default.string,
|
|
5812
5904
|
|
|
5813
5905
|
/** Display feedback as a tooltip. */
|
|
5814
|
-
tooltip: PropTypes__default
|
|
5815
|
-
as: PropTypes__default
|
|
5906
|
+
tooltip: PropTypes__default.bool,
|
|
5907
|
+
as: PropTypes__default.elementType
|
|
5816
5908
|
};
|
|
5817
|
-
var Feedback = React__default
|
|
5909
|
+
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
|
|
5818
5910
|
function (_ref, ref) {
|
|
5819
5911
|
var _ref$as = _ref.as,
|
|
5820
5912
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5823,21 +5915,21 @@ function (_ref, ref) {
|
|
|
5823
5915
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5824
5916
|
_ref$tooltip = _ref.tooltip,
|
|
5825
5917
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5826
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5918
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5827
5919
|
|
|
5828
|
-
return /*#__PURE__*/React__default
|
|
5920
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5829
5921
|
ref: ref,
|
|
5830
|
-
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5922
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5831
5923
|
}));
|
|
5832
5924
|
});
|
|
5833
5925
|
Feedback.displayName = 'Feedback';
|
|
5834
5926
|
Feedback.propTypes = propTypes$6;
|
|
5835
5927
|
|
|
5836
|
-
var FormContext = React__default
|
|
5928
|
+
var FormContext = React__default.createContext({
|
|
5837
5929
|
controlId: undefined
|
|
5838
5930
|
});
|
|
5839
5931
|
|
|
5840
|
-
var FormCheckInput = React__default
|
|
5932
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5841
5933
|
var id = _ref.id,
|
|
5842
5934
|
bsPrefix = _ref.bsPrefix,
|
|
5843
5935
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5851,7 +5943,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5851
5943
|
isStatic = _ref.isStatic,
|
|
5852
5944
|
_ref$as = _ref.as,
|
|
5853
5945
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5854
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5946
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5855
5947
|
|
|
5856
5948
|
var _useContext = React.useContext(FormContext),
|
|
5857
5949
|
controlId = _useContext.controlId,
|
|
@@ -5862,21 +5954,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5862
5954
|
defaultPrefix = _ref2[1];
|
|
5863
5955
|
|
|
5864
5956
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5865
|
-
return /*#__PURE__*/React__default
|
|
5957
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5866
5958
|
ref: ref,
|
|
5867
5959
|
type: type,
|
|
5868
5960
|
id: id || controlId,
|
|
5869
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5961
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5870
5962
|
}));
|
|
5871
5963
|
});
|
|
5872
5964
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5873
5965
|
|
|
5874
|
-
var FormCheckLabel = React__default
|
|
5966
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5875
5967
|
var bsPrefix = _ref.bsPrefix,
|
|
5876
5968
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5877
5969
|
className = _ref.className,
|
|
5878
5970
|
htmlFor = _ref.htmlFor,
|
|
5879
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5971
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5880
5972
|
|
|
5881
5973
|
var _useContext = React.useContext(FormContext),
|
|
5882
5974
|
controlId = _useContext.controlId,
|
|
@@ -5887,15 +5979,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5887
5979
|
defaultPrefix = _ref2[1];
|
|
5888
5980
|
|
|
5889
5981
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5890
|
-
return /*#__PURE__*/React__default
|
|
5982
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5891
5983
|
ref: ref,
|
|
5892
5984
|
htmlFor: htmlFor || controlId,
|
|
5893
|
-
className: classnames(className, bsPrefix)
|
|
5985
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5894
5986
|
}));
|
|
5895
5987
|
});
|
|
5896
5988
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5897
5989
|
|
|
5898
|
-
var FormCheck = React__default
|
|
5990
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5899
5991
|
var id = _ref.id,
|
|
5900
5992
|
bsPrefix = _ref.bsPrefix,
|
|
5901
5993
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5921,7 +6013,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5921
6013
|
propCustom = _ref.custom,
|
|
5922
6014
|
_ref$as = _ref.as,
|
|
5923
6015
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5924
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5925
6017
|
|
|
5926
6018
|
var custom = type === 'switch' ? true : propCustom;
|
|
5927
6019
|
|
|
@@ -5940,8 +6032,8 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5940
6032
|
custom: custom
|
|
5941
6033
|
};
|
|
5942
6034
|
}, [controlId, custom, id]);
|
|
5943
|
-
var hasLabel = label != null && label !== false && !children;
|
|
5944
|
-
var input = /*#__PURE__*/React__default
|
|
6035
|
+
var hasLabel = custom || label != null && label !== false && !children;
|
|
6036
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
5945
6037
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5946
6038
|
ref: ref,
|
|
5947
6039
|
isValid: isValid,
|
|
@@ -5950,14 +6042,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5950
6042
|
disabled: disabled,
|
|
5951
6043
|
as: as
|
|
5952
6044
|
}));
|
|
5953
|
-
return /*#__PURE__*/React__default
|
|
6045
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5954
6046
|
value: innerFormContext
|
|
5955
|
-
}, /*#__PURE__*/React__default
|
|
6047
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5956
6048
|
style: style,
|
|
5957
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5958
|
-
}, children || /*#__PURE__*/React__default
|
|
6049
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6050
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5959
6051
|
title: title
|
|
5960
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6052
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5961
6053
|
type: isValid ? 'valid' : 'invalid',
|
|
5962
6054
|
tooltip: feedbackTooltip
|
|
5963
6055
|
}, feedback))));
|
|
@@ -5966,7 +6058,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5966
6058
|
FormCheck.Input = FormCheckInput;
|
|
5967
6059
|
FormCheck.Label = FormCheckLabel;
|
|
5968
6060
|
|
|
5969
|
-
var FormFileInput = React__default
|
|
6061
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
5970
6062
|
var id = _ref.id,
|
|
5971
6063
|
bsPrefix = _ref.bsPrefix,
|
|
5972
6064
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5976,7 +6068,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5976
6068
|
lang = _ref.lang,
|
|
5977
6069
|
_ref$as = _ref.as,
|
|
5978
6070
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5979
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6071
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
5980
6072
|
|
|
5981
6073
|
var _useContext = React.useContext(FormContext),
|
|
5982
6074
|
controlId = _useContext.controlId,
|
|
@@ -5989,22 +6081,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5989
6081
|
defaultPrefix = _ref2[1];
|
|
5990
6082
|
|
|
5991
6083
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5992
|
-
return /*#__PURE__*/React__default
|
|
6084
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5993
6085
|
ref: ref,
|
|
5994
6086
|
id: id || controlId,
|
|
5995
6087
|
type: type,
|
|
5996
6088
|
lang: lang,
|
|
5997
|
-
className: classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6089
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
5998
6090
|
}));
|
|
5999
6091
|
});
|
|
6000
6092
|
FormFileInput.displayName = 'FormFileInput';
|
|
6001
6093
|
|
|
6002
|
-
var FormFileLabel = React__default
|
|
6094
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6003
6095
|
var bsPrefix = _ref.bsPrefix,
|
|
6004
6096
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6005
6097
|
className = _ref.className,
|
|
6006
6098
|
htmlFor = _ref.htmlFor,
|
|
6007
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6099
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6008
6100
|
|
|
6009
6101
|
var _useContext = React.useContext(FormContext),
|
|
6010
6102
|
controlId = _useContext.controlId,
|
|
@@ -6015,16 +6107,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6015
6107
|
defaultPrefix = _ref2[1];
|
|
6016
6108
|
|
|
6017
6109
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6018
|
-
return /*#__PURE__*/React__default
|
|
6110
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6019
6111
|
ref: ref,
|
|
6020
6112
|
htmlFor: htmlFor || controlId,
|
|
6021
|
-
className: classnames(className, bsPrefix),
|
|
6113
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6022
6114
|
"data-browse": props['data-browse']
|
|
6023
6115
|
}));
|
|
6024
6116
|
});
|
|
6025
6117
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6026
6118
|
|
|
6027
|
-
var FormFile = React__default
|
|
6119
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6028
6120
|
var id = _ref.id,
|
|
6029
6121
|
bsPrefix = _ref.bsPrefix,
|
|
6030
6122
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6048,7 +6140,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6048
6140
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6049
6141
|
_ref$inputAs = _ref.inputAs,
|
|
6050
6142
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6051
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6143
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6052
6144
|
|
|
6053
6145
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6054
6146
|
prefix = _ref2[0],
|
|
@@ -6067,7 +6159,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6067
6159
|
};
|
|
6068
6160
|
}, [controlId, custom, id]);
|
|
6069
6161
|
var hasLabel = label != null && label !== false && !children;
|
|
6070
|
-
var input = /*#__PURE__*/React__default
|
|
6162
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6071
6163
|
ref: ref,
|
|
6072
6164
|
isValid: isValid,
|
|
6073
6165
|
isInvalid: isInvalid,
|
|
@@ -6075,14 +6167,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6075
6167
|
as: inputAs,
|
|
6076
6168
|
lang: lang
|
|
6077
6169
|
}));
|
|
6078
|
-
return /*#__PURE__*/React__default
|
|
6170
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6079
6171
|
value: innerFormContext
|
|
6080
|
-
}, /*#__PURE__*/React__default
|
|
6172
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6081
6173
|
style: style,
|
|
6082
|
-
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6083
|
-
}, children || /*#__PURE__*/React__default
|
|
6174
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6175
|
+
}, 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, {
|
|
6084
6176
|
"data-browse": dataBrowse
|
|
6085
|
-
}, label)) : /*#__PURE__*/React__default
|
|
6177
|
+
}, 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, {
|
|
6086
6178
|
type: isValid ? 'valid' : 'invalid',
|
|
6087
6179
|
tooltip: feedbackTooltip
|
|
6088
6180
|
}, feedback))));
|
|
@@ -6091,7 +6183,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6091
6183
|
FormFile.Input = FormFileInput;
|
|
6092
6184
|
FormFile.Label = FormFileLabel;
|
|
6093
6185
|
|
|
6094
|
-
var FormControl = React__default
|
|
6186
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6095
6187
|
var bsPrefix = _ref.bsPrefix,
|
|
6096
6188
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6097
6189
|
type = _ref.type,
|
|
@@ -6108,7 +6200,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6108
6200
|
custom = _ref.custom,
|
|
6109
6201
|
_ref$as = _ref.as,
|
|
6110
6202
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6111
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6203
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6112
6204
|
|
|
6113
6205
|
var _useContext = React.useContext(FormContext),
|
|
6114
6206
|
controlId = _useContext.controlId;
|
|
@@ -6143,13 +6235,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6143
6235
|
}
|
|
6144
6236
|
|
|
6145
6237
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6146
|
-
return /*#__PURE__*/React__default
|
|
6238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6147
6239
|
type: type,
|
|
6148
6240
|
size: htmlSize,
|
|
6149
6241
|
ref: ref,
|
|
6150
6242
|
readOnly: readOnly,
|
|
6151
6243
|
id: id || controlId,
|
|
6152
|
-
className: classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6244
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6153
6245
|
}));
|
|
6154
6246
|
});
|
|
6155
6247
|
FormControl.displayName = 'FormControl';
|
|
@@ -6157,14 +6249,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6157
6249
|
Feedback: Feedback
|
|
6158
6250
|
});
|
|
6159
6251
|
|
|
6160
|
-
var FormGroup = React__default
|
|
6252
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6161
6253
|
var bsPrefix = _ref.bsPrefix,
|
|
6162
6254
|
className = _ref.className,
|
|
6163
6255
|
children = _ref.children,
|
|
6164
6256
|
controlId = _ref.controlId,
|
|
6165
6257
|
_ref$as = _ref.as,
|
|
6166
6258
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6167
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6259
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6168
6260
|
|
|
6169
6261
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6170
6262
|
var context = React.useMemo(function () {
|
|
@@ -6172,11 +6264,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6172
6264
|
controlId: controlId
|
|
6173
6265
|
};
|
|
6174
6266
|
}, [controlId]);
|
|
6175
|
-
return /*#__PURE__*/React__default
|
|
6267
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6176
6268
|
value: context
|
|
6177
|
-
}, /*#__PURE__*/React__default
|
|
6269
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6178
6270
|
ref: ref,
|
|
6179
|
-
className: classnames(className, bsPrefix)
|
|
6271
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6180
6272
|
}), children));
|
|
6181
6273
|
});
|
|
6182
6274
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6185,7 +6277,7 @@ var defaultProps$h = {
|
|
|
6185
6277
|
column: false,
|
|
6186
6278
|
srOnly: false
|
|
6187
6279
|
};
|
|
6188
|
-
var FormLabel = React__default
|
|
6280
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6189
6281
|
var _ref$as = _ref.as,
|
|
6190
6282
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6191
6283
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6193,18 +6285,18 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6193
6285
|
srOnly = _ref.srOnly,
|
|
6194
6286
|
className = _ref.className,
|
|
6195
6287
|
htmlFor = _ref.htmlFor,
|
|
6196
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6288
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6197
6289
|
|
|
6198
6290
|
var _useContext = React.useContext(FormContext),
|
|
6199
6291
|
controlId = _useContext.controlId;
|
|
6200
6292
|
|
|
6201
6293
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6202
6294
|
var columnClass = 'col-form-label';
|
|
6203
|
-
if (typeof column === 'string') columnClass = columnClass + "-" + column;
|
|
6204
|
-
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6295
|
+
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6296
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6205
6297
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6206
6298
|
htmlFor = htmlFor || controlId;
|
|
6207
|
-
if (column) return /*#__PURE__*/React__default
|
|
6299
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6208
6300
|
as: "label",
|
|
6209
6301
|
className: classes,
|
|
6210
6302
|
htmlFor: htmlFor
|
|
@@ -6212,7 +6304,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6212
6304
|
return (
|
|
6213
6305
|
/*#__PURE__*/
|
|
6214
6306
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6215
|
-
React__default
|
|
6307
|
+
React__default.createElement(Component, index$5._extends({
|
|
6216
6308
|
ref: ref,
|
|
6217
6309
|
className: classes,
|
|
6218
6310
|
htmlFor: htmlFor
|
|
@@ -6222,25 +6314,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6222
6314
|
FormLabel.displayName = 'FormLabel';
|
|
6223
6315
|
FormLabel.defaultProps = defaultProps$h;
|
|
6224
6316
|
|
|
6225
|
-
var FormText = React__default
|
|
6317
|
+
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
|
|
6226
6318
|
function (_ref, ref) {
|
|
6227
6319
|
var bsPrefix = _ref.bsPrefix,
|
|
6228
6320
|
className = _ref.className,
|
|
6229
6321
|
_ref$as = _ref.as,
|
|
6230
6322
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6231
6323
|
muted = _ref.muted,
|
|
6232
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6324
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6233
6325
|
|
|
6234
6326
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6235
|
-
return /*#__PURE__*/React__default
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6236
6328
|
ref: ref,
|
|
6237
|
-
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6329
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6238
6330
|
}));
|
|
6239
6331
|
});
|
|
6240
6332
|
FormText.displayName = 'FormText';
|
|
6241
6333
|
|
|
6242
|
-
var Switch = React__default
|
|
6243
|
-
return /*#__PURE__*/React__default
|
|
6334
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6335
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6244
6336
|
ref: ref,
|
|
6245
6337
|
type: "switch"
|
|
6246
6338
|
}));
|
|
@@ -6253,19 +6345,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6253
6345
|
var defaultProps$i = {
|
|
6254
6346
|
inline: false
|
|
6255
6347
|
};
|
|
6256
|
-
var FormImpl = React__default
|
|
6348
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6257
6349
|
var bsPrefix = _ref.bsPrefix,
|
|
6258
6350
|
inline = _ref.inline,
|
|
6259
6351
|
className = _ref.className,
|
|
6260
6352
|
validated = _ref.validated,
|
|
6261
6353
|
_ref$as = _ref.as,
|
|
6262
6354
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6263
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6355
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6264
6356
|
|
|
6265
6357
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6266
|
-
return /*#__PURE__*/React__default
|
|
6358
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6267
6359
|
ref: ref,
|
|
6268
|
-
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6360
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6269
6361
|
}));
|
|
6270
6362
|
});
|
|
6271
6363
|
FormImpl.displayName = 'Form';
|
|
@@ -6282,20 +6374,20 @@ FormImpl.Text = FormText;
|
|
|
6282
6374
|
var defaultProps$j = {
|
|
6283
6375
|
fluid: false
|
|
6284
6376
|
};
|
|
6285
|
-
var Container = React__default
|
|
6377
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6286
6378
|
var bsPrefix = _ref.bsPrefix,
|
|
6287
6379
|
fluid = _ref.fluid,
|
|
6288
6380
|
_ref$as = _ref.as,
|
|
6289
6381
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6290
6382
|
className = _ref.className,
|
|
6291
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6383
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6292
6384
|
|
|
6293
6385
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6294
6386
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6295
|
-
return /*#__PURE__*/React__default
|
|
6387
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6296
6388
|
ref: ref
|
|
6297
6389
|
}, props, {
|
|
6298
|
-
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6390
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6299
6391
|
}));
|
|
6300
6392
|
});
|
|
6301
6393
|
Container.displayName = 'Container';
|
|
@@ -6305,27 +6397,27 @@ var propTypes$7 = {
|
|
|
6305
6397
|
/**
|
|
6306
6398
|
* @default 'img'
|
|
6307
6399
|
*/
|
|
6308
|
-
bsPrefix: PropTypes__default
|
|
6400
|
+
bsPrefix: PropTypes__default.string,
|
|
6309
6401
|
|
|
6310
6402
|
/**
|
|
6311
6403
|
* Sets image as fluid image.
|
|
6312
6404
|
*/
|
|
6313
|
-
fluid: PropTypes__default
|
|
6405
|
+
fluid: PropTypes__default.bool,
|
|
6314
6406
|
|
|
6315
6407
|
/**
|
|
6316
6408
|
* Sets image shape as rounded.
|
|
6317
6409
|
*/
|
|
6318
|
-
rounded: PropTypes__default
|
|
6410
|
+
rounded: PropTypes__default.bool,
|
|
6319
6411
|
|
|
6320
6412
|
/**
|
|
6321
6413
|
* Sets image shape as circle.
|
|
6322
6414
|
*/
|
|
6323
|
-
roundedCircle: PropTypes__default
|
|
6415
|
+
roundedCircle: PropTypes__default.bool,
|
|
6324
6416
|
|
|
6325
6417
|
/**
|
|
6326
6418
|
* Sets image shape as thumbnail.
|
|
6327
6419
|
*/
|
|
6328
|
-
thumbnail: PropTypes__default
|
|
6420
|
+
thumbnail: PropTypes__default.bool
|
|
6329
6421
|
};
|
|
6330
6422
|
var defaultProps$k = {
|
|
6331
6423
|
fluid: false,
|
|
@@ -6333,22 +6425,22 @@ var defaultProps$k = {
|
|
|
6333
6425
|
roundedCircle: false,
|
|
6334
6426
|
thumbnail: false
|
|
6335
6427
|
};
|
|
6336
|
-
var Image = React__default
|
|
6428
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6337
6429
|
var bsPrefix = _ref.bsPrefix,
|
|
6338
6430
|
className = _ref.className,
|
|
6339
6431
|
fluid = _ref.fluid,
|
|
6340
6432
|
rounded = _ref.rounded,
|
|
6341
6433
|
roundedCircle = _ref.roundedCircle,
|
|
6342
6434
|
thumbnail = _ref.thumbnail,
|
|
6343
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6435
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6344
6436
|
|
|
6345
6437
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6346
|
-
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6347
|
-
return /*#__PURE__*/React__default
|
|
6438
|
+
var classes = index$5.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6439
|
+
return /*#__PURE__*/React__default.createElement("img", index$5._extends({
|
|
6348
6440
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6349
6441
|
ref: ref
|
|
6350
6442
|
}, props, {
|
|
6351
|
-
className: classnames(className, classes)
|
|
6443
|
+
className: index$5.classnames(className, classes)
|
|
6352
6444
|
}));
|
|
6353
6445
|
});
|
|
6354
6446
|
Image.displayName = 'Image';
|
|
@@ -6357,14 +6449,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6357
6449
|
var defaultProps$l = {
|
|
6358
6450
|
fluid: true
|
|
6359
6451
|
};
|
|
6360
|
-
var FigureImage = React__default
|
|
6452
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6361
6453
|
var className = _ref.className,
|
|
6362
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6454
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6363
6455
|
|
|
6364
|
-
return /*#__PURE__*/React__default
|
|
6456
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6365
6457
|
ref: ref
|
|
6366
6458
|
}, props, {
|
|
6367
|
-
className: classnames(className, 'figure-img')
|
|
6459
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6368
6460
|
}));
|
|
6369
6461
|
});
|
|
6370
6462
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6388,13 +6480,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6388
6480
|
});
|
|
6389
6481
|
|
|
6390
6482
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6391
|
-
return /*#__PURE__*/React__default
|
|
6483
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6392
6484
|
type: "checkbox"
|
|
6393
6485
|
}, props)));
|
|
6394
6486
|
};
|
|
6395
6487
|
|
|
6396
6488
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6397
|
-
return /*#__PURE__*/React__default
|
|
6489
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6398
6490
|
type: "radio"
|
|
6399
6491
|
}, props)));
|
|
6400
6492
|
};
|
|
@@ -6407,24 +6499,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6407
6499
|
* @property {InputGroupRadio} Radio
|
|
6408
6500
|
* @property {InputGroupCheckbox} Checkbox
|
|
6409
6501
|
*/
|
|
6410
|
-
var InputGroup = React__default
|
|
6502
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6411
6503
|
var bsPrefix = _ref.bsPrefix,
|
|
6412
6504
|
size = _ref.size,
|
|
6413
6505
|
className = _ref.className,
|
|
6414
6506
|
_ref$as = _ref.as,
|
|
6415
6507
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6416
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6508
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6417
6509
|
|
|
6418
6510
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6419
|
-
return /*#__PURE__*/React__default
|
|
6511
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6420
6512
|
ref: ref
|
|
6421
6513
|
}, props, {
|
|
6422
|
-
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6514
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6423
6515
|
}));
|
|
6424
6516
|
});
|
|
6425
6517
|
InputGroup.displayName = 'InputGroup';
|
|
6426
6518
|
|
|
6427
|
-
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6519
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6428
6520
|
Text: InputGroupText,
|
|
6429
6521
|
Radio: InputGroupRadio,
|
|
6430
6522
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6435,7 +6527,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6435
6527
|
var defaultProps$m = {
|
|
6436
6528
|
fluid: false
|
|
6437
6529
|
};
|
|
6438
|
-
var Jumbotron = React__default
|
|
6530
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6439
6531
|
var _classes;
|
|
6440
6532
|
|
|
6441
6533
|
var _ref$as = _ref.as,
|
|
@@ -6443,32 +6535,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6443
6535
|
className = _ref.className,
|
|
6444
6536
|
fluid = _ref.fluid,
|
|
6445
6537
|
bsPrefix = _ref.bsPrefix,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6447
6539
|
|
|
6448
6540
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6449
6541
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6450
|
-
return /*#__PURE__*/React__default
|
|
6542
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6451
6543
|
ref: ref
|
|
6452
6544
|
}, props, {
|
|
6453
|
-
className: classnames(className, classes)
|
|
6545
|
+
className: index$5.classnames(className, classes)
|
|
6454
6546
|
}));
|
|
6455
6547
|
});
|
|
6456
6548
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6457
6549
|
Jumbotron.displayName = 'Jumbotron';
|
|
6458
6550
|
|
|
6459
|
-
var TabContext = React__default
|
|
6551
|
+
var TabContext = React__default.createContext(null);
|
|
6460
6552
|
|
|
6461
6553
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6462
6554
|
var noop$4 = function noop() {};
|
|
6463
6555
|
|
|
6464
|
-
var AbstractNav = React__default
|
|
6556
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6465
6557
|
var _ref$as = _ref.as,
|
|
6466
6558
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6467
6559
|
onSelect = _ref.onSelect,
|
|
6468
6560
|
activeKey = _ref.activeKey,
|
|
6469
6561
|
role = _ref.role,
|
|
6470
6562
|
onKeyDown = _ref.onKeyDown,
|
|
6471
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6563
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6472
6564
|
|
|
6473
6565
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6474
6566
|
// and don't want to reset the set in the effect
|
|
@@ -6542,9 +6634,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6542
6634
|
needsRefocusRef.current = false;
|
|
6543
6635
|
});
|
|
6544
6636
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6545
|
-
return /*#__PURE__*/React__default
|
|
6637
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6546
6638
|
value: handleSelect
|
|
6547
|
-
}, /*#__PURE__*/React__default
|
|
6639
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6548
6640
|
value: {
|
|
6549
6641
|
role: role,
|
|
6550
6642
|
// used by NavLink to determine it's role
|
|
@@ -6552,7 +6644,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6552
6644
|
getControlledId: getControlledId || noop$4,
|
|
6553
6645
|
getControllerId: getControllerId || noop$4
|
|
6554
6646
|
}
|
|
6555
|
-
}, /*#__PURE__*/React__default
|
|
6647
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6556
6648
|
onKeyDown: handleKeyDown,
|
|
6557
6649
|
ref: mergedRef,
|
|
6558
6650
|
role: role
|
|
@@ -6562,14 +6654,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6562
6654
|
var defaultProps$n = {
|
|
6563
6655
|
disabled: false
|
|
6564
6656
|
};
|
|
6565
|
-
var AbstractNavItem = React__default
|
|
6657
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6566
6658
|
var active = _ref.active,
|
|
6567
6659
|
className = _ref.className,
|
|
6568
6660
|
eventKey = _ref.eventKey,
|
|
6569
6661
|
onSelect = _ref.onSelect,
|
|
6570
6662
|
onClick = _ref.onClick,
|
|
6571
6663
|
Component = _ref.as,
|
|
6572
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6664
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6573
6665
|
|
|
6574
6666
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6575
6667
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6599,10 +6691,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6599
6691
|
if (onSelect) onSelect(navKey, e);
|
|
6600
6692
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6601
6693
|
});
|
|
6602
|
-
return /*#__PURE__*/React__default
|
|
6694
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6603
6695
|
ref: ref,
|
|
6604
6696
|
onClick: handleOnclick,
|
|
6605
|
-
className: classnames(className, isActive && 'active')
|
|
6697
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6606
6698
|
}));
|
|
6607
6699
|
});
|
|
6608
6700
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6612,7 +6704,7 @@ var defaultProps$o = {
|
|
|
6612
6704
|
active: false,
|
|
6613
6705
|
disabled: false
|
|
6614
6706
|
};
|
|
6615
|
-
var ListGroupItem = React__default
|
|
6707
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6616
6708
|
var bsPrefix = _ref.bsPrefix,
|
|
6617
6709
|
active = _ref.active,
|
|
6618
6710
|
disabled = _ref.disabled,
|
|
@@ -6622,7 +6714,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6622
6714
|
as = _ref.as,
|
|
6623
6715
|
eventKey = _ref.eventKey,
|
|
6624
6716
|
onClick = _ref.onClick,
|
|
6625
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6717
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6626
6718
|
|
|
6627
6719
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6628
6720
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6634,14 +6726,15 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6634
6726
|
|
|
6635
6727
|
if (onClick) onClick(event);
|
|
6636
6728
|
}, [disabled, onClick]);
|
|
6637
|
-
return /*#__PURE__*/React__default
|
|
6729
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6638
6730
|
ref: ref
|
|
6639
6731
|
}, props, {
|
|
6640
|
-
|
|
6732
|
+
// TODO: Restrict eventKey to string in v5?
|
|
6733
|
+
eventKey: makeEventKey(eventKey, props.href) // eslint-disable-next-line no-nested-ternary
|
|
6641
6734
|
,
|
|
6642
6735
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6643
6736
|
onClick: handleClick,
|
|
6644
|
-
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6737
|
+
className: index$5.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6645
6738
|
}));
|
|
6646
6739
|
});
|
|
6647
6740
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6651,7 +6744,7 @@ var defaultProps$p = {
|
|
|
6651
6744
|
variant: undefined,
|
|
6652
6745
|
horizontal: undefined
|
|
6653
6746
|
};
|
|
6654
|
-
var ListGroup = React__default
|
|
6747
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6655
6748
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6656
6749
|
activeKey: 'onSelect'
|
|
6657
6750
|
}),
|
|
@@ -6661,7 +6754,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6661
6754
|
horizontal = _useUncontrolled.horizontal,
|
|
6662
6755
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6663
6756
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6664
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6757
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6665
6758
|
|
|
6666
6759
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6667
6760
|
var horizontalVariant;
|
|
@@ -6673,11 +6766,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6673
6766
|
}
|
|
6674
6767
|
|
|
6675
6768
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6676
|
-
return /*#__PURE__*/React__default
|
|
6769
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6677
6770
|
ref: ref
|
|
6678
6771
|
}, controlledProps, {
|
|
6679
6772
|
as: as,
|
|
6680
|
-
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6773
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6681
6774
|
}));
|
|
6682
6775
|
});
|
|
6683
6776
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6685,18 +6778,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6685
6778
|
ListGroup.Item = ListGroupItem;
|
|
6686
6779
|
|
|
6687
6780
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6688
|
-
var Media = React__default
|
|
6781
|
+
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
|
|
6689
6782
|
function (_ref, ref) {
|
|
6690
6783
|
var bsPrefix = _ref.bsPrefix,
|
|
6691
6784
|
className = _ref.className,
|
|
6692
6785
|
_ref$as = _ref.as,
|
|
6693
6786
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6694
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6787
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6695
6788
|
|
|
6696
6789
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6697
|
-
return /*#__PURE__*/React__default
|
|
6790
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6698
6791
|
ref: ref,
|
|
6699
|
-
className: classnames(className, prefix)
|
|
6792
|
+
className: index$5.classnames(className, prefix)
|
|
6700
6793
|
}));
|
|
6701
6794
|
});
|
|
6702
6795
|
Media.displayName = 'Media';
|
|
@@ -7082,7 +7175,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7082
7175
|
renderDialog = _ref.renderDialog,
|
|
7083
7176
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7084
7177
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7085
|
-
return /*#__PURE__*/React__default
|
|
7178
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7086
7179
|
} : _ref$renderBackdrop,
|
|
7087
7180
|
providedManager = _ref.manager,
|
|
7088
7181
|
containerRef = _ref.container,
|
|
@@ -7240,12 +7333,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7240
7333
|
tabIndex: -1
|
|
7241
7334
|
});
|
|
7242
7335
|
|
|
7243
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default
|
|
7336
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7244
7337
|
role: 'document'
|
|
7245
7338
|
}));
|
|
7246
7339
|
|
|
7247
7340
|
if (Transition) {
|
|
7248
|
-
dialog = /*#__PURE__*/React__default
|
|
7341
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7249
7342
|
appear: true,
|
|
7250
7343
|
unmountOnExit: true,
|
|
7251
7344
|
"in": !!show,
|
|
@@ -7268,20 +7361,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7268
7361
|
});
|
|
7269
7362
|
|
|
7270
7363
|
if (BackdropTransition) {
|
|
7271
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7364
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7272
7365
|
appear: true,
|
|
7273
7366
|
"in": !!show
|
|
7274
7367
|
}, backdropElement);
|
|
7275
7368
|
}
|
|
7276
7369
|
}
|
|
7277
7370
|
|
|
7278
|
-
return /*#__PURE__*/React__default
|
|
7371
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7279
7372
|
});
|
|
7280
7373
|
var propTypes$8 = {
|
|
7281
7374
|
/**
|
|
7282
7375
|
* Set the visibility of the Modal
|
|
7283
7376
|
*/
|
|
7284
|
-
show: PropTypes__default
|
|
7377
|
+
show: PropTypes__default.bool,
|
|
7285
7378
|
|
|
7286
7379
|
/**
|
|
7287
7380
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7289,12 +7382,12 @@ var propTypes$8 = {
|
|
|
7289
7382
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7290
7383
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7291
7384
|
*/
|
|
7292
|
-
container: PropTypes__default
|
|
7385
|
+
container: PropTypes__default.any,
|
|
7293
7386
|
|
|
7294
7387
|
/**
|
|
7295
7388
|
* A callback fired when the Modal is opening.
|
|
7296
7389
|
*/
|
|
7297
|
-
onShow: PropTypes__default
|
|
7390
|
+
onShow: PropTypes__default.func,
|
|
7298
7391
|
|
|
7299
7392
|
/**
|
|
7300
7393
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7302,12 +7395,12 @@ var propTypes$8 = {
|
|
|
7302
7395
|
* The `onHide` callback only signals intent from the Modal,
|
|
7303
7396
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7304
7397
|
*/
|
|
7305
|
-
onHide: PropTypes__default
|
|
7398
|
+
onHide: PropTypes__default.func,
|
|
7306
7399
|
|
|
7307
7400
|
/**
|
|
7308
7401
|
* Include a backdrop component.
|
|
7309
7402
|
*/
|
|
7310
|
-
backdrop: PropTypes__default
|
|
7403
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7311
7404
|
|
|
7312
7405
|
/**
|
|
7313
7406
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7317,7 +7410,7 @@ var propTypes$8 = {
|
|
|
7317
7410
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7318
7411
|
* ```
|
|
7319
7412
|
*/
|
|
7320
|
-
renderDialog: PropTypes__default
|
|
7413
|
+
renderDialog: PropTypes__default.func,
|
|
7321
7414
|
|
|
7322
7415
|
/**
|
|
7323
7416
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7327,42 +7420,42 @@ var propTypes$8 = {
|
|
|
7327
7420
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7328
7421
|
* ```
|
|
7329
7422
|
*/
|
|
7330
|
-
renderBackdrop: PropTypes__default
|
|
7423
|
+
renderBackdrop: PropTypes__default.func,
|
|
7331
7424
|
|
|
7332
7425
|
/**
|
|
7333
7426
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7334
7427
|
*
|
|
7335
7428
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7336
7429
|
*/
|
|
7337
|
-
onEscapeKeyDown: PropTypes__default
|
|
7430
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7338
7431
|
|
|
7339
7432
|
/**
|
|
7340
7433
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7341
7434
|
*/
|
|
7342
|
-
onBackdropClick: PropTypes__default
|
|
7435
|
+
onBackdropClick: PropTypes__default.func,
|
|
7343
7436
|
|
|
7344
7437
|
/**
|
|
7345
7438
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7346
7439
|
* and removed when it is closed.
|
|
7347
7440
|
*/
|
|
7348
|
-
containerClassName: PropTypes__default
|
|
7441
|
+
containerClassName: PropTypes__default.string,
|
|
7349
7442
|
|
|
7350
7443
|
/**
|
|
7351
7444
|
* Close the modal when escape key is pressed
|
|
7352
7445
|
*/
|
|
7353
|
-
keyboard: PropTypes__default
|
|
7446
|
+
keyboard: PropTypes__default.bool,
|
|
7354
7447
|
|
|
7355
7448
|
/**
|
|
7356
7449
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7357
7450
|
* to control animations for the dialog component.
|
|
7358
7451
|
*/
|
|
7359
|
-
transition: PropTypes__default
|
|
7452
|
+
transition: PropTypes__default.elementType,
|
|
7360
7453
|
|
|
7361
7454
|
/**
|
|
7362
7455
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7363
7456
|
* to control animations for the backdrop components.
|
|
7364
7457
|
*/
|
|
7365
|
-
backdropTransition: PropTypes__default
|
|
7458
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7366
7459
|
|
|
7367
7460
|
/**
|
|
7368
7461
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7372,7 +7465,7 @@ var propTypes$8 = {
|
|
|
7372
7465
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7373
7466
|
* accessible to assistive technologies, like screen readers.
|
|
7374
7467
|
*/
|
|
7375
|
-
autoFocus: PropTypes__default
|
|
7468
|
+
autoFocus: PropTypes__default.bool,
|
|
7376
7469
|
|
|
7377
7470
|
/**
|
|
7378
7471
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7380,58 +7473,58 @@ var propTypes$8 = {
|
|
|
7380
7473
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7381
7474
|
* accessible to assistive technologies, like screen readers.
|
|
7382
7475
|
*/
|
|
7383
|
-
enforceFocus: PropTypes__default
|
|
7476
|
+
enforceFocus: PropTypes__default.bool,
|
|
7384
7477
|
|
|
7385
7478
|
/**
|
|
7386
7479
|
* When `true` The modal will restore focus to previously focused element once
|
|
7387
7480
|
* modal is hidden
|
|
7388
7481
|
*/
|
|
7389
|
-
restoreFocus: PropTypes__default
|
|
7482
|
+
restoreFocus: PropTypes__default.bool,
|
|
7390
7483
|
|
|
7391
7484
|
/**
|
|
7392
7485
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7393
7486
|
*
|
|
7394
7487
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7395
7488
|
*/
|
|
7396
|
-
restoreFocusOptions: PropTypes__default
|
|
7397
|
-
preventScroll: PropTypes__default
|
|
7489
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7490
|
+
preventScroll: PropTypes__default.bool
|
|
7398
7491
|
}),
|
|
7399
7492
|
|
|
7400
7493
|
/**
|
|
7401
7494
|
* Callback fired before the Modal transitions in
|
|
7402
7495
|
*/
|
|
7403
|
-
onEnter: PropTypes__default
|
|
7496
|
+
onEnter: PropTypes__default.func,
|
|
7404
7497
|
|
|
7405
7498
|
/**
|
|
7406
7499
|
* Callback fired as the Modal begins to transition in
|
|
7407
7500
|
*/
|
|
7408
|
-
onEntering: PropTypes__default
|
|
7501
|
+
onEntering: PropTypes__default.func,
|
|
7409
7502
|
|
|
7410
7503
|
/**
|
|
7411
7504
|
* Callback fired after the Modal finishes transitioning in
|
|
7412
7505
|
*/
|
|
7413
|
-
onEntered: PropTypes__default
|
|
7506
|
+
onEntered: PropTypes__default.func,
|
|
7414
7507
|
|
|
7415
7508
|
/**
|
|
7416
7509
|
* Callback fired right before the Modal transitions out
|
|
7417
7510
|
*/
|
|
7418
|
-
onExit: PropTypes__default
|
|
7511
|
+
onExit: PropTypes__default.func,
|
|
7419
7512
|
|
|
7420
7513
|
/**
|
|
7421
7514
|
* Callback fired as the Modal begins to transition out
|
|
7422
7515
|
*/
|
|
7423
|
-
onExiting: PropTypes__default
|
|
7516
|
+
onExiting: PropTypes__default.func,
|
|
7424
7517
|
|
|
7425
7518
|
/**
|
|
7426
7519
|
* Callback fired after the Modal finishes transitioning out
|
|
7427
7520
|
*/
|
|
7428
|
-
onExited: PropTypes__default
|
|
7521
|
+
onExited: PropTypes__default.func,
|
|
7429
7522
|
|
|
7430
7523
|
/**
|
|
7431
7524
|
* A ModalManager instance used to track and manage the state of open
|
|
7432
7525
|
* Modals. Useful when customizing how modals interact within a container
|
|
7433
7526
|
*/
|
|
7434
|
-
manager: PropTypes__default
|
|
7527
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7435
7528
|
};
|
|
7436
7529
|
Modal.displayName = 'Modal';
|
|
7437
7530
|
Modal.propTypes = propTypes$8;
|
|
@@ -7514,27 +7607,28 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7514
7607
|
|
|
7515
7608
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7516
7609
|
|
|
7517
|
-
var ModalContext = React__default
|
|
7610
|
+
var ModalContext = React__default.createContext({
|
|
7518
7611
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7519
7612
|
onHide: function onHide() {}
|
|
7520
7613
|
});
|
|
7521
7614
|
|
|
7522
|
-
var ModalDialog = React__default
|
|
7615
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7523
7616
|
var bsPrefix = _ref.bsPrefix,
|
|
7524
7617
|
className = _ref.className,
|
|
7618
|
+
contentClassName = _ref.contentClassName,
|
|
7525
7619
|
centered = _ref.centered,
|
|
7526
7620
|
size = _ref.size,
|
|
7527
7621
|
children = _ref.children,
|
|
7528
7622
|
scrollable = _ref.scrollable,
|
|
7529
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "centered", "size", "children", "scrollable"]);
|
|
7623
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7530
7624
|
|
|
7531
7625
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7532
7626
|
var dialogClass = bsPrefix + "-dialog";
|
|
7533
|
-
return /*#__PURE__*/React__default
|
|
7627
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7534
7628
|
ref: ref,
|
|
7535
|
-
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7536
|
-
}), /*#__PURE__*/React__default
|
|
7537
|
-
className: bsPrefix + "-content"
|
|
7629
|
+
className: index$5.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7630
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7631
|
+
className: index$5.classnames(bsPrefix + "-content", contentClassName)
|
|
7538
7632
|
}, children));
|
|
7539
7633
|
});
|
|
7540
7634
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7545,14 +7639,14 @@ var defaultProps$q = {
|
|
|
7545
7639
|
closeLabel: 'Close',
|
|
7546
7640
|
closeButton: false
|
|
7547
7641
|
};
|
|
7548
|
-
var ModalHeader = React__default
|
|
7642
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7549
7643
|
var bsPrefix = _ref.bsPrefix,
|
|
7550
7644
|
closeLabel = _ref.closeLabel,
|
|
7551
7645
|
closeButton = _ref.closeButton,
|
|
7552
7646
|
onHide = _ref.onHide,
|
|
7553
7647
|
className = _ref.className,
|
|
7554
7648
|
children = _ref.children,
|
|
7555
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7649
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7556
7650
|
|
|
7557
7651
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7558
7652
|
var context = React.useContext(ModalContext);
|
|
@@ -7560,11 +7654,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7560
7654
|
if (context) context.onHide();
|
|
7561
7655
|
if (onHide) onHide();
|
|
7562
7656
|
});
|
|
7563
|
-
return /*#__PURE__*/React__default
|
|
7657
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7564
7658
|
ref: ref
|
|
7565
7659
|
}, props, {
|
|
7566
|
-
className: classnames(className, bsPrefix)
|
|
7567
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7660
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7661
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7568
7662
|
label: closeLabel,
|
|
7569
7663
|
onClick: handleClick
|
|
7570
7664
|
}));
|
|
@@ -7591,20 +7685,21 @@ var defaultProps$r = {
|
|
|
7591
7685
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7592
7686
|
|
|
7593
7687
|
function DialogTransition(props) {
|
|
7594
|
-
return /*#__PURE__*/React__default
|
|
7688
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7595
7689
|
}
|
|
7596
7690
|
|
|
7597
7691
|
function BackdropTransition(props) {
|
|
7598
|
-
return /*#__PURE__*/React__default
|
|
7692
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7599
7693
|
}
|
|
7600
7694
|
/* eslint-enable no-use-before-define */
|
|
7601
7695
|
|
|
7602
7696
|
|
|
7603
|
-
var Modal$1 = React__default
|
|
7697
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7604
7698
|
var bsPrefix = _ref.bsPrefix,
|
|
7605
7699
|
className = _ref.className,
|
|
7606
7700
|
style = _ref.style,
|
|
7607
7701
|
dialogClassName = _ref.dialogClassName,
|
|
7702
|
+
contentClassName = _ref.contentClassName,
|
|
7608
7703
|
children = _ref.children,
|
|
7609
7704
|
Dialog = _ref.dialogAs,
|
|
7610
7705
|
ariaLabelledby = _ref['aria-labelledby'],
|
|
@@ -7628,7 +7723,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7628
7723
|
onExited = _ref.onExited,
|
|
7629
7724
|
backdropClassName = _ref.backdropClassName,
|
|
7630
7725
|
propsManager = _ref.manager,
|
|
7631
|
-
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"]);
|
|
7726
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7632
7727
|
|
|
7633
7728
|
var _useState = React.useState({}),
|
|
7634
7729
|
modalStyle = _useState[0],
|
|
@@ -7794,12 +7889,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7794
7889
|
};
|
|
7795
7890
|
|
|
7796
7891
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7797
|
-
return /*#__PURE__*/React__default
|
|
7798
|
-
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7892
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, backdropProps, {
|
|
7893
|
+
className: index$5.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7799
7894
|
}));
|
|
7800
7895
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7801
7896
|
|
|
7802
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7897
|
+
var baseModalStyle = index$5._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7803
7898
|
|
|
7804
7899
|
|
|
7805
7900
|
if (!animation) {
|
|
@@ -7807,24 +7902,25 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7807
7902
|
}
|
|
7808
7903
|
|
|
7809
7904
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7810
|
-
return /*#__PURE__*/React__default
|
|
7905
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7811
7906
|
role: "dialog"
|
|
7812
7907
|
}, dialogProps, {
|
|
7813
7908
|
style: baseModalStyle,
|
|
7814
|
-
className: classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7909
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7815
7910
|
onClick: backdrop ? handleClick : undefined,
|
|
7816
7911
|
onMouseUp: handleMouseUp,
|
|
7817
7912
|
"aria-labelledby": ariaLabelledby
|
|
7818
|
-
}), /*#__PURE__*/React__default
|
|
7913
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7819
7914
|
role: "document",
|
|
7820
7915
|
onMouseDown: handleDialogMouseDown,
|
|
7821
|
-
className: dialogClassName
|
|
7916
|
+
className: dialogClassName,
|
|
7917
|
+
contentClassName: contentClassName
|
|
7822
7918
|
}), children));
|
|
7823
7919
|
};
|
|
7824
7920
|
|
|
7825
|
-
return /*#__PURE__*/React__default
|
|
7921
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7826
7922
|
value: modalContext
|
|
7827
|
-
}, /*#__PURE__*/React__default
|
|
7923
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7828
7924
|
show: show,
|
|
7829
7925
|
ref: setModalRef,
|
|
7830
7926
|
backdrop: backdrop,
|
|
@@ -7862,19 +7958,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7862
7958
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7863
7959
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7864
7960
|
|
|
7865
|
-
var NavItem = React__default
|
|
7961
|
+
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
|
|
7866
7962
|
function (_ref, ref) {
|
|
7867
7963
|
var bsPrefix = _ref.bsPrefix,
|
|
7868
7964
|
className = _ref.className,
|
|
7869
7965
|
children = _ref.children,
|
|
7870
7966
|
_ref$as = _ref.as,
|
|
7871
7967
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7872
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7968
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7873
7969
|
|
|
7874
7970
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7875
|
-
return /*#__PURE__*/React__default
|
|
7971
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7876
7972
|
ref: ref,
|
|
7877
|
-
className: classnames(className, bsPrefix)
|
|
7973
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7878
7974
|
}), children);
|
|
7879
7975
|
});
|
|
7880
7976
|
NavItem.displayName = 'NavItem';
|
|
@@ -7883,7 +7979,7 @@ var defaultProps$s = {
|
|
|
7883
7979
|
disabled: false,
|
|
7884
7980
|
as: SafeAnchor
|
|
7885
7981
|
};
|
|
7886
|
-
var NavLink = React__default
|
|
7982
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7887
7983
|
var bsPrefix = _ref.bsPrefix,
|
|
7888
7984
|
disabled = _ref.disabled,
|
|
7889
7985
|
className = _ref.className,
|
|
@@ -7891,17 +7987,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7891
7987
|
eventKey = _ref.eventKey,
|
|
7892
7988
|
onSelect = _ref.onSelect,
|
|
7893
7989
|
as = _ref.as,
|
|
7894
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7990
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7895
7991
|
|
|
7896
7992
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7897
|
-
return /*#__PURE__*/React__default
|
|
7993
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7898
7994
|
href: href,
|
|
7899
7995
|
ref: ref,
|
|
7900
7996
|
eventKey: eventKey,
|
|
7901
7997
|
as: as,
|
|
7902
7998
|
disabled: disabled,
|
|
7903
7999
|
onSelect: onSelect,
|
|
7904
|
-
className: classnames(className, bsPrefix, disabled && 'disabled')
|
|
8000
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7905
8001
|
}));
|
|
7906
8002
|
});
|
|
7907
8003
|
NavLink.displayName = 'NavLink';
|
|
@@ -7911,7 +8007,7 @@ var defaultProps$t = {
|
|
|
7911
8007
|
justify: false,
|
|
7912
8008
|
fill: false
|
|
7913
8009
|
};
|
|
7914
|
-
var Nav = React__default
|
|
8010
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7915
8011
|
var _classNames;
|
|
7916
8012
|
|
|
7917
8013
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7927,7 +8023,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7927
8023
|
className = _useUncontrolled.className,
|
|
7928
8024
|
children = _useUncontrolled.children,
|
|
7929
8025
|
activeKey = _useUncontrolled.activeKey,
|
|
7930
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8026
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7931
8027
|
|
|
7932
8028
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7933
8029
|
var navbarBsPrefix;
|
|
@@ -7943,11 +8039,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7943
8039
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7944
8040
|
}
|
|
7945
8041
|
|
|
7946
|
-
return /*#__PURE__*/React__default
|
|
8042
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
7947
8043
|
as: as,
|
|
7948
8044
|
ref: ref,
|
|
7949
8045
|
activeKey: activeKey,
|
|
7950
|
-
className: classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
8046
|
+
className: index$5.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
7951
8047
|
}, props), children);
|
|
7952
8048
|
});
|
|
7953
8049
|
Nav.displayName = 'Nav';
|
|
@@ -7955,31 +8051,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7955
8051
|
Nav.Item = NavItem;
|
|
7956
8052
|
Nav.Link = NavLink;
|
|
7957
8053
|
|
|
7958
|
-
var NavbarBrand = React__default
|
|
8054
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7959
8055
|
var bsPrefix = _ref.bsPrefix,
|
|
7960
8056
|
className = _ref.className,
|
|
7961
8057
|
as = _ref.as,
|
|
7962
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8058
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
7963
8059
|
|
|
7964
8060
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7965
8061
|
var Component = as || (props.href ? 'a' : 'span');
|
|
7966
|
-
return /*#__PURE__*/React__default
|
|
8062
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7967
8063
|
ref: ref,
|
|
7968
|
-
className: classnames(className, bsPrefix)
|
|
8064
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7969
8065
|
}));
|
|
7970
8066
|
});
|
|
7971
8067
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
7972
8068
|
|
|
7973
|
-
var NavbarCollapse = React__default
|
|
8069
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
7974
8070
|
var children = _ref.children,
|
|
7975
8071
|
bsPrefix = _ref.bsPrefix,
|
|
7976
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8072
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
7977
8073
|
|
|
7978
8074
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
7979
|
-
return /*#__PURE__*/React__default
|
|
7980
|
-
return /*#__PURE__*/React__default
|
|
8075
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8076
|
+
return /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
7981
8077
|
in: !!(context && context.expanded)
|
|
7982
|
-
}, props), /*#__PURE__*/React__default
|
|
8078
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
7983
8079
|
ref: ref,
|
|
7984
8080
|
className: bsPrefix
|
|
7985
8081
|
}, children));
|
|
@@ -7990,7 +8086,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
7990
8086
|
var defaultProps$u = {
|
|
7991
8087
|
label: 'Toggle navigation'
|
|
7992
8088
|
};
|
|
7993
|
-
var NavbarToggle = React__default
|
|
8089
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
7994
8090
|
var bsPrefix = _ref.bsPrefix,
|
|
7995
8091
|
className = _ref.className,
|
|
7996
8092
|
children = _ref.children,
|
|
@@ -7998,7 +8094,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7998
8094
|
_ref$as = _ref.as,
|
|
7999
8095
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8000
8096
|
onClick = _ref.onClick,
|
|
8001
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8097
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8002
8098
|
|
|
8003
8099
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8004
8100
|
|
|
@@ -8015,12 +8111,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8015
8111
|
props.type = 'button';
|
|
8016
8112
|
}
|
|
8017
8113
|
|
|
8018
|
-
return /*#__PURE__*/React__default
|
|
8114
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8019
8115
|
ref: ref,
|
|
8020
8116
|
onClick: handleClick,
|
|
8021
8117
|
"aria-label": label,
|
|
8022
|
-
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8023
|
-
}), children || /*#__PURE__*/React__default
|
|
8118
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8119
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8024
8120
|
className: bsPrefix + "-icon"
|
|
8025
8121
|
}));
|
|
8026
8122
|
});
|
|
@@ -8035,7 +8131,7 @@ var defaultProps$v = {
|
|
|
8035
8131
|
variant: 'light',
|
|
8036
8132
|
collapseOnSelect: false
|
|
8037
8133
|
};
|
|
8038
|
-
var Navbar = React__default
|
|
8134
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8039
8135
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8040
8136
|
expanded: 'onToggle'
|
|
8041
8137
|
}),
|
|
@@ -8053,7 +8149,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8053
8149
|
_onToggle = _useUncontrolled.onToggle,
|
|
8054
8150
|
onSelect = _useUncontrolled.onSelect,
|
|
8055
8151
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8056
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8152
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8057
8153
|
|
|
8058
8154
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8059
8155
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8083,14 +8179,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8083
8179
|
expanded: !!expanded
|
|
8084
8180
|
};
|
|
8085
8181
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8086
|
-
return /*#__PURE__*/React__default
|
|
8182
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8087
8183
|
value: navbarContext
|
|
8088
|
-
}, /*#__PURE__*/React__default
|
|
8184
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8089
8185
|
value: handleCollapse
|
|
8090
|
-
}, /*#__PURE__*/React__default
|
|
8186
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8091
8187
|
ref: ref
|
|
8092
8188
|
}, controlledProps, {
|
|
8093
|
-
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8189
|
+
className: index$5.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8094
8190
|
}), children)));
|
|
8095
8191
|
});
|
|
8096
8192
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8106,37 +8202,37 @@ var propTypes$9 = {
|
|
|
8106
8202
|
* @type {string|number}
|
|
8107
8203
|
* @required
|
|
8108
8204
|
*/
|
|
8109
|
-
id: PropTypes__default
|
|
8205
|
+
id: PropTypes__default.any,
|
|
8110
8206
|
|
|
8111
8207
|
/** An `onClick` handler passed to the Toggle component */
|
|
8112
|
-
onClick: PropTypes__default
|
|
8208
|
+
onClick: PropTypes__default.func,
|
|
8113
8209
|
|
|
8114
8210
|
/** The content of the non-toggle Button. */
|
|
8115
|
-
title: PropTypes__default
|
|
8211
|
+
title: PropTypes__default.node.isRequired,
|
|
8116
8212
|
|
|
8117
8213
|
/** Disables the toggle NavLink */
|
|
8118
|
-
disabled: PropTypes__default
|
|
8214
|
+
disabled: PropTypes__default.bool,
|
|
8119
8215
|
|
|
8120
8216
|
/** Style the toggle NavLink as active */
|
|
8121
|
-
active: PropTypes__default
|
|
8217
|
+
active: PropTypes__default.bool,
|
|
8122
8218
|
|
|
8123
8219
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8124
|
-
menuRole: PropTypes__default
|
|
8220
|
+
menuRole: PropTypes__default.string,
|
|
8125
8221
|
|
|
8126
8222
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8127
|
-
renderMenuOnMount: PropTypes__default
|
|
8223
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8128
8224
|
|
|
8129
8225
|
/**
|
|
8130
8226
|
* Which event when fired outside the component will cause it to be closed.
|
|
8131
8227
|
*
|
|
8132
8228
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8133
8229
|
*/
|
|
8134
|
-
rootCloseEvent: PropTypes__default
|
|
8230
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8135
8231
|
|
|
8136
8232
|
/** @ignore */
|
|
8137
|
-
bsPrefix: PropTypes__default
|
|
8233
|
+
bsPrefix: PropTypes__default.string
|
|
8138
8234
|
};
|
|
8139
|
-
var NavDropdown = React__default
|
|
8235
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8140
8236
|
var id = _ref.id,
|
|
8141
8237
|
title = _ref.title,
|
|
8142
8238
|
children = _ref.children,
|
|
@@ -8146,20 +8242,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8146
8242
|
disabled = _ref.disabled,
|
|
8147
8243
|
active = _ref.active,
|
|
8148
8244
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8149
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8245
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8150
8246
|
|
|
8151
|
-
return /*#__PURE__*/React__default
|
|
8247
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8152
8248
|
ref: ref
|
|
8153
8249
|
}, props, {
|
|
8154
8250
|
as: NavItem
|
|
8155
|
-
}), /*#__PURE__*/React__default
|
|
8251
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8156
8252
|
id: id,
|
|
8157
8253
|
eventKey: null,
|
|
8158
8254
|
active: active,
|
|
8159
8255
|
disabled: disabled,
|
|
8160
8256
|
childBsPrefix: bsPrefix,
|
|
8161
8257
|
as: NavLink
|
|
8162
|
-
}, title), /*#__PURE__*/React__default
|
|
8258
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8163
8259
|
role: menuRole,
|
|
8164
8260
|
renderOnMount: renderMenuOnMount,
|
|
8165
8261
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8176,7 +8272,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8176
8272
|
* Built on top of `Popper.js`, the overlay component is
|
|
8177
8273
|
* great for custom tooltip overlays.
|
|
8178
8274
|
*/
|
|
8179
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8275
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8180
8276
|
var flip = props.flip,
|
|
8181
8277
|
offset = props.offset,
|
|
8182
8278
|
placement = props.placement,
|
|
@@ -8259,7 +8355,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8259
8355
|
onEnter = props.onEnter,
|
|
8260
8356
|
onEntering = props.onEntering,
|
|
8261
8357
|
onEntered = props.onEntered;
|
|
8262
|
-
child = /*#__PURE__*/React__default
|
|
8358
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8263
8359
|
"in": props.show,
|
|
8264
8360
|
appear: true,
|
|
8265
8361
|
onExit: onExit,
|
|
@@ -8271,36 +8367,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8271
8367
|
}, child);
|
|
8272
8368
|
}
|
|
8273
8369
|
|
|
8274
|
-
return container ? /*#__PURE__*/
|
|
8370
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8275
8371
|
});
|
|
8276
8372
|
Overlay.displayName = 'Overlay';
|
|
8277
8373
|
Overlay.propTypes = {
|
|
8278
8374
|
/**
|
|
8279
8375
|
* Set the visibility of the Overlay
|
|
8280
8376
|
*/
|
|
8281
|
-
show: PropTypes__default
|
|
8377
|
+
show: PropTypes__default.bool,
|
|
8282
8378
|
|
|
8283
8379
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8284
|
-
placement: PropTypes__default
|
|
8380
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8285
8381
|
|
|
8286
8382
|
/**
|
|
8287
8383
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8288
8384
|
* the overlay is positioned relative to.
|
|
8289
8385
|
*/
|
|
8290
|
-
target: PropTypes__default
|
|
8386
|
+
target: PropTypes__default.any,
|
|
8291
8387
|
|
|
8292
8388
|
/**
|
|
8293
8389
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8294
8390
|
* appended to it.
|
|
8295
8391
|
*/
|
|
8296
|
-
container: PropTypes__default
|
|
8392
|
+
container: PropTypes__default.any,
|
|
8297
8393
|
|
|
8298
8394
|
/**
|
|
8299
8395
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8300
8396
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8301
8397
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8302
8398
|
*/
|
|
8303
|
-
flip: PropTypes__default
|
|
8399
|
+
flip: PropTypes__default.bool,
|
|
8304
8400
|
|
|
8305
8401
|
/**
|
|
8306
8402
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8324,33 +8420,33 @@ Overlay.propTypes = {
|
|
|
8324
8420
|
* },
|
|
8325
8421
|
* }) => React.Element}
|
|
8326
8422
|
*/
|
|
8327
|
-
children: PropTypes__default
|
|
8423
|
+
children: PropTypes__default.func.isRequired,
|
|
8328
8424
|
|
|
8329
8425
|
/**
|
|
8330
8426
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8331
8427
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8332
8428
|
*/
|
|
8333
|
-
containerPadding: PropTypes__default
|
|
8429
|
+
containerPadding: PropTypes__default.number,
|
|
8334
8430
|
|
|
8335
8431
|
/**
|
|
8336
8432
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8337
8433
|
*/
|
|
8338
|
-
popperConfig: PropTypes__default
|
|
8434
|
+
popperConfig: PropTypes__default.object,
|
|
8339
8435
|
|
|
8340
8436
|
/**
|
|
8341
8437
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8342
8438
|
*/
|
|
8343
|
-
rootClose: PropTypes__default
|
|
8439
|
+
rootClose: PropTypes__default.bool,
|
|
8344
8440
|
|
|
8345
8441
|
/**
|
|
8346
8442
|
* Specify event for toggling overlay
|
|
8347
8443
|
*/
|
|
8348
|
-
rootCloseEvent: PropTypes__default
|
|
8444
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8349
8445
|
|
|
8350
8446
|
/**
|
|
8351
8447
|
* Specify disabled for disable RootCloseWrapper
|
|
8352
8448
|
*/
|
|
8353
|
-
rootCloseDisabled: PropTypes__default
|
|
8449
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8354
8450
|
|
|
8355
8451
|
/**
|
|
8356
8452
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8367,10 +8463,10 @@ Overlay.propTypes = {
|
|
|
8367
8463
|
if (props.rootClose) {
|
|
8368
8464
|
var _PropTypes$func;
|
|
8369
8465
|
|
|
8370
|
-
return (_PropTypes$func = PropTypes__default
|
|
8466
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8371
8467
|
}
|
|
8372
8468
|
|
|
8373
|
-
return PropTypes__default
|
|
8469
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8374
8470
|
},
|
|
8375
8471
|
|
|
8376
8472
|
/**
|
|
@@ -8378,37 +8474,37 @@ Overlay.propTypes = {
|
|
|
8378
8474
|
* used to animate the overlay as it changes visibility.
|
|
8379
8475
|
*/
|
|
8380
8476
|
// @ts-ignore
|
|
8381
|
-
transition: PropTypes__default
|
|
8477
|
+
transition: PropTypes__default.elementType,
|
|
8382
8478
|
|
|
8383
8479
|
/**
|
|
8384
8480
|
* Callback fired before the Overlay transitions in
|
|
8385
8481
|
*/
|
|
8386
|
-
onEnter: PropTypes__default
|
|
8482
|
+
onEnter: PropTypes__default.func,
|
|
8387
8483
|
|
|
8388
8484
|
/**
|
|
8389
8485
|
* Callback fired as the Overlay begins to transition in
|
|
8390
8486
|
*/
|
|
8391
|
-
onEntering: PropTypes__default
|
|
8487
|
+
onEntering: PropTypes__default.func,
|
|
8392
8488
|
|
|
8393
8489
|
/**
|
|
8394
8490
|
* Callback fired after the Overlay finishes transitioning in
|
|
8395
8491
|
*/
|
|
8396
|
-
onEntered: PropTypes__default
|
|
8492
|
+
onEntered: PropTypes__default.func,
|
|
8397
8493
|
|
|
8398
8494
|
/**
|
|
8399
8495
|
* Callback fired right before the Overlay transitions out
|
|
8400
8496
|
*/
|
|
8401
|
-
onExit: PropTypes__default
|
|
8497
|
+
onExit: PropTypes__default.func,
|
|
8402
8498
|
|
|
8403
8499
|
/**
|
|
8404
8500
|
* Callback fired as the Overlay begins to transition out
|
|
8405
8501
|
*/
|
|
8406
|
-
onExiting: PropTypes__default
|
|
8502
|
+
onExiting: PropTypes__default.func,
|
|
8407
8503
|
|
|
8408
8504
|
/**
|
|
8409
8505
|
* Callback fired after the Overlay finishes transitioning out
|
|
8410
8506
|
*/
|
|
8411
|
-
onExited: PropTypes__default
|
|
8507
|
+
onExited: PropTypes__default.func
|
|
8412
8508
|
};
|
|
8413
8509
|
|
|
8414
8510
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8425,34 +8521,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8425
8521
|
};
|
|
8426
8522
|
|
|
8427
8523
|
return RefHolder;
|
|
8428
|
-
}(React__default
|
|
8524
|
+
}(React__default.Component);
|
|
8429
8525
|
|
|
8430
8526
|
var defaultProps$w = {
|
|
8431
8527
|
active: false,
|
|
8432
8528
|
disabled: false,
|
|
8433
8529
|
activeLabel: '(current)'
|
|
8434
8530
|
};
|
|
8435
|
-
var PageItem = React__default
|
|
8531
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8436
8532
|
var active = _ref.active,
|
|
8437
8533
|
disabled = _ref.disabled,
|
|
8438
8534
|
className = _ref.className,
|
|
8439
8535
|
style = _ref.style,
|
|
8440
8536
|
activeLabel = _ref.activeLabel,
|
|
8441
8537
|
children = _ref.children,
|
|
8442
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8443
8539
|
|
|
8444
8540
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8445
|
-
return /*#__PURE__*/React__default
|
|
8541
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8446
8542
|
ref: ref,
|
|
8447
8543
|
style: style,
|
|
8448
|
-
className: classnames(className, 'page-item', {
|
|
8544
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8449
8545
|
active: active,
|
|
8450
8546
|
disabled: disabled
|
|
8451
8547
|
})
|
|
8452
|
-
}, /*#__PURE__*/React__default
|
|
8548
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8453
8549
|
className: "page-link",
|
|
8454
8550
|
disabled: disabled
|
|
8455
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8551
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8456
8552
|
className: "sr-only"
|
|
8457
8553
|
}, activeLabel)));
|
|
8458
8554
|
});
|
|
@@ -8466,11 +8562,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8466
8562
|
|
|
8467
8563
|
function Button(_ref2) {
|
|
8468
8564
|
var children = _ref2.children,
|
|
8469
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8565
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8470
8566
|
|
|
8471
|
-
return /*#__PURE__*/React__default
|
|
8567
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8472
8568
|
"aria-hidden": "true"
|
|
8473
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8569
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8474
8570
|
className: "sr-only"
|
|
8475
8571
|
}, label));
|
|
8476
8572
|
}
|
|
@@ -8493,18 +8589,18 @@ var Last = createButton('Last', '»');
|
|
|
8493
8589
|
* @property {PageItem} Next
|
|
8494
8590
|
* @property {PageItem} Last
|
|
8495
8591
|
*/
|
|
8496
|
-
var Pagination = React__default
|
|
8592
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8497
8593
|
var bsPrefix = _ref.bsPrefix,
|
|
8498
8594
|
className = _ref.className,
|
|
8499
8595
|
children = _ref.children,
|
|
8500
8596
|
size = _ref.size,
|
|
8501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8597
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8502
8598
|
|
|
8503
8599
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8504
|
-
return /*#__PURE__*/React__default
|
|
8600
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8505
8601
|
ref: ref
|
|
8506
8602
|
}, props, {
|
|
8507
|
-
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8603
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8508
8604
|
}), children);
|
|
8509
8605
|
});
|
|
8510
8606
|
Pagination.First = First;
|
|
@@ -8514,42 +8610,42 @@ Pagination.Item = PageItem;
|
|
|
8514
8610
|
Pagination.Next = Next;
|
|
8515
8611
|
Pagination.Last = Last;
|
|
8516
8612
|
|
|
8517
|
-
var PopoverTitle = React__default
|
|
8613
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8518
8614
|
var _ref$as = _ref.as,
|
|
8519
8615
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8520
8616
|
bsPrefix = _ref.bsPrefix,
|
|
8521
8617
|
className = _ref.className,
|
|
8522
8618
|
children = _ref.children,
|
|
8523
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8619
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8524
8620
|
|
|
8525
8621
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8526
|
-
return /*#__PURE__*/React__default
|
|
8622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8527
8623
|
ref: ref
|
|
8528
8624
|
}, props, {
|
|
8529
|
-
className: classnames(bsPrefix, className)
|
|
8625
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8530
8626
|
}), children);
|
|
8531
8627
|
});
|
|
8532
8628
|
|
|
8533
|
-
var PopoverContent = React__default
|
|
8629
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8534
8630
|
var _ref$as = _ref.as,
|
|
8535
8631
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8536
8632
|
bsPrefix = _ref.bsPrefix,
|
|
8537
8633
|
className = _ref.className,
|
|
8538
8634
|
children = _ref.children,
|
|
8539
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8635
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8540
8636
|
|
|
8541
8637
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8542
|
-
return /*#__PURE__*/React__default
|
|
8638
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8543
8639
|
ref: ref
|
|
8544
8640
|
}, props, {
|
|
8545
|
-
className: classnames(className, bsPrefix)
|
|
8641
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8546
8642
|
}), children);
|
|
8547
8643
|
});
|
|
8548
8644
|
|
|
8549
8645
|
var defaultProps$x = {
|
|
8550
8646
|
placement: 'right'
|
|
8551
8647
|
};
|
|
8552
|
-
var Popover = React__default
|
|
8648
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8553
8649
|
var bsPrefix = _ref.bsPrefix,
|
|
8554
8650
|
placement = _ref.placement,
|
|
8555
8651
|
className = _ref.className,
|
|
@@ -8559,22 +8655,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8559
8655
|
arrowProps = _ref.arrowProps,
|
|
8560
8656
|
_ = _ref.popper,
|
|
8561
8657
|
_1 = _ref.show,
|
|
8562
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8658
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8563
8659
|
|
|
8564
8660
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8565
8661
|
|
|
8566
8662
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8567
8663
|
primaryPlacement = _ref2[0];
|
|
8568
8664
|
|
|
8569
|
-
return /*#__PURE__*/React__default
|
|
8665
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8570
8666
|
ref: ref,
|
|
8571
8667
|
role: "tooltip",
|
|
8572
8668
|
style: style,
|
|
8573
8669
|
"x-placement": primaryPlacement,
|
|
8574
|
-
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8575
|
-
}, props), /*#__PURE__*/React__default
|
|
8670
|
+
className: index$5.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8671
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8576
8672
|
className: "arrow"
|
|
8577
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8673
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8578
8674
|
});
|
|
8579
8675
|
Popover.defaultProps = defaultProps$x;
|
|
8580
8676
|
Popover.Title = PopoverTitle;
|
|
@@ -8610,27 +8706,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8610
8706
|
style = _ref.style,
|
|
8611
8707
|
variant = _ref.variant,
|
|
8612
8708
|
bsPrefix = _ref.bsPrefix,
|
|
8613
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8709
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8614
8710
|
|
|
8615
|
-
return /*#__PURE__*/React__default
|
|
8711
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8616
8712
|
ref: ref
|
|
8617
8713
|
}, props, {
|
|
8618
8714
|
role: "progressbar",
|
|
8619
|
-
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8620
|
-
style: _extends({
|
|
8715
|
+
className: index$5.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8716
|
+
style: index$5._extends({
|
|
8621
8717
|
width: getPercentage(now, min, max) + "%"
|
|
8622
8718
|
}, style),
|
|
8623
8719
|
"aria-valuenow": now,
|
|
8624
8720
|
"aria-valuemin": min,
|
|
8625
8721
|
"aria-valuemax": max
|
|
8626
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8722
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8627
8723
|
className: "sr-only"
|
|
8628
8724
|
}, label) : label);
|
|
8629
8725
|
}
|
|
8630
8726
|
|
|
8631
|
-
var ProgressBar = React__default
|
|
8727
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8632
8728
|
var isChild = _ref2.isChild,
|
|
8633
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8729
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8634
8730
|
|
|
8635
8731
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8636
8732
|
|
|
@@ -8649,12 +8745,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8649
8745
|
variant = props.variant,
|
|
8650
8746
|
className = props.className,
|
|
8651
8747
|
children = props.children,
|
|
8652
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8748
|
+
wrapperProps = index$5._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8653
8749
|
|
|
8654
|
-
return /*#__PURE__*/React__default
|
|
8750
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8655
8751
|
ref: ref
|
|
8656
8752
|
}, wrapperProps, {
|
|
8657
|
-
className: classnames(className, bsPrefix)
|
|
8753
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8658
8754
|
}), children ? map(children, function (child) {
|
|
8659
8755
|
return React.cloneElement(child, {
|
|
8660
8756
|
isChild: true
|
|
@@ -8677,21 +8773,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8677
8773
|
var defaultProps$z = {
|
|
8678
8774
|
aspectRatio: '1by1'
|
|
8679
8775
|
};
|
|
8680
|
-
var ResponsiveEmbed = React__default
|
|
8776
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8681
8777
|
var bsPrefix = _ref.bsPrefix,
|
|
8682
8778
|
className = _ref.className,
|
|
8683
8779
|
children = _ref.children,
|
|
8684
8780
|
aspectRatio = _ref.aspectRatio,
|
|
8685
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8781
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8686
8782
|
|
|
8687
8783
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8688
|
-
var child = React__default
|
|
8689
|
-
return /*#__PURE__*/React__default
|
|
8784
|
+
var child = React__default.Children.only(children);
|
|
8785
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8690
8786
|
ref: ref
|
|
8691
8787
|
}, props, {
|
|
8692
|
-
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8693
|
-
}), React__default
|
|
8694
|
-
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8788
|
+
className: index$5.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8789
|
+
}), React__default.cloneElement(child, {
|
|
8790
|
+
className: index$5.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8695
8791
|
}));
|
|
8696
8792
|
});
|
|
8697
8793
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8700,13 +8796,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8700
8796
|
var defaultProps$A = {
|
|
8701
8797
|
noGutters: false
|
|
8702
8798
|
};
|
|
8703
|
-
var Row = React__default
|
|
8799
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8704
8800
|
var bsPrefix = _ref.bsPrefix,
|
|
8705
8801
|
className = _ref.className,
|
|
8706
8802
|
noGutters = _ref.noGutters,
|
|
8707
8803
|
_ref$as = _ref.as,
|
|
8708
8804
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8709
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8805
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8710
8806
|
|
|
8711
8807
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8712
8808
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8725,16 +8821,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8725
8821
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8726
8822
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8727
8823
|
});
|
|
8728
|
-
return /*#__PURE__*/React__default
|
|
8824
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8729
8825
|
ref: ref
|
|
8730
8826
|
}, props, {
|
|
8731
|
-
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8827
|
+
className: index$5.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8732
8828
|
}));
|
|
8733
8829
|
});
|
|
8734
8830
|
Row.displayName = 'Row';
|
|
8735
8831
|
Row.defaultProps = defaultProps$A;
|
|
8736
8832
|
|
|
8737
|
-
var Spinner = React__default
|
|
8833
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8738
8834
|
var bsPrefix = _ref.bsPrefix,
|
|
8739
8835
|
variant = _ref.variant,
|
|
8740
8836
|
animation = _ref.animation,
|
|
@@ -8743,14 +8839,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8743
8839
|
_ref$as = _ref.as,
|
|
8744
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8745
8841
|
className = _ref.className,
|
|
8746
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8842
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8747
8843
|
|
|
8748
8844
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8749
8845
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8750
|
-
return /*#__PURE__*/React__default
|
|
8846
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8751
8847
|
ref: ref
|
|
8752
8848
|
}, props, {
|
|
8753
|
-
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8849
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8754
8850
|
}), children);
|
|
8755
8851
|
});
|
|
8756
8852
|
Spinner.displayName = 'Spinner';
|
|
@@ -8761,58 +8857,67 @@ var propTypes$a = {
|
|
|
8761
8857
|
* @type {string|number}
|
|
8762
8858
|
* @required
|
|
8763
8859
|
*/
|
|
8764
|
-
id: PropTypes__default
|
|
8860
|
+
id: PropTypes__default.any,
|
|
8765
8861
|
|
|
8766
8862
|
/**
|
|
8767
8863
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8768
8864
|
*/
|
|
8769
|
-
toggleLabel: PropTypes__default
|
|
8865
|
+
toggleLabel: PropTypes__default.string,
|
|
8770
8866
|
|
|
8771
8867
|
/** An `href` passed to the non-toggle Button */
|
|
8772
|
-
href: PropTypes__default
|
|
8868
|
+
href: PropTypes__default.string,
|
|
8773
8869
|
|
|
8774
8870
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8775
|
-
target: PropTypes__default
|
|
8871
|
+
target: PropTypes__default.string,
|
|
8776
8872
|
|
|
8777
8873
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8778
|
-
onClick: PropTypes__default
|
|
8874
|
+
onClick: PropTypes__default.func,
|
|
8779
8875
|
|
|
8780
8876
|
/** The content of the non-toggle Button. */
|
|
8781
|
-
title: PropTypes__default
|
|
8877
|
+
title: PropTypes__default.node.isRequired,
|
|
8782
8878
|
|
|
8783
8879
|
/** A `type` passed to the non-toggle Button */
|
|
8784
|
-
type: PropTypes__default
|
|
8880
|
+
type: PropTypes__default.string,
|
|
8785
8881
|
|
|
8786
8882
|
/** Disables both Buttons */
|
|
8787
|
-
disabled: PropTypes__default
|
|
8883
|
+
disabled: PropTypes__default.bool,
|
|
8884
|
+
|
|
8885
|
+
/**
|
|
8886
|
+
* Aligns the dropdown menu responsively.
|
|
8887
|
+
*
|
|
8888
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8889
|
+
*
|
|
8890
|
+
* @type {"left"|"right"|{ sm: "left"|"right" }|{ md: "left"|"right" }|{ lg: "left"|"right" }|{ xl: "left"|"right"} }
|
|
8891
|
+
*/
|
|
8892
|
+
menuAlign: alignPropType,
|
|
8788
8893
|
|
|
8789
8894
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8790
|
-
menuRole: PropTypes__default
|
|
8895
|
+
menuRole: PropTypes__default.string,
|
|
8791
8896
|
|
|
8792
8897
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8793
|
-
renderMenuOnMount: PropTypes__default
|
|
8898
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8794
8899
|
|
|
8795
8900
|
/**
|
|
8796
8901
|
* Which event when fired outside the component will cause it to be closed.
|
|
8797
8902
|
*
|
|
8798
|
-
* _see [DropdownMenu](#menu-props) for more details_
|
|
8903
|
+
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8799
8904
|
*/
|
|
8800
|
-
rootCloseEvent: PropTypes__default
|
|
8905
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8801
8906
|
|
|
8802
8907
|
/** @ignore */
|
|
8803
|
-
bsPrefix: PropTypes__default
|
|
8908
|
+
bsPrefix: PropTypes__default.string,
|
|
8804
8909
|
|
|
8805
8910
|
/** @ignore */
|
|
8806
|
-
variant: PropTypes__default
|
|
8911
|
+
variant: PropTypes__default.string,
|
|
8807
8912
|
|
|
8808
8913
|
/** @ignore */
|
|
8809
|
-
size: PropTypes__default
|
|
8914
|
+
size: PropTypes__default.string
|
|
8810
8915
|
};
|
|
8811
8916
|
var defaultProps$B = {
|
|
8812
8917
|
toggleLabel: 'Toggle dropdown',
|
|
8813
8918
|
type: 'button'
|
|
8814
8919
|
};
|
|
8815
|
-
var SplitButton = React__default
|
|
8920
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8816
8921
|
var id = _ref.id,
|
|
8817
8922
|
bsPrefix = _ref.bsPrefix,
|
|
8818
8923
|
size = _ref.size,
|
|
@@ -8824,16 +8929,17 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8824
8929
|
onClick = _ref.onClick,
|
|
8825
8930
|
href = _ref.href,
|
|
8826
8931
|
target = _ref.target,
|
|
8932
|
+
menuAlign = _ref.menuAlign,
|
|
8827
8933
|
menuRole = _ref.menuRole,
|
|
8828
8934
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8829
8935
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8830
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8936
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8831
8937
|
|
|
8832
|
-
return /*#__PURE__*/React__default
|
|
8938
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8833
8939
|
ref: ref
|
|
8834
8940
|
}, props, {
|
|
8835
8941
|
as: ButtonGroup
|
|
8836
|
-
}), /*#__PURE__*/React__default
|
|
8942
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8837
8943
|
size: size,
|
|
8838
8944
|
variant: variant,
|
|
8839
8945
|
disabled: props.disabled,
|
|
@@ -8842,16 +8948,17 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8842
8948
|
target: target,
|
|
8843
8949
|
onClick: onClick,
|
|
8844
8950
|
type: type
|
|
8845
|
-
}, title), /*#__PURE__*/React__default
|
|
8951
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8846
8952
|
split: true,
|
|
8847
8953
|
id: id ? id.toString() : undefined,
|
|
8848
8954
|
size: size,
|
|
8849
8955
|
variant: variant,
|
|
8850
8956
|
disabled: props.disabled,
|
|
8851
8957
|
childBsPrefix: bsPrefix
|
|
8852
|
-
}, /*#__PURE__*/React__default
|
|
8958
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8853
8959
|
className: "sr-only"
|
|
8854
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8960
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8961
|
+
align: menuAlign,
|
|
8855
8962
|
role: menuRole,
|
|
8856
8963
|
renderOnMount: renderMenuOnMount,
|
|
8857
8964
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8894,25 +9001,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8894
9001
|
}
|
|
8895
9002
|
};
|
|
8896
9003
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8897
|
-
return /*#__PURE__*/React__default
|
|
9004
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8898
9005
|
value: tabContext
|
|
8899
|
-
}, /*#__PURE__*/React__default
|
|
9006
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8900
9007
|
value: onSelect || null
|
|
8901
9008
|
}, children));
|
|
8902
9009
|
};
|
|
8903
9010
|
|
|
8904
|
-
var TabContent = React__default
|
|
9011
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8905
9012
|
var bsPrefix = _ref.bsPrefix,
|
|
8906
9013
|
_ref$as = _ref.as,
|
|
8907
9014
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8908
9015
|
className = _ref.className,
|
|
8909
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8910
9017
|
|
|
8911
9018
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8912
|
-
return /*#__PURE__*/React__default
|
|
9019
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8913
9020
|
ref: ref
|
|
8914
9021
|
}, props, {
|
|
8915
|
-
className: classnames(className, decoratedBsPrefix)
|
|
9022
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
8916
9023
|
}));
|
|
8917
9024
|
});
|
|
8918
9025
|
|
|
@@ -8923,11 +9030,11 @@ function useTabContext(props) {
|
|
|
8923
9030
|
var activeKey = context.activeKey,
|
|
8924
9031
|
getControlledId = context.getControlledId,
|
|
8925
9032
|
getControllerId = context.getControllerId,
|
|
8926
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9033
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8927
9034
|
|
|
8928
9035
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8929
9036
|
var key = makeEventKey(props.eventKey);
|
|
8930
|
-
return _extends({}, props, {
|
|
9037
|
+
return index$5._extends({}, props, {
|
|
8931
9038
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8932
9039
|
id: getControlledId(props.eventKey),
|
|
8933
9040
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8937,7 +9044,7 @@ function useTabContext(props) {
|
|
|
8937
9044
|
});
|
|
8938
9045
|
}
|
|
8939
9046
|
|
|
8940
|
-
var TabPane = React__default
|
|
9047
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8941
9048
|
var _useTabContext = useTabContext(props),
|
|
8942
9049
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8943
9050
|
className = _useTabContext.className,
|
|
@@ -8954,19 +9061,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8954
9061
|
_useTabContext$as = _useTabContext.as,
|
|
8955
9062
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
8956
9063
|
_ = _useTabContext.eventKey,
|
|
8957
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9064
|
+
rest = index$5._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
8958
9065
|
|
|
8959
9066
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
8960
9067
|
if (!active && !Transition && unmountOnExit) return null;
|
|
8961
|
-
var pane = /*#__PURE__*/React__default
|
|
9068
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
8962
9069
|
ref: ref,
|
|
8963
9070
|
role: "tabpanel",
|
|
8964
9071
|
"aria-hidden": !active,
|
|
8965
|
-
className: classnames(className, prefix, {
|
|
9072
|
+
className: index$5.classnames(className, prefix, {
|
|
8966
9073
|
active: active
|
|
8967
9074
|
})
|
|
8968
9075
|
}));
|
|
8969
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9076
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8970
9077
|
in: active,
|
|
8971
9078
|
onEnter: onEnter,
|
|
8972
9079
|
onEntering: onEntering,
|
|
@@ -8979,9 +9086,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8979
9086
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
8980
9087
|
// conflict with the top level one.
|
|
8981
9088
|
|
|
8982
|
-
return /*#__PURE__*/React__default
|
|
9089
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8983
9090
|
value: null
|
|
8984
|
-
}, /*#__PURE__*/React__default
|
|
9091
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8985
9092
|
value: null
|
|
8986
9093
|
}, pane));
|
|
8987
9094
|
});
|
|
@@ -9002,13 +9109,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9002
9109
|
};
|
|
9003
9110
|
|
|
9004
9111
|
return Tab;
|
|
9005
|
-
}(React__default
|
|
9112
|
+
}(React__default.Component);
|
|
9006
9113
|
|
|
9007
9114
|
Tab.Container = TabContainer;
|
|
9008
9115
|
Tab.Content = TabContent;
|
|
9009
9116
|
Tab.Pane = TabPane;
|
|
9010
9117
|
|
|
9011
|
-
var Table = React__default
|
|
9118
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9012
9119
|
var bsPrefix = _ref.bsPrefix,
|
|
9013
9120
|
className = _ref.className,
|
|
9014
9121
|
striped = _ref.striped,
|
|
@@ -9018,11 +9125,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9018
9125
|
size = _ref.size,
|
|
9019
9126
|
variant = _ref.variant,
|
|
9020
9127
|
responsive = _ref.responsive,
|
|
9021
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9128
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9022
9129
|
|
|
9023
9130
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9024
|
-
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9025
|
-
var table = /*#__PURE__*/React__default
|
|
9131
|
+
var classes = index$5.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9132
|
+
var table = /*#__PURE__*/React__default.createElement("table", index$5._extends({}, props, {
|
|
9026
9133
|
className: classes,
|
|
9027
9134
|
ref: ref
|
|
9028
9135
|
}));
|
|
@@ -9034,7 +9141,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9034
9141
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9035
9142
|
}
|
|
9036
9143
|
|
|
9037
|
-
return /*#__PURE__*/React__default
|
|
9144
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9038
9145
|
className: responsiveClass
|
|
9039
9146
|
}, table);
|
|
9040
9147
|
}
|
|
@@ -9042,7 +9149,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9042
9149
|
return table;
|
|
9043
9150
|
});
|
|
9044
9151
|
|
|
9045
|
-
var ToastContext = React__default
|
|
9152
|
+
var ToastContext = React__default.createContext({
|
|
9046
9153
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9047
9154
|
onClose: function onClose() {}
|
|
9048
9155
|
});
|
|
@@ -9051,13 +9158,13 @@ var defaultProps$C = {
|
|
|
9051
9158
|
closeLabel: 'Close',
|
|
9052
9159
|
closeButton: true
|
|
9053
9160
|
};
|
|
9054
|
-
var ToastHeader = React__default
|
|
9161
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9055
9162
|
var bsPrefix = _ref.bsPrefix,
|
|
9056
9163
|
closeLabel = _ref.closeLabel,
|
|
9057
9164
|
closeButton = _ref.closeButton,
|
|
9058
9165
|
className = _ref.className,
|
|
9059
9166
|
children = _ref.children,
|
|
9060
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9167
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9061
9168
|
|
|
9062
9169
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9063
9170
|
var context = React.useContext(ToastContext);
|
|
@@ -9066,11 +9173,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9066
9173
|
context.onClose(e);
|
|
9067
9174
|
}
|
|
9068
9175
|
});
|
|
9069
|
-
return /*#__PURE__*/React__default
|
|
9176
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9070
9177
|
ref: ref
|
|
9071
9178
|
}, props, {
|
|
9072
|
-
className: classnames(bsPrefix, className)
|
|
9073
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9179
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9180
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9074
9181
|
label: closeLabel,
|
|
9075
9182
|
onClick: handleClick,
|
|
9076
9183
|
className: "ml-2 mb-1",
|
|
@@ -9082,7 +9189,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9082
9189
|
|
|
9083
9190
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9084
9191
|
|
|
9085
|
-
var Toast = React__default
|
|
9192
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9086
9193
|
var bsPrefix = _ref.bsPrefix,
|
|
9087
9194
|
className = _ref.className,
|
|
9088
9195
|
children = _ref.children,
|
|
@@ -9097,7 +9204,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9097
9204
|
_ref$autohide = _ref.autohide,
|
|
9098
9205
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9099
9206
|
onClose = _ref.onClose,
|
|
9100
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9207
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9101
9208
|
|
|
9102
9209
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9103
9210
|
// timer in case these values change.
|
|
@@ -9125,16 +9232,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9125
9232
|
};
|
|
9126
9233
|
}, [onClose]);
|
|
9127
9234
|
var hasAnimation = !!(Transition && animation);
|
|
9128
|
-
var toast = /*#__PURE__*/React__default
|
|
9235
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9129
9236
|
ref: ref,
|
|
9130
|
-
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9237
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9131
9238
|
role: "alert",
|
|
9132
9239
|
"aria-live": "assertive",
|
|
9133
9240
|
"aria-atomic": "true"
|
|
9134
9241
|
}), children);
|
|
9135
|
-
return /*#__PURE__*/React__default
|
|
9242
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9136
9243
|
value: toastContext
|
|
9137
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9244
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9138
9245
|
in: show,
|
|
9139
9246
|
unmountOnExit: true
|
|
9140
9247
|
}, toast) : toast);
|
|
@@ -9149,7 +9256,7 @@ var noop$5 = function noop() {
|
|
|
9149
9256
|
return undefined;
|
|
9150
9257
|
};
|
|
9151
9258
|
|
|
9152
|
-
var ToggleButton = React__default
|
|
9259
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9153
9260
|
var children = _ref.children,
|
|
9154
9261
|
name = _ref.name,
|
|
9155
9262
|
className = _ref.className,
|
|
@@ -9159,7 +9266,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9159
9266
|
value = _ref.value,
|
|
9160
9267
|
disabled = _ref.disabled,
|
|
9161
9268
|
inputRef = _ref.inputRef,
|
|
9162
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9269
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9163
9270
|
|
|
9164
9271
|
var _useState = React.useState(false),
|
|
9165
9272
|
focused = _useState[0],
|
|
@@ -9171,13 +9278,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9171
9278
|
var handleBlur = React.useCallback(function (e) {
|
|
9172
9279
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9173
9280
|
}, []);
|
|
9174
|
-
return /*#__PURE__*/React__default
|
|
9281
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9175
9282
|
ref: ref,
|
|
9176
|
-
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9283
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9177
9284
|
type: undefined,
|
|
9178
9285
|
active: !!checked,
|
|
9179
9286
|
as: "label"
|
|
9180
|
-
}), /*#__PURE__*/React__default
|
|
9287
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9181
9288
|
name: name,
|
|
9182
9289
|
type: type,
|
|
9183
9290
|
value: value,
|
|
@@ -9193,9 +9300,10 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9193
9300
|
ToggleButton.displayName = 'ToggleButton';
|
|
9194
9301
|
|
|
9195
9302
|
var defaultProps$D = {
|
|
9196
|
-
type: 'radio'
|
|
9303
|
+
type: 'radio',
|
|
9304
|
+
vertical: false
|
|
9197
9305
|
};
|
|
9198
|
-
var ToggleButtonGroup = React__default
|
|
9306
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9199
9307
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9200
9308
|
value: 'onChange'
|
|
9201
9309
|
}),
|
|
@@ -9204,7 +9312,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9204
9312
|
name = _useUncontrolled.name,
|
|
9205
9313
|
value = _useUncontrolled.value,
|
|
9206
9314
|
onChange = _useUncontrolled.onChange,
|
|
9207
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9315
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9208
9316
|
|
|
9209
9317
|
var getValues = function getValues() {
|
|
9210
9318
|
return value == null ? [] : [].concat(value);
|
|
@@ -9233,7 +9341,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9233
9341
|
};
|
|
9234
9342
|
|
|
9235
9343
|
!(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;
|
|
9236
|
-
return /*#__PURE__*/React__default
|
|
9344
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9237
9345
|
ref: ref,
|
|
9238
9346
|
toggle: true
|
|
9239
9347
|
}), map(children, function (child) {
|
|
@@ -9246,7 +9354,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9246
9354
|
return handleToggle(childVal, e);
|
|
9247
9355
|
};
|
|
9248
9356
|
|
|
9249
|
-
return React__default
|
|
9357
|
+
return React__default.cloneElement(child, {
|
|
9250
9358
|
type: type,
|
|
9251
9359
|
name: child.name || name,
|
|
9252
9360
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9260,7 +9368,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9260
9368
|
var defaultProps$E = {
|
|
9261
9369
|
placement: 'right'
|
|
9262
9370
|
};
|
|
9263
|
-
var Tooltip = React__default
|
|
9371
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9264
9372
|
var bsPrefix = _ref.bsPrefix,
|
|
9265
9373
|
placement = _ref.placement,
|
|
9266
9374
|
className = _ref.className,
|
|
@@ -9269,29 +9377,29 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9269
9377
|
arrowProps = _ref.arrowProps,
|
|
9270
9378
|
_ = _ref.popper,
|
|
9271
9379
|
_2 = _ref.show,
|
|
9272
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9380
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9273
9381
|
|
|
9274
9382
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9275
9383
|
|
|
9276
9384
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9277
9385
|
primaryPlacement = _ref2[0];
|
|
9278
9386
|
|
|
9279
|
-
return /*#__PURE__*/React__default
|
|
9387
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9280
9388
|
ref: ref,
|
|
9281
9389
|
style: style,
|
|
9282
9390
|
role: "tooltip",
|
|
9283
9391
|
"x-placement": primaryPlacement,
|
|
9284
|
-
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9285
|
-
}, props), /*#__PURE__*/React__default
|
|
9392
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9393
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9286
9394
|
className: "arrow"
|
|
9287
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9395
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9288
9396
|
className: bsPrefix + "-inner"
|
|
9289
9397
|
}, children));
|
|
9290
9398
|
});
|
|
9291
9399
|
Tooltip.defaultProps = defaultProps$E;
|
|
9292
9400
|
Tooltip.displayName = 'Tooltip';
|
|
9293
9401
|
|
|
9294
|
-
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";
|
|
9402
|
+
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";
|
|
9295
9403
|
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" };
|
|
9296
9404
|
styleInject_es.styleInject(css);
|
|
9297
9405
|
|
|
@@ -9302,54 +9410,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9302
9410
|
client = props.client;
|
|
9303
9411
|
|
|
9304
9412
|
|
|
9305
|
-
return React__default
|
|
9413
|
+
return React__default.createElement(
|
|
9306
9414
|
'div',
|
|
9307
9415
|
{ className: styles.article },
|
|
9308
|
-
React__default
|
|
9416
|
+
React__default.createElement(
|
|
9309
9417
|
'a',
|
|
9310
9418
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9311
|
-
React__default
|
|
9419
|
+
React__default.createElement(
|
|
9312
9420
|
'div',
|
|
9313
9421
|
{ className: styles.thumb },
|
|
9314
|
-
React__default
|
|
9422
|
+
React__default.createElement(
|
|
9315
9423
|
'figure',
|
|
9316
9424
|
null,
|
|
9317
|
-
React__default
|
|
9318
|
-
index.LazyLoad,
|
|
9425
|
+
React__default.createElement(
|
|
9426
|
+
index$2.LazyLoad,
|
|
9319
9427
|
null,
|
|
9320
|
-
React__default
|
|
9428
|
+
React__default.createElement('img', {
|
|
9321
9429
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9322
9430
|
})
|
|
9323
9431
|
)
|
|
9324
9432
|
)
|
|
9325
9433
|
),
|
|
9326
|
-
React__default
|
|
9434
|
+
React__default.createElement(
|
|
9327
9435
|
'div',
|
|
9328
9436
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9329
|
-
React__default
|
|
9437
|
+
React__default.createElement(
|
|
9330
9438
|
'div',
|
|
9331
9439
|
{ className: styles.name },
|
|
9332
9440
|
data.name
|
|
9333
9441
|
),
|
|
9334
|
-
data.published && React__default
|
|
9442
|
+
data.published && React__default.createElement(
|
|
9335
9443
|
'p',
|
|
9336
9444
|
{ className: styles.published },
|
|
9337
9445
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9338
9446
|
),
|
|
9339
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9447
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9340
9448
|
'p',
|
|
9341
9449
|
{ className: styles.author },
|
|
9342
9450
|
'By ',
|
|
9343
|
-
React__default
|
|
9451
|
+
React__default.createElement(
|
|
9344
9452
|
'span',
|
|
9345
9453
|
null,
|
|
9346
9454
|
data.authorMapping.displayName
|
|
9347
9455
|
)
|
|
9348
9456
|
),
|
|
9349
|
-
data.description && React__default
|
|
9457
|
+
data.description && React__default.createElement(
|
|
9350
9458
|
'div',
|
|
9351
9459
|
{ className: 'media-series-desc' },
|
|
9352
|
-
React__default
|
|
9460
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9353
9461
|
)
|
|
9354
9462
|
)
|
|
9355
9463
|
)
|
|
@@ -9378,11 +9486,11 @@ var Filter = function Filter(_ref) {
|
|
|
9378
9486
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
9379
9487
|
grandChildData = _useState6[0],
|
|
9380
9488
|
setGrandChildData = _useState6[1];
|
|
9381
|
-
/*
|
|
9382
|
-
{parent: showAll,
|
|
9383
|
-
chidlren: show selected from parent,
|
|
9384
|
-
grandchildren: show selected from children
|
|
9385
|
-
}
|
|
9489
|
+
/*
|
|
9490
|
+
{parent: showAll,
|
|
9491
|
+
chidlren: show selected from parent,
|
|
9492
|
+
grandchildren: show selected from children
|
|
9493
|
+
}
|
|
9386
9494
|
*/
|
|
9387
9495
|
|
|
9388
9496
|
|
|
@@ -9446,13 +9554,13 @@ var Filter = function Filter(_ref) {
|
|
|
9446
9554
|
}
|
|
9447
9555
|
};
|
|
9448
9556
|
|
|
9449
|
-
return React__default
|
|
9557
|
+
return React__default.createElement(
|
|
9450
9558
|
'div',
|
|
9451
9559
|
{ className: 'flex-container' },
|
|
9452
|
-
parentData && React__default
|
|
9560
|
+
parentData && React__default.createElement(
|
|
9453
9561
|
DropdownButton,
|
|
9454
9562
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9455
|
-
React__default
|
|
9563
|
+
React__default.createElement(
|
|
9456
9564
|
Dropdown$1.Item,
|
|
9457
9565
|
{ onSelect: function onSelect() {
|
|
9458
9566
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9461,7 +9569,7 @@ var Filter = function Filter(_ref) {
|
|
|
9461
9569
|
),
|
|
9462
9570
|
parentData.data.map(function (docGroup) {
|
|
9463
9571
|
if (!docGroup._id) return null;
|
|
9464
|
-
return React__default
|
|
9572
|
+
return React__default.createElement(
|
|
9465
9573
|
Dropdown$1.Item,
|
|
9466
9574
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9467
9575
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9470,10 +9578,10 @@ var Filter = function Filter(_ref) {
|
|
|
9470
9578
|
);
|
|
9471
9579
|
})
|
|
9472
9580
|
),
|
|
9473
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9581
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9474
9582
|
DropdownButton,
|
|
9475
9583
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9476
|
-
React__default
|
|
9584
|
+
React__default.createElement(
|
|
9477
9585
|
Dropdown$1.Item,
|
|
9478
9586
|
{ onSelect: function onSelect() {
|
|
9479
9587
|
return handleFilterSelect({}, 'child');
|
|
@@ -9482,7 +9590,7 @@ var Filter = function Filter(_ref) {
|
|
|
9482
9590
|
),
|
|
9483
9591
|
childData.data.map(function (docGroup) {
|
|
9484
9592
|
if (!docGroup._id) return null;
|
|
9485
|
-
return React__default
|
|
9593
|
+
return React__default.createElement(
|
|
9486
9594
|
Dropdown$1.Item,
|
|
9487
9595
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9488
9596
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9491,10 +9599,10 @@ var Filter = function Filter(_ref) {
|
|
|
9491
9599
|
);
|
|
9492
9600
|
})
|
|
9493
9601
|
),
|
|
9494
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9602
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9495
9603
|
DropdownButton,
|
|
9496
9604
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9497
|
-
React__default
|
|
9605
|
+
React__default.createElement(
|
|
9498
9606
|
Dropdown$1.Item,
|
|
9499
9607
|
{ onSelect: function onSelect() {
|
|
9500
9608
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9503,7 +9611,7 @@ var Filter = function Filter(_ref) {
|
|
|
9503
9611
|
),
|
|
9504
9612
|
grandChildData.data.map(function (docGroup) {
|
|
9505
9613
|
if (!docGroup._id) return null;
|
|
9506
|
-
return React__default
|
|
9614
|
+
return React__default.createElement(
|
|
9507
9615
|
Dropdown$1.Item,
|
|
9508
9616
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9509
9617
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9512,7 +9620,7 @@ var Filter = function Filter(_ref) {
|
|
|
9512
9620
|
);
|
|
9513
9621
|
})
|
|
9514
9622
|
),
|
|
9515
|
-
React__default
|
|
9623
|
+
React__default.createElement(
|
|
9516
9624
|
'style',
|
|
9517
9625
|
{ jsx: 'true' },
|
|
9518
9626
|
'\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 '
|
|
@@ -9554,9 +9662,9 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9554
9662
|
}, [filterTopicID]);
|
|
9555
9663
|
|
|
9556
9664
|
var fetchFilteredData = function () {
|
|
9557
|
-
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
9665
|
+
var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee() {
|
|
9558
9666
|
var newParams, filterQuery, x, seriesQuery, newData;
|
|
9559
|
-
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
9667
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
|
|
9560
9668
|
while (1) {
|
|
9561
9669
|
switch (_context.prev = _context.next) {
|
|
9562
9670
|
case 0:
|
|
@@ -9602,27 +9710,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9602
9710
|
}();
|
|
9603
9711
|
|
|
9604
9712
|
if (props.statusCode === 404) {
|
|
9605
|
-
return React__default
|
|
9713
|
+
return React__default.createElement(
|
|
9606
9714
|
'div',
|
|
9607
9715
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9608
|
-
React__default
|
|
9716
|
+
React__default.createElement(
|
|
9609
9717
|
'h3',
|
|
9610
9718
|
null,
|
|
9611
9719
|
'404: Resource not found'
|
|
9612
9720
|
),
|
|
9613
|
-
React__default
|
|
9721
|
+
React__default.createElement(
|
|
9614
9722
|
'p',
|
|
9615
9723
|
null,
|
|
9616
9724
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9617
9725
|
),
|
|
9618
|
-
React__default
|
|
9726
|
+
React__default.createElement(
|
|
9619
9727
|
'p',
|
|
9620
9728
|
null,
|
|
9621
9729
|
'Click here to',
|
|
9622
|
-
React__default
|
|
9623
|
-
|
|
9730
|
+
React__default.createElement(
|
|
9731
|
+
Link,
|
|
9624
9732
|
{ href: '/' },
|
|
9625
|
-
React__default
|
|
9733
|
+
React__default.createElement(
|
|
9626
9734
|
'a',
|
|
9627
9735
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9628
9736
|
' return to homepage.'
|
|
@@ -9632,17 +9740,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9632
9740
|
);
|
|
9633
9741
|
}
|
|
9634
9742
|
|
|
9635
|
-
return React__default
|
|
9743
|
+
return React__default.createElement(
|
|
9636
9744
|
'div',
|
|
9637
9745
|
{ className: 'mb-5' },
|
|
9638
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9639
|
-
props.taxonomyFilter && props.taxonomyFilter && React__default
|
|
9746
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent.BlockContent, { blocks: props.docGroup.description, serializers: getSerializers.getSerializers(client) }),
|
|
9747
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9640
9748
|
'div',
|
|
9641
9749
|
{ className: '' },
|
|
9642
|
-
React__default
|
|
9643
|
-
React__default
|
|
9750
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9751
|
+
React__default.createElement('hr', null)
|
|
9644
9752
|
),
|
|
9645
|
-
seriesData && React__default
|
|
9753
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9646
9754
|
deck: MediaSeriesCard,
|
|
9647
9755
|
variant: 'left',
|
|
9648
9756
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9659,11 +9767,11 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9659
9767
|
};
|
|
9660
9768
|
|
|
9661
9769
|
MediaSeriesLanding.getInitialData = function () {
|
|
9662
|
-
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9770
|
+
var _ref3 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9663
9771
|
var _ref4;
|
|
9664
9772
|
|
|
9665
9773
|
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9666
|
-
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
9774
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee2$(_context2) {
|
|
9667
9775
|
while (1) {
|
|
9668
9776
|
switch (_context2.prev = _context2.next) {
|
|
9669
9777
|
case 0:
|
|
@@ -9746,7 +9854,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9746
9854
|
statusCode = 404;
|
|
9747
9855
|
}
|
|
9748
9856
|
|
|
9749
|
-
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9857
|
+
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty$1$1._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty$1$1._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9750
9858
|
|
|
9751
9859
|
case 25:
|
|
9752
9860
|
case 'end':
|