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