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