@mjhls/mjh-framework 1.0.1089-webcastAddition-v1 → 1.0.1089
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-3eabeab4.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-fc42f8c4.js} +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +454 -198
- 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 +245 -629
- 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-eb866353.js → ImageSlider-d65bc9c8.js} +159 -114
- 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-8011d690.js → Tooltip-66c1a867.js} +131 -76
- 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 -7
- 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 +22 -4
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{index-b0e9a7b6.js → index-4aba677d.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 -12
- 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-8fd14c74.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-9c3fc2ec.js} +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/AlgoliaSearch.js +453 -197
- 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 +243 -627
- 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-ea441f66.js → ImageSlider-801685f8.js} +160 -115
- 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-2cdd0895.js → Tooltip-0b3b4558.js} +290 -235
- 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 -7
- 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 +23 -5
- 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-fcb8d351.js} +234 -15
- package/dist/esm/index.js +11 -12
- 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-19580e93.js +0 -71
- package/dist/cjs/index-96c331fd.js +0 -1572
- package/dist/esm/defineProperty-e8022d1e.js +0 -66
- package/dist/esm/index-30a6257d.js +0 -1570
|
@@ -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.
|
|
@@ -3032,7 +3095,7 @@ function mapToStyles(_ref2) {
|
|
|
3032
3095
|
|
|
3033
3096
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
3034
3097
|
sideY = bottom;
|
|
3035
|
-
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]
|
|
3036
3099
|
offsetParent[heightProp];
|
|
3037
3100
|
y -= offsetY - popperRect.height;
|
|
3038
3101
|
y *= gpuAcceleration ? 1 : -1;
|
|
@@ -3040,7 +3103,7 @@ function mapToStyles(_ref2) {
|
|
|
3040
3103
|
|
|
3041
3104
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
3042
3105
|
sideX = right;
|
|
3043
|
-
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]
|
|
3044
3107
|
offsetParent[widthProp];
|
|
3045
3108
|
x -= offsetX - popperRect.width;
|
|
3046
3109
|
x *= gpuAcceleration ? 1 : -1;
|
|
@@ -3223,31 +3286,21 @@ function getWindowScrollBarX(element) {
|
|
|
3223
3286
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
3224
3287
|
}
|
|
3225
3288
|
|
|
3226
|
-
function getViewportRect(element) {
|
|
3289
|
+
function getViewportRect(element, strategy) {
|
|
3227
3290
|
var win = getWindow(element);
|
|
3228
3291
|
var html = getDocumentElement(element);
|
|
3229
3292
|
var visualViewport = win.visualViewport;
|
|
3230
3293
|
var width = html.clientWidth;
|
|
3231
3294
|
var height = html.clientHeight;
|
|
3232
3295
|
var x = 0;
|
|
3233
|
-
var y = 0;
|
|
3234
|
-
// can be obscured underneath it.
|
|
3235
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
3236
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
3237
|
-
// to overflow the bottom of the screen too early.
|
|
3296
|
+
var y = 0;
|
|
3238
3297
|
|
|
3239
3298
|
if (visualViewport) {
|
|
3240
3299
|
width = visualViewport.width;
|
|
3241
|
-
height = visualViewport.height;
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
3246
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
3247
|
-
// 0.001
|
|
3248
|
-
// Fallback here: "Not Safari" userAgent
|
|
3249
|
-
|
|
3250
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
3300
|
+
height = visualViewport.height;
|
|
3301
|
+
var layoutViewport = isLayoutViewport();
|
|
3302
|
+
|
|
3303
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
3251
3304
|
x = visualViewport.offsetLeft;
|
|
3252
3305
|
y = visualViewport.offsetTop;
|
|
3253
3306
|
}
|
|
@@ -3341,8 +3394,8 @@ function rectToClientRect(rect) {
|
|
|
3341
3394
|
});
|
|
3342
3395
|
}
|
|
3343
3396
|
|
|
3344
|
-
function getInnerBoundingClientRect(element) {
|
|
3345
|
-
var rect = getBoundingClientRect(element);
|
|
3397
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
3398
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
3346
3399
|
rect.top = rect.top + element.clientTop;
|
|
3347
3400
|
rect.left = rect.left + element.clientLeft;
|
|
3348
3401
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -3354,8 +3407,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
3354
3407
|
return rect;
|
|
3355
3408
|
}
|
|
3356
3409
|
|
|
3357
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
3358
|
-
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)));
|
|
3359
3412
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
3360
3413
|
// clipping (or hiding) overflowing elements with a position different from
|
|
3361
3414
|
// `initial`
|
|
@@ -3378,18 +3431,18 @@ function getClippingParents(element) {
|
|
|
3378
3431
|
// clipping parents
|
|
3379
3432
|
|
|
3380
3433
|
|
|
3381
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
3434
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
3382
3435
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
3383
3436
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
3384
3437
|
var firstClippingParent = clippingParents[0];
|
|
3385
3438
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3386
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3439
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
3387
3440
|
accRect.top = max(rect.top, accRect.top);
|
|
3388
3441
|
accRect.right = min(rect.right, accRect.right);
|
|
3389
3442
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3390
3443
|
accRect.left = max(rect.left, accRect.left);
|
|
3391
3444
|
return accRect;
|
|
3392
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3445
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
3393
3446
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
3394
3447
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
3395
3448
|
clippingRect.x = clippingRect.left;
|
|
@@ -3470,6 +3523,8 @@ function detectOverflow(state, options) {
|
|
|
3470
3523
|
var _options = options,
|
|
3471
3524
|
_options$placement = _options.placement,
|
|
3472
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,
|
|
3473
3528
|
_options$boundary = _options.boundary,
|
|
3474
3529
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
3475
3530
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -3484,7 +3539,7 @@ function detectOverflow(state, options) {
|
|
|
3484
3539
|
var altContext = elementContext === popper ? reference : popper;
|
|
3485
3540
|
var popperRect = state.rects.popper;
|
|
3486
3541
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3487
|
-
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);
|
|
3488
3543
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
3489
3544
|
var popperOffsets = computeOffsets({
|
|
3490
3545
|
reference: referenceClientRect,
|
|
@@ -4002,7 +4057,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
4002
4057
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
4003
4058
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
4004
4059
|
var documentElement = getDocumentElement(offsetParent);
|
|
4005
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
4060
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
4006
4061
|
var scroll = {
|
|
4007
4062
|
scrollLeft: 0,
|
|
4008
4063
|
scrollTop: 0
|
|
@@ -5372,7 +5427,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5372
5427
|
onSelect = _ref.onSelect,
|
|
5373
5428
|
propActive = _ref.active,
|
|
5374
5429
|
Component = _ref.as,
|
|
5375
|
-
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"]);
|
|
5376
5431
|
|
|
5377
5432
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5378
5433
|
var onSelectCtx = useContext(SelectableContext);
|
|
@@ -5396,7 +5451,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5396
5451
|
/*#__PURE__*/
|
|
5397
5452
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5398
5453
|
// @ts-ignore
|
|
5399
|
-
React__default.createElement(Component, _extends({}, props, {
|
|
5454
|
+
React__default.createElement(Component, _extends$1({}, props, {
|
|
5400
5455
|
ref: ref,
|
|
5401
5456
|
href: href,
|
|
5402
5457
|
disabled: disabled,
|
|
@@ -5591,7 +5646,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5591
5646
|
_ref$as = _ref.as,
|
|
5592
5647
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5593
5648
|
popperConfig = _ref.popperConfig,
|
|
5594
|
-
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"]);
|
|
5595
5650
|
|
|
5596
5651
|
var isNavbar = useContext(context);
|
|
5597
5652
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5627,7 +5682,7 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5627
5682
|
show: showProps,
|
|
5628
5683
|
alignEnd: alignRight,
|
|
5629
5684
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5630
|
-
popperConfig: _extends({}, popperConfig, {
|
|
5685
|
+
popperConfig: _extends$1({}, popperConfig, {
|
|
5631
5686
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5632
5687
|
})
|
|
5633
5688
|
}),
|
|
@@ -5650,11 +5705,11 @@ var DropdownMenu = React__default.forwardRef(function (_ref, ref) {
|
|
|
5650
5705
|
if (placement) {
|
|
5651
5706
|
// we don't need the default popper style,
|
|
5652
5707
|
// menus are display: none when not shown.
|
|
5653
|
-
props.style = _extends({}, props.style, {}, menuProps.style);
|
|
5708
|
+
props.style = _extends$1({}, props.style, {}, menuProps.style);
|
|
5654
5709
|
props['x-placement'] = placement;
|
|
5655
5710
|
}
|
|
5656
5711
|
|
|
5657
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, menuProps, {
|
|
5712
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, menuProps, {
|
|
5658
5713
|
className: classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5659
5714
|
}));
|
|
5660
5715
|
});
|
|
@@ -5695,7 +5750,7 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5695
5750
|
childBsPrefix = _ref.childBsPrefix,
|
|
5696
5751
|
_ref$as = _ref.as,
|
|
5697
5752
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5698
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5753
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5699
5754
|
|
|
5700
5755
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5701
5756
|
|
|
@@ -5710,7 +5765,7 @@ var DropdownToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
5710
5765
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5711
5766
|
// underlying component, to allow it to render size and style variants.
|
|
5712
5767
|
|
|
5713
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
5768
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
5714
5769
|
onClick: toggle,
|
|
5715
5770
|
className: classnames(className, prefix, split && prefix + "-split")
|
|
5716
5771
|
}, toggleProps, props));
|
|
@@ -5748,7 +5803,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5748
5803
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5749
5804
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as;
|
|
5750
5805
|
_useUncontrolled.navbar;
|
|
5751
|
-
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"]);
|
|
5752
5807
|
|
|
5753
5808
|
var onSelectCtx = useContext(SelectableContext);
|
|
5754
5809
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5781,7 +5836,7 @@ var Dropdown = React__default.forwardRef(function (pProps, ref) {
|
|
|
5781
5836
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5782
5837
|
}, function (_ref) {
|
|
5783
5838
|
var dropdownProps = _ref.props;
|
|
5784
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, dropdownProps, {
|
|
5839
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, dropdownProps, {
|
|
5785
5840
|
ref: ref,
|
|
5786
5841
|
className: classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5787
5842
|
}));
|
|
@@ -5869,9 +5924,9 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5869
5924
|
disabled = _ref.disabled,
|
|
5870
5925
|
href = _ref.href,
|
|
5871
5926
|
id = _ref.id,
|
|
5872
|
-
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"]);
|
|
5873
5928
|
|
|
5874
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
5929
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
5875
5930
|
ref: ref
|
|
5876
5931
|
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle, {
|
|
5877
5932
|
id: id,
|
|
@@ -6004,9 +6059,9 @@ function (_ref, ref) {
|
|
|
6004
6059
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
6005
6060
|
_ref$tooltip = _ref.tooltip,
|
|
6006
6061
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
6007
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
6062
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "type", "tooltip"]);
|
|
6008
6063
|
|
|
6009
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6064
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6010
6065
|
ref: ref,
|
|
6011
6066
|
className: classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
6012
6067
|
}));
|
|
@@ -6032,7 +6087,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6032
6087
|
isStatic = _ref.isStatic,
|
|
6033
6088
|
_ref$as = _ref.as,
|
|
6034
6089
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6035
|
-
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"]);
|
|
6036
6091
|
|
|
6037
6092
|
var _useContext = useContext(FormContext),
|
|
6038
6093
|
controlId = _useContext.controlId,
|
|
@@ -6043,7 +6098,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6043
6098
|
defaultPrefix = _ref2[1];
|
|
6044
6099
|
|
|
6045
6100
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6046
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6101
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6047
6102
|
ref: ref,
|
|
6048
6103
|
type: type,
|
|
6049
6104
|
id: id || controlId,
|
|
@@ -6057,7 +6112,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6057
6112
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6058
6113
|
className = _ref.className,
|
|
6059
6114
|
htmlFor = _ref.htmlFor,
|
|
6060
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6115
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6061
6116
|
|
|
6062
6117
|
var _useContext = useContext(FormContext),
|
|
6063
6118
|
controlId = _useContext.controlId,
|
|
@@ -6068,7 +6123,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6068
6123
|
defaultPrefix = _ref2[1];
|
|
6069
6124
|
|
|
6070
6125
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6071
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6126
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6072
6127
|
ref: ref,
|
|
6073
6128
|
htmlFor: htmlFor || controlId,
|
|
6074
6129
|
className: classnames(className, bsPrefix)
|
|
@@ -6102,7 +6157,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6102
6157
|
propCustom = _ref.custom,
|
|
6103
6158
|
_ref$as = _ref.as,
|
|
6104
6159
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6105
|
-
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"]);
|
|
6106
6161
|
|
|
6107
6162
|
var custom = type === 'switch' ? true : propCustom;
|
|
6108
6163
|
|
|
@@ -6122,7 +6177,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6122
6177
|
};
|
|
6123
6178
|
}, [controlId, custom, id]);
|
|
6124
6179
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6125
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends({}, props, {
|
|
6180
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, _extends$1({}, props, {
|
|
6126
6181
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6127
6182
|
ref: ref,
|
|
6128
6183
|
isValid: isValid,
|
|
@@ -6157,7 +6212,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6157
6212
|
lang = _ref.lang,
|
|
6158
6213
|
_ref$as = _ref.as,
|
|
6159
6214
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6160
|
-
props = _objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6215
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6161
6216
|
|
|
6162
6217
|
var _useContext = useContext(FormContext),
|
|
6163
6218
|
controlId = _useContext.controlId,
|
|
@@ -6170,7 +6225,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6170
6225
|
defaultPrefix = _ref2[1];
|
|
6171
6226
|
|
|
6172
6227
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6173
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6228
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6174
6229
|
ref: ref,
|
|
6175
6230
|
id: id || controlId,
|
|
6176
6231
|
type: type,
|
|
@@ -6185,7 +6240,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6185
6240
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6186
6241
|
className = _ref.className,
|
|
6187
6242
|
htmlFor = _ref.htmlFor,
|
|
6188
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6243
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6189
6244
|
|
|
6190
6245
|
var _useContext = useContext(FormContext),
|
|
6191
6246
|
controlId = _useContext.controlId,
|
|
@@ -6196,7 +6251,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6196
6251
|
defaultPrefix = _ref2[1];
|
|
6197
6252
|
|
|
6198
6253
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6199
|
-
return /*#__PURE__*/React__default.createElement("label", _extends({}, props, {
|
|
6254
|
+
return /*#__PURE__*/React__default.createElement("label", _extends$1({}, props, {
|
|
6200
6255
|
ref: ref,
|
|
6201
6256
|
htmlFor: htmlFor || controlId,
|
|
6202
6257
|
className: classnames(className, bsPrefix),
|
|
@@ -6229,7 +6284,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6229
6284
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6230
6285
|
_ref$inputAs = _ref.inputAs,
|
|
6231
6286
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6232
|
-
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"]);
|
|
6233
6288
|
|
|
6234
6289
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6235
6290
|
prefix = _ref2[0],
|
|
@@ -6248,7 +6303,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6248
6303
|
};
|
|
6249
6304
|
}, [controlId, custom, id]);
|
|
6250
6305
|
var hasLabel = label != null && label !== false && !children;
|
|
6251
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends({}, props, {
|
|
6306
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, _extends$1({}, props, {
|
|
6252
6307
|
ref: ref,
|
|
6253
6308
|
isValid: isValid,
|
|
6254
6309
|
isInvalid: isInvalid,
|
|
@@ -6289,7 +6344,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6289
6344
|
custom = _ref.custom,
|
|
6290
6345
|
_ref$as = _ref.as,
|
|
6291
6346
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6292
|
-
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"]);
|
|
6293
6348
|
|
|
6294
6349
|
var _useContext = useContext(FormContext),
|
|
6295
6350
|
controlId = _useContext.controlId;
|
|
@@ -6324,7 +6379,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6324
6379
|
}
|
|
6325
6380
|
|
|
6326
6381
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6327
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6382
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6328
6383
|
type: type,
|
|
6329
6384
|
size: htmlSize,
|
|
6330
6385
|
ref: ref,
|
|
@@ -6345,7 +6400,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6345
6400
|
controlId = _ref.controlId,
|
|
6346
6401
|
_ref$as = _ref.as,
|
|
6347
6402
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6348
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6403
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6349
6404
|
|
|
6350
6405
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6351
6406
|
var context = useMemo(function () {
|
|
@@ -6355,7 +6410,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6355
6410
|
}, [controlId]);
|
|
6356
6411
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6357
6412
|
value: context
|
|
6358
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6413
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6359
6414
|
ref: ref,
|
|
6360
6415
|
className: classnames(className, bsPrefix)
|
|
6361
6416
|
}), children));
|
|
@@ -6374,7 +6429,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6374
6429
|
srOnly = _ref.srOnly,
|
|
6375
6430
|
className = _ref.className,
|
|
6376
6431
|
htmlFor = _ref.htmlFor,
|
|
6377
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6432
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6378
6433
|
|
|
6379
6434
|
var _useContext = useContext(FormContext),
|
|
6380
6435
|
controlId = _useContext.controlId;
|
|
@@ -6385,7 +6440,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6385
6440
|
var classes = classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6386
6441
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6387
6442
|
htmlFor = htmlFor || controlId;
|
|
6388
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends({
|
|
6443
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, _extends$1({
|
|
6389
6444
|
as: "label",
|
|
6390
6445
|
className: classes,
|
|
6391
6446
|
htmlFor: htmlFor
|
|
@@ -6393,7 +6448,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6393
6448
|
return (
|
|
6394
6449
|
/*#__PURE__*/
|
|
6395
6450
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6396
|
-
React__default.createElement(Component, _extends({
|
|
6451
|
+
React__default.createElement(Component, _extends$1({
|
|
6397
6452
|
ref: ref,
|
|
6398
6453
|
className: classes,
|
|
6399
6454
|
htmlFor: htmlFor
|
|
@@ -6410,10 +6465,10 @@ function (_ref, ref) {
|
|
|
6410
6465
|
_ref$as = _ref.as,
|
|
6411
6466
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6412
6467
|
muted = _ref.muted,
|
|
6413
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6468
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6414
6469
|
|
|
6415
6470
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6416
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6471
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6417
6472
|
ref: ref,
|
|
6418
6473
|
className: classnames(className, bsPrefix, muted && 'text-muted')
|
|
6419
6474
|
}));
|
|
@@ -6421,7 +6476,7 @@ function (_ref, ref) {
|
|
|
6421
6476
|
FormText.displayName = 'FormText';
|
|
6422
6477
|
|
|
6423
6478
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6424
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, _extends({}, props, {
|
|
6479
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, _extends$1({}, props, {
|
|
6425
6480
|
ref: ref,
|
|
6426
6481
|
type: "switch"
|
|
6427
6482
|
}));
|
|
@@ -6441,10 +6496,10 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6441
6496
|
validated = _ref.validated,
|
|
6442
6497
|
_ref$as = _ref.as,
|
|
6443
6498
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6444
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6499
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6445
6500
|
|
|
6446
6501
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6447
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6502
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6448
6503
|
ref: ref,
|
|
6449
6504
|
className: classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6450
6505
|
}));
|
|
@@ -6469,11 +6524,11 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6469
6524
|
_ref$as = _ref.as,
|
|
6470
6525
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6471
6526
|
className = _ref.className,
|
|
6472
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6527
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6473
6528
|
|
|
6474
6529
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6475
6530
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6476
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6531
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6477
6532
|
ref: ref
|
|
6478
6533
|
}, props, {
|
|
6479
6534
|
className: classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
@@ -6521,11 +6576,11 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6521
6576
|
rounded = _ref.rounded,
|
|
6522
6577
|
roundedCircle = _ref.roundedCircle,
|
|
6523
6578
|
thumbnail = _ref.thumbnail,
|
|
6524
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6579
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6525
6580
|
|
|
6526
6581
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6527
6582
|
var classes = classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6528
|
-
return /*#__PURE__*/React__default.createElement("img", _extends({
|
|
6583
|
+
return /*#__PURE__*/React__default.createElement("img", _extends$1({
|
|
6529
6584
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6530
6585
|
ref: ref
|
|
6531
6586
|
}, props, {
|
|
@@ -6540,9 +6595,9 @@ var defaultProps$j = {
|
|
|
6540
6595
|
};
|
|
6541
6596
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6542
6597
|
var className = _ref.className,
|
|
6543
|
-
props = _objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6598
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["className"]);
|
|
6544
6599
|
|
|
6545
|
-
return /*#__PURE__*/React__default.createElement(Image, _extends({
|
|
6600
|
+
return /*#__PURE__*/React__default.createElement(Image, _extends$1({
|
|
6546
6601
|
ref: ref
|
|
6547
6602
|
}, props, {
|
|
6548
6603
|
className: classnames(className, 'figure-img')
|
|
@@ -6569,13 +6624,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6569
6624
|
});
|
|
6570
6625
|
|
|
6571
6626
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6572
|
-
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({
|
|
6573
6628
|
type: "checkbox"
|
|
6574
6629
|
}, props)));
|
|
6575
6630
|
};
|
|
6576
6631
|
|
|
6577
6632
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6578
|
-
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({
|
|
6579
6634
|
type: "radio"
|
|
6580
6635
|
}, props)));
|
|
6581
6636
|
};
|
|
@@ -6594,10 +6649,10 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6594
6649
|
className = _ref.className,
|
|
6595
6650
|
_ref$as = _ref.as,
|
|
6596
6651
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6597
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6652
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6598
6653
|
|
|
6599
6654
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6600
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6655
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6601
6656
|
ref: ref
|
|
6602
6657
|
}, props, {
|
|
6603
6658
|
className: classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
@@ -6605,7 +6660,7 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6605
6660
|
});
|
|
6606
6661
|
InputGroup.displayName = 'InputGroup';
|
|
6607
6662
|
|
|
6608
|
-
_extends({}, InputGroup, {
|
|
6663
|
+
_extends$1({}, InputGroup, {
|
|
6609
6664
|
Text: InputGroupText,
|
|
6610
6665
|
Radio: InputGroupRadio,
|
|
6611
6666
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6624,11 +6679,11 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6624
6679
|
className = _ref.className,
|
|
6625
6680
|
fluid = _ref.fluid,
|
|
6626
6681
|
bsPrefix = _ref.bsPrefix,
|
|
6627
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6682
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6628
6683
|
|
|
6629
6684
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6630
6685
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6631
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
6686
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
6632
6687
|
ref: ref
|
|
6633
6688
|
}, props, {
|
|
6634
6689
|
className: classnames(className, classes)
|
|
@@ -6649,7 +6704,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6649
6704
|
activeKey = _ref.activeKey,
|
|
6650
6705
|
role = _ref.role,
|
|
6651
6706
|
onKeyDown = _ref.onKeyDown,
|
|
6652
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6707
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6653
6708
|
|
|
6654
6709
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6655
6710
|
// and don't want to reset the set in the effect
|
|
@@ -6733,7 +6788,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6733
6788
|
getControlledId: getControlledId || noop$1,
|
|
6734
6789
|
getControllerId: getControllerId || noop$1
|
|
6735
6790
|
}
|
|
6736
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6791
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6737
6792
|
onKeyDown: handleKeyDown,
|
|
6738
6793
|
ref: mergedRef,
|
|
6739
6794
|
role: role
|
|
@@ -6750,7 +6805,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6750
6805
|
onSelect = _ref.onSelect,
|
|
6751
6806
|
onClick = _ref.onClick,
|
|
6752
6807
|
Component = _ref.as,
|
|
6753
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6808
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6754
6809
|
|
|
6755
6810
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6756
6811
|
var parentOnSelect = useContext(SelectableContext);
|
|
@@ -6780,7 +6835,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6780
6835
|
if (onSelect) onSelect(navKey, e);
|
|
6781
6836
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6782
6837
|
});
|
|
6783
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6838
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6784
6839
|
ref: ref,
|
|
6785
6840
|
onClick: handleOnclick,
|
|
6786
6841
|
className: classnames(className, isActive && 'active')
|
|
@@ -6803,7 +6858,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6803
6858
|
as = _ref.as,
|
|
6804
6859
|
eventKey = _ref.eventKey,
|
|
6805
6860
|
onClick = _ref.onClick,
|
|
6806
|
-
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"]);
|
|
6807
6862
|
|
|
6808
6863
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6809
6864
|
var handleClick = useCallback(function (event) {
|
|
@@ -6815,7 +6870,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6815
6870
|
|
|
6816
6871
|
if (onClick) onClick(event);
|
|
6817
6872
|
}, [disabled, onClick]);
|
|
6818
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({
|
|
6873
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({
|
|
6819
6874
|
ref: ref
|
|
6820
6875
|
}, props, {
|
|
6821
6876
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6843,7 +6898,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6843
6898
|
horizontal = _useUncontrolled.horizontal,
|
|
6844
6899
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6845
6900
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6846
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6901
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6847
6902
|
|
|
6848
6903
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6849
6904
|
var horizontalVariant;
|
|
@@ -6855,7 +6910,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6855
6910
|
}
|
|
6856
6911
|
|
|
6857
6912
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6858
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
6913
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
6859
6914
|
ref: ref
|
|
6860
6915
|
}, controlledProps, {
|
|
6861
6916
|
as: as,
|
|
@@ -6873,10 +6928,10 @@ function (_ref, ref) {
|
|
|
6873
6928
|
className = _ref.className,
|
|
6874
6929
|
_ref$as = _ref.as,
|
|
6875
6930
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6876
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6931
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
6877
6932
|
|
|
6878
6933
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6879
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
6934
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
6880
6935
|
ref: ref,
|
|
6881
6936
|
className: classnames(className, prefix)
|
|
6882
6937
|
}));
|
|
@@ -7723,11 +7778,11 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7723
7778
|
size = _ref.size,
|
|
7724
7779
|
children = _ref.children,
|
|
7725
7780
|
scrollable = _ref.scrollable,
|
|
7726
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7781
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7727
7782
|
|
|
7728
7783
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7729
7784
|
var dialogClass = bsPrefix + "-dialog";
|
|
7730
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
7785
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
7731
7786
|
ref: ref,
|
|
7732
7787
|
className: classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7733
7788
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -7749,7 +7804,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7749
7804
|
onHide = _ref.onHide,
|
|
7750
7805
|
className = _ref.className,
|
|
7751
7806
|
children = _ref.children,
|
|
7752
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7807
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7753
7808
|
|
|
7754
7809
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7755
7810
|
var context = useContext(ModalContext);
|
|
@@ -7757,7 +7812,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7757
7812
|
if (context) context.onHide();
|
|
7758
7813
|
if (onHide) onHide();
|
|
7759
7814
|
});
|
|
7760
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
7815
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
7761
7816
|
ref: ref
|
|
7762
7817
|
}, props, {
|
|
7763
7818
|
className: classnames(className, bsPrefix)
|
|
@@ -7826,7 +7881,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7826
7881
|
onExited = _ref.onExited,
|
|
7827
7882
|
backdropClassName = _ref.backdropClassName,
|
|
7828
7883
|
propsManager = _ref.manager,
|
|
7829
|
-
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"]);
|
|
7830
7885
|
|
|
7831
7886
|
var _useState = useState({}),
|
|
7832
7887
|
modalStyle = _useState[0],
|
|
@@ -7992,12 +8047,12 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
7992
8047
|
};
|
|
7993
8048
|
|
|
7994
8049
|
var renderBackdrop = useCallback(function (backdropProps) {
|
|
7995
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({}, backdropProps, {
|
|
8050
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({}, backdropProps, {
|
|
7996
8051
|
className: classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7997
8052
|
}));
|
|
7998
8053
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7999
8054
|
|
|
8000
|
-
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
|
|
8001
8056
|
|
|
8002
8057
|
|
|
8003
8058
|
if (!animation) {
|
|
@@ -8005,7 +8060,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8005
8060
|
}
|
|
8006
8061
|
|
|
8007
8062
|
var renderDialog = function renderDialog(dialogProps) {
|
|
8008
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8063
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8009
8064
|
role: "dialog"
|
|
8010
8065
|
}, dialogProps, {
|
|
8011
8066
|
style: baseModalStyle,
|
|
@@ -8013,7 +8068,7 @@ var Modal = React__default.forwardRef(function (_ref, ref) {
|
|
|
8013
8068
|
onClick: backdrop ? handleClick : undefined,
|
|
8014
8069
|
onMouseUp: handleMouseUp,
|
|
8015
8070
|
"aria-labelledby": ariaLabelledby
|
|
8016
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, _extends({}, props, {
|
|
8071
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, _extends$1({}, props, {
|
|
8017
8072
|
role: "document",
|
|
8018
8073
|
onMouseDown: handleDialogMouseDown,
|
|
8019
8074
|
className: dialogClassName,
|
|
@@ -8068,10 +8123,10 @@ function (_ref, ref) {
|
|
|
8068
8123
|
children = _ref.children,
|
|
8069
8124
|
_ref$as = _ref.as,
|
|
8070
8125
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8071
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8126
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
8072
8127
|
|
|
8073
8128
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
8074
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8129
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8075
8130
|
ref: ref,
|
|
8076
8131
|
className: classnames(className, bsPrefix)
|
|
8077
8132
|
}), children);
|
|
@@ -8090,10 +8145,10 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
8090
8145
|
eventKey = _ref.eventKey,
|
|
8091
8146
|
onSelect = _ref.onSelect,
|
|
8092
8147
|
as = _ref.as,
|
|
8093
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8148
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
8094
8149
|
|
|
8095
8150
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
8096
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends({}, props, {
|
|
8151
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, _extends$1({}, props, {
|
|
8097
8152
|
href: href,
|
|
8098
8153
|
ref: ref,
|
|
8099
8154
|
eventKey: eventKey,
|
|
@@ -8126,7 +8181,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8126
8181
|
className = _useUncontrolled.className,
|
|
8127
8182
|
children = _useUncontrolled.children,
|
|
8128
8183
|
activeKey = _useUncontrolled.activeKey,
|
|
8129
|
-
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"]);
|
|
8130
8185
|
|
|
8131
8186
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8132
8187
|
var navbarBsPrefix;
|
|
@@ -8142,7 +8197,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8142
8197
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8143
8198
|
}
|
|
8144
8199
|
|
|
8145
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends({
|
|
8200
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, _extends$1({
|
|
8146
8201
|
as: as,
|
|
8147
8202
|
ref: ref,
|
|
8148
8203
|
activeKey: activeKey,
|
|
@@ -8158,11 +8213,11 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8158
8213
|
var bsPrefix = _ref.bsPrefix,
|
|
8159
8214
|
className = _ref.className,
|
|
8160
8215
|
as = _ref.as,
|
|
8161
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8216
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "as"]);
|
|
8162
8217
|
|
|
8163
8218
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8164
8219
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8165
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8220
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8166
8221
|
ref: ref,
|
|
8167
8222
|
className: classnames(className, bsPrefix)
|
|
8168
8223
|
}));
|
|
@@ -8172,11 +8227,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8172
8227
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8173
8228
|
var children = _ref.children,
|
|
8174
8229
|
bsPrefix = _ref.bsPrefix,
|
|
8175
|
-
props = _objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8230
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["children", "bsPrefix"]);
|
|
8176
8231
|
|
|
8177
8232
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8178
8233
|
return /*#__PURE__*/React__default.createElement(context.Consumer, null, function (context) {
|
|
8179
|
-
return /*#__PURE__*/React__default.createElement(Collapse, _extends({
|
|
8234
|
+
return /*#__PURE__*/React__default.createElement(Collapse, _extends$1({
|
|
8180
8235
|
in: !!(context && context.expanded)
|
|
8181
8236
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8182
8237
|
ref: ref,
|
|
@@ -8197,7 +8252,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8197
8252
|
_ref$as = _ref.as,
|
|
8198
8253
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8199
8254
|
onClick = _ref.onClick,
|
|
8200
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8255
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8201
8256
|
|
|
8202
8257
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8203
8258
|
|
|
@@ -8214,7 +8269,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8214
8269
|
props.type = 'button';
|
|
8215
8270
|
}
|
|
8216
8271
|
|
|
8217
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({}, props, {
|
|
8272
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({}, props, {
|
|
8218
8273
|
ref: ref,
|
|
8219
8274
|
onClick: handleClick,
|
|
8220
8275
|
"aria-label": label,
|
|
@@ -8252,7 +8307,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8252
8307
|
_onToggle = _useUncontrolled.onToggle,
|
|
8253
8308
|
onSelect = _useUncontrolled.onSelect,
|
|
8254
8309
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8255
|
-
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"]);
|
|
8256
8311
|
|
|
8257
8312
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8258
8313
|
var handleCollapse = useCallback(function () {
|
|
@@ -8286,7 +8341,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8286
8341
|
value: navbarContext
|
|
8287
8342
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8288
8343
|
value: handleCollapse
|
|
8289
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8344
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8290
8345
|
ref: ref
|
|
8291
8346
|
}, controlledProps, {
|
|
8292
8347
|
className: classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
@@ -8345,9 +8400,9 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8345
8400
|
disabled = _ref.disabled,
|
|
8346
8401
|
active = _ref.active,
|
|
8347
8402
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8348
|
-
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"]);
|
|
8349
8404
|
|
|
8350
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
8405
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
8351
8406
|
ref: ref
|
|
8352
8407
|
}, props, {
|
|
8353
8408
|
as: NavItem
|
|
@@ -8638,7 +8693,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8638
8693
|
style = _ref.style,
|
|
8639
8694
|
activeLabel = _ref.activeLabel,
|
|
8640
8695
|
children = _ref.children,
|
|
8641
|
-
props = _objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8696
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8642
8697
|
|
|
8643
8698
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8644
8699
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
@@ -8648,7 +8703,7 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8648
8703
|
active: active,
|
|
8649
8704
|
disabled: disabled
|
|
8650
8705
|
})
|
|
8651
|
-
}, /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8706
|
+
}, /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8652
8707
|
className: "page-link",
|
|
8653
8708
|
disabled: disabled
|
|
8654
8709
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -8665,7 +8720,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8665
8720
|
|
|
8666
8721
|
function Button(_ref2) {
|
|
8667
8722
|
var children = _ref2.children,
|
|
8668
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8723
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["children"]);
|
|
8669
8724
|
|
|
8670
8725
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8671
8726
|
"aria-hidden": "true"
|
|
@@ -8697,10 +8752,10 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8697
8752
|
className = _ref.className,
|
|
8698
8753
|
children = _ref.children,
|
|
8699
8754
|
size = _ref.size,
|
|
8700
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8755
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8701
8756
|
|
|
8702
8757
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8703
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
8758
|
+
return /*#__PURE__*/React__default.createElement("ul", _extends$1({
|
|
8704
8759
|
ref: ref
|
|
8705
8760
|
}, props, {
|
|
8706
8761
|
className: classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
@@ -8719,10 +8774,10 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8719
8774
|
bsPrefix = _ref.bsPrefix,
|
|
8720
8775
|
className = _ref.className,
|
|
8721
8776
|
children = _ref.children,
|
|
8722
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8777
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8723
8778
|
|
|
8724
8779
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8725
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8780
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8726
8781
|
ref: ref
|
|
8727
8782
|
}, props, {
|
|
8728
8783
|
className: classnames(bsPrefix, className)
|
|
@@ -8735,10 +8790,10 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8735
8790
|
bsPrefix = _ref.bsPrefix,
|
|
8736
8791
|
className = _ref.className,
|
|
8737
8792
|
children = _ref.children,
|
|
8738
|
-
props = _objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8793
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8739
8794
|
|
|
8740
8795
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8741
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8796
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8742
8797
|
ref: ref
|
|
8743
8798
|
}, props, {
|
|
8744
8799
|
className: classnames(className, bsPrefix)
|
|
@@ -8758,20 +8813,20 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8758
8813
|
arrowProps = _ref.arrowProps;
|
|
8759
8814
|
_ref.popper;
|
|
8760
8815
|
_ref.show;
|
|
8761
|
-
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"]);
|
|
8762
8817
|
|
|
8763
8818
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8764
8819
|
|
|
8765
8820
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8766
8821
|
primaryPlacement = _ref2[0];
|
|
8767
8822
|
|
|
8768
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8823
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8769
8824
|
ref: ref,
|
|
8770
8825
|
role: "tooltip",
|
|
8771
8826
|
style: style,
|
|
8772
8827
|
"x-placement": primaryPlacement,
|
|
8773
8828
|
className: classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8774
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8829
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8775
8830
|
className: "arrow"
|
|
8776
8831
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8777
8832
|
});
|
|
@@ -8809,14 +8864,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8809
8864
|
style = _ref.style,
|
|
8810
8865
|
variant = _ref.variant,
|
|
8811
8866
|
bsPrefix = _ref.bsPrefix,
|
|
8812
|
-
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"]);
|
|
8813
8868
|
|
|
8814
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8869
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8815
8870
|
ref: ref
|
|
8816
8871
|
}, props, {
|
|
8817
8872
|
role: "progressbar",
|
|
8818
8873
|
className: classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8819
|
-
style: _extends({
|
|
8874
|
+
style: _extends$1({
|
|
8820
8875
|
width: getPercentage(now, min, max) + "%"
|
|
8821
8876
|
}, style),
|
|
8822
8877
|
"aria-valuenow": now,
|
|
@@ -8829,7 +8884,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8829
8884
|
|
|
8830
8885
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8831
8886
|
var isChild = _ref2.isChild,
|
|
8832
|
-
props = _objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8887
|
+
props = _objectWithoutPropertiesLoose$1(_ref2, ["isChild"]);
|
|
8833
8888
|
|
|
8834
8889
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8835
8890
|
|
|
@@ -8848,9 +8903,9 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8848
8903
|
variant = props.variant,
|
|
8849
8904
|
className = props.className,
|
|
8850
8905
|
children = props.children,
|
|
8851
|
-
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"]);
|
|
8852
8907
|
|
|
8853
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8908
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8854
8909
|
ref: ref
|
|
8855
8910
|
}, wrapperProps, {
|
|
8856
8911
|
className: classnames(className, bsPrefix)
|
|
@@ -8881,11 +8936,11 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8881
8936
|
className = _ref.className,
|
|
8882
8937
|
children = _ref.children,
|
|
8883
8938
|
aspectRatio = _ref.aspectRatio,
|
|
8884
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8939
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8885
8940
|
|
|
8886
8941
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8887
8942
|
var child = React__default.Children.only(children);
|
|
8888
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
8943
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
8889
8944
|
ref: ref
|
|
8890
8945
|
}, props, {
|
|
8891
8946
|
className: classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
@@ -8905,7 +8960,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8905
8960
|
noGutters = _ref.noGutters,
|
|
8906
8961
|
_ref$as = _ref.as,
|
|
8907
8962
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8908
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8963
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8909
8964
|
|
|
8910
8965
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8911
8966
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8924,7 +8979,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8924
8979
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8925
8980
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8926
8981
|
});
|
|
8927
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
8982
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8928
8983
|
ref: ref
|
|
8929
8984
|
}, props, {
|
|
8930
8985
|
className: classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
@@ -8942,11 +8997,11 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8942
8997
|
_ref$as = _ref.as,
|
|
8943
8998
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8944
8999
|
className = _ref.className,
|
|
8945
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
9000
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8946
9001
|
|
|
8947
9002
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8948
9003
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8949
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9004
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
8950
9005
|
ref: ref
|
|
8951
9006
|
}, props, {
|
|
8952
9007
|
className: classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
@@ -9036,9 +9091,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9036
9091
|
menuRole = _ref.menuRole,
|
|
9037
9092
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
9038
9093
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
9039
|
-
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"]);
|
|
9040
9095
|
|
|
9041
|
-
return /*#__PURE__*/React__default.createElement(Dropdown, _extends({
|
|
9096
|
+
return /*#__PURE__*/React__default.createElement(Dropdown, _extends$1({
|
|
9042
9097
|
ref: ref
|
|
9043
9098
|
}, props, {
|
|
9044
9099
|
as: ButtonGroup
|
|
@@ -9116,10 +9171,10 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9116
9171
|
_ref$as = _ref.as,
|
|
9117
9172
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9118
9173
|
className = _ref.className,
|
|
9119
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9174
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "as", "className"]);
|
|
9120
9175
|
|
|
9121
9176
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9122
|
-
return /*#__PURE__*/React__default.createElement(Component, _extends({
|
|
9177
|
+
return /*#__PURE__*/React__default.createElement(Component, _extends$1({
|
|
9123
9178
|
ref: ref
|
|
9124
9179
|
}, props, {
|
|
9125
9180
|
className: classnames(className, decoratedBsPrefix)
|
|
@@ -9133,11 +9188,11 @@ function useTabContext(props) {
|
|
|
9133
9188
|
var activeKey = context.activeKey,
|
|
9134
9189
|
getControlledId = context.getControlledId,
|
|
9135
9190
|
getControllerId = context.getControllerId,
|
|
9136
|
-
rest = _objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9191
|
+
rest = _objectWithoutPropertiesLoose$1(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9137
9192
|
|
|
9138
9193
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9139
9194
|
var key = makeEventKey(props.eventKey);
|
|
9140
|
-
return _extends({}, props, {
|
|
9195
|
+
return _extends$1({}, props, {
|
|
9141
9196
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9142
9197
|
id: getControlledId(props.eventKey),
|
|
9143
9198
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9164,11 +9219,11 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9164
9219
|
_useTabContext$as = _useTabContext.as,
|
|
9165
9220
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as;
|
|
9166
9221
|
_useTabContext.eventKey;
|
|
9167
|
-
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"]);
|
|
9168
9223
|
|
|
9169
9224
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9170
9225
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9171
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, _extends({}, rest, {
|
|
9226
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, _extends$1({}, rest, {
|
|
9172
9227
|
ref: ref,
|
|
9173
9228
|
role: "tabpanel",
|
|
9174
9229
|
"aria-hidden": !active,
|
|
@@ -9228,11 +9283,11 @@ React__default.forwardRef(function (_ref, ref) {
|
|
|
9228
9283
|
size = _ref.size,
|
|
9229
9284
|
variant = _ref.variant,
|
|
9230
9285
|
responsive = _ref.responsive,
|
|
9231
|
-
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"]);
|
|
9232
9287
|
|
|
9233
9288
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9234
9289
|
var classes = classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9235
|
-
var table = /*#__PURE__*/React__default.createElement("table", _extends({}, props, {
|
|
9290
|
+
var table = /*#__PURE__*/React__default.createElement("table", _extends$1({}, props, {
|
|
9236
9291
|
className: classes,
|
|
9237
9292
|
ref: ref
|
|
9238
9293
|
}));
|
|
@@ -9267,7 +9322,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9267
9322
|
closeButton = _ref.closeButton,
|
|
9268
9323
|
className = _ref.className,
|
|
9269
9324
|
children = _ref.children,
|
|
9270
|
-
props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9325
|
+
props = _objectWithoutPropertiesLoose$1(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9271
9326
|
|
|
9272
9327
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9273
9328
|
var context = useContext(ToastContext);
|
|
@@ -9276,7 +9331,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9276
9331
|
context.onClose(e);
|
|
9277
9332
|
}
|
|
9278
9333
|
});
|
|
9279
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9334
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9280
9335
|
ref: ref
|
|
9281
9336
|
}, props, {
|
|
9282
9337
|
className: classnames(bsPrefix, className)
|
|
@@ -9307,7 +9362,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9307
9362
|
_ref$autohide = _ref.autohide,
|
|
9308
9363
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9309
9364
|
onClose = _ref.onClose,
|
|
9310
|
-
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"]);
|
|
9311
9366
|
|
|
9312
9367
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9313
9368
|
// timer in case these values change.
|
|
@@ -9335,7 +9390,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9335
9390
|
};
|
|
9336
9391
|
}, [onClose]);
|
|
9337
9392
|
var hasAnimation = !!(Transition && animation);
|
|
9338
|
-
var toast = /*#__PURE__*/React__default.createElement("div", _extends({}, props, {
|
|
9393
|
+
var toast = /*#__PURE__*/React__default.createElement("div", _extends$1({}, props, {
|
|
9339
9394
|
ref: ref,
|
|
9340
9395
|
className: classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9341
9396
|
role: "alert",
|
|
@@ -9369,7 +9424,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9369
9424
|
value = _ref.value,
|
|
9370
9425
|
disabled = _ref.disabled,
|
|
9371
9426
|
inputRef = _ref.inputRef,
|
|
9372
|
-
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"]);
|
|
9373
9428
|
|
|
9374
9429
|
var _useState = useState(false),
|
|
9375
9430
|
focused = _useState[0],
|
|
@@ -9381,7 +9436,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9381
9436
|
var handleBlur = useCallback(function (e) {
|
|
9382
9437
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9383
9438
|
}, []);
|
|
9384
|
-
return /*#__PURE__*/React__default.createElement(Button, _extends({}, props, {
|
|
9439
|
+
return /*#__PURE__*/React__default.createElement(Button, _extends$1({}, props, {
|
|
9385
9440
|
ref: ref,
|
|
9386
9441
|
className: classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9387
9442
|
type: undefined,
|
|
@@ -9415,7 +9470,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9415
9470
|
name = _useUncontrolled.name,
|
|
9416
9471
|
value = _useUncontrolled.value,
|
|
9417
9472
|
onChange = _useUncontrolled.onChange,
|
|
9418
|
-
controlledProps = _objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9473
|
+
controlledProps = _objectWithoutPropertiesLoose$1(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9419
9474
|
|
|
9420
9475
|
var getValues = function getValues() {
|
|
9421
9476
|
return value == null ? [] : [].concat(value);
|
|
@@ -9444,7 +9499,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9444
9499
|
};
|
|
9445
9500
|
|
|
9446
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;
|
|
9447
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends({}, controlledProps, {
|
|
9502
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, _extends$1({}, controlledProps, {
|
|
9448
9503
|
ref: ref,
|
|
9449
9504
|
toggle: true
|
|
9450
9505
|
}), map(children, function (child) {
|
|
@@ -9480,20 +9535,20 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9480
9535
|
arrowProps = _ref.arrowProps;
|
|
9481
9536
|
_ref.popper;
|
|
9482
9537
|
_ref.show;
|
|
9483
|
-
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"]);
|
|
9484
9539
|
|
|
9485
9540
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9486
9541
|
|
|
9487
9542
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9488
9543
|
primaryPlacement = _ref2[0];
|
|
9489
9544
|
|
|
9490
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9545
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9491
9546
|
ref: ref,
|
|
9492
9547
|
style: style,
|
|
9493
9548
|
role: "tooltip",
|
|
9494
9549
|
"x-placement": primaryPlacement,
|
|
9495
9550
|
className: classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9496
|
-
}, props), /*#__PURE__*/React__default.createElement("div", _extends({
|
|
9551
|
+
}, props), /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
9497
9552
|
className: "arrow"
|
|
9498
9553
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9499
9554
|
className: bsPrefix + "-inner"
|