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