@mjhls/mjh-framework 1.0.880-beta.0 → 1.0.881-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AlgoliaSearch.js +38 -37
- package/dist/cjs/ArticleCarousel.js +2 -1
- package/dist/cjs/ArticleProgramLandingPage.js +4 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +8 -1
- package/dist/cjs/ArticleSeriesListing.js +2 -1
- package/dist/cjs/Auth.js +6 -6
- package/dist/cjs/{BlockContent-9c6b07ad.js → BlockContent-091a991f.js} +2 -2
- package/dist/cjs/ConferenceArticleCard.js +3 -2
- package/dist/cjs/DeckContent.js +5 -4
- package/dist/cjs/DeckQueue.js +285 -5
- package/dist/cjs/EventsDeck.js +11 -11
- package/dist/cjs/ExternalResources.js +7 -6
- package/dist/cjs/Feature.js +3 -2
- package/dist/cjs/ForbesHero.js +7 -6
- package/dist/cjs/GridContent.js +16 -15
- package/dist/cjs/GridHero.js +7 -6
- package/dist/cjs/GroupDeck.js +7 -6
- package/dist/cjs/Hero.js +3 -2
- package/dist/cjs/HorizontalArticleListing.js +4 -3
- package/dist/cjs/HorizontalHero.js +3 -2
- package/dist/cjs/IssueContentDeck.js +8 -7
- package/dist/cjs/IssueDeck.js +6 -5
- package/dist/cjs/IssueLanding.js +7 -4
- package/dist/cjs/MasterDeck.js +550 -35
- package/dist/cjs/MediaSeriesLanding.js +269 -266
- package/dist/cjs/OncliveHero.js +3 -2
- package/dist/cjs/OncliveLargeHero.js +10 -9
- package/dist/cjs/{Pagination-9cb60fba.js → Pagination-d6a59f99.js} +3 -2
- package/dist/cjs/PartnerDetailListing.js +10 -7
- package/dist/cjs/PubSection.js +5 -2
- package/dist/cjs/PublicationDeck.js +6 -5
- package/dist/cjs/PublicationLanding.js +3 -3
- package/dist/cjs/QueueDeckExpanded.js +1547 -43
- package/dist/cjs/RelatedContent.js +5 -4
- package/dist/cjs/SeriesListingDeck.js +3 -2
- package/dist/cjs/{SeriesSlider-ec146338.js → SeriesSlider-49b81b0b.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +6 -5
- package/dist/cjs/TaxonomyDescription.js +4 -3
- package/dist/cjs/ThumbnailCard.js +5 -4
- package/dist/cjs/VerticalHero.js +3 -2
- package/dist/cjs/VideoProgramLandingPage.js +4 -3
- package/dist/cjs/VideoSeriesCard.js +5 -4
- package/dist/cjs/VideoSeriesLandingPage.js +9 -4
- package/dist/cjs/VideoSeriesListing.js +2 -1
- package/dist/cjs/View.js +12 -11
- package/dist/cjs/YahooHero.js +6 -5
- package/dist/cjs/YoutubeGroup.js +10 -9
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +4 -3
- package/dist/cjs/{urlFor-3a61226f.js → index-be0c82be.js} +1 -58
- package/dist/cjs/{index-17c6af5a.js → index-bf60a71c.js} +99 -72
- package/dist/cjs/index.js +11 -10
- package/dist/cjs/urlFor.js +57 -3
- package/dist/esm/AlgoliaSearch.js +2 -1
- package/dist/esm/ArticleCarousel.js +2 -1
- package/dist/esm/ArticleProgramLandingPage.js +4 -3
- package/dist/esm/ArticleSeriesLandingPage.js +8 -1
- package/dist/esm/ArticleSeriesListing.js +2 -1
- package/dist/esm/{BlockContent-f4515898.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/ConferenceArticleCard.js +2 -1
- package/dist/esm/DeckContent.js +2 -1
- package/dist/esm/DeckQueue.js +282 -2
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +4 -3
- package/dist/esm/Feature.js +2 -1
- package/dist/esm/ForbesHero.js +2 -1
- package/dist/esm/GridContent.js +2 -1
- package/dist/esm/GridHero.js +2 -1
- package/dist/esm/GroupDeck.js +2 -1
- package/dist/esm/Hero.js +2 -1
- package/dist/esm/HorizontalArticleListing.js +4 -3
- package/dist/esm/HorizontalHero.js +2 -1
- package/dist/esm/IssueContentDeck.js +2 -1
- package/dist/esm/IssueDeck.js +2 -1
- package/dist/esm/IssueLanding.js +7 -4
- package/dist/esm/MasterDeck.js +550 -35
- package/dist/esm/MediaSeriesLanding.js +8 -5
- package/dist/esm/OncliveHero.js +2 -1
- package/dist/esm/OncliveLargeHero.js +2 -1
- package/dist/esm/{Pagination-256b60e5.js → Pagination-f7c4c5ae.js} +3 -2
- package/dist/esm/PartnerDetailListing.js +7 -4
- package/dist/esm/PubSection.js +5 -2
- package/dist/esm/PublicationDeck.js +2 -1
- package/dist/esm/QueueDeckExpanded.js +1533 -29
- package/dist/esm/RelatedContent.js +2 -1
- package/dist/esm/SeriesListingDeck.js +3 -2
- package/dist/esm/{SeriesSlider-d6561e33.js → SeriesSlider-ce19fa25.js} +1 -1
- package/dist/esm/TaxonomyCard.js +3 -2
- package/dist/esm/TaxonomyDescription.js +4 -3
- package/dist/esm/ThumbnailCard.js +2 -1
- package/dist/esm/VerticalHero.js +2 -1
- package/dist/esm/VideoProgramLandingPage.js +4 -3
- package/dist/esm/VideoSeriesCard.js +2 -1
- package/dist/esm/VideoSeriesLandingPage.js +8 -3
- package/dist/esm/VideoSeriesListing.js +2 -1
- package/dist/esm/View.js +5 -4
- package/dist/esm/YahooHero.js +2 -1
- package/dist/esm/YoutubeGroup.js +2 -1
- package/dist/esm/getSerializers.js +4 -3
- package/dist/esm/{urlFor-23b2244b.js → index-73819142.js} +1 -58
- package/dist/esm/{index-a35a5c39.js → index-e495ac6f.js} +40 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/urlFor.js +60 -2
- package/package.json +1 -1
|
@@ -30,10 +30,13 @@ require('next/router');
|
|
|
30
30
|
require('./isSymbol-04666465.js');
|
|
31
31
|
require('./debounce-529c8d06.js');
|
|
32
32
|
require('./toNumber-36d1e7e5.js');
|
|
33
|
+
require('./index.es-9110add6.js');
|
|
33
34
|
var ReactDOM = _interopDefault(require('react-dom'));
|
|
35
|
+
require('./visibility-sensor-ad5e3116.js');
|
|
34
36
|
var slicedToArray = require('./slicedToArray-f6d4eaa8.js');
|
|
35
|
-
|
|
36
|
-
var
|
|
37
|
+
require('./index-be0c82be.js');
|
|
38
|
+
var urlFor = require('./urlFor.js');
|
|
39
|
+
var index$2 = require('./index-96b3db50.js');
|
|
37
40
|
require('./main-02daeefe.js');
|
|
38
41
|
require('./entities-310b46ee.js');
|
|
39
42
|
require('./stringify-bbc68047.js');
|
|
@@ -45,15 +48,16 @@ require('./ADInfeed-2e48af77.js');
|
|
|
45
48
|
require('./lodash-fc2922d0.js');
|
|
46
49
|
require('./ADlgInfeed-c39c7131.js');
|
|
47
50
|
require('react-bootstrap/Button');
|
|
48
|
-
|
|
51
|
+
require('react-bootstrap/Spinner');
|
|
52
|
+
require('./Pagination-d6a59f99.js');
|
|
53
|
+
var BlockContent = require('./BlockContent-091a991f.js');
|
|
49
54
|
require('./index-187c967e.js');
|
|
50
55
|
require('./smoothscroll-5054361f.js');
|
|
51
56
|
require('./GroupDeck.js');
|
|
52
57
|
require('react-bootstrap');
|
|
53
|
-
require('./Pagination-9cb60fba.js');
|
|
54
58
|
require('./iconBase-68959171.js');
|
|
55
59
|
require('./index.esm-90433435.js');
|
|
56
|
-
var getSerializers = require('./index-
|
|
60
|
+
var getSerializers = require('./index-bf60a71c.js');
|
|
57
61
|
require('./util-f2c1b65b.js');
|
|
58
62
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
59
63
|
require('next/head');
|
|
@@ -65,10 +69,9 @@ require('react-bootstrap/Figure');
|
|
|
65
69
|
require('react-bootstrap/OverlayTrigger');
|
|
66
70
|
require('react-bootstrap/Tooltip');
|
|
67
71
|
require('react-bootstrap/Popover');
|
|
68
|
-
require('react-bootstrap/Spinner');
|
|
69
72
|
var MasterDeck = require('./MasterDeck.js');
|
|
70
73
|
var defineProperty$1$1 = require('./defineProperty-77a37684.js');
|
|
71
|
-
var index$
|
|
74
|
+
var index$5 = require('./index-e2e62963.js');
|
|
72
75
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
73
76
|
var Link = _interopDefault(require('next/link'));
|
|
74
77
|
|
|
@@ -165,7 +168,7 @@ function useUncontrolled(props, config) {
|
|
|
165
168
|
var _ref = result,
|
|
166
169
|
defaultValue = _ref[defaultKey(fieldName)],
|
|
167
170
|
propsValue = _ref[fieldName],
|
|
168
|
-
rest = index$
|
|
171
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, [defaultKey(fieldName), fieldName].map(_toPropertyKey));
|
|
169
172
|
|
|
170
173
|
var handlerName = config[fieldName];
|
|
171
174
|
|
|
@@ -173,7 +176,7 @@ function useUncontrolled(props, config) {
|
|
|
173
176
|
value = _useUncontrolledProp[0],
|
|
174
177
|
handler = _useUncontrolledProp[1];
|
|
175
178
|
|
|
176
|
-
return index$
|
|
179
|
+
return index$5._extends({}, rest, (_extends2 = {}, _extends2[fieldName] = value, _extends2[handlerName] = handler, _extends2));
|
|
177
180
|
}, props);
|
|
178
181
|
}
|
|
179
182
|
|
|
@@ -224,7 +227,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
224
227
|
children = _ref.children,
|
|
225
228
|
eventKey = _ref.eventKey,
|
|
226
229
|
onClick = _ref.onClick,
|
|
227
|
-
props = index$
|
|
230
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "children", "eventKey", "onClick"]);
|
|
228
231
|
|
|
229
232
|
var accordionOnClick = useAccordionToggle(eventKey, onClick);
|
|
230
233
|
|
|
@@ -232,7 +235,7 @@ var AccordionToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
232
235
|
props.type = 'button';
|
|
233
236
|
}
|
|
234
237
|
|
|
235
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
236
239
|
ref: ref,
|
|
237
240
|
onClick: accordionOnClick
|
|
238
241
|
}, props), children);
|
|
@@ -814,7 +817,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
814
817
|
_onExiting = _this$props.onExiting,
|
|
815
818
|
_onExited = _this$props.onExited,
|
|
816
819
|
_nodeRef = _this$props.nodeRef,
|
|
817
|
-
childProps = index$
|
|
820
|
+
childProps = index$5._objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
818
821
|
|
|
819
822
|
return (
|
|
820
823
|
/*#__PURE__*/
|
|
@@ -1114,7 +1117,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1114
1117
|
dimension = _ref$dimension === void 0 ? 'height' : _ref$dimension,
|
|
1115
1118
|
_ref$getDimensionValu = _ref.getDimensionValue,
|
|
1116
1119
|
getDimensionValue = _ref$getDimensionValu === void 0 ? getDefaultDimensionValue : _ref$getDimensionValu,
|
|
1117
|
-
props = index$
|
|
1120
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "className", "children", "dimension", "getDimensionValue"]);
|
|
1118
1121
|
|
|
1119
1122
|
/* Compute dimension */
|
|
1120
1123
|
var computedDimension = typeof dimension === 'function' ? dimension() : dimension;
|
|
@@ -1150,7 +1153,7 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1150
1153
|
}, onExiting);
|
|
1151
1154
|
}, [computedDimension, onExiting]);
|
|
1152
1155
|
return /*#__PURE__*/React__default.createElement(Transition // @ts-ignore
|
|
1153
|
-
, index$
|
|
1156
|
+
, index$5._extends({
|
|
1154
1157
|
ref: ref,
|
|
1155
1158
|
addEndListener: transitionEnd
|
|
1156
1159
|
}, props, {
|
|
@@ -1161,8 +1164,8 @@ var Collapse = React__default.forwardRef(function (_ref, ref) {
|
|
|
1161
1164
|
onExit: handleExit,
|
|
1162
1165
|
onExiting: handleExiting
|
|
1163
1166
|
}), function (state, innerProps) {
|
|
1164
|
-
return React__default.cloneElement(children, index$
|
|
1165
|
-
className: index$
|
|
1167
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1168
|
+
className: index$5.classnames(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
|
|
1166
1169
|
}));
|
|
1167
1170
|
});
|
|
1168
1171
|
}); // @ts-ignore
|
|
@@ -1173,14 +1176,14 @@ Collapse.defaultProps = defaultProps;
|
|
|
1173
1176
|
var AccordionCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
1174
1177
|
var children = _ref.children,
|
|
1175
1178
|
eventKey = _ref.eventKey,
|
|
1176
|
-
props = index$
|
|
1179
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "eventKey"]);
|
|
1177
1180
|
|
|
1178
1181
|
var contextEventKey = React.useContext(context); // Empty SelectableContext is to prevent elements in the collapse
|
|
1179
1182
|
// from collapsing the accordion when clicked.
|
|
1180
1183
|
|
|
1181
1184
|
return /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1182
1185
|
value: null
|
|
1183
|
-
}, /*#__PURE__*/React__default.createElement(Collapse, index$
|
|
1186
|
+
}, /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
1184
1187
|
ref: ref,
|
|
1185
1188
|
in: contextEventKey === eventKey
|
|
1186
1189
|
}, props), /*#__PURE__*/React__default.createElement("div", null, React__default.Children.only(children))));
|
|
@@ -1198,14 +1201,14 @@ var Accordion = React__default.forwardRef(function (props, ref) {
|
|
|
1198
1201
|
children = _useUncontrolled.children,
|
|
1199
1202
|
className = _useUncontrolled.className,
|
|
1200
1203
|
onSelect = _useUncontrolled.onSelect,
|
|
1201
|
-
controlledProps = index$
|
|
1204
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "activeKey", "bsPrefix", "children", "className", "onSelect"]);
|
|
1202
1205
|
|
|
1203
|
-
var finalClassName = index$
|
|
1206
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'accordion'));
|
|
1204
1207
|
return /*#__PURE__*/React__default.createElement(context.Provider, {
|
|
1205
1208
|
value: activeKey || null
|
|
1206
1209
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
1207
1210
|
value: onSelect || null
|
|
1208
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
1211
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1209
1212
|
ref: ref
|
|
1210
1213
|
}, controlledProps, {
|
|
1211
1214
|
className: finalClassName
|
|
@@ -1252,20 +1255,20 @@ var fadeStyles = (_fadeStyles = {}, _fadeStyles[ENTERING] = 'show', _fadeStyles[
|
|
|
1252
1255
|
var Fade = React__default.forwardRef(function (_ref, ref) {
|
|
1253
1256
|
var className = _ref.className,
|
|
1254
1257
|
children = _ref.children,
|
|
1255
|
-
props = index$
|
|
1258
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className", "children"]);
|
|
1256
1259
|
|
|
1257
1260
|
var handleEnter = React.useCallback(function (node) {
|
|
1258
1261
|
triggerBrowserReflow(node);
|
|
1259
1262
|
if (props.onEnter) props.onEnter(node);
|
|
1260
1263
|
}, [props]);
|
|
1261
|
-
return /*#__PURE__*/React__default.createElement(Transition, index$
|
|
1264
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1262
1265
|
ref: ref,
|
|
1263
1266
|
addEndListener: transitionEnd
|
|
1264
1267
|
}, props, {
|
|
1265
1268
|
onEnter: handleEnter
|
|
1266
1269
|
}), function (status, innerProps) {
|
|
1267
|
-
return React__default.cloneElement(children, index$
|
|
1268
|
-
className: index$
|
|
1270
|
+
return React__default.cloneElement(children, index$5._extends({}, innerProps, {
|
|
1271
|
+
className: index$5.classnames('fade', className, children.props.className, fadeStyles[status])
|
|
1269
1272
|
}));
|
|
1270
1273
|
});
|
|
1271
1274
|
});
|
|
@@ -1283,12 +1286,12 @@ var CloseButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
1283
1286
|
var label = _ref.label,
|
|
1284
1287
|
onClick = _ref.onClick,
|
|
1285
1288
|
className = _ref.className,
|
|
1286
|
-
props = index$
|
|
1289
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["label", "onClick", "className"]);
|
|
1287
1290
|
|
|
1288
|
-
return /*#__PURE__*/React__default.createElement("button", index$
|
|
1291
|
+
return /*#__PURE__*/React__default.createElement("button", index$5._extends({
|
|
1289
1292
|
ref: ref,
|
|
1290
1293
|
type: "button",
|
|
1291
|
-
className: index$
|
|
1294
|
+
className: index$5.classnames('close', className),
|
|
1292
1295
|
onClick: onClick
|
|
1293
1296
|
}, props), /*#__PURE__*/React__default.createElement("span", {
|
|
1294
1297
|
"aria-hidden": "true"
|
|
@@ -1302,9 +1305,9 @@ CloseButton.defaultProps = defaultProps$2;
|
|
|
1302
1305
|
|
|
1303
1306
|
var divWithClassName = (function (className) {
|
|
1304
1307
|
return React__default.forwardRef(function (p, ref) {
|
|
1305
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
1308
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, p, {
|
|
1306
1309
|
ref: ref,
|
|
1307
|
-
className: index$
|
|
1310
|
+
className: index$5.classnames(p.className, className)
|
|
1308
1311
|
}));
|
|
1309
1312
|
});
|
|
1310
1313
|
});
|
|
@@ -1333,12 +1336,12 @@ function createWithBsPrefix(prefix, _temp) {
|
|
|
1333
1336
|
bsPrefix = _ref2.bsPrefix,
|
|
1334
1337
|
_ref2$as = _ref2.as,
|
|
1335
1338
|
Tag = _ref2$as === void 0 ? Component || 'div' : _ref2$as,
|
|
1336
|
-
props = index$
|
|
1339
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
|
|
1337
1340
|
|
|
1338
1341
|
var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
1339
|
-
return /*#__PURE__*/React__default.createElement(Tag, index$
|
|
1342
|
+
return /*#__PURE__*/React__default.createElement(Tag, index$5._extends({
|
|
1340
1343
|
ref: ref,
|
|
1341
|
-
className: index$
|
|
1344
|
+
className: index$5.classnames(className, resolvedPrefix)
|
|
1342
1345
|
}, props));
|
|
1343
1346
|
});
|
|
1344
1347
|
BsComponent.defaultProps = defaultProps;
|
|
@@ -1363,7 +1366,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1363
1366
|
Component = _ref$as === void 0 ? 'a' : _ref$as,
|
|
1364
1367
|
disabled = _ref.disabled,
|
|
1365
1368
|
onKeyDown = _ref.onKeyDown,
|
|
1366
|
-
props = index$
|
|
1369
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "disabled", "onKeyDown"]);
|
|
1367
1370
|
|
|
1368
1371
|
var handleClick = function handleClick(event) {
|
|
1369
1372
|
var href = props.href,
|
|
@@ -1402,7 +1405,7 @@ var SafeAnchor = React__default.forwardRef(function (_ref, ref) {
|
|
|
1402
1405
|
props['aria-disabled'] = true;
|
|
1403
1406
|
}
|
|
1404
1407
|
|
|
1405
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1408
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1406
1409
|
ref: ref
|
|
1407
1410
|
}, props, {
|
|
1408
1411
|
onClick: handleClick,
|
|
@@ -1437,7 +1440,7 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1437
1440
|
onClose = _useUncontrolled.onClose,
|
|
1438
1441
|
dismissible = _useUncontrolled.dismissible,
|
|
1439
1442
|
transition = _useUncontrolled.transition,
|
|
1440
|
-
props = index$
|
|
1443
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "show", "closeLabel", "className", "children", "variant", "onClose", "dismissible", "transition"]);
|
|
1441
1444
|
|
|
1442
1445
|
var prefix = useBootstrapPrefix(bsPrefix, 'alert');
|
|
1443
1446
|
var handleClose = useEventCallback(function (e) {
|
|
@@ -1446,17 +1449,17 @@ var Alert = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
1446
1449
|
}
|
|
1447
1450
|
});
|
|
1448
1451
|
var Transition = transition === true ? Fade : transition;
|
|
1449
|
-
var alert = /*#__PURE__*/React__default.createElement("div", index$
|
|
1452
|
+
var alert = /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
1450
1453
|
role: "alert"
|
|
1451
1454
|
}, Transition ? props : undefined, {
|
|
1452
1455
|
ref: ref,
|
|
1453
|
-
className: index$
|
|
1456
|
+
className: index$5.classnames(className, prefix, variant && prefix + "-" + variant, dismissible && prefix + "-dismissible")
|
|
1454
1457
|
}), dismissible && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
1455
1458
|
onClick: handleClose,
|
|
1456
1459
|
label: closeLabel
|
|
1457
1460
|
}), children);
|
|
1458
1461
|
if (!Transition) return show ? alert : null;
|
|
1459
|
-
return /*#__PURE__*/React__default.createElement(Transition, index$
|
|
1462
|
+
return /*#__PURE__*/React__default.createElement(Transition, index$5._extends({
|
|
1460
1463
|
unmountOnExit: true
|
|
1461
1464
|
}, props, {
|
|
1462
1465
|
ref: undefined,
|
|
@@ -1478,13 +1481,13 @@ var Badge = React__default.forwardRef(function (_ref, ref) {
|
|
|
1478
1481
|
className = _ref.className,
|
|
1479
1482
|
_ref$as = _ref.as,
|
|
1480
1483
|
Component = _ref$as === void 0 ? 'span' : _ref$as,
|
|
1481
|
-
props = index$
|
|
1484
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "pill", "className", "as"]);
|
|
1482
1485
|
|
|
1483
1486
|
var prefix = useBootstrapPrefix(bsPrefix, 'badge');
|
|
1484
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1487
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1485
1488
|
ref: ref
|
|
1486
1489
|
}, props, {
|
|
1487
|
-
className: index$
|
|
1490
|
+
className: index$5.classnames(className, prefix, pill && prefix + "-pill", variant && prefix + "-" + variant)
|
|
1488
1491
|
}));
|
|
1489
1492
|
});
|
|
1490
1493
|
Badge.displayName = 'Badge';
|
|
@@ -1507,17 +1510,17 @@ var BreadcrumbItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1507
1510
|
href = _ref.href,
|
|
1508
1511
|
title = _ref.title,
|
|
1509
1512
|
target = _ref.target,
|
|
1510
|
-
props = index$
|
|
1513
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "children", "className", "as", "linkAs", "linkProps", "href", "title", "target"]);
|
|
1511
1514
|
|
|
1512
1515
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb-item');
|
|
1513
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1516
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1514
1517
|
ref: ref
|
|
1515
1518
|
}, props, {
|
|
1516
|
-
className: index$
|
|
1519
|
+
className: index$5.classnames(prefix, className, {
|
|
1517
1520
|
active: active
|
|
1518
1521
|
}),
|
|
1519
1522
|
"aria-current": active ? 'page' : undefined
|
|
1520
|
-
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$
|
|
1523
|
+
}), active ? children : /*#__PURE__*/React__default.createElement(LinkComponent, index$5._extends({}, linkProps, {
|
|
1521
1524
|
href: href,
|
|
1522
1525
|
title: title,
|
|
1523
1526
|
target: target
|
|
@@ -1538,15 +1541,15 @@ var Breadcrumb = React__default.forwardRef(function (_ref, ref) {
|
|
|
1538
1541
|
label = _ref.label,
|
|
1539
1542
|
_ref$as = _ref.as,
|
|
1540
1543
|
Component = _ref$as === void 0 ? 'nav' : _ref$as,
|
|
1541
|
-
props = index$
|
|
1544
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "listProps", "children", "label", "as"]);
|
|
1542
1545
|
|
|
1543
1546
|
var prefix = useBootstrapPrefix(bsPrefix, 'breadcrumb');
|
|
1544
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1547
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1545
1548
|
"aria-label": label,
|
|
1546
1549
|
className: className,
|
|
1547
1550
|
ref: ref
|
|
1548
|
-
}, props), /*#__PURE__*/React__default.createElement("ol", index$
|
|
1549
|
-
className: index$
|
|
1551
|
+
}, props), /*#__PURE__*/React__default.createElement("ol", index$5._extends({}, listProps, {
|
|
1552
|
+
className: index$5.classnames(prefix, listProps == null ? void 0 : listProps.className)
|
|
1550
1553
|
}), children));
|
|
1551
1554
|
});
|
|
1552
1555
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
@@ -1567,16 +1570,16 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1567
1570
|
block = _ref.block,
|
|
1568
1571
|
type = _ref.type,
|
|
1569
1572
|
as = _ref.as,
|
|
1570
|
-
props = index$
|
|
1573
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "size", "active", "className", "block", "type", "as"]);
|
|
1571
1574
|
|
|
1572
1575
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn');
|
|
1573
|
-
var classes = index$
|
|
1576
|
+
var classes = index$5.classnames(className, prefix, active && 'active', variant && prefix + "-" + variant, block && prefix + "-block", size && prefix + "-" + size);
|
|
1574
1577
|
|
|
1575
1578
|
if (props.href) {
|
|
1576
|
-
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$
|
|
1579
|
+
return /*#__PURE__*/React__default.createElement(SafeAnchor, index$5._extends({}, props, {
|
|
1577
1580
|
as: as,
|
|
1578
1581
|
ref: ref,
|
|
1579
|
-
className: index$
|
|
1582
|
+
className: index$5.classnames(classes, props.disabled && 'disabled')
|
|
1580
1583
|
}));
|
|
1581
1584
|
}
|
|
1582
1585
|
|
|
@@ -1591,7 +1594,7 @@ var Button = React__default.forwardRef(function (_ref, ref) {
|
|
|
1591
1594
|
}
|
|
1592
1595
|
|
|
1593
1596
|
var Component = as || 'button';
|
|
1594
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1597
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
1595
1598
|
className: classes
|
|
1596
1599
|
}));
|
|
1597
1600
|
});
|
|
@@ -1611,14 +1614,14 @@ var ButtonGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
1611
1614
|
className = _ref.className,
|
|
1612
1615
|
_ref$as = _ref.as,
|
|
1613
1616
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1614
|
-
rest = index$
|
|
1617
|
+
rest = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "toggle", "vertical", "className", "as"]);
|
|
1615
1618
|
|
|
1616
1619
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-group');
|
|
1617
1620
|
var baseClass = prefix;
|
|
1618
1621
|
if (vertical) baseClass = prefix + "-vertical";
|
|
1619
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
1620
1623
|
ref: ref,
|
|
1621
|
-
className: index$
|
|
1624
|
+
className: index$5.classnames(className, baseClass, size && prefix + "-" + size, toggle && prefix + "-toggle")
|
|
1622
1625
|
}));
|
|
1623
1626
|
});
|
|
1624
1627
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
@@ -1630,12 +1633,12 @@ var defaultProps$9 = {
|
|
|
1630
1633
|
var ButtonToolbar = React__default.forwardRef(function (_ref, ref) {
|
|
1631
1634
|
var bsPrefix = _ref.bsPrefix,
|
|
1632
1635
|
className = _ref.className,
|
|
1633
|
-
props = index$
|
|
1636
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className"]);
|
|
1634
1637
|
|
|
1635
1638
|
var prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
1636
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
1639
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
1637
1640
|
ref: ref,
|
|
1638
|
-
className: index$
|
|
1641
|
+
className: index$5.classnames(className, prefix)
|
|
1639
1642
|
}));
|
|
1640
1643
|
});
|
|
1641
1644
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
@@ -1654,12 +1657,12 @@ function (_ref, ref) {
|
|
|
1654
1657
|
variant = _ref.variant,
|
|
1655
1658
|
_ref$as = _ref.as,
|
|
1656
1659
|
Component = _ref$as === void 0 ? 'img' : _ref$as,
|
|
1657
|
-
props = index$
|
|
1660
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "variant", "as"]);
|
|
1658
1661
|
|
|
1659
1662
|
var prefix = useBootstrapPrefix(bsPrefix, 'card-img');
|
|
1660
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1663
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1661
1664
|
ref: ref,
|
|
1662
|
-
className: index$
|
|
1665
|
+
className: index$5.classnames(variant ? prefix + "-" + variant : prefix, className)
|
|
1663
1666
|
}, props));
|
|
1664
1667
|
});
|
|
1665
1668
|
CardImg.displayName = 'CardImg';
|
|
@@ -1696,7 +1699,7 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1696
1699
|
children = _ref.children,
|
|
1697
1700
|
_ref$as = _ref.as,
|
|
1698
1701
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
1699
|
-
props = index$
|
|
1702
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "bg", "text", "border", "body", "children", "as"]);
|
|
1700
1703
|
|
|
1701
1704
|
var prefix = useBootstrapPrefix(bsPrefix, 'card');
|
|
1702
1705
|
var cardContext = React.useMemo(function () {
|
|
@@ -1706,10 +1709,10 @@ var Card = React__default.forwardRef(function (_ref, ref) {
|
|
|
1706
1709
|
}, [prefix]);
|
|
1707
1710
|
return /*#__PURE__*/React__default.createElement(context$1.Provider, {
|
|
1708
1711
|
value: cardContext
|
|
1709
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
1712
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1710
1713
|
ref: ref
|
|
1711
1714
|
}, props, {
|
|
1712
|
-
className: index$
|
|
1715
|
+
className: index$5.classnames(className, prefix, bg && "bg-" + bg, text && "text-" + text, border && "border-" + border)
|
|
1713
1716
|
}), body ?
|
|
1714
1717
|
/*#__PURE__*/
|
|
1715
1718
|
// @ts-ignore
|
|
@@ -1909,10 +1912,10 @@ var CarouselItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
1909
1912
|
bsPrefix = _ref.bsPrefix,
|
|
1910
1913
|
children = _ref.children,
|
|
1911
1914
|
className = _ref.className,
|
|
1912
|
-
props = index$
|
|
1915
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "children", "className"]);
|
|
1913
1916
|
|
|
1914
|
-
var finalClassName = index$
|
|
1915
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
1917
|
+
var finalClassName = index$5.classnames(className, useBootstrapPrefix(bsPrefix, 'carousel-item'));
|
|
1918
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
1916
1919
|
ref: ref
|
|
1917
1920
|
}, props, {
|
|
1918
1921
|
className: finalClassName
|
|
@@ -2117,7 +2120,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2117
2120
|
nextLabel = _useUncontrolled.nextLabel,
|
|
2118
2121
|
className = _useUncontrolled.className,
|
|
2119
2122
|
children = _useUncontrolled.children,
|
|
2120
|
-
props = index$
|
|
2123
|
+
props = index$5._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"]);
|
|
2121
2124
|
|
|
2122
2125
|
var prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
2123
2126
|
var nextDirectionRef = React.useRef(null);
|
|
@@ -2374,7 +2377,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2374
2377
|
};
|
|
2375
2378
|
});
|
|
2376
2379
|
}, [indicators, numChildren, onSelect]);
|
|
2377
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
2380
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
2378
2381
|
ref: elementRef
|
|
2379
2382
|
}, props, {
|
|
2380
2383
|
onKeyDown: handleKeyDown,
|
|
@@ -2383,7 +2386,7 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2383
2386
|
onTouchStart: handleTouchStart,
|
|
2384
2387
|
onTouchMove: handleTouchMove,
|
|
2385
2388
|
onTouchEnd: handleTouchEnd,
|
|
2386
|
-
className: index$
|
|
2389
|
+
className: index$5.classnames(className, prefix, slide && 'slide', fade && prefix + "-fade")
|
|
2387
2390
|
}), indicators && /*#__PURE__*/React__default.createElement("ol", {
|
|
2388
2391
|
className: prefix + "-indicators"
|
|
2389
2392
|
}, map(children, function (_child, index) {
|
|
@@ -2403,10 +2406,10 @@ function CarouselFunc(uncontrolledProps, ref) {
|
|
|
2403
2406
|
addEndListener: transitionEnd
|
|
2404
2407
|
}, function (status) {
|
|
2405
2408
|
return React__default.cloneElement(child, {
|
|
2406
|
-
className: index$
|
|
2409
|
+
className: index$5.classnames(child.props.className, isActive && status !== 'entered' && orderClassName, (status === 'entered' || status === 'exiting') && 'active', (status === 'entering' || status === 'exiting') && directionalClassName)
|
|
2407
2410
|
});
|
|
2408
2411
|
}) : React__default.cloneElement(child, {
|
|
2409
|
-
className: index$
|
|
2412
|
+
className: index$5.classnames(child.props.className, isActive && 'active')
|
|
2410
2413
|
});
|
|
2411
2414
|
})), controls && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (wrap || activeIndex !== 0) && /*#__PURE__*/React__default.createElement(SafeAnchor, {
|
|
2412
2415
|
className: prefix + "-control-prev",
|
|
@@ -2435,7 +2438,7 @@ function (_ref, ref) {
|
|
|
2435
2438
|
className = _ref.className,
|
|
2436
2439
|
_ref$as = _ref.as,
|
|
2437
2440
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
2438
|
-
props = index$
|
|
2441
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
2439
2442
|
|
|
2440
2443
|
var prefix = useBootstrapPrefix(bsPrefix, 'col');
|
|
2441
2444
|
var spans = [];
|
|
@@ -2466,9 +2469,9 @@ function (_ref, ref) {
|
|
|
2466
2469
|
spans.push(prefix); // plain 'col'
|
|
2467
2470
|
}
|
|
2468
2471
|
|
|
2469
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
2472
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
2470
2473
|
ref: ref,
|
|
2471
|
-
className: index$
|
|
2474
|
+
className: index$5.classnames.apply(void 0, [className].concat(spans, classes))
|
|
2472
2475
|
}));
|
|
2473
2476
|
});
|
|
2474
2477
|
Col.displayName = 'Col';
|
|
@@ -5286,7 +5289,7 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5286
5289
|
onSelect = _ref.onSelect,
|
|
5287
5290
|
propActive = _ref.active,
|
|
5288
5291
|
Component = _ref.as,
|
|
5289
|
-
props = index$
|
|
5292
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "eventKey", "disabled", "href", "onClick", "onSelect", "active", "as"]);
|
|
5290
5293
|
|
|
5291
5294
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
5292
5295
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
@@ -5310,11 +5313,11 @@ var DropdownItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
5310
5313
|
/*#__PURE__*/
|
|
5311
5314
|
// "TS2604: JSX element type 'Component' does not have any construct or call signatures."
|
|
5312
5315
|
// @ts-ignore
|
|
5313
|
-
React__default.createElement(Component, index$
|
|
5316
|
+
React__default.createElement(Component, index$5._extends({}, props, {
|
|
5314
5317
|
ref: ref,
|
|
5315
5318
|
href: href,
|
|
5316
5319
|
disabled: disabled,
|
|
5317
|
-
className: index$
|
|
5320
|
+
className: index$5.classnames(className, prefix, active && 'active', disabled && 'disabled'),
|
|
5318
5321
|
onClick: handleClick
|
|
5319
5322
|
}), children)
|
|
5320
5323
|
);
|
|
@@ -5499,7 +5502,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5499
5502
|
_ref$as = _ref.as,
|
|
5500
5503
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
5501
5504
|
popperConfig = _ref.popperConfig,
|
|
5502
|
-
props = index$
|
|
5505
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "align", "alignRight", "rootCloseEvent", "flip", "show", "renderOnMount", "as", "popperConfig"]);
|
|
5503
5506
|
|
|
5504
5507
|
var isNavbar = React.useContext(context$2);
|
|
5505
5508
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
@@ -5535,7 +5538,7 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5535
5538
|
show: showProps,
|
|
5536
5539
|
alignEnd: alignRight,
|
|
5537
5540
|
usePopper: !isNavbar && alignClasses.length === 0,
|
|
5538
|
-
popperConfig: index$
|
|
5541
|
+
popperConfig: index$5._extends({}, popperConfig, {
|
|
5539
5542
|
modifiers: marginModifiers.concat((popperConfig == null ? void 0 : popperConfig.modifiers) || [])
|
|
5540
5543
|
})
|
|
5541
5544
|
}),
|
|
@@ -5558,12 +5561,12 @@ var DropdownMenu$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5558
5561
|
if (placement) {
|
|
5559
5562
|
// we don't need the default popper style,
|
|
5560
5563
|
// menus are display: none when not shown.
|
|
5561
|
-
props.style = index$
|
|
5564
|
+
props.style = index$5._extends({}, props.style, {}, menuProps.style);
|
|
5562
5565
|
props['x-placement'] = placement;
|
|
5563
5566
|
}
|
|
5564
5567
|
|
|
5565
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
5566
|
-
className: index$
|
|
5568
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, menuProps, {
|
|
5569
|
+
className: index$5.classnames.apply(void 0, [className, prefix, show && 'show', alignEnd && prefix + "-right"].concat(alignClasses))
|
|
5567
5570
|
}));
|
|
5568
5571
|
});
|
|
5569
5572
|
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
@@ -5603,7 +5606,7 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5603
5606
|
childBsPrefix = _ref.childBsPrefix,
|
|
5604
5607
|
_ref$as = _ref.as,
|
|
5605
5608
|
Component = _ref$as === void 0 ? Button : _ref$as,
|
|
5606
|
-
props = index$
|
|
5609
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "split", "className", "childBsPrefix", "as"]);
|
|
5607
5610
|
|
|
5608
5611
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
5609
5612
|
|
|
@@ -5618,9 +5621,9 @@ var DropdownToggle$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
5618
5621
|
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle')); // This intentionally forwards size and variant (if set) to the
|
|
5619
5622
|
// underlying component, to allow it to render size and style variants.
|
|
5620
5623
|
|
|
5621
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
5624
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
5622
5625
|
onClick: toggle,
|
|
5623
|
-
className: index$
|
|
5626
|
+
className: index$5.classnames(className, prefix, split && prefix + "-split")
|
|
5624
5627
|
}, toggleProps, props));
|
|
5625
5628
|
});
|
|
5626
5629
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
@@ -5656,7 +5659,7 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5656
5659
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
5657
5660
|
Component = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
5658
5661
|
_4 = _useUncontrolled.navbar,
|
|
5659
|
-
props = index$
|
|
5662
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "drop", "show", "className", "alignRight", "onSelect", "onToggle", "focusFirstItemOnShow", "as", "navbar"]);
|
|
5660
5663
|
|
|
5661
5664
|
var onSelectCtx = React.useContext(SelectableContext);
|
|
5662
5665
|
var prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
@@ -5689,9 +5692,9 @@ var Dropdown$1 = React__default.forwardRef(function (pProps, ref) {
|
|
|
5689
5692
|
itemSelector: "." + prefix + "-item:not(.disabled):not(:disabled)"
|
|
5690
5693
|
}, function (_ref) {
|
|
5691
5694
|
var dropdownProps = _ref.props;
|
|
5692
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
5695
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, dropdownProps, {
|
|
5693
5696
|
ref: ref,
|
|
5694
|
-
className: index$
|
|
5697
|
+
className: index$5.classnames(className, show && 'show', (!drop || drop === 'down') && prefix, drop === 'up' && 'dropup', drop === 'right' && 'dropright', drop === 'left' && 'dropleft')
|
|
5695
5698
|
}));
|
|
5696
5699
|
}));
|
|
5697
5700
|
});
|
|
@@ -5777,9 +5780,9 @@ var DropdownButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
5777
5780
|
disabled = _ref.disabled,
|
|
5778
5781
|
href = _ref.href,
|
|
5779
5782
|
id = _ref.id,
|
|
5780
|
-
props = index$
|
|
5783
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["title", "children", "bsPrefix", "rootCloseEvent", "variant", "size", "menuAlign", "menuRole", "renderMenuOnMount", "disabled", "href", "id"]);
|
|
5781
5784
|
|
|
5782
|
-
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$
|
|
5785
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
5783
5786
|
ref: ref
|
|
5784
5787
|
}, props), /*#__PURE__*/React__default.createElement(DropdownToggle$1, {
|
|
5785
5788
|
id: id,
|
|
@@ -5912,11 +5915,11 @@ function (_ref, ref) {
|
|
|
5912
5915
|
type = _ref$type === void 0 ? 'valid' : _ref$type,
|
|
5913
5916
|
_ref$tooltip = _ref.tooltip,
|
|
5914
5917
|
tooltip = _ref$tooltip === void 0 ? false : _ref$tooltip,
|
|
5915
|
-
props = index$
|
|
5918
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "type", "tooltip"]);
|
|
5916
5919
|
|
|
5917
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
5920
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5918
5921
|
ref: ref,
|
|
5919
|
-
className: index$
|
|
5922
|
+
className: index$5.classnames(className, type + "-" + (tooltip ? 'tooltip' : 'feedback'))
|
|
5920
5923
|
}));
|
|
5921
5924
|
});
|
|
5922
5925
|
Feedback.displayName = 'Feedback';
|
|
@@ -5940,7 +5943,7 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5940
5943
|
isStatic = _ref.isStatic,
|
|
5941
5944
|
_ref$as = _ref.as,
|
|
5942
5945
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
5943
|
-
props = index$
|
|
5946
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "type", "isValid", "isInvalid", "isStatic", "as"]);
|
|
5944
5947
|
|
|
5945
5948
|
var _useContext = React.useContext(FormContext),
|
|
5946
5949
|
controlId = _useContext.controlId,
|
|
@@ -5951,11 +5954,11 @@ var FormCheckInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
5951
5954
|
defaultPrefix = _ref2[1];
|
|
5952
5955
|
|
|
5953
5956
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5954
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
5957
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
5955
5958
|
ref: ref,
|
|
5956
5959
|
type: type,
|
|
5957
5960
|
id: id || controlId,
|
|
5958
|
-
className: index$
|
|
5961
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid', isStatic && 'position-static')
|
|
5959
5962
|
}));
|
|
5960
5963
|
});
|
|
5961
5964
|
FormCheckInput.displayName = 'FormCheckInput';
|
|
@@ -5965,7 +5968,7 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5965
5968
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
5966
5969
|
className = _ref.className,
|
|
5967
5970
|
htmlFor = _ref.htmlFor,
|
|
5968
|
-
props = index$
|
|
5971
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
5969
5972
|
|
|
5970
5973
|
var _useContext = React.useContext(FormContext),
|
|
5971
5974
|
controlId = _useContext.controlId,
|
|
@@ -5976,10 +5979,10 @@ var FormCheckLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
5976
5979
|
defaultPrefix = _ref2[1];
|
|
5977
5980
|
|
|
5978
5981
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
5979
|
-
return /*#__PURE__*/React__default.createElement("label", index$
|
|
5982
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
5980
5983
|
ref: ref,
|
|
5981
5984
|
htmlFor: htmlFor || controlId,
|
|
5982
|
-
className: index$
|
|
5985
|
+
className: index$5.classnames(className, bsPrefix)
|
|
5983
5986
|
}));
|
|
5984
5987
|
});
|
|
5985
5988
|
FormCheckLabel.displayName = 'FormCheckLabel';
|
|
@@ -6010,7 +6013,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6010
6013
|
propCustom = _ref.custom,
|
|
6011
6014
|
_ref$as = _ref.as,
|
|
6012
6015
|
as = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6013
|
-
props = index$
|
|
6016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "inline", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "title", "type", "label", "children", "custom", "as"]);
|
|
6014
6017
|
|
|
6015
6018
|
var custom = type === 'switch' ? true : propCustom;
|
|
6016
6019
|
|
|
@@ -6030,7 +6033,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6030
6033
|
};
|
|
6031
6034
|
}, [controlId, custom, id]);
|
|
6032
6035
|
var hasLabel = custom || label != null && label !== false && !children;
|
|
6033
|
-
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$
|
|
6036
|
+
var input = /*#__PURE__*/React__default.createElement(FormCheckInput, index$5._extends({}, props, {
|
|
6034
6037
|
type: type === 'switch' ? 'checkbox' : type,
|
|
6035
6038
|
ref: ref,
|
|
6036
6039
|
isValid: isValid,
|
|
@@ -6043,7 +6046,7 @@ var FormCheck = React__default.forwardRef(function (_ref, ref) {
|
|
|
6043
6046
|
value: innerFormContext
|
|
6044
6047
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6045
6048
|
style: style,
|
|
6046
|
-
className: index$
|
|
6049
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type, inline && bsPrefix + "-inline")
|
|
6047
6050
|
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormCheckLabel, {
|
|
6048
6051
|
title: title
|
|
6049
6052
|
}, label), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
@@ -6065,7 +6068,7 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6065
6068
|
lang = _ref.lang,
|
|
6066
6069
|
_ref$as = _ref.as,
|
|
6067
6070
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6068
|
-
props = index$
|
|
6071
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "className", "isValid", "isInvalid", "lang", "as"]);
|
|
6069
6072
|
|
|
6070
6073
|
var _useContext = React.useContext(FormContext),
|
|
6071
6074
|
controlId = _useContext.controlId,
|
|
@@ -6078,12 +6081,12 @@ var FormFileInput = React__default.forwardRef(function (_ref, ref) {
|
|
|
6078
6081
|
defaultPrefix = _ref2[1];
|
|
6079
6082
|
|
|
6080
6083
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6081
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6084
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6082
6085
|
ref: ref,
|
|
6083
6086
|
id: id || controlId,
|
|
6084
6087
|
type: type,
|
|
6085
6088
|
lang: lang,
|
|
6086
|
-
className: index$
|
|
6089
|
+
className: index$5.classnames(className, bsPrefix, isValid && 'is-valid', isInvalid && 'is-invalid')
|
|
6087
6090
|
}));
|
|
6088
6091
|
});
|
|
6089
6092
|
FormFileInput.displayName = 'FormFileInput';
|
|
@@ -6093,7 +6096,7 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6093
6096
|
bsCustomPrefix = _ref.bsCustomPrefix,
|
|
6094
6097
|
className = _ref.className,
|
|
6095
6098
|
htmlFor = _ref.htmlFor,
|
|
6096
|
-
props = index$
|
|
6099
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "className", "htmlFor"]);
|
|
6097
6100
|
|
|
6098
6101
|
var _useContext = React.useContext(FormContext),
|
|
6099
6102
|
controlId = _useContext.controlId,
|
|
@@ -6104,10 +6107,10 @@ var FormFileLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6104
6107
|
defaultPrefix = _ref2[1];
|
|
6105
6108
|
|
|
6106
6109
|
bsPrefix = useBootstrapPrefix(prefix, defaultPrefix);
|
|
6107
|
-
return /*#__PURE__*/React__default.createElement("label", index$
|
|
6110
|
+
return /*#__PURE__*/React__default.createElement("label", index$5._extends({}, props, {
|
|
6108
6111
|
ref: ref,
|
|
6109
6112
|
htmlFor: htmlFor || controlId,
|
|
6110
|
-
className: index$
|
|
6113
|
+
className: index$5.classnames(className, bsPrefix),
|
|
6111
6114
|
"data-browse": props['data-browse']
|
|
6112
6115
|
}));
|
|
6113
6116
|
});
|
|
@@ -6137,7 +6140,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6137
6140
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6138
6141
|
_ref$inputAs = _ref.inputAs,
|
|
6139
6142
|
inputAs = _ref$inputAs === void 0 ? 'input' : _ref$inputAs,
|
|
6140
|
-
props = index$
|
|
6143
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "bsCustomPrefix", "disabled", "isValid", "isInvalid", "feedbackTooltip", "feedback", "className", "style", "label", "children", "custom", "lang", "data-browse", "as", "inputAs"]);
|
|
6141
6144
|
|
|
6142
6145
|
var _ref2 = custom ? [bsCustomPrefix, 'custom'] : [bsPrefix, 'form-file'],
|
|
6143
6146
|
prefix = _ref2[0],
|
|
@@ -6156,7 +6159,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6156
6159
|
};
|
|
6157
6160
|
}, [controlId, custom, id]);
|
|
6158
6161
|
var hasLabel = label != null && label !== false && !children;
|
|
6159
|
-
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$
|
|
6162
|
+
var input = /*#__PURE__*/React__default.createElement(FormFileInput, index$5._extends({}, props, {
|
|
6160
6163
|
ref: ref,
|
|
6161
6164
|
isValid: isValid,
|
|
6162
6165
|
isInvalid: isInvalid,
|
|
@@ -6168,7 +6171,7 @@ var FormFile = React__default.forwardRef(function (_ref, ref) {
|
|
|
6168
6171
|
value: innerFormContext
|
|
6169
6172
|
}, /*#__PURE__*/React__default.createElement(Component, {
|
|
6170
6173
|
style: style,
|
|
6171
|
-
className: index$
|
|
6174
|
+
className: index$5.classnames(className, bsPrefix, custom && "custom-" + type)
|
|
6172
6175
|
}, children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, custom ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, input, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, {
|
|
6173
6176
|
"data-browse": dataBrowse
|
|
6174
6177
|
}, label)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, hasLabel && /*#__PURE__*/React__default.createElement(FormFileLabel, null, label), input), (isValid || isInvalid) && /*#__PURE__*/React__default.createElement(Feedback, {
|
|
@@ -6197,7 +6200,7 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6197
6200
|
custom = _ref.custom,
|
|
6198
6201
|
_ref$as = _ref.as,
|
|
6199
6202
|
Component = _ref$as === void 0 ? 'input' : _ref$as,
|
|
6200
|
-
props = index$
|
|
6203
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "bsCustomPrefix", "type", "size", "htmlSize", "id", "className", "isValid", "isInvalid", "plaintext", "readOnly", "custom", "as"]);
|
|
6201
6204
|
|
|
6202
6205
|
var _useContext = React.useContext(FormContext),
|
|
6203
6206
|
controlId = _useContext.controlId;
|
|
@@ -6232,13 +6235,13 @@ var FormControl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6232
6235
|
}
|
|
6233
6236
|
|
|
6234
6237
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !id, '`controlId` is ignored on `<FormControl>` when `id` is specified.') : void 0;
|
|
6235
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6238
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6236
6239
|
type: type,
|
|
6237
6240
|
size: htmlSize,
|
|
6238
6241
|
ref: ref,
|
|
6239
6242
|
readOnly: readOnly,
|
|
6240
6243
|
id: id || controlId,
|
|
6241
|
-
className: index$
|
|
6244
|
+
className: index$5.classnames(className, classes, isValid && "is-valid", isInvalid && "is-invalid")
|
|
6242
6245
|
}));
|
|
6243
6246
|
});
|
|
6244
6247
|
FormControl.displayName = 'FormControl';
|
|
@@ -6253,7 +6256,7 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6253
6256
|
controlId = _ref.controlId,
|
|
6254
6257
|
_ref$as = _ref.as,
|
|
6255
6258
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6256
|
-
props = index$
|
|
6259
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "controlId", "as"]);
|
|
6257
6260
|
|
|
6258
6261
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-group');
|
|
6259
6262
|
var context = React.useMemo(function () {
|
|
@@ -6263,9 +6266,9 @@ var FormGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6263
6266
|
}, [controlId]);
|
|
6264
6267
|
return /*#__PURE__*/React__default.createElement(FormContext.Provider, {
|
|
6265
6268
|
value: context
|
|
6266
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
6269
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6267
6270
|
ref: ref,
|
|
6268
|
-
className: index$
|
|
6271
|
+
className: index$5.classnames(className, bsPrefix)
|
|
6269
6272
|
}), children));
|
|
6270
6273
|
});
|
|
6271
6274
|
FormGroup.displayName = 'FormGroup';
|
|
@@ -6282,7 +6285,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6282
6285
|
srOnly = _ref.srOnly,
|
|
6283
6286
|
className = _ref.className,
|
|
6284
6287
|
htmlFor = _ref.htmlFor,
|
|
6285
|
-
props = index$
|
|
6288
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "column", "srOnly", "className", "htmlFor"]);
|
|
6286
6289
|
|
|
6287
6290
|
var _useContext = React.useContext(FormContext),
|
|
6288
6291
|
controlId = _useContext.controlId;
|
|
@@ -6290,10 +6293,10 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6290
6293
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-label');
|
|
6291
6294
|
var columnClass = 'col-form-label';
|
|
6292
6295
|
if (typeof column === 'string') columnClass = columnClass + " " + columnClass + "-" + column;
|
|
6293
|
-
var classes = index$
|
|
6296
|
+
var classes = index$5.classnames(className, bsPrefix, srOnly && 'sr-only', column && columnClass);
|
|
6294
6297
|
process.env.NODE_ENV !== "production" ? warning_1(controlId == null || !htmlFor, '`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified.') : void 0;
|
|
6295
6298
|
htmlFor = htmlFor || controlId;
|
|
6296
|
-
if (column) return /*#__PURE__*/React__default.createElement(Col, index$
|
|
6299
|
+
if (column) return /*#__PURE__*/React__default.createElement(Col, index$5._extends({
|
|
6297
6300
|
as: "label",
|
|
6298
6301
|
className: classes,
|
|
6299
6302
|
htmlFor: htmlFor
|
|
@@ -6301,7 +6304,7 @@ var FormLabel = React__default.forwardRef(function (_ref, ref) {
|
|
|
6301
6304
|
return (
|
|
6302
6305
|
/*#__PURE__*/
|
|
6303
6306
|
// eslint-disable-next-line jsx-a11y/label-has-for, jsx-a11y/label-has-associated-control
|
|
6304
|
-
React__default.createElement(Component, index$
|
|
6307
|
+
React__default.createElement(Component, index$5._extends({
|
|
6305
6308
|
ref: ref,
|
|
6306
6309
|
className: classes,
|
|
6307
6310
|
htmlFor: htmlFor
|
|
@@ -6318,18 +6321,18 @@ function (_ref, ref) {
|
|
|
6318
6321
|
_ref$as = _ref.as,
|
|
6319
6322
|
Component = _ref$as === void 0 ? 'small' : _ref$as,
|
|
6320
6323
|
muted = _ref.muted,
|
|
6321
|
-
props = index$
|
|
6324
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as", "muted"]);
|
|
6322
6325
|
|
|
6323
6326
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form-text');
|
|
6324
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6327
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6325
6328
|
ref: ref,
|
|
6326
|
-
className: index$
|
|
6329
|
+
className: index$5.classnames(className, bsPrefix, muted && 'text-muted')
|
|
6327
6330
|
}));
|
|
6328
6331
|
});
|
|
6329
6332
|
FormText.displayName = 'FormText';
|
|
6330
6333
|
|
|
6331
6334
|
var Switch = React__default.forwardRef(function (props, ref) {
|
|
6332
|
-
return /*#__PURE__*/React__default.createElement(FormCheck, index$
|
|
6335
|
+
return /*#__PURE__*/React__default.createElement(FormCheck, index$5._extends({}, props, {
|
|
6333
6336
|
ref: ref,
|
|
6334
6337
|
type: "switch"
|
|
6335
6338
|
}));
|
|
@@ -6349,12 +6352,12 @@ var FormImpl = React__default.forwardRef(function (_ref, ref) {
|
|
|
6349
6352
|
validated = _ref.validated,
|
|
6350
6353
|
_ref$as = _ref.as,
|
|
6351
6354
|
Component = _ref$as === void 0 ? 'form' : _ref$as,
|
|
6352
|
-
props = index$
|
|
6355
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "inline", "className", "validated", "as"]);
|
|
6353
6356
|
|
|
6354
6357
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'form');
|
|
6355
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6358
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6356
6359
|
ref: ref,
|
|
6357
|
-
className: index$
|
|
6360
|
+
className: index$5.classnames(className, validated && 'was-validated', inline && bsPrefix + "-inline")
|
|
6358
6361
|
}));
|
|
6359
6362
|
});
|
|
6360
6363
|
FormImpl.displayName = 'Form';
|
|
@@ -6377,14 +6380,14 @@ var Container = React__default.forwardRef(function (_ref, ref) {
|
|
|
6377
6380
|
_ref$as = _ref.as,
|
|
6378
6381
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6379
6382
|
className = _ref.className,
|
|
6380
|
-
props = index$
|
|
6383
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "fluid", "as", "className"]);
|
|
6381
6384
|
|
|
6382
6385
|
var prefix = useBootstrapPrefix(bsPrefix, 'container');
|
|
6383
6386
|
var suffix = typeof fluid === 'string' ? "-" + fluid : '-fluid';
|
|
6384
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6387
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6385
6388
|
ref: ref
|
|
6386
6389
|
}, props, {
|
|
6387
|
-
className: index$
|
|
6390
|
+
className: index$5.classnames(className, fluid ? "" + prefix + suffix : prefix)
|
|
6388
6391
|
}));
|
|
6389
6392
|
});
|
|
6390
6393
|
Container.displayName = 'Container';
|
|
@@ -6429,15 +6432,15 @@ var Image = React__default.forwardRef(function (_ref, ref) {
|
|
|
6429
6432
|
rounded = _ref.rounded,
|
|
6430
6433
|
roundedCircle = _ref.roundedCircle,
|
|
6431
6434
|
thumbnail = _ref.thumbnail,
|
|
6432
|
-
props = index$
|
|
6435
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "fluid", "rounded", "roundedCircle", "thumbnail"]);
|
|
6433
6436
|
|
|
6434
6437
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
6435
|
-
var classes = index$
|
|
6436
|
-
return /*#__PURE__*/React__default.createElement("img", index$
|
|
6438
|
+
var classes = index$5.classnames(fluid && bsPrefix + "-fluid", rounded && "rounded", roundedCircle && "rounded-circle", thumbnail && bsPrefix + "-thumbnail");
|
|
6439
|
+
return /*#__PURE__*/React__default.createElement("img", index$5._extends({
|
|
6437
6440
|
// eslint-disable-line jsx-a11y/alt-text
|
|
6438
6441
|
ref: ref
|
|
6439
6442
|
}, props, {
|
|
6440
|
-
className: index$
|
|
6443
|
+
className: index$5.classnames(className, classes)
|
|
6441
6444
|
}));
|
|
6442
6445
|
});
|
|
6443
6446
|
Image.displayName = 'Image';
|
|
@@ -6448,12 +6451,12 @@ var defaultProps$l = {
|
|
|
6448
6451
|
};
|
|
6449
6452
|
var FigureImage = React__default.forwardRef(function (_ref, ref) {
|
|
6450
6453
|
var className = _ref.className,
|
|
6451
|
-
props = index$
|
|
6454
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["className"]);
|
|
6452
6455
|
|
|
6453
|
-
return /*#__PURE__*/React__default.createElement(Image, index$
|
|
6456
|
+
return /*#__PURE__*/React__default.createElement(Image, index$5._extends({
|
|
6454
6457
|
ref: ref
|
|
6455
6458
|
}, props, {
|
|
6456
|
-
className: index$
|
|
6459
|
+
className: index$5.classnames(className, 'figure-img')
|
|
6457
6460
|
}));
|
|
6458
6461
|
});
|
|
6459
6462
|
FigureImage.displayName = 'FigureImage';
|
|
@@ -6477,13 +6480,13 @@ var InputGroupText = createWithBsPrefix('input-group-text', {
|
|
|
6477
6480
|
});
|
|
6478
6481
|
|
|
6479
6482
|
var InputGroupCheckbox = function InputGroupCheckbox(props) {
|
|
6480
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$
|
|
6483
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6481
6484
|
type: "checkbox"
|
|
6482
6485
|
}, props)));
|
|
6483
6486
|
};
|
|
6484
6487
|
|
|
6485
6488
|
var InputGroupRadio = function InputGroupRadio(props) {
|
|
6486
|
-
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$
|
|
6489
|
+
return /*#__PURE__*/React__default.createElement(InputGroupText, null, /*#__PURE__*/React__default.createElement("input", index$5._extends({
|
|
6487
6490
|
type: "radio"
|
|
6488
6491
|
}, props)));
|
|
6489
6492
|
};
|
|
@@ -6502,18 +6505,18 @@ var InputGroup = React__default.forwardRef(function (_ref, ref) {
|
|
|
6502
6505
|
className = _ref.className,
|
|
6503
6506
|
_ref$as = _ref.as,
|
|
6504
6507
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6505
|
-
props = index$
|
|
6508
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "size", "className", "as"]);
|
|
6506
6509
|
|
|
6507
6510
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'input-group');
|
|
6508
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6511
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6509
6512
|
ref: ref
|
|
6510
6513
|
}, props, {
|
|
6511
|
-
className: index$
|
|
6514
|
+
className: index$5.classnames(className, bsPrefix, size && bsPrefix + "-" + size)
|
|
6512
6515
|
}));
|
|
6513
6516
|
});
|
|
6514
6517
|
InputGroup.displayName = 'InputGroup';
|
|
6515
6518
|
|
|
6516
|
-
var InputGroupWithExtras = index$
|
|
6519
|
+
var InputGroupWithExtras = index$5._extends({}, InputGroup, {
|
|
6517
6520
|
Text: InputGroupText,
|
|
6518
6521
|
Radio: InputGroupRadio,
|
|
6519
6522
|
Checkbox: InputGroupCheckbox,
|
|
@@ -6532,14 +6535,14 @@ var Jumbotron = React__default.forwardRef(function (_ref, ref) {
|
|
|
6532
6535
|
className = _ref.className,
|
|
6533
6536
|
fluid = _ref.fluid,
|
|
6534
6537
|
bsPrefix = _ref.bsPrefix,
|
|
6535
|
-
props = index$
|
|
6538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "className", "fluid", "bsPrefix"]);
|
|
6536
6539
|
|
|
6537
6540
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'jumbotron');
|
|
6538
6541
|
var classes = (_classes = {}, _classes[bsPrefix] = true, _classes[bsPrefix + "-fluid"] = fluid, _classes);
|
|
6539
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6542
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
6540
6543
|
ref: ref
|
|
6541
6544
|
}, props, {
|
|
6542
|
-
className: index$
|
|
6545
|
+
className: index$5.classnames(className, classes)
|
|
6543
6546
|
}));
|
|
6544
6547
|
});
|
|
6545
6548
|
Jumbotron.defaultProps = defaultProps$m;
|
|
@@ -6557,7 +6560,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6557
6560
|
activeKey = _ref.activeKey,
|
|
6558
6561
|
role = _ref.role,
|
|
6559
6562
|
onKeyDown = _ref.onKeyDown,
|
|
6560
|
-
props = index$
|
|
6563
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "onSelect", "activeKey", "role", "onKeyDown"]);
|
|
6561
6564
|
|
|
6562
6565
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
6563
6566
|
// and don't want to reset the set in the effect
|
|
@@ -6641,7 +6644,7 @@ var AbstractNav = React__default.forwardRef(function (_ref, ref) {
|
|
|
6641
6644
|
getControlledId: getControlledId || noop$4,
|
|
6642
6645
|
getControllerId: getControllerId || noop$4
|
|
6643
6646
|
}
|
|
6644
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
6647
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6645
6648
|
onKeyDown: handleKeyDown,
|
|
6646
6649
|
ref: mergedRef,
|
|
6647
6650
|
role: role
|
|
@@ -6658,7 +6661,7 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6658
6661
|
onSelect = _ref.onSelect,
|
|
6659
6662
|
onClick = _ref.onClick,
|
|
6660
6663
|
Component = _ref.as,
|
|
6661
|
-
props = index$
|
|
6664
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "className", "eventKey", "onSelect", "onClick", "as"]);
|
|
6662
6665
|
|
|
6663
6666
|
var navKey = makeEventKey(eventKey, props.href);
|
|
6664
6667
|
var parentOnSelect = React.useContext(SelectableContext);
|
|
@@ -6688,10 +6691,10 @@ var AbstractNavItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6688
6691
|
if (onSelect) onSelect(navKey, e);
|
|
6689
6692
|
if (parentOnSelect) parentOnSelect(navKey, e);
|
|
6690
6693
|
});
|
|
6691
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6694
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6692
6695
|
ref: ref,
|
|
6693
6696
|
onClick: handleOnclick,
|
|
6694
|
-
className: index$
|
|
6697
|
+
className: index$5.classnames(className, isActive && 'active')
|
|
6695
6698
|
}));
|
|
6696
6699
|
});
|
|
6697
6700
|
AbstractNavItem.defaultProps = defaultProps$n;
|
|
@@ -6711,7 +6714,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6711
6714
|
as = _ref.as,
|
|
6712
6715
|
eventKey = _ref.eventKey,
|
|
6713
6716
|
onClick = _ref.onClick,
|
|
6714
|
-
props = index$
|
|
6717
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "active", "disabled", "className", "variant", "action", "as", "eventKey", "onClick"]);
|
|
6715
6718
|
|
|
6716
6719
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
|
|
6717
6720
|
var handleClick = React.useCallback(function (event) {
|
|
@@ -6723,7 +6726,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6723
6726
|
|
|
6724
6727
|
if (onClick) onClick(event);
|
|
6725
6728
|
}, [disabled, onClick]);
|
|
6726
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$
|
|
6729
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({
|
|
6727
6730
|
ref: ref
|
|
6728
6731
|
}, props, {
|
|
6729
6732
|
// TODO: Restrict eventKey to string in v5?
|
|
@@ -6731,7 +6734,7 @@ var ListGroupItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
6731
6734
|
,
|
|
6732
6735
|
as: as || (action ? props.href ? 'a' : 'button' : 'div'),
|
|
6733
6736
|
onClick: handleClick,
|
|
6734
|
-
className: index$
|
|
6737
|
+
className: index$5.classnames(className, bsPrefix, active && 'active', disabled && 'disabled', variant && bsPrefix + "-" + variant, action && bsPrefix + "-action")
|
|
6735
6738
|
}));
|
|
6736
6739
|
});
|
|
6737
6740
|
ListGroupItem.defaultProps = defaultProps$o;
|
|
@@ -6751,7 +6754,7 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6751
6754
|
horizontal = _useUncontrolled.horizontal,
|
|
6752
6755
|
_useUncontrolled$as = _useUncontrolled.as,
|
|
6753
6756
|
as = _useUncontrolled$as === void 0 ? 'div' : _useUncontrolled$as,
|
|
6754
|
-
controlledProps = index$
|
|
6757
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["className", "bsPrefix", "variant", "horizontal", "as"]);
|
|
6755
6758
|
|
|
6756
6759
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'list-group');
|
|
6757
6760
|
var horizontalVariant;
|
|
@@ -6763,11 +6766,11 @@ var ListGroup = React__default.forwardRef(function (props, ref) {
|
|
|
6763
6766
|
}
|
|
6764
6767
|
|
|
6765
6768
|
process.env.NODE_ENV !== "production" ? warning_1(!(horizontal && variant === 'flush'), '`variant="flush"` and `horizontal` should not be used together.') : void 0;
|
|
6766
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, index$
|
|
6769
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
6767
6770
|
ref: ref
|
|
6768
6771
|
}, controlledProps, {
|
|
6769
6772
|
as: as,
|
|
6770
|
-
className: index$
|
|
6773
|
+
className: index$5.classnames(className, bsPrefix, variant && bsPrefix + "-" + variant, horizontalVariant && bsPrefix + "-" + horizontalVariant)
|
|
6771
6774
|
}));
|
|
6772
6775
|
});
|
|
6773
6776
|
ListGroup.defaultProps = defaultProps$p;
|
|
@@ -6781,12 +6784,12 @@ function (_ref, ref) {
|
|
|
6781
6784
|
className = _ref.className,
|
|
6782
6785
|
_ref$as = _ref.as,
|
|
6783
6786
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
6784
|
-
props = index$
|
|
6787
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
6785
6788
|
|
|
6786
6789
|
var prefix = useBootstrapPrefix(bsPrefix, 'media');
|
|
6787
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
6790
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
6788
6791
|
ref: ref,
|
|
6789
|
-
className: index$
|
|
6792
|
+
className: index$5.classnames(className, prefix)
|
|
6790
6793
|
}));
|
|
6791
6794
|
});
|
|
6792
6795
|
Media.displayName = 'Media';
|
|
@@ -7617,15 +7620,15 @@ var ModalDialog = React__default.forwardRef(function (_ref, ref) {
|
|
|
7617
7620
|
size = _ref.size,
|
|
7618
7621
|
children = _ref.children,
|
|
7619
7622
|
scrollable = _ref.scrollable,
|
|
7620
|
-
props = index$
|
|
7623
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "contentClassName", "centered", "size", "children", "scrollable"]);
|
|
7621
7624
|
|
|
7622
7625
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal');
|
|
7623
7626
|
var dialogClass = bsPrefix + "-dialog";
|
|
7624
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
7627
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
7625
7628
|
ref: ref,
|
|
7626
|
-
className: index$
|
|
7629
|
+
className: index$5.classnames(dialogClass, className, size && bsPrefix + "-" + size, centered && dialogClass + "-centered", scrollable && dialogClass + "-scrollable")
|
|
7627
7630
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
7628
|
-
className: index$
|
|
7631
|
+
className: index$5.classnames(bsPrefix + "-content", contentClassName)
|
|
7629
7632
|
}, children));
|
|
7630
7633
|
});
|
|
7631
7634
|
ModalDialog.displayName = 'ModalDialog';
|
|
@@ -7643,7 +7646,7 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7643
7646
|
onHide = _ref.onHide,
|
|
7644
7647
|
className = _ref.className,
|
|
7645
7648
|
children = _ref.children,
|
|
7646
|
-
props = index$
|
|
7649
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "onHide", "className", "children"]);
|
|
7647
7650
|
|
|
7648
7651
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
7649
7652
|
var context = React.useContext(ModalContext);
|
|
@@ -7651,10 +7654,10 @@ var ModalHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
7651
7654
|
if (context) context.onHide();
|
|
7652
7655
|
if (onHide) onHide();
|
|
7653
7656
|
});
|
|
7654
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
7657
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7655
7658
|
ref: ref
|
|
7656
7659
|
}, props, {
|
|
7657
|
-
className: index$
|
|
7660
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7658
7661
|
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
7659
7662
|
label: closeLabel,
|
|
7660
7663
|
onClick: handleClick
|
|
@@ -7720,7 +7723,7 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7720
7723
|
onExited = _ref.onExited,
|
|
7721
7724
|
backdropClassName = _ref.backdropClassName,
|
|
7722
7725
|
propsManager = _ref.manager,
|
|
7723
|
-
props = index$
|
|
7726
|
+
props = index$5._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"]);
|
|
7724
7727
|
|
|
7725
7728
|
var _useState = React.useState({}),
|
|
7726
7729
|
modalStyle = _useState[0],
|
|
@@ -7886,12 +7889,12 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7886
7889
|
};
|
|
7887
7890
|
|
|
7888
7891
|
var renderBackdrop = React.useCallback(function (backdropProps) {
|
|
7889
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
7890
|
-
className: index$
|
|
7892
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({}, backdropProps, {
|
|
7893
|
+
className: index$5.classnames(bsPrefix + "-backdrop", backdropClassName, !animation && 'show')
|
|
7891
7894
|
}));
|
|
7892
7895
|
}, [animation, backdropClassName, bsPrefix]);
|
|
7893
7896
|
|
|
7894
|
-
var baseModalStyle = index$
|
|
7897
|
+
var baseModalStyle = index$5._extends({}, style, {}, modalStyle); // Sets `display` always block when `animation` is false
|
|
7895
7898
|
|
|
7896
7899
|
|
|
7897
7900
|
if (!animation) {
|
|
@@ -7899,15 +7902,15 @@ var Modal$1 = React__default.forwardRef(function (_ref, ref) {
|
|
|
7899
7902
|
}
|
|
7900
7903
|
|
|
7901
7904
|
var renderDialog = function renderDialog(dialogProps) {
|
|
7902
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
7905
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
7903
7906
|
role: "dialog"
|
|
7904
7907
|
}, dialogProps, {
|
|
7905
7908
|
style: baseModalStyle,
|
|
7906
|
-
className: index$
|
|
7909
|
+
className: index$5.classnames(className, bsPrefix, animateStaticModal && bsPrefix + "-static"),
|
|
7907
7910
|
onClick: backdrop ? handleClick : undefined,
|
|
7908
7911
|
onMouseUp: handleMouseUp,
|
|
7909
7912
|
"aria-labelledby": ariaLabelledby
|
|
7910
|
-
}), /*#__PURE__*/React__default.createElement(Dialog, index$
|
|
7913
|
+
}), /*#__PURE__*/React__default.createElement(Dialog, index$5._extends({}, props, {
|
|
7911
7914
|
role: "document",
|
|
7912
7915
|
onMouseDown: handleDialogMouseDown,
|
|
7913
7916
|
className: dialogClassName,
|
|
@@ -7962,12 +7965,12 @@ function (_ref, ref) {
|
|
|
7962
7965
|
children = _ref.children,
|
|
7963
7966
|
_ref$as = _ref.as,
|
|
7964
7967
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
7965
|
-
props = index$
|
|
7968
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "as"]);
|
|
7966
7969
|
|
|
7967
7970
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
7968
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
7971
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
7969
7972
|
ref: ref,
|
|
7970
|
-
className: index$
|
|
7973
|
+
className: index$5.classnames(className, bsPrefix)
|
|
7971
7974
|
}), children);
|
|
7972
7975
|
});
|
|
7973
7976
|
NavItem.displayName = 'NavItem';
|
|
@@ -7984,17 +7987,17 @@ var NavLink = React__default.forwardRef(function (_ref, ref) {
|
|
|
7984
7987
|
eventKey = _ref.eventKey,
|
|
7985
7988
|
onSelect = _ref.onSelect,
|
|
7986
7989
|
as = _ref.as,
|
|
7987
|
-
props = index$
|
|
7990
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "disabled", "className", "href", "eventKey", "onSelect", "as"]);
|
|
7988
7991
|
|
|
7989
7992
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
7990
|
-
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$
|
|
7993
|
+
return /*#__PURE__*/React__default.createElement(AbstractNavItem, index$5._extends({}, props, {
|
|
7991
7994
|
href: href,
|
|
7992
7995
|
ref: ref,
|
|
7993
7996
|
eventKey: eventKey,
|
|
7994
7997
|
as: as,
|
|
7995
7998
|
disabled: disabled,
|
|
7996
7999
|
onSelect: onSelect,
|
|
7997
|
-
className: index$
|
|
8000
|
+
className: index$5.classnames(className, bsPrefix, disabled && 'disabled')
|
|
7998
8001
|
}));
|
|
7999
8002
|
});
|
|
8000
8003
|
NavLink.displayName = 'NavLink';
|
|
@@ -8020,7 +8023,7 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8020
8023
|
className = _useUncontrolled.className,
|
|
8021
8024
|
children = _useUncontrolled.children,
|
|
8022
8025
|
activeKey = _useUncontrolled.activeKey,
|
|
8023
|
-
props = index$
|
|
8026
|
+
props = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["as", "bsPrefix", "variant", "fill", "justify", "navbar", "className", "children", "activeKey"]);
|
|
8024
8027
|
|
|
8025
8028
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'nav');
|
|
8026
8029
|
var navbarBsPrefix;
|
|
@@ -8036,11 +8039,11 @@ var Nav = React__default.forwardRef(function (uncontrolledProps, ref) {
|
|
|
8036
8039
|
cardHeaderBsPrefix = cardContext.cardHeaderBsPrefix;
|
|
8037
8040
|
}
|
|
8038
8041
|
|
|
8039
|
-
return /*#__PURE__*/React__default.createElement(AbstractNav, index$
|
|
8042
|
+
return /*#__PURE__*/React__default.createElement(AbstractNav, index$5._extends({
|
|
8040
8043
|
as: as,
|
|
8041
8044
|
ref: ref,
|
|
8042
8045
|
activeKey: activeKey,
|
|
8043
|
-
className: index$
|
|
8046
|
+
className: index$5.classnames(className, (_classNames = {}, _classNames[bsPrefix] = !isNavbar, _classNames[navbarBsPrefix + "-nav"] = isNavbar, _classNames[cardHeaderBsPrefix + "-" + variant] = !!cardHeaderBsPrefix, _classNames[bsPrefix + "-" + variant] = !!variant, _classNames[bsPrefix + "-fill"] = fill, _classNames[bsPrefix + "-justified"] = justify, _classNames))
|
|
8044
8047
|
}, props), children);
|
|
8045
8048
|
});
|
|
8046
8049
|
Nav.displayName = 'Nav';
|
|
@@ -8052,13 +8055,13 @@ var NavbarBrand = React__default.forwardRef(function (_ref, ref) {
|
|
|
8052
8055
|
var bsPrefix = _ref.bsPrefix,
|
|
8053
8056
|
className = _ref.className,
|
|
8054
8057
|
as = _ref.as,
|
|
8055
|
-
props = index$
|
|
8058
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "as"]);
|
|
8056
8059
|
|
|
8057
8060
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-brand');
|
|
8058
8061
|
var Component = as || (props.href ? 'a' : 'span');
|
|
8059
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8062
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8060
8063
|
ref: ref,
|
|
8061
|
-
className: index$
|
|
8064
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8062
8065
|
}));
|
|
8063
8066
|
});
|
|
8064
8067
|
NavbarBrand.displayName = 'NavbarBrand';
|
|
@@ -8066,11 +8069,11 @@ NavbarBrand.displayName = 'NavbarBrand';
|
|
|
8066
8069
|
var NavbarCollapse = React__default.forwardRef(function (_ref, ref) {
|
|
8067
8070
|
var children = _ref.children,
|
|
8068
8071
|
bsPrefix = _ref.bsPrefix,
|
|
8069
|
-
props = index$
|
|
8072
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "bsPrefix"]);
|
|
8070
8073
|
|
|
8071
8074
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-collapse');
|
|
8072
8075
|
return /*#__PURE__*/React__default.createElement(context$2.Consumer, null, function (context) {
|
|
8073
|
-
return /*#__PURE__*/React__default.createElement(Collapse, index$
|
|
8076
|
+
return /*#__PURE__*/React__default.createElement(Collapse, index$5._extends({
|
|
8074
8077
|
in: !!(context && context.expanded)
|
|
8075
8078
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
8076
8079
|
ref: ref,
|
|
@@ -8091,7 +8094,7 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8091
8094
|
_ref$as = _ref.as,
|
|
8092
8095
|
Component = _ref$as === void 0 ? 'button' : _ref$as,
|
|
8093
8096
|
onClick = _ref.onClick,
|
|
8094
|
-
props = index$
|
|
8097
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "label", "as", "onClick"]);
|
|
8095
8098
|
|
|
8096
8099
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'navbar-toggler');
|
|
8097
8100
|
|
|
@@ -8108,11 +8111,11 @@ var NavbarToggle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8108
8111
|
props.type = 'button';
|
|
8109
8112
|
}
|
|
8110
8113
|
|
|
8111
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8114
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, props, {
|
|
8112
8115
|
ref: ref,
|
|
8113
8116
|
onClick: handleClick,
|
|
8114
8117
|
"aria-label": label,
|
|
8115
|
-
className: index$
|
|
8118
|
+
className: index$5.classnames(className, bsPrefix, !expanded && 'collapsed')
|
|
8116
8119
|
}), children || /*#__PURE__*/React__default.createElement("span", {
|
|
8117
8120
|
className: bsPrefix + "-icon"
|
|
8118
8121
|
}));
|
|
@@ -8146,7 +8149,7 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8146
8149
|
_onToggle = _useUncontrolled.onToggle,
|
|
8147
8150
|
onSelect = _useUncontrolled.onSelect,
|
|
8148
8151
|
collapseOnSelect = _useUncontrolled.collapseOnSelect,
|
|
8149
|
-
controlledProps = index$
|
|
8152
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["bsPrefix", "expand", "variant", "bg", "fixed", "sticky", "className", "children", "as", "expanded", "onToggle", "onSelect", "collapseOnSelect"]);
|
|
8150
8153
|
|
|
8151
8154
|
var bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
8152
8155
|
var handleCollapse = React.useCallback(function () {
|
|
@@ -8180,10 +8183,10 @@ var Navbar = React__default.forwardRef(function (props, ref) {
|
|
|
8180
8183
|
value: navbarContext
|
|
8181
8184
|
}, /*#__PURE__*/React__default.createElement(SelectableContext.Provider, {
|
|
8182
8185
|
value: handleCollapse
|
|
8183
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
8186
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8184
8187
|
ref: ref
|
|
8185
8188
|
}, controlledProps, {
|
|
8186
|
-
className: index$
|
|
8189
|
+
className: index$5.classnames(className, bsPrefix, expand && expandClass, variant && bsPrefix + "-" + variant, bg && "bg-" + bg, sticky && "sticky-" + sticky, fixed && "fixed-" + fixed)
|
|
8187
8190
|
}), children)));
|
|
8188
8191
|
});
|
|
8189
8192
|
Navbar.defaultProps = defaultProps$v;
|
|
@@ -8239,9 +8242,9 @@ var NavDropdown = React__default.forwardRef(function (_ref, ref) {
|
|
|
8239
8242
|
disabled = _ref.disabled,
|
|
8240
8243
|
active = _ref.active,
|
|
8241
8244
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8242
|
-
props = index$
|
|
8245
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "title", "children", "bsPrefix", "rootCloseEvent", "menuRole", "disabled", "active", "renderMenuOnMount"]);
|
|
8243
8246
|
|
|
8244
|
-
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$
|
|
8247
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8245
8248
|
ref: ref
|
|
8246
8249
|
}, props, {
|
|
8247
8250
|
as: NavItem
|
|
@@ -8532,17 +8535,17 @@ var PageItem = React__default.forwardRef(function (_ref, ref) {
|
|
|
8532
8535
|
style = _ref.style,
|
|
8533
8536
|
activeLabel = _ref.activeLabel,
|
|
8534
8537
|
children = _ref.children,
|
|
8535
|
-
props = index$
|
|
8538
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["active", "disabled", "className", "style", "activeLabel", "children"]);
|
|
8536
8539
|
|
|
8537
8540
|
var Component = active || disabled ? 'span' : SafeAnchor;
|
|
8538
8541
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
8539
8542
|
ref: ref,
|
|
8540
8543
|
style: style,
|
|
8541
|
-
className: index$
|
|
8544
|
+
className: index$5.classnames(className, 'page-item', {
|
|
8542
8545
|
active: active,
|
|
8543
8546
|
disabled: disabled
|
|
8544
8547
|
})
|
|
8545
|
-
}, /*#__PURE__*/React__default.createElement(Component, index$
|
|
8548
|
+
}, /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8546
8549
|
className: "page-link",
|
|
8547
8550
|
disabled: disabled
|
|
8548
8551
|
}, props), children, active && activeLabel && /*#__PURE__*/React__default.createElement("span", {
|
|
@@ -8559,7 +8562,7 @@ function createButton(name, defaultValue, label) {
|
|
|
8559
8562
|
|
|
8560
8563
|
function Button(_ref2) {
|
|
8561
8564
|
var children = _ref2.children,
|
|
8562
|
-
props = index$
|
|
8565
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["children"]);
|
|
8563
8566
|
|
|
8564
8567
|
return /*#__PURE__*/React__default.createElement(PageItem, props, /*#__PURE__*/React__default.createElement("span", {
|
|
8565
8568
|
"aria-hidden": "true"
|
|
@@ -8591,13 +8594,13 @@ var Pagination = React__default.forwardRef(function (_ref, ref) {
|
|
|
8591
8594
|
className = _ref.className,
|
|
8592
8595
|
children = _ref.children,
|
|
8593
8596
|
size = _ref.size,
|
|
8594
|
-
props = index$
|
|
8597
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "size"]);
|
|
8595
8598
|
|
|
8596
8599
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'pagination');
|
|
8597
|
-
return /*#__PURE__*/React__default.createElement("ul", index$
|
|
8600
|
+
return /*#__PURE__*/React__default.createElement("ul", index$5._extends({
|
|
8598
8601
|
ref: ref
|
|
8599
8602
|
}, props, {
|
|
8600
|
-
className: index$
|
|
8603
|
+
className: index$5.classnames(className, decoratedBsPrefix, size && decoratedBsPrefix + "-" + size)
|
|
8601
8604
|
}), children);
|
|
8602
8605
|
});
|
|
8603
8606
|
Pagination.First = First;
|
|
@@ -8613,13 +8616,13 @@ var PopoverTitle = React__default.forwardRef(function (_ref, ref) {
|
|
|
8613
8616
|
bsPrefix = _ref.bsPrefix,
|
|
8614
8617
|
className = _ref.className,
|
|
8615
8618
|
children = _ref.children,
|
|
8616
|
-
props = index$
|
|
8619
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8617
8620
|
|
|
8618
8621
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
8619
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8622
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8620
8623
|
ref: ref
|
|
8621
8624
|
}, props, {
|
|
8622
|
-
className: index$
|
|
8625
|
+
className: index$5.classnames(bsPrefix, className)
|
|
8623
8626
|
}), children);
|
|
8624
8627
|
});
|
|
8625
8628
|
|
|
@@ -8629,13 +8632,13 @@ var PopoverContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
8629
8632
|
bsPrefix = _ref.bsPrefix,
|
|
8630
8633
|
className = _ref.className,
|
|
8631
8634
|
children = _ref.children,
|
|
8632
|
-
props = index$
|
|
8635
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["as", "bsPrefix", "className", "children"]);
|
|
8633
8636
|
|
|
8634
8637
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
8635
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8638
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8636
8639
|
ref: ref
|
|
8637
8640
|
}, props, {
|
|
8638
|
-
className: index$
|
|
8641
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8639
8642
|
}), children);
|
|
8640
8643
|
});
|
|
8641
8644
|
|
|
@@ -8652,20 +8655,20 @@ var Popover = React__default.forwardRef(function (_ref, ref) {
|
|
|
8652
8655
|
arrowProps = _ref.arrowProps,
|
|
8653
8656
|
_ = _ref.popper,
|
|
8654
8657
|
_1 = _ref.show,
|
|
8655
|
-
props = index$
|
|
8658
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "content", "arrowProps", "popper", "show"]);
|
|
8656
8659
|
|
|
8657
8660
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
8658
8661
|
|
|
8659
8662
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
8660
8663
|
primaryPlacement = _ref2[0];
|
|
8661
8664
|
|
|
8662
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
8665
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8663
8666
|
ref: ref,
|
|
8664
8667
|
role: "tooltip",
|
|
8665
8668
|
style: style,
|
|
8666
8669
|
"x-placement": primaryPlacement,
|
|
8667
|
-
className: index$
|
|
8668
|
-
}, props), /*#__PURE__*/React__default.createElement("div", index$
|
|
8670
|
+
className: index$5.classnames(className, decoratedBsPrefix, primaryPlacement && "bs-popover-" + primaryPlacement)
|
|
8671
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8669
8672
|
className: "arrow"
|
|
8670
8673
|
}, arrowProps)), content ? /*#__PURE__*/React__default.createElement(PopoverContent, null, children) : children);
|
|
8671
8674
|
});
|
|
@@ -8703,14 +8706,14 @@ function renderProgressBar(_ref, ref) {
|
|
|
8703
8706
|
style = _ref.style,
|
|
8704
8707
|
variant = _ref.variant,
|
|
8705
8708
|
bsPrefix = _ref.bsPrefix,
|
|
8706
|
-
props = index$
|
|
8709
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["min", "now", "max", "label", "srOnly", "striped", "animated", "className", "style", "variant", "bsPrefix"]);
|
|
8707
8710
|
|
|
8708
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
8711
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8709
8712
|
ref: ref
|
|
8710
8713
|
}, props, {
|
|
8711
8714
|
role: "progressbar",
|
|
8712
|
-
className: index$
|
|
8713
|
-
style: index$
|
|
8715
|
+
className: index$5.classnames(className, bsPrefix + "-bar", (_classNames = {}, _classNames["bg-" + variant] = variant, _classNames[bsPrefix + "-bar-animated"] = animated, _classNames[bsPrefix + "-bar-striped"] = animated || striped, _classNames)),
|
|
8716
|
+
style: index$5._extends({
|
|
8714
8717
|
width: getPercentage(now, min, max) + "%"
|
|
8715
8718
|
}, style),
|
|
8716
8719
|
"aria-valuenow": now,
|
|
@@ -8723,7 +8726,7 @@ function renderProgressBar(_ref, ref) {
|
|
|
8723
8726
|
|
|
8724
8727
|
var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
8725
8728
|
var isChild = _ref2.isChild,
|
|
8726
|
-
props = index$
|
|
8729
|
+
props = index$5._objectWithoutPropertiesLoose(_ref2, ["isChild"]);
|
|
8727
8730
|
|
|
8728
8731
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
8729
8732
|
|
|
@@ -8742,12 +8745,12 @@ var ProgressBar = React__default.forwardRef(function (_ref2, ref) {
|
|
|
8742
8745
|
variant = props.variant,
|
|
8743
8746
|
className = props.className,
|
|
8744
8747
|
children = props.children,
|
|
8745
|
-
wrapperProps = index$
|
|
8748
|
+
wrapperProps = index$5._objectWithoutPropertiesLoose(props, ["min", "now", "max", "label", "srOnly", "striped", "animated", "bsPrefix", "variant", "className", "children"]);
|
|
8746
8749
|
|
|
8747
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
8750
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8748
8751
|
ref: ref
|
|
8749
8752
|
}, wrapperProps, {
|
|
8750
|
-
className: index$
|
|
8753
|
+
className: index$5.classnames(className, bsPrefix)
|
|
8751
8754
|
}), children ? map(children, function (child) {
|
|
8752
8755
|
return React.cloneElement(child, {
|
|
8753
8756
|
isChild: true
|
|
@@ -8775,16 +8778,16 @@ var ResponsiveEmbed = React__default.forwardRef(function (_ref, ref) {
|
|
|
8775
8778
|
className = _ref.className,
|
|
8776
8779
|
children = _ref.children,
|
|
8777
8780
|
aspectRatio = _ref.aspectRatio,
|
|
8778
|
-
props = index$
|
|
8781
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "aspectRatio"]);
|
|
8779
8782
|
|
|
8780
8783
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'embed-responsive');
|
|
8781
8784
|
var child = React__default.Children.only(children);
|
|
8782
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
8785
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
8783
8786
|
ref: ref
|
|
8784
8787
|
}, props, {
|
|
8785
|
-
className: index$
|
|
8788
|
+
className: index$5.classnames(decoratedBsPrefix, className, aspectRatio && decoratedBsPrefix + "-" + aspectRatio)
|
|
8786
8789
|
}), React__default.cloneElement(child, {
|
|
8787
|
-
className: index$
|
|
8790
|
+
className: index$5.classnames(child.props.className, decoratedBsPrefix + "-item")
|
|
8788
8791
|
}));
|
|
8789
8792
|
});
|
|
8790
8793
|
ResponsiveEmbed.defaultProps = defaultProps$z;
|
|
@@ -8799,7 +8802,7 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8799
8802
|
noGutters = _ref.noGutters,
|
|
8800
8803
|
_ref$as = _ref.as,
|
|
8801
8804
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8802
|
-
props = index$
|
|
8805
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "noGutters", "as"]);
|
|
8803
8806
|
|
|
8804
8807
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'row');
|
|
8805
8808
|
var sizePrefix = decoratedBsPrefix + "-cols";
|
|
@@ -8818,10 +8821,10 @@ var Row = React__default.forwardRef(function (_ref, ref) {
|
|
|
8818
8821
|
var infix = brkPoint !== 'xs' ? "-" + brkPoint : '';
|
|
8819
8822
|
if (cols != null) classes.push("" + sizePrefix + infix + "-" + cols);
|
|
8820
8823
|
});
|
|
8821
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8824
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8822
8825
|
ref: ref
|
|
8823
8826
|
}, props, {
|
|
8824
|
-
className: index$
|
|
8827
|
+
className: index$5.classnames.apply(void 0, [className, decoratedBsPrefix, noGutters && 'no-gutters'].concat(classes))
|
|
8825
8828
|
}));
|
|
8826
8829
|
});
|
|
8827
8830
|
Row.displayName = 'Row';
|
|
@@ -8836,14 +8839,14 @@ var Spinner = React__default.forwardRef(function (_ref, ref) {
|
|
|
8836
8839
|
_ref$as = _ref.as,
|
|
8837
8840
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
8838
8841
|
className = _ref.className,
|
|
8839
|
-
props = index$
|
|
8842
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "variant", "animation", "size", "children", "as", "className"]);
|
|
8840
8843
|
|
|
8841
8844
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'spinner');
|
|
8842
8845
|
var bsSpinnerPrefix = bsPrefix + "-" + animation;
|
|
8843
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
8846
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
8844
8847
|
ref: ref
|
|
8845
8848
|
}, props, {
|
|
8846
|
-
className: index$
|
|
8849
|
+
className: index$5.classnames(className, bsSpinnerPrefix, size && bsSpinnerPrefix + "-" + size, variant && "text-" + variant)
|
|
8847
8850
|
}), children);
|
|
8848
8851
|
});
|
|
8849
8852
|
Spinner.displayName = 'Spinner';
|
|
@@ -8930,9 +8933,9 @@ var SplitButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
8930
8933
|
menuRole = _ref.menuRole,
|
|
8931
8934
|
renderMenuOnMount = _ref.renderMenuOnMount,
|
|
8932
8935
|
rootCloseEvent = _ref.rootCloseEvent,
|
|
8933
|
-
props = index$
|
|
8936
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["id", "bsPrefix", "size", "variant", "title", "type", "toggleLabel", "children", "onClick", "href", "target", "menuAlign", "menuRole", "renderMenuOnMount", "rootCloseEvent"]);
|
|
8934
8937
|
|
|
8935
|
-
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$
|
|
8938
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, index$5._extends({
|
|
8936
8939
|
ref: ref
|
|
8937
8940
|
}, props, {
|
|
8938
8941
|
as: ButtonGroup
|
|
@@ -9010,13 +9013,13 @@ var TabContent = React__default.forwardRef(function (_ref, ref) {
|
|
|
9010
9013
|
_ref$as = _ref.as,
|
|
9011
9014
|
Component = _ref$as === void 0 ? 'div' : _ref$as,
|
|
9012
9015
|
className = _ref.className,
|
|
9013
|
-
props = index$
|
|
9016
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
|
|
9014
9017
|
|
|
9015
9018
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
|
|
9016
|
-
return /*#__PURE__*/React__default.createElement(Component, index$
|
|
9019
|
+
return /*#__PURE__*/React__default.createElement(Component, index$5._extends({
|
|
9017
9020
|
ref: ref
|
|
9018
9021
|
}, props, {
|
|
9019
|
-
className: index$
|
|
9022
|
+
className: index$5.classnames(className, decoratedBsPrefix)
|
|
9020
9023
|
}));
|
|
9021
9024
|
});
|
|
9022
9025
|
|
|
@@ -9027,11 +9030,11 @@ function useTabContext(props) {
|
|
|
9027
9030
|
var activeKey = context.activeKey,
|
|
9028
9031
|
getControlledId = context.getControlledId,
|
|
9029
9032
|
getControllerId = context.getControllerId,
|
|
9030
|
-
rest = index$
|
|
9033
|
+
rest = index$5._objectWithoutPropertiesLoose(context, ["activeKey", "getControlledId", "getControllerId"]);
|
|
9031
9034
|
|
|
9032
9035
|
var shouldTransition = props.transition !== false && rest.transition !== false;
|
|
9033
9036
|
var key = makeEventKey(props.eventKey);
|
|
9034
|
-
return index$
|
|
9037
|
+
return index$5._extends({}, props, {
|
|
9035
9038
|
active: props.active == null && key != null ? makeEventKey(activeKey) === key : props.active,
|
|
9036
9039
|
id: getControlledId(props.eventKey),
|
|
9037
9040
|
'aria-labelledby': getControllerId(props.eventKey),
|
|
@@ -9058,15 +9061,15 @@ var TabPane = React__default.forwardRef(function (props, ref) {
|
|
|
9058
9061
|
_useTabContext$as = _useTabContext.as,
|
|
9059
9062
|
Component = _useTabContext$as === void 0 ? 'div' : _useTabContext$as,
|
|
9060
9063
|
_ = _useTabContext.eventKey,
|
|
9061
|
-
rest = index$
|
|
9064
|
+
rest = index$5._objectWithoutPropertiesLoose(_useTabContext, ["bsPrefix", "className", "active", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "mountOnEnter", "unmountOnExit", "transition", "as", "eventKey"]);
|
|
9062
9065
|
|
|
9063
9066
|
var prefix = useBootstrapPrefix(bsPrefix, 'tab-pane');
|
|
9064
9067
|
if (!active && !Transition && unmountOnExit) return null;
|
|
9065
|
-
var pane = /*#__PURE__*/React__default.createElement(Component, index$
|
|
9068
|
+
var pane = /*#__PURE__*/React__default.createElement(Component, index$5._extends({}, rest, {
|
|
9066
9069
|
ref: ref,
|
|
9067
9070
|
role: "tabpanel",
|
|
9068
9071
|
"aria-hidden": !active,
|
|
9069
|
-
className: index$
|
|
9072
|
+
className: index$5.classnames(className, prefix, {
|
|
9070
9073
|
active: active
|
|
9071
9074
|
})
|
|
9072
9075
|
}));
|
|
@@ -9122,11 +9125,11 @@ var Table = React__default.forwardRef(function (_ref, ref) {
|
|
|
9122
9125
|
size = _ref.size,
|
|
9123
9126
|
variant = _ref.variant,
|
|
9124
9127
|
responsive = _ref.responsive,
|
|
9125
|
-
props = index$
|
|
9128
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "striped", "bordered", "borderless", "hover", "size", "variant", "responsive"]);
|
|
9126
9129
|
|
|
9127
9130
|
var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'table');
|
|
9128
|
-
var classes = index$
|
|
9129
|
-
var table = /*#__PURE__*/React__default.createElement("table", index$
|
|
9131
|
+
var classes = index$5.classnames(className, decoratedBsPrefix, variant && decoratedBsPrefix + "-" + variant, size && decoratedBsPrefix + "-" + size, striped && decoratedBsPrefix + "-striped", bordered && decoratedBsPrefix + "-bordered", borderless && decoratedBsPrefix + "-borderless", hover && decoratedBsPrefix + "-hover");
|
|
9132
|
+
var table = /*#__PURE__*/React__default.createElement("table", index$5._extends({}, props, {
|
|
9130
9133
|
className: classes,
|
|
9131
9134
|
ref: ref
|
|
9132
9135
|
}));
|
|
@@ -9161,7 +9164,7 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9161
9164
|
closeButton = _ref.closeButton,
|
|
9162
9165
|
className = _ref.className,
|
|
9163
9166
|
children = _ref.children,
|
|
9164
|
-
props = index$
|
|
9167
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "closeLabel", "closeButton", "className", "children"]);
|
|
9165
9168
|
|
|
9166
9169
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
|
|
9167
9170
|
var context = React.useContext(ToastContext);
|
|
@@ -9170,10 +9173,10 @@ var ToastHeader = React__default.forwardRef(function (_ref, ref) {
|
|
|
9170
9173
|
context.onClose(e);
|
|
9171
9174
|
}
|
|
9172
9175
|
});
|
|
9173
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
9176
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9174
9177
|
ref: ref
|
|
9175
9178
|
}, props, {
|
|
9176
|
-
className: index$
|
|
9179
|
+
className: index$5.classnames(bsPrefix, className)
|
|
9177
9180
|
}), children, closeButton && /*#__PURE__*/React__default.createElement(CloseButton, {
|
|
9178
9181
|
label: closeLabel,
|
|
9179
9182
|
onClick: handleClick,
|
|
@@ -9201,7 +9204,7 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9201
9204
|
_ref$autohide = _ref.autohide,
|
|
9202
9205
|
autohide = _ref$autohide === void 0 ? false : _ref$autohide,
|
|
9203
9206
|
onClose = _ref.onClose,
|
|
9204
|
-
props = index$
|
|
9207
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "className", "children", "transition", "show", "animation", "delay", "autohide", "onClose"]);
|
|
9205
9208
|
|
|
9206
9209
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'toast'); // We use refs for these, because we don't want to restart the autohide
|
|
9207
9210
|
// timer in case these values change.
|
|
@@ -9229,9 +9232,9 @@ var Toast = React__default.forwardRef(function (_ref, ref) {
|
|
|
9229
9232
|
};
|
|
9230
9233
|
}, [onClose]);
|
|
9231
9234
|
var hasAnimation = !!(Transition && animation);
|
|
9232
|
-
var toast = /*#__PURE__*/React__default.createElement("div", index$
|
|
9235
|
+
var toast = /*#__PURE__*/React__default.createElement("div", index$5._extends({}, props, {
|
|
9233
9236
|
ref: ref,
|
|
9234
|
-
className: index$
|
|
9237
|
+
className: index$5.classnames(bsPrefix, className, !hasAnimation && (show ? 'show' : 'hide')),
|
|
9235
9238
|
role: "alert",
|
|
9236
9239
|
"aria-live": "assertive",
|
|
9237
9240
|
"aria-atomic": "true"
|
|
@@ -9263,7 +9266,7 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9263
9266
|
value = _ref.value,
|
|
9264
9267
|
disabled = _ref.disabled,
|
|
9265
9268
|
inputRef = _ref.inputRef,
|
|
9266
|
-
props = index$
|
|
9269
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["children", "name", "className", "checked", "type", "onChange", "value", "disabled", "inputRef"]);
|
|
9267
9270
|
|
|
9268
9271
|
var _useState = React.useState(false),
|
|
9269
9272
|
focused = _useState[0],
|
|
@@ -9275,9 +9278,9 @@ var ToggleButton = React__default.forwardRef(function (_ref, ref) {
|
|
|
9275
9278
|
var handleBlur = React.useCallback(function (e) {
|
|
9276
9279
|
if (e.target.tagName === 'INPUT') setFocused(false);
|
|
9277
9280
|
}, []);
|
|
9278
|
-
return /*#__PURE__*/React__default.createElement(Button, index$
|
|
9281
|
+
return /*#__PURE__*/React__default.createElement(Button, index$5._extends({}, props, {
|
|
9279
9282
|
ref: ref,
|
|
9280
|
-
className: index$
|
|
9283
|
+
className: index$5.classnames(className, focused && 'focus', disabled && 'disabled'),
|
|
9281
9284
|
type: undefined,
|
|
9282
9285
|
active: !!checked,
|
|
9283
9286
|
as: "label"
|
|
@@ -9309,7 +9312,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9309
9312
|
name = _useUncontrolled.name,
|
|
9310
9313
|
value = _useUncontrolled.value,
|
|
9311
9314
|
onChange = _useUncontrolled.onChange,
|
|
9312
|
-
controlledProps = index$
|
|
9315
|
+
controlledProps = index$5._objectWithoutPropertiesLoose(_useUncontrolled, ["children", "type", "name", "value", "onChange"]);
|
|
9313
9316
|
|
|
9314
9317
|
var getValues = function getValues() {
|
|
9315
9318
|
return value == null ? [] : [].concat(value);
|
|
@@ -9338,7 +9341,7 @@ var ToggleButtonGroup = React__default.forwardRef(function (props, ref) {
|
|
|
9338
9341
|
};
|
|
9339
9342
|
|
|
9340
9343
|
!(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;
|
|
9341
|
-
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$
|
|
9344
|
+
return /*#__PURE__*/React__default.createElement(ButtonGroup, index$5._extends({}, controlledProps, {
|
|
9342
9345
|
ref: ref,
|
|
9343
9346
|
toggle: true
|
|
9344
9347
|
}), map(children, function (child) {
|
|
@@ -9374,20 +9377,20 @@ var Tooltip = React__default.forwardRef(function (_ref, ref) {
|
|
|
9374
9377
|
arrowProps = _ref.arrowProps,
|
|
9375
9378
|
_ = _ref.popper,
|
|
9376
9379
|
_2 = _ref.show,
|
|
9377
|
-
props = index$
|
|
9380
|
+
props = index$5._objectWithoutPropertiesLoose(_ref, ["bsPrefix", "placement", "className", "style", "children", "arrowProps", "popper", "show"]);
|
|
9378
9381
|
|
|
9379
9382
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
9380
9383
|
|
|
9381
9384
|
var _ref2 = (placement == null ? void 0 : placement.split('-')) || [],
|
|
9382
9385
|
primaryPlacement = _ref2[0];
|
|
9383
9386
|
|
|
9384
|
-
return /*#__PURE__*/React__default.createElement("div", index$
|
|
9387
|
+
return /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9385
9388
|
ref: ref,
|
|
9386
9389
|
style: style,
|
|
9387
9390
|
role: "tooltip",
|
|
9388
9391
|
"x-placement": primaryPlacement,
|
|
9389
|
-
className: index$
|
|
9390
|
-
}, props), /*#__PURE__*/React__default.createElement("div", index$
|
|
9392
|
+
className: index$5.classnames(className, bsPrefix, "bs-tooltip-" + primaryPlacement)
|
|
9393
|
+
}, props), /*#__PURE__*/React__default.createElement("div", index$5._extends({
|
|
9391
9394
|
className: "arrow"
|
|
9392
9395
|
}, arrowProps)), /*#__PURE__*/React__default.createElement("div", {
|
|
9393
9396
|
className: bsPrefix + "-inner"
|
|
@@ -9420,10 +9423,10 @@ var MediaSeriesCard = function MediaSeriesCard(props) {
|
|
|
9420
9423
|
'figure',
|
|
9421
9424
|
null,
|
|
9422
9425
|
React__default.createElement(
|
|
9423
|
-
index$
|
|
9426
|
+
index$2.LazyLoad,
|
|
9424
9427
|
null,
|
|
9425
9428
|
React__default.createElement('img', {
|
|
9426
|
-
src: data.thumbnail && data.thumbnail.asset ? urlFor
|
|
9429
|
+
src: data.thumbnail && data.thumbnail.asset ? urlFor({ client: client, source: data.thumbnail }) : data.thumbnail && _typeof._typeof(data.thumbnail == 'string') ? data.thumbnail : defaultImage
|
|
9427
9430
|
})
|
|
9428
9431
|
)
|
|
9429
9432
|
)
|