@mjhls/mjh-framework 1.0.841-dv → 1.0.842-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 +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-ad02bfab.js → ADInfeed-55587a4e.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-eb23fc9f.js → ADlgInfeed-5c3d8260.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -970
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +139 -192
- package/dist/cjs/AuthWrapper.js +259 -301
- 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 +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +80 -84
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- 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 +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +56 -59
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +57 -58
- package/dist/cjs/MediaSeriesLanding.js +847 -838
- 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 +1167 -72
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +18 -21
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +109 -113
- package/dist/cjs/QueueDeckExpanded.js +1110 -1087
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-8bbc989f.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- 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 +40 -44
- package/dist/cjs/VideoSeriesCard.js +23 -24
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +24 -25
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +200 -204
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-021d644c.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-c1d8b5a1.js → index-ac18d02c.js} +852 -875
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index.es-13533f24.js → index.es-9110add6.js} +8 -11
- 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 +60 -64
- package/dist/cjs/{inherits-0c7830c5.js → inherits-452ff02c.js} +1 -1
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-11ec04d2.js → main-02daeefe.js} +53 -85
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- 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 +8 -8
- package/dist/esm/AD300x250x600.js +8 -8
- package/dist/esm/AD728x90.js +9 -9
- package/dist/esm/ADFloatingFooter.js +10 -10
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +10 -10
- package/dist/esm/{ADInfeed-e8ab7008.js → ADInfeed-bb665cdc.js} +7 -7
- package/dist/esm/ADSkyscraper.js +10 -10
- package/dist/esm/ADSponsoredResources.js +10 -10
- package/dist/esm/ADWebcast.js +10 -10
- package/dist/esm/ADWelcome.js +14 -14
- package/dist/esm/{ADlgInfeed-882b23a8.js → ADlgInfeed-2897d78f.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +6 -6
- package/dist/esm/AdSlotsProvider.js +903 -11
- package/dist/esm/AlgoliaSearch.js +241 -368
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +21 -21
- package/dist/esm/ArticleSeriesLandingPage.js +18 -18
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +121 -170
- package/dist/esm/AuthWrapper.js +257 -298
- 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 +62 -62
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +18 -18
- package/dist/esm/Column3.js +31 -31
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +77 -77
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- package/dist/esm/ExternalResources.js +42 -42
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +173 -173
- 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 +35 -35
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +55 -57
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +17 -17
- package/dist/esm/MasterDeck.js +55 -55
- package/dist/esm/MediaSeriesLanding.js +573 -561
- 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 +1166 -71
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -19
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +96 -96
- package/dist/esm/QueueDeckExpanded.js +1102 -1079
- 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 +1 -1
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-a866bb21.js} +28 -28
- package/dist/esm/SideFooter.js +22 -22
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +17 -17
- package/dist/esm/TemplateNormal.js +32 -32
- 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 +33 -33
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +18 -18
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +183 -183
- 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-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +2 -2
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/getRootDocGroup.js +1 -1
- package/dist/esm/getSerializers.js +12 -12
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- 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-1fd83450.js → index-8dbb97f3.js} +810 -826
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-7dda2f0a.js → index.es-29c1cef5.js} +6 -8
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +53 -54
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-aef58dbc.js → main-e4a934b2.js} +50 -81
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- 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,33 +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 = require('./extends-0a918631.js');
|
|
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');
|
|
21
|
+
var React__default = _interopDefault(React);
|
|
19
22
|
require('./events-1b438fe7.js');
|
|
20
|
-
require('./index-
|
|
23
|
+
require('./index-98e01cb9.js');
|
|
21
24
|
var PropTypes = require('prop-types');
|
|
25
|
+
var PropTypes__default = _interopDefault(PropTypes);
|
|
22
26
|
require('react-bootstrap/Container');
|
|
23
27
|
require('react-bootstrap/Row');
|
|
24
28
|
require('react-bootstrap/Col');
|
|
25
29
|
require('react-bootstrap/Card');
|
|
26
|
-
var moment = require('./moment-
|
|
30
|
+
var moment = require('./moment-575fe24c.js');
|
|
27
31
|
require('next/router');
|
|
28
32
|
require('./isSymbol-04666465.js');
|
|
29
33
|
require('./debounce-529c8d06.js');
|
|
30
34
|
require('./toNumber-36d1e7e5.js');
|
|
31
|
-
require('./index.es-
|
|
32
|
-
var ReactDOM = require('react-dom');
|
|
33
|
-
require('./visibility-sensor-
|
|
34
|
-
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');
|
|
35
39
|
var urlFor = require('./urlFor.js');
|
|
36
|
-
var index$
|
|
37
|
-
require('./main-
|
|
40
|
+
var index$2 = require('./index-96b3db50.js');
|
|
41
|
+
require('./main-02daeefe.js');
|
|
38
42
|
require('./entities-310b46ee.js');
|
|
39
43
|
var slicedToArray = require('./slicedToArray-8f385299.js');
|
|
40
44
|
require('./stringify-7c5aff47.js');
|
|
@@ -42,20 +46,20 @@ var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
|
42
46
|
require('./Segment.js');
|
|
43
47
|
require('./Beam.js');
|
|
44
48
|
require('./AdSlot.js');
|
|
45
|
-
require('./ADInfeed-
|
|
46
|
-
require('./lodash-
|
|
47
|
-
require('./ADlgInfeed-
|
|
49
|
+
require('./ADInfeed-55587a4e.js');
|
|
50
|
+
require('./lodash-fc2922d0.js');
|
|
51
|
+
require('./ADlgInfeed-5c3d8260.js');
|
|
48
52
|
require('react-bootstrap/Button');
|
|
49
|
-
var BlockContent = require('./BlockContent-
|
|
53
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
50
54
|
require('./index-187c967e.js');
|
|
51
55
|
require('./smoothscroll-5054361f.js');
|
|
52
56
|
require('./GroupDeck.js');
|
|
53
57
|
require('react-bootstrap');
|
|
54
58
|
require('./iconBase-68959171.js');
|
|
55
|
-
require('./index.esm-
|
|
56
|
-
var getSerializers = require('./index-
|
|
59
|
+
require('./index.esm-90433435.js');
|
|
60
|
+
var getSerializers = require('./index-ac18d02c.js');
|
|
57
61
|
require('./util-f2c1b65b.js');
|
|
58
|
-
require('./brightcove-react-player-loader.es-
|
|
62
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
59
63
|
require('next/head');
|
|
60
64
|
require('react-share');
|
|
61
65
|
require('./SocialShare.js');
|
|
@@ -63,17 +67,10 @@ require('./_object-to-array-5762f850.js');
|
|
|
63
67
|
require('react-bootstrap/Pagination');
|
|
64
68
|
require('react-bootstrap/Figure');
|
|
65
69
|
var MasterDeck = require('./MasterDeck.js');
|
|
66
|
-
var defineProperty = require('./defineProperty-55548b25.js');
|
|
67
|
-
var index = require('./index-
|
|
70
|
+
var defineProperty$1$1 = require('./defineProperty-55548b25.js');
|
|
71
|
+
var index$5 = require('./index-e2e62963.js');
|
|
68
72
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
69
|
-
var Link = require('next/link');
|
|
70
|
-
|
|
71
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
72
|
-
|
|
73
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
74
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
75
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
76
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
73
|
+
var Link = _interopDefault(require('next/link'));
|
|
77
74
|
|
|
78
75
|
/**
|
|
79
76
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -168,7 +165,7 @@ function useUncontrolled(props, config) {
|
|
|
168
165
|
var _ref = result,
|
|
169
166
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
170
167
|
propsValue = _ref[fieldName],
|
|
171
|
-
rest = index._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
168
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
172
169
|
|
|
173
170
|
var handlerName = config[fieldName];
|
|
174
171
|
|
|
@@ -176,17 +173,17 @@ function useUncontrolled(props, config) {
|
|
|
176
173
|
value = _useUncontrolledProp[0],
|
|
177
174
|
handler = _useUncontrolledProp[1];
|
|
178
175
|
|
|
179
|
-
return index._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
176
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
180
177
|
}, props);
|
|
181
178
|
}
|
|
182
179
|
|
|
183
180
|
function _inheritsLoose(subClass, superClass) {
|
|
184
181
|
subClass.prototype = Object.create(superClass.prototype);
|
|
185
182
|
subClass.prototype.constructor = subClass;
|
|
186
|
-
|
|
183
|
+
subClass.__proto__ = superClass;
|
|
187
184
|
}
|
|
188
185
|
|
|
189
|
-
var ThemeContext = React__default
|
|
186
|
+
var ThemeContext = React__default.createContext({});
|
|
190
187
|
var Consumer = ThemeContext.Consumer,
|
|
191
188
|
Provider = ThemeContext.Provider;
|
|
192
189
|
|
|
@@ -195,7 +192,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
195
192
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
196
193
|
}
|
|
197
194
|
|
|
198
|
-
var SelectableContext = React__default
|
|
195
|
+
var SelectableContext = React__default.createContext(null);
|
|
199
196
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
200
197
|
if (href === void 0) {
|
|
201
198
|
href = null;
|
|
@@ -205,7 +202,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
205
202
|
return href || null;
|
|
206
203
|
};
|
|
207
204
|
|
|
208
|
-
var context = React__default
|
|
205
|
+
var context = React__default.createContext(null);
|
|
209
206
|
context.displayName = 'AccordionContext';
|
|
210
207
|
|
|
211
208
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -221,13 +218,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
221
218
|
if (onClick) onClick(e);
|
|
222
219
|
};
|
|
223
220
|
}
|
|
224
|
-
var AccordionToggle = React__default
|
|
221
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
225
222
|
var _ref$as = _ref.as,
|
|
226
223
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
227
224
|
children = _ref.children,
|
|
228
225
|
eventKey = _ref.eventKey,
|
|
229
226
|
onClick = _ref.onClick,
|
|
230
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
227
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
231
228
|
|
|
232
229
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
233
230
|
|
|
@@ -235,7 +232,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
235
232
|
props.type = 'button';
|
|
236
233
|
}
|
|
237
234
|
|
|
238
|
-
return /*#__PURE__*/React__default
|
|
235
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
239
236
|
ref: ref,
|
|
240
237
|
onClick: accordionOnClick
|
|
241
238
|
}, props), children);
|
|
@@ -414,25 +411,25 @@ var config = {
|
|
|
414
411
|
disabled: false
|
|
415
412
|
};
|
|
416
413
|
|
|
417
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
418
|
-
enter: PropTypes__default
|
|
419
|
-
exit: PropTypes__default
|
|
420
|
-
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
|
|
421
418
|
}).isRequired]) : null;
|
|
422
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
423
|
-
enter: PropTypes__default
|
|
424
|
-
exit: PropTypes__default
|
|
425
|
-
active: PropTypes__default
|
|
426
|
-
}), PropTypes__default
|
|
427
|
-
enter: PropTypes__default
|
|
428
|
-
enterDone: PropTypes__default
|
|
429
|
-
enterActive: PropTypes__default
|
|
430
|
-
exit: PropTypes__default
|
|
431
|
-
exitDone: PropTypes__default
|
|
432
|
-
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
|
|
433
430
|
})]) : null;
|
|
434
431
|
|
|
435
|
-
var TransitionGroupContext = React__default
|
|
432
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
436
433
|
|
|
437
434
|
var UNMOUNTED = 'unmounted';
|
|
438
435
|
var EXITED = 'exited';
|
|
@@ -670,7 +667,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
670
667
|
var enter = this.props.enter;
|
|
671
668
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
672
669
|
|
|
673
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
670
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
674
671
|
maybeNode = _ref2[0],
|
|
675
672
|
maybeAppearing = _ref2[1];
|
|
676
673
|
|
|
@@ -708,7 +705,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
708
705
|
|
|
709
706
|
var exit = this.props.exit;
|
|
710
707
|
var timeouts = this.getTimeouts();
|
|
711
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
708
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
712
709
|
|
|
713
710
|
if (!exit || config.disabled) {
|
|
714
711
|
this.safeSetState({
|
|
@@ -772,7 +769,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
772
769
|
|
|
773
770
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
774
771
|
this.setNextCallback(handler);
|
|
775
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
772
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
776
773
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
777
774
|
|
|
778
775
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -817,19 +814,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
817
814
|
_onExiting = _this$props.onExiting,
|
|
818
815
|
_onExited = _this$props.onExited,
|
|
819
816
|
_nodeRef = _this$props.nodeRef,
|
|
820
|
-
childProps = index._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"]);
|
|
821
818
|
|
|
822
819
|
return (
|
|
823
820
|
/*#__PURE__*/
|
|
824
821
|
// allows for nested Transitions
|
|
825
|
-
React__default
|
|
822
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
826
823
|
value: null
|
|
827
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
824
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
828
825
|
);
|
|
829
826
|
};
|
|
830
827
|
|
|
831
828
|
return Transition;
|
|
832
|
-
}(React__default
|
|
829
|
+
}(React__default.Component);
|
|
833
830
|
|
|
834
831
|
Transition.contextType = TransitionGroupContext;
|
|
835
832
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -844,8 +841,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
844
841
|
* (see
|
|
845
842
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
846
843
|
*/
|
|
847
|
-
nodeRef: PropTypes__default
|
|
848
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
844
|
+
nodeRef: PropTypes__default.shape({
|
|
845
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
849
846
|
}),
|
|
850
847
|
|
|
851
848
|
/**
|
|
@@ -862,12 +859,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
862
859
|
* </Transition>
|
|
863
860
|
* ```
|
|
864
861
|
*/
|
|
865
|
-
children: PropTypes__default
|
|
862
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
866
863
|
|
|
867
864
|
/**
|
|
868
865
|
* Show the component; triggers the enter or exit states
|
|
869
866
|
*/
|
|
870
|
-
in: PropTypes__default
|
|
867
|
+
in: PropTypes__default.bool,
|
|
871
868
|
|
|
872
869
|
/**
|
|
873
870
|
* By default the child component is mounted immediately along with
|
|
@@ -875,13 +872,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
875
872
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
876
873
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
877
874
|
*/
|
|
878
|
-
mountOnEnter: PropTypes__default
|
|
875
|
+
mountOnEnter: PropTypes__default.bool,
|
|
879
876
|
|
|
880
877
|
/**
|
|
881
878
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
882
879
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
883
880
|
*/
|
|
884
|
-
unmountOnExit: PropTypes__default
|
|
881
|
+
unmountOnExit: PropTypes__default.bool,
|
|
885
882
|
|
|
886
883
|
/**
|
|
887
884
|
* By default the child component does not perform the enter transition when
|
|
@@ -894,17 +891,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
894
891
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
895
892
|
* > differently.
|
|
896
893
|
*/
|
|
897
|
-
appear: PropTypes__default
|
|
894
|
+
appear: PropTypes__default.bool,
|
|
898
895
|
|
|
899
896
|
/**
|
|
900
897
|
* Enable or disable enter transitions.
|
|
901
898
|
*/
|
|
902
|
-
enter: PropTypes__default
|
|
899
|
+
enter: PropTypes__default.bool,
|
|
903
900
|
|
|
904
901
|
/**
|
|
905
902
|
* Enable or disable exit transitions.
|
|
906
903
|
*/
|
|
907
|
-
exit: PropTypes__default
|
|
904
|
+
exit: PropTypes__default.bool,
|
|
908
905
|
|
|
909
906
|
/**
|
|
910
907
|
* The duration of the transition, in milliseconds.
|
|
@@ -957,7 +954,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
957
954
|
* }}
|
|
958
955
|
* ```
|
|
959
956
|
*/
|
|
960
|
-
addEndListener: PropTypes__default
|
|
957
|
+
addEndListener: PropTypes__default.func,
|
|
961
958
|
|
|
962
959
|
/**
|
|
963
960
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -967,7 +964,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
967
964
|
*
|
|
968
965
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
969
966
|
*/
|
|
970
|
-
onEnter: PropTypes__default
|
|
967
|
+
onEnter: PropTypes__default.func,
|
|
971
968
|
|
|
972
969
|
/**
|
|
973
970
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -977,7 +974,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
977
974
|
*
|
|
978
975
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
979
976
|
*/
|
|
980
|
-
onEntering: PropTypes__default
|
|
977
|
+
onEntering: PropTypes__default.func,
|
|
981
978
|
|
|
982
979
|
/**
|
|
983
980
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -987,7 +984,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
987
984
|
*
|
|
988
985
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
989
986
|
*/
|
|
990
|
-
onEntered: PropTypes__default
|
|
987
|
+
onEntered: PropTypes__default.func,
|
|
991
988
|
|
|
992
989
|
/**
|
|
993
990
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -996,7 +993,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
996
993
|
*
|
|
997
994
|
* @type Function(node: HtmlElement) -> void
|
|
998
995
|
*/
|
|
999
|
-
onExit: PropTypes__default
|
|
996
|
+
onExit: PropTypes__default.func,
|
|
1000
997
|
|
|
1001
998
|
/**
|
|
1002
999
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1005,7 +1002,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1005
1002
|
*
|
|
1006
1003
|
* @type Function(node: HtmlElement) -> void
|
|
1007
1004
|
*/
|
|
1008
|
-
onExiting: PropTypes__default
|
|
1005
|
+
onExiting: PropTypes__default.func,
|
|
1009
1006
|
|
|
1010
1007
|
/**
|
|
1011
1008
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1014,7 +1011,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1014
1011
|
*
|
|
1015
1012
|
* @type Function(node: HtmlElement) -> void
|
|
1016
1013
|
*/
|
|
1017
|
-
onExited: PropTypes__default
|
|
1014
|
+
onExited: PropTypes__default.func
|
|
1018
1015
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1019
1016
|
|
|
1020
1017
|
function noop() {}
|
|
@@ -1105,7 +1102,7 @@ var defaultProps = {
|
|
|
1105
1102
|
appear: false,
|
|
1106
1103
|
getDimensionValue: getDefaultDimensionValue
|
|
1107
1104
|
};
|
|
1108
|
-
var Collapse = React__default
|
|
1105
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1109
1106
|
var onEnter = _ref.onEnter,
|
|
1110
1107
|
onEntering = _ref.onEntering,
|
|
1111
1108
|
onEntered = _ref.onEntered,
|
|
@@ -1117,7 +1114,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1117
1114
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1118
1115
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1119
1116
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1120
|
-
props = index._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"]);
|
|
1121
1118
|
|
|
1122
1119
|
/* Compute dimension */
|
|
1123
1120
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1152,8 +1149,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1152
1149
|
elem.style[computedDimension] = null;
|
|
1153
1150
|
}, onExiting);
|
|
1154
1151
|
}, [computedDimension, onExiting]);
|
|
1155
|
-
return /*#__PURE__*/React__default
|
|
1156
|
-
, index._extends({
|
|
1152
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1153
|
+
, index$5._extends({
|
|
1157
1154
|
ref: ref,
|
|
1158
1155
|
addEndListener: transitionEnd
|
|
1159
1156
|
}, props, {
|
|
@@ -1164,8 +1161,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1164
1161
|
onExit: handleExit,
|
|
1165
1162
|
onExiting: handleExiting
|
|
1166
1163
|
}), function (state, innerProps) {
|
|
1167
|
-
return React__default
|
|
1168
|
-
className: index.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')
|
|
1169
1166
|
}));
|
|
1170
1167
|
});
|
|
1171
1168
|
}); // @ts-ignore
|
|
@@ -1173,24 +1170,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1173
1170
|
// @ts-ignore
|
|
1174
1171
|
Collapse.defaultProps = defaultProps;
|
|
1175
1172
|
|
|
1176
|
-
var AccordionCollapse = React__default
|
|
1173
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1177
1174
|
var children = _ref.children,
|
|
1178
1175
|
eventKey = _ref.eventKey,
|
|
1179
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1176
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1180
1177
|
|
|
1181
1178
|
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1182
1179
|
// from collapsing the accordion when clicked.
|
|
1183
1180
|
|
|
1184
|
-
return /*#__PURE__*/React__default
|
|
1181
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1185
1182
|
value: null
|
|
1186
|
-
}, /*#__PURE__*/React__default
|
|
1183
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1187
1184
|
ref: ref,
|
|
1188
1185
|
in: contextEventKey === eventKey
|
|
1189
|
-
}, props), /*#__PURE__*/React__default
|
|
1186
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1190
1187
|
});
|
|
1191
1188
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1192
1189
|
|
|
1193
|
-
var Accordion = React__default
|
|
1190
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1194
1191
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1195
1192
|
activeKey: 'onSelect'
|
|
1196
1193
|
}),
|
|
@@ -1201,14 +1198,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1201
1198
|
children = _useUncontrolled.children,
|
|
1202
1199
|
className = _useUncontrolled.className,
|
|
1203
1200
|
onSelect = _useUncontrolled.onSelect,
|
|
1204
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1201
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1205
1202
|
|
|
1206
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1207
|
-
return /*#__PURE__*/React__default
|
|
1203
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1204
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1208
1205
|
value: activeKey || null
|
|
1209
|
-
}, /*#__PURE__*/React__default
|
|
1206
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1210
1207
|
value: onSelect || null
|
|
1211
|
-
}, /*#__PURE__*/React__default
|
|
1208
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1212
1209
|
ref: ref
|
|
1213
1210
|
}, controlledProps, {
|
|
1214
1211
|
className: finalClassName
|
|
@@ -1252,23 +1249,23 @@ var defaultProps$1 = {
|
|
|
1252
1249
|
appear: false
|
|
1253
1250
|
};
|
|
1254
1251
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1255
|
-
var Fade = React__default
|
|
1252
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1256
1253
|
var className = _ref.className,
|
|
1257
1254
|
children = _ref.children,
|
|
1258
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1255
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1259
1256
|
|
|
1260
1257
|
var handleEnter = React.useCallback(function (node) {
|
|
1261
1258
|
triggerBrowserReflow(node);
|
|
1262
1259
|
if (props.onEnter) props.onEnter(node);
|
|
1263
1260
|
}, [props]);
|
|
1264
|
-
return /*#__PURE__*/React__default
|
|
1261
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1265
1262
|
ref: ref,
|
|
1266
1263
|
addEndListener: transitionEnd
|
|
1267
1264
|
}, props, {
|
|
1268
1265
|
onEnter: handleEnter
|
|
1269
1266
|
}), function (status, innerProps) {
|
|
1270
|
-
return React__default
|
|
1271
|
-
className: index.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])
|
|
1272
1269
|
}));
|
|
1273
1270
|
});
|
|
1274
1271
|
});
|
|
@@ -1276,26 +1273,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1276
1273
|
Fade.displayName = 'Fade';
|
|
1277
1274
|
|
|
1278
1275
|
var propTypes = {
|
|
1279
|
-
label: PropTypes__default
|
|
1280
|
-
onClick: PropTypes__default
|
|
1276
|
+
label: PropTypes__default.string.isRequired,
|
|
1277
|
+
onClick: PropTypes__default.func
|
|
1281
1278
|
};
|
|
1282
1279
|
var defaultProps$2 = {
|
|
1283
1280
|
label: 'Close'
|
|
1284
1281
|
};
|
|
1285
|
-
var CloseButton = React__default
|
|
1282
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1286
1283
|
var label = _ref.label,
|
|
1287
1284
|
onClick = _ref.onClick,
|
|
1288
1285
|
className = _ref.className,
|
|
1289
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1286
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1290
1287
|
|
|
1291
|
-
return /*#__PURE__*/React__default
|
|
1288
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1292
1289
|
ref: ref,
|
|
1293
1290
|
type: "button",
|
|
1294
|
-
className: index.classnames('close', className),
|
|
1291
|
+
className: index$5.classnames('close', className),
|
|
1295
1292
|
onClick: onClick
|
|
1296
|
-
}, props), /*#__PURE__*/React__default
|
|
1293
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1297
1294
|
"aria-hidden": "true"
|
|
1298
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1295
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1299
1296
|
className: "sr-only"
|
|
1300
1297
|
}, label));
|
|
1301
1298
|
});
|
|
@@ -1304,10 +1301,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1304
1301
|
CloseButton.defaultProps = defaultProps$2;
|
|
1305
1302
|
|
|
1306
1303
|
var divWithClassName = (function (className) {
|
|
1307
|
-
return React__default
|
|
1308
|
-
return /*#__PURE__*/React__default
|
|
1304
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1305
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1309
1306
|
ref: ref,
|
|
1310
|
-
className: index.classnames(p.className, className)
|
|
1307
|
+
className: index$5.classnames(p.className, className)
|
|
1311
1308
|
}));
|
|
1312
1309
|
});
|
|
1313
1310
|
});
|
|
@@ -1331,17 +1328,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1331
1328
|
Component = _ref.Component,
|
|
1332
1329
|
defaultProps = _ref.defaultProps;
|
|
1333
1330
|
|
|
1334
|
-
var BsComponent = React__default
|
|
1331
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1335
1332
|
var className = _ref2.className,
|
|
1336
1333
|
bsPrefix = _ref2.bsPrefix,
|
|
1337
1334
|
_ref2$as = _ref2.as,
|
|
1338
1335
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1339
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1336
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1340
1337
|
|
|
1341
1338
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1342
|
-
return /*#__PURE__*/React__default
|
|
1339
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1343
1340
|
ref: ref,
|
|
1344
|
-
className: index.classnames(className, resolvedPrefix)
|
|
1341
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1345
1342
|
}, props));
|
|
1346
1343
|
});
|
|
1347
1344
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1361,12 +1358,12 @@ function isTrivialHref(href) {
|
|
|
1361
1358
|
*/
|
|
1362
1359
|
|
|
1363
1360
|
|
|
1364
|
-
var SafeAnchor = React__default
|
|
1361
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1365
1362
|
var _ref$as = _ref.as,
|
|
1366
1363
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1367
1364
|
disabled = _ref.disabled,
|
|
1368
1365
|
onKeyDown = _ref.onKeyDown,
|
|
1369
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1366
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1370
1367
|
|
|
1371
1368
|
var handleClick = function handleClick(event) {
|
|
1372
1369
|
var href = props.href,
|
|
@@ -1405,7 +1402,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1405
1402
|
props['aria-disabled'] = true;
|
|
1406
1403
|
}
|
|
1407
1404
|
|
|
1408
|
-
return /*#__PURE__*/React__default
|
|
1405
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1409
1406
|
ref: ref
|
|
1410
1407
|
}, props, {
|
|
1411
1408
|
onClick: handleClick,
|
|
@@ -1427,7 +1424,7 @@ var defaultProps$3 = {
|
|
|
1427
1424
|
transition: Fade,
|
|
1428
1425
|
closeLabel: 'Close alert'
|
|
1429
1426
|
};
|
|
1430
|
-
var Alert = React__default
|
|
1427
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1431
1428
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1432
1429
|
show: 'onClose'
|
|
1433
1430
|
}),
|
|
@@ -1440,7 +1437,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1440
1437
|
onClose = _useUncontrolled.onClose,
|
|
1441
1438
|
dismissible = _useUncontrolled.dismissible,
|
|
1442
1439
|
transition = _useUncontrolled.transition,
|
|
1443
|
-
props = index._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"]);
|
|
1444
1441
|
|
|
1445
1442
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1446
1443
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1449,17 +1446,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1449
1446
|
}
|
|
1450
1447
|
});
|
|
1451
1448
|
var Transition = transition === true ? Fade : transition;
|
|
1452
|
-
var alert = /*#__PURE__*/React__default
|
|
1449
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1453
1450
|
role: "alert"
|
|
1454
1451
|
}, Transition ? props : undefined, {
|
|
1455
1452
|
ref: ref,
|
|
1456
|
-
className: index.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1457
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1453
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1454
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1458
1455
|
onClick: handleClose,
|
|
1459
1456
|
label: closeLabel
|
|
1460
1457
|
}), children);
|
|
1461
1458
|
if (!Transition) return show ? alert : null;
|
|
1462
|
-
return /*#__PURE__*/React__default
|
|
1459
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1463
1460
|
unmountOnExit: true
|
|
1464
1461
|
}, props, {
|
|
1465
1462
|
ref: undefined,
|
|
@@ -1474,20 +1471,20 @@ Alert.Heading = AlertHeading;
|
|
|
1474
1471
|
var defaultProps$4 = {
|
|
1475
1472
|
pill: false
|
|
1476
1473
|
};
|
|
1477
|
-
var Badge = React__default
|
|
1474
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1478
1475
|
var bsPrefix = _ref.bsPrefix,
|
|
1479
1476
|
variant = _ref.variant,
|
|
1480
1477
|
pill = _ref.pill,
|
|
1481
1478
|
className = _ref.className,
|
|
1482
1479
|
_ref$as = _ref.as,
|
|
1483
1480
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1484
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1481
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1485
1482
|
|
|
1486
1483
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1487
|
-
return /*#__PURE__*/React__default
|
|
1484
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1488
1485
|
ref: ref
|
|
1489
1486
|
}, props, {
|
|
1490
|
-
className: index.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1487
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1491
1488
|
}));
|
|
1492
1489
|
});
|
|
1493
1490
|
Badge.displayName = 'Badge';
|
|
@@ -1497,7 +1494,7 @@ var defaultProps$5 = {
|
|
|
1497
1494
|
active: false,
|
|
1498
1495
|
linkProps: {}
|
|
1499
1496
|
};
|
|
1500
|
-
var BreadcrumbItem = React__default
|
|
1497
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1501
1498
|
var bsPrefix = _ref.bsPrefix,
|
|
1502
1499
|
active = _ref.active,
|
|
1503
1500
|
children = _ref.children,
|
|
@@ -1510,17 +1507,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1510
1507
|
href = _ref.href,
|
|
1511
1508
|
title = _ref.title,
|
|
1512
1509
|
target = _ref.target,
|
|
1513
|
-
props = index._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"]);
|
|
1514
1511
|
|
|
1515
1512
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1516
|
-
return /*#__PURE__*/React__default
|
|
1513
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1517
1514
|
ref: ref
|
|
1518
1515
|
}, props, {
|
|
1519
|
-
className: index.classnames(prefix, className, {
|
|
1516
|
+
className: index$5.classnames(prefix, className, {
|
|
1520
1517
|
active: active
|
|
1521
1518
|
}),
|
|
1522
1519
|
"aria-current": active ? 'page' : undefined
|
|
1523
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1520
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1524
1521
|
href: href,
|
|
1525
1522
|
title: title,
|
|
1526
1523
|
target: target
|
|
@@ -1533,7 +1530,7 @@ var defaultProps$6 = {
|
|
|
1533
1530
|
label: 'breadcrumb',
|
|
1534
1531
|
listProps: {}
|
|
1535
1532
|
};
|
|
1536
|
-
var Breadcrumb = React__default
|
|
1533
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1537
1534
|
var bsPrefix = _ref.bsPrefix,
|
|
1538
1535
|
className = _ref.className,
|
|
1539
1536
|
listProps = _ref.listProps,
|
|
@@ -1541,15 +1538,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1541
1538
|
label = _ref.label,
|
|
1542
1539
|
_ref$as = _ref.as,
|
|
1543
1540
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1544
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1541
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1545
1542
|
|
|
1546
1543
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1547
|
-
return /*#__PURE__*/React__default
|
|
1544
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1548
1545
|
"aria-label": label,
|
|
1549
1546
|
className: className,
|
|
1550
1547
|
ref: ref
|
|
1551
|
-
}, props), /*#__PURE__*/React__default
|
|
1552
|
-
className: index.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)
|
|
1553
1550
|
}), children));
|
|
1554
1551
|
});
|
|
1555
1552
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1561,7 +1558,7 @@ var defaultProps$7 = {
|
|
|
1561
1558
|
active: false,
|
|
1562
1559
|
disabled: false
|
|
1563
1560
|
};
|
|
1564
|
-
var Button = React__default
|
|
1561
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1565
1562
|
var bsPrefix = _ref.bsPrefix,
|
|
1566
1563
|
variant = _ref.variant,
|
|
1567
1564
|
size = _ref.size,
|
|
@@ -1570,16 +1567,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1570
1567
|
block = _ref.block,
|
|
1571
1568
|
type = _ref.type,
|
|
1572
1569
|
as = _ref.as,
|
|
1573
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1570
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1574
1571
|
|
|
1575
1572
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1576
|
-
var classes = index.classnames(className, prefix, active && 'active', variant && 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);
|
|
1577
1574
|
|
|
1578
1575
|
if (props.href) {
|
|
1579
|
-
return /*#__PURE__*/React__default
|
|
1576
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1580
1577
|
as: as,
|
|
1581
1578
|
ref: ref,
|
|
1582
|
-
className: index.classnames(classes, props.disabled && 'disabled')
|
|
1579
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1583
1580
|
}));
|
|
1584
1581
|
}
|
|
1585
1582
|
|
|
@@ -1594,7 +1591,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1594
1591
|
}
|
|
1595
1592
|
|
|
1596
1593
|
var Component = as || 'button';
|
|
1597
|
-
return /*#__PURE__*/React__default
|
|
1594
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1598
1595
|
className: classes
|
|
1599
1596
|
}));
|
|
1600
1597
|
});
|
|
@@ -1606,7 +1603,7 @@ var defaultProps$8 = {
|
|
|
1606
1603
|
toggle: false,
|
|
1607
1604
|
role: 'group'
|
|
1608
1605
|
};
|
|
1609
|
-
var ButtonGroup = React__default
|
|
1606
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1610
1607
|
var bsPrefix = _ref.bsPrefix,
|
|
1611
1608
|
size = _ref.size,
|
|
1612
1609
|
toggle = _ref.toggle,
|
|
@@ -1614,14 +1611,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1614
1611
|
className = _ref.className,
|
|
1615
1612
|
_ref$as = _ref.as,
|
|
1616
1613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1617
|
-
rest = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1614
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1618
1615
|
|
|
1619
1616
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1620
1617
|
var baseClass = prefix;
|
|
1621
1618
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1622
|
-
return /*#__PURE__*/React__default
|
|
1619
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1623
1620
|
ref: ref,
|
|
1624
|
-
className: index.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1621
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1625
1622
|
}));
|
|
1626
1623
|
});
|
|
1627
1624
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1630,39 +1627,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1630
1627
|
var defaultProps$9 = {
|
|
1631
1628
|
role: 'toolbar'
|
|
1632
1629
|
};
|
|
1633
|
-
var ButtonToolbar = React__default
|
|
1630
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1634
1631
|
var bsPrefix = _ref.bsPrefix,
|
|
1635
1632
|
className = _ref.className,
|
|
1636
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1633
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1637
1634
|
|
|
1638
1635
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1639
|
-
return /*#__PURE__*/React__default
|
|
1636
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1640
1637
|
ref: ref,
|
|
1641
|
-
className: index.classnames(className, prefix)
|
|
1638
|
+
className: index$5.classnames(className, prefix)
|
|
1642
1639
|
}));
|
|
1643
1640
|
});
|
|
1644
1641
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1645
1642
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1646
1643
|
|
|
1647
|
-
var context$1 = React__default
|
|
1644
|
+
var context$1 = React__default.createContext(null);
|
|
1648
1645
|
context$1.displayName = 'CardContext';
|
|
1649
1646
|
|
|
1650
1647
|
var defaultProps$a = {
|
|
1651
1648
|
variant: null
|
|
1652
1649
|
};
|
|
1653
|
-
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
|
|
1654
1651
|
function (_ref, ref) {
|
|
1655
1652
|
var bsPrefix = _ref.bsPrefix,
|
|
1656
1653
|
className = _ref.className,
|
|
1657
1654
|
variant = _ref.variant,
|
|
1658
1655
|
_ref$as = _ref.as,
|
|
1659
1656
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1660
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1657
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1661
1658
|
|
|
1662
1659
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1663
|
-
return /*#__PURE__*/React__default
|
|
1660
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1664
1661
|
ref: ref,
|
|
1665
|
-
className: index.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1662
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1666
1663
|
}, props));
|
|
1667
1664
|
});
|
|
1668
1665
|
CardImg.displayName = 'CardImg';
|
|
@@ -1689,7 +1686,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1689
1686
|
var defaultProps$b = {
|
|
1690
1687
|
body: false
|
|
1691
1688
|
};
|
|
1692
|
-
var Card = React__default
|
|
1689
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1693
1690
|
var bsPrefix = _ref.bsPrefix,
|
|
1694
1691
|
className = _ref.className,
|
|
1695
1692
|
bg = _ref.bg,
|
|
@@ -1699,7 +1696,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1699
1696
|
children = _ref.children,
|
|
1700
1697
|
_ref$as = _ref.as,
|
|
1701
1698
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1702
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1699
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1703
1700
|
|
|
1704
1701
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1705
1702
|
var cardContext = React.useMemo(function () {
|
|
@@ -1707,16 +1704,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1707
1704
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1708
1705
|
};
|
|
1709
1706
|
}, [prefix]);
|
|
1710
|
-
return /*#__PURE__*/React__default
|
|
1707
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1711
1708
|
value: cardContext
|
|
1712
|
-
}, /*#__PURE__*/React__default
|
|
1709
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1713
1710
|
ref: ref
|
|
1714
1711
|
}, props, {
|
|
1715
|
-
className: index.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)
|
|
1716
1713
|
}), body ?
|
|
1717
1714
|
/*#__PURE__*/
|
|
1718
1715
|
// @ts-ignore
|
|
1719
|
-
React__default
|
|
1716
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1720
1717
|
});
|
|
1721
1718
|
Card.displayName = 'Card';
|
|
1722
1719
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1906,16 +1903,16 @@ function useTimeout() {
|
|
|
1906
1903
|
|
|
1907
1904
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1908
1905
|
|
|
1909
|
-
var CarouselItem = React__default
|
|
1906
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1910
1907
|
var _ref$as = _ref.as,
|
|
1911
1908
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1912
1909
|
bsPrefix = _ref.bsPrefix,
|
|
1913
1910
|
children = _ref.children,
|
|
1914
1911
|
className = _ref.className,
|
|
1915
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1912
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1916
1913
|
|
|
1917
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1918
|
-
return /*#__PURE__*/React__default
|
|
1914
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1915
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1919
1916
|
ref: ref
|
|
1920
1917
|
}, props, {
|
|
1921
1918
|
className: finalClassName
|
|
@@ -1934,8 +1931,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1934
1931
|
|
|
1935
1932
|
function map(children, func) {
|
|
1936
1933
|
var index = 0;
|
|
1937
|
-
return React__default
|
|
1938
|
-
return React__default
|
|
1934
|
+
return React__default.Children.map(children, function (child) {
|
|
1935
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1939
1936
|
});
|
|
1940
1937
|
}
|
|
1941
1938
|
/**
|
|
@@ -1948,8 +1945,8 @@ function map(children, func) {
|
|
|
1948
1945
|
|
|
1949
1946
|
function forEach(children, func) {
|
|
1950
1947
|
var index = 0;
|
|
1951
|
-
React__default
|
|
1952
|
-
if (React__default
|
|
1948
|
+
React__default.Children.forEach(children, function (child) {
|
|
1949
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1953
1950
|
});
|
|
1954
1951
|
}
|
|
1955
1952
|
|
|
@@ -1958,33 +1955,33 @@ var propTypes$1 = {
|
|
|
1958
1955
|
/**
|
|
1959
1956
|
* @default 'carousel'
|
|
1960
1957
|
*/
|
|
1961
|
-
bsPrefix: PropTypes__default
|
|
1962
|
-
as: PropTypes__default
|
|
1958
|
+
bsPrefix: PropTypes__default.string,
|
|
1959
|
+
as: PropTypes__default.elementType,
|
|
1963
1960
|
|
|
1964
1961
|
/**
|
|
1965
1962
|
* Enables animation on the Carousel as it transitions between slides.
|
|
1966
1963
|
*/
|
|
1967
|
-
slide: PropTypes__default
|
|
1964
|
+
slide: PropTypes__default.bool,
|
|
1968
1965
|
|
|
1969
1966
|
/** Cross fade slides instead of the default slide animation */
|
|
1970
|
-
fade: PropTypes__default
|
|
1967
|
+
fade: PropTypes__default.bool,
|
|
1971
1968
|
|
|
1972
1969
|
/**
|
|
1973
1970
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
1974
1971
|
*/
|
|
1975
|
-
controls: PropTypes__default
|
|
1972
|
+
controls: PropTypes__default.bool,
|
|
1976
1973
|
|
|
1977
1974
|
/**
|
|
1978
1975
|
* Show a set of slide position indicators
|
|
1979
1976
|
*/
|
|
1980
|
-
indicators: PropTypes__default
|
|
1977
|
+
indicators: PropTypes__default.bool,
|
|
1981
1978
|
|
|
1982
1979
|
/**
|
|
1983
1980
|
* Controls the current visible slide
|
|
1984
1981
|
*
|
|
1985
1982
|
* @controllable onSelect
|
|
1986
1983
|
*/
|
|
1987
|
-
activeIndex: PropTypes__default
|
|
1984
|
+
activeIndex: PropTypes__default.number,
|
|
1988
1985
|
|
|
1989
1986
|
/**
|
|
1990
1987
|
* Callback fired when the active item changes.
|
|
@@ -1995,7 +1992,7 @@ var propTypes$1 = {
|
|
|
1995
1992
|
*
|
|
1996
1993
|
* @controllable activeIndex
|
|
1997
1994
|
*/
|
|
1998
|
-
onSelect: PropTypes__default
|
|
1995
|
+
onSelect: PropTypes__default.func,
|
|
1999
1996
|
|
|
2000
1997
|
/**
|
|
2001
1998
|
* Callback fired when a slide transition starts.
|
|
@@ -2003,7 +2000,7 @@ var propTypes$1 = {
|
|
|
2003
2000
|
* ```js
|
|
2004
2001
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2005
2002
|
*/
|
|
2006
|
-
onSlide: PropTypes__default
|
|
2003
|
+
onSlide: PropTypes__default.func,
|
|
2007
2004
|
|
|
2008
2005
|
/**
|
|
2009
2006
|
* Callback fired when a slide transition ends.
|
|
@@ -2011,50 +2008,50 @@ var propTypes$1 = {
|
|
|
2011
2008
|
* ```js
|
|
2012
2009
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2013
2010
|
*/
|
|
2014
|
-
onSlid: PropTypes__default
|
|
2011
|
+
onSlid: PropTypes__default.func,
|
|
2015
2012
|
|
|
2016
2013
|
/**
|
|
2017
2014
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2018
2015
|
*/
|
|
2019
|
-
interval: PropTypes__default
|
|
2016
|
+
interval: PropTypes__default.number,
|
|
2020
2017
|
|
|
2021
2018
|
/** Whether the carousel should react to keyboard events. */
|
|
2022
|
-
keyboard: PropTypes__default
|
|
2019
|
+
keyboard: PropTypes__default.bool,
|
|
2023
2020
|
|
|
2024
2021
|
/**
|
|
2025
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.
|
|
2026
2023
|
*
|
|
2027
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.
|
|
2028
2025
|
*/
|
|
2029
|
-
pause: PropTypes__default
|
|
2026
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2030
2027
|
|
|
2031
2028
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2032
|
-
wrap: PropTypes__default
|
|
2029
|
+
wrap: PropTypes__default.bool,
|
|
2033
2030
|
|
|
2034
2031
|
/**
|
|
2035
2032
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2036
2033
|
*/
|
|
2037
|
-
touch: PropTypes__default
|
|
2034
|
+
touch: PropTypes__default.bool,
|
|
2038
2035
|
|
|
2039
2036
|
/** Override the default button icon for the "previous" control */
|
|
2040
|
-
prevIcon: PropTypes__default
|
|
2037
|
+
prevIcon: PropTypes__default.node,
|
|
2041
2038
|
|
|
2042
2039
|
/**
|
|
2043
2040
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2044
2041
|
* in the carousel.
|
|
2045
2042
|
* Set to null to deactivate.
|
|
2046
2043
|
*/
|
|
2047
|
-
prevLabel: PropTypes__default
|
|
2044
|
+
prevLabel: PropTypes__default.string,
|
|
2048
2045
|
|
|
2049
2046
|
/** Override the default button icon for the "next" control */
|
|
2050
|
-
nextIcon: PropTypes__default
|
|
2047
|
+
nextIcon: PropTypes__default.node,
|
|
2051
2048
|
|
|
2052
2049
|
/**
|
|
2053
2050
|
* Label shown to screen readers only, can be used to show the next element
|
|
2054
2051
|
* in the carousel.
|
|
2055
2052
|
* Set to null to deactivate.
|
|
2056
2053
|
*/
|
|
2057
|
-
nextLabel: PropTypes__default
|
|
2054
|
+
nextLabel: PropTypes__default.string
|
|
2058
2055
|
};
|
|
2059
2056
|
var defaultProps$c = {
|
|
2060
2057
|
slide: true,
|
|
@@ -2067,12 +2064,12 @@ var defaultProps$c = {
|
|
|
2067
2064
|
pause: 'hover',
|
|
2068
2065
|
wrap: true,
|
|
2069
2066
|
touch: true,
|
|
2070
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2067
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2071
2068
|
"aria-hidden": "true",
|
|
2072
2069
|
className: "carousel-control-prev-icon"
|
|
2073
2070
|
}),
|
|
2074
2071
|
prevLabel: 'Previous',
|
|
2075
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2072
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2076
2073
|
"aria-hidden": "true",
|
|
2077
2074
|
className: "carousel-control-next-icon"
|
|
2078
2075
|
}),
|
|
@@ -2120,7 +2117,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2120
2117
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2121
2118
|
className = _useUncontrolled.className,
|
|
2122
2119
|
children = _useUncontrolled.children,
|
|
2123
|
-
props = index._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"]);
|
|
2124
2121
|
|
|
2125
2122
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2126
2123
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2377,7 +2374,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2377
2374
|
};
|
|
2378
2375
|
});
|
|
2379
2376
|
}, [indicators, numChildren, onSelect]);
|
|
2380
|
-
return /*#__PURE__*/React__default
|
|
2377
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2381
2378
|
ref: elementRef
|
|
2382
2379
|
}, props, {
|
|
2383
2380
|
onKeyDown: handleKeyDown,
|
|
@@ -2386,45 +2383,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2386
2383
|
onTouchStart: handleTouchStart,
|
|
2387
2384
|
onTouchMove: handleTouchMove,
|
|
2388
2385
|
onTouchEnd: handleTouchEnd,
|
|
2389
|
-
className: index.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2390
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2386
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2387
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2391
2388
|
className: prefix + "-indicators"
|
|
2392
2389
|
}, map(children, function (_child, index) {
|
|
2393
|
-
return /*#__PURE__*/React__default
|
|
2390
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2394
2391
|
key: index,
|
|
2395
2392
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2396
2393
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2397
2394
|
});
|
|
2398
|
-
})), /*#__PURE__*/React__default
|
|
2395
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2399
2396
|
className: prefix + "-inner"
|
|
2400
|
-
}, map(children, function (child, index
|
|
2401
|
-
var isActive = index
|
|
2402
|
-
return slide ? /*#__PURE__*/React__default
|
|
2397
|
+
}, map(children, function (child, index) {
|
|
2398
|
+
var isActive = index === renderedActiveIndex;
|
|
2399
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2403
2400
|
in: isActive,
|
|
2404
2401
|
onEnter: isActive ? handleEnter : undefined,
|
|
2405
2402
|
onEntered: isActive ? handleEntered : undefined,
|
|
2406
2403
|
addEndListener: transitionEnd
|
|
2407
2404
|
}, function (status) {
|
|
2408
|
-
return React__default
|
|
2409
|
-
className: index.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)
|
|
2410
2407
|
});
|
|
2411
|
-
}) : React__default
|
|
2412
|
-
className: index.classnames(child.props.className, isActive && 'active')
|
|
2408
|
+
}) : React__default.cloneElement(child, {
|
|
2409
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2413
2410
|
});
|
|
2414
|
-
})), controls && /*#__PURE__*/React__default
|
|
2411
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2415
2412
|
className: prefix + "-control-prev",
|
|
2416
2413
|
onClick: prev
|
|
2417
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2414
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2418
2415
|
className: "sr-only"
|
|
2419
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2416
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2420
2417
|
className: prefix + "-control-next",
|
|
2421
2418
|
onClick: next
|
|
2422
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2419
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2423
2420
|
className: "sr-only"
|
|
2424
2421
|
}, nextLabel))));
|
|
2425
2422
|
}
|
|
2426
2423
|
|
|
2427
|
-
var Carousel = React__default
|
|
2424
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2428
2425
|
Carousel.displayName = 'Carousel';
|
|
2429
2426
|
Carousel.propTypes = propTypes$1;
|
|
2430
2427
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2432,13 +2429,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2432
2429
|
Carousel.Item = CarouselItem;
|
|
2433
2430
|
|
|
2434
2431
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2435
|
-
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
|
|
2436
2433
|
function (_ref, ref) {
|
|
2437
2434
|
var bsPrefix = _ref.bsPrefix,
|
|
2438
2435
|
className = _ref.className,
|
|
2439
2436
|
_ref$as = _ref.as,
|
|
2440
2437
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2441
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2438
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2442
2439
|
|
|
2443
2440
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2444
2441
|
var spans = [];
|
|
@@ -2469,9 +2466,9 @@ function (_ref, ref) {
|
|
|
2469
2466
|
spans.push(prefix); // plain 'col'
|
|
2470
2467
|
}
|
|
2471
2468
|
|
|
2472
|
-
return /*#__PURE__*/React__default
|
|
2469
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2473
2470
|
ref: ref,
|
|
2474
|
-
className: index.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2471
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2475
2472
|
}));
|
|
2476
2473
|
});
|
|
2477
2474
|
Col.displayName = 'Col';
|
|
@@ -2578,7 +2575,40 @@ function useForceUpdate() {
|
|
|
2578
2575
|
return dispatch;
|
|
2579
2576
|
}
|
|
2580
2577
|
|
|
2581
|
-
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
|
+
}
|
|
2582
2612
|
|
|
2583
2613
|
function useSafeState(state) {
|
|
2584
2614
|
var isMounted = useMounted();
|
|
@@ -2624,50 +2654,21 @@ function getBasePlacement(placement) {
|
|
|
2624
2654
|
return placement.split('-')[0];
|
|
2625
2655
|
}
|
|
2626
2656
|
|
|
2627
|
-
|
|
2628
|
-
var rect = element.getBoundingClientRect();
|
|
2629
|
-
return {
|
|
2630
|
-
width: rect.width,
|
|
2631
|
-
height: rect.height,
|
|
2632
|
-
top: rect.top,
|
|
2633
|
-
right: rect.right,
|
|
2634
|
-
bottom: rect.bottom,
|
|
2635
|
-
left: rect.left,
|
|
2636
|
-
x: rect.left,
|
|
2637
|
-
y: rect.top
|
|
2638
|
-
};
|
|
2639
|
-
}
|
|
2640
|
-
|
|
2657
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2641
2658
|
// means it doesn't take into account transforms.
|
|
2642
|
-
|
|
2643
2659
|
function getLayoutRect(element) {
|
|
2644
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2645
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2646
|
-
|
|
2647
|
-
var width = element.offsetWidth;
|
|
2648
|
-
var height = element.offsetHeight;
|
|
2649
|
-
|
|
2650
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2651
|
-
width = clientRect.width;
|
|
2652
|
-
}
|
|
2653
|
-
|
|
2654
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2655
|
-
height = clientRect.height;
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
2660
|
return {
|
|
2659
2661
|
x: element.offsetLeft,
|
|
2660
2662
|
y: element.offsetTop,
|
|
2661
|
-
width:
|
|
2662
|
-
height:
|
|
2663
|
+
width: element.offsetWidth,
|
|
2664
|
+
height: element.offsetHeight
|
|
2663
2665
|
};
|
|
2664
2666
|
}
|
|
2665
2667
|
|
|
2666
|
-
|
|
2667
|
-
if (node == null) {
|
|
2668
|
-
return window;
|
|
2669
|
-
}
|
|
2668
|
+
/*:: import type { Window } from '../types'; */
|
|
2670
2669
|
|
|
2670
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2671
|
+
function getWindow(node) {
|
|
2671
2672
|
if (node.toString() !== '[object Window]') {
|
|
2672
2673
|
var ownerDocument = node.ownerDocument;
|
|
2673
2674
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2676,22 +2677,26 @@ function getWindow(node) {
|
|
|
2676
2677
|
return node;
|
|
2677
2678
|
}
|
|
2678
2679
|
|
|
2680
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2681
|
+
Element); */
|
|
2682
|
+
|
|
2679
2683
|
function isElement(node) {
|
|
2680
2684
|
var OwnElement = getWindow(node).Element;
|
|
2681
2685
|
return node instanceof OwnElement || node instanceof Element;
|
|
2682
2686
|
}
|
|
2687
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2688
|
+
HTMLElement); */
|
|
2689
|
+
|
|
2683
2690
|
|
|
2684
2691
|
function isHTMLElement(node) {
|
|
2685
2692
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2686
2693
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2687
2694
|
}
|
|
2695
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2696
|
+
ShadowRoot); */
|
|
2688
2697
|
|
|
2689
|
-
function isShadowRoot(node) {
|
|
2690
|
-
// IE 11 has no ShadowRoot
|
|
2691
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2692
|
-
return false;
|
|
2693
|
-
}
|
|
2694
2698
|
|
|
2699
|
+
function isShadowRoot(node) {
|
|
2695
2700
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2696
2701
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2697
2702
|
}
|
|
@@ -2746,8 +2751,9 @@ function getParentNode(element) {
|
|
|
2746
2751
|
// $FlowFixMe[incompatible-return]
|
|
2747
2752
|
// $FlowFixMe[prop-missing]
|
|
2748
2753
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2749
|
-
element.parentNode ||
|
|
2750
|
-
|
|
2754
|
+
element.parentNode || // DOM Element detected
|
|
2755
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2756
|
+
element.host || // ShadowRoot detected
|
|
2751
2757
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2752
2758
|
getDocumentElement(element) // fallback
|
|
2753
2759
|
|
|
@@ -2760,21 +2766,29 @@ function getTrueOffsetParent(element) {
|
|
|
2760
2766
|
return null;
|
|
2761
2767
|
}
|
|
2762
2768
|
|
|
2763
|
-
|
|
2769
|
+
var offsetParent = element.offsetParent;
|
|
2770
|
+
|
|
2771
|
+
if (offsetParent) {
|
|
2772
|
+
var html = getDocumentElement(offsetParent);
|
|
2773
|
+
|
|
2774
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2775
|
+
return html;
|
|
2776
|
+
}
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2779
|
+
return offsetParent;
|
|
2764
2780
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2765
2781
|
// return the containing block
|
|
2766
2782
|
|
|
2767
2783
|
|
|
2768
2784
|
function getContainingBlock(element) {
|
|
2769
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2770
2785
|
var currentNode = getParentNode(element);
|
|
2771
2786
|
|
|
2772
2787
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2773
2788
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2774
2789
|
// create a containing block.
|
|
2775
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2776
2790
|
|
|
2777
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2791
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2778
2792
|
return currentNode;
|
|
2779
2793
|
} else {
|
|
2780
2794
|
currentNode = currentNode.parentNode;
|
|
@@ -2794,7 +2808,7 @@ function getOffsetParent(element) {
|
|
|
2794
2808
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2795
2809
|
}
|
|
2796
2810
|
|
|
2797
|
-
if (offsetParent &&
|
|
2811
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2798
2812
|
return window;
|
|
2799
2813
|
}
|
|
2800
2814
|
|
|
@@ -2805,12 +2819,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2805
2819
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2806
2820
|
}
|
|
2807
2821
|
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
var round = Math.round;
|
|
2811
|
-
|
|
2812
|
-
function within(min$1, value, max$1) {
|
|
2813
|
-
return max(min$1, min(value, max$1));
|
|
2822
|
+
function within(min, value, max) {
|
|
2823
|
+
return Math.max(min, Math.min(value, max));
|
|
2814
2824
|
}
|
|
2815
2825
|
|
|
2816
2826
|
function getFreshSideObject() {
|
|
@@ -2823,7 +2833,7 @@ function getFreshSideObject() {
|
|
|
2823
2833
|
}
|
|
2824
2834
|
|
|
2825
2835
|
function mergePaddingObject(paddingObject) {
|
|
2826
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2836
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2827
2837
|
}
|
|
2828
2838
|
|
|
2829
2839
|
function expandToHashMap(value, keys) {
|
|
@@ -2833,19 +2843,11 @@ function expandToHashMap(value, keys) {
|
|
|
2833
2843
|
}, {});
|
|
2834
2844
|
}
|
|
2835
2845
|
|
|
2836
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2837
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2838
|
-
placement: state.placement
|
|
2839
|
-
})) : padding;
|
|
2840
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2841
|
-
};
|
|
2842
|
-
|
|
2843
2846
|
function arrow(_ref) {
|
|
2844
2847
|
var _state$modifiersData$;
|
|
2845
2848
|
|
|
2846
2849
|
var state = _ref.state,
|
|
2847
|
-
name = _ref.name
|
|
2848
|
-
options = _ref.options;
|
|
2850
|
+
name = _ref.name;
|
|
2849
2851
|
var arrowElement = state.elements.arrow;
|
|
2850
2852
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2851
2853
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2857,7 +2859,7 @@ function arrow(_ref) {
|
|
|
2857
2859
|
return;
|
|
2858
2860
|
}
|
|
2859
2861
|
|
|
2860
|
-
var paddingObject =
|
|
2862
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2861
2863
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2862
2864
|
var minProp = axis === 'y' ? top : left;
|
|
2863
2865
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2879,9 +2881,12 @@ function arrow(_ref) {
|
|
|
2879
2881
|
|
|
2880
2882
|
function effect(_ref2) {
|
|
2881
2883
|
var state = _ref2.state,
|
|
2882
|
-
options = _ref2.options
|
|
2884
|
+
options = _ref2.options,
|
|
2885
|
+
name = _ref2.name;
|
|
2883
2886
|
var _options$element = options.element,
|
|
2884
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2887
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2888
|
+
_options$padding = options.padding,
|
|
2889
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2885
2890
|
|
|
2886
2891
|
if (arrowElement == null) {
|
|
2887
2892
|
return;
|
|
@@ -2911,6 +2916,9 @@ function effect(_ref2) {
|
|
|
2911
2916
|
}
|
|
2912
2917
|
|
|
2913
2918
|
state.elements.arrow = arrowElement;
|
|
2919
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2920
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2921
|
+
};
|
|
2914
2922
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2915
2923
|
|
|
2916
2924
|
|
|
@@ -2939,8 +2947,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2939
2947
|
var win = window;
|
|
2940
2948
|
var dpr = win.devicePixelRatio || 1;
|
|
2941
2949
|
return {
|
|
2942
|
-
x: round(
|
|
2943
|
-
y: round(
|
|
2950
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2951
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2944
2952
|
};
|
|
2945
2953
|
}
|
|
2946
2954
|
|
|
@@ -2956,7 +2964,7 @@ function mapToStyles(_ref2) {
|
|
|
2956
2964
|
adaptive = _ref2.adaptive,
|
|
2957
2965
|
roundOffsets = _ref2.roundOffsets;
|
|
2958
2966
|
|
|
2959
|
-
var _ref3 = roundOffsets
|
|
2967
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2960
2968
|
_ref3$x = _ref3.x,
|
|
2961
2969
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2962
2970
|
_ref3$y = _ref3.y,
|
|
@@ -2970,32 +2978,23 @@ function mapToStyles(_ref2) {
|
|
|
2970
2978
|
|
|
2971
2979
|
if (adaptive) {
|
|
2972
2980
|
var offsetParent = getOffsetParent(popper);
|
|
2973
|
-
var heightProp = 'clientHeight';
|
|
2974
|
-
var widthProp = 'clientWidth';
|
|
2975
2981
|
|
|
2976
2982
|
if (offsetParent === getWindow(popper)) {
|
|
2977
2983
|
offsetParent = getDocumentElement(popper);
|
|
2978
|
-
|
|
2979
|
-
if (getComputedStyle$2(offsetParent).position !== 'static') {
|
|
2980
|
-
heightProp = 'scrollHeight';
|
|
2981
|
-
widthProp = 'scrollWidth';
|
|
2982
|
-
}
|
|
2983
2984
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2984
2985
|
|
|
2986
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2985
2987
|
|
|
2986
|
-
offsetParent = offsetParent;
|
|
2987
2988
|
|
|
2988
2989
|
if (placement === top) {
|
|
2989
|
-
sideY = bottom;
|
|
2990
|
-
|
|
2991
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2990
|
+
sideY = bottom;
|
|
2991
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2992
2992
|
y *= gpuAcceleration ? 1 : -1;
|
|
2993
2993
|
}
|
|
2994
2994
|
|
|
2995
2995
|
if (placement === left) {
|
|
2996
|
-
sideX = right;
|
|
2997
|
-
|
|
2998
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2996
|
+
sideX = right;
|
|
2997
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2999
2998
|
x *= gpuAcceleration ? 1 : -1;
|
|
3000
2999
|
}
|
|
3001
3000
|
}
|
|
@@ -3007,10 +3006,10 @@ function mapToStyles(_ref2) {
|
|
|
3007
3006
|
if (gpuAcceleration) {
|
|
3008
3007
|
var _Object$assign;
|
|
3009
3008
|
|
|
3010
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3009
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3011
3010
|
}
|
|
3012
3011
|
|
|
3013
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
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));
|
|
3014
3013
|
}
|
|
3015
3014
|
|
|
3016
3015
|
function computeStyles(_ref4) {
|
|
@@ -3041,7 +3040,7 @@ function computeStyles(_ref4) {
|
|
|
3041
3040
|
};
|
|
3042
3041
|
|
|
3043
3042
|
if (state.modifiersData.popperOffsets != null) {
|
|
3044
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3043
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3045
3044
|
offsets: state.modifiersData.popperOffsets,
|
|
3046
3045
|
position: state.options.strategy,
|
|
3047
3046
|
adaptive: adaptive,
|
|
@@ -3050,7 +3049,7 @@ function computeStyles(_ref4) {
|
|
|
3050
3049
|
}
|
|
3051
3050
|
|
|
3052
3051
|
if (state.modifiersData.arrow != null) {
|
|
3053
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3052
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3054
3053
|
offsets: state.modifiersData.arrow,
|
|
3055
3054
|
position: 'absolute',
|
|
3056
3055
|
adaptive: false,
|
|
@@ -3058,7 +3057,7 @@ function computeStyles(_ref4) {
|
|
|
3058
3057
|
})));
|
|
3059
3058
|
}
|
|
3060
3059
|
|
|
3061
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3060
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3062
3061
|
'data-popper-placement': state.placement
|
|
3063
3062
|
});
|
|
3064
3063
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3142,6 +3141,20 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3142
3141
|
});
|
|
3143
3142
|
}
|
|
3144
3143
|
|
|
3144
|
+
function getBoundingClientRect(element) {
|
|
3145
|
+
var rect = element.getBoundingClientRect();
|
|
3146
|
+
return {
|
|
3147
|
+
width: rect.width,
|
|
3148
|
+
height: rect.height,
|
|
3149
|
+
top: rect.top,
|
|
3150
|
+
right: rect.right,
|
|
3151
|
+
bottom: rect.bottom,
|
|
3152
|
+
left: rect.left,
|
|
3153
|
+
x: rect.left,
|
|
3154
|
+
y: rect.top
|
|
3155
|
+
};
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3145
3158
|
function getWindowScroll(node) {
|
|
3146
3159
|
var win = getWindow(node);
|
|
3147
3160
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3204,18 +3217,16 @@ function getViewportRect(element) {
|
|
|
3204
3217
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3205
3218
|
|
|
3206
3219
|
function getDocumentRect(element) {
|
|
3207
|
-
var _element$ownerDocumen;
|
|
3208
|
-
|
|
3209
3220
|
var html = getDocumentElement(element);
|
|
3210
3221
|
var winScroll = getWindowScroll(element);
|
|
3211
|
-
var body =
|
|
3212
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3213
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3222
|
+
var body = element.ownerDocument.body;
|
|
3223
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3224
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3214
3225
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3215
3226
|
var y = -winScroll.scrollTop;
|
|
3216
3227
|
|
|
3217
3228
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3218
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3229
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3219
3230
|
}
|
|
3220
3231
|
|
|
3221
3232
|
return {
|
|
@@ -3257,14 +3268,12 @@ reference element's position.
|
|
|
3257
3268
|
*/
|
|
3258
3269
|
|
|
3259
3270
|
function listScrollParents(element, list) {
|
|
3260
|
-
var _element$ownerDocumen;
|
|
3261
|
-
|
|
3262
3271
|
if (list === void 0) {
|
|
3263
3272
|
list = [];
|
|
3264
3273
|
}
|
|
3265
3274
|
|
|
3266
3275
|
var scrollParent = getScrollParent(element);
|
|
3267
|
-
var isBody = scrollParent ===
|
|
3276
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3268
3277
|
var win = getWindow(scrollParent);
|
|
3269
3278
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3270
3279
|
var updatedList = list.concat(target);
|
|
@@ -3273,7 +3282,7 @@ function listScrollParents(element, list) {
|
|
|
3273
3282
|
}
|
|
3274
3283
|
|
|
3275
3284
|
function rectToClientRect(rect) {
|
|
3276
|
-
return Object.assign({}, rect, {
|
|
3285
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3277
3286
|
left: rect.x,
|
|
3278
3287
|
top: rect.y,
|
|
3279
3288
|
right: rect.x + rect.width,
|
|
@@ -3324,10 +3333,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3324
3333
|
var firstClippingParent = clippingParents[0];
|
|
3325
3334
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3326
3335
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3327
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3328
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3329
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3330
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3336
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3337
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3338
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3339
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3331
3340
|
return accRect;
|
|
3332
3341
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3333
3342
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3437,7 +3446,7 @@ function detectOverflow(state, options) {
|
|
|
3437
3446
|
strategy: 'absolute',
|
|
3438
3447
|
placement: placement
|
|
3439
3448
|
});
|
|
3440
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3449
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3441
3450
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3442
3451
|
// 0 or negative = within the clipping rect
|
|
3443
3452
|
|
|
@@ -3461,6 +3470,9 @@ function detectOverflow(state, options) {
|
|
|
3461
3470
|
return overflowOffsets;
|
|
3462
3471
|
}
|
|
3463
3472
|
|
|
3473
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3474
|
+
|
|
3475
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3464
3476
|
function computeAutoPlacement(state, options) {
|
|
3465
3477
|
if (options === void 0) {
|
|
3466
3478
|
options = {};
|
|
@@ -3689,7 +3701,7 @@ function hide(_ref) {
|
|
|
3689
3701
|
isReferenceHidden: isReferenceHidden,
|
|
3690
3702
|
hasPopperEscaped: hasPopperEscaped
|
|
3691
3703
|
};
|
|
3692
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3704
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3693
3705
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3694
3706
|
'data-popper-escaped': hasPopperEscaped
|
|
3695
3707
|
});
|
|
@@ -3708,7 +3720,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3708
3720
|
var basePlacement = getBasePlacement(placement);
|
|
3709
3721
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3710
3722
|
|
|
3711
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3723
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3712
3724
|
placement: placement
|
|
3713
3725
|
})) : offset,
|
|
3714
3726
|
skidding = _ref[0],
|
|
@@ -3814,7 +3826,7 @@ function preventOverflow(_ref) {
|
|
|
3814
3826
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3815
3827
|
var referenceRect = state.rects.reference;
|
|
3816
3828
|
var popperRect = state.rects.popper;
|
|
3817
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3829
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3818
3830
|
placement: state.placement
|
|
3819
3831
|
})) : tetherOffset;
|
|
3820
3832
|
var data = {
|
|
@@ -3826,13 +3838,13 @@ function preventOverflow(_ref) {
|
|
|
3826
3838
|
return;
|
|
3827
3839
|
}
|
|
3828
3840
|
|
|
3829
|
-
if (checkMainAxis
|
|
3841
|
+
if (checkMainAxis) {
|
|
3830
3842
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3831
3843
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3832
3844
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3833
3845
|
var offset = popperOffsets[mainAxis];
|
|
3834
|
-
var min
|
|
3835
|
-
var max
|
|
3846
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3847
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3836
3848
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3837
3849
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3838
3850
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3859,29 +3871,26 @@ function preventOverflow(_ref) {
|
|
|
3859
3871
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3860
3872
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3861
3873
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3874
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3875
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3876
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3877
|
+
}
|
|
3862
3878
|
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3866
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3867
|
-
}
|
|
3868
|
-
|
|
3869
|
-
if (checkAltAxis) {
|
|
3870
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3879
|
+
if (checkAltAxis) {
|
|
3880
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3871
3881
|
|
|
3872
|
-
|
|
3882
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3873
3883
|
|
|
3874
|
-
|
|
3884
|
+
var _offset = popperOffsets[altAxis];
|
|
3875
3885
|
|
|
3876
|
-
|
|
3886
|
+
var _min = _offset + overflow[_mainSide];
|
|
3877
3887
|
|
|
3878
|
-
|
|
3888
|
+
var _max = _offset - overflow[_altSide];
|
|
3879
3889
|
|
|
3880
|
-
|
|
3890
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3881
3891
|
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
}
|
|
3892
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3893
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3885
3894
|
}
|
|
3886
3895
|
|
|
3887
3896
|
state.modifiersData[name] = data;
|
|
@@ -4112,9 +4121,9 @@ function uniqueBy(arr, fn) {
|
|
|
4112
4121
|
function mergeByName(modifiers) {
|
|
4113
4122
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4114
4123
|
var existing = merged[current.name];
|
|
4115
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4116
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4117
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4124
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4125
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4126
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4118
4127
|
}) : current;
|
|
4119
4128
|
return merged;
|
|
4120
4129
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4160,7 +4169,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4160
4169
|
var state = {
|
|
4161
4170
|
placement: 'bottom',
|
|
4162
4171
|
orderedModifiers: [],
|
|
4163
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4172
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4164
4173
|
modifiersData: {},
|
|
4165
4174
|
elements: {
|
|
4166
4175
|
reference: reference,
|
|
@@ -4175,7 +4184,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4175
4184
|
state: state,
|
|
4176
4185
|
setOptions: function setOptions(options) {
|
|
4177
4186
|
cleanupModifierEffects();
|
|
4178
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4187
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4179
4188
|
state.scrollParents = {
|
|
4180
4189
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4181
4190
|
popper: listScrollParents(popper)
|
|
@@ -4454,7 +4463,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4454
4463
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4455
4464
|
_ref3$modifiers = _ref3.modifiers,
|
|
4456
4465
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4457
|
-
config =
|
|
4466
|
+
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4458
4467
|
|
|
4459
4468
|
var popperInstanceRef = React.useRef();
|
|
4460
4469
|
var update = React.useCallback(function () {
|
|
@@ -4520,7 +4529,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4520
4529
|
return undefined;
|
|
4521
4530
|
}
|
|
4522
4531
|
|
|
4523
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement,
|
|
4532
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4524
4533
|
placement: placement,
|
|
4525
4534
|
strategy: strategy,
|
|
4526
4535
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4530,7 +4539,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4530
4539
|
popperInstanceRef.current.destroy();
|
|
4531
4540
|
popperInstanceRef.current = undefined;
|
|
4532
4541
|
setState(function (s) {
|
|
4533
|
-
return
|
|
4542
|
+
return _extends({}, s, {
|
|
4534
4543
|
attributes: {},
|
|
4535
4544
|
styles: {
|
|
4536
4545
|
popper: initialPopperStyles(strategy)
|
|
@@ -4615,7 +4624,7 @@ var warning_1 = warning;
|
|
|
4615
4624
|
|
|
4616
4625
|
function safeFindDOMNode(componentOrElement) {
|
|
4617
4626
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4618
|
-
return
|
|
4627
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4619
4628
|
}
|
|
4620
4629
|
|
|
4621
4630
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4760,30 +4769,30 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4760
4769
|
_ref$popperConfig = _ref.popperConfig,
|
|
4761
4770
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4762
4771
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4763
|
-
return
|
|
4772
|
+
return _extends({}, popperConfig, {
|
|
4764
4773
|
placement: placement,
|
|
4765
4774
|
enabled: enabled,
|
|
4766
|
-
modifiers: toModifierArray(
|
|
4775
|
+
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4767
4776
|
eventListeners: {
|
|
4768
4777
|
enabled: enableEvents
|
|
4769
4778
|
},
|
|
4770
|
-
preventOverflow:
|
|
4771
|
-
options: containerPadding ?
|
|
4779
|
+
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4780
|
+
options: containerPadding ? _extends({
|
|
4772
4781
|
padding: containerPadding
|
|
4773
4782
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4774
4783
|
}),
|
|
4775
4784
|
offset: {
|
|
4776
|
-
options:
|
|
4785
|
+
options: _extends({
|
|
4777
4786
|
offset: offset
|
|
4778
4787
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4779
4788
|
},
|
|
4780
|
-
arrow:
|
|
4789
|
+
arrow: _extends({}, modifiers.arrow, {
|
|
4781
4790
|
enabled: !!arrowElement,
|
|
4782
|
-
options:
|
|
4791
|
+
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4783
4792
|
element: arrowElement
|
|
4784
4793
|
})
|
|
4785
4794
|
}),
|
|
4786
|
-
flip:
|
|
4795
|
+
flip: _extends({
|
|
4787
4796
|
enabled: !!flip
|
|
4788
4797
|
}, modifiers.flip)
|
|
4789
4798
|
}))
|
|
@@ -4854,7 +4863,7 @@ function useDropdownMenu(options) {
|
|
|
4854
4863
|
})),
|
|
4855
4864
|
styles = _usePopper.styles,
|
|
4856
4865
|
attributes = _usePopper.attributes,
|
|
4857
|
-
popper =
|
|
4866
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4858
4867
|
|
|
4859
4868
|
var menu;
|
|
4860
4869
|
var menuProps = {
|
|
@@ -4869,15 +4878,15 @@ function useDropdownMenu(options) {
|
|
|
4869
4878
|
};
|
|
4870
4879
|
|
|
4871
4880
|
if (!shouldUsePopper) {
|
|
4872
|
-
menu =
|
|
4881
|
+
menu = _extends({}, childArgs, {
|
|
4873
4882
|
props: menuProps
|
|
4874
4883
|
});
|
|
4875
4884
|
} else {
|
|
4876
|
-
menu =
|
|
4877
|
-
props:
|
|
4885
|
+
menu = _extends({}, popper, childArgs, {
|
|
4886
|
+
props: _extends({}, menuProps, attributes.popper, {
|
|
4878
4887
|
style: styles.popper
|
|
4879
4888
|
}),
|
|
4880
|
-
arrowProps:
|
|
4889
|
+
arrowProps: _extends({
|
|
4881
4890
|
ref: attachArrowRef
|
|
4882
4891
|
}, attributes.arrow, {
|
|
4883
4892
|
style: styles.arrow
|
|
@@ -4914,39 +4923,39 @@ var propTypes$2 = {
|
|
|
4914
4923
|
* },
|
|
4915
4924
|
* }) => React.Element}
|
|
4916
4925
|
*/
|
|
4917
|
-
children: PropTypes__default
|
|
4926
|
+
children: PropTypes__default.func.isRequired,
|
|
4918
4927
|
|
|
4919
4928
|
/**
|
|
4920
4929
|
* Controls the visible state of the menu, generally this is
|
|
4921
4930
|
* provided by the parent `Dropdown` component,
|
|
4922
4931
|
* but may also be specified as a prop directly.
|
|
4923
4932
|
*/
|
|
4924
|
-
show: PropTypes__default
|
|
4933
|
+
show: PropTypes__default.bool,
|
|
4925
4934
|
|
|
4926
4935
|
/**
|
|
4927
4936
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4928
4937
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4929
4938
|
* but may also be specified as a prop directly.
|
|
4930
4939
|
*/
|
|
4931
|
-
alignEnd: PropTypes__default
|
|
4940
|
+
alignEnd: PropTypes__default.bool,
|
|
4932
4941
|
|
|
4933
4942
|
/**
|
|
4934
4943
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4935
4944
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4936
4945
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4937
4946
|
*/
|
|
4938
|
-
flip: PropTypes__default
|
|
4939
|
-
usePopper: PropTypes__default
|
|
4947
|
+
flip: PropTypes__default.bool,
|
|
4948
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4940
4949
|
|
|
4941
4950
|
/**
|
|
4942
4951
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4943
4952
|
*/
|
|
4944
|
-
popperConfig: PropTypes__default
|
|
4953
|
+
popperConfig: PropTypes__default.object,
|
|
4945
4954
|
|
|
4946
4955
|
/**
|
|
4947
4956
|
* Override the default event used by RootCloseWrapper.
|
|
4948
4957
|
*/
|
|
4949
|
-
rootCloseEvent: PropTypes__default
|
|
4958
|
+
rootCloseEvent: PropTypes__default.string
|
|
4950
4959
|
};
|
|
4951
4960
|
var defaultProps$d = {
|
|
4952
4961
|
usePopper: true
|
|
@@ -4960,10 +4969,10 @@ var defaultProps$d = {
|
|
|
4960
4969
|
*/
|
|
4961
4970
|
function DropdownMenu(_ref2) {
|
|
4962
4971
|
var children = _ref2.children,
|
|
4963
|
-
options =
|
|
4972
|
+
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4964
4973
|
|
|
4965
4974
|
var args = useDropdownMenu(options);
|
|
4966
|
-
return /*#__PURE__*/React__default
|
|
4975
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4967
4976
|
}
|
|
4968
4977
|
|
|
4969
4978
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5012,7 +5021,7 @@ var propTypes$3 = {
|
|
|
5012
5021
|
* },
|
|
5013
5022
|
* }) => React.Element}
|
|
5014
5023
|
*/
|
|
5015
|
-
children: PropTypes__default
|
|
5024
|
+
children: PropTypes__default.func.isRequired
|
|
5016
5025
|
};
|
|
5017
5026
|
|
|
5018
5027
|
/**
|
|
@@ -5030,7 +5039,7 @@ function DropdownToggle(_ref2) {
|
|
|
5030
5039
|
show = _useDropdownToggle$.show,
|
|
5031
5040
|
toggle = _useDropdownToggle$.toggle;
|
|
5032
5041
|
|
|
5033
|
-
return /*#__PURE__*/React__default
|
|
5042
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
5034
5043
|
show: show,
|
|
5035
5044
|
toggle: toggle,
|
|
5036
5045
|
props: props
|
|
@@ -5052,12 +5061,12 @@ var propTypes$4 = {
|
|
|
5052
5061
|
* },
|
|
5053
5062
|
* }) => React.Element}
|
|
5054
5063
|
*/
|
|
5055
|
-
children: PropTypes__default
|
|
5064
|
+
children: PropTypes__default.func.isRequired,
|
|
5056
5065
|
|
|
5057
5066
|
/**
|
|
5058
5067
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5059
5068
|
*/
|
|
5060
|
-
drop: PropTypes__default
|
|
5069
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5061
5070
|
|
|
5062
5071
|
/**
|
|
5063
5072
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5067,31 +5076,31 @@ var propTypes$4 = {
|
|
|
5067
5076
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5068
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).
|
|
5069
5078
|
*/
|
|
5070
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5079
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5071
5080
|
|
|
5072
5081
|
/**
|
|
5073
5082
|
* A css slector string that will return __focusable__ menu items.
|
|
5074
5083
|
* Selectors should be relative to the menu component:
|
|
5075
5084
|
* e.g. ` > li:not('.disabled')`
|
|
5076
5085
|
*/
|
|
5077
|
-
itemSelector: PropTypes__default
|
|
5086
|
+
itemSelector: PropTypes__default.string,
|
|
5078
5087
|
|
|
5079
5088
|
/**
|
|
5080
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`.
|
|
5081
5090
|
*/
|
|
5082
|
-
alignEnd: PropTypes__default
|
|
5091
|
+
alignEnd: PropTypes__default.bool,
|
|
5083
5092
|
|
|
5084
5093
|
/**
|
|
5085
5094
|
* Whether or not the Dropdown is visible.
|
|
5086
5095
|
*
|
|
5087
5096
|
* @controllable onToggle
|
|
5088
5097
|
*/
|
|
5089
|
-
show: PropTypes__default
|
|
5098
|
+
show: PropTypes__default.bool,
|
|
5090
5099
|
|
|
5091
5100
|
/**
|
|
5092
5101
|
* Sets the initial show position of the Dropdown.
|
|
5093
5102
|
*/
|
|
5094
|
-
defaultShow: PropTypes__default
|
|
5103
|
+
defaultShow: PropTypes__default.bool,
|
|
5095
5104
|
|
|
5096
5105
|
/**
|
|
5097
5106
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5106,7 +5115,7 @@ var propTypes$4 = {
|
|
|
5106
5115
|
*
|
|
5107
5116
|
* @controllable show
|
|
5108
5117
|
*/
|
|
5109
|
-
onToggle: PropTypes__default
|
|
5118
|
+
onToggle: PropTypes__default.func
|
|
5110
5119
|
};
|
|
5111
5120
|
|
|
5112
5121
|
/**
|
|
@@ -5245,7 +5254,7 @@ function Dropdown(_ref) {
|
|
|
5245
5254
|
}
|
|
5246
5255
|
};
|
|
5247
5256
|
|
|
5248
|
-
return /*#__PURE__*/React__default
|
|
5257
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5249
5258
|
value: context
|
|
5250
5259
|
}, children({
|
|
5251
5260
|
props: {
|
|
@@ -5259,14 +5268,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5259
5268
|
Dropdown.Menu = DropdownMenu;
|
|
5260
5269
|
Dropdown.Toggle = DropdownToggle;
|
|
5261
5270
|
|
|
5262
|
-
var NavContext = React__default
|
|
5271
|
+
var NavContext = React__default.createContext(null);
|
|
5263
5272
|
NavContext.displayName = 'NavContext';
|
|
5264
5273
|
|
|
5265
5274
|
var defaultProps$e = {
|
|
5266
5275
|
as: SafeAnchor,
|
|
5267
5276
|
disabled: false
|
|
5268
5277
|
};
|
|
5269
|
-
var DropdownItem = React__default
|
|
5278
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5270
5279
|
var bsPrefix = _ref.bsPrefix,
|
|
5271
5280
|
className = _ref.className,
|
|
5272
5281
|
children = _ref.children,
|
|
@@ -5277,7 +5286,7 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5277
5286
|
onSelect = _ref.onSelect,
|
|
5278
5287
|
propActive = _ref.active,
|
|
5279
5288
|
Component = _ref.as,
|
|
5280
|
-
props = index._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"]);
|
|
5281
5290
|
|
|
5282
5291
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5283
5292
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
@@ -5301,11 +5310,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5301
5310
|
/*#__PURE__*/
|
|
5302
5311
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5303
5312
|
// @ts-ignore
|
|
5304
|
-
React__default
|
|
5313
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5305
5314
|
ref: ref,
|
|
5306
5315
|
href: href,
|
|
5307
5316
|
disabled: disabled,
|
|
5308
|
-
className: index.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5317
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5309
5318
|
onClick: handleClick
|
|
5310
5319
|
}), children)
|
|
5311
5320
|
);
|
|
@@ -5350,7 +5359,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5350
5359
|
}, [refA, refB]);
|
|
5351
5360
|
}
|
|
5352
5361
|
|
|
5353
|
-
var context$2 = React__default
|
|
5362
|
+
var context$2 = React__default.createContext(null);
|
|
5354
5363
|
context$2.displayName = 'NavbarContext';
|
|
5355
5364
|
|
|
5356
5365
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5462,14 +5471,14 @@ function usePopperMarginModifiers() {
|
|
|
5462
5471
|
return [callback, [offset, popoverArrowMargins]];
|
|
5463
5472
|
}
|
|
5464
5473
|
|
|
5465
|
-
var alignDirection = PropTypes__default
|
|
5466
|
-
var alignPropType = PropTypes__default
|
|
5474
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5475
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5467
5476
|
sm: alignDirection
|
|
5468
|
-
}), PropTypes__default
|
|
5477
|
+
}), PropTypes__default.shape({
|
|
5469
5478
|
md: alignDirection
|
|
5470
|
-
}), PropTypes__default
|
|
5479
|
+
}), PropTypes__default.shape({
|
|
5471
5480
|
lg: alignDirection
|
|
5472
|
-
}), PropTypes__default
|
|
5481
|
+
}), PropTypes__default.shape({
|
|
5473
5482
|
xl: alignDirection
|
|
5474
5483
|
})]);
|
|
5475
5484
|
var defaultProps$f = {
|
|
@@ -5478,7 +5487,7 @@ var defaultProps$f = {
|
|
|
5478
5487
|
flip: true
|
|
5479
5488
|
}; // TODO: remove this hack
|
|
5480
5489
|
|
|
5481
|
-
var DropdownMenu$1 = React__default
|
|
5490
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5482
5491
|
var bsPrefix = _ref.bsPrefix,
|
|
5483
5492
|
className = _ref.className,
|
|
5484
5493
|
align = _ref.align,
|
|
@@ -5490,7 +5499,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5490
5499
|
_ref$as = _ref.as,
|
|
5491
5500
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5492
5501
|
popperConfig = _ref.popperConfig,
|
|
5493
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5502
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5494
5503
|
|
|
5495
5504
|
var isNavbar = React.useContext(context$2);
|
|
5496
5505
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5526,7 +5535,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5526
5535
|
show: showProps,
|
|
5527
5536
|
alignEnd: alignRight,
|
|
5528
5537
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5529
|
-
popperConfig: index._extends({}, popperConfig, {
|
|
5538
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5530
5539
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5531
5540
|
})
|
|
5532
5541
|
}),
|
|
@@ -5549,12 +5558,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5549
5558
|
if (placement) {
|
|
5550
5559
|
// we don't need the default popper style,
|
|
5551
5560
|
// menus are display: none when not shown.
|
|
5552
|
-
props.style = index._extends({}, props.style, {}, menuProps.style);
|
|
5561
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5553
5562
|
props['x-placement'] = placement;
|
|
5554
5563
|
}
|
|
5555
5564
|
|
|
5556
|
-
return /*#__PURE__*/React__default
|
|
5557
|
-
className: index.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
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))
|
|
5558
5567
|
}));
|
|
5559
5568
|
});
|
|
5560
5569
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5587,14 +5596,14 @@ module.exports = exports['default'];
|
|
|
5587
5596
|
|
|
5588
5597
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5589
5598
|
|
|
5590
|
-
var DropdownToggle$1 = React__default
|
|
5599
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5591
5600
|
var bsPrefix = _ref.bsPrefix,
|
|
5592
5601
|
split = _ref.split,
|
|
5593
5602
|
className = _ref.className,
|
|
5594
5603
|
childBsPrefix = _ref.childBsPrefix,
|
|
5595
5604
|
_ref$as = _ref.as,
|
|
5596
5605
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5597
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5606
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5598
5607
|
|
|
5599
5608
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5600
5609
|
|
|
@@ -5609,9 +5618,9 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5609
5618
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5610
5619
|
// underlying component, to allow it to render size and style variants.
|
|
5611
5620
|
|
|
5612
|
-
return /*#__PURE__*/React__default
|
|
5621
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5613
5622
|
onClick: toggle,
|
|
5614
|
-
className: index.classnames(className, prefix, split && prefix + "-split")
|
|
5623
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5615
5624
|
}, toggleProps, props));
|
|
5616
5625
|
});
|
|
5617
5626
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
@@ -5632,7 +5641,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5632
5641
|
var defaultProps$g = {
|
|
5633
5642
|
navbar: false
|
|
5634
5643
|
};
|
|
5635
|
-
var Dropdown$1 = React__default
|
|
5644
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5636
5645
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5637
5646
|
show: 'onToggle'
|
|
5638
5647
|
}),
|
|
@@ -5647,7 +5656,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5647
5656
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5648
5657
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5649
5658
|
_4 = _useUncontrolled.navbar,
|
|
5650
|
-
props = index._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"]);
|
|
5651
5660
|
|
|
5652
5661
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5653
5662
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5669,9 +5678,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5669
5678
|
if (onSelect) onSelect(key, event);
|
|
5670
5679
|
handleToggle(false, event, 'select');
|
|
5671
5680
|
});
|
|
5672
|
-
return /*#__PURE__*/React__default
|
|
5681
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5673
5682
|
value: handleSelect
|
|
5674
|
-
}, /*#__PURE__*/React__default
|
|
5683
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5675
5684
|
drop: drop,
|
|
5676
5685
|
show: show,
|
|
5677
5686
|
alignEnd: alignRight,
|
|
@@ -5680,9 +5689,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5680
5689
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5681
5690
|
}, function (_ref) {
|
|
5682
5691
|
var dropdownProps = _ref.props;
|
|
5683
|
-
return /*#__PURE__*/React__default
|
|
5692
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5684
5693
|
ref: ref,
|
|
5685
|
-
className: index.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')
|
|
5686
5695
|
}));
|
|
5687
5696
|
}));
|
|
5688
5697
|
});
|
|
@@ -5701,19 +5710,19 @@ var propTypes$5 = {
|
|
|
5701
5710
|
* @type {string|number}
|
|
5702
5711
|
* @required
|
|
5703
5712
|
*/
|
|
5704
|
-
id: PropTypes__default
|
|
5713
|
+
id: PropTypes__default.any,
|
|
5705
5714
|
|
|
5706
5715
|
/** An `href` passed to the Toggle component */
|
|
5707
|
-
href: PropTypes__default
|
|
5716
|
+
href: PropTypes__default.string,
|
|
5708
5717
|
|
|
5709
5718
|
/** An `onClick` handler passed to the Toggle component */
|
|
5710
|
-
onClick: PropTypes__default
|
|
5719
|
+
onClick: PropTypes__default.func,
|
|
5711
5720
|
|
|
5712
5721
|
/** The content of the non-toggle Button. */
|
|
5713
|
-
title: PropTypes__default
|
|
5722
|
+
title: PropTypes__default.node.isRequired,
|
|
5714
5723
|
|
|
5715
5724
|
/** Disables both Buttons */
|
|
5716
|
-
disabled: PropTypes__default
|
|
5725
|
+
disabled: PropTypes__default.bool,
|
|
5717
5726
|
|
|
5718
5727
|
/**
|
|
5719
5728
|
* Aligns the dropdown menu responsively.
|
|
@@ -5725,26 +5734,26 @@ var propTypes$5 = {
|
|
|
5725
5734
|
menuAlign: alignPropType,
|
|
5726
5735
|
|
|
5727
5736
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5728
|
-
menuRole: PropTypes__default
|
|
5737
|
+
menuRole: PropTypes__default.string,
|
|
5729
5738
|
|
|
5730
5739
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5731
|
-
renderMenuOnMount: PropTypes__default
|
|
5740
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5732
5741
|
|
|
5733
5742
|
/**
|
|
5734
5743
|
* Which event when fired outside the component will cause it to be closed.
|
|
5735
5744
|
*
|
|
5736
5745
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5737
5746
|
*/
|
|
5738
|
-
rootCloseEvent: PropTypes__default
|
|
5747
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5739
5748
|
|
|
5740
5749
|
/** @ignore */
|
|
5741
|
-
bsPrefix: PropTypes__default
|
|
5750
|
+
bsPrefix: PropTypes__default.string,
|
|
5742
5751
|
|
|
5743
5752
|
/** @ignore */
|
|
5744
|
-
variant: PropTypes__default
|
|
5753
|
+
variant: PropTypes__default.string,
|
|
5745
5754
|
|
|
5746
5755
|
/** @ignore */
|
|
5747
|
-
size: PropTypes__default
|
|
5756
|
+
size: PropTypes__default.string
|
|
5748
5757
|
};
|
|
5749
5758
|
/**
|
|
5750
5759
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5755,7 +5764,7 @@ var propTypes$5 = {
|
|
|
5755
5764
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5756
5765
|
*/
|
|
5757
5766
|
|
|
5758
|
-
var DropdownButton = React__default
|
|
5767
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5759
5768
|
var title = _ref.title,
|
|
5760
5769
|
children = _ref.children,
|
|
5761
5770
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5768,18 +5777,18 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5768
5777
|
disabled = _ref.disabled,
|
|
5769
5778
|
href = _ref.href,
|
|
5770
5779
|
id = _ref.id,
|
|
5771
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5780
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5772
5781
|
|
|
5773
|
-
return /*#__PURE__*/React__default
|
|
5782
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5774
5783
|
ref: ref
|
|
5775
|
-
}, props), /*#__PURE__*/React__default
|
|
5784
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5776
5785
|
id: id,
|
|
5777
5786
|
href: href,
|
|
5778
5787
|
size: size,
|
|
5779
5788
|
variant: variant,
|
|
5780
5789
|
disabled: disabled,
|
|
5781
5790
|
childBsPrefix: bsPrefix
|
|
5782
|
-
}, title), /*#__PURE__*/React__default
|
|
5791
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5783
5792
|
align: menuAlign,
|
|
5784
5793
|
role: menuRole,
|
|
5785
5794
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5888,13 +5897,13 @@ var propTypes$6 = {
|
|
|
5888
5897
|
*
|
|
5889
5898
|
* @type {('valid'|'invalid')}
|
|
5890
5899
|
*/
|
|
5891
|
-
type: PropTypes__default
|
|
5900
|
+
type: PropTypes__default.string,
|
|
5892
5901
|
|
|
5893
5902
|
/** Display feedback as a tooltip. */
|
|
5894
|
-
tooltip: PropTypes__default
|
|
5895
|
-
as: PropTypes__default
|
|
5903
|
+
tooltip: PropTypes__default.bool,
|
|
5904
|
+
as: PropTypes__default.elementType
|
|
5896
5905
|
};
|
|
5897
|
-
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
|
|
5898
5907
|
function (_ref, ref) {
|
|
5899
5908
|
var _ref$as = _ref.as,
|
|
5900
5909
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5903,21 +5912,21 @@ function (_ref, ref) {
|
|
|
5903
5912
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5904
5913
|
_ref$tooltip = _ref.tooltip,
|
|
5905
5914
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5906
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5915
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5907
5916
|
|
|
5908
|
-
return /*#__PURE__*/React__default
|
|
5917
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5909
5918
|
ref: ref,
|
|
5910
|
-
className: index.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5919
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5911
5920
|
}));
|
|
5912
5921
|
});
|
|
5913
5922
|
Feedback.displayName = 'Feedback';
|
|
5914
5923
|
Feedback.propTypes = propTypes$6;
|
|
5915
5924
|
|
|
5916
|
-
var FormContext = React__default
|
|
5925
|
+
var FormContext = React__default.createContext({
|
|
5917
5926
|
controlId: undefined
|
|
5918
5927
|
});
|
|
5919
5928
|
|
|
5920
|
-
var FormCheckInput = React__default
|
|
5929
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5921
5930
|
var id = _ref.id,
|
|
5922
5931
|
bsPrefix = _ref.bsPrefix,
|
|
5923
5932
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5931,7 +5940,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5931
5940
|
isStatic = _ref.isStatic,
|
|
5932
5941
|
_ref$as = _ref.as,
|
|
5933
5942
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5934
|
-
props = index._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"]);
|
|
5935
5944
|
|
|
5936
5945
|
var _useContext = React.useContext(FormContext),
|
|
5937
5946
|
controlId = _useContext.controlId,
|
|
@@ -5942,21 +5951,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5942
5951
|
defaultPrefix = _ref2[1];
|
|
5943
5952
|
|
|
5944
5953
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5945
|
-
return /*#__PURE__*/React__default
|
|
5954
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5946
5955
|
ref: ref,
|
|
5947
5956
|
type: type,
|
|
5948
5957
|
id: id || controlId,
|
|
5949
|
-
className: index.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')
|
|
5950
5959
|
}));
|
|
5951
5960
|
});
|
|
5952
5961
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5953
5962
|
|
|
5954
|
-
var FormCheckLabel = React__default
|
|
5963
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5955
5964
|
var bsPrefix = _ref.bsPrefix,
|
|
5956
5965
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5957
5966
|
className = _ref.className,
|
|
5958
5967
|
htmlFor = _ref.htmlFor,
|
|
5959
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5968
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5960
5969
|
|
|
5961
5970
|
var _useContext = React.useContext(FormContext),
|
|
5962
5971
|
controlId = _useContext.controlId,
|
|
@@ -5967,15 +5976,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5967
5976
|
defaultPrefix = _ref2[1];
|
|
5968
5977
|
|
|
5969
5978
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5970
|
-
return /*#__PURE__*/React__default
|
|
5979
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5971
5980
|
ref: ref,
|
|
5972
5981
|
htmlFor: htmlFor || controlId,
|
|
5973
|
-
className: index.classnames(className, bsPrefix)
|
|
5982
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5974
5983
|
}));
|
|
5975
5984
|
});
|
|
5976
5985
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5977
5986
|
|
|
5978
|
-
var FormCheck = React__default
|
|
5987
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5979
5988
|
var id = _ref.id,
|
|
5980
5989
|
bsPrefix = _ref.bsPrefix,
|
|
5981
5990
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6001,7 +6010,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6001
6010
|
propCustom = _ref.custom,
|
|
6002
6011
|
_ref$as = _ref.as,
|
|
6003
6012
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6004
|
-
props = index._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"]);
|
|
6005
6014
|
|
|
6006
6015
|
var custom = type === 'switch' ? true : propCustom;
|
|
6007
6016
|
|
|
@@ -6021,7 +6030,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6021
6030
|
};
|
|
6022
6031
|
}, [controlId, custom, id]);
|
|
6023
6032
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6024
|
-
var input = /*#__PURE__*/React__default
|
|
6033
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
6025
6034
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6026
6035
|
ref: ref,
|
|
6027
6036
|
isValid: isValid,
|
|
@@ -6030,14 +6039,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6030
6039
|
disabled: disabled,
|
|
6031
6040
|
as: as
|
|
6032
6041
|
}));
|
|
6033
|
-
return /*#__PURE__*/React__default
|
|
6042
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6034
6043
|
value: innerFormContext
|
|
6035
|
-
}, /*#__PURE__*/React__default
|
|
6044
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6036
6045
|
style: style,
|
|
6037
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6038
|
-
}, 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, {
|
|
6039
6048
|
title: title
|
|
6040
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6049
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6041
6050
|
type: isValid ? 'valid' : 'invalid',
|
|
6042
6051
|
tooltip: feedbackTooltip
|
|
6043
6052
|
}, feedback))));
|
|
@@ -6046,7 +6055,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6046
6055
|
FormCheck.Input = FormCheckInput;
|
|
6047
6056
|
FormCheck.Label = FormCheckLabel;
|
|
6048
6057
|
|
|
6049
|
-
var FormFileInput = React__default
|
|
6058
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6050
6059
|
var id = _ref.id,
|
|
6051
6060
|
bsPrefix = _ref.bsPrefix,
|
|
6052
6061
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6056,7 +6065,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6056
6065
|
lang = _ref.lang,
|
|
6057
6066
|
_ref$as = _ref.as,
|
|
6058
6067
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6059
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6068
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6060
6069
|
|
|
6061
6070
|
var _useContext = React.useContext(FormContext),
|
|
6062
6071
|
controlId = _useContext.controlId,
|
|
@@ -6069,22 +6078,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6069
6078
|
defaultPrefix = _ref2[1];
|
|
6070
6079
|
|
|
6071
6080
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6072
|
-
return /*#__PURE__*/React__default
|
|
6081
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6073
6082
|
ref: ref,
|
|
6074
6083
|
id: id || controlId,
|
|
6075
6084
|
type: type,
|
|
6076
6085
|
lang: lang,
|
|
6077
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6086
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6078
6087
|
}));
|
|
6079
6088
|
});
|
|
6080
6089
|
FormFileInput.displayName = 'FormFileInput';
|
|
6081
6090
|
|
|
6082
|
-
var FormFileLabel = React__default
|
|
6091
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6083
6092
|
var bsPrefix = _ref.bsPrefix,
|
|
6084
6093
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6085
6094
|
className = _ref.className,
|
|
6086
6095
|
htmlFor = _ref.htmlFor,
|
|
6087
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6096
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6088
6097
|
|
|
6089
6098
|
var _useContext = React.useContext(FormContext),
|
|
6090
6099
|
controlId = _useContext.controlId,
|
|
@@ -6095,16 +6104,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6095
6104
|
defaultPrefix = _ref2[1];
|
|
6096
6105
|
|
|
6097
6106
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6098
|
-
return /*#__PURE__*/React__default
|
|
6107
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6099
6108
|
ref: ref,
|
|
6100
6109
|
htmlFor: htmlFor || controlId,
|
|
6101
|
-
className: index.classnames(className, bsPrefix),
|
|
6110
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6102
6111
|
"data-browse": props['data-browse']
|
|
6103
6112
|
}));
|
|
6104
6113
|
});
|
|
6105
6114
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6106
6115
|
|
|
6107
|
-
var FormFile = React__default
|
|
6116
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6108
6117
|
var id = _ref.id,
|
|
6109
6118
|
bsPrefix = _ref.bsPrefix,
|
|
6110
6119
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6128,7 +6137,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6128
6137
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6129
6138
|
_ref$inputAs = _ref.inputAs,
|
|
6130
6139
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6131
|
-
props = index._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"]);
|
|
6132
6141
|
|
|
6133
6142
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6134
6143
|
prefix = _ref2[0],
|
|
@@ -6147,7 +6156,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6147
6156
|
};
|
|
6148
6157
|
}, [controlId, custom, id]);
|
|
6149
6158
|
var hasLabel = label != null && label !== false && !children;
|
|
6150
|
-
var input = /*#__PURE__*/React__default
|
|
6159
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6151
6160
|
ref: ref,
|
|
6152
6161
|
isValid: isValid,
|
|
6153
6162
|
isInvalid: isInvalid,
|
|
@@ -6155,14 +6164,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6155
6164
|
as: inputAs,
|
|
6156
6165
|
lang: lang
|
|
6157
6166
|
}));
|
|
6158
|
-
return /*#__PURE__*/React__default
|
|
6167
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6159
6168
|
value: innerFormContext
|
|
6160
|
-
}, /*#__PURE__*/React__default
|
|
6169
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6161
6170
|
style: style,
|
|
6162
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6163
|
-
}, 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, {
|
|
6164
6173
|
"data-browse": dataBrowse
|
|
6165
|
-
}, 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, {
|
|
6166
6175
|
type: isValid ? 'valid' : 'invalid',
|
|
6167
6176
|
tooltip: feedbackTooltip
|
|
6168
6177
|
}, feedback))));
|
|
@@ -6171,7 +6180,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6171
6180
|
FormFile.Input = FormFileInput;
|
|
6172
6181
|
FormFile.Label = FormFileLabel;
|
|
6173
6182
|
|
|
6174
|
-
var FormControl = React__default
|
|
6183
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6175
6184
|
var bsPrefix = _ref.bsPrefix,
|
|
6176
6185
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6177
6186
|
type = _ref.type,
|
|
@@ -6188,7 +6197,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6188
6197
|
custom = _ref.custom,
|
|
6189
6198
|
_ref$as = _ref.as,
|
|
6190
6199
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6191
|
-
props = index._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"]);
|
|
6192
6201
|
|
|
6193
6202
|
var _useContext = React.useContext(FormContext),
|
|
6194
6203
|
controlId = _useContext.controlId;
|
|
@@ -6223,13 +6232,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6223
6232
|
}
|
|
6224
6233
|
|
|
6225
6234
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6226
|
-
return /*#__PURE__*/React__default
|
|
6235
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6227
6236
|
type: type,
|
|
6228
6237
|
size: htmlSize,
|
|
6229
6238
|
ref: ref,
|
|
6230
6239
|
readOnly: readOnly,
|
|
6231
6240
|
id: id || controlId,
|
|
6232
|
-
className: index.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6241
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6233
6242
|
}));
|
|
6234
6243
|
});
|
|
6235
6244
|
FormControl.displayName = 'FormControl';
|
|
@@ -6237,14 +6246,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6237
6246
|
Feedback: Feedback
|
|
6238
6247
|
});
|
|
6239
6248
|
|
|
6240
|
-
var FormGroup = React__default
|
|
6249
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6241
6250
|
var bsPrefix = _ref.bsPrefix,
|
|
6242
6251
|
className = _ref.className,
|
|
6243
6252
|
children = _ref.children,
|
|
6244
6253
|
controlId = _ref.controlId,
|
|
6245
6254
|
_ref$as = _ref.as,
|
|
6246
6255
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6247
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6256
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6248
6257
|
|
|
6249
6258
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6250
6259
|
var context = React.useMemo(function () {
|
|
@@ -6252,11 +6261,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6252
6261
|
controlId: controlId
|
|
6253
6262
|
};
|
|
6254
6263
|
}, [controlId]);
|
|
6255
|
-
return /*#__PURE__*/React__default
|
|
6264
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6256
6265
|
value: context
|
|
6257
|
-
}, /*#__PURE__*/React__default
|
|
6266
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6258
6267
|
ref: ref,
|
|
6259
|
-
className: index.classnames(className, bsPrefix)
|
|
6268
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6260
6269
|
}), children));
|
|
6261
6270
|
});
|
|
6262
6271
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6265,7 +6274,7 @@ var defaultProps$h = {
|
|
|
6265
6274
|
column: false,
|
|
6266
6275
|
srOnly: false
|
|
6267
6276
|
};
|
|
6268
|
-
var FormLabel = React__default
|
|
6277
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6269
6278
|
var _ref$as = _ref.as,
|
|
6270
6279
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6271
6280
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6273,7 +6282,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6273
6282
|
srOnly = _ref.srOnly,
|
|
6274
6283
|
className = _ref.className,
|
|
6275
6284
|
htmlFor = _ref.htmlFor,
|
|
6276
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6285
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6277
6286
|
|
|
6278
6287
|
var _useContext = React.useContext(FormContext),
|
|
6279
6288
|
controlId = _useContext.controlId;
|
|
@@ -6281,10 +6290,10 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6281
6290
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6282
6291
|
var columnClass = 'col-form-label';
|
|
6283
6292
|
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6284
|
-
var classes = index.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6293
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6285
6294
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6286
6295
|
htmlFor = htmlFor || controlId;
|
|
6287
|
-
if (column) return /*#__PURE__*/React__default
|
|
6296
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6288
6297
|
as: "label",
|
|
6289
6298
|
className: classes,
|
|
6290
6299
|
htmlFor: htmlFor
|
|
@@ -6292,7 +6301,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6292
6301
|
return (
|
|
6293
6302
|
/*#__PURE__*/
|
|
6294
6303
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6295
|
-
React__default
|
|
6304
|
+
React__default.createElement(Component, index$5._extends({
|
|
6296
6305
|
ref: ref,
|
|
6297
6306
|
className: classes,
|
|
6298
6307
|
htmlFor: htmlFor
|
|
@@ -6302,25 +6311,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6302
6311
|
FormLabel.displayName = 'FormLabel';
|
|
6303
6312
|
FormLabel.defaultProps = defaultProps$h;
|
|
6304
6313
|
|
|
6305
|
-
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
|
|
6306
6315
|
function (_ref, ref) {
|
|
6307
6316
|
var bsPrefix = _ref.bsPrefix,
|
|
6308
6317
|
className = _ref.className,
|
|
6309
6318
|
_ref$as = _ref.as,
|
|
6310
6319
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6311
6320
|
muted = _ref.muted,
|
|
6312
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6321
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6313
6322
|
|
|
6314
6323
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6315
|
-
return /*#__PURE__*/React__default
|
|
6324
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6316
6325
|
ref: ref,
|
|
6317
|
-
className: index.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6326
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6318
6327
|
}));
|
|
6319
6328
|
});
|
|
6320
6329
|
FormText.displayName = 'FormText';
|
|
6321
6330
|
|
|
6322
|
-
var Switch = React__default
|
|
6323
|
-
return /*#__PURE__*/React__default
|
|
6331
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6332
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6324
6333
|
ref: ref,
|
|
6325
6334
|
type: "switch"
|
|
6326
6335
|
}));
|
|
@@ -6333,19 +6342,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6333
6342
|
var defaultProps$i = {
|
|
6334
6343
|
inline: false
|
|
6335
6344
|
};
|
|
6336
|
-
var FormImpl = React__default
|
|
6345
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6337
6346
|
var bsPrefix = _ref.bsPrefix,
|
|
6338
6347
|
inline = _ref.inline,
|
|
6339
6348
|
className = _ref.className,
|
|
6340
6349
|
validated = _ref.validated,
|
|
6341
6350
|
_ref$as = _ref.as,
|
|
6342
6351
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6343
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6352
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6344
6353
|
|
|
6345
6354
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6346
|
-
return /*#__PURE__*/React__default
|
|
6355
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6347
6356
|
ref: ref,
|
|
6348
|
-
className: index.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6357
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6349
6358
|
}));
|
|
6350
6359
|
});
|
|
6351
6360
|
FormImpl.displayName = 'Form';
|
|
@@ -6362,20 +6371,20 @@ FormImpl.Text = FormText;
|
|
|
6362
6371
|
var defaultProps$j = {
|
|
6363
6372
|
fluid: false
|
|
6364
6373
|
};
|
|
6365
|
-
var Container = React__default
|
|
6374
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6366
6375
|
var bsPrefix = _ref.bsPrefix,
|
|
6367
6376
|
fluid = _ref.fluid,
|
|
6368
6377
|
_ref$as = _ref.as,
|
|
6369
6378
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6370
6379
|
className = _ref.className,
|
|
6371
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6380
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6372
6381
|
|
|
6373
6382
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6374
6383
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6375
|
-
return /*#__PURE__*/React__default
|
|
6384
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6376
6385
|
ref: ref
|
|
6377
6386
|
}, props, {
|
|
6378
|
-
className: index.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6387
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6379
6388
|
}));
|
|
6380
6389
|
});
|
|
6381
6390
|
Container.displayName = 'Container';
|
|
@@ -6385,27 +6394,27 @@ var propTypes$7 = {
|
|
|
6385
6394
|
/**
|
|
6386
6395
|
* @default 'img'
|
|
6387
6396
|
*/
|
|
6388
|
-
bsPrefix: PropTypes__default
|
|
6397
|
+
bsPrefix: PropTypes__default.string,
|
|
6389
6398
|
|
|
6390
6399
|
/**
|
|
6391
6400
|
* Sets image as fluid image.
|
|
6392
6401
|
*/
|
|
6393
|
-
fluid: PropTypes__default
|
|
6402
|
+
fluid: PropTypes__default.bool,
|
|
6394
6403
|
|
|
6395
6404
|
/**
|
|
6396
6405
|
* Sets image shape as rounded.
|
|
6397
6406
|
*/
|
|
6398
|
-
rounded: PropTypes__default
|
|
6407
|
+
rounded: PropTypes__default.bool,
|
|
6399
6408
|
|
|
6400
6409
|
/**
|
|
6401
6410
|
* Sets image shape as circle.
|
|
6402
6411
|
*/
|
|
6403
|
-
roundedCircle: PropTypes__default
|
|
6412
|
+
roundedCircle: PropTypes__default.bool,
|
|
6404
6413
|
|
|
6405
6414
|
/**
|
|
6406
6415
|
* Sets image shape as thumbnail.
|
|
6407
6416
|
*/
|
|
6408
|
-
thumbnail: PropTypes__default
|
|
6417
|
+
thumbnail: PropTypes__default.bool
|
|
6409
6418
|
};
|
|
6410
6419
|
var defaultProps$k = {
|
|
6411
6420
|
fluid: false,
|
|
@@ -6413,22 +6422,22 @@ var defaultProps$k = {
|
|
|
6413
6422
|
roundedCircle: false,
|
|
6414
6423
|
thumbnail: false
|
|
6415
6424
|
};
|
|
6416
|
-
var Image = React__default
|
|
6425
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6417
6426
|
var bsPrefix = _ref.bsPrefix,
|
|
6418
6427
|
className = _ref.className,
|
|
6419
6428
|
fluid = _ref.fluid,
|
|
6420
6429
|
rounded = _ref.rounded,
|
|
6421
6430
|
roundedCircle = _ref.roundedCircle,
|
|
6422
6431
|
thumbnail = _ref.thumbnail,
|
|
6423
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6432
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6424
6433
|
|
|
6425
6434
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6426
|
-
var classes = index.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6427
|
-
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({
|
|
6428
6437
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6429
6438
|
ref: ref
|
|
6430
6439
|
}, props, {
|
|
6431
|
-
className: index.classnames(className, classes)
|
|
6440
|
+
className: index$5.classnames(className, classes)
|
|
6432
6441
|
}));
|
|
6433
6442
|
});
|
|
6434
6443
|
Image.displayName = 'Image';
|
|
@@ -6437,14 +6446,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6437
6446
|
var defaultProps$l = {
|
|
6438
6447
|
fluid: true
|
|
6439
6448
|
};
|
|
6440
|
-
var FigureImage = React__default
|
|
6449
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6441
6450
|
var className = _ref.className,
|
|
6442
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6451
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6443
6452
|
|
|
6444
|
-
return /*#__PURE__*/React__default
|
|
6453
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6445
6454
|
ref: ref
|
|
6446
6455
|
}, props, {
|
|
6447
|
-
className: index.classnames(className, 'figure-img')
|
|
6456
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6448
6457
|
}));
|
|
6449
6458
|
});
|
|
6450
6459
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6468,13 +6477,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6468
6477
|
});
|
|
6469
6478
|
|
|
6470
6479
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6471
|
-
return /*#__PURE__*/React__default
|
|
6480
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6472
6481
|
type: "checkbox"
|
|
6473
6482
|
}, props)));
|
|
6474
6483
|
};
|
|
6475
6484
|
|
|
6476
6485
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6477
|
-
return /*#__PURE__*/React__default
|
|
6486
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6478
6487
|
type: "radio"
|
|
6479
6488
|
}, props)));
|
|
6480
6489
|
};
|
|
@@ -6487,24 +6496,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6487
6496
|
* @property {InputGroupRadio} Radio
|
|
6488
6497
|
* @property {InputGroupCheckbox} Checkbox
|
|
6489
6498
|
*/
|
|
6490
|
-
var InputGroup = React__default
|
|
6499
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6491
6500
|
var bsPrefix = _ref.bsPrefix,
|
|
6492
6501
|
size = _ref.size,
|
|
6493
6502
|
className = _ref.className,
|
|
6494
6503
|
_ref$as = _ref.as,
|
|
6495
6504
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6496
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6505
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6497
6506
|
|
|
6498
6507
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6499
|
-
return /*#__PURE__*/React__default
|
|
6508
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6500
6509
|
ref: ref
|
|
6501
6510
|
}, props, {
|
|
6502
|
-
className: index.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6511
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6503
6512
|
}));
|
|
6504
6513
|
});
|
|
6505
6514
|
InputGroup.displayName = 'InputGroup';
|
|
6506
6515
|
|
|
6507
|
-
var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
6516
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6508
6517
|
Text: InputGroupText,
|
|
6509
6518
|
Radio: InputGroupRadio,
|
|
6510
6519
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6515,7 +6524,7 @@ var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
|
6515
6524
|
var defaultProps$m = {
|
|
6516
6525
|
fluid: false
|
|
6517
6526
|
};
|
|
6518
|
-
var Jumbotron = React__default
|
|
6527
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6519
6528
|
var _classes;
|
|
6520
6529
|
|
|
6521
6530
|
var _ref$as = _ref.as,
|
|
@@ -6523,32 +6532,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6523
6532
|
className = _ref.className,
|
|
6524
6533
|
fluid = _ref.fluid,
|
|
6525
6534
|
bsPrefix = _ref.bsPrefix,
|
|
6526
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6535
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6527
6536
|
|
|
6528
6537
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6529
6538
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6530
|
-
return /*#__PURE__*/React__default
|
|
6539
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6531
6540
|
ref: ref
|
|
6532
6541
|
}, props, {
|
|
6533
|
-
className: index.classnames(className, classes)
|
|
6542
|
+
className: index$5.classnames(className, classes)
|
|
6534
6543
|
}));
|
|
6535
6544
|
});
|
|
6536
6545
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6537
6546
|
Jumbotron.displayName = 'Jumbotron';
|
|
6538
6547
|
|
|
6539
|
-
var TabContext = React__default
|
|
6548
|
+
var TabContext = React__default.createContext(null);
|
|
6540
6549
|
|
|
6541
6550
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6542
6551
|
var noop$4 = function noop() {};
|
|
6543
6552
|
|
|
6544
|
-
var AbstractNav = React__default
|
|
6553
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6545
6554
|
var _ref$as = _ref.as,
|
|
6546
6555
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6547
6556
|
onSelect = _ref.onSelect,
|
|
6548
6557
|
activeKey = _ref.activeKey,
|
|
6549
6558
|
role = _ref.role,
|
|
6550
6559
|
onKeyDown = _ref.onKeyDown,
|
|
6551
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6560
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6552
6561
|
|
|
6553
6562
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6554
6563
|
// and don't want to reset the set in the effect
|
|
@@ -6622,9 +6631,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6622
6631
|
needsRefocusRef.current = false;
|
|
6623
6632
|
});
|
|
6624
6633
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6625
|
-
return /*#__PURE__*/React__default
|
|
6634
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6626
6635
|
value: handleSelect
|
|
6627
|
-
}, /*#__PURE__*/React__default
|
|
6636
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6628
6637
|
value: {
|
|
6629
6638
|
role: role,
|
|
6630
6639
|
// used by NavLink to determine it's role
|
|
@@ -6632,7 +6641,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6632
6641
|
getControlledId: getControlledId || noop$4,
|
|
6633
6642
|
getControllerId: getControllerId || noop$4
|
|
6634
6643
|
}
|
|
6635
|
-
}, /*#__PURE__*/React__default
|
|
6644
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6636
6645
|
onKeyDown: handleKeyDown,
|
|
6637
6646
|
ref: mergedRef,
|
|
6638
6647
|
role: role
|
|
@@ -6642,14 +6651,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6642
6651
|
var defaultProps$n = {
|
|
6643
6652
|
disabled: false
|
|
6644
6653
|
};
|
|
6645
|
-
var AbstractNavItem = React__default
|
|
6654
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6646
6655
|
var active = _ref.active,
|
|
6647
6656
|
className = _ref.className,
|
|
6648
6657
|
eventKey = _ref.eventKey,
|
|
6649
6658
|
onSelect = _ref.onSelect,
|
|
6650
6659
|
onClick = _ref.onClick,
|
|
6651
6660
|
Component = _ref.as,
|
|
6652
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6661
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6653
6662
|
|
|
6654
6663
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6655
6664
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6679,10 +6688,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6679
6688
|
if (onSelect) onSelect(navKey, e);
|
|
6680
6689
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6681
6690
|
});
|
|
6682
|
-
return /*#__PURE__*/React__default
|
|
6691
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6683
6692
|
ref: ref,
|
|
6684
6693
|
onClick: handleOnclick,
|
|
6685
|
-
className: index.classnames(className, isActive && 'active')
|
|
6694
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6686
6695
|
}));
|
|
6687
6696
|
});
|
|
6688
6697
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6692,7 +6701,7 @@ var defaultProps$o = {
|
|
|
6692
6701
|
active: false,
|
|
6693
6702
|
disabled: false
|
|
6694
6703
|
};
|
|
6695
|
-
var ListGroupItem = React__default
|
|
6704
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6696
6705
|
var bsPrefix = _ref.bsPrefix,
|
|
6697
6706
|
active = _ref.active,
|
|
6698
6707
|
disabled = _ref.disabled,
|
|
@@ -6702,7 +6711,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6702
6711
|
as = _ref.as,
|
|
6703
6712
|
eventKey = _ref.eventKey,
|
|
6704
6713
|
onClick = _ref.onClick,
|
|
6705
|
-
props = index._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"]);
|
|
6706
6715
|
|
|
6707
6716
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6708
6717
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6714,7 +6723,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6714
6723
|
|
|
6715
6724
|
if (onClick) onClick(event);
|
|
6716
6725
|
}, [disabled, onClick]);
|
|
6717
|
-
return /*#__PURE__*/React__default
|
|
6726
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6718
6727
|
ref: ref
|
|
6719
6728
|
}, props, {
|
|
6720
6729
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6722,7 +6731,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6722
6731
|
,
|
|
6723
6732
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6724
6733
|
onClick: handleClick,
|
|
6725
|
-
className: index.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")
|
|
6726
6735
|
}));
|
|
6727
6736
|
});
|
|
6728
6737
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6732,7 +6741,7 @@ var defaultProps$p = {
|
|
|
6732
6741
|
variant: undefined,
|
|
6733
6742
|
horizontal: undefined
|
|
6734
6743
|
};
|
|
6735
|
-
var ListGroup = React__default
|
|
6744
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6736
6745
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6737
6746
|
activeKey: 'onSelect'
|
|
6738
6747
|
}),
|
|
@@ -6742,7 +6751,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6742
6751
|
horizontal = _useUncontrolled.horizontal,
|
|
6743
6752
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6744
6753
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6745
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6754
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6746
6755
|
|
|
6747
6756
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6748
6757
|
var horizontalVariant;
|
|
@@ -6754,11 +6763,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6754
6763
|
}
|
|
6755
6764
|
|
|
6756
6765
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6757
|
-
return /*#__PURE__*/React__default
|
|
6766
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6758
6767
|
ref: ref
|
|
6759
6768
|
}, controlledProps, {
|
|
6760
6769
|
as: as,
|
|
6761
|
-
className: index.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6770
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6762
6771
|
}));
|
|
6763
6772
|
});
|
|
6764
6773
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6766,18 +6775,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6766
6775
|
ListGroup.Item = ListGroupItem;
|
|
6767
6776
|
|
|
6768
6777
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6769
|
-
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
|
|
6770
6779
|
function (_ref, ref) {
|
|
6771
6780
|
var bsPrefix = _ref.bsPrefix,
|
|
6772
6781
|
className = _ref.className,
|
|
6773
6782
|
_ref$as = _ref.as,
|
|
6774
6783
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6775
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6784
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6776
6785
|
|
|
6777
6786
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6778
|
-
return /*#__PURE__*/React__default
|
|
6787
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6779
6788
|
ref: ref,
|
|
6780
|
-
className: index.classnames(className, prefix)
|
|
6789
|
+
className: index$5.classnames(className, prefix)
|
|
6781
6790
|
}));
|
|
6782
6791
|
});
|
|
6783
6792
|
Media.displayName = 'Media';
|
|
@@ -7163,7 +7172,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7163
7172
|
renderDialog = _ref.renderDialog,
|
|
7164
7173
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7165
7174
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7166
|
-
return /*#__PURE__*/React__default
|
|
7175
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7167
7176
|
} : _ref$renderBackdrop,
|
|
7168
7177
|
providedManager = _ref.manager,
|
|
7169
7178
|
containerRef = _ref.container,
|
|
@@ -7177,7 +7186,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7177
7186
|
onEnter = _ref.onEnter,
|
|
7178
7187
|
onEntering = _ref.onEntering,
|
|
7179
7188
|
onEntered = _ref.onEntered,
|
|
7180
|
-
rest =
|
|
7189
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7181
7190
|
|
|
7182
7191
|
var container = useWaitForDOMRef(containerRef);
|
|
7183
7192
|
var modal = useModalManager(providedManager);
|
|
@@ -7310,7 +7319,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7310
7319
|
return null;
|
|
7311
7320
|
}
|
|
7312
7321
|
|
|
7313
|
-
var dialogProps =
|
|
7322
|
+
var dialogProps = _extends({
|
|
7314
7323
|
role: role,
|
|
7315
7324
|
ref: modal.setDialogRef,
|
|
7316
7325
|
// apparently only works on the dialog role element
|
|
@@ -7321,12 +7330,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7321
7330
|
tabIndex: -1
|
|
7322
7331
|
});
|
|
7323
7332
|
|
|
7324
|
-
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, {
|
|
7325
7334
|
role: 'document'
|
|
7326
7335
|
}));
|
|
7327
7336
|
|
|
7328
7337
|
if (Transition) {
|
|
7329
|
-
dialog = /*#__PURE__*/React__default
|
|
7338
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7330
7339
|
appear: true,
|
|
7331
7340
|
unmountOnExit: true,
|
|
7332
7341
|
"in": !!show,
|
|
@@ -7349,20 +7358,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7349
7358
|
});
|
|
7350
7359
|
|
|
7351
7360
|
if (BackdropTransition) {
|
|
7352
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7361
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7353
7362
|
appear: true,
|
|
7354
7363
|
"in": !!show
|
|
7355
7364
|
}, backdropElement);
|
|
7356
7365
|
}
|
|
7357
7366
|
}
|
|
7358
7367
|
|
|
7359
|
-
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));
|
|
7360
7369
|
});
|
|
7361
7370
|
var propTypes$8 = {
|
|
7362
7371
|
/**
|
|
7363
7372
|
* Set the visibility of the Modal
|
|
7364
7373
|
*/
|
|
7365
|
-
show: PropTypes__default
|
|
7374
|
+
show: PropTypes__default.bool,
|
|
7366
7375
|
|
|
7367
7376
|
/**
|
|
7368
7377
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7370,12 +7379,12 @@ var propTypes$8 = {
|
|
|
7370
7379
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7371
7380
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7372
7381
|
*/
|
|
7373
|
-
container: PropTypes__default
|
|
7382
|
+
container: PropTypes__default.any,
|
|
7374
7383
|
|
|
7375
7384
|
/**
|
|
7376
7385
|
* A callback fired when the Modal is opening.
|
|
7377
7386
|
*/
|
|
7378
|
-
onShow: PropTypes__default
|
|
7387
|
+
onShow: PropTypes__default.func,
|
|
7379
7388
|
|
|
7380
7389
|
/**
|
|
7381
7390
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7383,12 +7392,12 @@ var propTypes$8 = {
|
|
|
7383
7392
|
* The `onHide` callback only signals intent from the Modal,
|
|
7384
7393
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7385
7394
|
*/
|
|
7386
|
-
onHide: PropTypes__default
|
|
7395
|
+
onHide: PropTypes__default.func,
|
|
7387
7396
|
|
|
7388
7397
|
/**
|
|
7389
7398
|
* Include a backdrop component.
|
|
7390
7399
|
*/
|
|
7391
|
-
backdrop: PropTypes__default
|
|
7400
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7392
7401
|
|
|
7393
7402
|
/**
|
|
7394
7403
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7398,7 +7407,7 @@ var propTypes$8 = {
|
|
|
7398
7407
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7399
7408
|
* ```
|
|
7400
7409
|
*/
|
|
7401
|
-
renderDialog: PropTypes__default
|
|
7410
|
+
renderDialog: PropTypes__default.func,
|
|
7402
7411
|
|
|
7403
7412
|
/**
|
|
7404
7413
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7408,42 +7417,42 @@ var propTypes$8 = {
|
|
|
7408
7417
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7409
7418
|
* ```
|
|
7410
7419
|
*/
|
|
7411
|
-
renderBackdrop: PropTypes__default
|
|
7420
|
+
renderBackdrop: PropTypes__default.func,
|
|
7412
7421
|
|
|
7413
7422
|
/**
|
|
7414
7423
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7415
7424
|
*
|
|
7416
7425
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7417
7426
|
*/
|
|
7418
|
-
onEscapeKeyDown: PropTypes__default
|
|
7427
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7419
7428
|
|
|
7420
7429
|
/**
|
|
7421
7430
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7422
7431
|
*/
|
|
7423
|
-
onBackdropClick: PropTypes__default
|
|
7432
|
+
onBackdropClick: PropTypes__default.func,
|
|
7424
7433
|
|
|
7425
7434
|
/**
|
|
7426
7435
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7427
7436
|
* and removed when it is closed.
|
|
7428
7437
|
*/
|
|
7429
|
-
containerClassName: PropTypes__default
|
|
7438
|
+
containerClassName: PropTypes__default.string,
|
|
7430
7439
|
|
|
7431
7440
|
/**
|
|
7432
7441
|
* Close the modal when escape key is pressed
|
|
7433
7442
|
*/
|
|
7434
|
-
keyboard: PropTypes__default
|
|
7443
|
+
keyboard: PropTypes__default.bool,
|
|
7435
7444
|
|
|
7436
7445
|
/**
|
|
7437
7446
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7438
7447
|
* to control animations for the dialog component.
|
|
7439
7448
|
*/
|
|
7440
|
-
transition: PropTypes__default
|
|
7449
|
+
transition: PropTypes__default.elementType,
|
|
7441
7450
|
|
|
7442
7451
|
/**
|
|
7443
7452
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7444
7453
|
* to control animations for the backdrop components.
|
|
7445
7454
|
*/
|
|
7446
|
-
backdropTransition: PropTypes__default
|
|
7455
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7447
7456
|
|
|
7448
7457
|
/**
|
|
7449
7458
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7453,7 +7462,7 @@ var propTypes$8 = {
|
|
|
7453
7462
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7454
7463
|
* accessible to assistive technologies, like screen readers.
|
|
7455
7464
|
*/
|
|
7456
|
-
autoFocus: PropTypes__default
|
|
7465
|
+
autoFocus: PropTypes__default.bool,
|
|
7457
7466
|
|
|
7458
7467
|
/**
|
|
7459
7468
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7461,58 +7470,58 @@ var propTypes$8 = {
|
|
|
7461
7470
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7462
7471
|
* accessible to assistive technologies, like screen readers.
|
|
7463
7472
|
*/
|
|
7464
|
-
enforceFocus: PropTypes__default
|
|
7473
|
+
enforceFocus: PropTypes__default.bool,
|
|
7465
7474
|
|
|
7466
7475
|
/**
|
|
7467
7476
|
* When `true` The modal will restore focus to previously focused element once
|
|
7468
7477
|
* modal is hidden
|
|
7469
7478
|
*/
|
|
7470
|
-
restoreFocus: PropTypes__default
|
|
7479
|
+
restoreFocus: PropTypes__default.bool,
|
|
7471
7480
|
|
|
7472
7481
|
/**
|
|
7473
7482
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7474
7483
|
*
|
|
7475
7484
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7476
7485
|
*/
|
|
7477
|
-
restoreFocusOptions: PropTypes__default
|
|
7478
|
-
preventScroll: PropTypes__default
|
|
7486
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7487
|
+
preventScroll: PropTypes__default.bool
|
|
7479
7488
|
}),
|
|
7480
7489
|
|
|
7481
7490
|
/**
|
|
7482
7491
|
* Callback fired before the Modal transitions in
|
|
7483
7492
|
*/
|
|
7484
|
-
onEnter: PropTypes__default
|
|
7493
|
+
onEnter: PropTypes__default.func,
|
|
7485
7494
|
|
|
7486
7495
|
/**
|
|
7487
7496
|
* Callback fired as the Modal begins to transition in
|
|
7488
7497
|
*/
|
|
7489
|
-
onEntering: PropTypes__default
|
|
7498
|
+
onEntering: PropTypes__default.func,
|
|
7490
7499
|
|
|
7491
7500
|
/**
|
|
7492
7501
|
* Callback fired after the Modal finishes transitioning in
|
|
7493
7502
|
*/
|
|
7494
|
-
onEntered: PropTypes__default
|
|
7503
|
+
onEntered: PropTypes__default.func,
|
|
7495
7504
|
|
|
7496
7505
|
/**
|
|
7497
7506
|
* Callback fired right before the Modal transitions out
|
|
7498
7507
|
*/
|
|
7499
|
-
onExit: PropTypes__default
|
|
7508
|
+
onExit: PropTypes__default.func,
|
|
7500
7509
|
|
|
7501
7510
|
/**
|
|
7502
7511
|
* Callback fired as the Modal begins to transition out
|
|
7503
7512
|
*/
|
|
7504
|
-
onExiting: PropTypes__default
|
|
7513
|
+
onExiting: PropTypes__default.func,
|
|
7505
7514
|
|
|
7506
7515
|
/**
|
|
7507
7516
|
* Callback fired after the Modal finishes transitioning out
|
|
7508
7517
|
*/
|
|
7509
|
-
onExited: PropTypes__default
|
|
7518
|
+
onExited: PropTypes__default.func,
|
|
7510
7519
|
|
|
7511
7520
|
/**
|
|
7512
7521
|
* A ModalManager instance used to track and manage the state of open
|
|
7513
7522
|
* Modals. Useful when customizing how modals interact within a container
|
|
7514
7523
|
*/
|
|
7515
|
-
manager: PropTypes__default
|
|
7524
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7516
7525
|
};
|
|
7517
7526
|
Modal.displayName = 'Modal';
|
|
7518
7527
|
Modal.propTypes = propTypes$8;
|
|
@@ -7595,12 +7604,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7595
7604
|
|
|
7596
7605
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7597
7606
|
|
|
7598
|
-
var ModalContext = React__default
|
|
7607
|
+
var ModalContext = React__default.createContext({
|
|
7599
7608
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7600
7609
|
onHide: function onHide() {}
|
|
7601
7610
|
});
|
|
7602
7611
|
|
|
7603
|
-
var ModalDialog = React__default
|
|
7612
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7604
7613
|
var bsPrefix = _ref.bsPrefix,
|
|
7605
7614
|
className = _ref.className,
|
|
7606
7615
|
contentClassName = _ref.contentClassName,
|
|
@@ -7608,15 +7617,15 @@ var ModalDialog = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7608
7617
|
size = _ref.size,
|
|
7609
7618
|
children = _ref.children,
|
|
7610
7619
|
scrollable = _ref.scrollable,
|
|
7611
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7620
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7612
7621
|
|
|
7613
7622
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7614
7623
|
var dialogClass = bsPrefix + "-dialog";
|
|
7615
|
-
return /*#__PURE__*/React__default
|
|
7624
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7616
7625
|
ref: ref,
|
|
7617
|
-
className: index.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7618
|
-
}), /*#__PURE__*/React__default
|
|
7619
|
-
className: index.classnames(bsPrefix + "-content", contentClassName)
|
|
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)
|
|
7620
7629
|
}, children));
|
|
7621
7630
|
});
|
|
7622
7631
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7627,14 +7636,14 @@ var defaultProps$q = {
|
|
|
7627
7636
|
closeLabel: 'Close',
|
|
7628
7637
|
closeButton: false
|
|
7629
7638
|
};
|
|
7630
|
-
var ModalHeader = React__default
|
|
7639
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7631
7640
|
var bsPrefix = _ref.bsPrefix,
|
|
7632
7641
|
closeLabel = _ref.closeLabel,
|
|
7633
7642
|
closeButton = _ref.closeButton,
|
|
7634
7643
|
onHide = _ref.onHide,
|
|
7635
7644
|
className = _ref.className,
|
|
7636
7645
|
children = _ref.children,
|
|
7637
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7646
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7638
7647
|
|
|
7639
7648
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7640
7649
|
var context = React.useContext(ModalContext);
|
|
@@ -7642,11 +7651,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7642
7651
|
if (context) context.onHide();
|
|
7643
7652
|
if (onHide) onHide();
|
|
7644
7653
|
});
|
|
7645
|
-
return /*#__PURE__*/React__default
|
|
7654
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7646
7655
|
ref: ref
|
|
7647
7656
|
}, props, {
|
|
7648
|
-
className: index.classnames(className, bsPrefix)
|
|
7649
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7657
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7658
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7650
7659
|
label: closeLabel,
|
|
7651
7660
|
onClick: handleClick
|
|
7652
7661
|
}));
|
|
@@ -7673,16 +7682,16 @@ var defaultProps$r = {
|
|
|
7673
7682
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7674
7683
|
|
|
7675
7684
|
function DialogTransition(props) {
|
|
7676
|
-
return /*#__PURE__*/React__default
|
|
7685
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7677
7686
|
}
|
|
7678
7687
|
|
|
7679
7688
|
function BackdropTransition(props) {
|
|
7680
|
-
return /*#__PURE__*/React__default
|
|
7689
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7681
7690
|
}
|
|
7682
7691
|
/* eslint-enable no-use-before-define */
|
|
7683
7692
|
|
|
7684
7693
|
|
|
7685
|
-
var Modal$1 = React__default
|
|
7694
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7686
7695
|
var bsPrefix = _ref.bsPrefix,
|
|
7687
7696
|
className = _ref.className,
|
|
7688
7697
|
style = _ref.style,
|
|
@@ -7711,7 +7720,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7711
7720
|
onExited = _ref.onExited,
|
|
7712
7721
|
backdropClassName = _ref.backdropClassName,
|
|
7713
7722
|
propsManager = _ref.manager,
|
|
7714
|
-
props = index._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"]);
|
|
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"]);
|
|
7715
7724
|
|
|
7716
7725
|
var _useState = React.useState({}),
|
|
7717
7726
|
modalStyle = _useState[0],
|
|
@@ -7877,12 +7886,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7877
7886
|
};
|
|
7878
7887
|
|
|
7879
7888
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7880
|
-
return /*#__PURE__*/React__default
|
|
7881
|
-
className: index.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')
|
|
7882
7891
|
}));
|
|
7883
7892
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7884
7893
|
|
|
7885
|
-
var baseModalStyle = index._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
|
|
7886
7895
|
|
|
7887
7896
|
|
|
7888
7897
|
if (!animation) {
|
|
@@ -7890,15 +7899,15 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7890
7899
|
}
|
|
7891
7900
|
|
|
7892
7901
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7893
|
-
return /*#__PURE__*/React__default
|
|
7902
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7894
7903
|
role: "dialog"
|
|
7895
7904
|
}, dialogProps, {
|
|
7896
7905
|
style: baseModalStyle,
|
|
7897
|
-
className: index.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7906
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7898
7907
|
onClick: backdrop ? handleClick : undefined,
|
|
7899
7908
|
onMouseUp: handleMouseUp,
|
|
7900
7909
|
"aria-labelledby": ariaLabelledby
|
|
7901
|
-
}), /*#__PURE__*/React__default
|
|
7910
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7902
7911
|
role: "document",
|
|
7903
7912
|
onMouseDown: handleDialogMouseDown,
|
|
7904
7913
|
className: dialogClassName,
|
|
@@ -7906,9 +7915,9 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7906
7915
|
}), children));
|
|
7907
7916
|
};
|
|
7908
7917
|
|
|
7909
|
-
return /*#__PURE__*/React__default
|
|
7918
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7910
7919
|
value: modalContext
|
|
7911
|
-
}, /*#__PURE__*/React__default
|
|
7920
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7912
7921
|
show: show,
|
|
7913
7922
|
ref: setModalRef,
|
|
7914
7923
|
backdrop: backdrop,
|
|
@@ -7946,19 +7955,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7946
7955
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7947
7956
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7948
7957
|
|
|
7949
|
-
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
|
|
7950
7959
|
function (_ref, ref) {
|
|
7951
7960
|
var bsPrefix = _ref.bsPrefix,
|
|
7952
7961
|
className = _ref.className,
|
|
7953
7962
|
children = _ref.children,
|
|
7954
7963
|
_ref$as = _ref.as,
|
|
7955
7964
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7956
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7965
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7957
7966
|
|
|
7958
7967
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7959
|
-
return /*#__PURE__*/React__default
|
|
7968
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7960
7969
|
ref: ref,
|
|
7961
|
-
className: index.classnames(className, bsPrefix)
|
|
7970
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7962
7971
|
}), children);
|
|
7963
7972
|
});
|
|
7964
7973
|
NavItem.displayName = 'NavItem';
|
|
@@ -7967,7 +7976,7 @@ var defaultProps$s = {
|
|
|
7967
7976
|
disabled: false,
|
|
7968
7977
|
as: SafeAnchor
|
|
7969
7978
|
};
|
|
7970
|
-
var NavLink = React__default
|
|
7979
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7971
7980
|
var bsPrefix = _ref.bsPrefix,
|
|
7972
7981
|
disabled = _ref.disabled,
|
|
7973
7982
|
className = _ref.className,
|
|
@@ -7975,17 +7984,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7975
7984
|
eventKey = _ref.eventKey,
|
|
7976
7985
|
onSelect = _ref.onSelect,
|
|
7977
7986
|
as = _ref.as,
|
|
7978
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7987
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7979
7988
|
|
|
7980
7989
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7981
|
-
return /*#__PURE__*/React__default
|
|
7990
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7982
7991
|
href: href,
|
|
7983
7992
|
ref: ref,
|
|
7984
7993
|
eventKey: eventKey,
|
|
7985
7994
|
as: as,
|
|
7986
7995
|
disabled: disabled,
|
|
7987
7996
|
onSelect: onSelect,
|
|
7988
|
-
className: index.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7997
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7989
7998
|
}));
|
|
7990
7999
|
});
|
|
7991
8000
|
NavLink.displayName = 'NavLink';
|
|
@@ -7995,7 +8004,7 @@ var defaultProps$t = {
|
|
|
7995
8004
|
justify: false,
|
|
7996
8005
|
fill: false
|
|
7997
8006
|
};
|
|
7998
|
-
var Nav = React__default
|
|
8007
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7999
8008
|
var _classNames;
|
|
8000
8009
|
|
|
8001
8010
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8011,7 +8020,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
8011
8020
|
className = _useUncontrolled.className,
|
|
8012
8021
|
children = _useUncontrolled.children,
|
|
8013
8022
|
activeKey = _useUncontrolled.activeKey,
|
|
8014
|
-
props = index._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"]);
|
|
8015
8024
|
|
|
8016
8025
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8017
8026
|
var navbarBsPrefix;
|
|
@@ -8027,11 +8036,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
8027
8036
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8028
8037
|
}
|
|
8029
8038
|
|
|
8030
|
-
return /*#__PURE__*/React__default
|
|
8039
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
8031
8040
|
as: as,
|
|
8032
8041
|
ref: ref,
|
|
8033
8042
|
activeKey: activeKey,
|
|
8034
|
-
className: index.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))
|
|
8035
8044
|
}, props), children);
|
|
8036
8045
|
});
|
|
8037
8046
|
Nav.displayName = 'Nav';
|
|
@@ -8039,31 +8048,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8039
8048
|
Nav.Item = NavItem;
|
|
8040
8049
|
Nav.Link = NavLink;
|
|
8041
8050
|
|
|
8042
|
-
var NavbarBrand = React__default
|
|
8051
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
8043
8052
|
var bsPrefix = _ref.bsPrefix,
|
|
8044
8053
|
className = _ref.className,
|
|
8045
8054
|
as = _ref.as,
|
|
8046
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8055
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8047
8056
|
|
|
8048
8057
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8049
8058
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8050
|
-
return /*#__PURE__*/React__default
|
|
8059
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8051
8060
|
ref: ref,
|
|
8052
|
-
className: index.classnames(className, bsPrefix)
|
|
8061
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8053
8062
|
}));
|
|
8054
8063
|
});
|
|
8055
8064
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8056
8065
|
|
|
8057
|
-
var NavbarCollapse = React__default
|
|
8066
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8058
8067
|
var children = _ref.children,
|
|
8059
8068
|
bsPrefix = _ref.bsPrefix,
|
|
8060
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8069
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8061
8070
|
|
|
8062
8071
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8063
|
-
return /*#__PURE__*/React__default
|
|
8064
|
-
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({
|
|
8065
8074
|
in: !!(context && context.expanded)
|
|
8066
|
-
}, props), /*#__PURE__*/React__default
|
|
8075
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8067
8076
|
ref: ref,
|
|
8068
8077
|
className: bsPrefix
|
|
8069
8078
|
}, children));
|
|
@@ -8074,7 +8083,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8074
8083
|
var defaultProps$u = {
|
|
8075
8084
|
label: 'Toggle navigation'
|
|
8076
8085
|
};
|
|
8077
|
-
var NavbarToggle = React__default
|
|
8086
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8078
8087
|
var bsPrefix = _ref.bsPrefix,
|
|
8079
8088
|
className = _ref.className,
|
|
8080
8089
|
children = _ref.children,
|
|
@@ -8082,7 +8091,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8082
8091
|
_ref$as = _ref.as,
|
|
8083
8092
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8084
8093
|
onClick = _ref.onClick,
|
|
8085
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8094
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8086
8095
|
|
|
8087
8096
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8088
8097
|
|
|
@@ -8099,12 +8108,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8099
8108
|
props.type = 'button';
|
|
8100
8109
|
}
|
|
8101
8110
|
|
|
8102
|
-
return /*#__PURE__*/React__default
|
|
8111
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8103
8112
|
ref: ref,
|
|
8104
8113
|
onClick: handleClick,
|
|
8105
8114
|
"aria-label": label,
|
|
8106
|
-
className: index.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8107
|
-
}), children || /*#__PURE__*/React__default
|
|
8115
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8116
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8108
8117
|
className: bsPrefix + "-icon"
|
|
8109
8118
|
}));
|
|
8110
8119
|
});
|
|
@@ -8119,7 +8128,7 @@ var defaultProps$v = {
|
|
|
8119
8128
|
variant: 'light',
|
|
8120
8129
|
collapseOnSelect: false
|
|
8121
8130
|
};
|
|
8122
|
-
var Navbar = React__default
|
|
8131
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8123
8132
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8124
8133
|
expanded: 'onToggle'
|
|
8125
8134
|
}),
|
|
@@ -8137,7 +8146,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8137
8146
|
_onToggle = _useUncontrolled.onToggle,
|
|
8138
8147
|
onSelect = _useUncontrolled.onSelect,
|
|
8139
8148
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8140
|
-
controlledProps = index._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"]);
|
|
8141
8150
|
|
|
8142
8151
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8143
8152
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8167,14 +8176,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8167
8176
|
expanded: !!expanded
|
|
8168
8177
|
};
|
|
8169
8178
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8170
|
-
return /*#__PURE__*/React__default
|
|
8179
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8171
8180
|
value: navbarContext
|
|
8172
|
-
}, /*#__PURE__*/React__default
|
|
8181
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8173
8182
|
value: handleCollapse
|
|
8174
|
-
}, /*#__PURE__*/React__default
|
|
8183
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8175
8184
|
ref: ref
|
|
8176
8185
|
}, controlledProps, {
|
|
8177
|
-
className: index.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)
|
|
8178
8187
|
}), children)));
|
|
8179
8188
|
});
|
|
8180
8189
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8190,37 +8199,37 @@ var propTypes$9 = {
|
|
|
8190
8199
|
* @type {string|number}
|
|
8191
8200
|
* @required
|
|
8192
8201
|
*/
|
|
8193
|
-
id: PropTypes__default
|
|
8202
|
+
id: PropTypes__default.any,
|
|
8194
8203
|
|
|
8195
8204
|
/** An `onClick` handler passed to the Toggle component */
|
|
8196
|
-
onClick: PropTypes__default
|
|
8205
|
+
onClick: PropTypes__default.func,
|
|
8197
8206
|
|
|
8198
8207
|
/** The content of the non-toggle Button. */
|
|
8199
|
-
title: PropTypes__default
|
|
8208
|
+
title: PropTypes__default.node.isRequired,
|
|
8200
8209
|
|
|
8201
8210
|
/** Disables the toggle NavLink */
|
|
8202
|
-
disabled: PropTypes__default
|
|
8211
|
+
disabled: PropTypes__default.bool,
|
|
8203
8212
|
|
|
8204
8213
|
/** Style the toggle NavLink as active */
|
|
8205
|
-
active: PropTypes__default
|
|
8214
|
+
active: PropTypes__default.bool,
|
|
8206
8215
|
|
|
8207
8216
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8208
|
-
menuRole: PropTypes__default
|
|
8217
|
+
menuRole: PropTypes__default.string,
|
|
8209
8218
|
|
|
8210
8219
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8211
|
-
renderMenuOnMount: PropTypes__default
|
|
8220
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8212
8221
|
|
|
8213
8222
|
/**
|
|
8214
8223
|
* Which event when fired outside the component will cause it to be closed.
|
|
8215
8224
|
*
|
|
8216
8225
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8217
8226
|
*/
|
|
8218
|
-
rootCloseEvent: PropTypes__default
|
|
8227
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8219
8228
|
|
|
8220
8229
|
/** @ignore */
|
|
8221
|
-
bsPrefix: PropTypes__default
|
|
8230
|
+
bsPrefix: PropTypes__default.string
|
|
8222
8231
|
};
|
|
8223
|
-
var NavDropdown = React__default
|
|
8232
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8224
8233
|
var id = _ref.id,
|
|
8225
8234
|
title = _ref.title,
|
|
8226
8235
|
children = _ref.children,
|
|
@@ -8230,20 +8239,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8230
8239
|
disabled = _ref.disabled,
|
|
8231
8240
|
active = _ref.active,
|
|
8232
8241
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8233
|
-
props = index._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"]);
|
|
8234
8243
|
|
|
8235
|
-
return /*#__PURE__*/React__default
|
|
8244
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8236
8245
|
ref: ref
|
|
8237
8246
|
}, props, {
|
|
8238
8247
|
as: NavItem
|
|
8239
|
-
}), /*#__PURE__*/React__default
|
|
8248
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8240
8249
|
id: id,
|
|
8241
8250
|
eventKey: null,
|
|
8242
8251
|
active: active,
|
|
8243
8252
|
disabled: disabled,
|
|
8244
8253
|
childBsPrefix: bsPrefix,
|
|
8245
8254
|
as: NavLink
|
|
8246
|
-
}, title), /*#__PURE__*/React__default
|
|
8255
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8247
8256
|
role: menuRole,
|
|
8248
8257
|
renderOnMount: renderMenuOnMount,
|
|
8249
8258
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8260,7 +8269,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8260
8269
|
* Built on top of `Popper.js`, the overlay component is
|
|
8261
8270
|
* great for custom tooltip overlays.
|
|
8262
8271
|
*/
|
|
8263
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8272
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8264
8273
|
var flip = props.flip,
|
|
8265
8274
|
offset = props.offset,
|
|
8266
8275
|
placement = props.placement,
|
|
@@ -8297,7 +8306,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8297
8306
|
})),
|
|
8298
8307
|
styles = _usePopper.styles,
|
|
8299
8308
|
attributes = _usePopper.attributes,
|
|
8300
|
-
popper =
|
|
8309
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8301
8310
|
|
|
8302
8311
|
if (props.show) {
|
|
8303
8312
|
if (exited) setExited(false);
|
|
@@ -8325,13 +8334,13 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8325
8334
|
return null;
|
|
8326
8335
|
}
|
|
8327
8336
|
|
|
8328
|
-
var child = props.children(
|
|
8337
|
+
var child = props.children(_extends({}, popper, {
|
|
8329
8338
|
show: !!props.show,
|
|
8330
|
-
props:
|
|
8339
|
+
props: _extends({}, attributes.popper, {
|
|
8331
8340
|
style: styles.popper,
|
|
8332
8341
|
ref: mergedRef
|
|
8333
8342
|
}),
|
|
8334
|
-
arrowProps:
|
|
8343
|
+
arrowProps: _extends({}, attributes.arrow, {
|
|
8335
8344
|
style: styles.arrow,
|
|
8336
8345
|
ref: attachArrowRef
|
|
8337
8346
|
})
|
|
@@ -8343,7 +8352,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8343
8352
|
onEnter = props.onEnter,
|
|
8344
8353
|
onEntering = props.onEntering,
|
|
8345
8354
|
onEntered = props.onEntered;
|
|
8346
|
-
child = /*#__PURE__*/React__default
|
|
8355
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8347
8356
|
"in": props.show,
|
|
8348
8357
|
appear: true,
|
|
8349
8358
|
onExit: onExit,
|
|
@@ -8355,36 +8364,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8355
8364
|
}, child);
|
|
8356
8365
|
}
|
|
8357
8366
|
|
|
8358
|
-
return container ? /*#__PURE__*/
|
|
8367
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8359
8368
|
});
|
|
8360
8369
|
Overlay.displayName = 'Overlay';
|
|
8361
8370
|
Overlay.propTypes = {
|
|
8362
8371
|
/**
|
|
8363
8372
|
* Set the visibility of the Overlay
|
|
8364
8373
|
*/
|
|
8365
|
-
show: PropTypes__default
|
|
8374
|
+
show: PropTypes__default.bool,
|
|
8366
8375
|
|
|
8367
8376
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8368
|
-
placement: PropTypes__default
|
|
8377
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8369
8378
|
|
|
8370
8379
|
/**
|
|
8371
8380
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8372
8381
|
* the overlay is positioned relative to.
|
|
8373
8382
|
*/
|
|
8374
|
-
target: PropTypes__default
|
|
8383
|
+
target: PropTypes__default.any,
|
|
8375
8384
|
|
|
8376
8385
|
/**
|
|
8377
8386
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8378
8387
|
* appended to it.
|
|
8379
8388
|
*/
|
|
8380
|
-
container: PropTypes__default
|
|
8389
|
+
container: PropTypes__default.any,
|
|
8381
8390
|
|
|
8382
8391
|
/**
|
|
8383
8392
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8384
8393
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8385
8394
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8386
8395
|
*/
|
|
8387
|
-
flip: PropTypes__default
|
|
8396
|
+
flip: PropTypes__default.bool,
|
|
8388
8397
|
|
|
8389
8398
|
/**
|
|
8390
8399
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8408,33 +8417,33 @@ Overlay.propTypes = {
|
|
|
8408
8417
|
* },
|
|
8409
8418
|
* }) => React.Element}
|
|
8410
8419
|
*/
|
|
8411
|
-
children: PropTypes__default
|
|
8420
|
+
children: PropTypes__default.func.isRequired,
|
|
8412
8421
|
|
|
8413
8422
|
/**
|
|
8414
8423
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8415
8424
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8416
8425
|
*/
|
|
8417
|
-
containerPadding: PropTypes__default
|
|
8426
|
+
containerPadding: PropTypes__default.number,
|
|
8418
8427
|
|
|
8419
8428
|
/**
|
|
8420
8429
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8421
8430
|
*/
|
|
8422
|
-
popperConfig: PropTypes__default
|
|
8431
|
+
popperConfig: PropTypes__default.object,
|
|
8423
8432
|
|
|
8424
8433
|
/**
|
|
8425
8434
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8426
8435
|
*/
|
|
8427
|
-
rootClose: PropTypes__default
|
|
8436
|
+
rootClose: PropTypes__default.bool,
|
|
8428
8437
|
|
|
8429
8438
|
/**
|
|
8430
8439
|
* Specify event for toggling overlay
|
|
8431
8440
|
*/
|
|
8432
|
-
rootCloseEvent: PropTypes__default
|
|
8441
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8433
8442
|
|
|
8434
8443
|
/**
|
|
8435
8444
|
* Specify disabled for disable RootCloseWrapper
|
|
8436
8445
|
*/
|
|
8437
|
-
rootCloseDisabled: PropTypes__default
|
|
8446
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8438
8447
|
|
|
8439
8448
|
/**
|
|
8440
8449
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8451,10 +8460,10 @@ Overlay.propTypes = {
|
|
|
8451
8460
|
if (props.rootClose) {
|
|
8452
8461
|
var _PropTypes$func;
|
|
8453
8462
|
|
|
8454
|
-
return (_PropTypes$func = PropTypes__default
|
|
8463
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8455
8464
|
}
|
|
8456
8465
|
|
|
8457
|
-
return PropTypes__default
|
|
8466
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8458
8467
|
},
|
|
8459
8468
|
|
|
8460
8469
|
/**
|
|
@@ -8462,37 +8471,37 @@ Overlay.propTypes = {
|
|
|
8462
8471
|
* used to animate the overlay as it changes visibility.
|
|
8463
8472
|
*/
|
|
8464
8473
|
// @ts-ignore
|
|
8465
|
-
transition: PropTypes__default
|
|
8474
|
+
transition: PropTypes__default.elementType,
|
|
8466
8475
|
|
|
8467
8476
|
/**
|
|
8468
8477
|
* Callback fired before the Overlay transitions in
|
|
8469
8478
|
*/
|
|
8470
|
-
onEnter: PropTypes__default
|
|
8479
|
+
onEnter: PropTypes__default.func,
|
|
8471
8480
|
|
|
8472
8481
|
/**
|
|
8473
8482
|
* Callback fired as the Overlay begins to transition in
|
|
8474
8483
|
*/
|
|
8475
|
-
onEntering: PropTypes__default
|
|
8484
|
+
onEntering: PropTypes__default.func,
|
|
8476
8485
|
|
|
8477
8486
|
/**
|
|
8478
8487
|
* Callback fired after the Overlay finishes transitioning in
|
|
8479
8488
|
*/
|
|
8480
|
-
onEntered: PropTypes__default
|
|
8489
|
+
onEntered: PropTypes__default.func,
|
|
8481
8490
|
|
|
8482
8491
|
/**
|
|
8483
8492
|
* Callback fired right before the Overlay transitions out
|
|
8484
8493
|
*/
|
|
8485
|
-
onExit: PropTypes__default
|
|
8494
|
+
onExit: PropTypes__default.func,
|
|
8486
8495
|
|
|
8487
8496
|
/**
|
|
8488
8497
|
* Callback fired as the Overlay begins to transition out
|
|
8489
8498
|
*/
|
|
8490
|
-
onExiting: PropTypes__default
|
|
8499
|
+
onExiting: PropTypes__default.func,
|
|
8491
8500
|
|
|
8492
8501
|
/**
|
|
8493
8502
|
* Callback fired after the Overlay finishes transitioning out
|
|
8494
8503
|
*/
|
|
8495
|
-
onExited: PropTypes__default
|
|
8504
|
+
onExited: PropTypes__default.func
|
|
8496
8505
|
};
|
|
8497
8506
|
|
|
8498
8507
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8509,34 +8518,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8509
8518
|
};
|
|
8510
8519
|
|
|
8511
8520
|
return RefHolder;
|
|
8512
|
-
}(React__default
|
|
8521
|
+
}(React__default.Component);
|
|
8513
8522
|
|
|
8514
8523
|
var defaultProps$w = {
|
|
8515
8524
|
active: false,
|
|
8516
8525
|
disabled: false,
|
|
8517
8526
|
activeLabel: '(current)'
|
|
8518
8527
|
};
|
|
8519
|
-
var PageItem = React__default
|
|
8528
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8520
8529
|
var active = _ref.active,
|
|
8521
8530
|
disabled = _ref.disabled,
|
|
8522
8531
|
className = _ref.className,
|
|
8523
8532
|
style = _ref.style,
|
|
8524
8533
|
activeLabel = _ref.activeLabel,
|
|
8525
8534
|
children = _ref.children,
|
|
8526
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8535
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8527
8536
|
|
|
8528
8537
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8529
|
-
return /*#__PURE__*/React__default
|
|
8538
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8530
8539
|
ref: ref,
|
|
8531
8540
|
style: style,
|
|
8532
|
-
className: index.classnames(className, 'page-item', {
|
|
8541
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8533
8542
|
active: active,
|
|
8534
8543
|
disabled: disabled
|
|
8535
8544
|
})
|
|
8536
|
-
}, /*#__PURE__*/React__default
|
|
8545
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8537
8546
|
className: "page-link",
|
|
8538
8547
|
disabled: disabled
|
|
8539
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8548
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8540
8549
|
className: "sr-only"
|
|
8541
8550
|
}, activeLabel)));
|
|
8542
8551
|
});
|
|
@@ -8550,11 +8559,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8550
8559
|
|
|
8551
8560
|
function Button(_ref2) {
|
|
8552
8561
|
var children = _ref2.children,
|
|
8553
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8562
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8554
8563
|
|
|
8555
|
-
return /*#__PURE__*/React__default
|
|
8564
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8556
8565
|
"aria-hidden": "true"
|
|
8557
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8566
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8558
8567
|
className: "sr-only"
|
|
8559
8568
|
}, label));
|
|
8560
8569
|
}
|
|
@@ -8577,18 +8586,18 @@ var Last = createButton('Last', '»');
|
|
|
8577
8586
|
* @property {PageItem} Next
|
|
8578
8587
|
* @property {PageItem} Last
|
|
8579
8588
|
*/
|
|
8580
|
-
var Pagination = React__default
|
|
8589
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8581
8590
|
var bsPrefix = _ref.bsPrefix,
|
|
8582
8591
|
className = _ref.className,
|
|
8583
8592
|
children = _ref.children,
|
|
8584
8593
|
size = _ref.size,
|
|
8585
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8594
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8586
8595
|
|
|
8587
8596
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8588
|
-
return /*#__PURE__*/React__default
|
|
8597
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8589
8598
|
ref: ref
|
|
8590
8599
|
}, props, {
|
|
8591
|
-
className: index.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8600
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8592
8601
|
}), children);
|
|
8593
8602
|
});
|
|
8594
8603
|
Pagination.First = First;
|
|
@@ -8598,42 +8607,42 @@ Pagination.Item = PageItem;
|
|
|
8598
8607
|
Pagination.Next = Next;
|
|
8599
8608
|
Pagination.Last = Last;
|
|
8600
8609
|
|
|
8601
|
-
var PopoverTitle = React__default
|
|
8610
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8602
8611
|
var _ref$as = _ref.as,
|
|
8603
8612
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8604
8613
|
bsPrefix = _ref.bsPrefix,
|
|
8605
8614
|
className = _ref.className,
|
|
8606
8615
|
children = _ref.children,
|
|
8607
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8616
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8608
8617
|
|
|
8609
8618
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8610
|
-
return /*#__PURE__*/React__default
|
|
8619
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8611
8620
|
ref: ref
|
|
8612
8621
|
}, props, {
|
|
8613
|
-
className: index.classnames(bsPrefix, className)
|
|
8622
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8614
8623
|
}), children);
|
|
8615
8624
|
});
|
|
8616
8625
|
|
|
8617
|
-
var PopoverContent = React__default
|
|
8626
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8618
8627
|
var _ref$as = _ref.as,
|
|
8619
8628
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8620
8629
|
bsPrefix = _ref.bsPrefix,
|
|
8621
8630
|
className = _ref.className,
|
|
8622
8631
|
children = _ref.children,
|
|
8623
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8632
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8624
8633
|
|
|
8625
8634
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8626
|
-
return /*#__PURE__*/React__default
|
|
8635
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8627
8636
|
ref: ref
|
|
8628
8637
|
}, props, {
|
|
8629
|
-
className: index.classnames(className, bsPrefix)
|
|
8638
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8630
8639
|
}), children);
|
|
8631
8640
|
});
|
|
8632
8641
|
|
|
8633
8642
|
var defaultProps$x = {
|
|
8634
8643
|
placement: 'right'
|
|
8635
8644
|
};
|
|
8636
|
-
var Popover = React__default
|
|
8645
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8637
8646
|
var bsPrefix = _ref.bsPrefix,
|
|
8638
8647
|
placement = _ref.placement,
|
|
8639
8648
|
className = _ref.className,
|
|
@@ -8643,22 +8652,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8643
8652
|
arrowProps = _ref.arrowProps,
|
|
8644
8653
|
_ = _ref.popper,
|
|
8645
8654
|
_1 = _ref.show,
|
|
8646
|
-
props = index._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"]);
|
|
8647
8656
|
|
|
8648
8657
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8649
8658
|
|
|
8650
8659
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8651
8660
|
primaryPlacement = _ref2[0];
|
|
8652
8661
|
|
|
8653
|
-
return /*#__PURE__*/React__default
|
|
8662
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8654
8663
|
ref: ref,
|
|
8655
8664
|
role: "tooltip",
|
|
8656
8665
|
style: style,
|
|
8657
8666
|
"x-placement": primaryPlacement,
|
|
8658
|
-
className: index.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8659
|
-
}, 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({
|
|
8660
8669
|
className: "arrow"
|
|
8661
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8670
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8662
8671
|
});
|
|
8663
8672
|
Popover.defaultProps = defaultProps$x;
|
|
8664
8673
|
Popover.Title = PopoverTitle;
|
|
@@ -8694,27 +8703,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8694
8703
|
style = _ref.style,
|
|
8695
8704
|
variant = _ref.variant,
|
|
8696
8705
|
bsPrefix = _ref.bsPrefix,
|
|
8697
|
-
props = index._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"]);
|
|
8698
8707
|
|
|
8699
|
-
return /*#__PURE__*/React__default
|
|
8708
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8700
8709
|
ref: ref
|
|
8701
8710
|
}, props, {
|
|
8702
8711
|
role: "progressbar",
|
|
8703
|
-
className: index.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8704
|
-
style: index._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({
|
|
8705
8714
|
width: getPercentage(now, min, max) + "%"
|
|
8706
8715
|
}, style),
|
|
8707
8716
|
"aria-valuenow": now,
|
|
8708
8717
|
"aria-valuemin": min,
|
|
8709
8718
|
"aria-valuemax": max
|
|
8710
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8719
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8711
8720
|
className: "sr-only"
|
|
8712
8721
|
}, label) : label);
|
|
8713
8722
|
}
|
|
8714
8723
|
|
|
8715
|
-
var ProgressBar = React__default
|
|
8724
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8716
8725
|
var isChild = _ref2.isChild,
|
|
8717
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8726
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8718
8727
|
|
|
8719
8728
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8720
8729
|
|
|
@@ -8733,12 +8742,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8733
8742
|
variant = props.variant,
|
|
8734
8743
|
className = props.className,
|
|
8735
8744
|
children = props.children,
|
|
8736
|
-
wrapperProps = index._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"]);
|
|
8737
8746
|
|
|
8738
|
-
return /*#__PURE__*/React__default
|
|
8747
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8739
8748
|
ref: ref
|
|
8740
8749
|
}, wrapperProps, {
|
|
8741
|
-
className: index.classnames(className, bsPrefix)
|
|
8750
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8742
8751
|
}), children ? map(children, function (child) {
|
|
8743
8752
|
return React.cloneElement(child, {
|
|
8744
8753
|
isChild: true
|
|
@@ -8761,21 +8770,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8761
8770
|
var defaultProps$z = {
|
|
8762
8771
|
aspectRatio: '1by1'
|
|
8763
8772
|
};
|
|
8764
|
-
var ResponsiveEmbed = React__default
|
|
8773
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8765
8774
|
var bsPrefix = _ref.bsPrefix,
|
|
8766
8775
|
className = _ref.className,
|
|
8767
8776
|
children = _ref.children,
|
|
8768
8777
|
aspectRatio = _ref.aspectRatio,
|
|
8769
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8778
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8770
8779
|
|
|
8771
8780
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8772
|
-
var child = React__default
|
|
8773
|
-
return /*#__PURE__*/React__default
|
|
8781
|
+
var child = React__default.Children.only(children);
|
|
8782
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8774
8783
|
ref: ref
|
|
8775
8784
|
}, props, {
|
|
8776
|
-
className: index.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8777
|
-
}), React__default
|
|
8778
|
-
className: index.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")
|
|
8779
8788
|
}));
|
|
8780
8789
|
});
|
|
8781
8790
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8784,13 +8793,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8784
8793
|
var defaultProps$A = {
|
|
8785
8794
|
noGutters: false
|
|
8786
8795
|
};
|
|
8787
|
-
var Row = React__default
|
|
8796
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8788
8797
|
var bsPrefix = _ref.bsPrefix,
|
|
8789
8798
|
className = _ref.className,
|
|
8790
8799
|
noGutters = _ref.noGutters,
|
|
8791
8800
|
_ref$as = _ref.as,
|
|
8792
8801
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8793
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8802
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8794
8803
|
|
|
8795
8804
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8796
8805
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8809,16 +8818,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8809
8818
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8810
8819
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8811
8820
|
});
|
|
8812
|
-
return /*#__PURE__*/React__default
|
|
8821
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8813
8822
|
ref: ref
|
|
8814
8823
|
}, props, {
|
|
8815
|
-
className: index.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))
|
|
8816
8825
|
}));
|
|
8817
8826
|
});
|
|
8818
8827
|
Row.displayName = 'Row';
|
|
8819
8828
|
Row.defaultProps = defaultProps$A;
|
|
8820
8829
|
|
|
8821
|
-
var Spinner = React__default
|
|
8830
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8822
8831
|
var bsPrefix = _ref.bsPrefix,
|
|
8823
8832
|
variant = _ref.variant,
|
|
8824
8833
|
animation = _ref.animation,
|
|
@@ -8827,14 +8836,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8827
8836
|
_ref$as = _ref.as,
|
|
8828
8837
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8829
8838
|
className = _ref.className,
|
|
8830
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8839
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8831
8840
|
|
|
8832
8841
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8833
8842
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8834
|
-
return /*#__PURE__*/React__default
|
|
8843
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8835
8844
|
ref: ref
|
|
8836
8845
|
}, props, {
|
|
8837
|
-
className: index.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8846
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8838
8847
|
}), children);
|
|
8839
8848
|
});
|
|
8840
8849
|
Spinner.displayName = 'Spinner';
|
|
@@ -8845,30 +8854,30 @@ var propTypes$a = {
|
|
|
8845
8854
|
* @type {string|number}
|
|
8846
8855
|
* @required
|
|
8847
8856
|
*/
|
|
8848
|
-
id: PropTypes__default
|
|
8857
|
+
id: PropTypes__default.any,
|
|
8849
8858
|
|
|
8850
8859
|
/**
|
|
8851
8860
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8852
8861
|
*/
|
|
8853
|
-
toggleLabel: PropTypes__default
|
|
8862
|
+
toggleLabel: PropTypes__default.string,
|
|
8854
8863
|
|
|
8855
8864
|
/** An `href` passed to the non-toggle Button */
|
|
8856
|
-
href: PropTypes__default
|
|
8865
|
+
href: PropTypes__default.string,
|
|
8857
8866
|
|
|
8858
8867
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8859
|
-
target: PropTypes__default
|
|
8868
|
+
target: PropTypes__default.string,
|
|
8860
8869
|
|
|
8861
8870
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8862
|
-
onClick: PropTypes__default
|
|
8871
|
+
onClick: PropTypes__default.func,
|
|
8863
8872
|
|
|
8864
8873
|
/** The content of the non-toggle Button. */
|
|
8865
|
-
title: PropTypes__default
|
|
8874
|
+
title: PropTypes__default.node.isRequired,
|
|
8866
8875
|
|
|
8867
8876
|
/** A `type` passed to the non-toggle Button */
|
|
8868
|
-
type: PropTypes__default
|
|
8877
|
+
type: PropTypes__default.string,
|
|
8869
8878
|
|
|
8870
8879
|
/** Disables both Buttons */
|
|
8871
|
-
disabled: PropTypes__default
|
|
8880
|
+
disabled: PropTypes__default.bool,
|
|
8872
8881
|
|
|
8873
8882
|
/**
|
|
8874
8883
|
* Aligns the dropdown menu responsively.
|
|
@@ -8880,32 +8889,32 @@ var propTypes$a = {
|
|
|
8880
8889
|
menuAlign: alignPropType,
|
|
8881
8890
|
|
|
8882
8891
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8883
|
-
menuRole: PropTypes__default
|
|
8892
|
+
menuRole: PropTypes__default.string,
|
|
8884
8893
|
|
|
8885
8894
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8886
|
-
renderMenuOnMount: PropTypes__default
|
|
8895
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8887
8896
|
|
|
8888
8897
|
/**
|
|
8889
8898
|
* Which event when fired outside the component will cause it to be closed.
|
|
8890
8899
|
*
|
|
8891
8900
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8892
8901
|
*/
|
|
8893
|
-
rootCloseEvent: PropTypes__default
|
|
8902
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8894
8903
|
|
|
8895
8904
|
/** @ignore */
|
|
8896
|
-
bsPrefix: PropTypes__default
|
|
8905
|
+
bsPrefix: PropTypes__default.string,
|
|
8897
8906
|
|
|
8898
8907
|
/** @ignore */
|
|
8899
|
-
variant: PropTypes__default
|
|
8908
|
+
variant: PropTypes__default.string,
|
|
8900
8909
|
|
|
8901
8910
|
/** @ignore */
|
|
8902
|
-
size: PropTypes__default
|
|
8911
|
+
size: PropTypes__default.string
|
|
8903
8912
|
};
|
|
8904
8913
|
var defaultProps$B = {
|
|
8905
8914
|
toggleLabel: 'Toggle dropdown',
|
|
8906
8915
|
type: 'button'
|
|
8907
8916
|
};
|
|
8908
|
-
var SplitButton = React__default
|
|
8917
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8909
8918
|
var id = _ref.id,
|
|
8910
8919
|
bsPrefix = _ref.bsPrefix,
|
|
8911
8920
|
size = _ref.size,
|
|
@@ -8921,13 +8930,13 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8921
8930
|
menuRole = _ref.menuRole,
|
|
8922
8931
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8923
8932
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8924
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8933
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8925
8934
|
|
|
8926
|
-
return /*#__PURE__*/React__default
|
|
8935
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8927
8936
|
ref: ref
|
|
8928
8937
|
}, props, {
|
|
8929
8938
|
as: ButtonGroup
|
|
8930
|
-
}), /*#__PURE__*/React__default
|
|
8939
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8931
8940
|
size: size,
|
|
8932
8941
|
variant: variant,
|
|
8933
8942
|
disabled: props.disabled,
|
|
@@ -8936,16 +8945,16 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8936
8945
|
target: target,
|
|
8937
8946
|
onClick: onClick,
|
|
8938
8947
|
type: type
|
|
8939
|
-
}, title), /*#__PURE__*/React__default
|
|
8948
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8940
8949
|
split: true,
|
|
8941
8950
|
id: id ? id.toString() : undefined,
|
|
8942
8951
|
size: size,
|
|
8943
8952
|
variant: variant,
|
|
8944
8953
|
disabled: props.disabled,
|
|
8945
8954
|
childBsPrefix: bsPrefix
|
|
8946
|
-
}, /*#__PURE__*/React__default
|
|
8955
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8947
8956
|
className: "sr-only"
|
|
8948
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8957
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8949
8958
|
align: menuAlign,
|
|
8950
8959
|
role: menuRole,
|
|
8951
8960
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8989,25 +8998,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8989
8998
|
}
|
|
8990
8999
|
};
|
|
8991
9000
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8992
|
-
return /*#__PURE__*/React__default
|
|
9001
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8993
9002
|
value: tabContext
|
|
8994
|
-
}, /*#__PURE__*/React__default
|
|
9003
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8995
9004
|
value: onSelect || null
|
|
8996
9005
|
}, children));
|
|
8997
9006
|
};
|
|
8998
9007
|
|
|
8999
|
-
var TabContent = React__default
|
|
9008
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
9000
9009
|
var bsPrefix = _ref.bsPrefix,
|
|
9001
9010
|
_ref$as = _ref.as,
|
|
9002
9011
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9003
9012
|
className = _ref.className,
|
|
9004
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9013
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9005
9014
|
|
|
9006
9015
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9007
|
-
return /*#__PURE__*/React__default
|
|
9016
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
9008
9017
|
ref: ref
|
|
9009
9018
|
}, props, {
|
|
9010
|
-
className: index.classnames(className, decoratedBsPrefix)
|
|
9019
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
9011
9020
|
}));
|
|
9012
9021
|
});
|
|
9013
9022
|
|
|
@@ -9018,11 +9027,11 @@ function useTabContext(props) {
|
|
|
9018
9027
|
var activeKey = context.activeKey,
|
|
9019
9028
|
getControlledId = context.getControlledId,
|
|
9020
9029
|
getControllerId = context.getControllerId,
|
|
9021
|
-
rest = index._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9030
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9022
9031
|
|
|
9023
9032
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9024
9033
|
var key = makeEventKey(props.eventKey);
|
|
9025
|
-
return index._extends({}, props, {
|
|
9034
|
+
return index$5._extends({}, props, {
|
|
9026
9035
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9027
9036
|
id: getControlledId(props.eventKey),
|
|
9028
9037
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9032,7 +9041,7 @@ function useTabContext(props) {
|
|
|
9032
9041
|
});
|
|
9033
9042
|
}
|
|
9034
9043
|
|
|
9035
|
-
var TabPane = React__default
|
|
9044
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
9036
9045
|
var _useTabContext = useTabContext(props),
|
|
9037
9046
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9038
9047
|
className = _useTabContext.className,
|
|
@@ -9049,19 +9058,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9049
9058
|
_useTabContext$as = _useTabContext.as,
|
|
9050
9059
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9051
9060
|
_ = _useTabContext.eventKey,
|
|
9052
|
-
rest = index._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"]);
|
|
9053
9062
|
|
|
9054
9063
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9055
9064
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9056
|
-
var pane = /*#__PURE__*/React__default
|
|
9065
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
9057
9066
|
ref: ref,
|
|
9058
9067
|
role: "tabpanel",
|
|
9059
9068
|
"aria-hidden": !active,
|
|
9060
|
-
className: index.classnames(className, prefix, {
|
|
9069
|
+
className: index$5.classnames(className, prefix, {
|
|
9061
9070
|
active: active
|
|
9062
9071
|
})
|
|
9063
9072
|
}));
|
|
9064
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9073
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9065
9074
|
in: active,
|
|
9066
9075
|
onEnter: onEnter,
|
|
9067
9076
|
onEntering: onEntering,
|
|
@@ -9074,9 +9083,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9074
9083
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9075
9084
|
// conflict with the top level one.
|
|
9076
9085
|
|
|
9077
|
-
return /*#__PURE__*/React__default
|
|
9086
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9078
9087
|
value: null
|
|
9079
|
-
}, /*#__PURE__*/React__default
|
|
9088
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9080
9089
|
value: null
|
|
9081
9090
|
}, pane));
|
|
9082
9091
|
});
|
|
@@ -9097,13 +9106,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9097
9106
|
};
|
|
9098
9107
|
|
|
9099
9108
|
return Tab;
|
|
9100
|
-
}(React__default
|
|
9109
|
+
}(React__default.Component);
|
|
9101
9110
|
|
|
9102
9111
|
Tab.Container = TabContainer;
|
|
9103
9112
|
Tab.Content = TabContent;
|
|
9104
9113
|
Tab.Pane = TabPane;
|
|
9105
9114
|
|
|
9106
|
-
var Table = React__default
|
|
9115
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9107
9116
|
var bsPrefix = _ref.bsPrefix,
|
|
9108
9117
|
className = _ref.className,
|
|
9109
9118
|
striped = _ref.striped,
|
|
@@ -9113,11 +9122,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9113
9122
|
size = _ref.size,
|
|
9114
9123
|
variant = _ref.variant,
|
|
9115
9124
|
responsive = _ref.responsive,
|
|
9116
|
-
props = index._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"]);
|
|
9117
9126
|
|
|
9118
9127
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9119
|
-
var classes = index.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9120
|
-
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, {
|
|
9121
9130
|
className: classes,
|
|
9122
9131
|
ref: ref
|
|
9123
9132
|
}));
|
|
@@ -9129,7 +9138,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9129
9138
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9130
9139
|
}
|
|
9131
9140
|
|
|
9132
|
-
return /*#__PURE__*/React__default
|
|
9141
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9133
9142
|
className: responsiveClass
|
|
9134
9143
|
}, table);
|
|
9135
9144
|
}
|
|
@@ -9137,7 +9146,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9137
9146
|
return table;
|
|
9138
9147
|
});
|
|
9139
9148
|
|
|
9140
|
-
var ToastContext = React__default
|
|
9149
|
+
var ToastContext = React__default.createContext({
|
|
9141
9150
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9142
9151
|
onClose: function onClose() {}
|
|
9143
9152
|
});
|
|
@@ -9146,13 +9155,13 @@ var defaultProps$C = {
|
|
|
9146
9155
|
closeLabel: 'Close',
|
|
9147
9156
|
closeButton: true
|
|
9148
9157
|
};
|
|
9149
|
-
var ToastHeader = React__default
|
|
9158
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9150
9159
|
var bsPrefix = _ref.bsPrefix,
|
|
9151
9160
|
closeLabel = _ref.closeLabel,
|
|
9152
9161
|
closeButton = _ref.closeButton,
|
|
9153
9162
|
className = _ref.className,
|
|
9154
9163
|
children = _ref.children,
|
|
9155
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9164
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9156
9165
|
|
|
9157
9166
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9158
9167
|
var context = React.useContext(ToastContext);
|
|
@@ -9161,11 +9170,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9161
9170
|
context.onClose(e);
|
|
9162
9171
|
}
|
|
9163
9172
|
});
|
|
9164
|
-
return /*#__PURE__*/React__default
|
|
9173
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9165
9174
|
ref: ref
|
|
9166
9175
|
}, props, {
|
|
9167
|
-
className: index.classnames(bsPrefix, className)
|
|
9168
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9176
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9177
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9169
9178
|
label: closeLabel,
|
|
9170
9179
|
onClick: handleClick,
|
|
9171
9180
|
className: "ml-2 mb-1",
|
|
@@ -9177,7 +9186,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9177
9186
|
|
|
9178
9187
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9179
9188
|
|
|
9180
|
-
var Toast = React__default
|
|
9189
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9181
9190
|
var bsPrefix = _ref.bsPrefix,
|
|
9182
9191
|
className = _ref.className,
|
|
9183
9192
|
children = _ref.children,
|
|
@@ -9192,7 +9201,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9192
9201
|
_ref$autohide = _ref.autohide,
|
|
9193
9202
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9194
9203
|
onClose = _ref.onClose,
|
|
9195
|
-
props = index._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"]);
|
|
9196
9205
|
|
|
9197
9206
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9198
9207
|
// timer in case these values change.
|
|
@@ -9220,16 +9229,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9220
9229
|
};
|
|
9221
9230
|
}, [onClose]);
|
|
9222
9231
|
var hasAnimation = !!(Transition && animation);
|
|
9223
|
-
var toast = /*#__PURE__*/React__default
|
|
9232
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9224
9233
|
ref: ref,
|
|
9225
|
-
className: index.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9234
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9226
9235
|
role: "alert",
|
|
9227
9236
|
"aria-live": "assertive",
|
|
9228
9237
|
"aria-atomic": "true"
|
|
9229
9238
|
}), children);
|
|
9230
|
-
return /*#__PURE__*/React__default
|
|
9239
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9231
9240
|
value: toastContext
|
|
9232
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9241
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9233
9242
|
in: show,
|
|
9234
9243
|
unmountOnExit: true
|
|
9235
9244
|
}, toast) : toast);
|
|
@@ -9244,7 +9253,7 @@ var noop$5 = function noop() {
|
|
|
9244
9253
|
return undefined;
|
|
9245
9254
|
};
|
|
9246
9255
|
|
|
9247
|
-
var ToggleButton = React__default
|
|
9256
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9248
9257
|
var children = _ref.children,
|
|
9249
9258
|
name = _ref.name,
|
|
9250
9259
|
className = _ref.className,
|
|
@@ -9254,7 +9263,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9254
9263
|
value = _ref.value,
|
|
9255
9264
|
disabled = _ref.disabled,
|
|
9256
9265
|
inputRef = _ref.inputRef,
|
|
9257
|
-
props = index._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"]);
|
|
9258
9267
|
|
|
9259
9268
|
var _useState = React.useState(false),
|
|
9260
9269
|
focused = _useState[0],
|
|
@@ -9266,13 +9275,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9266
9275
|
var handleBlur = React.useCallback(function (e) {
|
|
9267
9276
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9268
9277
|
}, []);
|
|
9269
|
-
return /*#__PURE__*/React__default
|
|
9278
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9270
9279
|
ref: ref,
|
|
9271
|
-
className: index.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9280
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9272
9281
|
type: undefined,
|
|
9273
9282
|
active: !!checked,
|
|
9274
9283
|
as: "label"
|
|
9275
|
-
}), /*#__PURE__*/React__default
|
|
9284
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9276
9285
|
name: name,
|
|
9277
9286
|
type: type,
|
|
9278
9287
|
value: value,
|
|
@@ -9291,7 +9300,7 @@ var defaultProps$D = {
|
|
|
9291
9300
|
type: 'radio',
|
|
9292
9301
|
vertical: false
|
|
9293
9302
|
};
|
|
9294
|
-
var ToggleButtonGroup = React__default
|
|
9303
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9295
9304
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9296
9305
|
value: 'onChange'
|
|
9297
9306
|
}),
|
|
@@ -9300,7 +9309,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9300
9309
|
name = _useUncontrolled.name,
|
|
9301
9310
|
value = _useUncontrolled.value,
|
|
9302
9311
|
onChange = _useUncontrolled.onChange,
|
|
9303
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9312
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9304
9313
|
|
|
9305
9314
|
var getValues = function getValues() {
|
|
9306
9315
|
return value == null ? [] : [].concat(value);
|
|
@@ -9329,7 +9338,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9329
9338
|
};
|
|
9330
9339
|
|
|
9331
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;
|
|
9332
|
-
return /*#__PURE__*/React__default
|
|
9341
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9333
9342
|
ref: ref,
|
|
9334
9343
|
toggle: true
|
|
9335
9344
|
}), map(children, function (child) {
|
|
@@ -9342,7 +9351,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9342
9351
|
return handleToggle(childVal, e);
|
|
9343
9352
|
};
|
|
9344
9353
|
|
|
9345
|
-
return React__default
|
|
9354
|
+
return React__default.cloneElement(child, {
|
|
9346
9355
|
type: type,
|
|
9347
9356
|
name: child.name || name,
|
|
9348
9357
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9356,7 +9365,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9356
9365
|
var defaultProps$E = {
|
|
9357
9366
|
placement: 'right'
|
|
9358
9367
|
};
|
|
9359
|
-
var Tooltip = React__default
|
|
9368
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9360
9369
|
var bsPrefix = _ref.bsPrefix,
|
|
9361
9370
|
placement = _ref.placement,
|
|
9362
9371
|
className = _ref.className,
|
|
@@ -9365,29 +9374,29 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9365
9374
|
arrowProps = _ref.arrowProps,
|
|
9366
9375
|
_ = _ref.popper,
|
|
9367
9376
|
_2 = _ref.show,
|
|
9368
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9377
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9369
9378
|
|
|
9370
9379
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9371
9380
|
|
|
9372
9381
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9373
9382
|
primaryPlacement = _ref2[0];
|
|
9374
9383
|
|
|
9375
|
-
return /*#__PURE__*/React__default
|
|
9384
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9376
9385
|
ref: ref,
|
|
9377
9386
|
style: style,
|
|
9378
9387
|
role: "tooltip",
|
|
9379
9388
|
"x-placement": primaryPlacement,
|
|
9380
|
-
className: index.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9381
|
-
}, props), /*#__PURE__*/React__default
|
|
9389
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9390
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9382
9391
|
className: "arrow"
|
|
9383
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9392
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9384
9393
|
className: bsPrefix + "-inner"
|
|
9385
9394
|
}, children));
|
|
9386
9395
|
});
|
|
9387
9396
|
Tooltip.defaultProps = defaultProps$E;
|
|
9388
9397
|
Tooltip.displayName = 'Tooltip';
|
|
9389
9398
|
|
|
9390
|
-
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";
|
|
9391
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" };
|
|
9392
9401
|
styleInject_es.styleInject(css);
|
|
9393
9402
|
|
|
@@ -9398,54 +9407,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9398
9407
|
client = props.client;
|
|
9399
9408
|
|
|
9400
9409
|
|
|
9401
|
-
return React__default
|
|
9410
|
+
return React__default.createElement(
|
|
9402
9411
|
'div',
|
|
9403
9412
|
{ className: styles.article },
|
|
9404
|
-
React__default
|
|
9413
|
+
React__default.createElement(
|
|
9405
9414
|
'a',
|
|
9406
9415
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9407
|
-
React__default
|
|
9416
|
+
React__default.createElement(
|
|
9408
9417
|
'div',
|
|
9409
9418
|
{ className: styles.thumb },
|
|
9410
|
-
React__default
|
|
9419
|
+
React__default.createElement(
|
|
9411
9420
|
'figure',
|
|
9412
9421
|
null,
|
|
9413
|
-
React__default
|
|
9414
|
-
index$
|
|
9422
|
+
React__default.createElement(
|
|
9423
|
+
index$2.LazyLoad,
|
|
9415
9424
|
null,
|
|
9416
|
-
React__default
|
|
9425
|
+
React__default.createElement('img', {
|
|
9417
9426
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9418
9427
|
})
|
|
9419
9428
|
)
|
|
9420
9429
|
)
|
|
9421
9430
|
),
|
|
9422
|
-
React__default
|
|
9431
|
+
React__default.createElement(
|
|
9423
9432
|
'div',
|
|
9424
9433
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9425
|
-
React__default
|
|
9434
|
+
React__default.createElement(
|
|
9426
9435
|
'div',
|
|
9427
9436
|
{ className: styles.name },
|
|
9428
9437
|
data.name
|
|
9429
9438
|
),
|
|
9430
|
-
data.published && React__default
|
|
9439
|
+
data.published && React__default.createElement(
|
|
9431
9440
|
'p',
|
|
9432
9441
|
{ className: styles.published },
|
|
9433
9442
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9434
9443
|
),
|
|
9435
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9444
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9436
9445
|
'p',
|
|
9437
9446
|
{ className: styles.author },
|
|
9438
9447
|
'By ',
|
|
9439
|
-
React__default
|
|
9448
|
+
React__default.createElement(
|
|
9440
9449
|
'span',
|
|
9441
9450
|
null,
|
|
9442
9451
|
data.authorMapping.displayName
|
|
9443
9452
|
)
|
|
9444
9453
|
),
|
|
9445
|
-
data.description && React__default
|
|
9454
|
+
data.description && React__default.createElement(
|
|
9446
9455
|
'div',
|
|
9447
9456
|
{ className: 'media-series-desc' },
|
|
9448
|
-
React__default
|
|
9457
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9449
9458
|
)
|
|
9450
9459
|
)
|
|
9451
9460
|
)
|
|
@@ -9474,11 +9483,11 @@ var Filter = function Filter(_ref) {
|
|
|
9474
9483
|
_useState6 = slicedToArray._slicedToArray(_useState5, 2),
|
|
9475
9484
|
grandChildData = _useState6[0],
|
|
9476
9485
|
setGrandChildData = _useState6[1];
|
|
9477
|
-
/*
|
|
9478
|
-
{parent: showAll,
|
|
9479
|
-
chidlren: show selected from parent,
|
|
9480
|
-
grandchildren: show selected from children
|
|
9481
|
-
}
|
|
9486
|
+
/*
|
|
9487
|
+
{parent: showAll,
|
|
9488
|
+
chidlren: show selected from parent,
|
|
9489
|
+
grandchildren: show selected from children
|
|
9490
|
+
}
|
|
9482
9491
|
*/
|
|
9483
9492
|
|
|
9484
9493
|
|
|
@@ -9493,7 +9502,7 @@ var Filter = function Filter(_ref) {
|
|
|
9493
9502
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9494
9503
|
if (type === 'parent') {
|
|
9495
9504
|
setParentData(function (prevState) {
|
|
9496
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9505
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9497
9506
|
});
|
|
9498
9507
|
if (group && group.children && group.children.length > 0) {
|
|
9499
9508
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9507,7 +9516,7 @@ var Filter = function Filter(_ref) {
|
|
|
9507
9516
|
}
|
|
9508
9517
|
if (type === 'child') {
|
|
9509
9518
|
setChildData(function (prevState) {
|
|
9510
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9519
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9511
9520
|
});
|
|
9512
9521
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9513
9522
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9526,7 +9535,7 @@ var Filter = function Filter(_ref) {
|
|
|
9526
9535
|
}
|
|
9527
9536
|
if (type === 'grandchild') {
|
|
9528
9537
|
setGrandChildData(function (prevState) {
|
|
9529
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9538
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9530
9539
|
});
|
|
9531
9540
|
//handle filter
|
|
9532
9541
|
if (!group._id) {
|
|
@@ -9542,13 +9551,13 @@ var Filter = function Filter(_ref) {
|
|
|
9542
9551
|
}
|
|
9543
9552
|
};
|
|
9544
9553
|
|
|
9545
|
-
return React__default
|
|
9554
|
+
return React__default.createElement(
|
|
9546
9555
|
'div',
|
|
9547
9556
|
{ className: 'flex-container' },
|
|
9548
|
-
parentData && React__default
|
|
9557
|
+
parentData && React__default.createElement(
|
|
9549
9558
|
DropdownButton,
|
|
9550
9559
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9551
|
-
React__default
|
|
9560
|
+
React__default.createElement(
|
|
9552
9561
|
Dropdown$1.Item,
|
|
9553
9562
|
{ onSelect: function onSelect() {
|
|
9554
9563
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9557,7 +9566,7 @@ var Filter = function Filter(_ref) {
|
|
|
9557
9566
|
),
|
|
9558
9567
|
parentData.data.map(function (docGroup) {
|
|
9559
9568
|
if (!docGroup._id) return null;
|
|
9560
|
-
return React__default
|
|
9569
|
+
return React__default.createElement(
|
|
9561
9570
|
Dropdown$1.Item,
|
|
9562
9571
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9563
9572
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9566,10 +9575,10 @@ var Filter = function Filter(_ref) {
|
|
|
9566
9575
|
);
|
|
9567
9576
|
})
|
|
9568
9577
|
),
|
|
9569
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9578
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9570
9579
|
DropdownButton,
|
|
9571
9580
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9572
|
-
React__default
|
|
9581
|
+
React__default.createElement(
|
|
9573
9582
|
Dropdown$1.Item,
|
|
9574
9583
|
{ onSelect: function onSelect() {
|
|
9575
9584
|
return handleFilterSelect({}, 'child');
|
|
@@ -9578,7 +9587,7 @@ var Filter = function Filter(_ref) {
|
|
|
9578
9587
|
),
|
|
9579
9588
|
childData.data.map(function (docGroup) {
|
|
9580
9589
|
if (!docGroup._id) return null;
|
|
9581
|
-
return React__default
|
|
9590
|
+
return React__default.createElement(
|
|
9582
9591
|
Dropdown$1.Item,
|
|
9583
9592
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9584
9593
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9587,10 +9596,10 @@ var Filter = function Filter(_ref) {
|
|
|
9587
9596
|
);
|
|
9588
9597
|
})
|
|
9589
9598
|
),
|
|
9590
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9599
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9591
9600
|
DropdownButton,
|
|
9592
9601
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9593
|
-
React__default
|
|
9602
|
+
React__default.createElement(
|
|
9594
9603
|
Dropdown$1.Item,
|
|
9595
9604
|
{ onSelect: function onSelect() {
|
|
9596
9605
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9599,7 +9608,7 @@ var Filter = function Filter(_ref) {
|
|
|
9599
9608
|
),
|
|
9600
9609
|
grandChildData.data.map(function (docGroup) {
|
|
9601
9610
|
if (!docGroup._id) return null;
|
|
9602
|
-
return React__default
|
|
9611
|
+
return React__default.createElement(
|
|
9603
9612
|
Dropdown$1.Item,
|
|
9604
9613
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9605
9614
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9608,7 +9617,7 @@ var Filter = function Filter(_ref) {
|
|
|
9608
9617
|
);
|
|
9609
9618
|
})
|
|
9610
9619
|
),
|
|
9611
|
-
React__default
|
|
9620
|
+
React__default.createElement(
|
|
9612
9621
|
'style',
|
|
9613
9622
|
{ jsx: 'true' },
|
|
9614
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 '
|
|
@@ -9656,7 +9665,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9656
9665
|
while (1) {
|
|
9657
9666
|
switch (_context.prev = _context.next) {
|
|
9658
9667
|
case 0:
|
|
9659
|
-
newParams = _extends._extends({}, params, { from: 0, to: 10 });
|
|
9668
|
+
newParams = _extends$1._extends({}, params, { from: 0, to: 10 });
|
|
9660
9669
|
filterQuery = void 0;
|
|
9661
9670
|
|
|
9662
9671
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof._typeof(filterTopicID)) == 'object') {
|
|
@@ -9698,27 +9707,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9698
9707
|
}();
|
|
9699
9708
|
|
|
9700
9709
|
if (props.statusCode === 404) {
|
|
9701
|
-
return React__default
|
|
9710
|
+
return React__default.createElement(
|
|
9702
9711
|
'div',
|
|
9703
9712
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9704
|
-
React__default
|
|
9713
|
+
React__default.createElement(
|
|
9705
9714
|
'h3',
|
|
9706
9715
|
null,
|
|
9707
9716
|
'404: Resource not found'
|
|
9708
9717
|
),
|
|
9709
|
-
React__default
|
|
9718
|
+
React__default.createElement(
|
|
9710
9719
|
'p',
|
|
9711
9720
|
null,
|
|
9712
9721
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9713
9722
|
),
|
|
9714
|
-
React__default
|
|
9723
|
+
React__default.createElement(
|
|
9715
9724
|
'p',
|
|
9716
9725
|
null,
|
|
9717
9726
|
'Click here to',
|
|
9718
|
-
React__default
|
|
9719
|
-
|
|
9727
|
+
React__default.createElement(
|
|
9728
|
+
Link,
|
|
9720
9729
|
{ href: '/' },
|
|
9721
|
-
React__default
|
|
9730
|
+
React__default.createElement(
|
|
9722
9731
|
'a',
|
|
9723
9732
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9724
9733
|
' return to homepage.'
|
|
@@ -9728,17 +9737,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9728
9737
|
);
|
|
9729
9738
|
}
|
|
9730
9739
|
|
|
9731
|
-
return React__default
|
|
9740
|
+
return React__default.createElement(
|
|
9732
9741
|
'div',
|
|
9733
9742
|
{ className: 'mb-5' },
|
|
9734
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9735
|
-
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(
|
|
9736
9745
|
'div',
|
|
9737
9746
|
{ className: '' },
|
|
9738
|
-
React__default
|
|
9739
|
-
React__default
|
|
9747
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9748
|
+
React__default.createElement('hr', null)
|
|
9740
9749
|
),
|
|
9741
|
-
seriesData && React__default
|
|
9750
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9742
9751
|
deck: MediaSeriesCard,
|
|
9743
9752
|
variant: 'left',
|
|
9744
9753
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9842,7 +9851,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9842
9851
|
statusCode = 404;
|
|
9843
9852
|
}
|
|
9844
9853
|
|
|
9845
|
-
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));
|
|
9846
9855
|
|
|
9847
9856
|
case 25:
|
|
9848
9857
|
case 'end':
|