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