@mjhls/mjh-framework 1.0.863-author-details-v1 → 1.0.863-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +9 -13
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1229 -133
- 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 +201 -207
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +67 -76
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-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-04a5a4a2.js → index-a1e54356.js} +934 -961
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +7 -10
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1227 -130
- 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 +182 -184
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +54 -62
- 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-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-cf54da7f.js → index-a1c5f00a.js} +887 -904
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +1 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -6,33 +6,33 @@ import './_iter-detect-5d49a330.js';
|
|
|
6
6
|
import './toConsumableArray-43aa614d.js';
|
|
7
7
|
import './core.get-iterator-method-e1de7503.js';
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
|
-
import { _ as _extends$
|
|
9
|
+
import { _ as _extends$2 } from './extends-6f2fcc99.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-
|
|
14
|
+
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
16
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
17
17
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-41a678ea.js';
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Container';
|
|
21
21
|
import 'react-bootstrap/Row';
|
|
22
22
|
import 'react-bootstrap/Col';
|
|
23
23
|
import 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
25
25
|
import 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
27
|
import './debounce-9207d8ee.js';
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import './index.es-
|
|
29
|
+
import './index.es-29c1cef5.js';
|
|
30
30
|
import ReactDOM from 'react-dom';
|
|
31
|
-
import './visibility-sensor-
|
|
32
|
-
import './index-
|
|
31
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
32
|
+
import './index-73819142.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
|
-
import { L as LazyLoad } from './index-
|
|
35
|
-
import './main-
|
|
34
|
+
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
35
|
+
import './main-e4a934b2.js';
|
|
36
36
|
import './entities-7cc3bf45.js';
|
|
37
37
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
38
|
import './stringify-4330ccdc.js';
|
|
@@ -40,20 +40,20 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
|
|
|
40
40
|
import './Segment.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import './ADInfeed-
|
|
44
|
-
import './lodash-
|
|
45
|
-
import './ADlgInfeed-
|
|
43
|
+
import './ADInfeed-1cc9d817.js';
|
|
44
|
+
import './lodash-17fdfebb.js';
|
|
45
|
+
import './ADlgInfeed-8c4f129e.js';
|
|
46
46
|
import 'react-bootstrap/Button';
|
|
47
|
-
import { B as BlockContent } from './BlockContent-
|
|
47
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
48
48
|
import './index-c7e2ac95.js';
|
|
49
49
|
import './smoothscroll-0cd4c7a6.js';
|
|
50
50
|
import './GroupDeck.js';
|
|
51
51
|
import 'react-bootstrap';
|
|
52
52
|
import './iconBase-602d52fe.js';
|
|
53
|
-
import './index.esm-
|
|
54
|
-
import { g as getSerializers } from './index-
|
|
53
|
+
import './index.esm-29e48d38.js';
|
|
54
|
+
import { g as getSerializers } from './index-a1c5f00a.js';
|
|
55
55
|
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
59
|
import './SocialShare.js';
|
|
@@ -65,7 +65,7 @@ import 'react-bootstrap/Tooltip';
|
|
|
65
65
|
import 'react-bootstrap/Popover';
|
|
66
66
|
import MasterDeck from './MasterDeck.js';
|
|
67
67
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
-
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
69
69
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
70
|
import Link from 'next/link';
|
|
71
71
|
|
|
@@ -162,7 +162,7 @@ function useUncontrolled(props, config) {
|
|
|
162
162
|
var _ref = result,
|
|
163
163
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
164
164
|
propsValue = _ref[fieldName],
|
|
165
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
165
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
166
166
|
|
|
167
167
|
var handlerName = config[fieldName];
|
|
168
168
|
|
|
@@ -170,7 +170,7 @@ function useUncontrolled(props, config) {
|
|
|
170
170
|
value = _useUncontrolledProp[0],
|
|
171
171
|
handler = _useUncontrolledProp[1];
|
|
172
172
|
|
|
173
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
173
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
174
174
|
}, props);
|
|
175
175
|
}
|
|
176
176
|
|
|
@@ -180,7 +180,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
180
180
|
subClass.__proto__ = superClass;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
var ThemeContext =
|
|
183
|
+
var ThemeContext = React__default.createContext({});
|
|
184
184
|
var Consumer = ThemeContext.Consumer,
|
|
185
185
|
Provider = ThemeContext.Provider;
|
|
186
186
|
|
|
@@ -189,7 +189,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
189
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React__default.createContext(null);
|
|
193
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
194
194
|
if (href === void 0) {
|
|
195
195
|
href = null;
|
|
@@ -199,7 +199,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
199
|
return href || null;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
var context =
|
|
202
|
+
var context = React__default.createContext(null);
|
|
203
203
|
context.displayName = 'AccordionContext';
|
|
204
204
|
|
|
205
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -215,13 +215,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
215
215
|
if (onClick) onClick(e);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
219
219
|
var _ref$as = _ref.as,
|
|
220
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
221
221
|
children = _ref.children,
|
|
222
222
|
eventKey = _ref.eventKey,
|
|
223
223
|
onClick = _ref.onClick,
|
|
224
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
224
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
225
225
|
|
|
226
226
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
227
227
|
|
|
@@ -229,7 +229,7 @@ var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
|
229
229
|
props.type = 'button';
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
233
233
|
ref: ref,
|
|
234
234
|
onClick: accordionOnClick
|
|
235
235
|
}, props), children);
|
|
@@ -426,7 +426,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
426
426
|
exitActive: PropTypes.string
|
|
427
427
|
})]) : null;
|
|
428
428
|
|
|
429
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React__default.createContext(null);
|
|
430
430
|
|
|
431
431
|
var UNMOUNTED = 'unmounted';
|
|
432
432
|
var EXITED = 'exited';
|
|
@@ -811,19 +811,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
811
811
|
_onExiting = _this$props.onExiting,
|
|
812
812
|
_onExited = _this$props.onExited,
|
|
813
813
|
_nodeRef = _this$props.nodeRef,
|
|
814
|
-
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
815
815
|
|
|
816
816
|
return (
|
|
817
817
|
/*#__PURE__*/
|
|
818
818
|
// allows for nested Transitions
|
|
819
|
-
|
|
819
|
+
React__default.createElement(TransitionGroupContext.Provider, {
|
|
820
820
|
value: null
|
|
821
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React__default.cloneElement(React__default.Children.only(children), childProps))
|
|
822
822
|
);
|
|
823
823
|
};
|
|
824
824
|
|
|
825
825
|
return Transition;
|
|
826
|
-
}(
|
|
826
|
+
}(React__default.Component);
|
|
827
827
|
|
|
828
828
|
Transition.contextType = TransitionGroupContext;
|
|
829
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1099,7 +1099,7 @@ var defaultProps = {
|
|
|
1099
1099
|
appear: false,
|
|
1100
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1101
1101
|
};
|
|
1102
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
1103
1103
|
var onEnter = _ref.onEnter,
|
|
1104
1104
|
onEntering = _ref.onEntering,
|
|
1105
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1111,7 +1111,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1111
1111
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1112
1112
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1113
1113
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1114
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1114
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1115
1115
|
|
|
1116
1116
|
/* Compute dimension */
|
|
1117
1117
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1146,8 +1146,8 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1146
1146
|
elem.style[computedDimension] = null;
|
|
1147
1147
|
}, onExiting);
|
|
1148
1148
|
}, [computedDimension, onExiting]);
|
|
1149
|
-
return /*#__PURE__*/
|
|
1150
|
-
, _extends({
|
|
1149
|
+
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1150
|
+
, _extends$1({
|
|
1151
1151
|
ref: ref,
|
|
1152
1152
|
addEndListener: transitionEnd
|
|
1153
1153
|
}, props, {
|
|
@@ -1158,7 +1158,7 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1158
1158
|
onExit: handleExit,
|
|
1159
1159
|
onExiting: handleExiting
|
|
1160
1160
|
}), function (state, innerProps) {
|
|
1161
|
-
return
|
|
1161
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1162
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1163
1163
|
}));
|
|
1164
1164
|
});
|
|
@@ -1167,24 +1167,24 @@ var Collapse = React.forwardRef(function (_ref, ref) {
|
|
|
1167
1167
|
// @ts-ignore
|
|
1168
1168
|
Collapse.defaultProps = defaultProps;
|
|
1169
1169
|
|
|
1170
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1171
1171
|
var children = _ref.children,
|
|
1172
1172
|
eventKey = _ref.eventKey,
|
|
1173
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1173
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1174
1174
|
|
|
1175
1175
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1176
1176
|
// from collapsing the accordion when clicked.
|
|
1177
1177
|
|
|
1178
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1179
1179
|
value: null
|
|
1180
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1181
1181
|
ref: ref,
|
|
1182
1182
|
in: contextEventKey === eventKey
|
|
1183
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
1184
1184
|
});
|
|
1185
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1186
1186
|
|
|
1187
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React__default.forwardRef(function (props, ref) {
|
|
1188
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1189
1189
|
activeKey: 'onSelect'
|
|
1190
1190
|
}),
|
|
@@ -1195,14 +1195,14 @@ var Accordion = React.forwardRef(function (props, ref) {
|
|
|
1195
1195
|
children = _useUncontrolled.children,
|
|
1196
1196
|
className = _useUncontrolled.className,
|
|
1197
1197
|
onSelect = _useUncontrolled.onSelect,
|
|
1198
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1198
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1199
|
|
|
1200
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1202
1202
|
value: activeKey || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1204
1204
|
value: onSelect || null
|
|
1205
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1206
1206
|
ref: ref
|
|
1207
1207
|
}, controlledProps, {
|
|
1208
1208
|
className: finalClassName
|
|
@@ -1246,22 +1246,22 @@ var defaultProps$1 = {
|
|
|
1246
1246
|
appear: false
|
|
1247
1247
|
};
|
|
1248
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1249
|
-
var Fade =
|
|
1249
|
+
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1250
1250
|
var className = _ref.className,
|
|
1251
1251
|
children = _ref.children,
|
|
1252
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1252
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1253
1253
|
|
|
1254
1254
|
var handleEnter = useCallback(function (node) {
|
|
1255
1255
|
triggerBrowserReflow(node);
|
|
1256
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1257
1257
|
}, [props]);
|
|
1258
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1259
1259
|
ref: ref,
|
|
1260
1260
|
addEndListener: transitionEnd
|
|
1261
1261
|
}, props, {
|
|
1262
1262
|
onEnter: handleEnter
|
|
1263
1263
|
}), function (status, innerProps) {
|
|
1264
|
-
return
|
|
1264
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1265
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1266
1266
|
}));
|
|
1267
1267
|
});
|
|
@@ -1276,20 +1276,20 @@ var propTypes = {
|
|
|
1276
1276
|
var defaultProps$2 = {
|
|
1277
1277
|
label: 'Close'
|
|
1278
1278
|
};
|
|
1279
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1280
1280
|
var label = _ref.label,
|
|
1281
1281
|
onClick = _ref.onClick,
|
|
1282
1282
|
className = _ref.className,
|
|
1283
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1283
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1284
1284
|
|
|
1285
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1286
1286
|
ref: ref,
|
|
1287
1287
|
type: "button",
|
|
1288
1288
|
className: classnames('close', className),
|
|
1289
1289
|
onClick: onClick
|
|
1290
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1291
1291
|
"aria-hidden": "true"
|
|
1292
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React__default.createElement("span", {
|
|
1293
1293
|
className: "sr-only"
|
|
1294
1294
|
}, label));
|
|
1295
1295
|
});
|
|
@@ -1298,8 +1298,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1298
1298
|
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1299
|
|
|
1300
1300
|
var divWithClassName = (function (className) {
|
|
1301
|
-
return
|
|
1302
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React__default.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1303
1303
|
ref: ref,
|
|
1304
1304
|
className: classnames(p.className, className)
|
|
1305
1305
|
}));
|
|
@@ -1325,15 +1325,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1325
1325
|
Component = _ref.Component,
|
|
1326
1326
|
defaultProps = _ref.defaultProps;
|
|
1327
1327
|
|
|
1328
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React__default.forwardRef(function (_ref2, ref) {
|
|
1329
1329
|
var className = _ref2.className,
|
|
1330
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1331
1331
|
_ref2$as = _ref2.as,
|
|
1332
1332
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1333
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1333
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1334
1334
|
|
|
1335
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1336
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1337
1337
|
ref: ref,
|
|
1338
1338
|
className: classnames(className, resolvedPrefix)
|
|
1339
1339
|
}, props));
|
|
@@ -1355,12 +1355,12 @@ function isTrivialHref(href) {
|
|
|
1355
1355
|
*/
|
|
1356
1356
|
|
|
1357
1357
|
|
|
1358
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
1359
1359
|
var _ref$as = _ref.as,
|
|
1360
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1361
1361
|
disabled = _ref.disabled,
|
|
1362
1362
|
onKeyDown = _ref.onKeyDown,
|
|
1363
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1363
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1364
1364
|
|
|
1365
1365
|
var handleClick = function handleClick(event) {
|
|
1366
1366
|
var href = props.href,
|
|
@@ -1399,7 +1399,7 @@ var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
|
1399
1399
|
props['aria-disabled'] = true;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1403
1403
|
ref: ref
|
|
1404
1404
|
}, props, {
|
|
1405
1405
|
onClick: handleClick,
|
|
@@ -1421,7 +1421,7 @@ var defaultProps$3 = {
|
|
|
1421
1421
|
transition: Fade,
|
|
1422
1422
|
closeLabel: 'Close alert'
|
|
1423
1423
|
};
|
|
1424
|
-
var Alert =
|
|
1424
|
+
var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
1425
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1426
1426
|
show: 'onClose'
|
|
1427
1427
|
}),
|
|
@@ -1434,7 +1434,7 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1434
1434
|
onClose = _useUncontrolled.onClose,
|
|
1435
1435
|
dismissible = _useUncontrolled.dismissible,
|
|
1436
1436
|
transition = _useUncontrolled.transition,
|
|
1437
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1437
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1438
1438
|
|
|
1439
1439
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1440
1440
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1443,17 +1443,17 @@ var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
});
|
|
1445
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1446
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1447
1447
|
role: "alert"
|
|
1448
1448
|
}, Transition ? props : undefined, {
|
|
1449
1449
|
ref: ref,
|
|
1450
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1451
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1452
1452
|
onClick: handleClose,
|
|
1453
1453
|
label: closeLabel
|
|
1454
1454
|
}), children);
|
|
1455
1455
|
if (!Transition) return show ? alert : null;
|
|
1456
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1457
1457
|
unmountOnExit: true
|
|
1458
1458
|
}, props, {
|
|
1459
1459
|
ref: undefined,
|
|
@@ -1468,17 +1468,17 @@ Alert.Heading = AlertHeading;
|
|
|
1468
1468
|
var defaultProps$4 = {
|
|
1469
1469
|
pill: false
|
|
1470
1470
|
};
|
|
1471
|
-
var Badge =
|
|
1471
|
+
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
1472
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1473
1473
|
variant = _ref.variant,
|
|
1474
1474
|
pill = _ref.pill,
|
|
1475
1475
|
className = _ref.className,
|
|
1476
1476
|
_ref$as = _ref.as,
|
|
1477
1477
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1478
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1478
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1479
1479
|
|
|
1480
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1481
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1482
1482
|
ref: ref
|
|
1483
1483
|
}, props, {
|
|
1484
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1491,7 +1491,7 @@ var defaultProps$5 = {
|
|
|
1491
1491
|
active: false,
|
|
1492
1492
|
linkProps: {}
|
|
1493
1493
|
};
|
|
1494
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
1495
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1496
1496
|
active = _ref.active,
|
|
1497
1497
|
children = _ref.children,
|
|
@@ -1504,17 +1504,17 @@ var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
|
1504
1504
|
href = _ref.href,
|
|
1505
1505
|
title = _ref.title,
|
|
1506
1506
|
target = _ref.target,
|
|
1507
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1507
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1508
1508
|
|
|
1509
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1510
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1511
1511
|
ref: ref
|
|
1512
1512
|
}, props, {
|
|
1513
1513
|
className: classnames(prefix, className, {
|
|
1514
1514
|
active: active
|
|
1515
1515
|
}),
|
|
1516
1516
|
"aria-current": active ? 'page' : undefined
|
|
1517
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1518
1518
|
href: href,
|
|
1519
1519
|
title: title,
|
|
1520
1520
|
target: target
|
|
@@ -1527,7 +1527,7 @@ var defaultProps$6 = {
|
|
|
1527
1527
|
label: 'breadcrumb',
|
|
1528
1528
|
listProps: {}
|
|
1529
1529
|
};
|
|
1530
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
1531
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1532
1532
|
className = _ref.className,
|
|
1533
1533
|
listProps = _ref.listProps,
|
|
@@ -1535,14 +1535,14 @@ var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
|
1535
1535
|
label = _ref.label,
|
|
1536
1536
|
_ref$as = _ref.as,
|
|
1537
1537
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1538
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1538
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1539
1539
|
|
|
1540
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1541
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1542
1542
|
"aria-label": label,
|
|
1543
1543
|
className: className,
|
|
1544
1544
|
ref: ref
|
|
1545
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1546
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1547
1547
|
}), children));
|
|
1548
1548
|
});
|
|
@@ -1555,7 +1555,7 @@ var defaultProps$7 = {
|
|
|
1555
1555
|
active: false,
|
|
1556
1556
|
disabled: false
|
|
1557
1557
|
};
|
|
1558
|
-
var Button =
|
|
1558
|
+
var Button = React__default.forwardRef(function (_ref, ref) {
|
|
1559
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1560
1560
|
variant = _ref.variant,
|
|
1561
1561
|
size = _ref.size,
|
|
@@ -1564,13 +1564,13 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1564
1564
|
block = _ref.block,
|
|
1565
1565
|
type = _ref.type,
|
|
1566
1566
|
as = _ref.as,
|
|
1567
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1567
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1568
1568
|
|
|
1569
1569
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1570
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1571
1571
|
|
|
1572
1572
|
if (props.href) {
|
|
1573
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1574
1574
|
as: as,
|
|
1575
1575
|
ref: ref,
|
|
1576
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1588,7 +1588,7 @@ var Button = React.forwardRef(function (_ref, ref) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
var Component = as || 'button';
|
|
1591
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1592
1592
|
className: classes
|
|
1593
1593
|
}));
|
|
1594
1594
|
});
|
|
@@ -1600,7 +1600,7 @@ var defaultProps$8 = {
|
|
|
1600
1600
|
toggle: false,
|
|
1601
1601
|
role: 'group'
|
|
1602
1602
|
};
|
|
1603
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
1604
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1605
1605
|
size = _ref.size,
|
|
1606
1606
|
toggle = _ref.toggle,
|
|
@@ -1608,12 +1608,12 @@ var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
|
1608
1608
|
className = _ref.className,
|
|
1609
1609
|
_ref$as = _ref.as,
|
|
1610
1610
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1611
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1611
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1612
1612
|
|
|
1613
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1614
1614
|
var baseClass = prefix;
|
|
1615
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1616
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1617
1617
|
ref: ref,
|
|
1618
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1619
1619
|
}));
|
|
@@ -1624,13 +1624,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1624
1624
|
var defaultProps$9 = {
|
|
1625
1625
|
role: 'toolbar'
|
|
1626
1626
|
};
|
|
1627
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1628
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1629
1629
|
className = _ref.className,
|
|
1630
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1630
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1631
1631
|
|
|
1632
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1633
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1634
1634
|
ref: ref,
|
|
1635
1635
|
className: classnames(className, prefix)
|
|
1636
1636
|
}));
|
|
@@ -1638,23 +1638,23 @@ var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
|
1638
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
1639
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1640
|
|
|
1641
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React__default.createContext(null);
|
|
1642
1642
|
context$1.displayName = 'CardContext';
|
|
1643
1643
|
|
|
1644
1644
|
var defaultProps$a = {
|
|
1645
1645
|
variant: null
|
|
1646
1646
|
};
|
|
1647
|
-
var CardImg =
|
|
1647
|
+
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
|
|
1648
1648
|
function (_ref, ref) {
|
|
1649
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1650
1650
|
className = _ref.className,
|
|
1651
1651
|
variant = _ref.variant,
|
|
1652
1652
|
_ref$as = _ref.as,
|
|
1653
1653
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1654
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1654
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1655
1655
|
|
|
1656
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1657
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1658
1658
|
ref: ref,
|
|
1659
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1660
1660
|
}, props));
|
|
@@ -1683,7 +1683,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1683
1683
|
var defaultProps$b = {
|
|
1684
1684
|
body: false
|
|
1685
1685
|
};
|
|
1686
|
-
var Card =
|
|
1686
|
+
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
1687
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1688
1688
|
className = _ref.className,
|
|
1689
1689
|
bg = _ref.bg,
|
|
@@ -1693,7 +1693,7 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1693
1693
|
children = _ref.children,
|
|
1694
1694
|
_ref$as = _ref.as,
|
|
1695
1695
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1696
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1696
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1697
1697
|
|
|
1698
1698
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1699
1699
|
var cardContext = useMemo(function () {
|
|
@@ -1701,16 +1701,16 @@ var Card = React.forwardRef(function (_ref, ref) {
|
|
|
1701
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1702
1702
|
};
|
|
1703
1703
|
}, [prefix]);
|
|
1704
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1705
1705
|
value: cardContext
|
|
1706
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1707
1707
|
ref: ref
|
|
1708
1708
|
}, props, {
|
|
1709
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1710
1710
|
}), body ?
|
|
1711
1711
|
/*#__PURE__*/
|
|
1712
1712
|
// @ts-ignore
|
|
1713
|
-
|
|
1713
|
+
React__default.createElement(CardBody, null, children) : children));
|
|
1714
1714
|
});
|
|
1715
1715
|
Card.displayName = 'Card';
|
|
1716
1716
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1846,6 +1846,20 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1848
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1849
|
+
*
|
|
1850
|
+
*
|
|
1851
|
+
*
|
|
1852
|
+
* ```tsx
|
|
1853
|
+
* const { set, clear } = useTimeout();
|
|
1854
|
+
* const [hello, showHello] = useState(false);
|
|
1855
|
+
* //Display hello after 5 seconds
|
|
1856
|
+
* set(() => showHello(true), 5000);
|
|
1857
|
+
* return (
|
|
1858
|
+
* <div className="App">
|
|
1859
|
+
* {hello ? <h3>Hello</h3> : null}
|
|
1860
|
+
* </div>
|
|
1861
|
+
* );
|
|
1862
|
+
* ```
|
|
1849
1863
|
*/
|
|
1850
1864
|
|
|
1851
1865
|
|
|
@@ -1886,16 +1900,16 @@ function useTimeout() {
|
|
|
1886
1900
|
|
|
1887
1901
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1888
1902
|
|
|
1889
|
-
var CarouselItem =
|
|
1903
|
+
var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
1890
1904
|
var _ref$as = _ref.as,
|
|
1891
1905
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1892
1906
|
bsPrefix = _ref.bsPrefix,
|
|
1893
1907
|
children = _ref.children,
|
|
1894
1908
|
className = _ref.className,
|
|
1895
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1909
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1896
1910
|
|
|
1897
1911
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1898
|
-
return /*#__PURE__*/
|
|
1912
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1899
1913
|
ref: ref
|
|
1900
1914
|
}, props, {
|
|
1901
1915
|
className: finalClassName
|
|
@@ -1914,8 +1928,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1914
1928
|
|
|
1915
1929
|
function map(children, func) {
|
|
1916
1930
|
var index = 0;
|
|
1917
|
-
return
|
|
1918
|
-
return
|
|
1931
|
+
return React__default.Children.map(children, function (child) {
|
|
1932
|
+
return React__default.isValidElement(child) ? func(child, index++) : child;
|
|
1919
1933
|
});
|
|
1920
1934
|
}
|
|
1921
1935
|
/**
|
|
@@ -1928,8 +1942,8 @@ function map(children, func) {
|
|
|
1928
1942
|
|
|
1929
1943
|
function forEach(children, func) {
|
|
1930
1944
|
var index = 0;
|
|
1931
|
-
|
|
1932
|
-
if (
|
|
1945
|
+
React__default.Children.forEach(children, function (child) {
|
|
1946
|
+
if (React__default.isValidElement(child)) func(child, index++);
|
|
1933
1947
|
});
|
|
1934
1948
|
}
|
|
1935
1949
|
|
|
@@ -2047,12 +2061,12 @@ var defaultProps$c = {
|
|
|
2047
2061
|
pause: 'hover',
|
|
2048
2062
|
wrap: true,
|
|
2049
2063
|
touch: true,
|
|
2050
|
-
prevIcon: /*#__PURE__*/
|
|
2064
|
+
prevIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2051
2065
|
"aria-hidden": "true",
|
|
2052
2066
|
className: "carousel-control-prev-icon"
|
|
2053
2067
|
}),
|
|
2054
2068
|
prevLabel: 'Previous',
|
|
2055
|
-
nextIcon: /*#__PURE__*/
|
|
2069
|
+
nextIcon: /*#__PURE__*/React__default.createElement("span", {
|
|
2056
2070
|
"aria-hidden": "true",
|
|
2057
2071
|
className: "carousel-control-next-icon"
|
|
2058
2072
|
}),
|
|
@@ -2100,7 +2114,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2100
2114
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2101
2115
|
className = _useUncontrolled.className,
|
|
2102
2116
|
children = _useUncontrolled.children,
|
|
2103
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2117
|
+
props = _objectWithoutPropertiesLoose$1(_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"]);
|
|
2104
2118
|
|
|
2105
2119
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2106
2120
|
var nextDirectionRef = useRef(null);
|
|
@@ -2357,7 +2371,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2357
2371
|
};
|
|
2358
2372
|
});
|
|
2359
2373
|
}, [indicators, numChildren, onSelect]);
|
|
2360
|
-
return /*#__PURE__*/
|
|
2374
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2361
2375
|
ref: elementRef
|
|
2362
2376
|
}, props, {
|
|
2363
2377
|
onKeyDown: handleKeyDown,
|
|
@@ -2367,44 +2381,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2367
2381
|
onTouchMove: handleTouchMove,
|
|
2368
2382
|
onTouchEnd: handleTouchEnd,
|
|
2369
2383
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2370
|
-
}), indicators && /*#__PURE__*/
|
|
2384
|
+
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2371
2385
|
className: prefix + "-indicators"
|
|
2372
2386
|
}, map(children, function (_child, index) {
|
|
2373
|
-
return /*#__PURE__*/
|
|
2387
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
2374
2388
|
key: index,
|
|
2375
2389
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2376
2390
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2377
2391
|
});
|
|
2378
|
-
})), /*#__PURE__*/
|
|
2392
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
2379
2393
|
className: prefix + "-inner"
|
|
2380
2394
|
}, map(children, function (child, index) {
|
|
2381
2395
|
var isActive = index === renderedActiveIndex;
|
|
2382
|
-
return slide ? /*#__PURE__*/
|
|
2396
|
+
return slide ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
2383
2397
|
in: isActive,
|
|
2384
2398
|
onEnter: isActive ? handleEnter : undefined,
|
|
2385
2399
|
onEntered: isActive ? handleEntered : undefined,
|
|
2386
2400
|
addEndListener: transitionEnd
|
|
2387
2401
|
}, function (status) {
|
|
2388
|
-
return
|
|
2402
|
+
return React__default.cloneElement(child, {
|
|
2389
2403
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2390
2404
|
});
|
|
2391
|
-
}) :
|
|
2405
|
+
}) : React__default.cloneElement(child, {
|
|
2392
2406
|
className: classnames(child.props.className, isActive && 'active')
|
|
2393
2407
|
});
|
|
2394
|
-
})), controls && /*#__PURE__*/
|
|
2408
|
+
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2395
2409
|
className: prefix + "-control-prev",
|
|
2396
2410
|
onClick: prev
|
|
2397
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2411
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2398
2412
|
className: "sr-only"
|
|
2399
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2413
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2400
2414
|
className: prefix + "-control-next",
|
|
2401
2415
|
onClick: next
|
|
2402
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2416
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
2403
2417
|
className: "sr-only"
|
|
2404
2418
|
}, nextLabel))));
|
|
2405
2419
|
}
|
|
2406
2420
|
|
|
2407
|
-
var Carousel =
|
|
2421
|
+
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2408
2422
|
Carousel.displayName = 'Carousel';
|
|
2409
2423
|
Carousel.propTypes = propTypes$1;
|
|
2410
2424
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2412,13 +2426,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2412
2426
|
Carousel.Item = CarouselItem;
|
|
2413
2427
|
|
|
2414
2428
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2415
|
-
var Col =
|
|
2429
|
+
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
|
|
2416
2430
|
function (_ref, ref) {
|
|
2417
2431
|
var bsPrefix = _ref.bsPrefix,
|
|
2418
2432
|
className = _ref.className,
|
|
2419
2433
|
_ref$as = _ref.as,
|
|
2420
2434
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2421
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2435
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2422
2436
|
|
|
2423
2437
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2424
2438
|
var spans = [];
|
|
@@ -2449,7 +2463,7 @@ function (_ref, ref) {
|
|
|
2449
2463
|
spans.push(prefix); // plain 'col'
|
|
2450
2464
|
}
|
|
2451
2465
|
|
|
2452
|
-
return /*#__PURE__*/
|
|
2466
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2453
2467
|
ref: ref,
|
|
2454
2468
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2455
2469
|
}));
|
|
@@ -2558,7 +2572,40 @@ function useForceUpdate() {
|
|
|
2558
2572
|
return dispatch;
|
|
2559
2573
|
}
|
|
2560
2574
|
|
|
2561
|
-
var DropdownContext = /*#__PURE__*/
|
|
2575
|
+
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2576
|
+
|
|
2577
|
+
function _extends() {
|
|
2578
|
+
_extends = Object.assign || function (target) {
|
|
2579
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2580
|
+
var source = arguments[i];
|
|
2581
|
+
|
|
2582
|
+
for (var key in source) {
|
|
2583
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2584
|
+
target[key] = source[key];
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
return target;
|
|
2590
|
+
};
|
|
2591
|
+
|
|
2592
|
+
return _extends.apply(this, arguments);
|
|
2593
|
+
}
|
|
2594
|
+
|
|
2595
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2596
|
+
if (source == null) return {};
|
|
2597
|
+
var target = {};
|
|
2598
|
+
var sourceKeys = Object.keys(source);
|
|
2599
|
+
var key, i;
|
|
2600
|
+
|
|
2601
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2602
|
+
key = sourceKeys[i];
|
|
2603
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2604
|
+
target[key] = source[key];
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
return target;
|
|
2608
|
+
}
|
|
2562
2609
|
|
|
2563
2610
|
function useSafeState(state) {
|
|
2564
2611
|
var isMounted = useMounted();
|
|
@@ -2663,7 +2710,7 @@ function contains(parent, child) {
|
|
|
2663
2710
|
do {
|
|
2664
2711
|
if (next && parent.isSameNode(next)) {
|
|
2665
2712
|
return true;
|
|
2666
|
-
} // $FlowFixMe: need a better way to handle this...
|
|
2713
|
+
} // $FlowFixMe[prop-missing]: need a better way to handle this...
|
|
2667
2714
|
|
|
2668
2715
|
|
|
2669
2716
|
next = next.parentNode || next.host;
|
|
@@ -2687,8 +2734,9 @@ function isTableElement(element) {
|
|
|
2687
2734
|
}
|
|
2688
2735
|
|
|
2689
2736
|
function getDocumentElement(element) {
|
|
2690
|
-
// $FlowFixMe: assume body is always available
|
|
2691
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2737
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
2738
|
+
return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
|
|
2739
|
+
element.document) || window.document).documentElement;
|
|
2692
2740
|
}
|
|
2693
2741
|
|
|
2694
2742
|
function getParentNode(element) {
|
|
@@ -2696,12 +2744,14 @@ function getParentNode(element) {
|
|
|
2696
2744
|
return element;
|
|
2697
2745
|
}
|
|
2698
2746
|
|
|
2699
|
-
return (//
|
|
2747
|
+
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2748
|
+
// $FlowFixMe[incompatible-return]
|
|
2749
|
+
// $FlowFixMe[prop-missing]
|
|
2700
2750
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2701
2751
|
element.parentNode || // DOM Element detected
|
|
2702
|
-
// $FlowFixMe: need a better way to handle this...
|
|
2752
|
+
// $FlowFixMe[incompatible-return]: need a better way to handle this...
|
|
2703
2753
|
element.host || // ShadowRoot detected
|
|
2704
|
-
// $FlowFixMe: HTMLElement is a Node
|
|
2754
|
+
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2705
2755
|
getDocumentElement(element) // fallback
|
|
2706
2756
|
|
|
2707
2757
|
);
|
|
@@ -2888,7 +2938,7 @@ var unsetSides = {
|
|
|
2888
2938
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2889
2939
|
// cleanly divide the values into the appropriate subpixels.
|
|
2890
2940
|
|
|
2891
|
-
function
|
|
2941
|
+
function roundOffsetsByDPR(_ref) {
|
|
2892
2942
|
var x = _ref.x,
|
|
2893
2943
|
y = _ref.y;
|
|
2894
2944
|
var win = window;
|
|
@@ -2908,11 +2958,14 @@ function mapToStyles(_ref2) {
|
|
|
2908
2958
|
offsets = _ref2.offsets,
|
|
2909
2959
|
position = _ref2.position,
|
|
2910
2960
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2911
|
-
adaptive = _ref2.adaptive
|
|
2961
|
+
adaptive = _ref2.adaptive,
|
|
2962
|
+
roundOffsets = _ref2.roundOffsets;
|
|
2912
2963
|
|
|
2913
|
-
var
|
|
2914
|
-
x =
|
|
2915
|
-
|
|
2964
|
+
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2965
|
+
_ref3$x = _ref3.x,
|
|
2966
|
+
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2967
|
+
_ref3$y = _ref3.y,
|
|
2968
|
+
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2916
2969
|
|
|
2917
2970
|
var hasX = offsets.hasOwnProperty('x');
|
|
2918
2971
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2925,7 +2978,7 @@ function mapToStyles(_ref2) {
|
|
|
2925
2978
|
|
|
2926
2979
|
if (offsetParent === getWindow(popper)) {
|
|
2927
2980
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
-
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2981
|
+
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2929
2982
|
|
|
2930
2983
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2931
2984
|
|
|
@@ -2956,13 +3009,15 @@ function mapToStyles(_ref2) {
|
|
|
2956
3009
|
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));
|
|
2957
3010
|
}
|
|
2958
3011
|
|
|
2959
|
-
function computeStyles(
|
|
2960
|
-
var state =
|
|
2961
|
-
options =
|
|
3012
|
+
function computeStyles(_ref4) {
|
|
3013
|
+
var state = _ref4.state,
|
|
3014
|
+
options = _ref4.options;
|
|
2962
3015
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
2963
3016
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
2964
3017
|
_options$adaptive = options.adaptive,
|
|
2965
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3018
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
|
3019
|
+
_options$roundOffsets = options.roundOffsets,
|
|
3020
|
+
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2966
3021
|
|
|
2967
3022
|
if (process.env.NODE_ENV !== "production") {
|
|
2968
3023
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -2985,7 +3040,8 @@ function computeStyles(_ref3) {
|
|
|
2985
3040
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2986
3041
|
offsets: state.modifiersData.popperOffsets,
|
|
2987
3042
|
position: state.options.strategy,
|
|
2988
|
-
adaptive: adaptive
|
|
3043
|
+
adaptive: adaptive,
|
|
3044
|
+
roundOffsets: roundOffsets
|
|
2989
3045
|
})));
|
|
2990
3046
|
}
|
|
2991
3047
|
|
|
@@ -2993,7 +3049,8 @@ function computeStyles(_ref3) {
|
|
|
2993
3049
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
2994
3050
|
offsets: state.modifiersData.arrow,
|
|
2995
3051
|
position: 'absolute',
|
|
2996
|
-
adaptive: false
|
|
3052
|
+
adaptive: false,
|
|
3053
|
+
roundOffsets: roundOffsets
|
|
2997
3054
|
})));
|
|
2998
3055
|
}
|
|
2999
3056
|
|
|
@@ -3189,7 +3246,7 @@ function isScrollParent(element) {
|
|
|
3189
3246
|
|
|
3190
3247
|
function getScrollParent(node) {
|
|
3191
3248
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3192
|
-
// $FlowFixMe: assume body is always available
|
|
3249
|
+
// $FlowFixMe[incompatible-return]: assume body is always available
|
|
3193
3250
|
return node.ownerDocument.body;
|
|
3194
3251
|
}
|
|
3195
3252
|
|
|
@@ -3203,7 +3260,7 @@ function getScrollParent(node) {
|
|
|
3203
3260
|
/*
|
|
3204
3261
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3205
3262
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3206
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3263
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3207
3264
|
reference element's position.
|
|
3208
3265
|
*/
|
|
3209
3266
|
|
|
@@ -3217,7 +3274,7 @@ function listScrollParents(element, list) {
|
|
|
3217
3274
|
var win = getWindow(scrollParent);
|
|
3218
3275
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3219
3276
|
var updatedList = list.concat(target);
|
|
3220
|
-
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3277
|
+
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
3221
3278
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3222
3279
|
}
|
|
3223
3280
|
|
|
@@ -3257,7 +3314,7 @@ function getClippingParents(element) {
|
|
|
3257
3314
|
|
|
3258
3315
|
if (!isElement(clipperElement)) {
|
|
3259
3316
|
return [];
|
|
3260
|
-
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3317
|
+
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
|
|
3261
3318
|
|
|
3262
3319
|
|
|
3263
3320
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3343,11 +3400,11 @@ function computeOffsets(_ref) {
|
|
|
3343
3400
|
|
|
3344
3401
|
switch (variation) {
|
|
3345
3402
|
case start:
|
|
3346
|
-
offsets[mainAxis] =
|
|
3403
|
+
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3347
3404
|
break;
|
|
3348
3405
|
|
|
3349
3406
|
case end:
|
|
3350
|
-
offsets[mainAxis] =
|
|
3407
|
+
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3351
3408
|
break;
|
|
3352
3409
|
}
|
|
3353
3410
|
}
|
|
@@ -3429,8 +3486,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3429
3486
|
var variation = getVariation(placement);
|
|
3430
3487
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3431
3488
|
return getVariation(placement) === variation;
|
|
3432
|
-
}) : basePlacements;
|
|
3433
|
-
|
|
3489
|
+
}) : basePlacements;
|
|
3434
3490
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3435
3491
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3436
3492
|
});
|
|
@@ -3441,7 +3497,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3441
3497
|
if (process.env.NODE_ENV !== "production") {
|
|
3442
3498
|
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(' '));
|
|
3443
3499
|
}
|
|
3444
|
-
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3500
|
+
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
3445
3501
|
|
|
3446
3502
|
|
|
3447
3503
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4913,7 +4969,7 @@ function DropdownMenu(_ref2) {
|
|
|
4913
4969
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4914
4970
|
|
|
4915
4971
|
var args = useDropdownMenu(options);
|
|
4916
|
-
return /*#__PURE__*/
|
|
4972
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4917
4973
|
}
|
|
4918
4974
|
|
|
4919
4975
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -4980,7 +5036,7 @@ function DropdownToggle(_ref2) {
|
|
|
4980
5036
|
show = _useDropdownToggle$.show,
|
|
4981
5037
|
toggle = _useDropdownToggle$.toggle;
|
|
4982
5038
|
|
|
4983
|
-
return /*#__PURE__*/
|
|
5039
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children({
|
|
4984
5040
|
show: show,
|
|
4985
5041
|
toggle: toggle,
|
|
4986
5042
|
props: props
|
|
@@ -5195,7 +5251,7 @@ function Dropdown(_ref) {
|
|
|
5195
5251
|
}
|
|
5196
5252
|
};
|
|
5197
5253
|
|
|
5198
|
-
return /*#__PURE__*/
|
|
5254
|
+
return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
|
|
5199
5255
|
value: context
|
|
5200
5256
|
}, children({
|
|
5201
5257
|
props: {
|
|
@@ -5209,14 +5265,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5209
5265
|
Dropdown.Menu = DropdownMenu;
|
|
5210
5266
|
Dropdown.Toggle = DropdownToggle;
|
|
5211
5267
|
|
|
5212
|
-
var NavContext =
|
|
5268
|
+
var NavContext = React__default.createContext(null);
|
|
5213
5269
|
NavContext.displayName = 'NavContext';
|
|
5214
5270
|
|
|
5215
5271
|
var defaultProps$e = {
|
|
5216
5272
|
as: SafeAnchor,
|
|
5217
5273
|
disabled: false
|
|
5218
5274
|
};
|
|
5219
|
-
var DropdownItem =
|
|
5275
|
+
var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
5220
5276
|
var bsPrefix = _ref.bsPrefix,
|
|
5221
5277
|
className = _ref.className,
|
|
5222
5278
|
children = _ref.children,
|
|
@@ -5227,7 +5283,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5227
5283
|
onSelect = _ref.onSelect,
|
|
5228
5284
|
propActive = _ref.active,
|
|
5229
5285
|
Component = _ref.as,
|
|
5230
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5286
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5231
5287
|
|
|
5232
5288
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5233
5289
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5251,7 +5307,7 @@ var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
|
5251
5307
|
/*#__PURE__*/
|
|
5252
5308
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5253
5309
|
// @ts-ignore
|
|
5254
|
-
|
|
5310
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5255
5311
|
ref: ref,
|
|
5256
5312
|
href: href,
|
|
5257
5313
|
disabled: disabled,
|
|
@@ -5300,7 +5356,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5300
5356
|
}, [refA, refB]);
|
|
5301
5357
|
}
|
|
5302
5358
|
|
|
5303
|
-
var context$2 =
|
|
5359
|
+
var context$2 = React__default.createContext(null);
|
|
5304
5360
|
context$2.displayName = 'NavbarContext';
|
|
5305
5361
|
|
|
5306
5362
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5428,7 +5484,7 @@ var defaultProps$f = {
|
|
|
5428
5484
|
flip: true
|
|
5429
5485
|
}; // TODO: remove this hack
|
|
5430
5486
|
|
|
5431
|
-
var DropdownMenu$1 =
|
|
5487
|
+
var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5432
5488
|
var bsPrefix = _ref.bsPrefix,
|
|
5433
5489
|
className = _ref.className,
|
|
5434
5490
|
align = _ref.align,
|
|
@@ -5440,7 +5496,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5440
5496
|
_ref$as = _ref.as,
|
|
5441
5497
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5442
5498
|
popperConfig = _ref.popperConfig,
|
|
5443
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5444
5500
|
|
|
5445
5501
|
var isNavbar = useContext(context$2);
|
|
5446
5502
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5476,7 +5532,7 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5476
5532
|
show: showProps,
|
|
5477
5533
|
alignEnd: alignRight,
|
|
5478
5534
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5479
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5535
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5480
5536
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5481
5537
|
})
|
|
5482
5538
|
}),
|
|
@@ -5499,11 +5555,11 @@ var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5499
5555
|
if (placement) {
|
|
5500
5556
|
// we don't need the default popper style,
|
|
5501
5557
|
// menus are display: none when not shown.
|
|
5502
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5558
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5503
5559
|
props['x-placement'] = placement;
|
|
5504
5560
|
}
|
|
5505
5561
|
|
|
5506
|
-
return /*#__PURE__*/
|
|
5562
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5507
5563
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5508
5564
|
}));
|
|
5509
5565
|
});
|
|
@@ -5537,14 +5593,14 @@ module.exports = exports['default'];
|
|
|
5537
5593
|
|
|
5538
5594
|
unwrapExports(isRequiredForA11y_1);
|
|
5539
5595
|
|
|
5540
|
-
var DropdownToggle$1 =
|
|
5596
|
+
var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
5541
5597
|
var bsPrefix = _ref.bsPrefix,
|
|
5542
5598
|
split = _ref.split,
|
|
5543
5599
|
className = _ref.className,
|
|
5544
5600
|
childBsPrefix = _ref.childBsPrefix,
|
|
5545
5601
|
_ref$as = _ref.as,
|
|
5546
5602
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5547
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5603
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5548
5604
|
|
|
5549
5605
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5550
5606
|
|
|
@@ -5559,7 +5615,7 @@ var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
|
5559
5615
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5560
5616
|
// underlying component, to allow it to render size and style variants.
|
|
5561
5617
|
|
|
5562
|
-
return /*#__PURE__*/
|
|
5618
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5563
5619
|
onClick: toggle,
|
|
5564
5620
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5565
5621
|
}, toggleProps, props));
|
|
@@ -5582,7 +5638,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5582
5638
|
var defaultProps$g = {
|
|
5583
5639
|
navbar: false
|
|
5584
5640
|
};
|
|
5585
|
-
var Dropdown$1 =
|
|
5641
|
+
var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
5586
5642
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5587
5643
|
show: 'onToggle'
|
|
5588
5644
|
}),
|
|
@@ -5597,7 +5653,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5597
5653
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5598
5654
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5599
5655
|
_4 = _useUncontrolled.navbar,
|
|
5600
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5656
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5601
5657
|
|
|
5602
5658
|
var onSelectCtx = useContext(SelectableContext);
|
|
5603
5659
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5619,9 +5675,9 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5619
5675
|
if (onSelect) onSelect(key, event);
|
|
5620
5676
|
handleToggle(false, event, 'select');
|
|
5621
5677
|
});
|
|
5622
|
-
return /*#__PURE__*/
|
|
5678
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5623
5679
|
value: handleSelect
|
|
5624
|
-
}, /*#__PURE__*/
|
|
5680
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5625
5681
|
drop: drop,
|
|
5626
5682
|
show: show,
|
|
5627
5683
|
alignEnd: alignRight,
|
|
@@ -5630,7 +5686,7 @@ var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
|
5630
5686
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5631
5687
|
}, function (_ref) {
|
|
5632
5688
|
var dropdownProps = _ref.props;
|
|
5633
|
-
return /*#__PURE__*/
|
|
5689
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5634
5690
|
ref: ref,
|
|
5635
5691
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5636
5692
|
}));
|
|
@@ -5705,7 +5761,7 @@ var propTypes$5 = {
|
|
|
5705
5761
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5706
5762
|
*/
|
|
5707
5763
|
|
|
5708
|
-
var DropdownButton =
|
|
5764
|
+
var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
5709
5765
|
var title = _ref.title,
|
|
5710
5766
|
children = _ref.children,
|
|
5711
5767
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5718,18 +5774,18 @@ var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
|
5718
5774
|
disabled = _ref.disabled,
|
|
5719
5775
|
href = _ref.href,
|
|
5720
5776
|
id = _ref.id,
|
|
5721
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5777
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5722
5778
|
|
|
5723
|
-
return /*#__PURE__*/
|
|
5779
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
5724
5780
|
ref: ref
|
|
5725
|
-
}, props), /*#__PURE__*/
|
|
5781
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5726
5782
|
id: id,
|
|
5727
5783
|
href: href,
|
|
5728
5784
|
size: size,
|
|
5729
5785
|
variant: variant,
|
|
5730
5786
|
disabled: disabled,
|
|
5731
5787
|
childBsPrefix: bsPrefix
|
|
5732
|
-
}, title), /*#__PURE__*/
|
|
5788
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu$1, {
|
|
5733
5789
|
align: menuAlign,
|
|
5734
5790
|
role: menuRole,
|
|
5735
5791
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5844,7 +5900,7 @@ var propTypes$6 = {
|
|
|
5844
5900
|
tooltip: PropTypes.bool,
|
|
5845
5901
|
as: PropTypes.elementType
|
|
5846
5902
|
};
|
|
5847
|
-
var Feedback =
|
|
5903
|
+
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
|
|
5848
5904
|
function (_ref, ref) {
|
|
5849
5905
|
var _ref$as = _ref.as,
|
|
5850
5906
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5853,9 +5909,9 @@ function (_ref, ref) {
|
|
|
5853
5909
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5854
5910
|
_ref$tooltip = _ref.tooltip,
|
|
5855
5911
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5856
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5912
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5857
5913
|
|
|
5858
|
-
return /*#__PURE__*/
|
|
5914
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5859
5915
|
ref: ref,
|
|
5860
5916
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5861
5917
|
}));
|
|
@@ -5863,11 +5919,11 @@ function (_ref, ref) {
|
|
|
5863
5919
|
Feedback.displayName = 'Feedback';
|
|
5864
5920
|
Feedback.propTypes = propTypes$6;
|
|
5865
5921
|
|
|
5866
|
-
var FormContext =
|
|
5922
|
+
var FormContext = React__default.createContext({
|
|
5867
5923
|
controlId: undefined
|
|
5868
5924
|
});
|
|
5869
5925
|
|
|
5870
|
-
var FormCheckInput =
|
|
5926
|
+
var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
5871
5927
|
var id = _ref.id,
|
|
5872
5928
|
bsPrefix = _ref.bsPrefix,
|
|
5873
5929
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5881,7 +5937,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5881
5937
|
isStatic = _ref.isStatic,
|
|
5882
5938
|
_ref$as = _ref.as,
|
|
5883
5939
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5884
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5940
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5885
5941
|
|
|
5886
5942
|
var _useContext = useContext(FormContext),
|
|
5887
5943
|
controlId = _useContext.controlId,
|
|
@@ -5892,7 +5948,7 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5892
5948
|
defaultPrefix = _ref2[1];
|
|
5893
5949
|
|
|
5894
5950
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5895
|
-
return /*#__PURE__*/
|
|
5951
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5896
5952
|
ref: ref,
|
|
5897
5953
|
type: type,
|
|
5898
5954
|
id: id || controlId,
|
|
@@ -5901,12 +5957,12 @@ var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
|
5901
5957
|
});
|
|
5902
5958
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5903
5959
|
|
|
5904
|
-
var FormCheckLabel =
|
|
5960
|
+
var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
5905
5961
|
var bsPrefix = _ref.bsPrefix,
|
|
5906
5962
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5907
5963
|
className = _ref.className,
|
|
5908
5964
|
htmlFor = _ref.htmlFor,
|
|
5909
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5965
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5910
5966
|
|
|
5911
5967
|
var _useContext = useContext(FormContext),
|
|
5912
5968
|
controlId = _useContext.controlId,
|
|
@@ -5917,7 +5973,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5917
5973
|
defaultPrefix = _ref2[1];
|
|
5918
5974
|
|
|
5919
5975
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5920
|
-
return /*#__PURE__*/
|
|
5976
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
5921
5977
|
ref: ref,
|
|
5922
5978
|
htmlFor: htmlFor || controlId,
|
|
5923
5979
|
className: classnames(className, bsPrefix)
|
|
@@ -5925,7 +5981,7 @@ var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
|
5925
5981
|
});
|
|
5926
5982
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5927
5983
|
|
|
5928
|
-
var FormCheck =
|
|
5984
|
+
var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
5929
5985
|
var id = _ref.id,
|
|
5930
5986
|
bsPrefix = _ref.bsPrefix,
|
|
5931
5987
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5951,7 +6007,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5951
6007
|
propCustom = _ref.custom,
|
|
5952
6008
|
_ref$as = _ref.as,
|
|
5953
6009
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5954
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6010
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
5955
6011
|
|
|
5956
6012
|
var custom = type === 'switch' ? true : propCustom;
|
|
5957
6013
|
|
|
@@ -5971,7 +6027,7 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5971
6027
|
};
|
|
5972
6028
|
}, [controlId, custom, id]);
|
|
5973
6029
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
5974
|
-
var input = /*#__PURE__*/
|
|
6030
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
5975
6031
|
type: type === 'switch' ? 'checkbox' : type,
|
|
5976
6032
|
ref: ref,
|
|
5977
6033
|
isValid: isValid,
|
|
@@ -5980,14 +6036,14 @@ var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
|
5980
6036
|
disabled: disabled,
|
|
5981
6037
|
as: as
|
|
5982
6038
|
}));
|
|
5983
|
-
return /*#__PURE__*/
|
|
6039
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
5984
6040
|
value: innerFormContext
|
|
5985
|
-
}, /*#__PURE__*/
|
|
6041
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5986
6042
|
style: style,
|
|
5987
6043
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
5988
|
-
}, children || /*#__PURE__*/
|
|
6044
|
+
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
5989
6045
|
title: title
|
|
5990
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6046
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
5991
6047
|
type: isValid ? 'valid' : 'invalid',
|
|
5992
6048
|
tooltip: feedbackTooltip
|
|
5993
6049
|
}, feedback))));
|
|
@@ -5996,7 +6052,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
5996
6052
|
FormCheck.Input = FormCheckInput;
|
|
5997
6053
|
FormCheck.Label = FormCheckLabel;
|
|
5998
6054
|
|
|
5999
|
-
var FormFileInput =
|
|
6055
|
+
var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
6000
6056
|
var id = _ref.id,
|
|
6001
6057
|
bsPrefix = _ref.bsPrefix,
|
|
6002
6058
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6006,7 +6062,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6006
6062
|
lang = _ref.lang,
|
|
6007
6063
|
_ref$as = _ref.as,
|
|
6008
6064
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6009
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6065
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6010
6066
|
|
|
6011
6067
|
var _useContext = useContext(FormContext),
|
|
6012
6068
|
controlId = _useContext.controlId,
|
|
@@ -6019,7 +6075,7 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6019
6075
|
defaultPrefix = _ref2[1];
|
|
6020
6076
|
|
|
6021
6077
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6022
|
-
return /*#__PURE__*/
|
|
6078
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6023
6079
|
ref: ref,
|
|
6024
6080
|
id: id || controlId,
|
|
6025
6081
|
type: type,
|
|
@@ -6029,12 +6085,12 @@ var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
|
6029
6085
|
});
|
|
6030
6086
|
FormFileInput.displayName = 'FormFileInput';
|
|
6031
6087
|
|
|
6032
|
-
var FormFileLabel =
|
|
6088
|
+
var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6033
6089
|
var bsPrefix = _ref.bsPrefix,
|
|
6034
6090
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6035
6091
|
className = _ref.className,
|
|
6036
6092
|
htmlFor = _ref.htmlFor,
|
|
6037
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6093
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6038
6094
|
|
|
6039
6095
|
var _useContext = useContext(FormContext),
|
|
6040
6096
|
controlId = _useContext.controlId,
|
|
@@ -6045,7 +6101,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6045
6101
|
defaultPrefix = _ref2[1];
|
|
6046
6102
|
|
|
6047
6103
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6048
|
-
return /*#__PURE__*/
|
|
6104
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6049
6105
|
ref: ref,
|
|
6050
6106
|
htmlFor: htmlFor || controlId,
|
|
6051
6107
|
className: classnames(className, bsPrefix),
|
|
@@ -6054,7 +6110,7 @@ var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6054
6110
|
});
|
|
6055
6111
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6056
6112
|
|
|
6057
|
-
var FormFile =
|
|
6113
|
+
var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
6058
6114
|
var id = _ref.id,
|
|
6059
6115
|
bsPrefix = _ref.bsPrefix,
|
|
6060
6116
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6078,7 +6134,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6078
6134
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6079
6135
|
_ref$inputAs = _ref.inputAs,
|
|
6080
6136
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6081
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6137
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6082
6138
|
|
|
6083
6139
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6084
6140
|
prefix = _ref2[0],
|
|
@@ -6097,7 +6153,7 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6097
6153
|
};
|
|
6098
6154
|
}, [controlId, custom, id]);
|
|
6099
6155
|
var hasLabel = label != null && label !== false && !children;
|
|
6100
|
-
var input = /*#__PURE__*/
|
|
6156
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6101
6157
|
ref: ref,
|
|
6102
6158
|
isValid: isValid,
|
|
6103
6159
|
isInvalid: isInvalid,
|
|
@@ -6105,14 +6161,14 @@ var FormFile = React.forwardRef(function (_ref, ref) {
|
|
|
6105
6161
|
as: inputAs,
|
|
6106
6162
|
lang: lang
|
|
6107
6163
|
}));
|
|
6108
|
-
return /*#__PURE__*/
|
|
6164
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6109
6165
|
value: innerFormContext
|
|
6110
|
-
}, /*#__PURE__*/
|
|
6166
|
+
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6111
6167
|
style: style,
|
|
6112
6168
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6113
|
-
}, children || /*#__PURE__*/
|
|
6169
|
+
}, 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, {
|
|
6114
6170
|
"data-browse": dataBrowse
|
|
6115
|
-
}, label)) : /*#__PURE__*/
|
|
6171
|
+
}, 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, {
|
|
6116
6172
|
type: isValid ? 'valid' : 'invalid',
|
|
6117
6173
|
tooltip: feedbackTooltip
|
|
6118
6174
|
}, feedback))));
|
|
@@ -6121,7 +6177,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6121
6177
|
FormFile.Input = FormFileInput;
|
|
6122
6178
|
FormFile.Label = FormFileLabel;
|
|
6123
6179
|
|
|
6124
|
-
var FormControl =
|
|
6180
|
+
var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
6125
6181
|
var bsPrefix = _ref.bsPrefix,
|
|
6126
6182
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6127
6183
|
type = _ref.type,
|
|
@@ -6138,7 +6194,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6138
6194
|
custom = _ref.custom,
|
|
6139
6195
|
_ref$as = _ref.as,
|
|
6140
6196
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6141
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6197
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6142
6198
|
|
|
6143
6199
|
var _useContext = useContext(FormContext),
|
|
6144
6200
|
controlId = _useContext.controlId;
|
|
@@ -6173,7 +6229,7 @@ var FormControl = React.forwardRef(function (_ref, ref) {
|
|
|
6173
6229
|
}
|
|
6174
6230
|
|
|
6175
6231
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6176
|
-
return /*#__PURE__*/
|
|
6232
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6177
6233
|
type: type,
|
|
6178
6234
|
size: htmlSize,
|
|
6179
6235
|
ref: ref,
|
|
@@ -6187,14 +6243,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6187
6243
|
Feedback: Feedback
|
|
6188
6244
|
});
|
|
6189
6245
|
|
|
6190
|
-
var FormGroup =
|
|
6246
|
+
var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6191
6247
|
var bsPrefix = _ref.bsPrefix,
|
|
6192
6248
|
className = _ref.className,
|
|
6193
6249
|
children = _ref.children,
|
|
6194
6250
|
controlId = _ref.controlId,
|
|
6195
6251
|
_ref$as = _ref.as,
|
|
6196
6252
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6197
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6253
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6198
6254
|
|
|
6199
6255
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6200
6256
|
var context = useMemo(function () {
|
|
@@ -6202,9 +6258,9 @@ var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6202
6258
|
controlId: controlId
|
|
6203
6259
|
};
|
|
6204
6260
|
}, [controlId]);
|
|
6205
|
-
return /*#__PURE__*/
|
|
6261
|
+
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6206
6262
|
value: context
|
|
6207
|
-
}, /*#__PURE__*/
|
|
6263
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6208
6264
|
ref: ref,
|
|
6209
6265
|
className: classnames(className, bsPrefix)
|
|
6210
6266
|
}), children));
|
|
@@ -6215,7 +6271,7 @@ var defaultProps$h = {
|
|
|
6215
6271
|
column: false,
|
|
6216
6272
|
srOnly: false
|
|
6217
6273
|
};
|
|
6218
|
-
var FormLabel =
|
|
6274
|
+
var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
6219
6275
|
var _ref$as = _ref.as,
|
|
6220
6276
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6221
6277
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6223,7 +6279,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6223
6279
|
srOnly = _ref.srOnly,
|
|
6224
6280
|
className = _ref.className,
|
|
6225
6281
|
htmlFor = _ref.htmlFor,
|
|
6226
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6282
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6227
6283
|
|
|
6228
6284
|
var _useContext = useContext(FormContext),
|
|
6229
6285
|
controlId = _useContext.controlId;
|
|
@@ -6234,7 +6290,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6234
6290
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6235
6291
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6236
6292
|
htmlFor = htmlFor || controlId;
|
|
6237
|
-
if (column) return /*#__PURE__*/
|
|
6293
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6238
6294
|
as: "label",
|
|
6239
6295
|
className: classes,
|
|
6240
6296
|
htmlFor: htmlFor
|
|
@@ -6242,7 +6298,7 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6242
6298
|
return (
|
|
6243
6299
|
/*#__PURE__*/
|
|
6244
6300
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6245
|
-
|
|
6301
|
+
React__default.createElement(Component, _extends$1({
|
|
6246
6302
|
ref: ref,
|
|
6247
6303
|
className: classes,
|
|
6248
6304
|
htmlFor: htmlFor
|
|
@@ -6252,25 +6308,25 @@ var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
|
6252
6308
|
FormLabel.displayName = 'FormLabel';
|
|
6253
6309
|
FormLabel.defaultProps = defaultProps$h;
|
|
6254
6310
|
|
|
6255
|
-
var FormText =
|
|
6311
|
+
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
|
|
6256
6312
|
function (_ref, ref) {
|
|
6257
6313
|
var bsPrefix = _ref.bsPrefix,
|
|
6258
6314
|
className = _ref.className,
|
|
6259
6315
|
_ref$as = _ref.as,
|
|
6260
6316
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6261
6317
|
muted = _ref.muted,
|
|
6262
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6318
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6263
6319
|
|
|
6264
6320
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6265
|
-
return /*#__PURE__*/
|
|
6321
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6266
6322
|
ref: ref,
|
|
6267
6323
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6268
6324
|
}));
|
|
6269
6325
|
});
|
|
6270
6326
|
FormText.displayName = 'FormText';
|
|
6271
6327
|
|
|
6272
|
-
var Switch =
|
|
6273
|
-
return /*#__PURE__*/
|
|
6328
|
+
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6329
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6274
6330
|
ref: ref,
|
|
6275
6331
|
type: "switch"
|
|
6276
6332
|
}));
|
|
@@ -6283,17 +6339,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6283
6339
|
var defaultProps$i = {
|
|
6284
6340
|
inline: false
|
|
6285
6341
|
};
|
|
6286
|
-
var FormImpl =
|
|
6342
|
+
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
6287
6343
|
var bsPrefix = _ref.bsPrefix,
|
|
6288
6344
|
inline = _ref.inline,
|
|
6289
6345
|
className = _ref.className,
|
|
6290
6346
|
validated = _ref.validated,
|
|
6291
6347
|
_ref$as = _ref.as,
|
|
6292
6348
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6293
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6349
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6294
6350
|
|
|
6295
6351
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6296
|
-
return /*#__PURE__*/
|
|
6352
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6297
6353
|
ref: ref,
|
|
6298
6354
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6299
6355
|
}));
|
|
@@ -6312,17 +6368,17 @@ FormImpl.Text = FormText;
|
|
|
6312
6368
|
var defaultProps$j = {
|
|
6313
6369
|
fluid: false
|
|
6314
6370
|
};
|
|
6315
|
-
var Container =
|
|
6371
|
+
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
6316
6372
|
var bsPrefix = _ref.bsPrefix,
|
|
6317
6373
|
fluid = _ref.fluid,
|
|
6318
6374
|
_ref$as = _ref.as,
|
|
6319
6375
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6320
6376
|
className = _ref.className,
|
|
6321
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6377
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6322
6378
|
|
|
6323
6379
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6324
6380
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6325
|
-
return /*#__PURE__*/
|
|
6381
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6326
6382
|
ref: ref
|
|
6327
6383
|
}, props, {
|
|
6328
6384
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6363,18 +6419,18 @@ var defaultProps$k = {
|
|
|
6363
6419
|
roundedCircle: false,
|
|
6364
6420
|
thumbnail: false
|
|
6365
6421
|
};
|
|
6366
|
-
var Image =
|
|
6422
|
+
var Image = React__default.forwardRef(function (_ref, ref) {
|
|
6367
6423
|
var bsPrefix = _ref.bsPrefix,
|
|
6368
6424
|
className = _ref.className,
|
|
6369
6425
|
fluid = _ref.fluid,
|
|
6370
6426
|
rounded = _ref.rounded,
|
|
6371
6427
|
roundedCircle = _ref.roundedCircle,
|
|
6372
6428
|
thumbnail = _ref.thumbnail,
|
|
6373
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6429
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6374
6430
|
|
|
6375
6431
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6376
6432
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6377
|
-
return /*#__PURE__*/
|
|
6433
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6378
6434
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6379
6435
|
ref: ref
|
|
6380
6436
|
}, props, {
|
|
@@ -6387,11 +6443,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6387
6443
|
var defaultProps$l = {
|
|
6388
6444
|
fluid: true
|
|
6389
6445
|
};
|
|
6390
|
-
var FigureImage =
|
|
6446
|
+
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6391
6447
|
var className = _ref.className,
|
|
6392
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6448
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6393
6449
|
|
|
6394
|
-
return /*#__PURE__*/
|
|
6450
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6395
6451
|
ref: ref
|
|
6396
6452
|
}, props, {
|
|
6397
6453
|
className: classnames(className, 'figure-img')
|
|
@@ -6418,13 +6474,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6418
6474
|
});
|
|
6419
6475
|
|
|
6420
6476
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6421
|
-
return /*#__PURE__*/
|
|
6477
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6422
6478
|
type: "checkbox"
|
|
6423
6479
|
}, props)));
|
|
6424
6480
|
};
|
|
6425
6481
|
|
|
6426
6482
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6427
|
-
return /*#__PURE__*/
|
|
6483
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6428
6484
|
type: "radio"
|
|
6429
6485
|
}, props)));
|
|
6430
6486
|
};
|
|
@@ -6437,16 +6493,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6437
6493
|
* @property {InputGroupRadio} Radio
|
|
6438
6494
|
* @property {InputGroupCheckbox} Checkbox
|
|
6439
6495
|
*/
|
|
6440
|
-
var InputGroup =
|
|
6496
|
+
var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
6441
6497
|
var bsPrefix = _ref.bsPrefix,
|
|
6442
6498
|
size = _ref.size,
|
|
6443
6499
|
className = _ref.className,
|
|
6444
6500
|
_ref$as = _ref.as,
|
|
6445
6501
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6446
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6502
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6447
6503
|
|
|
6448
6504
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6449
|
-
return /*#__PURE__*/
|
|
6505
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6450
6506
|
ref: ref
|
|
6451
6507
|
}, props, {
|
|
6452
6508
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6454,7 +6510,7 @@ var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
|
6454
6510
|
});
|
|
6455
6511
|
InputGroup.displayName = 'InputGroup';
|
|
6456
6512
|
|
|
6457
|
-
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6513
|
+
var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
6458
6514
|
Text: InputGroupText,
|
|
6459
6515
|
Radio: InputGroupRadio,
|
|
6460
6516
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6465,7 +6521,7 @@ var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
|
6465
6521
|
var defaultProps$m = {
|
|
6466
6522
|
fluid: false
|
|
6467
6523
|
};
|
|
6468
|
-
var Jumbotron =
|
|
6524
|
+
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
6469
6525
|
var _classes;
|
|
6470
6526
|
|
|
6471
6527
|
var _ref$as = _ref.as,
|
|
@@ -6473,11 +6529,11 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6473
6529
|
className = _ref.className,
|
|
6474
6530
|
fluid = _ref.fluid,
|
|
6475
6531
|
bsPrefix = _ref.bsPrefix,
|
|
6476
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6532
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6477
6533
|
|
|
6478
6534
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6479
6535
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6480
|
-
return /*#__PURE__*/
|
|
6536
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6481
6537
|
ref: ref
|
|
6482
6538
|
}, props, {
|
|
6483
6539
|
className: classnames(className, classes)
|
|
@@ -6486,19 +6542,19 @@ var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
|
6486
6542
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6487
6543
|
Jumbotron.displayName = 'Jumbotron';
|
|
6488
6544
|
|
|
6489
|
-
var TabContext =
|
|
6545
|
+
var TabContext = React__default.createContext(null);
|
|
6490
6546
|
|
|
6491
6547
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6492
6548
|
var noop$4 = function noop() {};
|
|
6493
6549
|
|
|
6494
|
-
var AbstractNav =
|
|
6550
|
+
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6495
6551
|
var _ref$as = _ref.as,
|
|
6496
6552
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6497
6553
|
onSelect = _ref.onSelect,
|
|
6498
6554
|
activeKey = _ref.activeKey,
|
|
6499
6555
|
role = _ref.role,
|
|
6500
6556
|
onKeyDown = _ref.onKeyDown,
|
|
6501
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6557
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6502
6558
|
|
|
6503
6559
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6504
6560
|
// and don't want to reset the set in the effect
|
|
@@ -6572,9 +6628,9 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6572
6628
|
needsRefocusRef.current = false;
|
|
6573
6629
|
});
|
|
6574
6630
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6575
|
-
return /*#__PURE__*/
|
|
6631
|
+
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
6576
6632
|
value: handleSelect
|
|
6577
|
-
}, /*#__PURE__*/
|
|
6633
|
+
}, /*#__PURE__*/React__default.createElement(NavContext.Provider, {
|
|
6578
6634
|
value: {
|
|
6579
6635
|
role: role,
|
|
6580
6636
|
// used by NavLink to determine it's role
|
|
@@ -6582,7 +6638,7 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6582
6638
|
getControlledId: getControlledId || noop$4,
|
|
6583
6639
|
getControllerId: getControllerId || noop$4
|
|
6584
6640
|
}
|
|
6585
|
-
}, /*#__PURE__*/
|
|
6641
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6586
6642
|
onKeyDown: handleKeyDown,
|
|
6587
6643
|
ref: mergedRef,
|
|
6588
6644
|
role: role
|
|
@@ -6592,14 +6648,14 @@ var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
|
6592
6648
|
var defaultProps$n = {
|
|
6593
6649
|
disabled: false
|
|
6594
6650
|
};
|
|
6595
|
-
var AbstractNavItem =
|
|
6651
|
+
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
6596
6652
|
var active = _ref.active,
|
|
6597
6653
|
className = _ref.className,
|
|
6598
6654
|
eventKey = _ref.eventKey,
|
|
6599
6655
|
onSelect = _ref.onSelect,
|
|
6600
6656
|
onClick = _ref.onClick,
|
|
6601
6657
|
Component = _ref.as,
|
|
6602
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6658
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6603
6659
|
|
|
6604
6660
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6605
6661
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6629,7 +6685,7 @@ var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
|
6629
6685
|
if (onSelect) onSelect(navKey, e);
|
|
6630
6686
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6631
6687
|
});
|
|
6632
|
-
return /*#__PURE__*/
|
|
6688
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6633
6689
|
ref: ref,
|
|
6634
6690
|
onClick: handleOnclick,
|
|
6635
6691
|
className: classnames(className, isActive && 'active')
|
|
@@ -6642,7 +6698,7 @@ var defaultProps$o = {
|
|
|
6642
6698
|
active: false,
|
|
6643
6699
|
disabled: false
|
|
6644
6700
|
};
|
|
6645
|
-
var ListGroupItem =
|
|
6701
|
+
var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
6646
6702
|
var bsPrefix = _ref.bsPrefix,
|
|
6647
6703
|
active = _ref.active,
|
|
6648
6704
|
disabled = _ref.disabled,
|
|
@@ -6652,7 +6708,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6652
6708
|
as = _ref.as,
|
|
6653
6709
|
eventKey = _ref.eventKey,
|
|
6654
6710
|
onClick = _ref.onClick,
|
|
6655
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6711
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6656
6712
|
|
|
6657
6713
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6658
6714
|
var handleClick = useCallback(function (event) {
|
|
@@ -6664,7 +6720,7 @@ var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
|
6664
6720
|
|
|
6665
6721
|
if (onClick) onClick(event);
|
|
6666
6722
|
}, [disabled, onClick]);
|
|
6667
|
-
return /*#__PURE__*/
|
|
6723
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6668
6724
|
ref: ref
|
|
6669
6725
|
}, props, {
|
|
6670
6726
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6682,7 +6738,7 @@ var defaultProps$p = {
|
|
|
6682
6738
|
variant: undefined,
|
|
6683
6739
|
horizontal: undefined
|
|
6684
6740
|
};
|
|
6685
|
-
var ListGroup =
|
|
6741
|
+
var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
6686
6742
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6687
6743
|
activeKey: 'onSelect'
|
|
6688
6744
|
}),
|
|
@@ -6692,7 +6748,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6692
6748
|
horizontal = _useUncontrolled.horizontal,
|
|
6693
6749
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6694
6750
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6695
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6751
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6696
6752
|
|
|
6697
6753
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6698
6754
|
var horizontalVariant;
|
|
@@ -6704,7 +6760,7 @@ var ListGroup = React.forwardRef(function (props, ref) {
|
|
|
6704
6760
|
}
|
|
6705
6761
|
|
|
6706
6762
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6707
|
-
return /*#__PURE__*/
|
|
6763
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6708
6764
|
ref: ref
|
|
6709
6765
|
}, controlledProps, {
|
|
6710
6766
|
as: as,
|
|
@@ -6716,16 +6772,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6716
6772
|
ListGroup.Item = ListGroupItem;
|
|
6717
6773
|
|
|
6718
6774
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6719
|
-
var Media =
|
|
6775
|
+
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
|
|
6720
6776
|
function (_ref, ref) {
|
|
6721
6777
|
var bsPrefix = _ref.bsPrefix,
|
|
6722
6778
|
className = _ref.className,
|
|
6723
6779
|
_ref$as = _ref.as,
|
|
6724
6780
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6725
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6781
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6726
6782
|
|
|
6727
6783
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6728
|
-
return /*#__PURE__*/
|
|
6784
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6729
6785
|
ref: ref,
|
|
6730
6786
|
className: classnames(className, prefix)
|
|
6731
6787
|
}));
|
|
@@ -7113,7 +7169,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7113
7169
|
renderDialog = _ref.renderDialog,
|
|
7114
7170
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7115
7171
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7116
|
-
return /*#__PURE__*/
|
|
7172
|
+
return /*#__PURE__*/React__default.createElement("div", props);
|
|
7117
7173
|
} : _ref$renderBackdrop,
|
|
7118
7174
|
providedManager = _ref.manager,
|
|
7119
7175
|
containerRef = _ref.container,
|
|
@@ -7271,12 +7327,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7271
7327
|
tabIndex: -1
|
|
7272
7328
|
});
|
|
7273
7329
|
|
|
7274
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7330
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React__default.createElement("div", dialogProps, /*#__PURE__*/React__default.cloneElement(children, {
|
|
7275
7331
|
role: 'document'
|
|
7276
7332
|
}));
|
|
7277
7333
|
|
|
7278
7334
|
if (Transition) {
|
|
7279
|
-
dialog = /*#__PURE__*/
|
|
7335
|
+
dialog = /*#__PURE__*/React__default.createElement(Transition, {
|
|
7280
7336
|
appear: true,
|
|
7281
7337
|
unmountOnExit: true,
|
|
7282
7338
|
"in": !!show,
|
|
@@ -7299,14 +7355,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7299
7355
|
});
|
|
7300
7356
|
|
|
7301
7357
|
if (BackdropTransition) {
|
|
7302
|
-
backdropElement = /*#__PURE__*/
|
|
7358
|
+
backdropElement = /*#__PURE__*/React__default.createElement(BackdropTransition, {
|
|
7303
7359
|
appear: true,
|
|
7304
7360
|
"in": !!show
|
|
7305
7361
|
}, backdropElement);
|
|
7306
7362
|
}
|
|
7307
7363
|
}
|
|
7308
7364
|
|
|
7309
|
-
return /*#__PURE__*/
|
|
7365
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7310
7366
|
});
|
|
7311
7367
|
var propTypes$8 = {
|
|
7312
7368
|
/**
|
|
@@ -7545,12 +7601,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7545
7601
|
|
|
7546
7602
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7547
7603
|
|
|
7548
|
-
var ModalContext =
|
|
7604
|
+
var ModalContext = React__default.createContext({
|
|
7549
7605
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7550
7606
|
onHide: function onHide() {}
|
|
7551
7607
|
});
|
|
7552
7608
|
|
|
7553
|
-
var ModalDialog =
|
|
7609
|
+
var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
7554
7610
|
var bsPrefix = _ref.bsPrefix,
|
|
7555
7611
|
className = _ref.className,
|
|
7556
7612
|
contentClassName = _ref.contentClassName,
|
|
@@ -7558,14 +7614,14 @@ var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
|
7558
7614
|
size = _ref.size,
|
|
7559
7615
|
children = _ref.children,
|
|
7560
7616
|
scrollable = _ref.scrollable,
|
|
7561
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7617
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7562
7618
|
|
|
7563
7619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7564
7620
|
var dialogClass = bsPrefix + "-dialog";
|
|
7565
|
-
return /*#__PURE__*/
|
|
7621
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7566
7622
|
ref: ref,
|
|
7567
7623
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7568
|
-
}), /*#__PURE__*/
|
|
7624
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7569
7625
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7570
7626
|
}, children));
|
|
7571
7627
|
});
|
|
@@ -7577,14 +7633,14 @@ var defaultProps$q = {
|
|
|
7577
7633
|
closeLabel: 'Close',
|
|
7578
7634
|
closeButton: false
|
|
7579
7635
|
};
|
|
7580
|
-
var ModalHeader =
|
|
7636
|
+
var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
7581
7637
|
var bsPrefix = _ref.bsPrefix,
|
|
7582
7638
|
closeLabel = _ref.closeLabel,
|
|
7583
7639
|
closeButton = _ref.closeButton,
|
|
7584
7640
|
onHide = _ref.onHide,
|
|
7585
7641
|
className = _ref.className,
|
|
7586
7642
|
children = _ref.children,
|
|
7587
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7643
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7588
7644
|
|
|
7589
7645
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7590
7646
|
var context = useContext(ModalContext);
|
|
@@ -7592,11 +7648,11 @@ var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
|
7592
7648
|
if (context) context.onHide();
|
|
7593
7649
|
if (onHide) onHide();
|
|
7594
7650
|
});
|
|
7595
|
-
return /*#__PURE__*/
|
|
7651
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7596
7652
|
ref: ref
|
|
7597
7653
|
}, props, {
|
|
7598
7654
|
className: classnames(className, bsPrefix)
|
|
7599
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7655
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7600
7656
|
label: closeLabel,
|
|
7601
7657
|
onClick: handleClick
|
|
7602
7658
|
}));
|
|
@@ -7623,16 +7679,16 @@ var defaultProps$r = {
|
|
|
7623
7679
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7624
7680
|
|
|
7625
7681
|
function DialogTransition(props) {
|
|
7626
|
-
return /*#__PURE__*/
|
|
7682
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7627
7683
|
}
|
|
7628
7684
|
|
|
7629
7685
|
function BackdropTransition(props) {
|
|
7630
|
-
return /*#__PURE__*/
|
|
7686
|
+
return /*#__PURE__*/React__default.createElement(Fade, props);
|
|
7631
7687
|
}
|
|
7632
7688
|
/* eslint-enable no-use-before-define */
|
|
7633
7689
|
|
|
7634
7690
|
|
|
7635
|
-
var Modal$1 =
|
|
7691
|
+
var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
7636
7692
|
var bsPrefix = _ref.bsPrefix,
|
|
7637
7693
|
className = _ref.className,
|
|
7638
7694
|
style = _ref.style,
|
|
@@ -7661,7 +7717,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7661
7717
|
onExited = _ref.onExited,
|
|
7662
7718
|
backdropClassName = _ref.backdropClassName,
|
|
7663
7719
|
propsManager = _ref.manager,
|
|
7664
|
-
props = _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"]);
|
|
7720
|
+
props = _objectWithoutPropertiesLoose$1(_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"]);
|
|
7665
7721
|
|
|
7666
7722
|
var _useState = useState({}),
|
|
7667
7723
|
modalStyle = _useState[0],
|
|
@@ -7827,12 +7883,12 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7827
7883
|
};
|
|
7828
7884
|
|
|
7829
7885
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7830
|
-
return /*#__PURE__*/
|
|
7886
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7831
7887
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7832
7888
|
}));
|
|
7833
7889
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7834
7890
|
|
|
7835
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7891
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7836
7892
|
|
|
7837
7893
|
|
|
7838
7894
|
if (!animation) {
|
|
@@ -7840,7 +7896,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7840
7896
|
}
|
|
7841
7897
|
|
|
7842
7898
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7843
|
-
return /*#__PURE__*/
|
|
7899
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7844
7900
|
role: "dialog"
|
|
7845
7901
|
}, dialogProps, {
|
|
7846
7902
|
style: baseModalStyle,
|
|
@@ -7848,7 +7904,7 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7848
7904
|
onClick: backdrop ? handleClick : undefined,
|
|
7849
7905
|
onMouseUp: handleMouseUp,
|
|
7850
7906
|
"aria-labelledby": ariaLabelledby
|
|
7851
|
-
}), /*#__PURE__*/
|
|
7907
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7852
7908
|
role: "document",
|
|
7853
7909
|
onMouseDown: handleDialogMouseDown,
|
|
7854
7910
|
className: dialogClassName,
|
|
@@ -7856,9 +7912,9 @@ var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
|
7856
7912
|
}), children));
|
|
7857
7913
|
};
|
|
7858
7914
|
|
|
7859
|
-
return /*#__PURE__*/
|
|
7915
|
+
return /*#__PURE__*/React__default.createElement(ModalContext.Provider, {
|
|
7860
7916
|
value: modalContext
|
|
7861
|
-
}, /*#__PURE__*/
|
|
7917
|
+
}, /*#__PURE__*/React__default.createElement(BaseModal, {
|
|
7862
7918
|
show: show,
|
|
7863
7919
|
ref: setModalRef,
|
|
7864
7920
|
backdrop: backdrop,
|
|
@@ -7896,17 +7952,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7896
7952
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7897
7953
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7898
7954
|
|
|
7899
|
-
var NavItem =
|
|
7955
|
+
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
|
|
7900
7956
|
function (_ref, ref) {
|
|
7901
7957
|
var bsPrefix = _ref.bsPrefix,
|
|
7902
7958
|
className = _ref.className,
|
|
7903
7959
|
children = _ref.children,
|
|
7904
7960
|
_ref$as = _ref.as,
|
|
7905
7961
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7906
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7962
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7907
7963
|
|
|
7908
7964
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7909
|
-
return /*#__PURE__*/
|
|
7965
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
7910
7966
|
ref: ref,
|
|
7911
7967
|
className: classnames(className, bsPrefix)
|
|
7912
7968
|
}), children);
|
|
@@ -7917,7 +7973,7 @@ var defaultProps$s = {
|
|
|
7917
7973
|
disabled: false,
|
|
7918
7974
|
as: SafeAnchor
|
|
7919
7975
|
};
|
|
7920
|
-
var NavLink =
|
|
7976
|
+
var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
7921
7977
|
var bsPrefix = _ref.bsPrefix,
|
|
7922
7978
|
disabled = _ref.disabled,
|
|
7923
7979
|
className = _ref.className,
|
|
@@ -7925,10 +7981,10 @@ var NavLink = React.forwardRef(function (_ref, ref) {
|
|
|
7925
7981
|
eventKey = _ref.eventKey,
|
|
7926
7982
|
onSelect = _ref.onSelect,
|
|
7927
7983
|
as = _ref.as,
|
|
7928
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7984
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7929
7985
|
|
|
7930
7986
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7931
|
-
return /*#__PURE__*/
|
|
7987
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
7932
7988
|
href: href,
|
|
7933
7989
|
ref: ref,
|
|
7934
7990
|
eventKey: eventKey,
|
|
@@ -7945,7 +8001,7 @@ var defaultProps$t = {
|
|
|
7945
8001
|
justify: false,
|
|
7946
8002
|
fill: false
|
|
7947
8003
|
};
|
|
7948
|
-
var Nav =
|
|
8004
|
+
var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
7949
8005
|
var _classNames;
|
|
7950
8006
|
|
|
7951
8007
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -7961,7 +8017,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7961
8017
|
className = _useUncontrolled.className,
|
|
7962
8018
|
children = _useUncontrolled.children,
|
|
7963
8019
|
activeKey = _useUncontrolled.activeKey,
|
|
7964
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8020
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
7965
8021
|
|
|
7966
8022
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
7967
8023
|
var navbarBsPrefix;
|
|
@@ -7977,7 +8033,7 @@ var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
|
7977
8033
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
7978
8034
|
}
|
|
7979
8035
|
|
|
7980
|
-
return /*#__PURE__*/
|
|
8036
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
7981
8037
|
as: as,
|
|
7982
8038
|
ref: ref,
|
|
7983
8039
|
activeKey: activeKey,
|
|
@@ -7989,31 +8045,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
7989
8045
|
Nav.Item = NavItem;
|
|
7990
8046
|
Nav.Link = NavLink;
|
|
7991
8047
|
|
|
7992
|
-
var NavbarBrand =
|
|
8048
|
+
var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
7993
8049
|
var bsPrefix = _ref.bsPrefix,
|
|
7994
8050
|
className = _ref.className,
|
|
7995
8051
|
as = _ref.as,
|
|
7996
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8052
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
7997
8053
|
|
|
7998
8054
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
7999
8055
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8000
|
-
return /*#__PURE__*/
|
|
8056
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8001
8057
|
ref: ref,
|
|
8002
8058
|
className: classnames(className, bsPrefix)
|
|
8003
8059
|
}));
|
|
8004
8060
|
});
|
|
8005
8061
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8006
8062
|
|
|
8007
|
-
var NavbarCollapse =
|
|
8063
|
+
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8008
8064
|
var children = _ref.children,
|
|
8009
8065
|
bsPrefix = _ref.bsPrefix,
|
|
8010
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8066
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8011
8067
|
|
|
8012
8068
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8013
|
-
return /*#__PURE__*/
|
|
8014
|
-
return /*#__PURE__*/
|
|
8069
|
+
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8070
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8015
8071
|
in: !!(context && context.expanded)
|
|
8016
|
-
}, props), /*#__PURE__*/
|
|
8072
|
+
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8017
8073
|
ref: ref,
|
|
8018
8074
|
className: bsPrefix
|
|
8019
8075
|
}, children));
|
|
@@ -8024,7 +8080,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8024
8080
|
var defaultProps$u = {
|
|
8025
8081
|
label: 'Toggle navigation'
|
|
8026
8082
|
};
|
|
8027
|
-
var NavbarToggle =
|
|
8083
|
+
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
8028
8084
|
var bsPrefix = _ref.bsPrefix,
|
|
8029
8085
|
className = _ref.className,
|
|
8030
8086
|
children = _ref.children,
|
|
@@ -8032,7 +8088,7 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8032
8088
|
_ref$as = _ref.as,
|
|
8033
8089
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8034
8090
|
onClick = _ref.onClick,
|
|
8035
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8091
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8036
8092
|
|
|
8037
8093
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8038
8094
|
|
|
@@ -8049,12 +8105,12 @@ var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
|
8049
8105
|
props.type = 'button';
|
|
8050
8106
|
}
|
|
8051
8107
|
|
|
8052
|
-
return /*#__PURE__*/
|
|
8108
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8053
8109
|
ref: ref,
|
|
8054
8110
|
onClick: handleClick,
|
|
8055
8111
|
"aria-label": label,
|
|
8056
8112
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8057
|
-
}), children || /*#__PURE__*/
|
|
8113
|
+
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8058
8114
|
className: bsPrefix + "-icon"
|
|
8059
8115
|
}));
|
|
8060
8116
|
});
|
|
@@ -8069,7 +8125,7 @@ var defaultProps$v = {
|
|
|
8069
8125
|
variant: 'light',
|
|
8070
8126
|
collapseOnSelect: false
|
|
8071
8127
|
};
|
|
8072
|
-
var Navbar =
|
|
8128
|
+
var Navbar = React__default.forwardRef(function (props, ref) {
|
|
8073
8129
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8074
8130
|
expanded: 'onToggle'
|
|
8075
8131
|
}),
|
|
@@ -8087,7 +8143,7 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8087
8143
|
_onToggle = _useUncontrolled.onToggle,
|
|
8088
8144
|
onSelect = _useUncontrolled.onSelect,
|
|
8089
8145
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8090
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8146
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8091
8147
|
|
|
8092
8148
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8093
8149
|
var handleCollapse = useCallback(function () {
|
|
@@ -8117,11 +8173,11 @@ var Navbar = React.forwardRef(function (props, ref) {
|
|
|
8117
8173
|
expanded: !!expanded
|
|
8118
8174
|
};
|
|
8119
8175
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8120
|
-
return /*#__PURE__*/
|
|
8176
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
8121
8177
|
value: navbarContext
|
|
8122
|
-
}, /*#__PURE__*/
|
|
8178
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8123
8179
|
value: handleCollapse
|
|
8124
|
-
}, /*#__PURE__*/
|
|
8180
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8125
8181
|
ref: ref
|
|
8126
8182
|
}, controlledProps, {
|
|
8127
8183
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8170,7 +8226,7 @@ var propTypes$9 = {
|
|
|
8170
8226
|
/** @ignore */
|
|
8171
8227
|
bsPrefix: PropTypes.string
|
|
8172
8228
|
};
|
|
8173
|
-
var NavDropdown =
|
|
8229
|
+
var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
8174
8230
|
var id = _ref.id,
|
|
8175
8231
|
title = _ref.title,
|
|
8176
8232
|
children = _ref.children,
|
|
@@ -8180,20 +8236,20 @@ var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
|
8180
8236
|
disabled = _ref.disabled,
|
|
8181
8237
|
active = _ref.active,
|
|
8182
8238
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8183
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8239
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8184
8240
|
|
|
8185
|
-
return /*#__PURE__*/
|
|
8241
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8186
8242
|
ref: ref
|
|
8187
8243
|
}, props, {
|
|
8188
8244
|
as: NavItem
|
|
8189
|
-
}), /*#__PURE__*/
|
|
8245
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8190
8246
|
id: id,
|
|
8191
8247
|
eventKey: null,
|
|
8192
8248
|
active: active,
|
|
8193
8249
|
disabled: disabled,
|
|
8194
8250
|
childBsPrefix: bsPrefix,
|
|
8195
8251
|
as: NavLink
|
|
8196
|
-
}, title), /*#__PURE__*/
|
|
8252
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8197
8253
|
role: menuRole,
|
|
8198
8254
|
renderOnMount: renderMenuOnMount,
|
|
8199
8255
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8210,7 +8266,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8210
8266
|
* Built on top of `Popper.js`, the overlay component is
|
|
8211
8267
|
* great for custom tooltip overlays.
|
|
8212
8268
|
*/
|
|
8213
|
-
var Overlay = /*#__PURE__*/
|
|
8269
|
+
var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef) {
|
|
8214
8270
|
var flip = props.flip,
|
|
8215
8271
|
offset = props.offset,
|
|
8216
8272
|
placement = props.placement,
|
|
@@ -8293,7 +8349,7 @@ var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
|
8293
8349
|
onEnter = props.onEnter,
|
|
8294
8350
|
onEntering = props.onEntering,
|
|
8295
8351
|
onEntered = props.onEntered;
|
|
8296
|
-
child = /*#__PURE__*/
|
|
8352
|
+
child = /*#__PURE__*/React__default.createElement(Transition, {
|
|
8297
8353
|
"in": props.show,
|
|
8298
8354
|
appear: true,
|
|
8299
8355
|
onExit: onExit,
|
|
@@ -8459,34 +8515,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8459
8515
|
};
|
|
8460
8516
|
|
|
8461
8517
|
return RefHolder;
|
|
8462
|
-
}(
|
|
8518
|
+
}(React__default.Component);
|
|
8463
8519
|
|
|
8464
8520
|
var defaultProps$w = {
|
|
8465
8521
|
active: false,
|
|
8466
8522
|
disabled: false,
|
|
8467
8523
|
activeLabel: '(current)'
|
|
8468
8524
|
};
|
|
8469
|
-
var PageItem =
|
|
8525
|
+
var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
8470
8526
|
var active = _ref.active,
|
|
8471
8527
|
disabled = _ref.disabled,
|
|
8472
8528
|
className = _ref.className,
|
|
8473
8529
|
style = _ref.style,
|
|
8474
8530
|
activeLabel = _ref.activeLabel,
|
|
8475
8531
|
children = _ref.children,
|
|
8476
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8532
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8477
8533
|
|
|
8478
8534
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8479
|
-
return /*#__PURE__*/
|
|
8535
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
8480
8536
|
ref: ref,
|
|
8481
8537
|
style: style,
|
|
8482
8538
|
className: classnames(className, 'page-item', {
|
|
8483
8539
|
active: active,
|
|
8484
8540
|
disabled: disabled
|
|
8485
8541
|
})
|
|
8486
|
-
}, /*#__PURE__*/
|
|
8542
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8487
8543
|
className: "page-link",
|
|
8488
8544
|
disabled: disabled
|
|
8489
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8545
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8490
8546
|
className: "sr-only"
|
|
8491
8547
|
}, activeLabel)));
|
|
8492
8548
|
});
|
|
@@ -8500,11 +8556,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8500
8556
|
|
|
8501
8557
|
function Button(_ref2) {
|
|
8502
8558
|
var children = _ref2.children,
|
|
8503
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8559
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8504
8560
|
|
|
8505
|
-
return /*#__PURE__*/
|
|
8561
|
+
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8506
8562
|
"aria-hidden": "true"
|
|
8507
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8563
|
+
}, children || defaultValue), /*#__PURE__*/React__default.createElement("span", {
|
|
8508
8564
|
className: "sr-only"
|
|
8509
8565
|
}, label));
|
|
8510
8566
|
}
|
|
@@ -8527,15 +8583,15 @@ var Last = createButton('Last', '»');
|
|
|
8527
8583
|
* @property {PageItem} Next
|
|
8528
8584
|
* @property {PageItem} Last
|
|
8529
8585
|
*/
|
|
8530
|
-
var Pagination =
|
|
8586
|
+
var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
8531
8587
|
var bsPrefix = _ref.bsPrefix,
|
|
8532
8588
|
className = _ref.className,
|
|
8533
8589
|
children = _ref.children,
|
|
8534
8590
|
size = _ref.size,
|
|
8535
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8591
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8536
8592
|
|
|
8537
8593
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8538
|
-
return /*#__PURE__*/
|
|
8594
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8539
8595
|
ref: ref
|
|
8540
8596
|
}, props, {
|
|
8541
8597
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8548,32 +8604,32 @@ Pagination.Item = PageItem;
|
|
|
8548
8604
|
Pagination.Next = Next;
|
|
8549
8605
|
Pagination.Last = Last;
|
|
8550
8606
|
|
|
8551
|
-
var PopoverTitle =
|
|
8607
|
+
var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
8552
8608
|
var _ref$as = _ref.as,
|
|
8553
8609
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8554
8610
|
bsPrefix = _ref.bsPrefix,
|
|
8555
8611
|
className = _ref.className,
|
|
8556
8612
|
children = _ref.children,
|
|
8557
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8613
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8558
8614
|
|
|
8559
8615
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8560
|
-
return /*#__PURE__*/
|
|
8616
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8561
8617
|
ref: ref
|
|
8562
8618
|
}, props, {
|
|
8563
8619
|
className: classnames(bsPrefix, className)
|
|
8564
8620
|
}), children);
|
|
8565
8621
|
});
|
|
8566
8622
|
|
|
8567
|
-
var PopoverContent =
|
|
8623
|
+
var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
8568
8624
|
var _ref$as = _ref.as,
|
|
8569
8625
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8570
8626
|
bsPrefix = _ref.bsPrefix,
|
|
8571
8627
|
className = _ref.className,
|
|
8572
8628
|
children = _ref.children,
|
|
8573
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8629
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8574
8630
|
|
|
8575
8631
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8576
|
-
return /*#__PURE__*/
|
|
8632
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8577
8633
|
ref: ref
|
|
8578
8634
|
}, props, {
|
|
8579
8635
|
className: classnames(className, bsPrefix)
|
|
@@ -8583,7 +8639,7 @@ var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
|
8583
8639
|
var defaultProps$x = {
|
|
8584
8640
|
placement: 'right'
|
|
8585
8641
|
};
|
|
8586
|
-
var Popover =
|
|
8642
|
+
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
8587
8643
|
var bsPrefix = _ref.bsPrefix,
|
|
8588
8644
|
placement = _ref.placement,
|
|
8589
8645
|
className = _ref.className,
|
|
@@ -8593,22 +8649,22 @@ var Popover = React.forwardRef(function (_ref, ref) {
|
|
|
8593
8649
|
arrowProps = _ref.arrowProps,
|
|
8594
8650
|
_ = _ref.popper,
|
|
8595
8651
|
_1 = _ref.show,
|
|
8596
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8597
8653
|
|
|
8598
8654
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8599
8655
|
|
|
8600
8656
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8601
8657
|
primaryPlacement = _ref2[0];
|
|
8602
8658
|
|
|
8603
|
-
return /*#__PURE__*/
|
|
8659
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8604
8660
|
ref: ref,
|
|
8605
8661
|
role: "tooltip",
|
|
8606
8662
|
style: style,
|
|
8607
8663
|
"x-placement": primaryPlacement,
|
|
8608
8664
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8609
|
-
}, props), /*#__PURE__*/
|
|
8665
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8610
8666
|
className: "arrow"
|
|
8611
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8667
|
+
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8612
8668
|
});
|
|
8613
8669
|
Popover.defaultProps = defaultProps$x;
|
|
8614
8670
|
Popover.Title = PopoverTitle;
|
|
@@ -8644,27 +8700,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8644
8700
|
style = _ref.style,
|
|
8645
8701
|
variant = _ref.variant,
|
|
8646
8702
|
bsPrefix = _ref.bsPrefix,
|
|
8647
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8703
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8648
8704
|
|
|
8649
|
-
return /*#__PURE__*/
|
|
8705
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8650
8706
|
ref: ref
|
|
8651
8707
|
}, props, {
|
|
8652
8708
|
role: "progressbar",
|
|
8653
8709
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8654
|
-
style: _extends({
|
|
8710
|
+
style: _extends$1({
|
|
8655
8711
|
width: getPercentage(now, min, max) + "%"
|
|
8656
8712
|
}, style),
|
|
8657
8713
|
"aria-valuenow": now,
|
|
8658
8714
|
"aria-valuemin": min,
|
|
8659
8715
|
"aria-valuemax": max
|
|
8660
|
-
}), srOnly ? /*#__PURE__*/
|
|
8716
|
+
}), srOnly ? /*#__PURE__*/React__default.createElement("span", {
|
|
8661
8717
|
className: "sr-only"
|
|
8662
8718
|
}, label) : label);
|
|
8663
8719
|
}
|
|
8664
8720
|
|
|
8665
|
-
var ProgressBar =
|
|
8721
|
+
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8666
8722
|
var isChild = _ref2.isChild,
|
|
8667
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8723
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8668
8724
|
|
|
8669
8725
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8670
8726
|
|
|
@@ -8683,9 +8739,9 @@ var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
|
8683
8739
|
variant = props.variant,
|
|
8684
8740
|
className = props.className,
|
|
8685
8741
|
children = props.children,
|
|
8686
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8742
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8687
8743
|
|
|
8688
|
-
return /*#__PURE__*/
|
|
8744
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8689
8745
|
ref: ref
|
|
8690
8746
|
}, wrapperProps, {
|
|
8691
8747
|
className: classnames(className, bsPrefix)
|
|
@@ -8711,20 +8767,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8711
8767
|
var defaultProps$z = {
|
|
8712
8768
|
aspectRatio: '1by1'
|
|
8713
8769
|
};
|
|
8714
|
-
var ResponsiveEmbed =
|
|
8770
|
+
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
8715
8771
|
var bsPrefix = _ref.bsPrefix,
|
|
8716
8772
|
className = _ref.className,
|
|
8717
8773
|
children = _ref.children,
|
|
8718
8774
|
aspectRatio = _ref.aspectRatio,
|
|
8719
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8775
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8720
8776
|
|
|
8721
8777
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8722
|
-
var child =
|
|
8723
|
-
return /*#__PURE__*/
|
|
8778
|
+
var child = React__default.Children.only(children);
|
|
8779
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8724
8780
|
ref: ref
|
|
8725
8781
|
}, props, {
|
|
8726
8782
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8727
|
-
}),
|
|
8783
|
+
}), React__default.cloneElement(child, {
|
|
8728
8784
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8729
8785
|
}));
|
|
8730
8786
|
});
|
|
@@ -8734,13 +8790,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8734
8790
|
var defaultProps$A = {
|
|
8735
8791
|
noGutters: false
|
|
8736
8792
|
};
|
|
8737
|
-
var Row =
|
|
8793
|
+
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
8738
8794
|
var bsPrefix = _ref.bsPrefix,
|
|
8739
8795
|
className = _ref.className,
|
|
8740
8796
|
noGutters = _ref.noGutters,
|
|
8741
8797
|
_ref$as = _ref.as,
|
|
8742
8798
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8743
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8799
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8744
8800
|
|
|
8745
8801
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8746
8802
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8759,7 +8815,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8759
8815
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8760
8816
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8761
8817
|
});
|
|
8762
|
-
return /*#__PURE__*/
|
|
8818
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8763
8819
|
ref: ref
|
|
8764
8820
|
}, props, {
|
|
8765
8821
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8768,7 +8824,7 @@ var Row = React.forwardRef(function (_ref, ref) {
|
|
|
8768
8824
|
Row.displayName = 'Row';
|
|
8769
8825
|
Row.defaultProps = defaultProps$A;
|
|
8770
8826
|
|
|
8771
|
-
var Spinner =
|
|
8827
|
+
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8772
8828
|
var bsPrefix = _ref.bsPrefix,
|
|
8773
8829
|
variant = _ref.variant,
|
|
8774
8830
|
animation = _ref.animation,
|
|
@@ -8777,11 +8833,11 @@ var Spinner = React.forwardRef(function (_ref, ref) {
|
|
|
8777
8833
|
_ref$as = _ref.as,
|
|
8778
8834
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8779
8835
|
className = _ref.className,
|
|
8780
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8836
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8781
8837
|
|
|
8782
8838
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8783
8839
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8784
|
-
return /*#__PURE__*/
|
|
8840
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8785
8841
|
ref: ref
|
|
8786
8842
|
}, props, {
|
|
8787
8843
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8855,7 +8911,7 @@ var defaultProps$B = {
|
|
|
8855
8911
|
toggleLabel: 'Toggle dropdown',
|
|
8856
8912
|
type: 'button'
|
|
8857
8913
|
};
|
|
8858
|
-
var SplitButton =
|
|
8914
|
+
var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
8859
8915
|
var id = _ref.id,
|
|
8860
8916
|
bsPrefix = _ref.bsPrefix,
|
|
8861
8917
|
size = _ref.size,
|
|
@@ -8871,13 +8927,13 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8871
8927
|
menuRole = _ref.menuRole,
|
|
8872
8928
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8873
8929
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8874
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8930
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8875
8931
|
|
|
8876
|
-
return /*#__PURE__*/
|
|
8932
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
8877
8933
|
ref: ref
|
|
8878
8934
|
}, props, {
|
|
8879
8935
|
as: ButtonGroup
|
|
8880
|
-
}), /*#__PURE__*/
|
|
8936
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
8881
8937
|
size: size,
|
|
8882
8938
|
variant: variant,
|
|
8883
8939
|
disabled: props.disabled,
|
|
@@ -8886,16 +8942,16 @@ var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
|
8886
8942
|
target: target,
|
|
8887
8943
|
onClick: onClick,
|
|
8888
8944
|
type: type
|
|
8889
|
-
}, title), /*#__PURE__*/
|
|
8945
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown$1.Toggle, {
|
|
8890
8946
|
split: true,
|
|
8891
8947
|
id: id ? id.toString() : undefined,
|
|
8892
8948
|
size: size,
|
|
8893
8949
|
variant: variant,
|
|
8894
8950
|
disabled: props.disabled,
|
|
8895
8951
|
childBsPrefix: bsPrefix
|
|
8896
|
-
}, /*#__PURE__*/
|
|
8952
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8897
8953
|
className: "sr-only"
|
|
8898
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8954
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown$1.Menu, {
|
|
8899
8955
|
align: menuAlign,
|
|
8900
8956
|
role: menuRole,
|
|
8901
8957
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8939,22 +8995,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8939
8995
|
}
|
|
8940
8996
|
};
|
|
8941
8997
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8942
|
-
return /*#__PURE__*/
|
|
8998
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
8943
8999
|
value: tabContext
|
|
8944
|
-
}, /*#__PURE__*/
|
|
9000
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8945
9001
|
value: onSelect || null
|
|
8946
9002
|
}, children));
|
|
8947
9003
|
};
|
|
8948
9004
|
|
|
8949
|
-
var TabContent =
|
|
9005
|
+
var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
8950
9006
|
var bsPrefix = _ref.bsPrefix,
|
|
8951
9007
|
_ref$as = _ref.as,
|
|
8952
9008
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8953
9009
|
className = _ref.className,
|
|
8954
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9010
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
8955
9011
|
|
|
8956
9012
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
8957
|
-
return /*#__PURE__*/
|
|
9013
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8958
9014
|
ref: ref
|
|
8959
9015
|
}, props, {
|
|
8960
9016
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -8968,11 +9024,11 @@ function useTabContext(props) {
|
|
|
8968
9024
|
var activeKey = context.activeKey,
|
|
8969
9025
|
getControlledId = context.getControlledId,
|
|
8970
9026
|
getControllerId = context.getControllerId,
|
|
8971
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9027
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
8972
9028
|
|
|
8973
9029
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
8974
9030
|
var key = makeEventKey(props.eventKey);
|
|
8975
|
-
return _extends({}, props, {
|
|
9031
|
+
return _extends$1({}, props, {
|
|
8976
9032
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
8977
9033
|
id: getControlledId(props.eventKey),
|
|
8978
9034
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -8982,7 +9038,7 @@ function useTabContext(props) {
|
|
|
8982
9038
|
});
|
|
8983
9039
|
}
|
|
8984
9040
|
|
|
8985
|
-
var TabPane =
|
|
9041
|
+
var TabPane = React__default.forwardRef(function (props, ref) {
|
|
8986
9042
|
var _useTabContext = useTabContext(props),
|
|
8987
9043
|
bsPrefix = _useTabContext.bsPrefix,
|
|
8988
9044
|
className = _useTabContext.className,
|
|
@@ -8999,11 +9055,11 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
8999
9055
|
_useTabContext$as = _useTabContext.as,
|
|
9000
9056
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9001
9057
|
_ = _useTabContext.eventKey,
|
|
9002
|
-
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9058
|
+
rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9003
9059
|
|
|
9004
9060
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9005
9061
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9006
|
-
var pane = /*#__PURE__*/
|
|
9062
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9007
9063
|
ref: ref,
|
|
9008
9064
|
role: "tabpanel",
|
|
9009
9065
|
"aria-hidden": !active,
|
|
@@ -9011,7 +9067,7 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9011
9067
|
active: active
|
|
9012
9068
|
})
|
|
9013
9069
|
}));
|
|
9014
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9070
|
+
if (Transition) pane = /*#__PURE__*/React__default.createElement(Transition, {
|
|
9015
9071
|
in: active,
|
|
9016
9072
|
onEnter: onEnter,
|
|
9017
9073
|
onEntering: onEntering,
|
|
@@ -9024,9 +9080,9 @@ var TabPane = React.forwardRef(function (props, ref) {
|
|
|
9024
9080
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9025
9081
|
// conflict with the top level one.
|
|
9026
9082
|
|
|
9027
|
-
return /*#__PURE__*/
|
|
9083
|
+
return /*#__PURE__*/React__default.createElement(TabContext.Provider, {
|
|
9028
9084
|
value: null
|
|
9029
|
-
}, /*#__PURE__*/
|
|
9085
|
+
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
9030
9086
|
value: null
|
|
9031
9087
|
}, pane));
|
|
9032
9088
|
});
|
|
@@ -9047,13 +9103,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9047
9103
|
};
|
|
9048
9104
|
|
|
9049
9105
|
return Tab;
|
|
9050
|
-
}(
|
|
9106
|
+
}(React__default.Component);
|
|
9051
9107
|
|
|
9052
9108
|
Tab.Container = TabContainer;
|
|
9053
9109
|
Tab.Content = TabContent;
|
|
9054
9110
|
Tab.Pane = TabPane;
|
|
9055
9111
|
|
|
9056
|
-
var Table =
|
|
9112
|
+
var Table = React__default.forwardRef(function (_ref, ref) {
|
|
9057
9113
|
var bsPrefix = _ref.bsPrefix,
|
|
9058
9114
|
className = _ref.className,
|
|
9059
9115
|
striped = _ref.striped,
|
|
@@ -9063,11 +9119,11 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9063
9119
|
size = _ref.size,
|
|
9064
9120
|
variant = _ref.variant,
|
|
9065
9121
|
responsive = _ref.responsive,
|
|
9066
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9122
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9067
9123
|
|
|
9068
9124
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9069
9125
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9070
|
-
var table = /*#__PURE__*/
|
|
9126
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9071
9127
|
className: classes,
|
|
9072
9128
|
ref: ref
|
|
9073
9129
|
}));
|
|
@@ -9079,7 +9135,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9079
9135
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9080
9136
|
}
|
|
9081
9137
|
|
|
9082
|
-
return /*#__PURE__*/
|
|
9138
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
9083
9139
|
className: responsiveClass
|
|
9084
9140
|
}, table);
|
|
9085
9141
|
}
|
|
@@ -9087,7 +9143,7 @@ var Table = React.forwardRef(function (_ref, ref) {
|
|
|
9087
9143
|
return table;
|
|
9088
9144
|
});
|
|
9089
9145
|
|
|
9090
|
-
var ToastContext =
|
|
9146
|
+
var ToastContext = React__default.createContext({
|
|
9091
9147
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9092
9148
|
onClose: function onClose() {}
|
|
9093
9149
|
});
|
|
@@ -9096,13 +9152,13 @@ var defaultProps$C = {
|
|
|
9096
9152
|
closeLabel: 'Close',
|
|
9097
9153
|
closeButton: true
|
|
9098
9154
|
};
|
|
9099
|
-
var ToastHeader =
|
|
9155
|
+
var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
9100
9156
|
var bsPrefix = _ref.bsPrefix,
|
|
9101
9157
|
closeLabel = _ref.closeLabel,
|
|
9102
9158
|
closeButton = _ref.closeButton,
|
|
9103
9159
|
className = _ref.className,
|
|
9104
9160
|
children = _ref.children,
|
|
9105
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9161
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9106
9162
|
|
|
9107
9163
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9108
9164
|
var context = useContext(ToastContext);
|
|
@@ -9111,11 +9167,11 @@ var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
|
9111
9167
|
context.onClose(e);
|
|
9112
9168
|
}
|
|
9113
9169
|
});
|
|
9114
|
-
return /*#__PURE__*/
|
|
9170
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9115
9171
|
ref: ref
|
|
9116
9172
|
}, props, {
|
|
9117
9173
|
className: classnames(bsPrefix, className)
|
|
9118
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9174
|
+
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9119
9175
|
label: closeLabel,
|
|
9120
9176
|
onClick: handleClick,
|
|
9121
9177
|
className: "ml-2 mb-1",
|
|
@@ -9127,7 +9183,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9127
9183
|
|
|
9128
9184
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9129
9185
|
|
|
9130
|
-
var Toast =
|
|
9186
|
+
var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
9131
9187
|
var bsPrefix = _ref.bsPrefix,
|
|
9132
9188
|
className = _ref.className,
|
|
9133
9189
|
children = _ref.children,
|
|
@@ -9142,7 +9198,7 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9142
9198
|
_ref$autohide = _ref.autohide,
|
|
9143
9199
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9144
9200
|
onClose = _ref.onClose,
|
|
9145
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9201
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9146
9202
|
|
|
9147
9203
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9148
9204
|
// timer in case these values change.
|
|
@@ -9170,16 +9226,16 @@ var Toast = React.forwardRef(function (_ref, ref) {
|
|
|
9170
9226
|
};
|
|
9171
9227
|
}, [onClose]);
|
|
9172
9228
|
var hasAnimation = !!(Transition && animation);
|
|
9173
|
-
var toast = /*#__PURE__*/
|
|
9229
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9174
9230
|
ref: ref,
|
|
9175
9231
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9176
9232
|
role: "alert",
|
|
9177
9233
|
"aria-live": "assertive",
|
|
9178
9234
|
"aria-atomic": "true"
|
|
9179
9235
|
}), children);
|
|
9180
|
-
return /*#__PURE__*/
|
|
9236
|
+
return /*#__PURE__*/React__default.createElement(ToastContext.Provider, {
|
|
9181
9237
|
value: toastContext
|
|
9182
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9238
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React__default.createElement(Transition, {
|
|
9183
9239
|
in: show,
|
|
9184
9240
|
unmountOnExit: true
|
|
9185
9241
|
}, toast) : toast);
|
|
@@ -9194,7 +9250,7 @@ var noop$5 = function noop() {
|
|
|
9194
9250
|
return undefined;
|
|
9195
9251
|
};
|
|
9196
9252
|
|
|
9197
|
-
var ToggleButton =
|
|
9253
|
+
var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
9198
9254
|
var children = _ref.children,
|
|
9199
9255
|
name = _ref.name,
|
|
9200
9256
|
className = _ref.className,
|
|
@@ -9204,7 +9260,7 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9204
9260
|
value = _ref.value,
|
|
9205
9261
|
disabled = _ref.disabled,
|
|
9206
9262
|
inputRef = _ref.inputRef,
|
|
9207
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9263
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9208
9264
|
|
|
9209
9265
|
var _useState = useState(false),
|
|
9210
9266
|
focused = _useState[0],
|
|
@@ -9216,13 +9272,13 @@ var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
|
9216
9272
|
var handleBlur = useCallback(function (e) {
|
|
9217
9273
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9218
9274
|
}, []);
|
|
9219
|
-
return /*#__PURE__*/
|
|
9275
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9220
9276
|
ref: ref,
|
|
9221
9277
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9222
9278
|
type: undefined,
|
|
9223
9279
|
active: !!checked,
|
|
9224
9280
|
as: "label"
|
|
9225
|
-
}), /*#__PURE__*/
|
|
9281
|
+
}), /*#__PURE__*/React__default.createElement("input", {
|
|
9226
9282
|
name: name,
|
|
9227
9283
|
type: type,
|
|
9228
9284
|
value: value,
|
|
@@ -9241,7 +9297,7 @@ var defaultProps$D = {
|
|
|
9241
9297
|
type: 'radio',
|
|
9242
9298
|
vertical: false
|
|
9243
9299
|
};
|
|
9244
|
-
var ToggleButtonGroup =
|
|
9300
|
+
var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
9245
9301
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9246
9302
|
value: 'onChange'
|
|
9247
9303
|
}),
|
|
@@ -9250,7 +9306,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9250
9306
|
name = _useUncontrolled.name,
|
|
9251
9307
|
value = _useUncontrolled.value,
|
|
9252
9308
|
onChange = _useUncontrolled.onChange,
|
|
9253
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9309
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9254
9310
|
|
|
9255
9311
|
var getValues = function getValues() {
|
|
9256
9312
|
return value == null ? [] : [].concat(value);
|
|
@@ -9279,7 +9335,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9279
9335
|
};
|
|
9280
9336
|
|
|
9281
9337
|
!(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;
|
|
9282
|
-
return /*#__PURE__*/
|
|
9338
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9283
9339
|
ref: ref,
|
|
9284
9340
|
toggle: true
|
|
9285
9341
|
}), map(children, function (child) {
|
|
@@ -9292,7 +9348,7 @@ var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
|
9292
9348
|
return handleToggle(childVal, e);
|
|
9293
9349
|
};
|
|
9294
9350
|
|
|
9295
|
-
return
|
|
9351
|
+
return React__default.cloneElement(child, {
|
|
9296
9352
|
type: type,
|
|
9297
9353
|
name: child.name || name,
|
|
9298
9354
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9306,7 +9362,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9306
9362
|
var defaultProps$E = {
|
|
9307
9363
|
placement: 'right'
|
|
9308
9364
|
};
|
|
9309
|
-
var Tooltip =
|
|
9365
|
+
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
9310
9366
|
var bsPrefix = _ref.bsPrefix,
|
|
9311
9367
|
placement = _ref.placement,
|
|
9312
9368
|
className = _ref.className,
|
|
@@ -9315,22 +9371,22 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9315
9371
|
arrowProps = _ref.arrowProps,
|
|
9316
9372
|
_ = _ref.popper,
|
|
9317
9373
|
_2 = _ref.show,
|
|
9318
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9374
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9319
9375
|
|
|
9320
9376
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9321
9377
|
|
|
9322
9378
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9323
9379
|
primaryPlacement = _ref2[0];
|
|
9324
9380
|
|
|
9325
|
-
return /*#__PURE__*/
|
|
9381
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9326
9382
|
ref: ref,
|
|
9327
9383
|
style: style,
|
|
9328
9384
|
role: "tooltip",
|
|
9329
9385
|
"x-placement": primaryPlacement,
|
|
9330
9386
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9331
|
-
}, props), /*#__PURE__*/
|
|
9387
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9332
9388
|
className: "arrow"
|
|
9333
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9389
|
+
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9334
9390
|
className: bsPrefix + "-inner"
|
|
9335
9391
|
}, children));
|
|
9336
9392
|
});
|
|
@@ -9348,54 +9404,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9348
9404
|
client = props.client;
|
|
9349
9405
|
|
|
9350
9406
|
|
|
9351
|
-
return
|
|
9407
|
+
return React__default.createElement(
|
|
9352
9408
|
'div',
|
|
9353
9409
|
{ className: styles.article },
|
|
9354
|
-
|
|
9410
|
+
React__default.createElement(
|
|
9355
9411
|
'a',
|
|
9356
9412
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9357
|
-
|
|
9413
|
+
React__default.createElement(
|
|
9358
9414
|
'div',
|
|
9359
9415
|
{ className: styles.thumb },
|
|
9360
|
-
|
|
9416
|
+
React__default.createElement(
|
|
9361
9417
|
'figure',
|
|
9362
9418
|
null,
|
|
9363
|
-
|
|
9419
|
+
React__default.createElement(
|
|
9364
9420
|
LazyLoad,
|
|
9365
9421
|
null,
|
|
9366
|
-
|
|
9422
|
+
React__default.createElement('img', {
|
|
9367
9423
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9368
9424
|
})
|
|
9369
9425
|
)
|
|
9370
9426
|
)
|
|
9371
9427
|
),
|
|
9372
|
-
|
|
9428
|
+
React__default.createElement(
|
|
9373
9429
|
'div',
|
|
9374
9430
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9375
|
-
|
|
9431
|
+
React__default.createElement(
|
|
9376
9432
|
'div',
|
|
9377
9433
|
{ className: styles.name },
|
|
9378
9434
|
data.name
|
|
9379
9435
|
),
|
|
9380
|
-
data.published &&
|
|
9436
|
+
data.published && React__default.createElement(
|
|
9381
9437
|
'p',
|
|
9382
9438
|
{ className: styles.published },
|
|
9383
9439
|
moment(data.published).format('MMMM Do YYYY')
|
|
9384
9440
|
),
|
|
9385
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9441
|
+
data.authorMapping && data.authorMapping.displayName && React__default.createElement(
|
|
9386
9442
|
'p',
|
|
9387
9443
|
{ className: styles.author },
|
|
9388
9444
|
'By ',
|
|
9389
|
-
|
|
9445
|
+
React__default.createElement(
|
|
9390
9446
|
'span',
|
|
9391
9447
|
null,
|
|
9392
9448
|
data.authorMapping.displayName
|
|
9393
9449
|
)
|
|
9394
9450
|
),
|
|
9395
|
-
data.description &&
|
|
9451
|
+
data.description && React__default.createElement(
|
|
9396
9452
|
'div',
|
|
9397
9453
|
{ className: 'media-series-desc' },
|
|
9398
|
-
|
|
9454
|
+
React__default.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9399
9455
|
)
|
|
9400
9456
|
)
|
|
9401
9457
|
)
|
|
@@ -9443,7 +9499,7 @@ var Filter = function Filter(_ref) {
|
|
|
9443
9499
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9444
9500
|
if (type === 'parent') {
|
|
9445
9501
|
setParentData(function (prevState) {
|
|
9446
|
-
return _extends$
|
|
9502
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null });
|
|
9447
9503
|
});
|
|
9448
9504
|
if (group && group.children && group.children.length > 0) {
|
|
9449
9505
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9457,7 +9513,7 @@ var Filter = function Filter(_ref) {
|
|
|
9457
9513
|
}
|
|
9458
9514
|
if (type === 'child') {
|
|
9459
9515
|
setChildData(function (prevState) {
|
|
9460
|
-
return _extends$
|
|
9516
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9461
9517
|
});
|
|
9462
9518
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9463
9519
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9476,7 +9532,7 @@ var Filter = function Filter(_ref) {
|
|
|
9476
9532
|
}
|
|
9477
9533
|
if (type === 'grandchild') {
|
|
9478
9534
|
setGrandChildData(function (prevState) {
|
|
9479
|
-
return _extends$
|
|
9535
|
+
return _extends$2({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9480
9536
|
});
|
|
9481
9537
|
//handle filter
|
|
9482
9538
|
if (!group._id) {
|
|
@@ -9492,13 +9548,13 @@ var Filter = function Filter(_ref) {
|
|
|
9492
9548
|
}
|
|
9493
9549
|
};
|
|
9494
9550
|
|
|
9495
|
-
return
|
|
9551
|
+
return React__default.createElement(
|
|
9496
9552
|
'div',
|
|
9497
9553
|
{ className: 'flex-container' },
|
|
9498
|
-
parentData &&
|
|
9554
|
+
parentData && React__default.createElement(
|
|
9499
9555
|
DropdownButton,
|
|
9500
9556
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9501
|
-
|
|
9557
|
+
React__default.createElement(
|
|
9502
9558
|
Dropdown$1.Item,
|
|
9503
9559
|
{ onSelect: function onSelect() {
|
|
9504
9560
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9507,7 +9563,7 @@ var Filter = function Filter(_ref) {
|
|
|
9507
9563
|
),
|
|
9508
9564
|
parentData.data.map(function (docGroup) {
|
|
9509
9565
|
if (!docGroup._id) return null;
|
|
9510
|
-
return
|
|
9566
|
+
return React__default.createElement(
|
|
9511
9567
|
Dropdown$1.Item,
|
|
9512
9568
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9513
9569
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9516,10 +9572,10 @@ var Filter = function Filter(_ref) {
|
|
|
9516
9572
|
);
|
|
9517
9573
|
})
|
|
9518
9574
|
),
|
|
9519
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9575
|
+
childData && childData.data && childData.data.length > 0 && React__default.createElement(
|
|
9520
9576
|
DropdownButton,
|
|
9521
9577
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9522
|
-
|
|
9578
|
+
React__default.createElement(
|
|
9523
9579
|
Dropdown$1.Item,
|
|
9524
9580
|
{ onSelect: function onSelect() {
|
|
9525
9581
|
return handleFilterSelect({}, 'child');
|
|
@@ -9528,7 +9584,7 @@ var Filter = function Filter(_ref) {
|
|
|
9528
9584
|
),
|
|
9529
9585
|
childData.data.map(function (docGroup) {
|
|
9530
9586
|
if (!docGroup._id) return null;
|
|
9531
|
-
return
|
|
9587
|
+
return React__default.createElement(
|
|
9532
9588
|
Dropdown$1.Item,
|
|
9533
9589
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9534
9590
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9537,10 +9593,10 @@ var Filter = function Filter(_ref) {
|
|
|
9537
9593
|
);
|
|
9538
9594
|
})
|
|
9539
9595
|
),
|
|
9540
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9596
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React__default.createElement(
|
|
9541
9597
|
DropdownButton,
|
|
9542
9598
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9543
|
-
|
|
9599
|
+
React__default.createElement(
|
|
9544
9600
|
Dropdown$1.Item,
|
|
9545
9601
|
{ onSelect: function onSelect() {
|
|
9546
9602
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9549,7 +9605,7 @@ var Filter = function Filter(_ref) {
|
|
|
9549
9605
|
),
|
|
9550
9606
|
grandChildData.data.map(function (docGroup) {
|
|
9551
9607
|
if (!docGroup._id) return null;
|
|
9552
|
-
return
|
|
9608
|
+
return React__default.createElement(
|
|
9553
9609
|
Dropdown$1.Item,
|
|
9554
9610
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9555
9611
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9558,7 +9614,7 @@ var Filter = function Filter(_ref) {
|
|
|
9558
9614
|
);
|
|
9559
9615
|
})
|
|
9560
9616
|
),
|
|
9561
|
-
|
|
9617
|
+
React__default.createElement(
|
|
9562
9618
|
'style',
|
|
9563
9619
|
{ jsx: 'true' },
|
|
9564
9620
|
'\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,7 +9662,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9606
9662
|
while (1) {
|
|
9607
9663
|
switch (_context.prev = _context.next) {
|
|
9608
9664
|
case 0:
|
|
9609
|
-
newParams = _extends$
|
|
9665
|
+
newParams = _extends$2({}, params, { from: 0, to: 10 });
|
|
9610
9666
|
filterQuery = void 0;
|
|
9611
9667
|
|
|
9612
9668
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9648,27 +9704,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9648
9704
|
}();
|
|
9649
9705
|
|
|
9650
9706
|
if (props.statusCode === 404) {
|
|
9651
|
-
return
|
|
9707
|
+
return React__default.createElement(
|
|
9652
9708
|
'div',
|
|
9653
9709
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9654
|
-
|
|
9710
|
+
React__default.createElement(
|
|
9655
9711
|
'h3',
|
|
9656
9712
|
null,
|
|
9657
9713
|
'404: Resource not found'
|
|
9658
9714
|
),
|
|
9659
|
-
|
|
9715
|
+
React__default.createElement(
|
|
9660
9716
|
'p',
|
|
9661
9717
|
null,
|
|
9662
9718
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9663
9719
|
),
|
|
9664
|
-
|
|
9720
|
+
React__default.createElement(
|
|
9665
9721
|
'p',
|
|
9666
9722
|
null,
|
|
9667
9723
|
'Click here to',
|
|
9668
|
-
|
|
9724
|
+
React__default.createElement(
|
|
9669
9725
|
Link,
|
|
9670
9726
|
{ href: '/' },
|
|
9671
|
-
|
|
9727
|
+
React__default.createElement(
|
|
9672
9728
|
'a',
|
|
9673
9729
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9674
9730
|
' return to homepage.'
|
|
@@ -9678,17 +9734,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9678
9734
|
);
|
|
9679
9735
|
}
|
|
9680
9736
|
|
|
9681
|
-
return
|
|
9737
|
+
return React__default.createElement(
|
|
9682
9738
|
'div',
|
|
9683
9739
|
{ className: 'mb-5' },
|
|
9684
|
-
props.docGroup && props.docGroup.description &&
|
|
9685
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9740
|
+
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9741
|
+
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9686
9742
|
'div',
|
|
9687
9743
|
{ className: '' },
|
|
9688
|
-
|
|
9689
|
-
|
|
9744
|
+
React__default.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9745
|
+
React__default.createElement('hr', null)
|
|
9690
9746
|
),
|
|
9691
|
-
seriesData &&
|
|
9747
|
+
seriesData && React__default.createElement(MasterDeck, {
|
|
9692
9748
|
deck: MediaSeriesCard,
|
|
9693
9749
|
variant: 'left',
|
|
9694
9750
|
defaultImage: '/placeholder.jpg',
|