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