@mjhls/mjh-framework 1.0.844-beta.1 → 1.0.844-schema-fix-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-9b50464b.js → ADInfeed-1417ce9a.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-65e48ce7.js → ADlgInfeed-01deca1a.js} +7 -6
- package/dist/cjs/AccordionPanel.js +24 -22
- package/dist/cjs/AdSlot.js +14 -13
- package/dist/cjs/AdSlotsProvider.js +12 -10
- package/dist/cjs/AlgoliaSearch.js +622 -611
- package/dist/cjs/AlphabeticList.js +16 -15
- package/dist/cjs/ArticleCarousel.js +11 -10
- package/dist/cjs/ArticleProgramLandingPage.js +25 -23
- package/dist/cjs/ArticleSeriesLandingPage.js +20 -19
- package/dist/cjs/ArticleSeriesListing.js +40 -39
- package/dist/cjs/Auth.js +3516 -0
- 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 +48 -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 +38 -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 +30 -28
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +50 -49
- package/dist/cjs/MediaSeriesLanding.js +731 -783
- 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 +71 -69
- 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/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 +23 -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 +45 -40
- package/dist/cjs/VideoSeriesCard.js +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +26 -25
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +209 -202
- 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 +4 -321
- package/dist/cjs/getRelatedArticle.js +374 -21
- package/dist/cjs/getSerializers.js +12 -11
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-15ad167c.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-3294d3bc.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-a8b50ae3.js → index-73ac3122.js} +882 -1466
- 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-bd6c9f56.js +211 -0
- 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 +68 -57
- package/dist/cjs/{inherits-9953db94.js → inherits-0c7830c5.js} +4 -4
- 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-e1ca5797.js +323 -0
- 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/util-f2c1b65b.js +576 -0
- 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-99535410.js → ADInfeed-bb64ffeb.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-0d359144.js → ADlgInfeed-18efe2e7.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +5 -5
- package/dist/esm/AlgoliaSearch.js +251 -241
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +21 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +3496 -0
- 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 +42 -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 +35 -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 +27 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +451 -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 +67 -66
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-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 +17 -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 +33 -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 +185 -182
- 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 +2 -319
- package/dist/esm/getRelatedArticle.js +374 -21
- package/dist/esm/getSerializers.js +12 -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-db3bb315.js +207 -0
- package/dist/esm/{index-1ecf523d.js → index-e537f766.js} +831 -1422
- 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 +55 -48
- 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-4e42248e.js +321 -0
- 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/util-7700fc59.js +574 -0
- package/dist/esm/{visibility-sensor-72fd8f8b.js → visibility-sensor-f40c2564.js} +2 -2
- package/package.json +2 -6
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
|
@@ -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,19 +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-bb64ffeb.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-18efe2e7.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-
|
|
55
|
-
import './
|
|
53
|
+
import './index.esm-3fdda599.js';
|
|
54
|
+
import { g as getSerializers } from './index-e537f766.js';
|
|
55
|
+
import './util-7700fc59.js';
|
|
56
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
56
57
|
import 'next/head';
|
|
57
58
|
import 'react-share';
|
|
58
59
|
import './SocialShare.js';
|
|
@@ -61,7 +62,7 @@ import 'react-bootstrap/Pagination';
|
|
|
61
62
|
import 'react-bootstrap/Figure';
|
|
62
63
|
import MasterDeck from './MasterDeck.js';
|
|
63
64
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
64
|
-
import { _ as _objectWithoutPropertiesLoose
|
|
65
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
65
66
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
66
67
|
import Link from 'next/link';
|
|
67
68
|
|
|
@@ -158,7 +159,7 @@ function useUncontrolled(props, config) {
|
|
|
158
159
|
var _ref = result,
|
|
159
160
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
160
161
|
propsValue = _ref[fieldName],
|
|
161
|
-
rest = _objectWithoutPropertiesLoose
|
|
162
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
162
163
|
|
|
163
164
|
var handlerName = config[fieldName];
|
|
164
165
|
|
|
@@ -166,7 +167,7 @@ function useUncontrolled(props, config) {
|
|
|
166
167
|
value = _useUncontrolledProp[0],
|
|
167
168
|
handler = _useUncontrolledProp[1];
|
|
168
169
|
|
|
169
|
-
return _extends
|
|
170
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
170
171
|
}, props);
|
|
171
172
|
}
|
|
172
173
|
|
|
@@ -176,7 +177,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
176
177
|
subClass.__proto__ = superClass;
|
|
177
178
|
}
|
|
178
179
|
|
|
179
|
-
var ThemeContext =
|
|
180
|
+
var ThemeContext = React.createContext({});
|
|
180
181
|
var Consumer = ThemeContext.Consumer,
|
|
181
182
|
Provider = ThemeContext.Provider;
|
|
182
183
|
|
|
@@ -185,7 +186,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
185
186
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
186
187
|
}
|
|
187
188
|
|
|
188
|
-
var SelectableContext =
|
|
189
|
+
var SelectableContext = React.createContext(null);
|
|
189
190
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
190
191
|
if (href === void 0) {
|
|
191
192
|
href = null;
|
|
@@ -195,7 +196,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
195
196
|
return href || null;
|
|
196
197
|
};
|
|
197
198
|
|
|
198
|
-
var context =
|
|
199
|
+
var context = React.createContext(null);
|
|
199
200
|
context.displayName = 'AccordionContext';
|
|
200
201
|
|
|
201
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -211,13 +212,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
211
212
|
if (onClick) onClick(e);
|
|
212
213
|
};
|
|
213
214
|
}
|
|
214
|
-
var AccordionToggle =
|
|
215
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
215
216
|
var _ref$as = _ref.as,
|
|
216
217
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
217
218
|
children = _ref.children,
|
|
218
219
|
eventKey = _ref.eventKey,
|
|
219
220
|
onClick = _ref.onClick,
|
|
220
|
-
props = _objectWithoutPropertiesLoose
|
|
221
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
221
222
|
|
|
222
223
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
223
224
|
|
|
@@ -225,7 +226,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
225
226
|
props.type = 'button';
|
|
226
227
|
}
|
|
227
228
|
|
|
228
|
-
return /*#__PURE__*/
|
|
229
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
229
230
|
ref: ref,
|
|
230
231
|
onClick: accordionOnClick
|
|
231
232
|
}, props), children);
|
|
@@ -422,7 +423,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
422
423
|
exitActive: PropTypes.string
|
|
423
424
|
})]) : null;
|
|
424
425
|
|
|
425
|
-
var TransitionGroupContext =
|
|
426
|
+
var TransitionGroupContext = React.createContext(null);
|
|
426
427
|
|
|
427
428
|
var UNMOUNTED = 'unmounted';
|
|
428
429
|
var EXITED = 'exited';
|
|
@@ -807,19 +808,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
807
808
|
_onExiting = _this$props.onExiting,
|
|
808
809
|
_onExited = _this$props.onExited,
|
|
809
810
|
_nodeRef = _this$props.nodeRef,
|
|
810
|
-
childProps = _objectWithoutPropertiesLoose
|
|
811
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
811
812
|
|
|
812
813
|
return (
|
|
813
814
|
/*#__PURE__*/
|
|
814
815
|
// allows for nested Transitions
|
|
815
|
-
|
|
816
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
816
817
|
value: null
|
|
817
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
818
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
818
819
|
);
|
|
819
820
|
};
|
|
820
821
|
|
|
821
822
|
return Transition;
|
|
822
|
-
}(
|
|
823
|
+
}(React.Component);
|
|
823
824
|
|
|
824
825
|
Transition.contextType = TransitionGroupContext;
|
|
825
826
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1095,7 +1096,7 @@ var defaultProps = {
|
|
|
1095
1096
|
appear: false,
|
|
1096
1097
|
getDimensionValue: getDefaultDimensionValue
|
|
1097
1098
|
};
|
|
1098
|
-
var Collapse =
|
|
1099
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1099
1100
|
var onEnter = _ref.onEnter,
|
|
1100
1101
|
onEntering = _ref.onEntering,
|
|
1101
1102
|
onEntered = _ref.onEntered,
|
|
@@ -1107,7 +1108,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1107
1108
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1108
1109
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1109
1110
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1110
|
-
props = _objectWithoutPropertiesLoose
|
|
1111
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1111
1112
|
|
|
1112
1113
|
/* Compute dimension */
|
|
1113
1114
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1142,8 +1143,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1142
1143
|
elem.style[computedDimension] = null;
|
|
1143
1144
|
}, onExiting);
|
|
1144
1145
|
}, [computedDimension, onExiting]);
|
|
1145
|
-
return /*#__PURE__*/
|
|
1146
|
-
, _extends
|
|
1146
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1147
|
+
, _extends({
|
|
1147
1148
|
ref: ref,
|
|
1148
1149
|
addEndListener: transitionEnd
|
|
1149
1150
|
}, props, {
|
|
@@ -1154,7 +1155,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1154
1155
|
onExit: handleExit,
|
|
1155
1156
|
onExiting: handleExiting
|
|
1156
1157
|
}), function (state, innerProps) {
|
|
1157
|
-
return
|
|
1158
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1158
1159
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1159
1160
|
}));
|
|
1160
1161
|
});
|
|
@@ -1163,24 +1164,24 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1163
1164
|
// @ts-ignore
|
|
1164
1165
|
Collapse.defaultProps = defaultProps;
|
|
1165
1166
|
|
|
1166
|
-
var AccordionCollapse =
|
|
1167
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1167
1168
|
var children = _ref.children,
|
|
1168
1169
|
eventKey = _ref.eventKey,
|
|
1169
|
-
props = _objectWithoutPropertiesLoose
|
|
1170
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1170
1171
|
|
|
1171
1172
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1172
1173
|
// from collapsing the accordion when clicked.
|
|
1173
1174
|
|
|
1174
|
-
return /*#__PURE__*/
|
|
1175
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1175
1176
|
value: null
|
|
1176
|
-
}, /*#__PURE__*/
|
|
1177
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1177
1178
|
ref: ref,
|
|
1178
1179
|
in: contextEventKey === eventKey
|
|
1179
|
-
}, props), /*#__PURE__*/
|
|
1180
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1180
1181
|
});
|
|
1181
1182
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1182
1183
|
|
|
1183
|
-
var Accordion =
|
|
1184
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1184
1185
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1185
1186
|
activeKey: 'onSelect'
|
|
1186
1187
|
}),
|
|
@@ -1191,14 +1192,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1191
1192
|
children = _useUncontrolled.children,
|
|
1192
1193
|
className = _useUncontrolled.className,
|
|
1193
1194
|
onSelect = _useUncontrolled.onSelect,
|
|
1194
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1195
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1195
1196
|
|
|
1196
1197
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1197
|
-
return /*#__PURE__*/
|
|
1198
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1198
1199
|
value: activeKey || null
|
|
1199
|
-
}, /*#__PURE__*/
|
|
1200
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1200
1201
|
value: onSelect || null
|
|
1201
|
-
}, /*#__PURE__*/
|
|
1202
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1202
1203
|
ref: ref
|
|
1203
1204
|
}, controlledProps, {
|
|
1204
1205
|
className: finalClassName
|
|
@@ -1242,22 +1243,22 @@ var defaultProps$1 = {
|
|
|
1242
1243
|
appear: false
|
|
1243
1244
|
};
|
|
1244
1245
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1245
|
-
var Fade =
|
|
1246
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1246
1247
|
var className = _ref.className,
|
|
1247
1248
|
children = _ref.children,
|
|
1248
|
-
props = _objectWithoutPropertiesLoose
|
|
1249
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1249
1250
|
|
|
1250
1251
|
var handleEnter = useCallback(function (node) {
|
|
1251
1252
|
triggerBrowserReflow(node);
|
|
1252
1253
|
if (props.onEnter) props.onEnter(node);
|
|
1253
1254
|
}, [props]);
|
|
1254
|
-
return /*#__PURE__*/
|
|
1255
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1255
1256
|
ref: ref,
|
|
1256
1257
|
addEndListener: transitionEnd
|
|
1257
1258
|
}, props, {
|
|
1258
1259
|
onEnter: handleEnter
|
|
1259
1260
|
}), function (status, innerProps) {
|
|
1260
|
-
return
|
|
1261
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1261
1262
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1262
1263
|
}));
|
|
1263
1264
|
});
|
|
@@ -1272,20 +1273,20 @@ var propTypes = {
|
|
|
1272
1273
|
var defaultProps$2 = {
|
|
1273
1274
|
label: 'Close'
|
|
1274
1275
|
};
|
|
1275
|
-
var CloseButton =
|
|
1276
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1276
1277
|
var label = _ref.label,
|
|
1277
1278
|
onClick = _ref.onClick,
|
|
1278
1279
|
className = _ref.className,
|
|
1279
|
-
props = _objectWithoutPropertiesLoose
|
|
1280
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1280
1281
|
|
|
1281
|
-
return /*#__PURE__*/
|
|
1282
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1282
1283
|
ref: ref,
|
|
1283
1284
|
type: "button",
|
|
1284
1285
|
className: classnames('close', className),
|
|
1285
1286
|
onClick: onClick
|
|
1286
|
-
}, props), /*#__PURE__*/
|
|
1287
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1287
1288
|
"aria-hidden": "true"
|
|
1288
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1289
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1289
1290
|
className: "sr-only"
|
|
1290
1291
|
}, label));
|
|
1291
1292
|
});
|
|
@@ -1294,8 +1295,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1294
1295
|
CloseButton.defaultProps = defaultProps$2;
|
|
1295
1296
|
|
|
1296
1297
|
var divWithClassName = (function (className) {
|
|
1297
|
-
return
|
|
1298
|
-
return /*#__PURE__*/
|
|
1298
|
+
return React.forwardRef(function (p, ref) {
|
|
1299
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1299
1300
|
ref: ref,
|
|
1300
1301
|
className: classnames(p.className, className)
|
|
1301
1302
|
}));
|
|
@@ -1321,15 +1322,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1321
1322
|
Component = _ref.Component,
|
|
1322
1323
|
defaultProps = _ref.defaultProps;
|
|
1323
1324
|
|
|
1324
|
-
var BsComponent =
|
|
1325
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1325
1326
|
var className = _ref2.className,
|
|
1326
1327
|
bsPrefix = _ref2.bsPrefix,
|
|
1327
1328
|
_ref2$as = _ref2.as,
|
|
1328
1329
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1329
|
-
props = _objectWithoutPropertiesLoose
|
|
1330
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1330
1331
|
|
|
1331
1332
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1332
|
-
return /*#__PURE__*/
|
|
1333
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1333
1334
|
ref: ref,
|
|
1334
1335
|
className: classnames(className, resolvedPrefix)
|
|
1335
1336
|
}, props));
|
|
@@ -1351,12 +1352,12 @@ function isTrivialHref(href) {
|
|
|
1351
1352
|
*/
|
|
1352
1353
|
|
|
1353
1354
|
|
|
1354
|
-
var SafeAnchor =
|
|
1355
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1355
1356
|
var _ref$as = _ref.as,
|
|
1356
1357
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1357
1358
|
disabled = _ref.disabled,
|
|
1358
1359
|
onKeyDown = _ref.onKeyDown,
|
|
1359
|
-
props = _objectWithoutPropertiesLoose
|
|
1360
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1360
1361
|
|
|
1361
1362
|
var handleClick = function handleClick(event) {
|
|
1362
1363
|
var href = props.href,
|
|
@@ -1395,7 +1396,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1395
1396
|
props['aria-disabled'] = true;
|
|
1396
1397
|
}
|
|
1397
1398
|
|
|
1398
|
-
return /*#__PURE__*/
|
|
1399
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1399
1400
|
ref: ref
|
|
1400
1401
|
}, props, {
|
|
1401
1402
|
onClick: handleClick,
|
|
@@ -1417,7 +1418,7 @@ var defaultProps$3 = {
|
|
|
1417
1418
|
transition: Fade,
|
|
1418
1419
|
closeLabel: 'Close alert'
|
|
1419
1420
|
};
|
|
1420
|
-
var Alert =
|
|
1421
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1421
1422
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1422
1423
|
show: 'onClose'
|
|
1423
1424
|
}),
|
|
@@ -1430,7 +1431,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1430
1431
|
onClose = _useUncontrolled.onClose,
|
|
1431
1432
|
dismissible = _useUncontrolled.dismissible,
|
|
1432
1433
|
transition = _useUncontrolled.transition,
|
|
1433
|
-
props = _objectWithoutPropertiesLoose
|
|
1434
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1434
1435
|
|
|
1435
1436
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1436
1437
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1439,17 +1440,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1439
1440
|
}
|
|
1440
1441
|
});
|
|
1441
1442
|
var Transition = transition === true ? Fade : transition;
|
|
1442
|
-
var alert = /*#__PURE__*/
|
|
1443
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1443
1444
|
role: "alert"
|
|
1444
1445
|
}, Transition ? props : undefined, {
|
|
1445
1446
|
ref: ref,
|
|
1446
1447
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1447
|
-
}), dismissible && /*#__PURE__*/
|
|
1448
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1448
1449
|
onClick: handleClose,
|
|
1449
1450
|
label: closeLabel
|
|
1450
1451
|
}), children);
|
|
1451
1452
|
if (!Transition) return show ? alert : null;
|
|
1452
|
-
return /*#__PURE__*/
|
|
1453
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1453
1454
|
unmountOnExit: true
|
|
1454
1455
|
}, props, {
|
|
1455
1456
|
ref: undefined,
|
|
@@ -1464,17 +1465,17 @@ Alert.Heading = AlertHeading;
|
|
|
1464
1465
|
var defaultProps$4 = {
|
|
1465
1466
|
pill: false
|
|
1466
1467
|
};
|
|
1467
|
-
var Badge =
|
|
1468
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1468
1469
|
var bsPrefix = _ref.bsPrefix,
|
|
1469
1470
|
variant = _ref.variant,
|
|
1470
1471
|
pill = _ref.pill,
|
|
1471
1472
|
className = _ref.className,
|
|
1472
1473
|
_ref$as = _ref.as,
|
|
1473
1474
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1474
|
-
props = _objectWithoutPropertiesLoose
|
|
1475
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1475
1476
|
|
|
1476
1477
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1477
|
-
return /*#__PURE__*/
|
|
1478
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1478
1479
|
ref: ref
|
|
1479
1480
|
}, props, {
|
|
1480
1481
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1487,7 +1488,7 @@ var defaultProps$5 = {
|
|
|
1487
1488
|
active: false,
|
|
1488
1489
|
linkProps: {}
|
|
1489
1490
|
};
|
|
1490
|
-
var BreadcrumbItem =
|
|
1491
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1491
1492
|
var bsPrefix = _ref.bsPrefix,
|
|
1492
1493
|
active = _ref.active,
|
|
1493
1494
|
children = _ref.children,
|
|
@@ -1500,17 +1501,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1500
1501
|
href = _ref.href,
|
|
1501
1502
|
title = _ref.title,
|
|
1502
1503
|
target = _ref.target,
|
|
1503
|
-
props = _objectWithoutPropertiesLoose
|
|
1504
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1504
1505
|
|
|
1505
1506
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1506
|
-
return /*#__PURE__*/
|
|
1507
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1507
1508
|
ref: ref
|
|
1508
1509
|
}, props, {
|
|
1509
1510
|
className: classnames(prefix, className, {
|
|
1510
1511
|
active: active
|
|
1511
1512
|
}),
|
|
1512
1513
|
"aria-current": active ? 'page' : undefined
|
|
1513
|
-
}), active ? children : /*#__PURE__*/
|
|
1514
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1514
1515
|
href: href,
|
|
1515
1516
|
title: title,
|
|
1516
1517
|
target: target
|
|
@@ -1523,7 +1524,7 @@ var defaultProps$6 = {
|
|
|
1523
1524
|
label: 'breadcrumb',
|
|
1524
1525
|
listProps: {}
|
|
1525
1526
|
};
|
|
1526
|
-
var Breadcrumb =
|
|
1527
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1527
1528
|
var bsPrefix = _ref.bsPrefix,
|
|
1528
1529
|
className = _ref.className,
|
|
1529
1530
|
listProps = _ref.listProps,
|
|
@@ -1531,14 +1532,14 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1531
1532
|
label = _ref.label,
|
|
1532
1533
|
_ref$as = _ref.as,
|
|
1533
1534
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1534
|
-
props = _objectWithoutPropertiesLoose
|
|
1535
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1535
1536
|
|
|
1536
1537
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1537
|
-
return /*#__PURE__*/
|
|
1538
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1538
1539
|
"aria-label": label,
|
|
1539
1540
|
className: className,
|
|
1540
1541
|
ref: ref
|
|
1541
|
-
}, props), /*#__PURE__*/
|
|
1542
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1542
1543
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1543
1544
|
}), children));
|
|
1544
1545
|
});
|
|
@@ -1551,7 +1552,7 @@ var defaultProps$7 = {
|
|
|
1551
1552
|
active: false,
|
|
1552
1553
|
disabled: false
|
|
1553
1554
|
};
|
|
1554
|
-
var Button =
|
|
1555
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1555
1556
|
var bsPrefix = _ref.bsPrefix,
|
|
1556
1557
|
variant = _ref.variant,
|
|
1557
1558
|
size = _ref.size,
|
|
@@ -1560,13 +1561,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1560
1561
|
block = _ref.block,
|
|
1561
1562
|
type = _ref.type,
|
|
1562
1563
|
as = _ref.as,
|
|
1563
|
-
props = _objectWithoutPropertiesLoose
|
|
1564
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1564
1565
|
|
|
1565
1566
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1566
1567
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1567
1568
|
|
|
1568
1569
|
if (props.href) {
|
|
1569
|
-
return /*#__PURE__*/
|
|
1570
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1570
1571
|
as: as,
|
|
1571
1572
|
ref: ref,
|
|
1572
1573
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1584,7 +1585,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1584
1585
|
}
|
|
1585
1586
|
|
|
1586
1587
|
var Component = as || 'button';
|
|
1587
|
-
return /*#__PURE__*/
|
|
1588
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1588
1589
|
className: classes
|
|
1589
1590
|
}));
|
|
1590
1591
|
});
|
|
@@ -1596,7 +1597,7 @@ var defaultProps$8 = {
|
|
|
1596
1597
|
toggle: false,
|
|
1597
1598
|
role: 'group'
|
|
1598
1599
|
};
|
|
1599
|
-
var ButtonGroup =
|
|
1600
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1600
1601
|
var bsPrefix = _ref.bsPrefix,
|
|
1601
1602
|
size = _ref.size,
|
|
1602
1603
|
toggle = _ref.toggle,
|
|
@@ -1604,12 +1605,12 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1604
1605
|
className = _ref.className,
|
|
1605
1606
|
_ref$as = _ref.as,
|
|
1606
1607
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1607
|
-
rest = _objectWithoutPropertiesLoose
|
|
1608
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1608
1609
|
|
|
1609
1610
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1610
1611
|
var baseClass = prefix;
|
|
1611
1612
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1612
|
-
return /*#__PURE__*/
|
|
1613
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1613
1614
|
ref: ref,
|
|
1614
1615
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1615
1616
|
}));
|
|
@@ -1620,13 +1621,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1620
1621
|
var defaultProps$9 = {
|
|
1621
1622
|
role: 'toolbar'
|
|
1622
1623
|
};
|
|
1623
|
-
var ButtonToolbar =
|
|
1624
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1624
1625
|
var bsPrefix = _ref.bsPrefix,
|
|
1625
1626
|
className = _ref.className,
|
|
1626
|
-
props = _objectWithoutPropertiesLoose
|
|
1627
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1627
1628
|
|
|
1628
1629
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1629
|
-
return /*#__PURE__*/
|
|
1630
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1630
1631
|
ref: ref,
|
|
1631
1632
|
className: classnames(className, prefix)
|
|
1632
1633
|
}));
|
|
@@ -1634,23 +1635,23 @@ var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
|
1634
1635
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1635
1636
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1636
1637
|
|
|
1637
|
-
var context$1 =
|
|
1638
|
+
var context$1 = React.createContext(null);
|
|
1638
1639
|
context$1.displayName = 'CardContext';
|
|
1639
1640
|
|
|
1640
1641
|
var defaultProps$a = {
|
|
1641
1642
|
variant: null
|
|
1642
1643
|
};
|
|
1643
|
-
var CardImg =
|
|
1644
|
+
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
|
|
1644
1645
|
function (_ref, ref) {
|
|
1645
1646
|
var bsPrefix = _ref.bsPrefix,
|
|
1646
1647
|
className = _ref.className,
|
|
1647
1648
|
variant = _ref.variant,
|
|
1648
1649
|
_ref$as = _ref.as,
|
|
1649
1650
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1650
|
-
props = _objectWithoutPropertiesLoose
|
|
1651
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1651
1652
|
|
|
1652
1653
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1653
|
-
return /*#__PURE__*/
|
|
1654
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1654
1655
|
ref: ref,
|
|
1655
1656
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1656
1657
|
}, props));
|
|
@@ -1679,7 +1680,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1679
1680
|
var defaultProps$b = {
|
|
1680
1681
|
body: false
|
|
1681
1682
|
};
|
|
1682
|
-
var Card =
|
|
1683
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1683
1684
|
var bsPrefix = _ref.bsPrefix,
|
|
1684
1685
|
className = _ref.className,
|
|
1685
1686
|
bg = _ref.bg,
|
|
@@ -1689,7 +1690,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1689
1690
|
children = _ref.children,
|
|
1690
1691
|
_ref$as = _ref.as,
|
|
1691
1692
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1692
|
-
props = _objectWithoutPropertiesLoose
|
|
1693
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1693
1694
|
|
|
1694
1695
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1695
1696
|
var cardContext = useMemo(function () {
|
|
@@ -1697,16 +1698,16 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1697
1698
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1698
1699
|
};
|
|
1699
1700
|
}, [prefix]);
|
|
1700
|
-
return /*#__PURE__*/
|
|
1701
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1701
1702
|
value: cardContext
|
|
1702
|
-
}, /*#__PURE__*/
|
|
1703
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1703
1704
|
ref: ref
|
|
1704
1705
|
}, props, {
|
|
1705
1706
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1706
1707
|
}), body ?
|
|
1707
1708
|
/*#__PURE__*/
|
|
1708
1709
|
// @ts-ignore
|
|
1709
|
-
|
|
1710
|
+
React.createElement(CardBody, null, children) : children));
|
|
1710
1711
|
});
|
|
1711
1712
|
Card.displayName = 'Card';
|
|
1712
1713
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1842,20 +1843,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1842
1843
|
/**
|
|
1843
1844
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1844
1845
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1845
|
-
*
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1848
|
-
* ```tsx
|
|
1849
|
-
* const { set, clear } = useTimeout();
|
|
1850
|
-
* const [hello, showHello] = useState(false);
|
|
1851
|
-
* //Display hello after 5 seconds
|
|
1852
|
-
* set(() => showHello(true), 5000);
|
|
1853
|
-
* return (
|
|
1854
|
-
* <div className="App">
|
|
1855
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1856
|
-
* </div>
|
|
1857
|
-
* );
|
|
1858
|
-
* ```
|
|
1859
1846
|
*/
|
|
1860
1847
|
|
|
1861
1848
|
|
|
@@ -1896,16 +1883,16 @@ function useTimeout() {
|
|
|
1896
1883
|
|
|
1897
1884
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1898
1885
|
|
|
1899
|
-
var CarouselItem =
|
|
1886
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1900
1887
|
var _ref$as = _ref.as,
|
|
1901
1888
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1902
1889
|
bsPrefix = _ref.bsPrefix,
|
|
1903
1890
|
children = _ref.children,
|
|
1904
1891
|
className = _ref.className,
|
|
1905
|
-
props = _objectWithoutPropertiesLoose
|
|
1892
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1906
1893
|
|
|
1907
1894
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1908
|
-
return /*#__PURE__*/
|
|
1895
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1909
1896
|
ref: ref
|
|
1910
1897
|
}, props, {
|
|
1911
1898
|
className: finalClassName
|
|
@@ -1924,8 +1911,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1924
1911
|
|
|
1925
1912
|
function map(children, func) {
|
|
1926
1913
|
var index = 0;
|
|
1927
|
-
return
|
|
1928
|
-
return
|
|
1914
|
+
return React.Children.map(children, function (child) {
|
|
1915
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1929
1916
|
});
|
|
1930
1917
|
}
|
|
1931
1918
|
/**
|
|
@@ -1938,8 +1925,8 @@ function map(children, func) {
|
|
|
1938
1925
|
|
|
1939
1926
|
function forEach(children, func) {
|
|
1940
1927
|
var index = 0;
|
|
1941
|
-
|
|
1942
|
-
if (
|
|
1928
|
+
React.Children.forEach(children, function (child) {
|
|
1929
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1943
1930
|
});
|
|
1944
1931
|
}
|
|
1945
1932
|
|
|
@@ -2057,12 +2044,12 @@ var defaultProps$c = {
|
|
|
2057
2044
|
pause: 'hover',
|
|
2058
2045
|
wrap: true,
|
|
2059
2046
|
touch: true,
|
|
2060
|
-
prevIcon: /*#__PURE__*/
|
|
2047
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2061
2048
|
"aria-hidden": "true",
|
|
2062
2049
|
className: "carousel-control-prev-icon"
|
|
2063
2050
|
}),
|
|
2064
2051
|
prevLabel: 'Previous',
|
|
2065
|
-
nextIcon: /*#__PURE__*/
|
|
2052
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2066
2053
|
"aria-hidden": "true",
|
|
2067
2054
|
className: "carousel-control-next-icon"
|
|
2068
2055
|
}),
|
|
@@ -2110,7 +2097,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2110
2097
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2111
2098
|
className = _useUncontrolled.className,
|
|
2112
2099
|
children = _useUncontrolled.children,
|
|
2113
|
-
props = _objectWithoutPropertiesLoose
|
|
2100
|
+
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"]);
|
|
2114
2101
|
|
|
2115
2102
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2116
2103
|
var nextDirectionRef = useRef(null);
|
|
@@ -2367,7 +2354,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2367
2354
|
};
|
|
2368
2355
|
});
|
|
2369
2356
|
}, [indicators, numChildren, onSelect]);
|
|
2370
|
-
return /*#__PURE__*/
|
|
2357
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2371
2358
|
ref: elementRef
|
|
2372
2359
|
}, props, {
|
|
2373
2360
|
onKeyDown: handleKeyDown,
|
|
@@ -2377,44 +2364,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2377
2364
|
onTouchMove: handleTouchMove,
|
|
2378
2365
|
onTouchEnd: handleTouchEnd,
|
|
2379
2366
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2380
|
-
}), indicators && /*#__PURE__*/
|
|
2367
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2381
2368
|
className: prefix + "-indicators"
|
|
2382
2369
|
}, map(children, function (_child, index) {
|
|
2383
|
-
return /*#__PURE__*/
|
|
2370
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2384
2371
|
key: index,
|
|
2385
2372
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2386
2373
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2387
2374
|
});
|
|
2388
|
-
})), /*#__PURE__*/
|
|
2375
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2389
2376
|
className: prefix + "-inner"
|
|
2390
2377
|
}, map(children, function (child, index) {
|
|
2391
2378
|
var isActive = index === renderedActiveIndex;
|
|
2392
|
-
return slide ? /*#__PURE__*/
|
|
2379
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2393
2380
|
in: isActive,
|
|
2394
2381
|
onEnter: isActive ? handleEnter : undefined,
|
|
2395
2382
|
onEntered: isActive ? handleEntered : undefined,
|
|
2396
2383
|
addEndListener: transitionEnd
|
|
2397
2384
|
}, function (status) {
|
|
2398
|
-
return
|
|
2385
|
+
return React.cloneElement(child, {
|
|
2399
2386
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2400
2387
|
});
|
|
2401
|
-
}) :
|
|
2388
|
+
}) : React.cloneElement(child, {
|
|
2402
2389
|
className: classnames(child.props.className, isActive && 'active')
|
|
2403
2390
|
});
|
|
2404
|
-
})), controls && /*#__PURE__*/
|
|
2391
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2405
2392
|
className: prefix + "-control-prev",
|
|
2406
2393
|
onClick: prev
|
|
2407
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2394
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2408
2395
|
className: "sr-only"
|
|
2409
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2396
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2410
2397
|
className: prefix + "-control-next",
|
|
2411
2398
|
onClick: next
|
|
2412
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2399
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2413
2400
|
className: "sr-only"
|
|
2414
2401
|
}, nextLabel))));
|
|
2415
2402
|
}
|
|
2416
2403
|
|
|
2417
|
-
var Carousel =
|
|
2404
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2418
2405
|
Carousel.displayName = 'Carousel';
|
|
2419
2406
|
Carousel.propTypes = propTypes$1;
|
|
2420
2407
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2422,13 +2409,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2422
2409
|
Carousel.Item = CarouselItem;
|
|
2423
2410
|
|
|
2424
2411
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2425
|
-
var Col =
|
|
2412
|
+
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
|
|
2426
2413
|
function (_ref, ref) {
|
|
2427
2414
|
var bsPrefix = _ref.bsPrefix,
|
|
2428
2415
|
className = _ref.className,
|
|
2429
2416
|
_ref$as = _ref.as,
|
|
2430
2417
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2431
|
-
props = _objectWithoutPropertiesLoose
|
|
2418
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2432
2419
|
|
|
2433
2420
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2434
2421
|
var spans = [];
|
|
@@ -2459,7 +2446,7 @@ function (_ref, ref) {
|
|
|
2459
2446
|
spans.push(prefix); // plain 'col'
|
|
2460
2447
|
}
|
|
2461
2448
|
|
|
2462
|
-
return /*#__PURE__*/
|
|
2449
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2463
2450
|
ref: ref,
|
|
2464
2451
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2465
2452
|
}));
|
|
@@ -2568,40 +2555,7 @@ function useForceUpdate() {
|
|
|
2568
2555
|
return dispatch;
|
|
2569
2556
|
}
|
|
2570
2557
|
|
|
2571
|
-
var DropdownContext = /*#__PURE__*/
|
|
2572
|
-
|
|
2573
|
-
function _extends() {
|
|
2574
|
-
_extends = Object.assign || function (target) {
|
|
2575
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2576
|
-
var source = arguments[i];
|
|
2577
|
-
|
|
2578
|
-
for (var key in source) {
|
|
2579
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2580
|
-
target[key] = source[key];
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
return target;
|
|
2586
|
-
};
|
|
2587
|
-
|
|
2588
|
-
return _extends.apply(this, arguments);
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2592
|
-
if (source == null) return {};
|
|
2593
|
-
var target = {};
|
|
2594
|
-
var sourceKeys = Object.keys(source);
|
|
2595
|
-
var key, i;
|
|
2596
|
-
|
|
2597
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2598
|
-
key = sourceKeys[i];
|
|
2599
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2600
|
-
target[key] = source[key];
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
|
-
return target;
|
|
2604
|
-
}
|
|
2558
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2605
2559
|
|
|
2606
2560
|
function useSafeState(state) {
|
|
2607
2561
|
var isMounted = useMounted();
|
|
@@ -2706,7 +2660,7 @@ function contains(parent, child) {
|
|
|
2706
2660
|
do {
|
|
2707
2661
|
if (next && parent.isSameNode(next)) {
|
|
2708
2662
|
return true;
|
|
2709
|
-
} // $FlowFixMe
|
|
2663
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2710
2664
|
|
|
2711
2665
|
|
|
2712
2666
|
next = next.parentNode || next.host;
|
|
@@ -2730,9 +2684,8 @@ function isTableElement(element) {
|
|
|
2730
2684
|
}
|
|
2731
2685
|
|
|
2732
2686
|
function getDocumentElement(element) {
|
|
2733
|
-
// $FlowFixMe
|
|
2734
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2735
|
-
element.document) || window.document).documentElement;
|
|
2687
|
+
// $FlowFixMe: assume body is always available
|
|
2688
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2736
2689
|
}
|
|
2737
2690
|
|
|
2738
2691
|
function getParentNode(element) {
|
|
@@ -2740,14 +2693,12 @@ function getParentNode(element) {
|
|
|
2740
2693
|
return element;
|
|
2741
2694
|
}
|
|
2742
2695
|
|
|
2743
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2744
|
-
// $FlowFixMe[incompatible-return]
|
|
2745
|
-
// $FlowFixMe[prop-missing]
|
|
2696
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2746
2697
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2747
2698
|
element.parentNode || // DOM Element detected
|
|
2748
|
-
// $FlowFixMe
|
|
2699
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2749
2700
|
element.host || // ShadowRoot detected
|
|
2750
|
-
// $FlowFixMe
|
|
2701
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2751
2702
|
getDocumentElement(element) // fallback
|
|
2752
2703
|
|
|
2753
2704
|
);
|
|
@@ -2934,7 +2885,7 @@ var unsetSides = {
|
|
|
2934
2885
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2935
2886
|
// cleanly divide the values into the appropriate subpixels.
|
|
2936
2887
|
|
|
2937
|
-
function
|
|
2888
|
+
function roundOffsets(_ref) {
|
|
2938
2889
|
var x = _ref.x,
|
|
2939
2890
|
y = _ref.y;
|
|
2940
2891
|
var win = window;
|
|
@@ -2954,14 +2905,11 @@ function mapToStyles(_ref2) {
|
|
|
2954
2905
|
offsets = _ref2.offsets,
|
|
2955
2906
|
position = _ref2.position,
|
|
2956
2907
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2957
|
-
adaptive = _ref2.adaptive
|
|
2958
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2908
|
+
adaptive = _ref2.adaptive;
|
|
2959
2909
|
|
|
2960
|
-
var
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
_ref3$y = _ref3.y,
|
|
2964
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2910
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2911
|
+
x = _roundOffsets.x,
|
|
2912
|
+
y = _roundOffsets.y;
|
|
2965
2913
|
|
|
2966
2914
|
var hasX = offsets.hasOwnProperty('x');
|
|
2967
2915
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2974,7 +2922,7 @@ function mapToStyles(_ref2) {
|
|
|
2974
2922
|
|
|
2975
2923
|
if (offsetParent === getWindow(popper)) {
|
|
2976
2924
|
offsetParent = getDocumentElement(popper);
|
|
2977
|
-
} // $FlowFixMe
|
|
2925
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2978
2926
|
|
|
2979
2927
|
/*:: offsetParent = (offsetParent: Element); */
|
|
2980
2928
|
|
|
@@ -3005,15 +2953,13 @@ function mapToStyles(_ref2) {
|
|
|
3005
2953
|
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));
|
|
3006
2954
|
}
|
|
3007
2955
|
|
|
3008
|
-
function computeStyles(
|
|
3009
|
-
var state =
|
|
3010
|
-
options =
|
|
2956
|
+
function computeStyles(_ref3) {
|
|
2957
|
+
var state = _ref3.state,
|
|
2958
|
+
options = _ref3.options;
|
|
3011
2959
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3012
2960
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3013
2961
|
_options$adaptive = options.adaptive,
|
|
3014
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3015
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3016
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2962
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3017
2963
|
|
|
3018
2964
|
if (process.env.NODE_ENV !== "production") {
|
|
3019
2965
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3036,8 +2982,7 @@ function computeStyles(_ref4) {
|
|
|
3036
2982
|
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3037
2983
|
offsets: state.modifiersData.popperOffsets,
|
|
3038
2984
|
position: state.options.strategy,
|
|
3039
|
-
adaptive: adaptive
|
|
3040
|
-
roundOffsets: roundOffsets
|
|
2985
|
+
adaptive: adaptive
|
|
3041
2986
|
})));
|
|
3042
2987
|
}
|
|
3043
2988
|
|
|
@@ -3045,8 +2990,7 @@ function computeStyles(_ref4) {
|
|
|
3045
2990
|
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3046
2991
|
offsets: state.modifiersData.arrow,
|
|
3047
2992
|
position: 'absolute',
|
|
3048
|
-
adaptive: false
|
|
3049
|
-
roundOffsets: roundOffsets
|
|
2993
|
+
adaptive: false
|
|
3050
2994
|
})));
|
|
3051
2995
|
}
|
|
3052
2996
|
|
|
@@ -3242,7 +3186,7 @@ function isScrollParent(element) {
|
|
|
3242
3186
|
|
|
3243
3187
|
function getScrollParent(node) {
|
|
3244
3188
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3245
|
-
// $FlowFixMe
|
|
3189
|
+
// $FlowFixMe: assume body is always available
|
|
3246
3190
|
return node.ownerDocument.body;
|
|
3247
3191
|
}
|
|
3248
3192
|
|
|
@@ -3256,7 +3200,7 @@ function getScrollParent(node) {
|
|
|
3256
3200
|
/*
|
|
3257
3201
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3258
3202
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3259
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3203
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3260
3204
|
reference element's position.
|
|
3261
3205
|
*/
|
|
3262
3206
|
|
|
@@ -3270,7 +3214,7 @@ function listScrollParents(element, list) {
|
|
|
3270
3214
|
var win = getWindow(scrollParent);
|
|
3271
3215
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3272
3216
|
var updatedList = list.concat(target);
|
|
3273
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3217
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3274
3218
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3275
3219
|
}
|
|
3276
3220
|
|
|
@@ -3310,7 +3254,7 @@ function getClippingParents(element) {
|
|
|
3310
3254
|
|
|
3311
3255
|
if (!isElement(clipperElement)) {
|
|
3312
3256
|
return [];
|
|
3313
|
-
} // $FlowFixMe
|
|
3257
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3314
3258
|
|
|
3315
3259
|
|
|
3316
3260
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3396,11 +3340,11 @@ function computeOffsets(_ref) {
|
|
|
3396
3340
|
|
|
3397
3341
|
switch (variation) {
|
|
3398
3342
|
case start:
|
|
3399
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3343
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3400
3344
|
break;
|
|
3401
3345
|
|
|
3402
3346
|
case end:
|
|
3403
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3347
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3404
3348
|
break;
|
|
3405
3349
|
}
|
|
3406
3350
|
}
|
|
@@ -3482,7 +3426,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3482
3426
|
var variation = getVariation(placement);
|
|
3483
3427
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3484
3428
|
return getVariation(placement) === variation;
|
|
3485
|
-
}) : basePlacements;
|
|
3429
|
+
}) : basePlacements; // $FlowFixMe
|
|
3430
|
+
|
|
3486
3431
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3487
3432
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3488
3433
|
});
|
|
@@ -3493,7 +3438,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3493
3438
|
if (process.env.NODE_ENV !== "production") {
|
|
3494
3439
|
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(' '));
|
|
3495
3440
|
}
|
|
3496
|
-
} // $FlowFixMe
|
|
3441
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3497
3442
|
|
|
3498
3443
|
|
|
3499
3444
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -4965,7 +4910,7 @@ function DropdownMenu(_ref2) {
|
|
|
4965
4910
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4966
4911
|
|
|
4967
4912
|
var args = useDropdownMenu(options);
|
|
4968
|
-
return /*#__PURE__*/
|
|
4913
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4969
4914
|
}
|
|
4970
4915
|
|
|
4971
4916
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5032,7 +4977,7 @@ function DropdownToggle(_ref2) {
|
|
|
5032
4977
|
show = _useDropdownToggle$.show,
|
|
5033
4978
|
toggle = _useDropdownToggle$.toggle;
|
|
5034
4979
|
|
|
5035
|
-
return /*#__PURE__*/
|
|
4980
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5036
4981
|
show: show,
|
|
5037
4982
|
toggle: toggle,
|
|
5038
4983
|
props: props
|
|
@@ -5247,7 +5192,7 @@ function Dropdown(_ref) {
|
|
|
5247
5192
|
}
|
|
5248
5193
|
};
|
|
5249
5194
|
|
|
5250
|
-
return /*#__PURE__*/
|
|
5195
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5251
5196
|
value: context
|
|
5252
5197
|
}, children({
|
|
5253
5198
|
props: {
|
|
@@ -5261,14 +5206,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5261
5206
|
Dropdown.Menu = DropdownMenu;
|
|
5262
5207
|
Dropdown.Toggle = DropdownToggle;
|
|
5263
5208
|
|
|
5264
|
-
var NavContext =
|
|
5209
|
+
var NavContext = React.createContext(null);
|
|
5265
5210
|
NavContext.displayName = 'NavContext';
|
|
5266
5211
|
|
|
5267
5212
|
var defaultProps$e = {
|
|
5268
5213
|
as: SafeAnchor,
|
|
5269
5214
|
disabled: false
|
|
5270
5215
|
};
|
|
5271
|
-
var DropdownItem =
|
|
5216
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5272
5217
|
var bsPrefix = _ref.bsPrefix,
|
|
5273
5218
|
className = _ref.className,
|
|
5274
5219
|
children = _ref.children,
|
|
@@ -5279,7 +5224,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5279
5224
|
onSelect = _ref.onSelect,
|
|
5280
5225
|
propActive = _ref.active,
|
|
5281
5226
|
Component = _ref.as,
|
|
5282
|
-
props = _objectWithoutPropertiesLoose
|
|
5227
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5283
5228
|
|
|
5284
5229
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5285
5230
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5303,7 +5248,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5303
5248
|
/*#__PURE__*/
|
|
5304
5249
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5305
5250
|
// @ts-ignore
|
|
5306
|
-
|
|
5251
|
+
React.createElement(Component, _extends({}, props, {
|
|
5307
5252
|
ref: ref,
|
|
5308
5253
|
href: href,
|
|
5309
5254
|
disabled: disabled,
|
|
@@ -5352,7 +5297,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5352
5297
|
}, [refA, refB]);
|
|
5353
5298
|
}
|
|
5354
5299
|
|
|
5355
|
-
var context$2 =
|
|
5300
|
+
var context$2 = React.createContext(null);
|
|
5356
5301
|
context$2.displayName = 'NavbarContext';
|
|
5357
5302
|
|
|
5358
5303
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5480,7 +5425,7 @@ var defaultProps$f = {
|
|
|
5480
5425
|
flip: true
|
|
5481
5426
|
}; // TODO: remove this hack
|
|
5482
5427
|
|
|
5483
|
-
var DropdownMenu$1 =
|
|
5428
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5484
5429
|
var bsPrefix = _ref.bsPrefix,
|
|
5485
5430
|
className = _ref.className,
|
|
5486
5431
|
align = _ref.align,
|
|
@@ -5492,7 +5437,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5492
5437
|
_ref$as = _ref.as,
|
|
5493
5438
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5494
5439
|
popperConfig = _ref.popperConfig,
|
|
5495
|
-
props = _objectWithoutPropertiesLoose
|
|
5440
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5496
5441
|
|
|
5497
5442
|
var isNavbar = useContext(context$2);
|
|
5498
5443
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5528,7 +5473,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5528
5473
|
show: showProps,
|
|
5529
5474
|
alignEnd: alignRight,
|
|
5530
5475
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5531
|
-
popperConfig: _extends
|
|
5476
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5532
5477
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5533
5478
|
})
|
|
5534
5479
|
}),
|
|
@@ -5551,11 +5496,11 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5551
5496
|
if (placement) {
|
|
5552
5497
|
// we don't need the default popper style,
|
|
5553
5498
|
// menus are display: none when not shown.
|
|
5554
|
-
props.style = _extends
|
|
5499
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5555
5500
|
props['x-placement'] = placement;
|
|
5556
5501
|
}
|
|
5557
5502
|
|
|
5558
|
-
return /*#__PURE__*/
|
|
5503
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5559
5504
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5560
5505
|
}));
|
|
5561
5506
|
});
|
|
@@ -5589,14 +5534,14 @@ module.exports = exports['default'];
|
|
|
5589
5534
|
|
|
5590
5535
|
unwrapExports(isRequiredForA11y_1);
|
|
5591
5536
|
|
|
5592
|
-
var DropdownToggle$1 =
|
|
5537
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5593
5538
|
var bsPrefix = _ref.bsPrefix,
|
|
5594
5539
|
split = _ref.split,
|
|
5595
5540
|
className = _ref.className,
|
|
5596
5541
|
childBsPrefix = _ref.childBsPrefix,
|
|
5597
5542
|
_ref$as = _ref.as,
|
|
5598
5543
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5599
|
-
props = _objectWithoutPropertiesLoose
|
|
5544
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5600
5545
|
|
|
5601
5546
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5602
5547
|
|
|
@@ -5611,7 +5556,7 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5611
5556
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5612
5557
|
// underlying component, to allow it to render size and style variants.
|
|
5613
5558
|
|
|
5614
|
-
return /*#__PURE__*/
|
|
5559
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5615
5560
|
onClick: toggle,
|
|
5616
5561
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5617
5562
|
}, toggleProps, props));
|
|
@@ -5634,7 +5579,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5634
5579
|
var defaultProps$g = {
|
|
5635
5580
|
navbar: false
|
|
5636
5581
|
};
|
|
5637
|
-
var Dropdown$1 =
|
|
5582
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5638
5583
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5639
5584
|
show: 'onToggle'
|
|
5640
5585
|
}),
|
|
@@ -5649,7 +5594,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5649
5594
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5650
5595
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5651
5596
|
_4 = _useUncontrolled.navbar,
|
|
5652
|
-
props = _objectWithoutPropertiesLoose
|
|
5597
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5653
5598
|
|
|
5654
5599
|
var onSelectCtx = useContext(SelectableContext);
|
|
5655
5600
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5671,9 +5616,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5671
5616
|
if (onSelect) onSelect(key, event);
|
|
5672
5617
|
handleToggle(false, event, 'select');
|
|
5673
5618
|
});
|
|
5674
|
-
return /*#__PURE__*/
|
|
5619
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5675
5620
|
value: handleSelect
|
|
5676
|
-
}, /*#__PURE__*/
|
|
5621
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5677
5622
|
drop: drop,
|
|
5678
5623
|
show: show,
|
|
5679
5624
|
alignEnd: alignRight,
|
|
@@ -5682,7 +5627,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5682
5627
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5683
5628
|
}, function (_ref) {
|
|
5684
5629
|
var dropdownProps = _ref.props;
|
|
5685
|
-
return /*#__PURE__*/
|
|
5630
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5686
5631
|
ref: ref,
|
|
5687
5632
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5688
5633
|
}));
|
|
@@ -5757,7 +5702,7 @@ var propTypes$5 = {
|
|
|
5757
5702
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5758
5703
|
*/
|
|
5759
5704
|
|
|
5760
|
-
var DropdownButton =
|
|
5705
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5761
5706
|
var title = _ref.title,
|
|
5762
5707
|
children = _ref.children,
|
|
5763
5708
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5770,18 +5715,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5770
5715
|
disabled = _ref.disabled,
|
|
5771
5716
|
href = _ref.href,
|
|
5772
5717
|
id = _ref.id,
|
|
5773
|
-
props = _objectWithoutPropertiesLoose
|
|
5718
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5774
5719
|
|
|
5775
|
-
return /*#__PURE__*/
|
|
5720
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5776
5721
|
ref: ref
|
|
5777
|
-
}, props), /*#__PURE__*/
|
|
5722
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5778
5723
|
id: id,
|
|
5779
5724
|
href: href,
|
|
5780
5725
|
size: size,
|
|
5781
5726
|
variant: variant,
|
|
5782
5727
|
disabled: disabled,
|
|
5783
5728
|
childBsPrefix: bsPrefix
|
|
5784
|
-
}, title), /*#__PURE__*/
|
|
5729
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5785
5730
|
align: menuAlign,
|
|
5786
5731
|
role: menuRole,
|
|
5787
5732
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5896,7 +5841,7 @@ var propTypes$6 = {
|
|
|
5896
5841
|
tooltip: PropTypes.bool,
|
|
5897
5842
|
as: PropTypes.elementType
|
|
5898
5843
|
};
|
|
5899
|
-
var Feedback =
|
|
5844
|
+
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
|
|
5900
5845
|
function (_ref, ref) {
|
|
5901
5846
|
var _ref$as = _ref.as,
|
|
5902
5847
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5905,9 +5850,9 @@ function (_ref, ref) {
|
|
|
5905
5850
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5906
5851
|
_ref$tooltip = _ref.tooltip,
|
|
5907
5852
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5908
|
-
props = _objectWithoutPropertiesLoose
|
|
5853
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5909
5854
|
|
|
5910
|
-
return /*#__PURE__*/
|
|
5855
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5911
5856
|
ref: ref,
|
|
5912
5857
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5913
5858
|
}));
|
|
@@ -5915,11 +5860,11 @@ function (_ref, ref) {
|
|
|
5915
5860
|
Feedback.displayName = 'Feedback';
|
|
5916
5861
|
Feedback.propTypes = propTypes$6;
|
|
5917
5862
|
|
|
5918
|
-
var FormContext =
|
|
5863
|
+
var FormContext = React.createContext({
|
|
5919
5864
|
controlId: undefined
|
|
5920
5865
|
});
|
|
5921
5866
|
|
|
5922
|
-
var FormCheckInput =
|
|
5867
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5923
5868
|
var id = _ref.id,
|
|
5924
5869
|
bsPrefix = _ref.bsPrefix,
|
|
5925
5870
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5933,7 +5878,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5933
5878
|
isStatic = _ref.isStatic,
|
|
5934
5879
|
_ref$as = _ref.as,
|
|
5935
5880
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5936
|
-
props = _objectWithoutPropertiesLoose
|
|
5881
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5937
5882
|
|
|
5938
5883
|
var _useContext = useContext(FormContext),
|
|
5939
5884
|
controlId = _useContext.controlId,
|
|
@@ -5944,7 +5889,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5944
5889
|
defaultPrefix = _ref2[1];
|
|
5945
5890
|
|
|
5946
5891
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5947
|
-
return /*#__PURE__*/
|
|
5892
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5948
5893
|
ref: ref,
|
|
5949
5894
|
type: type,
|
|
5950
5895
|
id: id || controlId,
|
|
@@ -5953,12 +5898,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5953
5898
|
});
|
|
5954
5899
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5955
5900
|
|
|
5956
|
-
var FormCheckLabel =
|
|
5901
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5957
5902
|
var bsPrefix = _ref.bsPrefix,
|
|
5958
5903
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5959
5904
|
className = _ref.className,
|
|
5960
5905
|
htmlFor = _ref.htmlFor,
|
|
5961
|
-
props = _objectWithoutPropertiesLoose
|
|
5906
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5962
5907
|
|
|
5963
5908
|
var _useContext = useContext(FormContext),
|
|
5964
5909
|
controlId = _useContext.controlId,
|
|
@@ -5969,7 +5914,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5969
5914
|
defaultPrefix = _ref2[1];
|
|
5970
5915
|
|
|
5971
5916
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5972
|
-
return /*#__PURE__*/
|
|
5917
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5973
5918
|
ref: ref,
|
|
5974
5919
|
htmlFor: htmlFor || controlId,
|
|
5975
5920
|
className: classnames(className, bsPrefix)
|
|
@@ -5977,7 +5922,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5977
5922
|
});
|
|
5978
5923
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5979
5924
|
|
|
5980
|
-
var FormCheck =
|
|
5925
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5981
5926
|
var id = _ref.id,
|
|
5982
5927
|
bsPrefix = _ref.bsPrefix,
|
|
5983
5928
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6003,7 +5948,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6003
5948
|
propCustom = _ref.custom,
|
|
6004
5949
|
_ref$as = _ref.as,
|
|
6005
5950
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6006
|
-
props = _objectWithoutPropertiesLoose
|
|
5951
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6007
5952
|
|
|
6008
5953
|
var custom = type === 'switch' ? true : propCustom;
|
|
6009
5954
|
|
|
@@ -6023,7 +5968,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6023
5968
|
};
|
|
6024
5969
|
}, [controlId, custom, id]);
|
|
6025
5970
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6026
|
-
var input = /*#__PURE__*/
|
|
5971
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6027
5972
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6028
5973
|
ref: ref,
|
|
6029
5974
|
isValid: isValid,
|
|
@@ -6032,14 +5977,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6032
5977
|
disabled: disabled,
|
|
6033
5978
|
as: as
|
|
6034
5979
|
}));
|
|
6035
|
-
return /*#__PURE__*/
|
|
5980
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6036
5981
|
value: innerFormContext
|
|
6037
|
-
}, /*#__PURE__*/
|
|
5982
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6038
5983
|
style: style,
|
|
6039
5984
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6040
|
-
}, children || /*#__PURE__*/
|
|
5985
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6041
5986
|
title: title
|
|
6042
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
5987
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6043
5988
|
type: isValid ? 'valid' : 'invalid',
|
|
6044
5989
|
tooltip: feedbackTooltip
|
|
6045
5990
|
}, feedback))));
|
|
@@ -6048,7 +5993,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6048
5993
|
FormCheck.Input = FormCheckInput;
|
|
6049
5994
|
FormCheck.Label = FormCheckLabel;
|
|
6050
5995
|
|
|
6051
|
-
var FormFileInput =
|
|
5996
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6052
5997
|
var id = _ref.id,
|
|
6053
5998
|
bsPrefix = _ref.bsPrefix,
|
|
6054
5999
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6058,7 +6003,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6058
6003
|
lang = _ref.lang,
|
|
6059
6004
|
_ref$as = _ref.as,
|
|
6060
6005
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6061
|
-
props = _objectWithoutPropertiesLoose
|
|
6006
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6062
6007
|
|
|
6063
6008
|
var _useContext = useContext(FormContext),
|
|
6064
6009
|
controlId = _useContext.controlId,
|
|
@@ -6071,7 +6016,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6071
6016
|
defaultPrefix = _ref2[1];
|
|
6072
6017
|
|
|
6073
6018
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6074
|
-
return /*#__PURE__*/
|
|
6019
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6075
6020
|
ref: ref,
|
|
6076
6021
|
id: id || controlId,
|
|
6077
6022
|
type: type,
|
|
@@ -6081,12 +6026,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6081
6026
|
});
|
|
6082
6027
|
FormFileInput.displayName = 'FormFileInput';
|
|
6083
6028
|
|
|
6084
|
-
var FormFileLabel =
|
|
6029
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6085
6030
|
var bsPrefix = _ref.bsPrefix,
|
|
6086
6031
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6087
6032
|
className = _ref.className,
|
|
6088
6033
|
htmlFor = _ref.htmlFor,
|
|
6089
|
-
props = _objectWithoutPropertiesLoose
|
|
6034
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6090
6035
|
|
|
6091
6036
|
var _useContext = useContext(FormContext),
|
|
6092
6037
|
controlId = _useContext.controlId,
|
|
@@ -6097,7 +6042,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6097
6042
|
defaultPrefix = _ref2[1];
|
|
6098
6043
|
|
|
6099
6044
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6100
|
-
return /*#__PURE__*/
|
|
6045
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6101
6046
|
ref: ref,
|
|
6102
6047
|
htmlFor: htmlFor || controlId,
|
|
6103
6048
|
className: classnames(className, bsPrefix),
|
|
@@ -6106,7 +6051,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6106
6051
|
});
|
|
6107
6052
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6108
6053
|
|
|
6109
|
-
var FormFile =
|
|
6054
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6110
6055
|
var id = _ref.id,
|
|
6111
6056
|
bsPrefix = _ref.bsPrefix,
|
|
6112
6057
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6130,7 +6075,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6130
6075
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6131
6076
|
_ref$inputAs = _ref.inputAs,
|
|
6132
6077
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6133
|
-
props = _objectWithoutPropertiesLoose
|
|
6078
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6134
6079
|
|
|
6135
6080
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6136
6081
|
prefix = _ref2[0],
|
|
@@ -6149,7 +6094,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6149
6094
|
};
|
|
6150
6095
|
}, [controlId, custom, id]);
|
|
6151
6096
|
var hasLabel = label != null && label !== false && !children;
|
|
6152
|
-
var input = /*#__PURE__*/
|
|
6097
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6153
6098
|
ref: ref,
|
|
6154
6099
|
isValid: isValid,
|
|
6155
6100
|
isInvalid: isInvalid,
|
|
@@ -6157,14 +6102,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6157
6102
|
as: inputAs,
|
|
6158
6103
|
lang: lang
|
|
6159
6104
|
}));
|
|
6160
|
-
return /*#__PURE__*/
|
|
6105
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6161
6106
|
value: innerFormContext
|
|
6162
|
-
}, /*#__PURE__*/
|
|
6107
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6163
6108
|
style: style,
|
|
6164
6109
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6165
|
-
}, children || /*#__PURE__*/
|
|
6110
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6166
6111
|
"data-browse": dataBrowse
|
|
6167
|
-
}, label)) : /*#__PURE__*/
|
|
6112
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6168
6113
|
type: isValid ? 'valid' : 'invalid',
|
|
6169
6114
|
tooltip: feedbackTooltip
|
|
6170
6115
|
}, feedback))));
|
|
@@ -6173,7 +6118,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6173
6118
|
FormFile.Input = FormFileInput;
|
|
6174
6119
|
FormFile.Label = FormFileLabel;
|
|
6175
6120
|
|
|
6176
|
-
var FormControl =
|
|
6121
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6177
6122
|
var bsPrefix = _ref.bsPrefix,
|
|
6178
6123
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6179
6124
|
type = _ref.type,
|
|
@@ -6190,7 +6135,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6190
6135
|
custom = _ref.custom,
|
|
6191
6136
|
_ref$as = _ref.as,
|
|
6192
6137
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6193
|
-
props = _objectWithoutPropertiesLoose
|
|
6138
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6194
6139
|
|
|
6195
6140
|
var _useContext = useContext(FormContext),
|
|
6196
6141
|
controlId = _useContext.controlId;
|
|
@@ -6225,7 +6170,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6225
6170
|
}
|
|
6226
6171
|
|
|
6227
6172
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6228
|
-
return /*#__PURE__*/
|
|
6173
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6229
6174
|
type: type,
|
|
6230
6175
|
size: htmlSize,
|
|
6231
6176
|
ref: ref,
|
|
@@ -6239,14 +6184,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6239
6184
|
Feedback: Feedback
|
|
6240
6185
|
});
|
|
6241
6186
|
|
|
6242
|
-
var FormGroup =
|
|
6187
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6243
6188
|
var bsPrefix = _ref.bsPrefix,
|
|
6244
6189
|
className = _ref.className,
|
|
6245
6190
|
children = _ref.children,
|
|
6246
6191
|
controlId = _ref.controlId,
|
|
6247
6192
|
_ref$as = _ref.as,
|
|
6248
6193
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6249
|
-
props = _objectWithoutPropertiesLoose
|
|
6194
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6250
6195
|
|
|
6251
6196
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6252
6197
|
var context = useMemo(function () {
|
|
@@ -6254,9 +6199,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6254
6199
|
controlId: controlId
|
|
6255
6200
|
};
|
|
6256
6201
|
}, [controlId]);
|
|
6257
|
-
return /*#__PURE__*/
|
|
6202
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6258
6203
|
value: context
|
|
6259
|
-
}, /*#__PURE__*/
|
|
6204
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6260
6205
|
ref: ref,
|
|
6261
6206
|
className: classnames(className, bsPrefix)
|
|
6262
6207
|
}), children));
|
|
@@ -6267,7 +6212,7 @@ var defaultProps$h = {
|
|
|
6267
6212
|
column: false,
|
|
6268
6213
|
srOnly: false
|
|
6269
6214
|
};
|
|
6270
|
-
var FormLabel =
|
|
6215
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6271
6216
|
var _ref$as = _ref.as,
|
|
6272
6217
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6273
6218
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6275,7 +6220,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6275
6220
|
srOnly = _ref.srOnly,
|
|
6276
6221
|
className = _ref.className,
|
|
6277
6222
|
htmlFor = _ref.htmlFor,
|
|
6278
|
-
props = _objectWithoutPropertiesLoose
|
|
6223
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6279
6224
|
|
|
6280
6225
|
var _useContext = useContext(FormContext),
|
|
6281
6226
|
controlId = _useContext.controlId;
|
|
@@ -6286,7 +6231,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6286
6231
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6287
6232
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6288
6233
|
htmlFor = htmlFor || controlId;
|
|
6289
|
-
if (column) return /*#__PURE__*/
|
|
6234
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6290
6235
|
as: "label",
|
|
6291
6236
|
className: classes,
|
|
6292
6237
|
htmlFor: htmlFor
|
|
@@ -6294,7 +6239,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6294
6239
|
return (
|
|
6295
6240
|
/*#__PURE__*/
|
|
6296
6241
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6297
|
-
|
|
6242
|
+
React.createElement(Component, _extends({
|
|
6298
6243
|
ref: ref,
|
|
6299
6244
|
className: classes,
|
|
6300
6245
|
htmlFor: htmlFor
|
|
@@ -6304,25 +6249,25 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6304
6249
|
FormLabel.displayName = 'FormLabel';
|
|
6305
6250
|
FormLabel.defaultProps = defaultProps$h;
|
|
6306
6251
|
|
|
6307
|
-
var FormText =
|
|
6252
|
+
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
|
|
6308
6253
|
function (_ref, ref) {
|
|
6309
6254
|
var bsPrefix = _ref.bsPrefix,
|
|
6310
6255
|
className = _ref.className,
|
|
6311
6256
|
_ref$as = _ref.as,
|
|
6312
6257
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6313
6258
|
muted = _ref.muted,
|
|
6314
|
-
props = _objectWithoutPropertiesLoose
|
|
6259
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6315
6260
|
|
|
6316
6261
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6317
|
-
return /*#__PURE__*/
|
|
6262
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6318
6263
|
ref: ref,
|
|
6319
6264
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6320
6265
|
}));
|
|
6321
6266
|
});
|
|
6322
6267
|
FormText.displayName = 'FormText';
|
|
6323
6268
|
|
|
6324
|
-
var Switch =
|
|
6325
|
-
return /*#__PURE__*/
|
|
6269
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6270
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6326
6271
|
ref: ref,
|
|
6327
6272
|
type: "switch"
|
|
6328
6273
|
}));
|
|
@@ -6335,17 +6280,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6335
6280
|
var defaultProps$i = {
|
|
6336
6281
|
inline: false
|
|
6337
6282
|
};
|
|
6338
|
-
var FormImpl =
|
|
6283
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6339
6284
|
var bsPrefix = _ref.bsPrefix,
|
|
6340
6285
|
inline = _ref.inline,
|
|
6341
6286
|
className = _ref.className,
|
|
6342
6287
|
validated = _ref.validated,
|
|
6343
6288
|
_ref$as = _ref.as,
|
|
6344
6289
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6345
|
-
props = _objectWithoutPropertiesLoose
|
|
6290
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6346
6291
|
|
|
6347
6292
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6348
|
-
return /*#__PURE__*/
|
|
6293
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6349
6294
|
ref: ref,
|
|
6350
6295
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6351
6296
|
}));
|
|
@@ -6364,17 +6309,17 @@ FormImpl.Text = FormText;
|
|
|
6364
6309
|
var defaultProps$j = {
|
|
6365
6310
|
fluid: false
|
|
6366
6311
|
};
|
|
6367
|
-
var Container =
|
|
6312
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6368
6313
|
var bsPrefix = _ref.bsPrefix,
|
|
6369
6314
|
fluid = _ref.fluid,
|
|
6370
6315
|
_ref$as = _ref.as,
|
|
6371
6316
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6372
6317
|
className = _ref.className,
|
|
6373
|
-
props = _objectWithoutPropertiesLoose
|
|
6318
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6374
6319
|
|
|
6375
6320
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6376
6321
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6377
|
-
return /*#__PURE__*/
|
|
6322
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6378
6323
|
ref: ref
|
|
6379
6324
|
}, props, {
|
|
6380
6325
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6415,18 +6360,18 @@ var defaultProps$k = {
|
|
|
6415
6360
|
roundedCircle: false,
|
|
6416
6361
|
thumbnail: false
|
|
6417
6362
|
};
|
|
6418
|
-
var Image =
|
|
6363
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6419
6364
|
var bsPrefix = _ref.bsPrefix,
|
|
6420
6365
|
className = _ref.className,
|
|
6421
6366
|
fluid = _ref.fluid,
|
|
6422
6367
|
rounded = _ref.rounded,
|
|
6423
6368
|
roundedCircle = _ref.roundedCircle,
|
|
6424
6369
|
thumbnail = _ref.thumbnail,
|
|
6425
|
-
props = _objectWithoutPropertiesLoose
|
|
6370
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6426
6371
|
|
|
6427
6372
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6428
6373
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6429
|
-
return /*#__PURE__*/
|
|
6374
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6430
6375
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6431
6376
|
ref: ref
|
|
6432
6377
|
}, props, {
|
|
@@ -6439,11 +6384,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6439
6384
|
var defaultProps$l = {
|
|
6440
6385
|
fluid: true
|
|
6441
6386
|
};
|
|
6442
|
-
var FigureImage =
|
|
6387
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6443
6388
|
var className = _ref.className,
|
|
6444
|
-
props = _objectWithoutPropertiesLoose
|
|
6389
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6445
6390
|
|
|
6446
|
-
return /*#__PURE__*/
|
|
6391
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6447
6392
|
ref: ref
|
|
6448
6393
|
}, props, {
|
|
6449
6394
|
className: classnames(className, 'figure-img')
|
|
@@ -6470,13 +6415,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6470
6415
|
});
|
|
6471
6416
|
|
|
6472
6417
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6473
|
-
return /*#__PURE__*/
|
|
6418
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6474
6419
|
type: "checkbox"
|
|
6475
6420
|
}, props)));
|
|
6476
6421
|
};
|
|
6477
6422
|
|
|
6478
6423
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6479
|
-
return /*#__PURE__*/
|
|
6424
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6480
6425
|
type: "radio"
|
|
6481
6426
|
}, props)));
|
|
6482
6427
|
};
|
|
@@ -6489,16 +6434,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6489
6434
|
* @property {InputGroupRadio} Radio
|
|
6490
6435
|
* @property {InputGroupCheckbox} Checkbox
|
|
6491
6436
|
*/
|
|
6492
|
-
var InputGroup =
|
|
6437
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6493
6438
|
var bsPrefix = _ref.bsPrefix,
|
|
6494
6439
|
size = _ref.size,
|
|
6495
6440
|
className = _ref.className,
|
|
6496
6441
|
_ref$as = _ref.as,
|
|
6497
6442
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6498
|
-
props = _objectWithoutPropertiesLoose
|
|
6443
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6499
6444
|
|
|
6500
6445
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6501
|
-
return /*#__PURE__*/
|
|
6446
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6502
6447
|
ref: ref
|
|
6503
6448
|
}, props, {
|
|
6504
6449
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6506,7 +6451,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6506
6451
|
});
|
|
6507
6452
|
InputGroup.displayName = 'InputGroup';
|
|
6508
6453
|
|
|
6509
|
-
var InputGroupWithExtras = _extends
|
|
6454
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6510
6455
|
Text: InputGroupText,
|
|
6511
6456
|
Radio: InputGroupRadio,
|
|
6512
6457
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6517,7 +6462,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6517
6462
|
var defaultProps$m = {
|
|
6518
6463
|
fluid: false
|
|
6519
6464
|
};
|
|
6520
|
-
var Jumbotron =
|
|
6465
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6521
6466
|
var _classes;
|
|
6522
6467
|
|
|
6523
6468
|
var _ref$as = _ref.as,
|
|
@@ -6525,11 +6470,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6525
6470
|
className = _ref.className,
|
|
6526
6471
|
fluid = _ref.fluid,
|
|
6527
6472
|
bsPrefix = _ref.bsPrefix,
|
|
6528
|
-
props = _objectWithoutPropertiesLoose
|
|
6473
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6529
6474
|
|
|
6530
6475
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6531
6476
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6532
|
-
return /*#__PURE__*/
|
|
6477
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6533
6478
|
ref: ref
|
|
6534
6479
|
}, props, {
|
|
6535
6480
|
className: classnames(className, classes)
|
|
@@ -6538,19 +6483,19 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6538
6483
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6539
6484
|
Jumbotron.displayName = 'Jumbotron';
|
|
6540
6485
|
|
|
6541
|
-
var TabContext =
|
|
6486
|
+
var TabContext = React.createContext(null);
|
|
6542
6487
|
|
|
6543
6488
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6544
6489
|
var noop$4 = function noop() {};
|
|
6545
6490
|
|
|
6546
|
-
var AbstractNav =
|
|
6491
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6547
6492
|
var _ref$as = _ref.as,
|
|
6548
6493
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6549
6494
|
onSelect = _ref.onSelect,
|
|
6550
6495
|
activeKey = _ref.activeKey,
|
|
6551
6496
|
role = _ref.role,
|
|
6552
6497
|
onKeyDown = _ref.onKeyDown,
|
|
6553
|
-
props = _objectWithoutPropertiesLoose
|
|
6498
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6554
6499
|
|
|
6555
6500
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6556
6501
|
// and don't want to reset the set in the effect
|
|
@@ -6624,9 +6569,9 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6624
6569
|
needsRefocusRef.current = false;
|
|
6625
6570
|
});
|
|
6626
6571
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6627
|
-
return /*#__PURE__*/
|
|
6572
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6628
6573
|
value: handleSelect
|
|
6629
|
-
}, /*#__PURE__*/
|
|
6574
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6630
6575
|
value: {
|
|
6631
6576
|
role: role,
|
|
6632
6577
|
// used by NavLink to determine it's role
|
|
@@ -6634,7 +6579,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6634
6579
|
getControlledId: getControlledId || noop$4,
|
|
6635
6580
|
getControllerId: getControllerId || noop$4
|
|
6636
6581
|
}
|
|
6637
|
-
}, /*#__PURE__*/
|
|
6582
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6638
6583
|
onKeyDown: handleKeyDown,
|
|
6639
6584
|
ref: mergedRef,
|
|
6640
6585
|
role: role
|
|
@@ -6644,14 +6589,14 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6644
6589
|
var defaultProps$n = {
|
|
6645
6590
|
disabled: false
|
|
6646
6591
|
};
|
|
6647
|
-
var AbstractNavItem =
|
|
6592
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6648
6593
|
var active = _ref.active,
|
|
6649
6594
|
className = _ref.className,
|
|
6650
6595
|
eventKey = _ref.eventKey,
|
|
6651
6596
|
onSelect = _ref.onSelect,
|
|
6652
6597
|
onClick = _ref.onClick,
|
|
6653
6598
|
Component = _ref.as,
|
|
6654
|
-
props = _objectWithoutPropertiesLoose
|
|
6599
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6655
6600
|
|
|
6656
6601
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6657
6602
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6681,7 +6626,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6681
6626
|
if (onSelect) onSelect(navKey, e);
|
|
6682
6627
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6683
6628
|
});
|
|
6684
|
-
return /*#__PURE__*/
|
|
6629
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6685
6630
|
ref: ref,
|
|
6686
6631
|
onClick: handleOnclick,
|
|
6687
6632
|
className: classnames(className, isActive && 'active')
|
|
@@ -6694,7 +6639,7 @@ var defaultProps$o = {
|
|
|
6694
6639
|
active: false,
|
|
6695
6640
|
disabled: false
|
|
6696
6641
|
};
|
|
6697
|
-
var ListGroupItem =
|
|
6642
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6698
6643
|
var bsPrefix = _ref.bsPrefix,
|
|
6699
6644
|
active = _ref.active,
|
|
6700
6645
|
disabled = _ref.disabled,
|
|
@@ -6704,7 +6649,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6704
6649
|
as = _ref.as,
|
|
6705
6650
|
eventKey = _ref.eventKey,
|
|
6706
6651
|
onClick = _ref.onClick,
|
|
6707
|
-
props = _objectWithoutPropertiesLoose
|
|
6652
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6708
6653
|
|
|
6709
6654
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6710
6655
|
var handleClick = useCallback(function (event) {
|
|
@@ -6716,7 +6661,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6716
6661
|
|
|
6717
6662
|
if (onClick) onClick(event);
|
|
6718
6663
|
}, [disabled, onClick]);
|
|
6719
|
-
return /*#__PURE__*/
|
|
6664
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6720
6665
|
ref: ref
|
|
6721
6666
|
}, props, {
|
|
6722
6667
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6734,7 +6679,7 @@ var defaultProps$p = {
|
|
|
6734
6679
|
variant: undefined,
|
|
6735
6680
|
horizontal: undefined
|
|
6736
6681
|
};
|
|
6737
|
-
var ListGroup =
|
|
6682
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6738
6683
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6739
6684
|
activeKey: 'onSelect'
|
|
6740
6685
|
}),
|
|
@@ -6744,7 +6689,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6744
6689
|
horizontal = _useUncontrolled.horizontal,
|
|
6745
6690
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6746
6691
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6747
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6692
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6748
6693
|
|
|
6749
6694
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6750
6695
|
var horizontalVariant;
|
|
@@ -6756,7 +6701,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6756
6701
|
}
|
|
6757
6702
|
|
|
6758
6703
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6759
|
-
return /*#__PURE__*/
|
|
6704
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6760
6705
|
ref: ref
|
|
6761
6706
|
}, controlledProps, {
|
|
6762
6707
|
as: as,
|
|
@@ -6768,16 +6713,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6768
6713
|
ListGroup.Item = ListGroupItem;
|
|
6769
6714
|
|
|
6770
6715
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6771
|
-
var Media =
|
|
6716
|
+
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
|
|
6772
6717
|
function (_ref, ref) {
|
|
6773
6718
|
var bsPrefix = _ref.bsPrefix,
|
|
6774
6719
|
className = _ref.className,
|
|
6775
6720
|
_ref$as = _ref.as,
|
|
6776
6721
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6777
|
-
props = _objectWithoutPropertiesLoose
|
|
6722
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6778
6723
|
|
|
6779
6724
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6780
|
-
return /*#__PURE__*/
|
|
6725
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6781
6726
|
ref: ref,
|
|
6782
6727
|
className: classnames(className, prefix)
|
|
6783
6728
|
}));
|
|
@@ -7165,7 +7110,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7165
7110
|
renderDialog = _ref.renderDialog,
|
|
7166
7111
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7167
7112
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7168
|
-
return /*#__PURE__*/
|
|
7113
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7169
7114
|
} : _ref$renderBackdrop,
|
|
7170
7115
|
providedManager = _ref.manager,
|
|
7171
7116
|
containerRef = _ref.container,
|
|
@@ -7323,12 +7268,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7323
7268
|
tabIndex: -1
|
|
7324
7269
|
});
|
|
7325
7270
|
|
|
7326
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7271
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7327
7272
|
role: 'document'
|
|
7328
7273
|
}));
|
|
7329
7274
|
|
|
7330
7275
|
if (Transition) {
|
|
7331
|
-
dialog = /*#__PURE__*/
|
|
7276
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7332
7277
|
appear: true,
|
|
7333
7278
|
unmountOnExit: true,
|
|
7334
7279
|
"in": !!show,
|
|
@@ -7351,14 +7296,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7351
7296
|
});
|
|
7352
7297
|
|
|
7353
7298
|
if (BackdropTransition) {
|
|
7354
|
-
backdropElement = /*#__PURE__*/
|
|
7299
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7355
7300
|
appear: true,
|
|
7356
7301
|
"in": !!show
|
|
7357
7302
|
}, backdropElement);
|
|
7358
7303
|
}
|
|
7359
7304
|
}
|
|
7360
7305
|
|
|
7361
|
-
return /*#__PURE__*/
|
|
7306
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7362
7307
|
});
|
|
7363
7308
|
var propTypes$8 = {
|
|
7364
7309
|
/**
|
|
@@ -7597,12 +7542,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7597
7542
|
|
|
7598
7543
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7599
7544
|
|
|
7600
|
-
var ModalContext =
|
|
7545
|
+
var ModalContext = React.createContext({
|
|
7601
7546
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7602
7547
|
onHide: function onHide() {}
|
|
7603
7548
|
});
|
|
7604
7549
|
|
|
7605
|
-
var ModalDialog =
|
|
7550
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7606
7551
|
var bsPrefix = _ref.bsPrefix,
|
|
7607
7552
|
className = _ref.className,
|
|
7608
7553
|
contentClassName = _ref.contentClassName,
|
|
@@ -7610,14 +7555,14 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7610
7555
|
size = _ref.size,
|
|
7611
7556
|
children = _ref.children,
|
|
7612
7557
|
scrollable = _ref.scrollable,
|
|
7613
|
-
props = _objectWithoutPropertiesLoose
|
|
7558
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7614
7559
|
|
|
7615
7560
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7616
7561
|
var dialogClass = bsPrefix + "-dialog";
|
|
7617
|
-
return /*#__PURE__*/
|
|
7562
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7618
7563
|
ref: ref,
|
|
7619
7564
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7620
|
-
}), /*#__PURE__*/
|
|
7565
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7621
7566
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7622
7567
|
}, children));
|
|
7623
7568
|
});
|
|
@@ -7629,14 +7574,14 @@ var defaultProps$q = {
|
|
|
7629
7574
|
closeLabel: 'Close',
|
|
7630
7575
|
closeButton: false
|
|
7631
7576
|
};
|
|
7632
|
-
var ModalHeader =
|
|
7577
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7633
7578
|
var bsPrefix = _ref.bsPrefix,
|
|
7634
7579
|
closeLabel = _ref.closeLabel,
|
|
7635
7580
|
closeButton = _ref.closeButton,
|
|
7636
7581
|
onHide = _ref.onHide,
|
|
7637
7582
|
className = _ref.className,
|
|
7638
7583
|
children = _ref.children,
|
|
7639
|
-
props = _objectWithoutPropertiesLoose
|
|
7584
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7640
7585
|
|
|
7641
7586
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7642
7587
|
var context = useContext(ModalContext);
|
|
@@ -7644,11 +7589,11 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7644
7589
|
if (context) context.onHide();
|
|
7645
7590
|
if (onHide) onHide();
|
|
7646
7591
|
});
|
|
7647
|
-
return /*#__PURE__*/
|
|
7592
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7648
7593
|
ref: ref
|
|
7649
7594
|
}, props, {
|
|
7650
7595
|
className: classnames(className, bsPrefix)
|
|
7651
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7596
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7652
7597
|
label: closeLabel,
|
|
7653
7598
|
onClick: handleClick
|
|
7654
7599
|
}));
|
|
@@ -7675,16 +7620,16 @@ var defaultProps$r = {
|
|
|
7675
7620
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7676
7621
|
|
|
7677
7622
|
function DialogTransition(props) {
|
|
7678
|
-
return /*#__PURE__*/
|
|
7623
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7679
7624
|
}
|
|
7680
7625
|
|
|
7681
7626
|
function BackdropTransition(props) {
|
|
7682
|
-
return /*#__PURE__*/
|
|
7627
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7683
7628
|
}
|
|
7684
7629
|
/* eslint-enable no-use-before-define */
|
|
7685
7630
|
|
|
7686
7631
|
|
|
7687
|
-
var Modal$1 =
|
|
7632
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7688
7633
|
var bsPrefix = _ref.bsPrefix,
|
|
7689
7634
|
className = _ref.className,
|
|
7690
7635
|
style = _ref.style,
|
|
@@ -7713,7 +7658,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7713
7658
|
onExited = _ref.onExited,
|
|
7714
7659
|
backdropClassName = _ref.backdropClassName,
|
|
7715
7660
|
propsManager = _ref.manager,
|
|
7716
|
-
props = _objectWithoutPropertiesLoose
|
|
7661
|
+
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"]);
|
|
7717
7662
|
|
|
7718
7663
|
var _useState = useState({}),
|
|
7719
7664
|
modalStyle = _useState[0],
|
|
@@ -7879,12 +7824,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7879
7824
|
};
|
|
7880
7825
|
|
|
7881
7826
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7882
|
-
return /*#__PURE__*/
|
|
7827
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7883
7828
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7884
7829
|
}));
|
|
7885
7830
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7886
7831
|
|
|
7887
|
-
var baseModalStyle = _extends
|
|
7832
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7888
7833
|
|
|
7889
7834
|
|
|
7890
7835
|
if (!animation) {
|
|
@@ -7892,7 +7837,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7892
7837
|
}
|
|
7893
7838
|
|
|
7894
7839
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7895
|
-
return /*#__PURE__*/
|
|
7840
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7896
7841
|
role: "dialog"
|
|
7897
7842
|
}, dialogProps, {
|
|
7898
7843
|
style: baseModalStyle,
|
|
@@ -7900,7 +7845,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7900
7845
|
onClick: backdrop ? handleClick : undefined,
|
|
7901
7846
|
onMouseUp: handleMouseUp,
|
|
7902
7847
|
"aria-labelledby": ariaLabelledby
|
|
7903
|
-
}), /*#__PURE__*/
|
|
7848
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7904
7849
|
role: "document",
|
|
7905
7850
|
onMouseDown: handleDialogMouseDown,
|
|
7906
7851
|
className: dialogClassName,
|
|
@@ -7908,9 +7853,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7908
7853
|
}), children));
|
|
7909
7854
|
};
|
|
7910
7855
|
|
|
7911
|
-
return /*#__PURE__*/
|
|
7856
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7912
7857
|
value: modalContext
|
|
7913
|
-
}, /*#__PURE__*/
|
|
7858
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7914
7859
|
show: show,
|
|
7915
7860
|
ref: setModalRef,
|
|
7916
7861
|
backdrop: backdrop,
|
|
@@ -7948,17 +7893,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7948
7893
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7949
7894
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7950
7895
|
|
|
7951
|
-
var NavItem =
|
|
7896
|
+
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
|
|
7952
7897
|
function (_ref, ref) {
|
|
7953
7898
|
var bsPrefix = _ref.bsPrefix,
|
|
7954
7899
|
className = _ref.className,
|
|
7955
7900
|
children = _ref.children,
|
|
7956
7901
|
_ref$as = _ref.as,
|
|
7957
7902
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7958
|
-
props = _objectWithoutPropertiesLoose
|
|
7903
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7959
7904
|
|
|
7960
7905
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7961
|
-
return /*#__PURE__*/
|
|
7906
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7962
7907
|
ref: ref,
|
|
7963
7908
|
className: classnames(className, bsPrefix)
|
|
7964
7909
|
}), children);
|
|
@@ -7969,7 +7914,7 @@ var defaultProps$s = {
|
|
|
7969
7914
|
disabled: false,
|
|
7970
7915
|
as: SafeAnchor
|
|
7971
7916
|
};
|
|
7972
|
-
var NavLink =
|
|
7917
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7973
7918
|
var bsPrefix = _ref.bsPrefix,
|
|
7974
7919
|
disabled = _ref.disabled,
|
|
7975
7920
|
className = _ref.className,
|
|
@@ -7977,10 +7922,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7977
7922
|
eventKey = _ref.eventKey,
|
|
7978
7923
|
onSelect = _ref.onSelect,
|
|
7979
7924
|
as = _ref.as,
|
|
7980
|
-
props = _objectWithoutPropertiesLoose
|
|
7925
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7981
7926
|
|
|
7982
7927
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7983
|
-
return /*#__PURE__*/
|
|
7928
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7984
7929
|
href: href,
|
|
7985
7930
|
ref: ref,
|
|
7986
7931
|
eventKey: eventKey,
|
|
@@ -7997,7 +7942,7 @@ var defaultProps$t = {
|
|
|
7997
7942
|
justify: false,
|
|
7998
7943
|
fill: false
|
|
7999
7944
|
};
|
|
8000
|
-
var Nav =
|
|
7945
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8001
7946
|
var _classNames;
|
|
8002
7947
|
|
|
8003
7948
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8013,7 +7958,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8013
7958
|
className = _useUncontrolled.className,
|
|
8014
7959
|
children = _useUncontrolled.children,
|
|
8015
7960
|
activeKey = _useUncontrolled.activeKey,
|
|
8016
|
-
props = _objectWithoutPropertiesLoose
|
|
7961
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8017
7962
|
|
|
8018
7963
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8019
7964
|
var navbarBsPrefix;
|
|
@@ -8029,7 +7974,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8029
7974
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8030
7975
|
}
|
|
8031
7976
|
|
|
8032
|
-
return /*#__PURE__*/
|
|
7977
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8033
7978
|
as: as,
|
|
8034
7979
|
ref: ref,
|
|
8035
7980
|
activeKey: activeKey,
|
|
@@ -8041,31 +7986,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8041
7986
|
Nav.Item = NavItem;
|
|
8042
7987
|
Nav.Link = NavLink;
|
|
8043
7988
|
|
|
8044
|
-
var NavbarBrand =
|
|
7989
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8045
7990
|
var bsPrefix = _ref.bsPrefix,
|
|
8046
7991
|
className = _ref.className,
|
|
8047
7992
|
as = _ref.as,
|
|
8048
|
-
props = _objectWithoutPropertiesLoose
|
|
7993
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8049
7994
|
|
|
8050
7995
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8051
7996
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8052
|
-
return /*#__PURE__*/
|
|
7997
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8053
7998
|
ref: ref,
|
|
8054
7999
|
className: classnames(className, bsPrefix)
|
|
8055
8000
|
}));
|
|
8056
8001
|
});
|
|
8057
8002
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8058
8003
|
|
|
8059
|
-
var NavbarCollapse =
|
|
8004
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8060
8005
|
var children = _ref.children,
|
|
8061
8006
|
bsPrefix = _ref.bsPrefix,
|
|
8062
|
-
props = _objectWithoutPropertiesLoose
|
|
8007
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8063
8008
|
|
|
8064
8009
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8065
|
-
return /*#__PURE__*/
|
|
8066
|
-
return /*#__PURE__*/
|
|
8010
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8011
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8067
8012
|
in: !!(context && context.expanded)
|
|
8068
|
-
}, props), /*#__PURE__*/
|
|
8013
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8069
8014
|
ref: ref,
|
|
8070
8015
|
className: bsPrefix
|
|
8071
8016
|
}, children));
|
|
@@ -8076,7 +8021,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8076
8021
|
var defaultProps$u = {
|
|
8077
8022
|
label: 'Toggle navigation'
|
|
8078
8023
|
};
|
|
8079
|
-
var NavbarToggle =
|
|
8024
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8080
8025
|
var bsPrefix = _ref.bsPrefix,
|
|
8081
8026
|
className = _ref.className,
|
|
8082
8027
|
children = _ref.children,
|
|
@@ -8084,7 +8029,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8084
8029
|
_ref$as = _ref.as,
|
|
8085
8030
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8086
8031
|
onClick = _ref.onClick,
|
|
8087
|
-
props = _objectWithoutPropertiesLoose
|
|
8032
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8088
8033
|
|
|
8089
8034
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8090
8035
|
|
|
@@ -8101,12 +8046,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8101
8046
|
props.type = 'button';
|
|
8102
8047
|
}
|
|
8103
8048
|
|
|
8104
|
-
return /*#__PURE__*/
|
|
8049
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8105
8050
|
ref: ref,
|
|
8106
8051
|
onClick: handleClick,
|
|
8107
8052
|
"aria-label": label,
|
|
8108
8053
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8109
|
-
}), children || /*#__PURE__*/
|
|
8054
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8110
8055
|
className: bsPrefix + "-icon"
|
|
8111
8056
|
}));
|
|
8112
8057
|
});
|
|
@@ -8121,7 +8066,7 @@ var defaultProps$v = {
|
|
|
8121
8066
|
variant: 'light',
|
|
8122
8067
|
collapseOnSelect: false
|
|
8123
8068
|
};
|
|
8124
|
-
var Navbar =
|
|
8069
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8125
8070
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8126
8071
|
expanded: 'onToggle'
|
|
8127
8072
|
}),
|
|
@@ -8139,7 +8084,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8139
8084
|
_onToggle = _useUncontrolled.onToggle,
|
|
8140
8085
|
onSelect = _useUncontrolled.onSelect,
|
|
8141
8086
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8142
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8087
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8143
8088
|
|
|
8144
8089
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8145
8090
|
var handleCollapse = useCallback(function () {
|
|
@@ -8169,11 +8114,11 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8169
8114
|
expanded: !!expanded
|
|
8170
8115
|
};
|
|
8171
8116
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8172
|
-
return /*#__PURE__*/
|
|
8117
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8173
8118
|
value: navbarContext
|
|
8174
|
-
}, /*#__PURE__*/
|
|
8119
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8175
8120
|
value: handleCollapse
|
|
8176
|
-
}, /*#__PURE__*/
|
|
8121
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8177
8122
|
ref: ref
|
|
8178
8123
|
}, controlledProps, {
|
|
8179
8124
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8222,7 +8167,7 @@ var propTypes$9 = {
|
|
|
8222
8167
|
/** @ignore */
|
|
8223
8168
|
bsPrefix: PropTypes.string
|
|
8224
8169
|
};
|
|
8225
|
-
var NavDropdown =
|
|
8170
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8226
8171
|
var id = _ref.id,
|
|
8227
8172
|
title = _ref.title,
|
|
8228
8173
|
children = _ref.children,
|
|
@@ -8232,20 +8177,20 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8232
8177
|
disabled = _ref.disabled,
|
|
8233
8178
|
active = _ref.active,
|
|
8234
8179
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8235
|
-
props = _objectWithoutPropertiesLoose
|
|
8180
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8236
8181
|
|
|
8237
|
-
return /*#__PURE__*/
|
|
8182
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8238
8183
|
ref: ref
|
|
8239
8184
|
}, props, {
|
|
8240
8185
|
as: NavItem
|
|
8241
|
-
}), /*#__PURE__*/
|
|
8186
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8242
8187
|
id: id,
|
|
8243
8188
|
eventKey: null,
|
|
8244
8189
|
active: active,
|
|
8245
8190
|
disabled: disabled,
|
|
8246
8191
|
childBsPrefix: bsPrefix,
|
|
8247
8192
|
as: NavLink
|
|
8248
|
-
}, title), /*#__PURE__*/
|
|
8193
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8249
8194
|
role: menuRole,
|
|
8250
8195
|
renderOnMount: renderMenuOnMount,
|
|
8251
8196
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8262,7 +8207,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8262
8207
|
* Built on top of `Popper.js`, the overlay component is
|
|
8263
8208
|
* great for custom tooltip overlays.
|
|
8264
8209
|
*/
|
|
8265
|
-
var Overlay = /*#__PURE__*/
|
|
8210
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8266
8211
|
var flip = props.flip,
|
|
8267
8212
|
offset = props.offset,
|
|
8268
8213
|
placement = props.placement,
|
|
@@ -8345,7 +8290,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8345
8290
|
onEnter = props.onEnter,
|
|
8346
8291
|
onEntering = props.onEntering,
|
|
8347
8292
|
onEntered = props.onEntered;
|
|
8348
|
-
child = /*#__PURE__*/
|
|
8293
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8349
8294
|
"in": props.show,
|
|
8350
8295
|
appear: true,
|
|
8351
8296
|
onExit: onExit,
|
|
@@ -8511,34 +8456,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8511
8456
|
};
|
|
8512
8457
|
|
|
8513
8458
|
return RefHolder;
|
|
8514
|
-
}(
|
|
8459
|
+
}(React.Component);
|
|
8515
8460
|
|
|
8516
8461
|
var defaultProps$w = {
|
|
8517
8462
|
active: false,
|
|
8518
8463
|
disabled: false,
|
|
8519
8464
|
activeLabel: '(current)'
|
|
8520
8465
|
};
|
|
8521
|
-
var PageItem =
|
|
8466
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8522
8467
|
var active = _ref.active,
|
|
8523
8468
|
disabled = _ref.disabled,
|
|
8524
8469
|
className = _ref.className,
|
|
8525
8470
|
style = _ref.style,
|
|
8526
8471
|
activeLabel = _ref.activeLabel,
|
|
8527
8472
|
children = _ref.children,
|
|
8528
|
-
props = _objectWithoutPropertiesLoose
|
|
8473
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8529
8474
|
|
|
8530
8475
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8531
|
-
return /*#__PURE__*/
|
|
8476
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8532
8477
|
ref: ref,
|
|
8533
8478
|
style: style,
|
|
8534
8479
|
className: classnames(className, 'page-item', {
|
|
8535
8480
|
active: active,
|
|
8536
8481
|
disabled: disabled
|
|
8537
8482
|
})
|
|
8538
|
-
}, /*#__PURE__*/
|
|
8483
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8539
8484
|
className: "page-link",
|
|
8540
8485
|
disabled: disabled
|
|
8541
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8486
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8542
8487
|
className: "sr-only"
|
|
8543
8488
|
}, activeLabel)));
|
|
8544
8489
|
});
|
|
@@ -8552,11 +8497,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8552
8497
|
|
|
8553
8498
|
function Button(_ref2) {
|
|
8554
8499
|
var children = _ref2.children,
|
|
8555
|
-
props = _objectWithoutPropertiesLoose
|
|
8500
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8556
8501
|
|
|
8557
|
-
return /*#__PURE__*/
|
|
8502
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8558
8503
|
"aria-hidden": "true"
|
|
8559
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8504
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8560
8505
|
className: "sr-only"
|
|
8561
8506
|
}, label));
|
|
8562
8507
|
}
|
|
@@ -8579,15 +8524,15 @@ var Last = createButton('Last', '»');
|
|
|
8579
8524
|
* @property {PageItem} Next
|
|
8580
8525
|
* @property {PageItem} Last
|
|
8581
8526
|
*/
|
|
8582
|
-
var Pagination =
|
|
8527
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8583
8528
|
var bsPrefix = _ref.bsPrefix,
|
|
8584
8529
|
className = _ref.className,
|
|
8585
8530
|
children = _ref.children,
|
|
8586
8531
|
size = _ref.size,
|
|
8587
|
-
props = _objectWithoutPropertiesLoose
|
|
8532
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8588
8533
|
|
|
8589
8534
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8590
|
-
return /*#__PURE__*/
|
|
8535
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8591
8536
|
ref: ref
|
|
8592
8537
|
}, props, {
|
|
8593
8538
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8600,32 +8545,32 @@ Pagination.Item = PageItem;
|
|
|
8600
8545
|
Pagination.Next = Next;
|
|
8601
8546
|
Pagination.Last = Last;
|
|
8602
8547
|
|
|
8603
|
-
var PopoverTitle =
|
|
8548
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8604
8549
|
var _ref$as = _ref.as,
|
|
8605
8550
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8606
8551
|
bsPrefix = _ref.bsPrefix,
|
|
8607
8552
|
className = _ref.className,
|
|
8608
8553
|
children = _ref.children,
|
|
8609
|
-
props = _objectWithoutPropertiesLoose
|
|
8554
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8610
8555
|
|
|
8611
8556
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8612
|
-
return /*#__PURE__*/
|
|
8557
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8613
8558
|
ref: ref
|
|
8614
8559
|
}, props, {
|
|
8615
8560
|
className: classnames(bsPrefix, className)
|
|
8616
8561
|
}), children);
|
|
8617
8562
|
});
|
|
8618
8563
|
|
|
8619
|
-
var PopoverContent =
|
|
8564
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8620
8565
|
var _ref$as = _ref.as,
|
|
8621
8566
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8622
8567
|
bsPrefix = _ref.bsPrefix,
|
|
8623
8568
|
className = _ref.className,
|
|
8624
8569
|
children = _ref.children,
|
|
8625
|
-
props = _objectWithoutPropertiesLoose
|
|
8570
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8626
8571
|
|
|
8627
8572
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8628
|
-
return /*#__PURE__*/
|
|
8573
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8629
8574
|
ref: ref
|
|
8630
8575
|
}, props, {
|
|
8631
8576
|
className: classnames(className, bsPrefix)
|
|
@@ -8635,7 +8580,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8635
8580
|
var defaultProps$x = {
|
|
8636
8581
|
placement: 'right'
|
|
8637
8582
|
};
|
|
8638
|
-
var Popover =
|
|
8583
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8639
8584
|
var bsPrefix = _ref.bsPrefix,
|
|
8640
8585
|
placement = _ref.placement,
|
|
8641
8586
|
className = _ref.className,
|
|
@@ -8645,22 +8590,22 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8645
8590
|
arrowProps = _ref.arrowProps,
|
|
8646
8591
|
_ = _ref.popper,
|
|
8647
8592
|
_1 = _ref.show,
|
|
8648
|
-
props = _objectWithoutPropertiesLoose
|
|
8593
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8649
8594
|
|
|
8650
8595
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8651
8596
|
|
|
8652
8597
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8653
8598
|
primaryPlacement = _ref2[0];
|
|
8654
8599
|
|
|
8655
|
-
return /*#__PURE__*/
|
|
8600
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8656
8601
|
ref: ref,
|
|
8657
8602
|
role: "tooltip",
|
|
8658
8603
|
style: style,
|
|
8659
8604
|
"x-placement": primaryPlacement,
|
|
8660
8605
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8661
|
-
}, props), /*#__PURE__*/
|
|
8606
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8662
8607
|
className: "arrow"
|
|
8663
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8608
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8664
8609
|
});
|
|
8665
8610
|
Popover.defaultProps = defaultProps$x;
|
|
8666
8611
|
Popover.Title = PopoverTitle;
|
|
@@ -8696,27 +8641,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8696
8641
|
style = _ref.style,
|
|
8697
8642
|
variant = _ref.variant,
|
|
8698
8643
|
bsPrefix = _ref.bsPrefix,
|
|
8699
|
-
props = _objectWithoutPropertiesLoose
|
|
8644
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8700
8645
|
|
|
8701
|
-
return /*#__PURE__*/
|
|
8646
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8702
8647
|
ref: ref
|
|
8703
8648
|
}, props, {
|
|
8704
8649
|
role: "progressbar",
|
|
8705
8650
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8706
|
-
style: _extends
|
|
8651
|
+
style: _extends({
|
|
8707
8652
|
width: getPercentage(now, min, max) + "%"
|
|
8708
8653
|
}, style),
|
|
8709
8654
|
"aria-valuenow": now,
|
|
8710
8655
|
"aria-valuemin": min,
|
|
8711
8656
|
"aria-valuemax": max
|
|
8712
|
-
}), srOnly ? /*#__PURE__*/
|
|
8657
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8713
8658
|
className: "sr-only"
|
|
8714
8659
|
}, label) : label);
|
|
8715
8660
|
}
|
|
8716
8661
|
|
|
8717
|
-
var ProgressBar =
|
|
8662
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8718
8663
|
var isChild = _ref2.isChild,
|
|
8719
|
-
props = _objectWithoutPropertiesLoose
|
|
8664
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8720
8665
|
|
|
8721
8666
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8722
8667
|
|
|
@@ -8735,9 +8680,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8735
8680
|
variant = props.variant,
|
|
8736
8681
|
className = props.className,
|
|
8737
8682
|
children = props.children,
|
|
8738
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8683
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8739
8684
|
|
|
8740
|
-
return /*#__PURE__*/
|
|
8685
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8741
8686
|
ref: ref
|
|
8742
8687
|
}, wrapperProps, {
|
|
8743
8688
|
className: classnames(className, bsPrefix)
|
|
@@ -8763,20 +8708,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8763
8708
|
var defaultProps$z = {
|
|
8764
8709
|
aspectRatio: '1by1'
|
|
8765
8710
|
};
|
|
8766
|
-
var ResponsiveEmbed =
|
|
8711
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8767
8712
|
var bsPrefix = _ref.bsPrefix,
|
|
8768
8713
|
className = _ref.className,
|
|
8769
8714
|
children = _ref.children,
|
|
8770
8715
|
aspectRatio = _ref.aspectRatio,
|
|
8771
|
-
props = _objectWithoutPropertiesLoose
|
|
8716
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8772
8717
|
|
|
8773
8718
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8774
|
-
var child =
|
|
8775
|
-
return /*#__PURE__*/
|
|
8719
|
+
var child = React.Children.only(children);
|
|
8720
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8776
8721
|
ref: ref
|
|
8777
8722
|
}, props, {
|
|
8778
8723
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8779
|
-
}),
|
|
8724
|
+
}), React.cloneElement(child, {
|
|
8780
8725
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8781
8726
|
}));
|
|
8782
8727
|
});
|
|
@@ -8786,13 +8731,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8786
8731
|
var defaultProps$A = {
|
|
8787
8732
|
noGutters: false
|
|
8788
8733
|
};
|
|
8789
|
-
var Row =
|
|
8734
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8790
8735
|
var bsPrefix = _ref.bsPrefix,
|
|
8791
8736
|
className = _ref.className,
|
|
8792
8737
|
noGutters = _ref.noGutters,
|
|
8793
8738
|
_ref$as = _ref.as,
|
|
8794
8739
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8795
|
-
props = _objectWithoutPropertiesLoose
|
|
8740
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8796
8741
|
|
|
8797
8742
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8798
8743
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8811,7 +8756,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8811
8756
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8812
8757
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8813
8758
|
});
|
|
8814
|
-
return /*#__PURE__*/
|
|
8759
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8815
8760
|
ref: ref
|
|
8816
8761
|
}, props, {
|
|
8817
8762
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8820,7 +8765,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8820
8765
|
Row.displayName = 'Row';
|
|
8821
8766
|
Row.defaultProps = defaultProps$A;
|
|
8822
8767
|
|
|
8823
|
-
var Spinner =
|
|
8768
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8824
8769
|
var bsPrefix = _ref.bsPrefix,
|
|
8825
8770
|
variant = _ref.variant,
|
|
8826
8771
|
animation = _ref.animation,
|
|
@@ -8829,11 +8774,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8829
8774
|
_ref$as = _ref.as,
|
|
8830
8775
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8831
8776
|
className = _ref.className,
|
|
8832
|
-
props = _objectWithoutPropertiesLoose
|
|
8777
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8833
8778
|
|
|
8834
8779
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8835
8780
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8836
|
-
return /*#__PURE__*/
|
|
8781
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8837
8782
|
ref: ref
|
|
8838
8783
|
}, props, {
|
|
8839
8784
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8907,7 +8852,7 @@ var defaultProps$B = {
|
|
|
8907
8852
|
toggleLabel: 'Toggle dropdown',
|
|
8908
8853
|
type: 'button'
|
|
8909
8854
|
};
|
|
8910
|
-
var SplitButton =
|
|
8855
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8911
8856
|
var id = _ref.id,
|
|
8912
8857
|
bsPrefix = _ref.bsPrefix,
|
|
8913
8858
|
size = _ref.size,
|
|
@@ -8923,13 +8868,13 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8923
8868
|
menuRole = _ref.menuRole,
|
|
8924
8869
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8925
8870
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8926
|
-
props = _objectWithoutPropertiesLoose
|
|
8871
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8927
8872
|
|
|
8928
|
-
return /*#__PURE__*/
|
|
8873
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8929
8874
|
ref: ref
|
|
8930
8875
|
}, props, {
|
|
8931
8876
|
as: ButtonGroup
|
|
8932
|
-
}), /*#__PURE__*/
|
|
8877
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8933
8878
|
size: size,
|
|
8934
8879
|
variant: variant,
|
|
8935
8880
|
disabled: props.disabled,
|
|
@@ -8938,16 +8883,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8938
8883
|
target: target,
|
|
8939
8884
|
onClick: onClick,
|
|
8940
8885
|
type: type
|
|
8941
|
-
}, title), /*#__PURE__*/
|
|
8886
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8942
8887
|
split: true,
|
|
8943
8888
|
id: id ? id.toString() : undefined,
|
|
8944
8889
|
size: size,
|
|
8945
8890
|
variant: variant,
|
|
8946
8891
|
disabled: props.disabled,
|
|
8947
8892
|
childBsPrefix: bsPrefix
|
|
8948
|
-
}, /*#__PURE__*/
|
|
8893
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8949
8894
|
className: "sr-only"
|
|
8950
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8895
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8951
8896
|
align: menuAlign,
|
|
8952
8897
|
role: menuRole,
|
|
8953
8898
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8991,22 +8936,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8991
8936
|
}
|
|
8992
8937
|
};
|
|
8993
8938
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8994
|
-
return /*#__PURE__*/
|
|
8939
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8995
8940
|
value: tabContext
|
|
8996
|
-
}, /*#__PURE__*/
|
|
8941
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8997
8942
|
value: onSelect || null
|
|
8998
8943
|
}, children));
|
|
8999
8944
|
};
|
|
9000
8945
|
|
|
9001
|
-
var TabContent =
|
|
8946
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9002
8947
|
var bsPrefix = _ref.bsPrefix,
|
|
9003
8948
|
_ref$as = _ref.as,
|
|
9004
8949
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9005
8950
|
className = _ref.className,
|
|
9006
|
-
props = _objectWithoutPropertiesLoose
|
|
8951
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9007
8952
|
|
|
9008
8953
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9009
|
-
return /*#__PURE__*/
|
|
8954
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9010
8955
|
ref: ref
|
|
9011
8956
|
}, props, {
|
|
9012
8957
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9020,11 +8965,11 @@ function useTabContext(props) {
|
|
|
9020
8965
|
var activeKey = context.activeKey,
|
|
9021
8966
|
getControlledId = context.getControlledId,
|
|
9022
8967
|
getControllerId = context.getControllerId,
|
|
9023
|
-
rest = _objectWithoutPropertiesLoose
|
|
8968
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9024
8969
|
|
|
9025
8970
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9026
8971
|
var key = makeEventKey(props.eventKey);
|
|
9027
|
-
return _extends
|
|
8972
|
+
return _extends({}, props, {
|
|
9028
8973
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9029
8974
|
id: getControlledId(props.eventKey),
|
|
9030
8975
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9034,7 +8979,7 @@ function useTabContext(props) {
|
|
|
9034
8979
|
});
|
|
9035
8980
|
}
|
|
9036
8981
|
|
|
9037
|
-
var TabPane =
|
|
8982
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9038
8983
|
var _useTabContext = useTabContext(props),
|
|
9039
8984
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9040
8985
|
className = _useTabContext.className,
|
|
@@ -9051,11 +8996,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9051
8996
|
_useTabContext$as = _useTabContext.as,
|
|
9052
8997
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9053
8998
|
_ = _useTabContext.eventKey,
|
|
9054
|
-
rest = _objectWithoutPropertiesLoose
|
|
8999
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9055
9000
|
|
|
9056
9001
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9057
9002
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9058
|
-
var pane = /*#__PURE__*/
|
|
9003
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9059
9004
|
ref: ref,
|
|
9060
9005
|
role: "tabpanel",
|
|
9061
9006
|
"aria-hidden": !active,
|
|
@@ -9063,7 +9008,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9063
9008
|
active: active
|
|
9064
9009
|
})
|
|
9065
9010
|
}));
|
|
9066
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9011
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9067
9012
|
in: active,
|
|
9068
9013
|
onEnter: onEnter,
|
|
9069
9014
|
onEntering: onEntering,
|
|
@@ -9076,9 +9021,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9076
9021
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9077
9022
|
// conflict with the top level one.
|
|
9078
9023
|
|
|
9079
|
-
return /*#__PURE__*/
|
|
9024
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9080
9025
|
value: null
|
|
9081
|
-
}, /*#__PURE__*/
|
|
9026
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9082
9027
|
value: null
|
|
9083
9028
|
}, pane));
|
|
9084
9029
|
});
|
|
@@ -9099,13 +9044,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9099
9044
|
};
|
|
9100
9045
|
|
|
9101
9046
|
return Tab;
|
|
9102
|
-
}(
|
|
9047
|
+
}(React.Component);
|
|
9103
9048
|
|
|
9104
9049
|
Tab.Container = TabContainer;
|
|
9105
9050
|
Tab.Content = TabContent;
|
|
9106
9051
|
Tab.Pane = TabPane;
|
|
9107
9052
|
|
|
9108
|
-
var Table =
|
|
9053
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9109
9054
|
var bsPrefix = _ref.bsPrefix,
|
|
9110
9055
|
className = _ref.className,
|
|
9111
9056
|
striped = _ref.striped,
|
|
@@ -9115,11 +9060,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9115
9060
|
size = _ref.size,
|
|
9116
9061
|
variant = _ref.variant,
|
|
9117
9062
|
responsive = _ref.responsive,
|
|
9118
|
-
props = _objectWithoutPropertiesLoose
|
|
9063
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9119
9064
|
|
|
9120
9065
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9121
9066
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9122
|
-
var table = /*#__PURE__*/
|
|
9067
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9123
9068
|
className: classes,
|
|
9124
9069
|
ref: ref
|
|
9125
9070
|
}));
|
|
@@ -9131,7 +9076,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9131
9076
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9132
9077
|
}
|
|
9133
9078
|
|
|
9134
|
-
return /*#__PURE__*/
|
|
9079
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9135
9080
|
className: responsiveClass
|
|
9136
9081
|
}, table);
|
|
9137
9082
|
}
|
|
@@ -9139,7 +9084,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9139
9084
|
return table;
|
|
9140
9085
|
});
|
|
9141
9086
|
|
|
9142
|
-
var ToastContext =
|
|
9087
|
+
var ToastContext = React.createContext({
|
|
9143
9088
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9144
9089
|
onClose: function onClose() {}
|
|
9145
9090
|
});
|
|
@@ -9148,13 +9093,13 @@ var defaultProps$C = {
|
|
|
9148
9093
|
closeLabel: 'Close',
|
|
9149
9094
|
closeButton: true
|
|
9150
9095
|
};
|
|
9151
|
-
var ToastHeader =
|
|
9096
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9152
9097
|
var bsPrefix = _ref.bsPrefix,
|
|
9153
9098
|
closeLabel = _ref.closeLabel,
|
|
9154
9099
|
closeButton = _ref.closeButton,
|
|
9155
9100
|
className = _ref.className,
|
|
9156
9101
|
children = _ref.children,
|
|
9157
|
-
props = _objectWithoutPropertiesLoose
|
|
9102
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9158
9103
|
|
|
9159
9104
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9160
9105
|
var context = useContext(ToastContext);
|
|
@@ -9163,11 +9108,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9163
9108
|
context.onClose(e);
|
|
9164
9109
|
}
|
|
9165
9110
|
});
|
|
9166
|
-
return /*#__PURE__*/
|
|
9111
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9167
9112
|
ref: ref
|
|
9168
9113
|
}, props, {
|
|
9169
9114
|
className: classnames(bsPrefix, className)
|
|
9170
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9115
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9171
9116
|
label: closeLabel,
|
|
9172
9117
|
onClick: handleClick,
|
|
9173
9118
|
className: "ml-2 mb-1",
|
|
@@ -9179,7 +9124,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9179
9124
|
|
|
9180
9125
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9181
9126
|
|
|
9182
|
-
var Toast =
|
|
9127
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9183
9128
|
var bsPrefix = _ref.bsPrefix,
|
|
9184
9129
|
className = _ref.className,
|
|
9185
9130
|
children = _ref.children,
|
|
@@ -9194,7 +9139,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9194
9139
|
_ref$autohide = _ref.autohide,
|
|
9195
9140
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9196
9141
|
onClose = _ref.onClose,
|
|
9197
|
-
props = _objectWithoutPropertiesLoose
|
|
9142
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9198
9143
|
|
|
9199
9144
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9200
9145
|
// timer in case these values change.
|
|
@@ -9222,16 +9167,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9222
9167
|
};
|
|
9223
9168
|
}, [onClose]);
|
|
9224
9169
|
var hasAnimation = !!(Transition && animation);
|
|
9225
|
-
var toast = /*#__PURE__*/
|
|
9170
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9226
9171
|
ref: ref,
|
|
9227
9172
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9228
9173
|
role: "alert",
|
|
9229
9174
|
"aria-live": "assertive",
|
|
9230
9175
|
"aria-atomic": "true"
|
|
9231
9176
|
}), children);
|
|
9232
|
-
return /*#__PURE__*/
|
|
9177
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9233
9178
|
value: toastContext
|
|
9234
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9179
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9235
9180
|
in: show,
|
|
9236
9181
|
unmountOnExit: true
|
|
9237
9182
|
}, toast) : toast);
|
|
@@ -9246,7 +9191,7 @@ var noop$5 = function noop() {
|
|
|
9246
9191
|
return undefined;
|
|
9247
9192
|
};
|
|
9248
9193
|
|
|
9249
|
-
var ToggleButton =
|
|
9194
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9250
9195
|
var children = _ref.children,
|
|
9251
9196
|
name = _ref.name,
|
|
9252
9197
|
className = _ref.className,
|
|
@@ -9256,7 +9201,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9256
9201
|
value = _ref.value,
|
|
9257
9202
|
disabled = _ref.disabled,
|
|
9258
9203
|
inputRef = _ref.inputRef,
|
|
9259
|
-
props = _objectWithoutPropertiesLoose
|
|
9204
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9260
9205
|
|
|
9261
9206
|
var _useState = useState(false),
|
|
9262
9207
|
focused = _useState[0],
|
|
@@ -9268,13 +9213,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9268
9213
|
var handleBlur = useCallback(function (e) {
|
|
9269
9214
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9270
9215
|
}, []);
|
|
9271
|
-
return /*#__PURE__*/
|
|
9216
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9272
9217
|
ref: ref,
|
|
9273
9218
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9274
9219
|
type: undefined,
|
|
9275
9220
|
active: !!checked,
|
|
9276
9221
|
as: "label"
|
|
9277
|
-
}), /*#__PURE__*/
|
|
9222
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9278
9223
|
name: name,
|
|
9279
9224
|
type: type,
|
|
9280
9225
|
value: value,
|
|
@@ -9293,7 +9238,7 @@ var defaultProps$D = {
|
|
|
9293
9238
|
type: 'radio',
|
|
9294
9239
|
vertical: false
|
|
9295
9240
|
};
|
|
9296
|
-
var ToggleButtonGroup =
|
|
9241
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9297
9242
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9298
9243
|
value: 'onChange'
|
|
9299
9244
|
}),
|
|
@@ -9302,7 +9247,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9302
9247
|
name = _useUncontrolled.name,
|
|
9303
9248
|
value = _useUncontrolled.value,
|
|
9304
9249
|
onChange = _useUncontrolled.onChange,
|
|
9305
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9250
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9306
9251
|
|
|
9307
9252
|
var getValues = function getValues() {
|
|
9308
9253
|
return value == null ? [] : [].concat(value);
|
|
@@ -9331,7 +9276,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9331
9276
|
};
|
|
9332
9277
|
|
|
9333
9278
|
!(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;
|
|
9334
|
-
return /*#__PURE__*/
|
|
9279
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9335
9280
|
ref: ref,
|
|
9336
9281
|
toggle: true
|
|
9337
9282
|
}), map(children, function (child) {
|
|
@@ -9344,7 +9289,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9344
9289
|
return handleToggle(childVal, e);
|
|
9345
9290
|
};
|
|
9346
9291
|
|
|
9347
|
-
return
|
|
9292
|
+
return React.cloneElement(child, {
|
|
9348
9293
|
type: type,
|
|
9349
9294
|
name: child.name || name,
|
|
9350
9295
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9358,7 +9303,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9358
9303
|
var defaultProps$E = {
|
|
9359
9304
|
placement: 'right'
|
|
9360
9305
|
};
|
|
9361
|
-
var Tooltip =
|
|
9306
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9362
9307
|
var bsPrefix = _ref.bsPrefix,
|
|
9363
9308
|
placement = _ref.placement,
|
|
9364
9309
|
className = _ref.className,
|
|
@@ -9367,22 +9312,22 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9367
9312
|
arrowProps = _ref.arrowProps,
|
|
9368
9313
|
_ = _ref.popper,
|
|
9369
9314
|
_2 = _ref.show,
|
|
9370
|
-
props = _objectWithoutPropertiesLoose
|
|
9315
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9371
9316
|
|
|
9372
9317
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9373
9318
|
|
|
9374
9319
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9375
9320
|
primaryPlacement = _ref2[0];
|
|
9376
9321
|
|
|
9377
|
-
return /*#__PURE__*/
|
|
9322
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9378
9323
|
ref: ref,
|
|
9379
9324
|
style: style,
|
|
9380
9325
|
role: "tooltip",
|
|
9381
9326
|
"x-placement": primaryPlacement,
|
|
9382
9327
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9383
|
-
}, props), /*#__PURE__*/
|
|
9328
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9384
9329
|
className: "arrow"
|
|
9385
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9330
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9386
9331
|
className: bsPrefix + "-inner"
|
|
9387
9332
|
}, children));
|
|
9388
9333
|
});
|
|
@@ -9400,54 +9345,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9400
9345
|
client = props.client;
|
|
9401
9346
|
|
|
9402
9347
|
|
|
9403
|
-
return
|
|
9348
|
+
return React.createElement(
|
|
9404
9349
|
'div',
|
|
9405
9350
|
{ className: styles.article },
|
|
9406
|
-
|
|
9351
|
+
React.createElement(
|
|
9407
9352
|
'a',
|
|
9408
9353
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9409
|
-
|
|
9354
|
+
React.createElement(
|
|
9410
9355
|
'div',
|
|
9411
9356
|
{ className: styles.thumb },
|
|
9412
|
-
|
|
9357
|
+
React.createElement(
|
|
9413
9358
|
'figure',
|
|
9414
9359
|
null,
|
|
9415
|
-
|
|
9360
|
+
React.createElement(
|
|
9416
9361
|
LazyLoad,
|
|
9417
9362
|
null,
|
|
9418
|
-
|
|
9363
|
+
React.createElement('img', {
|
|
9419
9364
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9420
9365
|
})
|
|
9421
9366
|
)
|
|
9422
9367
|
)
|
|
9423
9368
|
),
|
|
9424
|
-
|
|
9369
|
+
React.createElement(
|
|
9425
9370
|
'div',
|
|
9426
9371
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9427
|
-
|
|
9372
|
+
React.createElement(
|
|
9428
9373
|
'div',
|
|
9429
9374
|
{ className: styles.name },
|
|
9430
9375
|
data.name
|
|
9431
9376
|
),
|
|
9432
|
-
data.published &&
|
|
9377
|
+
data.published && React.createElement(
|
|
9433
9378
|
'p',
|
|
9434
9379
|
{ className: styles.published },
|
|
9435
9380
|
moment(data.published).format('MMMM Do YYYY')
|
|
9436
9381
|
),
|
|
9437
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9382
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9438
9383
|
'p',
|
|
9439
9384
|
{ className: styles.author },
|
|
9440
9385
|
'By ',
|
|
9441
|
-
|
|
9386
|
+
React.createElement(
|
|
9442
9387
|
'span',
|
|
9443
9388
|
null,
|
|
9444
9389
|
data.authorMapping.displayName
|
|
9445
9390
|
)
|
|
9446
9391
|
),
|
|
9447
|
-
data.description &&
|
|
9392
|
+
data.description && React.createElement(
|
|
9448
9393
|
'div',
|
|
9449
9394
|
{ className: 'media-series-desc' },
|
|
9450
|
-
|
|
9395
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9451
9396
|
)
|
|
9452
9397
|
)
|
|
9453
9398
|
)
|
|
@@ -9495,7 +9440,7 @@ var Filter = function Filter(_ref) {
|
|
|
9495
9440
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9496
9441
|
if (type === 'parent') {
|
|
9497
9442
|
setParentData(function (prevState) {
|
|
9498
|
-
return _extends$
|
|
9443
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9499
9444
|
});
|
|
9500
9445
|
if (group && group.children && group.children.length > 0) {
|
|
9501
9446
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9509,7 +9454,7 @@ var Filter = function Filter(_ref) {
|
|
|
9509
9454
|
}
|
|
9510
9455
|
if (type === 'child') {
|
|
9511
9456
|
setChildData(function (prevState) {
|
|
9512
|
-
return _extends$
|
|
9457
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9513
9458
|
});
|
|
9514
9459
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9515
9460
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9528,7 +9473,7 @@ var Filter = function Filter(_ref) {
|
|
|
9528
9473
|
}
|
|
9529
9474
|
if (type === 'grandchild') {
|
|
9530
9475
|
setGrandChildData(function (prevState) {
|
|
9531
|
-
return _extends$
|
|
9476
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9532
9477
|
});
|
|
9533
9478
|
//handle filter
|
|
9534
9479
|
if (!group._id) {
|
|
@@ -9544,13 +9489,13 @@ var Filter = function Filter(_ref) {
|
|
|
9544
9489
|
}
|
|
9545
9490
|
};
|
|
9546
9491
|
|
|
9547
|
-
return
|
|
9492
|
+
return React.createElement(
|
|
9548
9493
|
'div',
|
|
9549
9494
|
{ className: 'flex-container' },
|
|
9550
|
-
parentData &&
|
|
9495
|
+
parentData && React.createElement(
|
|
9551
9496
|
DropdownButton,
|
|
9552
9497
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9553
|
-
|
|
9498
|
+
React.createElement(
|
|
9554
9499
|
Dropdown$1.Item,
|
|
9555
9500
|
{ onSelect: function onSelect() {
|
|
9556
9501
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9559,7 +9504,7 @@ var Filter = function Filter(_ref) {
|
|
|
9559
9504
|
),
|
|
9560
9505
|
parentData.data.map(function (docGroup) {
|
|
9561
9506
|
if (!docGroup._id) return null;
|
|
9562
|
-
return
|
|
9507
|
+
return React.createElement(
|
|
9563
9508
|
Dropdown$1.Item,
|
|
9564
9509
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9565
9510
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9568,10 +9513,10 @@ var Filter = function Filter(_ref) {
|
|
|
9568
9513
|
);
|
|
9569
9514
|
})
|
|
9570
9515
|
),
|
|
9571
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9516
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9572
9517
|
DropdownButton,
|
|
9573
9518
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9574
|
-
|
|
9519
|
+
React.createElement(
|
|
9575
9520
|
Dropdown$1.Item,
|
|
9576
9521
|
{ onSelect: function onSelect() {
|
|
9577
9522
|
return handleFilterSelect({}, 'child');
|
|
@@ -9580,7 +9525,7 @@ var Filter = function Filter(_ref) {
|
|
|
9580
9525
|
),
|
|
9581
9526
|
childData.data.map(function (docGroup) {
|
|
9582
9527
|
if (!docGroup._id) return null;
|
|
9583
|
-
return
|
|
9528
|
+
return React.createElement(
|
|
9584
9529
|
Dropdown$1.Item,
|
|
9585
9530
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9586
9531
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9589,10 +9534,10 @@ var Filter = function Filter(_ref) {
|
|
|
9589
9534
|
);
|
|
9590
9535
|
})
|
|
9591
9536
|
),
|
|
9592
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9537
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9593
9538
|
DropdownButton,
|
|
9594
9539
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9595
|
-
|
|
9540
|
+
React.createElement(
|
|
9596
9541
|
Dropdown$1.Item,
|
|
9597
9542
|
{ onSelect: function onSelect() {
|
|
9598
9543
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9601,7 +9546,7 @@ var Filter = function Filter(_ref) {
|
|
|
9601
9546
|
),
|
|
9602
9547
|
grandChildData.data.map(function (docGroup) {
|
|
9603
9548
|
if (!docGroup._id) return null;
|
|
9604
|
-
return
|
|
9549
|
+
return React.createElement(
|
|
9605
9550
|
Dropdown$1.Item,
|
|
9606
9551
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9607
9552
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9610,7 +9555,7 @@ var Filter = function Filter(_ref) {
|
|
|
9610
9555
|
);
|
|
9611
9556
|
})
|
|
9612
9557
|
),
|
|
9613
|
-
|
|
9558
|
+
React.createElement(
|
|
9614
9559
|
'style',
|
|
9615
9560
|
{ jsx: 'true' },
|
|
9616
9561
|
'\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 '
|
|
@@ -9658,7 +9603,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9658
9603
|
while (1) {
|
|
9659
9604
|
switch (_context.prev = _context.next) {
|
|
9660
9605
|
case 0:
|
|
9661
|
-
newParams = _extends$
|
|
9606
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9662
9607
|
filterQuery = void 0;
|
|
9663
9608
|
|
|
9664
9609
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9700,27 +9645,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9700
9645
|
}();
|
|
9701
9646
|
|
|
9702
9647
|
if (props.statusCode === 404) {
|
|
9703
|
-
return
|
|
9648
|
+
return React.createElement(
|
|
9704
9649
|
'div',
|
|
9705
9650
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9706
|
-
|
|
9651
|
+
React.createElement(
|
|
9707
9652
|
'h3',
|
|
9708
9653
|
null,
|
|
9709
9654
|
'404: Resource not found'
|
|
9710
9655
|
),
|
|
9711
|
-
|
|
9656
|
+
React.createElement(
|
|
9712
9657
|
'p',
|
|
9713
9658
|
null,
|
|
9714
9659
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9715
9660
|
),
|
|
9716
|
-
|
|
9661
|
+
React.createElement(
|
|
9717
9662
|
'p',
|
|
9718
9663
|
null,
|
|
9719
9664
|
'Click here to',
|
|
9720
|
-
|
|
9665
|
+
React.createElement(
|
|
9721
9666
|
Link,
|
|
9722
9667
|
{ href: '/' },
|
|
9723
|
-
|
|
9668
|
+
React.createElement(
|
|
9724
9669
|
'a',
|
|
9725
9670
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9726
9671
|
' return to homepage.'
|
|
@@ -9730,17 +9675,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9730
9675
|
);
|
|
9731
9676
|
}
|
|
9732
9677
|
|
|
9733
|
-
return
|
|
9678
|
+
return React.createElement(
|
|
9734
9679
|
'div',
|
|
9735
9680
|
{ className: 'mb-5' },
|
|
9736
|
-
props.docGroup && props.docGroup.description &&
|
|
9737
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9681
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9682
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9738
9683
|
'div',
|
|
9739
9684
|
{ className: '' },
|
|
9740
|
-
|
|
9741
|
-
|
|
9685
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9686
|
+
React.createElement('hr', null)
|
|
9742
9687
|
),
|
|
9743
|
-
seriesData &&
|
|
9688
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9744
9689
|
deck: MediaSeriesCard,
|
|
9745
9690
|
variant: 'left',
|
|
9746
9691
|
defaultImage: '/placeholder.jpg',
|