@mjhls/mjh-framework 1.0.859-beta.3 → 1.0.859-d4d-374
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +10 -9
- package/dist/cjs/AD300x250x600.js +10 -9
- package/dist/cjs/AD728x90.js +11 -10
- package/dist/cjs/ADFloatingFooter.js +12 -11
- package/dist/cjs/ADFooter.js +9 -8
- package/dist/cjs/ADGutter.js +12 -11
- package/dist/cjs/{ADInfeed-98c71bcd.js → ADInfeed-799275aa.js} +11 -9
- package/dist/cjs/ADSkyscraper.js +12 -11
- package/dist/cjs/ADSponsoredResources.js +12 -11
- package/dist/cjs/ADWebcast.js +12 -11
- package/dist/cjs/ADWelcome.js +16 -15
- package/dist/cjs/{ADlgInfeed-9de32585.js → ADlgInfeed-591d014e.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 +971 -843
- 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 +197 -1192
- package/dist/cjs/AuthWrapper.js +301 -259
- 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 +33 -32
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +84 -80
- package/dist/cjs/DeckQueue.js +72 -68
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-391fd124.js} +23 -22
- package/dist/cjs/EventsDeck.js +140 -133
- 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 +130 -125
- 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 +58 -57
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +22 -20
- package/dist/cjs/MasterDeck.js +58 -57
- package/dist/cjs/MediaSeriesLanding.js +843 -852
- package/dist/cjs/NavDvm.js +68 -63
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +131 -126
- package/dist/cjs/NavNative.js +125 -117
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +64 -63
- package/dist/cjs/PageFilter.js +9 -8
- package/dist/cjs/PartnerDetailListing.js +131 -3950
- package/dist/cjs/PdfDownload.js +9 -8
- package/dist/cjs/PopUpModal.js +15 -13
- package/dist/cjs/PubSection.js +20 -19
- package/dist/cjs/PubToc.js +8 -7
- package/dist/cjs/PublicationDeck.js +64 -59
- package/dist/cjs/PublicationLanding.js +113 -109
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +20 -19
- package/dist/cjs/RelatedContent.js +51 -50
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- 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-d38767ae.js} +38 -37
- package/dist/cjs/SideFooter.js +26 -25
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-9a9d6f8c.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 +24 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +28 -27
- package/dist/cjs/VideoSeriesListing.js +57 -56
- package/dist/cjs/View.js +205 -201
- package/dist/cjs/YahooHero.js +31 -30
- package/dist/cjs/YoutubeGroup.js +55 -54
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-4ba0d3d5.js} +6 -5
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-f1821260.js → getTargeting-21103688.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +0 -3
- package/dist/cjs/{index-d79b659e.js → index-07e2d5de.js} +960 -934
- package/dist/cjs/{index-98e01cb9.js → index-2cf30c83.js} +9 -8
- package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
- 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-e2e62963.js → index-f0677b9d.js} +10 -0
- package/dist/cjs/{index.es-9110add6.js → index.es-13533f24.js} +11 -8
- 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 +64 -59
- 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-11ec04d2.js} +85 -53
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-07939b41.js} +12 -11
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-725500bc.js → typeof-9d7f610f.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-1cc9d817.js → ADInfeed-4b8902ae.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-8c4f129e.js → ADlgInfeed-5193b48f.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 +369 -242
- 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 +175 -1174
- package/dist/esm/AuthWrapper.js +298 -257
- 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 +30 -30
- package/dist/esm/{ConferenceBanner-8792ebd2.js → ConferenceBanner-9162d0ca.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-b7236041.js → Dfp-2f9796e1.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- 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 +100 -100
- 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 +55 -55
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +54 -54
- package/dist/esm/MediaSeriesLanding.js +560 -572
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-e27bd93b.js → NavFooter-c29526b7.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/OncliveHero.js +14 -15
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +76 -3895
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +95 -95
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- 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-b8cc1baa.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-c54d43cb.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 +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +183 -183
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-e1c6b0f2.js} +3 -3
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{getTargeting-bd800589.js → getTargeting-88d69971.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-2fccaa7f.js → index-207958e3.js} +903 -887
- 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-aaa2dae0.js → index-b68072f5.js} +10 -1
- package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
- package/dist/esm/{index-41a678ea.js → index-f7fb1e25.js} +3 -3
- package/dist/esm/{index.es-29c1cef5.js → index.es-7dda2f0a.js} +8 -6
- 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 +53 -51
- 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-aef58dbc.js} +81 -50
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
- 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 +110 -111
- 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-12415288.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-7dda2f0a.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-aef58dbc.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-4b8902ae.js';
|
|
44
|
+
import './lodash-ec8c6b48.js';
|
|
45
|
+
import './ADlgInfeed-5193b48f.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-207958e3.js';
|
|
55
55
|
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-e1c6b0f2.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
59
|
import './SocialShare.js';
|
|
@@ -65,7 +65,7 @@ import 'react-bootstrap/Tooltip';
|
|
|
65
65
|
import 'react-bootstrap/Popover';
|
|
66
66
|
import MasterDeck from './MasterDeck.js';
|
|
67
67
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
-
import { _ as _objectWithoutPropertiesLoose
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-b68072f5.js';
|
|
69
69
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
70
|
import Link from 'next/link';
|
|
71
71
|
|
|
@@ -162,7 +162,7 @@ function useUncontrolled(props, config) {
|
|
|
162
162
|
var _ref = result,
|
|
163
163
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
164
164
|
propsValue = _ref[fieldName],
|
|
165
|
-
rest = _objectWithoutPropertiesLoose
|
|
165
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
166
166
|
|
|
167
167
|
var handlerName = config[fieldName];
|
|
168
168
|
|
|
@@ -170,17 +170,17 @@ function useUncontrolled(props, config) {
|
|
|
170
170
|
value = _useUncontrolledProp[0],
|
|
171
171
|
handler = _useUncontrolledProp[1];
|
|
172
172
|
|
|
173
|
-
return _extends
|
|
173
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
174
174
|
}, props);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
function _inheritsLoose(subClass, superClass) {
|
|
178
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
179
179
|
subClass.prototype.constructor = subClass;
|
|
180
|
-
subClass
|
|
180
|
+
_setPrototypeOf(subClass, superClass);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
var ThemeContext =
|
|
183
|
+
var ThemeContext = React.createContext({});
|
|
184
184
|
var Consumer = ThemeContext.Consumer,
|
|
185
185
|
Provider = ThemeContext.Provider;
|
|
186
186
|
|
|
@@ -189,7 +189,7 @@ function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
|
189
189
|
return prefix || prefixes[defaultPrefix] || defaultPrefix;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
var SelectableContext =
|
|
192
|
+
var SelectableContext = React.createContext(null);
|
|
193
193
|
var makeEventKey = function makeEventKey(eventKey, href) {
|
|
194
194
|
if (href === void 0) {
|
|
195
195
|
href = null;
|
|
@@ -199,7 +199,7 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
199
199
|
return href || null;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
var context =
|
|
202
|
+
var context = React.createContext(null);
|
|
203
203
|
context.displayName = 'AccordionContext';
|
|
204
204
|
|
|
205
205
|
function useAccordionToggle(eventKey, onClick) {
|
|
@@ -215,13 +215,13 @@ function useAccordionToggle(eventKey, onClick) {
|
|
|
215
215
|
if (onClick) onClick(e);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
|
-
var AccordionToggle =
|
|
218
|
+
var AccordionToggle = React.forwardRef(function (_ref, ref) {
|
|
219
219
|
var _ref$as = _ref.as,
|
|
220
220
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
221
221
|
children = _ref.children,
|
|
222
222
|
eventKey = _ref.eventKey,
|
|
223
223
|
onClick = _ref.onClick,
|
|
224
|
-
props = _objectWithoutPropertiesLoose
|
|
224
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
225
225
|
|
|
226
226
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
227
227
|
|
|
@@ -229,7 +229,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
229
229
|
props.type = 'button';
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
return /*#__PURE__*/
|
|
232
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
233
233
|
ref: ref,
|
|
234
234
|
onClick: accordionOnClick
|
|
235
235
|
}, props), children);
|
|
@@ -426,7 +426,7 @@ var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfTyp
|
|
|
426
426
|
exitActive: PropTypes.string
|
|
427
427
|
})]) : null;
|
|
428
428
|
|
|
429
|
-
var TransitionGroupContext =
|
|
429
|
+
var TransitionGroupContext = React.createContext(null);
|
|
430
430
|
|
|
431
431
|
var UNMOUNTED = 'unmounted';
|
|
432
432
|
var EXITED = 'exited';
|
|
@@ -811,19 +811,19 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
811
811
|
_onExiting = _this$props.onExiting,
|
|
812
812
|
_onExited = _this$props.onExited,
|
|
813
813
|
_nodeRef = _this$props.nodeRef,
|
|
814
|
-
childProps = _objectWithoutPropertiesLoose
|
|
814
|
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
815
815
|
|
|
816
816
|
return (
|
|
817
817
|
/*#__PURE__*/
|
|
818
818
|
// allows for nested Transitions
|
|
819
|
-
|
|
819
|
+
React.createElement(TransitionGroupContext.Provider, {
|
|
820
820
|
value: null
|
|
821
|
-
}, typeof children === 'function' ? children(status, childProps) :
|
|
821
|
+
}, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))
|
|
822
822
|
);
|
|
823
823
|
};
|
|
824
824
|
|
|
825
825
|
return Transition;
|
|
826
|
-
}(
|
|
826
|
+
}(React.Component);
|
|
827
827
|
|
|
828
828
|
Transition.contextType = TransitionGroupContext;
|
|
829
829
|
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1099,7 +1099,7 @@ var defaultProps = {
|
|
|
1099
1099
|
appear: false,
|
|
1100
1100
|
getDimensionValue: getDefaultDimensionValue
|
|
1101
1101
|
};
|
|
1102
|
-
var Collapse =
|
|
1102
|
+
var Collapse = React.forwardRef(function (_ref, ref) {
|
|
1103
1103
|
var onEnter = _ref.onEnter,
|
|
1104
1104
|
onEntering = _ref.onEntering,
|
|
1105
1105
|
onEntered = _ref.onEntered,
|
|
@@ -1111,7 +1111,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1111
1111
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1112
1112
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1113
1113
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1114
|
-
props = _objectWithoutPropertiesLoose
|
|
1114
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1115
1115
|
|
|
1116
1116
|
/* Compute dimension */
|
|
1117
1117
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1146,8 +1146,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1146
1146
|
elem.style[computedDimension] = null;
|
|
1147
1147
|
}, onExiting);
|
|
1148
1148
|
}, [computedDimension, onExiting]);
|
|
1149
|
-
return /*#__PURE__*/
|
|
1150
|
-
, _extends
|
|
1149
|
+
return /*#__PURE__*/React.createElement(Transition // @ts-ignore
|
|
1150
|
+
, _extends({
|
|
1151
1151
|
ref: ref,
|
|
1152
1152
|
addEndListener: transitionEnd
|
|
1153
1153
|
}, props, {
|
|
@@ -1158,7 +1158,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1158
1158
|
onExit: handleExit,
|
|
1159
1159
|
onExiting: handleExiting
|
|
1160
1160
|
}), function (state, innerProps) {
|
|
1161
|
-
return
|
|
1161
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1162
1162
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1163
1163
|
}));
|
|
1164
1164
|
});
|
|
@@ -1167,24 +1167,24 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1167
1167
|
// @ts-ignore
|
|
1168
1168
|
Collapse.defaultProps = defaultProps;
|
|
1169
1169
|
|
|
1170
|
-
var AccordionCollapse =
|
|
1170
|
+
var AccordionCollapse = React.forwardRef(function (_ref, ref) {
|
|
1171
1171
|
var children = _ref.children,
|
|
1172
1172
|
eventKey = _ref.eventKey,
|
|
1173
|
-
props = _objectWithoutPropertiesLoose
|
|
1173
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1174
1174
|
|
|
1175
1175
|
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1176
1176
|
// from collapsing the accordion when clicked.
|
|
1177
1177
|
|
|
1178
|
-
return /*#__PURE__*/
|
|
1178
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1179
1179
|
value: null
|
|
1180
|
-
}, /*#__PURE__*/
|
|
1180
|
+
}, /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
1181
1181
|
ref: ref,
|
|
1182
1182
|
in: contextEventKey === eventKey
|
|
1183
|
-
}, props), /*#__PURE__*/
|
|
1183
|
+
}, props), /*#__PURE__*/React.createElement("div", null, React.Children.only(children))));
|
|
1184
1184
|
});
|
|
1185
1185
|
AccordionCollapse.displayName = 'AccordionCollapse';
|
|
1186
1186
|
|
|
1187
|
-
var Accordion =
|
|
1187
|
+
var Accordion = React.forwardRef(function (props, ref) {
|
|
1188
1188
|
var _useUncontrolled = useUncontrolled(props, {
|
|
1189
1189
|
activeKey: 'onSelect'
|
|
1190
1190
|
}),
|
|
@@ -1195,14 +1195,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1195
1195
|
children = _useUncontrolled.children,
|
|
1196
1196
|
className = _useUncontrolled.className,
|
|
1197
1197
|
onSelect = _useUncontrolled.onSelect,
|
|
1198
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1198
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1199
1199
|
|
|
1200
1200
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1201
|
-
return /*#__PURE__*/
|
|
1201
|
+
return /*#__PURE__*/React.createElement(context.Provider, {
|
|
1202
1202
|
value: activeKey || null
|
|
1203
|
-
}, /*#__PURE__*/
|
|
1203
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
1204
1204
|
value: onSelect || null
|
|
1205
|
-
}, /*#__PURE__*/
|
|
1205
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1206
1206
|
ref: ref
|
|
1207
1207
|
}, controlledProps, {
|
|
1208
1208
|
className: finalClassName
|
|
@@ -1246,22 +1246,22 @@ var defaultProps$1 = {
|
|
|
1246
1246
|
appear: false
|
|
1247
1247
|
};
|
|
1248
1248
|
var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[ENTERED] = 'show', _fadeStyles);
|
|
1249
|
-
var Fade =
|
|
1249
|
+
var Fade = React.forwardRef(function (_ref, ref) {
|
|
1250
1250
|
var className = _ref.className,
|
|
1251
1251
|
children = _ref.children,
|
|
1252
|
-
props = _objectWithoutPropertiesLoose
|
|
1252
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1253
1253
|
|
|
1254
1254
|
var handleEnter = useCallback(function (node) {
|
|
1255
1255
|
triggerBrowserReflow(node);
|
|
1256
1256
|
if (props.onEnter) props.onEnter(node);
|
|
1257
1257
|
}, [props]);
|
|
1258
|
-
return /*#__PURE__*/
|
|
1258
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1259
1259
|
ref: ref,
|
|
1260
1260
|
addEndListener: transitionEnd
|
|
1261
1261
|
}, props, {
|
|
1262
1262
|
onEnter: handleEnter
|
|
1263
1263
|
}), function (status, innerProps) {
|
|
1264
|
-
return
|
|
1264
|
+
return React.cloneElement(children, _extends({}, innerProps, {
|
|
1265
1265
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1266
1266
|
}));
|
|
1267
1267
|
});
|
|
@@ -1276,20 +1276,20 @@ var propTypes = {
|
|
|
1276
1276
|
var defaultProps$2 = {
|
|
1277
1277
|
label: 'Close'
|
|
1278
1278
|
};
|
|
1279
|
-
var CloseButton =
|
|
1279
|
+
var CloseButton = React.forwardRef(function (_ref, ref) {
|
|
1280
1280
|
var label = _ref.label,
|
|
1281
1281
|
onClick = _ref.onClick,
|
|
1282
1282
|
className = _ref.className,
|
|
1283
|
-
props = _objectWithoutPropertiesLoose
|
|
1283
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1284
1284
|
|
|
1285
|
-
return /*#__PURE__*/
|
|
1285
|
+
return /*#__PURE__*/React.createElement("button", _extends({
|
|
1286
1286
|
ref: ref,
|
|
1287
1287
|
type: "button",
|
|
1288
1288
|
className: classnames('close', className),
|
|
1289
1289
|
onClick: onClick
|
|
1290
|
-
}, props), /*#__PURE__*/
|
|
1290
|
+
}, props), /*#__PURE__*/React.createElement("span", {
|
|
1291
1291
|
"aria-hidden": "true"
|
|
1292
|
-
}, "\xD7"), /*#__PURE__*/
|
|
1292
|
+
}, "\xD7"), /*#__PURE__*/React.createElement("span", {
|
|
1293
1293
|
className: "sr-only"
|
|
1294
1294
|
}, label));
|
|
1295
1295
|
});
|
|
@@ -1298,8 +1298,8 @@ CloseButton.propTypes = propTypes;
|
|
|
1298
1298
|
CloseButton.defaultProps = defaultProps$2;
|
|
1299
1299
|
|
|
1300
1300
|
var divWithClassName = (function (className) {
|
|
1301
|
-
return
|
|
1302
|
-
return /*#__PURE__*/
|
|
1301
|
+
return React.forwardRef(function (p, ref) {
|
|
1302
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, p, {
|
|
1303
1303
|
ref: ref,
|
|
1304
1304
|
className: classnames(p.className, className)
|
|
1305
1305
|
}));
|
|
@@ -1325,15 +1325,15 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1325
1325
|
Component = _ref.Component,
|
|
1326
1326
|
defaultProps = _ref.defaultProps;
|
|
1327
1327
|
|
|
1328
|
-
var BsComponent =
|
|
1328
|
+
var BsComponent = React.forwardRef(function (_ref2, ref) {
|
|
1329
1329
|
var className = _ref2.className,
|
|
1330
1330
|
bsPrefix = _ref2.bsPrefix,
|
|
1331
1331
|
_ref2$as = _ref2.as,
|
|
1332
1332
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1333
|
-
props = _objectWithoutPropertiesLoose
|
|
1333
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1334
1334
|
|
|
1335
1335
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1336
|
-
return /*#__PURE__*/
|
|
1336
|
+
return /*#__PURE__*/React.createElement(Tag, _extends({
|
|
1337
1337
|
ref: ref,
|
|
1338
1338
|
className: classnames(className, resolvedPrefix)
|
|
1339
1339
|
}, props));
|
|
@@ -1355,12 +1355,12 @@ function isTrivialHref(href) {
|
|
|
1355
1355
|
*/
|
|
1356
1356
|
|
|
1357
1357
|
|
|
1358
|
-
var SafeAnchor =
|
|
1358
|
+
var SafeAnchor = React.forwardRef(function (_ref, ref) {
|
|
1359
1359
|
var _ref$as = _ref.as,
|
|
1360
1360
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1361
1361
|
disabled = _ref.disabled,
|
|
1362
1362
|
onKeyDown = _ref.onKeyDown,
|
|
1363
|
-
props = _objectWithoutPropertiesLoose
|
|
1363
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1364
1364
|
|
|
1365
1365
|
var handleClick = function handleClick(event) {
|
|
1366
1366
|
var href = props.href,
|
|
@@ -1399,7 +1399,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1399
1399
|
props['aria-disabled'] = true;
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
return /*#__PURE__*/
|
|
1402
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1403
1403
|
ref: ref
|
|
1404
1404
|
}, props, {
|
|
1405
1405
|
onClick: handleClick,
|
|
@@ -1421,7 +1421,7 @@ var defaultProps$3 = {
|
|
|
1421
1421
|
transition: Fade,
|
|
1422
1422
|
closeLabel: 'Close alert'
|
|
1423
1423
|
};
|
|
1424
|
-
var Alert =
|
|
1424
|
+
var Alert = React.forwardRef(function (uncontrolledProps, ref) {
|
|
1425
1425
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
1426
1426
|
show: 'onClose'
|
|
1427
1427
|
}),
|
|
@@ -1434,7 +1434,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1434
1434
|
onClose = _useUncontrolled.onClose,
|
|
1435
1435
|
dismissible = _useUncontrolled.dismissible,
|
|
1436
1436
|
transition = _useUncontrolled.transition,
|
|
1437
|
-
props = _objectWithoutPropertiesLoose
|
|
1437
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1438
1438
|
|
|
1439
1439
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1440
1440
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1443,17 +1443,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
});
|
|
1445
1445
|
var Transition = transition === true ? Fade : transition;
|
|
1446
|
-
var alert = /*#__PURE__*/
|
|
1446
|
+
var alert = /*#__PURE__*/React.createElement("div", _extends({
|
|
1447
1447
|
role: "alert"
|
|
1448
1448
|
}, Transition ? props : undefined, {
|
|
1449
1449
|
ref: ref,
|
|
1450
1450
|
className: classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1451
|
-
}), dismissible && /*#__PURE__*/
|
|
1451
|
+
}), dismissible && /*#__PURE__*/React.createElement(CloseButton, {
|
|
1452
1452
|
onClick: handleClose,
|
|
1453
1453
|
label: closeLabel
|
|
1454
1454
|
}), children);
|
|
1455
1455
|
if (!Transition) return show ? alert : null;
|
|
1456
|
-
return /*#__PURE__*/
|
|
1456
|
+
return /*#__PURE__*/React.createElement(Transition, _extends({
|
|
1457
1457
|
unmountOnExit: true
|
|
1458
1458
|
}, props, {
|
|
1459
1459
|
ref: undefined,
|
|
@@ -1468,17 +1468,17 @@ Alert.Heading = AlertHeading;
|
|
|
1468
1468
|
var defaultProps$4 = {
|
|
1469
1469
|
pill: false
|
|
1470
1470
|
};
|
|
1471
|
-
var Badge =
|
|
1471
|
+
var Badge = React.forwardRef(function (_ref, ref) {
|
|
1472
1472
|
var bsPrefix = _ref.bsPrefix,
|
|
1473
1473
|
variant = _ref.variant,
|
|
1474
1474
|
pill = _ref.pill,
|
|
1475
1475
|
className = _ref.className,
|
|
1476
1476
|
_ref$as = _ref.as,
|
|
1477
1477
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1478
|
-
props = _objectWithoutPropertiesLoose
|
|
1478
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1479
1479
|
|
|
1480
1480
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1481
|
-
return /*#__PURE__*/
|
|
1481
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1482
1482
|
ref: ref
|
|
1483
1483
|
}, props, {
|
|
1484
1484
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1491,7 +1491,7 @@ var defaultProps$5 = {
|
|
|
1491
1491
|
active: false,
|
|
1492
1492
|
linkProps: {}
|
|
1493
1493
|
};
|
|
1494
|
-
var BreadcrumbItem =
|
|
1494
|
+
var BreadcrumbItem = React.forwardRef(function (_ref, ref) {
|
|
1495
1495
|
var bsPrefix = _ref.bsPrefix,
|
|
1496
1496
|
active = _ref.active,
|
|
1497
1497
|
children = _ref.children,
|
|
@@ -1504,17 +1504,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1504
1504
|
href = _ref.href,
|
|
1505
1505
|
title = _ref.title,
|
|
1506
1506
|
target = _ref.target,
|
|
1507
|
-
props = _objectWithoutPropertiesLoose
|
|
1507
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1508
1508
|
|
|
1509
1509
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1510
|
-
return /*#__PURE__*/
|
|
1510
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1511
1511
|
ref: ref
|
|
1512
1512
|
}, props, {
|
|
1513
1513
|
className: classnames(prefix, className, {
|
|
1514
1514
|
active: active
|
|
1515
1515
|
}),
|
|
1516
1516
|
"aria-current": active ? 'page' : undefined
|
|
1517
|
-
}), active ? children : /*#__PURE__*/
|
|
1517
|
+
}), active ? children : /*#__PURE__*/React.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1518
1518
|
href: href,
|
|
1519
1519
|
title: title,
|
|
1520
1520
|
target: target
|
|
@@ -1527,7 +1527,7 @@ var defaultProps$6 = {
|
|
|
1527
1527
|
label: 'breadcrumb',
|
|
1528
1528
|
listProps: {}
|
|
1529
1529
|
};
|
|
1530
|
-
var Breadcrumb =
|
|
1530
|
+
var Breadcrumb = React.forwardRef(function (_ref, ref) {
|
|
1531
1531
|
var bsPrefix = _ref.bsPrefix,
|
|
1532
1532
|
className = _ref.className,
|
|
1533
1533
|
listProps = _ref.listProps,
|
|
@@ -1535,14 +1535,14 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1535
1535
|
label = _ref.label,
|
|
1536
1536
|
_ref$as = _ref.as,
|
|
1537
1537
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1538
|
-
props = _objectWithoutPropertiesLoose
|
|
1538
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1539
1539
|
|
|
1540
1540
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1541
|
-
return /*#__PURE__*/
|
|
1541
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1542
1542
|
"aria-label": label,
|
|
1543
1543
|
className: className,
|
|
1544
1544
|
ref: ref
|
|
1545
|
-
}, props), /*#__PURE__*/
|
|
1545
|
+
}, props), /*#__PURE__*/React.createElement("ol", _extends({}, listProps, {
|
|
1546
1546
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1547
1547
|
}), children));
|
|
1548
1548
|
});
|
|
@@ -1555,7 +1555,7 @@ var defaultProps$7 = {
|
|
|
1555
1555
|
active: false,
|
|
1556
1556
|
disabled: false
|
|
1557
1557
|
};
|
|
1558
|
-
var Button =
|
|
1558
|
+
var Button = React.forwardRef(function (_ref, ref) {
|
|
1559
1559
|
var bsPrefix = _ref.bsPrefix,
|
|
1560
1560
|
variant = _ref.variant,
|
|
1561
1561
|
size = _ref.size,
|
|
@@ -1564,13 +1564,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1564
1564
|
block = _ref.block,
|
|
1565
1565
|
type = _ref.type,
|
|
1566
1566
|
as = _ref.as,
|
|
1567
|
-
props = _objectWithoutPropertiesLoose
|
|
1567
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1568
1568
|
|
|
1569
1569
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1570
1570
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1571
1571
|
|
|
1572
1572
|
if (props.href) {
|
|
1573
|
-
return /*#__PURE__*/
|
|
1573
|
+
return /*#__PURE__*/React.createElement(SafeAnchor, _extends({}, props, {
|
|
1574
1574
|
as: as,
|
|
1575
1575
|
ref: ref,
|
|
1576
1576
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1588,7 +1588,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
var Component = as || 'button';
|
|
1591
|
-
return /*#__PURE__*/
|
|
1591
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
1592
1592
|
className: classes
|
|
1593
1593
|
}));
|
|
1594
1594
|
});
|
|
@@ -1600,7 +1600,7 @@ var defaultProps$8 = {
|
|
|
1600
1600
|
toggle: false,
|
|
1601
1601
|
role: 'group'
|
|
1602
1602
|
};
|
|
1603
|
-
var ButtonGroup =
|
|
1603
|
+
var ButtonGroup = React.forwardRef(function (_ref, ref) {
|
|
1604
1604
|
var bsPrefix = _ref.bsPrefix,
|
|
1605
1605
|
size = _ref.size,
|
|
1606
1606
|
toggle = _ref.toggle,
|
|
@@ -1608,12 +1608,12 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1608
1608
|
className = _ref.className,
|
|
1609
1609
|
_ref$as = _ref.as,
|
|
1610
1610
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1611
|
-
rest = _objectWithoutPropertiesLoose
|
|
1611
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1612
1612
|
|
|
1613
1613
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1614
1614
|
var baseClass = prefix;
|
|
1615
1615
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1616
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
1617
1617
|
ref: ref,
|
|
1618
1618
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1619
1619
|
}));
|
|
@@ -1624,13 +1624,13 @@ ButtonGroup.defaultProps = defaultProps$8;
|
|
|
1624
1624
|
var defaultProps$9 = {
|
|
1625
1625
|
role: 'toolbar'
|
|
1626
1626
|
};
|
|
1627
|
-
var ButtonToolbar =
|
|
1627
|
+
var ButtonToolbar = React.forwardRef(function (_ref, ref) {
|
|
1628
1628
|
var bsPrefix = _ref.bsPrefix,
|
|
1629
1629
|
className = _ref.className,
|
|
1630
|
-
props = _objectWithoutPropertiesLoose
|
|
1630
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1631
1631
|
|
|
1632
1632
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1633
|
-
return /*#__PURE__*/
|
|
1633
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
1634
1634
|
ref: ref,
|
|
1635
1635
|
className: classnames(className, prefix)
|
|
1636
1636
|
}));
|
|
@@ -1638,23 +1638,23 @@ var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
|
1638
1638
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1639
1639
|
ButtonToolbar.defaultProps = defaultProps$9;
|
|
1640
1640
|
|
|
1641
|
-
var context$1 =
|
|
1641
|
+
var context$1 = React.createContext(null);
|
|
1642
1642
|
context$1.displayName = 'CardContext';
|
|
1643
1643
|
|
|
1644
1644
|
var defaultProps$a = {
|
|
1645
1645
|
variant: null
|
|
1646
1646
|
};
|
|
1647
|
-
var CardImg =
|
|
1647
|
+
var CardImg = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
1648
1648
|
function (_ref, ref) {
|
|
1649
1649
|
var bsPrefix = _ref.bsPrefix,
|
|
1650
1650
|
className = _ref.className,
|
|
1651
1651
|
variant = _ref.variant,
|
|
1652
1652
|
_ref$as = _ref.as,
|
|
1653
1653
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1654
|
-
props = _objectWithoutPropertiesLoose
|
|
1654
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1655
1655
|
|
|
1656
1656
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1657
|
-
return /*#__PURE__*/
|
|
1657
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1658
1658
|
ref: ref,
|
|
1659
1659
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1660
1660
|
}, props));
|
|
@@ -1683,7 +1683,7 @@ var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
|
1683
1683
|
var defaultProps$b = {
|
|
1684
1684
|
body: false
|
|
1685
1685
|
};
|
|
1686
|
-
var Card =
|
|
1686
|
+
var Card = React.forwardRef(function (_ref, ref) {
|
|
1687
1687
|
var bsPrefix = _ref.bsPrefix,
|
|
1688
1688
|
className = _ref.className,
|
|
1689
1689
|
bg = _ref.bg,
|
|
@@ -1693,7 +1693,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1693
1693
|
children = _ref.children,
|
|
1694
1694
|
_ref$as = _ref.as,
|
|
1695
1695
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1696
|
-
props = _objectWithoutPropertiesLoose
|
|
1696
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1697
1697
|
|
|
1698
1698
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1699
1699
|
var cardContext = useMemo(function () {
|
|
@@ -1701,16 +1701,16 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1701
1701
|
cardHeaderBsPrefix: prefix + "-header"
|
|
1702
1702
|
};
|
|
1703
1703
|
}, [prefix]);
|
|
1704
|
-
return /*#__PURE__*/
|
|
1704
|
+
return /*#__PURE__*/React.createElement(context$1.Provider, {
|
|
1705
1705
|
value: cardContext
|
|
1706
|
-
}, /*#__PURE__*/
|
|
1706
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
1707
1707
|
ref: ref
|
|
1708
1708
|
}, props, {
|
|
1709
1709
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1710
1710
|
}), body ?
|
|
1711
1711
|
/*#__PURE__*/
|
|
1712
1712
|
// @ts-ignore
|
|
1713
|
-
|
|
1713
|
+
React.createElement(CardBody, null, children) : children));
|
|
1714
1714
|
});
|
|
1715
1715
|
Card.displayName = 'Card';
|
|
1716
1716
|
Card.defaultProps = defaultProps$b;
|
|
@@ -1900,16 +1900,16 @@ function useTimeout() {
|
|
|
1900
1900
|
|
|
1901
1901
|
var CarouselCaption = createWithBsPrefix('carousel-caption');
|
|
1902
1902
|
|
|
1903
|
-
var CarouselItem =
|
|
1903
|
+
var CarouselItem = React.forwardRef(function (_ref, ref) {
|
|
1904
1904
|
var _ref$as = _ref.as,
|
|
1905
1905
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1906
1906
|
bsPrefix = _ref.bsPrefix,
|
|
1907
1907
|
children = _ref.children,
|
|
1908
1908
|
className = _ref.className,
|
|
1909
|
-
props = _objectWithoutPropertiesLoose
|
|
1909
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1910
1910
|
|
|
1911
1911
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1912
|
-
return /*#__PURE__*/
|
|
1912
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
1913
1913
|
ref: ref
|
|
1914
1914
|
}, props, {
|
|
1915
1915
|
className: finalClassName
|
|
@@ -1928,8 +1928,8 @@ CarouselItem.displayName = 'CarouselItem';
|
|
|
1928
1928
|
|
|
1929
1929
|
function map(children, func) {
|
|
1930
1930
|
var index = 0;
|
|
1931
|
-
return
|
|
1932
|
-
return
|
|
1931
|
+
return React.Children.map(children, function (child) {
|
|
1932
|
+
return React.isValidElement(child) ? func(child, index++) : child;
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
1935
1935
|
/**
|
|
@@ -1942,8 +1942,8 @@ function map(children, func) {
|
|
|
1942
1942
|
|
|
1943
1943
|
function forEach(children, func) {
|
|
1944
1944
|
var index = 0;
|
|
1945
|
-
|
|
1946
|
-
if (
|
|
1945
|
+
React.Children.forEach(children, function (child) {
|
|
1946
|
+
if (React.isValidElement(child)) func(child, index++);
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
@@ -2061,12 +2061,12 @@ var defaultProps$c = {
|
|
|
2061
2061
|
pause: 'hover',
|
|
2062
2062
|
wrap: true,
|
|
2063
2063
|
touch: true,
|
|
2064
|
-
prevIcon: /*#__PURE__*/
|
|
2064
|
+
prevIcon: /*#__PURE__*/React.createElement("span", {
|
|
2065
2065
|
"aria-hidden": "true",
|
|
2066
2066
|
className: "carousel-control-prev-icon"
|
|
2067
2067
|
}),
|
|
2068
2068
|
prevLabel: 'Previous',
|
|
2069
|
-
nextIcon: /*#__PURE__*/
|
|
2069
|
+
nextIcon: /*#__PURE__*/React.createElement("span", {
|
|
2070
2070
|
"aria-hidden": "true",
|
|
2071
2071
|
className: "carousel-control-next-icon"
|
|
2072
2072
|
}),
|
|
@@ -2114,7 +2114,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2114
2114
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2115
2115
|
className = _useUncontrolled.className,
|
|
2116
2116
|
children = _useUncontrolled.children,
|
|
2117
|
-
props = _objectWithoutPropertiesLoose
|
|
2117
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2118
2118
|
|
|
2119
2119
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2120
2120
|
var nextDirectionRef = useRef(null);
|
|
@@ -2371,7 +2371,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2371
2371
|
};
|
|
2372
2372
|
});
|
|
2373
2373
|
}, [indicators, numChildren, onSelect]);
|
|
2374
|
-
return /*#__PURE__*/
|
|
2374
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
2375
2375
|
ref: elementRef
|
|
2376
2376
|
}, props, {
|
|
2377
2377
|
onKeyDown: handleKeyDown,
|
|
@@ -2381,44 +2381,44 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2381
2381
|
onTouchMove: handleTouchMove,
|
|
2382
2382
|
onTouchEnd: handleTouchEnd,
|
|
2383
2383
|
className: classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2384
|
-
}), indicators && /*#__PURE__*/
|
|
2384
|
+
}), indicators && /*#__PURE__*/React.createElement("ol", {
|
|
2385
2385
|
className: prefix + "-indicators"
|
|
2386
2386
|
}, map(children, function (_child, index) {
|
|
2387
|
-
return /*#__PURE__*/
|
|
2387
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
2388
2388
|
key: index,
|
|
2389
2389
|
className: index === renderedActiveIndex ? 'active' : undefined,
|
|
2390
2390
|
onClick: indicatorOnClicks ? indicatorOnClicks[index] : undefined
|
|
2391
2391
|
});
|
|
2392
|
-
})), /*#__PURE__*/
|
|
2392
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2393
2393
|
className: prefix + "-inner"
|
|
2394
2394
|
}, map(children, function (child, index) {
|
|
2395
2395
|
var isActive = index === renderedActiveIndex;
|
|
2396
|
-
return slide ? /*#__PURE__*/
|
|
2396
|
+
return slide ? /*#__PURE__*/React.createElement(Transition, {
|
|
2397
2397
|
in: isActive,
|
|
2398
2398
|
onEnter: isActive ? handleEnter : undefined,
|
|
2399
2399
|
onEntered: isActive ? handleEntered : undefined,
|
|
2400
2400
|
addEndListener: transitionEnd
|
|
2401
2401
|
}, function (status) {
|
|
2402
|
-
return
|
|
2402
|
+
return React.cloneElement(child, {
|
|
2403
2403
|
className: classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2404
2404
|
});
|
|
2405
|
-
}) :
|
|
2405
|
+
}) : React.cloneElement(child, {
|
|
2406
2406
|
className: classnames(child.props.className, isActive && 'active')
|
|
2407
2407
|
});
|
|
2408
|
-
})), controls && /*#__PURE__*/
|
|
2408
|
+
})), controls && /*#__PURE__*/React.createElement(React.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2409
2409
|
className: prefix + "-control-prev",
|
|
2410
2410
|
onClick: prev
|
|
2411
|
-
}, prevIcon, prevLabel && /*#__PURE__*/
|
|
2411
|
+
}, prevIcon, prevLabel && /*#__PURE__*/React.createElement("span", {
|
|
2412
2412
|
className: "sr-only"
|
|
2413
|
-
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/
|
|
2413
|
+
}, prevLabel)), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/React.createElement(SafeAnchor, {
|
|
2414
2414
|
className: prefix + "-control-next",
|
|
2415
2415
|
onClick: next
|
|
2416
|
-
}, nextIcon, nextLabel && /*#__PURE__*/
|
|
2416
|
+
}, nextIcon, nextLabel && /*#__PURE__*/React.createElement("span", {
|
|
2417
2417
|
className: "sr-only"
|
|
2418
2418
|
}, nextLabel))));
|
|
2419
2419
|
}
|
|
2420
2420
|
|
|
2421
|
-
var Carousel =
|
|
2421
|
+
var Carousel = React.forwardRef(CarouselFunc);
|
|
2422
2422
|
Carousel.displayName = 'Carousel';
|
|
2423
2423
|
Carousel.propTypes = propTypes$1;
|
|
2424
2424
|
Carousel.defaultProps = defaultProps$c;
|
|
@@ -2426,13 +2426,13 @@ Carousel.Caption = CarouselCaption;
|
|
|
2426
2426
|
Carousel.Item = CarouselItem;
|
|
2427
2427
|
|
|
2428
2428
|
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2429
|
-
var Col =
|
|
2429
|
+
var Col = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
2430
2430
|
function (_ref, ref) {
|
|
2431
2431
|
var bsPrefix = _ref.bsPrefix,
|
|
2432
2432
|
className = _ref.className,
|
|
2433
2433
|
_ref$as = _ref.as,
|
|
2434
2434
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2435
|
-
props = _objectWithoutPropertiesLoose
|
|
2435
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2436
2436
|
|
|
2437
2437
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2438
2438
|
var spans = [];
|
|
@@ -2463,7 +2463,7 @@ function (_ref, ref) {
|
|
|
2463
2463
|
spans.push(prefix); // plain 'col'
|
|
2464
2464
|
}
|
|
2465
2465
|
|
|
2466
|
-
return /*#__PURE__*/
|
|
2466
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
2467
2467
|
ref: ref,
|
|
2468
2468
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2469
2469
|
}));
|
|
@@ -2572,40 +2572,7 @@ function useForceUpdate() {
|
|
|
2572
2572
|
return dispatch;
|
|
2573
2573
|
}
|
|
2574
2574
|
|
|
2575
|
-
var DropdownContext = /*#__PURE__*/
|
|
2576
|
-
|
|
2577
|
-
function _extends() {
|
|
2578
|
-
_extends = Object.assign || function (target) {
|
|
2579
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
2580
|
-
var source = arguments[i];
|
|
2581
|
-
|
|
2582
|
-
for (var key in source) {
|
|
2583
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2584
|
-
target[key] = source[key];
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
return target;
|
|
2590
|
-
};
|
|
2591
|
-
|
|
2592
|
-
return _extends.apply(this, arguments);
|
|
2593
|
-
}
|
|
2594
|
-
|
|
2595
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2596
|
-
if (source == null) return {};
|
|
2597
|
-
var target = {};
|
|
2598
|
-
var sourceKeys = Object.keys(source);
|
|
2599
|
-
var key, i;
|
|
2600
|
-
|
|
2601
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
2602
|
-
key = sourceKeys[i];
|
|
2603
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
2604
|
-
target[key] = source[key];
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
|
-
return target;
|
|
2608
|
-
}
|
|
2575
|
+
var DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
2609
2576
|
|
|
2610
2577
|
function useSafeState(state) {
|
|
2611
2578
|
var isMounted = useMounted();
|
|
@@ -2651,21 +2618,50 @@ function getBasePlacement(placement) {
|
|
|
2651
2618
|
return placement.split('-')[0];
|
|
2652
2619
|
}
|
|
2653
2620
|
|
|
2654
|
-
|
|
2621
|
+
function getBoundingClientRect(element) {
|
|
2622
|
+
var rect = element.getBoundingClientRect();
|
|
2623
|
+
return {
|
|
2624
|
+
width: rect.width,
|
|
2625
|
+
height: rect.height,
|
|
2626
|
+
top: rect.top,
|
|
2627
|
+
right: rect.right,
|
|
2628
|
+
bottom: rect.bottom,
|
|
2629
|
+
left: rect.left,
|
|
2630
|
+
x: rect.left,
|
|
2631
|
+
y: rect.top
|
|
2632
|
+
};
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2655
2635
|
// means it doesn't take into account transforms.
|
|
2636
|
+
|
|
2656
2637
|
function getLayoutRect(element) {
|
|
2638
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2639
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2640
|
+
|
|
2641
|
+
var width = element.offsetWidth;
|
|
2642
|
+
var height = element.offsetHeight;
|
|
2643
|
+
|
|
2644
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2645
|
+
width = clientRect.width;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2649
|
+
height = clientRect.height;
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2657
2652
|
return {
|
|
2658
2653
|
x: element.offsetLeft,
|
|
2659
2654
|
y: element.offsetTop,
|
|
2660
|
-
width:
|
|
2661
|
-
height:
|
|
2655
|
+
width: width,
|
|
2656
|
+
height: height
|
|
2662
2657
|
};
|
|
2663
2658
|
}
|
|
2664
2659
|
|
|
2665
|
-
/*:: import type { Window } from '../types'; */
|
|
2666
|
-
|
|
2667
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2668
2660
|
function getWindow(node) {
|
|
2661
|
+
if (node == null) {
|
|
2662
|
+
return window;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2669
2665
|
if (node.toString() !== '[object Window]') {
|
|
2670
2666
|
var ownerDocument = node.ownerDocument;
|
|
2671
2667
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2674,26 +2670,22 @@ function getWindow(node) {
|
|
|
2674
2670
|
return node;
|
|
2675
2671
|
}
|
|
2676
2672
|
|
|
2677
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2678
|
-
Element); */
|
|
2679
|
-
|
|
2680
2673
|
function isElement(node) {
|
|
2681
2674
|
var OwnElement = getWindow(node).Element;
|
|
2682
2675
|
return node instanceof OwnElement || node instanceof Element;
|
|
2683
2676
|
}
|
|
2684
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2685
|
-
HTMLElement); */
|
|
2686
|
-
|
|
2687
2677
|
|
|
2688
2678
|
function isHTMLElement(node) {
|
|
2689
2679
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2690
2680
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2691
2681
|
}
|
|
2692
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2693
|
-
ShadowRoot); */
|
|
2694
|
-
|
|
2695
2682
|
|
|
2696
2683
|
function isShadowRoot(node) {
|
|
2684
|
+
// IE 11 has no ShadowRoot
|
|
2685
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
+
return false;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2697
2689
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2698
2690
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2699
2691
|
}
|
|
@@ -2748,9 +2740,8 @@ function getParentNode(element) {
|
|
|
2748
2740
|
// $FlowFixMe[incompatible-return]
|
|
2749
2741
|
// $FlowFixMe[prop-missing]
|
|
2750
2742
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2751
|
-
element.parentNode || // DOM Element detected
|
|
2752
|
-
|
|
2753
|
-
element.host || // ShadowRoot detected
|
|
2743
|
+
element.parentNode || ( // DOM Element detected
|
|
2744
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2754
2745
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2755
2746
|
getDocumentElement(element) // fallback
|
|
2756
2747
|
|
|
@@ -2763,29 +2754,21 @@ function getTrueOffsetParent(element) {
|
|
|
2763
2754
|
return null;
|
|
2764
2755
|
}
|
|
2765
2756
|
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
if (offsetParent) {
|
|
2769
|
-
var html = getDocumentElement(offsetParent);
|
|
2770
|
-
|
|
2771
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2772
|
-
return html;
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
|
|
2776
|
-
return offsetParent;
|
|
2757
|
+
return element.offsetParent;
|
|
2777
2758
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2778
2759
|
// return the containing block
|
|
2779
2760
|
|
|
2780
2761
|
|
|
2781
2762
|
function getContainingBlock(element) {
|
|
2763
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2782
2764
|
var currentNode = getParentNode(element);
|
|
2783
2765
|
|
|
2784
2766
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2785
2767
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2786
2768
|
// create a containing block.
|
|
2769
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2787
2770
|
|
|
2788
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2771
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2789
2772
|
return currentNode;
|
|
2790
2773
|
} else {
|
|
2791
2774
|
currentNode = currentNode.parentNode;
|
|
@@ -2805,7 +2788,7 @@ function getOffsetParent(element) {
|
|
|
2805
2788
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2806
2789
|
}
|
|
2807
2790
|
|
|
2808
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2791
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static')) {
|
|
2809
2792
|
return window;
|
|
2810
2793
|
}
|
|
2811
2794
|
|
|
@@ -2816,8 +2799,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2816
2799
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2817
2800
|
}
|
|
2818
2801
|
|
|
2819
|
-
|
|
2820
|
-
|
|
2802
|
+
var max = Math.max;
|
|
2803
|
+
var min = Math.min;
|
|
2804
|
+
var round = Math.round;
|
|
2805
|
+
|
|
2806
|
+
function within(min$1, value, max$1) {
|
|
2807
|
+
return max(min$1, min(value, max$1));
|
|
2821
2808
|
}
|
|
2822
2809
|
|
|
2823
2810
|
function getFreshSideObject() {
|
|
@@ -2830,7 +2817,7 @@ function getFreshSideObject() {
|
|
|
2830
2817
|
}
|
|
2831
2818
|
|
|
2832
2819
|
function mergePaddingObject(paddingObject) {
|
|
2833
|
-
return Object.assign(
|
|
2820
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2834
2821
|
}
|
|
2835
2822
|
|
|
2836
2823
|
function expandToHashMap(value, keys) {
|
|
@@ -2840,11 +2827,19 @@ function expandToHashMap(value, keys) {
|
|
|
2840
2827
|
}, {});
|
|
2841
2828
|
}
|
|
2842
2829
|
|
|
2830
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2831
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2832
|
+
placement: state.placement
|
|
2833
|
+
})) : padding;
|
|
2834
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2843
2837
|
function arrow(_ref) {
|
|
2844
2838
|
var _state$modifiersData$;
|
|
2845
2839
|
|
|
2846
2840
|
var state = _ref.state,
|
|
2847
|
-
name = _ref.name
|
|
2841
|
+
name = _ref.name,
|
|
2842
|
+
options = _ref.options;
|
|
2848
2843
|
var arrowElement = state.elements.arrow;
|
|
2849
2844
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2850
2845
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2856,7 +2851,7 @@ function arrow(_ref) {
|
|
|
2856
2851
|
return;
|
|
2857
2852
|
}
|
|
2858
2853
|
|
|
2859
|
-
var paddingObject =
|
|
2854
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2860
2855
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2861
2856
|
var minProp = axis === 'y' ? top : left;
|
|
2862
2857
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2878,12 +2873,9 @@ function arrow(_ref) {
|
|
|
2878
2873
|
|
|
2879
2874
|
function effect(_ref2) {
|
|
2880
2875
|
var state = _ref2.state,
|
|
2881
|
-
options = _ref2.options
|
|
2882
|
-
name = _ref2.name;
|
|
2876
|
+
options = _ref2.options;
|
|
2883
2877
|
var _options$element = options.element,
|
|
2884
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2885
|
-
_options$padding = options.padding,
|
|
2886
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2878
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2887
2879
|
|
|
2888
2880
|
if (arrowElement == null) {
|
|
2889
2881
|
return;
|
|
@@ -2913,9 +2905,6 @@ function effect(_ref2) {
|
|
|
2913
2905
|
}
|
|
2914
2906
|
|
|
2915
2907
|
state.elements.arrow = arrowElement;
|
|
2916
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2917
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2918
|
-
};
|
|
2919
2908
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2920
2909
|
|
|
2921
2910
|
|
|
@@ -2944,8 +2933,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2944
2933
|
var win = window;
|
|
2945
2934
|
var dpr = win.devicePixelRatio || 1;
|
|
2946
2935
|
return {
|
|
2947
|
-
x:
|
|
2948
|
-
y:
|
|
2936
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
2937
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2949
2938
|
};
|
|
2950
2939
|
}
|
|
2951
2940
|
|
|
@@ -2961,7 +2950,7 @@ function mapToStyles(_ref2) {
|
|
|
2961
2950
|
adaptive = _ref2.adaptive,
|
|
2962
2951
|
roundOffsets = _ref2.roundOffsets;
|
|
2963
2952
|
|
|
2964
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
2953
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2965
2954
|
_ref3$x = _ref3.x,
|
|
2966
2955
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2967
2956
|
_ref3$y = _ref3.y,
|
|
@@ -2975,23 +2964,32 @@ function mapToStyles(_ref2) {
|
|
|
2975
2964
|
|
|
2976
2965
|
if (adaptive) {
|
|
2977
2966
|
var offsetParent = getOffsetParent(popper);
|
|
2967
|
+
var heightProp = 'clientHeight';
|
|
2968
|
+
var widthProp = 'clientWidth';
|
|
2978
2969
|
|
|
2979
2970
|
if (offsetParent === getWindow(popper)) {
|
|
2980
2971
|
offsetParent = getDocumentElement(popper);
|
|
2972
|
+
|
|
2973
|
+
if (getComputedStyle$2(offsetParent).position !== 'static') {
|
|
2974
|
+
heightProp = 'scrollHeight';
|
|
2975
|
+
widthProp = 'scrollWidth';
|
|
2976
|
+
}
|
|
2981
2977
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2982
2978
|
|
|
2983
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2984
2979
|
|
|
2980
|
+
offsetParent = offsetParent;
|
|
2985
2981
|
|
|
2986
2982
|
if (placement === top) {
|
|
2987
|
-
sideY = bottom;
|
|
2988
|
-
|
|
2983
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
2984
|
+
|
|
2985
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2989
2986
|
y *= gpuAcceleration ? 1 : -1;
|
|
2990
2987
|
}
|
|
2991
2988
|
|
|
2992
2989
|
if (placement === left) {
|
|
2993
|
-
sideX = right;
|
|
2994
|
-
|
|
2990
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
2991
|
+
|
|
2992
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2995
2993
|
x *= gpuAcceleration ? 1 : -1;
|
|
2996
2994
|
}
|
|
2997
2995
|
}
|
|
@@ -3003,10 +3001,10 @@ function mapToStyles(_ref2) {
|
|
|
3003
3001
|
if (gpuAcceleration) {
|
|
3004
3002
|
var _Object$assign;
|
|
3005
3003
|
|
|
3006
|
-
return Object.assign(
|
|
3004
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3007
3005
|
}
|
|
3008
3006
|
|
|
3009
|
-
return Object.assign(
|
|
3007
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3010
3008
|
}
|
|
3011
3009
|
|
|
3012
3010
|
function computeStyles(_ref4) {
|
|
@@ -3037,7 +3035,7 @@ function computeStyles(_ref4) {
|
|
|
3037
3035
|
};
|
|
3038
3036
|
|
|
3039
3037
|
if (state.modifiersData.popperOffsets != null) {
|
|
3040
|
-
state.styles.popper = Object.assign(
|
|
3038
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3041
3039
|
offsets: state.modifiersData.popperOffsets,
|
|
3042
3040
|
position: state.options.strategy,
|
|
3043
3041
|
adaptive: adaptive,
|
|
@@ -3046,7 +3044,7 @@ function computeStyles(_ref4) {
|
|
|
3046
3044
|
}
|
|
3047
3045
|
|
|
3048
3046
|
if (state.modifiersData.arrow != null) {
|
|
3049
|
-
state.styles.arrow = Object.assign(
|
|
3047
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3050
3048
|
offsets: state.modifiersData.arrow,
|
|
3051
3049
|
position: 'absolute',
|
|
3052
3050
|
adaptive: false,
|
|
@@ -3054,7 +3052,7 @@ function computeStyles(_ref4) {
|
|
|
3054
3052
|
})));
|
|
3055
3053
|
}
|
|
3056
3054
|
|
|
3057
|
-
state.attributes.popper = Object.assign(
|
|
3055
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3058
3056
|
'data-popper-placement': state.placement
|
|
3059
3057
|
});
|
|
3060
3058
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3138,20 +3136,6 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3138
3136
|
});
|
|
3139
3137
|
}
|
|
3140
3138
|
|
|
3141
|
-
function getBoundingClientRect(element) {
|
|
3142
|
-
var rect = element.getBoundingClientRect();
|
|
3143
|
-
return {
|
|
3144
|
-
width: rect.width,
|
|
3145
|
-
height: rect.height,
|
|
3146
|
-
top: rect.top,
|
|
3147
|
-
right: rect.right,
|
|
3148
|
-
bottom: rect.bottom,
|
|
3149
|
-
left: rect.left,
|
|
3150
|
-
x: rect.left,
|
|
3151
|
-
y: rect.top
|
|
3152
|
-
};
|
|
3153
|
-
}
|
|
3154
|
-
|
|
3155
3139
|
function getWindowScroll(node) {
|
|
3156
3140
|
var win = getWindow(node);
|
|
3157
3141
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3214,16 +3198,18 @@ function getViewportRect(element) {
|
|
|
3214
3198
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3215
3199
|
|
|
3216
3200
|
function getDocumentRect(element) {
|
|
3201
|
+
var _element$ownerDocumen;
|
|
3202
|
+
|
|
3217
3203
|
var html = getDocumentElement(element);
|
|
3218
3204
|
var winScroll = getWindowScroll(element);
|
|
3219
|
-
var body = element.ownerDocument.body;
|
|
3220
|
-
var width =
|
|
3221
|
-
var height =
|
|
3205
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3206
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3207
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3222
3208
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3223
3209
|
var y = -winScroll.scrollTop;
|
|
3224
3210
|
|
|
3225
3211
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3226
|
-
x +=
|
|
3212
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3227
3213
|
}
|
|
3228
3214
|
|
|
3229
3215
|
return {
|
|
@@ -3265,12 +3251,14 @@ reference element's position.
|
|
|
3265
3251
|
*/
|
|
3266
3252
|
|
|
3267
3253
|
function listScrollParents(element, list) {
|
|
3254
|
+
var _element$ownerDocumen;
|
|
3255
|
+
|
|
3268
3256
|
if (list === void 0) {
|
|
3269
3257
|
list = [];
|
|
3270
3258
|
}
|
|
3271
3259
|
|
|
3272
3260
|
var scrollParent = getScrollParent(element);
|
|
3273
|
-
var isBody =
|
|
3261
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3274
3262
|
var win = getWindow(scrollParent);
|
|
3275
3263
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3276
3264
|
var updatedList = list.concat(target);
|
|
@@ -3279,7 +3267,7 @@ function listScrollParents(element, list) {
|
|
|
3279
3267
|
}
|
|
3280
3268
|
|
|
3281
3269
|
function rectToClientRect(rect) {
|
|
3282
|
-
return Object.assign(
|
|
3270
|
+
return Object.assign({}, rect, {
|
|
3283
3271
|
left: rect.x,
|
|
3284
3272
|
top: rect.y,
|
|
3285
3273
|
right: rect.x + rect.width,
|
|
@@ -3330,10 +3318,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3330
3318
|
var firstClippingParent = clippingParents[0];
|
|
3331
3319
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3332
3320
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3333
|
-
accRect.top =
|
|
3334
|
-
accRect.right =
|
|
3335
|
-
accRect.bottom =
|
|
3336
|
-
accRect.left =
|
|
3321
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3322
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3323
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3324
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3337
3325
|
return accRect;
|
|
3338
3326
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3339
3327
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3443,7 +3431,7 @@ function detectOverflow(state, options) {
|
|
|
3443
3431
|
strategy: 'absolute',
|
|
3444
3432
|
placement: placement
|
|
3445
3433
|
});
|
|
3446
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3434
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3447
3435
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3448
3436
|
// 0 or negative = within the clipping rect
|
|
3449
3437
|
|
|
@@ -3467,9 +3455,6 @@ function detectOverflow(state, options) {
|
|
|
3467
3455
|
return overflowOffsets;
|
|
3468
3456
|
}
|
|
3469
3457
|
|
|
3470
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3471
|
-
|
|
3472
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3473
3458
|
function computeAutoPlacement(state, options) {
|
|
3474
3459
|
if (options === void 0) {
|
|
3475
3460
|
options = {};
|
|
@@ -3698,7 +3683,7 @@ function hide(_ref) {
|
|
|
3698
3683
|
isReferenceHidden: isReferenceHidden,
|
|
3699
3684
|
hasPopperEscaped: hasPopperEscaped
|
|
3700
3685
|
};
|
|
3701
|
-
state.attributes.popper = Object.assign(
|
|
3686
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3702
3687
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3703
3688
|
'data-popper-escaped': hasPopperEscaped
|
|
3704
3689
|
});
|
|
@@ -3717,7 +3702,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3717
3702
|
var basePlacement = getBasePlacement(placement);
|
|
3718
3703
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3719
3704
|
|
|
3720
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3705
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3721
3706
|
placement: placement
|
|
3722
3707
|
})) : offset,
|
|
3723
3708
|
skidding = _ref[0],
|
|
@@ -3823,7 +3808,7 @@ function preventOverflow(_ref) {
|
|
|
3823
3808
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3824
3809
|
var referenceRect = state.rects.reference;
|
|
3825
3810
|
var popperRect = state.rects.popper;
|
|
3826
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3811
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3827
3812
|
placement: state.placement
|
|
3828
3813
|
})) : tetherOffset;
|
|
3829
3814
|
var data = {
|
|
@@ -3835,13 +3820,13 @@ function preventOverflow(_ref) {
|
|
|
3835
3820
|
return;
|
|
3836
3821
|
}
|
|
3837
3822
|
|
|
3838
|
-
if (checkMainAxis) {
|
|
3823
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3839
3824
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3840
3825
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3841
3826
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3842
3827
|
var offset = popperOffsets[mainAxis];
|
|
3843
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3844
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3828
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3829
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3845
3830
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3846
3831
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3847
3832
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3868,26 +3853,29 @@ function preventOverflow(_ref) {
|
|
|
3868
3853
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3869
3854
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3870
3855
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3871
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3872
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3873
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3874
|
-
}
|
|
3875
3856
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3857
|
+
if (checkMainAxis) {
|
|
3858
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3859
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3860
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
if (checkAltAxis) {
|
|
3864
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3878
3865
|
|
|
3879
|
-
|
|
3866
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3880
3867
|
|
|
3881
|
-
|
|
3868
|
+
var _offset = popperOffsets[altAxis];
|
|
3882
3869
|
|
|
3883
|
-
|
|
3870
|
+
var _min = _offset + overflow[_mainSide];
|
|
3884
3871
|
|
|
3885
|
-
|
|
3872
|
+
var _max = _offset - overflow[_altSide];
|
|
3886
3873
|
|
|
3887
|
-
|
|
3874
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3888
3875
|
|
|
3889
|
-
|
|
3890
|
-
|
|
3876
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3877
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3878
|
+
}
|
|
3891
3879
|
}
|
|
3892
3880
|
|
|
3893
3881
|
state.modifiersData[name] = data;
|
|
@@ -4118,9 +4106,9 @@ function uniqueBy(arr, fn) {
|
|
|
4118
4106
|
function mergeByName(modifiers) {
|
|
4119
4107
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4120
4108
|
var existing = merged[current.name];
|
|
4121
|
-
merged[current.name] = existing ? Object.assign(
|
|
4122
|
-
options: Object.assign(
|
|
4123
|
-
data: Object.assign(
|
|
4109
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4110
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4111
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4124
4112
|
}) : current;
|
|
4125
4113
|
return merged;
|
|
4126
4114
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4166,7 +4154,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4166
4154
|
var state = {
|
|
4167
4155
|
placement: 'bottom',
|
|
4168
4156
|
orderedModifiers: [],
|
|
4169
|
-
options: Object.assign(
|
|
4157
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4170
4158
|
modifiersData: {},
|
|
4171
4159
|
elements: {
|
|
4172
4160
|
reference: reference,
|
|
@@ -4181,7 +4169,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4181
4169
|
state: state,
|
|
4182
4170
|
setOptions: function setOptions(options) {
|
|
4183
4171
|
cleanupModifierEffects();
|
|
4184
|
-
state.options = Object.assign(
|
|
4172
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4185
4173
|
state.scrollParents = {
|
|
4186
4174
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4187
4175
|
popper: listScrollParents(popper)
|
|
@@ -4969,7 +4957,7 @@ function DropdownMenu(_ref2) {
|
|
|
4969
4957
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4970
4958
|
|
|
4971
4959
|
var args = useDropdownMenu(options);
|
|
4972
|
-
return /*#__PURE__*/
|
|
4960
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, args.hasShown ? children(args) : null);
|
|
4973
4961
|
}
|
|
4974
4962
|
|
|
4975
4963
|
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
@@ -5036,7 +5024,7 @@ function DropdownToggle(_ref2) {
|
|
|
5036
5024
|
show = _useDropdownToggle$.show,
|
|
5037
5025
|
toggle = _useDropdownToggle$.toggle;
|
|
5038
5026
|
|
|
5039
|
-
return /*#__PURE__*/
|
|
5027
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, children({
|
|
5040
5028
|
show: show,
|
|
5041
5029
|
toggle: toggle,
|
|
5042
5030
|
props: props
|
|
@@ -5251,7 +5239,7 @@ function Dropdown(_ref) {
|
|
|
5251
5239
|
}
|
|
5252
5240
|
};
|
|
5253
5241
|
|
|
5254
|
-
return /*#__PURE__*/
|
|
5242
|
+
return /*#__PURE__*/React.createElement(DropdownContext.Provider, {
|
|
5255
5243
|
value: context
|
|
5256
5244
|
}, children({
|
|
5257
5245
|
props: {
|
|
@@ -5265,14 +5253,14 @@ Dropdown.propTypes = propTypes$4;
|
|
|
5265
5253
|
Dropdown.Menu = DropdownMenu;
|
|
5266
5254
|
Dropdown.Toggle = DropdownToggle;
|
|
5267
5255
|
|
|
5268
|
-
var NavContext =
|
|
5256
|
+
var NavContext = React.createContext(null);
|
|
5269
5257
|
NavContext.displayName = 'NavContext';
|
|
5270
5258
|
|
|
5271
5259
|
var defaultProps$e = {
|
|
5272
5260
|
as: SafeAnchor,
|
|
5273
5261
|
disabled: false
|
|
5274
5262
|
};
|
|
5275
|
-
var DropdownItem =
|
|
5263
|
+
var DropdownItem = React.forwardRef(function (_ref, ref) {
|
|
5276
5264
|
var bsPrefix = _ref.bsPrefix,
|
|
5277
5265
|
className = _ref.className,
|
|
5278
5266
|
children = _ref.children,
|
|
@@ -5283,7 +5271,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5283
5271
|
onSelect = _ref.onSelect,
|
|
5284
5272
|
propActive = _ref.active,
|
|
5285
5273
|
Component = _ref.as,
|
|
5286
|
-
props = _objectWithoutPropertiesLoose
|
|
5274
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5287
5275
|
|
|
5288
5276
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5289
5277
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5307,7 +5295,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5307
5295
|
/*#__PURE__*/
|
|
5308
5296
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5309
5297
|
// @ts-ignore
|
|
5310
|
-
|
|
5298
|
+
React.createElement(Component, _extends({}, props, {
|
|
5311
5299
|
ref: ref,
|
|
5312
5300
|
href: href,
|
|
5313
5301
|
disabled: disabled,
|
|
@@ -5356,7 +5344,7 @@ function useMergedRefs(refA, refB) {
|
|
|
5356
5344
|
}, [refA, refB]);
|
|
5357
5345
|
}
|
|
5358
5346
|
|
|
5359
|
-
var context$2 =
|
|
5347
|
+
var context$2 = React.createContext(null);
|
|
5360
5348
|
context$2.displayName = 'NavbarContext';
|
|
5361
5349
|
|
|
5362
5350
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
@@ -5484,7 +5472,7 @@ var defaultProps$f = {
|
|
|
5484
5472
|
flip: true
|
|
5485
5473
|
}; // TODO: remove this hack
|
|
5486
5474
|
|
|
5487
|
-
var DropdownMenu$1 =
|
|
5475
|
+
var DropdownMenu$1 = React.forwardRef(function (_ref, ref) {
|
|
5488
5476
|
var bsPrefix = _ref.bsPrefix,
|
|
5489
5477
|
className = _ref.className,
|
|
5490
5478
|
align = _ref.align,
|
|
@@ -5496,7 +5484,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5496
5484
|
_ref$as = _ref.as,
|
|
5497
5485
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5498
5486
|
popperConfig = _ref.popperConfig,
|
|
5499
|
-
props = _objectWithoutPropertiesLoose
|
|
5487
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5500
5488
|
|
|
5501
5489
|
var isNavbar = useContext(context$2);
|
|
5502
5490
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5532,7 +5520,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5532
5520
|
show: showProps,
|
|
5533
5521
|
alignEnd: alignRight,
|
|
5534
5522
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5535
|
-
popperConfig: _extends
|
|
5523
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5536
5524
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5537
5525
|
})
|
|
5538
5526
|
}),
|
|
@@ -5555,11 +5543,11 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5555
5543
|
if (placement) {
|
|
5556
5544
|
// we don't need the default popper style,
|
|
5557
5545
|
// menus are display: none when not shown.
|
|
5558
|
-
props.style = _extends
|
|
5546
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5559
5547
|
props['x-placement'] = placement;
|
|
5560
5548
|
}
|
|
5561
5549
|
|
|
5562
|
-
return /*#__PURE__*/
|
|
5550
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, menuProps, {
|
|
5563
5551
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5564
5552
|
}));
|
|
5565
5553
|
});
|
|
@@ -5593,14 +5581,14 @@ module.exports = exports['default'];
|
|
|
5593
5581
|
|
|
5594
5582
|
unwrapExports(isRequiredForA11y_1);
|
|
5595
5583
|
|
|
5596
|
-
var DropdownToggle$1 =
|
|
5584
|
+
var DropdownToggle$1 = React.forwardRef(function (_ref, ref) {
|
|
5597
5585
|
var bsPrefix = _ref.bsPrefix,
|
|
5598
5586
|
split = _ref.split,
|
|
5599
5587
|
className = _ref.className,
|
|
5600
5588
|
childBsPrefix = _ref.childBsPrefix,
|
|
5601
5589
|
_ref$as = _ref.as,
|
|
5602
5590
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5603
|
-
props = _objectWithoutPropertiesLoose
|
|
5591
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5604
5592
|
|
|
5605
5593
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5606
5594
|
|
|
@@ -5615,7 +5603,7 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5615
5603
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5616
5604
|
// underlying component, to allow it to render size and style variants.
|
|
5617
5605
|
|
|
5618
|
-
return /*#__PURE__*/
|
|
5606
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
5619
5607
|
onClick: toggle,
|
|
5620
5608
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5621
5609
|
}, toggleProps, props));
|
|
@@ -5638,7 +5626,7 @@ var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
|
5638
5626
|
var defaultProps$g = {
|
|
5639
5627
|
navbar: false
|
|
5640
5628
|
};
|
|
5641
|
-
var Dropdown$1 =
|
|
5629
|
+
var Dropdown$1 = React.forwardRef(function (pProps, ref) {
|
|
5642
5630
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5643
5631
|
show: 'onToggle'
|
|
5644
5632
|
}),
|
|
@@ -5653,7 +5641,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5653
5641
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5654
5642
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5655
5643
|
_4 = _useUncontrolled.navbar,
|
|
5656
|
-
props = _objectWithoutPropertiesLoose
|
|
5644
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5657
5645
|
|
|
5658
5646
|
var onSelectCtx = useContext(SelectableContext);
|
|
5659
5647
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5675,9 +5663,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5675
5663
|
if (onSelect) onSelect(key, event);
|
|
5676
5664
|
handleToggle(false, event, 'select');
|
|
5677
5665
|
});
|
|
5678
|
-
return /*#__PURE__*/
|
|
5666
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
5679
5667
|
value: handleSelect
|
|
5680
|
-
}, /*#__PURE__*/
|
|
5668
|
+
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
5681
5669
|
drop: drop,
|
|
5682
5670
|
show: show,
|
|
5683
5671
|
alignEnd: alignRight,
|
|
@@ -5686,7 +5674,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5686
5674
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5687
5675
|
}, function (_ref) {
|
|
5688
5676
|
var dropdownProps = _ref.props;
|
|
5689
|
-
return /*#__PURE__*/
|
|
5677
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5690
5678
|
ref: ref,
|
|
5691
5679
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5692
5680
|
}));
|
|
@@ -5761,7 +5749,7 @@ var propTypes$5 = {
|
|
|
5761
5749
|
* along with menu related props are passed to the `Dropdown.Menu`
|
|
5762
5750
|
*/
|
|
5763
5751
|
|
|
5764
|
-
var DropdownButton =
|
|
5752
|
+
var DropdownButton = React.forwardRef(function (_ref, ref) {
|
|
5765
5753
|
var title = _ref.title,
|
|
5766
5754
|
children = _ref.children,
|
|
5767
5755
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -5774,18 +5762,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5774
5762
|
disabled = _ref.disabled,
|
|
5775
5763
|
href = _ref.href,
|
|
5776
5764
|
id = _ref.id,
|
|
5777
|
-
props = _objectWithoutPropertiesLoose
|
|
5765
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5778
5766
|
|
|
5779
|
-
return /*#__PURE__*/
|
|
5767
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
5780
5768
|
ref: ref
|
|
5781
|
-
}, props), /*#__PURE__*/
|
|
5769
|
+
}, props), /*#__PURE__*/React.createElement(DropdownToggle$1, {
|
|
5782
5770
|
id: id,
|
|
5783
5771
|
href: href,
|
|
5784
5772
|
size: size,
|
|
5785
5773
|
variant: variant,
|
|
5786
5774
|
disabled: disabled,
|
|
5787
5775
|
childBsPrefix: bsPrefix
|
|
5788
|
-
}, title), /*#__PURE__*/
|
|
5776
|
+
}, title), /*#__PURE__*/React.createElement(DropdownMenu$1, {
|
|
5789
5777
|
align: menuAlign,
|
|
5790
5778
|
role: menuRole,
|
|
5791
5779
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5900,7 +5888,7 @@ var propTypes$6 = {
|
|
|
5900
5888
|
tooltip: PropTypes.bool,
|
|
5901
5889
|
as: PropTypes.elementType
|
|
5902
5890
|
};
|
|
5903
|
-
var Feedback =
|
|
5891
|
+
var Feedback = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
5904
5892
|
function (_ref, ref) {
|
|
5905
5893
|
var _ref$as = _ref.as,
|
|
5906
5894
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
@@ -5909,9 +5897,9 @@ function (_ref, ref) {
|
|
|
5909
5897
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5910
5898
|
_ref$tooltip = _ref.tooltip,
|
|
5911
5899
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5912
|
-
props = _objectWithoutPropertiesLoose
|
|
5900
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5913
5901
|
|
|
5914
|
-
return /*#__PURE__*/
|
|
5902
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5915
5903
|
ref: ref,
|
|
5916
5904
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5917
5905
|
}));
|
|
@@ -5919,11 +5907,11 @@ function (_ref, ref) {
|
|
|
5919
5907
|
Feedback.displayName = 'Feedback';
|
|
5920
5908
|
Feedback.propTypes = propTypes$6;
|
|
5921
5909
|
|
|
5922
|
-
var FormContext =
|
|
5910
|
+
var FormContext = React.createContext({
|
|
5923
5911
|
controlId: undefined
|
|
5924
5912
|
});
|
|
5925
5913
|
|
|
5926
|
-
var FormCheckInput =
|
|
5914
|
+
var FormCheckInput = React.forwardRef(function (_ref, ref) {
|
|
5927
5915
|
var id = _ref.id,
|
|
5928
5916
|
bsPrefix = _ref.bsPrefix,
|
|
5929
5917
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -5937,7 +5925,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5937
5925
|
isStatic = _ref.isStatic,
|
|
5938
5926
|
_ref$as = _ref.as,
|
|
5939
5927
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5940
|
-
props = _objectWithoutPropertiesLoose
|
|
5928
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5941
5929
|
|
|
5942
5930
|
var _useContext = useContext(FormContext),
|
|
5943
5931
|
controlId = _useContext.controlId,
|
|
@@ -5948,7 +5936,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5948
5936
|
defaultPrefix = _ref2[1];
|
|
5949
5937
|
|
|
5950
5938
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5951
|
-
return /*#__PURE__*/
|
|
5939
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
5952
5940
|
ref: ref,
|
|
5953
5941
|
type: type,
|
|
5954
5942
|
id: id || controlId,
|
|
@@ -5957,12 +5945,12 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5957
5945
|
});
|
|
5958
5946
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
5959
5947
|
|
|
5960
|
-
var FormCheckLabel =
|
|
5948
|
+
var FormCheckLabel = React.forwardRef(function (_ref, ref) {
|
|
5961
5949
|
var bsPrefix = _ref.bsPrefix,
|
|
5962
5950
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5963
5951
|
className = _ref.className,
|
|
5964
5952
|
htmlFor = _ref.htmlFor,
|
|
5965
|
-
props = _objectWithoutPropertiesLoose
|
|
5953
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5966
5954
|
|
|
5967
5955
|
var _useContext = useContext(FormContext),
|
|
5968
5956
|
controlId = _useContext.controlId,
|
|
@@ -5973,7 +5961,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5973
5961
|
defaultPrefix = _ref2[1];
|
|
5974
5962
|
|
|
5975
5963
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5976
|
-
return /*#__PURE__*/
|
|
5964
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
5977
5965
|
ref: ref,
|
|
5978
5966
|
htmlFor: htmlFor || controlId,
|
|
5979
5967
|
className: classnames(className, bsPrefix)
|
|
@@ -5981,7 +5969,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5981
5969
|
});
|
|
5982
5970
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
5983
5971
|
|
|
5984
|
-
var FormCheck =
|
|
5972
|
+
var FormCheck = React.forwardRef(function (_ref, ref) {
|
|
5985
5973
|
var id = _ref.id,
|
|
5986
5974
|
bsPrefix = _ref.bsPrefix,
|
|
5987
5975
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6007,7 +5995,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6007
5995
|
propCustom = _ref.custom,
|
|
6008
5996
|
_ref$as = _ref.as,
|
|
6009
5997
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6010
|
-
props = _objectWithoutPropertiesLoose
|
|
5998
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6011
5999
|
|
|
6012
6000
|
var custom = type === 'switch' ? true : propCustom;
|
|
6013
6001
|
|
|
@@ -6027,7 +6015,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6027
6015
|
};
|
|
6028
6016
|
}, [controlId, custom, id]);
|
|
6029
6017
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6030
|
-
var input = /*#__PURE__*/
|
|
6018
|
+
var input = /*#__PURE__*/React.createElement(FormCheckInput, _extends({}, props, {
|
|
6031
6019
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6032
6020
|
ref: ref,
|
|
6033
6021
|
isValid: isValid,
|
|
@@ -6036,14 +6024,14 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6036
6024
|
disabled: disabled,
|
|
6037
6025
|
as: as
|
|
6038
6026
|
}));
|
|
6039
|
-
return /*#__PURE__*/
|
|
6027
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6040
6028
|
value: innerFormContext
|
|
6041
|
-
}, /*#__PURE__*/
|
|
6029
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
6042
6030
|
style: style,
|
|
6043
6031
|
className: classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6044
|
-
}, children || /*#__PURE__*/
|
|
6032
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormCheckLabel, {
|
|
6045
6033
|
title: title
|
|
6046
|
-
}, label), (isValid || isInvalid) && /*#__PURE__*/
|
|
6034
|
+
}, label), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6047
6035
|
type: isValid ? 'valid' : 'invalid',
|
|
6048
6036
|
tooltip: feedbackTooltip
|
|
6049
6037
|
}, feedback))));
|
|
@@ -6052,7 +6040,7 @@ FormCheck.displayName = 'FormCheck';
|
|
|
6052
6040
|
FormCheck.Input = FormCheckInput;
|
|
6053
6041
|
FormCheck.Label = FormCheckLabel;
|
|
6054
6042
|
|
|
6055
|
-
var FormFileInput =
|
|
6043
|
+
var FormFileInput = React.forwardRef(function (_ref, ref) {
|
|
6056
6044
|
var id = _ref.id,
|
|
6057
6045
|
bsPrefix = _ref.bsPrefix,
|
|
6058
6046
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6062,7 +6050,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6062
6050
|
lang = _ref.lang,
|
|
6063
6051
|
_ref$as = _ref.as,
|
|
6064
6052
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6065
|
-
props = _objectWithoutPropertiesLoose
|
|
6053
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6066
6054
|
|
|
6067
6055
|
var _useContext = useContext(FormContext),
|
|
6068
6056
|
controlId = _useContext.controlId,
|
|
@@ -6075,7 +6063,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6075
6063
|
defaultPrefix = _ref2[1];
|
|
6076
6064
|
|
|
6077
6065
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6078
|
-
return /*#__PURE__*/
|
|
6066
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6079
6067
|
ref: ref,
|
|
6080
6068
|
id: id || controlId,
|
|
6081
6069
|
type: type,
|
|
@@ -6085,12 +6073,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6085
6073
|
});
|
|
6086
6074
|
FormFileInput.displayName = 'FormFileInput';
|
|
6087
6075
|
|
|
6088
|
-
var FormFileLabel =
|
|
6076
|
+
var FormFileLabel = React.forwardRef(function (_ref, ref) {
|
|
6089
6077
|
var bsPrefix = _ref.bsPrefix,
|
|
6090
6078
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6091
6079
|
className = _ref.className,
|
|
6092
6080
|
htmlFor = _ref.htmlFor,
|
|
6093
|
-
props = _objectWithoutPropertiesLoose
|
|
6081
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6094
6082
|
|
|
6095
6083
|
var _useContext = useContext(FormContext),
|
|
6096
6084
|
controlId = _useContext.controlId,
|
|
@@ -6101,7 +6089,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6101
6089
|
defaultPrefix = _ref2[1];
|
|
6102
6090
|
|
|
6103
6091
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6104
|
-
return /*#__PURE__*/
|
|
6092
|
+
return /*#__PURE__*/React.createElement("label", _extends({}, props, {
|
|
6105
6093
|
ref: ref,
|
|
6106
6094
|
htmlFor: htmlFor || controlId,
|
|
6107
6095
|
className: classnames(className, bsPrefix),
|
|
@@ -6110,7 +6098,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6110
6098
|
});
|
|
6111
6099
|
FormFileLabel.displayName = 'FormFileLabel';
|
|
6112
6100
|
|
|
6113
|
-
var FormFile =
|
|
6101
|
+
var FormFile = React.forwardRef(function (_ref, ref) {
|
|
6114
6102
|
var id = _ref.id,
|
|
6115
6103
|
bsPrefix = _ref.bsPrefix,
|
|
6116
6104
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
@@ -6134,7 +6122,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6134
6122
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6135
6123
|
_ref$inputAs = _ref.inputAs,
|
|
6136
6124
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6137
|
-
props = _objectWithoutPropertiesLoose
|
|
6125
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6138
6126
|
|
|
6139
6127
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6140
6128
|
prefix = _ref2[0],
|
|
@@ -6153,7 +6141,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6153
6141
|
};
|
|
6154
6142
|
}, [controlId, custom, id]);
|
|
6155
6143
|
var hasLabel = label != null && label !== false && !children;
|
|
6156
|
-
var input = /*#__PURE__*/
|
|
6144
|
+
var input = /*#__PURE__*/React.createElement(FormFileInput, _extends({}, props, {
|
|
6157
6145
|
ref: ref,
|
|
6158
6146
|
isValid: isValid,
|
|
6159
6147
|
isInvalid: isInvalid,
|
|
@@ -6161,14 +6149,14 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6161
6149
|
as: inputAs,
|
|
6162
6150
|
lang: lang
|
|
6163
6151
|
}));
|
|
6164
|
-
return /*#__PURE__*/
|
|
6152
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6165
6153
|
value: innerFormContext
|
|
6166
|
-
}, /*#__PURE__*/
|
|
6154
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
6167
6155
|
style: style,
|
|
6168
6156
|
className: classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6169
|
-
}, children || /*#__PURE__*/
|
|
6157
|
+
}, children || /*#__PURE__*/React.createElement(React.Fragment, null, custom ? /*#__PURE__*/React.createElement(React.Fragment, null, input, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, {
|
|
6170
6158
|
"data-browse": dataBrowse
|
|
6171
|
-
}, label)) : /*#__PURE__*/
|
|
6159
|
+
}, label)) : /*#__PURE__*/React.createElement(React.Fragment, null, hasLabel && /*#__PURE__*/React.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React.createElement(Feedback, {
|
|
6172
6160
|
type: isValid ? 'valid' : 'invalid',
|
|
6173
6161
|
tooltip: feedbackTooltip
|
|
6174
6162
|
}, feedback))));
|
|
@@ -6177,7 +6165,7 @@ FormFile.displayName = 'FormFile';
|
|
|
6177
6165
|
FormFile.Input = FormFileInput;
|
|
6178
6166
|
FormFile.Label = FormFileLabel;
|
|
6179
6167
|
|
|
6180
|
-
var FormControl =
|
|
6168
|
+
var FormControl = React.forwardRef(function (_ref, ref) {
|
|
6181
6169
|
var bsPrefix = _ref.bsPrefix,
|
|
6182
6170
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6183
6171
|
type = _ref.type,
|
|
@@ -6194,7 +6182,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6194
6182
|
custom = _ref.custom,
|
|
6195
6183
|
_ref$as = _ref.as,
|
|
6196
6184
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6197
|
-
props = _objectWithoutPropertiesLoose
|
|
6185
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6198
6186
|
|
|
6199
6187
|
var _useContext = useContext(FormContext),
|
|
6200
6188
|
controlId = _useContext.controlId;
|
|
@@ -6229,7 +6217,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6229
6217
|
}
|
|
6230
6218
|
|
|
6231
6219
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6232
|
-
return /*#__PURE__*/
|
|
6220
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6233
6221
|
type: type,
|
|
6234
6222
|
size: htmlSize,
|
|
6235
6223
|
ref: ref,
|
|
@@ -6243,14 +6231,14 @@ var FormControl$1 = Object.assign(FormControl, {
|
|
|
6243
6231
|
Feedback: Feedback
|
|
6244
6232
|
});
|
|
6245
6233
|
|
|
6246
|
-
var FormGroup =
|
|
6234
|
+
var FormGroup = React.forwardRef(function (_ref, ref) {
|
|
6247
6235
|
var bsPrefix = _ref.bsPrefix,
|
|
6248
6236
|
className = _ref.className,
|
|
6249
6237
|
children = _ref.children,
|
|
6250
6238
|
controlId = _ref.controlId,
|
|
6251
6239
|
_ref$as = _ref.as,
|
|
6252
6240
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6253
|
-
props = _objectWithoutPropertiesLoose
|
|
6241
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6254
6242
|
|
|
6255
6243
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6256
6244
|
var context = useMemo(function () {
|
|
@@ -6258,9 +6246,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6258
6246
|
controlId: controlId
|
|
6259
6247
|
};
|
|
6260
6248
|
}, [controlId]);
|
|
6261
|
-
return /*#__PURE__*/
|
|
6249
|
+
return /*#__PURE__*/React.createElement(FormContext.Provider, {
|
|
6262
6250
|
value: context
|
|
6263
|
-
}, /*#__PURE__*/
|
|
6251
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6264
6252
|
ref: ref,
|
|
6265
6253
|
className: classnames(className, bsPrefix)
|
|
6266
6254
|
}), children));
|
|
@@ -6271,7 +6259,7 @@ var defaultProps$h = {
|
|
|
6271
6259
|
column: false,
|
|
6272
6260
|
srOnly: false
|
|
6273
6261
|
};
|
|
6274
|
-
var FormLabel =
|
|
6262
|
+
var FormLabel = React.forwardRef(function (_ref, ref) {
|
|
6275
6263
|
var _ref$as = _ref.as,
|
|
6276
6264
|
Component = _ref$as === void 0 ? 'label' : _ref$as,
|
|
6277
6265
|
bsPrefix = _ref.bsPrefix,
|
|
@@ -6279,7 +6267,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6279
6267
|
srOnly = _ref.srOnly,
|
|
6280
6268
|
className = _ref.className,
|
|
6281
6269
|
htmlFor = _ref.htmlFor,
|
|
6282
|
-
props = _objectWithoutPropertiesLoose
|
|
6270
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6283
6271
|
|
|
6284
6272
|
var _useContext = useContext(FormContext),
|
|
6285
6273
|
controlId = _useContext.controlId;
|
|
@@ -6290,7 +6278,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6290
6278
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6291
6279
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6292
6280
|
htmlFor = htmlFor || controlId;
|
|
6293
|
-
if (column) return /*#__PURE__*/
|
|
6281
|
+
if (column) return /*#__PURE__*/React.createElement(Col, _extends({
|
|
6294
6282
|
as: "label",
|
|
6295
6283
|
className: classes,
|
|
6296
6284
|
htmlFor: htmlFor
|
|
@@ -6298,7 +6286,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6298
6286
|
return (
|
|
6299
6287
|
/*#__PURE__*/
|
|
6300
6288
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6301
|
-
|
|
6289
|
+
React.createElement(Component, _extends({
|
|
6302
6290
|
ref: ref,
|
|
6303
6291
|
className: classes,
|
|
6304
6292
|
htmlFor: htmlFor
|
|
@@ -6308,25 +6296,25 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6308
6296
|
FormLabel.displayName = 'FormLabel';
|
|
6309
6297
|
FormLabel.defaultProps = defaultProps$h;
|
|
6310
6298
|
|
|
6311
|
-
var FormText =
|
|
6299
|
+
var FormText = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6312
6300
|
function (_ref, ref) {
|
|
6313
6301
|
var bsPrefix = _ref.bsPrefix,
|
|
6314
6302
|
className = _ref.className,
|
|
6315
6303
|
_ref$as = _ref.as,
|
|
6316
6304
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6317
6305
|
muted = _ref.muted,
|
|
6318
|
-
props = _objectWithoutPropertiesLoose
|
|
6306
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6319
6307
|
|
|
6320
6308
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6321
|
-
return /*#__PURE__*/
|
|
6309
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6322
6310
|
ref: ref,
|
|
6323
6311
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6324
6312
|
}));
|
|
6325
6313
|
});
|
|
6326
6314
|
FormText.displayName = 'FormText';
|
|
6327
6315
|
|
|
6328
|
-
var Switch =
|
|
6329
|
-
return /*#__PURE__*/
|
|
6316
|
+
var Switch = React.forwardRef(function (props, ref) {
|
|
6317
|
+
return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
|
|
6330
6318
|
ref: ref,
|
|
6331
6319
|
type: "switch"
|
|
6332
6320
|
}));
|
|
@@ -6339,17 +6327,17 @@ var FormRow = createWithBsPrefix('form-row');
|
|
|
6339
6327
|
var defaultProps$i = {
|
|
6340
6328
|
inline: false
|
|
6341
6329
|
};
|
|
6342
|
-
var FormImpl =
|
|
6330
|
+
var FormImpl = React.forwardRef(function (_ref, ref) {
|
|
6343
6331
|
var bsPrefix = _ref.bsPrefix,
|
|
6344
6332
|
inline = _ref.inline,
|
|
6345
6333
|
className = _ref.className,
|
|
6346
6334
|
validated = _ref.validated,
|
|
6347
6335
|
_ref$as = _ref.as,
|
|
6348
6336
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6349
|
-
props = _objectWithoutPropertiesLoose
|
|
6337
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6350
6338
|
|
|
6351
6339
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6352
|
-
return /*#__PURE__*/
|
|
6340
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6353
6341
|
ref: ref,
|
|
6354
6342
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6355
6343
|
}));
|
|
@@ -6368,17 +6356,17 @@ FormImpl.Text = FormText;
|
|
|
6368
6356
|
var defaultProps$j = {
|
|
6369
6357
|
fluid: false
|
|
6370
6358
|
};
|
|
6371
|
-
var Container =
|
|
6359
|
+
var Container = React.forwardRef(function (_ref, ref) {
|
|
6372
6360
|
var bsPrefix = _ref.bsPrefix,
|
|
6373
6361
|
fluid = _ref.fluid,
|
|
6374
6362
|
_ref$as = _ref.as,
|
|
6375
6363
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6376
6364
|
className = _ref.className,
|
|
6377
|
-
props = _objectWithoutPropertiesLoose
|
|
6365
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6378
6366
|
|
|
6379
6367
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6380
6368
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6381
|
-
return /*#__PURE__*/
|
|
6369
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6382
6370
|
ref: ref
|
|
6383
6371
|
}, props, {
|
|
6384
6372
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6419,18 +6407,18 @@ var defaultProps$k = {
|
|
|
6419
6407
|
roundedCircle: false,
|
|
6420
6408
|
thumbnail: false
|
|
6421
6409
|
};
|
|
6422
|
-
var Image =
|
|
6410
|
+
var Image = React.forwardRef(function (_ref, ref) {
|
|
6423
6411
|
var bsPrefix = _ref.bsPrefix,
|
|
6424
6412
|
className = _ref.className,
|
|
6425
6413
|
fluid = _ref.fluid,
|
|
6426
6414
|
rounded = _ref.rounded,
|
|
6427
6415
|
roundedCircle = _ref.roundedCircle,
|
|
6428
6416
|
thumbnail = _ref.thumbnail,
|
|
6429
|
-
props = _objectWithoutPropertiesLoose
|
|
6417
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6430
6418
|
|
|
6431
6419
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6432
6420
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6433
|
-
return /*#__PURE__*/
|
|
6421
|
+
return /*#__PURE__*/React.createElement("img", _extends({
|
|
6434
6422
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6435
6423
|
ref: ref
|
|
6436
6424
|
}, props, {
|
|
@@ -6443,11 +6431,11 @@ Image.defaultProps = defaultProps$k;
|
|
|
6443
6431
|
var defaultProps$l = {
|
|
6444
6432
|
fluid: true
|
|
6445
6433
|
};
|
|
6446
|
-
var FigureImage =
|
|
6434
|
+
var FigureImage = React.forwardRef(function (_ref, ref) {
|
|
6447
6435
|
var className = _ref.className,
|
|
6448
|
-
props = _objectWithoutPropertiesLoose
|
|
6436
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6449
6437
|
|
|
6450
|
-
return /*#__PURE__*/
|
|
6438
|
+
return /*#__PURE__*/React.createElement(Image, _extends({
|
|
6451
6439
|
ref: ref
|
|
6452
6440
|
}, props, {
|
|
6453
6441
|
className: classnames(className, 'figure-img')
|
|
@@ -6474,13 +6462,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6474
6462
|
});
|
|
6475
6463
|
|
|
6476
6464
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6477
|
-
return /*#__PURE__*/
|
|
6465
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6478
6466
|
type: "checkbox"
|
|
6479
6467
|
}, props)));
|
|
6480
6468
|
};
|
|
6481
6469
|
|
|
6482
6470
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6483
|
-
return /*#__PURE__*/
|
|
6471
|
+
return /*#__PURE__*/React.createElement(InputGroupText, null, /*#__PURE__*/React.createElement("input", _extends({
|
|
6484
6472
|
type: "radio"
|
|
6485
6473
|
}, props)));
|
|
6486
6474
|
};
|
|
@@ -6493,16 +6481,16 @@ var InputGroupRadio = function InputGroupRadio(props) {
|
|
|
6493
6481
|
* @property {InputGroupRadio} Radio
|
|
6494
6482
|
* @property {InputGroupCheckbox} Checkbox
|
|
6495
6483
|
*/
|
|
6496
|
-
var InputGroup =
|
|
6484
|
+
var InputGroup = React.forwardRef(function (_ref, ref) {
|
|
6497
6485
|
var bsPrefix = _ref.bsPrefix,
|
|
6498
6486
|
size = _ref.size,
|
|
6499
6487
|
className = _ref.className,
|
|
6500
6488
|
_ref$as = _ref.as,
|
|
6501
6489
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6502
|
-
props = _objectWithoutPropertiesLoose
|
|
6490
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6503
6491
|
|
|
6504
6492
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6505
|
-
return /*#__PURE__*/
|
|
6493
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6506
6494
|
ref: ref
|
|
6507
6495
|
}, props, {
|
|
6508
6496
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6510,7 +6498,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6510
6498
|
});
|
|
6511
6499
|
InputGroup.displayName = 'InputGroup';
|
|
6512
6500
|
|
|
6513
|
-
var InputGroupWithExtras = _extends
|
|
6501
|
+
var InputGroupWithExtras = _extends({}, InputGroup, {
|
|
6514
6502
|
Text: InputGroupText,
|
|
6515
6503
|
Radio: InputGroupRadio,
|
|
6516
6504
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6521,7 +6509,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6521
6509
|
var defaultProps$m = {
|
|
6522
6510
|
fluid: false
|
|
6523
6511
|
};
|
|
6524
|
-
var Jumbotron =
|
|
6512
|
+
var Jumbotron = React.forwardRef(function (_ref, ref) {
|
|
6525
6513
|
var _classes;
|
|
6526
6514
|
|
|
6527
6515
|
var _ref$as = _ref.as,
|
|
@@ -6529,11 +6517,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6529
6517
|
className = _ref.className,
|
|
6530
6518
|
fluid = _ref.fluid,
|
|
6531
6519
|
bsPrefix = _ref.bsPrefix,
|
|
6532
|
-
props = _objectWithoutPropertiesLoose
|
|
6520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6533
6521
|
|
|
6534
6522
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6535
6523
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6536
|
-
return /*#__PURE__*/
|
|
6524
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
6537
6525
|
ref: ref
|
|
6538
6526
|
}, props, {
|
|
6539
6527
|
className: classnames(className, classes)
|
|
@@ -6542,19 +6530,19 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6542
6530
|
Jumbotron.defaultProps = defaultProps$m;
|
|
6543
6531
|
Jumbotron.displayName = 'Jumbotron';
|
|
6544
6532
|
|
|
6545
|
-
var TabContext =
|
|
6533
|
+
var TabContext = React.createContext(null);
|
|
6546
6534
|
|
|
6547
6535
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6548
6536
|
var noop$4 = function noop() {};
|
|
6549
6537
|
|
|
6550
|
-
var AbstractNav =
|
|
6538
|
+
var AbstractNav = React.forwardRef(function (_ref, ref) {
|
|
6551
6539
|
var _ref$as = _ref.as,
|
|
6552
6540
|
Component = _ref$as === void 0 ? 'ul' : _ref$as,
|
|
6553
6541
|
onSelect = _ref.onSelect,
|
|
6554
6542
|
activeKey = _ref.activeKey,
|
|
6555
6543
|
role = _ref.role,
|
|
6556
6544
|
onKeyDown = _ref.onKeyDown,
|
|
6557
|
-
props = _objectWithoutPropertiesLoose
|
|
6545
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6558
6546
|
|
|
6559
6547
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6560
6548
|
// and don't want to reset the set in the effect
|
|
@@ -6628,9 +6616,9 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6628
6616
|
needsRefocusRef.current = false;
|
|
6629
6617
|
});
|
|
6630
6618
|
var mergedRef = useMergedRefs(ref, listNode);
|
|
6631
|
-
return /*#__PURE__*/
|
|
6619
|
+
return /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
6632
6620
|
value: handleSelect
|
|
6633
|
-
}, /*#__PURE__*/
|
|
6621
|
+
}, /*#__PURE__*/React.createElement(NavContext.Provider, {
|
|
6634
6622
|
value: {
|
|
6635
6623
|
role: role,
|
|
6636
6624
|
// used by NavLink to determine it's role
|
|
@@ -6638,7 +6626,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6638
6626
|
getControlledId: getControlledId || noop$4,
|
|
6639
6627
|
getControllerId: getControllerId || noop$4
|
|
6640
6628
|
}
|
|
6641
|
-
}, /*#__PURE__*/
|
|
6629
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6642
6630
|
onKeyDown: handleKeyDown,
|
|
6643
6631
|
ref: mergedRef,
|
|
6644
6632
|
role: role
|
|
@@ -6648,14 +6636,14 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6648
6636
|
var defaultProps$n = {
|
|
6649
6637
|
disabled: false
|
|
6650
6638
|
};
|
|
6651
|
-
var AbstractNavItem =
|
|
6639
|
+
var AbstractNavItem = React.forwardRef(function (_ref, ref) {
|
|
6652
6640
|
var active = _ref.active,
|
|
6653
6641
|
className = _ref.className,
|
|
6654
6642
|
eventKey = _ref.eventKey,
|
|
6655
6643
|
onSelect = _ref.onSelect,
|
|
6656
6644
|
onClick = _ref.onClick,
|
|
6657
6645
|
Component = _ref.as,
|
|
6658
|
-
props = _objectWithoutPropertiesLoose
|
|
6646
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6659
6647
|
|
|
6660
6648
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6661
6649
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6685,7 +6673,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6685
6673
|
if (onSelect) onSelect(navKey, e);
|
|
6686
6674
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6687
6675
|
});
|
|
6688
|
-
return /*#__PURE__*/
|
|
6676
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6689
6677
|
ref: ref,
|
|
6690
6678
|
onClick: handleOnclick,
|
|
6691
6679
|
className: classnames(className, isActive && 'active')
|
|
@@ -6698,7 +6686,7 @@ var defaultProps$o = {
|
|
|
6698
6686
|
active: false,
|
|
6699
6687
|
disabled: false
|
|
6700
6688
|
};
|
|
6701
|
-
var ListGroupItem =
|
|
6689
|
+
var ListGroupItem = React.forwardRef(function (_ref, ref) {
|
|
6702
6690
|
var bsPrefix = _ref.bsPrefix,
|
|
6703
6691
|
active = _ref.active,
|
|
6704
6692
|
disabled = _ref.disabled,
|
|
@@ -6708,7 +6696,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6708
6696
|
as = _ref.as,
|
|
6709
6697
|
eventKey = _ref.eventKey,
|
|
6710
6698
|
onClick = _ref.onClick,
|
|
6711
|
-
props = _objectWithoutPropertiesLoose
|
|
6699
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6712
6700
|
|
|
6713
6701
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6714
6702
|
var handleClick = useCallback(function (event) {
|
|
@@ -6720,7 +6708,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6720
6708
|
|
|
6721
6709
|
if (onClick) onClick(event);
|
|
6722
6710
|
}, [disabled, onClick]);
|
|
6723
|
-
return /*#__PURE__*/
|
|
6711
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({
|
|
6724
6712
|
ref: ref
|
|
6725
6713
|
}, props, {
|
|
6726
6714
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6738,7 +6726,7 @@ var defaultProps$p = {
|
|
|
6738
6726
|
variant: undefined,
|
|
6739
6727
|
horizontal: undefined
|
|
6740
6728
|
};
|
|
6741
|
-
var ListGroup =
|
|
6729
|
+
var ListGroup = React.forwardRef(function (props, ref) {
|
|
6742
6730
|
var _useUncontrolled = useUncontrolled(props, {
|
|
6743
6731
|
activeKey: 'onSelect'
|
|
6744
6732
|
}),
|
|
@@ -6748,7 +6736,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6748
6736
|
horizontal = _useUncontrolled.horizontal,
|
|
6749
6737
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6750
6738
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6751
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6739
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6752
6740
|
|
|
6753
6741
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6754
6742
|
var horizontalVariant;
|
|
@@ -6760,7 +6748,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6760
6748
|
}
|
|
6761
6749
|
|
|
6762
6750
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6763
|
-
return /*#__PURE__*/
|
|
6751
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
6764
6752
|
ref: ref
|
|
6765
6753
|
}, controlledProps, {
|
|
6766
6754
|
as: as,
|
|
@@ -6772,16 +6760,16 @@ ListGroup.displayName = 'ListGroup';
|
|
|
6772
6760
|
ListGroup.Item = ListGroupItem;
|
|
6773
6761
|
|
|
6774
6762
|
var MediaBody = createWithBsPrefix('media-body');
|
|
6775
|
-
var Media =
|
|
6763
|
+
var Media = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
6776
6764
|
function (_ref, ref) {
|
|
6777
6765
|
var bsPrefix = _ref.bsPrefix,
|
|
6778
6766
|
className = _ref.className,
|
|
6779
6767
|
_ref$as = _ref.as,
|
|
6780
6768
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6781
|
-
props = _objectWithoutPropertiesLoose
|
|
6769
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6782
6770
|
|
|
6783
6771
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6784
|
-
return /*#__PURE__*/
|
|
6772
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
6785
6773
|
ref: ref,
|
|
6786
6774
|
className: classnames(className, prefix)
|
|
6787
6775
|
}));
|
|
@@ -7169,7 +7157,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7169
7157
|
renderDialog = _ref.renderDialog,
|
|
7170
7158
|
_ref$renderBackdrop = _ref.renderBackdrop,
|
|
7171
7159
|
renderBackdrop = _ref$renderBackdrop === void 0 ? function (props) {
|
|
7172
|
-
return /*#__PURE__*/
|
|
7160
|
+
return /*#__PURE__*/React.createElement("div", props);
|
|
7173
7161
|
} : _ref$renderBackdrop,
|
|
7174
7162
|
providedManager = _ref.manager,
|
|
7175
7163
|
containerRef = _ref.container,
|
|
@@ -7327,12 +7315,12 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7327
7315
|
tabIndex: -1
|
|
7328
7316
|
});
|
|
7329
7317
|
|
|
7330
|
-
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/
|
|
7318
|
+
var dialog = renderDialog ? renderDialog(dialogProps) : /*#__PURE__*/React.createElement("div", dialogProps, /*#__PURE__*/React.cloneElement(children, {
|
|
7331
7319
|
role: 'document'
|
|
7332
7320
|
}));
|
|
7333
7321
|
|
|
7334
7322
|
if (Transition) {
|
|
7335
|
-
dialog = /*#__PURE__*/
|
|
7323
|
+
dialog = /*#__PURE__*/React.createElement(Transition, {
|
|
7336
7324
|
appear: true,
|
|
7337
7325
|
unmountOnExit: true,
|
|
7338
7326
|
"in": !!show,
|
|
@@ -7355,14 +7343,14 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7355
7343
|
});
|
|
7356
7344
|
|
|
7357
7345
|
if (BackdropTransition) {
|
|
7358
|
-
backdropElement = /*#__PURE__*/
|
|
7346
|
+
backdropElement = /*#__PURE__*/React.createElement(BackdropTransition, {
|
|
7359
7347
|
appear: true,
|
|
7360
7348
|
"in": !!show
|
|
7361
7349
|
}, backdropElement);
|
|
7362
7350
|
}
|
|
7363
7351
|
}
|
|
7364
7352
|
|
|
7365
|
-
return /*#__PURE__*/
|
|
7353
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, backdropElement, dialog), container));
|
|
7366
7354
|
});
|
|
7367
7355
|
var propTypes$8 = {
|
|
7368
7356
|
/**
|
|
@@ -7601,12 +7589,12 @@ var BootstrapModalManager = /*#__PURE__*/function (_ModalManager) {
|
|
|
7601
7589
|
|
|
7602
7590
|
var ModalBody = createWithBsPrefix('modal-body');
|
|
7603
7591
|
|
|
7604
|
-
var ModalContext =
|
|
7592
|
+
var ModalContext = React.createContext({
|
|
7605
7593
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7606
7594
|
onHide: function onHide() {}
|
|
7607
7595
|
});
|
|
7608
7596
|
|
|
7609
|
-
var ModalDialog =
|
|
7597
|
+
var ModalDialog = React.forwardRef(function (_ref, ref) {
|
|
7610
7598
|
var bsPrefix = _ref.bsPrefix,
|
|
7611
7599
|
className = _ref.className,
|
|
7612
7600
|
contentClassName = _ref.contentClassName,
|
|
@@ -7614,14 +7602,14 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7614
7602
|
size = _ref.size,
|
|
7615
7603
|
children = _ref.children,
|
|
7616
7604
|
scrollable = _ref.scrollable,
|
|
7617
|
-
props = _objectWithoutPropertiesLoose
|
|
7605
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7618
7606
|
|
|
7619
7607
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7620
7608
|
var dialogClass = bsPrefix + "-dialog";
|
|
7621
|
-
return /*#__PURE__*/
|
|
7609
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
7622
7610
|
ref: ref,
|
|
7623
7611
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7624
|
-
}), /*#__PURE__*/
|
|
7612
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
7625
7613
|
className: classnames(bsPrefix + "-content", contentClassName)
|
|
7626
7614
|
}, children));
|
|
7627
7615
|
});
|
|
@@ -7633,14 +7621,14 @@ var defaultProps$q = {
|
|
|
7633
7621
|
closeLabel: 'Close',
|
|
7634
7622
|
closeButton: false
|
|
7635
7623
|
};
|
|
7636
|
-
var ModalHeader =
|
|
7624
|
+
var ModalHeader = React.forwardRef(function (_ref, ref) {
|
|
7637
7625
|
var bsPrefix = _ref.bsPrefix,
|
|
7638
7626
|
closeLabel = _ref.closeLabel,
|
|
7639
7627
|
closeButton = _ref.closeButton,
|
|
7640
7628
|
onHide = _ref.onHide,
|
|
7641
7629
|
className = _ref.className,
|
|
7642
7630
|
children = _ref.children,
|
|
7643
|
-
props = _objectWithoutPropertiesLoose
|
|
7631
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7644
7632
|
|
|
7645
7633
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7646
7634
|
var context = useContext(ModalContext);
|
|
@@ -7648,11 +7636,11 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7648
7636
|
if (context) context.onHide();
|
|
7649
7637
|
if (onHide) onHide();
|
|
7650
7638
|
});
|
|
7651
|
-
return /*#__PURE__*/
|
|
7639
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7652
7640
|
ref: ref
|
|
7653
7641
|
}, props, {
|
|
7654
7642
|
className: classnames(className, bsPrefix)
|
|
7655
|
-
}), children, closeButton && /*#__PURE__*/
|
|
7643
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
7656
7644
|
label: closeLabel,
|
|
7657
7645
|
onClick: handleClick
|
|
7658
7646
|
}));
|
|
@@ -7679,16 +7667,16 @@ var defaultProps$r = {
|
|
|
7679
7667
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
7680
7668
|
|
|
7681
7669
|
function DialogTransition(props) {
|
|
7682
|
-
return /*#__PURE__*/
|
|
7670
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7683
7671
|
}
|
|
7684
7672
|
|
|
7685
7673
|
function BackdropTransition(props) {
|
|
7686
|
-
return /*#__PURE__*/
|
|
7674
|
+
return /*#__PURE__*/React.createElement(Fade, props);
|
|
7687
7675
|
}
|
|
7688
7676
|
/* eslint-enable no-use-before-define */
|
|
7689
7677
|
|
|
7690
7678
|
|
|
7691
|
-
var Modal$1 =
|
|
7679
|
+
var Modal$1 = React.forwardRef(function (_ref, ref) {
|
|
7692
7680
|
var bsPrefix = _ref.bsPrefix,
|
|
7693
7681
|
className = _ref.className,
|
|
7694
7682
|
style = _ref.style,
|
|
@@ -7717,7 +7705,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7717
7705
|
onExited = _ref.onExited,
|
|
7718
7706
|
backdropClassName = _ref.backdropClassName,
|
|
7719
7707
|
propsManager = _ref.manager,
|
|
7720
|
-
props = _objectWithoutPropertiesLoose
|
|
7708
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7721
7709
|
|
|
7722
7710
|
var _useState = useState({}),
|
|
7723
7711
|
modalStyle = _useState[0],
|
|
@@ -7883,12 +7871,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7883
7871
|
};
|
|
7884
7872
|
|
|
7885
7873
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7886
|
-
return /*#__PURE__*/
|
|
7874
|
+
return /*#__PURE__*/React.createElement("div", _extends({}, backdropProps, {
|
|
7887
7875
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7888
7876
|
}));
|
|
7889
7877
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7890
7878
|
|
|
7891
|
-
var baseModalStyle = _extends
|
|
7879
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7892
7880
|
|
|
7893
7881
|
|
|
7894
7882
|
if (!animation) {
|
|
@@ -7896,7 +7884,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7896
7884
|
}
|
|
7897
7885
|
|
|
7898
7886
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7899
|
-
return /*#__PURE__*/
|
|
7887
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
7900
7888
|
role: "dialog"
|
|
7901
7889
|
}, dialogProps, {
|
|
7902
7890
|
style: baseModalStyle,
|
|
@@ -7904,7 +7892,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7904
7892
|
onClick: backdrop ? handleClick : undefined,
|
|
7905
7893
|
onMouseUp: handleMouseUp,
|
|
7906
7894
|
"aria-labelledby": ariaLabelledby
|
|
7907
|
-
}), /*#__PURE__*/
|
|
7895
|
+
}), /*#__PURE__*/React.createElement(Dialog, _extends({}, props, {
|
|
7908
7896
|
role: "document",
|
|
7909
7897
|
onMouseDown: handleDialogMouseDown,
|
|
7910
7898
|
className: dialogClassName,
|
|
@@ -7912,9 +7900,9 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7912
7900
|
}), children));
|
|
7913
7901
|
};
|
|
7914
7902
|
|
|
7915
|
-
return /*#__PURE__*/
|
|
7903
|
+
return /*#__PURE__*/React.createElement(ModalContext.Provider, {
|
|
7916
7904
|
value: modalContext
|
|
7917
|
-
}, /*#__PURE__*/
|
|
7905
|
+
}, /*#__PURE__*/React.createElement(BaseModal, {
|
|
7918
7906
|
show: show,
|
|
7919
7907
|
ref: setModalRef,
|
|
7920
7908
|
backdrop: backdrop,
|
|
@@ -7952,17 +7940,17 @@ Modal$1.Dialog = ModalDialog;
|
|
|
7952
7940
|
Modal$1.TRANSITION_DURATION = 300;
|
|
7953
7941
|
Modal$1.BACKDROP_TRANSITION_DURATION = 150;
|
|
7954
7942
|
|
|
7955
|
-
var NavItem =
|
|
7943
|
+
var NavItem = React.forwardRef( // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
7956
7944
|
function (_ref, ref) {
|
|
7957
7945
|
var bsPrefix = _ref.bsPrefix,
|
|
7958
7946
|
className = _ref.className,
|
|
7959
7947
|
children = _ref.children,
|
|
7960
7948
|
_ref$as = _ref.as,
|
|
7961
7949
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7962
|
-
props = _objectWithoutPropertiesLoose
|
|
7950
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7963
7951
|
|
|
7964
7952
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7965
|
-
return /*#__PURE__*/
|
|
7953
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
7966
7954
|
ref: ref,
|
|
7967
7955
|
className: classnames(className, bsPrefix)
|
|
7968
7956
|
}), children);
|
|
@@ -7973,7 +7961,7 @@ var defaultProps$s = {
|
|
|
7973
7961
|
disabled: false,
|
|
7974
7962
|
as: SafeAnchor
|
|
7975
7963
|
};
|
|
7976
|
-
var NavLink =
|
|
7964
|
+
var NavLink = React.forwardRef(function (_ref, ref) {
|
|
7977
7965
|
var bsPrefix = _ref.bsPrefix,
|
|
7978
7966
|
disabled = _ref.disabled,
|
|
7979
7967
|
className = _ref.className,
|
|
@@ -7981,10 +7969,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7981
7969
|
eventKey = _ref.eventKey,
|
|
7982
7970
|
onSelect = _ref.onSelect,
|
|
7983
7971
|
as = _ref.as,
|
|
7984
|
-
props = _objectWithoutPropertiesLoose
|
|
7972
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7985
7973
|
|
|
7986
7974
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7987
|
-
return /*#__PURE__*/
|
|
7975
|
+
return /*#__PURE__*/React.createElement(AbstractNavItem, _extends({}, props, {
|
|
7988
7976
|
href: href,
|
|
7989
7977
|
ref: ref,
|
|
7990
7978
|
eventKey: eventKey,
|
|
@@ -8001,7 +7989,7 @@ var defaultProps$t = {
|
|
|
8001
7989
|
justify: false,
|
|
8002
7990
|
fill: false
|
|
8003
7991
|
};
|
|
8004
|
-
var Nav =
|
|
7992
|
+
var Nav = React.forwardRef(function (uncontrolledProps, ref) {
|
|
8005
7993
|
var _classNames;
|
|
8006
7994
|
|
|
8007
7995
|
var _useUncontrolled = useUncontrolled(uncontrolledProps, {
|
|
@@ -8017,7 +8005,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8017
8005
|
className = _useUncontrolled.className,
|
|
8018
8006
|
children = _useUncontrolled.children,
|
|
8019
8007
|
activeKey = _useUncontrolled.activeKey,
|
|
8020
|
-
props = _objectWithoutPropertiesLoose
|
|
8008
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8021
8009
|
|
|
8022
8010
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8023
8011
|
var navbarBsPrefix;
|
|
@@ -8033,7 +8021,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8033
8021
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8034
8022
|
}
|
|
8035
8023
|
|
|
8036
|
-
return /*#__PURE__*/
|
|
8024
|
+
return /*#__PURE__*/React.createElement(AbstractNav, _extends({
|
|
8037
8025
|
as: as,
|
|
8038
8026
|
ref: ref,
|
|
8039
8027
|
activeKey: activeKey,
|
|
@@ -8045,31 +8033,31 @@ Nav.defaultProps = defaultProps$t;
|
|
|
8045
8033
|
Nav.Item = NavItem;
|
|
8046
8034
|
Nav.Link = NavLink;
|
|
8047
8035
|
|
|
8048
|
-
var NavbarBrand =
|
|
8036
|
+
var NavbarBrand = React.forwardRef(function (_ref, ref) {
|
|
8049
8037
|
var bsPrefix = _ref.bsPrefix,
|
|
8050
8038
|
className = _ref.className,
|
|
8051
8039
|
as = _ref.as,
|
|
8052
|
-
props = _objectWithoutPropertiesLoose
|
|
8040
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8053
8041
|
|
|
8054
8042
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8055
8043
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8056
|
-
return /*#__PURE__*/
|
|
8044
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8057
8045
|
ref: ref,
|
|
8058
8046
|
className: classnames(className, bsPrefix)
|
|
8059
8047
|
}));
|
|
8060
8048
|
});
|
|
8061
8049
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
8062
8050
|
|
|
8063
|
-
var NavbarCollapse =
|
|
8051
|
+
var NavbarCollapse = React.forwardRef(function (_ref, ref) {
|
|
8064
8052
|
var children = _ref.children,
|
|
8065
8053
|
bsPrefix = _ref.bsPrefix,
|
|
8066
|
-
props = _objectWithoutPropertiesLoose
|
|
8054
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8067
8055
|
|
|
8068
8056
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8069
|
-
return /*#__PURE__*/
|
|
8070
|
-
return /*#__PURE__*/
|
|
8057
|
+
return /*#__PURE__*/React.createElement(context$2.Consumer, null, function (context) {
|
|
8058
|
+
return /*#__PURE__*/React.createElement(Collapse, _extends({
|
|
8071
8059
|
in: !!(context && context.expanded)
|
|
8072
|
-
}, props), /*#__PURE__*/
|
|
8060
|
+
}, props), /*#__PURE__*/React.createElement("div", {
|
|
8073
8061
|
ref: ref,
|
|
8074
8062
|
className: bsPrefix
|
|
8075
8063
|
}, children));
|
|
@@ -8080,7 +8068,7 @@ NavbarCollapse.displayName = 'NavbarCollapse';
|
|
|
8080
8068
|
var defaultProps$u = {
|
|
8081
8069
|
label: 'Toggle navigation'
|
|
8082
8070
|
};
|
|
8083
|
-
var NavbarToggle =
|
|
8071
|
+
var NavbarToggle = React.forwardRef(function (_ref, ref) {
|
|
8084
8072
|
var bsPrefix = _ref.bsPrefix,
|
|
8085
8073
|
className = _ref.className,
|
|
8086
8074
|
children = _ref.children,
|
|
@@ -8088,7 +8076,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8088
8076
|
_ref$as = _ref.as,
|
|
8089
8077
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8090
8078
|
onClick = _ref.onClick,
|
|
8091
|
-
props = _objectWithoutPropertiesLoose
|
|
8079
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8092
8080
|
|
|
8093
8081
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8094
8082
|
|
|
@@ -8105,12 +8093,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8105
8093
|
props.type = 'button';
|
|
8106
8094
|
}
|
|
8107
8095
|
|
|
8108
|
-
return /*#__PURE__*/
|
|
8096
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, props, {
|
|
8109
8097
|
ref: ref,
|
|
8110
8098
|
onClick: handleClick,
|
|
8111
8099
|
"aria-label": label,
|
|
8112
8100
|
className: classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8113
|
-
}), children || /*#__PURE__*/
|
|
8101
|
+
}), children || /*#__PURE__*/React.createElement("span", {
|
|
8114
8102
|
className: bsPrefix + "-icon"
|
|
8115
8103
|
}));
|
|
8116
8104
|
});
|
|
@@ -8125,7 +8113,7 @@ var defaultProps$v = {
|
|
|
8125
8113
|
variant: 'light',
|
|
8126
8114
|
collapseOnSelect: false
|
|
8127
8115
|
};
|
|
8128
|
-
var Navbar =
|
|
8116
|
+
var Navbar = React.forwardRef(function (props, ref) {
|
|
8129
8117
|
var _useUncontrolled = useUncontrolled(props, {
|
|
8130
8118
|
expanded: 'onToggle'
|
|
8131
8119
|
}),
|
|
@@ -8143,7 +8131,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8143
8131
|
_onToggle = _useUncontrolled.onToggle,
|
|
8144
8132
|
onSelect = _useUncontrolled.onSelect,
|
|
8145
8133
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8146
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8134
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8147
8135
|
|
|
8148
8136
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8149
8137
|
var handleCollapse = useCallback(function () {
|
|
@@ -8173,11 +8161,11 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8173
8161
|
expanded: !!expanded
|
|
8174
8162
|
};
|
|
8175
8163
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8176
|
-
return /*#__PURE__*/
|
|
8164
|
+
return /*#__PURE__*/React.createElement(context$2.Provider, {
|
|
8177
8165
|
value: navbarContext
|
|
8178
|
-
}, /*#__PURE__*/
|
|
8166
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
8179
8167
|
value: handleCollapse
|
|
8180
|
-
}, /*#__PURE__*/
|
|
8168
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8181
8169
|
ref: ref
|
|
8182
8170
|
}, controlledProps, {
|
|
8183
8171
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8226,7 +8214,7 @@ var propTypes$9 = {
|
|
|
8226
8214
|
/** @ignore */
|
|
8227
8215
|
bsPrefix: PropTypes.string
|
|
8228
8216
|
};
|
|
8229
|
-
var NavDropdown =
|
|
8217
|
+
var NavDropdown = React.forwardRef(function (_ref, ref) {
|
|
8230
8218
|
var id = _ref.id,
|
|
8231
8219
|
title = _ref.title,
|
|
8232
8220
|
children = _ref.children,
|
|
@@ -8236,20 +8224,20 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8236
8224
|
disabled = _ref.disabled,
|
|
8237
8225
|
active = _ref.active,
|
|
8238
8226
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8239
|
-
props = _objectWithoutPropertiesLoose
|
|
8227
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8240
8228
|
|
|
8241
|
-
return /*#__PURE__*/
|
|
8229
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8242
8230
|
ref: ref
|
|
8243
8231
|
}, props, {
|
|
8244
8232
|
as: NavItem
|
|
8245
|
-
}), /*#__PURE__*/
|
|
8233
|
+
}), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8246
8234
|
id: id,
|
|
8247
8235
|
eventKey: null,
|
|
8248
8236
|
active: active,
|
|
8249
8237
|
disabled: disabled,
|
|
8250
8238
|
childBsPrefix: bsPrefix,
|
|
8251
8239
|
as: NavLink
|
|
8252
|
-
}, title), /*#__PURE__*/
|
|
8240
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8253
8241
|
role: menuRole,
|
|
8254
8242
|
renderOnMount: renderMenuOnMount,
|
|
8255
8243
|
rootCloseEvent: rootCloseEvent
|
|
@@ -8266,7 +8254,7 @@ NavDropdown.Header = Dropdown$1.Header;
|
|
|
8266
8254
|
* Built on top of `Popper.js`, the overlay component is
|
|
8267
8255
|
* great for custom tooltip overlays.
|
|
8268
8256
|
*/
|
|
8269
|
-
var Overlay = /*#__PURE__*/
|
|
8257
|
+
var Overlay = /*#__PURE__*/React.forwardRef(function (props, outerRef) {
|
|
8270
8258
|
var flip = props.flip,
|
|
8271
8259
|
offset = props.offset,
|
|
8272
8260
|
placement = props.placement,
|
|
@@ -8349,7 +8337,7 @@ var Overlay = /*#__PURE__*/React__default.forwardRef(function (props, outerRef)
|
|
|
8349
8337
|
onEnter = props.onEnter,
|
|
8350
8338
|
onEntering = props.onEntering,
|
|
8351
8339
|
onEntered = props.onEntered;
|
|
8352
|
-
child = /*#__PURE__*/
|
|
8340
|
+
child = /*#__PURE__*/React.createElement(Transition, {
|
|
8353
8341
|
"in": props.show,
|
|
8354
8342
|
appear: true,
|
|
8355
8343
|
onExit: onExit,
|
|
@@ -8515,34 +8503,34 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8515
8503
|
};
|
|
8516
8504
|
|
|
8517
8505
|
return RefHolder;
|
|
8518
|
-
}(
|
|
8506
|
+
}(React.Component);
|
|
8519
8507
|
|
|
8520
8508
|
var defaultProps$w = {
|
|
8521
8509
|
active: false,
|
|
8522
8510
|
disabled: false,
|
|
8523
8511
|
activeLabel: '(current)'
|
|
8524
8512
|
};
|
|
8525
|
-
var PageItem =
|
|
8513
|
+
var PageItem = React.forwardRef(function (_ref, ref) {
|
|
8526
8514
|
var active = _ref.active,
|
|
8527
8515
|
disabled = _ref.disabled,
|
|
8528
8516
|
className = _ref.className,
|
|
8529
8517
|
style = _ref.style,
|
|
8530
8518
|
activeLabel = _ref.activeLabel,
|
|
8531
8519
|
children = _ref.children,
|
|
8532
|
-
props = _objectWithoutPropertiesLoose
|
|
8520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8533
8521
|
|
|
8534
8522
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8535
|
-
return /*#__PURE__*/
|
|
8523
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
8536
8524
|
ref: ref,
|
|
8537
8525
|
style: style,
|
|
8538
8526
|
className: classnames(className, 'page-item', {
|
|
8539
8527
|
active: active,
|
|
8540
8528
|
disabled: disabled
|
|
8541
8529
|
})
|
|
8542
|
-
}, /*#__PURE__*/
|
|
8530
|
+
}, /*#__PURE__*/React.createElement(Component, _extends({
|
|
8543
8531
|
className: "page-link",
|
|
8544
8532
|
disabled: disabled
|
|
8545
|
-
}, props), children, active && activeLabel && /*#__PURE__*/
|
|
8533
|
+
}, props), children, active && activeLabel && /*#__PURE__*/React.createElement("span", {
|
|
8546
8534
|
className: "sr-only"
|
|
8547
8535
|
}, activeLabel)));
|
|
8548
8536
|
});
|
|
@@ -8556,11 +8544,11 @@ function createButton(name, defaultValue, label) {
|
|
|
8556
8544
|
|
|
8557
8545
|
function Button(_ref2) {
|
|
8558
8546
|
var children = _ref2.children,
|
|
8559
|
-
props = _objectWithoutPropertiesLoose
|
|
8547
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8560
8548
|
|
|
8561
|
-
return /*#__PURE__*/
|
|
8549
|
+
return /*#__PURE__*/React.createElement(PageItem, props, /*#__PURE__*/React.createElement("span", {
|
|
8562
8550
|
"aria-hidden": "true"
|
|
8563
|
-
}, children || defaultValue), /*#__PURE__*/
|
|
8551
|
+
}, children || defaultValue), /*#__PURE__*/React.createElement("span", {
|
|
8564
8552
|
className: "sr-only"
|
|
8565
8553
|
}, label));
|
|
8566
8554
|
}
|
|
@@ -8583,15 +8571,15 @@ var Last = createButton('Last', '»');
|
|
|
8583
8571
|
* @property {PageItem} Next
|
|
8584
8572
|
* @property {PageItem} Last
|
|
8585
8573
|
*/
|
|
8586
|
-
var Pagination =
|
|
8574
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
8587
8575
|
var bsPrefix = _ref.bsPrefix,
|
|
8588
8576
|
className = _ref.className,
|
|
8589
8577
|
children = _ref.children,
|
|
8590
8578
|
size = _ref.size,
|
|
8591
|
-
props = _objectWithoutPropertiesLoose
|
|
8579
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8592
8580
|
|
|
8593
8581
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8594
|
-
return /*#__PURE__*/
|
|
8582
|
+
return /*#__PURE__*/React.createElement("ul", _extends({
|
|
8595
8583
|
ref: ref
|
|
8596
8584
|
}, props, {
|
|
8597
8585
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8604,32 +8592,32 @@ Pagination.Item = PageItem;
|
|
|
8604
8592
|
Pagination.Next = Next;
|
|
8605
8593
|
Pagination.Last = Last;
|
|
8606
8594
|
|
|
8607
|
-
var PopoverTitle =
|
|
8595
|
+
var PopoverTitle = React.forwardRef(function (_ref, ref) {
|
|
8608
8596
|
var _ref$as = _ref.as,
|
|
8609
8597
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8610
8598
|
bsPrefix = _ref.bsPrefix,
|
|
8611
8599
|
className = _ref.className,
|
|
8612
8600
|
children = _ref.children,
|
|
8613
|
-
props = _objectWithoutPropertiesLoose
|
|
8601
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8614
8602
|
|
|
8615
8603
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8616
|
-
return /*#__PURE__*/
|
|
8604
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8617
8605
|
ref: ref
|
|
8618
8606
|
}, props, {
|
|
8619
8607
|
className: classnames(bsPrefix, className)
|
|
8620
8608
|
}), children);
|
|
8621
8609
|
});
|
|
8622
8610
|
|
|
8623
|
-
var PopoverContent =
|
|
8611
|
+
var PopoverContent = React.forwardRef(function (_ref, ref) {
|
|
8624
8612
|
var _ref$as = _ref.as,
|
|
8625
8613
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8626
8614
|
bsPrefix = _ref.bsPrefix,
|
|
8627
8615
|
className = _ref.className,
|
|
8628
8616
|
children = _ref.children,
|
|
8629
|
-
props = _objectWithoutPropertiesLoose
|
|
8617
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8630
8618
|
|
|
8631
8619
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8632
|
-
return /*#__PURE__*/
|
|
8620
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8633
8621
|
ref: ref
|
|
8634
8622
|
}, props, {
|
|
8635
8623
|
className: classnames(className, bsPrefix)
|
|
@@ -8639,7 +8627,7 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8639
8627
|
var defaultProps$x = {
|
|
8640
8628
|
placement: 'right'
|
|
8641
8629
|
};
|
|
8642
|
-
var Popover =
|
|
8630
|
+
var Popover = React.forwardRef(function (_ref, ref) {
|
|
8643
8631
|
var bsPrefix = _ref.bsPrefix,
|
|
8644
8632
|
placement = _ref.placement,
|
|
8645
8633
|
className = _ref.className,
|
|
@@ -8649,22 +8637,22 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8649
8637
|
arrowProps = _ref.arrowProps,
|
|
8650
8638
|
_ = _ref.popper,
|
|
8651
8639
|
_1 = _ref.show,
|
|
8652
|
-
props = _objectWithoutPropertiesLoose
|
|
8640
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8653
8641
|
|
|
8654
8642
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8655
8643
|
|
|
8656
8644
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8657
8645
|
primaryPlacement = _ref2[0];
|
|
8658
8646
|
|
|
8659
|
-
return /*#__PURE__*/
|
|
8647
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8660
8648
|
ref: ref,
|
|
8661
8649
|
role: "tooltip",
|
|
8662
8650
|
style: style,
|
|
8663
8651
|
"x-placement": primaryPlacement,
|
|
8664
8652
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8665
|
-
}, props), /*#__PURE__*/
|
|
8653
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
8666
8654
|
className: "arrow"
|
|
8667
|
-
}, arrowProps)), content ? /*#__PURE__*/
|
|
8655
|
+
}, arrowProps)), content ? /*#__PURE__*/React.createElement(PopoverContent, null, children) : children);
|
|
8668
8656
|
});
|
|
8669
8657
|
Popover.defaultProps = defaultProps$x;
|
|
8670
8658
|
Popover.Title = PopoverTitle;
|
|
@@ -8700,27 +8688,27 @@ function renderProgressBar(_ref, ref) {
|
|
|
8700
8688
|
style = _ref.style,
|
|
8701
8689
|
variant = _ref.variant,
|
|
8702
8690
|
bsPrefix = _ref.bsPrefix,
|
|
8703
|
-
props = _objectWithoutPropertiesLoose
|
|
8691
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8704
8692
|
|
|
8705
|
-
return /*#__PURE__*/
|
|
8693
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8706
8694
|
ref: ref
|
|
8707
8695
|
}, props, {
|
|
8708
8696
|
role: "progressbar",
|
|
8709
8697
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8710
|
-
style: _extends
|
|
8698
|
+
style: _extends({
|
|
8711
8699
|
width: getPercentage(now, min, max) + "%"
|
|
8712
8700
|
}, style),
|
|
8713
8701
|
"aria-valuenow": now,
|
|
8714
8702
|
"aria-valuemin": min,
|
|
8715
8703
|
"aria-valuemax": max
|
|
8716
|
-
}), srOnly ? /*#__PURE__*/
|
|
8704
|
+
}), srOnly ? /*#__PURE__*/React.createElement("span", {
|
|
8717
8705
|
className: "sr-only"
|
|
8718
8706
|
}, label) : label);
|
|
8719
8707
|
}
|
|
8720
8708
|
|
|
8721
|
-
var ProgressBar =
|
|
8709
|
+
var ProgressBar = React.forwardRef(function (_ref2, ref) {
|
|
8722
8710
|
var isChild = _ref2.isChild,
|
|
8723
|
-
props = _objectWithoutPropertiesLoose
|
|
8711
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8724
8712
|
|
|
8725
8713
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8726
8714
|
|
|
@@ -8739,9 +8727,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8739
8727
|
variant = props.variant,
|
|
8740
8728
|
className = props.className,
|
|
8741
8729
|
children = props.children,
|
|
8742
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8730
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8743
8731
|
|
|
8744
|
-
return /*#__PURE__*/
|
|
8732
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8745
8733
|
ref: ref
|
|
8746
8734
|
}, wrapperProps, {
|
|
8747
8735
|
className: classnames(className, bsPrefix)
|
|
@@ -8767,20 +8755,20 @@ ProgressBar.defaultProps = defaultProps$y;
|
|
|
8767
8755
|
var defaultProps$z = {
|
|
8768
8756
|
aspectRatio: '1by1'
|
|
8769
8757
|
};
|
|
8770
|
-
var ResponsiveEmbed =
|
|
8758
|
+
var ResponsiveEmbed = React.forwardRef(function (_ref, ref) {
|
|
8771
8759
|
var bsPrefix = _ref.bsPrefix,
|
|
8772
8760
|
className = _ref.className,
|
|
8773
8761
|
children = _ref.children,
|
|
8774
8762
|
aspectRatio = _ref.aspectRatio,
|
|
8775
|
-
props = _objectWithoutPropertiesLoose
|
|
8763
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8776
8764
|
|
|
8777
8765
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8778
|
-
var child =
|
|
8779
|
-
return /*#__PURE__*/
|
|
8766
|
+
var child = React.Children.only(children);
|
|
8767
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
8780
8768
|
ref: ref
|
|
8781
8769
|
}, props, {
|
|
8782
8770
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8783
|
-
}),
|
|
8771
|
+
}), React.cloneElement(child, {
|
|
8784
8772
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8785
8773
|
}));
|
|
8786
8774
|
});
|
|
@@ -8790,13 +8778,13 @@ var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
|
8790
8778
|
var defaultProps$A = {
|
|
8791
8779
|
noGutters: false
|
|
8792
8780
|
};
|
|
8793
|
-
var Row =
|
|
8781
|
+
var Row = React.forwardRef(function (_ref, ref) {
|
|
8794
8782
|
var bsPrefix = _ref.bsPrefix,
|
|
8795
8783
|
className = _ref.className,
|
|
8796
8784
|
noGutters = _ref.noGutters,
|
|
8797
8785
|
_ref$as = _ref.as,
|
|
8798
8786
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8799
|
-
props = _objectWithoutPropertiesLoose
|
|
8787
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8800
8788
|
|
|
8801
8789
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8802
8790
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8815,7 +8803,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8815
8803
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8816
8804
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8817
8805
|
});
|
|
8818
|
-
return /*#__PURE__*/
|
|
8806
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8819
8807
|
ref: ref
|
|
8820
8808
|
}, props, {
|
|
8821
8809
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8824,7 +8812,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8824
8812
|
Row.displayName = 'Row';
|
|
8825
8813
|
Row.defaultProps = defaultProps$A;
|
|
8826
8814
|
|
|
8827
|
-
var Spinner =
|
|
8815
|
+
var Spinner = React.forwardRef(function (_ref, ref) {
|
|
8828
8816
|
var bsPrefix = _ref.bsPrefix,
|
|
8829
8817
|
variant = _ref.variant,
|
|
8830
8818
|
animation = _ref.animation,
|
|
@@ -8833,11 +8821,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8833
8821
|
_ref$as = _ref.as,
|
|
8834
8822
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8835
8823
|
className = _ref.className,
|
|
8836
|
-
props = _objectWithoutPropertiesLoose
|
|
8824
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8837
8825
|
|
|
8838
8826
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8839
8827
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8840
|
-
return /*#__PURE__*/
|
|
8828
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
8841
8829
|
ref: ref
|
|
8842
8830
|
}, props, {
|
|
8843
8831
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8911,7 +8899,7 @@ var defaultProps$B = {
|
|
|
8911
8899
|
toggleLabel: 'Toggle dropdown',
|
|
8912
8900
|
type: 'button'
|
|
8913
8901
|
};
|
|
8914
|
-
var SplitButton =
|
|
8902
|
+
var SplitButton = React.forwardRef(function (_ref, ref) {
|
|
8915
8903
|
var id = _ref.id,
|
|
8916
8904
|
bsPrefix = _ref.bsPrefix,
|
|
8917
8905
|
size = _ref.size,
|
|
@@ -8927,13 +8915,13 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8927
8915
|
menuRole = _ref.menuRole,
|
|
8928
8916
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8929
8917
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8930
|
-
props = _objectWithoutPropertiesLoose
|
|
8918
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8931
8919
|
|
|
8932
|
-
return /*#__PURE__*/
|
|
8920
|
+
return /*#__PURE__*/React.createElement(Dropdown$1, _extends({
|
|
8933
8921
|
ref: ref
|
|
8934
8922
|
}, props, {
|
|
8935
8923
|
as: ButtonGroup
|
|
8936
|
-
}), /*#__PURE__*/
|
|
8924
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
8937
8925
|
size: size,
|
|
8938
8926
|
variant: variant,
|
|
8939
8927
|
disabled: props.disabled,
|
|
@@ -8942,16 +8930,16 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8942
8930
|
target: target,
|
|
8943
8931
|
onClick: onClick,
|
|
8944
8932
|
type: type
|
|
8945
|
-
}, title), /*#__PURE__*/
|
|
8933
|
+
}, title), /*#__PURE__*/React.createElement(Dropdown$1.Toggle, {
|
|
8946
8934
|
split: true,
|
|
8947
8935
|
id: id ? id.toString() : undefined,
|
|
8948
8936
|
size: size,
|
|
8949
8937
|
variant: variant,
|
|
8950
8938
|
disabled: props.disabled,
|
|
8951
8939
|
childBsPrefix: bsPrefix
|
|
8952
|
-
}, /*#__PURE__*/
|
|
8940
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
8953
8941
|
className: "sr-only"
|
|
8954
|
-
}, toggleLabel)), /*#__PURE__*/
|
|
8942
|
+
}, toggleLabel)), /*#__PURE__*/React.createElement(Dropdown$1.Menu, {
|
|
8955
8943
|
align: menuAlign,
|
|
8956
8944
|
role: menuRole,
|
|
8957
8945
|
renderOnMount: renderMenuOnMount,
|
|
@@ -8995,22 +8983,22 @@ var TabContainer = function TabContainer(props) {
|
|
|
8995
8983
|
}
|
|
8996
8984
|
};
|
|
8997
8985
|
}, [onSelect, activeKey, transition, mountOnEnter, unmountOnExit, generateChildId]);
|
|
8998
|
-
return /*#__PURE__*/
|
|
8986
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
8999
8987
|
value: tabContext
|
|
9000
|
-
}, /*#__PURE__*/
|
|
8988
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9001
8989
|
value: onSelect || null
|
|
9002
8990
|
}, children));
|
|
9003
8991
|
};
|
|
9004
8992
|
|
|
9005
|
-
var TabContent =
|
|
8993
|
+
var TabContent = React.forwardRef(function (_ref, ref) {
|
|
9006
8994
|
var bsPrefix = _ref.bsPrefix,
|
|
9007
8995
|
_ref$as = _ref.as,
|
|
9008
8996
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9009
8997
|
className = _ref.className,
|
|
9010
|
-
props = _objectWithoutPropertiesLoose
|
|
8998
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9011
8999
|
|
|
9012
9000
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9013
|
-
return /*#__PURE__*/
|
|
9001
|
+
return /*#__PURE__*/React.createElement(Component, _extends({
|
|
9014
9002
|
ref: ref
|
|
9015
9003
|
}, props, {
|
|
9016
9004
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9024,11 +9012,11 @@ function useTabContext(props) {
|
|
|
9024
9012
|
var activeKey = context.activeKey,
|
|
9025
9013
|
getControlledId = context.getControlledId,
|
|
9026
9014
|
getControllerId = context.getControllerId,
|
|
9027
|
-
rest = _objectWithoutPropertiesLoose
|
|
9015
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9028
9016
|
|
|
9029
9017
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9030
9018
|
var key = makeEventKey(props.eventKey);
|
|
9031
|
-
return _extends
|
|
9019
|
+
return _extends({}, props, {
|
|
9032
9020
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9033
9021
|
id: getControlledId(props.eventKey),
|
|
9034
9022
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9038,7 +9026,7 @@ function useTabContext(props) {
|
|
|
9038
9026
|
});
|
|
9039
9027
|
}
|
|
9040
9028
|
|
|
9041
|
-
var TabPane =
|
|
9029
|
+
var TabPane = React.forwardRef(function (props, ref) {
|
|
9042
9030
|
var _useTabContext = useTabContext(props),
|
|
9043
9031
|
bsPrefix = _useTabContext.bsPrefix,
|
|
9044
9032
|
className = _useTabContext.className,
|
|
@@ -9055,11 +9043,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9055
9043
|
_useTabContext$as = _useTabContext.as,
|
|
9056
9044
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9057
9045
|
_ = _useTabContext.eventKey,
|
|
9058
|
-
rest = _objectWithoutPropertiesLoose
|
|
9046
|
+
rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9059
9047
|
|
|
9060
9048
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9061
9049
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9062
|
-
var pane = /*#__PURE__*/
|
|
9050
|
+
var pane = /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
9063
9051
|
ref: ref,
|
|
9064
9052
|
role: "tabpanel",
|
|
9065
9053
|
"aria-hidden": !active,
|
|
@@ -9067,7 +9055,7 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9067
9055
|
active: active
|
|
9068
9056
|
})
|
|
9069
9057
|
}));
|
|
9070
|
-
if (Transition) pane = /*#__PURE__*/
|
|
9058
|
+
if (Transition) pane = /*#__PURE__*/React.createElement(Transition, {
|
|
9071
9059
|
in: active,
|
|
9072
9060
|
onEnter: onEnter,
|
|
9073
9061
|
onEntering: onEntering,
|
|
@@ -9080,9 +9068,9 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9080
9068
|
}, pane); // We provide an empty the TabContext so `<Nav>`s in `<TabPane>`s don't
|
|
9081
9069
|
// conflict with the top level one.
|
|
9082
9070
|
|
|
9083
|
-
return /*#__PURE__*/
|
|
9071
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
9084
9072
|
value: null
|
|
9085
|
-
}, /*#__PURE__*/
|
|
9073
|
+
}, /*#__PURE__*/React.createElement(SelectableContext.Provider, {
|
|
9086
9074
|
value: null
|
|
9087
9075
|
}, pane));
|
|
9088
9076
|
});
|
|
@@ -9103,13 +9091,13 @@ var Tab = /*#__PURE__*/function (_React$Component) {
|
|
|
9103
9091
|
};
|
|
9104
9092
|
|
|
9105
9093
|
return Tab;
|
|
9106
|
-
}(
|
|
9094
|
+
}(React.Component);
|
|
9107
9095
|
|
|
9108
9096
|
Tab.Container = TabContainer;
|
|
9109
9097
|
Tab.Content = TabContent;
|
|
9110
9098
|
Tab.Pane = TabPane;
|
|
9111
9099
|
|
|
9112
|
-
var Table =
|
|
9100
|
+
var Table = React.forwardRef(function (_ref, ref) {
|
|
9113
9101
|
var bsPrefix = _ref.bsPrefix,
|
|
9114
9102
|
className = _ref.className,
|
|
9115
9103
|
striped = _ref.striped,
|
|
@@ -9119,11 +9107,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9119
9107
|
size = _ref.size,
|
|
9120
9108
|
variant = _ref.variant,
|
|
9121
9109
|
responsive = _ref.responsive,
|
|
9122
|
-
props = _objectWithoutPropertiesLoose
|
|
9110
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9123
9111
|
|
|
9124
9112
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9125
9113
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9126
|
-
var table = /*#__PURE__*/
|
|
9114
|
+
var table = /*#__PURE__*/React.createElement("table", _extends({}, props, {
|
|
9127
9115
|
className: classes,
|
|
9128
9116
|
ref: ref
|
|
9129
9117
|
}));
|
|
@@ -9135,7 +9123,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9135
9123
|
responsiveClass = responsiveClass + "-" + responsive;
|
|
9136
9124
|
}
|
|
9137
9125
|
|
|
9138
|
-
return /*#__PURE__*/
|
|
9126
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9139
9127
|
className: responsiveClass
|
|
9140
9128
|
}, table);
|
|
9141
9129
|
}
|
|
@@ -9143,7 +9131,7 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9143
9131
|
return table;
|
|
9144
9132
|
});
|
|
9145
9133
|
|
|
9146
|
-
var ToastContext =
|
|
9134
|
+
var ToastContext = React.createContext({
|
|
9147
9135
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
9148
9136
|
onClose: function onClose() {}
|
|
9149
9137
|
});
|
|
@@ -9152,13 +9140,13 @@ var defaultProps$C = {
|
|
|
9152
9140
|
closeLabel: 'Close',
|
|
9153
9141
|
closeButton: true
|
|
9154
9142
|
};
|
|
9155
|
-
var ToastHeader =
|
|
9143
|
+
var ToastHeader = React.forwardRef(function (_ref, ref) {
|
|
9156
9144
|
var bsPrefix = _ref.bsPrefix,
|
|
9157
9145
|
closeLabel = _ref.closeLabel,
|
|
9158
9146
|
closeButton = _ref.closeButton,
|
|
9159
9147
|
className = _ref.className,
|
|
9160
9148
|
children = _ref.children,
|
|
9161
|
-
props = _objectWithoutPropertiesLoose
|
|
9149
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9162
9150
|
|
|
9163
9151
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9164
9152
|
var context = useContext(ToastContext);
|
|
@@ -9167,11 +9155,11 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9167
9155
|
context.onClose(e);
|
|
9168
9156
|
}
|
|
9169
9157
|
});
|
|
9170
|
-
return /*#__PURE__*/
|
|
9158
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9171
9159
|
ref: ref
|
|
9172
9160
|
}, props, {
|
|
9173
9161
|
className: classnames(bsPrefix, className)
|
|
9174
|
-
}), children, closeButton && /*#__PURE__*/
|
|
9162
|
+
}), children, closeButton && /*#__PURE__*/React.createElement(CloseButton, {
|
|
9175
9163
|
label: closeLabel,
|
|
9176
9164
|
onClick: handleClick,
|
|
9177
9165
|
className: "ml-2 mb-1",
|
|
@@ -9183,7 +9171,7 @@ ToastHeader.defaultProps = defaultProps$C;
|
|
|
9183
9171
|
|
|
9184
9172
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9185
9173
|
|
|
9186
|
-
var Toast =
|
|
9174
|
+
var Toast = React.forwardRef(function (_ref, ref) {
|
|
9187
9175
|
var bsPrefix = _ref.bsPrefix,
|
|
9188
9176
|
className = _ref.className,
|
|
9189
9177
|
children = _ref.children,
|
|
@@ -9198,7 +9186,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9198
9186
|
_ref$autohide = _ref.autohide,
|
|
9199
9187
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9200
9188
|
onClose = _ref.onClose,
|
|
9201
|
-
props = _objectWithoutPropertiesLoose
|
|
9189
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9202
9190
|
|
|
9203
9191
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9204
9192
|
// timer in case these values change.
|
|
@@ -9226,16 +9214,16 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9226
9214
|
};
|
|
9227
9215
|
}, [onClose]);
|
|
9228
9216
|
var hasAnimation = !!(Transition && animation);
|
|
9229
|
-
var toast = /*#__PURE__*/
|
|
9217
|
+
var toast = /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
9230
9218
|
ref: ref,
|
|
9231
9219
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9232
9220
|
role: "alert",
|
|
9233
9221
|
"aria-live": "assertive",
|
|
9234
9222
|
"aria-atomic": "true"
|
|
9235
9223
|
}), children);
|
|
9236
|
-
return /*#__PURE__*/
|
|
9224
|
+
return /*#__PURE__*/React.createElement(ToastContext.Provider, {
|
|
9237
9225
|
value: toastContext
|
|
9238
|
-
}, hasAnimation && Transition ? /*#__PURE__*/
|
|
9226
|
+
}, hasAnimation && Transition ? /*#__PURE__*/React.createElement(Transition, {
|
|
9239
9227
|
in: show,
|
|
9240
9228
|
unmountOnExit: true
|
|
9241
9229
|
}, toast) : toast);
|
|
@@ -9250,7 +9238,7 @@ var noop$5 = function noop() {
|
|
|
9250
9238
|
return undefined;
|
|
9251
9239
|
};
|
|
9252
9240
|
|
|
9253
|
-
var ToggleButton =
|
|
9241
|
+
var ToggleButton = React.forwardRef(function (_ref, ref) {
|
|
9254
9242
|
var children = _ref.children,
|
|
9255
9243
|
name = _ref.name,
|
|
9256
9244
|
className = _ref.className,
|
|
@@ -9260,7 +9248,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9260
9248
|
value = _ref.value,
|
|
9261
9249
|
disabled = _ref.disabled,
|
|
9262
9250
|
inputRef = _ref.inputRef,
|
|
9263
|
-
props = _objectWithoutPropertiesLoose
|
|
9251
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9264
9252
|
|
|
9265
9253
|
var _useState = useState(false),
|
|
9266
9254
|
focused = _useState[0],
|
|
@@ -9272,13 +9260,13 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9272
9260
|
var handleBlur = useCallback(function (e) {
|
|
9273
9261
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9274
9262
|
}, []);
|
|
9275
|
-
return /*#__PURE__*/
|
|
9263
|
+
return /*#__PURE__*/React.createElement(Button, _extends({}, props, {
|
|
9276
9264
|
ref: ref,
|
|
9277
9265
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9278
9266
|
type: undefined,
|
|
9279
9267
|
active: !!checked,
|
|
9280
9268
|
as: "label"
|
|
9281
|
-
}), /*#__PURE__*/
|
|
9269
|
+
}), /*#__PURE__*/React.createElement("input", {
|
|
9282
9270
|
name: name,
|
|
9283
9271
|
type: type,
|
|
9284
9272
|
value: value,
|
|
@@ -9297,7 +9285,7 @@ var defaultProps$D = {
|
|
|
9297
9285
|
type: 'radio',
|
|
9298
9286
|
vertical: false
|
|
9299
9287
|
};
|
|
9300
|
-
var ToggleButtonGroup =
|
|
9288
|
+
var ToggleButtonGroup = React.forwardRef(function (props, ref) {
|
|
9301
9289
|
var _useUncontrolled = useUncontrolled(props, {
|
|
9302
9290
|
value: 'onChange'
|
|
9303
9291
|
}),
|
|
@@ -9306,7 +9294,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9306
9294
|
name = _useUncontrolled.name,
|
|
9307
9295
|
value = _useUncontrolled.value,
|
|
9308
9296
|
onChange = _useUncontrolled.onChange,
|
|
9309
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9297
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9310
9298
|
|
|
9311
9299
|
var getValues = function getValues() {
|
|
9312
9300
|
return value == null ? [] : [].concat(value);
|
|
@@ -9335,7 +9323,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9335
9323
|
};
|
|
9336
9324
|
|
|
9337
9325
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9338
|
-
return /*#__PURE__*/
|
|
9326
|
+
return /*#__PURE__*/React.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9339
9327
|
ref: ref,
|
|
9340
9328
|
toggle: true
|
|
9341
9329
|
}), map(children, function (child) {
|
|
@@ -9348,7 +9336,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9348
9336
|
return handleToggle(childVal, e);
|
|
9349
9337
|
};
|
|
9350
9338
|
|
|
9351
|
-
return
|
|
9339
|
+
return React.cloneElement(child, {
|
|
9352
9340
|
type: type,
|
|
9353
9341
|
name: child.name || name,
|
|
9354
9342
|
checked: values.indexOf(childVal) !== -1,
|
|
@@ -9362,7 +9350,7 @@ ToggleButtonGroup.Button = ToggleButton;
|
|
|
9362
9350
|
var defaultProps$E = {
|
|
9363
9351
|
placement: 'right'
|
|
9364
9352
|
};
|
|
9365
|
-
var Tooltip =
|
|
9353
|
+
var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
9366
9354
|
var bsPrefix = _ref.bsPrefix,
|
|
9367
9355
|
placement = _ref.placement,
|
|
9368
9356
|
className = _ref.className,
|
|
@@ -9371,29 +9359,29 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9371
9359
|
arrowProps = _ref.arrowProps,
|
|
9372
9360
|
_ = _ref.popper,
|
|
9373
9361
|
_2 = _ref.show,
|
|
9374
|
-
props = _objectWithoutPropertiesLoose
|
|
9362
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9375
9363
|
|
|
9376
9364
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9377
9365
|
|
|
9378
9366
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9379
9367
|
primaryPlacement = _ref2[0];
|
|
9380
9368
|
|
|
9381
|
-
return /*#__PURE__*/
|
|
9369
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
9382
9370
|
ref: ref,
|
|
9383
9371
|
style: style,
|
|
9384
9372
|
role: "tooltip",
|
|
9385
9373
|
"x-placement": primaryPlacement,
|
|
9386
9374
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9387
|
-
}, props), /*#__PURE__*/
|
|
9375
|
+
}, props), /*#__PURE__*/React.createElement("div", _extends({
|
|
9388
9376
|
className: "arrow"
|
|
9389
|
-
}, arrowProps)), /*#__PURE__*/
|
|
9377
|
+
}, arrowProps)), /*#__PURE__*/React.createElement("div", {
|
|
9390
9378
|
className: bsPrefix + "-inner"
|
|
9391
9379
|
}, children));
|
|
9392
9380
|
});
|
|
9393
9381
|
Tooltip.defaultProps = defaultProps$E;
|
|
9394
9382
|
Tooltip.displayName = 'Tooltip';
|
|
9395
9383
|
|
|
9396
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9384
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9397
9385
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9398
9386
|
styleInject(css);
|
|
9399
9387
|
|
|
@@ -9404,54 +9392,54 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9404
9392
|
client = props.client;
|
|
9405
9393
|
|
|
9406
9394
|
|
|
9407
|
-
return
|
|
9395
|
+
return React.createElement(
|
|
9408
9396
|
'div',
|
|
9409
9397
|
{ className: styles.article },
|
|
9410
|
-
|
|
9398
|
+
React.createElement(
|
|
9411
9399
|
'a',
|
|
9412
9400
|
{ href: '/' + data.parentUrl + '/' + data.identifier.current, style: variant === 'right' ? { flexDirection: 'row-reverse' } : {} },
|
|
9413
|
-
|
|
9401
|
+
React.createElement(
|
|
9414
9402
|
'div',
|
|
9415
9403
|
{ className: styles.thumb },
|
|
9416
|
-
|
|
9404
|
+
React.createElement(
|
|
9417
9405
|
'figure',
|
|
9418
9406
|
null,
|
|
9419
|
-
|
|
9407
|
+
React.createElement(
|
|
9420
9408
|
LazyLoad,
|
|
9421
9409
|
null,
|
|
9422
|
-
|
|
9410
|
+
React.createElement('img', {
|
|
9423
9411
|
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9424
9412
|
})
|
|
9425
9413
|
)
|
|
9426
9414
|
)
|
|
9427
9415
|
),
|
|
9428
|
-
|
|
9416
|
+
React.createElement(
|
|
9429
9417
|
'div',
|
|
9430
9418
|
{ className: styles.info, style: variant === 'right' ? { padding: '0 1rem 0 0' } : { padding: ' 0 0 0 1rem' } },
|
|
9431
|
-
|
|
9419
|
+
React.createElement(
|
|
9432
9420
|
'div',
|
|
9433
9421
|
{ className: styles.name },
|
|
9434
9422
|
data.name
|
|
9435
9423
|
),
|
|
9436
|
-
data.published &&
|
|
9424
|
+
data.published && React.createElement(
|
|
9437
9425
|
'p',
|
|
9438
9426
|
{ className: styles.published },
|
|
9439
9427
|
moment(data.published).format('MMMM Do YYYY')
|
|
9440
9428
|
),
|
|
9441
|
-
data.authorMapping && data.authorMapping.displayName &&
|
|
9429
|
+
data.authorMapping && data.authorMapping.displayName && React.createElement(
|
|
9442
9430
|
'p',
|
|
9443
9431
|
{ className: styles.author },
|
|
9444
9432
|
'By ',
|
|
9445
|
-
|
|
9433
|
+
React.createElement(
|
|
9446
9434
|
'span',
|
|
9447
9435
|
null,
|
|
9448
9436
|
data.authorMapping.displayName
|
|
9449
9437
|
)
|
|
9450
9438
|
),
|
|
9451
|
-
data.description &&
|
|
9439
|
+
data.description && React.createElement(
|
|
9452
9440
|
'div',
|
|
9453
9441
|
{ className: 'media-series-desc' },
|
|
9454
|
-
|
|
9442
|
+
React.createElement(BlockContent, { blocks: data.description, serializers: getSerializers(client) })
|
|
9455
9443
|
)
|
|
9456
9444
|
)
|
|
9457
9445
|
)
|
|
@@ -9480,11 +9468,11 @@ var Filter = function Filter(_ref) {
|
|
|
9480
9468
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9481
9469
|
grandChildData = _useState6[0],
|
|
9482
9470
|
setGrandChildData = _useState6[1];
|
|
9483
|
-
/*
|
|
9484
|
-
{parent: showAll,
|
|
9485
|
-
chidlren: show selected from parent,
|
|
9486
|
-
grandchildren: show selected from children
|
|
9487
|
-
}
|
|
9471
|
+
/*
|
|
9472
|
+
{parent: showAll,
|
|
9473
|
+
chidlren: show selected from parent,
|
|
9474
|
+
grandchildren: show selected from children
|
|
9475
|
+
}
|
|
9488
9476
|
*/
|
|
9489
9477
|
|
|
9490
9478
|
|
|
@@ -9499,7 +9487,7 @@ var Filter = function Filter(_ref) {
|
|
|
9499
9487
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9500
9488
|
if (type === 'parent') {
|
|
9501
9489
|
setParentData(function (prevState) {
|
|
9502
|
-
return _extends$
|
|
9490
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9503
9491
|
});
|
|
9504
9492
|
if (group && group.children && group.children.length > 0) {
|
|
9505
9493
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9513,7 +9501,7 @@ var Filter = function Filter(_ref) {
|
|
|
9513
9501
|
}
|
|
9514
9502
|
if (type === 'child') {
|
|
9515
9503
|
setChildData(function (prevState) {
|
|
9516
|
-
return _extends$
|
|
9504
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9517
9505
|
});
|
|
9518
9506
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9519
9507
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9532,7 +9520,7 @@ var Filter = function Filter(_ref) {
|
|
|
9532
9520
|
}
|
|
9533
9521
|
if (type === 'grandchild') {
|
|
9534
9522
|
setGrandChildData(function (prevState) {
|
|
9535
|
-
return _extends$
|
|
9523
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9536
9524
|
});
|
|
9537
9525
|
//handle filter
|
|
9538
9526
|
if (!group._id) {
|
|
@@ -9548,13 +9536,13 @@ var Filter = function Filter(_ref) {
|
|
|
9548
9536
|
}
|
|
9549
9537
|
};
|
|
9550
9538
|
|
|
9551
|
-
return
|
|
9539
|
+
return React.createElement(
|
|
9552
9540
|
'div',
|
|
9553
9541
|
{ className: 'flex-container' },
|
|
9554
|
-
parentData &&
|
|
9542
|
+
parentData && React.createElement(
|
|
9555
9543
|
DropdownButton,
|
|
9556
9544
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9557
|
-
|
|
9545
|
+
React.createElement(
|
|
9558
9546
|
Dropdown$1.Item,
|
|
9559
9547
|
{ onSelect: function onSelect() {
|
|
9560
9548
|
return handleFilterSelect({}, 'parent');
|
|
@@ -9563,7 +9551,7 @@ var Filter = function Filter(_ref) {
|
|
|
9563
9551
|
),
|
|
9564
9552
|
parentData.data.map(function (docGroup) {
|
|
9565
9553
|
if (!docGroup._id) return null;
|
|
9566
|
-
return
|
|
9554
|
+
return React.createElement(
|
|
9567
9555
|
Dropdown$1.Item,
|
|
9568
9556
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9569
9557
|
return handleFilterSelect(docGroup, 'parent');
|
|
@@ -9572,10 +9560,10 @@ var Filter = function Filter(_ref) {
|
|
|
9572
9560
|
);
|
|
9573
9561
|
})
|
|
9574
9562
|
),
|
|
9575
|
-
childData && childData.data && childData.data.length > 0 &&
|
|
9563
|
+
childData && childData.data && childData.data.length > 0 && React.createElement(
|
|
9576
9564
|
DropdownButton,
|
|
9577
9565
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9578
|
-
|
|
9566
|
+
React.createElement(
|
|
9579
9567
|
Dropdown$1.Item,
|
|
9580
9568
|
{ onSelect: function onSelect() {
|
|
9581
9569
|
return handleFilterSelect({}, 'child');
|
|
@@ -9584,7 +9572,7 @@ var Filter = function Filter(_ref) {
|
|
|
9584
9572
|
),
|
|
9585
9573
|
childData.data.map(function (docGroup) {
|
|
9586
9574
|
if (!docGroup._id) return null;
|
|
9587
|
-
return
|
|
9575
|
+
return React.createElement(
|
|
9588
9576
|
Dropdown$1.Item,
|
|
9589
9577
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9590
9578
|
return handleFilterSelect(docGroup, 'child');
|
|
@@ -9593,10 +9581,10 @@ var Filter = function Filter(_ref) {
|
|
|
9593
9581
|
);
|
|
9594
9582
|
})
|
|
9595
9583
|
),
|
|
9596
|
-
grandChildData && grandChildData.data && grandChildData.data.length > 0 &&
|
|
9584
|
+
grandChildData && grandChildData.data && grandChildData.data.length > 0 && React.createElement(
|
|
9597
9585
|
DropdownButton,
|
|
9598
9586
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9599
|
-
|
|
9587
|
+
React.createElement(
|
|
9600
9588
|
Dropdown$1.Item,
|
|
9601
9589
|
{ onSelect: function onSelect() {
|
|
9602
9590
|
return handleFilterSelect({}, 'grandchild');
|
|
@@ -9605,7 +9593,7 @@ var Filter = function Filter(_ref) {
|
|
|
9605
9593
|
),
|
|
9606
9594
|
grandChildData.data.map(function (docGroup) {
|
|
9607
9595
|
if (!docGroup._id) return null;
|
|
9608
|
-
return
|
|
9596
|
+
return React.createElement(
|
|
9609
9597
|
Dropdown$1.Item,
|
|
9610
9598
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9611
9599
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
@@ -9614,7 +9602,7 @@ var Filter = function Filter(_ref) {
|
|
|
9614
9602
|
);
|
|
9615
9603
|
})
|
|
9616
9604
|
),
|
|
9617
|
-
|
|
9605
|
+
React.createElement(
|
|
9618
9606
|
'style',
|
|
9619
9607
|
{ jsx: 'true' },
|
|
9620
9608
|
'\n .flex-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n }\n .filter-btn button {\n border-radius: 3px;\n z-index: 99999;\n }\n .filter-btn .dropdown-menu {\n z-index: 9999999;\n }\n @media (max-width: 768px) {\n .flex-container {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n '
|
|
@@ -9662,7 +9650,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9662
9650
|
while (1) {
|
|
9663
9651
|
switch (_context.prev = _context.next) {
|
|
9664
9652
|
case 0:
|
|
9665
|
-
newParams = _extends$
|
|
9653
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9666
9654
|
filterQuery = void 0;
|
|
9667
9655
|
|
|
9668
9656
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9704,27 +9692,27 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9704
9692
|
}();
|
|
9705
9693
|
|
|
9706
9694
|
if (props.statusCode === 404) {
|
|
9707
|
-
return
|
|
9695
|
+
return React.createElement(
|
|
9708
9696
|
'div',
|
|
9709
9697
|
{ className: 'd-flex flex-column align-items-center mt-3' },
|
|
9710
|
-
|
|
9698
|
+
React.createElement(
|
|
9711
9699
|
'h3',
|
|
9712
9700
|
null,
|
|
9713
9701
|
'404: Resource not found'
|
|
9714
9702
|
),
|
|
9715
|
-
|
|
9703
|
+
React.createElement(
|
|
9716
9704
|
'p',
|
|
9717
9705
|
null,
|
|
9718
9706
|
'We seem to have misplaced the page you\'re looking for. Sorry! Please try checking the URL for errors.'
|
|
9719
9707
|
),
|
|
9720
|
-
|
|
9708
|
+
React.createElement(
|
|
9721
9709
|
'p',
|
|
9722
9710
|
null,
|
|
9723
9711
|
'Click here to',
|
|
9724
|
-
|
|
9712
|
+
React.createElement(
|
|
9725
9713
|
Link,
|
|
9726
9714
|
{ href: '/' },
|
|
9727
|
-
|
|
9715
|
+
React.createElement(
|
|
9728
9716
|
'a',
|
|
9729
9717
|
{ style: { color: 'blue', textDecoration: 'underline' } },
|
|
9730
9718
|
' return to homepage.'
|
|
@@ -9734,17 +9722,17 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9734
9722
|
);
|
|
9735
9723
|
}
|
|
9736
9724
|
|
|
9737
|
-
return
|
|
9725
|
+
return React.createElement(
|
|
9738
9726
|
'div',
|
|
9739
9727
|
{ className: 'mb-5' },
|
|
9740
|
-
props.docGroup && props.docGroup.description &&
|
|
9741
|
-
props.taxonomyFilter && props.taxonomyFilter &&
|
|
9728
|
+
props.docGroup && props.docGroup.description && React.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9729
|
+
props.taxonomyFilter && props.taxonomyFilter && React.createElement(
|
|
9742
9730
|
'div',
|
|
9743
9731
|
{ className: '' },
|
|
9744
|
-
|
|
9745
|
-
|
|
9732
|
+
React.createElement(Filter, { setFilterTopicID: setFilterTopicID, filterData: props.taxonomyFilter }),
|
|
9733
|
+
React.createElement('hr', null)
|
|
9746
9734
|
),
|
|
9747
|
-
seriesData &&
|
|
9735
|
+
seriesData && React.createElement(MasterDeck, {
|
|
9748
9736
|
deck: MediaSeriesCard,
|
|
9749
9737
|
variant: 'left',
|
|
9750
9738
|
defaultImage: '/placeholder.jpg',
|