@mjhls/mjh-framework 1.0.854-adblocker-fix-v1 → 1.0.854-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/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-25d48cc2.js → ADInfeed-98c71bcd.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 +16 -26
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.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 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- 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 +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- 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 +116 -121
- 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 +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- 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 +3907 -78
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- 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-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +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 +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +199 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-00a7ead6.js → index-276bab5c.js} +928 -954
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- 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-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +14 -23
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- 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 +34 -34
- 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 +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- 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 +3903 -74
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +180 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-0500ae55.js → index-0f6867b9.js} +882 -898
- 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-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +49 -51
- 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-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +2 -1
- 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,54 +10,56 @@ require('./_iter-detect-60b2f026.js');
|
|
|
8
10
|
require('./toConsumableArray-9a3476fe.js');
|
|
9
11
|
require('./core.get-iterator-method-f62321d4.js');
|
|
10
12
|
require('./_object-pie-68c5bcbc.js');
|
|
11
|
-
var _extends = 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-1f5a1c72.js');
|
|
14
16
|
require('./define-property-f4d12f4e.js');
|
|
15
17
|
require('./web.dom.iterable-a0e279c1.js');
|
|
16
|
-
var _typeof = require('./typeof-
|
|
18
|
+
var _typeof = require('./typeof-725500bc.js');
|
|
17
19
|
require('./_is-array-754e012d.js');
|
|
18
20
|
var React = require('react');
|
|
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');
|
|
41
|
-
var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
|
|
45
|
+
var asyncToGenerator$1 = 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-98c71bcd.js');
|
|
50
|
+
require('./lodash-fc2922d0.js');
|
|
51
|
+
require('./ADlgInfeed-9de32585.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-276bab5c.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');
|
|
@@ -66,17 +70,10 @@ require('react-bootstrap/OverlayTrigger');
|
|
|
66
70
|
require('react-bootstrap/Tooltip');
|
|
67
71
|
require('react-bootstrap/Popover');
|
|
68
72
|
var MasterDeck = require('./MasterDeck.js');
|
|
69
|
-
var defineProperty = require('./defineProperty-55548b25.js');
|
|
70
|
-
var index = require('./index-e2e62963.js');
|
|
73
|
+
var defineProperty$1$1 = require('./defineProperty-55548b25.js');
|
|
74
|
+
var index$5 = require('./index-e2e62963.js');
|
|
71
75
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
72
|
-
var Link = require('next/link');
|
|
73
|
-
|
|
74
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
75
|
-
|
|
76
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
77
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
78
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
79
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
76
|
+
var Link = _interopDefault(require('next/link'));
|
|
80
77
|
|
|
81
78
|
/**
|
|
82
79
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -171,7 +168,7 @@ function useUncontrolled(props, config) {
|
|
|
171
168
|
var _ref = result,
|
|
172
169
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
173
170
|
propsValue = _ref[fieldName],
|
|
174
|
-
rest = index._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
171
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
175
172
|
|
|
176
173
|
var handlerName = config[fieldName];
|
|
177
174
|
|
|
@@ -179,7 +176,7 @@ function useUncontrolled(props, config) {
|
|
|
179
176
|
value = _useUncontrolledProp[0],
|
|
180
177
|
handler = _useUncontrolledProp[1];
|
|
181
178
|
|
|
182
|
-
return index._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
179
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
183
180
|
}, props);
|
|
184
181
|
}
|
|
185
182
|
|
|
@@ -189,7 +186,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
189
186
|
subClass.__proto__ = superClass;
|
|
190
187
|
}
|
|
191
188
|
|
|
192
|
-
var ThemeContext = React__default
|
|
189
|
+
var ThemeContext = React__default.createContext({});
|
|
193
190
|
var Consumer = ThemeContext.Consumer,
|
|
194
191
|
Provider = ThemeContext.Provider;
|
|
195
192
|
|
|
@@ -198,7 +195,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
198
195
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
199
196
|
}
|
|
200
197
|
|
|
201
|
-
var SelectableContext = React__default
|
|
198
|
+
var SelectableContext = React__default.createContext(null);
|
|
202
199
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
203
200
|
if (href === void 0) {
|
|
204
201
|
href = null;
|
|
@@ -208,7 +205,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
208
205
|
return href || null;
|
|
209
206
|
};
|
|
210
207
|
|
|
211
|
-
var context = React__default
|
|
208
|
+
var context = React__default.createContext(null);
|
|
212
209
|
context.displayName = 'AccordionContext';
|
|
213
210
|
|
|
214
211
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -224,13 +221,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
224
221
|
if (onClick) onClick(e);
|
|
225
222
|
};
|
|
226
223
|
}
|
|
227
|
-
var AccordionToggle = React__default
|
|
224
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
228
225
|
var _ref$as = _ref.as,
|
|
229
226
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
230
227
|
children = _ref.children,
|
|
231
228
|
eventKey = _ref.eventKey,
|
|
232
229
|
onClick = _ref.onClick,
|
|
233
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
230
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
234
231
|
|
|
235
232
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
236
233
|
|
|
@@ -238,7 +235,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
238
235
|
props.type = 'button';
|
|
239
236
|
}
|
|
240
237
|
|
|
241
|
-
return /*#__PURE__*/React__default
|
|
238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
242
239
|
ref: ref,
|
|
243
240
|
onClick: accordionOnClick
|
|
244
241
|
}, props), children);
|
|
@@ -417,25 +414,25 @@ var config = {
|
|
|
417
414
|
disabled: false
|
|
418
415
|
};
|
|
419
416
|
|
|
420
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
421
|
-
enter: PropTypes__default
|
|
422
|
-
exit: PropTypes__default
|
|
423
|
-
appear: PropTypes__default
|
|
417
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.shape({
|
|
418
|
+
enter: PropTypes__default.number,
|
|
419
|
+
exit: PropTypes__default.number,
|
|
420
|
+
appear: PropTypes__default.number
|
|
424
421
|
}).isRequired]) : null;
|
|
425
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
426
|
-
enter: PropTypes__default
|
|
427
|
-
exit: PropTypes__default
|
|
428
|
-
active: PropTypes__default
|
|
429
|
-
}), PropTypes__default
|
|
430
|
-
enter: PropTypes__default
|
|
431
|
-
enterDone: PropTypes__default
|
|
432
|
-
enterActive: PropTypes__default
|
|
433
|
-
exit: PropTypes__default
|
|
434
|
-
exitDone: PropTypes__default
|
|
435
|
-
exitActive: PropTypes__default
|
|
422
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.shape({
|
|
423
|
+
enter: PropTypes__default.string,
|
|
424
|
+
exit: PropTypes__default.string,
|
|
425
|
+
active: PropTypes__default.string
|
|
426
|
+
}), PropTypes__default.shape({
|
|
427
|
+
enter: PropTypes__default.string,
|
|
428
|
+
enterDone: PropTypes__default.string,
|
|
429
|
+
enterActive: PropTypes__default.string,
|
|
430
|
+
exit: PropTypes__default.string,
|
|
431
|
+
exitDone: PropTypes__default.string,
|
|
432
|
+
exitActive: PropTypes__default.string
|
|
436
433
|
})]) : null;
|
|
437
434
|
|
|
438
|
-
var TransitionGroupContext = React__default
|
|
435
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
439
436
|
|
|
440
437
|
var UNMOUNTED = 'unmounted';
|
|
441
438
|
var EXITED = 'exited';
|
|
@@ -673,7 +670,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
673
670
|
var enter = this.props.enter;
|
|
674
671
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
675
672
|
|
|
676
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
673
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
677
674
|
maybeNode = _ref2[0],
|
|
678
675
|
maybeAppearing = _ref2[1];
|
|
679
676
|
|
|
@@ -711,7 +708,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
711
708
|
|
|
712
709
|
var exit = this.props.exit;
|
|
713
710
|
var timeouts = this.getTimeouts();
|
|
714
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
711
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
715
712
|
|
|
716
713
|
if (!exit || config.disabled) {
|
|
717
714
|
this.safeSetState({
|
|
@@ -775,7 +772,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
775
772
|
|
|
776
773
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
777
774
|
this.setNextCallback(handler);
|
|
778
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
775
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
779
776
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
780
777
|
|
|
781
778
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -820,19 +817,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
820
817
|
_onExiting = _this$props.onExiting,
|
|
821
818
|
_onExited = _this$props.onExited,
|
|
822
819
|
_nodeRef = _this$props.nodeRef,
|
|
823
|
-
childProps = index._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
820
|
+
childProps = index$5._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
824
821
|
|
|
825
822
|
return (
|
|
826
823
|
/*#__PURE__*/
|
|
827
824
|
// allows for nested Transitions
|
|
828
|
-
React__default
|
|
825
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
829
826
|
value: null
|
|
830
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
827
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
831
828
|
);
|
|
832
829
|
};
|
|
833
830
|
|
|
834
831
|
return Transition;
|
|
835
|
-
}(React__default
|
|
832
|
+
}(React__default.Component);
|
|
836
833
|
|
|
837
834
|
Transition.contextType = TransitionGroupContext;
|
|
838
835
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -847,8 +844,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
847
844
|
* (see
|
|
848
845
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
849
846
|
*/
|
|
850
|
-
nodeRef: PropTypes__default
|
|
851
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
847
|
+
nodeRef: PropTypes__default.shape({
|
|
848
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
852
849
|
}),
|
|
853
850
|
|
|
854
851
|
/**
|
|
@@ -865,12 +862,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
865
862
|
* </Transition>
|
|
866
863
|
* ```
|
|
867
864
|
*/
|
|
868
|
-
children: PropTypes__default
|
|
865
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
869
866
|
|
|
870
867
|
/**
|
|
871
868
|
* Show the component; triggers the enter or exit states
|
|
872
869
|
*/
|
|
873
|
-
in: PropTypes__default
|
|
870
|
+
in: PropTypes__default.bool,
|
|
874
871
|
|
|
875
872
|
/**
|
|
876
873
|
* By default the child component is mounted immediately along with
|
|
@@ -878,13 +875,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
878
875
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
879
876
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
880
877
|
*/
|
|
881
|
-
mountOnEnter: PropTypes__default
|
|
878
|
+
mountOnEnter: PropTypes__default.bool,
|
|
882
879
|
|
|
883
880
|
/**
|
|
884
881
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
885
882
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
886
883
|
*/
|
|
887
|
-
unmountOnExit: PropTypes__default
|
|
884
|
+
unmountOnExit: PropTypes__default.bool,
|
|
888
885
|
|
|
889
886
|
/**
|
|
890
887
|
* By default the child component does not perform the enter transition when
|
|
@@ -897,17 +894,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
897
894
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
898
895
|
* > differently.
|
|
899
896
|
*/
|
|
900
|
-
appear: PropTypes__default
|
|
897
|
+
appear: PropTypes__default.bool,
|
|
901
898
|
|
|
902
899
|
/**
|
|
903
900
|
* Enable or disable enter transitions.
|
|
904
901
|
*/
|
|
905
|
-
enter: PropTypes__default
|
|
902
|
+
enter: PropTypes__default.bool,
|
|
906
903
|
|
|
907
904
|
/**
|
|
908
905
|
* Enable or disable exit transitions.
|
|
909
906
|
*/
|
|
910
|
-
exit: PropTypes__default
|
|
907
|
+
exit: PropTypes__default.bool,
|
|
911
908
|
|
|
912
909
|
/**
|
|
913
910
|
* The duration of the transition, in milliseconds.
|
|
@@ -960,7 +957,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
960
957
|
* }}
|
|
961
958
|
* ```
|
|
962
959
|
*/
|
|
963
|
-
addEndListener: PropTypes__default
|
|
960
|
+
addEndListener: PropTypes__default.func,
|
|
964
961
|
|
|
965
962
|
/**
|
|
966
963
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -970,7 +967,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
970
967
|
*
|
|
971
968
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
972
969
|
*/
|
|
973
|
-
onEnter: PropTypes__default
|
|
970
|
+
onEnter: PropTypes__default.func,
|
|
974
971
|
|
|
975
972
|
/**
|
|
976
973
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -980,7 +977,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
980
977
|
*
|
|
981
978
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
982
979
|
*/
|
|
983
|
-
onEntering: PropTypes__default
|
|
980
|
+
onEntering: PropTypes__default.func,
|
|
984
981
|
|
|
985
982
|
/**
|
|
986
983
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -990,7 +987,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
990
987
|
*
|
|
991
988
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
992
989
|
*/
|
|
993
|
-
onEntered: PropTypes__default
|
|
990
|
+
onEntered: PropTypes__default.func,
|
|
994
991
|
|
|
995
992
|
/**
|
|
996
993
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -999,7 +996,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
999
996
|
*
|
|
1000
997
|
* @type Function(node: HtmlElement) -> void
|
|
1001
998
|
*/
|
|
1002
|
-
onExit: PropTypes__default
|
|
999
|
+
onExit: PropTypes__default.func,
|
|
1003
1000
|
|
|
1004
1001
|
/**
|
|
1005
1002
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1008,7 +1005,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1005
|
*
|
|
1009
1006
|
* @type Function(node: HtmlElement) -> void
|
|
1010
1007
|
*/
|
|
1011
|
-
onExiting: PropTypes__default
|
|
1008
|
+
onExiting: PropTypes__default.func,
|
|
1012
1009
|
|
|
1013
1010
|
/**
|
|
1014
1011
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1017,7 +1014,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1017
1014
|
*
|
|
1018
1015
|
* @type Function(node: HtmlElement) -> void
|
|
1019
1016
|
*/
|
|
1020
|
-
onExited: PropTypes__default
|
|
1017
|
+
onExited: PropTypes__default.func
|
|
1021
1018
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1022
1019
|
|
|
1023
1020
|
function noop() {}
|
|
@@ -1108,7 +1105,7 @@ var defaultProps = {
|
|
|
1108
1105
|
appear: false,
|
|
1109
1106
|
getDimensionValue: getDefaultDimensionValue
|
|
1110
1107
|
};
|
|
1111
|
-
var Collapse = React__default
|
|
1108
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1112
1109
|
var onEnter = _ref.onEnter,
|
|
1113
1110
|
onEntering = _ref.onEntering,
|
|
1114
1111
|
onEntered = _ref.onEntered,
|
|
@@ -1120,7 +1117,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1120
1117
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1121
1118
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1122
1119
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1123
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1120
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1124
1121
|
|
|
1125
1122
|
/* Compute dimension */
|
|
1126
1123
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1155,8 +1152,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1155
1152
|
elem.style[computedDimension] = null;
|
|
1156
1153
|
}, onExiting);
|
|
1157
1154
|
}, [computedDimension, onExiting]);
|
|
1158
|
-
return /*#__PURE__*/React__default
|
|
1159
|
-
, index._extends({
|
|
1155
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1156
|
+
, index$5._extends({
|
|
1160
1157
|
ref: ref,
|
|
1161
1158
|
addEndListener: transitionEnd
|
|
1162
1159
|
}, props, {
|
|
@@ -1167,8 +1164,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1167
1164
|
onExit: handleExit,
|
|
1168
1165
|
onExiting: handleExiting
|
|
1169
1166
|
}), function (state, innerProps) {
|
|
1170
|
-
return React__default
|
|
1171
|
-
className: index.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1167
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1168
|
+
className: index$5.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1172
1169
|
}));
|
|
1173
1170
|
});
|
|
1174
1171
|
}); // @ts-ignore
|
|
@@ -1176,24 +1173,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1176
1173
|
// @ts-ignore
|
|
1177
1174
|
Collapse.defaultProps = defaultProps;
|
|
1178
1175
|
|
|
1179
|
-
var AccordionCollapse = React__default
|
|
1176
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1180
1177
|
var children = _ref.children,
|
|
1181
1178
|
eventKey = _ref.eventKey,
|
|
1182
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1179
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1183
1180
|
|
|
1184
1181
|
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1185
1182
|
// from collapsing the accordion when clicked.
|
|
1186
1183
|
|
|
1187
|
-
return /*#__PURE__*/React__default
|
|
1184
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1188
1185
|
value: null
|
|
1189
|
-
}, /*#__PURE__*/React__default
|
|
1186
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1190
1187
|
ref: ref,
|
|
1191
1188
|
in: contextEventKey === eventKey
|
|
1192
|
-
}, props), /*#__PURE__*/React__default
|
|
1189
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1193
1190
|
});
|
|
1194
1191
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1195
1192
|
|
|
1196
|
-
var Accordion = React__default
|
|
1193
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1197
1194
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1198
1195
|
activeKey: 'onSelect'
|
|
1199
1196
|
}),
|
|
@@ -1204,14 +1201,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1204
1201
|
children = _useUncontrolled.children,
|
|
1205
1202
|
className = _useUncontrolled.className,
|
|
1206
1203
|
onSelect = _useUncontrolled.onSelect,
|
|
1207
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1204
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1208
1205
|
|
|
1209
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1210
|
-
return /*#__PURE__*/React__default
|
|
1206
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1207
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1211
1208
|
value: activeKey || null
|
|
1212
|
-
}, /*#__PURE__*/React__default
|
|
1209
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1213
1210
|
value: onSelect || null
|
|
1214
|
-
}, /*#__PURE__*/React__default
|
|
1211
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1215
1212
|
ref: ref
|
|
1216
1213
|
}, controlledProps, {
|
|
1217
1214
|
className: finalClassName
|
|
@@ -1255,23 +1252,23 @@ var defaultProps$1 = {
|
|
|
1255
1252
|
appear: false
|
|
1256
1253
|
};
|
|
1257
1254
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1258
|
-
var Fade = React__default
|
|
1255
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1259
1256
|
var className = _ref.className,
|
|
1260
1257
|
children = _ref.children,
|
|
1261
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1258
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1262
1259
|
|
|
1263
1260
|
var handleEnter = React.useCallback(function (node) {
|
|
1264
1261
|
triggerBrowserReflow(node);
|
|
1265
1262
|
if (props.onEnter) props.onEnter(node);
|
|
1266
1263
|
}, [props]);
|
|
1267
|
-
return /*#__PURE__*/React__default
|
|
1264
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1268
1265
|
ref: ref,
|
|
1269
1266
|
addEndListener: transitionEnd
|
|
1270
1267
|
}, props, {
|
|
1271
1268
|
onEnter: handleEnter
|
|
1272
1269
|
}), function (status, innerProps) {
|
|
1273
|
-
return React__default
|
|
1274
|
-
className: index.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1270
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1271
|
+
className: index$5.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1275
1272
|
}));
|
|
1276
1273
|
});
|
|
1277
1274
|
});
|
|
@@ -1279,26 +1276,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1279
1276
|
Fade.displayName = 'Fade';
|
|
1280
1277
|
|
|
1281
1278
|
var propTypes = {
|
|
1282
|
-
label: PropTypes__default
|
|
1283
|
-
onClick: PropTypes__default
|
|
1279
|
+
label: PropTypes__default.string.isRequired,
|
|
1280
|
+
onClick: PropTypes__default.func
|
|
1284
1281
|
};
|
|
1285
1282
|
var defaultProps$2 = {
|
|
1286
1283
|
label: 'Close'
|
|
1287
1284
|
};
|
|
1288
|
-
var CloseButton = React__default
|
|
1285
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1289
1286
|
var label = _ref.label,
|
|
1290
1287
|
onClick = _ref.onClick,
|
|
1291
1288
|
className = _ref.className,
|
|
1292
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1289
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1293
1290
|
|
|
1294
|
-
return /*#__PURE__*/React__default
|
|
1291
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1295
1292
|
ref: ref,
|
|
1296
1293
|
type: "button",
|
|
1297
|
-
className: index.classnames('close', className),
|
|
1294
|
+
className: index$5.classnames('close', className),
|
|
1298
1295
|
onClick: onClick
|
|
1299
|
-
}, props), /*#__PURE__*/React__default
|
|
1296
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1300
1297
|
"aria-hidden": "true"
|
|
1301
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1298
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1302
1299
|
className: "sr-only"
|
|
1303
1300
|
}, label));
|
|
1304
1301
|
});
|
|
@@ -1307,10 +1304,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1307
1304
|
CloseButton.defaultProps = defaultProps$2;
|
|
1308
1305
|
|
|
1309
1306
|
var divWithClassName = (function (className) {
|
|
1310
|
-
return React__default
|
|
1311
|
-
return /*#__PURE__*/React__default
|
|
1307
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1308
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1312
1309
|
ref: ref,
|
|
1313
|
-
className: index.classnames(p.className, className)
|
|
1310
|
+
className: index$5.classnames(p.className, className)
|
|
1314
1311
|
}));
|
|
1315
1312
|
});
|
|
1316
1313
|
});
|
|
@@ -1334,17 +1331,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1334
1331
|
Component = _ref.Component,
|
|
1335
1332
|
defaultProps = _ref.defaultProps;
|
|
1336
1333
|
|
|
1337
|
-
var BsComponent = React__default
|
|
1334
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1338
1335
|
var className = _ref2.className,
|
|
1339
1336
|
bsPrefix = _ref2.bsPrefix,
|
|
1340
1337
|
_ref2$as = _ref2.as,
|
|
1341
1338
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1342
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1339
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1343
1340
|
|
|
1344
1341
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1345
|
-
return /*#__PURE__*/React__default
|
|
1342
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1346
1343
|
ref: ref,
|
|
1347
|
-
className: index.classnames(className, resolvedPrefix)
|
|
1344
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1348
1345
|
}, props));
|
|
1349
1346
|
});
|
|
1350
1347
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1364,12 +1361,12 @@ function isTrivialHref(href) {
|
|
|
1364
1361
|
*/
|
|
1365
1362
|
|
|
1366
1363
|
|
|
1367
|
-
var SafeAnchor = React__default
|
|
1364
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1368
1365
|
var _ref$as = _ref.as,
|
|
1369
1366
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1370
1367
|
disabled = _ref.disabled,
|
|
1371
1368
|
onKeyDown = _ref.onKeyDown,
|
|
1372
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1369
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1373
1370
|
|
|
1374
1371
|
var handleClick = function handleClick(event) {
|
|
1375
1372
|
var href = props.href,
|
|
@@ -1408,7 +1405,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1408
1405
|
props['aria-disabled'] = true;
|
|
1409
1406
|
}
|
|
1410
1407
|
|
|
1411
|
-
return /*#__PURE__*/React__default
|
|
1408
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1412
1409
|
ref: ref
|
|
1413
1410
|
}, props, {
|
|
1414
1411
|
onClick: handleClick,
|
|
@@ -1430,7 +1427,7 @@ var defaultProps$3 = {
|
|
|
1430
1427
|
transition: Fade,
|
|
1431
1428
|
closeLabel: 'Close alert'
|
|
1432
1429
|
};
|
|
1433
|
-
var Alert = React__default
|
|
1430
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1434
1431
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1435
1432
|
show: 'onClose'
|
|
1436
1433
|
}),
|
|
@@ -1443,7 +1440,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1443
1440
|
onClose = _useUncontrolled.onClose,
|
|
1444
1441
|
dismissible = _useUncontrolled.dismissible,
|
|
1445
1442
|
transition = _useUncontrolled.transition,
|
|
1446
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1443
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1447
1444
|
|
|
1448
1445
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1449
1446
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1452,17 +1449,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1452
1449
|
}
|
|
1453
1450
|
});
|
|
1454
1451
|
var Transition = transition === true ? Fade : transition;
|
|
1455
|
-
var alert = /*#__PURE__*/React__default
|
|
1452
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1456
1453
|
role: "alert"
|
|
1457
1454
|
}, Transition ? props : undefined, {
|
|
1458
1455
|
ref: ref,
|
|
1459
|
-
className: index.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1460
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1456
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1457
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1461
1458
|
onClick: handleClose,
|
|
1462
1459
|
label: closeLabel
|
|
1463
1460
|
}), children);
|
|
1464
1461
|
if (!Transition) return show ? alert : null;
|
|
1465
|
-
return /*#__PURE__*/React__default
|
|
1462
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1466
1463
|
unmountOnExit: true
|
|
1467
1464
|
}, props, {
|
|
1468
1465
|
ref: undefined,
|
|
@@ -1477,20 +1474,20 @@ Alert.Heading = AlertHeading;
|
|
|
1477
1474
|
var defaultProps$4 = {
|
|
1478
1475
|
pill: false
|
|
1479
1476
|
};
|
|
1480
|
-
var Badge = React__default
|
|
1477
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1481
1478
|
var bsPrefix = _ref.bsPrefix,
|
|
1482
1479
|
variant = _ref.variant,
|
|
1483
1480
|
pill = _ref.pill,
|
|
1484
1481
|
className = _ref.className,
|
|
1485
1482
|
_ref$as = _ref.as,
|
|
1486
1483
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1487
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1484
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1488
1485
|
|
|
1489
1486
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1490
|
-
return /*#__PURE__*/React__default
|
|
1487
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1491
1488
|
ref: ref
|
|
1492
1489
|
}, props, {
|
|
1493
|
-
className: index.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1490
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1494
1491
|
}));
|
|
1495
1492
|
});
|
|
1496
1493
|
Badge.displayName = 'Badge';
|
|
@@ -1500,7 +1497,7 @@ var defaultProps$5 = {
|
|
|
1500
1497
|
active: false,
|
|
1501
1498
|
linkProps: {}
|
|
1502
1499
|
};
|
|
1503
|
-
var BreadcrumbItem = React__default
|
|
1500
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1504
1501
|
var bsPrefix = _ref.bsPrefix,
|
|
1505
1502
|
active = _ref.active,
|
|
1506
1503
|
children = _ref.children,
|
|
@@ -1513,17 +1510,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1513
1510
|
href = _ref.href,
|
|
1514
1511
|
title = _ref.title,
|
|
1515
1512
|
target = _ref.target,
|
|
1516
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1513
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1517
1514
|
|
|
1518
1515
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1519
|
-
return /*#__PURE__*/React__default
|
|
1516
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1520
1517
|
ref: ref
|
|
1521
1518
|
}, props, {
|
|
1522
|
-
className: index.classnames(prefix, className, {
|
|
1519
|
+
className: index$5.classnames(prefix, className, {
|
|
1523
1520
|
active: active
|
|
1524
1521
|
}),
|
|
1525
1522
|
"aria-current": active ? 'page' : undefined
|
|
1526
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1523
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1527
1524
|
href: href,
|
|
1528
1525
|
title: title,
|
|
1529
1526
|
target: target
|
|
@@ -1536,7 +1533,7 @@ var defaultProps$6 = {
|
|
|
1536
1533
|
label: 'breadcrumb',
|
|
1537
1534
|
listProps: {}
|
|
1538
1535
|
};
|
|
1539
|
-
var Breadcrumb = React__default
|
|
1536
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1540
1537
|
var bsPrefix = _ref.bsPrefix,
|
|
1541
1538
|
className = _ref.className,
|
|
1542
1539
|
listProps = _ref.listProps,
|
|
@@ -1544,15 +1541,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1544
1541
|
label = _ref.label,
|
|
1545
1542
|
_ref$as = _ref.as,
|
|
1546
1543
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1547
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1544
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1548
1545
|
|
|
1549
1546
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1550
|
-
return /*#__PURE__*/React__default
|
|
1547
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1551
1548
|
"aria-label": label,
|
|
1552
1549
|
className: className,
|
|
1553
1550
|
ref: ref
|
|
1554
|
-
}, props), /*#__PURE__*/React__default
|
|
1555
|
-
className: index.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1551
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", index$5._extends({}, listProps, {
|
|
1552
|
+
className: index$5.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1556
1553
|
}), children));
|
|
1557
1554
|
});
|
|
1558
1555
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1564,7 +1561,7 @@ var defaultProps$7 = {
|
|
|
1564
1561
|
active: false,
|
|
1565
1562
|
disabled: false
|
|
1566
1563
|
};
|
|
1567
|
-
var Button = React__default
|
|
1564
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1568
1565
|
var bsPrefix = _ref.bsPrefix,
|
|
1569
1566
|
variant = _ref.variant,
|
|
1570
1567
|
size = _ref.size,
|
|
@@ -1573,16 +1570,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1573
1570
|
block = _ref.block,
|
|
1574
1571
|
type = _ref.type,
|
|
1575
1572
|
as = _ref.as,
|
|
1576
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1573
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1577
1574
|
|
|
1578
1575
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1579
|
-
var classes = index.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1576
|
+
var classes = index$5.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1580
1577
|
|
|
1581
1578
|
if (props.href) {
|
|
1582
|
-
return /*#__PURE__*/React__default
|
|
1579
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1583
1580
|
as: as,
|
|
1584
1581
|
ref: ref,
|
|
1585
|
-
className: index.classnames(classes, props.disabled && 'disabled')
|
|
1582
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1586
1583
|
}));
|
|
1587
1584
|
}
|
|
1588
1585
|
|
|
@@ -1597,7 +1594,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1597
1594
|
}
|
|
1598
1595
|
|
|
1599
1596
|
var Component = as || 'button';
|
|
1600
|
-
return /*#__PURE__*/React__default
|
|
1597
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1601
1598
|
className: classes
|
|
1602
1599
|
}));
|
|
1603
1600
|
});
|
|
@@ -1609,7 +1606,7 @@ var defaultProps$8 = {
|
|
|
1609
1606
|
toggle: false,
|
|
1610
1607
|
role: 'group'
|
|
1611
1608
|
};
|
|
1612
|
-
var ButtonGroup = React__default
|
|
1609
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1613
1610
|
var bsPrefix = _ref.bsPrefix,
|
|
1614
1611
|
size = _ref.size,
|
|
1615
1612
|
toggle = _ref.toggle,
|
|
@@ -1617,14 +1614,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1617
1614
|
className = _ref.className,
|
|
1618
1615
|
_ref$as = _ref.as,
|
|
1619
1616
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1620
|
-
rest = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1617
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1621
1618
|
|
|
1622
1619
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1623
1620
|
var baseClass = prefix;
|
|
1624
1621
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1625
|
-
return /*#__PURE__*/React__default
|
|
1622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1626
1623
|
ref: ref,
|
|
1627
|
-
className: index.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1624
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1628
1625
|
}));
|
|
1629
1626
|
});
|
|
1630
1627
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1633,39 +1630,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1633
1630
|
var defaultProps$9 = {
|
|
1634
1631
|
role: 'toolbar'
|
|
1635
1632
|
};
|
|
1636
|
-
var ButtonToolbar = React__default
|
|
1633
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1637
1634
|
var bsPrefix = _ref.bsPrefix,
|
|
1638
1635
|
className = _ref.className,
|
|
1639
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1636
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1640
1637
|
|
|
1641
1638
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1642
|
-
return /*#__PURE__*/React__default
|
|
1639
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1643
1640
|
ref: ref,
|
|
1644
|
-
className: index.classnames(className, prefix)
|
|
1641
|
+
className: index$5.classnames(className, prefix)
|
|
1645
1642
|
}));
|
|
1646
1643
|
});
|
|
1647
1644
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1648
1645
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1649
1646
|
|
|
1650
|
-
var context$1 = React__default
|
|
1647
|
+
var context$1 = React__default.createContext(null);
|
|
1651
1648
|
context$1.displayName = 'CardContext';
|
|
1652
1649
|
|
|
1653
1650
|
var defaultProps$a = {
|
|
1654
1651
|
variant: null
|
|
1655
1652
|
};
|
|
1656
|
-
var CardImg = React__default
|
|
1653
|
+
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1657
1654
|
function (_ref, ref) {
|
|
1658
1655
|
var bsPrefix = _ref.bsPrefix,
|
|
1659
1656
|
className = _ref.className,
|
|
1660
1657
|
variant = _ref.variant,
|
|
1661
1658
|
_ref$as = _ref.as,
|
|
1662
1659
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1663
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1660
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1664
1661
|
|
|
1665
1662
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1666
|
-
return /*#__PURE__*/React__default
|
|
1663
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1667
1664
|
ref: ref,
|
|
1668
|
-
className: index.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1665
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1669
1666
|
}, props));
|
|
1670
1667
|
});
|
|
1671
1668
|
CardImg.displayName = 'CardImg';
|
|
@@ -1692,7 +1689,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1692
1689
|
var defaultProps$b = {
|
|
1693
1690
|
body: false
|
|
1694
1691
|
};
|
|
1695
|
-
var Card = React__default
|
|
1692
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1696
1693
|
var bsPrefix = _ref.bsPrefix,
|
|
1697
1694
|
className = _ref.className,
|
|
1698
1695
|
bg = _ref.bg,
|
|
@@ -1702,7 +1699,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1702
1699
|
children = _ref.children,
|
|
1703
1700
|
_ref$as = _ref.as,
|
|
1704
1701
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1705
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1702
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1706
1703
|
|
|
1707
1704
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1708
1705
|
var cardContext = React.useMemo(function () {
|
|
@@ -1710,16 +1707,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1710
1707
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1711
1708
|
};
|
|
1712
1709
|
}, [prefix]);
|
|
1713
|
-
return /*#__PURE__*/React__default
|
|
1710
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1714
1711
|
value: cardContext
|
|
1715
|
-
}, /*#__PURE__*/React__default
|
|
1712
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1716
1713
|
ref: ref
|
|
1717
1714
|
}, props, {
|
|
1718
|
-
className: index.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1715
|
+
className: index$5.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1719
1716
|
}), body ?
|
|
1720
1717
|
/*#__PURE__*/
|
|
1721
1718
|
// @ts-ignore
|
|
1722
|
-
React__default
|
|
1719
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1723
1720
|
});
|
|
1724
1721
|
Card.displayName = 'Card';
|
|
1725
1722
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1855,6 +1852,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1855
1852
|
/**
|
|
1856
1853
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1857
1854
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1855
|
+
*
|
|
1856
|
+
*
|
|
1857
|
+
*
|
|
1858
|
+
* ```tsx
|
|
1859
|
+
* const { set, clear } = useTimeout();
|
|
1860
|
+
* const [hello, showHello] = useState(false);
|
|
1861
|
+
* //Display hello after 5 seconds
|
|
1862
|
+
* set(() => showHello(true), 5000);
|
|
1863
|
+
* return (
|
|
1864
|
+
* <div className="App">
|
|
1865
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1866
|
+
* </div>
|
|
1867
|
+
* );
|
|
1868
|
+
* ```
|
|
1858
1869
|
*/
|
|
1859
1870
|
|
|
1860
1871
|
|
|
@@ -1895,16 +1906,16 @@ function useTimeout() {
|
|
|
1895
1906
|
|
|
1896
1907
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1897
1908
|
|
|
1898
|
-
var CarouselItem = React__default
|
|
1909
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1899
1910
|
var _ref$as = _ref.as,
|
|
1900
1911
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1901
1912
|
bsPrefix = _ref.bsPrefix,
|
|
1902
1913
|
children = _ref.children,
|
|
1903
1914
|
className = _ref.className,
|
|
1904
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1915
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1905
1916
|
|
|
1906
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1907
|
-
return /*#__PURE__*/React__default
|
|
1917
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1918
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1908
1919
|
ref: ref
|
|
1909
1920
|
}, props, {
|
|
1910
1921
|
className: finalClassName
|
|
@@ -1923,8 +1934,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1923
1934
|
|
|
1924
1935
|
function map(children, func) {
|
|
1925
1936
|
var index = 0;
|
|
1926
|
-
return React__default
|
|
1927
|
-
return React__default
|
|
1937
|
+
return React__default.Children.map(children, function (child) {
|
|
1938
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1928
1939
|
});
|
|
1929
1940
|
}
|
|
1930
1941
|
/**
|
|
@@ -1937,8 +1948,8 @@ function map(children, func) {
|
|
|
1937
1948
|
|
|
1938
1949
|
function forEach(children, func) {
|
|
1939
1950
|
var index = 0;
|
|
1940
|
-
React__default
|
|
1941
|
-
if (React__default
|
|
1951
|
+
React__default.Children.forEach(children, function (child) {
|
|
1952
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1942
1953
|
});
|
|
1943
1954
|
}
|
|
1944
1955
|
|
|
@@ -1947,33 +1958,33 @@ var propTypes$1 = {
|
|
|
1947
1958
|
/**
|
|
1948
1959
|
* @default 'carousel'
|
|
1949
1960
|
*/
|
|
1950
|
-
bsPrefix: PropTypes__default
|
|
1951
|
-
as: PropTypes__default
|
|
1961
|
+
bsPrefix: PropTypes__default.string,
|
|
1962
|
+
as: PropTypes__default.elementType,
|
|
1952
1963
|
|
|
1953
1964
|
/**
|
|
1954
1965
|
* Enables animation on the Carousel as it transitions between slides.
|
|
1955
1966
|
*/
|
|
1956
|
-
slide: PropTypes__default
|
|
1967
|
+
slide: PropTypes__default.bool,
|
|
1957
1968
|
|
|
1958
1969
|
/** Cross fade slides instead of the default slide animation */
|
|
1959
|
-
fade: PropTypes__default
|
|
1970
|
+
fade: PropTypes__default.bool,
|
|
1960
1971
|
|
|
1961
1972
|
/**
|
|
1962
1973
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
1963
1974
|
*/
|
|
1964
|
-
controls: PropTypes__default
|
|
1975
|
+
controls: PropTypes__default.bool,
|
|
1965
1976
|
|
|
1966
1977
|
/**
|
|
1967
1978
|
* Show a set of slide position indicators
|
|
1968
1979
|
*/
|
|
1969
|
-
indicators: PropTypes__default
|
|
1980
|
+
indicators: PropTypes__default.bool,
|
|
1970
1981
|
|
|
1971
1982
|
/**
|
|
1972
1983
|
* Controls the current visible slide
|
|
1973
1984
|
*
|
|
1974
1985
|
* @controllable onSelect
|
|
1975
1986
|
*/
|
|
1976
|
-
activeIndex: PropTypes__default
|
|
1987
|
+
activeIndex: PropTypes__default.number,
|
|
1977
1988
|
|
|
1978
1989
|
/**
|
|
1979
1990
|
* Callback fired when the active item changes.
|
|
@@ -1984,7 +1995,7 @@ var propTypes$1 = {
|
|
|
1984
1995
|
*
|
|
1985
1996
|
* @controllable activeIndex
|
|
1986
1997
|
*/
|
|
1987
|
-
onSelect: PropTypes__default
|
|
1998
|
+
onSelect: PropTypes__default.func,
|
|
1988
1999
|
|
|
1989
2000
|
/**
|
|
1990
2001
|
* Callback fired when a slide transition starts.
|
|
@@ -1992,7 +2003,7 @@ var propTypes$1 = {
|
|
|
1992
2003
|
* ```js
|
|
1993
2004
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
1994
2005
|
*/
|
|
1995
|
-
onSlide: PropTypes__default
|
|
2006
|
+
onSlide: PropTypes__default.func,
|
|
1996
2007
|
|
|
1997
2008
|
/**
|
|
1998
2009
|
* Callback fired when a slide transition ends.
|
|
@@ -2000,50 +2011,50 @@ var propTypes$1 = {
|
|
|
2000
2011
|
* ```js
|
|
2001
2012
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
2002
2013
|
*/
|
|
2003
|
-
onSlid: PropTypes__default
|
|
2014
|
+
onSlid: PropTypes__default.func,
|
|
2004
2015
|
|
|
2005
2016
|
/**
|
|
2006
2017
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2007
2018
|
*/
|
|
2008
|
-
interval: PropTypes__default
|
|
2019
|
+
interval: PropTypes__default.number,
|
|
2009
2020
|
|
|
2010
2021
|
/** Whether the carousel should react to keyboard events. */
|
|
2011
|
-
keyboard: PropTypes__default
|
|
2022
|
+
keyboard: PropTypes__default.bool,
|
|
2012
2023
|
|
|
2013
2024
|
/**
|
|
2014
2025
|
* If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on `mouseleave`. If set to `false`, hovering over the carousel won't pause it.
|
|
2015
2026
|
*
|
|
2016
2027
|
* On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.
|
|
2017
2028
|
*/
|
|
2018
|
-
pause: PropTypes__default
|
|
2029
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2019
2030
|
|
|
2020
2031
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2021
|
-
wrap: PropTypes__default
|
|
2032
|
+
wrap: PropTypes__default.bool,
|
|
2022
2033
|
|
|
2023
2034
|
/**
|
|
2024
2035
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2025
2036
|
*/
|
|
2026
|
-
touch: PropTypes__default
|
|
2037
|
+
touch: PropTypes__default.bool,
|
|
2027
2038
|
|
|
2028
2039
|
/** Override the default button icon for the "previous" control */
|
|
2029
|
-
prevIcon: PropTypes__default
|
|
2040
|
+
prevIcon: PropTypes__default.node,
|
|
2030
2041
|
|
|
2031
2042
|
/**
|
|
2032
2043
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2033
2044
|
* in the carousel.
|
|
2034
2045
|
* Set to null to deactivate.
|
|
2035
2046
|
*/
|
|
2036
|
-
prevLabel: PropTypes__default
|
|
2047
|
+
prevLabel: PropTypes__default.string,
|
|
2037
2048
|
|
|
2038
2049
|
/** Override the default button icon for the "next" control */
|
|
2039
|
-
nextIcon: PropTypes__default
|
|
2050
|
+
nextIcon: PropTypes__default.node,
|
|
2040
2051
|
|
|
2041
2052
|
/**
|
|
2042
2053
|
* Label shown to screen readers only, can be used to show the next element
|
|
2043
2054
|
* in the carousel.
|
|
2044
2055
|
* Set to null to deactivate.
|
|
2045
2056
|
*/
|
|
2046
|
-
nextLabel: PropTypes__default
|
|
2057
|
+
nextLabel: PropTypes__default.string
|
|
2047
2058
|
};
|
|
2048
2059
|
var defaultProps$c = {
|
|
2049
2060
|
slide: true,
|
|
@@ -2056,12 +2067,12 @@ var defaultProps$c = {
|
|
|
2056
2067
|
pause: 'hover',
|
|
2057
2068
|
wrap: true,
|
|
2058
2069
|
touch: true,
|
|
2059
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2070
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2060
2071
|
"aria-hidden": "true",
|
|
2061
2072
|
className: "carousel-control-prev-icon"
|
|
2062
2073
|
}),
|
|
2063
2074
|
prevLabel: 'Previous',
|
|
2064
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2075
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2065
2076
|
"aria-hidden": "true",
|
|
2066
2077
|
className: "carousel-control-next-icon"
|
|
2067
2078
|
}),
|
|
@@ -2109,7 +2120,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2109
2120
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2110
2121
|
className = _useUncontrolled.className,
|
|
2111
2122
|
children = _useUncontrolled.children,
|
|
2112
|
-
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"]);
|
|
2123
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2113
2124
|
|
|
2114
2125
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2115
2126
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2366,7 +2377,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2366
2377
|
};
|
|
2367
2378
|
});
|
|
2368
2379
|
}, [indicators, numChildren, onSelect]);
|
|
2369
|
-
return /*#__PURE__*/React__default
|
|
2380
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2370
2381
|
ref: elementRef
|
|
2371
2382
|
}, props, {
|
|
2372
2383
|
onKeyDown: handleKeyDown,
|
|
@@ -2375,45 +2386,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2375
2386
|
onTouchStart: handleTouchStart,
|
|
2376
2387
|
onTouchMove: handleTouchMove,
|
|
2377
2388
|
onTouchEnd: handleTouchEnd,
|
|
2378
|
-
className: index.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2379
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2389
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2390
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2380
2391
|
className: prefix + "-indicators"
|
|
2381
2392
|
}, map(children, function (_child, index) {
|
|
2382
|
-
return /*#__PURE__*/React__default
|
|
2393
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2383
2394
|
key: index,
|
|
2384
2395
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2385
2396
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2386
2397
|
});
|
|
2387
|
-
})), /*#__PURE__*/React__default
|
|
2398
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2388
2399
|
className: prefix + "-inner"
|
|
2389
|
-
}, map(children, function (child, index
|
|
2390
|
-
var isActive = index
|
|
2391
|
-
return slide ? /*#__PURE__*/React__default
|
|
2400
|
+
}, map(children, function (child, index) {
|
|
2401
|
+
var isActive = index === renderedActiveIndex;
|
|
2402
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2392
2403
|
in: isActive,
|
|
2393
2404
|
onEnter: isActive ? handleEnter : undefined,
|
|
2394
2405
|
onEntered: isActive ? handleEntered : undefined,
|
|
2395
2406
|
addEndListener: transitionEnd
|
|
2396
2407
|
}, function (status) {
|
|
2397
|
-
return React__default
|
|
2398
|
-
className: index.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2408
|
+
return React__default.cloneElement(child, {
|
|
2409
|
+
className: index$5.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2399
2410
|
});
|
|
2400
|
-
}) : React__default
|
|
2401
|
-
className: index.classnames(child.props.className, isActive && 'active')
|
|
2411
|
+
}) : React__default.cloneElement(child, {
|
|
2412
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2402
2413
|
});
|
|
2403
|
-
})), controls && /*#__PURE__*/React__default
|
|
2414
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2404
2415
|
className: prefix + "-control-prev",
|
|
2405
2416
|
onClick: prev
|
|
2406
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2417
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2407
2418
|
className: "sr-only"
|
|
2408
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2419
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2409
2420
|
className: prefix + "-control-next",
|
|
2410
2421
|
onClick: next
|
|
2411
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2422
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2412
2423
|
className: "sr-only"
|
|
2413
2424
|
}, nextLabel))));
|
|
2414
2425
|
}
|
|
2415
2426
|
|
|
2416
|
-
var Carousel = React__default
|
|
2427
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2417
2428
|
Carousel.displayName = 'Carousel';
|
|
2418
2429
|
Carousel.propTypes = propTypes$1;
|
|
2419
2430
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2421,13 +2432,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2421
2432
|
Carousel.Item = CarouselItem;
|
|
2422
2433
|
|
|
2423
2434
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2424
|
-
var Col = React__default
|
|
2435
|
+
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2425
2436
|
function (_ref, ref) {
|
|
2426
2437
|
var bsPrefix = _ref.bsPrefix,
|
|
2427
2438
|
className = _ref.className,
|
|
2428
2439
|
_ref$as = _ref.as,
|
|
2429
2440
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2430
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2441
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2431
2442
|
|
|
2432
2443
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2433
2444
|
var spans = [];
|
|
@@ -2458,9 +2469,9 @@ function (_ref, ref) {
|
|
|
2458
2469
|
spans.push(prefix); // plain 'col'
|
|
2459
2470
|
}
|
|
2460
2471
|
|
|
2461
|
-
return /*#__PURE__*/React__default
|
|
2472
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2462
2473
|
ref: ref,
|
|
2463
|
-
className: index.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2474
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2464
2475
|
}));
|
|
2465
2476
|
});
|
|
2466
2477
|
Col.displayName = 'Col';
|
|
@@ -2567,7 +2578,40 @@ function useForceUpdate() {
|
|
|
2567
2578
|
return dispatch;
|
|
2568
2579
|
}
|
|
2569
2580
|
|
|
2570
|
-
var DropdownContext = /*#__PURE__*/React__default
|
|
2581
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2582
|
+
|
|
2583
|
+
function _extends() {
|
|
2584
|
+
_extends = Object.assign || function (target) {
|
|
2585
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2586
|
+
var source = arguments[i];
|
|
2587
|
+
|
|
2588
|
+
for (var key in source) {
|
|
2589
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2590
|
+
target[key] = source[key];
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
return target;
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
return _extends.apply(this, arguments);
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2602
|
+
if (source == null) return {};
|
|
2603
|
+
var target = {};
|
|
2604
|
+
var sourceKeys = Object.keys(source);
|
|
2605
|
+
var key, i;
|
|
2606
|
+
|
|
2607
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2608
|
+
key = sourceKeys[i];
|
|
2609
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2610
|
+
target[key] = source[key];
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
return target;
|
|
2614
|
+
}
|
|
2571
2615
|
|
|
2572
2616
|
function useSafeState(state) {
|
|
2573
2617
|
var isMounted = useMounted();
|
|
@@ -2672,7 +2716,7 @@ function contains(parent, child) {
|
|
|
2672
2716
|
do {
|
|
2673
2717
|
if (next && parent.isSameNode(next)) {
|
|
2674
2718
|
return true;
|
|
2675
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2719
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2676
2720
|
|
|
2677
2721
|
|
|
2678
2722
|
next = next.parentNode || next.host;
|
|
@@ -2696,8 +2740,9 @@ function isTableElement(element) {
|
|
|
2696
2740
|
}
|
|
2697
2741
|
|
|
2698
2742
|
function getDocumentElement(element) {
|
|
2699
|
-
// $FlowFixMe: assume body is always available
|
|
2700
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2743
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2744
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2745
|
+
element.document) || window.document).documentElement;
|
|
2701
2746
|
}
|
|
2702
2747
|
|
|
2703
2748
|
function getParentNode(element) {
|
|
@@ -2705,12 +2750,14 @@ function getParentNode(element) {
|
|
|
2705
2750
|
return element;
|
|
2706
2751
|
}
|
|
2707
2752
|
|
|
2708
|
-
return (//
|
|
2753
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2754
|
+
// $FlowFixMe[incompatible-return]
|
|
2755
|
+
// $FlowFixMe[prop-missing]
|
|
2709
2756
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2710
2757
|
element.parentNode || // DOM Element detected
|
|
2711
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2758
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2712
2759
|
element.host || // ShadowRoot detected
|
|
2713
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2760
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2714
2761
|
getDocumentElement(element) // fallback
|
|
2715
2762
|
|
|
2716
2763
|
);
|
|
@@ -2897,7 +2944,7 @@ var unsetSides = {
|
|
|
2897
2944
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2898
2945
|
// cleanly divide the values into the appropriate subpixels.
|
|
2899
2946
|
|
|
2900
|
-
function
|
|
2947
|
+
function roundOffsetsByDPR(_ref) {
|
|
2901
2948
|
var x = _ref.x,
|
|
2902
2949
|
y = _ref.y;
|
|
2903
2950
|
var win = window;
|
|
@@ -2917,11 +2964,14 @@ function mapToStyles(_ref2) {
|
|
|
2917
2964
|
offsets = _ref2.offsets,
|
|
2918
2965
|
position = _ref2.position,
|
|
2919
2966
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2920
|
-
adaptive = _ref2.adaptive
|
|
2967
|
+
adaptive = _ref2.adaptive,
|
|
2968
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2921
2969
|
|
|
2922
|
-
var
|
|
2923
|
-
x =
|
|
2924
|
-
|
|
2970
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2971
|
+
_ref3$x = _ref3.x,
|
|
2972
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2973
|
+
_ref3$y = _ref3.y,
|
|
2974
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2925
2975
|
|
|
2926
2976
|
var hasX = offsets.hasOwnProperty('x');
|
|
2927
2977
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2934,7 +2984,7 @@ function mapToStyles(_ref2) {
|
|
|
2934
2984
|
|
|
2935
2985
|
if (offsetParent === getWindow(popper)) {
|
|
2936
2986
|
offsetParent = getDocumentElement(popper);
|
|
2937
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2987
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2938
2988
|
|
|
2939
2989
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2940
2990
|
|
|
@@ -2965,13 +3015,15 @@ function mapToStyles(_ref2) {
|
|
|
2965
3015
|
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2966
3016
|
}
|
|
2967
3017
|
|
|
2968
|
-
function computeStyles(
|
|
2969
|
-
var state =
|
|
2970
|
-
options =
|
|
3018
|
+
function computeStyles(_ref4) {
|
|
3019
|
+
var state = _ref4.state,
|
|
3020
|
+
options = _ref4.options;
|
|
2971
3021
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2972
3022
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2973
3023
|
_options$adaptive = options.adaptive,
|
|
2974
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3024
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3025
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3026
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2975
3027
|
|
|
2976
3028
|
if (process.env.NODE_ENV !== "production") {
|
|
2977
3029
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -2994,7 +3046,8 @@ function computeStyles(_ref3) {
|
|
|
2994
3046
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2995
3047
|
offsets: state.modifiersData.popperOffsets,
|
|
2996
3048
|
position: state.options.strategy,
|
|
2997
|
-
adaptive: adaptive
|
|
3049
|
+
adaptive: adaptive,
|
|
3050
|
+
roundOffsets: roundOffsets
|
|
2998
3051
|
})));
|
|
2999
3052
|
}
|
|
3000
3053
|
|
|
@@ -3002,7 +3055,8 @@ function computeStyles(_ref3) {
|
|
|
3002
3055
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3003
3056
|
offsets: state.modifiersData.arrow,
|
|
3004
3057
|
position: 'absolute',
|
|
3005
|
-
adaptive: false
|
|
3058
|
+
adaptive: false,
|
|
3059
|
+
roundOffsets: roundOffsets
|
|
3006
3060
|
})));
|
|
3007
3061
|
}
|
|
3008
3062
|
|
|
@@ -3198,7 +3252,7 @@ function isScrollParent(element) {
|
|
|
3198
3252
|
|
|
3199
3253
|
function getScrollParent(node) {
|
|
3200
3254
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3201
|
-
// $FlowFixMe: assume body is always available
|
|
3255
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3202
3256
|
return node.ownerDocument.body;
|
|
3203
3257
|
}
|
|
3204
3258
|
|
|
@@ -3212,7 +3266,7 @@ function getScrollParent(node) {
|
|
|
3212
3266
|
/*
|
|
3213
3267
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3214
3268
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3215
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3269
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3216
3270
|
reference element's position.
|
|
3217
3271
|
*/
|
|
3218
3272
|
|
|
@@ -3226,7 +3280,7 @@ function listScrollParents(element, list) {
|
|
|
3226
3280
|
var win = getWindow(scrollParent);
|
|
3227
3281
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3228
3282
|
var updatedList = list.concat(target);
|
|
3229
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3283
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3230
3284
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3231
3285
|
}
|
|
3232
3286
|
|
|
@@ -3266,7 +3320,7 @@ function getClippingParents(element) {
|
|
|
3266
3320
|
|
|
3267
3321
|
if (!isElement(clipperElement)) {
|
|
3268
3322
|
return [];
|
|
3269
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3323
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3270
3324
|
|
|
3271
3325
|
|
|
3272
3326
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3352,11 +3406,11 @@ function computeOffsets(_ref) {
|
|
|
3352
3406
|
|
|
3353
3407
|
switch (variation) {
|
|
3354
3408
|
case start:
|
|
3355
|
-
offsets[mainAxis] =
|
|
3409
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3356
3410
|
break;
|
|
3357
3411
|
|
|
3358
3412
|
case end:
|
|
3359
|
-
offsets[mainAxis] =
|
|
3413
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3360
3414
|
break;
|
|
3361
3415
|
}
|
|
3362
3416
|
}
|
|
@@ -3438,8 +3492,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3438
3492
|
var variation = getVariation(placement);
|
|
3439
3493
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3440
3494
|
return getVariation(placement) === variation;
|
|
3441
|
-
}) : basePlacements;
|
|
3442
|
-
|
|
3495
|
+
}) : basePlacements;
|
|
3443
3496
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3444
3497
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3445
3498
|
});
|
|
@@ -3450,7 +3503,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3450
3503
|
if (process.env.NODE_ENV !== "production") {
|
|
3451
3504
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3452
3505
|
}
|
|
3453
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3506
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3454
3507
|
|
|
3455
3508
|
|
|
3456
3509
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4413,7 +4466,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4413
4466
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4414
4467
|
_ref3$modifiers = _ref3.modifiers,
|
|
4415
4468
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4416
|
-
config =
|
|
4469
|
+
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4417
4470
|
|
|
4418
4471
|
var popperInstanceRef = React.useRef();
|
|
4419
4472
|
var update = React.useCallback(function () {
|
|
@@ -4479,7 +4532,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4479
4532
|
return undefined;
|
|
4480
4533
|
}
|
|
4481
4534
|
|
|
4482
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement,
|
|
4535
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4483
4536
|
placement: placement,
|
|
4484
4537
|
strategy: strategy,
|
|
4485
4538
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4489,7 +4542,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4489
4542
|
popperInstanceRef.current.destroy();
|
|
4490
4543
|
popperInstanceRef.current = undefined;
|
|
4491
4544
|
setState(function (s) {
|
|
4492
|
-
return
|
|
4545
|
+
return _extends({}, s, {
|
|
4493
4546
|
attributes: {},
|
|
4494
4547
|
styles: {
|
|
4495
4548
|
popper: initialPopperStyles(strategy)
|
|
@@ -4574,7 +4627,7 @@ var warning_1 = warning;
|
|
|
4574
4627
|
|
|
4575
4628
|
function safeFindDOMNode(componentOrElement) {
|
|
4576
4629
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4577
|
-
return
|
|
4630
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4578
4631
|
}
|
|
4579
4632
|
|
|
4580
4633
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4719,30 +4772,30 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4719
4772
|
_ref$popperConfig = _ref.popperConfig,
|
|
4720
4773
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4721
4774
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4722
|
-
return
|
|
4775
|
+
return _extends({}, popperConfig, {
|
|
4723
4776
|
placement: placement,
|
|
4724
4777
|
enabled: enabled,
|
|
4725
|
-
modifiers: toModifierArray(
|
|
4778
|
+
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4726
4779
|
eventListeners: {
|
|
4727
4780
|
enabled: enableEvents
|
|
4728
4781
|
},
|
|
4729
|
-
preventOverflow:
|
|
4730
|
-
options: containerPadding ?
|
|
4782
|
+
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4783
|
+
options: containerPadding ? _extends({
|
|
4731
4784
|
padding: containerPadding
|
|
4732
4785
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4733
4786
|
}),
|
|
4734
4787
|
offset: {
|
|
4735
|
-
options:
|
|
4788
|
+
options: _extends({
|
|
4736
4789
|
offset: offset
|
|
4737
4790
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4738
4791
|
},
|
|
4739
|
-
arrow:
|
|
4792
|
+
arrow: _extends({}, modifiers.arrow, {
|
|
4740
4793
|
enabled: !!arrowElement,
|
|
4741
|
-
options:
|
|
4794
|
+
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4742
4795
|
element: arrowElement
|
|
4743
4796
|
})
|
|
4744
4797
|
}),
|
|
4745
|
-
flip:
|
|
4798
|
+
flip: _extends({
|
|
4746
4799
|
enabled: !!flip
|
|
4747
4800
|
}, modifiers.flip)
|
|
4748
4801
|
}))
|
|
@@ -4813,7 +4866,7 @@ function useDropdownMenu(options) {
|
|
|
4813
4866
|
})),
|
|
4814
4867
|
styles = _usePopper.styles,
|
|
4815
4868
|
attributes = _usePopper.attributes,
|
|
4816
|
-
popper =
|
|
4869
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4817
4870
|
|
|
4818
4871
|
var menu;
|
|
4819
4872
|
var menuProps = {
|
|
@@ -4828,15 +4881,15 @@ function useDropdownMenu(options) {
|
|
|
4828
4881
|
};
|
|
4829
4882
|
|
|
4830
4883
|
if (!shouldUsePopper) {
|
|
4831
|
-
menu =
|
|
4884
|
+
menu = _extends({}, childArgs, {
|
|
4832
4885
|
props: menuProps
|
|
4833
4886
|
});
|
|
4834
4887
|
} else {
|
|
4835
|
-
menu =
|
|
4836
|
-
props:
|
|
4888
|
+
menu = _extends({}, popper, childArgs, {
|
|
4889
|
+
props: _extends({}, menuProps, attributes.popper, {
|
|
4837
4890
|
style: styles.popper
|
|
4838
4891
|
}),
|
|
4839
|
-
arrowProps:
|
|
4892
|
+
arrowProps: _extends({
|
|
4840
4893
|
ref: attachArrowRef
|
|
4841
4894
|
}, attributes.arrow, {
|
|
4842
4895
|
style: styles.arrow
|
|
@@ -4873,39 +4926,39 @@ var propTypes$2 = {
|
|
|
4873
4926
|
* },
|
|
4874
4927
|
* }) => React.Element}
|
|
4875
4928
|
*/
|
|
4876
|
-
children: PropTypes__default
|
|
4929
|
+
children: PropTypes__default.func.isRequired,
|
|
4877
4930
|
|
|
4878
4931
|
/**
|
|
4879
4932
|
* Controls the visible state of the menu, generally this is
|
|
4880
4933
|
* provided by the parent `Dropdown` component,
|
|
4881
4934
|
* but may also be specified as a prop directly.
|
|
4882
4935
|
*/
|
|
4883
|
-
show: PropTypes__default
|
|
4936
|
+
show: PropTypes__default.bool,
|
|
4884
4937
|
|
|
4885
4938
|
/**
|
|
4886
4939
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4887
4940
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4888
4941
|
* but may also be specified as a prop directly.
|
|
4889
4942
|
*/
|
|
4890
|
-
alignEnd: PropTypes__default
|
|
4943
|
+
alignEnd: PropTypes__default.bool,
|
|
4891
4944
|
|
|
4892
4945
|
/**
|
|
4893
4946
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4894
4947
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4895
4948
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4896
4949
|
*/
|
|
4897
|
-
flip: PropTypes__default
|
|
4898
|
-
usePopper: PropTypes__default
|
|
4950
|
+
flip: PropTypes__default.bool,
|
|
4951
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4899
4952
|
|
|
4900
4953
|
/**
|
|
4901
4954
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4902
4955
|
*/
|
|
4903
|
-
popperConfig: PropTypes__default
|
|
4956
|
+
popperConfig: PropTypes__default.object,
|
|
4904
4957
|
|
|
4905
4958
|
/**
|
|
4906
4959
|
* Override the default event used by RootCloseWrapper.
|
|
4907
4960
|
*/
|
|
4908
|
-
rootCloseEvent: PropTypes__default
|
|
4961
|
+
rootCloseEvent: PropTypes__default.string
|
|
4909
4962
|
};
|
|
4910
4963
|
var defaultProps$d = {
|
|
4911
4964
|
usePopper: true
|
|
@@ -4919,10 +4972,10 @@ var defaultProps$d = {
|
|
|
4919
4972
|
*/
|
|
4920
4973
|
function DropdownMenu(_ref2) {
|
|
4921
4974
|
var children = _ref2.children,
|
|
4922
|
-
options =
|
|
4975
|
+
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4923
4976
|
|
|
4924
4977
|
var args = useDropdownMenu(options);
|
|
4925
|
-
return /*#__PURE__*/React__default
|
|
4978
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4926
4979
|
}
|
|
4927
4980
|
|
|
4928
4981
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4971,7 +5024,7 @@ var propTypes$3 = {
|
|
|
4971
5024
|
* },
|
|
4972
5025
|
* }) => React.Element}
|
|
4973
5026
|
*/
|
|
4974
|
-
children: PropTypes__default
|
|
5027
|
+
children: PropTypes__default.func.isRequired
|
|
4975
5028
|
};
|
|
4976
5029
|
|
|
4977
5030
|
/**
|
|
@@ -4989,7 +5042,7 @@ function DropdownToggle(_ref2) {
|
|
|
4989
5042
|
show = _useDropdownToggle$.show,
|
|
4990
5043
|
toggle = _useDropdownToggle$.toggle;
|
|
4991
5044
|
|
|
4992
|
-
return /*#__PURE__*/React__default
|
|
5045
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4993
5046
|
show: show,
|
|
4994
5047
|
toggle: toggle,
|
|
4995
5048
|
props: props
|
|
@@ -5011,12 +5064,12 @@ var propTypes$4 = {
|
|
|
5011
5064
|
* },
|
|
5012
5065
|
* }) => React.Element}
|
|
5013
5066
|
*/
|
|
5014
|
-
children: PropTypes__default
|
|
5067
|
+
children: PropTypes__default.func.isRequired,
|
|
5015
5068
|
|
|
5016
5069
|
/**
|
|
5017
5070
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5018
5071
|
*/
|
|
5019
|
-
drop: PropTypes__default
|
|
5072
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5020
5073
|
|
|
5021
5074
|
/**
|
|
5022
5075
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5026,31 +5079,31 @@ var propTypes$4 = {
|
|
|
5026
5079
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5027
5080
|
* where it will default to `keyboard` to match the recommended [ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).
|
|
5028
5081
|
*/
|
|
5029
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5082
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5030
5083
|
|
|
5031
5084
|
/**
|
|
5032
5085
|
* A css slector string that will return __focusable__ menu items.
|
|
5033
5086
|
* Selectors should be relative to the menu component:
|
|
5034
5087
|
* e.g. ` > li:not('.disabled')`
|
|
5035
5088
|
*/
|
|
5036
|
-
itemSelector: PropTypes__default
|
|
5089
|
+
itemSelector: PropTypes__default.string,
|
|
5037
5090
|
|
|
5038
5091
|
/**
|
|
5039
5092
|
* Align the menu to the 'end' side of the placement side of the Dropdown toggle. The default placement is `top-start` or `bottom-start`.
|
|
5040
5093
|
*/
|
|
5041
|
-
alignEnd: PropTypes__default
|
|
5094
|
+
alignEnd: PropTypes__default.bool,
|
|
5042
5095
|
|
|
5043
5096
|
/**
|
|
5044
5097
|
* Whether or not the Dropdown is visible.
|
|
5045
5098
|
*
|
|
5046
5099
|
* @controllable onToggle
|
|
5047
5100
|
*/
|
|
5048
|
-
show: PropTypes__default
|
|
5101
|
+
show: PropTypes__default.bool,
|
|
5049
5102
|
|
|
5050
5103
|
/**
|
|
5051
5104
|
* Sets the initial show position of the Dropdown.
|
|
5052
5105
|
*/
|
|
5053
|
-
defaultShow: PropTypes__default
|
|
5106
|
+
defaultShow: PropTypes__default.bool,
|
|
5054
5107
|
|
|
5055
5108
|
/**
|
|
5056
5109
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5065,7 +5118,7 @@ var propTypes$4 = {
|
|
|
5065
5118
|
*
|
|
5066
5119
|
* @controllable show
|
|
5067
5120
|
*/
|
|
5068
|
-
onToggle: PropTypes__default
|
|
5121
|
+
onToggle: PropTypes__default.func
|
|
5069
5122
|
};
|
|
5070
5123
|
|
|
5071
5124
|
/**
|
|
@@ -5204,7 +5257,7 @@ function Dropdown(_ref) {
|
|
|
5204
5257
|
}
|
|
5205
5258
|
};
|
|
5206
5259
|
|
|
5207
|
-
return /*#__PURE__*/React__default
|
|
5260
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5208
5261
|
value: context
|
|
5209
5262
|
}, children({
|
|
5210
5263
|
props: {
|
|
@@ -5218,14 +5271,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5218
5271
|
Dropdown.Menu = DropdownMenu;
|
|
5219
5272
|
Dropdown.Toggle = DropdownToggle;
|
|
5220
5273
|
|
|
5221
|
-
var NavContext = React__default
|
|
5274
|
+
var NavContext = React__default.createContext(null);
|
|
5222
5275
|
NavContext.displayName = 'NavContext';
|
|
5223
5276
|
|
|
5224
5277
|
var defaultProps$e = {
|
|
5225
5278
|
as: SafeAnchor,
|
|
5226
5279
|
disabled: false
|
|
5227
5280
|
};
|
|
5228
|
-
var DropdownItem = React__default
|
|
5281
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5229
5282
|
var bsPrefix = _ref.bsPrefix,
|
|
5230
5283
|
className = _ref.className,
|
|
5231
5284
|
children = _ref.children,
|
|
@@ -5236,7 +5289,7 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5236
5289
|
onSelect = _ref.onSelect,
|
|
5237
5290
|
propActive = _ref.active,
|
|
5238
5291
|
Component = _ref.as,
|
|
5239
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5292
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5240
5293
|
|
|
5241
5294
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5242
5295
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
@@ -5260,11 +5313,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5260
5313
|
/*#__PURE__*/
|
|
5261
5314
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5262
5315
|
// @ts-ignore
|
|
5263
|
-
React__default
|
|
5316
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5264
5317
|
ref: ref,
|
|
5265
5318
|
href: href,
|
|
5266
5319
|
disabled: disabled,
|
|
5267
|
-
className: index.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5320
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5268
5321
|
onClick: handleClick
|
|
5269
5322
|
}), children)
|
|
5270
5323
|
);
|
|
@@ -5309,7 +5362,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5309
5362
|
}, [refA, refB]);
|
|
5310
5363
|
}
|
|
5311
5364
|
|
|
5312
|
-
var context$2 = React__default
|
|
5365
|
+
var context$2 = React__default.createContext(null);
|
|
5313
5366
|
context$2.displayName = 'NavbarContext';
|
|
5314
5367
|
|
|
5315
5368
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5421,14 +5474,14 @@ function usePopperMarginModifiers() {
|
|
|
5421
5474
|
return [callback, [offset, popoverArrowMargins]];
|
|
5422
5475
|
}
|
|
5423
5476
|
|
|
5424
|
-
var alignDirection = PropTypes__default
|
|
5425
|
-
var alignPropType = PropTypes__default
|
|
5477
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5478
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5426
5479
|
sm: alignDirection
|
|
5427
|
-
}), PropTypes__default
|
|
5480
|
+
}), PropTypes__default.shape({
|
|
5428
5481
|
md: alignDirection
|
|
5429
|
-
}), PropTypes__default
|
|
5482
|
+
}), PropTypes__default.shape({
|
|
5430
5483
|
lg: alignDirection
|
|
5431
|
-
}), PropTypes__default
|
|
5484
|
+
}), PropTypes__default.shape({
|
|
5432
5485
|
xl: alignDirection
|
|
5433
5486
|
})]);
|
|
5434
5487
|
var defaultProps$f = {
|
|
@@ -5437,7 +5490,7 @@ var defaultProps$f = {
|
|
|
5437
5490
|
flip: true
|
|
5438
5491
|
}; // TODO: remove this hack
|
|
5439
5492
|
|
|
5440
|
-
var DropdownMenu$1 = React__default
|
|
5493
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5441
5494
|
var bsPrefix = _ref.bsPrefix,
|
|
5442
5495
|
className = _ref.className,
|
|
5443
5496
|
align = _ref.align,
|
|
@@ -5449,7 +5502,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5449
5502
|
_ref$as = _ref.as,
|
|
5450
5503
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5451
5504
|
popperConfig = _ref.popperConfig,
|
|
5452
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5505
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5453
5506
|
|
|
5454
5507
|
var isNavbar = React.useContext(context$2);
|
|
5455
5508
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5485,7 +5538,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5485
5538
|
show: showProps,
|
|
5486
5539
|
alignEnd: alignRight,
|
|
5487
5540
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5488
|
-
popperConfig: index._extends({}, popperConfig, {
|
|
5541
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5489
5542
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5490
5543
|
})
|
|
5491
5544
|
}),
|
|
@@ -5508,12 +5561,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5508
5561
|
if (placement) {
|
|
5509
5562
|
// we don't need the default popper style,
|
|
5510
5563
|
// menus are display: none when not shown.
|
|
5511
|
-
props.style = index._extends({}, props.style, {}, menuProps.style);
|
|
5564
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5512
5565
|
props['x-placement'] = placement;
|
|
5513
5566
|
}
|
|
5514
5567
|
|
|
5515
|
-
return /*#__PURE__*/React__default
|
|
5516
|
-
className: index.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5568
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, menuProps, {
|
|
5569
|
+
className: index$5.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5517
5570
|
}));
|
|
5518
5571
|
});
|
|
5519
5572
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5546,14 +5599,14 @@ module.exports = exports['default'];
|
|
|
5546
5599
|
|
|
5547
5600
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5548
5601
|
|
|
5549
|
-
var DropdownToggle$1 = React__default
|
|
5602
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5550
5603
|
var bsPrefix = _ref.bsPrefix,
|
|
5551
5604
|
split = _ref.split,
|
|
5552
5605
|
className = _ref.className,
|
|
5553
5606
|
childBsPrefix = _ref.childBsPrefix,
|
|
5554
5607
|
_ref$as = _ref.as,
|
|
5555
5608
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5556
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5609
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5557
5610
|
|
|
5558
5611
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5559
5612
|
|
|
@@ -5568,9 +5621,9 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5568
5621
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5569
5622
|
// underlying component, to allow it to render size and style variants.
|
|
5570
5623
|
|
|
5571
|
-
return /*#__PURE__*/React__default
|
|
5624
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5572
5625
|
onClick: toggle,
|
|
5573
|
-
className: index.classnames(className, prefix, split && prefix + "-split")
|
|
5626
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5574
5627
|
}, toggleProps, props));
|
|
5575
5628
|
});
|
|
5576
5629
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
@@ -5591,7 +5644,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5591
5644
|
var defaultProps$g = {
|
|
5592
5645
|
navbar: false
|
|
5593
5646
|
};
|
|
5594
|
-
var Dropdown$1 = React__default
|
|
5647
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5595
5648
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5596
5649
|
show: 'onToggle'
|
|
5597
5650
|
}),
|
|
@@ -5606,7 +5659,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5606
5659
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5607
5660
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5608
5661
|
_4 = _useUncontrolled.navbar,
|
|
5609
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5662
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5610
5663
|
|
|
5611
5664
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5612
5665
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5628,9 +5681,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5628
5681
|
if (onSelect) onSelect(key, event);
|
|
5629
5682
|
handleToggle(false, event, 'select');
|
|
5630
5683
|
});
|
|
5631
|
-
return /*#__PURE__*/React__default
|
|
5684
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5632
5685
|
value: handleSelect
|
|
5633
|
-
}, /*#__PURE__*/React__default
|
|
5686
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5634
5687
|
drop: drop,
|
|
5635
5688
|
show: show,
|
|
5636
5689
|
alignEnd: alignRight,
|
|
@@ -5639,9 +5692,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5639
5692
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5640
5693
|
}, function (_ref) {
|
|
5641
5694
|
var dropdownProps = _ref.props;
|
|
5642
|
-
return /*#__PURE__*/React__default
|
|
5695
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5643
5696
|
ref: ref,
|
|
5644
|
-
className: index.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5697
|
+
className: index$5.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5645
5698
|
}));
|
|
5646
5699
|
}));
|
|
5647
5700
|
});
|
|
@@ -5660,19 +5713,19 @@ var propTypes$5 = {
|
|
|
5660
5713
|
* @type {string|number}
|
|
5661
5714
|
* @required
|
|
5662
5715
|
*/
|
|
5663
|
-
id: PropTypes__default
|
|
5716
|
+
id: PropTypes__default.any,
|
|
5664
5717
|
|
|
5665
5718
|
/** An `href` passed to the Toggle component */
|
|
5666
|
-
href: PropTypes__default
|
|
5719
|
+
href: PropTypes__default.string,
|
|
5667
5720
|
|
|
5668
5721
|
/** An `onClick` handler passed to the Toggle component */
|
|
5669
|
-
onClick: PropTypes__default
|
|
5722
|
+
onClick: PropTypes__default.func,
|
|
5670
5723
|
|
|
5671
5724
|
/** The content of the non-toggle Button. */
|
|
5672
|
-
title: PropTypes__default
|
|
5725
|
+
title: PropTypes__default.node.isRequired,
|
|
5673
5726
|
|
|
5674
5727
|
/** Disables both Buttons */
|
|
5675
|
-
disabled: PropTypes__default
|
|
5728
|
+
disabled: PropTypes__default.bool,
|
|
5676
5729
|
|
|
5677
5730
|
/**
|
|
5678
5731
|
* Aligns the dropdown menu responsively.
|
|
@@ -5684,26 +5737,26 @@ var propTypes$5 = {
|
|
|
5684
5737
|
menuAlign: alignPropType,
|
|
5685
5738
|
|
|
5686
5739
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5687
|
-
menuRole: PropTypes__default
|
|
5740
|
+
menuRole: PropTypes__default.string,
|
|
5688
5741
|
|
|
5689
5742
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5690
|
-
renderMenuOnMount: PropTypes__default
|
|
5743
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5691
5744
|
|
|
5692
5745
|
/**
|
|
5693
5746
|
* Which event when fired outside the component will cause it to be closed.
|
|
5694
5747
|
*
|
|
5695
5748
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5696
5749
|
*/
|
|
5697
|
-
rootCloseEvent: PropTypes__default
|
|
5750
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5698
5751
|
|
|
5699
5752
|
/** @ignore */
|
|
5700
|
-
bsPrefix: PropTypes__default
|
|
5753
|
+
bsPrefix: PropTypes__default.string,
|
|
5701
5754
|
|
|
5702
5755
|
/** @ignore */
|
|
5703
|
-
variant: PropTypes__default
|
|
5756
|
+
variant: PropTypes__default.string,
|
|
5704
5757
|
|
|
5705
5758
|
/** @ignore */
|
|
5706
|
-
size: PropTypes__default
|
|
5759
|
+
size: PropTypes__default.string
|
|
5707
5760
|
};
|
|
5708
5761
|
/**
|
|
5709
5762
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5714,7 +5767,7 @@ var propTypes$5 = {
|
|
|
5714
5767
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5715
5768
|
*/
|
|
5716
5769
|
|
|
5717
|
-
var DropdownButton = React__default
|
|
5770
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5718
5771
|
var title = _ref.title,
|
|
5719
5772
|
children = _ref.children,
|
|
5720
5773
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5727,18 +5780,18 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5727
5780
|
disabled = _ref.disabled,
|
|
5728
5781
|
href = _ref.href,
|
|
5729
5782
|
id = _ref.id,
|
|
5730
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5783
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5731
5784
|
|
|
5732
|
-
return /*#__PURE__*/React__default
|
|
5785
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5733
5786
|
ref: ref
|
|
5734
|
-
}, props), /*#__PURE__*/React__default
|
|
5787
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5735
5788
|
id: id,
|
|
5736
5789
|
href: href,
|
|
5737
5790
|
size: size,
|
|
5738
5791
|
variant: variant,
|
|
5739
5792
|
disabled: disabled,
|
|
5740
5793
|
childBsPrefix: bsPrefix
|
|
5741
|
-
}, title), /*#__PURE__*/React__default
|
|
5794
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5742
5795
|
align: menuAlign,
|
|
5743
5796
|
role: menuRole,
|
|
5744
5797
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5847,13 +5900,13 @@ var propTypes$6 = {
|
|
|
5847
5900
|
*
|
|
5848
5901
|
* @type {('valid'|'invalid')}
|
|
5849
5902
|
*/
|
|
5850
|
-
type: PropTypes__default
|
|
5903
|
+
type: PropTypes__default.string,
|
|
5851
5904
|
|
|
5852
5905
|
/** Display feedback as a tooltip. */
|
|
5853
|
-
tooltip: PropTypes__default
|
|
5854
|
-
as: PropTypes__default
|
|
5906
|
+
tooltip: PropTypes__default.bool,
|
|
5907
|
+
as: PropTypes__default.elementType
|
|
5855
5908
|
};
|
|
5856
|
-
var Feedback = React__default
|
|
5909
|
+
var Feedback = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5857
5910
|
function (_ref, ref) {
|
|
5858
5911
|
var _ref$as = _ref.as,
|
|
5859
5912
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5862,21 +5915,21 @@ function (_ref, ref) {
|
|
|
5862
5915
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5863
5916
|
_ref$tooltip = _ref.tooltip,
|
|
5864
5917
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5865
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5918
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5866
5919
|
|
|
5867
|
-
return /*#__PURE__*/React__default
|
|
5920
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5868
5921
|
ref: ref,
|
|
5869
|
-
className: index.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5922
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5870
5923
|
}));
|
|
5871
5924
|
});
|
|
5872
5925
|
Feedback.displayName = 'Feedback';
|
|
5873
5926
|
Feedback.propTypes = propTypes$6;
|
|
5874
5927
|
|
|
5875
|
-
var FormContext = React__default
|
|
5928
|
+
var FormContext = React__default.createContext({
|
|
5876
5929
|
controlId: undefined
|
|
5877
5930
|
});
|
|
5878
5931
|
|
|
5879
|
-
var FormCheckInput = React__default
|
|
5932
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5880
5933
|
var id = _ref.id,
|
|
5881
5934
|
bsPrefix = _ref.bsPrefix,
|
|
5882
5935
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5890,7 +5943,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5890
5943
|
isStatic = _ref.isStatic,
|
|
5891
5944
|
_ref$as = _ref.as,
|
|
5892
5945
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5893
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5946
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5894
5947
|
|
|
5895
5948
|
var _useContext = React.useContext(FormContext),
|
|
5896
5949
|
controlId = _useContext.controlId,
|
|
@@ -5901,21 +5954,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5901
5954
|
defaultPrefix = _ref2[1];
|
|
5902
5955
|
|
|
5903
5956
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5904
|
-
return /*#__PURE__*/React__default
|
|
5957
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5905
5958
|
ref: ref,
|
|
5906
5959
|
type: type,
|
|
5907
5960
|
id: id || controlId,
|
|
5908
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5961
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5909
5962
|
}));
|
|
5910
5963
|
});
|
|
5911
5964
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5912
5965
|
|
|
5913
|
-
var FormCheckLabel = React__default
|
|
5966
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5914
5967
|
var bsPrefix = _ref.bsPrefix,
|
|
5915
5968
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5916
5969
|
className = _ref.className,
|
|
5917
5970
|
htmlFor = _ref.htmlFor,
|
|
5918
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5971
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5919
5972
|
|
|
5920
5973
|
var _useContext = React.useContext(FormContext),
|
|
5921
5974
|
controlId = _useContext.controlId,
|
|
@@ -5926,15 +5979,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5926
5979
|
defaultPrefix = _ref2[1];
|
|
5927
5980
|
|
|
5928
5981
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5929
|
-
return /*#__PURE__*/React__default
|
|
5982
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5930
5983
|
ref: ref,
|
|
5931
5984
|
htmlFor: htmlFor || controlId,
|
|
5932
|
-
className: index.classnames(className, bsPrefix)
|
|
5985
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5933
5986
|
}));
|
|
5934
5987
|
});
|
|
5935
5988
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5936
5989
|
|
|
5937
|
-
var FormCheck = React__default
|
|
5990
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5938
5991
|
var id = _ref.id,
|
|
5939
5992
|
bsPrefix = _ref.bsPrefix,
|
|
5940
5993
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5960,7 +6013,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5960
6013
|
propCustom = _ref.custom,
|
|
5961
6014
|
_ref$as = _ref.as,
|
|
5962
6015
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5963
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5964
6017
|
|
|
5965
6018
|
var custom = type === 'switch' ? true : propCustom;
|
|
5966
6019
|
|
|
@@ -5980,7 +6033,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5980
6033
|
};
|
|
5981
6034
|
}, [controlId, custom, id]);
|
|
5982
6035
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
5983
|
-
var input = /*#__PURE__*/React__default
|
|
6036
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
5984
6037
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5985
6038
|
ref: ref,
|
|
5986
6039
|
isValid: isValid,
|
|
@@ -5989,14 +6042,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5989
6042
|
disabled: disabled,
|
|
5990
6043
|
as: as
|
|
5991
6044
|
}));
|
|
5992
|
-
return /*#__PURE__*/React__default
|
|
6045
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5993
6046
|
value: innerFormContext
|
|
5994
|
-
}, /*#__PURE__*/React__default
|
|
6047
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5995
6048
|
style: style,
|
|
5996
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5997
|
-
}, children || /*#__PURE__*/React__default
|
|
6049
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6050
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5998
6051
|
title: title
|
|
5999
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6052
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6000
6053
|
type: isValid ? 'valid' : 'invalid',
|
|
6001
6054
|
tooltip: feedbackTooltip
|
|
6002
6055
|
}, feedback))));
|
|
@@ -6005,7 +6058,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6005
6058
|
FormCheck.Input = FormCheckInput;
|
|
6006
6059
|
FormCheck.Label = FormCheckLabel;
|
|
6007
6060
|
|
|
6008
|
-
var FormFileInput = React__default
|
|
6061
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6009
6062
|
var id = _ref.id,
|
|
6010
6063
|
bsPrefix = _ref.bsPrefix,
|
|
6011
6064
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6015,7 +6068,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6015
6068
|
lang = _ref.lang,
|
|
6016
6069
|
_ref$as = _ref.as,
|
|
6017
6070
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6018
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6071
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6019
6072
|
|
|
6020
6073
|
var _useContext = React.useContext(FormContext),
|
|
6021
6074
|
controlId = _useContext.controlId,
|
|
@@ -6028,22 +6081,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6028
6081
|
defaultPrefix = _ref2[1];
|
|
6029
6082
|
|
|
6030
6083
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6031
|
-
return /*#__PURE__*/React__default
|
|
6084
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6032
6085
|
ref: ref,
|
|
6033
6086
|
id: id || controlId,
|
|
6034
6087
|
type: type,
|
|
6035
6088
|
lang: lang,
|
|
6036
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6089
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6037
6090
|
}));
|
|
6038
6091
|
});
|
|
6039
6092
|
FormFileInput.displayName = 'FormFileInput';
|
|
6040
6093
|
|
|
6041
|
-
var FormFileLabel = React__default
|
|
6094
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6042
6095
|
var bsPrefix = _ref.bsPrefix,
|
|
6043
6096
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6044
6097
|
className = _ref.className,
|
|
6045
6098
|
htmlFor = _ref.htmlFor,
|
|
6046
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6099
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6047
6100
|
|
|
6048
6101
|
var _useContext = React.useContext(FormContext),
|
|
6049
6102
|
controlId = _useContext.controlId,
|
|
@@ -6054,16 +6107,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6054
6107
|
defaultPrefix = _ref2[1];
|
|
6055
6108
|
|
|
6056
6109
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6057
|
-
return /*#__PURE__*/React__default
|
|
6110
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6058
6111
|
ref: ref,
|
|
6059
6112
|
htmlFor: htmlFor || controlId,
|
|
6060
|
-
className: index.classnames(className, bsPrefix),
|
|
6113
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6061
6114
|
"data-browse": props['data-browse']
|
|
6062
6115
|
}));
|
|
6063
6116
|
});
|
|
6064
6117
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6065
6118
|
|
|
6066
|
-
var FormFile = React__default
|
|
6119
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6067
6120
|
var id = _ref.id,
|
|
6068
6121
|
bsPrefix = _ref.bsPrefix,
|
|
6069
6122
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6087,7 +6140,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6087
6140
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6088
6141
|
_ref$inputAs = _ref.inputAs,
|
|
6089
6142
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6090
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6143
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6091
6144
|
|
|
6092
6145
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6093
6146
|
prefix = _ref2[0],
|
|
@@ -6106,7 +6159,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6106
6159
|
};
|
|
6107
6160
|
}, [controlId, custom, id]);
|
|
6108
6161
|
var hasLabel = label != null && label !== false && !children;
|
|
6109
|
-
var input = /*#__PURE__*/React__default
|
|
6162
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6110
6163
|
ref: ref,
|
|
6111
6164
|
isValid: isValid,
|
|
6112
6165
|
isInvalid: isInvalid,
|
|
@@ -6114,14 +6167,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6114
6167
|
as: inputAs,
|
|
6115
6168
|
lang: lang
|
|
6116
6169
|
}));
|
|
6117
|
-
return /*#__PURE__*/React__default
|
|
6170
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6118
6171
|
value: innerFormContext
|
|
6119
|
-
}, /*#__PURE__*/React__default
|
|
6172
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6120
6173
|
style: style,
|
|
6121
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6122
|
-
}, children || /*#__PURE__*/React__default
|
|
6174
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6175
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6123
6176
|
"data-browse": dataBrowse
|
|
6124
|
-
}, label)) : /*#__PURE__*/React__default
|
|
6177
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6125
6178
|
type: isValid ? 'valid' : 'invalid',
|
|
6126
6179
|
tooltip: feedbackTooltip
|
|
6127
6180
|
}, feedback))));
|
|
@@ -6130,7 +6183,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6130
6183
|
FormFile.Input = FormFileInput;
|
|
6131
6184
|
FormFile.Label = FormFileLabel;
|
|
6132
6185
|
|
|
6133
|
-
var FormControl = React__default
|
|
6186
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6134
6187
|
var bsPrefix = _ref.bsPrefix,
|
|
6135
6188
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6136
6189
|
type = _ref.type,
|
|
@@ -6147,7 +6200,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6147
6200
|
custom = _ref.custom,
|
|
6148
6201
|
_ref$as = _ref.as,
|
|
6149
6202
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6150
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6203
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6151
6204
|
|
|
6152
6205
|
var _useContext = React.useContext(FormContext),
|
|
6153
6206
|
controlId = _useContext.controlId;
|
|
@@ -6182,13 +6235,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6182
6235
|
}
|
|
6183
6236
|
|
|
6184
6237
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6185
|
-
return /*#__PURE__*/React__default
|
|
6238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6186
6239
|
type: type,
|
|
6187
6240
|
size: htmlSize,
|
|
6188
6241
|
ref: ref,
|
|
6189
6242
|
readOnly: readOnly,
|
|
6190
6243
|
id: id || controlId,
|
|
6191
|
-
className: index.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6244
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6192
6245
|
}));
|
|
6193
6246
|
});
|
|
6194
6247
|
FormControl.displayName = 'FormControl';
|
|
@@ -6196,14 +6249,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6196
6249
|
Feedback: Feedback
|
|
6197
6250
|
});
|
|
6198
6251
|
|
|
6199
|
-
var FormGroup = React__default
|
|
6252
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6200
6253
|
var bsPrefix = _ref.bsPrefix,
|
|
6201
6254
|
className = _ref.className,
|
|
6202
6255
|
children = _ref.children,
|
|
6203
6256
|
controlId = _ref.controlId,
|
|
6204
6257
|
_ref$as = _ref.as,
|
|
6205
6258
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6206
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6259
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6207
6260
|
|
|
6208
6261
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6209
6262
|
var context = React.useMemo(function () {
|
|
@@ -6211,11 +6264,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6211
6264
|
controlId: controlId
|
|
6212
6265
|
};
|
|
6213
6266
|
}, [controlId]);
|
|
6214
|
-
return /*#__PURE__*/React__default
|
|
6267
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6215
6268
|
value: context
|
|
6216
|
-
}, /*#__PURE__*/React__default
|
|
6269
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6217
6270
|
ref: ref,
|
|
6218
|
-
className: index.classnames(className, bsPrefix)
|
|
6271
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6219
6272
|
}), children));
|
|
6220
6273
|
});
|
|
6221
6274
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6224,7 +6277,7 @@ var defaultProps$h = {
|
|
|
6224
6277
|
column: false,
|
|
6225
6278
|
srOnly: false
|
|
6226
6279
|
};
|
|
6227
|
-
var FormLabel = React__default
|
|
6280
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6228
6281
|
var _ref$as = _ref.as,
|
|
6229
6282
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6230
6283
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6232,7 +6285,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6232
6285
|
srOnly = _ref.srOnly,
|
|
6233
6286
|
className = _ref.className,
|
|
6234
6287
|
htmlFor = _ref.htmlFor,
|
|
6235
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6288
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6236
6289
|
|
|
6237
6290
|
var _useContext = React.useContext(FormContext),
|
|
6238
6291
|
controlId = _useContext.controlId;
|
|
@@ -6240,10 +6293,10 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6240
6293
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6241
6294
|
var columnClass = 'col-form-label';
|
|
6242
6295
|
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6243
|
-
var classes = index.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6296
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6244
6297
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6245
6298
|
htmlFor = htmlFor || controlId;
|
|
6246
|
-
if (column) return /*#__PURE__*/React__default
|
|
6299
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6247
6300
|
as: "label",
|
|
6248
6301
|
className: classes,
|
|
6249
6302
|
htmlFor: htmlFor
|
|
@@ -6251,7 +6304,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6251
6304
|
return (
|
|
6252
6305
|
/*#__PURE__*/
|
|
6253
6306
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6254
|
-
React__default
|
|
6307
|
+
React__default.createElement(Component, index$5._extends({
|
|
6255
6308
|
ref: ref,
|
|
6256
6309
|
className: classes,
|
|
6257
6310
|
htmlFor: htmlFor
|
|
@@ -6261,25 +6314,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6261
6314
|
FormLabel.displayName = 'FormLabel';
|
|
6262
6315
|
FormLabel.defaultProps = defaultProps$h;
|
|
6263
6316
|
|
|
6264
|
-
var FormText = React__default
|
|
6317
|
+
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6265
6318
|
function (_ref, ref) {
|
|
6266
6319
|
var bsPrefix = _ref.bsPrefix,
|
|
6267
6320
|
className = _ref.className,
|
|
6268
6321
|
_ref$as = _ref.as,
|
|
6269
6322
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6270
6323
|
muted = _ref.muted,
|
|
6271
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6324
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6272
6325
|
|
|
6273
6326
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6274
|
-
return /*#__PURE__*/React__default
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6275
6328
|
ref: ref,
|
|
6276
|
-
className: index.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6329
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6277
6330
|
}));
|
|
6278
6331
|
});
|
|
6279
6332
|
FormText.displayName = 'FormText';
|
|
6280
6333
|
|
|
6281
|
-
var Switch = React__default
|
|
6282
|
-
return /*#__PURE__*/React__default
|
|
6334
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6335
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6283
6336
|
ref: ref,
|
|
6284
6337
|
type: "switch"
|
|
6285
6338
|
}));
|
|
@@ -6292,19 +6345,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6292
6345
|
var defaultProps$i = {
|
|
6293
6346
|
inline: false
|
|
6294
6347
|
};
|
|
6295
|
-
var FormImpl = React__default
|
|
6348
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6296
6349
|
var bsPrefix = _ref.bsPrefix,
|
|
6297
6350
|
inline = _ref.inline,
|
|
6298
6351
|
className = _ref.className,
|
|
6299
6352
|
validated = _ref.validated,
|
|
6300
6353
|
_ref$as = _ref.as,
|
|
6301
6354
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6302
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6355
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6303
6356
|
|
|
6304
6357
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6305
|
-
return /*#__PURE__*/React__default
|
|
6358
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6306
6359
|
ref: ref,
|
|
6307
|
-
className: index.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6360
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6308
6361
|
}));
|
|
6309
6362
|
});
|
|
6310
6363
|
FormImpl.displayName = 'Form';
|
|
@@ -6321,20 +6374,20 @@ FormImpl.Text = FormText;
|
|
|
6321
6374
|
var defaultProps$j = {
|
|
6322
6375
|
fluid: false
|
|
6323
6376
|
};
|
|
6324
|
-
var Container = React__default
|
|
6377
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6325
6378
|
var bsPrefix = _ref.bsPrefix,
|
|
6326
6379
|
fluid = _ref.fluid,
|
|
6327
6380
|
_ref$as = _ref.as,
|
|
6328
6381
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6329
6382
|
className = _ref.className,
|
|
6330
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6383
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6331
6384
|
|
|
6332
6385
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6333
6386
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6334
|
-
return /*#__PURE__*/React__default
|
|
6387
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6335
6388
|
ref: ref
|
|
6336
6389
|
}, props, {
|
|
6337
|
-
className: index.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6390
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6338
6391
|
}));
|
|
6339
6392
|
});
|
|
6340
6393
|
Container.displayName = 'Container';
|
|
@@ -6344,27 +6397,27 @@ var propTypes$7 = {
|
|
|
6344
6397
|
/**
|
|
6345
6398
|
* @default 'img'
|
|
6346
6399
|
*/
|
|
6347
|
-
bsPrefix: PropTypes__default
|
|
6400
|
+
bsPrefix: PropTypes__default.string,
|
|
6348
6401
|
|
|
6349
6402
|
/**
|
|
6350
6403
|
* Sets image as fluid image.
|
|
6351
6404
|
*/
|
|
6352
|
-
fluid: PropTypes__default
|
|
6405
|
+
fluid: PropTypes__default.bool,
|
|
6353
6406
|
|
|
6354
6407
|
/**
|
|
6355
6408
|
* Sets image shape as rounded.
|
|
6356
6409
|
*/
|
|
6357
|
-
rounded: PropTypes__default
|
|
6410
|
+
rounded: PropTypes__default.bool,
|
|
6358
6411
|
|
|
6359
6412
|
/**
|
|
6360
6413
|
* Sets image shape as circle.
|
|
6361
6414
|
*/
|
|
6362
|
-
roundedCircle: PropTypes__default
|
|
6415
|
+
roundedCircle: PropTypes__default.bool,
|
|
6363
6416
|
|
|
6364
6417
|
/**
|
|
6365
6418
|
* Sets image shape as thumbnail.
|
|
6366
6419
|
*/
|
|
6367
|
-
thumbnail: PropTypes__default
|
|
6420
|
+
thumbnail: PropTypes__default.bool
|
|
6368
6421
|
};
|
|
6369
6422
|
var defaultProps$k = {
|
|
6370
6423
|
fluid: false,
|
|
@@ -6372,22 +6425,22 @@ var defaultProps$k = {
|
|
|
6372
6425
|
roundedCircle: false,
|
|
6373
6426
|
thumbnail: false
|
|
6374
6427
|
};
|
|
6375
|
-
var Image = React__default
|
|
6428
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6376
6429
|
var bsPrefix = _ref.bsPrefix,
|
|
6377
6430
|
className = _ref.className,
|
|
6378
6431
|
fluid = _ref.fluid,
|
|
6379
6432
|
rounded = _ref.rounded,
|
|
6380
6433
|
roundedCircle = _ref.roundedCircle,
|
|
6381
6434
|
thumbnail = _ref.thumbnail,
|
|
6382
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6435
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6383
6436
|
|
|
6384
6437
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6385
|
-
var classes = index.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6386
|
-
return /*#__PURE__*/React__default
|
|
6438
|
+
var classes = index$5.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6439
|
+
return /*#__PURE__*/React__default.createElement("img", index$5._extends({
|
|
6387
6440
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6388
6441
|
ref: ref
|
|
6389
6442
|
}, props, {
|
|
6390
|
-
className: index.classnames(className, classes)
|
|
6443
|
+
className: index$5.classnames(className, classes)
|
|
6391
6444
|
}));
|
|
6392
6445
|
});
|
|
6393
6446
|
Image.displayName = 'Image';
|
|
@@ -6396,14 +6449,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6396
6449
|
var defaultProps$l = {
|
|
6397
6450
|
fluid: true
|
|
6398
6451
|
};
|
|
6399
|
-
var FigureImage = React__default
|
|
6452
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6400
6453
|
var className = _ref.className,
|
|
6401
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6454
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6402
6455
|
|
|
6403
|
-
return /*#__PURE__*/React__default
|
|
6456
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6404
6457
|
ref: ref
|
|
6405
6458
|
}, props, {
|
|
6406
|
-
className: index.classnames(className, 'figure-img')
|
|
6459
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6407
6460
|
}));
|
|
6408
6461
|
});
|
|
6409
6462
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6427,13 +6480,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6427
6480
|
});
|
|
6428
6481
|
|
|
6429
6482
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6430
|
-
return /*#__PURE__*/React__default
|
|
6483
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6431
6484
|
type: "checkbox"
|
|
6432
6485
|
}, props)));
|
|
6433
6486
|
};
|
|
6434
6487
|
|
|
6435
6488
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6436
|
-
return /*#__PURE__*/React__default
|
|
6489
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6437
6490
|
type: "radio"
|
|
6438
6491
|
}, props)));
|
|
6439
6492
|
};
|
|
@@ -6446,24 +6499,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6446
6499
|
* @property {InputGroupRadio} Radio
|
|
6447
6500
|
* @property {InputGroupCheckbox} Checkbox
|
|
6448
6501
|
*/
|
|
6449
|
-
var InputGroup = React__default
|
|
6502
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6450
6503
|
var bsPrefix = _ref.bsPrefix,
|
|
6451
6504
|
size = _ref.size,
|
|
6452
6505
|
className = _ref.className,
|
|
6453
6506
|
_ref$as = _ref.as,
|
|
6454
6507
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6455
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6508
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6456
6509
|
|
|
6457
6510
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6458
|
-
return /*#__PURE__*/React__default
|
|
6511
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6459
6512
|
ref: ref
|
|
6460
6513
|
}, props, {
|
|
6461
|
-
className: index.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6514
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6462
6515
|
}));
|
|
6463
6516
|
});
|
|
6464
6517
|
InputGroup.displayName = 'InputGroup';
|
|
6465
6518
|
|
|
6466
|
-
var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
6519
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6467
6520
|
Text: InputGroupText,
|
|
6468
6521
|
Radio: InputGroupRadio,
|
|
6469
6522
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6474,7 +6527,7 @@ var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
|
6474
6527
|
var defaultProps$m = {
|
|
6475
6528
|
fluid: false
|
|
6476
6529
|
};
|
|
6477
|
-
var Jumbotron = React__default
|
|
6530
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6478
6531
|
var _classes;
|
|
6479
6532
|
|
|
6480
6533
|
var _ref$as = _ref.as,
|
|
@@ -6482,32 +6535,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6482
6535
|
className = _ref.className,
|
|
6483
6536
|
fluid = _ref.fluid,
|
|
6484
6537
|
bsPrefix = _ref.bsPrefix,
|
|
6485
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6486
6539
|
|
|
6487
6540
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6488
6541
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6489
|
-
return /*#__PURE__*/React__default
|
|
6542
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6490
6543
|
ref: ref
|
|
6491
6544
|
}, props, {
|
|
6492
|
-
className: index.classnames(className, classes)
|
|
6545
|
+
className: index$5.classnames(className, classes)
|
|
6493
6546
|
}));
|
|
6494
6547
|
});
|
|
6495
6548
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6496
6549
|
Jumbotron.displayName = 'Jumbotron';
|
|
6497
6550
|
|
|
6498
|
-
var TabContext = React__default
|
|
6551
|
+
var TabContext = React__default.createContext(null);
|
|
6499
6552
|
|
|
6500
6553
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6501
6554
|
var noop$4 = function noop() {};
|
|
6502
6555
|
|
|
6503
|
-
var AbstractNav = React__default
|
|
6556
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6504
6557
|
var _ref$as = _ref.as,
|
|
6505
6558
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6506
6559
|
onSelect = _ref.onSelect,
|
|
6507
6560
|
activeKey = _ref.activeKey,
|
|
6508
6561
|
role = _ref.role,
|
|
6509
6562
|
onKeyDown = _ref.onKeyDown,
|
|
6510
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6563
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6511
6564
|
|
|
6512
6565
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6513
6566
|
// and don't want to reset the set in the effect
|
|
@@ -6581,9 +6634,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6581
6634
|
needsRefocusRef.current = false;
|
|
6582
6635
|
});
|
|
6583
6636
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6584
|
-
return /*#__PURE__*/React__default
|
|
6637
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6585
6638
|
value: handleSelect
|
|
6586
|
-
}, /*#__PURE__*/React__default
|
|
6639
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6587
6640
|
value: {
|
|
6588
6641
|
role: role,
|
|
6589
6642
|
// used by NavLink to determine it's role
|
|
@@ -6591,7 +6644,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6591
6644
|
getControlledId: getControlledId || noop$4,
|
|
6592
6645
|
getControllerId: getControllerId || noop$4
|
|
6593
6646
|
}
|
|
6594
|
-
}, /*#__PURE__*/React__default
|
|
6647
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6595
6648
|
onKeyDown: handleKeyDown,
|
|
6596
6649
|
ref: mergedRef,
|
|
6597
6650
|
role: role
|
|
@@ -6601,14 +6654,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6601
6654
|
var defaultProps$n = {
|
|
6602
6655
|
disabled: false
|
|
6603
6656
|
};
|
|
6604
|
-
var AbstractNavItem = React__default
|
|
6657
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6605
6658
|
var active = _ref.active,
|
|
6606
6659
|
className = _ref.className,
|
|
6607
6660
|
eventKey = _ref.eventKey,
|
|
6608
6661
|
onSelect = _ref.onSelect,
|
|
6609
6662
|
onClick = _ref.onClick,
|
|
6610
6663
|
Component = _ref.as,
|
|
6611
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6664
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6612
6665
|
|
|
6613
6666
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6614
6667
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6638,10 +6691,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6638
6691
|
if (onSelect) onSelect(navKey, e);
|
|
6639
6692
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6640
6693
|
});
|
|
6641
|
-
return /*#__PURE__*/React__default
|
|
6694
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6642
6695
|
ref: ref,
|
|
6643
6696
|
onClick: handleOnclick,
|
|
6644
|
-
className: index.classnames(className, isActive && 'active')
|
|
6697
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6645
6698
|
}));
|
|
6646
6699
|
});
|
|
6647
6700
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6651,7 +6704,7 @@ var defaultProps$o = {
|
|
|
6651
6704
|
active: false,
|
|
6652
6705
|
disabled: false
|
|
6653
6706
|
};
|
|
6654
|
-
var ListGroupItem = React__default
|
|
6707
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6655
6708
|
var bsPrefix = _ref.bsPrefix,
|
|
6656
6709
|
active = _ref.active,
|
|
6657
6710
|
disabled = _ref.disabled,
|
|
@@ -6661,7 +6714,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6661
6714
|
as = _ref.as,
|
|
6662
6715
|
eventKey = _ref.eventKey,
|
|
6663
6716
|
onClick = _ref.onClick,
|
|
6664
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6717
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6665
6718
|
|
|
6666
6719
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6667
6720
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6673,7 +6726,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6673
6726
|
|
|
6674
6727
|
if (onClick) onClick(event);
|
|
6675
6728
|
}, [disabled, onClick]);
|
|
6676
|
-
return /*#__PURE__*/React__default
|
|
6729
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6677
6730
|
ref: ref
|
|
6678
6731
|
}, props, {
|
|
6679
6732
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6681,7 +6734,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6681
6734
|
,
|
|
6682
6735
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6683
6736
|
onClick: handleClick,
|
|
6684
|
-
className: index.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6737
|
+
className: index$5.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6685
6738
|
}));
|
|
6686
6739
|
});
|
|
6687
6740
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6691,7 +6744,7 @@ var defaultProps$p = {
|
|
|
6691
6744
|
variant: undefined,
|
|
6692
6745
|
horizontal: undefined
|
|
6693
6746
|
};
|
|
6694
|
-
var ListGroup = React__default
|
|
6747
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6695
6748
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6696
6749
|
activeKey: 'onSelect'
|
|
6697
6750
|
}),
|
|
@@ -6701,7 +6754,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6701
6754
|
horizontal = _useUncontrolled.horizontal,
|
|
6702
6755
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6703
6756
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6704
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6757
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6705
6758
|
|
|
6706
6759
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6707
6760
|
var horizontalVariant;
|
|
@@ -6713,11 +6766,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6713
6766
|
}
|
|
6714
6767
|
|
|
6715
6768
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6716
|
-
return /*#__PURE__*/React__default
|
|
6769
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6717
6770
|
ref: ref
|
|
6718
6771
|
}, controlledProps, {
|
|
6719
6772
|
as: as,
|
|
6720
|
-
className: index.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6773
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6721
6774
|
}));
|
|
6722
6775
|
});
|
|
6723
6776
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6725,18 +6778,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6725
6778
|
ListGroup.Item = ListGroupItem;
|
|
6726
6779
|
|
|
6727
6780
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6728
|
-
var Media = React__default
|
|
6781
|
+
var Media = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6729
6782
|
function (_ref, ref) {
|
|
6730
6783
|
var bsPrefix = _ref.bsPrefix,
|
|
6731
6784
|
className = _ref.className,
|
|
6732
6785
|
_ref$as = _ref.as,
|
|
6733
6786
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6734
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6787
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6735
6788
|
|
|
6736
6789
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6737
|
-
return /*#__PURE__*/React__default
|
|
6790
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6738
6791
|
ref: ref,
|
|
6739
|
-
className: index.classnames(className, prefix)
|
|
6792
|
+
className: index$5.classnames(className, prefix)
|
|
6740
6793
|
}));
|
|
6741
6794
|
});
|
|
6742
6795
|
Media.displayName = 'Media';
|
|
@@ -7122,7 +7175,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7122
7175
|
renderDialog = _ref.renderDialog,
|
|
7123
7176
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7124
7177
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7125
|
-
return /*#__PURE__*/React__default
|
|
7178
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7126
7179
|
} : _ref$renderBackdrop,
|
|
7127
7180
|
providedManager = _ref.manager,
|
|
7128
7181
|
containerRef = _ref.container,
|
|
@@ -7136,7 +7189,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7136
7189
|
onEnter = _ref.onEnter,
|
|
7137
7190
|
onEntering = _ref.onEntering,
|
|
7138
7191
|
onEntered = _ref.onEntered,
|
|
7139
|
-
rest =
|
|
7192
|
+
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"]);
|
|
7140
7193
|
|
|
7141
7194
|
var container = useWaitForDOMRef(containerRef);
|
|
7142
7195
|
var modal = useModalManager(providedManager);
|
|
@@ -7269,7 +7322,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7269
7322
|
return null;
|
|
7270
7323
|
}
|
|
7271
7324
|
|
|
7272
|
-
var dialogProps =
|
|
7325
|
+
var dialogProps = _extends({
|
|
7273
7326
|
role: role,
|
|
7274
7327
|
ref: modal.setDialogRef,
|
|
7275
7328
|
// apparently only works on the dialog role element
|
|
@@ -7280,12 +7333,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7280
7333
|
tabIndex: -1
|
|
7281
7334
|
});
|
|
7282
7335
|
|
|
7283
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default
|
|
7336
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7284
7337
|
role: 'document'
|
|
7285
7338
|
}));
|
|
7286
7339
|
|
|
7287
7340
|
if (Transition) {
|
|
7288
|
-
dialog = /*#__PURE__*/React__default
|
|
7341
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7289
7342
|
appear: true,
|
|
7290
7343
|
unmountOnExit: true,
|
|
7291
7344
|
"in": !!show,
|
|
@@ -7308,20 +7361,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7308
7361
|
});
|
|
7309
7362
|
|
|
7310
7363
|
if (BackdropTransition) {
|
|
7311
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7364
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7312
7365
|
appear: true,
|
|
7313
7366
|
"in": !!show
|
|
7314
7367
|
}, backdropElement);
|
|
7315
7368
|
}
|
|
7316
7369
|
}
|
|
7317
7370
|
|
|
7318
|
-
return /*#__PURE__*/React__default
|
|
7371
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7319
7372
|
});
|
|
7320
7373
|
var propTypes$8 = {
|
|
7321
7374
|
/**
|
|
7322
7375
|
* Set the visibility of the Modal
|
|
7323
7376
|
*/
|
|
7324
|
-
show: PropTypes__default
|
|
7377
|
+
show: PropTypes__default.bool,
|
|
7325
7378
|
|
|
7326
7379
|
/**
|
|
7327
7380
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7329,12 +7382,12 @@ var propTypes$8 = {
|
|
|
7329
7382
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7330
7383
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7331
7384
|
*/
|
|
7332
|
-
container: PropTypes__default
|
|
7385
|
+
container: PropTypes__default.any,
|
|
7333
7386
|
|
|
7334
7387
|
/**
|
|
7335
7388
|
* A callback fired when the Modal is opening.
|
|
7336
7389
|
*/
|
|
7337
|
-
onShow: PropTypes__default
|
|
7390
|
+
onShow: PropTypes__default.func,
|
|
7338
7391
|
|
|
7339
7392
|
/**
|
|
7340
7393
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7342,12 +7395,12 @@ var propTypes$8 = {
|
|
|
7342
7395
|
* The `onHide` callback only signals intent from the Modal,
|
|
7343
7396
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7344
7397
|
*/
|
|
7345
|
-
onHide: PropTypes__default
|
|
7398
|
+
onHide: PropTypes__default.func,
|
|
7346
7399
|
|
|
7347
7400
|
/**
|
|
7348
7401
|
* Include a backdrop component.
|
|
7349
7402
|
*/
|
|
7350
|
-
backdrop: PropTypes__default
|
|
7403
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7351
7404
|
|
|
7352
7405
|
/**
|
|
7353
7406
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7357,7 +7410,7 @@ var propTypes$8 = {
|
|
|
7357
7410
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7358
7411
|
* ```
|
|
7359
7412
|
*/
|
|
7360
|
-
renderDialog: PropTypes__default
|
|
7413
|
+
renderDialog: PropTypes__default.func,
|
|
7361
7414
|
|
|
7362
7415
|
/**
|
|
7363
7416
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7367,42 +7420,42 @@ var propTypes$8 = {
|
|
|
7367
7420
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7368
7421
|
* ```
|
|
7369
7422
|
*/
|
|
7370
|
-
renderBackdrop: PropTypes__default
|
|
7423
|
+
renderBackdrop: PropTypes__default.func,
|
|
7371
7424
|
|
|
7372
7425
|
/**
|
|
7373
7426
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7374
7427
|
*
|
|
7375
7428
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7376
7429
|
*/
|
|
7377
|
-
onEscapeKeyDown: PropTypes__default
|
|
7430
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7378
7431
|
|
|
7379
7432
|
/**
|
|
7380
7433
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7381
7434
|
*/
|
|
7382
|
-
onBackdropClick: PropTypes__default
|
|
7435
|
+
onBackdropClick: PropTypes__default.func,
|
|
7383
7436
|
|
|
7384
7437
|
/**
|
|
7385
7438
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7386
7439
|
* and removed when it is closed.
|
|
7387
7440
|
*/
|
|
7388
|
-
containerClassName: PropTypes__default
|
|
7441
|
+
containerClassName: PropTypes__default.string,
|
|
7389
7442
|
|
|
7390
7443
|
/**
|
|
7391
7444
|
* Close the modal when escape key is pressed
|
|
7392
7445
|
*/
|
|
7393
|
-
keyboard: PropTypes__default
|
|
7446
|
+
keyboard: PropTypes__default.bool,
|
|
7394
7447
|
|
|
7395
7448
|
/**
|
|
7396
7449
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7397
7450
|
* to control animations for the dialog component.
|
|
7398
7451
|
*/
|
|
7399
|
-
transition: PropTypes__default
|
|
7452
|
+
transition: PropTypes__default.elementType,
|
|
7400
7453
|
|
|
7401
7454
|
/**
|
|
7402
7455
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7403
7456
|
* to control animations for the backdrop components.
|
|
7404
7457
|
*/
|
|
7405
|
-
backdropTransition: PropTypes__default
|
|
7458
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7406
7459
|
|
|
7407
7460
|
/**
|
|
7408
7461
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7412,7 +7465,7 @@ var propTypes$8 = {
|
|
|
7412
7465
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7413
7466
|
* accessible to assistive technologies, like screen readers.
|
|
7414
7467
|
*/
|
|
7415
|
-
autoFocus: PropTypes__default
|
|
7468
|
+
autoFocus: PropTypes__default.bool,
|
|
7416
7469
|
|
|
7417
7470
|
/**
|
|
7418
7471
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7420,58 +7473,58 @@ var propTypes$8 = {
|
|
|
7420
7473
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7421
7474
|
* accessible to assistive technologies, like screen readers.
|
|
7422
7475
|
*/
|
|
7423
|
-
enforceFocus: PropTypes__default
|
|
7476
|
+
enforceFocus: PropTypes__default.bool,
|
|
7424
7477
|
|
|
7425
7478
|
/**
|
|
7426
7479
|
* When `true` The modal will restore focus to previously focused element once
|
|
7427
7480
|
* modal is hidden
|
|
7428
7481
|
*/
|
|
7429
|
-
restoreFocus: PropTypes__default
|
|
7482
|
+
restoreFocus: PropTypes__default.bool,
|
|
7430
7483
|
|
|
7431
7484
|
/**
|
|
7432
7485
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7433
7486
|
*
|
|
7434
7487
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7435
7488
|
*/
|
|
7436
|
-
restoreFocusOptions: PropTypes__default
|
|
7437
|
-
preventScroll: PropTypes__default
|
|
7489
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7490
|
+
preventScroll: PropTypes__default.bool
|
|
7438
7491
|
}),
|
|
7439
7492
|
|
|
7440
7493
|
/**
|
|
7441
7494
|
* Callback fired before the Modal transitions in
|
|
7442
7495
|
*/
|
|
7443
|
-
onEnter: PropTypes__default
|
|
7496
|
+
onEnter: PropTypes__default.func,
|
|
7444
7497
|
|
|
7445
7498
|
/**
|
|
7446
7499
|
* Callback fired as the Modal begins to transition in
|
|
7447
7500
|
*/
|
|
7448
|
-
onEntering: PropTypes__default
|
|
7501
|
+
onEntering: PropTypes__default.func,
|
|
7449
7502
|
|
|
7450
7503
|
/**
|
|
7451
7504
|
* Callback fired after the Modal finishes transitioning in
|
|
7452
7505
|
*/
|
|
7453
|
-
onEntered: PropTypes__default
|
|
7506
|
+
onEntered: PropTypes__default.func,
|
|
7454
7507
|
|
|
7455
7508
|
/**
|
|
7456
7509
|
* Callback fired right before the Modal transitions out
|
|
7457
7510
|
*/
|
|
7458
|
-
onExit: PropTypes__default
|
|
7511
|
+
onExit: PropTypes__default.func,
|
|
7459
7512
|
|
|
7460
7513
|
/**
|
|
7461
7514
|
* Callback fired as the Modal begins to transition out
|
|
7462
7515
|
*/
|
|
7463
|
-
onExiting: PropTypes__default
|
|
7516
|
+
onExiting: PropTypes__default.func,
|
|
7464
7517
|
|
|
7465
7518
|
/**
|
|
7466
7519
|
* Callback fired after the Modal finishes transitioning out
|
|
7467
7520
|
*/
|
|
7468
|
-
onExited: PropTypes__default
|
|
7521
|
+
onExited: PropTypes__default.func,
|
|
7469
7522
|
|
|
7470
7523
|
/**
|
|
7471
7524
|
* A ModalManager instance used to track and manage the state of open
|
|
7472
7525
|
* Modals. Useful when customizing how modals interact within a container
|
|
7473
7526
|
*/
|
|
7474
|
-
manager: PropTypes__default
|
|
7527
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7475
7528
|
};
|
|
7476
7529
|
Modal.displayName = 'Modal';
|
|
7477
7530
|
Modal.propTypes = propTypes$8;
|
|
@@ -7554,12 +7607,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7554
7607
|
|
|
7555
7608
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7556
7609
|
|
|
7557
|
-
var ModalContext = React__default
|
|
7610
|
+
var ModalContext = React__default.createContext({
|
|
7558
7611
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7559
7612
|
onHide: function onHide() {}
|
|
7560
7613
|
});
|
|
7561
7614
|
|
|
7562
|
-
var ModalDialog = React__default
|
|
7615
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7563
7616
|
var bsPrefix = _ref.bsPrefix,
|
|
7564
7617
|
className = _ref.className,
|
|
7565
7618
|
contentClassName = _ref.contentClassName,
|
|
@@ -7567,15 +7620,15 @@ var ModalDialog = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7567
7620
|
size = _ref.size,
|
|
7568
7621
|
children = _ref.children,
|
|
7569
7622
|
scrollable = _ref.scrollable,
|
|
7570
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7623
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7571
7624
|
|
|
7572
7625
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7573
7626
|
var dialogClass = bsPrefix + "-dialog";
|
|
7574
|
-
return /*#__PURE__*/React__default
|
|
7627
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7575
7628
|
ref: ref,
|
|
7576
|
-
className: index.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7577
|
-
}), /*#__PURE__*/React__default
|
|
7578
|
-
className: index.classnames(bsPrefix + "-content", contentClassName)
|
|
7629
|
+
className: index$5.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7630
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7631
|
+
className: index$5.classnames(bsPrefix + "-content", contentClassName)
|
|
7579
7632
|
}, children));
|
|
7580
7633
|
});
|
|
7581
7634
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7586,14 +7639,14 @@ var defaultProps$q = {
|
|
|
7586
7639
|
closeLabel: 'Close',
|
|
7587
7640
|
closeButton: false
|
|
7588
7641
|
};
|
|
7589
|
-
var ModalHeader = React__default
|
|
7642
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7590
7643
|
var bsPrefix = _ref.bsPrefix,
|
|
7591
7644
|
closeLabel = _ref.closeLabel,
|
|
7592
7645
|
closeButton = _ref.closeButton,
|
|
7593
7646
|
onHide = _ref.onHide,
|
|
7594
7647
|
className = _ref.className,
|
|
7595
7648
|
children = _ref.children,
|
|
7596
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7649
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7597
7650
|
|
|
7598
7651
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7599
7652
|
var context = React.useContext(ModalContext);
|
|
@@ -7601,11 +7654,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7601
7654
|
if (context) context.onHide();
|
|
7602
7655
|
if (onHide) onHide();
|
|
7603
7656
|
});
|
|
7604
|
-
return /*#__PURE__*/React__default
|
|
7657
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7605
7658
|
ref: ref
|
|
7606
7659
|
}, props, {
|
|
7607
|
-
className: index.classnames(className, bsPrefix)
|
|
7608
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7660
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7661
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7609
7662
|
label: closeLabel,
|
|
7610
7663
|
onClick: handleClick
|
|
7611
7664
|
}));
|
|
@@ -7632,16 +7685,16 @@ var defaultProps$r = {
|
|
|
7632
7685
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7633
7686
|
|
|
7634
7687
|
function DialogTransition(props) {
|
|
7635
|
-
return /*#__PURE__*/React__default
|
|
7688
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7636
7689
|
}
|
|
7637
7690
|
|
|
7638
7691
|
function BackdropTransition(props) {
|
|
7639
|
-
return /*#__PURE__*/React__default
|
|
7692
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7640
7693
|
}
|
|
7641
7694
|
/* eslint-enable no-use-before-define */
|
|
7642
7695
|
|
|
7643
7696
|
|
|
7644
|
-
var Modal$1 = React__default
|
|
7697
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7645
7698
|
var bsPrefix = _ref.bsPrefix,
|
|
7646
7699
|
className = _ref.className,
|
|
7647
7700
|
style = _ref.style,
|
|
@@ -7670,7 +7723,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7670
7723
|
onExited = _ref.onExited,
|
|
7671
7724
|
backdropClassName = _ref.backdropClassName,
|
|
7672
7725
|
propsManager = _ref.manager,
|
|
7673
|
-
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"]);
|
|
7726
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7674
7727
|
|
|
7675
7728
|
var _useState = React.useState({}),
|
|
7676
7729
|
modalStyle = _useState[0],
|
|
@@ -7836,12 +7889,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7836
7889
|
};
|
|
7837
7890
|
|
|
7838
7891
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7839
|
-
return /*#__PURE__*/React__default
|
|
7840
|
-
className: index.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7892
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, backdropProps, {
|
|
7893
|
+
className: index$5.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7841
7894
|
}));
|
|
7842
7895
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7843
7896
|
|
|
7844
|
-
var baseModalStyle = index._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7897
|
+
var baseModalStyle = index$5._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7845
7898
|
|
|
7846
7899
|
|
|
7847
7900
|
if (!animation) {
|
|
@@ -7849,15 +7902,15 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7849
7902
|
}
|
|
7850
7903
|
|
|
7851
7904
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7852
|
-
return /*#__PURE__*/React__default
|
|
7905
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7853
7906
|
role: "dialog"
|
|
7854
7907
|
}, dialogProps, {
|
|
7855
7908
|
style: baseModalStyle,
|
|
7856
|
-
className: index.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7909
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7857
7910
|
onClick: backdrop ? handleClick : undefined,
|
|
7858
7911
|
onMouseUp: handleMouseUp,
|
|
7859
7912
|
"aria-labelledby": ariaLabelledby
|
|
7860
|
-
}), /*#__PURE__*/React__default
|
|
7913
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7861
7914
|
role: "document",
|
|
7862
7915
|
onMouseDown: handleDialogMouseDown,
|
|
7863
7916
|
className: dialogClassName,
|
|
@@ -7865,9 +7918,9 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7865
7918
|
}), children));
|
|
7866
7919
|
};
|
|
7867
7920
|
|
|
7868
|
-
return /*#__PURE__*/React__default
|
|
7921
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7869
7922
|
value: modalContext
|
|
7870
|
-
}, /*#__PURE__*/React__default
|
|
7923
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7871
7924
|
show: show,
|
|
7872
7925
|
ref: setModalRef,
|
|
7873
7926
|
backdrop: backdrop,
|
|
@@ -7905,19 +7958,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7905
7958
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7906
7959
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7907
7960
|
|
|
7908
|
-
var NavItem = React__default
|
|
7961
|
+
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7909
7962
|
function (_ref, ref) {
|
|
7910
7963
|
var bsPrefix = _ref.bsPrefix,
|
|
7911
7964
|
className = _ref.className,
|
|
7912
7965
|
children = _ref.children,
|
|
7913
7966
|
_ref$as = _ref.as,
|
|
7914
7967
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7915
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7968
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7916
7969
|
|
|
7917
7970
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7918
|
-
return /*#__PURE__*/React__default
|
|
7971
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7919
7972
|
ref: ref,
|
|
7920
|
-
className: index.classnames(className, bsPrefix)
|
|
7973
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7921
7974
|
}), children);
|
|
7922
7975
|
});
|
|
7923
7976
|
NavItem.displayName = 'NavItem';
|
|
@@ -7926,7 +7979,7 @@ var defaultProps$s = {
|
|
|
7926
7979
|
disabled: false,
|
|
7927
7980
|
as: SafeAnchor
|
|
7928
7981
|
};
|
|
7929
|
-
var NavLink = React__default
|
|
7982
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7930
7983
|
var bsPrefix = _ref.bsPrefix,
|
|
7931
7984
|
disabled = _ref.disabled,
|
|
7932
7985
|
className = _ref.className,
|
|
@@ -7934,17 +7987,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7934
7987
|
eventKey = _ref.eventKey,
|
|
7935
7988
|
onSelect = _ref.onSelect,
|
|
7936
7989
|
as = _ref.as,
|
|
7937
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7990
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7938
7991
|
|
|
7939
7992
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7940
|
-
return /*#__PURE__*/React__default
|
|
7993
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7941
7994
|
href: href,
|
|
7942
7995
|
ref: ref,
|
|
7943
7996
|
eventKey: eventKey,
|
|
7944
7997
|
as: as,
|
|
7945
7998
|
disabled: disabled,
|
|
7946
7999
|
onSelect: onSelect,
|
|
7947
|
-
className: index.classnames(className, bsPrefix, disabled && 'disabled')
|
|
8000
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7948
8001
|
}));
|
|
7949
8002
|
});
|
|
7950
8003
|
NavLink.displayName = 'NavLink';
|
|
@@ -7954,7 +8007,7 @@ var defaultProps$t = {
|
|
|
7954
8007
|
justify: false,
|
|
7955
8008
|
fill: false
|
|
7956
8009
|
};
|
|
7957
|
-
var Nav = React__default
|
|
8010
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7958
8011
|
var _classNames;
|
|
7959
8012
|
|
|
7960
8013
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7970,7 +8023,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7970
8023
|
className = _useUncontrolled.className,
|
|
7971
8024
|
children = _useUncontrolled.children,
|
|
7972
8025
|
activeKey = _useUncontrolled.activeKey,
|
|
7973
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8026
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7974
8027
|
|
|
7975
8028
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7976
8029
|
var navbarBsPrefix;
|
|
@@ -7986,11 +8039,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7986
8039
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7987
8040
|
}
|
|
7988
8041
|
|
|
7989
|
-
return /*#__PURE__*/React__default
|
|
8042
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
7990
8043
|
as: as,
|
|
7991
8044
|
ref: ref,
|
|
7992
8045
|
activeKey: activeKey,
|
|
7993
|
-
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))
|
|
8046
|
+
className: index$5.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
7994
8047
|
}, props), children);
|
|
7995
8048
|
});
|
|
7996
8049
|
Nav.displayName = 'Nav';
|
|
@@ -7998,31 +8051,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7998
8051
|
Nav.Item = NavItem;
|
|
7999
8052
|
Nav.Link = NavLink;
|
|
8000
8053
|
|
|
8001
|
-
var NavbarBrand = React__default
|
|
8054
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
8002
8055
|
var bsPrefix = _ref.bsPrefix,
|
|
8003
8056
|
className = _ref.className,
|
|
8004
8057
|
as = _ref.as,
|
|
8005
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8058
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8006
8059
|
|
|
8007
8060
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8008
8061
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8009
|
-
return /*#__PURE__*/React__default
|
|
8062
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8010
8063
|
ref: ref,
|
|
8011
|
-
className: index.classnames(className, bsPrefix)
|
|
8064
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8012
8065
|
}));
|
|
8013
8066
|
});
|
|
8014
8067
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8015
8068
|
|
|
8016
|
-
var NavbarCollapse = React__default
|
|
8069
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8017
8070
|
var children = _ref.children,
|
|
8018
8071
|
bsPrefix = _ref.bsPrefix,
|
|
8019
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8072
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8020
8073
|
|
|
8021
8074
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8022
|
-
return /*#__PURE__*/React__default
|
|
8023
|
-
return /*#__PURE__*/React__default
|
|
8075
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8076
|
+
return /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
8024
8077
|
in: !!(context && context.expanded)
|
|
8025
|
-
}, props), /*#__PURE__*/React__default
|
|
8078
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8026
8079
|
ref: ref,
|
|
8027
8080
|
className: bsPrefix
|
|
8028
8081
|
}, children));
|
|
@@ -8033,7 +8086,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8033
8086
|
var defaultProps$u = {
|
|
8034
8087
|
label: 'Toggle navigation'
|
|
8035
8088
|
};
|
|
8036
|
-
var NavbarToggle = React__default
|
|
8089
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8037
8090
|
var bsPrefix = _ref.bsPrefix,
|
|
8038
8091
|
className = _ref.className,
|
|
8039
8092
|
children = _ref.children,
|
|
@@ -8041,7 +8094,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8041
8094
|
_ref$as = _ref.as,
|
|
8042
8095
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8043
8096
|
onClick = _ref.onClick,
|
|
8044
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8097
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8045
8098
|
|
|
8046
8099
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8047
8100
|
|
|
@@ -8058,12 +8111,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8058
8111
|
props.type = 'button';
|
|
8059
8112
|
}
|
|
8060
8113
|
|
|
8061
|
-
return /*#__PURE__*/React__default
|
|
8114
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8062
8115
|
ref: ref,
|
|
8063
8116
|
onClick: handleClick,
|
|
8064
8117
|
"aria-label": label,
|
|
8065
|
-
className: index.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8066
|
-
}), children || /*#__PURE__*/React__default
|
|
8118
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8119
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8067
8120
|
className: bsPrefix + "-icon"
|
|
8068
8121
|
}));
|
|
8069
8122
|
});
|
|
@@ -8078,7 +8131,7 @@ var defaultProps$v = {
|
|
|
8078
8131
|
variant: 'light',
|
|
8079
8132
|
collapseOnSelect: false
|
|
8080
8133
|
};
|
|
8081
|
-
var Navbar = React__default
|
|
8134
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8082
8135
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8083
8136
|
expanded: 'onToggle'
|
|
8084
8137
|
}),
|
|
@@ -8096,7 +8149,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8096
8149
|
_onToggle = _useUncontrolled.onToggle,
|
|
8097
8150
|
onSelect = _useUncontrolled.onSelect,
|
|
8098
8151
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8099
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8152
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8100
8153
|
|
|
8101
8154
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8102
8155
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8126,14 +8179,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8126
8179
|
expanded: !!expanded
|
|
8127
8180
|
};
|
|
8128
8181
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8129
|
-
return /*#__PURE__*/React__default
|
|
8182
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8130
8183
|
value: navbarContext
|
|
8131
|
-
}, /*#__PURE__*/React__default
|
|
8184
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8132
8185
|
value: handleCollapse
|
|
8133
|
-
}, /*#__PURE__*/React__default
|
|
8186
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8134
8187
|
ref: ref
|
|
8135
8188
|
}, controlledProps, {
|
|
8136
|
-
className: index.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8189
|
+
className: index$5.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8137
8190
|
}), children)));
|
|
8138
8191
|
});
|
|
8139
8192
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8149,37 +8202,37 @@ var propTypes$9 = {
|
|
|
8149
8202
|
* @type {string|number}
|
|
8150
8203
|
* @required
|
|
8151
8204
|
*/
|
|
8152
|
-
id: PropTypes__default
|
|
8205
|
+
id: PropTypes__default.any,
|
|
8153
8206
|
|
|
8154
8207
|
/** An `onClick` handler passed to the Toggle component */
|
|
8155
|
-
onClick: PropTypes__default
|
|
8208
|
+
onClick: PropTypes__default.func,
|
|
8156
8209
|
|
|
8157
8210
|
/** The content of the non-toggle Button. */
|
|
8158
|
-
title: PropTypes__default
|
|
8211
|
+
title: PropTypes__default.node.isRequired,
|
|
8159
8212
|
|
|
8160
8213
|
/** Disables the toggle NavLink */
|
|
8161
|
-
disabled: PropTypes__default
|
|
8214
|
+
disabled: PropTypes__default.bool,
|
|
8162
8215
|
|
|
8163
8216
|
/** Style the toggle NavLink as active */
|
|
8164
|
-
active: PropTypes__default
|
|
8217
|
+
active: PropTypes__default.bool,
|
|
8165
8218
|
|
|
8166
8219
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8167
|
-
menuRole: PropTypes__default
|
|
8220
|
+
menuRole: PropTypes__default.string,
|
|
8168
8221
|
|
|
8169
8222
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8170
|
-
renderMenuOnMount: PropTypes__default
|
|
8223
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8171
8224
|
|
|
8172
8225
|
/**
|
|
8173
8226
|
* Which event when fired outside the component will cause it to be closed.
|
|
8174
8227
|
*
|
|
8175
8228
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8176
8229
|
*/
|
|
8177
|
-
rootCloseEvent: PropTypes__default
|
|
8230
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8178
8231
|
|
|
8179
8232
|
/** @ignore */
|
|
8180
|
-
bsPrefix: PropTypes__default
|
|
8233
|
+
bsPrefix: PropTypes__default.string
|
|
8181
8234
|
};
|
|
8182
|
-
var NavDropdown = React__default
|
|
8235
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8183
8236
|
var id = _ref.id,
|
|
8184
8237
|
title = _ref.title,
|
|
8185
8238
|
children = _ref.children,
|
|
@@ -8189,20 +8242,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8189
8242
|
disabled = _ref.disabled,
|
|
8190
8243
|
active = _ref.active,
|
|
8191
8244
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8192
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8245
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8193
8246
|
|
|
8194
|
-
return /*#__PURE__*/React__default
|
|
8247
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8195
8248
|
ref: ref
|
|
8196
8249
|
}, props, {
|
|
8197
8250
|
as: NavItem
|
|
8198
|
-
}), /*#__PURE__*/React__default
|
|
8251
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8199
8252
|
id: id,
|
|
8200
8253
|
eventKey: null,
|
|
8201
8254
|
active: active,
|
|
8202
8255
|
disabled: disabled,
|
|
8203
8256
|
childBsPrefix: bsPrefix,
|
|
8204
8257
|
as: NavLink
|
|
8205
|
-
}, title), /*#__PURE__*/React__default
|
|
8258
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8206
8259
|
role: menuRole,
|
|
8207
8260
|
renderOnMount: renderMenuOnMount,
|
|
8208
8261
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8219,7 +8272,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8219
8272
|
* Built on top of `Popper.js`, the overlay component is
|
|
8220
8273
|
* great for custom tooltip overlays.
|
|
8221
8274
|
*/
|
|
8222
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8275
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8223
8276
|
var flip = props.flip,
|
|
8224
8277
|
offset = props.offset,
|
|
8225
8278
|
placement = props.placement,
|
|
@@ -8256,7 +8309,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8256
8309
|
})),
|
|
8257
8310
|
styles = _usePopper.styles,
|
|
8258
8311
|
attributes = _usePopper.attributes,
|
|
8259
|
-
popper =
|
|
8312
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8260
8313
|
|
|
8261
8314
|
if (props.show) {
|
|
8262
8315
|
if (exited) setExited(false);
|
|
@@ -8284,13 +8337,13 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8284
8337
|
return null;
|
|
8285
8338
|
}
|
|
8286
8339
|
|
|
8287
|
-
var child = props.children(
|
|
8340
|
+
var child = props.children(_extends({}, popper, {
|
|
8288
8341
|
show: !!props.show,
|
|
8289
|
-
props:
|
|
8342
|
+
props: _extends({}, attributes.popper, {
|
|
8290
8343
|
style: styles.popper,
|
|
8291
8344
|
ref: mergedRef
|
|
8292
8345
|
}),
|
|
8293
|
-
arrowProps:
|
|
8346
|
+
arrowProps: _extends({}, attributes.arrow, {
|
|
8294
8347
|
style: styles.arrow,
|
|
8295
8348
|
ref: attachArrowRef
|
|
8296
8349
|
})
|
|
@@ -8302,7 +8355,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8302
8355
|
onEnter = props.onEnter,
|
|
8303
8356
|
onEntering = props.onEntering,
|
|
8304
8357
|
onEntered = props.onEntered;
|
|
8305
|
-
child = /*#__PURE__*/React__default
|
|
8358
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8306
8359
|
"in": props.show,
|
|
8307
8360
|
appear: true,
|
|
8308
8361
|
onExit: onExit,
|
|
@@ -8314,36 +8367,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8314
8367
|
}, child);
|
|
8315
8368
|
}
|
|
8316
8369
|
|
|
8317
|
-
return container ? /*#__PURE__*/
|
|
8370
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8318
8371
|
});
|
|
8319
8372
|
Overlay.displayName = 'Overlay';
|
|
8320
8373
|
Overlay.propTypes = {
|
|
8321
8374
|
/**
|
|
8322
8375
|
* Set the visibility of the Overlay
|
|
8323
8376
|
*/
|
|
8324
|
-
show: PropTypes__default
|
|
8377
|
+
show: PropTypes__default.bool,
|
|
8325
8378
|
|
|
8326
8379
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8327
|
-
placement: PropTypes__default
|
|
8380
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8328
8381
|
|
|
8329
8382
|
/**
|
|
8330
8383
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8331
8384
|
* the overlay is positioned relative to.
|
|
8332
8385
|
*/
|
|
8333
|
-
target: PropTypes__default
|
|
8386
|
+
target: PropTypes__default.any,
|
|
8334
8387
|
|
|
8335
8388
|
/**
|
|
8336
8389
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8337
8390
|
* appended to it.
|
|
8338
8391
|
*/
|
|
8339
|
-
container: PropTypes__default
|
|
8392
|
+
container: PropTypes__default.any,
|
|
8340
8393
|
|
|
8341
8394
|
/**
|
|
8342
8395
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8343
8396
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8344
8397
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8345
8398
|
*/
|
|
8346
|
-
flip: PropTypes__default
|
|
8399
|
+
flip: PropTypes__default.bool,
|
|
8347
8400
|
|
|
8348
8401
|
/**
|
|
8349
8402
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8367,33 +8420,33 @@ Overlay.propTypes = {
|
|
|
8367
8420
|
* },
|
|
8368
8421
|
* }) => React.Element}
|
|
8369
8422
|
*/
|
|
8370
|
-
children: PropTypes__default
|
|
8423
|
+
children: PropTypes__default.func.isRequired,
|
|
8371
8424
|
|
|
8372
8425
|
/**
|
|
8373
8426
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8374
8427
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8375
8428
|
*/
|
|
8376
|
-
containerPadding: PropTypes__default
|
|
8429
|
+
containerPadding: PropTypes__default.number,
|
|
8377
8430
|
|
|
8378
8431
|
/**
|
|
8379
8432
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8380
8433
|
*/
|
|
8381
|
-
popperConfig: PropTypes__default
|
|
8434
|
+
popperConfig: PropTypes__default.object,
|
|
8382
8435
|
|
|
8383
8436
|
/**
|
|
8384
8437
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8385
8438
|
*/
|
|
8386
|
-
rootClose: PropTypes__default
|
|
8439
|
+
rootClose: PropTypes__default.bool,
|
|
8387
8440
|
|
|
8388
8441
|
/**
|
|
8389
8442
|
* Specify event for toggling overlay
|
|
8390
8443
|
*/
|
|
8391
|
-
rootCloseEvent: PropTypes__default
|
|
8444
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8392
8445
|
|
|
8393
8446
|
/**
|
|
8394
8447
|
* Specify disabled for disable RootCloseWrapper
|
|
8395
8448
|
*/
|
|
8396
|
-
rootCloseDisabled: PropTypes__default
|
|
8449
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8397
8450
|
|
|
8398
8451
|
/**
|
|
8399
8452
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8410,10 +8463,10 @@ Overlay.propTypes = {
|
|
|
8410
8463
|
if (props.rootClose) {
|
|
8411
8464
|
var _PropTypes$func;
|
|
8412
8465
|
|
|
8413
|
-
return (_PropTypes$func = PropTypes__default
|
|
8466
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8414
8467
|
}
|
|
8415
8468
|
|
|
8416
|
-
return PropTypes__default
|
|
8469
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8417
8470
|
},
|
|
8418
8471
|
|
|
8419
8472
|
/**
|
|
@@ -8421,37 +8474,37 @@ Overlay.propTypes = {
|
|
|
8421
8474
|
* used to animate the overlay as it changes visibility.
|
|
8422
8475
|
*/
|
|
8423
8476
|
// @ts-ignore
|
|
8424
|
-
transition: PropTypes__default
|
|
8477
|
+
transition: PropTypes__default.elementType,
|
|
8425
8478
|
|
|
8426
8479
|
/**
|
|
8427
8480
|
* Callback fired before the Overlay transitions in
|
|
8428
8481
|
*/
|
|
8429
|
-
onEnter: PropTypes__default
|
|
8482
|
+
onEnter: PropTypes__default.func,
|
|
8430
8483
|
|
|
8431
8484
|
/**
|
|
8432
8485
|
* Callback fired as the Overlay begins to transition in
|
|
8433
8486
|
*/
|
|
8434
|
-
onEntering: PropTypes__default
|
|
8487
|
+
onEntering: PropTypes__default.func,
|
|
8435
8488
|
|
|
8436
8489
|
/**
|
|
8437
8490
|
* Callback fired after the Overlay finishes transitioning in
|
|
8438
8491
|
*/
|
|
8439
|
-
onEntered: PropTypes__default
|
|
8492
|
+
onEntered: PropTypes__default.func,
|
|
8440
8493
|
|
|
8441
8494
|
/**
|
|
8442
8495
|
* Callback fired right before the Overlay transitions out
|
|
8443
8496
|
*/
|
|
8444
|
-
onExit: PropTypes__default
|
|
8497
|
+
onExit: PropTypes__default.func,
|
|
8445
8498
|
|
|
8446
8499
|
/**
|
|
8447
8500
|
* Callback fired as the Overlay begins to transition out
|
|
8448
8501
|
*/
|
|
8449
|
-
onExiting: PropTypes__default
|
|
8502
|
+
onExiting: PropTypes__default.func,
|
|
8450
8503
|
|
|
8451
8504
|
/**
|
|
8452
8505
|
* Callback fired after the Overlay finishes transitioning out
|
|
8453
8506
|
*/
|
|
8454
|
-
onExited: PropTypes__default
|
|
8507
|
+
onExited: PropTypes__default.func
|
|
8455
8508
|
};
|
|
8456
8509
|
|
|
8457
8510
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8468,34 +8521,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8468
8521
|
};
|
|
8469
8522
|
|
|
8470
8523
|
return RefHolder;
|
|
8471
|
-
}(React__default
|
|
8524
|
+
}(React__default.Component);
|
|
8472
8525
|
|
|
8473
8526
|
var defaultProps$w = {
|
|
8474
8527
|
active: false,
|
|
8475
8528
|
disabled: false,
|
|
8476
8529
|
activeLabel: '(current)'
|
|
8477
8530
|
};
|
|
8478
|
-
var PageItem = React__default
|
|
8531
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8479
8532
|
var active = _ref.active,
|
|
8480
8533
|
disabled = _ref.disabled,
|
|
8481
8534
|
className = _ref.className,
|
|
8482
8535
|
style = _ref.style,
|
|
8483
8536
|
activeLabel = _ref.activeLabel,
|
|
8484
8537
|
children = _ref.children,
|
|
8485
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8486
8539
|
|
|
8487
8540
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8488
|
-
return /*#__PURE__*/React__default
|
|
8541
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8489
8542
|
ref: ref,
|
|
8490
8543
|
style: style,
|
|
8491
|
-
className: index.classnames(className, 'page-item', {
|
|
8544
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8492
8545
|
active: active,
|
|
8493
8546
|
disabled: disabled
|
|
8494
8547
|
})
|
|
8495
|
-
}, /*#__PURE__*/React__default
|
|
8548
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8496
8549
|
className: "page-link",
|
|
8497
8550
|
disabled: disabled
|
|
8498
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8551
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8499
8552
|
className: "sr-only"
|
|
8500
8553
|
}, activeLabel)));
|
|
8501
8554
|
});
|
|
@@ -8509,11 +8562,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8509
8562
|
|
|
8510
8563
|
function Button(_ref2) {
|
|
8511
8564
|
var children = _ref2.children,
|
|
8512
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8565
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8513
8566
|
|
|
8514
|
-
return /*#__PURE__*/React__default
|
|
8567
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8515
8568
|
"aria-hidden": "true"
|
|
8516
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8569
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8517
8570
|
className: "sr-only"
|
|
8518
8571
|
}, label));
|
|
8519
8572
|
}
|
|
@@ -8536,18 +8589,18 @@ var Last = createButton('Last', '»');
|
|
|
8536
8589
|
* @property {PageItem} Next
|
|
8537
8590
|
* @property {PageItem} Last
|
|
8538
8591
|
*/
|
|
8539
|
-
var Pagination = React__default
|
|
8592
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8540
8593
|
var bsPrefix = _ref.bsPrefix,
|
|
8541
8594
|
className = _ref.className,
|
|
8542
8595
|
children = _ref.children,
|
|
8543
8596
|
size = _ref.size,
|
|
8544
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8597
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8545
8598
|
|
|
8546
8599
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8547
|
-
return /*#__PURE__*/React__default
|
|
8600
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8548
8601
|
ref: ref
|
|
8549
8602
|
}, props, {
|
|
8550
|
-
className: index.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8603
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8551
8604
|
}), children);
|
|
8552
8605
|
});
|
|
8553
8606
|
Pagination.First = First;
|
|
@@ -8557,42 +8610,42 @@ Pagination.Item = PageItem;
|
|
|
8557
8610
|
Pagination.Next = Next;
|
|
8558
8611
|
Pagination.Last = Last;
|
|
8559
8612
|
|
|
8560
|
-
var PopoverTitle = React__default
|
|
8613
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8561
8614
|
var _ref$as = _ref.as,
|
|
8562
8615
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8563
8616
|
bsPrefix = _ref.bsPrefix,
|
|
8564
8617
|
className = _ref.className,
|
|
8565
8618
|
children = _ref.children,
|
|
8566
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8619
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8567
8620
|
|
|
8568
8621
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8569
|
-
return /*#__PURE__*/React__default
|
|
8622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8570
8623
|
ref: ref
|
|
8571
8624
|
}, props, {
|
|
8572
|
-
className: index.classnames(bsPrefix, className)
|
|
8625
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8573
8626
|
}), children);
|
|
8574
8627
|
});
|
|
8575
8628
|
|
|
8576
|
-
var PopoverContent = React__default
|
|
8629
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8577
8630
|
var _ref$as = _ref.as,
|
|
8578
8631
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8579
8632
|
bsPrefix = _ref.bsPrefix,
|
|
8580
8633
|
className = _ref.className,
|
|
8581
8634
|
children = _ref.children,
|
|
8582
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8635
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8583
8636
|
|
|
8584
8637
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8585
|
-
return /*#__PURE__*/React__default
|
|
8638
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8586
8639
|
ref: ref
|
|
8587
8640
|
}, props, {
|
|
8588
|
-
className: index.classnames(className, bsPrefix)
|
|
8641
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8589
8642
|
}), children);
|
|
8590
8643
|
});
|
|
8591
8644
|
|
|
8592
8645
|
var defaultProps$x = {
|
|
8593
8646
|
placement: 'right'
|
|
8594
8647
|
};
|
|
8595
|
-
var Popover = React__default
|
|
8648
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8596
8649
|
var bsPrefix = _ref.bsPrefix,
|
|
8597
8650
|
placement = _ref.placement,
|
|
8598
8651
|
className = _ref.className,
|
|
@@ -8602,22 +8655,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8602
8655
|
arrowProps = _ref.arrowProps,
|
|
8603
8656
|
_ = _ref.popper,
|
|
8604
8657
|
_1 = _ref.show,
|
|
8605
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8658
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8606
8659
|
|
|
8607
8660
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8608
8661
|
|
|
8609
8662
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8610
8663
|
primaryPlacement = _ref2[0];
|
|
8611
8664
|
|
|
8612
|
-
return /*#__PURE__*/React__default
|
|
8665
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8613
8666
|
ref: ref,
|
|
8614
8667
|
role: "tooltip",
|
|
8615
8668
|
style: style,
|
|
8616
8669
|
"x-placement": primaryPlacement,
|
|
8617
|
-
className: index.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8618
|
-
}, props), /*#__PURE__*/React__default
|
|
8670
|
+
className: index$5.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8671
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8619
8672
|
className: "arrow"
|
|
8620
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8673
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8621
8674
|
});
|
|
8622
8675
|
Popover.defaultProps = defaultProps$x;
|
|
8623
8676
|
Popover.Title = PopoverTitle;
|
|
@@ -8653,27 +8706,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8653
8706
|
style = _ref.style,
|
|
8654
8707
|
variant = _ref.variant,
|
|
8655
8708
|
bsPrefix = _ref.bsPrefix,
|
|
8656
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8709
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8657
8710
|
|
|
8658
|
-
return /*#__PURE__*/React__default
|
|
8711
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8659
8712
|
ref: ref
|
|
8660
8713
|
}, props, {
|
|
8661
8714
|
role: "progressbar",
|
|
8662
|
-
className: index.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8663
|
-
style: index._extends({
|
|
8715
|
+
className: index$5.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8716
|
+
style: index$5._extends({
|
|
8664
8717
|
width: getPercentage(now, min, max) + "%"
|
|
8665
8718
|
}, style),
|
|
8666
8719
|
"aria-valuenow": now,
|
|
8667
8720
|
"aria-valuemin": min,
|
|
8668
8721
|
"aria-valuemax": max
|
|
8669
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8722
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8670
8723
|
className: "sr-only"
|
|
8671
8724
|
}, label) : label);
|
|
8672
8725
|
}
|
|
8673
8726
|
|
|
8674
|
-
var ProgressBar = React__default
|
|
8727
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8675
8728
|
var isChild = _ref2.isChild,
|
|
8676
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8729
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8677
8730
|
|
|
8678
8731
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8679
8732
|
|
|
@@ -8692,12 +8745,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8692
8745
|
variant = props.variant,
|
|
8693
8746
|
className = props.className,
|
|
8694
8747
|
children = props.children,
|
|
8695
|
-
wrapperProps = index._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8748
|
+
wrapperProps = index$5._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8696
8749
|
|
|
8697
|
-
return /*#__PURE__*/React__default
|
|
8750
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8698
8751
|
ref: ref
|
|
8699
8752
|
}, wrapperProps, {
|
|
8700
|
-
className: index.classnames(className, bsPrefix)
|
|
8753
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8701
8754
|
}), children ? map(children, function (child) {
|
|
8702
8755
|
return React.cloneElement(child, {
|
|
8703
8756
|
isChild: true
|
|
@@ -8720,21 +8773,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8720
8773
|
var defaultProps$z = {
|
|
8721
8774
|
aspectRatio: '1by1'
|
|
8722
8775
|
};
|
|
8723
|
-
var ResponsiveEmbed = React__default
|
|
8776
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8724
8777
|
var bsPrefix = _ref.bsPrefix,
|
|
8725
8778
|
className = _ref.className,
|
|
8726
8779
|
children = _ref.children,
|
|
8727
8780
|
aspectRatio = _ref.aspectRatio,
|
|
8728
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8781
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8729
8782
|
|
|
8730
8783
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8731
|
-
var child = React__default
|
|
8732
|
-
return /*#__PURE__*/React__default
|
|
8784
|
+
var child = React__default.Children.only(children);
|
|
8785
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8733
8786
|
ref: ref
|
|
8734
8787
|
}, props, {
|
|
8735
|
-
className: index.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8736
|
-
}), React__default
|
|
8737
|
-
className: index.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8788
|
+
className: index$5.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8789
|
+
}), React__default.cloneElement(child, {
|
|
8790
|
+
className: index$5.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8738
8791
|
}));
|
|
8739
8792
|
});
|
|
8740
8793
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8743,13 +8796,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8743
8796
|
var defaultProps$A = {
|
|
8744
8797
|
noGutters: false
|
|
8745
8798
|
};
|
|
8746
|
-
var Row = React__default
|
|
8799
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8747
8800
|
var bsPrefix = _ref.bsPrefix,
|
|
8748
8801
|
className = _ref.className,
|
|
8749
8802
|
noGutters = _ref.noGutters,
|
|
8750
8803
|
_ref$as = _ref.as,
|
|
8751
8804
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8752
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8805
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8753
8806
|
|
|
8754
8807
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8755
8808
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8768,16 +8821,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8768
8821
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8769
8822
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8770
8823
|
});
|
|
8771
|
-
return /*#__PURE__*/React__default
|
|
8824
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8772
8825
|
ref: ref
|
|
8773
8826
|
}, props, {
|
|
8774
|
-
className: index.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8827
|
+
className: index$5.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8775
8828
|
}));
|
|
8776
8829
|
});
|
|
8777
8830
|
Row.displayName = 'Row';
|
|
8778
8831
|
Row.defaultProps = defaultProps$A;
|
|
8779
8832
|
|
|
8780
|
-
var Spinner = React__default
|
|
8833
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8781
8834
|
var bsPrefix = _ref.bsPrefix,
|
|
8782
8835
|
variant = _ref.variant,
|
|
8783
8836
|
animation = _ref.animation,
|
|
@@ -8786,14 +8839,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8786
8839
|
_ref$as = _ref.as,
|
|
8787
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8788
8841
|
className = _ref.className,
|
|
8789
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8842
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8790
8843
|
|
|
8791
8844
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8792
8845
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8793
|
-
return /*#__PURE__*/React__default
|
|
8846
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8794
8847
|
ref: ref
|
|
8795
8848
|
}, props, {
|
|
8796
|
-
className: index.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8849
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8797
8850
|
}), children);
|
|
8798
8851
|
});
|
|
8799
8852
|
Spinner.displayName = 'Spinner';
|
|
@@ -8804,30 +8857,30 @@ var propTypes$a = {
|
|
|
8804
8857
|
* @type {string|number}
|
|
8805
8858
|
* @required
|
|
8806
8859
|
*/
|
|
8807
|
-
id: PropTypes__default
|
|
8860
|
+
id: PropTypes__default.any,
|
|
8808
8861
|
|
|
8809
8862
|
/**
|
|
8810
8863
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8811
8864
|
*/
|
|
8812
|
-
toggleLabel: PropTypes__default
|
|
8865
|
+
toggleLabel: PropTypes__default.string,
|
|
8813
8866
|
|
|
8814
8867
|
/** An `href` passed to the non-toggle Button */
|
|
8815
|
-
href: PropTypes__default
|
|
8868
|
+
href: PropTypes__default.string,
|
|
8816
8869
|
|
|
8817
8870
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8818
|
-
target: PropTypes__default
|
|
8871
|
+
target: PropTypes__default.string,
|
|
8819
8872
|
|
|
8820
8873
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8821
|
-
onClick: PropTypes__default
|
|
8874
|
+
onClick: PropTypes__default.func,
|
|
8822
8875
|
|
|
8823
8876
|
/** The content of the non-toggle Button. */
|
|
8824
|
-
title: PropTypes__default
|
|
8877
|
+
title: PropTypes__default.node.isRequired,
|
|
8825
8878
|
|
|
8826
8879
|
/** A `type` passed to the non-toggle Button */
|
|
8827
|
-
type: PropTypes__default
|
|
8880
|
+
type: PropTypes__default.string,
|
|
8828
8881
|
|
|
8829
8882
|
/** Disables both Buttons */
|
|
8830
|
-
disabled: PropTypes__default
|
|
8883
|
+
disabled: PropTypes__default.bool,
|
|
8831
8884
|
|
|
8832
8885
|
/**
|
|
8833
8886
|
* Aligns the dropdown menu responsively.
|
|
@@ -8839,32 +8892,32 @@ var propTypes$a = {
|
|
|
8839
8892
|
menuAlign: alignPropType,
|
|
8840
8893
|
|
|
8841
8894
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8842
|
-
menuRole: PropTypes__default
|
|
8895
|
+
menuRole: PropTypes__default.string,
|
|
8843
8896
|
|
|
8844
8897
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8845
|
-
renderMenuOnMount: PropTypes__default
|
|
8898
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8846
8899
|
|
|
8847
8900
|
/**
|
|
8848
8901
|
* Which event when fired outside the component will cause it to be closed.
|
|
8849
8902
|
*
|
|
8850
8903
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8851
8904
|
*/
|
|
8852
|
-
rootCloseEvent: PropTypes__default
|
|
8905
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8853
8906
|
|
|
8854
8907
|
/** @ignore */
|
|
8855
|
-
bsPrefix: PropTypes__default
|
|
8908
|
+
bsPrefix: PropTypes__default.string,
|
|
8856
8909
|
|
|
8857
8910
|
/** @ignore */
|
|
8858
|
-
variant: PropTypes__default
|
|
8911
|
+
variant: PropTypes__default.string,
|
|
8859
8912
|
|
|
8860
8913
|
/** @ignore */
|
|
8861
|
-
size: PropTypes__default
|
|
8914
|
+
size: PropTypes__default.string
|
|
8862
8915
|
};
|
|
8863
8916
|
var defaultProps$B = {
|
|
8864
8917
|
toggleLabel: 'Toggle dropdown',
|
|
8865
8918
|
type: 'button'
|
|
8866
8919
|
};
|
|
8867
|
-
var SplitButton = React__default
|
|
8920
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8868
8921
|
var id = _ref.id,
|
|
8869
8922
|
bsPrefix = _ref.bsPrefix,
|
|
8870
8923
|
size = _ref.size,
|
|
@@ -8880,13 +8933,13 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8880
8933
|
menuRole = _ref.menuRole,
|
|
8881
8934
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8882
8935
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8883
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8936
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8884
8937
|
|
|
8885
|
-
return /*#__PURE__*/React__default
|
|
8938
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8886
8939
|
ref: ref
|
|
8887
8940
|
}, props, {
|
|
8888
8941
|
as: ButtonGroup
|
|
8889
|
-
}), /*#__PURE__*/React__default
|
|
8942
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8890
8943
|
size: size,
|
|
8891
8944
|
variant: variant,
|
|
8892
8945
|
disabled: props.disabled,
|
|
@@ -8895,16 +8948,16 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8895
8948
|
target: target,
|
|
8896
8949
|
onClick: onClick,
|
|
8897
8950
|
type: type
|
|
8898
|
-
}, title), /*#__PURE__*/React__default
|
|
8951
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8899
8952
|
split: true,
|
|
8900
8953
|
id: id ? id.toString() : undefined,
|
|
8901
8954
|
size: size,
|
|
8902
8955
|
variant: variant,
|
|
8903
8956
|
disabled: props.disabled,
|
|
8904
8957
|
childBsPrefix: bsPrefix
|
|
8905
|
-
}, /*#__PURE__*/React__default
|
|
8958
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8906
8959
|
className: "sr-only"
|
|
8907
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8960
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8908
8961
|
align: menuAlign,
|
|
8909
8962
|
role: menuRole,
|
|
8910
8963
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8948,25 +9001,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8948
9001
|
}
|
|
8949
9002
|
};
|
|
8950
9003
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8951
|
-
return /*#__PURE__*/React__default
|
|
9004
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8952
9005
|
value: tabContext
|
|
8953
|
-
}, /*#__PURE__*/React__default
|
|
9006
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8954
9007
|
value: onSelect || null
|
|
8955
9008
|
}, children));
|
|
8956
9009
|
};
|
|
8957
9010
|
|
|
8958
|
-
var TabContent = React__default
|
|
9011
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8959
9012
|
var bsPrefix = _ref.bsPrefix,
|
|
8960
9013
|
_ref$as = _ref.as,
|
|
8961
9014
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8962
9015
|
className = _ref.className,
|
|
8963
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8964
9017
|
|
|
8965
9018
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8966
|
-
return /*#__PURE__*/React__default
|
|
9019
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8967
9020
|
ref: ref
|
|
8968
9021
|
}, props, {
|
|
8969
|
-
className: index.classnames(className, decoratedBsPrefix)
|
|
9022
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
8970
9023
|
}));
|
|
8971
9024
|
});
|
|
8972
9025
|
|
|
@@ -8977,11 +9030,11 @@ function useTabContext(props) {
|
|
|
8977
9030
|
var activeKey = context.activeKey,
|
|
8978
9031
|
getControlledId = context.getControlledId,
|
|
8979
9032
|
getControllerId = context.getControllerId,
|
|
8980
|
-
rest = index._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9033
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8981
9034
|
|
|
8982
9035
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8983
9036
|
var key = makeEventKey(props.eventKey);
|
|
8984
|
-
return index._extends({}, props, {
|
|
9037
|
+
return index$5._extends({}, props, {
|
|
8985
9038
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8986
9039
|
id: getControlledId(props.eventKey),
|
|
8987
9040
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8991,7 +9044,7 @@ function useTabContext(props) {
|
|
|
8991
9044
|
});
|
|
8992
9045
|
}
|
|
8993
9046
|
|
|
8994
|
-
var TabPane = React__default
|
|
9047
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8995
9048
|
var _useTabContext = useTabContext(props),
|
|
8996
9049
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8997
9050
|
className = _useTabContext.className,
|
|
@@ -9008,19 +9061,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9008
9061
|
_useTabContext$as = _useTabContext.as,
|
|
9009
9062
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9010
9063
|
_ = _useTabContext.eventKey,
|
|
9011
|
-
rest = index._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9064
|
+
rest = index$5._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9012
9065
|
|
|
9013
9066
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9014
9067
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9015
|
-
var pane = /*#__PURE__*/React__default
|
|
9068
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
9016
9069
|
ref: ref,
|
|
9017
9070
|
role: "tabpanel",
|
|
9018
9071
|
"aria-hidden": !active,
|
|
9019
|
-
className: index.classnames(className, prefix, {
|
|
9072
|
+
className: index$5.classnames(className, prefix, {
|
|
9020
9073
|
active: active
|
|
9021
9074
|
})
|
|
9022
9075
|
}));
|
|
9023
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9076
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9024
9077
|
in: active,
|
|
9025
9078
|
onEnter: onEnter,
|
|
9026
9079
|
onEntering: onEntering,
|
|
@@ -9033,9 +9086,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9033
9086
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9034
9087
|
// conflict with the top level one.
|
|
9035
9088
|
|
|
9036
|
-
return /*#__PURE__*/React__default
|
|
9089
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9037
9090
|
value: null
|
|
9038
|
-
}, /*#__PURE__*/React__default
|
|
9091
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9039
9092
|
value: null
|
|
9040
9093
|
}, pane));
|
|
9041
9094
|
});
|
|
@@ -9056,13 +9109,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9056
9109
|
};
|
|
9057
9110
|
|
|
9058
9111
|
return Tab;
|
|
9059
|
-
}(React__default
|
|
9112
|
+
}(React__default.Component);
|
|
9060
9113
|
|
|
9061
9114
|
Tab.Container = TabContainer;
|
|
9062
9115
|
Tab.Content = TabContent;
|
|
9063
9116
|
Tab.Pane = TabPane;
|
|
9064
9117
|
|
|
9065
|
-
var Table = React__default
|
|
9118
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9066
9119
|
var bsPrefix = _ref.bsPrefix,
|
|
9067
9120
|
className = _ref.className,
|
|
9068
9121
|
striped = _ref.striped,
|
|
@@ -9072,11 +9125,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9072
9125
|
size = _ref.size,
|
|
9073
9126
|
variant = _ref.variant,
|
|
9074
9127
|
responsive = _ref.responsive,
|
|
9075
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9128
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9076
9129
|
|
|
9077
9130
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9078
|
-
var classes = index.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9079
|
-
var table = /*#__PURE__*/React__default
|
|
9131
|
+
var classes = index$5.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9132
|
+
var table = /*#__PURE__*/React__default.createElement("table", index$5._extends({}, props, {
|
|
9080
9133
|
className: classes,
|
|
9081
9134
|
ref: ref
|
|
9082
9135
|
}));
|
|
@@ -9088,7 +9141,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9088
9141
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9089
9142
|
}
|
|
9090
9143
|
|
|
9091
|
-
return /*#__PURE__*/React__default
|
|
9144
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9092
9145
|
className: responsiveClass
|
|
9093
9146
|
}, table);
|
|
9094
9147
|
}
|
|
@@ -9096,7 +9149,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9096
9149
|
return table;
|
|
9097
9150
|
});
|
|
9098
9151
|
|
|
9099
|
-
var ToastContext = React__default
|
|
9152
|
+
var ToastContext = React__default.createContext({
|
|
9100
9153
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9101
9154
|
onClose: function onClose() {}
|
|
9102
9155
|
});
|
|
@@ -9105,13 +9158,13 @@ var defaultProps$C = {
|
|
|
9105
9158
|
closeLabel: 'Close',
|
|
9106
9159
|
closeButton: true
|
|
9107
9160
|
};
|
|
9108
|
-
var ToastHeader = React__default
|
|
9161
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9109
9162
|
var bsPrefix = _ref.bsPrefix,
|
|
9110
9163
|
closeLabel = _ref.closeLabel,
|
|
9111
9164
|
closeButton = _ref.closeButton,
|
|
9112
9165
|
className = _ref.className,
|
|
9113
9166
|
children = _ref.children,
|
|
9114
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9167
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9115
9168
|
|
|
9116
9169
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9117
9170
|
var context = React.useContext(ToastContext);
|
|
@@ -9120,11 +9173,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9120
9173
|
context.onClose(e);
|
|
9121
9174
|
}
|
|
9122
9175
|
});
|
|
9123
|
-
return /*#__PURE__*/React__default
|
|
9176
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9124
9177
|
ref: ref
|
|
9125
9178
|
}, props, {
|
|
9126
|
-
className: index.classnames(bsPrefix, className)
|
|
9127
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9179
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9180
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9128
9181
|
label: closeLabel,
|
|
9129
9182
|
onClick: handleClick,
|
|
9130
9183
|
className: "ml-2 mb-1",
|
|
@@ -9136,7 +9189,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9136
9189
|
|
|
9137
9190
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9138
9191
|
|
|
9139
|
-
var Toast = React__default
|
|
9192
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9140
9193
|
var bsPrefix = _ref.bsPrefix,
|
|
9141
9194
|
className = _ref.className,
|
|
9142
9195
|
children = _ref.children,
|
|
@@ -9151,7 +9204,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9151
9204
|
_ref$autohide = _ref.autohide,
|
|
9152
9205
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9153
9206
|
onClose = _ref.onClose,
|
|
9154
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9207
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9155
9208
|
|
|
9156
9209
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9157
9210
|
// timer in case these values change.
|
|
@@ -9179,16 +9232,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9179
9232
|
};
|
|
9180
9233
|
}, [onClose]);
|
|
9181
9234
|
var hasAnimation = !!(Transition && animation);
|
|
9182
|
-
var toast = /*#__PURE__*/React__default
|
|
9235
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9183
9236
|
ref: ref,
|
|
9184
|
-
className: index.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9237
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9185
9238
|
role: "alert",
|
|
9186
9239
|
"aria-live": "assertive",
|
|
9187
9240
|
"aria-atomic": "true"
|
|
9188
9241
|
}), children);
|
|
9189
|
-
return /*#__PURE__*/React__default
|
|
9242
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9190
9243
|
value: toastContext
|
|
9191
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9244
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9192
9245
|
in: show,
|
|
9193
9246
|
unmountOnExit: true
|
|
9194
9247
|
}, toast) : toast);
|
|
@@ -9203,7 +9256,7 @@ var noop$5 = function noop() {
|
|
|
9203
9256
|
return undefined;
|
|
9204
9257
|
};
|
|
9205
9258
|
|
|
9206
|
-
var ToggleButton = React__default
|
|
9259
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9207
9260
|
var children = _ref.children,
|
|
9208
9261
|
name = _ref.name,
|
|
9209
9262
|
className = _ref.className,
|
|
@@ -9213,7 +9266,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9213
9266
|
value = _ref.value,
|
|
9214
9267
|
disabled = _ref.disabled,
|
|
9215
9268
|
inputRef = _ref.inputRef,
|
|
9216
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9269
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9217
9270
|
|
|
9218
9271
|
var _useState = React.useState(false),
|
|
9219
9272
|
focused = _useState[0],
|
|
@@ -9225,13 +9278,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9225
9278
|
var handleBlur = React.useCallback(function (e) {
|
|
9226
9279
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9227
9280
|
}, []);
|
|
9228
|
-
return /*#__PURE__*/React__default
|
|
9281
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9229
9282
|
ref: ref,
|
|
9230
|
-
className: index.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9283
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9231
9284
|
type: undefined,
|
|
9232
9285
|
active: !!checked,
|
|
9233
9286
|
as: "label"
|
|
9234
|
-
}), /*#__PURE__*/React__default
|
|
9287
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9235
9288
|
name: name,
|
|
9236
9289
|
type: type,
|
|
9237
9290
|
value: value,
|
|
@@ -9250,7 +9303,7 @@ var defaultProps$D = {
|
|
|
9250
9303
|
type: 'radio',
|
|
9251
9304
|
vertical: false
|
|
9252
9305
|
};
|
|
9253
|
-
var ToggleButtonGroup = React__default
|
|
9306
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9254
9307
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9255
9308
|
value: 'onChange'
|
|
9256
9309
|
}),
|
|
@@ -9259,7 +9312,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9259
9312
|
name = _useUncontrolled.name,
|
|
9260
9313
|
value = _useUncontrolled.value,
|
|
9261
9314
|
onChange = _useUncontrolled.onChange,
|
|
9262
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9315
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9263
9316
|
|
|
9264
9317
|
var getValues = function getValues() {
|
|
9265
9318
|
return value == null ? [] : [].concat(value);
|
|
@@ -9288,7 +9341,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9288
9341
|
};
|
|
9289
9342
|
|
|
9290
9343
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9291
|
-
return /*#__PURE__*/React__default
|
|
9344
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9292
9345
|
ref: ref,
|
|
9293
9346
|
toggle: true
|
|
9294
9347
|
}), map(children, function (child) {
|
|
@@ -9301,7 +9354,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9301
9354
|
return handleToggle(childVal, e);
|
|
9302
9355
|
};
|
|
9303
9356
|
|
|
9304
|
-
return React__default
|
|
9357
|
+
return React__default.cloneElement(child, {
|
|
9305
9358
|
type: type,
|
|
9306
9359
|
name: child.name || name,
|
|
9307
9360
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9315,7 +9368,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9315
9368
|
var defaultProps$E = {
|
|
9316
9369
|
placement: 'right'
|
|
9317
9370
|
};
|
|
9318
|
-
var Tooltip = React__default
|
|
9371
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9319
9372
|
var bsPrefix = _ref.bsPrefix,
|
|
9320
9373
|
placement = _ref.placement,
|
|
9321
9374
|
className = _ref.className,
|
|
@@ -9324,22 +9377,22 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9324
9377
|
arrowProps = _ref.arrowProps,
|
|
9325
9378
|
_ = _ref.popper,
|
|
9326
9379
|
_2 = _ref.show,
|
|
9327
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9380
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9328
9381
|
|
|
9329
9382
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9330
9383
|
|
|
9331
9384
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9332
9385
|
primaryPlacement = _ref2[0];
|
|
9333
9386
|
|
|
9334
|
-
return /*#__PURE__*/React__default
|
|
9387
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9335
9388
|
ref: ref,
|
|
9336
9389
|
style: style,
|
|
9337
9390
|
role: "tooltip",
|
|
9338
9391
|
"x-placement": primaryPlacement,
|
|
9339
|
-
className: index.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9340
|
-
}, props), /*#__PURE__*/React__default
|
|
9392
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9393
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9341
9394
|
className: "arrow"
|
|
9342
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9395
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9343
9396
|
className: bsPrefix + "-inner"
|
|
9344
9397
|
}, children));
|
|
9345
9398
|
});
|
|
@@ -9357,54 +9410,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9357
9410
|
client = props.client;
|
|
9358
9411
|
|
|
9359
9412
|
|
|
9360
|
-
return React__default
|
|
9413
|
+
return React__default.createElement(
|
|
9361
9414
|
'div',
|
|
9362
9415
|
{ className: styles.article },
|
|
9363
|
-
React__default
|
|
9416
|
+
React__default.createElement(
|
|
9364
9417
|
'a',
|
|
9365
9418
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9366
|
-
React__default
|
|
9419
|
+
React__default.createElement(
|
|
9367
9420
|
'div',
|
|
9368
9421
|
{ className: styles.thumb },
|
|
9369
|
-
React__default
|
|
9422
|
+
React__default.createElement(
|
|
9370
9423
|
'figure',
|
|
9371
9424
|
null,
|
|
9372
|
-
React__default
|
|
9373
|
-
index$
|
|
9425
|
+
React__default.createElement(
|
|
9426
|
+
index$2.LazyLoad,
|
|
9374
9427
|
null,
|
|
9375
|
-
React__default
|
|
9428
|
+
React__default.createElement('img', {
|
|
9376
9429
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9377
9430
|
})
|
|
9378
9431
|
)
|
|
9379
9432
|
)
|
|
9380
9433
|
),
|
|
9381
|
-
React__default
|
|
9434
|
+
React__default.createElement(
|
|
9382
9435
|
'div',
|
|
9383
9436
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9384
|
-
React__default
|
|
9437
|
+
React__default.createElement(
|
|
9385
9438
|
'div',
|
|
9386
9439
|
{ className: styles.name },
|
|
9387
9440
|
data.name
|
|
9388
9441
|
),
|
|
9389
|
-
data.published && React__default
|
|
9442
|
+
data.published && React__default.createElement(
|
|
9390
9443
|
'p',
|
|
9391
9444
|
{ className: styles.published },
|
|
9392
9445
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9393
9446
|
),
|
|
9394
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9447
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9395
9448
|
'p',
|
|
9396
9449
|
{ className: styles.author },
|
|
9397
9450
|
'By ',
|
|
9398
|
-
React__default
|
|
9451
|
+
React__default.createElement(
|
|
9399
9452
|
'span',
|
|
9400
9453
|
null,
|
|
9401
9454
|
data.authorMapping.displayName
|
|
9402
9455
|
)
|
|
9403
9456
|
),
|
|
9404
|
-
data.description && React__default
|
|
9457
|
+
data.description && React__default.createElement(
|
|
9405
9458
|
'div',
|
|
9406
9459
|
{ className: 'media-series-desc' },
|
|
9407
|
-
React__default
|
|
9460
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9408
9461
|
)
|
|
9409
9462
|
)
|
|
9410
9463
|
)
|
|
@@ -9452,7 +9505,7 @@ var Filter = function Filter(_ref) {
|
|
|
9452
9505
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9453
9506
|
if (type === 'parent') {
|
|
9454
9507
|
setParentData(function (prevState) {
|
|
9455
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9508
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9456
9509
|
});
|
|
9457
9510
|
if (group && group.children && group.children.length > 0) {
|
|
9458
9511
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9466,7 +9519,7 @@ var Filter = function Filter(_ref) {
|
|
|
9466
9519
|
}
|
|
9467
9520
|
if (type === 'child') {
|
|
9468
9521
|
setChildData(function (prevState) {
|
|
9469
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9522
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9470
9523
|
});
|
|
9471
9524
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9472
9525
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9485,7 +9538,7 @@ var Filter = function Filter(_ref) {
|
|
|
9485
9538
|
}
|
|
9486
9539
|
if (type === 'grandchild') {
|
|
9487
9540
|
setGrandChildData(function (prevState) {
|
|
9488
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9541
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9489
9542
|
});
|
|
9490
9543
|
//handle filter
|
|
9491
9544
|
if (!group._id) {
|
|
@@ -9501,13 +9554,13 @@ var Filter = function Filter(_ref) {
|
|
|
9501
9554
|
}
|
|
9502
9555
|
};
|
|
9503
9556
|
|
|
9504
|
-
return React__default
|
|
9557
|
+
return React__default.createElement(
|
|
9505
9558
|
'div',
|
|
9506
9559
|
{ className: 'flex-container' },
|
|
9507
|
-
parentData && React__default
|
|
9560
|
+
parentData && React__default.createElement(
|
|
9508
9561
|
DropdownButton,
|
|
9509
9562
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9510
|
-
React__default
|
|
9563
|
+
React__default.createElement(
|
|
9511
9564
|
Dropdown$1.Item,
|
|
9512
9565
|
{ onSelect: function onSelect() {
|
|
9513
9566
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9516,7 +9569,7 @@ var Filter = function Filter(_ref) {
|
|
|
9516
9569
|
),
|
|
9517
9570
|
parentData.data.map(function (docGroup) {
|
|
9518
9571
|
if (!docGroup._id) return null;
|
|
9519
|
-
return React__default
|
|
9572
|
+
return React__default.createElement(
|
|
9520
9573
|
Dropdown$1.Item,
|
|
9521
9574
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9522
9575
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9525,10 +9578,10 @@ var Filter = function Filter(_ref) {
|
|
|
9525
9578
|
);
|
|
9526
9579
|
})
|
|
9527
9580
|
),
|
|
9528
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9581
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9529
9582
|
DropdownButton,
|
|
9530
9583
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9531
|
-
React__default
|
|
9584
|
+
React__default.createElement(
|
|
9532
9585
|
Dropdown$1.Item,
|
|
9533
9586
|
{ onSelect: function onSelect() {
|
|
9534
9587
|
return handleFilterSelect({}, 'child');
|
|
@@ -9537,7 +9590,7 @@ var Filter = function Filter(_ref) {
|
|
|
9537
9590
|
),
|
|
9538
9591
|
childData.data.map(function (docGroup) {
|
|
9539
9592
|
if (!docGroup._id) return null;
|
|
9540
|
-
return React__default
|
|
9593
|
+
return React__default.createElement(
|
|
9541
9594
|
Dropdown$1.Item,
|
|
9542
9595
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9543
9596
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9546,10 +9599,10 @@ var Filter = function Filter(_ref) {
|
|
|
9546
9599
|
);
|
|
9547
9600
|
})
|
|
9548
9601
|
),
|
|
9549
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9602
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9550
9603
|
DropdownButton,
|
|
9551
9604
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9552
|
-
React__default
|
|
9605
|
+
React__default.createElement(
|
|
9553
9606
|
Dropdown$1.Item,
|
|
9554
9607
|
{ onSelect: function onSelect() {
|
|
9555
9608
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9558,7 +9611,7 @@ var Filter = function Filter(_ref) {
|
|
|
9558
9611
|
),
|
|
9559
9612
|
grandChildData.data.map(function (docGroup) {
|
|
9560
9613
|
if (!docGroup._id) return null;
|
|
9561
|
-
return React__default
|
|
9614
|
+
return React__default.createElement(
|
|
9562
9615
|
Dropdown$1.Item,
|
|
9563
9616
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9564
9617
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9567,7 +9620,7 @@ var Filter = function Filter(_ref) {
|
|
|
9567
9620
|
);
|
|
9568
9621
|
})
|
|
9569
9622
|
),
|
|
9570
|
-
React__default
|
|
9623
|
+
React__default.createElement(
|
|
9571
9624
|
'style',
|
|
9572
9625
|
{ jsx: 'true' },
|
|
9573
9626
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9609,13 +9662,13 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9609
9662
|
}, [filterTopicID]);
|
|
9610
9663
|
|
|
9611
9664
|
var fetchFilteredData = function () {
|
|
9612
|
-
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
9665
|
+
var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee() {
|
|
9613
9666
|
var newParams, filterQuery, x, seriesQuery, newData;
|
|
9614
|
-
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
9667
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
|
|
9615
9668
|
while (1) {
|
|
9616
9669
|
switch (_context.prev = _context.next) {
|
|
9617
9670
|
case 0:
|
|
9618
|
-
newParams = _extends._extends({}, params, { from: 0, to: 10 });
|
|
9671
|
+
newParams = _extends$1._extends({}, params, { from: 0, to: 10 });
|
|
9619
9672
|
filterQuery = void 0;
|
|
9620
9673
|
|
|
9621
9674
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof._typeof(filterTopicID)) == 'object') {
|
|
@@ -9657,27 +9710,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9657
9710
|
}();
|
|
9658
9711
|
|
|
9659
9712
|
if (props.statusCode === 404) {
|
|
9660
|
-
return React__default
|
|
9713
|
+
return React__default.createElement(
|
|
9661
9714
|
'div',
|
|
9662
9715
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9663
|
-
React__default
|
|
9716
|
+
React__default.createElement(
|
|
9664
9717
|
'h3',
|
|
9665
9718
|
null,
|
|
9666
9719
|
'404: Resource not found'
|
|
9667
9720
|
),
|
|
9668
|
-
React__default
|
|
9721
|
+
React__default.createElement(
|
|
9669
9722
|
'p',
|
|
9670
9723
|
null,
|
|
9671
9724
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9672
9725
|
),
|
|
9673
|
-
React__default
|
|
9726
|
+
React__default.createElement(
|
|
9674
9727
|
'p',
|
|
9675
9728
|
null,
|
|
9676
9729
|
'Click here to',
|
|
9677
|
-
React__default
|
|
9678
|
-
|
|
9730
|
+
React__default.createElement(
|
|
9731
|
+
Link,
|
|
9679
9732
|
{ href: '/' },
|
|
9680
|
-
React__default
|
|
9733
|
+
React__default.createElement(
|
|
9681
9734
|
'a',
|
|
9682
9735
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9683
9736
|
' return to homepage.'
|
|
@@ -9687,17 +9740,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9687
9740
|
);
|
|
9688
9741
|
}
|
|
9689
9742
|
|
|
9690
|
-
return React__default
|
|
9743
|
+
return React__default.createElement(
|
|
9691
9744
|
'div',
|
|
9692
9745
|
{ className: 'mb-5' },
|
|
9693
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9694
|
-
props.taxonomyFilter && props.taxonomyFilter && React__default
|
|
9746
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent.BlockContent, { blocks: props.docGroup.description, serializers: getSerializers.getSerializers(client) }),
|
|
9747
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9695
9748
|
'div',
|
|
9696
9749
|
{ className: '' },
|
|
9697
|
-
React__default
|
|
9698
|
-
React__default
|
|
9750
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9751
|
+
React__default.createElement('hr', null)
|
|
9699
9752
|
),
|
|
9700
|
-
seriesData && React__default
|
|
9753
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9701
9754
|
deck: MediaSeriesCard,
|
|
9702
9755
|
variant: 'left',
|
|
9703
9756
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9714,11 +9767,11 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9714
9767
|
};
|
|
9715
9768
|
|
|
9716
9769
|
MediaSeriesLanding.getInitialData = function () {
|
|
9717
|
-
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9770
|
+
var _ref3 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9718
9771
|
var _ref4;
|
|
9719
9772
|
|
|
9720
9773
|
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9721
|
-
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
9774
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee2$(_context2) {
|
|
9722
9775
|
while (1) {
|
|
9723
9776
|
switch (_context2.prev = _context2.next) {
|
|
9724
9777
|
case 0:
|
|
@@ -9801,7 +9854,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9801
9854
|
statusCode = 404;
|
|
9802
9855
|
}
|
|
9803
9856
|
|
|
9804
|
-
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9857
|
+
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty$1$1._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty$1$1._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9805
9858
|
|
|
9806
9859
|
case 25:
|
|
9807
9860
|
case 'end':
|