@mjhls/mjh-framework 1.0.1092 → 1.0.1093
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/{ADInfeed-25f53b70.js → ADInfeed-f7c65126.js} +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/{ADlgInfeed-5d21496c.js → ADlgInfeed-b6e86366.js} +1 -1
- package/dist/cjs/AdSlot.js +9 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +532 -248
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/AuthWrapper.js +266 -642
- package/dist/cjs/CEDeckSupabase.js +2 -6
- package/dist/cjs/CMEDeck.js +2 -6
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +3 -3
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/DeckQueuePaginated.js +2 -2
- package/dist/cjs/EventsDeck.js +3 -3
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/GridContentPaginated.js +4 -4
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +2 -2
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-d65bc9c8.js} +156 -116
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +6 -6
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/MasterDeckPaginated.js +3 -3
- package/dist/cjs/MediaSeriesCard.js +4 -4
- package/dist/cjs/MediaSeriesLanding.js +9 -9
- package/dist/cjs/MediaSeriesLandingPaginated.js +9 -9
- package/dist/cjs/NavMagazine.js +2 -2
- package/dist/cjs/NavNative.js +1 -1
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -8
- package/dist/cjs/PartnerDetailListingPaginated.js +7 -8
- package/dist/cjs/PodcastsLanding.js +7 -7
- package/dist/cjs/PtceDeck.js +1 -1
- package/dist/cjs/PubSection.js +4 -4
- package/dist/cjs/QueueDeckExpanded.js +4 -4
- package/dist/cjs/QueueDeckExpandedPaginated.js +4 -4
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/SeriesListingDeck.js +2 -2
- package/dist/cjs/{SeriesSlider-086a8319.js → SeriesSlider-a8b51591.js} +1 -1
- package/dist/cjs/{SocialSearchComponent-d7e5d3a6.js → SocialSearchComponent-9d272141.js} +1 -1
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/{Tooltip-96fe6ef6.js → Tooltip-66c1a867.js} +159 -85
- package/dist/cjs/Ustream.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +5 -5
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-35faab67.js} +3 -3
- package/dist/cjs/getRelatedArticle.js +33 -15
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{index-b0e9a7b6.js → index-1c8109ca.js} +234 -15
- package/dist/cjs/index-4d21663c.js +1573 -0
- package/dist/cjs/{index-50be6759.js → index-9ec837cc.js} +9 -25
- package/dist/cjs/index.js +11 -13
- package/dist/cjs/{main-ae8472f3.js → main-812888f1.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/{ADInfeed-ca4bb13c.js → ADInfeed-b05502a1.js} +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/{ADlgInfeed-142ddf4d.js → ADlgInfeed-6e892331.js} +1 -1
- package/dist/esm/AdSlot.js +9 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +531 -247
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/AuthWrapper.js +263 -639
- package/dist/esm/CEDeckSupabase.js +2 -6
- package/dist/esm/CMEDeck.js +2 -6
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +3 -3
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/DeckQueuePaginated.js +2 -2
- package/dist/esm/EventsDeck.js +3 -3
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/GridContentPaginated.js +4 -4
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +2 -2
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/{ImageSlider-9250ddc9.js → ImageSlider-801685f8.js} +157 -117
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueLanding.js +6 -6
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/MasterDeckPaginated.js +3 -3
- package/dist/esm/MediaSeriesCard.js +4 -4
- package/dist/esm/MediaSeriesLanding.js +9 -9
- package/dist/esm/MediaSeriesLandingPaginated.js +9 -9
- package/dist/esm/NavMagazine.js +2 -2
- package/dist/esm/NavNative.js +1 -1
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/Pagination-9fe9f61d.js +1 -1
- package/dist/esm/PartnerDetailListing.js +7 -8
- package/dist/esm/PartnerDetailListingPaginated.js +7 -8
- package/dist/esm/PodcastsLanding.js +7 -7
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +4 -4
- package/dist/esm/QueueDeckExpanded.js +4 -4
- package/dist/esm/QueueDeckExpandedPaginated.js +4 -4
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/SeriesListingDeck.js +2 -2
- package/dist/esm/{SeriesSlider-acbdf4c9.js → SeriesSlider-5757414b.js} +1 -1
- package/dist/esm/{SocialSearchComponent-9e65c8d6.js → SocialSearchComponent-98bfc990.js} +1 -1
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-0b3b4558.js} +318 -244
- package/dist/esm/Ustream.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -4
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +4 -4
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +5 -5
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
- package/dist/esm/getRelatedArticle.js +34 -16
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{index-98ca9cec.js → index-0ce54f8a.js} +10 -25
- package/dist/esm/index-887c1f5e.js +1571 -0
- package/dist/esm/{index-cf4b8124.js → index-9b83d509.js} +234 -15
- package/dist/esm/index.js +11 -13
- package/dist/esm/{main-754d4992.js → main-dde1592e.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/index-96c331fd.js +0 -1572
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/index-30a6257d.js +0 -1570
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as _objectWithoutPropertiesLoose,
|
|
2
|
-
import React__default, {
|
|
1
|
+
import { _ as _objectWithoutPropertiesLoose$1, a as _extends$1, c as classnames } from './index-0ce54f8a.js';
|
|
2
|
+
import React__default, { useRef, useState, useCallback, useContext, useMemo, useEffect, useImperativeHandle, useReducer, forwardRef, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -97,7 +97,7 @@ function useUncontrolled(props, config) {
|
|
|
97
97
|
var _ref = result,
|
|
98
98
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
99
99
|
propsValue = _ref[fieldName],
|
|
100
|
-
rest = _objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
100
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
101
101
|
|
|
102
102
|
var handlerName = config[fieldName];
|
|
103
103
|
|
|
@@ -105,14 +105,14 @@ function useUncontrolled(props, config) {
|
|
|
105
105
|
value = _useUncontrolledProp[0],
|
|
106
106
|
handler = _useUncontrolledProp[1];
|
|
107
107
|
|
|
108
|
-
return _extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
108
|
+
return _extends$1({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
109
109
|
}, props);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function _inheritsLoose(subClass, superClass) {
|
|
113
113
|
subClass.prototype = Object.create(superClass.prototype);
|
|
114
114
|
subClass.prototype.constructor = subClass;
|
|
115
|
-
|
|
115
|
+
subClass.__proto__ = superClass;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
var ThemeContext = React__default.createContext({});
|
|
@@ -156,7 +156,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
156
156
|
children = _ref.children,
|
|
157
157
|
eventKey = _ref.eventKey,
|
|
158
158
|
onClick = _ref.onClick,
|
|
159
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
159
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
160
160
|
|
|
161
161
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
162
162
|
|
|
@@ -164,7 +164,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
164
164
|
props.type = 'button';
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
167
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
168
168
|
ref: ref,
|
|
169
169
|
onClick: accordionOnClick
|
|
170
170
|
}, props), children);
|
|
@@ -412,6 +412,10 @@ process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, P
|
|
|
412
412
|
|
|
413
413
|
var TransitionGroupContext = React__default.createContext(null);
|
|
414
414
|
|
|
415
|
+
var forceReflow = function forceReflow(node) {
|
|
416
|
+
return node.scrollTop;
|
|
417
|
+
};
|
|
418
|
+
|
|
415
419
|
var UNMOUNTED = 'unmounted';
|
|
416
420
|
var EXITED = 'exited';
|
|
417
421
|
var ENTERING = 'entering';
|
|
@@ -631,6 +635,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
631
635
|
this.cancelNextCallback();
|
|
632
636
|
|
|
633
637
|
if (nextStatus === ENTERING) {
|
|
638
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
639
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
|
|
640
|
+
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
641
|
+
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
642
|
+
|
|
643
|
+
if (node) forceReflow(node);
|
|
644
|
+
}
|
|
645
|
+
|
|
634
646
|
this.performEnter(mounting);
|
|
635
647
|
} else {
|
|
636
648
|
this.performExit();
|
|
@@ -795,7 +807,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
795
807
|
_this$props.onExiting;
|
|
796
808
|
_this$props.onExited;
|
|
797
809
|
_this$props.nodeRef;
|
|
798
|
-
var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
810
|
+
var childProps = _objectWithoutPropertiesLoose$1(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
799
811
|
|
|
800
812
|
return (
|
|
801
813
|
/*#__PURE__*/
|
|
@@ -1098,7 +1110,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1098
1110
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1099
1111
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1100
1112
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1101
|
-
props = _objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1113
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1102
1114
|
|
|
1103
1115
|
/* Compute dimension */
|
|
1104
1116
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1134,7 +1146,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1134
1146
|
}, onExiting);
|
|
1135
1147
|
}, [computedDimension, onExiting]);
|
|
1136
1148
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1137
|
-
, _extends({
|
|
1149
|
+
, _extends$1({
|
|
1138
1150
|
ref: ref,
|
|
1139
1151
|
addEndListener: transitionEnd
|
|
1140
1152
|
}, props, {
|
|
@@ -1145,7 +1157,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1145
1157
|
onExit: handleExit,
|
|
1146
1158
|
onExiting: handleExiting
|
|
1147
1159
|
}), function (state, innerProps) {
|
|
1148
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1160
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1149
1161
|
className: classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1150
1162
|
}));
|
|
1151
1163
|
});
|
|
@@ -1157,14 +1169,14 @@ Collapse.defaultProps = defaultProps$E;
|
|
|
1157
1169
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1158
1170
|
var children = _ref.children,
|
|
1159
1171
|
eventKey = _ref.eventKey,
|
|
1160
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1172
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "eventKey"]);
|
|
1161
1173
|
|
|
1162
1174
|
var contextEventKey = useContext(context$2); // Empty SelectableContext is to prevent elements in the collapse
|
|
1163
1175
|
// from collapsing the accordion when clicked.
|
|
1164
1176
|
|
|
1165
1177
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1166
1178
|
value: null
|
|
1167
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
1179
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
1168
1180
|
ref: ref,
|
|
1169
1181
|
in: contextEventKey === eventKey
|
|
1170
1182
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1182,14 +1194,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1182
1194
|
children = _useUncontrolled.children,
|
|
1183
1195
|
className = _useUncontrolled.className,
|
|
1184
1196
|
onSelect = _useUncontrolled.onSelect,
|
|
1185
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1197
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1186
1198
|
|
|
1187
1199
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1188
1200
|
return /*#__PURE__*/React__default.createElement(context$2.Provider, {
|
|
1189
1201
|
value: activeKey || null
|
|
1190
1202
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1191
1203
|
value: onSelect || null
|
|
1192
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1204
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1193
1205
|
ref: ref
|
|
1194
1206
|
}, controlledProps, {
|
|
1195
1207
|
className: finalClassName
|
|
@@ -1236,19 +1248,19 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1236
1248
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1237
1249
|
var className = _ref.className,
|
|
1238
1250
|
children = _ref.children,
|
|
1239
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1251
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className", "children"]);
|
|
1240
1252
|
|
|
1241
1253
|
var handleEnter = useCallback(function (node) {
|
|
1242
1254
|
triggerBrowserReflow(node);
|
|
1243
1255
|
if (props.onEnter) props.onEnter(node);
|
|
1244
1256
|
}, [props]);
|
|
1245
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1257
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1246
1258
|
ref: ref,
|
|
1247
1259
|
addEndListener: transitionEnd
|
|
1248
1260
|
}, props, {
|
|
1249
1261
|
onEnter: handleEnter
|
|
1250
1262
|
}), function (status, innerProps) {
|
|
1251
|
-
return React__default.cloneElement(children, _extends({}, innerProps, {
|
|
1263
|
+
return React__default.cloneElement(children, _extends$1({}, innerProps, {
|
|
1252
1264
|
className: classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1253
1265
|
}));
|
|
1254
1266
|
});
|
|
@@ -1267,9 +1279,9 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1267
1279
|
var label = _ref.label,
|
|
1268
1280
|
onClick = _ref.onClick,
|
|
1269
1281
|
className = _ref.className,
|
|
1270
|
-
props = _objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1282
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["label", "onClick", "className"]);
|
|
1271
1283
|
|
|
1272
|
-
return /*#__PURE__*/React__default.createElement("button", _extends({
|
|
1284
|
+
return /*#__PURE__*/React__default.createElement("button", _extends$1({
|
|
1273
1285
|
ref: ref,
|
|
1274
1286
|
type: "button",
|
|
1275
1287
|
className: classnames('close', className),
|
|
@@ -1286,7 +1298,7 @@ CloseButton.defaultProps = defaultProps$C;
|
|
|
1286
1298
|
|
|
1287
1299
|
var divWithClassName = (function (className) {
|
|
1288
1300
|
return React__default.forwardRef(function (p, ref) {
|
|
1289
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, p, {
|
|
1301
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, p, {
|
|
1290
1302
|
ref: ref,
|
|
1291
1303
|
className: classnames(p.className, className)
|
|
1292
1304
|
}));
|
|
@@ -1317,10 +1329,10 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1317
1329
|
bsPrefix = _ref2.bsPrefix,
|
|
1318
1330
|
_ref2$as = _ref2.as,
|
|
1319
1331
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1320
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1332
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["className", "bsPrefix", "as"]);
|
|
1321
1333
|
|
|
1322
1334
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1323
|
-
return /*#__PURE__*/React__default.createElement(Tag, _extends({
|
|
1335
|
+
return /*#__PURE__*/React__default.createElement(Tag, _extends$1({
|
|
1324
1336
|
ref: ref,
|
|
1325
1337
|
className: classnames(className, resolvedPrefix)
|
|
1326
1338
|
}, props));
|
|
@@ -1347,7 +1359,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1347
1359
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1348
1360
|
disabled = _ref.disabled,
|
|
1349
1361
|
onKeyDown = _ref.onKeyDown,
|
|
1350
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1362
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1351
1363
|
|
|
1352
1364
|
var handleClick = function handleClick(event) {
|
|
1353
1365
|
var href = props.href,
|
|
@@ -1386,7 +1398,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1386
1398
|
props['aria-disabled'] = true;
|
|
1387
1399
|
}
|
|
1388
1400
|
|
|
1389
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1401
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1390
1402
|
ref: ref
|
|
1391
1403
|
}, props, {
|
|
1392
1404
|
onClick: handleClick,
|
|
@@ -1421,7 +1433,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1421
1433
|
onClose = _useUncontrolled.onClose,
|
|
1422
1434
|
dismissible = _useUncontrolled.dismissible,
|
|
1423
1435
|
transition = _useUncontrolled.transition,
|
|
1424
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1436
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1425
1437
|
|
|
1426
1438
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1427
1439
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1430,7 +1442,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1430
1442
|
}
|
|
1431
1443
|
});
|
|
1432
1444
|
var Transition = transition === true ? Fade : transition;
|
|
1433
|
-
var alert = /*#__PURE__*/React__default.createElement("div", _extends({
|
|
1445
|
+
var alert = /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1434
1446
|
role: "alert"
|
|
1435
1447
|
}, Transition ? props : undefined, {
|
|
1436
1448
|
ref: ref,
|
|
@@ -1440,7 +1452,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1440
1452
|
label: closeLabel
|
|
1441
1453
|
}), children);
|
|
1442
1454
|
if (!Transition) return show ? alert : null;
|
|
1443
|
-
return /*#__PURE__*/React__default.createElement(Transition, _extends({
|
|
1455
|
+
return /*#__PURE__*/React__default.createElement(Transition, _extends$1({
|
|
1444
1456
|
unmountOnExit: true
|
|
1445
1457
|
}, props, {
|
|
1446
1458
|
ref: undefined,
|
|
@@ -1462,10 +1474,10 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1462
1474
|
className = _ref.className,
|
|
1463
1475
|
_ref$as = _ref.as,
|
|
1464
1476
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1465
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1477
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1466
1478
|
|
|
1467
1479
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1468
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1480
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1469
1481
|
ref: ref
|
|
1470
1482
|
}, props, {
|
|
1471
1483
|
className: classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
@@ -1491,17 +1503,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1491
1503
|
href = _ref.href,
|
|
1492
1504
|
title = _ref.title,
|
|
1493
1505
|
target = _ref.target,
|
|
1494
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1506
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1495
1507
|
|
|
1496
1508
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1497
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1509
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1498
1510
|
ref: ref
|
|
1499
1511
|
}, props, {
|
|
1500
1512
|
className: classnames(prefix, className, {
|
|
1501
1513
|
active: active
|
|
1502
1514
|
}),
|
|
1503
1515
|
"aria-current": active ? 'page' : undefined
|
|
1504
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends({}, linkProps, {
|
|
1516
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, _extends$1({}, linkProps, {
|
|
1505
1517
|
href: href,
|
|
1506
1518
|
title: title,
|
|
1507
1519
|
target: target
|
|
@@ -1522,14 +1534,14 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1522
1534
|
label = _ref.label,
|
|
1523
1535
|
_ref$as = _ref.as,
|
|
1524
1536
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1525
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1537
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1526
1538
|
|
|
1527
1539
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1528
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1540
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1529
1541
|
"aria-label": label,
|
|
1530
1542
|
className: className,
|
|
1531
1543
|
ref: ref
|
|
1532
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", _extends({}, listProps, {
|
|
1544
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", _extends$1({}, listProps, {
|
|
1533
1545
|
className: classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1534
1546
|
}), children));
|
|
1535
1547
|
});
|
|
@@ -1551,13 +1563,13 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1551
1563
|
block = _ref.block,
|
|
1552
1564
|
type = _ref.type,
|
|
1553
1565
|
as = _ref.as,
|
|
1554
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1566
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1555
1567
|
|
|
1556
1568
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1557
1569
|
var classes = classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1558
1570
|
|
|
1559
1571
|
if (props.href) {
|
|
1560
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends({}, props, {
|
|
1572
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, _extends$1({}, props, {
|
|
1561
1573
|
as: as,
|
|
1562
1574
|
ref: ref,
|
|
1563
1575
|
className: classnames(classes, props.disabled && 'disabled')
|
|
@@ -1575,7 +1587,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1575
1587
|
}
|
|
1576
1588
|
|
|
1577
1589
|
var Component = as || 'button';
|
|
1578
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
1590
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
1579
1591
|
className: classes
|
|
1580
1592
|
}));
|
|
1581
1593
|
});
|
|
@@ -1595,12 +1607,12 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1595
1607
|
className = _ref.className,
|
|
1596
1608
|
_ref$as = _ref.as,
|
|
1597
1609
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1598
|
-
rest = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1610
|
+
rest = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1599
1611
|
|
|
1600
1612
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1601
1613
|
var baseClass = prefix;
|
|
1602
1614
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1603
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
1615
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
1604
1616
|
ref: ref,
|
|
1605
1617
|
className: classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1606
1618
|
}));
|
|
@@ -1614,10 +1626,10 @@ var defaultProps$v = {
|
|
|
1614
1626
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1615
1627
|
var bsPrefix = _ref.bsPrefix,
|
|
1616
1628
|
className = _ref.className,
|
|
1617
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1629
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className"]);
|
|
1618
1630
|
|
|
1619
1631
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1620
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
1632
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
1621
1633
|
ref: ref,
|
|
1622
1634
|
className: classnames(className, prefix)
|
|
1623
1635
|
}));
|
|
@@ -1638,10 +1650,10 @@ function (_ref, ref) {
|
|
|
1638
1650
|
variant = _ref.variant,
|
|
1639
1651
|
_ref$as = _ref.as,
|
|
1640
1652
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1641
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1653
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1642
1654
|
|
|
1643
1655
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1644
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1656
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1645
1657
|
ref: ref,
|
|
1646
1658
|
className: classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1647
1659
|
}, props));
|
|
@@ -1680,7 +1692,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1680
1692
|
children = _ref.children,
|
|
1681
1693
|
_ref$as = _ref.as,
|
|
1682
1694
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1683
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1695
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1684
1696
|
|
|
1685
1697
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1686
1698
|
var cardContext = useMemo(function () {
|
|
@@ -1690,7 +1702,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1690
1702
|
}, [prefix]);
|
|
1691
1703
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1692
1704
|
value: cardContext
|
|
1693
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1705
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1694
1706
|
ref: ref
|
|
1695
1707
|
}, props, {
|
|
1696
1708
|
className: classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
@@ -1893,10 +1905,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1893
1905
|
bsPrefix = _ref.bsPrefix,
|
|
1894
1906
|
children = _ref.children,
|
|
1895
1907
|
className = _ref.className,
|
|
1896
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1908
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1897
1909
|
|
|
1898
1910
|
var finalClassName = classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1899
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
1911
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
1900
1912
|
ref: ref
|
|
1901
1913
|
}, props, {
|
|
1902
1914
|
className: finalClassName
|
|
@@ -2101,7 +2113,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2101
2113
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2102
2114
|
className = _useUncontrolled.className,
|
|
2103
2115
|
children = _useUncontrolled.children,
|
|
2104
|
-
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"]);
|
|
2116
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "slide", "fade", "controls", "indicators", "activeIndex", "onSelect", "onSlide", "onSlid", "interval", "keyboard", "onKeyDown", "pause", "onMouseOver", "onMouseOut", "wrap", "touch", "onTouchStart", "onTouchMove", "onTouchEnd", "prevIcon", "prevLabel", "nextIcon", "nextLabel", "className", "children"]);
|
|
2105
2117
|
|
|
2106
2118
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2107
2119
|
var nextDirectionRef = useRef(null);
|
|
@@ -2358,7 +2370,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2358
2370
|
};
|
|
2359
2371
|
});
|
|
2360
2372
|
}, [indicators, numChildren, onSelect]);
|
|
2361
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
2373
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
2362
2374
|
ref: elementRef
|
|
2363
2375
|
}, props, {
|
|
2364
2376
|
onKeyDown: handleKeyDown,
|
|
@@ -2419,7 +2431,7 @@ function (_ref, ref) {
|
|
|
2419
2431
|
className = _ref.className,
|
|
2420
2432
|
_ref$as = _ref.as,
|
|
2421
2433
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2422
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2434
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
2423
2435
|
|
|
2424
2436
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2425
2437
|
var spans = [];
|
|
@@ -2450,7 +2462,7 @@ function (_ref, ref) {
|
|
|
2450
2462
|
spans.push(prefix); // plain 'col'
|
|
2451
2463
|
}
|
|
2452
2464
|
|
|
2453
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
2465
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
2454
2466
|
ref: ref,
|
|
2455
2467
|
className: classnames.apply(void 0, [className].concat(spans, classes))
|
|
2456
2468
|
}));
|
|
@@ -2575,6 +2587,34 @@ function useForceUpdate() {
|
|
|
2575
2587
|
|
|
2576
2588
|
var DropdownContext = /*#__PURE__*/React__default.createContext(null);
|
|
2577
2589
|
|
|
2590
|
+
function _extends() {
|
|
2591
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
2592
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2593
|
+
var source = arguments[i];
|
|
2594
|
+
for (var key in source) {
|
|
2595
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
2596
|
+
target[key] = source[key];
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
return target;
|
|
2601
|
+
};
|
|
2602
|
+
return _extends.apply(this, arguments);
|
|
2603
|
+
}
|
|
2604
|
+
|
|
2605
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
2606
|
+
if (source == null) return {};
|
|
2607
|
+
var target = {};
|
|
2608
|
+
var sourceKeys = Object.keys(source);
|
|
2609
|
+
var key, i;
|
|
2610
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
2611
|
+
key = sourceKeys[i];
|
|
2612
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
2613
|
+
target[key] = source[key];
|
|
2614
|
+
}
|
|
2615
|
+
return target;
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2578
2618
|
function useSafeState(state) {
|
|
2579
2619
|
var isMounted = useMounted();
|
|
2580
2620
|
return [state[0], useCallback(function (nextState) {
|
|
@@ -2656,38 +2696,57 @@ var max = Math.max;
|
|
|
2656
2696
|
var min = Math.min;
|
|
2657
2697
|
var round = Math.round;
|
|
2658
2698
|
|
|
2659
|
-
function
|
|
2699
|
+
function getUAString() {
|
|
2700
|
+
var uaData = navigator.userAgentData;
|
|
2701
|
+
|
|
2702
|
+
if (uaData != null && uaData.brands) {
|
|
2703
|
+
return uaData.brands.map(function (item) {
|
|
2704
|
+
return item.brand + "/" + item.version;
|
|
2705
|
+
}).join(' ');
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
return navigator.userAgent;
|
|
2709
|
+
}
|
|
2710
|
+
|
|
2711
|
+
function isLayoutViewport() {
|
|
2712
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
2713
|
+
}
|
|
2714
|
+
|
|
2715
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
2660
2716
|
if (includeScale === void 0) {
|
|
2661
2717
|
includeScale = false;
|
|
2662
2718
|
}
|
|
2663
2719
|
|
|
2664
|
-
|
|
2720
|
+
if (isFixedStrategy === void 0) {
|
|
2721
|
+
isFixedStrategy = false;
|
|
2722
|
+
}
|
|
2723
|
+
|
|
2724
|
+
var clientRect = element.getBoundingClientRect();
|
|
2665
2725
|
var scaleX = 1;
|
|
2666
2726
|
var scaleY = 1;
|
|
2667
2727
|
|
|
2668
|
-
if (isHTMLElement(element)
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
// Fallback to 1 in case both values are `0`
|
|
2672
|
-
|
|
2673
|
-
if (offsetWidth > 0) {
|
|
2674
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
if (offsetHeight > 0) {
|
|
2678
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
2679
|
-
}
|
|
2728
|
+
if (includeScale && isHTMLElement(element)) {
|
|
2729
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
2730
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
2680
2731
|
}
|
|
2681
2732
|
|
|
2733
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
2734
|
+
visualViewport = _ref.visualViewport;
|
|
2735
|
+
|
|
2736
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
2737
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
2738
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
2739
|
+
var width = clientRect.width / scaleX;
|
|
2740
|
+
var height = clientRect.height / scaleY;
|
|
2682
2741
|
return {
|
|
2683
|
-
width:
|
|
2684
|
-
height:
|
|
2685
|
-
top:
|
|
2686
|
-
right:
|
|
2687
|
-
bottom:
|
|
2688
|
-
left:
|
|
2689
|
-
x:
|
|
2690
|
-
y:
|
|
2742
|
+
width: width,
|
|
2743
|
+
height: height,
|
|
2744
|
+
top: y,
|
|
2745
|
+
right: x + width,
|
|
2746
|
+
bottom: y + height,
|
|
2747
|
+
left: x,
|
|
2748
|
+
x: x,
|
|
2749
|
+
y: y
|
|
2691
2750
|
};
|
|
2692
2751
|
}
|
|
2693
2752
|
|
|
@@ -2786,8 +2845,8 @@ function getTrueOffsetParent(element) {
|
|
|
2786
2845
|
|
|
2787
2846
|
|
|
2788
2847
|
function getContainingBlock(element) {
|
|
2789
|
-
var isFirefox =
|
|
2790
|
-
var isIE =
|
|
2848
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
2849
|
+
var isIE = /Trident/i.test(getUAString());
|
|
2791
2850
|
|
|
2792
2851
|
if (isIE && isHTMLElement(element)) {
|
|
2793
2852
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
@@ -2800,6 +2859,10 @@ function getContainingBlock(element) {
|
|
|
2800
2859
|
|
|
2801
2860
|
var currentNode = getParentNode(element);
|
|
2802
2861
|
|
|
2862
|
+
if (isShadowRoot(currentNode)) {
|
|
2863
|
+
currentNode = currentNode.host;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2803
2866
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2804
2867
|
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2805
2868
|
// create a containing block.
|
|
@@ -2992,13 +3055,21 @@ function mapToStyles(_ref2) {
|
|
|
2992
3055
|
adaptive = _ref2.adaptive,
|
|
2993
3056
|
roundOffsets = _ref2.roundOffsets,
|
|
2994
3057
|
isFixed = _ref2.isFixed;
|
|
3058
|
+
var _offsets$x = offsets.x,
|
|
3059
|
+
x = _offsets$x === void 0 ? 0 : _offsets$x,
|
|
3060
|
+
_offsets$y = offsets.y,
|
|
3061
|
+
y = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
2995
3062
|
|
|
2996
|
-
var _ref3 =
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3063
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
3064
|
+
x: x,
|
|
3065
|
+
y: y
|
|
3066
|
+
}) : {
|
|
3067
|
+
x: x,
|
|
3068
|
+
y: y
|
|
3069
|
+
};
|
|
3001
3070
|
|
|
3071
|
+
x = _ref3.x;
|
|
3072
|
+
y = _ref3.y;
|
|
3002
3073
|
var hasX = offsets.hasOwnProperty('x');
|
|
3003
3074
|
var hasY = offsets.hasOwnProperty('y');
|
|
3004
3075
|
var sideX = left;
|
|
@@ -3024,7 +3095,7 @@ function mapToStyles(_ref2) {
|
|
|
3024
3095
|
|
|
3025
3096
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
3026
3097
|
sideY = bottom;
|
|
3027
|
-
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
3098
|
+
var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
3028
3099
|
offsetParent[heightProp];
|
|
3029
3100
|
y -= offsetY - popperRect.height;
|
|
3030
3101
|
y *= gpuAcceleration ? 1 : -1;
|
|
@@ -3032,7 +3103,7 @@ function mapToStyles(_ref2) {
|
|
|
3032
3103
|
|
|
3033
3104
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
3034
3105
|
sideX = right;
|
|
3035
|
-
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
3106
|
+
var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
3036
3107
|
offsetParent[widthProp];
|
|
3037
3108
|
x -= offsetX - popperRect.width;
|
|
3038
3109
|
x *= gpuAcceleration ? 1 : -1;
|
|
@@ -3043,6 +3114,17 @@ function mapToStyles(_ref2) {
|
|
|
3043
3114
|
position: position
|
|
3044
3115
|
}, adaptive && unsetSides);
|
|
3045
3116
|
|
|
3117
|
+
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
3118
|
+
x: x,
|
|
3119
|
+
y: y
|
|
3120
|
+
}) : {
|
|
3121
|
+
x: x,
|
|
3122
|
+
y: y
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
x = _ref4.x;
|
|
3126
|
+
y = _ref4.y;
|
|
3127
|
+
|
|
3046
3128
|
if (gpuAcceleration) {
|
|
3047
3129
|
var _Object$assign;
|
|
3048
3130
|
|
|
@@ -3052,9 +3134,9 @@ function mapToStyles(_ref2) {
|
|
|
3052
3134
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3053
3135
|
}
|
|
3054
3136
|
|
|
3055
|
-
function computeStyles(
|
|
3056
|
-
var state =
|
|
3057
|
-
options =
|
|
3137
|
+
function computeStyles(_ref5) {
|
|
3138
|
+
var state = _ref5.state,
|
|
3139
|
+
options = _ref5.options;
|
|
3058
3140
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3059
3141
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3060
3142
|
_options$adaptive = options.adaptive,
|
|
@@ -3204,31 +3286,21 @@ function getWindowScrollBarX(element) {
|
|
|
3204
3286
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
3205
3287
|
}
|
|
3206
3288
|
|
|
3207
|
-
function getViewportRect(element) {
|
|
3289
|
+
function getViewportRect(element, strategy) {
|
|
3208
3290
|
var win = getWindow(element);
|
|
3209
3291
|
var html = getDocumentElement(element);
|
|
3210
3292
|
var visualViewport = win.visualViewport;
|
|
3211
3293
|
var width = html.clientWidth;
|
|
3212
3294
|
var height = html.clientHeight;
|
|
3213
3295
|
var x = 0;
|
|
3214
|
-
var y = 0;
|
|
3215
|
-
// can be obscured underneath it.
|
|
3216
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
3217
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
3218
|
-
// to overflow the bottom of the screen too early.
|
|
3296
|
+
var y = 0;
|
|
3219
3297
|
|
|
3220
3298
|
if (visualViewport) {
|
|
3221
3299
|
width = visualViewport.width;
|
|
3222
|
-
height = visualViewport.height;
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
3227
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
3228
|
-
// 0.001
|
|
3229
|
-
// Fallback here: "Not Safari" userAgent
|
|
3230
|
-
|
|
3231
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
3300
|
+
height = visualViewport.height;
|
|
3301
|
+
var layoutViewport = isLayoutViewport();
|
|
3302
|
+
|
|
3303
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
3232
3304
|
x = visualViewport.offsetLeft;
|
|
3233
3305
|
y = visualViewport.offsetTop;
|
|
3234
3306
|
}
|
|
@@ -3322,8 +3394,8 @@ function rectToClientRect(rect) {
|
|
|
3322
3394
|
});
|
|
3323
3395
|
}
|
|
3324
3396
|
|
|
3325
|
-
function getInnerBoundingClientRect(element) {
|
|
3326
|
-
var rect = getBoundingClientRect(element);
|
|
3397
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
3398
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
3327
3399
|
rect.top = rect.top + element.clientTop;
|
|
3328
3400
|
rect.left = rect.left + element.clientLeft;
|
|
3329
3401
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -3335,8 +3407,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
3335
3407
|
return rect;
|
|
3336
3408
|
}
|
|
3337
3409
|
|
|
3338
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
3339
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3410
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
3411
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3340
3412
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
3341
3413
|
// clipping (or hiding) overflowing elements with a position different from
|
|
3342
3414
|
// `initial`
|
|
@@ -3353,24 +3425,24 @@ function getClippingParents(element) {
|
|
|
3353
3425
|
|
|
3354
3426
|
|
|
3355
3427
|
return clippingParents.filter(function (clippingParent) {
|
|
3356
|
-
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body'
|
|
3428
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3357
3429
|
});
|
|
3358
3430
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3359
3431
|
// clipping parents
|
|
3360
3432
|
|
|
3361
3433
|
|
|
3362
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
3434
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
3363
3435
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
3364
3436
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
3365
3437
|
var firstClippingParent = clippingParents[0];
|
|
3366
3438
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3367
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3439
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
3368
3440
|
accRect.top = max(rect.top, accRect.top);
|
|
3369
3441
|
accRect.right = min(rect.right, accRect.right);
|
|
3370
3442
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3371
3443
|
accRect.left = max(rect.left, accRect.left);
|
|
3372
3444
|
return accRect;
|
|
3373
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3445
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
3374
3446
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
3375
3447
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
3376
3448
|
clippingRect.x = clippingRect.left;
|
|
@@ -3451,6 +3523,8 @@ function detectOverflow(state, options) {
|
|
|
3451
3523
|
var _options = options,
|
|
3452
3524
|
_options$placement = _options.placement,
|
|
3453
3525
|
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
3526
|
+
_options$strategy = _options.strategy,
|
|
3527
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
3454
3528
|
_options$boundary = _options.boundary,
|
|
3455
3529
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
3456
3530
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -3465,7 +3539,7 @@ function detectOverflow(state, options) {
|
|
|
3465
3539
|
var altContext = elementContext === popper ? reference : popper;
|
|
3466
3540
|
var popperRect = state.rects.popper;
|
|
3467
3541
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3468
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
3542
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
3469
3543
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
3470
3544
|
var popperOffsets = computeOffsets({
|
|
3471
3545
|
reference: referenceClientRect,
|
|
@@ -3983,7 +4057,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3983
4057
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3984
4058
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3985
4059
|
var documentElement = getDocumentElement(offsetParent);
|
|
3986
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
4060
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
3987
4061
|
var scroll = {
|
|
3988
4062
|
scrollLeft: 0,
|
|
3989
4063
|
scrollTop: 0
|
|
@@ -5353,7 +5427,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5353
5427
|
onSelect = _ref.onSelect,
|
|
5354
5428
|
propActive = _ref.active,
|
|
5355
5429
|
Component = _ref.as,
|
|
5356
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5430
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5357
5431
|
|
|
5358
5432
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5359
5433
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5377,7 +5451,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5377
5451
|
/*#__PURE__*/
|
|
5378
5452
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5379
5453
|
// @ts-ignore
|
|
5380
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5454
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5381
5455
|
ref: ref,
|
|
5382
5456
|
href: href,
|
|
5383
5457
|
disabled: disabled,
|
|
@@ -5572,7 +5646,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5572
5646
|
_ref$as = _ref.as,
|
|
5573
5647
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5574
5648
|
popperConfig = _ref.popperConfig,
|
|
5575
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5649
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5576
5650
|
|
|
5577
5651
|
var isNavbar = useContext(context);
|
|
5578
5652
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5608,7 +5682,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5608
5682
|
show: showProps,
|
|
5609
5683
|
alignEnd: alignRight,
|
|
5610
5684
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5611
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5685
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5612
5686
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5613
5687
|
})
|
|
5614
5688
|
}),
|
|
@@ -5631,11 +5705,11 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5631
5705
|
if (placement) {
|
|
5632
5706
|
// we don't need the default popper style,
|
|
5633
5707
|
// menus are display: none when not shown.
|
|
5634
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5708
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5635
5709
|
props['x-placement'] = placement;
|
|
5636
5710
|
}
|
|
5637
5711
|
|
|
5638
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5712
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5639
5713
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5640
5714
|
}));
|
|
5641
5715
|
});
|
|
@@ -5676,7 +5750,7 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5676
5750
|
childBsPrefix = _ref.childBsPrefix,
|
|
5677
5751
|
_ref$as = _ref.as,
|
|
5678
5752
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5679
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5753
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5680
5754
|
|
|
5681
5755
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5682
5756
|
|
|
@@ -5691,7 +5765,7 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5691
5765
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5692
5766
|
// underlying component, to allow it to render size and style variants.
|
|
5693
5767
|
|
|
5694
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5768
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5695
5769
|
onClick: toggle,
|
|
5696
5770
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5697
5771
|
}, toggleProps, props));
|
|
@@ -5729,7 +5803,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5729
5803
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5730
5804
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5731
5805
|
_useUncontrolled.navbar;
|
|
5732
|
-
var props = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5806
|
+
var props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5733
5807
|
|
|
5734
5808
|
var onSelectCtx = useContext(SelectableContext);
|
|
5735
5809
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5762,7 +5836,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5762
5836
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5763
5837
|
}, function (_ref) {
|
|
5764
5838
|
var dropdownProps = _ref.props;
|
|
5765
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5839
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5766
5840
|
ref: ref,
|
|
5767
5841
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5768
5842
|
}));
|
|
@@ -5850,9 +5924,9 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5850
5924
|
disabled = _ref.disabled,
|
|
5851
5925
|
href = _ref.href,
|
|
5852
5926
|
id = _ref.id,
|
|
5853
|
-
props = _objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5927
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5854
5928
|
|
|
5855
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5929
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
5856
5930
|
ref: ref
|
|
5857
5931
|
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5858
5932
|
id: id,
|
|
@@ -5985,9 +6059,9 @@ function (_ref, ref) {
|
|
|
5985
6059
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5986
6060
|
_ref$tooltip = _ref.tooltip,
|
|
5987
6061
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5988
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
6062
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
5989
6063
|
|
|
5990
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6064
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
5991
6065
|
ref: ref,
|
|
5992
6066
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5993
6067
|
}));
|
|
@@ -6013,7 +6087,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6013
6087
|
isStatic = _ref.isStatic,
|
|
6014
6088
|
_ref$as = _ref.as,
|
|
6015
6089
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6016
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
6090
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
6017
6091
|
|
|
6018
6092
|
var _useContext = useContext(FormContext),
|
|
6019
6093
|
controlId = _useContext.controlId,
|
|
@@ -6024,7 +6098,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6024
6098
|
defaultPrefix = _ref2[1];
|
|
6025
6099
|
|
|
6026
6100
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6027
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6101
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6028
6102
|
ref: ref,
|
|
6029
6103
|
type: type,
|
|
6030
6104
|
id: id || controlId,
|
|
@@ -6038,7 +6112,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6038
6112
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6039
6113
|
className = _ref.className,
|
|
6040
6114
|
htmlFor = _ref.htmlFor,
|
|
6041
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6115
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6042
6116
|
|
|
6043
6117
|
var _useContext = useContext(FormContext),
|
|
6044
6118
|
controlId = _useContext.controlId,
|
|
@@ -6049,7 +6123,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6049
6123
|
defaultPrefix = _ref2[1];
|
|
6050
6124
|
|
|
6051
6125
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6052
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6126
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6053
6127
|
ref: ref,
|
|
6054
6128
|
htmlFor: htmlFor || controlId,
|
|
6055
6129
|
className: classnames(className, bsPrefix)
|
|
@@ -6083,7 +6157,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6083
6157
|
propCustom = _ref.custom,
|
|
6084
6158
|
_ref$as = _ref.as,
|
|
6085
6159
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6086
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6160
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6087
6161
|
|
|
6088
6162
|
var custom = type === 'switch' ? true : propCustom;
|
|
6089
6163
|
|
|
@@ -6103,7 +6177,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6103
6177
|
};
|
|
6104
6178
|
}, [controlId, custom, id]);
|
|
6105
6179
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6106
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6180
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6107
6181
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6108
6182
|
ref: ref,
|
|
6109
6183
|
isValid: isValid,
|
|
@@ -6138,7 +6212,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6138
6212
|
lang = _ref.lang,
|
|
6139
6213
|
_ref$as = _ref.as,
|
|
6140
6214
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6141
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6215
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6142
6216
|
|
|
6143
6217
|
var _useContext = useContext(FormContext),
|
|
6144
6218
|
controlId = _useContext.controlId,
|
|
@@ -6151,7 +6225,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6151
6225
|
defaultPrefix = _ref2[1];
|
|
6152
6226
|
|
|
6153
6227
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6154
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6228
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6155
6229
|
ref: ref,
|
|
6156
6230
|
id: id || controlId,
|
|
6157
6231
|
type: type,
|
|
@@ -6166,7 +6240,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6166
6240
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6167
6241
|
className = _ref.className,
|
|
6168
6242
|
htmlFor = _ref.htmlFor,
|
|
6169
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6243
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6170
6244
|
|
|
6171
6245
|
var _useContext = useContext(FormContext),
|
|
6172
6246
|
controlId = _useContext.controlId,
|
|
@@ -6177,7 +6251,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6177
6251
|
defaultPrefix = _ref2[1];
|
|
6178
6252
|
|
|
6179
6253
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6180
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6254
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6181
6255
|
ref: ref,
|
|
6182
6256
|
htmlFor: htmlFor || controlId,
|
|
6183
6257
|
className: classnames(className, bsPrefix),
|
|
@@ -6210,7 +6284,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6210
6284
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6211
6285
|
_ref$inputAs = _ref.inputAs,
|
|
6212
6286
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6213
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6287
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6214
6288
|
|
|
6215
6289
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6216
6290
|
prefix = _ref2[0],
|
|
@@ -6229,7 +6303,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6229
6303
|
};
|
|
6230
6304
|
}, [controlId, custom, id]);
|
|
6231
6305
|
var hasLabel = label != null && label !== false && !children;
|
|
6232
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6306
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6233
6307
|
ref: ref,
|
|
6234
6308
|
isValid: isValid,
|
|
6235
6309
|
isInvalid: isInvalid,
|
|
@@ -6270,7 +6344,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6270
6344
|
custom = _ref.custom,
|
|
6271
6345
|
_ref$as = _ref.as,
|
|
6272
6346
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6273
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6347
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6274
6348
|
|
|
6275
6349
|
var _useContext = useContext(FormContext),
|
|
6276
6350
|
controlId = _useContext.controlId;
|
|
@@ -6305,7 +6379,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6305
6379
|
}
|
|
6306
6380
|
|
|
6307
6381
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6308
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6382
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6309
6383
|
type: type,
|
|
6310
6384
|
size: htmlSize,
|
|
6311
6385
|
ref: ref,
|
|
@@ -6326,7 +6400,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6326
6400
|
controlId = _ref.controlId,
|
|
6327
6401
|
_ref$as = _ref.as,
|
|
6328
6402
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6329
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6403
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6330
6404
|
|
|
6331
6405
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6332
6406
|
var context = useMemo(function () {
|
|
@@ -6336,7 +6410,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6336
6410
|
}, [controlId]);
|
|
6337
6411
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6338
6412
|
value: context
|
|
6339
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6413
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6340
6414
|
ref: ref,
|
|
6341
6415
|
className: classnames(className, bsPrefix)
|
|
6342
6416
|
}), children));
|
|
@@ -6355,7 +6429,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6355
6429
|
srOnly = _ref.srOnly,
|
|
6356
6430
|
className = _ref.className,
|
|
6357
6431
|
htmlFor = _ref.htmlFor,
|
|
6358
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6432
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6359
6433
|
|
|
6360
6434
|
var _useContext = useContext(FormContext),
|
|
6361
6435
|
controlId = _useContext.controlId;
|
|
@@ -6366,7 +6440,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6366
6440
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6367
6441
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6368
6442
|
htmlFor = htmlFor || controlId;
|
|
6369
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6443
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6370
6444
|
as: "label",
|
|
6371
6445
|
className: classes,
|
|
6372
6446
|
htmlFor: htmlFor
|
|
@@ -6374,7 +6448,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6374
6448
|
return (
|
|
6375
6449
|
/*#__PURE__*/
|
|
6376
6450
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6377
|
-
React__default.createElement(Component, _extends({
|
|
6451
|
+
React__default.createElement(Component, _extends$1({
|
|
6378
6452
|
ref: ref,
|
|
6379
6453
|
className: classes,
|
|
6380
6454
|
htmlFor: htmlFor
|
|
@@ -6391,10 +6465,10 @@ function (_ref, ref) {
|
|
|
6391
6465
|
_ref$as = _ref.as,
|
|
6392
6466
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6393
6467
|
muted = _ref.muted,
|
|
6394
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6468
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6395
6469
|
|
|
6396
6470
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6397
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6471
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6398
6472
|
ref: ref,
|
|
6399
6473
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6400
6474
|
}));
|
|
@@ -6402,7 +6476,7 @@ function (_ref, ref) {
|
|
|
6402
6476
|
FormText.displayName = 'FormText';
|
|
6403
6477
|
|
|
6404
6478
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6405
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6479
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6406
6480
|
ref: ref,
|
|
6407
6481
|
type: "switch"
|
|
6408
6482
|
}));
|
|
@@ -6422,10 +6496,10 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6422
6496
|
validated = _ref.validated,
|
|
6423
6497
|
_ref$as = _ref.as,
|
|
6424
6498
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6425
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6426
6500
|
|
|
6427
6501
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6428
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6502
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6429
6503
|
ref: ref,
|
|
6430
6504
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6431
6505
|
}));
|
|
@@ -6450,11 +6524,11 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6450
6524
|
_ref$as = _ref.as,
|
|
6451
6525
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6452
6526
|
className = _ref.className,
|
|
6453
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6527
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6454
6528
|
|
|
6455
6529
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6456
6530
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6457
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6531
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6458
6532
|
ref: ref
|
|
6459
6533
|
}, props, {
|
|
6460
6534
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6502,11 +6576,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6502
6576
|
rounded = _ref.rounded,
|
|
6503
6577
|
roundedCircle = _ref.roundedCircle,
|
|
6504
6578
|
thumbnail = _ref.thumbnail,
|
|
6505
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6579
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6506
6580
|
|
|
6507
6581
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6508
6582
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6509
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6583
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6510
6584
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6511
6585
|
ref: ref
|
|
6512
6586
|
}, props, {
|
|
@@ -6521,9 +6595,9 @@ var defaultProps$j = {
|
|
|
6521
6595
|
};
|
|
6522
6596
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6523
6597
|
var className = _ref.className,
|
|
6524
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6598
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6525
6599
|
|
|
6526
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6600
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6527
6601
|
ref: ref
|
|
6528
6602
|
}, props, {
|
|
6529
6603
|
className: classnames(className, 'figure-img')
|
|
@@ -6550,13 +6624,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6550
6624
|
});
|
|
6551
6625
|
|
|
6552
6626
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6553
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6627
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6554
6628
|
type: "checkbox"
|
|
6555
6629
|
}, props)));
|
|
6556
6630
|
};
|
|
6557
6631
|
|
|
6558
6632
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6559
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends({
|
|
6633
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", _extends$1({
|
|
6560
6634
|
type: "radio"
|
|
6561
6635
|
}, props)));
|
|
6562
6636
|
};
|
|
@@ -6575,10 +6649,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6575
6649
|
className = _ref.className,
|
|
6576
6650
|
_ref$as = _ref.as,
|
|
6577
6651
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6578
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6579
6653
|
|
|
6580
6654
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6581
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6655
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6582
6656
|
ref: ref
|
|
6583
6657
|
}, props, {
|
|
6584
6658
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6586,7 +6660,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6586
6660
|
});
|
|
6587
6661
|
InputGroup.displayName = 'InputGroup';
|
|
6588
6662
|
|
|
6589
|
-
_extends({}, InputGroup, {
|
|
6663
|
+
_extends$1({}, InputGroup, {
|
|
6590
6664
|
Text: InputGroupText,
|
|
6591
6665
|
Radio: InputGroupRadio,
|
|
6592
6666
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6605,11 +6679,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6605
6679
|
className = _ref.className,
|
|
6606
6680
|
fluid = _ref.fluid,
|
|
6607
6681
|
bsPrefix = _ref.bsPrefix,
|
|
6608
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6682
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6609
6683
|
|
|
6610
6684
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6611
6685
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6612
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6613
6687
|
ref: ref
|
|
6614
6688
|
}, props, {
|
|
6615
6689
|
className: classnames(className, classes)
|
|
@@ -6630,7 +6704,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6630
6704
|
activeKey = _ref.activeKey,
|
|
6631
6705
|
role = _ref.role,
|
|
6632
6706
|
onKeyDown = _ref.onKeyDown,
|
|
6633
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6707
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6634
6708
|
|
|
6635
6709
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6636
6710
|
// and don't want to reset the set in the effect
|
|
@@ -6714,7 +6788,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6714
6788
|
getControlledId: getControlledId || noop$1,
|
|
6715
6789
|
getControllerId: getControllerId || noop$1
|
|
6716
6790
|
}
|
|
6717
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6791
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6718
6792
|
onKeyDown: handleKeyDown,
|
|
6719
6793
|
ref: mergedRef,
|
|
6720
6794
|
role: role
|
|
@@ -6731,7 +6805,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6731
6805
|
onSelect = _ref.onSelect,
|
|
6732
6806
|
onClick = _ref.onClick,
|
|
6733
6807
|
Component = _ref.as,
|
|
6734
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6808
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6735
6809
|
|
|
6736
6810
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6737
6811
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6761,7 +6835,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6761
6835
|
if (onSelect) onSelect(navKey, e);
|
|
6762
6836
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6763
6837
|
});
|
|
6764
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6838
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6765
6839
|
ref: ref,
|
|
6766
6840
|
onClick: handleOnclick,
|
|
6767
6841
|
className: classnames(className, isActive && 'active')
|
|
@@ -6784,7 +6858,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6784
6858
|
as = _ref.as,
|
|
6785
6859
|
eventKey = _ref.eventKey,
|
|
6786
6860
|
onClick = _ref.onClick,
|
|
6787
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6861
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6788
6862
|
|
|
6789
6863
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6790
6864
|
var handleClick = useCallback(function (event) {
|
|
@@ -6796,7 +6870,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6796
6870
|
|
|
6797
6871
|
if (onClick) onClick(event);
|
|
6798
6872
|
}, [disabled, onClick]);
|
|
6799
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6873
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6800
6874
|
ref: ref
|
|
6801
6875
|
}, props, {
|
|
6802
6876
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6824,7 +6898,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6824
6898
|
horizontal = _useUncontrolled.horizontal,
|
|
6825
6899
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6826
6900
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6827
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6901
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6828
6902
|
|
|
6829
6903
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6830
6904
|
var horizontalVariant;
|
|
@@ -6836,7 +6910,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6836
6910
|
}
|
|
6837
6911
|
|
|
6838
6912
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6839
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6913
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6840
6914
|
ref: ref
|
|
6841
6915
|
}, controlledProps, {
|
|
6842
6916
|
as: as,
|
|
@@ -6854,10 +6928,10 @@ function (_ref, ref) {
|
|
|
6854
6928
|
className = _ref.className,
|
|
6855
6929
|
_ref$as = _ref.as,
|
|
6856
6930
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6857
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6931
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6858
6932
|
|
|
6859
6933
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6860
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6934
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6861
6935
|
ref: ref,
|
|
6862
6936
|
className: classnames(className, prefix)
|
|
6863
6937
|
}));
|
|
@@ -7704,11 +7778,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7704
7778
|
size = _ref.size,
|
|
7705
7779
|
children = _ref.children,
|
|
7706
7780
|
scrollable = _ref.scrollable,
|
|
7707
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7781
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7708
7782
|
|
|
7709
7783
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7710
7784
|
var dialogClass = bsPrefix + "-dialog";
|
|
7711
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7785
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7712
7786
|
ref: ref,
|
|
7713
7787
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7714
7788
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7730,7 +7804,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7730
7804
|
onHide = _ref.onHide,
|
|
7731
7805
|
className = _ref.className,
|
|
7732
7806
|
children = _ref.children,
|
|
7733
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7807
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7734
7808
|
|
|
7735
7809
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7736
7810
|
var context = useContext(ModalContext);
|
|
@@ -7738,7 +7812,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7738
7812
|
if (context) context.onHide();
|
|
7739
7813
|
if (onHide) onHide();
|
|
7740
7814
|
});
|
|
7741
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7815
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7742
7816
|
ref: ref
|
|
7743
7817
|
}, props, {
|
|
7744
7818
|
className: classnames(className, bsPrefix)
|
|
@@ -7807,7 +7881,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7807
7881
|
onExited = _ref.onExited,
|
|
7808
7882
|
backdropClassName = _ref.backdropClassName,
|
|
7809
7883
|
propsManager = _ref.manager,
|
|
7810
|
-
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"]);
|
|
7884
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "style", "dialogClassName", "contentClassName", "children", "dialogAs", "aria-labelledby", "show", "animation", "backdrop", "keyboard", "onEscapeKeyDown", "onShow", "onHide", "container", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "onEntered", "onExit", "onExiting", "onEnter", "onEntering", "onExited", "backdropClassName", "manager"]);
|
|
7811
7885
|
|
|
7812
7886
|
var _useState = useState({}),
|
|
7813
7887
|
modalStyle = _useState[0],
|
|
@@ -7973,12 +8047,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7973
8047
|
};
|
|
7974
8048
|
|
|
7975
8049
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7976
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
8050
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7977
8051
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7978
8052
|
}));
|
|
7979
8053
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7980
8054
|
|
|
7981
|
-
var baseModalStyle = _extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
8055
|
+
var baseModalStyle = _extends$1({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7982
8056
|
|
|
7983
8057
|
|
|
7984
8058
|
if (!animation) {
|
|
@@ -7986,7 +8060,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7986
8060
|
}
|
|
7987
8061
|
|
|
7988
8062
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7989
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8063
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7990
8064
|
role: "dialog"
|
|
7991
8065
|
}, dialogProps, {
|
|
7992
8066
|
style: baseModalStyle,
|
|
@@ -7994,7 +8068,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7994
8068
|
onClick: backdrop ? handleClick : undefined,
|
|
7995
8069
|
onMouseUp: handleMouseUp,
|
|
7996
8070
|
"aria-labelledby": ariaLabelledby
|
|
7997
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
8071
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
7998
8072
|
role: "document",
|
|
7999
8073
|
onMouseDown: handleDialogMouseDown,
|
|
8000
8074
|
className: dialogClassName,
|
|
@@ -8049,10 +8123,10 @@ function (_ref, ref) {
|
|
|
8049
8123
|
children = _ref.children,
|
|
8050
8124
|
_ref$as = _ref.as,
|
|
8051
8125
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8052
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8126
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8053
8127
|
|
|
8054
8128
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8055
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8129
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8056
8130
|
ref: ref,
|
|
8057
8131
|
className: classnames(className, bsPrefix)
|
|
8058
8132
|
}), children);
|
|
@@ -8071,10 +8145,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8071
8145
|
eventKey = _ref.eventKey,
|
|
8072
8146
|
onSelect = _ref.onSelect,
|
|
8073
8147
|
as = _ref.as,
|
|
8074
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8148
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8075
8149
|
|
|
8076
8150
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8077
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
8151
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8078
8152
|
href: href,
|
|
8079
8153
|
ref: ref,
|
|
8080
8154
|
eventKey: eventKey,
|
|
@@ -8107,7 +8181,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8107
8181
|
className = _useUncontrolled.className,
|
|
8108
8182
|
children = _useUncontrolled.children,
|
|
8109
8183
|
activeKey = _useUncontrolled.activeKey,
|
|
8110
|
-
props = _objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8184
|
+
props = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8111
8185
|
|
|
8112
8186
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8113
8187
|
var navbarBsPrefix;
|
|
@@ -8123,7 +8197,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8123
8197
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8124
8198
|
}
|
|
8125
8199
|
|
|
8126
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8200
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8127
8201
|
as: as,
|
|
8128
8202
|
ref: ref,
|
|
8129
8203
|
activeKey: activeKey,
|
|
@@ -8139,11 +8213,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8139
8213
|
var bsPrefix = _ref.bsPrefix,
|
|
8140
8214
|
className = _ref.className,
|
|
8141
8215
|
as = _ref.as,
|
|
8142
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8216
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8143
8217
|
|
|
8144
8218
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8145
8219
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8146
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8220
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8147
8221
|
ref: ref,
|
|
8148
8222
|
className: classnames(className, bsPrefix)
|
|
8149
8223
|
}));
|
|
@@ -8153,11 +8227,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8153
8227
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8154
8228
|
var children = _ref.children,
|
|
8155
8229
|
bsPrefix = _ref.bsPrefix,
|
|
8156
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8230
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8157
8231
|
|
|
8158
8232
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8159
8233
|
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8160
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8234
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8161
8235
|
in: !!(context && context.expanded)
|
|
8162
8236
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8163
8237
|
ref: ref,
|
|
@@ -8178,7 +8252,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8178
8252
|
_ref$as = _ref.as,
|
|
8179
8253
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8180
8254
|
onClick = _ref.onClick,
|
|
8181
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8255
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8182
8256
|
|
|
8183
8257
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8184
8258
|
|
|
@@ -8195,7 +8269,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8195
8269
|
props.type = 'button';
|
|
8196
8270
|
}
|
|
8197
8271
|
|
|
8198
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8272
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8199
8273
|
ref: ref,
|
|
8200
8274
|
onClick: handleClick,
|
|
8201
8275
|
"aria-label": label,
|
|
@@ -8233,7 +8307,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8233
8307
|
_onToggle = _useUncontrolled.onToggle,
|
|
8234
8308
|
onSelect = _useUncontrolled.onSelect,
|
|
8235
8309
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8236
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8310
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8237
8311
|
|
|
8238
8312
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8239
8313
|
var handleCollapse = useCallback(function () {
|
|
@@ -8267,7 +8341,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8267
8341
|
value: navbarContext
|
|
8268
8342
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8269
8343
|
value: handleCollapse
|
|
8270
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8344
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8271
8345
|
ref: ref
|
|
8272
8346
|
}, controlledProps, {
|
|
8273
8347
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8326,9 +8400,9 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8326
8400
|
disabled = _ref.disabled,
|
|
8327
8401
|
active = _ref.active,
|
|
8328
8402
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8329
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8403
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8330
8404
|
|
|
8331
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8405
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
8332
8406
|
ref: ref
|
|
8333
8407
|
}, props, {
|
|
8334
8408
|
as: NavItem
|
|
@@ -8619,7 +8693,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8619
8693
|
style = _ref.style,
|
|
8620
8694
|
activeLabel = _ref.activeLabel,
|
|
8621
8695
|
children = _ref.children,
|
|
8622
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8696
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8623
8697
|
|
|
8624
8698
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8625
8699
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8629,7 +8703,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8629
8703
|
active: active,
|
|
8630
8704
|
disabled: disabled
|
|
8631
8705
|
})
|
|
8632
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8706
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8633
8707
|
className: "page-link",
|
|
8634
8708
|
disabled: disabled
|
|
8635
8709
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -8646,7 +8720,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8646
8720
|
|
|
8647
8721
|
function Button(_ref2) {
|
|
8648
8722
|
var children = _ref2.children,
|
|
8649
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8723
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8650
8724
|
|
|
8651
8725
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8652
8726
|
"aria-hidden": "true"
|
|
@@ -8678,10 +8752,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8678
8752
|
className = _ref.className,
|
|
8679
8753
|
children = _ref.children,
|
|
8680
8754
|
size = _ref.size,
|
|
8681
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8755
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8682
8756
|
|
|
8683
8757
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8684
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8758
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8685
8759
|
ref: ref
|
|
8686
8760
|
}, props, {
|
|
8687
8761
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8700,10 +8774,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8700
8774
|
bsPrefix = _ref.bsPrefix,
|
|
8701
8775
|
className = _ref.className,
|
|
8702
8776
|
children = _ref.children,
|
|
8703
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8777
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8704
8778
|
|
|
8705
8779
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8706
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8780
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8707
8781
|
ref: ref
|
|
8708
8782
|
}, props, {
|
|
8709
8783
|
className: classnames(bsPrefix, className)
|
|
@@ -8716,10 +8790,10 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8716
8790
|
bsPrefix = _ref.bsPrefix,
|
|
8717
8791
|
className = _ref.className,
|
|
8718
8792
|
children = _ref.children,
|
|
8719
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8793
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8720
8794
|
|
|
8721
8795
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8722
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8796
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8723
8797
|
ref: ref
|
|
8724
8798
|
}, props, {
|
|
8725
8799
|
className: classnames(className, bsPrefix)
|
|
@@ -8739,20 +8813,20 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8739
8813
|
arrowProps = _ref.arrowProps;
|
|
8740
8814
|
_ref.popper;
|
|
8741
8815
|
_ref.show;
|
|
8742
|
-
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8816
|
+
var props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8743
8817
|
|
|
8744
8818
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8745
8819
|
|
|
8746
8820
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8747
8821
|
primaryPlacement = _ref2[0];
|
|
8748
8822
|
|
|
8749
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8823
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8750
8824
|
ref: ref,
|
|
8751
8825
|
role: "tooltip",
|
|
8752
8826
|
style: style,
|
|
8753
8827
|
"x-placement": primaryPlacement,
|
|
8754
8828
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8755
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8829
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8756
8830
|
className: "arrow"
|
|
8757
8831
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8758
8832
|
});
|
|
@@ -8790,14 +8864,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8790
8864
|
style = _ref.style,
|
|
8791
8865
|
variant = _ref.variant,
|
|
8792
8866
|
bsPrefix = _ref.bsPrefix,
|
|
8793
|
-
props = _objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8867
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8794
8868
|
|
|
8795
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8869
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8796
8870
|
ref: ref
|
|
8797
8871
|
}, props, {
|
|
8798
8872
|
role: "progressbar",
|
|
8799
8873
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8800
|
-
style: _extends({
|
|
8874
|
+
style: _extends$1({
|
|
8801
8875
|
width: getPercentage(now, min, max) + "%"
|
|
8802
8876
|
}, style),
|
|
8803
8877
|
"aria-valuenow": now,
|
|
@@ -8810,7 +8884,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8810
8884
|
|
|
8811
8885
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8812
8886
|
var isChild = _ref2.isChild,
|
|
8813
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8887
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8814
8888
|
|
|
8815
8889
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8816
8890
|
|
|
@@ -8829,9 +8903,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8829
8903
|
variant = props.variant,
|
|
8830
8904
|
className = props.className,
|
|
8831
8905
|
children = props.children,
|
|
8832
|
-
wrapperProps = _objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8906
|
+
wrapperProps = _objectWithoutPropertiesLoose$1(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8833
8907
|
|
|
8834
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8908
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8835
8909
|
ref: ref
|
|
8836
8910
|
}, wrapperProps, {
|
|
8837
8911
|
className: classnames(className, bsPrefix)
|
|
@@ -8862,11 +8936,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8862
8936
|
className = _ref.className,
|
|
8863
8937
|
children = _ref.children,
|
|
8864
8938
|
aspectRatio = _ref.aspectRatio,
|
|
8865
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8939
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8866
8940
|
|
|
8867
8941
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8868
8942
|
var child = React__default.Children.only(children);
|
|
8869
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8943
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8870
8944
|
ref: ref
|
|
8871
8945
|
}, props, {
|
|
8872
8946
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8886,7 +8960,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8886
8960
|
noGutters = _ref.noGutters,
|
|
8887
8961
|
_ref$as = _ref.as,
|
|
8888
8962
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8889
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8963
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8890
8964
|
|
|
8891
8965
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8892
8966
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8905,7 +8979,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8905
8979
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8906
8980
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8907
8981
|
});
|
|
8908
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8982
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8909
8983
|
ref: ref
|
|
8910
8984
|
}, props, {
|
|
8911
8985
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8923,11 +8997,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8923
8997
|
_ref$as = _ref.as,
|
|
8924
8998
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8925
8999
|
className = _ref.className,
|
|
8926
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
9000
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8927
9001
|
|
|
8928
9002
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8929
9003
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8930
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9004
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8931
9005
|
ref: ref
|
|
8932
9006
|
}, props, {
|
|
8933
9007
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -9017,9 +9091,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9017
9091
|
menuRole = _ref.menuRole,
|
|
9018
9092
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9019
9093
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9020
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9094
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
9021
9095
|
|
|
9022
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
9096
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
9023
9097
|
ref: ref
|
|
9024
9098
|
}, props, {
|
|
9025
9099
|
as: ButtonGroup
|
|
@@ -9097,10 +9171,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9097
9171
|
_ref$as = _ref.as,
|
|
9098
9172
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9099
9173
|
className = _ref.className,
|
|
9100
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9174
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9101
9175
|
|
|
9102
9176
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9103
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9177
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9104
9178
|
ref: ref
|
|
9105
9179
|
}, props, {
|
|
9106
9180
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9114,11 +9188,11 @@ function useTabContext(props) {
|
|
|
9114
9188
|
var activeKey = context.activeKey,
|
|
9115
9189
|
getControlledId = context.getControlledId,
|
|
9116
9190
|
getControllerId = context.getControllerId,
|
|
9117
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9191
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9118
9192
|
|
|
9119
9193
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9120
9194
|
var key = makeEventKey(props.eventKey);
|
|
9121
|
-
return _extends({}, props, {
|
|
9195
|
+
return _extends$1({}, props, {
|
|
9122
9196
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9123
9197
|
id: getControlledId(props.eventKey),
|
|
9124
9198
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9145,11 +9219,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9145
9219
|
_useTabContext$as = _useTabContext.as,
|
|
9146
9220
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9147
9221
|
_useTabContext.eventKey;
|
|
9148
|
-
var rest = _objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9222
|
+
var rest = _objectWithoutPropertiesLoose$1(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9149
9223
|
|
|
9150
9224
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9151
9225
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9152
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9226
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9153
9227
|
ref: ref,
|
|
9154
9228
|
role: "tabpanel",
|
|
9155
9229
|
"aria-hidden": !active,
|
|
@@ -9209,11 +9283,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9209
9283
|
size = _ref.size,
|
|
9210
9284
|
variant = _ref.variant,
|
|
9211
9285
|
responsive = _ref.responsive,
|
|
9212
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9286
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9213
9287
|
|
|
9214
9288
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9215
9289
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9216
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9290
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9217
9291
|
className: classes,
|
|
9218
9292
|
ref: ref
|
|
9219
9293
|
}));
|
|
@@ -9248,7 +9322,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9248
9322
|
closeButton = _ref.closeButton,
|
|
9249
9323
|
className = _ref.className,
|
|
9250
9324
|
children = _ref.children,
|
|
9251
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9325
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9252
9326
|
|
|
9253
9327
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9254
9328
|
var context = useContext(ToastContext);
|
|
@@ -9257,7 +9331,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9257
9331
|
context.onClose(e);
|
|
9258
9332
|
}
|
|
9259
9333
|
});
|
|
9260
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9334
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9261
9335
|
ref: ref
|
|
9262
9336
|
}, props, {
|
|
9263
9337
|
className: classnames(bsPrefix, className)
|
|
@@ -9288,7 +9362,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9288
9362
|
_ref$autohide = _ref.autohide,
|
|
9289
9363
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9290
9364
|
onClose = _ref.onClose,
|
|
9291
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9365
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9292
9366
|
|
|
9293
9367
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9294
9368
|
// timer in case these values change.
|
|
@@ -9316,7 +9390,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9316
9390
|
};
|
|
9317
9391
|
}, [onClose]);
|
|
9318
9392
|
var hasAnimation = !!(Transition && animation);
|
|
9319
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9393
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9320
9394
|
ref: ref,
|
|
9321
9395
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9322
9396
|
role: "alert",
|
|
@@ -9350,7 +9424,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9350
9424
|
value = _ref.value,
|
|
9351
9425
|
disabled = _ref.disabled,
|
|
9352
9426
|
inputRef = _ref.inputRef,
|
|
9353
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9427
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9354
9428
|
|
|
9355
9429
|
var _useState = useState(false),
|
|
9356
9430
|
focused = _useState[0],
|
|
@@ -9362,7 +9436,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9362
9436
|
var handleBlur = useCallback(function (e) {
|
|
9363
9437
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9364
9438
|
}, []);
|
|
9365
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9439
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9366
9440
|
ref: ref,
|
|
9367
9441
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9368
9442
|
type: undefined,
|
|
@@ -9396,7 +9470,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9396
9470
|
name = _useUncontrolled.name,
|
|
9397
9471
|
value = _useUncontrolled.value,
|
|
9398
9472
|
onChange = _useUncontrolled.onChange,
|
|
9399
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9473
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9400
9474
|
|
|
9401
9475
|
var getValues = function getValues() {
|
|
9402
9476
|
return value == null ? [] : [].concat(value);
|
|
@@ -9425,7 +9499,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9425
9499
|
};
|
|
9426
9500
|
|
|
9427
9501
|
!(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;
|
|
9428
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9502
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9429
9503
|
ref: ref,
|
|
9430
9504
|
toggle: true
|
|
9431
9505
|
}), map(children, function (child) {
|
|
@@ -9461,20 +9535,20 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9461
9535
|
arrowProps = _ref.arrowProps;
|
|
9462
9536
|
_ref.popper;
|
|
9463
9537
|
_ref.show;
|
|
9464
|
-
var props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9538
|
+
var props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9465
9539
|
|
|
9466
9540
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9467
9541
|
|
|
9468
9542
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9469
9543
|
primaryPlacement = _ref2[0];
|
|
9470
9544
|
|
|
9471
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9545
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9472
9546
|
ref: ref,
|
|
9473
9547
|
style: style,
|
|
9474
9548
|
role: "tooltip",
|
|
9475
9549
|
"x-placement": primaryPlacement,
|
|
9476
9550
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9477
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9551
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9478
9552
|
className: "arrow"
|
|
9479
9553
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9480
9554
|
className: bsPrefix + "-inner"
|