react-bootstrap 2.0.0-beta.6 → 2.0.1

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.
Files changed (93) hide show
  1. package/NavbarOffcanvas/package.json +7 -0
  2. package/README.md +1 -1
  3. package/SSRProvider/package.json +7 -0
  4. package/Stack/package.json +7 -0
  5. package/ToastFade/package.json +7 -0
  6. package/cjs/AbstractNav.d.ts +12 -8
  7. package/cjs/AbstractNavItem.d.ts +8 -3
  8. package/cjs/AccordionButton.js +1 -1
  9. package/cjs/BootstrapModalManager.js +1 -1
  10. package/cjs/Col.js +3 -3
  11. package/cjs/Collapse.js +1 -1
  12. package/cjs/DropdownMenu.js +1 -1
  13. package/cjs/ElementChildren.js +1 -1
  14. package/cjs/Fade.d.ts +1 -0
  15. package/cjs/Fade.js +2 -1
  16. package/cjs/Feedback.d.ts +2 -1
  17. package/cjs/Form.d.ts +9 -8
  18. package/cjs/FormCheck.d.ts +2 -0
  19. package/cjs/FormCheck.js +3 -2
  20. package/cjs/FormSelect.d.ts +1 -1
  21. package/cjs/Image.js +1 -1
  22. package/cjs/ListGroup.d.ts +1 -0
  23. package/cjs/ListGroup.js +2 -1
  24. package/cjs/ListGroupItem.js +20 -16
  25. package/cjs/Navbar.d.ts +2 -1
  26. package/cjs/Navbar.js +5 -2
  27. package/cjs/NavbarOffcanvas.d.ts +4 -0
  28. package/cjs/NavbarOffcanvas.js +31 -0
  29. package/cjs/Offcanvas.js +10 -2
  30. package/cjs/PageItem.js +1 -1
  31. package/cjs/SSRProvider.d.ts +4 -0
  32. package/cjs/SSRProvider.js +10 -0
  33. package/cjs/SafeAnchor.d.ts +3 -2
  34. package/cjs/SelectableContext.d.ts +3 -3
  35. package/cjs/Stack.d.ts +11 -0
  36. package/cjs/Stack.js +41 -0
  37. package/cjs/TabContext.d.ts +1 -1
  38. package/cjs/ThemeProvider.js +3 -2
  39. package/cjs/Toast.d.ts +1 -1
  40. package/cjs/Toast.js +2 -2
  41. package/cjs/ToastContext.d.ts +1 -1
  42. package/cjs/ToastFade.d.ts +5 -0
  43. package/cjs/ToastFade.js +31 -0
  44. package/cjs/createUtilityClasses.d.ts +12 -0
  45. package/cjs/createUtilityClasses.js +45 -0
  46. package/cjs/helpers.js +1 -1
  47. package/cjs/index.d.ts +4 -1
  48. package/cjs/index.js +9 -5
  49. package/cjs/types.d.ts +1 -0
  50. package/createUtilityClasses/package.json +7 -0
  51. package/dist/react-bootstrap.js +805 -622
  52. package/dist/react-bootstrap.min.js +1 -1
  53. package/esm/AbstractNav.d.ts +12 -8
  54. package/esm/AbstractNavItem.d.ts +8 -3
  55. package/esm/Col.js +2 -2
  56. package/esm/Collapse.js +1 -1
  57. package/esm/Fade.d.ts +1 -0
  58. package/esm/Fade.js +2 -1
  59. package/esm/Feedback.d.ts +2 -1
  60. package/esm/Form.d.ts +9 -8
  61. package/esm/FormCheck.d.ts +2 -0
  62. package/esm/FormCheck.js +3 -2
  63. package/esm/FormSelect.d.ts +1 -1
  64. package/esm/ListGroup.d.ts +1 -0
  65. package/esm/ListGroup.js +2 -1
  66. package/esm/ListGroupItem.js +18 -17
  67. package/esm/Navbar.d.ts +2 -1
  68. package/esm/Navbar.js +4 -2
  69. package/esm/NavbarOffcanvas.d.ts +4 -0
  70. package/esm/NavbarOffcanvas.js +15 -0
  71. package/esm/Offcanvas.js +10 -3
  72. package/esm/SSRProvider.d.ts +4 -0
  73. package/esm/SSRProvider.js +2 -0
  74. package/esm/SafeAnchor.d.ts +3 -2
  75. package/esm/SelectableContext.d.ts +3 -3
  76. package/esm/Stack.d.ts +11 -0
  77. package/esm/Stack.js +23 -0
  78. package/esm/TabContext.d.ts +1 -1
  79. package/esm/Toast.d.ts +1 -1
  80. package/esm/Toast.js +2 -2
  81. package/esm/ToastContext.d.ts +1 -1
  82. package/esm/ToastContext.js +1 -2
  83. package/esm/ToastFade.d.ts +5 -0
  84. package/esm/ToastFade.js +14 -0
  85. package/esm/createUtilityClasses.d.ts +12 -0
  86. package/esm/createUtilityClasses.js +32 -0
  87. package/esm/index.d.ts +4 -1
  88. package/esm/index.js +2 -1
  89. package/esm/types.d.ts +1 -0
  90. package/package.json +3 -3
  91. package/CardColumns/package.json +0 -7
  92. package/cjs/CardColumns.js +0 -13
  93. package/esm/CardColumns.js +0 -2
@@ -7,7 +7,7 @@
7
7
  exports["ReactBootstrap"] = factory(require("react"), require("react-dom"));
8
8
  else
9
9
  root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]);
10
- })(self, function(__WEBPACK_EXTERNAL_MODULE__698__, __WEBPACK_EXTERNAL_MODULE__207__) {
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
@@ -132,7 +132,7 @@ module.exports = invariant;
132
132
  Object.defineProperty(exports, "__esModule", ({
133
133
  value: true
134
134
  }));
135
- exports.default = all;
135
+ exports["default"] = all;
136
136
 
137
137
  var _createChainableTypeChecker = __webpack_require__(844);
138
138
 
@@ -192,7 +192,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
192
192
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
193
193
  };
194
194
 
195
- var _react = __webpack_require__(698);
195
+ var _react = __webpack_require__(787);
196
196
 
197
197
  var _react2 = _interopRequireDefault(_react);
198
198
 
@@ -221,7 +221,7 @@ function validate(props, propName, componentName, location, propFullName) {
221
221
  return null;
222
222
  }
223
223
 
224
- exports.default = (0, _createChainableTypeChecker2.default)(validate);
224
+ exports["default"] = (0, _createChainableTypeChecker2.default)(validate);
225
225
  module.exports = exports['default'];
226
226
 
227
227
  /***/ }),
@@ -235,7 +235,7 @@ module.exports = exports['default'];
235
235
  Object.defineProperty(exports, "__esModule", ({
236
236
  value: true
237
237
  }));
238
- exports.default = deprecated;
238
+ exports["default"] = deprecated;
239
239
 
240
240
  var _warning = __webpack_require__(459);
241
241
 
@@ -291,7 +291,7 @@ Object.defineProperty(exports, "__esModule", ({
291
291
  value: true
292
292
  }));
293
293
 
294
- var _react = __webpack_require__(698);
294
+ var _react = __webpack_require__(787);
295
295
 
296
296
  var _react2 = _interopRequireDefault(_react);
297
297
 
@@ -321,7 +321,7 @@ function elementType(props, propName, componentName, location, propFullName) {
321
321
  return null;
322
322
  }
323
323
 
324
- exports.default = (0, _createChainableTypeChecker2.default)(elementType);
324
+ exports["default"] = (0, _createChainableTypeChecker2.default)(elementType);
325
325
  module.exports = exports['default'];
326
326
 
327
327
  /***/ }),
@@ -381,7 +381,7 @@ __webpack_unused_export__ = _isRequiredForA11y2.default;
381
381
  Object.defineProperty(exports, "__esModule", ({
382
382
  value: true
383
383
  }));
384
- exports.default = isRequiredForA11y;
384
+ exports["default"] = isRequiredForA11y;
385
385
 
386
386
  function isRequiredForA11y(validator) {
387
387
  return function validate(props, propName, componentName, location, propFullName) {
@@ -413,7 +413,7 @@ module.exports = exports['default'];
413
413
  Object.defineProperty(exports, "__esModule", ({
414
414
  value: true
415
415
  }));
416
- exports.default = createChainableTypeChecker;
416
+ exports["default"] = createChainableTypeChecker;
417
417
  /**
418
418
  * Copyright 2013-present, Facebook, Inc.
419
419
  * All rights reserved.
@@ -729,7 +729,7 @@ if (true) {
729
729
  */
730
730
 
731
731
 
732
- __webpack_require__(698);
732
+ __webpack_require__(787);
733
733
 
734
734
  exports.Fragment = 60107;
735
735
 
@@ -756,7 +756,7 @@ exports.jsxDEV = void 0;
756
756
  */
757
757
 
758
758
 
759
- var f = __webpack_require__(698),
759
+ var f = __webpack_require__(787),
760
760
  g = 60103;
761
761
 
762
762
  exports.Fragment = 60107;
@@ -897,19 +897,19 @@ module.exports = warning;
897
897
 
898
898
  /***/ }),
899
899
 
900
- /***/ 698:
900
+ /***/ 787:
901
901
  /***/ ((module) => {
902
902
 
903
903
  "use strict";
904
- module.exports = __WEBPACK_EXTERNAL_MODULE__698__;
904
+ module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
905
905
 
906
906
  /***/ }),
907
907
 
908
- /***/ 207:
908
+ /***/ 156:
909
909
  /***/ ((module) => {
910
910
 
911
911
  "use strict";
912
- module.exports = __WEBPACK_EXTERNAL_MODULE__207__;
912
+ module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
913
913
 
914
914
  /***/ })
915
915
 
@@ -1015,7 +1015,6 @@ __webpack_require__.d(__webpack_exports__, {
1015
1015
  "ButtonGroup": () => (/* reexport */ src_ButtonGroup),
1016
1016
  "ButtonToolbar": () => (/* reexport */ src_ButtonToolbar),
1017
1017
  "Card": () => (/* reexport */ src_Card),
1018
- "CardColumns": () => (/* reexport */ CardColumns),
1019
1018
  "CardGroup": () => (/* reexport */ CardGroup),
1020
1019
  "CardImg": () => (/* reexport */ src_CardImg),
1021
1020
  "Carousel": () => (/* reexport */ src_Carousel),
@@ -1068,8 +1067,10 @@ __webpack_require__.d(__webpack_exports__, {
1068
1067
  "ProgressBar": () => (/* reexport */ src_ProgressBar),
1069
1068
  "Ratio": () => (/* reexport */ src_Ratio),
1070
1069
  "Row": () => (/* reexport */ src_Row),
1070
+ "SSRProvider": () => (/* reexport */ src_SSRProvider),
1071
1071
  "Spinner": () => (/* reexport */ src_Spinner),
1072
1072
  "SplitButton": () => (/* reexport */ src_SplitButton),
1073
+ "Stack": () => (/* reexport */ src_Stack),
1073
1074
  "Tab": () => (/* reexport */ src_Tab),
1074
1075
  "TabContainer": () => (/* reexport */ src_TabContainer),
1075
1076
  "TabContent": () => (/* reexport */ TabContent),
@@ -1091,7 +1092,7 @@ __webpack_require__.d(__webpack_exports__, {
1091
1092
  var classnames = __webpack_require__(814);
1092
1093
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
1093
1094
  // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
1094
- var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(698);
1095
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
1095
1096
  var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
1096
1097
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1097
1098
  var prop_types = __webpack_require__(526);
@@ -1739,7 +1740,7 @@ function inheritsLoose_inheritsLoose(subClass, superClass) {
1739
1740
  _setPrototypeOf(subClass, superClass);
1740
1741
  }
1741
1742
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
1742
- var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(207);
1743
+ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
1743
1744
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
1744
1745
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js
1745
1746
  /* harmony default export */ const config = ({
@@ -2599,9 +2600,6 @@ const propTypes = {
2599
2600
  /**
2600
2601
  * The dimension used when collapsing, or a function that returns the
2601
2602
  * dimension
2602
- *
2603
- * _Note: Bootstrap only partially supports 'width'!
2604
- * You will need to supply your own CSS animation for the `.width` CSS class._
2605
2603
  */
2606
2604
  dimension: prop_types_default().oneOfType([prop_types_default().oneOf(['height', 'width']), (prop_types_default()).func]),
2607
2605
 
@@ -2681,11 +2679,11 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
2681
2679
  onExiting: handleExiting,
2682
2680
  childRef: children.ref,
2683
2681
  children: (state, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, { ...innerProps,
2684
- className: classnames_default()(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'width')
2682
+ className: classnames_default()(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'collapse-horizontal')
2685
2683
  })
2686
2684
  }, void 0, false, {
2687
2685
  fileName: Collapse_jsxFileName,
2688
- lineNumber: 229,
2686
+ lineNumber: 226,
2689
2687
  columnNumber: 7
2690
2688
  }, undefined);
2691
2689
  }); // @ts-ignore
@@ -3651,7 +3649,7 @@ function useButtonProps({
3651
3649
  }
3652
3650
 
3653
3651
  const handleClick = event => {
3654
- if (disabled || isTrivialHref(href)) {
3652
+ if (disabled || tagName === 'a' && isTrivialHref(href)) {
3655
3653
  event.preventDefault();
3656
3654
  }
3657
3655
 
@@ -3729,6 +3727,9 @@ function Anchor_objectWithoutPropertiesLoose(source, excluded) {
3729
3727
 
3730
3728
 
3731
3729
 
3730
+ function Anchor_isTrivialHref(href) {
3731
+ return !href || href.trim() === '#';
3732
+ }
3732
3733
  /**
3733
3734
  * An generic `<a>` component that covers a few A11y cases, ensuring that
3734
3735
  * cases where the `href` is missing or trivial like "#" are treated like buttons.
@@ -3748,7 +3749,7 @@ const Anchor = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
3748
3749
  onKeyDown == null ? void 0 : onKeyDown(e);
3749
3750
  });
3750
3751
 
3751
- if (isTrivialHref(props.href) && !props.role || props.role === 'button') {
3752
+ if (Anchor_isTrivialHref(props.href) && !props.role || props.role === 'button') {
3752
3753
  return /*#__PURE__*/(0,jsx_runtime.jsx)("a", Object.assign({
3753
3754
  ref: ref
3754
3755
  }, props, buttonProps, {
@@ -3837,7 +3838,13 @@ const Fade_propTypes = {
3837
3838
  /**
3838
3839
  * You must provide a single JSX child element to this component and that element cannot be a \<React.Fragment\>
3839
3840
  */
3840
- children: (prop_types_default()).element.isRequired
3841
+ children: (prop_types_default()).element.isRequired,
3842
+
3843
+ /**
3844
+ * Applies additional specified classes during the transition. Takes an object
3845
+ * where the keys correspond to the Transition status
3846
+ */
3847
+ transitionClasses: (prop_types_default()).object
3841
3848
  };
3842
3849
  const Fade_defaultProps = {
3843
3850
  in: false,
@@ -3853,6 +3860,7 @@ const fadeStyles = {
3853
3860
  const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
3854
3861
  className,
3855
3862
  children,
3863
+ transitionClasses = {},
3856
3864
  ...props
3857
3865
  }, ref) => {
3858
3866
  const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((node, isAppearing) => {
@@ -3866,11 +3874,11 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
3866
3874
  onEnter: handleEnter,
3867
3875
  childRef: children.ref,
3868
3876
  children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, { ...innerProps,
3869
- className: classnames_default()('fade', className, children.props.className, fadeStyles[status])
3877
+ className: classnames_default()('fade', className, children.props.className, fadeStyles[status], transitionClasses[status])
3870
3878
  })
3871
3879
  }, void 0, false, {
3872
3880
  fileName: Fade_jsxFileName,
3873
- lineNumber: 109,
3881
+ lineNumber: 116,
3874
3882
  columnNumber: 7
3875
3883
  }, undefined);
3876
3884
  });
@@ -4736,9 +4744,6 @@ Card.defaultProps = Card_defaultProps;
4736
4744
  Footer: CardFooter,
4737
4745
  ImgOverlay: CardImgOverlay
4738
4746
  }));
4739
- ;// CONCATENATED MODULE: ./src/CardColumns.tsx
4740
-
4741
- /* harmony default export */ const CardColumns = (createWithBsPrefix('card-columns'));
4742
4747
  ;// CONCATENATED MODULE: ./src/CardGroup.tsx
4743
4748
 
4744
4749
  /* harmony default export */ const CardGroup = (createWithBsPrefix('card-group'));
@@ -5604,7 +5609,7 @@ function useCol({
5604
5609
 
5605
5610
  if (typeof propValue === 'object' && propValue != null) {
5606
5611
  ({
5607
- span = true,
5612
+ span,
5608
5613
  offset,
5609
5614
  order
5610
5615
  } = propValue);
@@ -5618,7 +5623,7 @@ function useCol({
5618
5623
  if (offset != null) classes.push(`offset${infix}-${offset}`);
5619
5624
  });
5620
5625
  return [{ ...props,
5621
- className: classnames_default()(className, ...classes, ...spans)
5626
+ className: classnames_default()(className, ...spans, ...classes)
5622
5627
  }, {
5623
5628
  as,
5624
5629
  bsPrefix,
@@ -5796,46 +5801,6 @@ function useSafeState(state) {
5796
5801
  function getBasePlacement(placement) {
5797
5802
  return placement.split('-')[0];
5798
5803
  }
5799
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5800
- function getBoundingClientRect(element) {
5801
- var rect = element.getBoundingClientRect();
5802
- return {
5803
- width: rect.width,
5804
- height: rect.height,
5805
- top: rect.top,
5806
- right: rect.right,
5807
- bottom: rect.bottom,
5808
- left: rect.left,
5809
- x: rect.left,
5810
- y: rect.top
5811
- };
5812
- }
5813
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
5814
- // Returns the layout rect of an element relative to its offsetParent. Layout
5815
- // means it doesn't take into account transforms.
5816
-
5817
- function getLayoutRect(element) {
5818
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
5819
- // Fixes https://github.com/popperjs/popper-core/issues/1223
5820
-
5821
- var width = element.offsetWidth;
5822
- var height = element.offsetHeight;
5823
-
5824
- if (Math.abs(clientRect.width - width) <= 1) {
5825
- width = clientRect.width;
5826
- }
5827
-
5828
- if (Math.abs(clientRect.height - height) <= 1) {
5829
- height = clientRect.height;
5830
- }
5831
-
5832
- return {
5833
- x: element.offsetLeft,
5834
- y: element.offsetTop,
5835
- width: width,
5836
- height: height
5837
- };
5838
- }
5839
5804
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindow.js
5840
5805
  function getWindow(node) {
5841
5806
  if (node == null) {
@@ -5873,6 +5838,69 @@ function isShadowRoot(node) {
5873
5838
  }
5874
5839
 
5875
5840
 
5841
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5842
+
5843
+ var round = Math.round;
5844
+ function getBoundingClientRect(element, includeScale) {
5845
+ if (includeScale === void 0) {
5846
+ includeScale = false;
5847
+ }
5848
+
5849
+ var rect = element.getBoundingClientRect();
5850
+ var scaleX = 1;
5851
+ var scaleY = 1;
5852
+
5853
+ if (isHTMLElement(element) && includeScale) {
5854
+ var offsetHeight = element.offsetHeight;
5855
+ var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
5856
+ // Fallback to 1 in case both values are `0`
5857
+
5858
+ if (offsetWidth > 0) {
5859
+ scaleX = rect.width / offsetWidth || 1;
5860
+ }
5861
+
5862
+ if (offsetHeight > 0) {
5863
+ scaleY = rect.height / offsetHeight || 1;
5864
+ }
5865
+ }
5866
+
5867
+ return {
5868
+ width: round(rect.width / scaleX),
5869
+ height: round(rect.height / scaleY),
5870
+ top: round(rect.top / scaleY),
5871
+ right: round(rect.right / scaleX),
5872
+ bottom: round(rect.bottom / scaleY),
5873
+ left: round(rect.left / scaleX),
5874
+ x: round(rect.left / scaleX),
5875
+ y: round(rect.top / scaleY)
5876
+ };
5877
+ }
5878
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
5879
+ // Returns the layout rect of an element relative to its offsetParent. Layout
5880
+ // means it doesn't take into account transforms.
5881
+
5882
+ function getLayoutRect(element) {
5883
+ var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
5884
+ // Fixes https://github.com/popperjs/popper-core/issues/1223
5885
+
5886
+ var width = element.offsetWidth;
5887
+ var height = element.offsetHeight;
5888
+
5889
+ if (Math.abs(clientRect.width - width) <= 1) {
5890
+ width = clientRect.width;
5891
+ }
5892
+
5893
+ if (Math.abs(clientRect.height - height) <= 1) {
5894
+ height = clientRect.height;
5895
+ }
5896
+
5897
+ return {
5898
+ x: element.offsetLeft,
5899
+ y: element.offsetTop,
5900
+ width: width,
5901
+ height: height
5902
+ };
5903
+ }
5876
5904
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/contains.js
5877
5905
 
5878
5906
  function contains(parent, child) {
@@ -6010,7 +6038,7 @@ function getMainAxisFromPlacement(placement) {
6010
6038
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
6011
6039
  var math_max = Math.max;
6012
6040
  var math_min = Math.min;
6013
- var round = Math.round;
6041
+ var math_round = Math.round;
6014
6042
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/within.js
6015
6043
 
6016
6044
  function within(min, value, max) {
@@ -6165,6 +6193,10 @@ function effect(_ref2) {
6165
6193
  requires: ['popperOffsets'],
6166
6194
  requiresIfExists: ['preventOverflow']
6167
6195
  });
6196
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getVariation.js
6197
+ function getVariation(placement) {
6198
+ return placement.split('-')[1];
6199
+ }
6168
6200
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/modifiers/computeStyles.js
6169
6201
 
6170
6202
 
@@ -6172,6 +6204,7 @@ function effect(_ref2) {
6172
6204
 
6173
6205
 
6174
6206
 
6207
+
6175
6208
  // eslint-disable-next-line import/no-unused-modules
6176
6209
 
6177
6210
  var unsetSides = {
@@ -6189,8 +6222,8 @@ function roundOffsetsByDPR(_ref) {
6189
6222
  var win = window;
6190
6223
  var dpr = win.devicePixelRatio || 1;
6191
6224
  return {
6192
- x: round(round(x * dpr) / dpr) || 0,
6193
- y: round(round(y * dpr) / dpr) || 0
6225
+ x: math_round(math_round(x * dpr) / dpr) || 0,
6226
+ y: math_round(math_round(y * dpr) / dpr) || 0
6194
6227
  };
6195
6228
  }
6196
6229
 
@@ -6200,6 +6233,7 @@ function mapToStyles(_ref2) {
6200
6233
  var popper = _ref2.popper,
6201
6234
  popperRect = _ref2.popperRect,
6202
6235
  placement = _ref2.placement,
6236
+ variation = _ref2.variation,
6203
6237
  offsets = _ref2.offsets,
6204
6238
  position = _ref2.position,
6205
6239
  gpuAcceleration = _ref2.gpuAcceleration,
@@ -6226,7 +6260,7 @@ function mapToStyles(_ref2) {
6226
6260
  if (offsetParent === getWindow(popper)) {
6227
6261
  offsetParent = getDocumentElement(popper);
6228
6262
 
6229
- if (dom_utils_getComputedStyle_getComputedStyle(offsetParent).position !== 'static') {
6263
+ if (dom_utils_getComputedStyle_getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
6230
6264
  heightProp = 'scrollHeight';
6231
6265
  widthProp = 'scrollWidth';
6232
6266
  }
@@ -6235,14 +6269,14 @@ function mapToStyles(_ref2) {
6235
6269
 
6236
6270
  offsetParent = offsetParent;
6237
6271
 
6238
- if (placement === enums_top) {
6272
+ if (placement === enums_top || (placement === left || placement === right) && variation === end) {
6239
6273
  sideY = bottom; // $FlowFixMe[prop-missing]
6240
6274
 
6241
6275
  y -= offsetParent[heightProp] - popperRect.height;
6242
6276
  y *= gpuAcceleration ? 1 : -1;
6243
6277
  }
6244
6278
 
6245
- if (placement === left) {
6279
+ if (placement === left || (placement === enums_top || placement === bottom) && variation === end) {
6246
6280
  sideX = right; // $FlowFixMe[prop-missing]
6247
6281
 
6248
6282
  x -= offsetParent[widthProp] - popperRect.width;
@@ -6257,7 +6291,7 @@ function mapToStyles(_ref2) {
6257
6291
  if (gpuAcceleration) {
6258
6292
  var _Object$assign;
6259
6293
 
6260
- return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
6294
+ return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
6261
6295
  }
6262
6296
 
6263
6297
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
@@ -6277,6 +6311,7 @@ function computeStyles(_ref4) {
6277
6311
 
6278
6312
  var commonStyles = {
6279
6313
  placement: getBasePlacement(state.placement),
6314
+ variation: getVariation(state.placement),
6280
6315
  popper: state.elements.popper,
6281
6316
  popperRect: state.rects.popper,
6282
6317
  gpuAcceleration: gpuAcceleration
@@ -6616,10 +6651,6 @@ function getClippingRect(element, boundary, rootBoundary) {
6616
6651
  clippingRect.y = clippingRect.top;
6617
6652
  return clippingRect;
6618
6653
  }
6619
- ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getVariation.js
6620
- function getVariation(placement) {
6621
- return placement.split('-')[1];
6622
- }
6623
6654
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/computeOffsets.js
6624
6655
 
6625
6656
 
@@ -6722,11 +6753,10 @@ function detectOverflow(state, options) {
6722
6753
  padding = _options$padding === void 0 ? 0 : _options$padding;
6723
6754
  var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
6724
6755
  var altContext = elementContext === popper ? reference : popper;
6725
- var referenceElement = state.elements.reference;
6726
6756
  var popperRect = state.rects.popper;
6727
6757
  var element = state.elements[altBoundary ? altContext : elementContext];
6728
6758
  var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
6729
- var referenceClientRect = getBoundingClientRect(referenceElement);
6759
+ var referenceClientRect = getBoundingClientRect(state.elements.reference);
6730
6760
  var popperOffsets = computeOffsets({
6731
6761
  reference: referenceClientRect,
6732
6762
  element: popperRect,
@@ -7246,17 +7276,26 @@ function getNodeScroll(node) {
7246
7276
 
7247
7277
 
7248
7278
 
7249
- // Returns the composite rect of an element relative to its offsetParent.
7279
+
7280
+
7281
+ function isElementScaled(element) {
7282
+ var rect = element.getBoundingClientRect();
7283
+ var scaleX = rect.width / element.offsetWidth || 1;
7284
+ var scaleY = rect.height / element.offsetHeight || 1;
7285
+ return scaleX !== 1 || scaleY !== 1;
7286
+ } // Returns the composite rect of an element relative to its offsetParent.
7250
7287
  // Composite means it takes into account transforms as well as layout.
7251
7288
 
7289
+
7252
7290
  function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
7253
7291
  if (isFixed === void 0) {
7254
7292
  isFixed = false;
7255
7293
  }
7256
7294
 
7257
- var documentElement = getDocumentElement(offsetParent);
7258
- var rect = getBoundingClientRect(elementOrVirtualElement);
7259
7295
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
7296
+ var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
7297
+ var documentElement = getDocumentElement(offsetParent);
7298
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
7260
7299
  var scroll = {
7261
7300
  scrollLeft: 0,
7262
7301
  scrollTop: 0
@@ -7273,7 +7312,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
7273
7312
  }
7274
7313
 
7275
7314
  if (isHTMLElement(offsetParent)) {
7276
- offsets = getBoundingClientRect(offsetParent);
7315
+ offsets = getBoundingClientRect(offsetParent, true);
7277
7316
  offsets.x += offsetParent.clientLeft;
7278
7317
  offsets.y += offsetParent.clientTop;
7279
7318
  } else if (documentElement) {
@@ -7428,7 +7467,8 @@ function popperGenerator(generatorOptions) {
7428
7467
  var isDestroyed = false;
7429
7468
  var instance = {
7430
7469
  state: state,
7431
- setOptions: function setOptions(options) {
7470
+ setOptions: function setOptions(setOptionsAction) {
7471
+ var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;
7432
7472
  cleanupModifierEffects();
7433
7473
  state.options = Object.assign({}, defaultOptions, state.options, options);
7434
7474
  state.scrollParents = {
@@ -7623,7 +7663,8 @@ function usePopper_objectWithoutPropertiesLoose(source, excluded) {
7623
7663
  const disabledApplyStylesModifier = {
7624
7664
  name: 'applyStyles',
7625
7665
  enabled: false,
7626
- phase: 'afterWrite'
7666
+ phase: 'afterWrite',
7667
+ fn: () => undefined
7627
7668
  }; // until docjs supports type exports...
7628
7669
 
7629
7670
  const ariaDescribedByModifier = {
@@ -8114,13 +8155,13 @@ const $f01a183cc7bdff77849e49ad26eb904$var$SSRContext = /*#__PURE__*/external_ro
8114
8155
 
8115
8156
 
8116
8157
  function SSRProvider(props) {
8117
- let cur = useContext($f01a183cc7bdff77849e49ad26eb904$var$SSRContext);
8118
- let value = useMemo(() => ({
8158
+ let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($f01a183cc7bdff77849e49ad26eb904$var$SSRContext);
8159
+ let value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
8119
8160
  // If this is the first SSRProvider, set to zero, otherwise increment.
8120
8161
  prefix: cur === $f01a183cc7bdff77849e49ad26eb904$var$defaultContext ? 0 : ++cur.prefix,
8121
8162
  current: 0
8122
8163
  }), [cur]);
8123
- return /*#__PURE__*/_react.createElement($f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, {
8164
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($f01a183cc7bdff77849e49ad26eb904$var$SSRContext.Provider, {
8124
8165
  value: value
8125
8166
  }, props.children);
8126
8167
  }
@@ -9300,7 +9341,7 @@ const Feedback = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
9300
9341
  className: classnames_default()(className, `${type}-${tooltip ? 'tooltip' : 'feedback'}`)
9301
9342
  }, void 0, false, {
9302
9343
  fileName: Feedback_jsxFileName,
9303
- lineNumber: 43,
9344
+ lineNumber: 45,
9304
9345
  columnNumber: 7
9305
9346
  }, undefined));
9306
9347
  Feedback.displayName = 'Feedback';
@@ -9526,6 +9567,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9526
9567
  isInvalid = false,
9527
9568
  feedbackTooltip = false,
9528
9569
  feedback,
9570
+ feedbackType,
9529
9571
  className,
9530
9572
  style,
9531
9573
  title = '',
@@ -9555,7 +9597,7 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9555
9597
  as: as
9556
9598
  }, void 0, false, {
9557
9599
  fileName: FormCheck_jsxFileName,
9558
- lineNumber: 156,
9600
+ lineNumber: 158,
9559
9601
  columnNumber: 9
9560
9602
  }, undefined);
9561
9603
 
@@ -9570,26 +9612,26 @@ const FormCheck = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9570
9612
  children: label
9571
9613
  }, void 0, false, {
9572
9614
  fileName: FormCheck_jsxFileName,
9573
- lineNumber: 182,
9615
+ lineNumber: 184,
9574
9616
  columnNumber: 19
9575
- }, undefined), (isValid || isInvalid) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Feedback, {
9576
- type: isValid ? 'valid' : 'invalid',
9617
+ }, undefined), feedback && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Feedback, {
9618
+ type: feedbackType,
9577
9619
  tooltip: feedbackTooltip,
9578
9620
  children: feedback
9579
9621
  }, void 0, false, {
9580
9622
  fileName: FormCheck_jsxFileName,
9581
- lineNumber: 185,
9623
+ lineNumber: 187,
9582
9624
  columnNumber: 19
9583
9625
  }, undefined)]
9584
9626
  }, void 0, true)
9585
9627
  }, void 0, false, {
9586
9628
  fileName: FormCheck_jsxFileName,
9587
- lineNumber: 169,
9629
+ lineNumber: 171,
9588
9630
  columnNumber: 11
9589
9631
  }, undefined)
9590
9632
  }, void 0, false, {
9591
9633
  fileName: FormCheck_jsxFileName,
9592
- lineNumber: 168,
9634
+ lineNumber: 170,
9593
9635
  columnNumber: 9
9594
9636
  }, undefined);
9595
9637
  });
@@ -10767,6 +10809,7 @@ var ListGroupItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-boot
10767
10809
 
10768
10810
 
10769
10811
 
10812
+
10770
10813
  const ListGroupItem_propTypes = {
10771
10814
  /**
10772
10815
  * @default 'list-group-item'
@@ -10806,53 +10849,53 @@ const ListGroupItem_propTypes = {
10806
10849
  */
10807
10850
  as: (prop_types_default()).elementType
10808
10851
  };
10809
- const ListGroupItem_defaultProps = {
10810
- variant: undefined,
10811
- active: false,
10812
- disabled: false
10813
- };
10814
10852
  const ListGroupItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
10815
10853
  bsPrefix,
10816
10854
  active,
10817
10855
  disabled,
10856
+ eventKey,
10818
10857
  className,
10819
10858
  variant,
10820
10859
  action,
10821
10860
  as,
10822
- onClick,
10823
10861
  ...props
10824
10862
  }, ref) => {
10825
10863
  bsPrefix = useBootstrapPrefix(bsPrefix, 'list-group-item');
10826
- const handleClick = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
10864
+ const [navItemProps, meta] = useNavItem({
10865
+ key: makeEventKey(eventKey, props.href),
10866
+ active,
10867
+ ...props
10868
+ });
10869
+ const handleClick = useEventCallback(event => {
10827
10870
  if (disabled) {
10828
10871
  event.preventDefault();
10829
10872
  event.stopPropagation();
10830
10873
  return;
10831
10874
  }
10832
10875
 
10833
- onClick == null ? void 0 : onClick(event);
10834
- }, [disabled, onClick]);
10876
+ navItemProps.onClick(event);
10877
+ });
10835
10878
 
10836
10879
  if (disabled && props.tabIndex === undefined) {
10837
10880
  props.tabIndex = -1;
10838
10881
  props['aria-disabled'] = true;
10839
- }
10882
+ } // eslint-disable-next-line no-nested-ternary
10840
10883
 
10841
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_NavItem, {
10884
+
10885
+ const Component = as || (action ? props.href ? 'a' : 'button' : 'div');
10886
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
10842
10887
  ref: ref,
10843
10888
  ...props,
10844
- // eslint-disable-next-line no-nested-ternary
10845
- as: as || (action ? props.href ? 'a' : 'button' : 'div'),
10889
+ ...navItemProps,
10846
10890
  onClick: handleClick,
10847
- className: classnames_default()(className, bsPrefix, active && 'active', disabled && 'disabled', variant && `${bsPrefix}-${variant}`, action && `${bsPrefix}-action`)
10891
+ className: classnames_default()(className, bsPrefix, meta.isActive && 'active', disabled && 'disabled', variant && `${bsPrefix}-${variant}`, action && `${bsPrefix}-action`)
10848
10892
  }, void 0, false, {
10849
10893
  fileName: ListGroupItem_jsxFileName,
10850
- lineNumber: 104,
10894
+ lineNumber: 105,
10851
10895
  columnNumber: 9
10852
10896
  }, undefined);
10853
10897
  });
10854
10898
  ListGroupItem.propTypes = ListGroupItem_propTypes;
10855
- ListGroupItem.defaultProps = ListGroupItem_defaultProps;
10856
10899
  ListGroupItem.displayName = 'ListGroupItem';
10857
10900
  /* harmony default export */ const src_ListGroupItem = (ListGroupItem);
10858
10901
  ;// CONCATENATED MODULE: ./src/ListGroup.tsx
@@ -10888,6 +10931,11 @@ const ListGroup_propTypes = {
10888
10931
  */
10889
10932
  horizontal: prop_types_default().oneOf([true, 'sm', 'md', 'lg', 'xl', 'xxl']),
10890
10933
 
10934
+ /**
10935
+ * Generate numbered list items.
10936
+ */
10937
+ numbered: (prop_types_default()).bool,
10938
+
10891
10939
  /**
10892
10940
  * You can use a custom element type for this component.
10893
10941
  */
@@ -10899,6 +10947,7 @@ const ListGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
10899
10947
  bsPrefix: initialBsPrefix,
10900
10948
  variant,
10901
10949
  horizontal,
10950
+ numbered,
10902
10951
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
10903
10952
  as = 'div',
10904
10953
  ...controlledProps
@@ -10917,10 +10966,10 @@ const ListGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
10917
10966
  ref: ref,
10918
10967
  ...controlledProps,
10919
10968
  as: as,
10920
- className: classnames_default()(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`)
10969
+ className: classnames_default()(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`, numbered && `${bsPrefix}-numbered`)
10921
10970
  }, void 0, false, {
10922
10971
  fileName: ListGroup_jsxFileName,
10923
- lineNumber: 74,
10972
+ lineNumber: 81,
10924
10973
  columnNumber: 7
10925
10974
  }, undefined);
10926
10975
  });
@@ -12663,14 +12712,11 @@ NavbarToggle.displayName = 'NavbarToggle';
12663
12712
  NavbarToggle.propTypes = NavbarToggle_propTypes;
12664
12713
  NavbarToggle.defaultProps = NavbarToggle_defaultProps;
12665
12714
  /* harmony default export */ const src_NavbarToggle = (NavbarToggle);
12666
- ;// CONCATENATED MODULE: ./src/Navbar.tsx
12667
- var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Navbar.tsx";
12668
-
12669
-
12670
-
12671
-
12672
-
12715
+ ;// CONCATENATED MODULE: ./src/OffcanvasBody.tsx
12673
12716
 
12717
+ /* harmony default export */ const OffcanvasBody = (createWithBsPrefix('offcanvas-body'));
12718
+ ;// CONCATENATED MODULE: ./src/OffcanvasToggling.tsx
12719
+ var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasToggling.tsx";
12674
12720
 
12675
12721
 
12676
12722
 
@@ -12678,376 +12724,71 @@ var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/s
12678
12724
 
12679
12725
 
12680
12726
 
12681
- const NavbarText = createWithBsPrefix('navbar-text', {
12682
- Component: 'span'
12683
- });
12684
- const Navbar_propTypes = {
12685
- /** @default 'navbar' */
12686
- bsPrefix: (prop_types_default()).string,
12687
12727
 
12728
+ const OffcanvasToggling_propTypes = {
12688
12729
  /**
12689
- * The general visual variant a the Navbar.
12690
- * Use in combination with the `bg` prop, `background-color` utilities,
12691
- * or your own background styles.
12692
- *
12693
- * @type {('light'|'dark')}
12730
+ * Show the component; triggers the fade in or fade out animation
12694
12731
  */
12695
- variant: (prop_types_default()).string,
12732
+ in: (prop_types_default()).bool,
12696
12733
 
12697
12734
  /**
12698
- * The breakpoint, below which, the Navbar will collapse.
12699
- * When `true` the Navbar will always be expanded regardless of screen size.
12735
+ * Wait until the first "enter" transition to mount the component (add it to the DOM)
12700
12736
  */
12701
- expand: prop_types_default().oneOf([true, 'sm', 'md', 'lg', 'xl', 'xxl']).isRequired,
12737
+ mountOnEnter: (prop_types_default()).bool,
12702
12738
 
12703
12739
  /**
12704
- * A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
12705
- * `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
12706
- *
12707
- * Pairs nicely with the `variant` prop.
12740
+ * Unmount the component (remove it from the DOM) when it is faded out
12708
12741
  */
12709
- bg: (prop_types_default()).string,
12742
+ unmountOnExit: (prop_types_default()).bool,
12710
12743
 
12711
12744
  /**
12712
- * Create a fixed navbar along the top or bottom of the screen, that scrolls with the
12713
- * page. A convenience prop for the `fixed-*` positioning classes.
12745
+ * Run the fade in animation when the component mounts, if it is initially
12746
+ * shown
12714
12747
  */
12715
- fixed: prop_types_default().oneOf(['top', 'bottom']),
12748
+ appear: (prop_types_default()).bool,
12716
12749
 
12717
12750
  /**
12718
- * Position the navbar at the top of the viewport, but only after scrolling past it.
12719
- * A convenience prop for the `sticky-top` positioning class.
12720
- *
12721
- * __Not supported in <= IE11 and other older browsers without a polyfill__
12751
+ * Duration of the fade animation in milliseconds, to ensure that finishing
12752
+ * callbacks are fired even if the original browser transition end events are
12753
+ * canceled
12722
12754
  */
12723
- sticky: prop_types_default().oneOf(['top']),
12755
+ timeout: (prop_types_default()).number,
12724
12756
 
12725
12757
  /**
12726
- * Set a custom element for this component.
12758
+ * Callback fired before the component fades in
12727
12759
  */
12728
- as: (prop_types_default()).elementType,
12760
+ onEnter: (prop_types_default()).func,
12729
12761
 
12730
12762
  /**
12731
- * A callback fired when the `<Navbar>` body collapses or expands. Fired when
12732
- * a `<Navbar.Toggle>` is clicked and called with the new `expanded`
12733
- * boolean value.
12734
- *
12735
- * @controllable expanded
12763
+ * Callback fired after the component starts to fade in
12736
12764
  */
12737
- onToggle: (prop_types_default()).func,
12765
+ onEntering: (prop_types_default()).func,
12738
12766
 
12739
12767
  /**
12740
- * A callback fired when a descendant of a child `<Nav>` is selected. Should
12741
- * be used to execute complex closing or other miscellaneous actions desired
12742
- * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
12743
- * descendants exist. The callback is called with an eventKey, which is a
12744
- * prop from the selected `<Nav>` descendant, and an event.
12745
- *
12746
- * ```js
12747
- * function (
12748
- * eventKey: mixed,
12749
- * event?: SyntheticEvent
12750
- * )
12751
- * ```
12752
- *
12753
- * For basic closing behavior after all `<Nav>` descendant onSelect events in
12754
- * mobile viewports, try using collapseOnSelect.
12755
- *
12756
- * Note: If you are manually closing the navbar using this `OnSelect` prop,
12757
- * ensure that you are setting `expanded` to false and not *toggling* between
12758
- * true and false.
12768
+ * Callback fired after the has component faded in
12759
12769
  */
12760
- onSelect: (prop_types_default()).func,
12770
+ onEntered: (prop_types_default()).func,
12761
12771
 
12762
12772
  /**
12763
- * Toggles `expanded` to `false` after the onSelect event of a descendant of a
12764
- * child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
12765
- *
12766
- * Manually controlling `expanded` via the onSelect callback is recommended instead,
12767
- * for more complex operations that need to be executed after
12768
- * the `select` event of `<Nav>` descendants.
12773
+ * Callback fired before the component fades out
12769
12774
  */
12770
- collapseOnSelect: (prop_types_default()).bool,
12775
+ onExit: (prop_types_default()).func,
12771
12776
 
12772
12777
  /**
12773
- * Controls the visiblity of the navbar body
12774
- *
12775
- * @controllable onToggle
12778
+ * Callback fired after the component starts to fade out
12776
12779
  */
12777
- expanded: (prop_types_default()).bool,
12780
+ onExiting: (prop_types_default()).func,
12778
12781
 
12779
12782
  /**
12780
- * The ARIA role for the navbar, will default to 'navigation' for
12781
- * Navbars whose `as` is something other than `<nav>`.
12782
- *
12783
- * @default 'navigation'
12783
+ * Callback fired after the component has faded out
12784
12784
  */
12785
- role: (prop_types_default()).string
12785
+ onExited: (prop_types_default()).func
12786
12786
  };
12787
- const Navbar_defaultProps = {
12788
- expand: true,
12789
- variant: 'light',
12790
- collapseOnSelect: false
12791
- };
12792
- const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
12793
- const {
12794
- bsPrefix: initialBsPrefix,
12795
- expand,
12796
- variant,
12797
- bg,
12798
- fixed,
12799
- sticky,
12800
- className,
12801
- // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
12802
- as: Component = 'nav',
12803
- expanded,
12804
- onToggle,
12805
- onSelect,
12806
- collapseOnSelect,
12807
- ...controlledProps
12808
- } = useUncontrolled(props, {
12809
- expanded: 'onToggle'
12810
- });
12811
- const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
12812
- const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
12813
- onSelect == null ? void 0 : onSelect(...args);
12814
-
12815
- if (collapseOnSelect && expanded) {
12816
- onToggle == null ? void 0 : onToggle(false);
12817
- }
12818
- }, [onSelect, collapseOnSelect, expanded, onToggle]); // will result in some false positives but that seems better
12819
- // than false negatives. strict `undefined` check allows explicit
12820
- // "nulling" of the role if the user really doesn't want one
12821
-
12822
- if (controlledProps.role === undefined && Component !== 'nav') {
12823
- controlledProps.role = 'navigation';
12824
- }
12825
-
12826
- let expandClass = `${bsPrefix}-expand`;
12827
- if (typeof expand === 'string') expandClass = `${expandClass}-${expand}`;
12828
- const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
12829
- onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
12830
- bsPrefix,
12831
- expanded: !!expanded
12832
- }), [bsPrefix, expanded, onToggle]);
12833
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
12834
- value: navbarContext,
12835
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
12836
- value: handleCollapse,
12837
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
12838
- ref: ref,
12839
- ...controlledProps,
12840
- className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
12841
- }, void 0, false, {
12842
- fileName: Navbar_jsxFileName,
12843
- lineNumber: 199,
12844
- columnNumber: 11
12845
- }, undefined)
12846
- }, void 0, false, {
12847
- fileName: Navbar_jsxFileName,
12848
- lineNumber: 198,
12849
- columnNumber: 9
12850
- }, undefined)
12851
- }, void 0, false, {
12852
- fileName: Navbar_jsxFileName,
12853
- lineNumber: 197,
12854
- columnNumber: 7
12855
- }, undefined);
12856
- });
12857
- Navbar.propTypes = Navbar_propTypes;
12858
- Navbar.defaultProps = Navbar_defaultProps;
12859
- Navbar.displayName = 'Navbar';
12860
- /* harmony default export */ const src_Navbar = (Object.assign(Navbar, {
12861
- Brand: src_NavbarBrand,
12862
- Toggle: src_NavbarToggle,
12863
- Collapse: src_NavbarCollapse,
12864
- Text: NavbarText
12865
- }));
12866
- ;// CONCATENATED MODULE: ./src/NavDropdown.tsx
12867
- var NavDropdown_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavDropdown.tsx";
12868
-
12869
-
12870
-
12871
-
12872
-
12873
-
12874
-
12875
- const NavDropdown_propTypes = {
12876
- /**
12877
- * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
12878
- * @type {string}
12879
- */
12880
- id: (prop_types_default()).string,
12881
-
12882
- /** An `onClick` handler passed to the Toggle component */
12883
- onClick: (prop_types_default()).func,
12884
-
12885
- /** The content of the non-toggle Button. */
12886
- title: (prop_types_default()).node.isRequired,
12887
-
12888
- /** Disables the toggle NavLink */
12889
- disabled: (prop_types_default()).bool,
12890
-
12891
- /** Style the toggle NavLink as active */
12892
- active: (prop_types_default()).bool,
12893
-
12894
- /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
12895
- menuRole: (prop_types_default()).string,
12896
-
12897
- /** Whether to render the dropdown menu in the DOM before the first time it is shown */
12898
- renderMenuOnMount: (prop_types_default()).bool,
12899
-
12900
- /**
12901
- * Which event when fired outside the component will cause it to be closed.
12902
- *
12903
- * _see [DropdownMenu](#menu-props) for more details_
12904
- */
12905
- rootCloseEvent: (prop_types_default()).string,
12906
-
12907
- /**
12908
- * Menu color variant.
12909
- *
12910
- * Omitting this will use the default light color.
12911
- */
12912
- menuVariant: prop_types_default().oneOf(['dark']),
12913
-
12914
- /** @ignore */
12915
- bsPrefix: (prop_types_default()).string
12916
- };
12917
- const NavDropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
12918
- id,
12919
- title,
12920
- children,
12921
- bsPrefix,
12922
- className,
12923
- rootCloseEvent,
12924
- menuRole,
12925
- disabled,
12926
- active,
12927
- renderMenuOnMount,
12928
- menuVariant,
12929
- ...props
12930
- }, ref) => {
12931
- /* NavItem has no additional logic, it's purely presentational. Can set nav item class here to support "as" */
12932
- const navItemPrefix = useBootstrapPrefix(undefined, 'nav-item');
12933
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
12934
- ref: ref,
12935
- ...props,
12936
- className: classnames_default()(className, navItemPrefix),
12937
- children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
12938
- id: id,
12939
- eventKey: null,
12940
- active: active,
12941
- disabled: disabled,
12942
- childBsPrefix: bsPrefix,
12943
- as: src_NavLink,
12944
- children: title
12945
- }, void 0, false, {
12946
- fileName: NavDropdown_jsxFileName,
12947
- lineNumber: 93,
12948
- columnNumber: 11
12949
- }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
12950
- role: menuRole,
12951
- renderOnMount: renderMenuOnMount,
12952
- rootCloseEvent: rootCloseEvent,
12953
- variant: menuVariant,
12954
- children: children
12955
- }, void 0, false, {
12956
- fileName: NavDropdown_jsxFileName,
12957
- lineNumber: 104,
12958
- columnNumber: 11
12959
- }, undefined)]
12960
- }, void 0, true, {
12961
- fileName: NavDropdown_jsxFileName,
12962
- lineNumber: 88,
12963
- columnNumber: 9
12964
- }, undefined);
12965
- });
12966
- NavDropdown.displayName = 'NavDropdown';
12967
- NavDropdown.propTypes = NavDropdown_propTypes;
12968
- /* harmony default export */ const src_NavDropdown = (Object.assign(NavDropdown, {
12969
- Item: src_Dropdown.Item,
12970
- ItemText: src_Dropdown.ItemText,
12971
- Divider: src_Dropdown.Divider,
12972
- Header: src_Dropdown.Header
12973
- }));
12974
- ;// CONCATENATED MODULE: ./src/OffcanvasBody.tsx
12975
-
12976
- /* harmony default export */ const OffcanvasBody = (createWithBsPrefix('offcanvas-body'));
12977
- ;// CONCATENATED MODULE: ./src/OffcanvasToggling.tsx
12978
- var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasToggling.tsx";
12979
-
12980
-
12981
-
12982
-
12983
-
12984
-
12985
-
12986
-
12987
- const OffcanvasToggling_propTypes = {
12988
- /**
12989
- * Show the component; triggers the fade in or fade out animation
12990
- */
12991
- in: (prop_types_default()).bool,
12992
-
12993
- /**
12994
- * Wait until the first "enter" transition to mount the component (add it to the DOM)
12995
- */
12996
- mountOnEnter: (prop_types_default()).bool,
12997
-
12998
- /**
12999
- * Unmount the component (remove it from the DOM) when it is faded out
13000
- */
13001
- unmountOnExit: (prop_types_default()).bool,
13002
-
13003
- /**
13004
- * Run the fade in animation when the component mounts, if it is initially
13005
- * shown
13006
- */
13007
- appear: (prop_types_default()).bool,
13008
-
13009
- /**
13010
- * Duration of the fade animation in milliseconds, to ensure that finishing
13011
- * callbacks are fired even if the original browser transition end events are
13012
- * canceled
13013
- */
13014
- timeout: (prop_types_default()).number,
13015
-
13016
- /**
13017
- * Callback fired before the component fades in
13018
- */
13019
- onEnter: (prop_types_default()).func,
13020
-
13021
- /**
13022
- * Callback fired after the component starts to fade in
13023
- */
13024
- onEntering: (prop_types_default()).func,
13025
-
13026
- /**
13027
- * Callback fired after the has component faded in
13028
- */
13029
- onEntered: (prop_types_default()).func,
13030
-
13031
- /**
13032
- * Callback fired before the component fades out
13033
- */
13034
- onExit: (prop_types_default()).func,
13035
-
13036
- /**
13037
- * Callback fired after the component starts to fade out
13038
- */
13039
- onExiting: (prop_types_default()).func,
13040
-
13041
- /**
13042
- * Callback fired after the component has faded out
13043
- */
13044
- onExited: (prop_types_default()).func
13045
- };
13046
- const OffcanvasToggling_defaultProps = {
13047
- in: false,
13048
- mountOnEnter: false,
13049
- unmountOnExit: false,
13050
- appear: false
12787
+ const OffcanvasToggling_defaultProps = {
12788
+ in: false,
12789
+ mountOnEnter: false,
12790
+ unmountOnExit: false,
12791
+ appear: false
13051
12792
  };
13052
12793
  const transitionStyles = {
13053
12794
  [ENTERING]: 'show',
@@ -13164,6 +12905,7 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
13164
12905
 
13165
12906
 
13166
12907
 
12908
+
13167
12909
  const Offcanvas_propTypes = {
13168
12910
  /**
13169
12911
  * @default 'offcanvas'
@@ -13176,7 +12918,7 @@ const Offcanvas_propTypes = {
13176
12918
  backdrop: (prop_types_default()).bool,
13177
12919
 
13178
12920
  /**
13179
- * Add an optional extra class name to .modal-backdrop.
12921
+ * Add an optional extra class name to .offcanvas-backdrop.
13180
12922
  */
13181
12923
  backdropClassName: (prop_types_default()).string,
13182
12924
 
@@ -13266,178 +13008,515 @@ const Offcanvas_propTypes = {
13266
13008
  */
13267
13009
  onExit: (prop_types_default()).func,
13268
13010
 
13269
- /**
13270
- * Callback fired as the offcanvas begins to transition out
13271
- */
13272
- onExiting: (prop_types_default()).func,
13011
+ /**
13012
+ * Callback fired as the offcanvas begins to transition out
13013
+ */
13014
+ onExiting: (prop_types_default()).func,
13015
+
13016
+ /**
13017
+ * Callback fired after the offcanvas finishes transitioning out
13018
+ */
13019
+ onExited: (prop_types_default()).func,
13020
+
13021
+ /**
13022
+ * @private
13023
+ */
13024
+ container: (prop_types_default()).any,
13025
+ 'aria-labelledby': (prop_types_default()).string
13026
+ };
13027
+ const Offcanvas_defaultProps = {
13028
+ show: false,
13029
+ backdrop: true,
13030
+ keyboard: true,
13031
+ scroll: false,
13032
+ autoFocus: true,
13033
+ enforceFocus: true,
13034
+ restoreFocus: true,
13035
+ placement: 'start'
13036
+ };
13037
+
13038
+ function Offcanvas_DialogTransition(props) {
13039
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
13040
+ }, void 0, false, {
13041
+ fileName: Offcanvas_jsxFileName,
13042
+ lineNumber: 178,
13043
+ columnNumber: 10
13044
+ }, this);
13045
+ }
13046
+
13047
+ function Offcanvas_BackdropTransition(props) {
13048
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
13049
+ }, void 0, false, {
13050
+ fileName: Offcanvas_jsxFileName,
13051
+ lineNumber: 182,
13052
+ columnNumber: 10
13053
+ }, this);
13054
+ }
13055
+
13056
+ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13057
+ bsPrefix,
13058
+ className,
13059
+ children,
13060
+ 'aria-labelledby': ariaLabelledby,
13061
+ placement,
13062
+
13063
+ /* BaseModal props */
13064
+ show,
13065
+ backdrop,
13066
+ keyboard,
13067
+ scroll,
13068
+ onEscapeKeyDown,
13069
+ onShow,
13070
+ onHide,
13071
+ container,
13072
+ autoFocus,
13073
+ enforceFocus,
13074
+ restoreFocus,
13075
+ restoreFocusOptions,
13076
+ onEntered,
13077
+ onExit,
13078
+ onExiting,
13079
+ onEnter,
13080
+ onEntering,
13081
+ onExited,
13082
+ backdropClassName,
13083
+ manager: propsManager,
13084
+ ...props
13085
+ }, ref) => {
13086
+ const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
13087
+ bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
13088
+ const {
13089
+ onToggle
13090
+ } = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext) || {};
13091
+ const handleHide = useEventCallback(() => {
13092
+ onToggle == null ? void 0 : onToggle();
13093
+ onHide == null ? void 0 : onHide();
13094
+ });
13095
+ const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13096
+ onHide: handleHide
13097
+ }), [handleHide]);
13098
+
13099
+ function getModalManager() {
13100
+ if (propsManager) return propsManager;
13101
+
13102
+ if (scroll) {
13103
+ // Have to use a different modal manager since the shared
13104
+ // one handles overflow.
13105
+ if (!modalManager.current) modalManager.current = new src_BootstrapModalManager({
13106
+ handleContainerOverflow: false
13107
+ });
13108
+ return modalManager.current;
13109
+ }
13110
+
13111
+ return getSharedManager();
13112
+ }
13113
+
13114
+ const handleEnter = (node, ...args) => {
13115
+ if (node) node.style.visibility = 'visible';
13116
+ onEnter == null ? void 0 : onEnter(node, ...args);
13117
+ };
13118
+
13119
+ const handleExited = (node, ...args) => {
13120
+ if (node) node.style.visibility = '';
13121
+ onExited == null ? void 0 : onExited(...args);
13122
+ };
13123
+
13124
+ const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...backdropProps,
13125
+ className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
13126
+ }, void 0, false, {
13127
+ fileName: Offcanvas_jsxFileName,
13128
+ lineNumber: 264,
13129
+ columnNumber: 11
13130
+ }, undefined), [backdropClassName, bsPrefix]);
13131
+
13132
+ const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13133
+ role: "dialog",
13134
+ ...dialogProps,
13135
+ ...props,
13136
+ className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
13137
+ "aria-labelledby": ariaLabelledby,
13138
+ children: children
13139
+ }, void 0, false, {
13140
+ fileName: Offcanvas_jsxFileName,
13141
+ lineNumber: 273,
13142
+ columnNumber: 9
13143
+ }, undefined);
13144
+
13145
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13146
+ value: modalContext,
13147
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13148
+ show: show,
13149
+ ref: ref,
13150
+ backdrop: backdrop,
13151
+ container: container,
13152
+ keyboard: keyboard,
13153
+ autoFocus: autoFocus,
13154
+ enforceFocus: enforceFocus && !scroll,
13155
+ restoreFocus: restoreFocus,
13156
+ restoreFocusOptions: restoreFocusOptions,
13157
+ onEscapeKeyDown: onEscapeKeyDown,
13158
+ onShow: onShow,
13159
+ onHide: handleHide,
13160
+ onEnter: handleEnter,
13161
+ onEntering: onEntering,
13162
+ onEntered: onEntered,
13163
+ onExit: onExit,
13164
+ onExiting: onExiting,
13165
+ onExited: handleExited,
13166
+ manager: getModalManager(),
13167
+ transition: Offcanvas_DialogTransition,
13168
+ backdropTransition: Offcanvas_BackdropTransition,
13169
+ renderBackdrop: renderBackdrop,
13170
+ renderDialog: renderDialog
13171
+ }, void 0, false, {
13172
+ fileName: Offcanvas_jsxFileName,
13173
+ lineNumber: 290,
13174
+ columnNumber: 11
13175
+ }, undefined)
13176
+ }, void 0, false, {
13177
+ fileName: Offcanvas_jsxFileName,
13178
+ lineNumber: 289,
13179
+ columnNumber: 9
13180
+ }, undefined);
13181
+ });
13182
+ Offcanvas.displayName = 'Offcanvas';
13183
+ Offcanvas.propTypes = Offcanvas_propTypes;
13184
+ Offcanvas.defaultProps = Offcanvas_defaultProps;
13185
+ /* harmony default export */ const src_Offcanvas = (Object.assign(Offcanvas, {
13186
+ Body: OffcanvasBody,
13187
+ Header: src_OffcanvasHeader,
13188
+ Title: OffcanvasTitle
13189
+ }));
13190
+ ;// CONCATENATED MODULE: ./src/NavbarOffcanvas.tsx
13191
+ var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavbarOffcanvas.tsx";
13192
+
13193
+
13194
+
13195
+
13196
+
13197
+ const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
13198
+ const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
13199
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
13200
+ ref: ref,
13201
+ show: !!(context != null && context.expanded),
13202
+ ...props
13203
+ }, void 0, false, {
13204
+ fileName: NavbarOffcanvas_jsxFileName,
13205
+ lineNumber: 10,
13206
+ columnNumber: 12
13207
+ }, undefined);
13208
+ });
13209
+ NavbarOffcanvas.displayName = 'NavbarOffcanvas';
13210
+ /* harmony default export */ const src_NavbarOffcanvas = (NavbarOffcanvas);
13211
+ ;// CONCATENATED MODULE: ./src/Navbar.tsx
13212
+ var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Navbar.tsx";
13213
+
13214
+
13215
+
13216
+
13217
+
13218
+
13219
+
13220
+
13221
+
13222
+
13223
+
13224
+
13225
+
13226
+
13227
+ const NavbarText = createWithBsPrefix('navbar-text', {
13228
+ Component: 'span'
13229
+ });
13230
+ const Navbar_propTypes = {
13231
+ /** @default 'navbar' */
13232
+ bsPrefix: (prop_types_default()).string,
13233
+
13234
+ /**
13235
+ * The general visual variant a the Navbar.
13236
+ * Use in combination with the `bg` prop, `background-color` utilities,
13237
+ * or your own background styles.
13238
+ *
13239
+ * @type {('light'|'dark')}
13240
+ */
13241
+ variant: (prop_types_default()).string,
13242
+
13243
+ /**
13244
+ * The breakpoint, below which, the Navbar will collapse.
13245
+ * When `true` the Navbar will always be expanded regardless of screen size.
13246
+ */
13247
+ expand: prop_types_default().oneOf([false, true, 'sm', 'md', 'lg', 'xl', 'xxl']).isRequired,
13248
+
13249
+ /**
13250
+ * A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
13251
+ * `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
13252
+ *
13253
+ * Pairs nicely with the `variant` prop.
13254
+ */
13255
+ bg: (prop_types_default()).string,
13256
+
13257
+ /**
13258
+ * Create a fixed navbar along the top or bottom of the screen, that scrolls with the
13259
+ * page. A convenience prop for the `fixed-*` positioning classes.
13260
+ */
13261
+ fixed: prop_types_default().oneOf(['top', 'bottom']),
13262
+
13263
+ /**
13264
+ * Position the navbar at the top of the viewport, but only after scrolling past it.
13265
+ * A convenience prop for the `sticky-top` positioning class.
13266
+ *
13267
+ * __Not supported in <= IE11 and other older browsers without a polyfill__
13268
+ */
13269
+ sticky: prop_types_default().oneOf(['top']),
13270
+
13271
+ /**
13272
+ * Set a custom element for this component.
13273
+ */
13274
+ as: (prop_types_default()).elementType,
13275
+
13276
+ /**
13277
+ * A callback fired when the `<Navbar>` body collapses or expands. Fired when
13278
+ * a `<Navbar.Toggle>` is clicked and called with the new `expanded`
13279
+ * boolean value.
13280
+ *
13281
+ * @controllable expanded
13282
+ */
13283
+ onToggle: (prop_types_default()).func,
13284
+
13285
+ /**
13286
+ * A callback fired when a descendant of a child `<Nav>` is selected. Should
13287
+ * be used to execute complex closing or other miscellaneous actions desired
13288
+ * after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
13289
+ * descendants exist. The callback is called with an eventKey, which is a
13290
+ * prop from the selected `<Nav>` descendant, and an event.
13291
+ *
13292
+ * ```js
13293
+ * function (
13294
+ * eventKey: mixed,
13295
+ * event?: SyntheticEvent
13296
+ * )
13297
+ * ```
13298
+ *
13299
+ * For basic closing behavior after all `<Nav>` descendant onSelect events in
13300
+ * mobile viewports, try using collapseOnSelect.
13301
+ *
13302
+ * Note: If you are manually closing the navbar using this `OnSelect` prop,
13303
+ * ensure that you are setting `expanded` to false and not *toggling* between
13304
+ * true and false.
13305
+ */
13306
+ onSelect: (prop_types_default()).func,
13307
+
13308
+ /**
13309
+ * Toggles `expanded` to `false` after the onSelect event of a descendant of a
13310
+ * child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
13311
+ *
13312
+ * Manually controlling `expanded` via the onSelect callback is recommended instead,
13313
+ * for more complex operations that need to be executed after
13314
+ * the `select` event of `<Nav>` descendants.
13315
+ */
13316
+ collapseOnSelect: (prop_types_default()).bool,
13317
+
13318
+ /**
13319
+ * Controls the visiblity of the navbar body
13320
+ *
13321
+ * @controllable onToggle
13322
+ */
13323
+ expanded: (prop_types_default()).bool,
13324
+
13325
+ /**
13326
+ * The ARIA role for the navbar, will default to 'navigation' for
13327
+ * Navbars whose `as` is something other than `<nav>`.
13328
+ *
13329
+ * @default 'navigation'
13330
+ */
13331
+ role: (prop_types_default()).string
13332
+ };
13333
+ const Navbar_defaultProps = {
13334
+ expand: true,
13335
+ variant: 'light',
13336
+ collapseOnSelect: false
13337
+ };
13338
+ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
13339
+ const {
13340
+ bsPrefix: initialBsPrefix,
13341
+ expand,
13342
+ variant,
13343
+ bg,
13344
+ fixed,
13345
+ sticky,
13346
+ className,
13347
+ // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
13348
+ as: Component = 'nav',
13349
+ expanded,
13350
+ onToggle,
13351
+ onSelect,
13352
+ collapseOnSelect,
13353
+ ...controlledProps
13354
+ } = useUncontrolled(props, {
13355
+ expanded: 'onToggle'
13356
+ });
13357
+ const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
13358
+ const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
13359
+ onSelect == null ? void 0 : onSelect(...args);
13360
+
13361
+ if (collapseOnSelect && expanded) {
13362
+ onToggle == null ? void 0 : onToggle(false);
13363
+ }
13364
+ }, [onSelect, collapseOnSelect, expanded, onToggle]); // will result in some false positives but that seems better
13365
+ // than false negatives. strict `undefined` check allows explicit
13366
+ // "nulling" of the role if the user really doesn't want one
13367
+
13368
+ if (controlledProps.role === undefined && Component !== 'nav') {
13369
+ controlledProps.role = 'navigation';
13370
+ }
13371
+
13372
+ let expandClass = `${bsPrefix}-expand`;
13373
+ if (typeof expand === 'string') expandClass = `${expandClass}-${expand}`;
13374
+ const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13375
+ onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
13376
+ bsPrefix,
13377
+ expanded: !!expanded
13378
+ }), [bsPrefix, expanded, onToggle]);
13379
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
13380
+ value: navbarContext,
13381
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
13382
+ value: handleCollapse,
13383
+ children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
13384
+ ref: ref,
13385
+ ...controlledProps,
13386
+ className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13387
+ }, void 0, false, {
13388
+ fileName: Navbar_jsxFileName,
13389
+ lineNumber: 201,
13390
+ columnNumber: 11
13391
+ }, undefined)
13392
+ }, void 0, false, {
13393
+ fileName: Navbar_jsxFileName,
13394
+ lineNumber: 200,
13395
+ columnNumber: 9
13396
+ }, undefined)
13397
+ }, void 0, false, {
13398
+ fileName: Navbar_jsxFileName,
13399
+ lineNumber: 199,
13400
+ columnNumber: 7
13401
+ }, undefined);
13402
+ });
13403
+ Navbar.propTypes = Navbar_propTypes;
13404
+ Navbar.defaultProps = Navbar_defaultProps;
13405
+ Navbar.displayName = 'Navbar';
13406
+ /* harmony default export */ const src_Navbar = (Object.assign(Navbar, {
13407
+ Brand: src_NavbarBrand,
13408
+ Collapse: src_NavbarCollapse,
13409
+ Offcanvas: src_NavbarOffcanvas,
13410
+ Text: NavbarText,
13411
+ Toggle: src_NavbarToggle
13412
+ }));
13413
+ ;// CONCATENATED MODULE: ./src/NavDropdown.tsx
13414
+ var NavDropdown_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavDropdown.tsx";
13415
+
13416
+
13417
+
13418
+
13419
+
13420
+
13421
+
13422
+ const NavDropdown_propTypes = {
13423
+ /**
13424
+ * An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
13425
+ * @type {string}
13426
+ */
13427
+ id: (prop_types_default()).string,
13428
+
13429
+ /** An `onClick` handler passed to the Toggle component */
13430
+ onClick: (prop_types_default()).func,
13431
+
13432
+ /** The content of the non-toggle Button. */
13433
+ title: (prop_types_default()).node.isRequired,
13434
+
13435
+ /** Disables the toggle NavLink */
13436
+ disabled: (prop_types_default()).bool,
13437
+
13438
+ /** Style the toggle NavLink as active */
13439
+ active: (prop_types_default()).bool,
13440
+
13441
+ /** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
13442
+ menuRole: (prop_types_default()).string,
13443
+
13444
+ /** Whether to render the dropdown menu in the DOM before the first time it is shown */
13445
+ renderMenuOnMount: (prop_types_default()).bool,
13273
13446
 
13274
13447
  /**
13275
- * Callback fired after the offcanvas finishes transitioning out
13448
+ * Which event when fired outside the component will cause it to be closed.
13449
+ *
13450
+ * _see [DropdownMenu](#menu-props) for more details_
13276
13451
  */
13277
- onExited: (prop_types_default()).func,
13452
+ rootCloseEvent: (prop_types_default()).string,
13278
13453
 
13279
13454
  /**
13280
- * @private
13455
+ * Menu color variant.
13456
+ *
13457
+ * Omitting this will use the default light color.
13281
13458
  */
13282
- container: (prop_types_default()).any,
13283
- 'aria-labelledby': (prop_types_default()).string
13284
- };
13285
- const Offcanvas_defaultProps = {
13286
- show: false,
13287
- backdrop: true,
13288
- keyboard: true,
13289
- scroll: false,
13290
- autoFocus: true,
13291
- enforceFocus: true,
13292
- restoreFocus: true,
13293
- placement: 'start'
13294
- };
13295
-
13296
- function Offcanvas_DialogTransition(props) {
13297
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
13298
- }, void 0, false, {
13299
- fileName: Offcanvas_jsxFileName,
13300
- lineNumber: 177,
13301
- columnNumber: 10
13302
- }, this);
13303
- }
13304
-
13305
- function Offcanvas_BackdropTransition(props) {
13306
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
13307
- }, void 0, false, {
13308
- fileName: Offcanvas_jsxFileName,
13309
- lineNumber: 181,
13310
- columnNumber: 10
13311
- }, this);
13312
- }
13459
+ menuVariant: prop_types_default().oneOf(['dark']),
13313
13460
 
13314
- const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13461
+ /** @ignore */
13462
+ bsPrefix: (prop_types_default()).string
13463
+ };
13464
+ const NavDropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13465
+ id,
13466
+ title,
13467
+ children,
13315
13468
  bsPrefix,
13316
13469
  className,
13317
- children,
13318
- 'aria-labelledby': ariaLabelledby,
13319
- placement,
13320
-
13321
- /* BaseModal props */
13322
- show,
13323
- backdrop,
13324
- keyboard,
13325
- scroll,
13326
- onEscapeKeyDown,
13327
- onShow,
13328
- onHide,
13329
- container,
13330
- autoFocus,
13331
- enforceFocus,
13332
- restoreFocus,
13333
- restoreFocusOptions,
13334
- onEntered,
13335
- onExit,
13336
- onExiting,
13337
- onEnter,
13338
- onEntering,
13339
- onExited,
13340
- backdropClassName,
13341
- manager: propsManager,
13470
+ rootCloseEvent,
13471
+ menuRole,
13472
+ disabled,
13473
+ active,
13474
+ renderMenuOnMount,
13475
+ menuVariant,
13342
13476
  ...props
13343
13477
  }, ref) => {
13344
- const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
13345
- const handleHide = useEventCallback(onHide);
13346
- bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
13347
- const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13348
- onHide: handleHide
13349
- }), [handleHide]);
13350
-
13351
- function getModalManager() {
13352
- if (propsManager) return propsManager;
13353
-
13354
- if (scroll) {
13355
- // Have to use a different modal manager since the shared
13356
- // one handles overflow.
13357
- if (!modalManager.current) modalManager.current = new src_BootstrapModalManager({
13358
- handleContainerOverflow: false
13359
- });
13360
- return modalManager.current;
13361
- }
13362
-
13363
- return getSharedManager();
13364
- }
13365
-
13366
- const handleEnter = (node, ...args) => {
13367
- if (node) node.style.visibility = 'visible';
13368
- onEnter == null ? void 0 : onEnter(node, ...args);
13369
- };
13370
-
13371
- const handleExited = (node, ...args) => {
13372
- if (node) node.style.visibility = '';
13373
- onExited == null ? void 0 : onExited(...args);
13374
- };
13375
-
13376
- const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...backdropProps,
13377
- className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
13378
- }, void 0, false, {
13379
- fileName: Offcanvas_jsxFileName,
13380
- lineNumber: 259,
13381
- columnNumber: 11
13382
- }, undefined), [backdropClassName, bsPrefix]);
13383
-
13384
- const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13385
- role: "dialog",
13386
- ...dialogProps,
13478
+ /* NavItem has no additional logic, it's purely presentational. Can set nav item class here to support "as" */
13479
+ const navItemPrefix = useBootstrapPrefix(undefined, 'nav-item');
13480
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
13481
+ ref: ref,
13387
13482
  ...props,
13388
- className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
13389
- "aria-labelledby": ariaLabelledby,
13390
- children: children
13391
- }, void 0, false, {
13392
- fileName: Offcanvas_jsxFileName,
13393
- lineNumber: 271,
13394
- columnNumber: 9
13395
- }, undefined);
13396
-
13397
- return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
13398
- value: modalContext,
13399
- children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
13400
- show: show,
13401
- ref: ref,
13402
- backdrop: backdrop,
13403
- container: container,
13404
- keyboard: keyboard,
13405
- autoFocus: autoFocus,
13406
- enforceFocus: enforceFocus && !scroll,
13407
- restoreFocus: restoreFocus,
13408
- restoreFocusOptions: restoreFocusOptions,
13409
- onEscapeKeyDown: onEscapeKeyDown,
13410
- onShow: onShow,
13411
- onHide: onHide,
13412
- onEnter: handleEnter,
13413
- onEntering: onEntering,
13414
- onEntered: onEntered,
13415
- onExit: onExit,
13416
- onExiting: onExiting,
13417
- onExited: handleExited,
13418
- manager: getModalManager(),
13419
- transition: Offcanvas_DialogTransition,
13420
- backdropTransition: Offcanvas_BackdropTransition,
13421
- renderBackdrop: renderBackdrop,
13422
- renderDialog: renderDialog
13483
+ className: classnames_default()(className, navItemPrefix),
13484
+ children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
13485
+ id: id,
13486
+ eventKey: null,
13487
+ active: active,
13488
+ disabled: disabled,
13489
+ childBsPrefix: bsPrefix,
13490
+ as: src_NavLink,
13491
+ children: title
13423
13492
  }, void 0, false, {
13424
- fileName: Offcanvas_jsxFileName,
13425
- lineNumber: 288,
13493
+ fileName: NavDropdown_jsxFileName,
13494
+ lineNumber: 93,
13426
13495
  columnNumber: 11
13427
- }, undefined)
13428
- }, void 0, false, {
13429
- fileName: Offcanvas_jsxFileName,
13430
- lineNumber: 287,
13496
+ }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
13497
+ role: menuRole,
13498
+ renderOnMount: renderMenuOnMount,
13499
+ rootCloseEvent: rootCloseEvent,
13500
+ variant: menuVariant,
13501
+ children: children
13502
+ }, void 0, false, {
13503
+ fileName: NavDropdown_jsxFileName,
13504
+ lineNumber: 104,
13505
+ columnNumber: 11
13506
+ }, undefined)]
13507
+ }, void 0, true, {
13508
+ fileName: NavDropdown_jsxFileName,
13509
+ lineNumber: 88,
13431
13510
  columnNumber: 9
13432
13511
  }, undefined);
13433
13512
  });
13434
- Offcanvas.displayName = 'Offcanvas';
13435
- Offcanvas.propTypes = Offcanvas_propTypes;
13436
- Offcanvas.defaultProps = Offcanvas_defaultProps;
13437
- /* harmony default export */ const src_Offcanvas = (Object.assign(Offcanvas, {
13438
- Body: OffcanvasBody,
13439
- Header: src_OffcanvasHeader,
13440
- Title: OffcanvasTitle
13513
+ NavDropdown.displayName = 'NavDropdown';
13514
+ NavDropdown.propTypes = NavDropdown_propTypes;
13515
+ /* harmony default export */ const src_NavDropdown = (Object.assign(NavDropdown, {
13516
+ Item: src_Dropdown.Item,
13517
+ ItemText: src_Dropdown.ItemText,
13518
+ Divider: src_Dropdown.Divider,
13519
+ Header: src_Dropdown.Header
13441
13520
  }));
13442
13521
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Overlay.js
13443
13522
 
@@ -14998,6 +15077,90 @@ SplitButton.propTypes = SplitButton_propTypes;
14998
15077
  SplitButton.defaultProps = SplitButton_defaultProps;
14999
15078
  SplitButton.displayName = 'SplitButton';
15000
15079
  /* harmony default export */ const src_SplitButton = (SplitButton);
15080
+ ;// CONCATENATED MODULE: ./src/SSRProvider.ts
15081
+
15082
+ /* harmony default export */ const src_SSRProvider = (SSRProvider);
15083
+ ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15084
+
15085
+ function responsivePropType(propType) {
15086
+ return prop_types_default().oneOfType([propType, prop_types_default().shape({
15087
+ xs: propType,
15088
+ sm: propType,
15089
+ md: propType,
15090
+ lg: propType,
15091
+ xl: propType,
15092
+ xxl: propType
15093
+ })]);
15094
+ }
15095
+ const createUtilityClasses_DEVICE_SIZES = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
15096
+ function createUtilityClassName(utilityValues) {
15097
+ const classes = [];
15098
+ Object.entries(utilityValues).forEach(([utilName, utilValue]) => {
15099
+ if (utilValue != null) {
15100
+ if (typeof utilValue === 'object') {
15101
+ createUtilityClasses_DEVICE_SIZES.forEach(brkPoint => {
15102
+ const bpValue = utilValue[brkPoint];
15103
+
15104
+ if (bpValue != null) {
15105
+ const infix = brkPoint !== 'xs' ? `-${brkPoint}` : '';
15106
+ classes.push(`${utilName}${infix}-${bpValue}`);
15107
+ }
15108
+ });
15109
+ } else {
15110
+ classes.push(`${utilName}-${utilValue}`);
15111
+ }
15112
+ }
15113
+ });
15114
+ return classes;
15115
+ }
15116
+ ;// CONCATENATED MODULE: ./src/Stack.tsx
15117
+ var Stack_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Stack.tsx";
15118
+
15119
+
15120
+
15121
+
15122
+
15123
+
15124
+ const Stack_propTypes = {
15125
+ /**
15126
+ * Change the underlying component CSS base class name and modifier class names prefix.
15127
+ * **This is an escape hatch** for working with heavily customized bootstrap css.
15128
+ *
15129
+ * Defaults to `hstack` if direction is `horizontal` or `vstack` if direction
15130
+ * is `vertical`.
15131
+ *
15132
+ * @default 'hstack | vstack'
15133
+ */
15134
+ bsPrefix: (prop_types_default()).string,
15135
+
15136
+ /**
15137
+ * Sets the spacing between each item. Valid values are `0-5`.
15138
+ */
15139
+ gap: responsivePropType((prop_types_default()).number)
15140
+ };
15141
+ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
15142
+ as: Component = 'div',
15143
+ bsPrefix,
15144
+ className,
15145
+ direction,
15146
+ gap,
15147
+ ...props
15148
+ }, ref) => {
15149
+ bsPrefix = useBootstrapPrefix(bsPrefix, direction === 'horizontal' ? 'hstack' : 'vstack');
15150
+ return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, { ...props,
15151
+ ref: ref,
15152
+ className: classnames_default()(className, bsPrefix, ...createUtilityClassName({
15153
+ gap
15154
+ }))
15155
+ }, void 0, false, {
15156
+ fileName: Stack_jsxFileName,
15157
+ lineNumber: 51,
15158
+ columnNumber: 9
15159
+ }, undefined);
15160
+ });
15161
+ Stack.displayName = 'Stack';
15162
+ Stack.propTypes = Stack_propTypes;
15163
+ /* harmony default export */ const src_Stack = (Stack);
15001
15164
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NoopTransition.js
15002
15165
 
15003
15166
 
@@ -15753,8 +15916,27 @@ Tabs_Tabs.propTypes = Tabs_propTypes;
15753
15916
  Tabs_Tabs.defaultProps = Tabs_defaultProps;
15754
15917
  Tabs_Tabs.displayName = 'Tabs';
15755
15918
  /* harmony default export */ const src_Tabs = (Tabs_Tabs);
15919
+ ;// CONCATENATED MODULE: ./src/ToastFade.tsx
15920
+ var ToastFade_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ToastFade.tsx";
15921
+
15922
+
15923
+
15924
+
15925
+ const ToastFade_fadeStyles = {
15926
+ [ENTERING]: 'showing',
15927
+ [EXITING]: 'showing show'
15928
+ };
15929
+ const ToastFade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props,
15930
+ ref: ref,
15931
+ transitionClasses: ToastFade_fadeStyles
15932
+ }, void 0, false, {
15933
+ fileName: ToastFade_jsxFileName,
15934
+ lineNumber: 14,
15935
+ columnNumber: 3
15936
+ }, undefined));
15937
+ ToastFade.displayName = 'ToastFade';
15938
+ /* harmony default export */ const src_ToastFade = (ToastFade);
15756
15939
  ;// CONCATENATED MODULE: ./src/ToastContext.tsx
15757
- // TODO: check
15758
15940
 
15759
15941
  const ToastContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
15760
15942
  // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -15897,7 +16079,7 @@ const Toast_propTypes = {
15897
16079
  const Toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
15898
16080
  bsPrefix,
15899
16081
  className,
15900
- transition: Transition = src_Fade,
16082
+ transition: Transition = src_ToastFade,
15901
16083
  show = true,
15902
16084
  animation = true,
15903
16085
  delay = 5000,
@@ -16421,6 +16603,7 @@ Tooltip.displayName = 'Tooltip';
16421
16603
 
16422
16604
 
16423
16605
 
16606
+
16424
16607
 
16425
16608
 
16426
16609
  })();