@mjhls/mjh-framework 1.0.840-beta.0 → 1.0.840-seomanager-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +10 -9
- package/dist/cjs/AD300x250.js +31 -30
- package/dist/cjs/AD300x250x600.js +31 -30
- package/dist/cjs/AD728x90.js +34 -33
- package/dist/cjs/ADFloatingFooter.js +33 -32
- package/dist/cjs/ADFooter.js +15 -14
- package/dist/cjs/ADGutter.js +33 -32
- package/dist/cjs/{ADInfeed-8d621d3c.js → ADInfeed-859820d9.js} +15 -13
- package/dist/cjs/ADSkyscraper.js +33 -32
- package/dist/cjs/ADSponsoredResources.js +33 -32
- package/dist/cjs/ADWebcast.js +33 -32
- package/dist/cjs/ADWelcome.js +34 -33
- package/dist/cjs/{ADlgInfeed-0e26bccb.js → ADlgInfeed-da3a36a6.js} +11 -10
- package/dist/cjs/AccordionPanel.js +31 -29
- package/dist/cjs/AdSlot.js +36 -35
- package/dist/cjs/AdSlotsProvider.js +21 -916
- package/dist/cjs/AlgoliaSearch.js +1371 -1276
- package/dist/cjs/AlphabeticList.js +26 -25
- package/dist/cjs/ArticleCarousel.js +24 -23
- package/dist/cjs/ArticleProgramLandingPage.js +63 -62
- package/dist/cjs/ArticleSeriesLandingPage.js +43 -42
- package/dist/cjs/ArticleSeriesListing.js +62 -61
- package/dist/cjs/Auth.js +686 -462
- package/dist/cjs/AuthWrapper.js +1739 -423
- package/dist/cjs/{AuthorComponent-bb831b74.js → AuthorComponent-c21aac7f.js} +14 -13
- package/dist/cjs/Beam.js +8 -8
- package/dist/cjs/{BlockContent-091a991f.js → BlockContent-36e54d77.js} +56 -55
- package/dist/cjs/Breadcrumbs.js +29 -27
- package/dist/cjs/CMEDeck.js +83 -83
- package/dist/cjs/Column1.js +14 -11
- package/dist/cjs/Column2.js +36 -33
- package/dist/cjs/Column3.js +62 -59
- package/dist/cjs/ConferenceArticleCard.js +38 -37
- package/dist/cjs/ConferenceBanner-6c9e718a.js +24 -0
- package/dist/cjs/DeckContent.js +107 -103
- package/dist/cjs/DeckQueue.js +94 -90
- package/dist/cjs/{Dfp-26baccf1.js → Dfp-93399f8c.js} +35 -34
- package/dist/cjs/EventsDeck.js +159 -152
- package/dist/cjs/ExternalResources.js +81 -80
- package/dist/cjs/Feature.js +26 -24
- package/dist/cjs/ForbesHero.js +43 -42
- package/dist/cjs/GridContent.js +190 -304
- package/dist/cjs/GridHero.js +45 -44
- package/dist/cjs/GroupDeck.js +60 -59
- package/dist/cjs/HamMagazine.js +146 -141
- package/dist/cjs/Header.js +14 -12
- package/dist/cjs/Hero.js +13 -12
- package/dist/cjs/HighlightenVideo.js +18 -17
- package/dist/cjs/HorizontalArticleListing.js +73 -72
- package/dist/cjs/HorizontalHero.js +26 -25
- package/dist/cjs/IssueContentDeck.js +78 -73
- package/dist/cjs/IssueDeck.js +77 -72
- package/dist/cjs/IssueLanding.js +96 -95
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +41 -39
- package/dist/cjs/MasterDeck.js +81 -80
- package/dist/cjs/MediaSeriesLanding.js +1232 -1141
- package/dist/cjs/NavDvm.js +79 -74
- package/dist/cjs/{NavFooter-76c913e3.js → NavFooter-3dcd99a8.js} +15 -14
- package/dist/cjs/NavMagazine.js +153 -148
- package/dist/cjs/NavNative.js +147 -139
- package/dist/cjs/OncliveHero.js +19 -19
- package/dist/cjs/OncliveLargeHero.js +73 -72
- package/dist/cjs/PageFilter.js +15 -14
- package/dist/cjs/PartnerDetailListing.js +125 -3952
- package/dist/cjs/PdfDownload.js +10 -9
- package/dist/cjs/PopUpModal.js +21 -19
- package/dist/cjs/PubSection.js +43 -42
- package/dist/cjs/PubToc.js +16 -15
- package/dist/cjs/PublicationDeck.js +67 -62
- package/dist/cjs/PublicationLanding.js +139 -135
- package/dist/cjs/QueueDeckExpanded.js +310 -310
- package/dist/cjs/RecentNews.js +23 -22
- package/dist/cjs/RelatedContent.js +55 -54
- package/dist/cjs/RelatedTopicsDropdown.js +32 -29
- package/dist/cjs/RolesDeck.js +32 -27
- package/dist/cjs/Search.js +22 -18
- package/dist/cjs/Segment.js +6 -6
- package/dist/cjs/SeriesListingDeck.js +38 -38
- package/dist/cjs/{SeriesSlider-8bbc989f.js → SeriesSlider-34c6cc2b.js} +40 -39
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +39 -38
- package/dist/cjs/SocialIcons.js +10 -9
- package/dist/cjs/{SocialSearchComponent-cea213aa.js → SocialSearchComponent-948138c7.js} +40 -36
- package/dist/cjs/SocialShare.js +31 -29
- package/dist/cjs/TaxonomyCard.js +64 -59
- package/dist/cjs/TaxonomyDescription.js +56 -55
- package/dist/cjs/TemplateNormal.js +75 -74
- package/dist/cjs/ThumbnailCard.js +23 -21
- package/dist/cjs/Ustream.js +31 -30
- package/dist/cjs/VerticalHero.js +17 -16
- package/dist/cjs/VideoProgramLandingPage.js +80 -76
- package/dist/cjs/VideoSeriesCard.js +33 -32
- package/dist/cjs/VideoSeriesFilter.js +18 -18
- package/dist/cjs/VideoSeriesLandingPage.js +52 -51
- package/dist/cjs/VideoSeriesListing.js +81 -82
- package/dist/cjs/View.js +310 -265
- package/dist/cjs/YahooHero.js +42 -41
- package/dist/cjs/YoutubeGroup.js +67 -66
- package/dist/cjs/{_is-array-754e012d.js → _is-array-6128bd56.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-55a5657a.js} +8 -8
- package/dist/cjs/{_object-pie-68c5bcbc.js → _object-pie-083f2dd6.js} +4 -4
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-a175b4a9.js} +1 -1
- package/dist/cjs/{_object-to-array-5762f850.js → _object-to-array-8fe5a54f.js} +2 -2
- package/dist/cjs/{_to-object-329a650b.js → _to-object-6de10e57.js} +8 -8
- package/dist/cjs/{asyncToGenerator-140e5f89.js → asyncToGenerator-58c289d9.js} +32 -32
- package/dist/cjs/{brightcove-react-player-loader.es-156bd4d6.js → brightcove-react-player-loader.es-a195642e.js} +11 -9
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-f474eacc.js} +2 -2
- package/dist/cjs/{debounce-529c8d06.js → debounce-d4a2369b.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-c88be878.js} +6 -6
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-0cb76d99.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{eq-bb2843ed.js → eq-5fc26c07.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-c2573ffd.js} +6 -6
- package/dist/cjs/{extends-0a918631.js → extends-29bdbc6d.js} +7 -7
- package/dist/cjs/faundadb.js +21 -21
- package/dist/cjs/{get-adbb11e3.js → get-5839e5b5.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +20 -20
- package/dist/cjs/getRootDocGroup.js +8 -8
- package/dist/cjs/getSerializers.js +45 -45
- package/dist/cjs/{getTargeting-021d644c.js → getTargeting-be6168ad.js} +12 -12
- package/dist/cjs/getTargeting.js +8 -8
- package/dist/{esm/iconBase-602d52fe.js → cjs/iconBase-be4097c0.js} +33 -8
- package/dist/cjs/{index-1d6b1687.js → index-060c5d65.js} +997 -1025
- package/dist/cjs/{index-e2e62963.js → index-50be6759.js} +26 -10
- package/dist/cjs/{index-96b3db50.js → index-eadd5035.js} +17 -15
- package/dist/cjs/{index-be0c82be.js → index-efca863c.js} +36 -30
- package/dist/cjs/{index-3294d3bc.js → index-f86bb269.js} +44 -45
- package/dist/cjs/{index-98e01cb9.js → index-fc2f1ca2.js} +13 -12
- package/dist/cjs/{index.es-9110add6.js → index.es-f3e47207.js} +31 -12
- package/dist/cjs/{index.esm-90433435.js → index.esm-00a6aade.js} +7 -16
- package/dist/cjs/{index.esm-4d410430.js → index.esm-2bb721c8.js} +21 -21
- package/dist/cjs/{index.esm-e32d3e8e.js → index.esm-c1e16606.js} +4 -7
- package/dist/cjs/{index.esm-ff47db6f.js → index.esm-f27f80d9.js} +6 -13
- package/dist/cjs/index.js +169 -164
- package/dist/cjs/{inherits-1f5a1c72.js → inherits-c2065b95.js} +20 -20
- package/dist/cjs/{isSymbol-04666465.js → isSymbol-03abbdf0.js} +15 -15
- package/dist/cjs/keys-7f2c2108.js +25 -0
- package/dist/cjs/{lodash-fc2922d0.js → lodash-f0783643.js} +128 -31
- package/dist/cjs/main-f1c77adb.js +973 -0
- package/dist/cjs/{md5-5039b1a6.js → md5-e1ca5797.js} +1 -1
- package/dist/cjs/{moment-575fe24c.js → moment-aca40de1.js} +11 -9
- package/dist/cjs/{react-social-icons-f7f48f71.js → react-social-icons-af932527.js} +28 -27
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-5d1bc3b3.js} +14 -14
- package/dist/cjs/{smoothscroll-5054361f.js → smoothscroll-99df7f93.js} +1 -1
- package/dist/cjs/stringify-c9ac1214.js +17 -0
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-ddb70795.js} +9 -9
- package/dist/cjs/{toNumber-36d1e7e5.js → toNumber-5e1fac58.js} +40 -5
- package/dist/cjs/typeof-1358762e.js +33 -0
- package/dist/cjs/{typeof-725500bc.js → typeof-88a668c5.js} +36 -36
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{ustream-api-d092dc31.js → ustream-api-b2b9092f.js} +4 -4
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{visibility-sensor-ad5e3116.js → visibility-sensor-eb2c5b69.js} +7 -5
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-46657b5c.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +24 -24
- package/dist/esm/AD300x250x600.js +24 -24
- package/dist/esm/AD728x90.js +27 -27
- package/dist/esm/ADFloatingFooter.js +23 -23
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +23 -23
- package/dist/esm/{ADInfeed-b566ce41.js → ADInfeed-4bf3b2f9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +23 -23
- package/dist/esm/ADSponsoredResources.js +23 -23
- package/dist/esm/ADWebcast.js +23 -23
- package/dist/esm/ADWelcome.js +20 -20
- package/dist/esm/{ADlgInfeed-5eb7281d.js → ADlgInfeed-a3377c4a.js} +4 -4
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +24 -24
- package/dist/esm/AdSlotsProvider.js +17 -913
- package/dist/esm/AlgoliaSearch.js +599 -505
- package/dist/esm/AlphabeticList.js +10 -10
- package/dist/esm/ArticleCarousel.js +17 -17
- package/dist/esm/ArticleProgramLandingPage.js +50 -50
- package/dist/esm/ArticleSeriesLandingPage.js +32 -32
- package/dist/esm/ArticleSeriesListing.js +34 -34
- package/dist/esm/Auth.js +595 -375
- package/dist/esm/AuthWrapper.js +1711 -396
- package/dist/esm/{AuthorComponent-34b16174.js → AuthorComponent-30aeba69.js} +1 -1
- package/dist/esm/Beam.js +8 -8
- package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-c99c9a8d.js} +34 -34
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/CMEDeck.js +24 -24
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +21 -21
- package/dist/esm/Column3.js +39 -39
- package/dist/esm/ConferenceArticleCard.js +22 -22
- package/dist/esm/DeckContent.js +57 -57
- package/dist/esm/DeckQueue.js +50 -50
- package/dist/esm/{Dfp-b7236041.js → Dfp-2c43d2a0.js} +15 -15
- package/dist/esm/EventsDeck.js +67 -67
- package/dist/esm/ExternalResources.js +48 -48
- package/dist/esm/Feature.js +4 -4
- package/dist/esm/ForbesHero.js +12 -12
- package/dist/esm/GridContent.js +82 -200
- package/dist/esm/GridHero.js +13 -13
- package/dist/esm/GroupDeck.js +14 -14
- package/dist/esm/HamMagazine.js +39 -39
- package/dist/esm/Hero.js +4 -4
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +47 -47
- package/dist/esm/HorizontalHero.js +5 -5
- package/dist/esm/IssueContentDeck.js +27 -27
- package/dist/esm/IssueDeck.js +37 -37
- package/dist/esm/IssueLanding.js +84 -84
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +22 -22
- package/dist/esm/MasterDeck.js +45 -45
- package/dist/esm/MediaSeriesLanding.js +751 -663
- package/dist/esm/NavDvm.js +16 -16
- package/dist/esm/NavMagazine.js +44 -44
- package/dist/esm/NavNative.js +43 -43
- package/dist/esm/OncliveHero.js +4 -5
- package/dist/esm/OncliveLargeHero.js +13 -13
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +75 -3902
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PubSection.js +34 -34
- package/dist/esm/PubToc.js +8 -8
- package/dist/esm/PublicationDeck.js +24 -24
- package/dist/esm/PublicationLanding.js +76 -76
- package/dist/esm/QueueDeckExpanded.js +38 -38
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +35 -35
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +8 -8
- package/dist/esm/Segment.js +6 -6
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-a866bb21.js → SeriesSlider-5d5c08f4.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +17 -17
- package/dist/esm/{SocialSearchComponent-03c3e869.js → SocialSearchComponent-db963c3e.js} +12 -12
- package/dist/esm/TaxonomyCard.js +25 -25
- package/dist/esm/TaxonomyDescription.js +46 -46
- package/dist/esm/TemplateNormal.js +50 -50
- package/dist/esm/ThumbnailCard.js +7 -7
- package/dist/esm/Ustream.js +14 -14
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoProgramLandingPage.js +54 -54
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +9 -9
- package/dist/esm/VideoSeriesLandingPage.js +38 -38
- package/dist/esm/VideoSeriesListing.js +37 -39
- package/dist/esm/View.js +140 -99
- package/dist/esm/YahooHero.js +15 -15
- package/dist/esm/YoutubeGroup.js +26 -26
- package/dist/esm/{_is-array-58e95429.js → _is-array-3e99e06e.js} +6 -6
- package/dist/esm/{_iter-detect-5d49a330.js → _iter-detect-7e5e5ce2.js} +8 -8
- package/dist/esm/{_object-pie-33c40e79.js → _object-pie-133f504a.js} +4 -4
- package/dist/esm/{_object-sap-964b6feb.js → _object-sap-f353c2a9.js} +1 -1
- package/dist/esm/{_object-to-array-7e804fce.js → _object-to-array-0f197f89.js} +2 -2
- package/dist/esm/{_to-object-a4107da3.js → _to-object-b50e61c3.js} +9 -9
- package/dist/esm/{asyncToGenerator-fc1c2e29.js → asyncToGenerator-7f8f9219.js} +32 -32
- package/dist/esm/{brightcove-react-player-loader.es-83f53e4e.js → brightcove-react-player-loader.es-57a70a56.js} +5 -4
- package/dist/esm/{core.get-iterator-method-e1de7503.js → core.get-iterator-method-133dfacd.js} +2 -2
- package/dist/esm/{debounce-9207d8ee.js → debounce-533d9748.js} +2 -2
- package/dist/esm/{define-property-8af5f002.js → define-property-fe54dc9f.js} +6 -6
- package/dist/esm/{defineProperty-94fd8bfc.js → defineProperty-f5ff6f5a.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{eq-b470f743.js → eq-bdcbf886.js} +1 -1
- package/dist/esm/{es6.string.iterator-c990c18c.js → es6.string.iterator-bc33758b.js} +7 -7
- package/dist/esm/{extends-6f2fcc99.js → extends-60e0e1c6.js} +7 -7
- package/dist/esm/faundadb.js +7 -7
- package/dist/esm/{get-1e515072.js → get-3c308da4.js} +21 -21
- package/dist/esm/getRelatedArticle.js +14 -14
- package/dist/esm/getRootDocGroup.js +6 -6
- package/dist/esm/getSerializers.js +45 -45
- package/dist/esm/{getTargeting-82e86707.js → getTargeting-68291ce9.js} +11 -11
- package/dist/esm/getTargeting.js +8 -8
- package/dist/{cjs/iconBase-68959171.js → esm/iconBase-ccc56b97.js} +2 -8
- package/dist/esm/{index-44f4646f.js → index-01d53c17.js} +639 -674
- package/dist/esm/{index-73819142.js → index-0dbff1d1.js} +36 -30
- package/dist/esm/{index-5f7e79e7.js → index-755f2cc2.js} +6 -6
- package/dist/esm/{index-ef6d5dcf.js → index-79cfd25c.js} +44 -45
- package/dist/esm/{index-aaa2dae0.js → index-98ca9cec.js} +26 -11
- package/dist/esm/{index-41a678ea.js → index-f0fc23eb.js} +4 -4
- package/dist/esm/{index.es-29c1cef5.js → index.es-a6137319.js} +23 -5
- package/dist/esm/{index.esm-fd746768.js → index.esm-37268dca.js} +4 -5
- package/dist/esm/{index.esm-f8aaeeeb.js → index.esm-9b042655.js} +4 -7
- package/dist/esm/{index.esm-cf08bf18.js → index.esm-d4932dea.js} +6 -13
- package/dist/esm/{index.esm-29e48d38.js → index.esm-f6156a57.js} +7 -16
- package/dist/esm/index.js +124 -122
- package/dist/esm/{inherits-cf8dde54.js → inherits-a41fe93f.js} +19 -19
- package/dist/esm/{isSymbol-1981418f.js → isSymbol-a7e9aafe.js} +15 -15
- package/dist/esm/{keys-8eda7a5c.js → keys-7a3adabf.js} +6 -6
- package/dist/esm/{lodash-17fdfebb.js → lodash-f97fd99a.js} +128 -31
- package/dist/esm/main-d4165069.js +961 -0
- package/dist/esm/{md5-9be0e905.js → md5-4e42248e.js} +1 -1
- package/dist/esm/{moment-e2f9b20c.js → moment-bc12cb97.js} +11 -9
- package/dist/esm/{react-social-icons-a7d5c5c7.js → react-social-icons-9be47857.js} +16 -16
- package/dist/esm/{slicedToArray-641f241f.js → slicedToArray-be2f7a22.js} +14 -14
- package/dist/esm/{smoothscroll-0cd4c7a6.js → smoothscroll-fa4e3f8c.js} +1 -1
- package/dist/esm/stringify-59c8f690.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-43aa614d.js → toConsumableArray-6d9a4616.js} +9 -9
- package/dist/esm/{toNumber-2f7a84cd.js → toNumber-5aeba6e7.js} +40 -5
- package/dist/esm/typeof-2f07d0e8.js +30 -0
- package/dist/esm/{typeof-6435ba1c.js → typeof-a286cf0c.js} +36 -36
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{ustream-api-9a50644d.js → ustream-api-33a866b6.js} +4 -4
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-4439f05a.js → web.dom.iterable-4109ff68.js} +3 -3
- package/package.json +110 -111
- package/dist/cjs/ConferenceBanner-4a16fddc.js +0 -23
- package/dist/cjs/inherits-8d29278d.js +0 -110
- package/dist/cjs/keys-a586b7a0.js +0 -25
- package/dist/cjs/main-02daeefe.js +0 -862
- package/dist/cjs/stringify-7c5aff47.js +0 -17
- package/dist/esm/inherits-77d5e4fc.js +0 -101
- package/dist/esm/main-e4a934b2.js +0 -851
- package/dist/esm/stringify-4330ccdc.js +0 -15
|
@@ -1,70 +1,70 @@
|
|
|
1
|
+
import { _ as _defineProperty } from './defineProperty-f5ff6f5a.js';
|
|
2
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
3
|
+
import { _ as _typeof } from './typeof-a286cf0c.js';
|
|
4
|
+
import { _ as _extends$1 } from './extends-60e0e1c6.js';
|
|
5
|
+
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
6
|
+
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
7
|
+
import { _ as _objectWithoutPropertiesLoose, b as _extends, a as _setPrototypeOf, c as classnames } from './index-98ca9cec.js';
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
|
+
import ReactDOM from 'react-dom';
|
|
1
10
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import '
|
|
3
|
-
import './
|
|
11
|
+
import Link from 'next/link';
|
|
12
|
+
import MasterDeck from './MasterDeck.js';
|
|
13
|
+
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
14
|
+
import urlFor from './urlFor.js';
|
|
15
|
+
import { m as moment } from './moment-bc12cb97.js';
|
|
16
|
+
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
|
+
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
18
|
+
import { g as getSerializers } from './index-01d53c17.js';
|
|
19
|
+
import './define-property-fe54dc9f.js';
|
|
20
|
+
import './_to-object-b50e61c3.js';
|
|
21
|
+
import './es6.string.iterator-bc33758b.js';
|
|
22
|
+
import './web.dom.iterable-4109ff68.js';
|
|
4
23
|
import './_library-528f1934.js';
|
|
5
|
-
import './
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './_object-pie-
|
|
9
|
-
import
|
|
10
|
-
import './
|
|
11
|
-
import './
|
|
12
|
-
import './
|
|
13
|
-
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import { _ as _typeof } from './typeof-6435ba1c.js';
|
|
15
|
-
import './_is-array-58e95429.js';
|
|
16
|
-
import React__default, { useCallback, useRef, useState, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
24
|
+
import './core.get-iterator-method-133dfacd.js';
|
|
25
|
+
import './_iter-detect-7e5e5ce2.js';
|
|
26
|
+
import './_is-array-3e99e06e.js';
|
|
27
|
+
import './_object-pie-133f504a.js';
|
|
28
|
+
import './toConsumableArray-6d9a4616.js';
|
|
29
|
+
import './inherits-a41fe93f.js';
|
|
30
|
+
import './_object-sap-f353c2a9.js';
|
|
31
|
+
import './index-f0fc23eb.js';
|
|
17
32
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-41a678ea.js';
|
|
19
|
-
import PropTypes from 'prop-types';
|
|
20
33
|
import 'react-bootstrap/Container';
|
|
21
34
|
import 'react-bootstrap/Row';
|
|
22
35
|
import 'react-bootstrap/Col';
|
|
23
36
|
import 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-e2f9b20c.js';
|
|
25
37
|
import 'next/router';
|
|
26
|
-
import './
|
|
27
|
-
import './debounce-
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import
|
|
38
|
+
import './lodash-f97fd99a.js';
|
|
39
|
+
import './debounce-533d9748.js';
|
|
40
|
+
import './isSymbol-a7e9aafe.js';
|
|
41
|
+
import './toNumber-5aeba6e7.js';
|
|
42
|
+
import './index.es-a6137319.js';
|
|
31
43
|
import './visibility-sensor-72fd8f8b.js';
|
|
32
|
-
import './index-
|
|
33
|
-
import
|
|
34
|
-
import { L as LazyLoad } from './index-5f7e79e7.js';
|
|
35
|
-
import './main-e4a934b2.js';
|
|
36
|
-
import './entities-7cc3bf45.js';
|
|
37
|
-
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
|
-
import './stringify-4330ccdc.js';
|
|
39
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1c2e29.js';
|
|
40
|
-
import './Segment.js';
|
|
41
|
-
import './Beam.js';
|
|
44
|
+
import './index-0dbff1d1.js';
|
|
45
|
+
import './ADlgInfeed-a3377c4a.js';
|
|
42
46
|
import './AdSlot.js';
|
|
43
|
-
import './
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import '
|
|
47
|
-
import
|
|
47
|
+
import './Beam.js';
|
|
48
|
+
import './stringify-59c8f690.js';
|
|
49
|
+
import './Segment.js';
|
|
50
|
+
import './main-d4165069.js';
|
|
51
|
+
import './ADInfeed-4bf3b2f9.js';
|
|
52
|
+
import 'react-bootstrap';
|
|
48
53
|
import './index-c7e2ac95.js';
|
|
49
|
-
import './
|
|
54
|
+
import './util-3ab476bf.js';
|
|
55
|
+
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
50
56
|
import './GroupDeck.js';
|
|
51
|
-
import '
|
|
52
|
-
import './
|
|
53
|
-
import './index.esm-29e48d38.js';
|
|
54
|
-
import { g as getSerializers } from './index-44f4646f.js';
|
|
55
|
-
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
57
|
+
import './smoothscroll-fa4e3f8c.js';
|
|
58
|
+
import './SocialShare.js';
|
|
57
59
|
import 'next/head';
|
|
58
60
|
import 'react-share';
|
|
59
|
-
import './
|
|
60
|
-
import './_object-to-array-7e804fce.js';
|
|
61
|
+
import './_object-to-array-0f197f89.js';
|
|
61
62
|
import 'react-bootstrap/Pagination';
|
|
63
|
+
import 'react-bootstrap/Button';
|
|
64
|
+
import './entities-932b50cf.js';
|
|
65
|
+
import './index.esm-f6156a57.js';
|
|
66
|
+
import './iconBase-ccc56b97.js';
|
|
62
67
|
import 'react-bootstrap/Figure';
|
|
63
|
-
import MasterDeck from './MasterDeck.js';
|
|
64
|
-
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
-
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-aaa2dae0.js';
|
|
66
|
-
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
|
-
import Link from 'next/link';
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -159,7 +159,7 @@ function useUncontrolled(props, config) {
|
|
|
159
159
|
var _ref = result,
|
|
160
160
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
161
161
|
propsValue = _ref[fieldName],
|
|
162
|
-
rest = _objectWithoutPropertiesLoose
|
|
162
|
+
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
163
163
|
|
|
164
164
|
var handlerName = config[fieldName];
|
|
165
165
|
|
|
@@ -167,19 +167,19 @@ function useUncontrolled(props, config) {
|
|
|
167
167
|
value = _useUncontrolledProp[0],
|
|
168
168
|
handler = _useUncontrolledProp[1];
|
|
169
169
|
|
|
170
|
-
return _extends
|
|
170
|
+
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
171
171
|
}, props);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
function _inheritsLoose(subClass, superClass) {
|
|
175
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
176
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
subClass
|
|
177
|
+
_setPrototypeOf(subClass, superClass);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
var ThemeContext = React__default.createContext({});
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
ThemeContext.Consumer;
|
|
182
|
+
ThemeContext.Provider;
|
|
183
183
|
|
|
184
184
|
function useBootstrapPrefix(prefix, defaultPrefix) {
|
|
185
185
|
var prefixes = useContext(ThemeContext);
|
|
@@ -196,11 +196,11 @@ var makeEventKey = function makeEventKey(eventKey, href) {
|
|
|
196
196
|
return href || null;
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
var context = React__default.createContext(null);
|
|
200
|
-
context.displayName = 'AccordionContext';
|
|
199
|
+
var context$2 = React__default.createContext(null);
|
|
200
|
+
context$2.displayName = 'AccordionContext';
|
|
201
201
|
|
|
202
202
|
function useAccordionToggle(eventKey, onClick) {
|
|
203
|
-
var contextEventKey = useContext(context);
|
|
203
|
+
var contextEventKey = useContext(context$2);
|
|
204
204
|
var onSelect = useContext(SelectableContext);
|
|
205
205
|
return function (e) {
|
|
206
206
|
/*
|
|
@@ -218,7 +218,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
218
218
|
children = _ref.children,
|
|
219
219
|
eventKey = _ref.eventKey,
|
|
220
220
|
onClick = _ref.onClick,
|
|
221
|
-
props = _objectWithoutPropertiesLoose
|
|
221
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
222
222
|
|
|
223
223
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
224
224
|
|
|
@@ -226,22 +226,40 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
226
226
|
props.type = 'button';
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
229
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
230
230
|
ref: ref,
|
|
231
231
|
onClick: accordionOnClick
|
|
232
232
|
}, props), children);
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
/**
|
|
236
|
+
* Returns the owner document of a given element.
|
|
237
|
+
*
|
|
238
|
+
* @param node the element
|
|
239
|
+
*/
|
|
240
|
+
function ownerDocument$1(node) {
|
|
236
241
|
return node && node.ownerDocument || document;
|
|
237
242
|
}
|
|
238
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Returns the owner window of a given element.
|
|
246
|
+
*
|
|
247
|
+
* @param node the element
|
|
248
|
+
*/
|
|
249
|
+
|
|
239
250
|
function ownerWindow(node) {
|
|
240
|
-
var doc = ownerDocument(node);
|
|
251
|
+
var doc = ownerDocument$1(node);
|
|
241
252
|
return doc && doc.defaultView || window;
|
|
242
253
|
}
|
|
243
254
|
|
|
244
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Returns one or all computed style properties of an element.
|
|
257
|
+
*
|
|
258
|
+
* @param node the element
|
|
259
|
+
* @param psuedoElement the style property
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
function getComputedStyle$2(node, psuedoElement) {
|
|
245
263
|
return ownerWindow(node).getComputedStyle(node, psuedoElement);
|
|
246
264
|
}
|
|
247
265
|
|
|
@@ -270,7 +288,7 @@ function style(node, property) {
|
|
|
270
288
|
var transforms = '';
|
|
271
289
|
|
|
272
290
|
if (typeof property === 'string') {
|
|
273
|
-
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$
|
|
291
|
+
return node.style.getPropertyValue(hyphenateStyleName(property)) || getComputedStyle$2(node).getPropertyValue(hyphenateStyleName(property));
|
|
274
292
|
}
|
|
275
293
|
|
|
276
294
|
Object.keys(property).forEach(function (key) {
|
|
@@ -321,6 +339,11 @@ try {
|
|
|
321
339
|
|
|
322
340
|
/**
|
|
323
341
|
* An `addEventListener` ponyfill, supports the `once` option
|
|
342
|
+
*
|
|
343
|
+
* @param node the element
|
|
344
|
+
* @param eventName the event name
|
|
345
|
+
* @param handle the handler
|
|
346
|
+
* @param options event options
|
|
324
347
|
*/
|
|
325
348
|
function addEventListener(node, eventName, handler, options) {
|
|
326
349
|
if (options && typeof options !== 'boolean' && !onceSupported) {
|
|
@@ -343,6 +366,14 @@ function addEventListener(node, eventName, handler, options) {
|
|
|
343
366
|
node.addEventListener(eventName, handler, options);
|
|
344
367
|
}
|
|
345
368
|
|
|
369
|
+
/**
|
|
370
|
+
* A `removeEventListener` ponyfill
|
|
371
|
+
*
|
|
372
|
+
* @param node the element
|
|
373
|
+
* @param eventName the event name
|
|
374
|
+
* @param handle the handler
|
|
375
|
+
* @param options event options
|
|
376
|
+
*/
|
|
346
377
|
function removeEventListener(node, eventName, handler, options) {
|
|
347
378
|
var capture = options && typeof options !== 'boolean' ? options.capture : options;
|
|
348
379
|
node.removeEventListener(eventName, handler, capture);
|
|
@@ -359,18 +390,36 @@ function listen(node, eventName, handler, options) {
|
|
|
359
390
|
};
|
|
360
391
|
}
|
|
361
392
|
|
|
393
|
+
/**
|
|
394
|
+
* Triggers an event on a given element.
|
|
395
|
+
*
|
|
396
|
+
* @param node the element
|
|
397
|
+
* @param eventName the event name to trigger
|
|
398
|
+
* @param bubbles whether the event should bubble up
|
|
399
|
+
* @param cancelable whether the event should be cancelable
|
|
400
|
+
*/
|
|
401
|
+
function triggerEvent(node, eventName, bubbles, cancelable) {
|
|
402
|
+
if (bubbles === void 0) {
|
|
403
|
+
bubbles = false;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
if (cancelable === void 0) {
|
|
407
|
+
cancelable = true;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (node) {
|
|
411
|
+
var event = document.createEvent('HTMLEvents');
|
|
412
|
+
event.initEvent(eventName, bubbles, cancelable);
|
|
413
|
+
node.dispatchEvent(event);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
362
417
|
function parseDuration(node) {
|
|
363
418
|
var str = style(node, 'transitionDuration') || '';
|
|
364
419
|
var mult = str.indexOf('ms') === -1 ? 1000 : 1;
|
|
365
420
|
return parseFloat(str) * mult;
|
|
366
421
|
}
|
|
367
422
|
|
|
368
|
-
function triggerTransitionEnd(element) {
|
|
369
|
-
var evt = document.createEvent('HTMLEvents');
|
|
370
|
-
evt.initEvent('transitionend', true, true);
|
|
371
|
-
element.dispatchEvent(evt);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
423
|
function emulateTransitionEnd(element, duration, padding) {
|
|
375
424
|
if (padding === void 0) {
|
|
376
425
|
padding = 5;
|
|
@@ -378,7 +427,7 @@ function emulateTransitionEnd(element, duration, padding) {
|
|
|
378
427
|
|
|
379
428
|
var called = false;
|
|
380
429
|
var handle = setTimeout(function () {
|
|
381
|
-
if (!called)
|
|
430
|
+
if (!called) triggerEvent(element, 'transitionend', true);
|
|
382
431
|
}, duration + padding);
|
|
383
432
|
var remove = listen(element, 'transitionend', function () {
|
|
384
433
|
called = true;
|
|
@@ -410,7 +459,7 @@ var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType(
|
|
|
410
459
|
exit: PropTypes.number,
|
|
411
460
|
appear: PropTypes.number
|
|
412
461
|
}).isRequired]) : null;
|
|
413
|
-
|
|
462
|
+
process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
|
414
463
|
enter: PropTypes.string,
|
|
415
464
|
exit: PropTypes.string,
|
|
416
465
|
active: PropTypes.string
|
|
@@ -792,23 +841,23 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
792
841
|
}
|
|
793
842
|
|
|
794
843
|
var _this$props = this.props,
|
|
795
|
-
children = _this$props.children
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
childProps = _objectWithoutPropertiesLoose
|
|
844
|
+
children = _this$props.children;
|
|
845
|
+
_this$props.in;
|
|
846
|
+
_this$props.mountOnEnter;
|
|
847
|
+
_this$props.unmountOnExit;
|
|
848
|
+
_this$props.appear;
|
|
849
|
+
_this$props.enter;
|
|
850
|
+
_this$props.exit;
|
|
851
|
+
_this$props.timeout;
|
|
852
|
+
_this$props.addEndListener;
|
|
853
|
+
_this$props.onEnter;
|
|
854
|
+
_this$props.onEntering;
|
|
855
|
+
_this$props.onEntered;
|
|
856
|
+
_this$props.onExit;
|
|
857
|
+
_this$props.onExiting;
|
|
858
|
+
_this$props.onExited;
|
|
859
|
+
_this$props.nodeRef;
|
|
860
|
+
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
812
861
|
|
|
813
862
|
return (
|
|
814
863
|
/*#__PURE__*/
|
|
@@ -1008,7 +1057,7 @@ Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1008
1057
|
onExited: PropTypes.func
|
|
1009
1058
|
} : {}; // Name the function so it is clearer in the documentation
|
|
1010
1059
|
|
|
1011
|
-
function noop() {}
|
|
1060
|
+
function noop$5() {}
|
|
1012
1061
|
|
|
1013
1062
|
Transition.defaultProps = {
|
|
1014
1063
|
in: false,
|
|
@@ -1017,12 +1066,12 @@ Transition.defaultProps = {
|
|
|
1017
1066
|
appear: false,
|
|
1018
1067
|
enter: true,
|
|
1019
1068
|
exit: true,
|
|
1020
|
-
onEnter: noop,
|
|
1021
|
-
onEntering: noop,
|
|
1022
|
-
onEntered: noop,
|
|
1023
|
-
onExit: noop,
|
|
1024
|
-
onExiting: noop,
|
|
1025
|
-
onExited: noop
|
|
1069
|
+
onEnter: noop$5,
|
|
1070
|
+
onEntering: noop$5,
|
|
1071
|
+
onEntered: noop$5,
|
|
1072
|
+
onExit: noop$5,
|
|
1073
|
+
onExiting: noop$5,
|
|
1074
|
+
onExited: noop$5
|
|
1026
1075
|
};
|
|
1027
1076
|
Transition.UNMOUNTED = UNMOUNTED;
|
|
1028
1077
|
Transition.EXITED = EXITED;
|
|
@@ -1088,7 +1137,7 @@ function getDefaultDimensionValue(dimension, elem) {
|
|
|
1088
1137
|
}
|
|
1089
1138
|
|
|
1090
1139
|
var collapseStyles = (_collapseStyles = {}, _collapseStyles[EXITED] = 'collapse', _collapseStyles[EXITING] = 'collapsing', _collapseStyles[ENTERING] = 'collapsing', _collapseStyles[ENTERED] = 'collapse show', _collapseStyles);
|
|
1091
|
-
var defaultProps = {
|
|
1140
|
+
var defaultProps$E = {
|
|
1092
1141
|
in: false,
|
|
1093
1142
|
timeout: 300,
|
|
1094
1143
|
mountOnEnter: false,
|
|
@@ -1108,7 +1157,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1108
1157
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1109
1158
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1110
1159
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1111
|
-
props = _objectWithoutPropertiesLoose
|
|
1160
|
+
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1112
1161
|
|
|
1113
1162
|
/* Compute dimension */
|
|
1114
1163
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1144,7 +1193,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1144
1193
|
}, onExiting);
|
|
1145
1194
|
}, [computedDimension, onExiting]);
|
|
1146
1195
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1147
|
-
, _extends
|
|
1196
|
+
, _extends({
|
|
1148
1197
|
ref: ref,
|
|
1149
1198
|
addEndListener: transitionEnd
|
|
1150
1199
|
}, props, {
|
|
@@ -1155,26 +1204,26 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1155
1204
|
onExit: handleExit,
|
|
1156
1205
|
onExiting: handleExiting
|
|
1157
1206
|
}), function (state, innerProps) {
|
|
1158
|
-
return React__default.cloneElement(children, _extends
|
|
1207
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1159
1208
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1160
1209
|
}));
|
|
1161
1210
|
});
|
|
1162
1211
|
}); // @ts-ignore
|
|
1163
1212
|
|
|
1164
1213
|
// @ts-ignore
|
|
1165
|
-
Collapse.defaultProps = defaultProps;
|
|
1214
|
+
Collapse.defaultProps = defaultProps$E;
|
|
1166
1215
|
|
|
1167
1216
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1168
1217
|
var children = _ref.children,
|
|
1169
1218
|
eventKey = _ref.eventKey,
|
|
1170
|
-
props = _objectWithoutPropertiesLoose
|
|
1219
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1171
1220
|
|
|
1172
|
-
var contextEventKey = useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1221
|
+
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1173
1222
|
// from collapsing the accordion when clicked.
|
|
1174
1223
|
|
|
1175
1224
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1176
1225
|
value: null
|
|
1177
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends
|
|
1226
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1178
1227
|
ref: ref,
|
|
1179
1228
|
in: contextEventKey === eventKey
|
|
1180
1229
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1192,14 +1241,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1192
1241
|
children = _useUncontrolled.children,
|
|
1193
1242
|
className = _useUncontrolled.className,
|
|
1194
1243
|
onSelect = _useUncontrolled.onSelect,
|
|
1195
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
1244
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1196
1245
|
|
|
1197
1246
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1198
|
-
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1247
|
+
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
1199
1248
|
value: activeKey || null
|
|
1200
1249
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1201
1250
|
value: onSelect || null
|
|
1202
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1251
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1203
1252
|
ref: ref
|
|
1204
1253
|
}, controlledProps, {
|
|
1205
1254
|
className: finalClassName
|
|
@@ -1235,7 +1284,7 @@ function useEventCallback(fn) {
|
|
|
1235
1284
|
}
|
|
1236
1285
|
|
|
1237
1286
|
var _fadeStyles;
|
|
1238
|
-
var defaultProps$
|
|
1287
|
+
var defaultProps$D = {
|
|
1239
1288
|
in: false,
|
|
1240
1289
|
timeout: 300,
|
|
1241
1290
|
mountOnEnter: false,
|
|
@@ -1246,40 +1295,40 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1246
1295
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1247
1296
|
var className = _ref.className,
|
|
1248
1297
|
children = _ref.children,
|
|
1249
|
-
props = _objectWithoutPropertiesLoose
|
|
1298
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1250
1299
|
|
|
1251
1300
|
var handleEnter = useCallback(function (node) {
|
|
1252
1301
|
triggerBrowserReflow(node);
|
|
1253
1302
|
if (props.onEnter) props.onEnter(node);
|
|
1254
1303
|
}, [props]);
|
|
1255
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends
|
|
1304
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1256
1305
|
ref: ref,
|
|
1257
1306
|
addEndListener: transitionEnd
|
|
1258
1307
|
}, props, {
|
|
1259
1308
|
onEnter: handleEnter
|
|
1260
1309
|
}), function (status, innerProps) {
|
|
1261
|
-
return React__default.cloneElement(children, _extends
|
|
1310
|
+
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1262
1311
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1263
1312
|
}));
|
|
1264
1313
|
});
|
|
1265
1314
|
});
|
|
1266
|
-
Fade.defaultProps = defaultProps$
|
|
1315
|
+
Fade.defaultProps = defaultProps$D;
|
|
1267
1316
|
Fade.displayName = 'Fade';
|
|
1268
1317
|
|
|
1269
|
-
var propTypes = {
|
|
1318
|
+
var propTypes$a = {
|
|
1270
1319
|
label: PropTypes.string.isRequired,
|
|
1271
1320
|
onClick: PropTypes.func
|
|
1272
1321
|
};
|
|
1273
|
-
var defaultProps$
|
|
1322
|
+
var defaultProps$C = {
|
|
1274
1323
|
label: 'Close'
|
|
1275
1324
|
};
|
|
1276
1325
|
var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
1277
1326
|
var label = _ref.label,
|
|
1278
1327
|
onClick = _ref.onClick,
|
|
1279
1328
|
className = _ref.className,
|
|
1280
|
-
props = _objectWithoutPropertiesLoose
|
|
1329
|
+
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1281
1330
|
|
|
1282
|
-
return /*#__PURE__*/React__default.createElement("button", _extends
|
|
1331
|
+
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1283
1332
|
ref: ref,
|
|
1284
1333
|
type: "button",
|
|
1285
1334
|
className: classnames('close', className),
|
|
@@ -1291,12 +1340,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1291
1340
|
}, label));
|
|
1292
1341
|
});
|
|
1293
1342
|
CloseButton.displayName = 'CloseButton';
|
|
1294
|
-
CloseButton.propTypes = propTypes;
|
|
1295
|
-
CloseButton.defaultProps = defaultProps$
|
|
1343
|
+
CloseButton.propTypes = propTypes$a;
|
|
1344
|
+
CloseButton.defaultProps = defaultProps$C;
|
|
1296
1345
|
|
|
1297
1346
|
var divWithClassName = (function (className) {
|
|
1298
1347
|
return React__default.forwardRef(function (p, ref) {
|
|
1299
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
1348
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1300
1349
|
ref: ref,
|
|
1301
1350
|
className: classnames(p.className, className)
|
|
1302
1351
|
}));
|
|
@@ -1327,10 +1376,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1327
1376
|
bsPrefix = _ref2.bsPrefix,
|
|
1328
1377
|
_ref2$as = _ref2.as,
|
|
1329
1378
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1330
|
-
props = _objectWithoutPropertiesLoose
|
|
1379
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1331
1380
|
|
|
1332
1381
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1333
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends
|
|
1382
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1334
1383
|
ref: ref,
|
|
1335
1384
|
className: classnames(className, resolvedPrefix)
|
|
1336
1385
|
}, props));
|
|
@@ -1357,7 +1406,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1357
1406
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1358
1407
|
disabled = _ref.disabled,
|
|
1359
1408
|
onKeyDown = _ref.onKeyDown,
|
|
1360
|
-
props = _objectWithoutPropertiesLoose
|
|
1409
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1361
1410
|
|
|
1362
1411
|
var handleClick = function handleClick(event) {
|
|
1363
1412
|
var href = props.href,
|
|
@@ -1396,7 +1445,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1396
1445
|
props['aria-disabled'] = true;
|
|
1397
1446
|
}
|
|
1398
1447
|
|
|
1399
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1448
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1400
1449
|
ref: ref
|
|
1401
1450
|
}, props, {
|
|
1402
1451
|
onClick: handleClick,
|
|
@@ -1405,15 +1454,15 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1405
1454
|
});
|
|
1406
1455
|
SafeAnchor.displayName = 'SafeAnchor';
|
|
1407
1456
|
|
|
1408
|
-
var DivStyledAsH4 = divWithClassName('h4');
|
|
1409
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
1457
|
+
var DivStyledAsH4$1 = divWithClassName('h4');
|
|
1458
|
+
DivStyledAsH4$1.displayName = 'DivStyledAsH4';
|
|
1410
1459
|
var AlertHeading = createWithBsPrefix('alert-heading', {
|
|
1411
|
-
Component: DivStyledAsH4
|
|
1460
|
+
Component: DivStyledAsH4$1
|
|
1412
1461
|
});
|
|
1413
1462
|
var AlertLink = createWithBsPrefix('alert-link', {
|
|
1414
1463
|
Component: SafeAnchor
|
|
1415
1464
|
});
|
|
1416
|
-
var defaultProps$
|
|
1465
|
+
var defaultProps$B = {
|
|
1417
1466
|
show: true,
|
|
1418
1467
|
transition: Fade,
|
|
1419
1468
|
closeLabel: 'Close alert'
|
|
@@ -1431,7 +1480,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1431
1480
|
onClose = _useUncontrolled.onClose,
|
|
1432
1481
|
dismissible = _useUncontrolled.dismissible,
|
|
1433
1482
|
transition = _useUncontrolled.transition,
|
|
1434
|
-
props = _objectWithoutPropertiesLoose
|
|
1483
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1435
1484
|
|
|
1436
1485
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1437
1486
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1440,7 +1489,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1440
1489
|
}
|
|
1441
1490
|
});
|
|
1442
1491
|
var Transition = transition === true ? Fade : transition;
|
|
1443
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends
|
|
1492
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1444
1493
|
role: "alert"
|
|
1445
1494
|
}, Transition ? props : undefined, {
|
|
1446
1495
|
ref: ref,
|
|
@@ -1450,7 +1499,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1450
1499
|
label: closeLabel
|
|
1451
1500
|
}), children);
|
|
1452
1501
|
if (!Transition) return show ? alert : null;
|
|
1453
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends
|
|
1502
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1454
1503
|
unmountOnExit: true
|
|
1455
1504
|
}, props, {
|
|
1456
1505
|
ref: undefined,
|
|
@@ -1458,11 +1507,11 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1458
1507
|
}), alert);
|
|
1459
1508
|
});
|
|
1460
1509
|
Alert.displayName = 'Alert';
|
|
1461
|
-
Alert.defaultProps = defaultProps$
|
|
1510
|
+
Alert.defaultProps = defaultProps$B;
|
|
1462
1511
|
Alert.Link = AlertLink;
|
|
1463
1512
|
Alert.Heading = AlertHeading;
|
|
1464
1513
|
|
|
1465
|
-
var defaultProps$
|
|
1514
|
+
var defaultProps$A = {
|
|
1466
1515
|
pill: false
|
|
1467
1516
|
};
|
|
1468
1517
|
var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1472,19 +1521,19 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1472
1521
|
className = _ref.className,
|
|
1473
1522
|
_ref$as = _ref.as,
|
|
1474
1523
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1475
|
-
props = _objectWithoutPropertiesLoose
|
|
1524
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1476
1525
|
|
|
1477
1526
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1478
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1527
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1479
1528
|
ref: ref
|
|
1480
1529
|
}, props, {
|
|
1481
1530
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1482
1531
|
}));
|
|
1483
1532
|
});
|
|
1484
1533
|
Badge.displayName = 'Badge';
|
|
1485
|
-
Badge.defaultProps = defaultProps$
|
|
1534
|
+
Badge.defaultProps = defaultProps$A;
|
|
1486
1535
|
|
|
1487
|
-
var defaultProps$
|
|
1536
|
+
var defaultProps$z = {
|
|
1488
1537
|
active: false,
|
|
1489
1538
|
linkProps: {}
|
|
1490
1539
|
};
|
|
@@ -1501,26 +1550,26 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1501
1550
|
href = _ref.href,
|
|
1502
1551
|
title = _ref.title,
|
|
1503
1552
|
target = _ref.target,
|
|
1504
|
-
props = _objectWithoutPropertiesLoose
|
|
1553
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1505
1554
|
|
|
1506
1555
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1507
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1556
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1508
1557
|
ref: ref
|
|
1509
1558
|
}, props, {
|
|
1510
1559
|
className: classnames(prefix, className, {
|
|
1511
1560
|
active: active
|
|
1512
1561
|
}),
|
|
1513
1562
|
"aria-current": active ? 'page' : undefined
|
|
1514
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends
|
|
1563
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1515
1564
|
href: href,
|
|
1516
1565
|
title: title,
|
|
1517
1566
|
target: target
|
|
1518
1567
|
}), children));
|
|
1519
1568
|
});
|
|
1520
1569
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
1521
|
-
BreadcrumbItem.defaultProps = defaultProps$
|
|
1570
|
+
BreadcrumbItem.defaultProps = defaultProps$z;
|
|
1522
1571
|
|
|
1523
|
-
var defaultProps$
|
|
1572
|
+
var defaultProps$y = {
|
|
1524
1573
|
label: 'breadcrumb',
|
|
1525
1574
|
listProps: {}
|
|
1526
1575
|
};
|
|
@@ -1532,22 +1581,22 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1532
1581
|
label = _ref.label,
|
|
1533
1582
|
_ref$as = _ref.as,
|
|
1534
1583
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1535
|
-
props = _objectWithoutPropertiesLoose
|
|
1584
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1536
1585
|
|
|
1537
1586
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1538
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1587
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1539
1588
|
"aria-label": label,
|
|
1540
1589
|
className: className,
|
|
1541
1590
|
ref: ref
|
|
1542
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends
|
|
1591
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1543
1592
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1544
1593
|
}), children));
|
|
1545
1594
|
});
|
|
1546
1595
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
1547
|
-
Breadcrumb.defaultProps = defaultProps$
|
|
1596
|
+
Breadcrumb.defaultProps = defaultProps$y;
|
|
1548
1597
|
Breadcrumb.Item = BreadcrumbItem;
|
|
1549
1598
|
|
|
1550
|
-
var defaultProps$
|
|
1599
|
+
var defaultProps$x = {
|
|
1551
1600
|
variant: 'primary',
|
|
1552
1601
|
active: false,
|
|
1553
1602
|
disabled: false
|
|
@@ -1561,13 +1610,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1561
1610
|
block = _ref.block,
|
|
1562
1611
|
type = _ref.type,
|
|
1563
1612
|
as = _ref.as,
|
|
1564
|
-
props = _objectWithoutPropertiesLoose
|
|
1613
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1565
1614
|
|
|
1566
1615
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1567
1616
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1568
1617
|
|
|
1569
1618
|
if (props.href) {
|
|
1570
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends
|
|
1619
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1571
1620
|
as: as,
|
|
1572
1621
|
ref: ref,
|
|
1573
1622
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1585,14 +1634,14 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1585
1634
|
}
|
|
1586
1635
|
|
|
1587
1636
|
var Component = as || 'button';
|
|
1588
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1637
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1589
1638
|
className: classes
|
|
1590
1639
|
}));
|
|
1591
1640
|
});
|
|
1592
1641
|
Button.displayName = 'Button';
|
|
1593
|
-
Button.defaultProps = defaultProps$
|
|
1642
|
+
Button.defaultProps = defaultProps$x;
|
|
1594
1643
|
|
|
1595
|
-
var defaultProps$
|
|
1644
|
+
var defaultProps$w = {
|
|
1596
1645
|
vertical: false,
|
|
1597
1646
|
toggle: false,
|
|
1598
1647
|
role: 'group'
|
|
@@ -1605,40 +1654,40 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1605
1654
|
className = _ref.className,
|
|
1606
1655
|
_ref$as = _ref.as,
|
|
1607
1656
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1608
|
-
rest = _objectWithoutPropertiesLoose
|
|
1657
|
+
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1609
1658
|
|
|
1610
1659
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1611
1660
|
var baseClass = prefix;
|
|
1612
1661
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1613
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1662
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1614
1663
|
ref: ref,
|
|
1615
1664
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1616
1665
|
}));
|
|
1617
1666
|
});
|
|
1618
1667
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
1619
|
-
ButtonGroup.defaultProps = defaultProps$
|
|
1668
|
+
ButtonGroup.defaultProps = defaultProps$w;
|
|
1620
1669
|
|
|
1621
|
-
var defaultProps$
|
|
1670
|
+
var defaultProps$v = {
|
|
1622
1671
|
role: 'toolbar'
|
|
1623
1672
|
};
|
|
1624
1673
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1625
1674
|
var bsPrefix = _ref.bsPrefix,
|
|
1626
1675
|
className = _ref.className,
|
|
1627
|
-
props = _objectWithoutPropertiesLoose
|
|
1676
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1628
1677
|
|
|
1629
1678
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1630
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
1679
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1631
1680
|
ref: ref,
|
|
1632
1681
|
className: classnames(className, prefix)
|
|
1633
1682
|
}));
|
|
1634
1683
|
});
|
|
1635
1684
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
1636
|
-
ButtonToolbar.defaultProps = defaultProps$
|
|
1685
|
+
ButtonToolbar.defaultProps = defaultProps$v;
|
|
1637
1686
|
|
|
1638
1687
|
var context$1 = React__default.createContext(null);
|
|
1639
1688
|
context$1.displayName = 'CardContext';
|
|
1640
1689
|
|
|
1641
|
-
var defaultProps$
|
|
1690
|
+
var defaultProps$u = {
|
|
1642
1691
|
variant: null
|
|
1643
1692
|
};
|
|
1644
1693
|
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
|
|
@@ -1648,16 +1697,16 @@ function (_ref, ref) {
|
|
|
1648
1697
|
variant = _ref.variant,
|
|
1649
1698
|
_ref$as = _ref.as,
|
|
1650
1699
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1651
|
-
props = _objectWithoutPropertiesLoose
|
|
1700
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1652
1701
|
|
|
1653
1702
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1654
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1703
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1655
1704
|
ref: ref,
|
|
1656
1705
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1657
1706
|
}, props));
|
|
1658
1707
|
});
|
|
1659
1708
|
CardImg.displayName = 'CardImg';
|
|
1660
|
-
CardImg.defaultProps = defaultProps$
|
|
1709
|
+
CardImg.defaultProps = defaultProps$u;
|
|
1661
1710
|
|
|
1662
1711
|
var DivStyledAsH5 = divWithClassName('h5');
|
|
1663
1712
|
var DivStyledAsH6 = divWithClassName('h6');
|
|
@@ -1677,7 +1726,7 @@ var CardText = createWithBsPrefix('card-text', {
|
|
|
1677
1726
|
var CardHeader = createWithBsPrefix('card-header');
|
|
1678
1727
|
var CardFooter = createWithBsPrefix('card-footer');
|
|
1679
1728
|
var CardImgOverlay = createWithBsPrefix('card-img-overlay');
|
|
1680
|
-
var defaultProps$
|
|
1729
|
+
var defaultProps$t = {
|
|
1681
1730
|
body: false
|
|
1682
1731
|
};
|
|
1683
1732
|
var Card = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1690,7 +1739,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1690
1739
|
children = _ref.children,
|
|
1691
1740
|
_ref$as = _ref.as,
|
|
1692
1741
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1693
|
-
props = _objectWithoutPropertiesLoose
|
|
1742
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1694
1743
|
|
|
1695
1744
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1696
1745
|
var cardContext = useMemo(function () {
|
|
@@ -1700,7 +1749,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1700
1749
|
}, [prefix]);
|
|
1701
1750
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1702
1751
|
value: cardContext
|
|
1703
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1752
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1704
1753
|
ref: ref
|
|
1705
1754
|
}, props, {
|
|
1706
1755
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1710,7 +1759,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1710
1759
|
React__default.createElement(CardBody, null, children) : children));
|
|
1711
1760
|
});
|
|
1712
1761
|
Card.displayName = 'Card';
|
|
1713
|
-
Card.defaultProps = defaultProps$
|
|
1762
|
+
Card.defaultProps = defaultProps$t;
|
|
1714
1763
|
Card.Img = CardImg;
|
|
1715
1764
|
Card.Title = CardTitle;
|
|
1716
1765
|
Card.Subtitle = CardSubtitle;
|
|
@@ -1903,10 +1952,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1903
1952
|
bsPrefix = _ref.bsPrefix,
|
|
1904
1953
|
children = _ref.children,
|
|
1905
1954
|
className = _ref.className,
|
|
1906
|
-
props = _objectWithoutPropertiesLoose
|
|
1955
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1907
1956
|
|
|
1908
1957
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1909
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
1958
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1910
1959
|
ref: ref
|
|
1911
1960
|
}, props, {
|
|
1912
1961
|
className: finalClassName
|
|
@@ -1945,7 +1994,7 @@ function forEach(children, func) {
|
|
|
1945
1994
|
}
|
|
1946
1995
|
|
|
1947
1996
|
var SWIPE_THRESHOLD = 40;
|
|
1948
|
-
var propTypes$
|
|
1997
|
+
var propTypes$9 = {
|
|
1949
1998
|
/**
|
|
1950
1999
|
* @default 'carousel'
|
|
1951
2000
|
*/
|
|
@@ -2047,7 +2096,7 @@ var propTypes$1 = {
|
|
|
2047
2096
|
*/
|
|
2048
2097
|
nextLabel: PropTypes.string
|
|
2049
2098
|
};
|
|
2050
|
-
var defaultProps$
|
|
2099
|
+
var defaultProps$s = {
|
|
2051
2100
|
slide: true,
|
|
2052
2101
|
fade: false,
|
|
2053
2102
|
controls: true,
|
|
@@ -2111,7 +2160,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2111
2160
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2112
2161
|
className = _useUncontrolled.className,
|
|
2113
2162
|
children = _useUncontrolled.children,
|
|
2114
|
-
props = _objectWithoutPropertiesLoose
|
|
2163
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2115
2164
|
|
|
2116
2165
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2117
2166
|
var nextDirectionRef = useRef(null);
|
|
@@ -2368,7 +2417,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2368
2417
|
};
|
|
2369
2418
|
});
|
|
2370
2419
|
}, [indicators, numChildren, onSelect]);
|
|
2371
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
2420
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2372
2421
|
ref: elementRef
|
|
2373
2422
|
}, props, {
|
|
2374
2423
|
onKeyDown: handleKeyDown,
|
|
@@ -2417,24 +2466,24 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2417
2466
|
|
|
2418
2467
|
var Carousel = React__default.forwardRef(CarouselFunc);
|
|
2419
2468
|
Carousel.displayName = 'Carousel';
|
|
2420
|
-
Carousel.propTypes = propTypes$
|
|
2421
|
-
Carousel.defaultProps = defaultProps$
|
|
2469
|
+
Carousel.propTypes = propTypes$9;
|
|
2470
|
+
Carousel.defaultProps = defaultProps$s;
|
|
2422
2471
|
Carousel.Caption = CarouselCaption;
|
|
2423
2472
|
Carousel.Item = CarouselItem;
|
|
2424
2473
|
|
|
2425
|
-
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2474
|
+
var DEVICE_SIZES$1 = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
2426
2475
|
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
|
|
2427
2476
|
function (_ref, ref) {
|
|
2428
2477
|
var bsPrefix = _ref.bsPrefix,
|
|
2429
2478
|
className = _ref.className,
|
|
2430
2479
|
_ref$as = _ref.as,
|
|
2431
2480
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2432
|
-
props = _objectWithoutPropertiesLoose
|
|
2481
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2433
2482
|
|
|
2434
2483
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2435
2484
|
var spans = [];
|
|
2436
2485
|
var classes = [];
|
|
2437
|
-
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
2486
|
+
DEVICE_SIZES$1.forEach(function (brkPoint) {
|
|
2438
2487
|
var propValue = props[brkPoint];
|
|
2439
2488
|
delete props[brkPoint];
|
|
2440
2489
|
var span;
|
|
@@ -2460,7 +2509,7 @@ function (_ref, ref) {
|
|
|
2460
2509
|
spans.push(prefix); // plain 'col'
|
|
2461
2510
|
}
|
|
2462
2511
|
|
|
2463
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
2512
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2464
2513
|
ref: ref,
|
|
2465
2514
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2466
2515
|
}));
|
|
@@ -2468,6 +2517,13 @@ function (_ref, ref) {
|
|
|
2468
2517
|
Col.displayName = 'Col';
|
|
2469
2518
|
|
|
2470
2519
|
var matchesImpl;
|
|
2520
|
+
/**
|
|
2521
|
+
* Checks if a given element matches a selector.
|
|
2522
|
+
*
|
|
2523
|
+
* @param node the element
|
|
2524
|
+
* @param selector the selector
|
|
2525
|
+
*/
|
|
2526
|
+
|
|
2471
2527
|
function matches(node, selector) {
|
|
2472
2528
|
if (!matchesImpl) {
|
|
2473
2529
|
var body = document.body;
|
|
@@ -2482,6 +2538,13 @@ function matches(node, selector) {
|
|
|
2482
2538
|
}
|
|
2483
2539
|
|
|
2484
2540
|
var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
2541
|
+
/**
|
|
2542
|
+
* Runs `querySelectorAll` on a given element.
|
|
2543
|
+
*
|
|
2544
|
+
* @param element the element
|
|
2545
|
+
* @param selector the selector
|
|
2546
|
+
*/
|
|
2547
|
+
|
|
2485
2548
|
function qsa(element, selector) {
|
|
2486
2549
|
return toArray(element.querySelectorAll(selector));
|
|
2487
2550
|
}
|
|
@@ -2571,39 +2634,6 @@ function useForceUpdate() {
|
|
|
2571
2634
|
|
|
2572
2635
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2573
2636
|
|
|
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
|
-
}
|
|
2606
|
-
|
|
2607
2637
|
function useSafeState(state) {
|
|
2608
2638
|
var isMounted = useMounted();
|
|
2609
2639
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2648,21 +2678,50 @@ function getBasePlacement(placement) {
|
|
|
2648
2678
|
return placement.split('-')[0];
|
|
2649
2679
|
}
|
|
2650
2680
|
|
|
2651
|
-
|
|
2681
|
+
function getBoundingClientRect(element) {
|
|
2682
|
+
var rect = element.getBoundingClientRect();
|
|
2683
|
+
return {
|
|
2684
|
+
width: rect.width,
|
|
2685
|
+
height: rect.height,
|
|
2686
|
+
top: rect.top,
|
|
2687
|
+
right: rect.right,
|
|
2688
|
+
bottom: rect.bottom,
|
|
2689
|
+
left: rect.left,
|
|
2690
|
+
x: rect.left,
|
|
2691
|
+
y: rect.top
|
|
2692
|
+
};
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2652
2695
|
// means it doesn't take into account transforms.
|
|
2696
|
+
|
|
2653
2697
|
function getLayoutRect(element) {
|
|
2698
|
+
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2699
|
+
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2700
|
+
|
|
2701
|
+
var width = element.offsetWidth;
|
|
2702
|
+
var height = element.offsetHeight;
|
|
2703
|
+
|
|
2704
|
+
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2705
|
+
width = clientRect.width;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2709
|
+
height = clientRect.height;
|
|
2710
|
+
}
|
|
2711
|
+
|
|
2654
2712
|
return {
|
|
2655
2713
|
x: element.offsetLeft,
|
|
2656
2714
|
y: element.offsetTop,
|
|
2657
|
-
width:
|
|
2658
|
-
height:
|
|
2715
|
+
width: width,
|
|
2716
|
+
height: height
|
|
2659
2717
|
};
|
|
2660
2718
|
}
|
|
2661
2719
|
|
|
2662
|
-
/*:: import type { Window } from '../types'; */
|
|
2663
|
-
|
|
2664
|
-
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2665
2720
|
function getWindow(node) {
|
|
2721
|
+
if (node == null) {
|
|
2722
|
+
return window;
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2666
2725
|
if (node.toString() !== '[object Window]') {
|
|
2667
2726
|
var ownerDocument = node.ownerDocument;
|
|
2668
2727
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2671,31 +2730,27 @@ function getWindow(node) {
|
|
|
2671
2730
|
return node;
|
|
2672
2731
|
}
|
|
2673
2732
|
|
|
2674
|
-
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2675
|
-
Element); */
|
|
2676
|
-
|
|
2677
2733
|
function isElement(node) {
|
|
2678
2734
|
var OwnElement = getWindow(node).Element;
|
|
2679
2735
|
return node instanceof OwnElement || node instanceof Element;
|
|
2680
2736
|
}
|
|
2681
|
-
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2682
|
-
HTMLElement); */
|
|
2683
|
-
|
|
2684
2737
|
|
|
2685
2738
|
function isHTMLElement(node) {
|
|
2686
2739
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2687
2740
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2688
2741
|
}
|
|
2689
|
-
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2690
|
-
ShadowRoot); */
|
|
2691
|
-
|
|
2692
2742
|
|
|
2693
2743
|
function isShadowRoot(node) {
|
|
2744
|
+
// IE 11 has no ShadowRoot
|
|
2745
|
+
if (typeof ShadowRoot === 'undefined') {
|
|
2746
|
+
return false;
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2694
2749
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2695
2750
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2696
2751
|
}
|
|
2697
2752
|
|
|
2698
|
-
function contains(parent, child) {
|
|
2753
|
+
function contains$1(parent, child) {
|
|
2699
2754
|
var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
|
|
2700
2755
|
|
|
2701
2756
|
if (parent.contains(child)) {
|
|
@@ -2722,7 +2777,7 @@ function getNodeName(element) {
|
|
|
2722
2777
|
return element ? (element.nodeName || '').toLowerCase() : null;
|
|
2723
2778
|
}
|
|
2724
2779
|
|
|
2725
|
-
function getComputedStyle$
|
|
2780
|
+
function getComputedStyle$1(element) {
|
|
2726
2781
|
return getWindow(element).getComputedStyle(element);
|
|
2727
2782
|
}
|
|
2728
2783
|
|
|
@@ -2745,9 +2800,8 @@ function getParentNode(element) {
|
|
|
2745
2800
|
// $FlowFixMe[incompatible-return]
|
|
2746
2801
|
// $FlowFixMe[prop-missing]
|
|
2747
2802
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2748
|
-
element.parentNode || // DOM Element detected
|
|
2749
|
-
|
|
2750
|
-
element.host || // ShadowRoot detected
|
|
2803
|
+
element.parentNode || ( // DOM Element detected
|
|
2804
|
+
isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
|
|
2751
2805
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2752
2806
|
getDocumentElement(element) // fallback
|
|
2753
2807
|
|
|
@@ -2756,33 +2810,36 @@ function getParentNode(element) {
|
|
|
2756
2810
|
|
|
2757
2811
|
function getTrueOffsetParent(element) {
|
|
2758
2812
|
if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
|
|
2759
|
-
getComputedStyle$
|
|
2813
|
+
getComputedStyle$1(element).position === 'fixed') {
|
|
2760
2814
|
return null;
|
|
2761
2815
|
}
|
|
2762
2816
|
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
if (offsetParent) {
|
|
2766
|
-
var html = getDocumentElement(offsetParent);
|
|
2767
|
-
|
|
2768
|
-
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2769
|
-
return html;
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
return offsetParent;
|
|
2817
|
+
return element.offsetParent;
|
|
2774
2818
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2775
2819
|
// return the containing block
|
|
2776
2820
|
|
|
2777
2821
|
|
|
2778
2822
|
function getContainingBlock(element) {
|
|
2823
|
+
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2824
|
+
var isIE = navigator.userAgent.indexOf('Trident') !== -1;
|
|
2825
|
+
|
|
2826
|
+
if (isIE && isHTMLElement(element)) {
|
|
2827
|
+
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
2828
|
+
var elementCss = getComputedStyle$1(element);
|
|
2829
|
+
|
|
2830
|
+
if (elementCss.position === 'fixed') {
|
|
2831
|
+
return null;
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2779
2835
|
var currentNode = getParentNode(element);
|
|
2780
2836
|
|
|
2781
2837
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2782
|
-
var css = getComputedStyle$
|
|
2838
|
+
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2783
2839
|
// create a containing block.
|
|
2840
|
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2784
2841
|
|
|
2785
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== '
|
|
2842
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {
|
|
2786
2843
|
return currentNode;
|
|
2787
2844
|
} else {
|
|
2788
2845
|
currentNode = currentNode.parentNode;
|
|
@@ -2798,11 +2855,11 @@ function getOffsetParent(element) {
|
|
|
2798
2855
|
var window = getWindow(element);
|
|
2799
2856
|
var offsetParent = getTrueOffsetParent(element);
|
|
2800
2857
|
|
|
2801
|
-
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$
|
|
2858
|
+
while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
|
|
2802
2859
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2803
2860
|
}
|
|
2804
2861
|
|
|
2805
|
-
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$
|
|
2862
|
+
if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static')) {
|
|
2806
2863
|
return window;
|
|
2807
2864
|
}
|
|
2808
2865
|
|
|
@@ -2813,8 +2870,12 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2813
2870
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2814
2871
|
}
|
|
2815
2872
|
|
|
2816
|
-
|
|
2817
|
-
|
|
2873
|
+
var max = Math.max;
|
|
2874
|
+
var min = Math.min;
|
|
2875
|
+
var round = Math.round;
|
|
2876
|
+
|
|
2877
|
+
function within(min$1, value, max$1) {
|
|
2878
|
+
return max(min$1, min(value, max$1));
|
|
2818
2879
|
}
|
|
2819
2880
|
|
|
2820
2881
|
function getFreshSideObject() {
|
|
@@ -2827,7 +2888,7 @@ function getFreshSideObject() {
|
|
|
2827
2888
|
}
|
|
2828
2889
|
|
|
2829
2890
|
function mergePaddingObject(paddingObject) {
|
|
2830
|
-
return Object.assign(
|
|
2891
|
+
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2831
2892
|
}
|
|
2832
2893
|
|
|
2833
2894
|
function expandToHashMap(value, keys) {
|
|
@@ -2837,11 +2898,19 @@ function expandToHashMap(value, keys) {
|
|
|
2837
2898
|
}, {});
|
|
2838
2899
|
}
|
|
2839
2900
|
|
|
2901
|
+
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2902
|
+
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2903
|
+
placement: state.placement
|
|
2904
|
+
})) : padding;
|
|
2905
|
+
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2906
|
+
};
|
|
2907
|
+
|
|
2840
2908
|
function arrow(_ref) {
|
|
2841
2909
|
var _state$modifiersData$;
|
|
2842
2910
|
|
|
2843
2911
|
var state = _ref.state,
|
|
2844
|
-
name = _ref.name
|
|
2912
|
+
name = _ref.name,
|
|
2913
|
+
options = _ref.options;
|
|
2845
2914
|
var arrowElement = state.elements.arrow;
|
|
2846
2915
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2847
2916
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2853,7 +2922,7 @@ function arrow(_ref) {
|
|
|
2853
2922
|
return;
|
|
2854
2923
|
}
|
|
2855
2924
|
|
|
2856
|
-
var paddingObject =
|
|
2925
|
+
var paddingObject = toPaddingObject(options.padding, state);
|
|
2857
2926
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2858
2927
|
var minProp = axis === 'y' ? top : left;
|
|
2859
2928
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2873,14 +2942,11 @@ function arrow(_ref) {
|
|
|
2873
2942
|
state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);
|
|
2874
2943
|
}
|
|
2875
2944
|
|
|
2876
|
-
function effect(_ref2) {
|
|
2945
|
+
function effect$1(_ref2) {
|
|
2877
2946
|
var state = _ref2.state,
|
|
2878
|
-
options = _ref2.options
|
|
2879
|
-
name = _ref2.name;
|
|
2947
|
+
options = _ref2.options;
|
|
2880
2948
|
var _options$element = options.element,
|
|
2881
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2882
|
-
_options$padding = options.padding,
|
|
2883
|
-
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2949
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;
|
|
2884
2950
|
|
|
2885
2951
|
if (arrowElement == null) {
|
|
2886
2952
|
return;
|
|
@@ -2901,7 +2967,7 @@ function effect(_ref2) {
|
|
|
2901
2967
|
}
|
|
2902
2968
|
}
|
|
2903
2969
|
|
|
2904
|
-
if (!contains(state.elements.popper, arrowElement)) {
|
|
2970
|
+
if (!contains$1(state.elements.popper, arrowElement)) {
|
|
2905
2971
|
if (process.env.NODE_ENV !== "production") {
|
|
2906
2972
|
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
2907
2973
|
}
|
|
@@ -2910,9 +2976,6 @@ function effect(_ref2) {
|
|
|
2910
2976
|
}
|
|
2911
2977
|
|
|
2912
2978
|
state.elements.arrow = arrowElement;
|
|
2913
|
-
state.modifiersData[name + "#persistent"] = {
|
|
2914
|
-
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2915
|
-
};
|
|
2916
2979
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2917
2980
|
|
|
2918
2981
|
|
|
@@ -2921,7 +2984,7 @@ var arrow$1 = {
|
|
|
2921
2984
|
enabled: true,
|
|
2922
2985
|
phase: 'main',
|
|
2923
2986
|
fn: arrow,
|
|
2924
|
-
effect: effect,
|
|
2987
|
+
effect: effect$1,
|
|
2925
2988
|
requires: ['popperOffsets'],
|
|
2926
2989
|
requiresIfExists: ['preventOverflow']
|
|
2927
2990
|
};
|
|
@@ -2941,8 +3004,8 @@ function roundOffsetsByDPR(_ref) {
|
|
|
2941
3004
|
var win = window;
|
|
2942
3005
|
var dpr = win.devicePixelRatio || 1;
|
|
2943
3006
|
return {
|
|
2944
|
-
x:
|
|
2945
|
-
y:
|
|
3007
|
+
x: round(round(x * dpr) / dpr) || 0,
|
|
3008
|
+
y: round(round(y * dpr) / dpr) || 0
|
|
2946
3009
|
};
|
|
2947
3010
|
}
|
|
2948
3011
|
|
|
@@ -2958,7 +3021,7 @@ function mapToStyles(_ref2) {
|
|
|
2958
3021
|
adaptive = _ref2.adaptive,
|
|
2959
3022
|
roundOffsets = _ref2.roundOffsets;
|
|
2960
3023
|
|
|
2961
|
-
var _ref3 = roundOffsets ? roundOffsetsByDPR(offsets) : offsets,
|
|
3024
|
+
var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
|
|
2962
3025
|
_ref3$x = _ref3.x,
|
|
2963
3026
|
x = _ref3$x === void 0 ? 0 : _ref3$x,
|
|
2964
3027
|
_ref3$y = _ref3.y,
|
|
@@ -2972,23 +3035,32 @@ function mapToStyles(_ref2) {
|
|
|
2972
3035
|
|
|
2973
3036
|
if (adaptive) {
|
|
2974
3037
|
var offsetParent = getOffsetParent(popper);
|
|
3038
|
+
var heightProp = 'clientHeight';
|
|
3039
|
+
var widthProp = 'clientWidth';
|
|
2975
3040
|
|
|
2976
3041
|
if (offsetParent === getWindow(popper)) {
|
|
2977
3042
|
offsetParent = getDocumentElement(popper);
|
|
3043
|
+
|
|
3044
|
+
if (getComputedStyle$1(offsetParent).position !== 'static') {
|
|
3045
|
+
heightProp = 'scrollHeight';
|
|
3046
|
+
widthProp = 'scrollWidth';
|
|
3047
|
+
}
|
|
2978
3048
|
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2979
3049
|
|
|
2980
|
-
/*:: offsetParent = (offsetParent: Element); */
|
|
2981
3050
|
|
|
3051
|
+
offsetParent = offsetParent;
|
|
2982
3052
|
|
|
2983
3053
|
if (placement === top) {
|
|
2984
|
-
sideY = bottom;
|
|
2985
|
-
|
|
3054
|
+
sideY = bottom; // $FlowFixMe[prop-missing]
|
|
3055
|
+
|
|
3056
|
+
y -= offsetParent[heightProp] - popperRect.height;
|
|
2986
3057
|
y *= gpuAcceleration ? 1 : -1;
|
|
2987
3058
|
}
|
|
2988
3059
|
|
|
2989
3060
|
if (placement === left) {
|
|
2990
|
-
sideX = right;
|
|
2991
|
-
|
|
3061
|
+
sideX = right; // $FlowFixMe[prop-missing]
|
|
3062
|
+
|
|
3063
|
+
x -= offsetParent[widthProp] - popperRect.width;
|
|
2992
3064
|
x *= gpuAcceleration ? 1 : -1;
|
|
2993
3065
|
}
|
|
2994
3066
|
}
|
|
@@ -3000,10 +3072,10 @@ function mapToStyles(_ref2) {
|
|
|
3000
3072
|
if (gpuAcceleration) {
|
|
3001
3073
|
var _Object$assign;
|
|
3002
3074
|
|
|
3003
|
-
return Object.assign(
|
|
3075
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3004
3076
|
}
|
|
3005
3077
|
|
|
3006
|
-
return Object.assign(
|
|
3078
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3007
3079
|
}
|
|
3008
3080
|
|
|
3009
3081
|
function computeStyles(_ref4) {
|
|
@@ -3017,7 +3089,7 @@ function computeStyles(_ref4) {
|
|
|
3017
3089
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
3018
3090
|
|
|
3019
3091
|
if (process.env.NODE_ENV !== "production") {
|
|
3020
|
-
var transitionProperty = getComputedStyle$
|
|
3092
|
+
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || '';
|
|
3021
3093
|
|
|
3022
3094
|
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
3023
3095
|
return transitionProperty.indexOf(property) >= 0;
|
|
@@ -3034,7 +3106,7 @@ function computeStyles(_ref4) {
|
|
|
3034
3106
|
};
|
|
3035
3107
|
|
|
3036
3108
|
if (state.modifiersData.popperOffsets != null) {
|
|
3037
|
-
state.styles.popper = Object.assign(
|
|
3109
|
+
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
3038
3110
|
offsets: state.modifiersData.popperOffsets,
|
|
3039
3111
|
position: state.options.strategy,
|
|
3040
3112
|
adaptive: adaptive,
|
|
@@ -3043,7 +3115,7 @@ function computeStyles(_ref4) {
|
|
|
3043
3115
|
}
|
|
3044
3116
|
|
|
3045
3117
|
if (state.modifiersData.arrow != null) {
|
|
3046
|
-
state.styles.arrow = Object.assign(
|
|
3118
|
+
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
3047
3119
|
offsets: state.modifiersData.arrow,
|
|
3048
3120
|
position: 'absolute',
|
|
3049
3121
|
adaptive: false,
|
|
@@ -3051,7 +3123,7 @@ function computeStyles(_ref4) {
|
|
|
3051
3123
|
})));
|
|
3052
3124
|
}
|
|
3053
3125
|
|
|
3054
|
-
state.attributes.popper = Object.assign(
|
|
3126
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3055
3127
|
'data-popper-placement': state.placement
|
|
3056
3128
|
});
|
|
3057
3129
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3069,7 +3141,7 @@ var passive = {
|
|
|
3069
3141
|
passive: true
|
|
3070
3142
|
};
|
|
3071
3143
|
|
|
3072
|
-
function effect
|
|
3144
|
+
function effect(_ref) {
|
|
3073
3145
|
var state = _ref.state,
|
|
3074
3146
|
instance = _ref.instance,
|
|
3075
3147
|
options = _ref.options;
|
|
@@ -3109,11 +3181,11 @@ var eventListeners = {
|
|
|
3109
3181
|
enabled: true,
|
|
3110
3182
|
phase: 'write',
|
|
3111
3183
|
fn: function fn() {},
|
|
3112
|
-
effect: effect
|
|
3184
|
+
effect: effect,
|
|
3113
3185
|
data: {}
|
|
3114
3186
|
};
|
|
3115
3187
|
|
|
3116
|
-
var hash = {
|
|
3188
|
+
var hash$1 = {
|
|
3117
3189
|
left: 'right',
|
|
3118
3190
|
right: 'left',
|
|
3119
3191
|
bottom: 'top',
|
|
@@ -3121,34 +3193,20 @@ var hash = {
|
|
|
3121
3193
|
};
|
|
3122
3194
|
function getOppositePlacement(placement) {
|
|
3123
3195
|
return placement.replace(/left|right|bottom|top/g, function (matched) {
|
|
3124
|
-
return hash[matched];
|
|
3196
|
+
return hash$1[matched];
|
|
3125
3197
|
});
|
|
3126
3198
|
}
|
|
3127
3199
|
|
|
3128
|
-
var hash
|
|
3200
|
+
var hash = {
|
|
3129
3201
|
start: 'end',
|
|
3130
3202
|
end: 'start'
|
|
3131
3203
|
};
|
|
3132
3204
|
function getOppositeVariationPlacement(placement) {
|
|
3133
3205
|
return placement.replace(/start|end/g, function (matched) {
|
|
3134
|
-
return hash
|
|
3206
|
+
return hash[matched];
|
|
3135
3207
|
});
|
|
3136
3208
|
}
|
|
3137
3209
|
|
|
3138
|
-
function getBoundingClientRect(element) {
|
|
3139
|
-
var rect = element.getBoundingClientRect();
|
|
3140
|
-
return {
|
|
3141
|
-
width: rect.width,
|
|
3142
|
-
height: rect.height,
|
|
3143
|
-
top: rect.top,
|
|
3144
|
-
right: rect.right,
|
|
3145
|
-
bottom: rect.bottom,
|
|
3146
|
-
left: rect.left,
|
|
3147
|
-
x: rect.left,
|
|
3148
|
-
y: rect.top
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
3210
|
function getWindowScroll(node) {
|
|
3153
3211
|
var win = getWindow(node);
|
|
3154
3212
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3211,16 +3269,18 @@ function getViewportRect(element) {
|
|
|
3211
3269
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3212
3270
|
|
|
3213
3271
|
function getDocumentRect(element) {
|
|
3272
|
+
var _element$ownerDocumen;
|
|
3273
|
+
|
|
3214
3274
|
var html = getDocumentElement(element);
|
|
3215
3275
|
var winScroll = getWindowScroll(element);
|
|
3216
|
-
var body = element.ownerDocument.body;
|
|
3217
|
-
var width =
|
|
3218
|
-
var height =
|
|
3276
|
+
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
3277
|
+
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3278
|
+
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3219
3279
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3220
3280
|
var y = -winScroll.scrollTop;
|
|
3221
3281
|
|
|
3222
|
-
if (getComputedStyle$
|
|
3223
|
-
x +=
|
|
3282
|
+
if (getComputedStyle$1(body || html).direction === 'rtl') {
|
|
3283
|
+
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3224
3284
|
}
|
|
3225
3285
|
|
|
3226
3286
|
return {
|
|
@@ -3233,7 +3293,7 @@ function getDocumentRect(element) {
|
|
|
3233
3293
|
|
|
3234
3294
|
function isScrollParent(element) {
|
|
3235
3295
|
// Firefox wants us to check `-x` and `-y` variations as well
|
|
3236
|
-
var _getComputedStyle = getComputedStyle$
|
|
3296
|
+
var _getComputedStyle = getComputedStyle$1(element),
|
|
3237
3297
|
overflow = _getComputedStyle.overflow,
|
|
3238
3298
|
overflowX = _getComputedStyle.overflowX,
|
|
3239
3299
|
overflowY = _getComputedStyle.overflowY;
|
|
@@ -3262,12 +3322,14 @@ reference element's position.
|
|
|
3262
3322
|
*/
|
|
3263
3323
|
|
|
3264
3324
|
function listScrollParents(element, list) {
|
|
3325
|
+
var _element$ownerDocumen;
|
|
3326
|
+
|
|
3265
3327
|
if (list === void 0) {
|
|
3266
3328
|
list = [];
|
|
3267
3329
|
}
|
|
3268
3330
|
|
|
3269
3331
|
var scrollParent = getScrollParent(element);
|
|
3270
|
-
var isBody =
|
|
3332
|
+
var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
|
|
3271
3333
|
var win = getWindow(scrollParent);
|
|
3272
3334
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3273
3335
|
var updatedList = list.concat(target);
|
|
@@ -3276,7 +3338,7 @@ function listScrollParents(element, list) {
|
|
|
3276
3338
|
}
|
|
3277
3339
|
|
|
3278
3340
|
function rectToClientRect(rect) {
|
|
3279
|
-
return Object.assign(
|
|
3341
|
+
return Object.assign({}, rect, {
|
|
3280
3342
|
left: rect.x,
|
|
3281
3343
|
top: rect.y,
|
|
3282
3344
|
right: rect.x + rect.width,
|
|
@@ -3306,7 +3368,7 @@ function getClientRectFromMixedType(element, clippingParent) {
|
|
|
3306
3368
|
|
|
3307
3369
|
function getClippingParents(element) {
|
|
3308
3370
|
var clippingParents = listScrollParents(getParentNode(element));
|
|
3309
|
-
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$
|
|
3371
|
+
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$1(element).position) >= 0;
|
|
3310
3372
|
var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
|
|
3311
3373
|
|
|
3312
3374
|
if (!isElement(clipperElement)) {
|
|
@@ -3315,7 +3377,7 @@ function getClippingParents(element) {
|
|
|
3315
3377
|
|
|
3316
3378
|
|
|
3317
3379
|
return clippingParents.filter(function (clippingParent) {
|
|
3318
|
-
return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3380
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3319
3381
|
});
|
|
3320
3382
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3321
3383
|
// clipping parents
|
|
@@ -3327,10 +3389,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3327
3389
|
var firstClippingParent = clippingParents[0];
|
|
3328
3390
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3329
3391
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3330
|
-
accRect.top =
|
|
3331
|
-
accRect.right =
|
|
3332
|
-
accRect.bottom =
|
|
3333
|
-
accRect.left =
|
|
3392
|
+
accRect.top = max(rect.top, accRect.top);
|
|
3393
|
+
accRect.right = min(rect.right, accRect.right);
|
|
3394
|
+
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3395
|
+
accRect.left = max(rect.left, accRect.left);
|
|
3334
3396
|
return accRect;
|
|
3335
3397
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3336
3398
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3440,7 +3502,7 @@ function detectOverflow(state, options) {
|
|
|
3440
3502
|
strategy: 'absolute',
|
|
3441
3503
|
placement: placement
|
|
3442
3504
|
});
|
|
3443
|
-
var popperClientRect = rectToClientRect(Object.assign(
|
|
3505
|
+
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3444
3506
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3445
3507
|
// 0 or negative = within the clipping rect
|
|
3446
3508
|
|
|
@@ -3464,9 +3526,6 @@ function detectOverflow(state, options) {
|
|
|
3464
3526
|
return overflowOffsets;
|
|
3465
3527
|
}
|
|
3466
3528
|
|
|
3467
|
-
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3468
|
-
|
|
3469
|
-
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3470
3529
|
function computeAutoPlacement(state, options) {
|
|
3471
3530
|
if (options === void 0) {
|
|
3472
3531
|
options = {};
|
|
@@ -3695,7 +3754,7 @@ function hide(_ref) {
|
|
|
3695
3754
|
isReferenceHidden: isReferenceHidden,
|
|
3696
3755
|
hasPopperEscaped: hasPopperEscaped
|
|
3697
3756
|
};
|
|
3698
|
-
state.attributes.popper = Object.assign(
|
|
3757
|
+
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3699
3758
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3700
3759
|
'data-popper-escaped': hasPopperEscaped
|
|
3701
3760
|
});
|
|
@@ -3714,7 +3773,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3714
3773
|
var basePlacement = getBasePlacement(placement);
|
|
3715
3774
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3716
3775
|
|
|
3717
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign(
|
|
3776
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3718
3777
|
placement: placement
|
|
3719
3778
|
})) : offset,
|
|
3720
3779
|
skidding = _ref[0],
|
|
@@ -3820,7 +3879,7 @@ function preventOverflow(_ref) {
|
|
|
3820
3879
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3821
3880
|
var referenceRect = state.rects.reference;
|
|
3822
3881
|
var popperRect = state.rects.popper;
|
|
3823
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(
|
|
3882
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3824
3883
|
placement: state.placement
|
|
3825
3884
|
})) : tetherOffset;
|
|
3826
3885
|
var data = {
|
|
@@ -3832,13 +3891,13 @@ function preventOverflow(_ref) {
|
|
|
3832
3891
|
return;
|
|
3833
3892
|
}
|
|
3834
3893
|
|
|
3835
|
-
if (checkMainAxis) {
|
|
3894
|
+
if (checkMainAxis || checkAltAxis) {
|
|
3836
3895
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3837
3896
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3838
3897
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3839
3898
|
var offset = popperOffsets[mainAxis];
|
|
3840
|
-
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3841
|
-
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3899
|
+
var min$1 = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3900
|
+
var max$1 = popperOffsets[mainAxis] - overflow[altSide];
|
|
3842
3901
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3843
3902
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3844
3903
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3865,26 +3924,29 @@ function preventOverflow(_ref) {
|
|
|
3865
3924
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3866
3925
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3867
3926
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3868
|
-
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3869
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3870
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3871
|
-
}
|
|
3872
3927
|
|
|
3873
|
-
|
|
3874
|
-
|
|
3928
|
+
if (checkMainAxis) {
|
|
3929
|
+
var preventedOffset = within(tether ? min(min$1, tetherMin) : min$1, offset, tether ? max(max$1, tetherMax) : max$1);
|
|
3930
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3931
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3932
|
+
}
|
|
3875
3933
|
|
|
3876
|
-
|
|
3934
|
+
if (checkAltAxis) {
|
|
3935
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3877
3936
|
|
|
3878
|
-
|
|
3937
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3879
3938
|
|
|
3880
|
-
|
|
3939
|
+
var _offset = popperOffsets[altAxis];
|
|
3881
3940
|
|
|
3882
|
-
|
|
3941
|
+
var _min = _offset + overflow[_mainSide];
|
|
3883
3942
|
|
|
3884
|
-
|
|
3943
|
+
var _max = _offset - overflow[_altSide];
|
|
3885
3944
|
|
|
3886
|
-
|
|
3887
|
-
|
|
3945
|
+
var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
|
|
3946
|
+
|
|
3947
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3948
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3949
|
+
}
|
|
3888
3950
|
}
|
|
3889
3951
|
|
|
3890
3952
|
state.modifiersData[name] = data;
|
|
@@ -4115,9 +4177,9 @@ function uniqueBy(arr, fn) {
|
|
|
4115
4177
|
function mergeByName(modifiers) {
|
|
4116
4178
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4117
4179
|
var existing = merged[current.name];
|
|
4118
|
-
merged[current.name] = existing ? Object.assign(
|
|
4119
|
-
options: Object.assign(
|
|
4120
|
-
data: Object.assign(
|
|
4180
|
+
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4181
|
+
options: Object.assign({}, existing.options, current.options),
|
|
4182
|
+
data: Object.assign({}, existing.data, current.data)
|
|
4121
4183
|
}) : current;
|
|
4122
4184
|
return merged;
|
|
4123
4185
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4163,7 +4225,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4163
4225
|
var state = {
|
|
4164
4226
|
placement: 'bottom',
|
|
4165
4227
|
orderedModifiers: [],
|
|
4166
|
-
options: Object.assign(
|
|
4228
|
+
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4167
4229
|
modifiersData: {},
|
|
4168
4230
|
elements: {
|
|
4169
4231
|
reference: reference,
|
|
@@ -4178,7 +4240,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4178
4240
|
state: state,
|
|
4179
4241
|
setOptions: function setOptions(options) {
|
|
4180
4242
|
cleanupModifierEffects();
|
|
4181
|
-
state.options = Object.assign(
|
|
4243
|
+
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4182
4244
|
state.scrollParents = {
|
|
4183
4245
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4184
4246
|
popper: listScrollParents(popper)
|
|
@@ -4210,7 +4272,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4210
4272
|
}
|
|
4211
4273
|
}
|
|
4212
4274
|
|
|
4213
|
-
var _getComputedStyle = getComputedStyle$
|
|
4275
|
+
var _getComputedStyle = getComputedStyle$1(popper),
|
|
4214
4276
|
marginTop = _getComputedStyle.marginTop,
|
|
4215
4277
|
marginRight = _getComputedStyle.marginRight,
|
|
4216
4278
|
marginBottom = _getComputedStyle.marginBottom,
|
|
@@ -4548,9 +4610,16 @@ function usePopper(referenceElement, popperElement, _temp) {
|
|
|
4548
4610
|
}
|
|
4549
4611
|
|
|
4550
4612
|
/* eslint-disable no-bitwise, no-cond-assign */
|
|
4551
|
-
|
|
4552
|
-
|
|
4553
|
-
|
|
4613
|
+
|
|
4614
|
+
/**
|
|
4615
|
+
* Checks if an element contains another given element.
|
|
4616
|
+
*
|
|
4617
|
+
* @param context the context element
|
|
4618
|
+
* @param node the element to check
|
|
4619
|
+
*/
|
|
4620
|
+
function contains(context, node) {
|
|
4621
|
+
// HTML DOM and SVG DOM may have different support levels,
|
|
4622
|
+
// so we need to check on context instead of a document root element.
|
|
4554
4623
|
if (context.contains) return context.contains(node);
|
|
4555
4624
|
if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
|
|
4556
4625
|
}
|
|
@@ -4624,13 +4693,13 @@ function safeFindDOMNode(componentOrElement) {
|
|
|
4624
4693
|
return componentOrElement != null ? componentOrElement : null;
|
|
4625
4694
|
}
|
|
4626
4695
|
|
|
4627
|
-
var ownerDocument
|
|
4628
|
-
return ownerDocument(safeFindDOMNode(componentOrElement));
|
|
4696
|
+
var ownerDocument = (function (componentOrElement) {
|
|
4697
|
+
return ownerDocument$1(safeFindDOMNode(componentOrElement));
|
|
4629
4698
|
});
|
|
4630
4699
|
|
|
4631
4700
|
var escapeKeyCode = 27;
|
|
4632
4701
|
|
|
4633
|
-
var noop$
|
|
4702
|
+
var noop$4 = function noop() {};
|
|
4634
4703
|
|
|
4635
4704
|
function isLeftClickEvent(event) {
|
|
4636
4705
|
return event.button === 0;
|
|
@@ -4663,11 +4732,11 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4663
4732
|
clickTrigger = _ref$clickTrigger === void 0 ? 'click' : _ref$clickTrigger;
|
|
4664
4733
|
|
|
4665
4734
|
var preventMouseRootCloseRef = useRef(false);
|
|
4666
|
-
var onClose = onRootClose || noop$
|
|
4735
|
+
var onClose = onRootClose || noop$4;
|
|
4667
4736
|
var handleMouseCapture = useCallback(function (e) {
|
|
4668
4737
|
var currentTarget = getRefTarget(ref);
|
|
4669
4738
|
warning_1(!!currentTarget, 'RootClose captured a close event but does not have a ref to compare it to. ' + 'useRootClose(), should be passed a ref that resolves to a DOM node');
|
|
4670
|
-
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains
|
|
4739
|
+
preventMouseRootCloseRef.current = !currentTarget || isModifiedEvent(e) || !isLeftClickEvent(e) || !!contains(currentTarget, e.target);
|
|
4671
4740
|
}, [ref]);
|
|
4672
4741
|
var handleMouse = useEventCallback(function (e) {
|
|
4673
4742
|
if (!preventMouseRootCloseRef.current) {
|
|
@@ -4684,7 +4753,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4684
4753
|
// https://github.com/facebook/react/issues/20074
|
|
4685
4754
|
|
|
4686
4755
|
var currentEvent = window.event;
|
|
4687
|
-
var doc = ownerDocument
|
|
4756
|
+
var doc = ownerDocument(getRefTarget(ref)); // Use capture for this listener so it fires before React's listener, to
|
|
4688
4757
|
// avoid false positives in the contains() check below if the target DOM
|
|
4689
4758
|
// element is removed in the React mouse callback.
|
|
4690
4759
|
|
|
@@ -4711,7 +4780,7 @@ function useRootClose(ref, onRootClose, _temp) {
|
|
|
4711
4780
|
|
|
4712
4781
|
if ('ontouchstart' in doc.documentElement) {
|
|
4713
4782
|
mobileSafariHackListeners = [].slice.call(doc.body.children).map(function (el) {
|
|
4714
|
-
return listen(el, 'mousemove', noop$
|
|
4783
|
+
return listen(el, 'mousemove', noop$4);
|
|
4715
4784
|
});
|
|
4716
4785
|
}
|
|
4717
4786
|
|
|
@@ -4793,7 +4862,7 @@ function mergeOptionsWithPopperConfig(_ref) {
|
|
|
4793
4862
|
});
|
|
4794
4863
|
}
|
|
4795
4864
|
|
|
4796
|
-
var noop$
|
|
4865
|
+
var noop$3 = function noop() {};
|
|
4797
4866
|
/**
|
|
4798
4867
|
* @memberOf Dropdown
|
|
4799
4868
|
* @param {object} options
|
|
@@ -4861,7 +4930,7 @@ function useDropdownMenu(options) {
|
|
|
4861
4930
|
|
|
4862
4931
|
var menu;
|
|
4863
4932
|
var menuProps = {
|
|
4864
|
-
ref: setMenu || noop$
|
|
4933
|
+
ref: setMenu || noop$3,
|
|
4865
4934
|
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
4866
4935
|
};
|
|
4867
4936
|
var childArgs = {
|
|
@@ -4894,7 +4963,7 @@ function useDropdownMenu(options) {
|
|
|
4894
4963
|
});
|
|
4895
4964
|
return menu;
|
|
4896
4965
|
}
|
|
4897
|
-
var propTypes$
|
|
4966
|
+
var propTypes$8 = {
|
|
4898
4967
|
/**
|
|
4899
4968
|
* A render prop that returns a Menu element. The `props`
|
|
4900
4969
|
* argument should spread through to **a component that can accept a ref**.
|
|
@@ -4951,7 +5020,7 @@ var propTypes$2 = {
|
|
|
4951
5020
|
*/
|
|
4952
5021
|
rootCloseEvent: PropTypes.string
|
|
4953
5022
|
};
|
|
4954
|
-
var defaultProps$
|
|
5023
|
+
var defaultProps$r = {
|
|
4955
5024
|
usePopper: true
|
|
4956
5025
|
};
|
|
4957
5026
|
|
|
@@ -4961,7 +5030,7 @@ var defaultProps$d = {
|
|
|
4961
5030
|
* @displayName DropdownMenu
|
|
4962
5031
|
* @memberOf Dropdown
|
|
4963
5032
|
*/
|
|
4964
|
-
function DropdownMenu(_ref2) {
|
|
5033
|
+
function DropdownMenu$1(_ref2) {
|
|
4965
5034
|
var children = _ref2.children,
|
|
4966
5035
|
options = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
4967
5036
|
|
|
@@ -4969,11 +5038,11 @@ function DropdownMenu(_ref2) {
|
|
|
4969
5038
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, args.hasShown ? children(args) : null);
|
|
4970
5039
|
}
|
|
4971
5040
|
|
|
4972
|
-
DropdownMenu.displayName = 'ReactOverlaysDropdownMenu';
|
|
4973
|
-
DropdownMenu.propTypes = propTypes$
|
|
4974
|
-
DropdownMenu.defaultProps = defaultProps$
|
|
5041
|
+
DropdownMenu$1.displayName = 'ReactOverlaysDropdownMenu';
|
|
5042
|
+
DropdownMenu$1.propTypes = propTypes$8;
|
|
5043
|
+
DropdownMenu$1.defaultProps = defaultProps$r;
|
|
4975
5044
|
|
|
4976
|
-
var noop$
|
|
5045
|
+
var noop$2 = function noop() {};
|
|
4977
5046
|
/**
|
|
4978
5047
|
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
4979
5048
|
* to the element that functions as the dropdown toggle (generally a button).
|
|
@@ -4987,11 +5056,11 @@ function useDropdownToggle() {
|
|
|
4987
5056
|
_ref$show = _ref.show,
|
|
4988
5057
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
4989
5058
|
_ref$toggle = _ref.toggle,
|
|
4990
|
-
toggle = _ref$toggle === void 0 ? noop$
|
|
5059
|
+
toggle = _ref$toggle === void 0 ? noop$2 : _ref$toggle,
|
|
4991
5060
|
setToggle = _ref.setToggle;
|
|
4992
5061
|
|
|
4993
5062
|
return [{
|
|
4994
|
-
ref: setToggle || noop$
|
|
5063
|
+
ref: setToggle || noop$2,
|
|
4995
5064
|
'aria-haspopup': true,
|
|
4996
5065
|
'aria-expanded': !!show
|
|
4997
5066
|
}, {
|
|
@@ -4999,7 +5068,7 @@ function useDropdownToggle() {
|
|
|
4999
5068
|
toggle: toggle
|
|
5000
5069
|
}];
|
|
5001
5070
|
}
|
|
5002
|
-
var propTypes$
|
|
5071
|
+
var propTypes$7 = {
|
|
5003
5072
|
/**
|
|
5004
5073
|
* A render prop that returns a Toggle element. The `props`
|
|
5005
5074
|
* argument should spread through to **a component that can accept a ref**. Use
|
|
@@ -5024,7 +5093,7 @@ var propTypes$3 = {
|
|
|
5024
5093
|
* @displayName DropdownToggle
|
|
5025
5094
|
* @memberOf Dropdown
|
|
5026
5095
|
*/
|
|
5027
|
-
function DropdownToggle(_ref2) {
|
|
5096
|
+
function DropdownToggle$1(_ref2) {
|
|
5028
5097
|
var children = _ref2.children;
|
|
5029
5098
|
|
|
5030
5099
|
var _useDropdownToggle = useDropdownToggle(),
|
|
@@ -5040,10 +5109,10 @@ function DropdownToggle(_ref2) {
|
|
|
5040
5109
|
}));
|
|
5041
5110
|
}
|
|
5042
5111
|
|
|
5043
|
-
DropdownToggle.displayName = 'ReactOverlaysDropdownToggle';
|
|
5044
|
-
DropdownToggle.propTypes = propTypes$
|
|
5112
|
+
DropdownToggle$1.displayName = 'ReactOverlaysDropdownToggle';
|
|
5113
|
+
DropdownToggle$1.propTypes = propTypes$7;
|
|
5045
5114
|
|
|
5046
|
-
var propTypes$
|
|
5115
|
+
var propTypes$6 = {
|
|
5047
5116
|
/**
|
|
5048
5117
|
* A render prop that returns the root dropdown element. The `props`
|
|
5049
5118
|
* argument should spread through to an element containing _both_ the
|
|
@@ -5115,7 +5184,7 @@ var propTypes$4 = {
|
|
|
5115
5184
|
/**
|
|
5116
5185
|
* @displayName Dropdown
|
|
5117
5186
|
*/
|
|
5118
|
-
function Dropdown(_ref) {
|
|
5187
|
+
function Dropdown$1(_ref) {
|
|
5119
5188
|
var drop = _ref.drop,
|
|
5120
5189
|
alignEnd = _ref.alignEnd,
|
|
5121
5190
|
defaultShow = _ref.defaultShow,
|
|
@@ -5257,15 +5326,15 @@ function Dropdown(_ref) {
|
|
|
5257
5326
|
}));
|
|
5258
5327
|
}
|
|
5259
5328
|
|
|
5260
|
-
Dropdown.displayName = 'ReactOverlaysDropdown';
|
|
5261
|
-
Dropdown.propTypes = propTypes$
|
|
5262
|
-
Dropdown.Menu = DropdownMenu;
|
|
5263
|
-
Dropdown.Toggle = DropdownToggle;
|
|
5329
|
+
Dropdown$1.displayName = 'ReactOverlaysDropdown';
|
|
5330
|
+
Dropdown$1.propTypes = propTypes$6;
|
|
5331
|
+
Dropdown$1.Menu = DropdownMenu$1;
|
|
5332
|
+
Dropdown$1.Toggle = DropdownToggle$1;
|
|
5264
5333
|
|
|
5265
5334
|
var NavContext = React__default.createContext(null);
|
|
5266
5335
|
NavContext.displayName = 'NavContext';
|
|
5267
5336
|
|
|
5268
|
-
var defaultProps$
|
|
5337
|
+
var defaultProps$q = {
|
|
5269
5338
|
as: SafeAnchor,
|
|
5270
5339
|
disabled: false
|
|
5271
5340
|
};
|
|
@@ -5280,7 +5349,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5280
5349
|
onSelect = _ref.onSelect,
|
|
5281
5350
|
propActive = _ref.active,
|
|
5282
5351
|
Component = _ref.as,
|
|
5283
|
-
props = _objectWithoutPropertiesLoose
|
|
5352
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5284
5353
|
|
|
5285
5354
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5286
5355
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5304,7 +5373,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5304
5373
|
/*#__PURE__*/
|
|
5305
5374
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5306
5375
|
// @ts-ignore
|
|
5307
|
-
React__default.createElement(Component, _extends
|
|
5376
|
+
React__default.createElement(Component, _extends({}, props, {
|
|
5308
5377
|
ref: ref,
|
|
5309
5378
|
href: href,
|
|
5310
5379
|
disabled: disabled,
|
|
@@ -5314,7 +5383,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5314
5383
|
);
|
|
5315
5384
|
});
|
|
5316
5385
|
DropdownItem.displayName = 'DropdownItem';
|
|
5317
|
-
DropdownItem.defaultProps = defaultProps$
|
|
5386
|
+
DropdownItem.defaultProps = defaultProps$q;
|
|
5318
5387
|
|
|
5319
5388
|
var toFnRef = function toFnRef(ref) {
|
|
5320
5389
|
return !ref || typeof ref === 'function' ? ref : function (value) {
|
|
@@ -5353,8 +5422,8 @@ function useMergedRefs(refA, refB) {
|
|
|
5353
5422
|
}, [refA, refB]);
|
|
5354
5423
|
}
|
|
5355
5424
|
|
|
5356
|
-
var context
|
|
5357
|
-
context
|
|
5425
|
+
var context = React__default.createContext(null);
|
|
5426
|
+
context.displayName = 'NavbarContext';
|
|
5358
5427
|
|
|
5359
5428
|
function useWrappedRefWithWarning(ref, componentName) {
|
|
5360
5429
|
// @ts-ignore
|
|
@@ -5367,6 +5436,12 @@ function useWrappedRefWithWarning(ref, componentName) {
|
|
|
5367
5436
|
return useMergedRefs(warningRef, ref);
|
|
5368
5437
|
}
|
|
5369
5438
|
|
|
5439
|
+
/**
|
|
5440
|
+
* Checks if a given element has a CSS class.
|
|
5441
|
+
*
|
|
5442
|
+
* @param element the element
|
|
5443
|
+
* @param className the CSS class name
|
|
5444
|
+
*/
|
|
5370
5445
|
function hasClass(element, className) {
|
|
5371
5446
|
if (element.classList) return !!className && element.classList.contains(className);
|
|
5372
5447
|
return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
|
@@ -5475,13 +5550,13 @@ var alignPropType = PropTypes.oneOfType([alignDirection, PropTypes.shape({
|
|
|
5475
5550
|
}), PropTypes.shape({
|
|
5476
5551
|
xl: alignDirection
|
|
5477
5552
|
})]);
|
|
5478
|
-
var defaultProps$
|
|
5553
|
+
var defaultProps$p = {
|
|
5479
5554
|
align: 'left',
|
|
5480
5555
|
alignRight: false,
|
|
5481
5556
|
flip: true
|
|
5482
5557
|
}; // TODO: remove this hack
|
|
5483
5558
|
|
|
5484
|
-
var DropdownMenu
|
|
5559
|
+
var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
5485
5560
|
var bsPrefix = _ref.bsPrefix,
|
|
5486
5561
|
className = _ref.className,
|
|
5487
5562
|
align = _ref.align,
|
|
@@ -5493,9 +5568,9 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5493
5568
|
_ref$as = _ref.as,
|
|
5494
5569
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5495
5570
|
popperConfig = _ref.popperConfig,
|
|
5496
|
-
props = _objectWithoutPropertiesLoose
|
|
5571
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5497
5572
|
|
|
5498
|
-
var isNavbar = useContext(context
|
|
5573
|
+
var isNavbar = useContext(context);
|
|
5499
5574
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
5500
5575
|
|
|
5501
5576
|
var _usePopperMarginModif = usePopperMarginModifiers(),
|
|
@@ -5529,7 +5604,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5529
5604
|
show: showProps,
|
|
5530
5605
|
alignEnd: alignRight,
|
|
5531
5606
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5532
|
-
popperConfig: _extends
|
|
5607
|
+
popperConfig: _extends({}, popperConfig, {
|
|
5533
5608
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5534
5609
|
})
|
|
5535
5610
|
}),
|
|
@@ -5552,16 +5627,16 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5552
5627
|
if (placement) {
|
|
5553
5628
|
// we don't need the default popper style,
|
|
5554
5629
|
// menus are display: none when not shown.
|
|
5555
|
-
props.style = _extends
|
|
5630
|
+
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5556
5631
|
props['x-placement'] = placement;
|
|
5557
5632
|
}
|
|
5558
5633
|
|
|
5559
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5634
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5560
5635
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5561
5636
|
}));
|
|
5562
5637
|
});
|
|
5563
|
-
DropdownMenu
|
|
5564
|
-
DropdownMenu
|
|
5638
|
+
DropdownMenu.displayName = 'DropdownMenu';
|
|
5639
|
+
DropdownMenu.defaultProps = defaultProps$p;
|
|
5565
5640
|
|
|
5566
5641
|
var isRequiredForA11y_1 = createCommonjsModule(function (module, exports) {
|
|
5567
5642
|
|
|
@@ -5590,14 +5665,14 @@ module.exports = exports['default'];
|
|
|
5590
5665
|
|
|
5591
5666
|
unwrapExports(isRequiredForA11y_1);
|
|
5592
5667
|
|
|
5593
|
-
var DropdownToggle
|
|
5668
|
+
var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
5594
5669
|
var bsPrefix = _ref.bsPrefix,
|
|
5595
5670
|
split = _ref.split,
|
|
5596
5671
|
className = _ref.className,
|
|
5597
5672
|
childBsPrefix = _ref.childBsPrefix,
|
|
5598
5673
|
_ref$as = _ref.as,
|
|
5599
5674
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5600
|
-
props = _objectWithoutPropertiesLoose
|
|
5675
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5601
5676
|
|
|
5602
5677
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5603
5678
|
|
|
@@ -5612,12 +5687,12 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5612
5687
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5613
5688
|
// underlying component, to allow it to render size and style variants.
|
|
5614
5689
|
|
|
5615
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5690
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5616
5691
|
onClick: toggle,
|
|
5617
5692
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5618
5693
|
}, toggleProps, props));
|
|
5619
5694
|
});
|
|
5620
|
-
DropdownToggle
|
|
5695
|
+
DropdownToggle.displayName = 'DropdownToggle';
|
|
5621
5696
|
|
|
5622
5697
|
var DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
5623
5698
|
defaultProps: {
|
|
@@ -5632,10 +5707,10 @@ var DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
|
5632
5707
|
var DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
5633
5708
|
Component: 'span'
|
|
5634
5709
|
});
|
|
5635
|
-
var defaultProps$
|
|
5710
|
+
var defaultProps$o = {
|
|
5636
5711
|
navbar: false
|
|
5637
5712
|
};
|
|
5638
|
-
var Dropdown
|
|
5713
|
+
var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
5639
5714
|
var _useUncontrolled = useUncontrolled(pProps, {
|
|
5640
5715
|
show: 'onToggle'
|
|
5641
5716
|
}),
|
|
@@ -5648,9 +5723,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5648
5723
|
onToggle = _useUncontrolled.onToggle,
|
|
5649
5724
|
focusFirstItemOnShow = _useUncontrolled.focusFirstItemOnShow,
|
|
5650
5725
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5651
|
-
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as
|
|
5652
|
-
|
|
5653
|
-
props = _objectWithoutPropertiesLoose
|
|
5726
|
+
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5727
|
+
_useUncontrolled.navbar;
|
|
5728
|
+
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5654
5729
|
|
|
5655
5730
|
var onSelectCtx = useContext(SelectableContext);
|
|
5656
5731
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5674,7 +5749,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5674
5749
|
});
|
|
5675
5750
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
5676
5751
|
value: handleSelect
|
|
5677
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
5752
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
5678
5753
|
drop: drop,
|
|
5679
5754
|
show: show,
|
|
5680
5755
|
alignEnd: alignRight,
|
|
@@ -5683,20 +5758,20 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5683
5758
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5684
5759
|
}, function (_ref) {
|
|
5685
5760
|
var dropdownProps = _ref.props;
|
|
5686
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5761
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5687
5762
|
ref: ref,
|
|
5688
5763
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5689
5764
|
}));
|
|
5690
5765
|
}));
|
|
5691
5766
|
});
|
|
5692
|
-
Dropdown
|
|
5693
|
-
Dropdown
|
|
5694
|
-
Dropdown
|
|
5695
|
-
Dropdown
|
|
5696
|
-
Dropdown
|
|
5697
|
-
Dropdown
|
|
5698
|
-
Dropdown
|
|
5699
|
-
Dropdown
|
|
5767
|
+
Dropdown.displayName = 'Dropdown';
|
|
5768
|
+
Dropdown.defaultProps = defaultProps$o;
|
|
5769
|
+
Dropdown.Divider = DropdownDivider;
|
|
5770
|
+
Dropdown.Header = DropdownHeader;
|
|
5771
|
+
Dropdown.Item = DropdownItem;
|
|
5772
|
+
Dropdown.ItemText = DropdownItemText;
|
|
5773
|
+
Dropdown.Menu = DropdownMenu;
|
|
5774
|
+
Dropdown.Toggle = DropdownToggle;
|
|
5700
5775
|
|
|
5701
5776
|
var propTypes$5 = {
|
|
5702
5777
|
/**
|
|
@@ -5771,18 +5846,18 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5771
5846
|
disabled = _ref.disabled,
|
|
5772
5847
|
href = _ref.href,
|
|
5773
5848
|
id = _ref.id,
|
|
5774
|
-
props = _objectWithoutPropertiesLoose
|
|
5849
|
+
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5775
5850
|
|
|
5776
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
5851
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5777
5852
|
ref: ref
|
|
5778
|
-
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle
|
|
5853
|
+
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5779
5854
|
id: id,
|
|
5780
5855
|
href: href,
|
|
5781
5856
|
size: size,
|
|
5782
5857
|
variant: variant,
|
|
5783
5858
|
disabled: disabled,
|
|
5784
5859
|
childBsPrefix: bsPrefix
|
|
5785
|
-
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu
|
|
5860
|
+
}, title), /*#__PURE__*/React__default.createElement(DropdownMenu, {
|
|
5786
5861
|
align: menuAlign,
|
|
5787
5862
|
role: menuRole,
|
|
5788
5863
|
renderOnMount: renderMenuOnMount,
|
|
@@ -5885,7 +5960,7 @@ module.exports = exports['default'];
|
|
|
5885
5960
|
|
|
5886
5961
|
unwrapExports(all_1);
|
|
5887
5962
|
|
|
5888
|
-
var propTypes$
|
|
5963
|
+
var propTypes$4 = {
|
|
5889
5964
|
/**
|
|
5890
5965
|
* Specify whether the feedback is for valid or invalid fields
|
|
5891
5966
|
*
|
|
@@ -5906,15 +5981,15 @@ function (_ref, ref) {
|
|
|
5906
5981
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5907
5982
|
_ref$tooltip = _ref.tooltip,
|
|
5908
5983
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5909
|
-
props = _objectWithoutPropertiesLoose
|
|
5984
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5910
5985
|
|
|
5911
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
5986
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5912
5987
|
ref: ref,
|
|
5913
5988
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5914
5989
|
}));
|
|
5915
5990
|
});
|
|
5916
5991
|
Feedback.displayName = 'Feedback';
|
|
5917
|
-
Feedback.propTypes = propTypes$
|
|
5992
|
+
Feedback.propTypes = propTypes$4;
|
|
5918
5993
|
|
|
5919
5994
|
var FormContext = React__default.createContext({
|
|
5920
5995
|
controlId: undefined
|
|
@@ -5934,7 +6009,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5934
6009
|
isStatic = _ref.isStatic,
|
|
5935
6010
|
_ref$as = _ref.as,
|
|
5936
6011
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5937
|
-
props = _objectWithoutPropertiesLoose
|
|
6012
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5938
6013
|
|
|
5939
6014
|
var _useContext = useContext(FormContext),
|
|
5940
6015
|
controlId = _useContext.controlId,
|
|
@@ -5945,7 +6020,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5945
6020
|
defaultPrefix = _ref2[1];
|
|
5946
6021
|
|
|
5947
6022
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5948
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6023
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
5949
6024
|
ref: ref,
|
|
5950
6025
|
type: type,
|
|
5951
6026
|
id: id || controlId,
|
|
@@ -5959,7 +6034,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5959
6034
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5960
6035
|
className = _ref.className,
|
|
5961
6036
|
htmlFor = _ref.htmlFor,
|
|
5962
|
-
props = _objectWithoutPropertiesLoose
|
|
6037
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5963
6038
|
|
|
5964
6039
|
var _useContext = useContext(FormContext),
|
|
5965
6040
|
controlId = _useContext.controlId,
|
|
@@ -5970,7 +6045,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5970
6045
|
defaultPrefix = _ref2[1];
|
|
5971
6046
|
|
|
5972
6047
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5973
|
-
return /*#__PURE__*/React__default.createElement("label", _extends
|
|
6048
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
5974
6049
|
ref: ref,
|
|
5975
6050
|
htmlFor: htmlFor || controlId,
|
|
5976
6051
|
className: classnames(className, bsPrefix)
|
|
@@ -6004,7 +6079,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6004
6079
|
propCustom = _ref.custom,
|
|
6005
6080
|
_ref$as = _ref.as,
|
|
6006
6081
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6007
|
-
props = _objectWithoutPropertiesLoose
|
|
6082
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6008
6083
|
|
|
6009
6084
|
var custom = type === 'switch' ? true : propCustom;
|
|
6010
6085
|
|
|
@@ -6024,7 +6099,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
6099
|
};
|
|
6025
6100
|
}, [controlId, custom, id]);
|
|
6026
6101
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6027
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends
|
|
6102
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6028
6103
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6029
6104
|
ref: ref,
|
|
6030
6105
|
isValid: isValid,
|
|
@@ -6059,7 +6134,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6059
6134
|
lang = _ref.lang,
|
|
6060
6135
|
_ref$as = _ref.as,
|
|
6061
6136
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6062
|
-
props = _objectWithoutPropertiesLoose
|
|
6137
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6063
6138
|
|
|
6064
6139
|
var _useContext = useContext(FormContext),
|
|
6065
6140
|
controlId = _useContext.controlId,
|
|
@@ -6072,7 +6147,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6072
6147
|
defaultPrefix = _ref2[1];
|
|
6073
6148
|
|
|
6074
6149
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6075
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6150
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6076
6151
|
ref: ref,
|
|
6077
6152
|
id: id || controlId,
|
|
6078
6153
|
type: type,
|
|
@@ -6087,7 +6162,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6087
6162
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6088
6163
|
className = _ref.className,
|
|
6089
6164
|
htmlFor = _ref.htmlFor,
|
|
6090
|
-
props = _objectWithoutPropertiesLoose
|
|
6165
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6091
6166
|
|
|
6092
6167
|
var _useContext = useContext(FormContext),
|
|
6093
6168
|
controlId = _useContext.controlId,
|
|
@@ -6098,7 +6173,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6098
6173
|
defaultPrefix = _ref2[1];
|
|
6099
6174
|
|
|
6100
6175
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6101
|
-
return /*#__PURE__*/React__default.createElement("label", _extends
|
|
6176
|
+
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6102
6177
|
ref: ref,
|
|
6103
6178
|
htmlFor: htmlFor || controlId,
|
|
6104
6179
|
className: classnames(className, bsPrefix),
|
|
@@ -6131,7 +6206,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6131
6206
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6132
6207
|
_ref$inputAs = _ref.inputAs,
|
|
6133
6208
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6134
|
-
props = _objectWithoutPropertiesLoose
|
|
6209
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6135
6210
|
|
|
6136
6211
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6137
6212
|
prefix = _ref2[0],
|
|
@@ -6150,7 +6225,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6150
6225
|
};
|
|
6151
6226
|
}, [controlId, custom, id]);
|
|
6152
6227
|
var hasLabel = label != null && label !== false && !children;
|
|
6153
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends
|
|
6228
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6154
6229
|
ref: ref,
|
|
6155
6230
|
isValid: isValid,
|
|
6156
6231
|
isInvalid: isInvalid,
|
|
@@ -6191,7 +6266,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6191
6266
|
custom = _ref.custom,
|
|
6192
6267
|
_ref$as = _ref.as,
|
|
6193
6268
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6194
|
-
props = _objectWithoutPropertiesLoose
|
|
6269
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6195
6270
|
|
|
6196
6271
|
var _useContext = useContext(FormContext),
|
|
6197
6272
|
controlId = _useContext.controlId;
|
|
@@ -6226,7 +6301,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6226
6301
|
}
|
|
6227
6302
|
|
|
6228
6303
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6229
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6304
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6230
6305
|
type: type,
|
|
6231
6306
|
size: htmlSize,
|
|
6232
6307
|
ref: ref,
|
|
@@ -6247,7 +6322,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6247
6322
|
controlId = _ref.controlId,
|
|
6248
6323
|
_ref$as = _ref.as,
|
|
6249
6324
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6250
|
-
props = _objectWithoutPropertiesLoose
|
|
6325
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6251
6326
|
|
|
6252
6327
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6253
6328
|
var context = useMemo(function () {
|
|
@@ -6257,14 +6332,14 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6257
6332
|
}, [controlId]);
|
|
6258
6333
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6259
6334
|
value: context
|
|
6260
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6335
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6261
6336
|
ref: ref,
|
|
6262
6337
|
className: classnames(className, bsPrefix)
|
|
6263
6338
|
}), children));
|
|
6264
6339
|
});
|
|
6265
6340
|
FormGroup.displayName = 'FormGroup';
|
|
6266
6341
|
|
|
6267
|
-
var defaultProps$
|
|
6342
|
+
var defaultProps$n = {
|
|
6268
6343
|
column: false,
|
|
6269
6344
|
srOnly: false
|
|
6270
6345
|
};
|
|
@@ -6276,7 +6351,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6276
6351
|
srOnly = _ref.srOnly,
|
|
6277
6352
|
className = _ref.className,
|
|
6278
6353
|
htmlFor = _ref.htmlFor,
|
|
6279
|
-
props = _objectWithoutPropertiesLoose
|
|
6354
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6280
6355
|
|
|
6281
6356
|
var _useContext = useContext(FormContext),
|
|
6282
6357
|
controlId = _useContext.controlId;
|
|
@@ -6287,7 +6362,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6287
6362
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6288
6363
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6289
6364
|
htmlFor = htmlFor || controlId;
|
|
6290
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends
|
|
6365
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6291
6366
|
as: "label",
|
|
6292
6367
|
className: classes,
|
|
6293
6368
|
htmlFor: htmlFor
|
|
@@ -6295,7 +6370,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6295
6370
|
return (
|
|
6296
6371
|
/*#__PURE__*/
|
|
6297
6372
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6298
|
-
React__default.createElement(Component, _extends
|
|
6373
|
+
React__default.createElement(Component, _extends({
|
|
6299
6374
|
ref: ref,
|
|
6300
6375
|
className: classes,
|
|
6301
6376
|
htmlFor: htmlFor
|
|
@@ -6303,7 +6378,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6303
6378
|
);
|
|
6304
6379
|
});
|
|
6305
6380
|
FormLabel.displayName = 'FormLabel';
|
|
6306
|
-
FormLabel.defaultProps = defaultProps$
|
|
6381
|
+
FormLabel.defaultProps = defaultProps$n;
|
|
6307
6382
|
|
|
6308
6383
|
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
|
|
6309
6384
|
function (_ref, ref) {
|
|
@@ -6312,10 +6387,10 @@ function (_ref, ref) {
|
|
|
6312
6387
|
_ref$as = _ref.as,
|
|
6313
6388
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6314
6389
|
muted = _ref.muted,
|
|
6315
|
-
props = _objectWithoutPropertiesLoose
|
|
6390
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6316
6391
|
|
|
6317
6392
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6318
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6393
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6319
6394
|
ref: ref,
|
|
6320
6395
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6321
6396
|
}));
|
|
@@ -6323,7 +6398,7 @@ function (_ref, ref) {
|
|
|
6323
6398
|
FormText.displayName = 'FormText';
|
|
6324
6399
|
|
|
6325
6400
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6326
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends
|
|
6401
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6327
6402
|
ref: ref,
|
|
6328
6403
|
type: "switch"
|
|
6329
6404
|
}));
|
|
@@ -6333,7 +6408,7 @@ Switch.Input = FormCheck.Input;
|
|
|
6333
6408
|
Switch.Label = FormCheck.Label;
|
|
6334
6409
|
|
|
6335
6410
|
var FormRow = createWithBsPrefix('form-row');
|
|
6336
|
-
var defaultProps$
|
|
6411
|
+
var defaultProps$m = {
|
|
6337
6412
|
inline: false
|
|
6338
6413
|
};
|
|
6339
6414
|
var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6343,16 +6418,16 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6343
6418
|
validated = _ref.validated,
|
|
6344
6419
|
_ref$as = _ref.as,
|
|
6345
6420
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6346
|
-
props = _objectWithoutPropertiesLoose
|
|
6421
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6347
6422
|
|
|
6348
6423
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6349
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6424
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6350
6425
|
ref: ref,
|
|
6351
6426
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6352
6427
|
}));
|
|
6353
6428
|
});
|
|
6354
6429
|
FormImpl.displayName = 'Form';
|
|
6355
|
-
FormImpl.defaultProps = defaultProps$
|
|
6430
|
+
FormImpl.defaultProps = defaultProps$m;
|
|
6356
6431
|
FormImpl.Row = FormRow;
|
|
6357
6432
|
FormImpl.Group = FormGroup;
|
|
6358
6433
|
FormImpl.Control = FormControl$1;
|
|
@@ -6362,7 +6437,7 @@ FormImpl.Switch = Switch;
|
|
|
6362
6437
|
FormImpl.Label = FormLabel;
|
|
6363
6438
|
FormImpl.Text = FormText;
|
|
6364
6439
|
|
|
6365
|
-
var defaultProps$
|
|
6440
|
+
var defaultProps$l = {
|
|
6366
6441
|
fluid: false
|
|
6367
6442
|
};
|
|
6368
6443
|
var Container = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6371,20 +6446,20 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6371
6446
|
_ref$as = _ref.as,
|
|
6372
6447
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6373
6448
|
className = _ref.className,
|
|
6374
|
-
props = _objectWithoutPropertiesLoose
|
|
6449
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6375
6450
|
|
|
6376
6451
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6377
6452
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6378
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6453
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6379
6454
|
ref: ref
|
|
6380
6455
|
}, props, {
|
|
6381
6456
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6382
6457
|
}));
|
|
6383
6458
|
});
|
|
6384
6459
|
Container.displayName = 'Container';
|
|
6385
|
-
Container.defaultProps = defaultProps$
|
|
6460
|
+
Container.defaultProps = defaultProps$l;
|
|
6386
6461
|
|
|
6387
|
-
var propTypes$
|
|
6462
|
+
var propTypes$3 = {
|
|
6388
6463
|
/**
|
|
6389
6464
|
* @default 'img'
|
|
6390
6465
|
*/
|
|
@@ -6423,11 +6498,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6423
6498
|
rounded = _ref.rounded,
|
|
6424
6499
|
roundedCircle = _ref.roundedCircle,
|
|
6425
6500
|
thumbnail = _ref.thumbnail,
|
|
6426
|
-
props = _objectWithoutPropertiesLoose
|
|
6501
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6427
6502
|
|
|
6428
6503
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6429
6504
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6430
|
-
return /*#__PURE__*/React__default.createElement("img", _extends
|
|
6505
|
+
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6431
6506
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6432
6507
|
ref: ref
|
|
6433
6508
|
}, props, {
|
|
@@ -6437,22 +6512,22 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6437
6512
|
Image.displayName = 'Image';
|
|
6438
6513
|
Image.defaultProps = defaultProps$k;
|
|
6439
6514
|
|
|
6440
|
-
var defaultProps$
|
|
6515
|
+
var defaultProps$j = {
|
|
6441
6516
|
fluid: true
|
|
6442
6517
|
};
|
|
6443
6518
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6444
6519
|
var className = _ref.className,
|
|
6445
|
-
props = _objectWithoutPropertiesLoose
|
|
6520
|
+
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6446
6521
|
|
|
6447
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends
|
|
6522
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6448
6523
|
ref: ref
|
|
6449
6524
|
}, props, {
|
|
6450
6525
|
className: classnames(className, 'figure-img')
|
|
6451
6526
|
}));
|
|
6452
6527
|
});
|
|
6453
6528
|
FigureImage.displayName = 'FigureImage';
|
|
6454
|
-
FigureImage.propTypes = propTypes$
|
|
6455
|
-
FigureImage.defaultProps = defaultProps$
|
|
6529
|
+
FigureImage.propTypes = propTypes$3;
|
|
6530
|
+
FigureImage.defaultProps = defaultProps$j;
|
|
6456
6531
|
|
|
6457
6532
|
var FigureCaption = createWithBsPrefix('figure-caption', {
|
|
6458
6533
|
Component: 'figcaption'
|
|
@@ -6471,13 +6546,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6471
6546
|
});
|
|
6472
6547
|
|
|
6473
6548
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6474
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends
|
|
6549
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6475
6550
|
type: "checkbox"
|
|
6476
6551
|
}, props)));
|
|
6477
6552
|
};
|
|
6478
6553
|
|
|
6479
6554
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6480
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends
|
|
6555
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6481
6556
|
type: "radio"
|
|
6482
6557
|
}, props)));
|
|
6483
6558
|
};
|
|
@@ -6496,10 +6571,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6496
6571
|
className = _ref.className,
|
|
6497
6572
|
_ref$as = _ref.as,
|
|
6498
6573
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6499
|
-
props = _objectWithoutPropertiesLoose
|
|
6574
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6500
6575
|
|
|
6501
6576
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6502
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6577
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6503
6578
|
ref: ref
|
|
6504
6579
|
}, props, {
|
|
6505
6580
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6507,7 +6582,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6507
6582
|
});
|
|
6508
6583
|
InputGroup.displayName = 'InputGroup';
|
|
6509
6584
|
|
|
6510
|
-
|
|
6585
|
+
_extends({}, InputGroup, {
|
|
6511
6586
|
Text: InputGroupText,
|
|
6512
6587
|
Radio: InputGroupRadio,
|
|
6513
6588
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6515,7 +6590,7 @@ var InputGroupWithExtras = _extends$1({}, InputGroup, {
|
|
|
6515
6590
|
Prepend: InputGroupPrepend
|
|
6516
6591
|
});
|
|
6517
6592
|
|
|
6518
|
-
var defaultProps$
|
|
6593
|
+
var defaultProps$i = {
|
|
6519
6594
|
fluid: false
|
|
6520
6595
|
};
|
|
6521
6596
|
var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6526,23 +6601,23 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6526
6601
|
className = _ref.className,
|
|
6527
6602
|
fluid = _ref.fluid,
|
|
6528
6603
|
bsPrefix = _ref.bsPrefix,
|
|
6529
|
-
props = _objectWithoutPropertiesLoose
|
|
6604
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6530
6605
|
|
|
6531
6606
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6532
6607
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6533
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6608
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6534
6609
|
ref: ref
|
|
6535
6610
|
}, props, {
|
|
6536
6611
|
className: classnames(className, classes)
|
|
6537
6612
|
}));
|
|
6538
6613
|
});
|
|
6539
|
-
Jumbotron.defaultProps = defaultProps$
|
|
6614
|
+
Jumbotron.defaultProps = defaultProps$i;
|
|
6540
6615
|
Jumbotron.displayName = 'Jumbotron';
|
|
6541
6616
|
|
|
6542
6617
|
var TabContext = React__default.createContext(null);
|
|
6543
6618
|
|
|
6544
6619
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
6545
|
-
var noop$
|
|
6620
|
+
var noop$1 = function noop() {};
|
|
6546
6621
|
|
|
6547
6622
|
var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
6548
6623
|
var _ref$as = _ref.as,
|
|
@@ -6551,7 +6626,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6551
6626
|
activeKey = _ref.activeKey,
|
|
6552
6627
|
role = _ref.role,
|
|
6553
6628
|
onKeyDown = _ref.onKeyDown,
|
|
6554
|
-
props = _objectWithoutPropertiesLoose
|
|
6629
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6555
6630
|
|
|
6556
6631
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6557
6632
|
// and don't want to reset the set in the effect
|
|
@@ -6632,17 +6707,17 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6632
6707
|
role: role,
|
|
6633
6708
|
// used by NavLink to determine it's role
|
|
6634
6709
|
activeKey: makeEventKey(activeKey),
|
|
6635
|
-
getControlledId: getControlledId || noop$
|
|
6636
|
-
getControllerId: getControllerId || noop$
|
|
6710
|
+
getControlledId: getControlledId || noop$1,
|
|
6711
|
+
getControllerId: getControllerId || noop$1
|
|
6637
6712
|
}
|
|
6638
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6713
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6639
6714
|
onKeyDown: handleKeyDown,
|
|
6640
6715
|
ref: mergedRef,
|
|
6641
6716
|
role: role
|
|
6642
6717
|
}))));
|
|
6643
6718
|
});
|
|
6644
6719
|
|
|
6645
|
-
var defaultProps$
|
|
6720
|
+
var defaultProps$h = {
|
|
6646
6721
|
disabled: false
|
|
6647
6722
|
};
|
|
6648
6723
|
var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -6652,7 +6727,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6652
6727
|
onSelect = _ref.onSelect,
|
|
6653
6728
|
onClick = _ref.onClick,
|
|
6654
6729
|
Component = _ref.as,
|
|
6655
|
-
props = _objectWithoutPropertiesLoose
|
|
6730
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6656
6731
|
|
|
6657
6732
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6658
6733
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6682,15 +6757,15 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6682
6757
|
if (onSelect) onSelect(navKey, e);
|
|
6683
6758
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6684
6759
|
});
|
|
6685
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6760
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6686
6761
|
ref: ref,
|
|
6687
6762
|
onClick: handleOnclick,
|
|
6688
6763
|
className: classnames(className, isActive && 'active')
|
|
6689
6764
|
}));
|
|
6690
6765
|
});
|
|
6691
|
-
AbstractNavItem.defaultProps = defaultProps$
|
|
6766
|
+
AbstractNavItem.defaultProps = defaultProps$h;
|
|
6692
6767
|
|
|
6693
|
-
var defaultProps$
|
|
6768
|
+
var defaultProps$g = {
|
|
6694
6769
|
variant: undefined,
|
|
6695
6770
|
active: false,
|
|
6696
6771
|
disabled: false
|
|
@@ -6705,7 +6780,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6705
6780
|
as = _ref.as,
|
|
6706
6781
|
eventKey = _ref.eventKey,
|
|
6707
6782
|
onClick = _ref.onClick,
|
|
6708
|
-
props = _objectWithoutPropertiesLoose
|
|
6783
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6709
6784
|
|
|
6710
6785
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6711
6786
|
var handleClick = useCallback(function (event) {
|
|
@@ -6717,7 +6792,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6717
6792
|
|
|
6718
6793
|
if (onClick) onClick(event);
|
|
6719
6794
|
}, [disabled, onClick]);
|
|
6720
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends
|
|
6795
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6721
6796
|
ref: ref
|
|
6722
6797
|
}, props, {
|
|
6723
6798
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6728,10 +6803,10 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6728
6803
|
className: classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6729
6804
|
}));
|
|
6730
6805
|
});
|
|
6731
|
-
ListGroupItem.defaultProps = defaultProps$
|
|
6806
|
+
ListGroupItem.defaultProps = defaultProps$g;
|
|
6732
6807
|
ListGroupItem.displayName = 'ListGroupItem';
|
|
6733
6808
|
|
|
6734
|
-
var defaultProps$
|
|
6809
|
+
var defaultProps$f = {
|
|
6735
6810
|
variant: undefined,
|
|
6736
6811
|
horizontal: undefined
|
|
6737
6812
|
};
|
|
@@ -6745,7 +6820,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6745
6820
|
horizontal = _useUncontrolled.horizontal,
|
|
6746
6821
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6747
6822
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6748
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
6823
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6749
6824
|
|
|
6750
6825
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6751
6826
|
var horizontalVariant;
|
|
@@ -6757,14 +6832,14 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6757
6832
|
}
|
|
6758
6833
|
|
|
6759
6834
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6760
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends
|
|
6835
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6761
6836
|
ref: ref
|
|
6762
6837
|
}, controlledProps, {
|
|
6763
6838
|
as: as,
|
|
6764
6839
|
className: classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6765
6840
|
}));
|
|
6766
6841
|
});
|
|
6767
|
-
ListGroup.defaultProps = defaultProps$
|
|
6842
|
+
ListGroup.defaultProps = defaultProps$f;
|
|
6768
6843
|
ListGroup.displayName = 'ListGroup';
|
|
6769
6844
|
ListGroup.Item = ListGroupItem;
|
|
6770
6845
|
|
|
@@ -6775,10 +6850,10 @@ function (_ref, ref) {
|
|
|
6775
6850
|
className = _ref.className,
|
|
6776
6851
|
_ref$as = _ref.as,
|
|
6777
6852
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6778
|
-
props = _objectWithoutPropertiesLoose
|
|
6853
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6779
6854
|
|
|
6780
6855
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6781
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
6856
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6782
6857
|
ref: ref,
|
|
6783
6858
|
className: classnames(className, prefix)
|
|
6784
6859
|
}));
|
|
@@ -6806,14 +6881,14 @@ function scrollbarSize(recalc) {
|
|
|
6806
6881
|
}
|
|
6807
6882
|
|
|
6808
6883
|
/**
|
|
6809
|
-
*
|
|
6884
|
+
* Returns the actively focused element safely.
|
|
6810
6885
|
*
|
|
6811
|
-
* @param doc the document to
|
|
6886
|
+
* @param doc the document to check
|
|
6812
6887
|
*/
|
|
6813
6888
|
|
|
6814
6889
|
function activeElement(doc) {
|
|
6815
6890
|
if (doc === void 0) {
|
|
6816
|
-
doc = ownerDocument();
|
|
6891
|
+
doc = ownerDocument$1();
|
|
6817
6892
|
}
|
|
6818
6893
|
|
|
6819
6894
|
// Support: IE 9 only
|
|
@@ -6830,6 +6905,13 @@ function activeElement(doc) {
|
|
|
6830
6905
|
}
|
|
6831
6906
|
}
|
|
6832
6907
|
|
|
6908
|
+
/**
|
|
6909
|
+
* Adds a CSS class to a given element.
|
|
6910
|
+
*
|
|
6911
|
+
* @param element the element
|
|
6912
|
+
* @param className the CSS class name
|
|
6913
|
+
*/
|
|
6914
|
+
|
|
6833
6915
|
function addClass(element, className) {
|
|
6834
6916
|
if (element.classList) element.classList.add(className);else if (!hasClass(element, className)) if (typeof element.className === 'string') element.className = element.className + " " + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + " " + className);
|
|
6835
6917
|
}
|
|
@@ -6837,6 +6919,13 @@ function addClass(element, className) {
|
|
|
6837
6919
|
function replaceClassName(origClass, classToRemove) {
|
|
6838
6920
|
return origClass.replace(new RegExp("(^|\\s)" + classToRemove + "(?:\\s|$)", 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
|
6839
6921
|
}
|
|
6922
|
+
/**
|
|
6923
|
+
* Removes a CSS class from a given element.
|
|
6924
|
+
*
|
|
6925
|
+
* @param element the element
|
|
6926
|
+
* @param className the CSS class name
|
|
6927
|
+
*/
|
|
6928
|
+
|
|
6840
6929
|
|
|
6841
6930
|
function removeClass(element, className) {
|
|
6842
6931
|
if (element.classList) {
|
|
@@ -6863,7 +6952,7 @@ function isBody(node) {
|
|
|
6863
6952
|
}
|
|
6864
6953
|
|
|
6865
6954
|
function bodyIsOverflowing(node) {
|
|
6866
|
-
var doc = isWindow(node) ? ownerDocument() : ownerDocument(node);
|
|
6955
|
+
var doc = isWindow(node) ? ownerDocument$1() : ownerDocument$1(node);
|
|
6867
6956
|
var win = isWindow(node) || doc.defaultView;
|
|
6868
6957
|
return doc.body.clientWidth < win.innerWidth;
|
|
6869
6958
|
}
|
|
@@ -7075,7 +7164,7 @@ var resolveContainerRef = function resolveContainerRef(ref) {
|
|
|
7075
7164
|
var _ref;
|
|
7076
7165
|
|
|
7077
7166
|
if (typeof document === 'undefined') return null;
|
|
7078
|
-
if (ref == null) return ownerDocument().body;
|
|
7167
|
+
if (ref == null) return ownerDocument$1().body;
|
|
7079
7168
|
if (typeof ref === 'function') ref = ref();
|
|
7080
7169
|
if (ref && 'current' in ref) ref = ref.current;
|
|
7081
7170
|
if ((_ref = ref) == null ? void 0 : _ref.nodeType) return ref || null;
|
|
@@ -7108,11 +7197,11 @@ function useWaitForDOMRef(ref, onResolved) {
|
|
|
7108
7197
|
return resolvedRef;
|
|
7109
7198
|
}
|
|
7110
7199
|
|
|
7111
|
-
var manager;
|
|
7200
|
+
var manager$1;
|
|
7112
7201
|
|
|
7113
7202
|
function getManager() {
|
|
7114
|
-
if (!manager) manager = new ModalManager();
|
|
7115
|
-
return manager;
|
|
7203
|
+
if (!manager$1) manager$1 = new ModalManager();
|
|
7204
|
+
return manager$1;
|
|
7116
7205
|
}
|
|
7117
7206
|
|
|
7118
7207
|
function useModalManager(provided) {
|
|
@@ -7140,7 +7229,7 @@ function useModalManager(provided) {
|
|
|
7140
7229
|
});
|
|
7141
7230
|
}
|
|
7142
7231
|
|
|
7143
|
-
var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7232
|
+
var Modal$1 = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
7144
7233
|
var _ref$show = _ref.show,
|
|
7145
7234
|
show = _ref$show === void 0 ? false : _ref$show,
|
|
7146
7235
|
_ref$role = _ref.role,
|
|
@@ -7224,7 +7313,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7224
7313
|
if (autoFocus) {
|
|
7225
7314
|
var currentActiveElement = activeElement(document);
|
|
7226
7315
|
|
|
7227
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7316
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7228
7317
|
lastFocusRef.current = currentActiveElement;
|
|
7229
7318
|
modal.dialog.focus();
|
|
7230
7319
|
}
|
|
@@ -7270,7 +7359,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7270
7359
|
|
|
7271
7360
|
var currentActiveElement = activeElement();
|
|
7272
7361
|
|
|
7273
|
-
if (modal.dialog && currentActiveElement && !contains
|
|
7362
|
+
if (modal.dialog && currentActiveElement && !contains(modal.dialog, currentActiveElement)) {
|
|
7274
7363
|
modal.dialog.focus();
|
|
7275
7364
|
}
|
|
7276
7365
|
});
|
|
@@ -7361,7 +7450,7 @@ var Modal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
7361
7450
|
|
|
7362
7451
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React__default.createElement(React__default.Fragment, null, backdropElement, dialog), container));
|
|
7363
7452
|
});
|
|
7364
|
-
var propTypes$
|
|
7453
|
+
var propTypes$2 = {
|
|
7365
7454
|
/**
|
|
7366
7455
|
* Set the visibility of the Modal
|
|
7367
7456
|
*/
|
|
@@ -7517,9 +7606,9 @@ var propTypes$8 = {
|
|
|
7517
7606
|
*/
|
|
7518
7607
|
manager: PropTypes.instanceOf(ModalManager)
|
|
7519
7608
|
};
|
|
7520
|
-
Modal.displayName = 'Modal';
|
|
7521
|
-
Modal.propTypes = propTypes$
|
|
7522
|
-
var BaseModal = Object.assign(Modal, {
|
|
7609
|
+
Modal$1.displayName = 'Modal';
|
|
7610
|
+
Modal$1.propTypes = propTypes$2;
|
|
7611
|
+
var BaseModal = Object.assign(Modal$1, {
|
|
7523
7612
|
Manager: ModalManager
|
|
7524
7613
|
});
|
|
7525
7614
|
|
|
@@ -7611,11 +7700,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7611
7700
|
size = _ref.size,
|
|
7612
7701
|
children = _ref.children,
|
|
7613
7702
|
scrollable = _ref.scrollable,
|
|
7614
|
-
props = _objectWithoutPropertiesLoose
|
|
7703
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7615
7704
|
|
|
7616
7705
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7617
7706
|
var dialogClass = bsPrefix + "-dialog";
|
|
7618
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7707
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7619
7708
|
ref: ref,
|
|
7620
7709
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7621
7710
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7626,7 +7715,7 @@ ModalDialog.displayName = 'ModalDialog';
|
|
|
7626
7715
|
|
|
7627
7716
|
var ModalFooter = createWithBsPrefix('modal-footer');
|
|
7628
7717
|
|
|
7629
|
-
var defaultProps$
|
|
7718
|
+
var defaultProps$e = {
|
|
7630
7719
|
closeLabel: 'Close',
|
|
7631
7720
|
closeButton: false
|
|
7632
7721
|
};
|
|
@@ -7637,7 +7726,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7637
7726
|
onHide = _ref.onHide,
|
|
7638
7727
|
className = _ref.className,
|
|
7639
7728
|
children = _ref.children,
|
|
7640
|
-
props = _objectWithoutPropertiesLoose
|
|
7729
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7641
7730
|
|
|
7642
7731
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7643
7732
|
var context = useContext(ModalContext);
|
|
@@ -7645,7 +7734,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7645
7734
|
if (context) context.onHide();
|
|
7646
7735
|
if (onHide) onHide();
|
|
7647
7736
|
});
|
|
7648
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7737
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7649
7738
|
ref: ref
|
|
7650
7739
|
}, props, {
|
|
7651
7740
|
className: classnames(className, bsPrefix)
|
|
@@ -7655,15 +7744,15 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7655
7744
|
}));
|
|
7656
7745
|
});
|
|
7657
7746
|
ModalHeader.displayName = 'ModalHeader';
|
|
7658
|
-
ModalHeader.defaultProps = defaultProps$
|
|
7747
|
+
ModalHeader.defaultProps = defaultProps$e;
|
|
7659
7748
|
|
|
7660
|
-
var DivStyledAsH4
|
|
7749
|
+
var DivStyledAsH4 = divWithClassName('h4');
|
|
7661
7750
|
var ModalTitle = createWithBsPrefix('modal-title', {
|
|
7662
|
-
Component: DivStyledAsH4
|
|
7751
|
+
Component: DivStyledAsH4
|
|
7663
7752
|
});
|
|
7664
7753
|
|
|
7665
|
-
var manager
|
|
7666
|
-
var defaultProps$
|
|
7754
|
+
var manager;
|
|
7755
|
+
var defaultProps$d = {
|
|
7667
7756
|
show: false,
|
|
7668
7757
|
backdrop: true,
|
|
7669
7758
|
keyboard: true,
|
|
@@ -7685,7 +7774,7 @@ function BackdropTransition(props) {
|
|
|
7685
7774
|
/* eslint-enable no-use-before-define */
|
|
7686
7775
|
|
|
7687
7776
|
|
|
7688
|
-
var Modal
|
|
7777
|
+
var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
7689
7778
|
var bsPrefix = _ref.bsPrefix,
|
|
7690
7779
|
className = _ref.className,
|
|
7691
7780
|
style = _ref.style,
|
|
@@ -7714,7 +7803,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7714
7803
|
onExited = _ref.onExited,
|
|
7715
7804
|
backdropClassName = _ref.backdropClassName,
|
|
7716
7805
|
propsManager = _ref.manager,
|
|
7717
|
-
props = _objectWithoutPropertiesLoose
|
|
7806
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7718
7807
|
|
|
7719
7808
|
var _useState = useState({}),
|
|
7720
7809
|
modalStyle = _useState[0],
|
|
@@ -7751,14 +7840,14 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7751
7840
|
|
|
7752
7841
|
function getModalManager() {
|
|
7753
7842
|
if (propsManager) return propsManager;
|
|
7754
|
-
if (!manager
|
|
7755
|
-
return manager
|
|
7843
|
+
if (!manager) manager = new BootstrapModalManager();
|
|
7844
|
+
return manager;
|
|
7756
7845
|
}
|
|
7757
7846
|
|
|
7758
7847
|
function updateDialogStyle(node) {
|
|
7759
7848
|
if (!canUseDOM) return;
|
|
7760
7849
|
var containerIsOverflowing = getModalManager().isContainerOverflowing(modal);
|
|
7761
|
-
var modalIsOverflowing = node.scrollHeight > ownerDocument(node).documentElement.clientHeight;
|
|
7850
|
+
var modalIsOverflowing = node.scrollHeight > ownerDocument$1(node).documentElement.clientHeight;
|
|
7762
7851
|
setStyle({
|
|
7763
7852
|
paddingRight: containerIsOverflowing && !modalIsOverflowing ? scrollbarSize() : undefined,
|
|
7764
7853
|
paddingLeft: !containerIsOverflowing && modalIsOverflowing ? scrollbarSize() : undefined
|
|
@@ -7880,12 +7969,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7880
7969
|
};
|
|
7881
7970
|
|
|
7882
7971
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7883
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7972
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
7884
7973
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7885
7974
|
}));
|
|
7886
7975
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7887
7976
|
|
|
7888
|
-
var baseModalStyle = _extends
|
|
7977
|
+
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7889
7978
|
|
|
7890
7979
|
|
|
7891
7980
|
if (!animation) {
|
|
@@ -7893,7 +7982,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7893
7982
|
}
|
|
7894
7983
|
|
|
7895
7984
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7896
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
7985
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7897
7986
|
role: "dialog"
|
|
7898
7987
|
}, dialogProps, {
|
|
7899
7988
|
style: baseModalStyle,
|
|
@@ -7901,7 +7990,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7901
7990
|
onClick: backdrop ? handleClick : undefined,
|
|
7902
7991
|
onMouseUp: handleMouseUp,
|
|
7903
7992
|
"aria-labelledby": ariaLabelledby
|
|
7904
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends
|
|
7993
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
7905
7994
|
role: "document",
|
|
7906
7995
|
onMouseDown: handleDialogMouseDown,
|
|
7907
7996
|
className: dialogClassName,
|
|
@@ -7939,15 +8028,15 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7939
8028
|
renderDialog: renderDialog
|
|
7940
8029
|
}));
|
|
7941
8030
|
});
|
|
7942
|
-
Modal
|
|
7943
|
-
Modal
|
|
7944
|
-
Modal
|
|
7945
|
-
Modal
|
|
7946
|
-
Modal
|
|
7947
|
-
Modal
|
|
7948
|
-
Modal
|
|
7949
|
-
Modal
|
|
7950
|
-
Modal
|
|
8031
|
+
Modal.displayName = 'Modal';
|
|
8032
|
+
Modal.defaultProps = defaultProps$d;
|
|
8033
|
+
Modal.Body = ModalBody;
|
|
8034
|
+
Modal.Header = ModalHeader;
|
|
8035
|
+
Modal.Title = ModalTitle;
|
|
8036
|
+
Modal.Footer = ModalFooter;
|
|
8037
|
+
Modal.Dialog = ModalDialog;
|
|
8038
|
+
Modal.TRANSITION_DURATION = 300;
|
|
8039
|
+
Modal.BACKDROP_TRANSITION_DURATION = 150;
|
|
7951
8040
|
|
|
7952
8041
|
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
|
|
7953
8042
|
function (_ref, ref) {
|
|
@@ -7956,17 +8045,17 @@ function (_ref, ref) {
|
|
|
7956
8045
|
children = _ref.children,
|
|
7957
8046
|
_ref$as = _ref.as,
|
|
7958
8047
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7959
|
-
props = _objectWithoutPropertiesLoose
|
|
8048
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7960
8049
|
|
|
7961
8050
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7962
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8051
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
7963
8052
|
ref: ref,
|
|
7964
8053
|
className: classnames(className, bsPrefix)
|
|
7965
8054
|
}), children);
|
|
7966
8055
|
});
|
|
7967
8056
|
NavItem.displayName = 'NavItem';
|
|
7968
8057
|
|
|
7969
|
-
var defaultProps$
|
|
8058
|
+
var defaultProps$c = {
|
|
7970
8059
|
disabled: false,
|
|
7971
8060
|
as: SafeAnchor
|
|
7972
8061
|
};
|
|
@@ -7978,10 +8067,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7978
8067
|
eventKey = _ref.eventKey,
|
|
7979
8068
|
onSelect = _ref.onSelect,
|
|
7980
8069
|
as = _ref.as,
|
|
7981
|
-
props = _objectWithoutPropertiesLoose
|
|
8070
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7982
8071
|
|
|
7983
8072
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7984
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends
|
|
8073
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
7985
8074
|
href: href,
|
|
7986
8075
|
ref: ref,
|
|
7987
8076
|
eventKey: eventKey,
|
|
@@ -7992,9 +8081,9 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7992
8081
|
}));
|
|
7993
8082
|
});
|
|
7994
8083
|
NavLink.displayName = 'NavLink';
|
|
7995
|
-
NavLink.defaultProps = defaultProps$
|
|
8084
|
+
NavLink.defaultProps = defaultProps$c;
|
|
7996
8085
|
|
|
7997
|
-
var defaultProps$
|
|
8086
|
+
var defaultProps$b = {
|
|
7998
8087
|
justify: false,
|
|
7999
8088
|
fill: false
|
|
8000
8089
|
};
|
|
@@ -8014,13 +8103,13 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8014
8103
|
className = _useUncontrolled.className,
|
|
8015
8104
|
children = _useUncontrolled.children,
|
|
8016
8105
|
activeKey = _useUncontrolled.activeKey,
|
|
8017
|
-
props = _objectWithoutPropertiesLoose
|
|
8106
|
+
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8018
8107
|
|
|
8019
8108
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8020
8109
|
var navbarBsPrefix;
|
|
8021
8110
|
var cardHeaderBsPrefix;
|
|
8022
8111
|
var isNavbar = false;
|
|
8023
|
-
var navbarContext = useContext(context
|
|
8112
|
+
var navbarContext = useContext(context);
|
|
8024
8113
|
var cardContext = useContext(context$1);
|
|
8025
8114
|
|
|
8026
8115
|
if (navbarContext) {
|
|
@@ -8030,7 +8119,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8030
8119
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8031
8120
|
}
|
|
8032
8121
|
|
|
8033
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends
|
|
8122
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8034
8123
|
as: as,
|
|
8035
8124
|
ref: ref,
|
|
8036
8125
|
activeKey: activeKey,
|
|
@@ -8038,7 +8127,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8038
8127
|
}, props), children);
|
|
8039
8128
|
});
|
|
8040
8129
|
Nav.displayName = 'Nav';
|
|
8041
|
-
Nav.defaultProps = defaultProps$
|
|
8130
|
+
Nav.defaultProps = defaultProps$b;
|
|
8042
8131
|
Nav.Item = NavItem;
|
|
8043
8132
|
Nav.Link = NavLink;
|
|
8044
8133
|
|
|
@@ -8046,11 +8135,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8046
8135
|
var bsPrefix = _ref.bsPrefix,
|
|
8047
8136
|
className = _ref.className,
|
|
8048
8137
|
as = _ref.as,
|
|
8049
|
-
props = _objectWithoutPropertiesLoose
|
|
8138
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8050
8139
|
|
|
8051
8140
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8052
8141
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8053
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8142
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8054
8143
|
ref: ref,
|
|
8055
8144
|
className: classnames(className, bsPrefix)
|
|
8056
8145
|
}));
|
|
@@ -8060,11 +8149,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8060
8149
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8061
8150
|
var children = _ref.children,
|
|
8062
8151
|
bsPrefix = _ref.bsPrefix,
|
|
8063
|
-
props = _objectWithoutPropertiesLoose
|
|
8152
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8064
8153
|
|
|
8065
8154
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8066
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
8067
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends
|
|
8155
|
+
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8156
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8068
8157
|
in: !!(context && context.expanded)
|
|
8069
8158
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8070
8159
|
ref: ref,
|
|
@@ -8074,7 +8163,7 @@ var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
8074
8163
|
});
|
|
8075
8164
|
NavbarCollapse.displayName = 'NavbarCollapse';
|
|
8076
8165
|
|
|
8077
|
-
var defaultProps$
|
|
8166
|
+
var defaultProps$a = {
|
|
8078
8167
|
label: 'Toggle navigation'
|
|
8079
8168
|
};
|
|
8080
8169
|
var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8085,11 +8174,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8085
8174
|
_ref$as = _ref.as,
|
|
8086
8175
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8087
8176
|
onClick = _ref.onClick,
|
|
8088
|
-
props = _objectWithoutPropertiesLoose
|
|
8177
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8089
8178
|
|
|
8090
8179
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8091
8180
|
|
|
8092
|
-
var _ref2 = useContext(context
|
|
8181
|
+
var _ref2 = useContext(context) || {},
|
|
8093
8182
|
onToggle = _ref2.onToggle,
|
|
8094
8183
|
expanded = _ref2.expanded;
|
|
8095
8184
|
|
|
@@ -8102,7 +8191,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8102
8191
|
props.type = 'button';
|
|
8103
8192
|
}
|
|
8104
8193
|
|
|
8105
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8194
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8106
8195
|
ref: ref,
|
|
8107
8196
|
onClick: handleClick,
|
|
8108
8197
|
"aria-label": label,
|
|
@@ -8112,12 +8201,12 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8112
8201
|
}));
|
|
8113
8202
|
});
|
|
8114
8203
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
8115
|
-
NavbarToggle.defaultProps = defaultProps$
|
|
8204
|
+
NavbarToggle.defaultProps = defaultProps$a;
|
|
8116
8205
|
|
|
8117
8206
|
var NavbarText = createWithBsPrefix('navbar-text', {
|
|
8118
8207
|
Component: 'span'
|
|
8119
8208
|
});
|
|
8120
|
-
var defaultProps$
|
|
8209
|
+
var defaultProps$9 = {
|
|
8121
8210
|
expand: true,
|
|
8122
8211
|
variant: 'light',
|
|
8123
8212
|
collapseOnSelect: false
|
|
@@ -8140,7 +8229,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8140
8229
|
_onToggle = _useUncontrolled.onToggle,
|
|
8141
8230
|
onSelect = _useUncontrolled.onSelect,
|
|
8142
8231
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8143
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
8232
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8144
8233
|
|
|
8145
8234
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8146
8235
|
var handleCollapse = useCallback(function () {
|
|
@@ -8170,24 +8259,24 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8170
8259
|
expanded: !!expanded
|
|
8171
8260
|
};
|
|
8172
8261
|
}, [bsPrefix, expanded, _onToggle]);
|
|
8173
|
-
return /*#__PURE__*/React__default.createElement(context
|
|
8262
|
+
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
8174
8263
|
value: navbarContext
|
|
8175
8264
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8176
8265
|
value: handleCollapse
|
|
8177
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8266
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8178
8267
|
ref: ref
|
|
8179
8268
|
}, controlledProps, {
|
|
8180
8269
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8181
8270
|
}), children)));
|
|
8182
8271
|
});
|
|
8183
|
-
Navbar.defaultProps = defaultProps$
|
|
8272
|
+
Navbar.defaultProps = defaultProps$9;
|
|
8184
8273
|
Navbar.displayName = 'Navbar';
|
|
8185
8274
|
Navbar.Brand = NavbarBrand;
|
|
8186
8275
|
Navbar.Toggle = NavbarToggle;
|
|
8187
8276
|
Navbar.Collapse = NavbarCollapse;
|
|
8188
8277
|
Navbar.Text = NavbarText;
|
|
8189
8278
|
|
|
8190
|
-
var propTypes$
|
|
8279
|
+
var propTypes$1 = {
|
|
8191
8280
|
/**
|
|
8192
8281
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8193
8282
|
* @type {string|number}
|
|
@@ -8233,31 +8322,31 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8233
8322
|
disabled = _ref.disabled,
|
|
8234
8323
|
active = _ref.active,
|
|
8235
8324
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8236
|
-
props = _objectWithoutPropertiesLoose
|
|
8325
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8237
8326
|
|
|
8238
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
8327
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8239
8328
|
ref: ref
|
|
8240
8329
|
}, props, {
|
|
8241
8330
|
as: NavItem
|
|
8242
|
-
}), /*#__PURE__*/React__default.createElement(Dropdown
|
|
8331
|
+
}), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8243
8332
|
id: id,
|
|
8244
8333
|
eventKey: null,
|
|
8245
8334
|
active: active,
|
|
8246
8335
|
disabled: disabled,
|
|
8247
8336
|
childBsPrefix: bsPrefix,
|
|
8248
8337
|
as: NavLink
|
|
8249
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown
|
|
8338
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8250
8339
|
role: menuRole,
|
|
8251
8340
|
renderOnMount: renderMenuOnMount,
|
|
8252
8341
|
rootCloseEvent: rootCloseEvent
|
|
8253
8342
|
}, children));
|
|
8254
8343
|
});
|
|
8255
8344
|
NavDropdown.displayName = 'NavDropdown';
|
|
8256
|
-
NavDropdown.propTypes = propTypes$
|
|
8257
|
-
NavDropdown.Item = Dropdown
|
|
8258
|
-
NavDropdown.ItemText = Dropdown
|
|
8259
|
-
NavDropdown.Divider = Dropdown
|
|
8260
|
-
NavDropdown.Header = Dropdown
|
|
8345
|
+
NavDropdown.propTypes = propTypes$1;
|
|
8346
|
+
NavDropdown.Item = Dropdown.Item;
|
|
8347
|
+
NavDropdown.ItemText = Dropdown.ItemText;
|
|
8348
|
+
NavDropdown.Divider = Dropdown.Divider;
|
|
8349
|
+
NavDropdown.Header = Dropdown.Header;
|
|
8261
8350
|
|
|
8262
8351
|
/**
|
|
8263
8352
|
* Built on top of `Popper.js`, the overlay component is
|
|
@@ -8498,7 +8587,7 @@ Overlay.propTypes = {
|
|
|
8498
8587
|
onExited: PropTypes.func
|
|
8499
8588
|
};
|
|
8500
8589
|
|
|
8501
|
-
|
|
8590
|
+
/*#__PURE__*/(function (_React$Component) {
|
|
8502
8591
|
_inheritsLoose(RefHolder, _React$Component);
|
|
8503
8592
|
|
|
8504
8593
|
function RefHolder() {
|
|
@@ -8512,9 +8601,9 @@ var RefHolder = /*#__PURE__*/function (_React$Component) {
|
|
|
8512
8601
|
};
|
|
8513
8602
|
|
|
8514
8603
|
return RefHolder;
|
|
8515
|
-
}(React__default.Component);
|
|
8604
|
+
})(React__default.Component);
|
|
8516
8605
|
|
|
8517
|
-
var defaultProps$
|
|
8606
|
+
var defaultProps$8 = {
|
|
8518
8607
|
active: false,
|
|
8519
8608
|
disabled: false,
|
|
8520
8609
|
activeLabel: '(current)'
|
|
@@ -8526,7 +8615,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8526
8615
|
style = _ref.style,
|
|
8527
8616
|
activeLabel = _ref.activeLabel,
|
|
8528
8617
|
children = _ref.children,
|
|
8529
|
-
props = _objectWithoutPropertiesLoose
|
|
8618
|
+
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8530
8619
|
|
|
8531
8620
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8532
8621
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8536,14 +8625,14 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8536
8625
|
active: active,
|
|
8537
8626
|
disabled: disabled
|
|
8538
8627
|
})
|
|
8539
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8628
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8540
8629
|
className: "page-link",
|
|
8541
8630
|
disabled: disabled
|
|
8542
8631
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
8543
8632
|
className: "sr-only"
|
|
8544
8633
|
}, activeLabel)));
|
|
8545
8634
|
});
|
|
8546
|
-
PageItem.defaultProps = defaultProps$
|
|
8635
|
+
PageItem.defaultProps = defaultProps$8;
|
|
8547
8636
|
PageItem.displayName = 'PageItem';
|
|
8548
8637
|
|
|
8549
8638
|
function createButton(name, defaultValue, label) {
|
|
@@ -8553,7 +8642,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8553
8642
|
|
|
8554
8643
|
function Button(_ref2) {
|
|
8555
8644
|
var children = _ref2.children,
|
|
8556
|
-
props = _objectWithoutPropertiesLoose
|
|
8645
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8557
8646
|
|
|
8558
8647
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8559
8648
|
"aria-hidden": "true"
|
|
@@ -8585,10 +8674,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8585
8674
|
className = _ref.className,
|
|
8586
8675
|
children = _ref.children,
|
|
8587
8676
|
size = _ref.size,
|
|
8588
|
-
props = _objectWithoutPropertiesLoose
|
|
8677
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8589
8678
|
|
|
8590
8679
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8591
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends
|
|
8680
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8592
8681
|
ref: ref
|
|
8593
8682
|
}, props, {
|
|
8594
8683
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8607,10 +8696,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8607
8696
|
bsPrefix = _ref.bsPrefix,
|
|
8608
8697
|
className = _ref.className,
|
|
8609
8698
|
children = _ref.children,
|
|
8610
|
-
props = _objectWithoutPropertiesLoose
|
|
8699
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8611
8700
|
|
|
8612
8701
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8613
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8702
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8614
8703
|
ref: ref
|
|
8615
8704
|
}, props, {
|
|
8616
8705
|
className: classnames(bsPrefix, className)
|
|
@@ -8623,17 +8712,17 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8623
8712
|
bsPrefix = _ref.bsPrefix,
|
|
8624
8713
|
className = _ref.className,
|
|
8625
8714
|
children = _ref.children,
|
|
8626
|
-
props = _objectWithoutPropertiesLoose
|
|
8715
|
+
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8627
8716
|
|
|
8628
8717
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8629
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8718
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8630
8719
|
ref: ref
|
|
8631
8720
|
}, props, {
|
|
8632
8721
|
className: classnames(className, bsPrefix)
|
|
8633
8722
|
}), children);
|
|
8634
8723
|
});
|
|
8635
8724
|
|
|
8636
|
-
var defaultProps$
|
|
8725
|
+
var defaultProps$7 = {
|
|
8637
8726
|
placement: 'right'
|
|
8638
8727
|
};
|
|
8639
8728
|
var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8643,33 +8732,33 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8643
8732
|
style = _ref.style,
|
|
8644
8733
|
children = _ref.children,
|
|
8645
8734
|
content = _ref.content,
|
|
8646
|
-
arrowProps = _ref.arrowProps
|
|
8647
|
-
|
|
8648
|
-
|
|
8649
|
-
props = _objectWithoutPropertiesLoose
|
|
8735
|
+
arrowProps = _ref.arrowProps;
|
|
8736
|
+
_ref.popper;
|
|
8737
|
+
_ref.show;
|
|
8738
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8650
8739
|
|
|
8651
8740
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8652
8741
|
|
|
8653
8742
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8654
8743
|
primaryPlacement = _ref2[0];
|
|
8655
8744
|
|
|
8656
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8745
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8657
8746
|
ref: ref,
|
|
8658
8747
|
role: "tooltip",
|
|
8659
8748
|
style: style,
|
|
8660
8749
|
"x-placement": primaryPlacement,
|
|
8661
8750
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8662
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends
|
|
8751
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8663
8752
|
className: "arrow"
|
|
8664
8753
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8665
8754
|
});
|
|
8666
|
-
Popover.defaultProps = defaultProps$
|
|
8755
|
+
Popover.defaultProps = defaultProps$7;
|
|
8667
8756
|
Popover.Title = PopoverTitle;
|
|
8668
8757
|
Popover.Content = PopoverContent;
|
|
8669
8758
|
|
|
8670
8759
|
var ROUND_PRECISION = 1000;
|
|
8671
8760
|
|
|
8672
|
-
var defaultProps$
|
|
8761
|
+
var defaultProps$6 = {
|
|
8673
8762
|
min: 0,
|
|
8674
8763
|
max: 100,
|
|
8675
8764
|
animated: false,
|
|
@@ -8697,14 +8786,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8697
8786
|
style = _ref.style,
|
|
8698
8787
|
variant = _ref.variant,
|
|
8699
8788
|
bsPrefix = _ref.bsPrefix,
|
|
8700
|
-
props = _objectWithoutPropertiesLoose
|
|
8789
|
+
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8701
8790
|
|
|
8702
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8791
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8703
8792
|
ref: ref
|
|
8704
8793
|
}, props, {
|
|
8705
8794
|
role: "progressbar",
|
|
8706
8795
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8707
|
-
style: _extends
|
|
8796
|
+
style: _extends({
|
|
8708
8797
|
width: getPercentage(now, min, max) + "%"
|
|
8709
8798
|
}, style),
|
|
8710
8799
|
"aria-valuenow": now,
|
|
@@ -8717,7 +8806,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8717
8806
|
|
|
8718
8807
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8719
8808
|
var isChild = _ref2.isChild,
|
|
8720
|
-
props = _objectWithoutPropertiesLoose
|
|
8809
|
+
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8721
8810
|
|
|
8722
8811
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8723
8812
|
|
|
@@ -8736,9 +8825,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8736
8825
|
variant = props.variant,
|
|
8737
8826
|
className = props.className,
|
|
8738
8827
|
children = props.children,
|
|
8739
|
-
wrapperProps = _objectWithoutPropertiesLoose
|
|
8828
|
+
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8740
8829
|
|
|
8741
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8830
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8742
8831
|
ref: ref
|
|
8743
8832
|
}, wrapperProps, {
|
|
8744
8833
|
className: classnames(className, bsPrefix)
|
|
@@ -8759,9 +8848,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8759
8848
|
}, ref));
|
|
8760
8849
|
});
|
|
8761
8850
|
ProgressBar.displayName = 'ProgressBar';
|
|
8762
|
-
ProgressBar.defaultProps = defaultProps$
|
|
8851
|
+
ProgressBar.defaultProps = defaultProps$6;
|
|
8763
8852
|
|
|
8764
|
-
var defaultProps$
|
|
8853
|
+
var defaultProps$5 = {
|
|
8765
8854
|
aspectRatio: '1by1'
|
|
8766
8855
|
};
|
|
8767
8856
|
var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8769,11 +8858,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8769
8858
|
className = _ref.className,
|
|
8770
8859
|
children = _ref.children,
|
|
8771
8860
|
aspectRatio = _ref.aspectRatio,
|
|
8772
|
-
props = _objectWithoutPropertiesLoose
|
|
8861
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8773
8862
|
|
|
8774
8863
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8775
8864
|
var child = React__default.Children.only(children);
|
|
8776
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
8865
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8777
8866
|
ref: ref
|
|
8778
8867
|
}, props, {
|
|
8779
8868
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8781,10 +8870,10 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8781
8870
|
className: classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8782
8871
|
}));
|
|
8783
8872
|
});
|
|
8784
|
-
ResponsiveEmbed.defaultProps = defaultProps$
|
|
8873
|
+
ResponsiveEmbed.defaultProps = defaultProps$5;
|
|
8785
8874
|
|
|
8786
|
-
var DEVICE_SIZES
|
|
8787
|
-
var defaultProps$
|
|
8875
|
+
var DEVICE_SIZES = ['xl', 'lg', 'md', 'sm', 'xs'];
|
|
8876
|
+
var defaultProps$4 = {
|
|
8788
8877
|
noGutters: false
|
|
8789
8878
|
};
|
|
8790
8879
|
var Row = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -8793,12 +8882,12 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8793
8882
|
noGutters = _ref.noGutters,
|
|
8794
8883
|
_ref$as = _ref.as,
|
|
8795
8884
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8796
|
-
props = _objectWithoutPropertiesLoose
|
|
8885
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8797
8886
|
|
|
8798
8887
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8799
8888
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
8800
8889
|
var classes = [];
|
|
8801
|
-
DEVICE_SIZES
|
|
8890
|
+
DEVICE_SIZES.forEach(function (brkPoint) {
|
|
8802
8891
|
var propValue = props[brkPoint];
|
|
8803
8892
|
delete props[brkPoint];
|
|
8804
8893
|
var cols;
|
|
@@ -8812,14 +8901,14 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8812
8901
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8813
8902
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8814
8903
|
});
|
|
8815
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8904
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8816
8905
|
ref: ref
|
|
8817
8906
|
}, props, {
|
|
8818
8907
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8819
8908
|
}));
|
|
8820
8909
|
});
|
|
8821
8910
|
Row.displayName = 'Row';
|
|
8822
|
-
Row.defaultProps = defaultProps$
|
|
8911
|
+
Row.defaultProps = defaultProps$4;
|
|
8823
8912
|
|
|
8824
8913
|
var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
8825
8914
|
var bsPrefix = _ref.bsPrefix,
|
|
@@ -8830,11 +8919,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8830
8919
|
_ref$as = _ref.as,
|
|
8831
8920
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8832
8921
|
className = _ref.className,
|
|
8833
|
-
props = _objectWithoutPropertiesLoose
|
|
8922
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8834
8923
|
|
|
8835
8924
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8836
8925
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8837
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
8926
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8838
8927
|
ref: ref
|
|
8839
8928
|
}, props, {
|
|
8840
8929
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -8842,7 +8931,7 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8842
8931
|
});
|
|
8843
8932
|
Spinner.displayName = 'Spinner';
|
|
8844
8933
|
|
|
8845
|
-
var propTypes
|
|
8934
|
+
var propTypes = {
|
|
8846
8935
|
/**
|
|
8847
8936
|
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
8848
8937
|
* @type {string|number}
|
|
@@ -8904,7 +8993,7 @@ var propTypes$a = {
|
|
|
8904
8993
|
/** @ignore */
|
|
8905
8994
|
size: PropTypes.string
|
|
8906
8995
|
};
|
|
8907
|
-
var defaultProps$
|
|
8996
|
+
var defaultProps$3 = {
|
|
8908
8997
|
toggleLabel: 'Toggle dropdown',
|
|
8909
8998
|
type: 'button'
|
|
8910
8999
|
};
|
|
@@ -8924,9 +9013,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8924
9013
|
menuRole = _ref.menuRole,
|
|
8925
9014
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8926
9015
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8927
|
-
props = _objectWithoutPropertiesLoose
|
|
9016
|
+
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8928
9017
|
|
|
8929
|
-
return /*#__PURE__*/React__default.createElement(Dropdown
|
|
9018
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8930
9019
|
ref: ref
|
|
8931
9020
|
}, props, {
|
|
8932
9021
|
as: ButtonGroup
|
|
@@ -8939,7 +9028,7 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8939
9028
|
target: target,
|
|
8940
9029
|
onClick: onClick,
|
|
8941
9030
|
type: type
|
|
8942
|
-
}, title), /*#__PURE__*/React__default.createElement(Dropdown
|
|
9031
|
+
}, title), /*#__PURE__*/React__default.createElement(Dropdown.Toggle, {
|
|
8943
9032
|
split: true,
|
|
8944
9033
|
id: id ? id.toString() : undefined,
|
|
8945
9034
|
size: size,
|
|
@@ -8948,15 +9037,15 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8948
9037
|
childBsPrefix: bsPrefix
|
|
8949
9038
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
8950
9039
|
className: "sr-only"
|
|
8951
|
-
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown
|
|
9040
|
+
}, toggleLabel)), /*#__PURE__*/React__default.createElement(Dropdown.Menu, {
|
|
8952
9041
|
align: menuAlign,
|
|
8953
9042
|
role: menuRole,
|
|
8954
9043
|
renderOnMount: renderMenuOnMount,
|
|
8955
9044
|
rootCloseEvent: rootCloseEvent
|
|
8956
9045
|
}, children));
|
|
8957
9046
|
});
|
|
8958
|
-
SplitButton.propTypes = propTypes
|
|
8959
|
-
SplitButton.defaultProps = defaultProps$
|
|
9047
|
+
SplitButton.propTypes = propTypes;
|
|
9048
|
+
SplitButton.defaultProps = defaultProps$3;
|
|
8960
9049
|
SplitButton.displayName = 'SplitButton';
|
|
8961
9050
|
|
|
8962
9051
|
var TabContainer = function TabContainer(props) {
|
|
@@ -9004,10 +9093,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9004
9093
|
_ref$as = _ref.as,
|
|
9005
9094
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9006
9095
|
className = _ref.className,
|
|
9007
|
-
props = _objectWithoutPropertiesLoose
|
|
9096
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9008
9097
|
|
|
9009
9098
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9010
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends
|
|
9099
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9011
9100
|
ref: ref
|
|
9012
9101
|
}, props, {
|
|
9013
9102
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9021,11 +9110,11 @@ function useTabContext(props) {
|
|
|
9021
9110
|
var activeKey = context.activeKey,
|
|
9022
9111
|
getControlledId = context.getControlledId,
|
|
9023
9112
|
getControllerId = context.getControllerId,
|
|
9024
|
-
rest = _objectWithoutPropertiesLoose
|
|
9113
|
+
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9025
9114
|
|
|
9026
9115
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9027
9116
|
var key = makeEventKey(props.eventKey);
|
|
9028
|
-
return _extends
|
|
9117
|
+
return _extends({}, props, {
|
|
9029
9118
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9030
9119
|
id: getControlledId(props.eventKey),
|
|
9031
9120
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9050,13 +9139,13 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9050
9139
|
unmountOnExit = _useTabContext.unmountOnExit,
|
|
9051
9140
|
Transition = _useTabContext.transition,
|
|
9052
9141
|
_useTabContext$as = _useTabContext.as,
|
|
9053
|
-
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as
|
|
9054
|
-
|
|
9055
|
-
rest = _objectWithoutPropertiesLoose
|
|
9142
|
+
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9143
|
+
_useTabContext.eventKey;
|
|
9144
|
+
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9056
9145
|
|
|
9057
9146
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9058
9147
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9059
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends
|
|
9148
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9060
9149
|
ref: ref,
|
|
9061
9150
|
role: "tabpanel",
|
|
9062
9151
|
"aria-hidden": !active,
|
|
@@ -9106,7 +9195,7 @@ Tab.Container = TabContainer;
|
|
|
9106
9195
|
Tab.Content = TabContent;
|
|
9107
9196
|
Tab.Pane = TabPane;
|
|
9108
9197
|
|
|
9109
|
-
|
|
9198
|
+
React__default.forwardRef(function (_ref, ref) {
|
|
9110
9199
|
var bsPrefix = _ref.bsPrefix,
|
|
9111
9200
|
className = _ref.className,
|
|
9112
9201
|
striped = _ref.striped,
|
|
@@ -9116,11 +9205,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9116
9205
|
size = _ref.size,
|
|
9117
9206
|
variant = _ref.variant,
|
|
9118
9207
|
responsive = _ref.responsive,
|
|
9119
|
-
props = _objectWithoutPropertiesLoose
|
|
9208
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9120
9209
|
|
|
9121
9210
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9122
9211
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9123
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends
|
|
9212
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9124
9213
|
className: classes,
|
|
9125
9214
|
ref: ref
|
|
9126
9215
|
}));
|
|
@@ -9145,7 +9234,7 @@ var ToastContext = React__default.createContext({
|
|
|
9145
9234
|
onClose: function onClose() {}
|
|
9146
9235
|
});
|
|
9147
9236
|
|
|
9148
|
-
var defaultProps$
|
|
9237
|
+
var defaultProps$2 = {
|
|
9149
9238
|
closeLabel: 'Close',
|
|
9150
9239
|
closeButton: true
|
|
9151
9240
|
};
|
|
@@ -9155,7 +9244,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9155
9244
|
closeButton = _ref.closeButton,
|
|
9156
9245
|
className = _ref.className,
|
|
9157
9246
|
children = _ref.children,
|
|
9158
|
-
props = _objectWithoutPropertiesLoose
|
|
9247
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9159
9248
|
|
|
9160
9249
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9161
9250
|
var context = useContext(ToastContext);
|
|
@@ -9164,7 +9253,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9164
9253
|
context.onClose(e);
|
|
9165
9254
|
}
|
|
9166
9255
|
});
|
|
9167
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
9256
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9168
9257
|
ref: ref
|
|
9169
9258
|
}, props, {
|
|
9170
9259
|
className: classnames(bsPrefix, className)
|
|
@@ -9176,7 +9265,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9176
9265
|
}));
|
|
9177
9266
|
});
|
|
9178
9267
|
ToastHeader.displayName = 'ToastHeader';
|
|
9179
|
-
ToastHeader.defaultProps = defaultProps$
|
|
9268
|
+
ToastHeader.defaultProps = defaultProps$2;
|
|
9180
9269
|
|
|
9181
9270
|
var ToastBody = createWithBsPrefix('toast-body');
|
|
9182
9271
|
|
|
@@ -9195,7 +9284,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9195
9284
|
_ref$autohide = _ref.autohide,
|
|
9196
9285
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9197
9286
|
onClose = _ref.onClose,
|
|
9198
|
-
props = _objectWithoutPropertiesLoose
|
|
9287
|
+
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9199
9288
|
|
|
9200
9289
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9201
9290
|
// timer in case these values change.
|
|
@@ -9223,7 +9312,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9223
9312
|
};
|
|
9224
9313
|
}, [onClose]);
|
|
9225
9314
|
var hasAnimation = !!(Transition && animation);
|
|
9226
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends
|
|
9315
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9227
9316
|
ref: ref,
|
|
9228
9317
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9229
9318
|
role: "alert",
|
|
@@ -9243,7 +9332,7 @@ Object.assign(Toast, {
|
|
|
9243
9332
|
Header: ToastHeader
|
|
9244
9333
|
});
|
|
9245
9334
|
|
|
9246
|
-
var noop
|
|
9335
|
+
var noop = function noop() {
|
|
9247
9336
|
return undefined;
|
|
9248
9337
|
};
|
|
9249
9338
|
|
|
@@ -9257,7 +9346,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9257
9346
|
value = _ref.value,
|
|
9258
9347
|
disabled = _ref.disabled,
|
|
9259
9348
|
inputRef = _ref.inputRef,
|
|
9260
|
-
props = _objectWithoutPropertiesLoose
|
|
9349
|
+
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9261
9350
|
|
|
9262
9351
|
var _useState = useState(false),
|
|
9263
9352
|
focused = _useState[0],
|
|
@@ -9269,7 +9358,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9269
9358
|
var handleBlur = useCallback(function (e) {
|
|
9270
9359
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9271
9360
|
}, []);
|
|
9272
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends
|
|
9361
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9273
9362
|
ref: ref,
|
|
9274
9363
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9275
9364
|
type: undefined,
|
|
@@ -9285,12 +9374,12 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9285
9374
|
disabled: !!disabled,
|
|
9286
9375
|
onFocus: handleFocus,
|
|
9287
9376
|
onBlur: handleBlur,
|
|
9288
|
-
onChange: onChange || noop
|
|
9377
|
+
onChange: onChange || noop
|
|
9289
9378
|
}), children);
|
|
9290
9379
|
});
|
|
9291
9380
|
ToggleButton.displayName = 'ToggleButton';
|
|
9292
9381
|
|
|
9293
|
-
var defaultProps$
|
|
9382
|
+
var defaultProps$1 = {
|
|
9294
9383
|
type: 'radio',
|
|
9295
9384
|
vertical: false
|
|
9296
9385
|
};
|
|
@@ -9303,7 +9392,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9303
9392
|
name = _useUncontrolled.name,
|
|
9304
9393
|
value = _useUncontrolled.value,
|
|
9305
9394
|
onChange = _useUncontrolled.onChange,
|
|
9306
|
-
controlledProps = _objectWithoutPropertiesLoose
|
|
9395
|
+
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9307
9396
|
|
|
9308
9397
|
var getValues = function getValues() {
|
|
9309
9398
|
return value == null ? [] : [].concat(value);
|
|
@@ -9332,7 +9421,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9332
9421
|
};
|
|
9333
9422
|
|
|
9334
9423
|
!(type !== 'radio' || !!name) ? process.env.NODE_ENV !== "production" ? invariant_1(false, 'A `name` is required to group the toggle buttons when the `type` ' + 'is set to "radio"') : invariant_1(false) : void 0;
|
|
9335
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends
|
|
9424
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9336
9425
|
ref: ref,
|
|
9337
9426
|
toggle: true
|
|
9338
9427
|
}), map(children, function (child) {
|
|
@@ -9353,10 +9442,10 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9353
9442
|
});
|
|
9354
9443
|
}));
|
|
9355
9444
|
});
|
|
9356
|
-
ToggleButtonGroup.defaultProps = defaultProps$
|
|
9445
|
+
ToggleButtonGroup.defaultProps = defaultProps$1;
|
|
9357
9446
|
ToggleButtonGroup.Button = ToggleButton;
|
|
9358
9447
|
|
|
9359
|
-
var defaultProps
|
|
9448
|
+
var defaultProps = {
|
|
9360
9449
|
placement: 'right'
|
|
9361
9450
|
};
|
|
9362
9451
|
var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
@@ -9365,32 +9454,32 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9365
9454
|
className = _ref.className,
|
|
9366
9455
|
style = _ref.style,
|
|
9367
9456
|
children = _ref.children,
|
|
9368
|
-
arrowProps = _ref.arrowProps
|
|
9369
|
-
|
|
9370
|
-
|
|
9371
|
-
props = _objectWithoutPropertiesLoose
|
|
9457
|
+
arrowProps = _ref.arrowProps;
|
|
9458
|
+
_ref.popper;
|
|
9459
|
+
_ref.show;
|
|
9460
|
+
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9372
9461
|
|
|
9373
9462
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9374
9463
|
|
|
9375
9464
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9376
9465
|
primaryPlacement = _ref2[0];
|
|
9377
9466
|
|
|
9378
|
-
return /*#__PURE__*/React__default.createElement("div", _extends
|
|
9467
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9379
9468
|
ref: ref,
|
|
9380
9469
|
style: style,
|
|
9381
9470
|
role: "tooltip",
|
|
9382
9471
|
"x-placement": primaryPlacement,
|
|
9383
9472
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9384
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends
|
|
9473
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9385
9474
|
className: "arrow"
|
|
9386
9475
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9387
9476
|
className: bsPrefix + "-inner"
|
|
9388
9477
|
}, children));
|
|
9389
9478
|
});
|
|
9390
|
-
Tooltip.defaultProps = defaultProps
|
|
9479
|
+
Tooltip.defaultProps = defaultProps;
|
|
9391
9480
|
Tooltip.displayName = 'Tooltip';
|
|
9392
9481
|
|
|
9393
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\
|
|
9482
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9394
9483
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9395
9484
|
styleInject(css);
|
|
9396
9485
|
|
|
@@ -9477,11 +9566,11 @@ var Filter = function Filter(_ref) {
|
|
|
9477
9566
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9478
9567
|
grandChildData = _useState6[0],
|
|
9479
9568
|
setGrandChildData = _useState6[1];
|
|
9480
|
-
/*
|
|
9481
|
-
{parent: showAll,
|
|
9482
|
-
chidlren: show selected from parent,
|
|
9483
|
-
grandchildren: show selected from children
|
|
9484
|
-
}
|
|
9569
|
+
/*
|
|
9570
|
+
{parent: showAll,
|
|
9571
|
+
chidlren: show selected from parent,
|
|
9572
|
+
grandchildren: show selected from children
|
|
9573
|
+
}
|
|
9485
9574
|
*/
|
|
9486
9575
|
|
|
9487
9576
|
|
|
@@ -9496,7 +9585,7 @@ var Filter = function Filter(_ref) {
|
|
|
9496
9585
|
var handleFilterSelect = function handleFilterSelect(group, type) {
|
|
9497
9586
|
if (type === 'parent') {
|
|
9498
9587
|
setParentData(function (prevState) {
|
|
9499
|
-
return _extends$
|
|
9588
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null });
|
|
9500
9589
|
});
|
|
9501
9590
|
if (group && group.children && group.children.length > 0) {
|
|
9502
9591
|
setChildData({ data: group.children, _id: group._id });
|
|
@@ -9510,7 +9599,7 @@ var Filter = function Filter(_ref) {
|
|
|
9510
9599
|
}
|
|
9511
9600
|
if (type === 'child') {
|
|
9512
9601
|
setChildData(function (prevState) {
|
|
9513
|
-
return _extends$
|
|
9602
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : null, _id: group._id });
|
|
9514
9603
|
});
|
|
9515
9604
|
if (group && group.grandchildren && group.grandchildren.length > 0) {
|
|
9516
9605
|
setGrandChildData({ data: group.grandchildren, _id: group._id });
|
|
@@ -9529,7 +9618,7 @@ var Filter = function Filter(_ref) {
|
|
|
9529
9618
|
}
|
|
9530
9619
|
if (type === 'grandchild') {
|
|
9531
9620
|
setGrandChildData(function (prevState) {
|
|
9532
|
-
return _extends$
|
|
9621
|
+
return _extends$1({}, prevState, { name: group.name ? group.name : 'All', _id: group._id });
|
|
9533
9622
|
});
|
|
9534
9623
|
//handle filter
|
|
9535
9624
|
if (!group._id) {
|
|
@@ -9552,7 +9641,7 @@ var Filter = function Filter(_ref) {
|
|
|
9552
9641
|
DropdownButton,
|
|
9553
9642
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn', title: parentData.name ? parentData.name : 'Filter By Category' },
|
|
9554
9643
|
React__default.createElement(
|
|
9555
|
-
Dropdown
|
|
9644
|
+
Dropdown.Item,
|
|
9556
9645
|
{ onSelect: function onSelect() {
|
|
9557
9646
|
return handleFilterSelect({}, 'parent');
|
|
9558
9647
|
} },
|
|
@@ -9561,7 +9650,7 @@ var Filter = function Filter(_ref) {
|
|
|
9561
9650
|
parentData.data.map(function (docGroup) {
|
|
9562
9651
|
if (!docGroup._id) return null;
|
|
9563
9652
|
return React__default.createElement(
|
|
9564
|
-
Dropdown
|
|
9653
|
+
Dropdown.Item,
|
|
9565
9654
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9566
9655
|
return handleFilterSelect(docGroup, 'parent');
|
|
9567
9656
|
} },
|
|
@@ -9573,7 +9662,7 @@ var Filter = function Filter(_ref) {
|
|
|
9573
9662
|
DropdownButton,
|
|
9574
9663
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: childData.name ? childData.name : 'Filter By Topic' },
|
|
9575
9664
|
React__default.createElement(
|
|
9576
|
-
Dropdown
|
|
9665
|
+
Dropdown.Item,
|
|
9577
9666
|
{ onSelect: function onSelect() {
|
|
9578
9667
|
return handleFilterSelect({}, 'child');
|
|
9579
9668
|
} },
|
|
@@ -9582,7 +9671,7 @@ var Filter = function Filter(_ref) {
|
|
|
9582
9671
|
childData.data.map(function (docGroup) {
|
|
9583
9672
|
if (!docGroup._id) return null;
|
|
9584
9673
|
return React__default.createElement(
|
|
9585
|
-
Dropdown
|
|
9674
|
+
Dropdown.Item,
|
|
9586
9675
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9587
9676
|
return handleFilterSelect(docGroup, 'child');
|
|
9588
9677
|
} },
|
|
@@ -9594,7 +9683,7 @@ var Filter = function Filter(_ref) {
|
|
|
9594
9683
|
DropdownButton,
|
|
9595
9684
|
{ drop: 'down', style: { borderRadius: '3px' }, className: 'filter-btn ml-3', title: grandChildData.name ? grandChildData.name : 'Select Sub Topic' },
|
|
9596
9685
|
React__default.createElement(
|
|
9597
|
-
Dropdown
|
|
9686
|
+
Dropdown.Item,
|
|
9598
9687
|
{ onSelect: function onSelect() {
|
|
9599
9688
|
return handleFilterSelect({}, 'grandchild');
|
|
9600
9689
|
} },
|
|
@@ -9603,7 +9692,7 @@ var Filter = function Filter(_ref) {
|
|
|
9603
9692
|
grandChildData.data.map(function (docGroup) {
|
|
9604
9693
|
if (!docGroup._id) return null;
|
|
9605
9694
|
return React__default.createElement(
|
|
9606
|
-
Dropdown
|
|
9695
|
+
Dropdown.Item,
|
|
9607
9696
|
{ key: docGroup._id, onSelect: function onSelect() {
|
|
9608
9697
|
return handleFilterSelect(docGroup, 'grandchild');
|
|
9609
9698
|
} },
|
|
@@ -9659,7 +9748,7 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9659
9748
|
while (1) {
|
|
9660
9749
|
switch (_context.prev = _context.next) {
|
|
9661
9750
|
case 0:
|
|
9662
|
-
newParams = _extends$
|
|
9751
|
+
newParams = _extends$1({}, params, { from: 0, to: 10 });
|
|
9663
9752
|
filterQuery = void 0;
|
|
9664
9753
|
|
|
9665
9754
|
if ((typeof filterTopicID === 'undefined' ? 'undefined' : _typeof(filterTopicID)) == 'object') {
|
|
@@ -9734,7 +9823,6 @@ var MediaSeriesLanding = function MediaSeriesLanding(props) {
|
|
|
9734
9823
|
return React__default.createElement(
|
|
9735
9824
|
'div',
|
|
9736
9825
|
{ className: 'mb-5' },
|
|
9737
|
-
props.docGroup && props.docGroup.description && React__default.createElement(BlockContent, { blocks: props.docGroup.description, serializers: getSerializers(client) }),
|
|
9738
9826
|
props.taxonomyFilter && props.taxonomyFilter && React__default.createElement(
|
|
9739
9827
|
'div',
|
|
9740
9828
|
{ className: '' },
|
|
@@ -9761,12 +9849,12 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9761
9849
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(ctx, client, cache) {
|
|
9762
9850
|
var _ref4;
|
|
9763
9851
|
|
|
9764
|
-
var urlQuery, pathname,
|
|
9852
|
+
var urlQuery, pathname, identifier, itemsPerPage, currentPage, start, statusCode, params, docGroupID, seriesQuery, seriesData, allSeries, buildUsedTopicsArray, usedTopics, taxonomyFilter;
|
|
9765
9853
|
return regenerator.wrap(function _callee2$(_context2) {
|
|
9766
9854
|
while (1) {
|
|
9767
9855
|
switch (_context2.prev = _context2.next) {
|
|
9768
9856
|
case 0:
|
|
9769
|
-
urlQuery = ctx.query, pathname = ctx.pathname,
|
|
9857
|
+
urlQuery = ctx.query, pathname = ctx.pathname, ctx.req;
|
|
9770
9858
|
identifier = pathname.replace('/', '');
|
|
9771
9859
|
itemsPerPage = 10;
|
|
9772
9860
|
currentPage = urlQuery.page ? parseInt(urlQuery.page) : 1;
|
|
@@ -9779,7 +9867,7 @@ MediaSeriesLanding.getInitialData = function () {
|
|
|
9779
9867
|
url: pathname
|
|
9780
9868
|
};
|
|
9781
9869
|
_context2.next = 9;
|
|
9782
|
-
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name
|
|
9870
|
+
return client.fetch('*[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\'][0]{\n _id, \n isGated,\n name\n }');
|
|
9783
9871
|
|
|
9784
9872
|
case 9:
|
|
9785
9873
|
docGroupID = _context2.sent;
|