@mjhls/mjh-framework 1.0.839-article-time-v3 → 1.0.840-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- 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-0158bee3.js → ADInfeed-8d621d3c.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-3583144f.js → ADlgInfeed-0e26bccb.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +907 -12
- package/dist/cjs/AlgoliaSearch.js +841 -951
- 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 +144 -232
- 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 +3904 -77
- 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 +198 -208
- 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-15ad167c.js → getTargeting-021d644c.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-0555a837.js → index-1d6b1687.js} +853 -876
- 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 -62
- 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-427022e9.js → ADInfeed-b566ce41.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 +13 -13
- package/dist/esm/{ADlgInfeed-28d3f944.js → ADlgInfeed-5eb7281d.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +907 -11
- package/dist/esm/AlgoliaSearch.js +237 -346
- 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 +126 -210
- 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 +3900 -73
- 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 +179 -185
- 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-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-53c0c377.js → index-44f4646f.js} +811 -827
- 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 -50
- 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-8d621d3c.js');
|
|
50
|
+
require('./lodash-fc2922d0.js');
|
|
51
|
+
require('./ADlgInfeed-0e26bccb.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-1d6b1687.js');
|
|
57
61
|
require('./util-f2c1b65b.js');
|
|
58
|
-
require('./brightcove-react-player-loader.es-
|
|
62
|
+
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
59
63
|
require('next/head');
|
|
60
64
|
require('react-share');
|
|
61
65
|
require('./SocialShare.js');
|
|
@@ -63,17 +67,10 @@ require('./_object-to-array-5762f850.js');
|
|
|
63
67
|
require('react-bootstrap/Pagination');
|
|
64
68
|
require('react-bootstrap/Figure');
|
|
65
69
|
var MasterDeck = require('./MasterDeck.js');
|
|
66
|
-
var defineProperty = require('./defineProperty-55548b25.js');
|
|
67
|
-
var index = require('./index-e2e62963.js');
|
|
70
|
+
var defineProperty$1$1 = require('./defineProperty-55548b25.js');
|
|
71
|
+
var index$5 = require('./index-e2e62963.js');
|
|
68
72
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
69
|
-
var Link = require('next/link');
|
|
70
|
-
|
|
71
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
72
|
-
|
|
73
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
74
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
75
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
76
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
|
73
|
+
var Link = _interopDefault(require('next/link'));
|
|
77
74
|
|
|
78
75
|
/**
|
|
79
76
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -168,7 +165,7 @@ function useUncontrolled(props, config) {
|
|
|
168
165
|
var _ref = result,
|
|
169
166
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
170
167
|
propsValue = _ref[fieldName],
|
|
171
|
-
rest = index._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
168
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
172
169
|
|
|
173
170
|
var handlerName = config[fieldName];
|
|
174
171
|
|
|
@@ -176,7 +173,7 @@ function useUncontrolled(props, config) {
|
|
|
176
173
|
value = _useUncontrolledProp[0],
|
|
177
174
|
handler = _useUncontrolledProp[1];
|
|
178
175
|
|
|
179
|
-
return index._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
176
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
180
177
|
}, props);
|
|
181
178
|
}
|
|
182
179
|
|
|
@@ -186,7 +183,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
186
183
|
subClass.__proto__ = superClass;
|
|
187
184
|
}
|
|
188
185
|
|
|
189
|
-
var ThemeContext = React__default
|
|
186
|
+
var ThemeContext = React__default.createContext({});
|
|
190
187
|
var Consumer = ThemeContext.Consumer,
|
|
191
188
|
Provider = ThemeContext.Provider;
|
|
192
189
|
|
|
@@ -195,7 +192,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
195
192
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
196
193
|
}
|
|
197
194
|
|
|
198
|
-
var SelectableContext = React__default
|
|
195
|
+
var SelectableContext = React__default.createContext(null);
|
|
199
196
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
200
197
|
if (href === void 0) {
|
|
201
198
|
href = null;
|
|
@@ -205,7 +202,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
205
202
|
return href || null;
|
|
206
203
|
};
|
|
207
204
|
|
|
208
|
-
var context = React__default
|
|
205
|
+
var context = React__default.createContext(null);
|
|
209
206
|
context.displayName = 'AccordionContext';
|
|
210
207
|
|
|
211
208
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -221,13 +218,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
221
218
|
if (onClick) onClick(e);
|
|
222
219
|
};
|
|
223
220
|
}
|
|
224
|
-
var AccordionToggle = React__default
|
|
221
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
225
222
|
var _ref$as = _ref.as,
|
|
226
223
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
227
224
|
children = _ref.children,
|
|
228
225
|
eventKey = _ref.eventKey,
|
|
229
226
|
onClick = _ref.onClick,
|
|
230
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
227
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
231
228
|
|
|
232
229
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
233
230
|
|
|
@@ -235,7 +232,7 @@ var AccordionToggle = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
235
232
|
props.type = 'button';
|
|
236
233
|
}
|
|
237
234
|
|
|
238
|
-
return /*#__PURE__*/React__default
|
|
235
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
239
236
|
ref: ref,
|
|
240
237
|
onClick: accordionOnClick
|
|
241
238
|
}, props), children);
|
|
@@ -414,25 +411,25 @@ var config = {
|
|
|
414
411
|
disabled: false
|
|
415
412
|
};
|
|
416
413
|
|
|
417
|
-
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
418
|
-
enter: PropTypes__default
|
|
419
|
-
exit: PropTypes__default
|
|
420
|
-
appear: PropTypes__default
|
|
414
|
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.number, PropTypes__default.shape({
|
|
415
|
+
enter: PropTypes__default.number,
|
|
416
|
+
exit: PropTypes__default.number,
|
|
417
|
+
appear: PropTypes__default.number
|
|
421
418
|
}).isRequired]) : null;
|
|
422
|
-
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default
|
|
423
|
-
enter: PropTypes__default
|
|
424
|
-
exit: PropTypes__default
|
|
425
|
-
active: PropTypes__default
|
|
426
|
-
}), PropTypes__default
|
|
427
|
-
enter: PropTypes__default
|
|
428
|
-
enterDone: PropTypes__default
|
|
429
|
-
enterActive: PropTypes__default
|
|
430
|
-
exit: PropTypes__default
|
|
431
|
-
exitDone: PropTypes__default
|
|
432
|
-
exitActive: PropTypes__default
|
|
419
|
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes__default.oneOfType([PropTypes__default.string, PropTypes__default.shape({
|
|
420
|
+
enter: PropTypes__default.string,
|
|
421
|
+
exit: PropTypes__default.string,
|
|
422
|
+
active: PropTypes__default.string
|
|
423
|
+
}), PropTypes__default.shape({
|
|
424
|
+
enter: PropTypes__default.string,
|
|
425
|
+
enterDone: PropTypes__default.string,
|
|
426
|
+
enterActive: PropTypes__default.string,
|
|
427
|
+
exit: PropTypes__default.string,
|
|
428
|
+
exitDone: PropTypes__default.string,
|
|
429
|
+
exitActive: PropTypes__default.string
|
|
433
430
|
})]) : null;
|
|
434
431
|
|
|
435
|
-
var TransitionGroupContext = React__default
|
|
432
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
436
433
|
|
|
437
434
|
var UNMOUNTED = 'unmounted';
|
|
438
435
|
var EXITED = 'exited';
|
|
@@ -670,7 +667,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
670
667
|
var enter = this.props.enter;
|
|
671
668
|
var appearing = this.context ? this.context.isMounting : mounting;
|
|
672
669
|
|
|
673
|
-
var _ref2 = this.props.nodeRef ? [appearing] : [
|
|
670
|
+
var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],
|
|
674
671
|
maybeNode = _ref2[0],
|
|
675
672
|
maybeAppearing = _ref2[1];
|
|
676
673
|
|
|
@@ -708,7 +705,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
708
705
|
|
|
709
706
|
var exit = this.props.exit;
|
|
710
707
|
var timeouts = this.getTimeouts();
|
|
711
|
-
var maybeNode = this.props.nodeRef ? undefined :
|
|
708
|
+
var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED
|
|
712
709
|
|
|
713
710
|
if (!exit || config.disabled) {
|
|
714
711
|
this.safeSetState({
|
|
@@ -772,7 +769,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
772
769
|
|
|
773
770
|
_proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {
|
|
774
771
|
this.setNextCallback(handler);
|
|
775
|
-
var node = this.props.nodeRef ? this.props.nodeRef.current :
|
|
772
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);
|
|
776
773
|
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
|
777
774
|
|
|
778
775
|
if (!node || doesNotHaveTimeoutOrListener) {
|
|
@@ -817,19 +814,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
817
814
|
_onExiting = _this$props.onExiting,
|
|
818
815
|
_onExited = _this$props.onExited,
|
|
819
816
|
_nodeRef = _this$props.nodeRef,
|
|
820
|
-
childProps = index._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
817
|
+
childProps = index$5._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
821
818
|
|
|
822
819
|
return (
|
|
823
820
|
/*#__PURE__*/
|
|
824
821
|
// allows for nested Transitions
|
|
825
|
-
React__default
|
|
822
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
826
823
|
value: null
|
|
827
|
-
}, typeof children === 'function' ? children(status, childProps) : React__default
|
|
824
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
828
825
|
);
|
|
829
826
|
};
|
|
830
827
|
|
|
831
828
|
return Transition;
|
|
832
|
-
}(React__default
|
|
829
|
+
}(React__default.Component);
|
|
833
830
|
|
|
834
831
|
Transition.contextType = TransitionGroupContext;
|
|
835
832
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -844,8 +841,8 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
844
841
|
* (see
|
|
845
842
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
846
843
|
*/
|
|
847
|
-
nodeRef: PropTypes__default
|
|
848
|
-
current: typeof Element === 'undefined' ? PropTypes__default
|
|
844
|
+
nodeRef: PropTypes__default.shape({
|
|
845
|
+
current: typeof Element === 'undefined' ? PropTypes__default.any : PropTypes__default.instanceOf(Element)
|
|
849
846
|
}),
|
|
850
847
|
|
|
851
848
|
/**
|
|
@@ -862,12 +859,12 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
862
859
|
* </Transition>
|
|
863
860
|
* ```
|
|
864
861
|
*/
|
|
865
|
-
children: PropTypes__default
|
|
862
|
+
children: PropTypes__default.oneOfType([PropTypes__default.func.isRequired, PropTypes__default.element.isRequired]).isRequired,
|
|
866
863
|
|
|
867
864
|
/**
|
|
868
865
|
* Show the component; triggers the enter or exit states
|
|
869
866
|
*/
|
|
870
|
-
in: PropTypes__default
|
|
867
|
+
in: PropTypes__default.bool,
|
|
871
868
|
|
|
872
869
|
/**
|
|
873
870
|
* By default the child component is mounted immediately along with
|
|
@@ -875,13 +872,13 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
875
872
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
876
873
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
877
874
|
*/
|
|
878
|
-
mountOnEnter: PropTypes__default
|
|
875
|
+
mountOnEnter: PropTypes__default.bool,
|
|
879
876
|
|
|
880
877
|
/**
|
|
881
878
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
882
879
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
883
880
|
*/
|
|
884
|
-
unmountOnExit: PropTypes__default
|
|
881
|
+
unmountOnExit: PropTypes__default.bool,
|
|
885
882
|
|
|
886
883
|
/**
|
|
887
884
|
* By default the child component does not perform the enter transition when
|
|
@@ -894,17 +891,17 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
894
891
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
895
892
|
* > differently.
|
|
896
893
|
*/
|
|
897
|
-
appear: PropTypes__default
|
|
894
|
+
appear: PropTypes__default.bool,
|
|
898
895
|
|
|
899
896
|
/**
|
|
900
897
|
* Enable or disable enter transitions.
|
|
901
898
|
*/
|
|
902
|
-
enter: PropTypes__default
|
|
899
|
+
enter: PropTypes__default.bool,
|
|
903
900
|
|
|
904
901
|
/**
|
|
905
902
|
* Enable or disable exit transitions.
|
|
906
903
|
*/
|
|
907
|
-
exit: PropTypes__default
|
|
904
|
+
exit: PropTypes__default.bool,
|
|
908
905
|
|
|
909
906
|
/**
|
|
910
907
|
* The duration of the transition, in milliseconds.
|
|
@@ -957,7 +954,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
957
954
|
* }}
|
|
958
955
|
* ```
|
|
959
956
|
*/
|
|
960
|
-
addEndListener: PropTypes__default
|
|
957
|
+
addEndListener: PropTypes__default.func,
|
|
961
958
|
|
|
962
959
|
/**
|
|
963
960
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
@@ -967,7 +964,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
967
964
|
*
|
|
968
965
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
969
966
|
*/
|
|
970
|
-
onEnter: PropTypes__default
|
|
967
|
+
onEnter: PropTypes__default.func,
|
|
971
968
|
|
|
972
969
|
/**
|
|
973
970
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
@@ -977,7 +974,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
977
974
|
*
|
|
978
975
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
979
976
|
*/
|
|
980
|
-
onEntering: PropTypes__default
|
|
977
|
+
onEntering: PropTypes__default.func,
|
|
981
978
|
|
|
982
979
|
/**
|
|
983
980
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
@@ -987,7 +984,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
987
984
|
*
|
|
988
985
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
989
986
|
*/
|
|
990
|
-
onEntered: PropTypes__default
|
|
987
|
+
onEntered: PropTypes__default.func,
|
|
991
988
|
|
|
992
989
|
/**
|
|
993
990
|
* Callback fired before the "exiting" status is applied.
|
|
@@ -996,7 +993,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
996
993
|
*
|
|
997
994
|
* @type Function(node: HtmlElement) -> void
|
|
998
995
|
*/
|
|
999
|
-
onExit: PropTypes__default
|
|
996
|
+
onExit: PropTypes__default.func,
|
|
1000
997
|
|
|
1001
998
|
/**
|
|
1002
999
|
* Callback fired after the "exiting" status is applied.
|
|
@@ -1005,7 +1002,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1005
1002
|
*
|
|
1006
1003
|
* @type Function(node: HtmlElement) -> void
|
|
1007
1004
|
*/
|
|
1008
|
-
onExiting: PropTypes__default
|
|
1005
|
+
onExiting: PropTypes__default.func,
|
|
1009
1006
|
|
|
1010
1007
|
/**
|
|
1011
1008
|
* Callback fired after the "exited" status is applied.
|
|
@@ -1014,7 +1011,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1014
1011
|
*
|
|
1015
1012
|
* @type Function(node: HtmlElement) -> void
|
|
1016
1013
|
*/
|
|
1017
|
-
onExited: PropTypes__default
|
|
1014
|
+
onExited: PropTypes__default.func
|
|
1018
1015
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1019
1016
|
|
|
1020
1017
|
function noop() {}
|
|
@@ -1105,7 +1102,7 @@ var defaultProps = {
|
|
|
1105
1102
|
appear: false,
|
|
1106
1103
|
getDimensionValue: getDefaultDimensionValue
|
|
1107
1104
|
};
|
|
1108
|
-
var Collapse = React__default
|
|
1105
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1109
1106
|
var onEnter = _ref.onEnter,
|
|
1110
1107
|
onEntering = _ref.onEntering,
|
|
1111
1108
|
onEntered = _ref.onEntered,
|
|
@@ -1117,7 +1114,7 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1117
1114
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1118
1115
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1119
1116
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1120
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1117
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1121
1118
|
|
|
1122
1119
|
/* Compute dimension */
|
|
1123
1120
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1152,8 +1149,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1152
1149
|
elem.style[computedDimension] = null;
|
|
1153
1150
|
}, onExiting);
|
|
1154
1151
|
}, [computedDimension, onExiting]);
|
|
1155
|
-
return /*#__PURE__*/React__default
|
|
1156
|
-
, index._extends({
|
|
1152
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1153
|
+
, index$5._extends({
|
|
1157
1154
|
ref: ref,
|
|
1158
1155
|
addEndListener: transitionEnd
|
|
1159
1156
|
}, props, {
|
|
@@ -1164,8 +1161,8 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1164
1161
|
onExit: handleExit,
|
|
1165
1162
|
onExiting: handleExiting
|
|
1166
1163
|
}), function (state, innerProps) {
|
|
1167
|
-
return React__default
|
|
1168
|
-
className: index.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1164
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1165
|
+
className: index$5.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1169
1166
|
}));
|
|
1170
1167
|
});
|
|
1171
1168
|
}); // @ts-ignore
|
|
@@ -1173,24 +1170,24 @@ var Collapse = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1173
1170
|
// @ts-ignore
|
|
1174
1171
|
Collapse.defaultProps = defaultProps;
|
|
1175
1172
|
|
|
1176
|
-
var AccordionCollapse = React__default
|
|
1173
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1177
1174
|
var children = _ref.children,
|
|
1178
1175
|
eventKey = _ref.eventKey,
|
|
1179
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1176
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1180
1177
|
|
|
1181
1178
|
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1182
1179
|
// from collapsing the accordion when clicked.
|
|
1183
1180
|
|
|
1184
|
-
return /*#__PURE__*/React__default
|
|
1181
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1185
1182
|
value: null
|
|
1186
|
-
}, /*#__PURE__*/React__default
|
|
1183
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1187
1184
|
ref: ref,
|
|
1188
1185
|
in: contextEventKey === eventKey
|
|
1189
|
-
}, props), /*#__PURE__*/React__default
|
|
1186
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1190
1187
|
});
|
|
1191
1188
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1192
1189
|
|
|
1193
|
-
var Accordion = React__default
|
|
1190
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1194
1191
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1195
1192
|
activeKey: 'onSelect'
|
|
1196
1193
|
}),
|
|
@@ -1201,14 +1198,14 @@ var Accordion = React__default['default'].forwardRef(function (props, ref) {
|
|
|
1201
1198
|
children = _useUncontrolled.children,
|
|
1202
1199
|
className = _useUncontrolled.className,
|
|
1203
1200
|
onSelect = _useUncontrolled.onSelect,
|
|
1204
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1201
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1205
1202
|
|
|
1206
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1207
|
-
return /*#__PURE__*/React__default
|
|
1203
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1204
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1208
1205
|
value: activeKey || null
|
|
1209
|
-
}, /*#__PURE__*/React__default
|
|
1206
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1210
1207
|
value: onSelect || null
|
|
1211
|
-
}, /*#__PURE__*/React__default
|
|
1208
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1212
1209
|
ref: ref
|
|
1213
1210
|
}, controlledProps, {
|
|
1214
1211
|
className: finalClassName
|
|
@@ -1252,23 +1249,23 @@ var defaultProps$1 = {
|
|
|
1252
1249
|
appear: false
|
|
1253
1250
|
};
|
|
1254
1251
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1255
|
-
var Fade = React__default
|
|
1252
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1256
1253
|
var className = _ref.className,
|
|
1257
1254
|
children = _ref.children,
|
|
1258
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1255
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1259
1256
|
|
|
1260
1257
|
var handleEnter = React.useCallback(function (node) {
|
|
1261
1258
|
triggerBrowserReflow(node);
|
|
1262
1259
|
if (props.onEnter) props.onEnter(node);
|
|
1263
1260
|
}, [props]);
|
|
1264
|
-
return /*#__PURE__*/React__default
|
|
1261
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1265
1262
|
ref: ref,
|
|
1266
1263
|
addEndListener: transitionEnd
|
|
1267
1264
|
}, props, {
|
|
1268
1265
|
onEnter: handleEnter
|
|
1269
1266
|
}), function (status, innerProps) {
|
|
1270
|
-
return React__default
|
|
1271
|
-
className: index.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1267
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1268
|
+
className: index$5.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1272
1269
|
}));
|
|
1273
1270
|
});
|
|
1274
1271
|
});
|
|
@@ -1276,26 +1273,26 @@ Fade.defaultProps = defaultProps$1;
|
|
|
1276
1273
|
Fade.displayName = 'Fade';
|
|
1277
1274
|
|
|
1278
1275
|
var propTypes = {
|
|
1279
|
-
label: PropTypes__default
|
|
1280
|
-
onClick: PropTypes__default
|
|
1276
|
+
label: PropTypes__default.string.isRequired,
|
|
1277
|
+
onClick: PropTypes__default.func
|
|
1281
1278
|
};
|
|
1282
1279
|
var defaultProps$2 = {
|
|
1283
1280
|
label: 'Close'
|
|
1284
1281
|
};
|
|
1285
|
-
var CloseButton = React__default
|
|
1282
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1286
1283
|
var label = _ref.label,
|
|
1287
1284
|
onClick = _ref.onClick,
|
|
1288
1285
|
className = _ref.className,
|
|
1289
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1286
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1290
1287
|
|
|
1291
|
-
return /*#__PURE__*/React__default
|
|
1288
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1292
1289
|
ref: ref,
|
|
1293
1290
|
type: "button",
|
|
1294
|
-
className: index.classnames('close', className),
|
|
1291
|
+
className: index$5.classnames('close', className),
|
|
1295
1292
|
onClick: onClick
|
|
1296
|
-
}, props), /*#__PURE__*/React__default
|
|
1293
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1297
1294
|
"aria-hidden": "true"
|
|
1298
|
-
}, "\xD7"), /*#__PURE__*/React__default
|
|
1295
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1299
1296
|
className: "sr-only"
|
|
1300
1297
|
}, label));
|
|
1301
1298
|
});
|
|
@@ -1304,10 +1301,10 @@ CloseButton.propTypes = propTypes;
|
|
|
1304
1301
|
CloseButton.defaultProps = defaultProps$2;
|
|
1305
1302
|
|
|
1306
1303
|
var divWithClassName = (function (className) {
|
|
1307
|
-
return React__default
|
|
1308
|
-
return /*#__PURE__*/React__default
|
|
1304
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1305
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1309
1306
|
ref: ref,
|
|
1310
|
-
className: index.classnames(p.className, className)
|
|
1307
|
+
className: index$5.classnames(p.className, className)
|
|
1311
1308
|
}));
|
|
1312
1309
|
});
|
|
1313
1310
|
});
|
|
@@ -1331,17 +1328,17 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1331
1328
|
Component = _ref.Component,
|
|
1332
1329
|
defaultProps = _ref.defaultProps;
|
|
1333
1330
|
|
|
1334
|
-
var BsComponent = React__default
|
|
1331
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1335
1332
|
var className = _ref2.className,
|
|
1336
1333
|
bsPrefix = _ref2.bsPrefix,
|
|
1337
1334
|
_ref2$as = _ref2.as,
|
|
1338
1335
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1339
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1336
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1340
1337
|
|
|
1341
1338
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1342
|
-
return /*#__PURE__*/React__default
|
|
1339
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1343
1340
|
ref: ref,
|
|
1344
|
-
className: index.classnames(className, resolvedPrefix)
|
|
1341
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1345
1342
|
}, props));
|
|
1346
1343
|
});
|
|
1347
1344
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1361,12 +1358,12 @@ function isTrivialHref(href) {
|
|
|
1361
1358
|
*/
|
|
1362
1359
|
|
|
1363
1360
|
|
|
1364
|
-
var SafeAnchor = React__default
|
|
1361
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1365
1362
|
var _ref$as = _ref.as,
|
|
1366
1363
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1367
1364
|
disabled = _ref.disabled,
|
|
1368
1365
|
onKeyDown = _ref.onKeyDown,
|
|
1369
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1366
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1370
1367
|
|
|
1371
1368
|
var handleClick = function handleClick(event) {
|
|
1372
1369
|
var href = props.href,
|
|
@@ -1405,7 +1402,7 @@ var SafeAnchor = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1405
1402
|
props['aria-disabled'] = true;
|
|
1406
1403
|
}
|
|
1407
1404
|
|
|
1408
|
-
return /*#__PURE__*/React__default
|
|
1405
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1409
1406
|
ref: ref
|
|
1410
1407
|
}, props, {
|
|
1411
1408
|
onClick: handleClick,
|
|
@@ -1427,7 +1424,7 @@ var defaultProps$3 = {
|
|
|
1427
1424
|
transition: Fade,
|
|
1428
1425
|
closeLabel: 'Close alert'
|
|
1429
1426
|
};
|
|
1430
|
-
var Alert = React__default
|
|
1427
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1431
1428
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1432
1429
|
show: 'onClose'
|
|
1433
1430
|
}),
|
|
@@ -1440,7 +1437,7 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1440
1437
|
onClose = _useUncontrolled.onClose,
|
|
1441
1438
|
dismissible = _useUncontrolled.dismissible,
|
|
1442
1439
|
transition = _useUncontrolled.transition,
|
|
1443
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1440
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1444
1441
|
|
|
1445
1442
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1446
1443
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1449,17 +1446,17 @@ var Alert = React__default['default'].forwardRef(function (uncontrolledProps, re
|
|
|
1449
1446
|
}
|
|
1450
1447
|
});
|
|
1451
1448
|
var Transition = transition === true ? Fade : transition;
|
|
1452
|
-
var alert = /*#__PURE__*/React__default
|
|
1449
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1453
1450
|
role: "alert"
|
|
1454
1451
|
}, Transition ? props : undefined, {
|
|
1455
1452
|
ref: ref,
|
|
1456
|
-
className: index.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1457
|
-
}), dismissible && /*#__PURE__*/React__default
|
|
1453
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1454
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1458
1455
|
onClick: handleClose,
|
|
1459
1456
|
label: closeLabel
|
|
1460
1457
|
}), children);
|
|
1461
1458
|
if (!Transition) return show ? alert : null;
|
|
1462
|
-
return /*#__PURE__*/React__default
|
|
1459
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1463
1460
|
unmountOnExit: true
|
|
1464
1461
|
}, props, {
|
|
1465
1462
|
ref: undefined,
|
|
@@ -1474,20 +1471,20 @@ Alert.Heading = AlertHeading;
|
|
|
1474
1471
|
var defaultProps$4 = {
|
|
1475
1472
|
pill: false
|
|
1476
1473
|
};
|
|
1477
|
-
var Badge = React__default
|
|
1474
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1478
1475
|
var bsPrefix = _ref.bsPrefix,
|
|
1479
1476
|
variant = _ref.variant,
|
|
1480
1477
|
pill = _ref.pill,
|
|
1481
1478
|
className = _ref.className,
|
|
1482
1479
|
_ref$as = _ref.as,
|
|
1483
1480
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1484
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1481
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1485
1482
|
|
|
1486
1483
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1487
|
-
return /*#__PURE__*/React__default
|
|
1484
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1488
1485
|
ref: ref
|
|
1489
1486
|
}, props, {
|
|
1490
|
-
className: index.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1487
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1491
1488
|
}));
|
|
1492
1489
|
});
|
|
1493
1490
|
Badge.displayName = 'Badge';
|
|
@@ -1497,7 +1494,7 @@ var defaultProps$5 = {
|
|
|
1497
1494
|
active: false,
|
|
1498
1495
|
linkProps: {}
|
|
1499
1496
|
};
|
|
1500
|
-
var BreadcrumbItem = React__default
|
|
1497
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1501
1498
|
var bsPrefix = _ref.bsPrefix,
|
|
1502
1499
|
active = _ref.active,
|
|
1503
1500
|
children = _ref.children,
|
|
@@ -1510,17 +1507,17 @@ var BreadcrumbItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1510
1507
|
href = _ref.href,
|
|
1511
1508
|
title = _ref.title,
|
|
1512
1509
|
target = _ref.target,
|
|
1513
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1510
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1514
1511
|
|
|
1515
1512
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1516
|
-
return /*#__PURE__*/React__default
|
|
1513
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1517
1514
|
ref: ref
|
|
1518
1515
|
}, props, {
|
|
1519
|
-
className: index.classnames(prefix, className, {
|
|
1516
|
+
className: index$5.classnames(prefix, className, {
|
|
1520
1517
|
active: active
|
|
1521
1518
|
}),
|
|
1522
1519
|
"aria-current": active ? 'page' : undefined
|
|
1523
|
-
}), active ? children : /*#__PURE__*/React__default
|
|
1520
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1524
1521
|
href: href,
|
|
1525
1522
|
title: title,
|
|
1526
1523
|
target: target
|
|
@@ -1533,7 +1530,7 @@ var defaultProps$6 = {
|
|
|
1533
1530
|
label: 'breadcrumb',
|
|
1534
1531
|
listProps: {}
|
|
1535
1532
|
};
|
|
1536
|
-
var Breadcrumb = React__default
|
|
1533
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1537
1534
|
var bsPrefix = _ref.bsPrefix,
|
|
1538
1535
|
className = _ref.className,
|
|
1539
1536
|
listProps = _ref.listProps,
|
|
@@ -1541,15 +1538,15 @@ var Breadcrumb = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1541
1538
|
label = _ref.label,
|
|
1542
1539
|
_ref$as = _ref.as,
|
|
1543
1540
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1544
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1541
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1545
1542
|
|
|
1546
1543
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1547
|
-
return /*#__PURE__*/React__default
|
|
1544
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1548
1545
|
"aria-label": label,
|
|
1549
1546
|
className: className,
|
|
1550
1547
|
ref: ref
|
|
1551
|
-
}, props), /*#__PURE__*/React__default
|
|
1552
|
-
className: index.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1548
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", index$5._extends({}, listProps, {
|
|
1549
|
+
className: index$5.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1553
1550
|
}), children));
|
|
1554
1551
|
});
|
|
1555
1552
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1561,7 +1558,7 @@ var defaultProps$7 = {
|
|
|
1561
1558
|
active: false,
|
|
1562
1559
|
disabled: false
|
|
1563
1560
|
};
|
|
1564
|
-
var Button = React__default
|
|
1561
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1565
1562
|
var bsPrefix = _ref.bsPrefix,
|
|
1566
1563
|
variant = _ref.variant,
|
|
1567
1564
|
size = _ref.size,
|
|
@@ -1570,16 +1567,16 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1570
1567
|
block = _ref.block,
|
|
1571
1568
|
type = _ref.type,
|
|
1572
1569
|
as = _ref.as,
|
|
1573
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1570
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1574
1571
|
|
|
1575
1572
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1576
|
-
var classes = index.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1573
|
+
var classes = index$5.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1577
1574
|
|
|
1578
1575
|
if (props.href) {
|
|
1579
|
-
return /*#__PURE__*/React__default
|
|
1576
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1580
1577
|
as: as,
|
|
1581
1578
|
ref: ref,
|
|
1582
|
-
className: index.classnames(classes, props.disabled && 'disabled')
|
|
1579
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1583
1580
|
}));
|
|
1584
1581
|
}
|
|
1585
1582
|
|
|
@@ -1594,7 +1591,7 @@ var Button = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1594
1591
|
}
|
|
1595
1592
|
|
|
1596
1593
|
var Component = as || 'button';
|
|
1597
|
-
return /*#__PURE__*/React__default
|
|
1594
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1598
1595
|
className: classes
|
|
1599
1596
|
}));
|
|
1600
1597
|
});
|
|
@@ -1606,7 +1603,7 @@ var defaultProps$8 = {
|
|
|
1606
1603
|
toggle: false,
|
|
1607
1604
|
role: 'group'
|
|
1608
1605
|
};
|
|
1609
|
-
var ButtonGroup = React__default
|
|
1606
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1610
1607
|
var bsPrefix = _ref.bsPrefix,
|
|
1611
1608
|
size = _ref.size,
|
|
1612
1609
|
toggle = _ref.toggle,
|
|
@@ -1614,14 +1611,14 @@ var ButtonGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1614
1611
|
className = _ref.className,
|
|
1615
1612
|
_ref$as = _ref.as,
|
|
1616
1613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1617
|
-
rest = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1614
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1618
1615
|
|
|
1619
1616
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1620
1617
|
var baseClass = prefix;
|
|
1621
1618
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1622
|
-
return /*#__PURE__*/React__default
|
|
1619
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1623
1620
|
ref: ref,
|
|
1624
|
-
className: index.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1621
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1625
1622
|
}));
|
|
1626
1623
|
});
|
|
1627
1624
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1630,39 +1627,39 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1630
1627
|
var defaultProps$9 = {
|
|
1631
1628
|
role: 'toolbar'
|
|
1632
1629
|
};
|
|
1633
|
-
var ButtonToolbar = React__default
|
|
1630
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1634
1631
|
var bsPrefix = _ref.bsPrefix,
|
|
1635
1632
|
className = _ref.className,
|
|
1636
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1633
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1637
1634
|
|
|
1638
1635
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1639
|
-
return /*#__PURE__*/React__default
|
|
1636
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1640
1637
|
ref: ref,
|
|
1641
|
-
className: index.classnames(className, prefix)
|
|
1638
|
+
className: index$5.classnames(className, prefix)
|
|
1642
1639
|
}));
|
|
1643
1640
|
});
|
|
1644
1641
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1645
1642
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1646
1643
|
|
|
1647
|
-
var context$1 = React__default
|
|
1644
|
+
var context$1 = React__default.createContext(null);
|
|
1648
1645
|
context$1.displayName = 'CardContext';
|
|
1649
1646
|
|
|
1650
1647
|
var defaultProps$a = {
|
|
1651
1648
|
variant: null
|
|
1652
1649
|
};
|
|
1653
|
-
var CardImg = React__default
|
|
1650
|
+
var CardImg = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1654
1651
|
function (_ref, ref) {
|
|
1655
1652
|
var bsPrefix = _ref.bsPrefix,
|
|
1656
1653
|
className = _ref.className,
|
|
1657
1654
|
variant = _ref.variant,
|
|
1658
1655
|
_ref$as = _ref.as,
|
|
1659
1656
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1660
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1657
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1661
1658
|
|
|
1662
1659
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1663
|
-
return /*#__PURE__*/React__default
|
|
1660
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1664
1661
|
ref: ref,
|
|
1665
|
-
className: index.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1662
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1666
1663
|
}, props));
|
|
1667
1664
|
});
|
|
1668
1665
|
CardImg.displayName = 'CardImg';
|
|
@@ -1689,7 +1686,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1689
1686
|
var defaultProps$b = {
|
|
1690
1687
|
body: false
|
|
1691
1688
|
};
|
|
1692
|
-
var Card = React__default
|
|
1689
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1693
1690
|
var bsPrefix = _ref.bsPrefix,
|
|
1694
1691
|
className = _ref.className,
|
|
1695
1692
|
bg = _ref.bg,
|
|
@@ -1699,7 +1696,7 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1699
1696
|
children = _ref.children,
|
|
1700
1697
|
_ref$as = _ref.as,
|
|
1701
1698
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1702
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1699
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1703
1700
|
|
|
1704
1701
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1705
1702
|
var cardContext = React.useMemo(function () {
|
|
@@ -1707,16 +1704,16 @@ var Card = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
1707
1704
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1708
1705
|
};
|
|
1709
1706
|
}, [prefix]);
|
|
1710
|
-
return /*#__PURE__*/React__default
|
|
1707
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1711
1708
|
value: cardContext
|
|
1712
|
-
}, /*#__PURE__*/React__default
|
|
1709
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1713
1710
|
ref: ref
|
|
1714
1711
|
}, props, {
|
|
1715
|
-
className: index.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1712
|
+
className: index$5.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1716
1713
|
}), body ?
|
|
1717
1714
|
/*#__PURE__*/
|
|
1718
1715
|
// @ts-ignore
|
|
1719
|
-
React__default
|
|
1716
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1720
1717
|
});
|
|
1721
1718
|
Card.displayName = 'Card';
|
|
1722
1719
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1852,6 +1849,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1852
1849
|
/**
|
|
1853
1850
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1854
1851
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1852
|
+
*
|
|
1853
|
+
*
|
|
1854
|
+
*
|
|
1855
|
+
* ```tsx
|
|
1856
|
+
* const { set, clear } = useTimeout();
|
|
1857
|
+
* const [hello, showHello] = useState(false);
|
|
1858
|
+
* //Display hello after 5 seconds
|
|
1859
|
+
* set(() => showHello(true), 5000);
|
|
1860
|
+
* return (
|
|
1861
|
+
* <div className="App">
|
|
1862
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1863
|
+
* </div>
|
|
1864
|
+
* );
|
|
1865
|
+
* ```
|
|
1855
1866
|
*/
|
|
1856
1867
|
|
|
1857
1868
|
|
|
@@ -1892,16 +1903,16 @@ function useTimeout() {
|
|
|
1892
1903
|
|
|
1893
1904
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1894
1905
|
|
|
1895
|
-
var CarouselItem = React__default
|
|
1906
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1896
1907
|
var _ref$as = _ref.as,
|
|
1897
1908
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1898
1909
|
bsPrefix = _ref.bsPrefix,
|
|
1899
1910
|
children = _ref.children,
|
|
1900
1911
|
className = _ref.className,
|
|
1901
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1912
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1902
1913
|
|
|
1903
|
-
var finalClassName = index.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1904
|
-
return /*#__PURE__*/React__default
|
|
1914
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1915
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1905
1916
|
ref: ref
|
|
1906
1917
|
}, props, {
|
|
1907
1918
|
className: finalClassName
|
|
@@ -1920,8 +1931,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1920
1931
|
|
|
1921
1932
|
function map(children, func) {
|
|
1922
1933
|
var index = 0;
|
|
1923
|
-
return React__default
|
|
1924
|
-
return React__default
|
|
1934
|
+
return React__default.Children.map(children, function (child) {
|
|
1935
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1925
1936
|
});
|
|
1926
1937
|
}
|
|
1927
1938
|
/**
|
|
@@ -1934,8 +1945,8 @@ function map(children, func) {
|
|
|
1934
1945
|
|
|
1935
1946
|
function forEach(children, func) {
|
|
1936
1947
|
var index = 0;
|
|
1937
|
-
React__default
|
|
1938
|
-
if (React__default
|
|
1948
|
+
React__default.Children.forEach(children, function (child) {
|
|
1949
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1939
1950
|
});
|
|
1940
1951
|
}
|
|
1941
1952
|
|
|
@@ -1944,33 +1955,33 @@ var propTypes$1 = {
|
|
|
1944
1955
|
/**
|
|
1945
1956
|
* @default 'carousel'
|
|
1946
1957
|
*/
|
|
1947
|
-
bsPrefix: PropTypes__default
|
|
1948
|
-
as: PropTypes__default
|
|
1958
|
+
bsPrefix: PropTypes__default.string,
|
|
1959
|
+
as: PropTypes__default.elementType,
|
|
1949
1960
|
|
|
1950
1961
|
/**
|
|
1951
1962
|
* Enables animation on the Carousel as it transitions between slides.
|
|
1952
1963
|
*/
|
|
1953
|
-
slide: PropTypes__default
|
|
1964
|
+
slide: PropTypes__default.bool,
|
|
1954
1965
|
|
|
1955
1966
|
/** Cross fade slides instead of the default slide animation */
|
|
1956
|
-
fade: PropTypes__default
|
|
1967
|
+
fade: PropTypes__default.bool,
|
|
1957
1968
|
|
|
1958
1969
|
/**
|
|
1959
1970
|
* Show the Carousel previous and next arrows for changing the current slide
|
|
1960
1971
|
*/
|
|
1961
|
-
controls: PropTypes__default
|
|
1972
|
+
controls: PropTypes__default.bool,
|
|
1962
1973
|
|
|
1963
1974
|
/**
|
|
1964
1975
|
* Show a set of slide position indicators
|
|
1965
1976
|
*/
|
|
1966
|
-
indicators: PropTypes__default
|
|
1977
|
+
indicators: PropTypes__default.bool,
|
|
1967
1978
|
|
|
1968
1979
|
/**
|
|
1969
1980
|
* Controls the current visible slide
|
|
1970
1981
|
*
|
|
1971
1982
|
* @controllable onSelect
|
|
1972
1983
|
*/
|
|
1973
|
-
activeIndex: PropTypes__default
|
|
1984
|
+
activeIndex: PropTypes__default.number,
|
|
1974
1985
|
|
|
1975
1986
|
/**
|
|
1976
1987
|
* Callback fired when the active item changes.
|
|
@@ -1981,7 +1992,7 @@ var propTypes$1 = {
|
|
|
1981
1992
|
*
|
|
1982
1993
|
* @controllable activeIndex
|
|
1983
1994
|
*/
|
|
1984
|
-
onSelect: PropTypes__default
|
|
1995
|
+
onSelect: PropTypes__default.func,
|
|
1985
1996
|
|
|
1986
1997
|
/**
|
|
1987
1998
|
* Callback fired when a slide transition starts.
|
|
@@ -1989,7 +2000,7 @@ var propTypes$1 = {
|
|
|
1989
2000
|
* ```js
|
|
1990
2001
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
1991
2002
|
*/
|
|
1992
|
-
onSlide: PropTypes__default
|
|
2003
|
+
onSlide: PropTypes__default.func,
|
|
1993
2004
|
|
|
1994
2005
|
/**
|
|
1995
2006
|
* Callback fired when a slide transition ends.
|
|
@@ -1997,50 +2008,50 @@ var propTypes$1 = {
|
|
|
1997
2008
|
* ```js
|
|
1998
2009
|
* (eventKey: number, direction: 'left' | 'right') => void
|
|
1999
2010
|
*/
|
|
2000
|
-
onSlid: PropTypes__default
|
|
2011
|
+
onSlid: PropTypes__default.func,
|
|
2001
2012
|
|
|
2002
2013
|
/**
|
|
2003
2014
|
* The amount of time to delay between automatically cycling an item. If `null`, carousel will not automatically cycle.
|
|
2004
2015
|
*/
|
|
2005
|
-
interval: PropTypes__default
|
|
2016
|
+
interval: PropTypes__default.number,
|
|
2006
2017
|
|
|
2007
2018
|
/** Whether the carousel should react to keyboard events. */
|
|
2008
|
-
keyboard: PropTypes__default
|
|
2019
|
+
keyboard: PropTypes__default.bool,
|
|
2009
2020
|
|
|
2010
2021
|
/**
|
|
2011
2022
|
* If set to `"hover"`, pauses the cycling of the carousel on `mouseenter` and resumes the cycling of the carousel on `mouseleave`. If set to `false`, hovering over the carousel won't pause it.
|
|
2012
2023
|
*
|
|
2013
2024
|
* On touch-enabled devices, when set to `"hover"`, cycling will pause on `touchend` (once the user finished interacting with the carousel) for two intervals, before automatically resuming. Note that this is in addition to the above mouse behavior.
|
|
2014
2025
|
*/
|
|
2015
|
-
pause: PropTypes__default
|
|
2026
|
+
pause: PropTypes__default.oneOf(['hover', false]),
|
|
2016
2027
|
|
|
2017
2028
|
/** Whether the carousel should cycle continuously or have hard stops. */
|
|
2018
|
-
wrap: PropTypes__default
|
|
2029
|
+
wrap: PropTypes__default.bool,
|
|
2019
2030
|
|
|
2020
2031
|
/**
|
|
2021
2032
|
* Whether the carousel should support left/right swipe interactions on touchscreen devices.
|
|
2022
2033
|
*/
|
|
2023
|
-
touch: PropTypes__default
|
|
2034
|
+
touch: PropTypes__default.bool,
|
|
2024
2035
|
|
|
2025
2036
|
/** Override the default button icon for the "previous" control */
|
|
2026
|
-
prevIcon: PropTypes__default
|
|
2037
|
+
prevIcon: PropTypes__default.node,
|
|
2027
2038
|
|
|
2028
2039
|
/**
|
|
2029
2040
|
* Label shown to screen readers only, can be used to show the previous element
|
|
2030
2041
|
* in the carousel.
|
|
2031
2042
|
* Set to null to deactivate.
|
|
2032
2043
|
*/
|
|
2033
|
-
prevLabel: PropTypes__default
|
|
2044
|
+
prevLabel: PropTypes__default.string,
|
|
2034
2045
|
|
|
2035
2046
|
/** Override the default button icon for the "next" control */
|
|
2036
|
-
nextIcon: PropTypes__default
|
|
2047
|
+
nextIcon: PropTypes__default.node,
|
|
2037
2048
|
|
|
2038
2049
|
/**
|
|
2039
2050
|
* Label shown to screen readers only, can be used to show the next element
|
|
2040
2051
|
* in the carousel.
|
|
2041
2052
|
* Set to null to deactivate.
|
|
2042
2053
|
*/
|
|
2043
|
-
nextLabel: PropTypes__default
|
|
2054
|
+
nextLabel: PropTypes__default.string
|
|
2044
2055
|
};
|
|
2045
2056
|
var defaultProps$c = {
|
|
2046
2057
|
slide: true,
|
|
@@ -2053,12 +2064,12 @@ var defaultProps$c = {
|
|
|
2053
2064
|
pause: 'hover',
|
|
2054
2065
|
wrap: true,
|
|
2055
2066
|
touch: true,
|
|
2056
|
-
prevIcon: /*#__PURE__*/React__default
|
|
2067
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2057
2068
|
"aria-hidden": "true",
|
|
2058
2069
|
className: "carousel-control-prev-icon"
|
|
2059
2070
|
}),
|
|
2060
2071
|
prevLabel: 'Previous',
|
|
2061
|
-
nextIcon: /*#__PURE__*/React__default
|
|
2072
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2062
2073
|
"aria-hidden": "true",
|
|
2063
2074
|
className: "carousel-control-next-icon"
|
|
2064
2075
|
}),
|
|
@@ -2106,7 +2117,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2106
2117
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2107
2118
|
className = _useUncontrolled.className,
|
|
2108
2119
|
children = _useUncontrolled.children,
|
|
2109
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2120
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2110
2121
|
|
|
2111
2122
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2112
2123
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2363,7 +2374,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2363
2374
|
};
|
|
2364
2375
|
});
|
|
2365
2376
|
}, [indicators, numChildren, onSelect]);
|
|
2366
|
-
return /*#__PURE__*/React__default
|
|
2377
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2367
2378
|
ref: elementRef
|
|
2368
2379
|
}, props, {
|
|
2369
2380
|
onKeyDown: handleKeyDown,
|
|
@@ -2372,45 +2383,45 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2372
2383
|
onTouchStart: handleTouchStart,
|
|
2373
2384
|
onTouchMove: handleTouchMove,
|
|
2374
2385
|
onTouchEnd: handleTouchEnd,
|
|
2375
|
-
className: index.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2376
|
-
}), indicators && /*#__PURE__*/React__default
|
|
2386
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2387
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2377
2388
|
className: prefix + "-indicators"
|
|
2378
2389
|
}, map(children, function (_child, index) {
|
|
2379
|
-
return /*#__PURE__*/React__default
|
|
2390
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2380
2391
|
key: index,
|
|
2381
2392
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2382
2393
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2383
2394
|
});
|
|
2384
|
-
})), /*#__PURE__*/React__default
|
|
2395
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2385
2396
|
className: prefix + "-inner"
|
|
2386
|
-
}, map(children, function (child, index
|
|
2387
|
-
var isActive = index
|
|
2388
|
-
return slide ? /*#__PURE__*/React__default
|
|
2397
|
+
}, map(children, function (child, index) {
|
|
2398
|
+
var isActive = index === renderedActiveIndex;
|
|
2399
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2389
2400
|
in: isActive,
|
|
2390
2401
|
onEnter: isActive ? handleEnter : undefined,
|
|
2391
2402
|
onEntered: isActive ? handleEntered : undefined,
|
|
2392
2403
|
addEndListener: transitionEnd
|
|
2393
2404
|
}, function (status) {
|
|
2394
|
-
return React__default
|
|
2395
|
-
className: index.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2405
|
+
return React__default.cloneElement(child, {
|
|
2406
|
+
className: index$5.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2396
2407
|
});
|
|
2397
|
-
}) : React__default
|
|
2398
|
-
className: index.classnames(child.props.className, isActive && 'active')
|
|
2408
|
+
}) : React__default.cloneElement(child, {
|
|
2409
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2399
2410
|
});
|
|
2400
|
-
})), controls && /*#__PURE__*/React__default
|
|
2411
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2401
2412
|
className: prefix + "-control-prev",
|
|
2402
2413
|
onClick: prev
|
|
2403
|
-
}, prevIcon, prevLabel && /*#__PURE__*/React__default
|
|
2414
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2404
2415
|
className: "sr-only"
|
|
2405
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default
|
|
2416
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2406
2417
|
className: prefix + "-control-next",
|
|
2407
2418
|
onClick: next
|
|
2408
|
-
}, nextIcon, nextLabel && /*#__PURE__*/React__default
|
|
2419
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2409
2420
|
className: "sr-only"
|
|
2410
2421
|
}, nextLabel))));
|
|
2411
2422
|
}
|
|
2412
2423
|
|
|
2413
|
-
var Carousel = React__default
|
|
2424
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2414
2425
|
Carousel.displayName = 'Carousel';
|
|
2415
2426
|
Carousel.propTypes = propTypes$1;
|
|
2416
2427
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2418,13 +2429,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2418
2429
|
Carousel.Item = CarouselItem;
|
|
2419
2430
|
|
|
2420
2431
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2421
|
-
var Col = React__default
|
|
2432
|
+
var Col = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2422
2433
|
function (_ref, ref) {
|
|
2423
2434
|
var bsPrefix = _ref.bsPrefix,
|
|
2424
2435
|
className = _ref.className,
|
|
2425
2436
|
_ref$as = _ref.as,
|
|
2426
2437
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2427
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2438
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2428
2439
|
|
|
2429
2440
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2430
2441
|
var spans = [];
|
|
@@ -2455,9 +2466,9 @@ function (_ref, ref) {
|
|
|
2455
2466
|
spans.push(prefix); // plain 'col'
|
|
2456
2467
|
}
|
|
2457
2468
|
|
|
2458
|
-
return /*#__PURE__*/React__default
|
|
2469
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2459
2470
|
ref: ref,
|
|
2460
|
-
className: index.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2471
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2461
2472
|
}));
|
|
2462
2473
|
});
|
|
2463
2474
|
Col.displayName = 'Col';
|
|
@@ -2564,7 +2575,40 @@ function useForceUpdate() {
|
|
|
2564
2575
|
return dispatch;
|
|
2565
2576
|
}
|
|
2566
2577
|
|
|
2567
|
-
var DropdownContext = /*#__PURE__*/React__default
|
|
2578
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2579
|
+
|
|
2580
|
+
function _extends() {
|
|
2581
|
+
_extends = Object.assign || function (target) {
|
|
2582
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2583
|
+
var source = arguments[i];
|
|
2584
|
+
|
|
2585
|
+
for (var key in source) {
|
|
2586
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2587
|
+
target[key] = source[key];
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
return target;
|
|
2593
|
+
};
|
|
2594
|
+
|
|
2595
|
+
return _extends.apply(this, arguments);
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2599
|
+
if (source == null) return {};
|
|
2600
|
+
var target = {};
|
|
2601
|
+
var sourceKeys = Object.keys(source);
|
|
2602
|
+
var key, i;
|
|
2603
|
+
|
|
2604
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2605
|
+
key = sourceKeys[i];
|
|
2606
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2607
|
+
target[key] = source[key];
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
return target;
|
|
2611
|
+
}
|
|
2568
2612
|
|
|
2569
2613
|
function useSafeState(state) {
|
|
2570
2614
|
var isMounted = useMounted();
|
|
@@ -2669,7 +2713,7 @@ function contains(parent, child) {
|
|
|
2669
2713
|
do {
|
|
2670
2714
|
if (next && parent.isSameNode(next)) {
|
|
2671
2715
|
return true;
|
|
2672
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2716
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2673
2717
|
|
|
2674
2718
|
|
|
2675
2719
|
next = next.parentNode || next.host;
|
|
@@ -2693,8 +2737,9 @@ function isTableElement(element) {
|
|
|
2693
2737
|
}
|
|
2694
2738
|
|
|
2695
2739
|
function getDocumentElement(element) {
|
|
2696
|
-
// $FlowFixMe: assume body is always available
|
|
2697
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2740
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2741
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2742
|
+
element.document) || window.document).documentElement;
|
|
2698
2743
|
}
|
|
2699
2744
|
|
|
2700
2745
|
function getParentNode(element) {
|
|
@@ -2702,12 +2747,14 @@ function getParentNode(element) {
|
|
|
2702
2747
|
return element;
|
|
2703
2748
|
}
|
|
2704
2749
|
|
|
2705
|
-
return (//
|
|
2750
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2751
|
+
// $FlowFixMe[incompatible-return]
|
|
2752
|
+
// $FlowFixMe[prop-missing]
|
|
2706
2753
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2707
2754
|
element.parentNode || // DOM Element detected
|
|
2708
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2755
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2709
2756
|
element.host || // ShadowRoot detected
|
|
2710
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2757
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2711
2758
|
getDocumentElement(element) // fallback
|
|
2712
2759
|
|
|
2713
2760
|
);
|
|
@@ -2894,7 +2941,7 @@ var unsetSides = {
|
|
|
2894
2941
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2895
2942
|
// cleanly divide the values into the appropriate subpixels.
|
|
2896
2943
|
|
|
2897
|
-
function
|
|
2944
|
+
function roundOffsetsByDPR(_ref) {
|
|
2898
2945
|
var x = _ref.x,
|
|
2899
2946
|
y = _ref.y;
|
|
2900
2947
|
var win = window;
|
|
@@ -2914,11 +2961,14 @@ function mapToStyles(_ref2) {
|
|
|
2914
2961
|
offsets = _ref2.offsets,
|
|
2915
2962
|
position = _ref2.position,
|
|
2916
2963
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2917
|
-
adaptive = _ref2.adaptive
|
|
2964
|
+
adaptive = _ref2.adaptive,
|
|
2965
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2918
2966
|
|
|
2919
|
-
var
|
|
2920
|
-
x =
|
|
2921
|
-
|
|
2967
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2968
|
+
_ref3$x = _ref3.x,
|
|
2969
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2970
|
+
_ref3$y = _ref3.y,
|
|
2971
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2922
2972
|
|
|
2923
2973
|
var hasX = offsets.hasOwnProperty('x');
|
|
2924
2974
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2931,7 +2981,7 @@ function mapToStyles(_ref2) {
|
|
|
2931
2981
|
|
|
2932
2982
|
if (offsetParent === getWindow(popper)) {
|
|
2933
2983
|
offsetParent = getDocumentElement(popper);
|
|
2934
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2984
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2935
2985
|
|
|
2936
2986
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2937
2987
|
|
|
@@ -2962,13 +3012,15 @@ function mapToStyles(_ref2) {
|
|
|
2962
3012
|
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2963
3013
|
}
|
|
2964
3014
|
|
|
2965
|
-
function computeStyles(
|
|
2966
|
-
var state =
|
|
2967
|
-
options =
|
|
3015
|
+
function computeStyles(_ref4) {
|
|
3016
|
+
var state = _ref4.state,
|
|
3017
|
+
options = _ref4.options;
|
|
2968
3018
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2969
3019
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2970
3020
|
_options$adaptive = options.adaptive,
|
|
2971
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3021
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3022
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3023
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2972
3024
|
|
|
2973
3025
|
if (process.env.NODE_ENV !== "production") {
|
|
2974
3026
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -2991,7 +3043,8 @@ function computeStyles(_ref3) {
|
|
|
2991
3043
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2992
3044
|
offsets: state.modifiersData.popperOffsets,
|
|
2993
3045
|
position: state.options.strategy,
|
|
2994
|
-
adaptive: adaptive
|
|
3046
|
+
adaptive: adaptive,
|
|
3047
|
+
roundOffsets: roundOffsets
|
|
2995
3048
|
})));
|
|
2996
3049
|
}
|
|
2997
3050
|
|
|
@@ -2999,7 +3052,8 @@ function computeStyles(_ref3) {
|
|
|
2999
3052
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3000
3053
|
offsets: state.modifiersData.arrow,
|
|
3001
3054
|
position: 'absolute',
|
|
3002
|
-
adaptive: false
|
|
3055
|
+
adaptive: false,
|
|
3056
|
+
roundOffsets: roundOffsets
|
|
3003
3057
|
})));
|
|
3004
3058
|
}
|
|
3005
3059
|
|
|
@@ -3195,7 +3249,7 @@ function isScrollParent(element) {
|
|
|
3195
3249
|
|
|
3196
3250
|
function getScrollParent(node) {
|
|
3197
3251
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3198
|
-
// $FlowFixMe: assume body is always available
|
|
3252
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3199
3253
|
return node.ownerDocument.body;
|
|
3200
3254
|
}
|
|
3201
3255
|
|
|
@@ -3209,7 +3263,7 @@ function getScrollParent(node) {
|
|
|
3209
3263
|
/*
|
|
3210
3264
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3211
3265
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3212
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3266
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3213
3267
|
reference element's position.
|
|
3214
3268
|
*/
|
|
3215
3269
|
|
|
@@ -3223,7 +3277,7 @@ function listScrollParents(element, list) {
|
|
|
3223
3277
|
var win = getWindow(scrollParent);
|
|
3224
3278
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3225
3279
|
var updatedList = list.concat(target);
|
|
3226
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3280
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3227
3281
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3228
3282
|
}
|
|
3229
3283
|
|
|
@@ -3263,7 +3317,7 @@ function getClippingParents(element) {
|
|
|
3263
3317
|
|
|
3264
3318
|
if (!isElement(clipperElement)) {
|
|
3265
3319
|
return [];
|
|
3266
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3320
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3267
3321
|
|
|
3268
3322
|
|
|
3269
3323
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3349,11 +3403,11 @@ function computeOffsets(_ref) {
|
|
|
3349
3403
|
|
|
3350
3404
|
switch (variation) {
|
|
3351
3405
|
case start:
|
|
3352
|
-
offsets[mainAxis] =
|
|
3406
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3353
3407
|
break;
|
|
3354
3408
|
|
|
3355
3409
|
case end:
|
|
3356
|
-
offsets[mainAxis] =
|
|
3410
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3357
3411
|
break;
|
|
3358
3412
|
}
|
|
3359
3413
|
}
|
|
@@ -3435,8 +3489,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3435
3489
|
var variation = getVariation(placement);
|
|
3436
3490
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3437
3491
|
return getVariation(placement) === variation;
|
|
3438
|
-
}) : basePlacements;
|
|
3439
|
-
|
|
3492
|
+
}) : basePlacements;
|
|
3440
3493
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3441
3494
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3442
3495
|
});
|
|
@@ -3447,7 +3500,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3447
3500
|
if (process.env.NODE_ENV !== "production") {
|
|
3448
3501
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3449
3502
|
}
|
|
3450
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3503
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3451
3504
|
|
|
3452
3505
|
|
|
3453
3506
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4410,7 +4463,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4410
4463
|
strategy = _ref3$strategy === void 0 ? 'absolute' : _ref3$strategy,
|
|
4411
4464
|
_ref3$modifiers = _ref3.modifiers,
|
|
4412
4465
|
modifiers = _ref3$modifiers === void 0 ? EMPTY_MODIFIERS : _ref3$modifiers,
|
|
4413
|
-
config =
|
|
4466
|
+
config = _objectWithoutPropertiesLoose(_ref3, ["enabled", "placement", "strategy", "modifiers"]);
|
|
4414
4467
|
|
|
4415
4468
|
var popperInstanceRef = React.useRef();
|
|
4416
4469
|
var update = React.useCallback(function () {
|
|
@@ -4476,7 +4529,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4476
4529
|
return undefined;
|
|
4477
4530
|
}
|
|
4478
4531
|
|
|
4479
|
-
popperInstanceRef.current = createPopper(referenceElement, popperElement,
|
|
4532
|
+
popperInstanceRef.current = createPopper(referenceElement, popperElement, _extends({}, config, {
|
|
4480
4533
|
placement: placement,
|
|
4481
4534
|
strategy: strategy,
|
|
4482
4535
|
modifiers: [].concat(modifiers, [ariaDescribedByModifier, updateModifier])
|
|
@@ -4486,7 +4539,7 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4486
4539
|
popperInstanceRef.current.destroy();
|
|
4487
4540
|
popperInstanceRef.current = undefined;
|
|
4488
4541
|
setState(function (s) {
|
|
4489
|
-
return
|
|
4542
|
+
return _extends({}, s, {
|
|
4490
4543
|
attributes: {},
|
|
4491
4544
|
styles: {
|
|
4492
4545
|
popper: initialPopperStyles(strategy)
|
|
@@ -4571,7 +4624,7 @@ var warning_1 = warning;
|
|
|
4571
4624
|
|
|
4572
4625
|
function safeFindDOMNode(componentOrElement) {
|
|
4573
4626
|
if (componentOrElement && 'setState' in componentOrElement) {
|
|
4574
|
-
return
|
|
4627
|
+
return ReactDOM.findDOMNode(componentOrElement);
|
|
4575
4628
|
}
|
|
4576
4629
|
|
|
4577
4630
|
return componentOrElement != null ? componentOrElement : null;
|
|
@@ -4716,30 +4769,30 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4716
4769
|
_ref$popperConfig = _ref.popperConfig,
|
|
4717
4770
|
popperConfig = _ref$popperConfig === void 0 ? {} : _ref$popperConfig;
|
|
4718
4771
|
var modifiers = toModifierMap(popperConfig.modifiers);
|
|
4719
|
-
return
|
|
4772
|
+
return _extends({}, popperConfig, {
|
|
4720
4773
|
placement: placement,
|
|
4721
4774
|
enabled: enabled,
|
|
4722
|
-
modifiers: toModifierArray(
|
|
4775
|
+
modifiers: toModifierArray(_extends({}, modifiers, {
|
|
4723
4776
|
eventListeners: {
|
|
4724
4777
|
enabled: enableEvents
|
|
4725
4778
|
},
|
|
4726
|
-
preventOverflow:
|
|
4727
|
-
options: containerPadding ?
|
|
4779
|
+
preventOverflow: _extends({}, modifiers.preventOverflow, {
|
|
4780
|
+
options: containerPadding ? _extends({
|
|
4728
4781
|
padding: containerPadding
|
|
4729
4782
|
}, (_modifiers$preventOve = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve.options) : (_modifiers$preventOve2 = modifiers.preventOverflow) == null ? void 0 : _modifiers$preventOve2.options
|
|
4730
4783
|
}),
|
|
4731
4784
|
offset: {
|
|
4732
|
-
options:
|
|
4785
|
+
options: _extends({
|
|
4733
4786
|
offset: offset
|
|
4734
4787
|
}, (_modifiers$offset = modifiers.offset) == null ? void 0 : _modifiers$offset.options)
|
|
4735
4788
|
},
|
|
4736
|
-
arrow:
|
|
4789
|
+
arrow: _extends({}, modifiers.arrow, {
|
|
4737
4790
|
enabled: !!arrowElement,
|
|
4738
|
-
options:
|
|
4791
|
+
options: _extends({}, (_modifiers$arrow = modifiers.arrow) == null ? void 0 : _modifiers$arrow.options, {
|
|
4739
4792
|
element: arrowElement
|
|
4740
4793
|
})
|
|
4741
4794
|
}),
|
|
4742
|
-
flip:
|
|
4795
|
+
flip: _extends({
|
|
4743
4796
|
enabled: !!flip
|
|
4744
4797
|
}, modifiers.flip)
|
|
4745
4798
|
}))
|
|
@@ -4810,7 +4863,7 @@ function useDropdownMenu(options) {
|
|
|
4810
4863
|
})),
|
|
4811
4864
|
styles = _usePopper.styles,
|
|
4812
4865
|
attributes = _usePopper.attributes,
|
|
4813
|
-
popper =
|
|
4866
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
4814
4867
|
|
|
4815
4868
|
var menu;
|
|
4816
4869
|
var menuProps = {
|
|
@@ -4825,15 +4878,15 @@ function useDropdownMenu(options) {
|
|
|
4825
4878
|
};
|
|
4826
4879
|
|
|
4827
4880
|
if (!shouldUsePopper) {
|
|
4828
|
-
menu =
|
|
4881
|
+
menu = _extends({}, childArgs, {
|
|
4829
4882
|
props: menuProps
|
|
4830
4883
|
});
|
|
4831
4884
|
} else {
|
|
4832
|
-
menu =
|
|
4833
|
-
props:
|
|
4885
|
+
menu = _extends({}, popper, childArgs, {
|
|
4886
|
+
props: _extends({}, menuProps, attributes.popper, {
|
|
4834
4887
|
style: styles.popper
|
|
4835
4888
|
}),
|
|
4836
|
-
arrowProps:
|
|
4889
|
+
arrowProps: _extends({
|
|
4837
4890
|
ref: attachArrowRef
|
|
4838
4891
|
}, attributes.arrow, {
|
|
4839
4892
|
style: styles.arrow
|
|
@@ -4870,39 +4923,39 @@ var propTypes$2 = {
|
|
|
4870
4923
|
* },
|
|
4871
4924
|
* }) => React.Element}
|
|
4872
4925
|
*/
|
|
4873
|
-
children: PropTypes__default
|
|
4926
|
+
children: PropTypes__default.func.isRequired,
|
|
4874
4927
|
|
|
4875
4928
|
/**
|
|
4876
4929
|
* Controls the visible state of the menu, generally this is
|
|
4877
4930
|
* provided by the parent `Dropdown` component,
|
|
4878
4931
|
* but may also be specified as a prop directly.
|
|
4879
4932
|
*/
|
|
4880
|
-
show: PropTypes__default
|
|
4933
|
+
show: PropTypes__default.bool,
|
|
4881
4934
|
|
|
4882
4935
|
/**
|
|
4883
4936
|
* Aligns the dropdown menu to the 'end' of it's placement position.
|
|
4884
4937
|
* Generally this is provided by the parent `Dropdown` component,
|
|
4885
4938
|
* but may also be specified as a prop directly.
|
|
4886
4939
|
*/
|
|
4887
|
-
alignEnd: PropTypes__default
|
|
4940
|
+
alignEnd: PropTypes__default.bool,
|
|
4888
4941
|
|
|
4889
4942
|
/**
|
|
4890
4943
|
* Enables the Popper.js `flip` modifier, allowing the Dropdown to
|
|
4891
4944
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
4892
4945
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
4893
4946
|
*/
|
|
4894
|
-
flip: PropTypes__default
|
|
4895
|
-
usePopper: PropTypes__default
|
|
4947
|
+
flip: PropTypes__default.bool,
|
|
4948
|
+
usePopper: PropTypes__default.oneOf([true, false]),
|
|
4896
4949
|
|
|
4897
4950
|
/**
|
|
4898
4951
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
4899
4952
|
*/
|
|
4900
|
-
popperConfig: PropTypes__default
|
|
4953
|
+
popperConfig: PropTypes__default.object,
|
|
4901
4954
|
|
|
4902
4955
|
/**
|
|
4903
4956
|
* Override the default event used by RootCloseWrapper.
|
|
4904
4957
|
*/
|
|
4905
|
-
rootCloseEvent: PropTypes__default
|
|
4958
|
+
rootCloseEvent: PropTypes__default.string
|
|
4906
4959
|
};
|
|
4907
4960
|
var defaultProps$d = {
|
|
4908
4961
|
usePopper: true
|
|
@@ -4916,10 +4969,10 @@ var defaultProps$d = {
|
|
|
4916
4969
|
*/
|
|
4917
4970
|
function DropdownMenu(_ref2) {
|
|
4918
4971
|
var children = _ref2.children,
|
|
4919
|
-
options =
|
|
4972
|
+
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4920
4973
|
|
|
4921
4974
|
var args = useDropdownMenu(options);
|
|
4922
|
-
return /*#__PURE__*/React__default
|
|
4975
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4923
4976
|
}
|
|
4924
4977
|
|
|
4925
4978
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4968,7 +5021,7 @@ var propTypes$3 = {
|
|
|
4968
5021
|
* },
|
|
4969
5022
|
* }) => React.Element}
|
|
4970
5023
|
*/
|
|
4971
|
-
children: PropTypes__default
|
|
5024
|
+
children: PropTypes__default.func.isRequired
|
|
4972
5025
|
};
|
|
4973
5026
|
|
|
4974
5027
|
/**
|
|
@@ -4986,7 +5039,7 @@ function DropdownToggle(_ref2) {
|
|
|
4986
5039
|
show = _useDropdownToggle$.show,
|
|
4987
5040
|
toggle = _useDropdownToggle$.toggle;
|
|
4988
5041
|
|
|
4989
|
-
return /*#__PURE__*/React__default
|
|
5042
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4990
5043
|
show: show,
|
|
4991
5044
|
toggle: toggle,
|
|
4992
5045
|
props: props
|
|
@@ -5008,12 +5061,12 @@ var propTypes$4 = {
|
|
|
5008
5061
|
* },
|
|
5009
5062
|
* }) => React.Element}
|
|
5010
5063
|
*/
|
|
5011
|
-
children: PropTypes__default
|
|
5064
|
+
children: PropTypes__default.func.isRequired,
|
|
5012
5065
|
|
|
5013
5066
|
/**
|
|
5014
5067
|
* Determines the direction and location of the Menu in relation to it's Toggle.
|
|
5015
5068
|
*/
|
|
5016
|
-
drop: PropTypes__default
|
|
5069
|
+
drop: PropTypes__default.oneOf(['up', 'left', 'right', 'down']),
|
|
5017
5070
|
|
|
5018
5071
|
/**
|
|
5019
5072
|
* Controls the focus behavior for when the Dropdown is opened. Set to
|
|
@@ -5023,31 +5076,31 @@ var propTypes$4 = {
|
|
|
5023
5076
|
* The Default behavior is `false` **unless** the Menu has a `role="menu"`
|
|
5024
5077
|
* where it will default to `keyboard` to match the recommended [ARIA Authoring practices](https://www.w3.org/TR/wai-aria-practices-1.1/#menubutton).
|
|
5025
5078
|
*/
|
|
5026
|
-
focusFirstItemOnShow: PropTypes__default
|
|
5079
|
+
focusFirstItemOnShow: PropTypes__default.oneOf([false, true, 'keyboard']),
|
|
5027
5080
|
|
|
5028
5081
|
/**
|
|
5029
5082
|
* A css slector string that will return __focusable__ menu items.
|
|
5030
5083
|
* Selectors should be relative to the menu component:
|
|
5031
5084
|
* e.g. ` > li:not('.disabled')`
|
|
5032
5085
|
*/
|
|
5033
|
-
itemSelector: PropTypes__default
|
|
5086
|
+
itemSelector: PropTypes__default.string,
|
|
5034
5087
|
|
|
5035
5088
|
/**
|
|
5036
5089
|
* Align the menu to the 'end' side of the placement side of the Dropdown toggle. The default placement is `top-start` or `bottom-start`.
|
|
5037
5090
|
*/
|
|
5038
|
-
alignEnd: PropTypes__default
|
|
5091
|
+
alignEnd: PropTypes__default.bool,
|
|
5039
5092
|
|
|
5040
5093
|
/**
|
|
5041
5094
|
* Whether or not the Dropdown is visible.
|
|
5042
5095
|
*
|
|
5043
5096
|
* @controllable onToggle
|
|
5044
5097
|
*/
|
|
5045
|
-
show: PropTypes__default
|
|
5098
|
+
show: PropTypes__default.bool,
|
|
5046
5099
|
|
|
5047
5100
|
/**
|
|
5048
5101
|
* Sets the initial show position of the Dropdown.
|
|
5049
5102
|
*/
|
|
5050
|
-
defaultShow: PropTypes__default
|
|
5103
|
+
defaultShow: PropTypes__default.bool,
|
|
5051
5104
|
|
|
5052
5105
|
/**
|
|
5053
5106
|
* A callback fired when the Dropdown wishes to change visibility. Called with the requested
|
|
@@ -5062,7 +5115,7 @@ var propTypes$4 = {
|
|
|
5062
5115
|
*
|
|
5063
5116
|
* @controllable show
|
|
5064
5117
|
*/
|
|
5065
|
-
onToggle: PropTypes__default
|
|
5118
|
+
onToggle: PropTypes__default.func
|
|
5066
5119
|
};
|
|
5067
5120
|
|
|
5068
5121
|
/**
|
|
@@ -5201,7 +5254,7 @@ function Dropdown(_ref) {
|
|
|
5201
5254
|
}
|
|
5202
5255
|
};
|
|
5203
5256
|
|
|
5204
|
-
return /*#__PURE__*/React__default
|
|
5257
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5205
5258
|
value: context
|
|
5206
5259
|
}, children({
|
|
5207
5260
|
props: {
|
|
@@ -5215,14 +5268,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5215
5268
|
Dropdown.Menu = DropdownMenu;
|
|
5216
5269
|
Dropdown.Toggle = DropdownToggle;
|
|
5217
5270
|
|
|
5218
|
-
var NavContext = React__default
|
|
5271
|
+
var NavContext = React__default.createContext(null);
|
|
5219
5272
|
NavContext.displayName = 'NavContext';
|
|
5220
5273
|
|
|
5221
5274
|
var defaultProps$e = {
|
|
5222
5275
|
as: SafeAnchor,
|
|
5223
5276
|
disabled: false
|
|
5224
5277
|
};
|
|
5225
|
-
var DropdownItem = React__default
|
|
5278
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5226
5279
|
var bsPrefix = _ref.bsPrefix,
|
|
5227
5280
|
className = _ref.className,
|
|
5228
5281
|
children = _ref.children,
|
|
@@ -5233,7 +5286,7 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5233
5286
|
onSelect = _ref.onSelect,
|
|
5234
5287
|
propActive = _ref.active,
|
|
5235
5288
|
Component = _ref.as,
|
|
5236
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5289
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5237
5290
|
|
|
5238
5291
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5239
5292
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
@@ -5257,11 +5310,11 @@ var DropdownItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5257
5310
|
/*#__PURE__*/
|
|
5258
5311
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5259
5312
|
// @ts-ignore
|
|
5260
|
-
React__default
|
|
5313
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5261
5314
|
ref: ref,
|
|
5262
5315
|
href: href,
|
|
5263
5316
|
disabled: disabled,
|
|
5264
|
-
className: index.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5317
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5265
5318
|
onClick: handleClick
|
|
5266
5319
|
}), children)
|
|
5267
5320
|
);
|
|
@@ -5306,7 +5359,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5306
5359
|
}, [refA, refB]);
|
|
5307
5360
|
}
|
|
5308
5361
|
|
|
5309
|
-
var context$2 = React__default
|
|
5362
|
+
var context$2 = React__default.createContext(null);
|
|
5310
5363
|
context$2.displayName = 'NavbarContext';
|
|
5311
5364
|
|
|
5312
5365
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5418,14 +5471,14 @@ function usePopperMarginModifiers() {
|
|
|
5418
5471
|
return [callback, [offset, popoverArrowMargins]];
|
|
5419
5472
|
}
|
|
5420
5473
|
|
|
5421
|
-
var alignDirection = PropTypes__default
|
|
5422
|
-
var alignPropType = PropTypes__default
|
|
5474
|
+
var alignDirection = PropTypes__default.oneOf(['left', 'right']);
|
|
5475
|
+
var alignPropType = PropTypes__default.oneOfType([alignDirection, PropTypes__default.shape({
|
|
5423
5476
|
sm: alignDirection
|
|
5424
|
-
}), PropTypes__default
|
|
5477
|
+
}), PropTypes__default.shape({
|
|
5425
5478
|
md: alignDirection
|
|
5426
|
-
}), PropTypes__default
|
|
5479
|
+
}), PropTypes__default.shape({
|
|
5427
5480
|
lg: alignDirection
|
|
5428
|
-
}), PropTypes__default
|
|
5481
|
+
}), PropTypes__default.shape({
|
|
5429
5482
|
xl: alignDirection
|
|
5430
5483
|
})]);
|
|
5431
5484
|
var defaultProps$f = {
|
|
@@ -5434,7 +5487,7 @@ var defaultProps$f = {
|
|
|
5434
5487
|
flip: true
|
|
5435
5488
|
}; // TODO: remove this hack
|
|
5436
5489
|
|
|
5437
|
-
var DropdownMenu$1 = React__default
|
|
5490
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5438
5491
|
var bsPrefix = _ref.bsPrefix,
|
|
5439
5492
|
className = _ref.className,
|
|
5440
5493
|
align = _ref.align,
|
|
@@ -5446,7 +5499,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5446
5499
|
_ref$as = _ref.as,
|
|
5447
5500
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5448
5501
|
popperConfig = _ref.popperConfig,
|
|
5449
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5502
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5450
5503
|
|
|
5451
5504
|
var isNavbar = React.useContext(context$2);
|
|
5452
5505
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5482,7 +5535,7 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5482
5535
|
show: showProps,
|
|
5483
5536
|
alignEnd: alignRight,
|
|
5484
5537
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5485
|
-
popperConfig: index._extends({}, popperConfig, {
|
|
5538
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5486
5539
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5487
5540
|
})
|
|
5488
5541
|
}),
|
|
@@ -5505,12 +5558,12 @@ var DropdownMenu$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5505
5558
|
if (placement) {
|
|
5506
5559
|
// we don't need the default popper style,
|
|
5507
5560
|
// menus are display: none when not shown.
|
|
5508
|
-
props.style = index._extends({}, props.style, {}, menuProps.style);
|
|
5561
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5509
5562
|
props['x-placement'] = placement;
|
|
5510
5563
|
}
|
|
5511
5564
|
|
|
5512
|
-
return /*#__PURE__*/React__default
|
|
5513
|
-
className: index.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5565
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, menuProps, {
|
|
5566
|
+
className: index$5.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5514
5567
|
}));
|
|
5515
5568
|
});
|
|
5516
5569
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5543,14 +5596,14 @@ module.exports = exports['default'];
|
|
|
5543
5596
|
|
|
5544
5597
|
_commonjsHelpers.unwrapExports(isRequiredForA11y_1);
|
|
5545
5598
|
|
|
5546
|
-
var DropdownToggle$1 = React__default
|
|
5599
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5547
5600
|
var bsPrefix = _ref.bsPrefix,
|
|
5548
5601
|
split = _ref.split,
|
|
5549
5602
|
className = _ref.className,
|
|
5550
5603
|
childBsPrefix = _ref.childBsPrefix,
|
|
5551
5604
|
_ref$as = _ref.as,
|
|
5552
5605
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5553
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5606
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5554
5607
|
|
|
5555
5608
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5556
5609
|
|
|
@@ -5565,9 +5618,9 @@ var DropdownToggle$1 = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
5565
5618
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5566
5619
|
// underlying component, to allow it to render size and style variants.
|
|
5567
5620
|
|
|
5568
|
-
return /*#__PURE__*/React__default
|
|
5621
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5569
5622
|
onClick: toggle,
|
|
5570
|
-
className: index.classnames(className, prefix, split && prefix + "-split")
|
|
5623
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5571
5624
|
}, toggleProps, props));
|
|
5572
5625
|
});
|
|
5573
5626
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
@@ -5588,7 +5641,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5588
5641
|
var defaultProps$g = {
|
|
5589
5642
|
navbar: false
|
|
5590
5643
|
};
|
|
5591
|
-
var Dropdown$1 = React__default
|
|
5644
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5592
5645
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5593
5646
|
show: 'onToggle'
|
|
5594
5647
|
}),
|
|
@@ -5603,7 +5656,7 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5603
5656
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5604
5657
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5605
5658
|
_4 = _useUncontrolled.navbar,
|
|
5606
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5659
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5607
5660
|
|
|
5608
5661
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5609
5662
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5625,9 +5678,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5625
5678
|
if (onSelect) onSelect(key, event);
|
|
5626
5679
|
handleToggle(false, event, 'select');
|
|
5627
5680
|
});
|
|
5628
|
-
return /*#__PURE__*/React__default
|
|
5681
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5629
5682
|
value: handleSelect
|
|
5630
|
-
}, /*#__PURE__*/React__default
|
|
5683
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5631
5684
|
drop: drop,
|
|
5632
5685
|
show: show,
|
|
5633
5686
|
alignEnd: alignRight,
|
|
@@ -5636,9 +5689,9 @@ var Dropdown$1 = React__default['default'].forwardRef(function (pProps, ref) {
|
|
|
5636
5689
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5637
5690
|
}, function (_ref) {
|
|
5638
5691
|
var dropdownProps = _ref.props;
|
|
5639
|
-
return /*#__PURE__*/React__default
|
|
5692
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5640
5693
|
ref: ref,
|
|
5641
|
-
className: index.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5694
|
+
className: index$5.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5642
5695
|
}));
|
|
5643
5696
|
}));
|
|
5644
5697
|
});
|
|
@@ -5657,19 +5710,19 @@ var propTypes$5 = {
|
|
|
5657
5710
|
* @type {string|number}
|
|
5658
5711
|
* @required
|
|
5659
5712
|
*/
|
|
5660
|
-
id: PropTypes__default
|
|
5713
|
+
id: PropTypes__default.any,
|
|
5661
5714
|
|
|
5662
5715
|
/** An `href` passed to the Toggle component */
|
|
5663
|
-
href: PropTypes__default
|
|
5716
|
+
href: PropTypes__default.string,
|
|
5664
5717
|
|
|
5665
5718
|
/** An `onClick` handler passed to the Toggle component */
|
|
5666
|
-
onClick: PropTypes__default
|
|
5719
|
+
onClick: PropTypes__default.func,
|
|
5667
5720
|
|
|
5668
5721
|
/** The content of the non-toggle Button. */
|
|
5669
|
-
title: PropTypes__default
|
|
5722
|
+
title: PropTypes__default.node.isRequired,
|
|
5670
5723
|
|
|
5671
5724
|
/** Disables both Buttons */
|
|
5672
|
-
disabled: PropTypes__default
|
|
5725
|
+
disabled: PropTypes__default.bool,
|
|
5673
5726
|
|
|
5674
5727
|
/**
|
|
5675
5728
|
* Aligns the dropdown menu responsively.
|
|
@@ -5681,26 +5734,26 @@ var propTypes$5 = {
|
|
|
5681
5734
|
menuAlign: alignPropType,
|
|
5682
5735
|
|
|
5683
5736
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
5684
|
-
menuRole: PropTypes__default
|
|
5737
|
+
menuRole: PropTypes__default.string,
|
|
5685
5738
|
|
|
5686
5739
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
5687
|
-
renderMenuOnMount: PropTypes__default
|
|
5740
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
5688
5741
|
|
|
5689
5742
|
/**
|
|
5690
5743
|
* Which event when fired outside the component will cause it to be closed.
|
|
5691
5744
|
*
|
|
5692
5745
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
5693
5746
|
*/
|
|
5694
|
-
rootCloseEvent: PropTypes__default
|
|
5747
|
+
rootCloseEvent: PropTypes__default.string,
|
|
5695
5748
|
|
|
5696
5749
|
/** @ignore */
|
|
5697
|
-
bsPrefix: PropTypes__default
|
|
5750
|
+
bsPrefix: PropTypes__default.string,
|
|
5698
5751
|
|
|
5699
5752
|
/** @ignore */
|
|
5700
|
-
variant: PropTypes__default
|
|
5753
|
+
variant: PropTypes__default.string,
|
|
5701
5754
|
|
|
5702
5755
|
/** @ignore */
|
|
5703
|
-
size: PropTypes__default
|
|
5756
|
+
size: PropTypes__default.string
|
|
5704
5757
|
};
|
|
5705
5758
|
/**
|
|
5706
5759
|
* A convenience component for simple or general use dropdowns. Renders a `Button` toggle and all `children`
|
|
@@ -5711,7 +5764,7 @@ var propTypes$5 = {
|
|
|
5711
5764
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5712
5765
|
*/
|
|
5713
5766
|
|
|
5714
|
-
var DropdownButton = React__default
|
|
5767
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5715
5768
|
var title = _ref.title,
|
|
5716
5769
|
children = _ref.children,
|
|
5717
5770
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5724,18 +5777,18 @@ var DropdownButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5724
5777
|
disabled = _ref.disabled,
|
|
5725
5778
|
href = _ref.href,
|
|
5726
5779
|
id = _ref.id,
|
|
5727
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5780
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5728
5781
|
|
|
5729
|
-
return /*#__PURE__*/React__default
|
|
5782
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5730
5783
|
ref: ref
|
|
5731
|
-
}, props), /*#__PURE__*/React__default
|
|
5784
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5732
5785
|
id: id,
|
|
5733
5786
|
href: href,
|
|
5734
5787
|
size: size,
|
|
5735
5788
|
variant: variant,
|
|
5736
5789
|
disabled: disabled,
|
|
5737
5790
|
childBsPrefix: bsPrefix
|
|
5738
|
-
}, title), /*#__PURE__*/React__default
|
|
5791
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5739
5792
|
align: menuAlign,
|
|
5740
5793
|
role: menuRole,
|
|
5741
5794
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5844,13 +5897,13 @@ var propTypes$6 = {
|
|
|
5844
5897
|
*
|
|
5845
5898
|
* @type {('valid'|'invalid')}
|
|
5846
5899
|
*/
|
|
5847
|
-
type: PropTypes__default
|
|
5900
|
+
type: PropTypes__default.string,
|
|
5848
5901
|
|
|
5849
5902
|
/** Display feedback as a tooltip. */
|
|
5850
|
-
tooltip: PropTypes__default
|
|
5851
|
-
as: PropTypes__default
|
|
5903
|
+
tooltip: PropTypes__default.bool,
|
|
5904
|
+
as: PropTypes__default.elementType
|
|
5852
5905
|
};
|
|
5853
|
-
var Feedback = React__default
|
|
5906
|
+
var Feedback = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5854
5907
|
function (_ref, ref) {
|
|
5855
5908
|
var _ref$as = _ref.as,
|
|
5856
5909
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5859,21 +5912,21 @@ function (_ref, ref) {
|
|
|
5859
5912
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5860
5913
|
_ref$tooltip = _ref.tooltip,
|
|
5861
5914
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5862
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5915
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5863
5916
|
|
|
5864
|
-
return /*#__PURE__*/React__default
|
|
5917
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5865
5918
|
ref: ref,
|
|
5866
|
-
className: index.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5919
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5867
5920
|
}));
|
|
5868
5921
|
});
|
|
5869
5922
|
Feedback.displayName = 'Feedback';
|
|
5870
5923
|
Feedback.propTypes = propTypes$6;
|
|
5871
5924
|
|
|
5872
|
-
var FormContext = React__default
|
|
5925
|
+
var FormContext = React__default.createContext({
|
|
5873
5926
|
controlId: undefined
|
|
5874
5927
|
});
|
|
5875
5928
|
|
|
5876
|
-
var FormCheckInput = React__default
|
|
5929
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5877
5930
|
var id = _ref.id,
|
|
5878
5931
|
bsPrefix = _ref.bsPrefix,
|
|
5879
5932
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5887,7 +5940,7 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5887
5940
|
isStatic = _ref.isStatic,
|
|
5888
5941
|
_ref$as = _ref.as,
|
|
5889
5942
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5890
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5943
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5891
5944
|
|
|
5892
5945
|
var _useContext = React.useContext(FormContext),
|
|
5893
5946
|
controlId = _useContext.controlId,
|
|
@@ -5898,21 +5951,21 @@ var FormCheckInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5898
5951
|
defaultPrefix = _ref2[1];
|
|
5899
5952
|
|
|
5900
5953
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5901
|
-
return /*#__PURE__*/React__default
|
|
5954
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5902
5955
|
ref: ref,
|
|
5903
5956
|
type: type,
|
|
5904
5957
|
id: id || controlId,
|
|
5905
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5958
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5906
5959
|
}));
|
|
5907
5960
|
});
|
|
5908
5961
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5909
5962
|
|
|
5910
|
-
var FormCheckLabel = React__default
|
|
5963
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5911
5964
|
var bsPrefix = _ref.bsPrefix,
|
|
5912
5965
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5913
5966
|
className = _ref.className,
|
|
5914
5967
|
htmlFor = _ref.htmlFor,
|
|
5915
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5968
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5916
5969
|
|
|
5917
5970
|
var _useContext = React.useContext(FormContext),
|
|
5918
5971
|
controlId = _useContext.controlId,
|
|
@@ -5923,15 +5976,15 @@ var FormCheckLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5923
5976
|
defaultPrefix = _ref2[1];
|
|
5924
5977
|
|
|
5925
5978
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5926
|
-
return /*#__PURE__*/React__default
|
|
5979
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5927
5980
|
ref: ref,
|
|
5928
5981
|
htmlFor: htmlFor || controlId,
|
|
5929
|
-
className: index.classnames(className, bsPrefix)
|
|
5982
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5930
5983
|
}));
|
|
5931
5984
|
});
|
|
5932
5985
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5933
5986
|
|
|
5934
|
-
var FormCheck = React__default
|
|
5987
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5935
5988
|
var id = _ref.id,
|
|
5936
5989
|
bsPrefix = _ref.bsPrefix,
|
|
5937
5990
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5957,7 +6010,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5957
6010
|
propCustom = _ref.custom,
|
|
5958
6011
|
_ref$as = _ref.as,
|
|
5959
6012
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5960
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6013
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5961
6014
|
|
|
5962
6015
|
var custom = type === 'switch' ? true : propCustom;
|
|
5963
6016
|
|
|
@@ -5977,7 +6030,7 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5977
6030
|
};
|
|
5978
6031
|
}, [controlId, custom, id]);
|
|
5979
6032
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
5980
|
-
var input = /*#__PURE__*/React__default
|
|
6033
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
5981
6034
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5982
6035
|
ref: ref,
|
|
5983
6036
|
isValid: isValid,
|
|
@@ -5986,14 +6039,14 @@ var FormCheck = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
5986
6039
|
disabled: disabled,
|
|
5987
6040
|
as: as
|
|
5988
6041
|
}));
|
|
5989
|
-
return /*#__PURE__*/React__default
|
|
6042
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5990
6043
|
value: innerFormContext
|
|
5991
|
-
}, /*#__PURE__*/React__default
|
|
6044
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5992
6045
|
style: style,
|
|
5993
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5994
|
-
}, children || /*#__PURE__*/React__default
|
|
6046
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6047
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5995
6048
|
title: title
|
|
5996
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default
|
|
6049
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5997
6050
|
type: isValid ? 'valid' : 'invalid',
|
|
5998
6051
|
tooltip: feedbackTooltip
|
|
5999
6052
|
}, feedback))));
|
|
@@ -6002,7 +6055,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6002
6055
|
FormCheck.Input = FormCheckInput;
|
|
6003
6056
|
FormCheck.Label = FormCheckLabel;
|
|
6004
6057
|
|
|
6005
|
-
var FormFileInput = React__default
|
|
6058
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6006
6059
|
var id = _ref.id,
|
|
6007
6060
|
bsPrefix = _ref.bsPrefix,
|
|
6008
6061
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6012,7 +6065,7 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6012
6065
|
lang = _ref.lang,
|
|
6013
6066
|
_ref$as = _ref.as,
|
|
6014
6067
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6015
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6068
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6016
6069
|
|
|
6017
6070
|
var _useContext = React.useContext(FormContext),
|
|
6018
6071
|
controlId = _useContext.controlId,
|
|
@@ -6025,22 +6078,22 @@ var FormFileInput = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6025
6078
|
defaultPrefix = _ref2[1];
|
|
6026
6079
|
|
|
6027
6080
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6028
|
-
return /*#__PURE__*/React__default
|
|
6081
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6029
6082
|
ref: ref,
|
|
6030
6083
|
id: id || controlId,
|
|
6031
6084
|
type: type,
|
|
6032
6085
|
lang: lang,
|
|
6033
|
-
className: index.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6086
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6034
6087
|
}));
|
|
6035
6088
|
});
|
|
6036
6089
|
FormFileInput.displayName = 'FormFileInput';
|
|
6037
6090
|
|
|
6038
|
-
var FormFileLabel = React__default
|
|
6091
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6039
6092
|
var bsPrefix = _ref.bsPrefix,
|
|
6040
6093
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6041
6094
|
className = _ref.className,
|
|
6042
6095
|
htmlFor = _ref.htmlFor,
|
|
6043
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6096
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6044
6097
|
|
|
6045
6098
|
var _useContext = React.useContext(FormContext),
|
|
6046
6099
|
controlId = _useContext.controlId,
|
|
@@ -6051,16 +6104,16 @@ var FormFileLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6051
6104
|
defaultPrefix = _ref2[1];
|
|
6052
6105
|
|
|
6053
6106
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6054
|
-
return /*#__PURE__*/React__default
|
|
6107
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6055
6108
|
ref: ref,
|
|
6056
6109
|
htmlFor: htmlFor || controlId,
|
|
6057
|
-
className: index.classnames(className, bsPrefix),
|
|
6110
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6058
6111
|
"data-browse": props['data-browse']
|
|
6059
6112
|
}));
|
|
6060
6113
|
});
|
|
6061
6114
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6062
6115
|
|
|
6063
|
-
var FormFile = React__default
|
|
6116
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6064
6117
|
var id = _ref.id,
|
|
6065
6118
|
bsPrefix = _ref.bsPrefix,
|
|
6066
6119
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6084,7 +6137,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6084
6137
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6085
6138
|
_ref$inputAs = _ref.inputAs,
|
|
6086
6139
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6087
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6140
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6088
6141
|
|
|
6089
6142
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6090
6143
|
prefix = _ref2[0],
|
|
@@ -6103,7 +6156,7 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6103
6156
|
};
|
|
6104
6157
|
}, [controlId, custom, id]);
|
|
6105
6158
|
var hasLabel = label != null && label !== false && !children;
|
|
6106
|
-
var input = /*#__PURE__*/React__default
|
|
6159
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6107
6160
|
ref: ref,
|
|
6108
6161
|
isValid: isValid,
|
|
6109
6162
|
isInvalid: isInvalid,
|
|
@@ -6111,14 +6164,14 @@ var FormFile = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6111
6164
|
as: inputAs,
|
|
6112
6165
|
lang: lang
|
|
6113
6166
|
}));
|
|
6114
|
-
return /*#__PURE__*/React__default
|
|
6167
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6115
6168
|
value: innerFormContext
|
|
6116
|
-
}, /*#__PURE__*/React__default
|
|
6169
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6117
6170
|
style: style,
|
|
6118
|
-
className: index.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6119
|
-
}, children || /*#__PURE__*/React__default
|
|
6171
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6172
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6120
6173
|
"data-browse": dataBrowse
|
|
6121
|
-
}, label)) : /*#__PURE__*/React__default
|
|
6174
|
+
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
6122
6175
|
type: isValid ? 'valid' : 'invalid',
|
|
6123
6176
|
tooltip: feedbackTooltip
|
|
6124
6177
|
}, feedback))));
|
|
@@ -6127,7 +6180,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6127
6180
|
FormFile.Input = FormFileInput;
|
|
6128
6181
|
FormFile.Label = FormFileLabel;
|
|
6129
6182
|
|
|
6130
|
-
var FormControl = React__default
|
|
6183
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6131
6184
|
var bsPrefix = _ref.bsPrefix,
|
|
6132
6185
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6133
6186
|
type = _ref.type,
|
|
@@ -6144,7 +6197,7 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6144
6197
|
custom = _ref.custom,
|
|
6145
6198
|
_ref$as = _ref.as,
|
|
6146
6199
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6147
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6200
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6148
6201
|
|
|
6149
6202
|
var _useContext = React.useContext(FormContext),
|
|
6150
6203
|
controlId = _useContext.controlId;
|
|
@@ -6179,13 +6232,13 @@ var FormControl = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6179
6232
|
}
|
|
6180
6233
|
|
|
6181
6234
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6182
|
-
return /*#__PURE__*/React__default
|
|
6235
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6183
6236
|
type: type,
|
|
6184
6237
|
size: htmlSize,
|
|
6185
6238
|
ref: ref,
|
|
6186
6239
|
readOnly: readOnly,
|
|
6187
6240
|
id: id || controlId,
|
|
6188
|
-
className: index.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6241
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6189
6242
|
}));
|
|
6190
6243
|
});
|
|
6191
6244
|
FormControl.displayName = 'FormControl';
|
|
@@ -6193,14 +6246,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6193
6246
|
Feedback: Feedback
|
|
6194
6247
|
});
|
|
6195
6248
|
|
|
6196
|
-
var FormGroup = React__default
|
|
6249
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6197
6250
|
var bsPrefix = _ref.bsPrefix,
|
|
6198
6251
|
className = _ref.className,
|
|
6199
6252
|
children = _ref.children,
|
|
6200
6253
|
controlId = _ref.controlId,
|
|
6201
6254
|
_ref$as = _ref.as,
|
|
6202
6255
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6203
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6256
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6204
6257
|
|
|
6205
6258
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6206
6259
|
var context = React.useMemo(function () {
|
|
@@ -6208,11 +6261,11 @@ var FormGroup = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6208
6261
|
controlId: controlId
|
|
6209
6262
|
};
|
|
6210
6263
|
}, [controlId]);
|
|
6211
|
-
return /*#__PURE__*/React__default
|
|
6264
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6212
6265
|
value: context
|
|
6213
|
-
}, /*#__PURE__*/React__default
|
|
6266
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6214
6267
|
ref: ref,
|
|
6215
|
-
className: index.classnames(className, bsPrefix)
|
|
6268
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6216
6269
|
}), children));
|
|
6217
6270
|
});
|
|
6218
6271
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6221,7 +6274,7 @@ var defaultProps$h = {
|
|
|
6221
6274
|
column: false,
|
|
6222
6275
|
srOnly: false
|
|
6223
6276
|
};
|
|
6224
|
-
var FormLabel = React__default
|
|
6277
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6225
6278
|
var _ref$as = _ref.as,
|
|
6226
6279
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6227
6280
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6229,7 +6282,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6229
6282
|
srOnly = _ref.srOnly,
|
|
6230
6283
|
className = _ref.className,
|
|
6231
6284
|
htmlFor = _ref.htmlFor,
|
|
6232
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6285
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6233
6286
|
|
|
6234
6287
|
var _useContext = React.useContext(FormContext),
|
|
6235
6288
|
controlId = _useContext.controlId;
|
|
@@ -6237,10 +6290,10 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6237
6290
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6238
6291
|
var columnClass = 'col-form-label';
|
|
6239
6292
|
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6240
|
-
var classes = index.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6293
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6241
6294
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6242
6295
|
htmlFor = htmlFor || controlId;
|
|
6243
|
-
if (column) return /*#__PURE__*/React__default
|
|
6296
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6244
6297
|
as: "label",
|
|
6245
6298
|
className: classes,
|
|
6246
6299
|
htmlFor: htmlFor
|
|
@@ -6248,7 +6301,7 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6248
6301
|
return (
|
|
6249
6302
|
/*#__PURE__*/
|
|
6250
6303
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6251
|
-
React__default
|
|
6304
|
+
React__default.createElement(Component, index$5._extends({
|
|
6252
6305
|
ref: ref,
|
|
6253
6306
|
className: classes,
|
|
6254
6307
|
htmlFor: htmlFor
|
|
@@ -6258,25 +6311,25 @@ var FormLabel = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6258
6311
|
FormLabel.displayName = 'FormLabel';
|
|
6259
6312
|
FormLabel.defaultProps = defaultProps$h;
|
|
6260
6313
|
|
|
6261
|
-
var FormText = React__default
|
|
6314
|
+
var FormText = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6262
6315
|
function (_ref, ref) {
|
|
6263
6316
|
var bsPrefix = _ref.bsPrefix,
|
|
6264
6317
|
className = _ref.className,
|
|
6265
6318
|
_ref$as = _ref.as,
|
|
6266
6319
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6267
6320
|
muted = _ref.muted,
|
|
6268
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6321
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6269
6322
|
|
|
6270
6323
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6271
|
-
return /*#__PURE__*/React__default
|
|
6324
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6272
6325
|
ref: ref,
|
|
6273
|
-
className: index.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6326
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6274
6327
|
}));
|
|
6275
6328
|
});
|
|
6276
6329
|
FormText.displayName = 'FormText';
|
|
6277
6330
|
|
|
6278
|
-
var Switch = React__default
|
|
6279
|
-
return /*#__PURE__*/React__default
|
|
6331
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6332
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6280
6333
|
ref: ref,
|
|
6281
6334
|
type: "switch"
|
|
6282
6335
|
}));
|
|
@@ -6289,19 +6342,19 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6289
6342
|
var defaultProps$i = {
|
|
6290
6343
|
inline: false
|
|
6291
6344
|
};
|
|
6292
|
-
var FormImpl = React__default
|
|
6345
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6293
6346
|
var bsPrefix = _ref.bsPrefix,
|
|
6294
6347
|
inline = _ref.inline,
|
|
6295
6348
|
className = _ref.className,
|
|
6296
6349
|
validated = _ref.validated,
|
|
6297
6350
|
_ref$as = _ref.as,
|
|
6298
6351
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6299
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6352
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6300
6353
|
|
|
6301
6354
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6302
|
-
return /*#__PURE__*/React__default
|
|
6355
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6303
6356
|
ref: ref,
|
|
6304
|
-
className: index.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6357
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6305
6358
|
}));
|
|
6306
6359
|
});
|
|
6307
6360
|
FormImpl.displayName = 'Form';
|
|
@@ -6318,20 +6371,20 @@ FormImpl.Text = FormText;
|
|
|
6318
6371
|
var defaultProps$j = {
|
|
6319
6372
|
fluid: false
|
|
6320
6373
|
};
|
|
6321
|
-
var Container = React__default
|
|
6374
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6322
6375
|
var bsPrefix = _ref.bsPrefix,
|
|
6323
6376
|
fluid = _ref.fluid,
|
|
6324
6377
|
_ref$as = _ref.as,
|
|
6325
6378
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6326
6379
|
className = _ref.className,
|
|
6327
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6380
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6328
6381
|
|
|
6329
6382
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6330
6383
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6331
|
-
return /*#__PURE__*/React__default
|
|
6384
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6332
6385
|
ref: ref
|
|
6333
6386
|
}, props, {
|
|
6334
|
-
className: index.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6387
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6335
6388
|
}));
|
|
6336
6389
|
});
|
|
6337
6390
|
Container.displayName = 'Container';
|
|
@@ -6341,27 +6394,27 @@ var propTypes$7 = {
|
|
|
6341
6394
|
/**
|
|
6342
6395
|
* @default 'img'
|
|
6343
6396
|
*/
|
|
6344
|
-
bsPrefix: PropTypes__default
|
|
6397
|
+
bsPrefix: PropTypes__default.string,
|
|
6345
6398
|
|
|
6346
6399
|
/**
|
|
6347
6400
|
* Sets image as fluid image.
|
|
6348
6401
|
*/
|
|
6349
|
-
fluid: PropTypes__default
|
|
6402
|
+
fluid: PropTypes__default.bool,
|
|
6350
6403
|
|
|
6351
6404
|
/**
|
|
6352
6405
|
* Sets image shape as rounded.
|
|
6353
6406
|
*/
|
|
6354
|
-
rounded: PropTypes__default
|
|
6407
|
+
rounded: PropTypes__default.bool,
|
|
6355
6408
|
|
|
6356
6409
|
/**
|
|
6357
6410
|
* Sets image shape as circle.
|
|
6358
6411
|
*/
|
|
6359
|
-
roundedCircle: PropTypes__default
|
|
6412
|
+
roundedCircle: PropTypes__default.bool,
|
|
6360
6413
|
|
|
6361
6414
|
/**
|
|
6362
6415
|
* Sets image shape as thumbnail.
|
|
6363
6416
|
*/
|
|
6364
|
-
thumbnail: PropTypes__default
|
|
6417
|
+
thumbnail: PropTypes__default.bool
|
|
6365
6418
|
};
|
|
6366
6419
|
var defaultProps$k = {
|
|
6367
6420
|
fluid: false,
|
|
@@ -6369,22 +6422,22 @@ var defaultProps$k = {
|
|
|
6369
6422
|
roundedCircle: false,
|
|
6370
6423
|
thumbnail: false
|
|
6371
6424
|
};
|
|
6372
|
-
var Image = React__default
|
|
6425
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6373
6426
|
var bsPrefix = _ref.bsPrefix,
|
|
6374
6427
|
className = _ref.className,
|
|
6375
6428
|
fluid = _ref.fluid,
|
|
6376
6429
|
rounded = _ref.rounded,
|
|
6377
6430
|
roundedCircle = _ref.roundedCircle,
|
|
6378
6431
|
thumbnail = _ref.thumbnail,
|
|
6379
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6432
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6380
6433
|
|
|
6381
6434
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6382
|
-
var classes = index.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6383
|
-
return /*#__PURE__*/React__default
|
|
6435
|
+
var classes = index$5.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6436
|
+
return /*#__PURE__*/React__default.createElement("img", index$5._extends({
|
|
6384
6437
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6385
6438
|
ref: ref
|
|
6386
6439
|
}, props, {
|
|
6387
|
-
className: index.classnames(className, classes)
|
|
6440
|
+
className: index$5.classnames(className, classes)
|
|
6388
6441
|
}));
|
|
6389
6442
|
});
|
|
6390
6443
|
Image.displayName = 'Image';
|
|
@@ -6393,14 +6446,14 @@ Image.defaultProps = defaultProps$k;
|
|
|
6393
6446
|
var defaultProps$l = {
|
|
6394
6447
|
fluid: true
|
|
6395
6448
|
};
|
|
6396
|
-
var FigureImage = React__default
|
|
6449
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6397
6450
|
var className = _ref.className,
|
|
6398
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6451
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6399
6452
|
|
|
6400
|
-
return /*#__PURE__*/React__default
|
|
6453
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6401
6454
|
ref: ref
|
|
6402
6455
|
}, props, {
|
|
6403
|
-
className: index.classnames(className, 'figure-img')
|
|
6456
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6404
6457
|
}));
|
|
6405
6458
|
});
|
|
6406
6459
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6424,13 +6477,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6424
6477
|
});
|
|
6425
6478
|
|
|
6426
6479
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6427
|
-
return /*#__PURE__*/React__default
|
|
6480
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6428
6481
|
type: "checkbox"
|
|
6429
6482
|
}, props)));
|
|
6430
6483
|
};
|
|
6431
6484
|
|
|
6432
6485
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6433
|
-
return /*#__PURE__*/React__default
|
|
6486
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6434
6487
|
type: "radio"
|
|
6435
6488
|
}, props)));
|
|
6436
6489
|
};
|
|
@@ -6443,24 +6496,24 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6443
6496
|
* @property {InputGroupRadio} Radio
|
|
6444
6497
|
* @property {InputGroupCheckbox} Checkbox
|
|
6445
6498
|
*/
|
|
6446
|
-
var InputGroup = React__default
|
|
6499
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6447
6500
|
var bsPrefix = _ref.bsPrefix,
|
|
6448
6501
|
size = _ref.size,
|
|
6449
6502
|
className = _ref.className,
|
|
6450
6503
|
_ref$as = _ref.as,
|
|
6451
6504
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6452
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6505
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6453
6506
|
|
|
6454
6507
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6455
|
-
return /*#__PURE__*/React__default
|
|
6508
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6456
6509
|
ref: ref
|
|
6457
6510
|
}, props, {
|
|
6458
|
-
className: index.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6511
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6459
6512
|
}));
|
|
6460
6513
|
});
|
|
6461
6514
|
InputGroup.displayName = 'InputGroup';
|
|
6462
6515
|
|
|
6463
|
-
var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
6516
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6464
6517
|
Text: InputGroupText,
|
|
6465
6518
|
Radio: InputGroupRadio,
|
|
6466
6519
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6471,7 +6524,7 @@ var InputGroupWithExtras = index._extends({}, InputGroup, {
|
|
|
6471
6524
|
var defaultProps$m = {
|
|
6472
6525
|
fluid: false
|
|
6473
6526
|
};
|
|
6474
|
-
var Jumbotron = React__default
|
|
6527
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6475
6528
|
var _classes;
|
|
6476
6529
|
|
|
6477
6530
|
var _ref$as = _ref.as,
|
|
@@ -6479,32 +6532,32 @@ var Jumbotron = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6479
6532
|
className = _ref.className,
|
|
6480
6533
|
fluid = _ref.fluid,
|
|
6481
6534
|
bsPrefix = _ref.bsPrefix,
|
|
6482
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6535
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6483
6536
|
|
|
6484
6537
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6485
6538
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6486
|
-
return /*#__PURE__*/React__default
|
|
6539
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6487
6540
|
ref: ref
|
|
6488
6541
|
}, props, {
|
|
6489
|
-
className: index.classnames(className, classes)
|
|
6542
|
+
className: index$5.classnames(className, classes)
|
|
6490
6543
|
}));
|
|
6491
6544
|
});
|
|
6492
6545
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6493
6546
|
Jumbotron.displayName = 'Jumbotron';
|
|
6494
6547
|
|
|
6495
|
-
var TabContext = React__default
|
|
6548
|
+
var TabContext = React__default.createContext(null);
|
|
6496
6549
|
|
|
6497
6550
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6498
6551
|
var noop$4 = function noop() {};
|
|
6499
6552
|
|
|
6500
|
-
var AbstractNav = React__default
|
|
6553
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6501
6554
|
var _ref$as = _ref.as,
|
|
6502
6555
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6503
6556
|
onSelect = _ref.onSelect,
|
|
6504
6557
|
activeKey = _ref.activeKey,
|
|
6505
6558
|
role = _ref.role,
|
|
6506
6559
|
onKeyDown = _ref.onKeyDown,
|
|
6507
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6560
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6508
6561
|
|
|
6509
6562
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6510
6563
|
// and don't want to reset the set in the effect
|
|
@@ -6578,9 +6631,9 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6578
6631
|
needsRefocusRef.current = false;
|
|
6579
6632
|
});
|
|
6580
6633
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6581
|
-
return /*#__PURE__*/React__default
|
|
6634
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6582
6635
|
value: handleSelect
|
|
6583
|
-
}, /*#__PURE__*/React__default
|
|
6636
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6584
6637
|
value: {
|
|
6585
6638
|
role: role,
|
|
6586
6639
|
// used by NavLink to determine it's role
|
|
@@ -6588,7 +6641,7 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6588
6641
|
getControlledId: getControlledId || noop$4,
|
|
6589
6642
|
getControllerId: getControllerId || noop$4
|
|
6590
6643
|
}
|
|
6591
|
-
}, /*#__PURE__*/React__default
|
|
6644
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6592
6645
|
onKeyDown: handleKeyDown,
|
|
6593
6646
|
ref: mergedRef,
|
|
6594
6647
|
role: role
|
|
@@ -6598,14 +6651,14 @@ var AbstractNav = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6598
6651
|
var defaultProps$n = {
|
|
6599
6652
|
disabled: false
|
|
6600
6653
|
};
|
|
6601
|
-
var AbstractNavItem = React__default
|
|
6654
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6602
6655
|
var active = _ref.active,
|
|
6603
6656
|
className = _ref.className,
|
|
6604
6657
|
eventKey = _ref.eventKey,
|
|
6605
6658
|
onSelect = _ref.onSelect,
|
|
6606
6659
|
onClick = _ref.onClick,
|
|
6607
6660
|
Component = _ref.as,
|
|
6608
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6661
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6609
6662
|
|
|
6610
6663
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6611
6664
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6635,10 +6688,10 @@ var AbstractNavItem = React__default['default'].forwardRef(function (_ref, ref)
|
|
|
6635
6688
|
if (onSelect) onSelect(navKey, e);
|
|
6636
6689
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6637
6690
|
});
|
|
6638
|
-
return /*#__PURE__*/React__default
|
|
6691
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6639
6692
|
ref: ref,
|
|
6640
6693
|
onClick: handleOnclick,
|
|
6641
|
-
className: index.classnames(className, isActive && 'active')
|
|
6694
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6642
6695
|
}));
|
|
6643
6696
|
});
|
|
6644
6697
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6648,7 +6701,7 @@ var defaultProps$o = {
|
|
|
6648
6701
|
active: false,
|
|
6649
6702
|
disabled: false
|
|
6650
6703
|
};
|
|
6651
|
-
var ListGroupItem = React__default
|
|
6704
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6652
6705
|
var bsPrefix = _ref.bsPrefix,
|
|
6653
6706
|
active = _ref.active,
|
|
6654
6707
|
disabled = _ref.disabled,
|
|
@@ -6658,7 +6711,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6658
6711
|
as = _ref.as,
|
|
6659
6712
|
eventKey = _ref.eventKey,
|
|
6660
6713
|
onClick = _ref.onClick,
|
|
6661
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6714
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6662
6715
|
|
|
6663
6716
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6664
6717
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6670,7 +6723,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6670
6723
|
|
|
6671
6724
|
if (onClick) onClick(event);
|
|
6672
6725
|
}, [disabled, onClick]);
|
|
6673
|
-
return /*#__PURE__*/React__default
|
|
6726
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6674
6727
|
ref: ref
|
|
6675
6728
|
}, props, {
|
|
6676
6729
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6678,7 +6731,7 @@ var ListGroupItem = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
6678
6731
|
,
|
|
6679
6732
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6680
6733
|
onClick: handleClick,
|
|
6681
|
-
className: index.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6734
|
+
className: index$5.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6682
6735
|
}));
|
|
6683
6736
|
});
|
|
6684
6737
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6688,7 +6741,7 @@ var defaultProps$p = {
|
|
|
6688
6741
|
variant: undefined,
|
|
6689
6742
|
horizontal: undefined
|
|
6690
6743
|
};
|
|
6691
|
-
var ListGroup = React__default
|
|
6744
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6692
6745
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6693
6746
|
activeKey: 'onSelect'
|
|
6694
6747
|
}),
|
|
@@ -6698,7 +6751,7 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6698
6751
|
horizontal = _useUncontrolled.horizontal,
|
|
6699
6752
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6700
6753
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6701
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6754
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6702
6755
|
|
|
6703
6756
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6704
6757
|
var horizontalVariant;
|
|
@@ -6710,11 +6763,11 @@ var ListGroup = React__default['default'].forwardRef(function (props, ref) {
|
|
|
6710
6763
|
}
|
|
6711
6764
|
|
|
6712
6765
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6713
|
-
return /*#__PURE__*/React__default
|
|
6766
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6714
6767
|
ref: ref
|
|
6715
6768
|
}, controlledProps, {
|
|
6716
6769
|
as: as,
|
|
6717
|
-
className: index.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6770
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6718
6771
|
}));
|
|
6719
6772
|
});
|
|
6720
6773
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6722,18 +6775,18 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6722
6775
|
ListGroup.Item = ListGroupItem;
|
|
6723
6776
|
|
|
6724
6777
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6725
|
-
var Media = React__default
|
|
6778
|
+
var Media = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6726
6779
|
function (_ref, ref) {
|
|
6727
6780
|
var bsPrefix = _ref.bsPrefix,
|
|
6728
6781
|
className = _ref.className,
|
|
6729
6782
|
_ref$as = _ref.as,
|
|
6730
6783
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6731
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6784
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6732
6785
|
|
|
6733
6786
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6734
|
-
return /*#__PURE__*/React__default
|
|
6787
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6735
6788
|
ref: ref,
|
|
6736
|
-
className: index.classnames(className, prefix)
|
|
6789
|
+
className: index$5.classnames(className, prefix)
|
|
6737
6790
|
}));
|
|
6738
6791
|
});
|
|
6739
6792
|
Media.displayName = 'Media';
|
|
@@ -7119,7 +7172,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7119
7172
|
renderDialog = _ref.renderDialog,
|
|
7120
7173
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7121
7174
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7122
|
-
return /*#__PURE__*/React__default
|
|
7175
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7123
7176
|
} : _ref$renderBackdrop,
|
|
7124
7177
|
providedManager = _ref.manager,
|
|
7125
7178
|
containerRef = _ref.container,
|
|
@@ -7133,7 +7186,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7133
7186
|
onEnter = _ref.onEnter,
|
|
7134
7187
|
onEntering = _ref.onEntering,
|
|
7135
7188
|
onEntered = _ref.onEntered,
|
|
7136
|
-
rest =
|
|
7189
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "containerClassName", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"]);
|
|
7137
7190
|
|
|
7138
7191
|
var container = useWaitForDOMRef(containerRef);
|
|
7139
7192
|
var modal = useModalManager(providedManager);
|
|
@@ -7266,7 +7319,7 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7266
7319
|
return null;
|
|
7267
7320
|
}
|
|
7268
7321
|
|
|
7269
|
-
var dialogProps =
|
|
7322
|
+
var dialogProps = _extends({
|
|
7270
7323
|
role: role,
|
|
7271
7324
|
ref: modal.setDialogRef,
|
|
7272
7325
|
// apparently only works on the dialog role element
|
|
@@ -7277,12 +7330,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7277
7330
|
tabIndex: -1
|
|
7278
7331
|
});
|
|
7279
7332
|
|
|
7280
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default
|
|
7333
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7281
7334
|
role: 'document'
|
|
7282
7335
|
}));
|
|
7283
7336
|
|
|
7284
7337
|
if (Transition) {
|
|
7285
|
-
dialog = /*#__PURE__*/React__default
|
|
7338
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7286
7339
|
appear: true,
|
|
7287
7340
|
unmountOnExit: true,
|
|
7288
7341
|
"in": !!show,
|
|
@@ -7305,20 +7358,20 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
7305
7358
|
});
|
|
7306
7359
|
|
|
7307
7360
|
if (BackdropTransition) {
|
|
7308
|
-
backdropElement = /*#__PURE__*/React__default
|
|
7361
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7309
7362
|
appear: true,
|
|
7310
7363
|
"in": !!show
|
|
7311
7364
|
}, backdropElement);
|
|
7312
7365
|
}
|
|
7313
7366
|
}
|
|
7314
7367
|
|
|
7315
|
-
return /*#__PURE__*/React__default
|
|
7368
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7316
7369
|
});
|
|
7317
7370
|
var propTypes$8 = {
|
|
7318
7371
|
/**
|
|
7319
7372
|
* Set the visibility of the Modal
|
|
7320
7373
|
*/
|
|
7321
|
-
show: PropTypes__default
|
|
7374
|
+
show: PropTypes__default.bool,
|
|
7322
7375
|
|
|
7323
7376
|
/**
|
|
7324
7377
|
* A DOM element, a `ref` to an element, or function that returns either. The Modal is appended to it's `container` element.
|
|
@@ -7326,12 +7379,12 @@ var propTypes$8 = {
|
|
|
7326
7379
|
* For the sake of assistive technologies, the container should usually be the document body, so that the rest of the
|
|
7327
7380
|
* page content can be placed behind a virtual backdrop as well as a visual one.
|
|
7328
7381
|
*/
|
|
7329
|
-
container: PropTypes__default
|
|
7382
|
+
container: PropTypes__default.any,
|
|
7330
7383
|
|
|
7331
7384
|
/**
|
|
7332
7385
|
* A callback fired when the Modal is opening.
|
|
7333
7386
|
*/
|
|
7334
|
-
onShow: PropTypes__default
|
|
7387
|
+
onShow: PropTypes__default.func,
|
|
7335
7388
|
|
|
7336
7389
|
/**
|
|
7337
7390
|
* A callback fired when either the backdrop is clicked, or the escape key is pressed.
|
|
@@ -7339,12 +7392,12 @@ var propTypes$8 = {
|
|
|
7339
7392
|
* The `onHide` callback only signals intent from the Modal,
|
|
7340
7393
|
* you must actually set the `show` prop to `false` for the Modal to close.
|
|
7341
7394
|
*/
|
|
7342
|
-
onHide: PropTypes__default
|
|
7395
|
+
onHide: PropTypes__default.func,
|
|
7343
7396
|
|
|
7344
7397
|
/**
|
|
7345
7398
|
* Include a backdrop component.
|
|
7346
7399
|
*/
|
|
7347
|
-
backdrop: PropTypes__default
|
|
7400
|
+
backdrop: PropTypes__default.oneOfType([PropTypes__default.bool, PropTypes__default.oneOf(['static'])]),
|
|
7348
7401
|
|
|
7349
7402
|
/**
|
|
7350
7403
|
* A function that returns the dialog component. Useful for custom
|
|
@@ -7354,7 +7407,7 @@ var propTypes$8 = {
|
|
|
7354
7407
|
* renderDialog={props => <MyDialog {...props} />}
|
|
7355
7408
|
* ```
|
|
7356
7409
|
*/
|
|
7357
|
-
renderDialog: PropTypes__default
|
|
7410
|
+
renderDialog: PropTypes__default.func,
|
|
7358
7411
|
|
|
7359
7412
|
/**
|
|
7360
7413
|
* A function that returns a backdrop component. Useful for custom
|
|
@@ -7364,42 +7417,42 @@ var propTypes$8 = {
|
|
|
7364
7417
|
* renderBackdrop={props => <MyBackdrop {...props} />}
|
|
7365
7418
|
* ```
|
|
7366
7419
|
*/
|
|
7367
|
-
renderBackdrop: PropTypes__default
|
|
7420
|
+
renderBackdrop: PropTypes__default.func,
|
|
7368
7421
|
|
|
7369
7422
|
/**
|
|
7370
7423
|
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
7371
7424
|
*
|
|
7372
7425
|
* If preventDefault() is called on the keyboard event, closing the modal will be cancelled.
|
|
7373
7426
|
*/
|
|
7374
|
-
onEscapeKeyDown: PropTypes__default
|
|
7427
|
+
onEscapeKeyDown: PropTypes__default.func,
|
|
7375
7428
|
|
|
7376
7429
|
/**
|
|
7377
7430
|
* A callback fired when the backdrop, if specified, is clicked.
|
|
7378
7431
|
*/
|
|
7379
|
-
onBackdropClick: PropTypes__default
|
|
7432
|
+
onBackdropClick: PropTypes__default.func,
|
|
7380
7433
|
|
|
7381
7434
|
/**
|
|
7382
7435
|
* A css class or set of classes applied to the modal container when the modal is open,
|
|
7383
7436
|
* and removed when it is closed.
|
|
7384
7437
|
*/
|
|
7385
|
-
containerClassName: PropTypes__default
|
|
7438
|
+
containerClassName: PropTypes__default.string,
|
|
7386
7439
|
|
|
7387
7440
|
/**
|
|
7388
7441
|
* Close the modal when escape key is pressed
|
|
7389
7442
|
*/
|
|
7390
|
-
keyboard: PropTypes__default
|
|
7443
|
+
keyboard: PropTypes__default.bool,
|
|
7391
7444
|
|
|
7392
7445
|
/**
|
|
7393
7446
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7394
7447
|
* to control animations for the dialog component.
|
|
7395
7448
|
*/
|
|
7396
|
-
transition: PropTypes__default
|
|
7449
|
+
transition: PropTypes__default.elementType,
|
|
7397
7450
|
|
|
7398
7451
|
/**
|
|
7399
7452
|
* A `react-transition-group@2.0.0` `<Transition/>` component used
|
|
7400
7453
|
* to control animations for the backdrop components.
|
|
7401
7454
|
*/
|
|
7402
|
-
backdropTransition: PropTypes__default
|
|
7455
|
+
backdropTransition: PropTypes__default.elementType,
|
|
7403
7456
|
|
|
7404
7457
|
/**
|
|
7405
7458
|
* When `true` The modal will automatically shift focus to itself when it opens, and
|
|
@@ -7409,7 +7462,7 @@ var propTypes$8 = {
|
|
|
7409
7462
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7410
7463
|
* accessible to assistive technologies, like screen readers.
|
|
7411
7464
|
*/
|
|
7412
|
-
autoFocus: PropTypes__default
|
|
7465
|
+
autoFocus: PropTypes__default.bool,
|
|
7413
7466
|
|
|
7414
7467
|
/**
|
|
7415
7468
|
* When `true` The modal will prevent focus from leaving the Modal while open.
|
|
@@ -7417,58 +7470,58 @@ var propTypes$8 = {
|
|
|
7417
7470
|
* Generally this should never be set to `false` as it makes the Modal less
|
|
7418
7471
|
* accessible to assistive technologies, like screen readers.
|
|
7419
7472
|
*/
|
|
7420
|
-
enforceFocus: PropTypes__default
|
|
7473
|
+
enforceFocus: PropTypes__default.bool,
|
|
7421
7474
|
|
|
7422
7475
|
/**
|
|
7423
7476
|
* When `true` The modal will restore focus to previously focused element once
|
|
7424
7477
|
* modal is hidden
|
|
7425
7478
|
*/
|
|
7426
|
-
restoreFocus: PropTypes__default
|
|
7479
|
+
restoreFocus: PropTypes__default.bool,
|
|
7427
7480
|
|
|
7428
7481
|
/**
|
|
7429
7482
|
* Options passed to focus function when `restoreFocus` is set to `true`
|
|
7430
7483
|
*
|
|
7431
7484
|
* @link https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#Parameters
|
|
7432
7485
|
*/
|
|
7433
|
-
restoreFocusOptions: PropTypes__default
|
|
7434
|
-
preventScroll: PropTypes__default
|
|
7486
|
+
restoreFocusOptions: PropTypes__default.shape({
|
|
7487
|
+
preventScroll: PropTypes__default.bool
|
|
7435
7488
|
}),
|
|
7436
7489
|
|
|
7437
7490
|
/**
|
|
7438
7491
|
* Callback fired before the Modal transitions in
|
|
7439
7492
|
*/
|
|
7440
|
-
onEnter: PropTypes__default
|
|
7493
|
+
onEnter: PropTypes__default.func,
|
|
7441
7494
|
|
|
7442
7495
|
/**
|
|
7443
7496
|
* Callback fired as the Modal begins to transition in
|
|
7444
7497
|
*/
|
|
7445
|
-
onEntering: PropTypes__default
|
|
7498
|
+
onEntering: PropTypes__default.func,
|
|
7446
7499
|
|
|
7447
7500
|
/**
|
|
7448
7501
|
* Callback fired after the Modal finishes transitioning in
|
|
7449
7502
|
*/
|
|
7450
|
-
onEntered: PropTypes__default
|
|
7503
|
+
onEntered: PropTypes__default.func,
|
|
7451
7504
|
|
|
7452
7505
|
/**
|
|
7453
7506
|
* Callback fired right before the Modal transitions out
|
|
7454
7507
|
*/
|
|
7455
|
-
onExit: PropTypes__default
|
|
7508
|
+
onExit: PropTypes__default.func,
|
|
7456
7509
|
|
|
7457
7510
|
/**
|
|
7458
7511
|
* Callback fired as the Modal begins to transition out
|
|
7459
7512
|
*/
|
|
7460
|
-
onExiting: PropTypes__default
|
|
7513
|
+
onExiting: PropTypes__default.func,
|
|
7461
7514
|
|
|
7462
7515
|
/**
|
|
7463
7516
|
* Callback fired after the Modal finishes transitioning out
|
|
7464
7517
|
*/
|
|
7465
|
-
onExited: PropTypes__default
|
|
7518
|
+
onExited: PropTypes__default.func,
|
|
7466
7519
|
|
|
7467
7520
|
/**
|
|
7468
7521
|
* A ModalManager instance used to track and manage the state of open
|
|
7469
7522
|
* Modals. Useful when customizing how modals interact within a container
|
|
7470
7523
|
*/
|
|
7471
|
-
manager: PropTypes__default
|
|
7524
|
+
manager: PropTypes__default.instanceOf(ModalManager)
|
|
7472
7525
|
};
|
|
7473
7526
|
Modal.displayName = 'Modal';
|
|
7474
7527
|
Modal.propTypes = propTypes$8;
|
|
@@ -7551,12 +7604,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7551
7604
|
|
|
7552
7605
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7553
7606
|
|
|
7554
|
-
var ModalContext = React__default
|
|
7607
|
+
var ModalContext = React__default.createContext({
|
|
7555
7608
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7556
7609
|
onHide: function onHide() {}
|
|
7557
7610
|
});
|
|
7558
7611
|
|
|
7559
|
-
var ModalDialog = React__default
|
|
7612
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7560
7613
|
var bsPrefix = _ref.bsPrefix,
|
|
7561
7614
|
className = _ref.className,
|
|
7562
7615
|
contentClassName = _ref.contentClassName,
|
|
@@ -7564,15 +7617,15 @@ var ModalDialog = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7564
7617
|
size = _ref.size,
|
|
7565
7618
|
children = _ref.children,
|
|
7566
7619
|
scrollable = _ref.scrollable,
|
|
7567
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7620
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7568
7621
|
|
|
7569
7622
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7570
7623
|
var dialogClass = bsPrefix + "-dialog";
|
|
7571
|
-
return /*#__PURE__*/React__default
|
|
7624
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7572
7625
|
ref: ref,
|
|
7573
|
-
className: index.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7574
|
-
}), /*#__PURE__*/React__default
|
|
7575
|
-
className: index.classnames(bsPrefix + "-content", contentClassName)
|
|
7626
|
+
className: index$5.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7627
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7628
|
+
className: index$5.classnames(bsPrefix + "-content", contentClassName)
|
|
7576
7629
|
}, children));
|
|
7577
7630
|
});
|
|
7578
7631
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7583,14 +7636,14 @@ var defaultProps$q = {
|
|
|
7583
7636
|
closeLabel: 'Close',
|
|
7584
7637
|
closeButton: false
|
|
7585
7638
|
};
|
|
7586
|
-
var ModalHeader = React__default
|
|
7639
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7587
7640
|
var bsPrefix = _ref.bsPrefix,
|
|
7588
7641
|
closeLabel = _ref.closeLabel,
|
|
7589
7642
|
closeButton = _ref.closeButton,
|
|
7590
7643
|
onHide = _ref.onHide,
|
|
7591
7644
|
className = _ref.className,
|
|
7592
7645
|
children = _ref.children,
|
|
7593
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7646
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7594
7647
|
|
|
7595
7648
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7596
7649
|
var context = React.useContext(ModalContext);
|
|
@@ -7598,11 +7651,11 @@ var ModalHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7598
7651
|
if (context) context.onHide();
|
|
7599
7652
|
if (onHide) onHide();
|
|
7600
7653
|
});
|
|
7601
|
-
return /*#__PURE__*/React__default
|
|
7654
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7602
7655
|
ref: ref
|
|
7603
7656
|
}, props, {
|
|
7604
|
-
className: index.classnames(className, bsPrefix)
|
|
7605
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
7657
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7658
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7606
7659
|
label: closeLabel,
|
|
7607
7660
|
onClick: handleClick
|
|
7608
7661
|
}));
|
|
@@ -7629,16 +7682,16 @@ var defaultProps$r = {
|
|
|
7629
7682
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7630
7683
|
|
|
7631
7684
|
function DialogTransition(props) {
|
|
7632
|
-
return /*#__PURE__*/React__default
|
|
7685
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7633
7686
|
}
|
|
7634
7687
|
|
|
7635
7688
|
function BackdropTransition(props) {
|
|
7636
|
-
return /*#__PURE__*/React__default
|
|
7689
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7637
7690
|
}
|
|
7638
7691
|
/* eslint-enable no-use-before-define */
|
|
7639
7692
|
|
|
7640
7693
|
|
|
7641
|
-
var Modal$1 = React__default
|
|
7694
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7642
7695
|
var bsPrefix = _ref.bsPrefix,
|
|
7643
7696
|
className = _ref.className,
|
|
7644
7697
|
style = _ref.style,
|
|
@@ -7667,7 +7720,7 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7667
7720
|
onExited = _ref.onExited,
|
|
7668
7721
|
backdropClassName = _ref.backdropClassName,
|
|
7669
7722
|
propsManager = _ref.manager,
|
|
7670
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7723
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7671
7724
|
|
|
7672
7725
|
var _useState = React.useState({}),
|
|
7673
7726
|
modalStyle = _useState[0],
|
|
@@ -7833,12 +7886,12 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7833
7886
|
};
|
|
7834
7887
|
|
|
7835
7888
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7836
|
-
return /*#__PURE__*/React__default
|
|
7837
|
-
className: index.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7889
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, backdropProps, {
|
|
7890
|
+
className: index$5.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7838
7891
|
}));
|
|
7839
7892
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7840
7893
|
|
|
7841
|
-
var baseModalStyle = index._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7894
|
+
var baseModalStyle = index$5._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7842
7895
|
|
|
7843
7896
|
|
|
7844
7897
|
if (!animation) {
|
|
@@ -7846,15 +7899,15 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7846
7899
|
}
|
|
7847
7900
|
|
|
7848
7901
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7849
|
-
return /*#__PURE__*/React__default
|
|
7902
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7850
7903
|
role: "dialog"
|
|
7851
7904
|
}, dialogProps, {
|
|
7852
7905
|
style: baseModalStyle,
|
|
7853
|
-
className: index.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7906
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7854
7907
|
onClick: backdrop ? handleClick : undefined,
|
|
7855
7908
|
onMouseUp: handleMouseUp,
|
|
7856
7909
|
"aria-labelledby": ariaLabelledby
|
|
7857
|
-
}), /*#__PURE__*/React__default
|
|
7910
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7858
7911
|
role: "document",
|
|
7859
7912
|
onMouseDown: handleDialogMouseDown,
|
|
7860
7913
|
className: dialogClassName,
|
|
@@ -7862,9 +7915,9 @@ var Modal$1 = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7862
7915
|
}), children));
|
|
7863
7916
|
};
|
|
7864
7917
|
|
|
7865
|
-
return /*#__PURE__*/React__default
|
|
7918
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7866
7919
|
value: modalContext
|
|
7867
|
-
}, /*#__PURE__*/React__default
|
|
7920
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7868
7921
|
show: show,
|
|
7869
7922
|
ref: setModalRef,
|
|
7870
7923
|
backdrop: backdrop,
|
|
@@ -7902,19 +7955,19 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7902
7955
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7903
7956
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7904
7957
|
|
|
7905
|
-
var NavItem = React__default
|
|
7958
|
+
var NavItem = React__default.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7906
7959
|
function (_ref, ref) {
|
|
7907
7960
|
var bsPrefix = _ref.bsPrefix,
|
|
7908
7961
|
className = _ref.className,
|
|
7909
7962
|
children = _ref.children,
|
|
7910
7963
|
_ref$as = _ref.as,
|
|
7911
7964
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7912
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7965
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7913
7966
|
|
|
7914
7967
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7915
|
-
return /*#__PURE__*/React__default
|
|
7968
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7916
7969
|
ref: ref,
|
|
7917
|
-
className: index.classnames(className, bsPrefix)
|
|
7970
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7918
7971
|
}), children);
|
|
7919
7972
|
});
|
|
7920
7973
|
NavItem.displayName = 'NavItem';
|
|
@@ -7923,7 +7976,7 @@ var defaultProps$s = {
|
|
|
7923
7976
|
disabled: false,
|
|
7924
7977
|
as: SafeAnchor
|
|
7925
7978
|
};
|
|
7926
|
-
var NavLink = React__default
|
|
7979
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7927
7980
|
var bsPrefix = _ref.bsPrefix,
|
|
7928
7981
|
disabled = _ref.disabled,
|
|
7929
7982
|
className = _ref.className,
|
|
@@ -7931,17 +7984,17 @@ var NavLink = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
7931
7984
|
eventKey = _ref.eventKey,
|
|
7932
7985
|
onSelect = _ref.onSelect,
|
|
7933
7986
|
as = _ref.as,
|
|
7934
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7987
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7935
7988
|
|
|
7936
7989
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7937
|
-
return /*#__PURE__*/React__default
|
|
7990
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7938
7991
|
href: href,
|
|
7939
7992
|
ref: ref,
|
|
7940
7993
|
eventKey: eventKey,
|
|
7941
7994
|
as: as,
|
|
7942
7995
|
disabled: disabled,
|
|
7943
7996
|
onSelect: onSelect,
|
|
7944
|
-
className: index.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7997
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7945
7998
|
}));
|
|
7946
7999
|
});
|
|
7947
8000
|
NavLink.displayName = 'NavLink';
|
|
@@ -7951,7 +8004,7 @@ var defaultProps$t = {
|
|
|
7951
8004
|
justify: false,
|
|
7952
8005
|
fill: false
|
|
7953
8006
|
};
|
|
7954
|
-
var Nav = React__default
|
|
8007
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7955
8008
|
var _classNames;
|
|
7956
8009
|
|
|
7957
8010
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7967,7 +8020,7 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7967
8020
|
className = _useUncontrolled.className,
|
|
7968
8021
|
children = _useUncontrolled.children,
|
|
7969
8022
|
activeKey = _useUncontrolled.activeKey,
|
|
7970
|
-
props = index._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8023
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7971
8024
|
|
|
7972
8025
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7973
8026
|
var navbarBsPrefix;
|
|
@@ -7983,11 +8036,11 @@ var Nav = React__default['default'].forwardRef(function (uncontrolledProps, ref)
|
|
|
7983
8036
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7984
8037
|
}
|
|
7985
8038
|
|
|
7986
|
-
return /*#__PURE__*/React__default
|
|
8039
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
7987
8040
|
as: as,
|
|
7988
8041
|
ref: ref,
|
|
7989
8042
|
activeKey: activeKey,
|
|
7990
|
-
className: index.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
8043
|
+
className: index$5.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
7991
8044
|
}, props), children);
|
|
7992
8045
|
});
|
|
7993
8046
|
Nav.displayName = 'Nav';
|
|
@@ -7995,31 +8048,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7995
8048
|
Nav.Item = NavItem;
|
|
7996
8049
|
Nav.Link = NavLink;
|
|
7997
8050
|
|
|
7998
|
-
var NavbarBrand = React__default
|
|
8051
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7999
8052
|
var bsPrefix = _ref.bsPrefix,
|
|
8000
8053
|
className = _ref.className,
|
|
8001
8054
|
as = _ref.as,
|
|
8002
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8055
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8003
8056
|
|
|
8004
8057
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8005
8058
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8006
|
-
return /*#__PURE__*/React__default
|
|
8059
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8007
8060
|
ref: ref,
|
|
8008
|
-
className: index.classnames(className, bsPrefix)
|
|
8061
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8009
8062
|
}));
|
|
8010
8063
|
});
|
|
8011
8064
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8012
8065
|
|
|
8013
|
-
var NavbarCollapse = React__default
|
|
8066
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8014
8067
|
var children = _ref.children,
|
|
8015
8068
|
bsPrefix = _ref.bsPrefix,
|
|
8016
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8069
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8017
8070
|
|
|
8018
8071
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8019
|
-
return /*#__PURE__*/React__default
|
|
8020
|
-
return /*#__PURE__*/React__default
|
|
8072
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8073
|
+
return /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
8021
8074
|
in: !!(context && context.expanded)
|
|
8022
|
-
}, props), /*#__PURE__*/React__default
|
|
8075
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8023
8076
|
ref: ref,
|
|
8024
8077
|
className: bsPrefix
|
|
8025
8078
|
}, children));
|
|
@@ -8030,7 +8083,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8030
8083
|
var defaultProps$u = {
|
|
8031
8084
|
label: 'Toggle navigation'
|
|
8032
8085
|
};
|
|
8033
|
-
var NavbarToggle = React__default
|
|
8086
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8034
8087
|
var bsPrefix = _ref.bsPrefix,
|
|
8035
8088
|
className = _ref.className,
|
|
8036
8089
|
children = _ref.children,
|
|
@@ -8038,7 +8091,7 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8038
8091
|
_ref$as = _ref.as,
|
|
8039
8092
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8040
8093
|
onClick = _ref.onClick,
|
|
8041
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8094
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8042
8095
|
|
|
8043
8096
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8044
8097
|
|
|
@@ -8055,12 +8108,12 @@ var NavbarToggle = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8055
8108
|
props.type = 'button';
|
|
8056
8109
|
}
|
|
8057
8110
|
|
|
8058
|
-
return /*#__PURE__*/React__default
|
|
8111
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8059
8112
|
ref: ref,
|
|
8060
8113
|
onClick: handleClick,
|
|
8061
8114
|
"aria-label": label,
|
|
8062
|
-
className: index.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8063
|
-
}), children || /*#__PURE__*/React__default
|
|
8115
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8116
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8064
8117
|
className: bsPrefix + "-icon"
|
|
8065
8118
|
}));
|
|
8066
8119
|
});
|
|
@@ -8075,7 +8128,7 @@ var defaultProps$v = {
|
|
|
8075
8128
|
variant: 'light',
|
|
8076
8129
|
collapseOnSelect: false
|
|
8077
8130
|
};
|
|
8078
|
-
var Navbar = React__default
|
|
8131
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8079
8132
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8080
8133
|
expanded: 'onToggle'
|
|
8081
8134
|
}),
|
|
@@ -8093,7 +8146,7 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8093
8146
|
_onToggle = _useUncontrolled.onToggle,
|
|
8094
8147
|
onSelect = _useUncontrolled.onSelect,
|
|
8095
8148
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8096
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8149
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8097
8150
|
|
|
8098
8151
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8099
8152
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8123,14 +8176,14 @@ var Navbar = React__default['default'].forwardRef(function (props, ref) {
|
|
|
8123
8176
|
expanded: !!expanded
|
|
8124
8177
|
};
|
|
8125
8178
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8126
|
-
return /*#__PURE__*/React__default
|
|
8179
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8127
8180
|
value: navbarContext
|
|
8128
|
-
}, /*#__PURE__*/React__default
|
|
8181
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8129
8182
|
value: handleCollapse
|
|
8130
|
-
}, /*#__PURE__*/React__default
|
|
8183
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8131
8184
|
ref: ref
|
|
8132
8185
|
}, controlledProps, {
|
|
8133
|
-
className: index.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8186
|
+
className: index$5.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8134
8187
|
}), children)));
|
|
8135
8188
|
});
|
|
8136
8189
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8146,37 +8199,37 @@ var propTypes$9 = {
|
|
|
8146
8199
|
* @type {string|number}
|
|
8147
8200
|
* @required
|
|
8148
8201
|
*/
|
|
8149
|
-
id: PropTypes__default
|
|
8202
|
+
id: PropTypes__default.any,
|
|
8150
8203
|
|
|
8151
8204
|
/** An `onClick` handler passed to the Toggle component */
|
|
8152
|
-
onClick: PropTypes__default
|
|
8205
|
+
onClick: PropTypes__default.func,
|
|
8153
8206
|
|
|
8154
8207
|
/** The content of the non-toggle Button. */
|
|
8155
|
-
title: PropTypes__default
|
|
8208
|
+
title: PropTypes__default.node.isRequired,
|
|
8156
8209
|
|
|
8157
8210
|
/** Disables the toggle NavLink */
|
|
8158
|
-
disabled: PropTypes__default
|
|
8211
|
+
disabled: PropTypes__default.bool,
|
|
8159
8212
|
|
|
8160
8213
|
/** Style the toggle NavLink as active */
|
|
8161
|
-
active: PropTypes__default
|
|
8214
|
+
active: PropTypes__default.bool,
|
|
8162
8215
|
|
|
8163
8216
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8164
|
-
menuRole: PropTypes__default
|
|
8217
|
+
menuRole: PropTypes__default.string,
|
|
8165
8218
|
|
|
8166
8219
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8167
|
-
renderMenuOnMount: PropTypes__default
|
|
8220
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8168
8221
|
|
|
8169
8222
|
/**
|
|
8170
8223
|
* Which event when fired outside the component will cause it to be closed.
|
|
8171
8224
|
*
|
|
8172
8225
|
* _see [DropdownMenu](#menu-props) for more details_
|
|
8173
8226
|
*/
|
|
8174
|
-
rootCloseEvent: PropTypes__default
|
|
8227
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8175
8228
|
|
|
8176
8229
|
/** @ignore */
|
|
8177
|
-
bsPrefix: PropTypes__default
|
|
8230
|
+
bsPrefix: PropTypes__default.string
|
|
8178
8231
|
};
|
|
8179
|
-
var NavDropdown = React__default
|
|
8232
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8180
8233
|
var id = _ref.id,
|
|
8181
8234
|
title = _ref.title,
|
|
8182
8235
|
children = _ref.children,
|
|
@@ -8186,20 +8239,20 @@ var NavDropdown = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8186
8239
|
disabled = _ref.disabled,
|
|
8187
8240
|
active = _ref.active,
|
|
8188
8241
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8189
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8242
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8190
8243
|
|
|
8191
|
-
return /*#__PURE__*/React__default
|
|
8244
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8192
8245
|
ref: ref
|
|
8193
8246
|
}, props, {
|
|
8194
8247
|
as: NavItem
|
|
8195
|
-
}), /*#__PURE__*/React__default
|
|
8248
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8196
8249
|
id: id,
|
|
8197
8250
|
eventKey: null,
|
|
8198
8251
|
active: active,
|
|
8199
8252
|
disabled: disabled,
|
|
8200
8253
|
childBsPrefix: bsPrefix,
|
|
8201
8254
|
as: NavLink
|
|
8202
|
-
}, title), /*#__PURE__*/React__default
|
|
8255
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8203
8256
|
role: menuRole,
|
|
8204
8257
|
renderOnMount: renderMenuOnMount,
|
|
8205
8258
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8216,7 +8269,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8216
8269
|
* Built on top of `Popper.js`, the overlay component is
|
|
8217
8270
|
* great for custom tooltip overlays.
|
|
8218
8271
|
*/
|
|
8219
|
-
var Overlay = /*#__PURE__*/React__default
|
|
8272
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8220
8273
|
var flip = props.flip,
|
|
8221
8274
|
offset = props.offset,
|
|
8222
8275
|
placement = props.placement,
|
|
@@ -8253,7 +8306,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8253
8306
|
})),
|
|
8254
8307
|
styles = _usePopper.styles,
|
|
8255
8308
|
attributes = _usePopper.attributes,
|
|
8256
|
-
popper =
|
|
8309
|
+
popper = _objectWithoutPropertiesLoose(_usePopper, ["styles", "attributes"]);
|
|
8257
8310
|
|
|
8258
8311
|
if (props.show) {
|
|
8259
8312
|
if (exited) setExited(false);
|
|
@@ -8281,13 +8334,13 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8281
8334
|
return null;
|
|
8282
8335
|
}
|
|
8283
8336
|
|
|
8284
|
-
var child = props.children(
|
|
8337
|
+
var child = props.children(_extends({}, popper, {
|
|
8285
8338
|
show: !!props.show,
|
|
8286
|
-
props:
|
|
8339
|
+
props: _extends({}, attributes.popper, {
|
|
8287
8340
|
style: styles.popper,
|
|
8288
8341
|
ref: mergedRef
|
|
8289
8342
|
}),
|
|
8290
|
-
arrowProps:
|
|
8343
|
+
arrowProps: _extends({}, attributes.arrow, {
|
|
8291
8344
|
style: styles.arrow,
|
|
8292
8345
|
ref: attachArrowRef
|
|
8293
8346
|
})
|
|
@@ -8299,7 +8352,7 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8299
8352
|
onEnter = props.onEnter,
|
|
8300
8353
|
onEntering = props.onEntering,
|
|
8301
8354
|
onEntered = props.onEntered;
|
|
8302
|
-
child = /*#__PURE__*/React__default
|
|
8355
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8303
8356
|
"in": props.show,
|
|
8304
8357
|
appear: true,
|
|
8305
8358
|
onExit: onExit,
|
|
@@ -8311,36 +8364,36 @@ var Overlay = /*#__PURE__*/React__default['default'].forwardRef(function (props,
|
|
|
8311
8364
|
}, child);
|
|
8312
8365
|
}
|
|
8313
8366
|
|
|
8314
|
-
return container ? /*#__PURE__*/
|
|
8367
|
+
return container ? /*#__PURE__*/ReactDOM.createPortal(child, container) : null;
|
|
8315
8368
|
});
|
|
8316
8369
|
Overlay.displayName = 'Overlay';
|
|
8317
8370
|
Overlay.propTypes = {
|
|
8318
8371
|
/**
|
|
8319
8372
|
* Set the visibility of the Overlay
|
|
8320
8373
|
*/
|
|
8321
|
-
show: PropTypes__default
|
|
8374
|
+
show: PropTypes__default.bool,
|
|
8322
8375
|
|
|
8323
8376
|
/** Specify where the overlay element is positioned in relation to the target element */
|
|
8324
|
-
placement: PropTypes__default
|
|
8377
|
+
placement: PropTypes__default.oneOf(placements),
|
|
8325
8378
|
|
|
8326
8379
|
/**
|
|
8327
8380
|
* A DOM Element, Ref to an element, or function that returns either. The `target` element is where
|
|
8328
8381
|
* the overlay is positioned relative to.
|
|
8329
8382
|
*/
|
|
8330
|
-
target: PropTypes__default
|
|
8383
|
+
target: PropTypes__default.any,
|
|
8331
8384
|
|
|
8332
8385
|
/**
|
|
8333
8386
|
* A DOM Element, Ref to an element, or function that returns either. The `container` will have the Portal children
|
|
8334
8387
|
* appended to it.
|
|
8335
8388
|
*/
|
|
8336
|
-
container: PropTypes__default
|
|
8389
|
+
container: PropTypes__default.any,
|
|
8337
8390
|
|
|
8338
8391
|
/**
|
|
8339
8392
|
* Enables the Popper.js `flip` modifier, allowing the Overlay to
|
|
8340
8393
|
* automatically adjust it's placement in case of overlap with the viewport or toggle.
|
|
8341
8394
|
* Refer to the [flip docs](https://popper.js.org/popper-documentation.html#modifiers..flip.enabled) for more info
|
|
8342
8395
|
*/
|
|
8343
|
-
flip: PropTypes__default
|
|
8396
|
+
flip: PropTypes__default.bool,
|
|
8344
8397
|
|
|
8345
8398
|
/**
|
|
8346
8399
|
* A render prop that returns an element to overlay and position. See
|
|
@@ -8364,33 +8417,33 @@ Overlay.propTypes = {
|
|
|
8364
8417
|
* },
|
|
8365
8418
|
* }) => React.Element}
|
|
8366
8419
|
*/
|
|
8367
|
-
children: PropTypes__default
|
|
8420
|
+
children: PropTypes__default.func.isRequired,
|
|
8368
8421
|
|
|
8369
8422
|
/**
|
|
8370
8423
|
* Control how much space there is between the edge of the boundary element and overlay.
|
|
8371
8424
|
* A convenience shortcut to setting `popperConfig.modfiers.preventOverflow.padding`
|
|
8372
8425
|
*/
|
|
8373
|
-
containerPadding: PropTypes__default
|
|
8426
|
+
containerPadding: PropTypes__default.number,
|
|
8374
8427
|
|
|
8375
8428
|
/**
|
|
8376
8429
|
* A set of popper options and props passed directly to react-popper's Popper component.
|
|
8377
8430
|
*/
|
|
8378
|
-
popperConfig: PropTypes__default
|
|
8431
|
+
popperConfig: PropTypes__default.object,
|
|
8379
8432
|
|
|
8380
8433
|
/**
|
|
8381
8434
|
* Specify whether the overlay should trigger `onHide` when the user clicks outside the overlay
|
|
8382
8435
|
*/
|
|
8383
|
-
rootClose: PropTypes__default
|
|
8436
|
+
rootClose: PropTypes__default.bool,
|
|
8384
8437
|
|
|
8385
8438
|
/**
|
|
8386
8439
|
* Specify event for toggling overlay
|
|
8387
8440
|
*/
|
|
8388
|
-
rootCloseEvent: PropTypes__default
|
|
8441
|
+
rootCloseEvent: PropTypes__default.oneOf(['click', 'mousedown']),
|
|
8389
8442
|
|
|
8390
8443
|
/**
|
|
8391
8444
|
* Specify disabled for disable RootCloseWrapper
|
|
8392
8445
|
*/
|
|
8393
|
-
rootCloseDisabled: PropTypes__default
|
|
8446
|
+
rootCloseDisabled: PropTypes__default.bool,
|
|
8394
8447
|
|
|
8395
8448
|
/**
|
|
8396
8449
|
* A Callback fired by the Overlay when it wishes to be hidden.
|
|
@@ -8407,10 +8460,10 @@ Overlay.propTypes = {
|
|
|
8407
8460
|
if (props.rootClose) {
|
|
8408
8461
|
var _PropTypes$func;
|
|
8409
8462
|
|
|
8410
|
-
return (_PropTypes$func = PropTypes__default
|
|
8463
|
+
return (_PropTypes$func = PropTypes__default.func).isRequired.apply(_PropTypes$func, [props].concat(args));
|
|
8411
8464
|
}
|
|
8412
8465
|
|
|
8413
|
-
return PropTypes__default
|
|
8466
|
+
return PropTypes__default.func.apply(PropTypes__default, [props].concat(args));
|
|
8414
8467
|
},
|
|
8415
8468
|
|
|
8416
8469
|
/**
|
|
@@ -8418,37 +8471,37 @@ Overlay.propTypes = {
|
|
|
8418
8471
|
* used to animate the overlay as it changes visibility.
|
|
8419
8472
|
*/
|
|
8420
8473
|
// @ts-ignore
|
|
8421
|
-
transition: PropTypes__default
|
|
8474
|
+
transition: PropTypes__default.elementType,
|
|
8422
8475
|
|
|
8423
8476
|
/**
|
|
8424
8477
|
* Callback fired before the Overlay transitions in
|
|
8425
8478
|
*/
|
|
8426
|
-
onEnter: PropTypes__default
|
|
8479
|
+
onEnter: PropTypes__default.func,
|
|
8427
8480
|
|
|
8428
8481
|
/**
|
|
8429
8482
|
* Callback fired as the Overlay begins to transition in
|
|
8430
8483
|
*/
|
|
8431
|
-
onEntering: PropTypes__default
|
|
8484
|
+
onEntering: PropTypes__default.func,
|
|
8432
8485
|
|
|
8433
8486
|
/**
|
|
8434
8487
|
* Callback fired after the Overlay finishes transitioning in
|
|
8435
8488
|
*/
|
|
8436
|
-
onEntered: PropTypes__default
|
|
8489
|
+
onEntered: PropTypes__default.func,
|
|
8437
8490
|
|
|
8438
8491
|
/**
|
|
8439
8492
|
* Callback fired right before the Overlay transitions out
|
|
8440
8493
|
*/
|
|
8441
|
-
onExit: PropTypes__default
|
|
8494
|
+
onExit: PropTypes__default.func,
|
|
8442
8495
|
|
|
8443
8496
|
/**
|
|
8444
8497
|
* Callback fired as the Overlay begins to transition out
|
|
8445
8498
|
*/
|
|
8446
|
-
onExiting: PropTypes__default
|
|
8499
|
+
onExiting: PropTypes__default.func,
|
|
8447
8500
|
|
|
8448
8501
|
/**
|
|
8449
8502
|
* Callback fired after the Overlay finishes transitioning out
|
|
8450
8503
|
*/
|
|
8451
|
-
onExited: PropTypes__default
|
|
8504
|
+
onExited: PropTypes__default.func
|
|
8452
8505
|
};
|
|
8453
8506
|
|
|
8454
8507
|
var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
@@ -8465,34 +8518,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8465
8518
|
};
|
|
8466
8519
|
|
|
8467
8520
|
return RefHolder;
|
|
8468
|
-
}(React__default
|
|
8521
|
+
}(React__default.Component);
|
|
8469
8522
|
|
|
8470
8523
|
var defaultProps$w = {
|
|
8471
8524
|
active: false,
|
|
8472
8525
|
disabled: false,
|
|
8473
8526
|
activeLabel: '(current)'
|
|
8474
8527
|
};
|
|
8475
|
-
var PageItem = React__default
|
|
8528
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8476
8529
|
var active = _ref.active,
|
|
8477
8530
|
disabled = _ref.disabled,
|
|
8478
8531
|
className = _ref.className,
|
|
8479
8532
|
style = _ref.style,
|
|
8480
8533
|
activeLabel = _ref.activeLabel,
|
|
8481
8534
|
children = _ref.children,
|
|
8482
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8535
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8483
8536
|
|
|
8484
8537
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8485
|
-
return /*#__PURE__*/React__default
|
|
8538
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8486
8539
|
ref: ref,
|
|
8487
8540
|
style: style,
|
|
8488
|
-
className: index.classnames(className, 'page-item', {
|
|
8541
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8489
8542
|
active: active,
|
|
8490
8543
|
disabled: disabled
|
|
8491
8544
|
})
|
|
8492
|
-
}, /*#__PURE__*/React__default
|
|
8545
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8493
8546
|
className: "page-link",
|
|
8494
8547
|
disabled: disabled
|
|
8495
|
-
}, props), children, active && activeLabel && /*#__PURE__*/React__default
|
|
8548
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8496
8549
|
className: "sr-only"
|
|
8497
8550
|
}, activeLabel)));
|
|
8498
8551
|
});
|
|
@@ -8506,11 +8559,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8506
8559
|
|
|
8507
8560
|
function Button(_ref2) {
|
|
8508
8561
|
var children = _ref2.children,
|
|
8509
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8562
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8510
8563
|
|
|
8511
|
-
return /*#__PURE__*/React__default
|
|
8564
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8512
8565
|
"aria-hidden": "true"
|
|
8513
|
-
}, children || defaultValue), /*#__PURE__*/React__default
|
|
8566
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8514
8567
|
className: "sr-only"
|
|
8515
8568
|
}, label));
|
|
8516
8569
|
}
|
|
@@ -8533,18 +8586,18 @@ var Last = createButton('Last', '»');
|
|
|
8533
8586
|
* @property {PageItem} Next
|
|
8534
8587
|
* @property {PageItem} Last
|
|
8535
8588
|
*/
|
|
8536
|
-
var Pagination = React__default
|
|
8589
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8537
8590
|
var bsPrefix = _ref.bsPrefix,
|
|
8538
8591
|
className = _ref.className,
|
|
8539
8592
|
children = _ref.children,
|
|
8540
8593
|
size = _ref.size,
|
|
8541
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8594
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8542
8595
|
|
|
8543
8596
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8544
|
-
return /*#__PURE__*/React__default
|
|
8597
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8545
8598
|
ref: ref
|
|
8546
8599
|
}, props, {
|
|
8547
|
-
className: index.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8600
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8548
8601
|
}), children);
|
|
8549
8602
|
});
|
|
8550
8603
|
Pagination.First = First;
|
|
@@ -8554,42 +8607,42 @@ Pagination.Item = PageItem;
|
|
|
8554
8607
|
Pagination.Next = Next;
|
|
8555
8608
|
Pagination.Last = Last;
|
|
8556
8609
|
|
|
8557
|
-
var PopoverTitle = React__default
|
|
8610
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8558
8611
|
var _ref$as = _ref.as,
|
|
8559
8612
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8560
8613
|
bsPrefix = _ref.bsPrefix,
|
|
8561
8614
|
className = _ref.className,
|
|
8562
8615
|
children = _ref.children,
|
|
8563
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8616
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8564
8617
|
|
|
8565
8618
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8566
|
-
return /*#__PURE__*/React__default
|
|
8619
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8567
8620
|
ref: ref
|
|
8568
8621
|
}, props, {
|
|
8569
|
-
className: index.classnames(bsPrefix, className)
|
|
8622
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8570
8623
|
}), children);
|
|
8571
8624
|
});
|
|
8572
8625
|
|
|
8573
|
-
var PopoverContent = React__default
|
|
8626
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8574
8627
|
var _ref$as = _ref.as,
|
|
8575
8628
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8576
8629
|
bsPrefix = _ref.bsPrefix,
|
|
8577
8630
|
className = _ref.className,
|
|
8578
8631
|
children = _ref.children,
|
|
8579
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8632
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8580
8633
|
|
|
8581
8634
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8582
|
-
return /*#__PURE__*/React__default
|
|
8635
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8583
8636
|
ref: ref
|
|
8584
8637
|
}, props, {
|
|
8585
|
-
className: index.classnames(className, bsPrefix)
|
|
8638
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8586
8639
|
}), children);
|
|
8587
8640
|
});
|
|
8588
8641
|
|
|
8589
8642
|
var defaultProps$x = {
|
|
8590
8643
|
placement: 'right'
|
|
8591
8644
|
};
|
|
8592
|
-
var Popover = React__default
|
|
8645
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8593
8646
|
var bsPrefix = _ref.bsPrefix,
|
|
8594
8647
|
placement = _ref.placement,
|
|
8595
8648
|
className = _ref.className,
|
|
@@ -8599,22 +8652,22 @@ var Popover = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8599
8652
|
arrowProps = _ref.arrowProps,
|
|
8600
8653
|
_ = _ref.popper,
|
|
8601
8654
|
_1 = _ref.show,
|
|
8602
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8655
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8603
8656
|
|
|
8604
8657
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8605
8658
|
|
|
8606
8659
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8607
8660
|
primaryPlacement = _ref2[0];
|
|
8608
8661
|
|
|
8609
|
-
return /*#__PURE__*/React__default
|
|
8662
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8610
8663
|
ref: ref,
|
|
8611
8664
|
role: "tooltip",
|
|
8612
8665
|
style: style,
|
|
8613
8666
|
"x-placement": primaryPlacement,
|
|
8614
|
-
className: index.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8615
|
-
}, props), /*#__PURE__*/React__default
|
|
8667
|
+
className: index$5.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8668
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8616
8669
|
className: "arrow"
|
|
8617
|
-
}, arrowProps)), content ? /*#__PURE__*/React__default
|
|
8670
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8618
8671
|
});
|
|
8619
8672
|
Popover.defaultProps = defaultProps$x;
|
|
8620
8673
|
Popover.Title = PopoverTitle;
|
|
@@ -8650,27 +8703,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8650
8703
|
style = _ref.style,
|
|
8651
8704
|
variant = _ref.variant,
|
|
8652
8705
|
bsPrefix = _ref.bsPrefix,
|
|
8653
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8706
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8654
8707
|
|
|
8655
|
-
return /*#__PURE__*/React__default
|
|
8708
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8656
8709
|
ref: ref
|
|
8657
8710
|
}, props, {
|
|
8658
8711
|
role: "progressbar",
|
|
8659
|
-
className: index.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8660
|
-
style: index._extends({
|
|
8712
|
+
className: index$5.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8713
|
+
style: index$5._extends({
|
|
8661
8714
|
width: getPercentage(now, min, max) + "%"
|
|
8662
8715
|
}, style),
|
|
8663
8716
|
"aria-valuenow": now,
|
|
8664
8717
|
"aria-valuemin": min,
|
|
8665
8718
|
"aria-valuemax": max
|
|
8666
|
-
}), srOnly ? /*#__PURE__*/React__default
|
|
8719
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8667
8720
|
className: "sr-only"
|
|
8668
8721
|
}, label) : label);
|
|
8669
8722
|
}
|
|
8670
8723
|
|
|
8671
|
-
var ProgressBar = React__default
|
|
8724
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8672
8725
|
var isChild = _ref2.isChild,
|
|
8673
|
-
props = index._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8726
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8674
8727
|
|
|
8675
8728
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8676
8729
|
|
|
@@ -8689,12 +8742,12 @@ var ProgressBar = React__default['default'].forwardRef(function (_ref2, ref) {
|
|
|
8689
8742
|
variant = props.variant,
|
|
8690
8743
|
className = props.className,
|
|
8691
8744
|
children = props.children,
|
|
8692
|
-
wrapperProps = index._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8745
|
+
wrapperProps = index$5._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8693
8746
|
|
|
8694
|
-
return /*#__PURE__*/React__default
|
|
8747
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8695
8748
|
ref: ref
|
|
8696
8749
|
}, wrapperProps, {
|
|
8697
|
-
className: index.classnames(className, bsPrefix)
|
|
8750
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8698
8751
|
}), children ? map(children, function (child) {
|
|
8699
8752
|
return React.cloneElement(child, {
|
|
8700
8753
|
isChild: true
|
|
@@ -8717,21 +8770,21 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8717
8770
|
var defaultProps$z = {
|
|
8718
8771
|
aspectRatio: '1by1'
|
|
8719
8772
|
};
|
|
8720
|
-
var ResponsiveEmbed = React__default
|
|
8773
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8721
8774
|
var bsPrefix = _ref.bsPrefix,
|
|
8722
8775
|
className = _ref.className,
|
|
8723
8776
|
children = _ref.children,
|
|
8724
8777
|
aspectRatio = _ref.aspectRatio,
|
|
8725
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8778
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8726
8779
|
|
|
8727
8780
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8728
|
-
var child = React__default
|
|
8729
|
-
return /*#__PURE__*/React__default
|
|
8781
|
+
var child = React__default.Children.only(children);
|
|
8782
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8730
8783
|
ref: ref
|
|
8731
8784
|
}, props, {
|
|
8732
|
-
className: index.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8733
|
-
}), React__default
|
|
8734
|
-
className: index.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8785
|
+
className: index$5.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8786
|
+
}), React__default.cloneElement(child, {
|
|
8787
|
+
className: index$5.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8735
8788
|
}));
|
|
8736
8789
|
});
|
|
8737
8790
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8740,13 +8793,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8740
8793
|
var defaultProps$A = {
|
|
8741
8794
|
noGutters: false
|
|
8742
8795
|
};
|
|
8743
|
-
var Row = React__default
|
|
8796
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8744
8797
|
var bsPrefix = _ref.bsPrefix,
|
|
8745
8798
|
className = _ref.className,
|
|
8746
8799
|
noGutters = _ref.noGutters,
|
|
8747
8800
|
_ref$as = _ref.as,
|
|
8748
8801
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8749
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8802
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8750
8803
|
|
|
8751
8804
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8752
8805
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8765,16 +8818,16 @@ var Row = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8765
8818
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8766
8819
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8767
8820
|
});
|
|
8768
|
-
return /*#__PURE__*/React__default
|
|
8821
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8769
8822
|
ref: ref
|
|
8770
8823
|
}, props, {
|
|
8771
|
-
className: index.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8824
|
+
className: index$5.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8772
8825
|
}));
|
|
8773
8826
|
});
|
|
8774
8827
|
Row.displayName = 'Row';
|
|
8775
8828
|
Row.defaultProps = defaultProps$A;
|
|
8776
8829
|
|
|
8777
|
-
var Spinner = React__default
|
|
8830
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8778
8831
|
var bsPrefix = _ref.bsPrefix,
|
|
8779
8832
|
variant = _ref.variant,
|
|
8780
8833
|
animation = _ref.animation,
|
|
@@ -8783,14 +8836,14 @@ var Spinner = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8783
8836
|
_ref$as = _ref.as,
|
|
8784
8837
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8785
8838
|
className = _ref.className,
|
|
8786
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8839
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8787
8840
|
|
|
8788
8841
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8789
8842
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8790
|
-
return /*#__PURE__*/React__default
|
|
8843
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8791
8844
|
ref: ref
|
|
8792
8845
|
}, props, {
|
|
8793
|
-
className: index.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8846
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8794
8847
|
}), children);
|
|
8795
8848
|
});
|
|
8796
8849
|
Spinner.displayName = 'Spinner';
|
|
@@ -8801,30 +8854,30 @@ var propTypes$a = {
|
|
|
8801
8854
|
* @type {string|number}
|
|
8802
8855
|
* @required
|
|
8803
8856
|
*/
|
|
8804
|
-
id: PropTypes__default
|
|
8857
|
+
id: PropTypes__default.any,
|
|
8805
8858
|
|
|
8806
8859
|
/**
|
|
8807
8860
|
* Accessible label for the toggle; the value of `title` if not specified.
|
|
8808
8861
|
*/
|
|
8809
|
-
toggleLabel: PropTypes__default
|
|
8862
|
+
toggleLabel: PropTypes__default.string,
|
|
8810
8863
|
|
|
8811
8864
|
/** An `href` passed to the non-toggle Button */
|
|
8812
|
-
href: PropTypes__default
|
|
8865
|
+
href: PropTypes__default.string,
|
|
8813
8866
|
|
|
8814
8867
|
/** An anchor `target` passed to the non-toggle Button */
|
|
8815
|
-
target: PropTypes__default
|
|
8868
|
+
target: PropTypes__default.string,
|
|
8816
8869
|
|
|
8817
8870
|
/** An `onClick` handler passed to the non-toggle Button */
|
|
8818
|
-
onClick: PropTypes__default
|
|
8871
|
+
onClick: PropTypes__default.func,
|
|
8819
8872
|
|
|
8820
8873
|
/** The content of the non-toggle Button. */
|
|
8821
|
-
title: PropTypes__default
|
|
8874
|
+
title: PropTypes__default.node.isRequired,
|
|
8822
8875
|
|
|
8823
8876
|
/** A `type` passed to the non-toggle Button */
|
|
8824
|
-
type: PropTypes__default
|
|
8877
|
+
type: PropTypes__default.string,
|
|
8825
8878
|
|
|
8826
8879
|
/** Disables both Buttons */
|
|
8827
|
-
disabled: PropTypes__default
|
|
8880
|
+
disabled: PropTypes__default.bool,
|
|
8828
8881
|
|
|
8829
8882
|
/**
|
|
8830
8883
|
* Aligns the dropdown menu responsively.
|
|
@@ -8836,32 +8889,32 @@ var propTypes$a = {
|
|
|
8836
8889
|
menuAlign: alignPropType,
|
|
8837
8890
|
|
|
8838
8891
|
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
8839
|
-
menuRole: PropTypes__default
|
|
8892
|
+
menuRole: PropTypes__default.string,
|
|
8840
8893
|
|
|
8841
8894
|
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
8842
|
-
renderMenuOnMount: PropTypes__default
|
|
8895
|
+
renderMenuOnMount: PropTypes__default.bool,
|
|
8843
8896
|
|
|
8844
8897
|
/**
|
|
8845
8898
|
* Which event when fired outside the component will cause it to be closed.
|
|
8846
8899
|
*
|
|
8847
8900
|
* _see [DropdownMenu](#dropdown-menu-props) for more details_
|
|
8848
8901
|
*/
|
|
8849
|
-
rootCloseEvent: PropTypes__default
|
|
8902
|
+
rootCloseEvent: PropTypes__default.string,
|
|
8850
8903
|
|
|
8851
8904
|
/** @ignore */
|
|
8852
|
-
bsPrefix: PropTypes__default
|
|
8905
|
+
bsPrefix: PropTypes__default.string,
|
|
8853
8906
|
|
|
8854
8907
|
/** @ignore */
|
|
8855
|
-
variant: PropTypes__default
|
|
8908
|
+
variant: PropTypes__default.string,
|
|
8856
8909
|
|
|
8857
8910
|
/** @ignore */
|
|
8858
|
-
size: PropTypes__default
|
|
8911
|
+
size: PropTypes__default.string
|
|
8859
8912
|
};
|
|
8860
8913
|
var defaultProps$B = {
|
|
8861
8914
|
toggleLabel: 'Toggle dropdown',
|
|
8862
8915
|
type: 'button'
|
|
8863
8916
|
};
|
|
8864
|
-
var SplitButton = React__default
|
|
8917
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8865
8918
|
var id = _ref.id,
|
|
8866
8919
|
bsPrefix = _ref.bsPrefix,
|
|
8867
8920
|
size = _ref.size,
|
|
@@ -8877,13 +8930,13 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8877
8930
|
menuRole = _ref.menuRole,
|
|
8878
8931
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8879
8932
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8880
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8933
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8881
8934
|
|
|
8882
|
-
return /*#__PURE__*/React__default
|
|
8935
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8883
8936
|
ref: ref
|
|
8884
8937
|
}, props, {
|
|
8885
8938
|
as: ButtonGroup
|
|
8886
|
-
}), /*#__PURE__*/React__default
|
|
8939
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8887
8940
|
size: size,
|
|
8888
8941
|
variant: variant,
|
|
8889
8942
|
disabled: props.disabled,
|
|
@@ -8892,16 +8945,16 @@ var SplitButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
8892
8945
|
target: target,
|
|
8893
8946
|
onClick: onClick,
|
|
8894
8947
|
type: type
|
|
8895
|
-
}, title), /*#__PURE__*/React__default
|
|
8948
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8896
8949
|
split: true,
|
|
8897
8950
|
id: id ? id.toString() : undefined,
|
|
8898
8951
|
size: size,
|
|
8899
8952
|
variant: variant,
|
|
8900
8953
|
disabled: props.disabled,
|
|
8901
8954
|
childBsPrefix: bsPrefix
|
|
8902
|
-
}, /*#__PURE__*/React__default
|
|
8955
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8903
8956
|
className: "sr-only"
|
|
8904
|
-
}, toggleLabel)), /*#__PURE__*/React__default
|
|
8957
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8905
8958
|
align: menuAlign,
|
|
8906
8959
|
role: menuRole,
|
|
8907
8960
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8945,25 +8998,25 @@ var TabContainer = function TabContainer(props) {
|
|
|
8945
8998
|
}
|
|
8946
8999
|
};
|
|
8947
9000
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8948
|
-
return /*#__PURE__*/React__default
|
|
9001
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8949
9002
|
value: tabContext
|
|
8950
|
-
}, /*#__PURE__*/React__default
|
|
9003
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8951
9004
|
value: onSelect || null
|
|
8952
9005
|
}, children));
|
|
8953
9006
|
};
|
|
8954
9007
|
|
|
8955
|
-
var TabContent = React__default
|
|
9008
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8956
9009
|
var bsPrefix = _ref.bsPrefix,
|
|
8957
9010
|
_ref$as = _ref.as,
|
|
8958
9011
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8959
9012
|
className = _ref.className,
|
|
8960
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9013
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
8961
9014
|
|
|
8962
9015
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8963
|
-
return /*#__PURE__*/React__default
|
|
9016
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8964
9017
|
ref: ref
|
|
8965
9018
|
}, props, {
|
|
8966
|
-
className: index.classnames(className, decoratedBsPrefix)
|
|
9019
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
8967
9020
|
}));
|
|
8968
9021
|
});
|
|
8969
9022
|
|
|
@@ -8974,11 +9027,11 @@ function useTabContext(props) {
|
|
|
8974
9027
|
var activeKey = context.activeKey,
|
|
8975
9028
|
getControlledId = context.getControlledId,
|
|
8976
9029
|
getControllerId = context.getControllerId,
|
|
8977
|
-
rest = index._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9030
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8978
9031
|
|
|
8979
9032
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8980
9033
|
var key = makeEventKey(props.eventKey);
|
|
8981
|
-
return index._extends({}, props, {
|
|
9034
|
+
return index$5._extends({}, props, {
|
|
8982
9035
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8983
9036
|
id: getControlledId(props.eventKey),
|
|
8984
9037
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8988,7 +9041,7 @@ function useTabContext(props) {
|
|
|
8988
9041
|
});
|
|
8989
9042
|
}
|
|
8990
9043
|
|
|
8991
|
-
var TabPane = React__default
|
|
9044
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8992
9045
|
var _useTabContext = useTabContext(props),
|
|
8993
9046
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8994
9047
|
className = _useTabContext.className,
|
|
@@ -9005,19 +9058,19 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9005
9058
|
_useTabContext$as = _useTabContext.as,
|
|
9006
9059
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9007
9060
|
_ = _useTabContext.eventKey,
|
|
9008
|
-
rest = index._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9061
|
+
rest = index$5._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9009
9062
|
|
|
9010
9063
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9011
9064
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9012
|
-
var pane = /*#__PURE__*/React__default
|
|
9065
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
9013
9066
|
ref: ref,
|
|
9014
9067
|
role: "tabpanel",
|
|
9015
9068
|
"aria-hidden": !active,
|
|
9016
|
-
className: index.classnames(className, prefix, {
|
|
9069
|
+
className: index$5.classnames(className, prefix, {
|
|
9017
9070
|
active: active
|
|
9018
9071
|
})
|
|
9019
9072
|
}));
|
|
9020
|
-
if (Transition) pane = /*#__PURE__*/React__default
|
|
9073
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9021
9074
|
in: active,
|
|
9022
9075
|
onEnter: onEnter,
|
|
9023
9076
|
onEntering: onEntering,
|
|
@@ -9030,9 +9083,9 @@ var TabPane = React__default['default'].forwardRef(function (props, ref) {
|
|
|
9030
9083
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9031
9084
|
// conflict with the top level one.
|
|
9032
9085
|
|
|
9033
|
-
return /*#__PURE__*/React__default
|
|
9086
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9034
9087
|
value: null
|
|
9035
|
-
}, /*#__PURE__*/React__default
|
|
9088
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9036
9089
|
value: null
|
|
9037
9090
|
}, pane));
|
|
9038
9091
|
});
|
|
@@ -9053,13 +9106,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9053
9106
|
};
|
|
9054
9107
|
|
|
9055
9108
|
return Tab;
|
|
9056
|
-
}(React__default
|
|
9109
|
+
}(React__default.Component);
|
|
9057
9110
|
|
|
9058
9111
|
Tab.Container = TabContainer;
|
|
9059
9112
|
Tab.Content = TabContent;
|
|
9060
9113
|
Tab.Pane = TabPane;
|
|
9061
9114
|
|
|
9062
|
-
var Table = React__default
|
|
9115
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9063
9116
|
var bsPrefix = _ref.bsPrefix,
|
|
9064
9117
|
className = _ref.className,
|
|
9065
9118
|
striped = _ref.striped,
|
|
@@ -9069,11 +9122,11 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9069
9122
|
size = _ref.size,
|
|
9070
9123
|
variant = _ref.variant,
|
|
9071
9124
|
responsive = _ref.responsive,
|
|
9072
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9125
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9073
9126
|
|
|
9074
9127
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9075
|
-
var classes = index.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9076
|
-
var table = /*#__PURE__*/React__default
|
|
9128
|
+
var classes = index$5.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9129
|
+
var table = /*#__PURE__*/React__default.createElement("table", index$5._extends({}, props, {
|
|
9077
9130
|
className: classes,
|
|
9078
9131
|
ref: ref
|
|
9079
9132
|
}));
|
|
@@ -9085,7 +9138,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9085
9138
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9086
9139
|
}
|
|
9087
9140
|
|
|
9088
|
-
return /*#__PURE__*/React__default
|
|
9141
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9089
9142
|
className: responsiveClass
|
|
9090
9143
|
}, table);
|
|
9091
9144
|
}
|
|
@@ -9093,7 +9146,7 @@ var Table = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9093
9146
|
return table;
|
|
9094
9147
|
});
|
|
9095
9148
|
|
|
9096
|
-
var ToastContext = React__default
|
|
9149
|
+
var ToastContext = React__default.createContext({
|
|
9097
9150
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9098
9151
|
onClose: function onClose() {}
|
|
9099
9152
|
});
|
|
@@ -9102,13 +9155,13 @@ var defaultProps$C = {
|
|
|
9102
9155
|
closeLabel: 'Close',
|
|
9103
9156
|
closeButton: true
|
|
9104
9157
|
};
|
|
9105
|
-
var ToastHeader = React__default
|
|
9158
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9106
9159
|
var bsPrefix = _ref.bsPrefix,
|
|
9107
9160
|
closeLabel = _ref.closeLabel,
|
|
9108
9161
|
closeButton = _ref.closeButton,
|
|
9109
9162
|
className = _ref.className,
|
|
9110
9163
|
children = _ref.children,
|
|
9111
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9164
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9112
9165
|
|
|
9113
9166
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9114
9167
|
var context = React.useContext(ToastContext);
|
|
@@ -9117,11 +9170,11 @@ var ToastHeader = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9117
9170
|
context.onClose(e);
|
|
9118
9171
|
}
|
|
9119
9172
|
});
|
|
9120
|
-
return /*#__PURE__*/React__default
|
|
9173
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9121
9174
|
ref: ref
|
|
9122
9175
|
}, props, {
|
|
9123
|
-
className: index.classnames(bsPrefix, className)
|
|
9124
|
-
}), children, closeButton && /*#__PURE__*/React__default
|
|
9176
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9177
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9125
9178
|
label: closeLabel,
|
|
9126
9179
|
onClick: handleClick,
|
|
9127
9180
|
className: "ml-2 mb-1",
|
|
@@ -9133,7 +9186,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9133
9186
|
|
|
9134
9187
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9135
9188
|
|
|
9136
|
-
var Toast = React__default
|
|
9189
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9137
9190
|
var bsPrefix = _ref.bsPrefix,
|
|
9138
9191
|
className = _ref.className,
|
|
9139
9192
|
children = _ref.children,
|
|
@@ -9148,7 +9201,7 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9148
9201
|
_ref$autohide = _ref.autohide,
|
|
9149
9202
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9150
9203
|
onClose = _ref.onClose,
|
|
9151
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9204
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9152
9205
|
|
|
9153
9206
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9154
9207
|
// timer in case these values change.
|
|
@@ -9176,16 +9229,16 @@ var Toast = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9176
9229
|
};
|
|
9177
9230
|
}, [onClose]);
|
|
9178
9231
|
var hasAnimation = !!(Transition && animation);
|
|
9179
|
-
var toast = /*#__PURE__*/React__default
|
|
9232
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9180
9233
|
ref: ref,
|
|
9181
|
-
className: index.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9234
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9182
9235
|
role: "alert",
|
|
9183
9236
|
"aria-live": "assertive",
|
|
9184
9237
|
"aria-atomic": "true"
|
|
9185
9238
|
}), children);
|
|
9186
|
-
return /*#__PURE__*/React__default
|
|
9239
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9187
9240
|
value: toastContext
|
|
9188
|
-
}, hasAnimation && Transition ? /*#__PURE__*/React__default
|
|
9241
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9189
9242
|
in: show,
|
|
9190
9243
|
unmountOnExit: true
|
|
9191
9244
|
}, toast) : toast);
|
|
@@ -9200,7 +9253,7 @@ var noop$5 = function noop() {
|
|
|
9200
9253
|
return undefined;
|
|
9201
9254
|
};
|
|
9202
9255
|
|
|
9203
|
-
var ToggleButton = React__default
|
|
9256
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9204
9257
|
var children = _ref.children,
|
|
9205
9258
|
name = _ref.name,
|
|
9206
9259
|
className = _ref.className,
|
|
@@ -9210,7 +9263,7 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9210
9263
|
value = _ref.value,
|
|
9211
9264
|
disabled = _ref.disabled,
|
|
9212
9265
|
inputRef = _ref.inputRef,
|
|
9213
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9266
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9214
9267
|
|
|
9215
9268
|
var _useState = React.useState(false),
|
|
9216
9269
|
focused = _useState[0],
|
|
@@ -9222,13 +9275,13 @@ var ToggleButton = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9222
9275
|
var handleBlur = React.useCallback(function (e) {
|
|
9223
9276
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9224
9277
|
}, []);
|
|
9225
|
-
return /*#__PURE__*/React__default
|
|
9278
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9226
9279
|
ref: ref,
|
|
9227
|
-
className: index.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9280
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9228
9281
|
type: undefined,
|
|
9229
9282
|
active: !!checked,
|
|
9230
9283
|
as: "label"
|
|
9231
|
-
}), /*#__PURE__*/React__default
|
|
9284
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9232
9285
|
name: name,
|
|
9233
9286
|
type: type,
|
|
9234
9287
|
value: value,
|
|
@@ -9247,7 +9300,7 @@ var defaultProps$D = {
|
|
|
9247
9300
|
type: 'radio',
|
|
9248
9301
|
vertical: false
|
|
9249
9302
|
};
|
|
9250
|
-
var ToggleButtonGroup = React__default
|
|
9303
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9251
9304
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9252
9305
|
value: 'onChange'
|
|
9253
9306
|
}),
|
|
@@ -9256,7 +9309,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9256
9309
|
name = _useUncontrolled.name,
|
|
9257
9310
|
value = _useUncontrolled.value,
|
|
9258
9311
|
onChange = _useUncontrolled.onChange,
|
|
9259
|
-
controlledProps = index._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9312
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9260
9313
|
|
|
9261
9314
|
var getValues = function getValues() {
|
|
9262
9315
|
return value == null ? [] : [].concat(value);
|
|
@@ -9285,7 +9338,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9285
9338
|
};
|
|
9286
9339
|
|
|
9287
9340
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9288
|
-
return /*#__PURE__*/React__default
|
|
9341
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9289
9342
|
ref: ref,
|
|
9290
9343
|
toggle: true
|
|
9291
9344
|
}), map(children, function (child) {
|
|
@@ -9298,7 +9351,7 @@ var ToggleButtonGroup = React__default['default'].forwardRef(function (props, re
|
|
|
9298
9351
|
return handleToggle(childVal, e);
|
|
9299
9352
|
};
|
|
9300
9353
|
|
|
9301
|
-
return React__default
|
|
9354
|
+
return React__default.cloneElement(child, {
|
|
9302
9355
|
type: type,
|
|
9303
9356
|
name: child.name || name,
|
|
9304
9357
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9312,7 +9365,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9312
9365
|
var defaultProps$E = {
|
|
9313
9366
|
placement: 'right'
|
|
9314
9367
|
};
|
|
9315
|
-
var Tooltip = React__default
|
|
9368
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9316
9369
|
var bsPrefix = _ref.bsPrefix,
|
|
9317
9370
|
placement = _ref.placement,
|
|
9318
9371
|
className = _ref.className,
|
|
@@ -9321,22 +9374,22 @@ var Tooltip = React__default['default'].forwardRef(function (_ref, ref) {
|
|
|
9321
9374
|
arrowProps = _ref.arrowProps,
|
|
9322
9375
|
_ = _ref.popper,
|
|
9323
9376
|
_2 = _ref.show,
|
|
9324
|
-
props = index._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9377
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9325
9378
|
|
|
9326
9379
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9327
9380
|
|
|
9328
9381
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9329
9382
|
primaryPlacement = _ref2[0];
|
|
9330
9383
|
|
|
9331
|
-
return /*#__PURE__*/React__default
|
|
9384
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9332
9385
|
ref: ref,
|
|
9333
9386
|
style: style,
|
|
9334
9387
|
role: "tooltip",
|
|
9335
9388
|
"x-placement": primaryPlacement,
|
|
9336
|
-
className: index.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9337
|
-
}, props), /*#__PURE__*/React__default
|
|
9389
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9390
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9338
9391
|
className: "arrow"
|
|
9339
|
-
}, arrowProps)), /*#__PURE__*/React__default
|
|
9392
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9340
9393
|
className: bsPrefix + "-inner"
|
|
9341
9394
|
}, children));
|
|
9342
9395
|
});
|
|
@@ -9354,54 +9407,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9354
9407
|
client = props.client;
|
|
9355
9408
|
|
|
9356
9409
|
|
|
9357
|
-
return React__default
|
|
9410
|
+
return React__default.createElement(
|
|
9358
9411
|
'div',
|
|
9359
9412
|
{ className: styles.article },
|
|
9360
|
-
React__default
|
|
9413
|
+
React__default.createElement(
|
|
9361
9414
|
'a',
|
|
9362
9415
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9363
|
-
React__default
|
|
9416
|
+
React__default.createElement(
|
|
9364
9417
|
'div',
|
|
9365
9418
|
{ className: styles.thumb },
|
|
9366
|
-
React__default
|
|
9419
|
+
React__default.createElement(
|
|
9367
9420
|
'figure',
|
|
9368
9421
|
null,
|
|
9369
|
-
React__default
|
|
9370
|
-
index$
|
|
9422
|
+
React__default.createElement(
|
|
9423
|
+
index$2.LazyLoad,
|
|
9371
9424
|
null,
|
|
9372
|
-
React__default
|
|
9425
|
+
React__default.createElement('img', {
|
|
9373
9426
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9374
9427
|
})
|
|
9375
9428
|
)
|
|
9376
9429
|
)
|
|
9377
9430
|
),
|
|
9378
|
-
React__default
|
|
9431
|
+
React__default.createElement(
|
|
9379
9432
|
'div',
|
|
9380
9433
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9381
|
-
React__default
|
|
9434
|
+
React__default.createElement(
|
|
9382
9435
|
'div',
|
|
9383
9436
|
{ className: styles.name },
|
|
9384
9437
|
data.name
|
|
9385
9438
|
),
|
|
9386
|
-
data.published && React__default
|
|
9439
|
+
data.published && React__default.createElement(
|
|
9387
9440
|
'p',
|
|
9388
9441
|
{ className: styles.published },
|
|
9389
9442
|
moment.moment(data.published).format('MMMM Do YYYY')
|
|
9390
9443
|
),
|
|
9391
|
-
data.authorMapping && data.authorMapping.displayName && React__default
|
|
9444
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9392
9445
|
'p',
|
|
9393
9446
|
{ className: styles.author },
|
|
9394
9447
|
'By ',
|
|
9395
|
-
React__default
|
|
9448
|
+
React__default.createElement(
|
|
9396
9449
|
'span',
|
|
9397
9450
|
null,
|
|
9398
9451
|
data.authorMapping.displayName
|
|
9399
9452
|
)
|
|
9400
9453
|
),
|
|
9401
|
-
data.description && React__default
|
|
9454
|
+
data.description && React__default.createElement(
|
|
9402
9455
|
'div',
|
|
9403
9456
|
{ className: 'media-series-desc' },
|
|
9404
|
-
React__default
|
|
9457
|
+
React__default.createElement(BlockContent.BlockContent, { blocks: data.description, serializers: getSerializers.getSerializers(client) })
|
|
9405
9458
|
)
|
|
9406
9459
|
)
|
|
9407
9460
|
)
|
|
@@ -9449,7 +9502,7 @@ var Filter = function Filter(_ref) {
|
|
|
9449
9502
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9450
9503
|
if (type === 'parent') {
|
|
9451
9504
|
setParentData(function (prevState) {
|
|
9452
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9505
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null });
|
|
9453
9506
|
});
|
|
9454
9507
|
if (group && group.children && group.children.length > 0) {
|
|
9455
9508
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9463,7 +9516,7 @@ var Filter = function Filter(_ref) {
|
|
|
9463
9516
|
}
|
|
9464
9517
|
if (type === 'child') {
|
|
9465
9518
|
setChildData(function (prevState) {
|
|
9466
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9519
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9467
9520
|
});
|
|
9468
9521
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9469
9522
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9482,7 +9535,7 @@ var Filter = function Filter(_ref) {
|
|
|
9482
9535
|
}
|
|
9483
9536
|
if (type === 'grandchild') {
|
|
9484
9537
|
setGrandChildData(function (prevState) {
|
|
9485
|
-
return _extends._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9538
|
+
return _extends$1._extends({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9486
9539
|
});
|
|
9487
9540
|
//handle filter
|
|
9488
9541
|
if (!group._id) {
|
|
@@ -9498,13 +9551,13 @@ var Filter = function Filter(_ref) {
|
|
|
9498
9551
|
}
|
|
9499
9552
|
};
|
|
9500
9553
|
|
|
9501
|
-
return React__default
|
|
9554
|
+
return React__default.createElement(
|
|
9502
9555
|
'div',
|
|
9503
9556
|
{ className: 'flex-container' },
|
|
9504
|
-
parentData && React__default
|
|
9557
|
+
parentData && React__default.createElement(
|
|
9505
9558
|
DropdownButton,
|
|
9506
9559
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9507
|
-
React__default
|
|
9560
|
+
React__default.createElement(
|
|
9508
9561
|
Dropdown$1.Item,
|
|
9509
9562
|
{ onSelect: function onSelect() {
|
|
9510
9563
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9513,7 +9566,7 @@ var Filter = function Filter(_ref) {
|
|
|
9513
9566
|
),
|
|
9514
9567
|
parentData.data.map(function (docGroup) {
|
|
9515
9568
|
if (!docGroup._id) return null;
|
|
9516
|
-
return React__default
|
|
9569
|
+
return React__default.createElement(
|
|
9517
9570
|
Dropdown$1.Item,
|
|
9518
9571
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9519
9572
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9522,10 +9575,10 @@ var Filter = function Filter(_ref) {
|
|
|
9522
9575
|
);
|
|
9523
9576
|
})
|
|
9524
9577
|
),
|
|
9525
|
-
childData && childData.data && childData.data.length > 0 && React__default
|
|
9578
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9526
9579
|
DropdownButton,
|
|
9527
9580
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9528
|
-
React__default
|
|
9581
|
+
React__default.createElement(
|
|
9529
9582
|
Dropdown$1.Item,
|
|
9530
9583
|
{ onSelect: function onSelect() {
|
|
9531
9584
|
return handleFilterSelect({}, 'child');
|
|
@@ -9534,7 +9587,7 @@ var Filter = function Filter(_ref) {
|
|
|
9534
9587
|
),
|
|
9535
9588
|
childData.data.map(function (docGroup) {
|
|
9536
9589
|
if (!docGroup._id) return null;
|
|
9537
|
-
return React__default
|
|
9590
|
+
return React__default.createElement(
|
|
9538
9591
|
Dropdown$1.Item,
|
|
9539
9592
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9540
9593
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9543,10 +9596,10 @@ var Filter = function Filter(_ref) {
|
|
|
9543
9596
|
);
|
|
9544
9597
|
})
|
|
9545
9598
|
),
|
|
9546
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default
|
|
9599
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9547
9600
|
DropdownButton,
|
|
9548
9601
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9549
|
-
React__default
|
|
9602
|
+
React__default.createElement(
|
|
9550
9603
|
Dropdown$1.Item,
|
|
9551
9604
|
{ onSelect: function onSelect() {
|
|
9552
9605
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9555,7 +9608,7 @@ var Filter = function Filter(_ref) {
|
|
|
9555
9608
|
),
|
|
9556
9609
|
grandChildData.data.map(function (docGroup) {
|
|
9557
9610
|
if (!docGroup._id) return null;
|
|
9558
|
-
return React__default
|
|
9611
|
+
return React__default.createElement(
|
|
9559
9612
|
Dropdown$1.Item,
|
|
9560
9613
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9561
9614
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9564,7 +9617,7 @@ var Filter = function Filter(_ref) {
|
|
|
9564
9617
|
);
|
|
9565
9618
|
})
|
|
9566
9619
|
),
|
|
9567
|
-
React__default
|
|
9620
|
+
React__default.createElement(
|
|
9568
9621
|
'style',
|
|
9569
9622
|
{ jsx: 'true' },
|
|
9570
9623
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9606,13 +9659,13 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9606
9659
|
}, [filterTopicID]);
|
|
9607
9660
|
|
|
9608
9661
|
var fetchFilteredData = function () {
|
|
9609
|
-
var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee() {
|
|
9662
|
+
var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee() {
|
|
9610
9663
|
var newParams, filterQuery, x, seriesQuery, newData;
|
|
9611
|
-
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
9664
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
|
|
9612
9665
|
while (1) {
|
|
9613
9666
|
switch (_context.prev = _context.next) {
|
|
9614
9667
|
case 0:
|
|
9615
|
-
newParams = _extends._extends({}, params, { from: 0, to: 10 });
|
|
9668
|
+
newParams = _extends$1._extends({}, params, { from: 0, to: 10 });
|
|
9616
9669
|
filterQuery = void 0;
|
|
9617
9670
|
|
|
9618
9671
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof._typeof(filterTopicID)) == 'object') {
|
|
@@ -9654,27 +9707,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9654
9707
|
}();
|
|
9655
9708
|
|
|
9656
9709
|
if (props.statusCode === 404) {
|
|
9657
|
-
return React__default
|
|
9710
|
+
return React__default.createElement(
|
|
9658
9711
|
'div',
|
|
9659
9712
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9660
|
-
React__default
|
|
9713
|
+
React__default.createElement(
|
|
9661
9714
|
'h3',
|
|
9662
9715
|
null,
|
|
9663
9716
|
'404: Resource not found'
|
|
9664
9717
|
),
|
|
9665
|
-
React__default
|
|
9718
|
+
React__default.createElement(
|
|
9666
9719
|
'p',
|
|
9667
9720
|
null,
|
|
9668
9721
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9669
9722
|
),
|
|
9670
|
-
React__default
|
|
9723
|
+
React__default.createElement(
|
|
9671
9724
|
'p',
|
|
9672
9725
|
null,
|
|
9673
9726
|
'Click here to',
|
|
9674
|
-
React__default
|
|
9675
|
-
|
|
9727
|
+
React__default.createElement(
|
|
9728
|
+
Link,
|
|
9676
9729
|
{ href: '/' },
|
|
9677
|
-
React__default
|
|
9730
|
+
React__default.createElement(
|
|
9678
9731
|
'a',
|
|
9679
9732
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9680
9733
|
' return to homepage.'
|
|
@@ -9684,17 +9737,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9684
9737
|
);
|
|
9685
9738
|
}
|
|
9686
9739
|
|
|
9687
|
-
return React__default
|
|
9740
|
+
return React__default.createElement(
|
|
9688
9741
|
'div',
|
|
9689
9742
|
{ className: 'mb-5' },
|
|
9690
|
-
props.docGroup && props.docGroup.description && React__default
|
|
9691
|
-
props.taxonomyFilter && props.taxonomyFilter && React__default
|
|
9743
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent.BlockContent, { blocks: props.docGroup.description, serializers: getSerializers.getSerializers(client) }),
|
|
9744
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9692
9745
|
'div',
|
|
9693
9746
|
{ className: '' },
|
|
9694
|
-
React__default
|
|
9695
|
-
React__default
|
|
9747
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9748
|
+
React__default.createElement('hr', null)
|
|
9696
9749
|
),
|
|
9697
|
-
seriesData && React__default
|
|
9750
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9698
9751
|
deck: MediaSeriesCard,
|
|
9699
9752
|
variant: 'left',
|
|
9700
9753
|
defaultImage: '/placeholder.jpg',
|
|
@@ -9711,11 +9764,11 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9711
9764
|
};
|
|
9712
9765
|
|
|
9713
9766
|
MediaSeriesLanding.getInitialData = function () {
|
|
9714
|
-
var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9767
|
+
var _ref3 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9715
9768
|
var _ref4;
|
|
9716
9769
|
|
|
9717
9770
|
var urlQuery, pathname, req, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9718
|
-
return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
|
|
9771
|
+
return asyncToGenerator$1.regenerator.wrap(function _callee2$(_context2) {
|
|
9719
9772
|
while (1) {
|
|
9720
9773
|
switch (_context2.prev = _context2.next) {
|
|
9721
9774
|
case 0:
|
|
@@ -9798,7 +9851,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9798
9851
|
statusCode = 404;
|
|
9799
9852
|
}
|
|
9800
9853
|
|
|
9801
|
-
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9854
|
+
return _context2.abrupt('return', (_ref4 = { seriesData: seriesData, query: seriesQuery, params: params, currentPage: currentPage, taxonomyFilter: taxonomyFilter, identifier: identifier, docGroupID: docGroupID._id, parentUrl: identifier, statusCode: statusCode }, defineProperty$1$1._defineProperty(_ref4, 'taxonomyFilter', taxonomyFilter), defineProperty$1$1._defineProperty(_ref4, 'docGroup', docGroupID), _ref4));
|
|
9802
9855
|
|
|
9803
9856
|
case 25:
|
|
9804
9857
|
case 'end':
|