react-bootstrap 2.7.2 → 2.7.4

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 (102) hide show
  1. package/cjs/AbstractModalHeader.js +2 -7
  2. package/cjs/AccordionCollapse.d.ts +1 -1
  3. package/cjs/AccordionCollapse.js +1 -1
  4. package/cjs/Alert.js +4 -11
  5. package/cjs/Badge.js +2 -7
  6. package/cjs/Breadcrumb.js +2 -7
  7. package/cjs/BreadcrumbItem.js +2 -7
  8. package/cjs/Button.js +6 -9
  9. package/cjs/ButtonGroup.js +3 -6
  10. package/cjs/ButtonToolbar.js +3 -5
  11. package/cjs/Card.js +1 -5
  12. package/cjs/Carousel.js +28 -40
  13. package/cjs/CloseButton.js +2 -4
  14. package/cjs/Collapse.js +11 -12
  15. package/cjs/Container.js +1 -5
  16. package/cjs/Dropdown.js +3 -10
  17. package/cjs/DropdownMenu.js +1 -5
  18. package/cjs/Fade.js +12 -11
  19. package/cjs/FigureImage.js +2 -4
  20. package/cjs/Form.d.ts +1 -1
  21. package/cjs/FormContext.js +2 -0
  22. package/cjs/FormLabel.js +2 -7
  23. package/cjs/Image.js +4 -11
  24. package/cjs/InputGroup.js +0 -6
  25. package/cjs/Modal.js +8 -20
  26. package/cjs/ModalHeader.js +5 -6
  27. package/cjs/Nav.js +2 -7
  28. package/cjs/NavLink.js +4 -5
  29. package/cjs/Navbar.js +3 -9
  30. package/cjs/NavbarContext.js +2 -0
  31. package/cjs/NavbarToggle.js +1 -5
  32. package/cjs/Offcanvas.js +9 -21
  33. package/cjs/OffcanvasHeader.js +5 -6
  34. package/cjs/OffcanvasToggling.js +8 -7
  35. package/cjs/Overlay.js +9 -10
  36. package/cjs/OverlayTrigger.d.ts +0 -4
  37. package/cjs/OverlayTrigger.js +1 -6
  38. package/cjs/PageItem.js +3 -9
  39. package/cjs/Pagination.js +0 -8
  40. package/cjs/Popover.js +1 -5
  41. package/cjs/ProgressBar.js +11 -12
  42. package/cjs/Ratio.js +1 -5
  43. package/cjs/SplitButton.js +2 -7
  44. package/cjs/Tabs.d.ts +0 -5
  45. package/cjs/Tabs.js +4 -8
  46. package/cjs/ToastContainer.js +2 -2
  47. package/cjs/ToastHeader.js +2 -7
  48. package/cjs/ToggleButtonGroup.js +3 -6
  49. package/cjs/Tooltip.js +1 -5
  50. package/cjs/createWithBsPrefix.js +5 -2
  51. package/dist/react-bootstrap.js +773 -738
  52. package/dist/react-bootstrap.min.js +1 -1
  53. package/dist/react-bootstrap.min.js.LICENSE.txt +3 -3
  54. package/esm/AbstractModalHeader.js +2 -7
  55. package/esm/AccordionCollapse.d.ts +1 -1
  56. package/esm/AccordionCollapse.js +1 -1
  57. package/esm/Alert.js +4 -11
  58. package/esm/Badge.js +2 -7
  59. package/esm/Breadcrumb.js +2 -7
  60. package/esm/BreadcrumbItem.js +2 -7
  61. package/esm/Button.js +6 -9
  62. package/esm/ButtonGroup.js +3 -6
  63. package/esm/ButtonToolbar.js +3 -5
  64. package/esm/Card.js +1 -5
  65. package/esm/Carousel.js +28 -40
  66. package/esm/CloseButton.js +2 -4
  67. package/esm/Collapse.js +11 -11
  68. package/esm/Container.js +1 -5
  69. package/esm/Dropdown.js +3 -10
  70. package/esm/DropdownMenu.js +1 -5
  71. package/esm/Fade.js +12 -11
  72. package/esm/FigureImage.js +2 -4
  73. package/esm/Form.d.ts +1 -1
  74. package/esm/FormLabel.js +2 -7
  75. package/esm/Image.js +4 -11
  76. package/esm/InputGroup.js +0 -6
  77. package/esm/Modal.js +8 -20
  78. package/esm/ModalHeader.js +5 -6
  79. package/esm/Nav.js +2 -7
  80. package/esm/NavLink.js +4 -5
  81. package/esm/Navbar.js +3 -9
  82. package/esm/NavbarToggle.js +1 -5
  83. package/esm/Offcanvas.js +9 -21
  84. package/esm/OffcanvasHeader.js +5 -6
  85. package/esm/OffcanvasToggling.js +8 -7
  86. package/esm/Overlay.js +9 -10
  87. package/esm/OverlayTrigger.d.ts +0 -4
  88. package/esm/OverlayTrigger.js +1 -6
  89. package/esm/PageItem.js +3 -9
  90. package/esm/Pagination.js +0 -8
  91. package/esm/Popover.js +1 -5
  92. package/esm/ProgressBar.js +11 -12
  93. package/esm/Ratio.js +1 -5
  94. package/esm/SplitButton.js +2 -7
  95. package/esm/Tabs.d.ts +0 -5
  96. package/esm/Tabs.js +4 -8
  97. package/esm/ToastContainer.js +2 -2
  98. package/esm/ToastHeader.js +2 -7
  99. package/esm/ToggleButtonGroup.js +3 -6
  100. package/esm/Tooltip.js +1 -5
  101. package/esm/createWithBsPrefix.js +5 -2
  102. package/package.json +7 -7
@@ -15,9 +15,9 @@ return /******/ (() => { // webpackBootstrap
15
15
  /***/ ((module, exports) => {
16
16
 
17
17
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
18
- Copyright (c) 2018 Jed Watson.
19
- Licensed under the MIT License (MIT), see
20
- http://jedwatson.github.io/classnames
18
+ Copyright (c) 2018 Jed Watson.
19
+ Licensed under the MIT License (MIT), see
20
+ http://jedwatson.github.io/classnames
21
21
  */
22
22
  /* global define */
23
23
 
@@ -25,6 +25,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
25
25
  'use strict';
26
26
 
27
27
  var hasOwn = {}.hasOwnProperty;
28
+ var nativeCodeString = '[native code]';
28
29
  function classNames() {
29
30
  var classes = [];
30
31
  for (var i = 0; i < arguments.length; i++) {
@@ -41,14 +42,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
41
42
  }
42
43
  }
43
44
  } else if (argType === 'object') {
44
- if (arg.toString === Object.prototype.toString) {
45
- for (var key in arg) {
46
- if (hasOwn.call(arg, key) && arg[key]) {
47
- classes.push(key);
48
- }
49
- }
50
- } else {
45
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
51
46
  classes.push(arg.toString());
47
+ continue;
48
+ }
49
+ for (var key in arg) {
50
+ if (hasOwn.call(arg, key) && arg[key]) {
51
+ classes.push(key);
52
+ }
52
53
  }
53
54
  }
54
55
  }
@@ -1574,7 +1575,20 @@ function style(node, property) {
1574
1575
  node.style.cssText += ";" + css;
1575
1576
  }
1576
1577
  /* harmony default export */ const css = (style);
1577
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1578
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1579
+ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1580
+ if (source == null) return {};
1581
+ var target = {};
1582
+ var sourceKeys = Object.keys(source);
1583
+ var key, i;
1584
+ for (i = 0; i < sourceKeys.length; i++) {
1585
+ key = sourceKeys[i];
1586
+ if (excluded.indexOf(key) >= 0) continue;
1587
+ target[key] = source[key];
1588
+ }
1589
+ return target;
1590
+ }
1591
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1578
1592
  function _setPrototypeOf(o, p) {
1579
1593
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1580
1594
  o.__proto__ = p;
@@ -1582,7 +1596,7 @@ function _setPrototypeOf(o, p) {
1582
1596
  };
1583
1597
  return _setPrototypeOf(o, p);
1584
1598
  }
1585
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1599
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1586
1600
 
1587
1601
  function inheritsLoose_inheritsLoose(subClass, superClass) {
1588
1602
  subClass.prototype = Object.create(superClass.prototype);
@@ -1599,6 +1613,10 @@ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_
1599
1613
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/TransitionGroupContext.js
1600
1614
 
1601
1615
  /* harmony default export */ const TransitionGroupContext = (external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext(null));
1616
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/utils/reflow.js
1617
+ var forceReflow = function forceReflow(node) {
1618
+ return node.scrollTop;
1619
+ };
1602
1620
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/Transition.js
1603
1621
 
1604
1622
 
@@ -1608,6 +1626,7 @@ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_
1608
1626
 
1609
1627
 
1610
1628
 
1629
+
1611
1630
  var UNMOUNTED = 'unmounted';
1612
1631
  var EXITED = 'exited';
1613
1632
  var ENTERING = 'entering';
@@ -1808,6 +1827,13 @@ var Transition = /*#__PURE__*/function (_React$Component) {
1808
1827
  // nextStatus will always be ENTERING or EXITING.
1809
1828
  this.cancelNextCallback();
1810
1829
  if (nextStatus === ENTERING) {
1830
+ if (this.props.unmountOnExit || this.props.mountOnEnter) {
1831
+ var node = this.props.nodeRef ? this.props.nodeRef.current : external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
1832
+ // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
1833
+ // To make the animation happen, we have to separate each rendering and avoid being processed as batched.
1834
+
1835
+ if (node) forceReflow(node);
1836
+ }
1811
1837
  this.performEnter(mounting);
1812
1838
  } else {
1813
1839
  this.performExit();
@@ -1947,7 +1973,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
1947
1973
  _onExiting = _this$props.onExiting,
1948
1974
  _onExited = _this$props.onExited,
1949
1975
  _nodeRef = _this$props.nodeRef,
1950
- childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1976
+ childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1951
1977
  return /*#__PURE__*/(
1952
1978
  // allows for nested Transitions
1953
1979
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, {
@@ -2381,14 +2407,6 @@ const propTypes = {
2381
2407
  */
2382
2408
  children: (prop_types_default()).element.isRequired
2383
2409
  };
2384
- const defaultProps = {
2385
- in: false,
2386
- timeout: 300,
2387
- mountOnEnter: false,
2388
- unmountOnExit: false,
2389
- appear: false,
2390
- getDimensionValue: getDefaultDimensionValue
2391
- };
2392
2410
  const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(({
2393
2411
  onEnter,
2394
2412
  onEntering,
@@ -2398,6 +2416,11 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
2398
2416
  className,
2399
2417
  children,
2400
2418
  dimension = 'height',
2419
+ in: inProp = false,
2420
+ timeout = 300,
2421
+ mountOnEnter = false,
2422
+ unmountOnExit = false,
2423
+ appear = false,
2401
2424
  getDimensionValue = getDefaultDimensionValue,
2402
2425
  ...props
2403
2426
  }, ref) => {
@@ -2428,28 +2451,31 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
2428
2451
  ref: ref,
2429
2452
  addEndListener: transitionEndListener,
2430
2453
  ...props,
2431
- "aria-expanded": props.role ? props.in : null,
2454
+ "aria-expanded": props.role ? inProp : null,
2432
2455
  onEnter: handleEnter,
2433
2456
  onEntering: handleEntering,
2434
2457
  onEntered: handleEntered,
2435
2458
  onExit: handleExit,
2436
2459
  onExiting: handleExiting,
2437
2460
  childRef: children.ref,
2461
+ in: inProp,
2462
+ timeout: timeout,
2463
+ mountOnEnter: mountOnEnter,
2464
+ unmountOnExit: unmountOnExit,
2465
+ appear: appear,
2438
2466
  children: (state, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
2439
2467
  ...innerProps,
2440
2468
  className: classnames_default()(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'collapse-horizontal')
2441
2469
  })
2442
2470
  }, void 0, false, {
2443
2471
  fileName: Collapse_jsxFileName,
2444
- lineNumber: 226,
2472
+ lineNumber: 222,
2445
2473
  columnNumber: 7
2446
2474
  }, undefined);
2447
2475
  });
2448
2476
 
2449
2477
  // @ts-ignore
2450
2478
  Collapse.propTypes = propTypes;
2451
- // @ts-ignore
2452
- Collapse.defaultProps = defaultProps;
2453
2479
  /* harmony default export */ const src_Collapse = (Collapse);
2454
2480
  ;// CONCATENATED MODULE: ./src/AccordionContext.ts
2455
2481
 
@@ -2481,7 +2507,7 @@ const AccordionCollapse_propTypes = {
2481
2507
  };
2482
2508
 
2483
2509
  /**
2484
- * This component accepts all of [`Collapse`'s props](/utilities/transitions/#collapse-props).
2510
+ * This component accepts all of [`Collapse`'s props](/docs/utilities/transitions#collapse-1).
2485
2511
  */
2486
2512
  const AccordionCollapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
2487
2513
  as: Component = 'div',
@@ -3466,18 +3492,16 @@ function Anchor_objectWithoutPropertiesLoose(source, excluded) {
3466
3492
  }
3467
3493
  return target;
3468
3494
  }
3469
-
3470
3495
  /* eslint-disable jsx-a11y/no-static-element-interactions */
3471
-
3472
3496
  /* eslint-disable jsx-a11y/anchor-has-content */
3473
3497
 
3474
3498
 
3475
3499
 
3476
3500
 
3501
+
3477
3502
  function Anchor_isTrivialHref(href) {
3478
3503
  return !href || href.trim() === '#';
3479
3504
  }
3480
-
3481
3505
  /**
3482
3506
  * An generic `<a>` component that covers a few A11y cases, ensuring that
3483
3507
  * cases where the `href` is missing or trivial like "#" are treated like buttons.
@@ -3578,13 +3602,6 @@ const Fade_propTypes = {
3578
3602
  */
3579
3603
  transitionClasses: (prop_types_default()).object
3580
3604
  };
3581
- const Fade_defaultProps = {
3582
- in: false,
3583
- timeout: 300,
3584
- mountOnEnter: false,
3585
- unmountOnExit: false,
3586
- appear: false
3587
- };
3588
3605
  const fadeStyles = {
3589
3606
  [ENTERING]: 'show',
3590
3607
  [ENTERED]: 'show'
@@ -3593,12 +3610,21 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
3593
3610
  className,
3594
3611
  children,
3595
3612
  transitionClasses = {},
3596
- ...props
3613
+ onEnter,
3614
+ ...rest
3597
3615
  }, ref) => {
3616
+ const props = {
3617
+ in: false,
3618
+ timeout: 300,
3619
+ mountOnEnter: false,
3620
+ unmountOnExit: false,
3621
+ appear: false,
3622
+ ...rest
3623
+ };
3598
3624
  const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((node, isAppearing) => {
3599
3625
  triggerBrowserReflow(node);
3600
- props.onEnter == null ? void 0 : props.onEnter(node, isAppearing);
3601
- }, [props]);
3626
+ onEnter == null ? void 0 : onEnter(node, isAppearing);
3627
+ }, [onEnter]);
3602
3628
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
3603
3629
  ref: ref,
3604
3630
  addEndListener: transitionEndListener,
@@ -3611,12 +3637,11 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
3611
3637
  })
3612
3638
  }, void 0, false, {
3613
3639
  fileName: Fade_jsxFileName,
3614
- lineNumber: 116,
3640
+ lineNumber: 117,
3615
3641
  columnNumber: 7
3616
3642
  }, undefined);
3617
3643
  });
3618
3644
  Fade.propTypes = Fade_propTypes;
3619
- Fade.defaultProps = Fade_defaultProps;
3620
3645
  Fade.displayName = 'Fade';
3621
3646
  /* harmony default export */ const src_Fade = (Fade);
3622
3647
  ;// CONCATENATED MODULE: ./src/CloseButton.tsx
@@ -3637,26 +3662,24 @@ const CloseButton_propTypes = {
3637
3662
  */
3638
3663
  variant: prop_types_default().oneOf(['white'])
3639
3664
  };
3640
- const CloseButton_defaultProps = {
3641
- 'aria-label': 'Close'
3642
- };
3643
3665
  const CloseButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
3644
3666
  className,
3645
3667
  variant,
3668
+ 'aria-label': ariaLabel = 'Close',
3646
3669
  ...props
3647
3670
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("button", {
3648
3671
  ref: ref,
3649
3672
  type: "button",
3650
3673
  className: classnames_default()('btn-close', variant && `btn-close-${variant}`, className),
3674
+ "aria-label": ariaLabel,
3651
3675
  ...props
3652
3676
  }, void 0, false, {
3653
3677
  fileName: CloseButton_jsxFileName,
3654
- lineNumber: 33,
3678
+ lineNumber: 32,
3655
3679
  columnNumber: 5
3656
3680
  }, undefined));
3657
3681
  CloseButton.displayName = 'CloseButton';
3658
3682
  CloseButton.propTypes = CloseButton_propTypes;
3659
- CloseButton.defaultProps = CloseButton_defaultProps;
3660
3683
  /* harmony default export */ const src_CloseButton = (CloseButton);
3661
3684
  ;// CONCATENATED MODULE: ./src/divWithClassName.tsx
3662
3685
  var divWithClassName_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/divWithClassName.tsx";
@@ -3699,18 +3722,21 @@ function createWithBsPrefix(prefix, {
3699
3722
  as: Tag = Component || 'div',
3700
3723
  ...props
3701
3724
  }, ref) => {
3725
+ const componentProps = {
3726
+ ...defaultProps,
3727
+ ...props
3728
+ };
3702
3729
  const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
3703
3730
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Tag, {
3704
3731
  ref: ref,
3705
3732
  className: classnames_default()(className, resolvedPrefix),
3706
- ...props
3733
+ ...componentProps
3707
3734
  }, void 0, false, {
3708
3735
  fileName: createWithBsPrefix_jsxFileName,
3709
- lineNumber: 33,
3736
+ lineNumber: 38,
3710
3737
  columnNumber: 9
3711
3738
  }, this);
3712
3739
  });
3713
- BsComponent.defaultProps = defaultProps;
3714
3740
  BsComponent.displayName = displayName;
3715
3741
  return BsComponent;
3716
3742
  }
@@ -3780,24 +3806,18 @@ const Alert_propTypes = {
3780
3806
  */
3781
3807
  transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.nm])
3782
3808
  };
3783
- const Alert_defaultProps = {
3784
- variant: 'primary',
3785
- show: true,
3786
- transition: src_Fade,
3787
- closeLabel: 'Close alert'
3788
- };
3789
3809
  const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
3790
3810
  const {
3791
3811
  bsPrefix,
3792
- show,
3793
- closeLabel,
3812
+ show = true,
3813
+ closeLabel = 'Close alert',
3794
3814
  closeVariant,
3795
3815
  className,
3796
3816
  children,
3797
- variant,
3817
+ variant = 'primary',
3798
3818
  onClose,
3799
3819
  dismissible,
3800
- transition,
3820
+ transition = src_Fade,
3801
3821
  ...props
3802
3822
  } = useUncontrolled(uncontrolledProps, {
3803
3823
  show: 'onClose'
@@ -3820,12 +3840,12 @@ const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
3820
3840
  variant: closeVariant
3821
3841
  }, void 0, false, {
3822
3842
  fileName: Alert_jsxFileName,
3823
- lineNumber: 134,
3843
+ lineNumber: 127,
3824
3844
  columnNumber: 11
3825
3845
  }, undefined), children]
3826
3846
  }, void 0, true, {
3827
3847
  fileName: Alert_jsxFileName,
3828
- lineNumber: 122,
3848
+ lineNumber: 115,
3829
3849
  columnNumber: 7
3830
3850
  }, undefined);
3831
3851
  if (!Transition) return show ? alert : null;
@@ -3837,12 +3857,11 @@ const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
3837
3857
  children: alert
3838
3858
  }, void 0, false, {
3839
3859
  fileName: Alert_jsxFileName,
3840
- lineNumber: 147,
3860
+ lineNumber: 140,
3841
3861
  columnNumber: 7
3842
3862
  }, undefined);
3843
3863
  });
3844
3864
  Alert.displayName = 'Alert';
3845
- Alert.defaultProps = Alert_defaultProps;
3846
3865
  Alert.propTypes = Alert_propTypes;
3847
3866
  /* harmony default export */ const src_Alert = (Object.assign(Alert, {
3848
3867
  Link: AlertLink,
@@ -3881,14 +3900,10 @@ const Badge_propTypes = {
3881
3900
  /** @default span */
3882
3901
  as: (prop_types_default()).elementType
3883
3902
  };
3884
- const Badge_defaultProps = {
3885
- bg: 'primary',
3886
- pill: false
3887
- };
3888
3903
  const Badge = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
3889
3904
  bsPrefix,
3890
- bg,
3891
- pill,
3905
+ bg = 'primary',
3906
+ pill = false,
3892
3907
  text,
3893
3908
  className,
3894
3909
  as: Component = 'span',
@@ -3901,13 +3916,12 @@ const Badge = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
3901
3916
  className: classnames_default()(className, prefix, pill && `rounded-pill`, text && `text-${text}`, bg && `bg-${bg}`)
3902
3917
  }, void 0, false, {
3903
3918
  fileName: Badge_jsxFileName,
3904
- lineNumber: 58,
3919
+ lineNumber: 61,
3905
3920
  columnNumber: 9
3906
3921
  }, undefined);
3907
3922
  });
3908
3923
  Badge.displayName = 'Badge';
3909
3924
  Badge.propTypes = Badge_propTypes;
3910
- Badge.defaultProps = Badge_defaultProps;
3911
3925
  /* harmony default export */ const src_Badge = (Badge);
3912
3926
  ;// CONCATENATED MODULE: ./src/BreadcrumbItem.tsx
3913
3927
  var BreadcrumbItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/BreadcrumbItem.tsx";
@@ -3949,19 +3963,15 @@ const BreadcrumbItem_propTypes = {
3949
3963
  linkProps: (prop_types_default()).object,
3950
3964
  as: (prop_types_default()).elementType
3951
3965
  };
3952
- const BreadcrumbItem_defaultProps = {
3953
- active: false,
3954
- linkProps: {}
3955
- };
3956
3966
  const BreadcrumbItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
3957
3967
  bsPrefix,
3958
- active,
3968
+ active = false,
3959
3969
  children,
3960
3970
  className,
3961
3971
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
3962
3972
  as: Component = 'li',
3963
3973
  linkAs: LinkComponent = esm_Anchor,
3964
- linkProps,
3974
+ linkProps = {},
3965
3975
  href,
3966
3976
  title,
3967
3977
  target,
@@ -3983,18 +3993,17 @@ const BreadcrumbItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
3983
3993
  children: children
3984
3994
  }, void 0, false, {
3985
3995
  fileName: BreadcrumbItem_jsxFileName,
3986
- lineNumber: 91,
3996
+ lineNumber: 86,
3987
3997
  columnNumber: 11
3988
3998
  }, undefined)
3989
3999
  }, void 0, false, {
3990
4000
  fileName: BreadcrumbItem_jsxFileName,
3991
- lineNumber: 82,
4001
+ lineNumber: 77,
3992
4002
  columnNumber: 7
3993
4003
  }, undefined);
3994
4004
  });
3995
4005
  BreadcrumbItem.displayName = 'BreadcrumbItem';
3996
4006
  BreadcrumbItem.propTypes = BreadcrumbItem_propTypes;
3997
- BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps;
3998
4007
  /* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem);
3999
4008
  ;// CONCATENATED MODULE: ./src/Breadcrumb.tsx
4000
4009
  var Breadcrumb_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Breadcrumb.tsx";
@@ -4020,16 +4029,12 @@ const Breadcrumb_propTypes = {
4020
4029
  listProps: (prop_types_default()).object,
4021
4030
  as: (prop_types_default()).elementType
4022
4031
  };
4023
- const Breadcrumb_defaultProps = {
4024
- label: 'breadcrumb',
4025
- listProps: {}
4026
- };
4027
4032
  const Breadcrumb = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4028
4033
  bsPrefix,
4029
4034
  className,
4030
- listProps,
4035
+ listProps = {},
4031
4036
  children,
4032
- label,
4037
+ label = 'breadcrumb',
4033
4038
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
4034
4039
  as: Component = 'nav',
4035
4040
  ...props
@@ -4046,18 +4051,17 @@ const Breadcrumb = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
4046
4051
  children: children
4047
4052
  }, void 0, false, {
4048
4053
  fileName: Breadcrumb_jsxFileName,
4049
- lineNumber: 65,
4054
+ lineNumber: 60,
4050
4055
  columnNumber: 11
4051
4056
  }, undefined)
4052
4057
  }, void 0, false, {
4053
4058
  fileName: Breadcrumb_jsxFileName,
4054
- lineNumber: 59,
4059
+ lineNumber: 54,
4055
4060
  columnNumber: 9
4056
4061
  }, undefined);
4057
4062
  });
4058
4063
  Breadcrumb.displayName = 'Breadcrumb';
4059
4064
  Breadcrumb.propTypes = Breadcrumb_propTypes;
4060
- Breadcrumb.defaultProps = Breadcrumb_defaultProps;
4061
4065
  /* harmony default export */ const src_Breadcrumb = (Object.assign(Breadcrumb, {
4062
4066
  Item: src_BreadcrumbItem
4063
4067
  }));
@@ -4109,17 +4113,13 @@ const Button_propTypes = {
4109
4113
  type: prop_types_default().oneOf(['button', 'reset', 'submit', null]),
4110
4114
  as: (prop_types_default()).elementType
4111
4115
  };
4112
- const Button_defaultProps = {
4113
- variant: 'primary',
4114
- active: false,
4115
- disabled: false
4116
- };
4117
4116
  const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4118
4117
  as,
4119
4118
  bsPrefix,
4120
- variant,
4119
+ variant = 'primary',
4121
4120
  size,
4122
- active,
4121
+ active = false,
4122
+ disabled = false,
4123
4123
  className,
4124
4124
  ...props
4125
4125
  }, ref) => {
@@ -4128,6 +4128,7 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
4128
4128
  tagName
4129
4129
  }] = useButtonProps({
4130
4130
  tagName: as,
4131
+ disabled,
4131
4132
  ...props
4132
4133
  });
4133
4134
  const Component = tagName;
@@ -4135,16 +4136,16 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
4135
4136
  ...buttonProps,
4136
4137
  ...props,
4137
4138
  ref: ref,
4138
- className: classnames_default()(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && props.disabled && 'disabled')
4139
+ disabled: disabled,
4140
+ className: classnames_default()(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')
4139
4141
  }, void 0, false, {
4140
4142
  fileName: Button_jsxFileName,
4141
- lineNumber: 88,
4143
+ lineNumber: 95,
4142
4144
  columnNumber: 9
4143
4145
  }, undefined);
4144
4146
  });
4145
4147
  Button_Button.displayName = 'Button';
4146
4148
  Button_Button.propTypes = Button_propTypes;
4147
- Button_Button.defaultProps = Button_defaultProps;
4148
4149
  /* harmony default export */ const src_Button = (Button_Button);
4149
4150
  ;// CONCATENATED MODULE: ./src/ButtonGroup.tsx
4150
4151
  var ButtonGroup_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ButtonGroup.tsx";
@@ -4174,15 +4175,12 @@ const ButtonGroup_propTypes = {
4174
4175
  role: (prop_types_default()).string,
4175
4176
  as: (prop_types_default()).elementType
4176
4177
  };
4177
- const ButtonGroup_defaultProps = {
4178
- vertical: false,
4179
- role: 'group'
4180
- };
4181
4178
  const ButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4182
4179
  bsPrefix,
4183
4180
  size,
4184
- vertical,
4181
+ vertical = false,
4185
4182
  className,
4183
+ role = 'group',
4186
4184
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
4187
4185
  as: Component = 'div',
4188
4186
  ...rest
@@ -4193,16 +4191,16 @@ const ButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
4193
4191
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
4194
4192
  ...rest,
4195
4193
  ref: ref,
4194
+ role: role,
4196
4195
  className: classnames_default()(className, baseClass, size && `${prefix}-${size}`)
4197
4196
  }, void 0, false, {
4198
4197
  fileName: ButtonGroup_jsxFileName,
4199
- lineNumber: 66,
4198
+ lineNumber: 62,
4200
4199
  columnNumber: 9
4201
4200
  }, undefined);
4202
4201
  });
4203
4202
  ButtonGroup.displayName = 'ButtonGroup';
4204
4203
  ButtonGroup.propTypes = ButtonGroup_propTypes;
4205
- ButtonGroup.defaultProps = ButtonGroup_defaultProps;
4206
4204
  /* harmony default export */ const src_ButtonGroup = (ButtonGroup);
4207
4205
  ;// CONCATENATED MODULE: ./src/ButtonToolbar.tsx
4208
4206
  var ButtonToolbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ButtonToolbar.tsx";
@@ -4223,28 +4221,26 @@ const ButtonToolbar_propTypes = {
4223
4221
  */
4224
4222
  role: (prop_types_default()).string
4225
4223
  };
4226
- const ButtonToolbar_defaultProps = {
4227
- role: 'toolbar'
4228
- };
4229
4224
  const ButtonToolbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4230
4225
  bsPrefix,
4231
4226
  className,
4227
+ role = 'toolbar',
4232
4228
  ...props
4233
4229
  }, ref) => {
4234
4230
  const prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
4235
4231
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
4236
4232
  ...props,
4237
4233
  ref: ref,
4238
- className: classnames_default()(className, prefix)
4234
+ className: classnames_default()(className, prefix),
4235
+ role: role
4239
4236
  }, void 0, false, {
4240
4237
  fileName: ButtonToolbar_jsxFileName,
4241
- lineNumber: 36,
4238
+ lineNumber: 32,
4242
4239
  columnNumber: 7
4243
4240
  }, undefined);
4244
4241
  });
4245
4242
  ButtonToolbar.displayName = 'ButtonToolbar';
4246
4243
  ButtonToolbar.propTypes = ButtonToolbar_propTypes;
4247
- ButtonToolbar.defaultProps = ButtonToolbar_defaultProps;
4248
4244
  /* harmony default export */ const src_ButtonToolbar = (ButtonToolbar);
4249
4245
  ;// CONCATENATED MODULE: ./src/CardImg.tsx
4250
4246
  var CardImg_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/CardImg.tsx";
@@ -4400,16 +4396,13 @@ const Card_propTypes = {
4400
4396
  body: (prop_types_default()).bool,
4401
4397
  as: (prop_types_default()).elementType
4402
4398
  };
4403
- const Card_defaultProps = {
4404
- body: false
4405
- };
4406
4399
  const Card = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4407
4400
  bsPrefix,
4408
4401
  className,
4409
4402
  bg,
4410
4403
  text,
4411
4404
  border,
4412
- body,
4405
+ body = false,
4413
4406
  children,
4414
4407
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
4415
4408
  as: Component = 'div',
@@ -4424,18 +4417,17 @@ const Card = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
4424
4417
  children: children
4425
4418
  }, void 0, false, {
4426
4419
  fileName: Card_jsxFileName,
4427
- lineNumber: 109,
4420
+ lineNumber: 105,
4428
4421
  columnNumber: 17
4429
4422
  }, undefined) : children
4430
4423
  }, void 0, false, {
4431
4424
  fileName: Card_jsxFileName,
4432
- lineNumber: 98,
4425
+ lineNumber: 94,
4433
4426
  columnNumber: 7
4434
4427
  }, undefined);
4435
4428
  });
4436
4429
  Card.displayName = 'Card';
4437
4430
  Card.propTypes = Card_propTypes;
4438
- Card.defaultProps = Card_defaultProps;
4439
4431
  /* harmony default export */ const src_Card = (Object.assign(Card, {
4440
4432
  Img: src_CardImg,
4441
4433
  Title: CardTitle,
@@ -4777,37 +4769,6 @@ const Carousel_propTypes = {
4777
4769
  */
4778
4770
  variant: prop_types_default().oneOf(['dark'])
4779
4771
  };
4780
- const Carousel_defaultProps = {
4781
- slide: true,
4782
- fade: false,
4783
- controls: true,
4784
- indicators: true,
4785
- indicatorLabels: [],
4786
- defaultActiveIndex: 0,
4787
- interval: 5000,
4788
- keyboard: true,
4789
- pause: 'hover',
4790
- wrap: true,
4791
- touch: true,
4792
- prevIcon: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
4793
- "aria-hidden": "true",
4794
- className: "carousel-control-prev-icon"
4795
- }, void 0, false, {
4796
- fileName: Carousel_jsxFileName,
4797
- lineNumber: 191,
4798
- columnNumber: 13
4799
- }, undefined),
4800
- prevLabel: 'Previous',
4801
- nextIcon: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
4802
- "aria-hidden": "true",
4803
- className: "carousel-control-next-icon"
4804
- }, void 0, false, {
4805
- fileName: Carousel_jsxFileName,
4806
- lineNumber: 194,
4807
- columnNumber: 13
4808
- }, undefined),
4809
- nextLabel: 'Next'
4810
- };
4811
4772
  function isVisible(element) {
4812
4773
  if (!element || !element.style || !element.parentNode || !element.parentNode.style) {
4813
4774
  return false;
@@ -4815,40 +4776,60 @@ function isVisible(element) {
4815
4776
  const elementStyle = getComputedStyle(element);
4816
4777
  return elementStyle.display !== 'none' && elementStyle.visibility !== 'hidden' && getComputedStyle(element.parentNode).display !== 'none';
4817
4778
  }
4818
- const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
4779
+ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
4780
+ defaultActiveIndex = 0,
4781
+ ...uncontrolledProps
4782
+ }, ref) => {
4819
4783
  const {
4820
4784
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
4821
4785
  as: Component = 'div',
4822
4786
  bsPrefix,
4823
- slide,
4824
- fade,
4825
- controls,
4826
- indicators,
4827
- indicatorLabels,
4787
+ slide = true,
4788
+ fade = false,
4789
+ controls = true,
4790
+ indicators = true,
4791
+ indicatorLabels = [],
4828
4792
  activeIndex,
4829
4793
  onSelect,
4830
4794
  onSlide,
4831
4795
  onSlid,
4832
- interval,
4833
- keyboard,
4796
+ interval = 5000,
4797
+ keyboard = true,
4834
4798
  onKeyDown,
4835
- pause,
4799
+ pause = 'hover',
4836
4800
  onMouseOver,
4837
4801
  onMouseOut,
4838
- wrap,
4839
- touch,
4802
+ wrap = true,
4803
+ touch = true,
4840
4804
  onTouchStart,
4841
4805
  onTouchMove,
4842
4806
  onTouchEnd,
4843
- prevIcon,
4844
- prevLabel,
4845
- nextIcon,
4846
- nextLabel,
4807
+ prevIcon = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
4808
+ "aria-hidden": "true",
4809
+ className: "carousel-control-prev-icon"
4810
+ }, void 0, false, {
4811
+ fileName: Carousel_jsxFileName,
4812
+ lineNumber: 225,
4813
+ columnNumber: 11
4814
+ }, undefined),
4815
+ prevLabel = 'Previous',
4816
+ nextIcon = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
4817
+ "aria-hidden": "true",
4818
+ className: "carousel-control-next-icon"
4819
+ }, void 0, false, {
4820
+ fileName: Carousel_jsxFileName,
4821
+ lineNumber: 229,
4822
+ columnNumber: 11
4823
+ }, undefined),
4824
+ nextLabel = 'Next',
4847
4825
  variant,
4848
4826
  className,
4849
4827
  children,
4850
4828
  ...props
4851
- } = useUncontrolled(uncontrolledProps, {
4829
+ } = useUncontrolled({
4830
+ defaultActiveIndex,
4831
+ ...uncontrolledProps
4832
+ }, {
4852
4833
  activeIndex: 'onSelect'
4853
4834
  });
4854
4835
  const prefix = useBootstrapPrefix(bsPrefix, 'carousel');
@@ -5067,13 +5048,13 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5067
5048
  "aria-current": index === renderedActiveIndex
5068
5049
  }, index, false, {
5069
5050
  fileName: Carousel_jsxFileName,
5070
- lineNumber: 560,
5071
- columnNumber: 15
5051
+ lineNumber: 548,
5052
+ columnNumber: 17
5072
5053
  }, undefined))
5073
5054
  }, void 0, false, {
5074
5055
  fileName: Carousel_jsxFileName,
5075
- lineNumber: 558,
5076
- columnNumber: 11
5056
+ lineNumber: 546,
5057
+ columnNumber: 13
5077
5058
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
5078
5059
  className: `${prefix}-inner`,
5079
5060
  children: map(children, (child, index) => {
@@ -5089,16 +5070,16 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5089
5070
  })
5090
5071
  }, void 0, false, {
5091
5072
  fileName: Carousel_jsxFileName,
5092
- lineNumber: 584,
5093
- columnNumber: 15
5073
+ lineNumber: 574,
5074
+ columnNumber: 17
5094
5075
  }, undefined) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(child, {
5095
5076
  className: classnames_default()(child.props.className, isActive && 'active')
5096
5077
  });
5097
5078
  })
5098
5079
  }, void 0, false, {
5099
5080
  fileName: Carousel_jsxFileName,
5100
- lineNumber: 579,
5101
- columnNumber: 9
5081
+ lineNumber: 569,
5082
+ columnNumber: 11
5102
5083
  }, undefined), controls && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
5103
5084
  children: [(wrap || activeIndex !== 0) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
5104
5085
  className: `${prefix}-control-prev`,
@@ -5108,13 +5089,13 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5108
5089
  children: prevLabel
5109
5090
  }, void 0, false, {
5110
5091
  fileName: Carousel_jsxFileName,
5111
- lineNumber: 624,
5112
- columnNumber: 19
5092
+ lineNumber: 614,
5093
+ columnNumber: 21
5113
5094
  }, undefined)]
5114
5095
  }, void 0, true, {
5115
5096
  fileName: Carousel_jsxFileName,
5116
- lineNumber: 621,
5117
- columnNumber: 15
5097
+ lineNumber: 611,
5098
+ columnNumber: 17
5118
5099
  }, undefined), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
5119
5100
  className: `${prefix}-control-next`,
5120
5101
  onClick: next,
@@ -5123,24 +5104,23 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5123
5104
  children: nextLabel
5124
5105
  }, void 0, false, {
5125
5106
  fileName: Carousel_jsxFileName,
5126
- lineNumber: 632,
5127
- columnNumber: 19
5107
+ lineNumber: 622,
5108
+ columnNumber: 21
5128
5109
  }, undefined)]
5129
5110
  }, void 0, true, {
5130
5111
  fileName: Carousel_jsxFileName,
5131
- lineNumber: 629,
5132
- columnNumber: 15
5112
+ lineNumber: 619,
5113
+ columnNumber: 17
5133
5114
  }, undefined)]
5134
5115
  }, void 0, true)]
5135
5116
  }, void 0, true, {
5136
5117
  fileName: Carousel_jsxFileName,
5137
- lineNumber: 540,
5138
- columnNumber: 7
5118
+ lineNumber: 528,
5119
+ columnNumber: 9
5139
5120
  }, undefined);
5140
5121
  });
5141
5122
  Carousel.displayName = 'Carousel';
5142
5123
  Carousel.propTypes = Carousel_propTypes;
5143
- Carousel.defaultProps = Carousel_defaultProps;
5144
5124
  /* harmony default export */ const src_Carousel = (Object.assign(Carousel, {
5145
5125
  Caption: CarouselCaption,
5146
5126
  Item: src_CarouselItem
@@ -5310,7 +5290,7 @@ function useForceUpdate() {
5310
5290
 
5311
5291
  const DropdownContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
5312
5292
  /* harmony default export */ const esm_DropdownContext = (DropdownContext);
5313
- ;// CONCATENATED MODULE: ./node_modules/dequal/dist/index.mjs
5293
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/dequal/dist/index.mjs
5314
5294
  var has = Object.prototype.hasOwnProperty;
5315
5295
 
5316
5296
  function find(iter, tar, key) {
@@ -5446,37 +5426,56 @@ function isShadowRoot(node) {
5446
5426
  var math_max = Math.max;
5447
5427
  var math_min = Math.min;
5448
5428
  var round = Math.round;
5429
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/userAgent.js
5430
+ function getUAString() {
5431
+ var uaData = navigator.userAgentData;
5432
+ if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {
5433
+ return uaData.brands.map(function (item) {
5434
+ return item.brand + "/" + item.version;
5435
+ }).join(' ');
5436
+ }
5437
+ return navigator.userAgent;
5438
+ }
5439
+ ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js
5440
+
5441
+ function isLayoutViewport() {
5442
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
5443
+ }
5449
5444
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js
5450
5445
 
5451
5446
 
5452
- function getBoundingClientRect(element, includeScale) {
5447
+
5448
+
5449
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
5453
5450
  if (includeScale === void 0) {
5454
5451
  includeScale = false;
5455
5452
  }
5456
- var rect = element.getBoundingClientRect();
5453
+ if (isFixedStrategy === void 0) {
5454
+ isFixedStrategy = false;
5455
+ }
5456
+ var clientRect = element.getBoundingClientRect();
5457
5457
  var scaleX = 1;
5458
5458
  var scaleY = 1;
5459
- if (isHTMLElement(element) && includeScale) {
5460
- var offsetHeight = element.offsetHeight;
5461
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
5462
- // Fallback to 1 in case both values are `0`
5463
-
5464
- if (offsetWidth > 0) {
5465
- scaleX = round(rect.width) / offsetWidth || 1;
5466
- }
5467
- if (offsetHeight > 0) {
5468
- scaleY = round(rect.height) / offsetHeight || 1;
5469
- }
5470
- }
5459
+ if (includeScale && isHTMLElement(element)) {
5460
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
5461
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
5462
+ }
5463
+ var _ref = isElement(element) ? getWindow(element) : window,
5464
+ visualViewport = _ref.visualViewport;
5465
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
5466
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
5467
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
5468
+ var width = clientRect.width / scaleX;
5469
+ var height = clientRect.height / scaleY;
5471
5470
  return {
5472
- width: rect.width / scaleX,
5473
- height: rect.height / scaleY,
5474
- top: rect.top / scaleY,
5475
- right: rect.right / scaleX,
5476
- bottom: rect.bottom / scaleY,
5477
- left: rect.left / scaleX,
5478
- x: rect.left / scaleX,
5479
- y: rect.top / scaleY
5471
+ width: width,
5472
+ height: height,
5473
+ top: y,
5474
+ right: x + width,
5475
+ bottom: y + height,
5476
+ left: x,
5477
+ x: x,
5478
+ y: y
5480
5479
  };
5481
5480
  }
5482
5481
  ;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js
@@ -5574,6 +5573,7 @@ function getParentNode(element) {
5574
5573
 
5575
5574
 
5576
5575
 
5576
+
5577
5577
  function getTrueOffsetParent(element) {
5578
5578
  if (!isHTMLElement(element) ||
5579
5579
  // https://github.com/popperjs/popper-core/issues/837
@@ -5585,8 +5585,8 @@ function getTrueOffsetParent(element) {
5585
5585
  // return the containing block
5586
5586
 
5587
5587
  function getContainingBlock(element) {
5588
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
5589
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
5588
+ var isFirefox = /firefox/i.test(getUAString());
5589
+ var isIE = /Trident/i.test(getUAString());
5590
5590
  if (isIE && isHTMLElement(element)) {
5591
5591
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
5592
5592
  var elementCss = dom_utils_getComputedStyle_getComputedStyle(element);
@@ -5796,10 +5796,9 @@ var unsetSides = {
5796
5796
  // Zooming can change the DPR, but it seems to report a value that will
5797
5797
  // cleanly divide the values into the appropriate subpixels.
5798
5798
 
5799
- function roundOffsetsByDPR(_ref) {
5799
+ function roundOffsetsByDPR(_ref, win) {
5800
5800
  var x = _ref.x,
5801
5801
  y = _ref.y;
5802
- var win = window;
5803
5802
  var dpr = win.devicePixelRatio || 1;
5804
5803
  return {
5805
5804
  x: round(x * dpr) / dpr || 0,
@@ -5872,7 +5871,7 @@ function mapToStyles(_ref2) {
5872
5871
  var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
5873
5872
  x: x,
5874
5873
  y: y
5875
- }) : {
5874
+ }, getWindow(popper)) : {
5876
5875
  x: x,
5877
5876
  y: y
5878
5877
  };
@@ -6025,31 +6024,20 @@ function getWindowScrollBarX(element) {
6025
6024
 
6026
6025
 
6027
6026
 
6028
- function getViewportRect(element) {
6027
+
6028
+ function getViewportRect(element, strategy) {
6029
6029
  var win = getWindow(element);
6030
6030
  var html = getDocumentElement(element);
6031
6031
  var visualViewport = win.visualViewport;
6032
6032
  var width = html.clientWidth;
6033
6033
  var height = html.clientHeight;
6034
6034
  var x = 0;
6035
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
6036
- // can be obscured underneath it.
6037
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
6038
- // if it isn't open, so if this isn't available, the popper will be detected
6039
- // to overflow the bottom of the screen too early.
6040
-
6035
+ var y = 0;
6041
6036
  if (visualViewport) {
6042
6037
  width = visualViewport.width;
6043
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
6044
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
6045
- // errors due to floating point numbers, so we need to check precision.
6046
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
6047
- // Feature detection fails in mobile emulation mode in Chrome.
6048
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
6049
- // 0.001
6050
- // Fallback here: "Not Safari" userAgent
6051
-
6052
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
6038
+ height = visualViewport.height;
6039
+ var layoutViewport = isLayoutViewport();
6040
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
6053
6041
  x = visualViewport.offsetLeft;
6054
6042
  y = visualViewport.offsetTop;
6055
6043
  }
@@ -6163,8 +6151,8 @@ function rectToClientRect(rect) {
6163
6151
 
6164
6152
 
6165
6153
 
6166
- function getInnerBoundingClientRect(element) {
6167
- var rect = getBoundingClientRect(element);
6154
+ function getInnerBoundingClientRect(element, strategy) {
6155
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
6168
6156
  rect.top = rect.top + element.clientTop;
6169
6157
  rect.left = rect.left + element.clientLeft;
6170
6158
  rect.bottom = rect.top + element.clientHeight;
@@ -6175,8 +6163,8 @@ function getInnerBoundingClientRect(element) {
6175
6163
  rect.y = rect.top;
6176
6164
  return rect;
6177
6165
  }
6178
- function getClientRectFromMixedType(element, clippingParent) {
6179
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6166
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
6167
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
6180
6168
  } // A "clipping parent" is an overflowable container with the characteristic of
6181
6169
  // clipping (or hiding) overflowing elements with a position different from
6182
6170
  // `initial`
@@ -6195,18 +6183,18 @@ function getClippingParents(element) {
6195
6183
  } // Gets the maximum area that the element is visible in due to any number of
6196
6184
  // clipping parents
6197
6185
 
6198
- function getClippingRect(element, boundary, rootBoundary) {
6186
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
6199
6187
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
6200
6188
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
6201
6189
  var firstClippingParent = clippingParents[0];
6202
6190
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
6203
- var rect = getClientRectFromMixedType(element, clippingParent);
6191
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
6204
6192
  accRect.top = math_max(rect.top, accRect.top);
6205
6193
  accRect.right = math_min(rect.right, accRect.right);
6206
6194
  accRect.bottom = math_min(rect.bottom, accRect.bottom);
6207
6195
  accRect.left = math_max(rect.left, accRect.left);
6208
6196
  return accRect;
6209
- }, getClientRectFromMixedType(element, firstClippingParent));
6197
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
6210
6198
  clippingRect.width = clippingRect.right - clippingRect.left;
6211
6199
  clippingRect.height = clippingRect.bottom - clippingRect.top;
6212
6200
  clippingRect.x = clippingRect.left;
@@ -6291,6 +6279,8 @@ function detectOverflow(state, options) {
6291
6279
  var _options = options,
6292
6280
  _options$placement = _options.placement,
6293
6281
  placement = _options$placement === void 0 ? state.placement : _options$placement,
6282
+ _options$strategy = _options.strategy,
6283
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
6294
6284
  _options$boundary = _options.boundary,
6295
6285
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
6296
6286
  _options$rootBoundary = _options.rootBoundary,
@@ -6305,7 +6295,7 @@ function detectOverflow(state, options) {
6305
6295
  var altContext = elementContext === popper ? reference : popper;
6306
6296
  var popperRect = state.rects.popper;
6307
6297
  var element = state.elements[altBoundary ? altContext : elementContext];
6308
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
6298
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
6309
6299
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
6310
6300
  var popperOffsets = computeOffsets({
6311
6301
  reference: referenceClientRect,
@@ -6805,7 +6795,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
6805
6795
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
6806
6796
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
6807
6797
  var documentElement = getDocumentElement(offsetParent);
6808
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
6798
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
6809
6799
  var scroll = {
6810
6800
  scrollLeft: 0,
6811
6801
  scrollTop: 0
@@ -7114,9 +7104,10 @@ var createPopper = /*#__PURE__*/(/* unused pure expression or super */ null && (
7114
7104
 
7115
7105
 
7116
7106
 
7117
- // For the common JS build we will turn this file into a bundle with no imports.
7118
- // This is b/c the Popper lib is all esm files, and would break in a common js only environment
7119
7107
 
7108
+
7109
+ // For the common JS build we will turn this file into a bundle with no imports.
7110
+ // This is b/c the Popper lib is all esm files, and would break in a common js only environment
7120
7111
  const popper_createPopper = popperGenerator({
7121
7112
  defaultModifiers: [modifiers_hide, modifiers_popperOffsets, modifiers_computeStyles, eventListeners, modifiers_offset, modifiers_flip, modifiers_preventOverflow, modifiers_arrow]
7122
7113
  });
@@ -7144,7 +7135,9 @@ const disabledApplyStylesModifier = {
7144
7135
  enabled: false,
7145
7136
  phase: 'afterWrite',
7146
7137
  fn: () => undefined
7147
- }; // until docjs supports type exports...
7138
+ };
7139
+
7140
+ // until docjs supports type exports...
7148
7141
 
7149
7142
  const ariaDescribedByModifier = {
7150
7143
  name: 'ariaDescribedBy',
@@ -7196,7 +7189,6 @@ const EMPTY_MODIFIERS = [];
7196
7189
  *
7197
7190
  * @returns {UsePopperState} The popper state
7198
7191
  */
7199
-
7200
7192
  function usePopper(referenceElement, popperElement, _ref = {}) {
7201
7193
  let {
7202
7194
  enabled = true,
@@ -7283,7 +7275,8 @@ function usePopper(referenceElement, popperElement, _ref = {}) {
7283
7275
  }
7284
7276
  }));
7285
7277
  }
7286
- }; // This is only run once to _create_ the popper
7278
+ };
7279
+ // This is only run once to _create_ the popper
7287
7280
  // eslint-disable-next-line react-hooks/exhaustive-deps
7288
7281
  }, [enabled, referenceElement, popperElement]);
7289
7282
  return popperState;
@@ -7327,6 +7320,7 @@ const InitialTriggerEvents = {
7327
7320
  mouseup: 'mousedown',
7328
7321
  pointerup: 'pointerdown'
7329
7322
  };
7323
+
7330
7324
  /**
7331
7325
  * The `useClickOutside` hook registers your callback on the document that fires
7332
7326
  * when a pointer event is registered outside of the provided ref or element.
@@ -7337,7 +7331,6 @@ const InitialTriggerEvents = {
7337
7331
  * @param {boolean=} options.disabled
7338
7332
  * @param {string=} options.clickTrigger The DOM event name (click, mousedown, etc) to attach listeners on
7339
7333
  */
7340
-
7341
7334
  function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7342
7335
  disabled,
7343
7336
  clickTrigger = 'click'
@@ -7363,17 +7356,19 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
7363
7356
  });
7364
7357
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
7365
7358
  if (disabled || ref == null) return undefined;
7366
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
7367
- // https://github.com/facebook/react/issues/20074
7359
+ const doc = ownerDocument(getRefTarget(ref));
7368
7360
 
7361
+ // Store the current event to avoid triggering handlers immediately
7362
+ // https://github.com/facebook/react/issues/20074
7369
7363
  let currentEvent = (doc.defaultView || window).event;
7370
7364
  let removeInitialTriggerListener = null;
7371
7365
  if (InitialTriggerEvents[clickTrigger]) {
7372
7366
  removeInitialTriggerListener = esm_listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
7373
- } // Use capture for this listener so it fires before React's listener, to
7367
+ }
7368
+
7369
+ // Use capture for this listener so it fires before React's listener, to
7374
7370
  // avoid false positives in the contains() check below if the target DOM
7375
7371
  // element is removed in the React mouse callback.
7376
-
7377
7372
  const removeMouseCaptureListener = esm_listen(doc, clickTrigger, handleMouseCapture, true);
7378
7373
  const removeMouseListener = esm_listen(doc, clickTrigger, e => {
7379
7374
  // skip if this event is the same as the one running when we added the handlers
@@ -7401,8 +7396,9 @@ function toModifierMap(modifiers) {
7401
7396
  const result = {};
7402
7397
  if (!Array.isArray(modifiers)) {
7403
7398
  return modifiers || result;
7404
- } // eslint-disable-next-line no-unused-expressions
7399
+ }
7405
7400
 
7401
+ // eslint-disable-next-line no-unused-expressions
7406
7402
  modifiers == null ? void 0 : modifiers.forEach(m => {
7407
7403
  result[m.name] = m;
7408
7404
  });
@@ -7483,6 +7479,7 @@ function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
7483
7479
 
7484
7480
 
7485
7481
  const DropdownMenu_noop = () => {};
7482
+
7486
7483
  /**
7487
7484
  * @memberOf Dropdown
7488
7485
  * @param {object} options
@@ -7493,7 +7490,6 @@ const DropdownMenu_noop = () => {};
7493
7490
  * @param {string} options.rootCloseEvent The pointer event to listen for when determining "clicks outside" the menu for triggering a close.
7494
7491
  * @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.
7495
7492
  */
7496
-
7497
7493
  function useDropdownMenu(options = {}) {
7498
7494
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(esm_DropdownContext);
7499
7495
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -7555,10 +7551,9 @@ function useDropdownMenu(options = {}) {
7555
7551
  });
7556
7552
  return [menuProps, metadata];
7557
7553
  }
7558
- const DropdownMenu_defaultProps = {
7554
+ const defaultProps = {
7559
7555
  usePopper: true
7560
7556
  };
7561
-
7562
7557
  /**
7563
7558
  * Also exported as `<Dropdown.Menu>` from `Dropdown`.
7564
7559
  *
@@ -7576,24 +7571,36 @@ function DropdownMenu(_ref) {
7576
7571
  });
7577
7572
  }
7578
7573
  DropdownMenu.displayName = 'DropdownMenu';
7579
- DropdownMenu.defaultProps = DropdownMenu_defaultProps;
7580
- /** @component */
7574
+ DropdownMenu.defaultProps = defaultProps;
7581
7575
 
7576
+ /** @component */
7582
7577
  /* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
7583
- ;// CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/module.js
7584
-
7585
- function $parcel$export(e, n, v, s) {
7586
- Object.defineProperty(e, n, {
7587
- get: v,
7588
- set: s,
7589
- enumerable: true,
7590
- configurable: true
7591
- });
7592
- }
7593
- var $704cf1d3b684cc5c$exports = {};
7594
- $parcel$export($704cf1d3b684cc5c$exports, "SSRProvider", () => $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
7595
- $parcel$export($704cf1d3b684cc5c$exports, "useSSRSafeId", () => $704cf1d3b684cc5c$export$619500959fc48b26);
7596
- $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$export$535bd6ca7f90a273);
7578
+ ;// CONCATENATED MODULE: ./node_modules/@react-aria/ssr/dist/import.mjs
7579
+
7580
+
7581
+ /*
7582
+ * Copyright 2020 Adobe. All rights reserved.
7583
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7584
+ * you may not use this file except in compliance with the License. You may obtain a copy
7585
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
7586
+ *
7587
+ * Unless required by applicable law or agreed to in writing, software distributed under
7588
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
7589
+ * OF ANY KIND, either express or implied. See the License for the specific language
7590
+ * governing permissions and limitations under the License.
7591
+ */ /*
7592
+ * Copyright 2020 Adobe. All rights reserved.
7593
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
7594
+ * you may not use this file except in compliance with the License. You may obtain a copy
7595
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
7596
+ *
7597
+ * Unless required by applicable law or agreed to in writing, software distributed under
7598
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
7599
+ * OF ANY KIND, either express or implied. See the License for the specific language
7600
+ * governing permissions and limitations under the License.
7601
+ */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
7602
+ // guarded by a check that it only runs on the client side.
7603
+ // eslint-disable-next-line rulesdir/useLayoutEffectRule
7597
7604
 
7598
7605
  // Default context value to use in case there is no SSRProvider. This is fine for
7599
7606
  // client-only apps. In order to support multiple copies of React Aria potentially
@@ -7601,46 +7608,94 @@ $parcel$export($704cf1d3b684cc5c$exports, "useIsSSR", () => $704cf1d3b684cc5c$ex
7601
7608
  // will reset this to zero for consistency between server and client, so in the
7602
7609
  // SSR case multiple copies of React Aria is not supported.
7603
7610
  const $704cf1d3b684cc5c$var$defaultContext = {
7604
- prefix: String(Math.round(Math.random() * 10000000000)),
7605
- current: 0
7611
+ prefix: String(Math.round(Math.random() * 10000000000)),
7612
+ current: 0,
7613
+ isSSR: false
7606
7614
  };
7607
- const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext($704cf1d3b684cc5c$var$defaultContext);
7615
+ const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext($704cf1d3b684cc5c$var$defaultContext);
7608
7616
  function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {
7609
- let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7610
- let value = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
7611
- // If this is the first SSRProvider, start with an empty string prefix, otherwise
7612
- // append and increment the counter.
7613
- prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? '' : `${cur.prefix}-${++cur.current}`,
7614
- current: 0
7615
- }), [cur]);
7616
- return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
7617
- value: value
7618
- }, props.children);
7619
- }
7620
- let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== 'undefined' && window.document && window.document.createElement);
7621
- function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
7622
- let ctx = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7623
- // If we are rendering in a non-DOM environment, and there's no SSRProvider,
7624
- // provide a warning to hint to the developer to add one.
7625
- if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.');
7626
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => defaultId || `react-aria${ctx.prefix}-${++ctx.current}`, [defaultId]);
7627
- }
7628
- function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
7629
- let cur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7630
- let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
7631
- let [isSSR, setIsSSR] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(isInSSRContext);
7632
- // If on the client, and the component was initially server rendered,
7633
- // then schedule a layout effect to update the component after hydration.
7634
- if (typeof window !== 'undefined' && isInSSRContext)
7635
- // This if statement technically breaks the rules of hooks, but is safe
7617
+ let cur = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7618
+ let counter = $704cf1d3b684cc5c$var$useCounter(cur === $704cf1d3b684cc5c$var$defaultContext);
7619
+ let [isSSR, setIsSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true);
7620
+ let value = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(()=>({
7621
+ // If this is the first SSRProvider, start with an empty string prefix, otherwise
7622
+ // append and increment the counter.
7623
+ prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? "" : `${cur.prefix}-${counter}`,
7624
+ current: 0,
7625
+ isSSR: isSSR
7626
+ }), [
7627
+ cur,
7628
+ counter,
7629
+ isSSR
7630
+ ]);
7631
+ // If on the client, and the component was initially server rendered,
7632
+ // then schedule a layout effect to update the component after hydration.
7633
+ if (typeof window !== "undefined") // This if statement technically breaks the rules of hooks, but is safe
7636
7634
  // because the condition never changes after mounting.
7637
7635
  // eslint-disable-next-line react-hooks/rules-of-hooks
7638
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(() => {
7639
- setIsSSR(false);
7636
+ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(()=>{
7637
+ setIsSSR(false);
7640
7638
  }, []);
7641
- return isSSR;
7639
+ return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
7640
+ value: value
7641
+ }, props.children);
7642
+ }
7643
+ let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
7644
+ let $704cf1d3b684cc5c$var$componentIds = new WeakMap();
7645
+ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
7646
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7647
+ let ref = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
7648
+ if (ref.current === null && !isDisabled) {
7649
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
7650
+ // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
7651
+ // This means our id counter will be incremented twice instead of once. This is a problem because on the
7652
+ // server, components are only rendered once and so ids generated on the server won't match the client.
7653
+ // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
7654
+ // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
7655
+ // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
7656
+ // To ensure that we only increment the global counter once, we store the starting id for this component in
7657
+ // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
7658
+ // Since React runs the second render immediately after the first, this is safe.
7659
+ // @ts-ignore
7660
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
7661
+ if (currentOwner) {
7662
+ let prevComponentValue = $704cf1d3b684cc5c$var$componentIds.get(currentOwner);
7663
+ if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
7664
+ $704cf1d3b684cc5c$var$componentIds.set(currentOwner, {
7665
+ id: ctx.current,
7666
+ state: currentOwner.memoizedState
7667
+ });
7668
+ else if (currentOwner.memoizedState !== prevComponentValue.state) {
7669
+ // On the second render, the memoizedState gets reset by React.
7670
+ // Reset the counter, and remove from the weak map so we don't
7671
+ // do this for subsequent useId calls.
7672
+ ctx.current = prevComponentValue.id;
7673
+ $704cf1d3b684cc5c$var$componentIds.delete(currentOwner);
7674
+ }
7675
+ }
7676
+ ref.current = ++ctx.current;
7677
+ }
7678
+ return ref.current;
7679
+ }
7680
+ function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
7681
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7682
+ // If we are rendering in a non-DOM environment, and there's no SSRProvider,
7683
+ // provide a warning to hint to the developer to add one.
7684
+ if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
7685
+ let counter = $704cf1d3b684cc5c$var$useCounter(!!defaultId);
7686
+ return defaultId || `react-aria${ctx.prefix}-${counter}`;
7687
+ }
7688
+ function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
7689
+ let cur = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);
7690
+ return cur.isSSR;
7642
7691
  }
7643
7692
 
7693
+
7694
+
7695
+
7696
+
7697
+ //# sourceMappingURL=module.js.map
7698
+
7644
7699
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownToggle.js
7645
7700
 
7646
7701
 
@@ -7653,13 +7708,13 @@ const isRoleMenu = el => {
7653
7708
  return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
7654
7709
  };
7655
7710
  const DropdownToggle_noop = () => {};
7711
+
7656
7712
  /**
7657
7713
  * Wires up Dropdown toggle functionality, returning a set a props to attach
7658
7714
  * to the element that functions as the dropdown toggle (generally a button).
7659
7715
  *
7660
7716
  * @memberOf Dropdown
7661
7717
  */
7662
-
7663
7718
  function useDropdownToggle() {
7664
7719
  const id = $704cf1d3b684cc5c$export$619500959fc48b26();
7665
7720
  const {
@@ -7676,10 +7731,11 @@ function useDropdownToggle() {
7676
7731
  ref: setToggle || DropdownToggle_noop,
7677
7732
  onClick: handleClick,
7678
7733
  'aria-expanded': !!show
7679
- }; // This is maybe better down in an effect, but
7734
+ };
7735
+
7736
+ // This is maybe better down in an effect, but
7680
7737
  // the component is going to update anyway when the menu element
7681
7738
  // is set so might return new props.
7682
-
7683
7739
  if (menuElement && isRoleMenu(menuElement)) {
7684
7740
  props['aria-haspopup'] = true;
7685
7741
  }
@@ -7688,7 +7744,6 @@ function useDropdownToggle() {
7688
7744
  toggle
7689
7745
  }];
7690
7746
  }
7691
-
7692
7747
  /**
7693
7748
  * Also exported as `<Dropdown.Toggle>` from `Dropdown`.
7694
7749
  *
@@ -7704,8 +7759,8 @@ function DropdownToggle({
7704
7759
  });
7705
7760
  }
7706
7761
  DropdownToggle.displayName = 'DropdownToggle';
7707
- /** @component */
7708
7762
 
7763
+ /** @component */
7709
7764
  /* harmony default export */ const esm_DropdownToggle = (DropdownToggle);
7710
7765
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/SelectableContext.js
7711
7766
 
@@ -7751,7 +7806,6 @@ function DropdownItem_objectWithoutPropertiesLoose(source, excluded) {
7751
7806
 
7752
7807
 
7753
7808
 
7754
-
7755
7809
  /**
7756
7810
  * Create a dropdown item. Returns a set of props for the dropdown item component
7757
7811
  * including an `onClick` handler that prevents selection when the item is disabled
@@ -7813,13 +7867,13 @@ DropdownItem.displayName = 'DropdownItem';
7813
7867
 
7814
7868
  const Context = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext)(canUseDOM ? window : undefined);
7815
7869
  const WindowProvider = Context.Provider;
7870
+
7816
7871
  /**
7817
7872
  * The document "window" placed in React context. Helpful for determining
7818
7873
  * SSR context, or when rendering into an iframe.
7819
7874
  *
7820
7875
  * @returns the current window
7821
7876
  */
7822
-
7823
7877
  function useWindow() {
7824
7878
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(Context);
7825
7879
  }
@@ -7845,17 +7899,17 @@ function useRefWithUpdate() {
7845
7899
  const forceUpdate = useForceUpdate();
7846
7900
  const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
7847
7901
  const attachRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(element => {
7848
- ref.current = element; // ensure that a menu set triggers an update for consumers
7849
-
7902
+ ref.current = element;
7903
+ // ensure that a menu set triggers an update for consumers
7850
7904
  forceUpdate();
7851
7905
  }, [forceUpdate]);
7852
7906
  return [ref, attachRef];
7853
7907
  }
7908
+
7854
7909
  /**
7855
7910
  * @displayName Dropdown
7856
7911
  * @public
7857
7912
  */
7858
-
7859
7913
  function Dropdown({
7860
7914
  defaultShow,
7861
7915
  show: rawShow,
@@ -7867,10 +7921,11 @@ function Dropdown({
7867
7921
  children
7868
7922
  }) {
7869
7923
  const window = useWindow();
7870
- const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle); // We use normal refs instead of useCallbackRef in order to populate the
7924
+ const [show, onToggle] = useUncontrolledProp(rawShow, defaultShow, rawOnToggle);
7925
+
7926
+ // We use normal refs instead of useCallbackRef in order to populate the
7871
7927
  // the value as quickly as possible, otherwise the effect to focus the element
7872
7928
  // may run before the state value is set
7873
-
7874
7929
  const [menuRef, setMenu] = useRefWithUpdate();
7875
7930
  const menuElement = menuRef.current;
7876
7931
  const [toggleRef, setToggle] = useRefWithUpdate();
@@ -7925,7 +7980,8 @@ function Dropdown({
7925
7980
  if (show) maybeFocusFirst();else if (focusInDropdown.current) {
7926
7981
  focusInDropdown.current = false;
7927
7982
  focusToggle();
7928
- } // only `show` should be changing
7983
+ }
7984
+ // only `show` should be changing
7929
7985
  }, [show, focusInDropdown, focusToggle, maybeFocusFirst]);
7930
7986
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
7931
7987
  lastSourceEvent.current = null;
@@ -7944,9 +8000,10 @@ function Dropdown({
7944
8000
  } = event;
7945
8001
  const target = event.target;
7946
8002
  const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);
7947
- const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target); // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
7948
- // in inscrutability
8003
+ const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target);
7949
8004
 
8005
+ // Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
8006
+ // in inscrutability
7950
8007
  const isInput = /input|textarea/i.test(target.tagName);
7951
8008
  if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {
7952
8009
  return;
@@ -8194,9 +8251,6 @@ const DropdownMenu_propTypes = {
8194
8251
  */
8195
8252
  variant: (prop_types_default()).string
8196
8253
  };
8197
- const src_DropdownMenu_defaultProps = {
8198
- flip: true
8199
- };
8200
8254
  function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
8201
8255
  const topStart = isRTL ? 'top-end' : 'top-start';
8202
8256
  const topEnd = isRTL ? 'top-start' : 'top-end';
@@ -8215,7 +8269,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8215
8269
  className,
8216
8270
  align,
8217
8271
  rootCloseEvent,
8218
- flip,
8272
+ flip = true,
8219
8273
  show: showProps,
8220
8274
  renderOnMount,
8221
8275
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
@@ -8303,13 +8357,12 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8303
8357
  className: classnames_default()(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
8304
8358
  }, void 0, false, {
8305
8359
  fileName: DropdownMenu_jsxFileName,
8306
- lineNumber: 211,
8360
+ lineNumber: 207,
8307
8361
  columnNumber: 9
8308
8362
  }, undefined);
8309
8363
  });
8310
8364
  DropdownMenu_DropdownMenu.displayName = 'DropdownMenu';
8311
8365
  DropdownMenu_DropdownMenu.propTypes = DropdownMenu_propTypes;
8312
- DropdownMenu_DropdownMenu.defaultProps = src_DropdownMenu_defaultProps;
8313
8366
  /* harmony default export */ const src_DropdownMenu = (DropdownMenu_DropdownMenu);
8314
8367
  ;// CONCATENATED MODULE: ./src/DropdownToggle.tsx
8315
8368
  var DropdownToggle_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/DropdownToggle.tsx";
@@ -8469,26 +8522,20 @@ const Dropdown_propTypes = {
8469
8522
  */
8470
8523
  autoClose: prop_types_default().oneOf([true, 'outside', 'inside', false])
8471
8524
  };
8472
- const Dropdown_defaultProps = {
8473
- navbar: false,
8474
- align: 'start',
8475
- autoClose: true,
8476
- drop: 'down'
8477
- };
8478
8525
  const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((pProps, ref) => {
8479
8526
  const {
8480
8527
  bsPrefix,
8481
- drop,
8528
+ drop = 'down',
8482
8529
  show,
8483
8530
  className,
8484
- align,
8531
+ align = 'start',
8485
8532
  onSelect,
8486
8533
  onToggle,
8487
8534
  focusFirstItemOnShow,
8488
8535
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
8489
8536
  as: Component = 'div',
8490
8537
  navbar: _4,
8491
- autoClose,
8538
+ autoClose = true,
8492
8539
  ...props
8493
8540
  } = useUncontrolled(pProps, {
8494
8541
  show: 'onToggle'
@@ -8541,23 +8588,22 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
8541
8588
  className: classnames_default()(className, show && 'show', directionClasses[drop])
8542
8589
  }, void 0, false, {
8543
8590
  fileName: Dropdown_jsxFileName,
8544
- lineNumber: 211,
8591
+ lineNumber: 204,
8545
8592
  columnNumber: 13
8546
8593
  }, undefined)
8547
8594
  }, void 0, false, {
8548
8595
  fileName: Dropdown_jsxFileName,
8549
- lineNumber: 200,
8596
+ lineNumber: 193,
8550
8597
  columnNumber: 9
8551
8598
  }, undefined)
8552
8599
  }, void 0, false, {
8553
8600
  fileName: Dropdown_jsxFileName,
8554
- lineNumber: 199,
8601
+ lineNumber: 192,
8555
8602
  columnNumber: 7
8556
8603
  }, undefined);
8557
8604
  });
8558
8605
  Dropdown_Dropdown.displayName = 'Dropdown';
8559
8606
  Dropdown_Dropdown.propTypes = Dropdown_propTypes;
8560
- Dropdown_Dropdown.defaultProps = Dropdown_defaultProps;
8561
8607
  /* harmony default export */ const src_Dropdown = (Object.assign(Dropdown_Dropdown, {
8562
8608
  Toggle: src_DropdownToggle,
8563
8609
  Menu: src_DropdownMenu,
@@ -9223,16 +9269,12 @@ const FormLabel_propTypes = {
9223
9269
  /** Set a custom element for this component */
9224
9270
  as: (prop_types_default()).elementType
9225
9271
  };
9226
- const FormLabel_defaultProps = {
9227
- column: false,
9228
- visuallyHidden: false
9229
- };
9230
9272
  const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9231
9273
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
9232
9274
  as: Component = 'label',
9233
9275
  bsPrefix,
9234
- column,
9235
- visuallyHidden,
9276
+ column = false,
9277
+ visuallyHidden = false,
9236
9278
  className,
9237
9279
  htmlFor,
9238
9280
  ...props
@@ -9254,7 +9296,7 @@ const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9254
9296
  ...props
9255
9297
  }, void 0, false, {
9256
9298
  fileName: FormLabel_jsxFileName,
9257
- lineNumber: 109,
9299
+ lineNumber: 104,
9258
9300
  columnNumber: 11
9259
9301
  }, undefined);
9260
9302
  return (
@@ -9267,14 +9309,13 @@ const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9267
9309
  ...props
9268
9310
  }, void 0, false, {
9269
9311
  fileName: FormLabel_jsxFileName,
9270
- lineNumber: 120,
9312
+ lineNumber: 115,
9271
9313
  columnNumber: 9
9272
9314
  }, undefined)
9273
9315
  );
9274
9316
  });
9275
9317
  FormLabel.displayName = 'FormLabel';
9276
9318
  FormLabel.propTypes = FormLabel_propTypes;
9277
- FormLabel.defaultProps = FormLabel_defaultProps;
9278
9319
  /* harmony default export */ const src_FormLabel = (FormLabel);
9279
9320
  ;// CONCATENATED MODULE: ./src/FormRange.tsx
9280
9321
  var FormRange_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/FormRange.tsx";
@@ -9601,12 +9642,9 @@ const Container_propTypes = {
9601
9642
  */
9602
9643
  as: (prop_types_default()).elementType
9603
9644
  };
9604
- const Container_defaultProps = {
9605
- fluid: false
9606
- };
9607
9645
  const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9608
9646
  bsPrefix,
9609
- fluid,
9647
+ fluid = false,
9610
9648
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
9611
9649
  as: Component = 'div',
9612
9650
  className,
@@ -9620,13 +9658,12 @@ const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
9620
9658
  className: classnames_default()(className, fluid ? `${prefix}${suffix}` : prefix)
9621
9659
  }, void 0, false, {
9622
9660
  fileName: Container_jsxFileName,
9623
- lineNumber: 51,
9661
+ lineNumber: 47,
9624
9662
  columnNumber: 9
9625
9663
  }, undefined);
9626
9664
  });
9627
9665
  Container.displayName = 'Container';
9628
9666
  Container.propTypes = Container_propTypes;
9629
- Container.defaultProps = Container_defaultProps;
9630
9667
  /* harmony default export */ const src_Container = (Container);
9631
9668
  ;// CONCATENATED MODULE: ./src/Image.tsx
9632
9669
  var Image_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Image.tsx";
@@ -9657,19 +9694,13 @@ const Image_propTypes = {
9657
9694
  */
9658
9695
  thumbnail: (prop_types_default()).bool
9659
9696
  };
9660
- const Image_defaultProps = {
9661
- fluid: false,
9662
- rounded: false,
9663
- roundedCircle: false,
9664
- thumbnail: false
9665
- };
9666
9697
  const Image_Image = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9667
9698
  bsPrefix,
9668
9699
  className,
9669
- fluid,
9670
- rounded,
9671
- roundedCircle,
9672
- thumbnail,
9700
+ fluid = false,
9701
+ rounded = false,
9702
+ roundedCircle = false,
9703
+ thumbnail = false,
9673
9704
  ...props
9674
9705
  }, ref) => {
9675
9706
  bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
@@ -9680,13 +9711,12 @@ const Image_Image = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
9680
9711
  className: classnames_default()(className, fluid && `${bsPrefix}-fluid`, rounded && `rounded`, roundedCircle && `rounded-circle`, thumbnail && `${bsPrefix}-thumbnail`)
9681
9712
  }, void 0, false, {
9682
9713
  fileName: Image_jsxFileName,
9683
- lineNumber: 57,
9714
+ lineNumber: 58,
9684
9715
  columnNumber: 7
9685
9716
  }, undefined);
9686
9717
  });
9687
9718
  Image_Image.displayName = 'Image';
9688
9719
  Image_Image.propTypes = Image_propTypes;
9689
- Image_Image.defaultProps = Image_defaultProps;
9690
9720
  /* harmony default export */ const src_Image = (Image_Image);
9691
9721
  ;// CONCATENATED MODULE: ./src/FigureImage.tsx
9692
9722
  var FigureImage_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/FigureImage.tsx";
@@ -9694,24 +9724,22 @@ var FigureImage_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootst
9694
9724
 
9695
9725
 
9696
9726
 
9697
- const FigureImage_defaultProps = {
9698
- fluid: true
9699
- };
9700
9727
  const FigureImage = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9701
9728
  className,
9729
+ fluid = true,
9702
9730
  ...props
9703
9731
  }, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Image, {
9704
9732
  ref: ref,
9705
9733
  ...props,
9734
+ fluid: fluid,
9706
9735
  className: classnames_default()(className, 'figure-img')
9707
9736
  }, void 0, false, {
9708
9737
  fileName: FigureImage_jsxFileName,
9709
- lineNumber: 10,
9738
+ lineNumber: 8,
9710
9739
  columnNumber: 5
9711
9740
  }, undefined));
9712
9741
  FigureImage.displayName = 'FigureImage';
9713
9742
  FigureImage.propTypes = Image_propTypes;
9714
- FigureImage.defaultProps = FigureImage_defaultProps;
9715
9743
  /* harmony default export */ const src_FigureImage = (FigureImage);
9716
9744
  ;// CONCATENATED MODULE: ./src/FigureCaption.tsx
9717
9745
 
@@ -9789,13 +9817,6 @@ const InputGroup_propTypes = {
9789
9817
  hasValidation: (prop_types_default()).bool,
9790
9818
  as: (prop_types_default()).elementType
9791
9819
  };
9792
-
9793
- /**
9794
- *
9795
- * @property {InputGroupText} Text
9796
- * @property {InputGroupRadio} Radio
9797
- * @property {InputGroupCheckbox} Checkbox
9798
- */
9799
9820
  const InputGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
9800
9821
  bsPrefix,
9801
9822
  size,
@@ -9818,12 +9839,12 @@ const InputGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
9818
9839
  className: classnames_default()(className, bsPrefix, size && `${bsPrefix}-${size}`, hasValidation && 'has-validation')
9819
9840
  }, void 0, false, {
9820
9841
  fileName: InputGroup_jsxFileName,
9821
- lineNumber: 85,
9842
+ lineNumber: 79,
9822
9843
  columnNumber: 11
9823
9844
  }, undefined)
9824
9845
  }, void 0, false, {
9825
9846
  fileName: InputGroup_jsxFileName,
9826
- lineNumber: 84,
9847
+ lineNumber: 78,
9827
9848
  columnNumber: 9
9828
9849
  }, undefined);
9829
9850
  });
@@ -9879,11 +9900,13 @@ function useNavItem({
9879
9900
  if (navContext) {
9880
9901
  if (!role && navContext.role === 'tablist') props.role = 'tab';
9881
9902
  const contextControllerId = navContext.getControllerId(key != null ? key : null);
9882
- const contextControlledId = navContext.getControlledId(key != null ? key : null); // @ts-ignore
9903
+ const contextControlledId = navContext.getControlledId(key != null ? key : null);
9883
9904
 
9905
+ // @ts-ignore
9884
9906
  props[dataAttr('event-key')] = key;
9885
9907
  props.id = contextControllerId || id;
9886
9908
  isActive = active == null && key != null ? navContext.activeKey === key : active;
9909
+
9887
9910
  /**
9888
9911
  * Simplified scenario for `mountOnEnter`.
9889
9912
  *
@@ -9893,7 +9916,6 @@ function useNavItem({
9893
9916
  *
9894
9917
  * @see https://github.com/react-restart/ui/pull/40#issuecomment-1009971561
9895
9918
  */
9896
-
9897
9919
  if (isActive || !(tabContext != null && tabContext.unmountOnExit) && !(tabContext != null && tabContext.mountOnEnter)) props['aria-controls'] = contextControlledId;
9898
9920
  }
9899
9921
  if (props.role === 'tab') {
@@ -9930,8 +9952,9 @@ const NavItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
9930
9952
  const [props, meta] = useNavItem(Object.assign({
9931
9953
  key: makeEventKey(eventKey, options.href),
9932
9954
  active
9933
- }, options)); // @ts-ignore
9955
+ }, options));
9934
9956
 
9957
+ // @ts-ignore
9935
9958
  props[dataAttr('active')] = meta.isActive;
9936
9959
  return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({}, options, props, {
9937
9960
  ref: ref
@@ -9964,7 +9987,6 @@ function Nav_objectWithoutPropertiesLoose(source, excluded) {
9964
9987
 
9965
9988
 
9966
9989
 
9967
-
9968
9990
  // eslint-disable-next-line @typescript-eslint/no-empty-function
9969
9991
  const Nav_noop = () => {};
9970
9992
  const EVENT_KEY_ATTR = dataAttr('event-key');
@@ -9978,7 +10000,6 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
9978
10000
  onKeyDown
9979
10001
  } = _ref,
9980
10002
  props = Nav_objectWithoutPropertiesLoose(_ref, Nav_excluded);
9981
-
9982
10003
  // A ref and forceUpdate for refocus, b/c we only want to trigger when needed
9983
10004
  // and don't want to reset the set in the effect
9984
10005
  const forceUpdate = useForceUpdate();
@@ -9988,8 +10009,8 @@ const Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_
9988
10009
  let getControlledId, getControllerId;
9989
10010
  if (tabContext) {
9990
10011
  role = role || 'tablist';
9991
- activeKey = tabContext.activeKey; // TODO: do we need to duplicate these?
9992
-
10012
+ activeKey = tabContext.activeKey;
10013
+ // TODO: do we need to duplicate these?
9993
10014
  getControlledId = tabContext.getControlledId;
9994
10015
  getControllerId = tabContext.getControllerId;
9995
10016
  }
@@ -10293,11 +10314,11 @@ function getBodyScrollbarWidth(ownerDocument = document) {
10293
10314
 
10294
10315
 
10295
10316
  const OPEN_DATA_ATTRIBUTE = dataAttr('modal-open');
10317
+
10296
10318
  /**
10297
10319
  * Manages a stack of Modals as well as ensuring
10298
10320
  * body scrolling is is disabled and padding accounted for
10299
10321
  */
10300
-
10301
10322
  class ModalManager {
10302
10323
  constructor({
10303
10324
  ownerDocument,
@@ -10315,16 +10336,19 @@ class ModalManager {
10315
10336
  getElement() {
10316
10337
  return (this.ownerDocument || document).body;
10317
10338
  }
10318
- setModalAttributes(_modal) {// For overriding
10339
+ setModalAttributes(_modal) {
10340
+ // For overriding
10319
10341
  }
10320
- removeModalAttributes(_modal) {// For overriding
10342
+ removeModalAttributes(_modal) {
10343
+ // For overriding
10321
10344
  }
10322
10345
  setContainerStyle(containerState) {
10323
10346
  const style = {
10324
10347
  overflow: 'hidden'
10325
- }; // we are only interested in the actual `style` here
10326
- // because we will override it
10348
+ };
10327
10349
 
10350
+ // we are only interested in the actual `style` here
10351
+ // because we will override it
10328
10352
  const paddingProp = this.isRTL ? 'paddingLeft' : 'paddingRight';
10329
10353
  const container = this.getElement();
10330
10354
  containerState.style = {
@@ -10372,9 +10396,10 @@ class ModalManager {
10372
10396
  if (modalIdx === -1) {
10373
10397
  return;
10374
10398
  }
10375
- this.modals.splice(modalIdx, 1); // if that was the last modal in a container,
10376
- // clean up the container
10399
+ this.modals.splice(modalIdx, 1);
10377
10400
 
10401
+ // if that was the last modal in a container,
10402
+ // clean up the container
10378
10403
  if (!this.modals.length && this.handleContainerOverflow) {
10379
10404
  this.removeContainerStyle(this.state);
10380
10405
  }
@@ -10418,8 +10443,137 @@ function useWaitForDOMRef(ref, onResolved) {
10418
10443
  }, [ref, resolvedRef]);
10419
10444
  return resolvedRef;
10420
10445
  }
10446
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NoopTransition.js
10447
+
10448
+
10449
+
10450
+ function NoopTransition({
10451
+ children,
10452
+ in: inProp,
10453
+ onExited,
10454
+ mountOnEnter,
10455
+ unmountOnExit
10456
+ }) {
10457
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10458
+ const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
10459
+ const handleExited = useEventCallback(onExited);
10460
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10461
+ if (inProp) hasEnteredRef.current = true;else {
10462
+ handleExited(ref.current);
10463
+ }
10464
+ }, [inProp, handleExited]);
10465
+ const combinedRef = esm_useMergedRefs(ref, children.ref);
10466
+ const child = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
10467
+ ref: combinedRef
10468
+ });
10469
+ if (inProp) return child;
10470
+ if (unmountOnExit) {
10471
+ return null;
10472
+ }
10473
+ if (!hasEnteredRef.current && mountOnEnter) {
10474
+ return null;
10475
+ }
10476
+ return child;
10477
+ }
10478
+ /* harmony default export */ const esm_NoopTransition = (NoopTransition);
10479
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/ImperativeTransition.js
10480
+
10481
+
10482
+
10483
+
10484
+
10485
+
10486
+ function useTransition({
10487
+ in: inProp,
10488
+ onTransition
10489
+ }) {
10490
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10491
+ const isInitialRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
10492
+ const handleTransition = useEventCallback(onTransition);
10493
+ useIsomorphicEffect(() => {
10494
+ if (!ref.current) {
10495
+ return undefined;
10496
+ }
10497
+ let stale = false;
10498
+ handleTransition({
10499
+ in: inProp,
10500
+ element: ref.current,
10501
+ initial: isInitialRef.current,
10502
+ isStale: () => stale
10503
+ });
10504
+ return () => {
10505
+ stale = true;
10506
+ };
10507
+ }, [inProp, handleTransition]);
10508
+ useIsomorphicEffect(() => {
10509
+ isInitialRef.current = false;
10510
+ // this is for strict mode
10511
+ return () => {
10512
+ isInitialRef.current = true;
10513
+ };
10514
+ }, []);
10515
+ return ref;
10516
+ }
10517
+ /**
10518
+ * Adapts an imperative transition function to a subset of the RTG `<Transition>` component API.
10519
+ *
10520
+ * ImperativeTransition does not support mounting options or `appear` at the moment, meaning
10521
+ * that it always acts like: `mountOnEnter={true} unmountOnExit={true} appear={true}`
10522
+ */
10523
+ function ImperativeTransition({
10524
+ children,
10525
+ in: inProp,
10526
+ onExited,
10527
+ onEntered,
10528
+ transition
10529
+ }) {
10530
+ const [exited, setExited] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(!inProp);
10531
+
10532
+ // TODO: I think this needs to be in an effect
10533
+ if (inProp && exited) {
10534
+ setExited(false);
10535
+ }
10536
+ const ref = useTransition({
10537
+ in: !!inProp,
10538
+ onTransition: options => {
10539
+ const onFinish = () => {
10540
+ if (options.isStale()) return;
10541
+ if (options.in) {
10542
+ onEntered == null ? void 0 : onEntered(options.element, options.initial);
10543
+ } else {
10544
+ setExited(true);
10545
+ onExited == null ? void 0 : onExited(options.element);
10546
+ }
10547
+ };
10548
+ Promise.resolve(transition(options)).then(onFinish, error => {
10549
+ if (!options.in) setExited(true);
10550
+ throw error;
10551
+ });
10552
+ }
10553
+ });
10554
+ const combinedRef = esm_useMergedRefs(ref, children.ref);
10555
+ return exited && !inProp ? null : /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(children, {
10556
+ ref: combinedRef
10557
+ });
10558
+ }
10559
+ function renderTransition(Component, runTransition, props) {
10560
+ if (Component) {
10561
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(Component, Object.assign({}, props));
10562
+ }
10563
+ if (runTransition) {
10564
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(ImperativeTransition, Object.assign({}, props, {
10565
+ transition: runTransition
10566
+ }));
10567
+ }
10568
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NoopTransition, Object.assign({}, props));
10569
+ }
10570
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
10571
+ /* eslint-disable import/prefer-default-export */
10572
+ function isEscKey(e) {
10573
+ return e.code === 'Escape' || e.keyCode === 27;
10574
+ }
10421
10575
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
10422
- const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "backdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
10576
+ const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
10423
10577
  function Modal_objectWithoutPropertiesLoose(source, excluded) {
10424
10578
  if (source == null) return {};
10425
10579
  var target = {};
@@ -10432,7 +10586,6 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
10432
10586
  }
10433
10587
  return target;
10434
10588
  }
10435
-
10436
10589
  /* eslint-disable @typescript-eslint/no-use-before-define, react/prop-types */
10437
10590
 
10438
10591
 
@@ -10451,6 +10604,9 @@ function Modal_objectWithoutPropertiesLoose(source, excluded) {
10451
10604
 
10452
10605
 
10453
10606
 
10607
+
10608
+
10609
+
10454
10610
  let manager;
10455
10611
  function getManager(window) {
10456
10612
  if (!manager) manager = new esm_ModalManager({
@@ -10489,7 +10645,9 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10489
10645
  onBackdropClick,
10490
10646
  onEscapeKeyDown,
10491
10647
  transition,
10648
+ runTransition,
10492
10649
  backdropTransition,
10650
+ runBackdropTransition,
10493
10651
  autoFocus = true,
10494
10652
  enforceFocus = true,
10495
10653
  restoreFocus = true,
@@ -10518,9 +10676,9 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10518
10676
  if (canUseDOM && !prevShow && show) {
10519
10677
  lastFocusRef.current = activeElement();
10520
10678
  }
10521
- if (!transition && !show && !exited) {
10522
- setExited(true);
10523
- } else if (show && exited) {
10679
+
10680
+ // TODO: I think this needs to be in an effect
10681
+ if (show && exited) {
10524
10682
  setExited(false);
10525
10683
  }
10526
10684
  const handleShow = useEventCallback(() => {
@@ -10532,9 +10690,10 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10532
10690
  () => setTimeout(handleEnforceFocus), true);
10533
10691
  if (onShow) {
10534
10692
  onShow();
10535
- } // autofocus after onShow to not trigger a focus event for previous
10536
- // modals before this one is shown.
10693
+ }
10537
10694
 
10695
+ // autofocus after onShow to not trigger a focus event for previous
10696
+ // modals before this one is shown.
10538
10697
  if (autoFocus) {
10539
10698
  const currentActiveElement = activeElement(document);
10540
10699
  if (modal.dialog && currentActiveElement && !contains_contains(modal.dialog, currentActiveElement)) {
@@ -10549,30 +10708,33 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10549
10708
  removeFocusListenerRef.current == null ? void 0 : removeFocusListenerRef.current();
10550
10709
  if (restoreFocus) {
10551
10710
  var _lastFocusRef$current;
10552
-
10553
10711
  // Support: <=IE11 doesn't support `focus()` on svg elements (RB: #917)
10554
10712
  (_lastFocusRef$current = lastFocusRef.current) == null ? void 0 : _lastFocusRef$current.focus == null ? void 0 : _lastFocusRef$current.focus(restoreFocusOptions);
10555
10713
  lastFocusRef.current = null;
10556
10714
  }
10557
- }); // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120
10715
+ });
10716
+
10717
+ // TODO: try and combine these effects: https://github.com/react-bootstrap/react-overlays/pull/794#discussion_r409954120
10718
+
10558
10719
  // Show logic when:
10559
10720
  // - show is `true` _and_ `container` has resolved
10560
-
10561
10721
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10562
10722
  if (!show || !container) return;
10563
10723
  handleShow();
10564
- }, [show, container, /* should never change: */
10565
- handleShow]); // Hide cleanup logic when:
10724
+ }, [show, container, /* should never change: */handleShow]);
10725
+
10726
+ // Hide cleanup logic when:
10566
10727
  // - `exited` switches to true
10567
10728
  // - component unmounts;
10568
-
10569
10729
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
10570
10730
  if (!exited) return;
10571
10731
  handleHide();
10572
10732
  }, [exited, handleHide]);
10573
10733
  useWillUnmount(() => {
10574
10734
  handleHide();
10575
- }); // --------------------------------
10735
+ });
10736
+
10737
+ // --------------------------------
10576
10738
 
10577
10739
  const handleEnforceFocus = useEventCallback(() => {
10578
10740
  if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
@@ -10593,7 +10755,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10593
10755
  }
10594
10756
  });
10595
10757
  const handleDocumentKeyDown = useEventCallback(e => {
10596
- if (keyboard && e.keyCode === 27 && modal.isTopModal()) {
10758
+ if (keyboard && isEscKey(e) && modal.isTopModal()) {
10597
10759
  onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
10598
10760
  if (!e.defaultPrevented) {
10599
10761
  onHide();
@@ -10606,8 +10768,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10606
10768
  setExited(true);
10607
10769
  onExited == null ? void 0 : onExited(...args);
10608
10770
  };
10609
- const Transition = transition;
10610
- if (!container || !(show || Transition && !exited)) {
10771
+ if (!container) {
10611
10772
  return null;
10612
10773
  }
10613
10774
  const dialogProps = Object.assign({
@@ -10625,34 +10786,32 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
10625
10786
  role: 'document'
10626
10787
  })
10627
10788
  }));
10628
- if (Transition) {
10629
- dialog = /*#__PURE__*/(0,jsx_runtime.jsx)(Transition, {
10630
- appear: true,
10631
- unmountOnExit: true,
10632
- in: !!show,
10633
- onExit: onExit,
10634
- onExiting: onExiting,
10635
- onExited: handleHidden,
10636
- onEnter: onEnter,
10637
- onEntering: onEntering,
10638
- onEntered: onEntered,
10639
- children: dialog
10640
- });
10641
- }
10789
+ dialog = renderTransition(transition, runTransition, {
10790
+ unmountOnExit: true,
10791
+ mountOnEnter: true,
10792
+ appear: true,
10793
+ in: !!show,
10794
+ onExit,
10795
+ onExiting,
10796
+ onExited: handleHidden,
10797
+ onEnter,
10798
+ onEntering,
10799
+ onEntered,
10800
+ children: dialog
10801
+ });
10642
10802
  let backdropElement = null;
10643
10803
  if (backdrop) {
10644
- const BackdropTransition = backdropTransition;
10645
10804
  backdropElement = renderBackdrop({
10646
10805
  ref: modal.setBackdropRef,
10647
10806
  onClick: handleBackdropClick
10648
10807
  });
10649
- if (BackdropTransition) {
10650
- backdropElement = /*#__PURE__*/(0,jsx_runtime.jsx)(BackdropTransition, {
10651
- appear: true,
10652
- in: !!show,
10653
- children: backdropElement
10654
- });
10655
- }
10808
+ backdropElement = renderTransition(backdropTransition, runBackdropTransition, {
10809
+ in: !!show,
10810
+ appear: true,
10811
+ mountOnEnter: true,
10812
+ unmountOnExit: true,
10813
+ children: backdropElement
10814
+ });
10656
10815
  }
10657
10816
  return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
10658
10817
  children: /*#__PURE__*/external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().createPortal( /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
@@ -10877,14 +11036,10 @@ const AbstractModalHeader_propTypes = {
10877
11036
  */
10878
11037
  onHide: (prop_types_default()).func
10879
11038
  };
10880
- const AbstractModalHeader_defaultProps = {
10881
- closeLabel: 'Close',
10882
- closeButton: false
10883
- };
10884
11039
  const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
10885
- closeLabel,
11040
+ closeLabel = 'Close',
10886
11041
  closeVariant,
10887
- closeButton,
11042
+ closeButton = false,
10888
11043
  onHide,
10889
11044
  children,
10890
11045
  ...props
@@ -10903,17 +11058,16 @@ const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_com
10903
11058
  onClick: handleClick
10904
11059
  }, void 0, false, {
10905
11060
  fileName: AbstractModalHeader_jsxFileName,
10906
- lineNumber: 67,
11061
+ lineNumber: 69,
10907
11062
  columnNumber: 11
10908
11063
  }, undefined)]
10909
11064
  }, void 0, true, {
10910
11065
  fileName: AbstractModalHeader_jsxFileName,
10911
- lineNumber: 63,
11066
+ lineNumber: 65,
10912
11067
  columnNumber: 7
10913
11068
  }, undefined);
10914
11069
  });
10915
11070
  AbstractModalHeader.propTypes = AbstractModalHeader_propTypes;
10916
- AbstractModalHeader.defaultProps = AbstractModalHeader_defaultProps;
10917
11071
  /* harmony default export */ const src_AbstractModalHeader = (AbstractModalHeader);
10918
11072
  ;// CONCATENATED MODULE: ./src/ModalHeader.tsx
10919
11073
  var ModalHeader_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ModalHeader.tsx";
@@ -10949,29 +11103,28 @@ const ModalHeader_propTypes = {
10949
11103
  */
10950
11104
  onHide: (prop_types_default()).func
10951
11105
  };
10952
- const ModalHeader_defaultProps = {
10953
- closeLabel: 'Close',
10954
- closeButton: false
10955
- };
10956
11106
  const ModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
10957
11107
  bsPrefix,
10958
11108
  className,
11109
+ closeLabel = 'Close',
11110
+ closeButton = false,
10959
11111
  ...props
10960
11112
  }, ref) => {
10961
11113
  bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
10962
11114
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_AbstractModalHeader, {
10963
11115
  ref: ref,
10964
11116
  ...props,
10965
- className: classnames_default()(className, bsPrefix)
11117
+ className: classnames_default()(className, bsPrefix),
11118
+ closeLabel: closeLabel,
11119
+ closeButton: closeButton
10966
11120
  }, void 0, false, {
10967
11121
  fileName: ModalHeader_jsxFileName,
10968
- lineNumber: 55,
11122
+ lineNumber: 59,
10969
11123
  columnNumber: 7
10970
11124
  }, undefined);
10971
11125
  });
10972
11126
  ModalHeader.displayName = 'ModalHeader';
10973
11127
  ModalHeader.propTypes = ModalHeader_propTypes;
10974
- ModalHeader.defaultProps = ModalHeader_defaultProps;
10975
11128
  /* harmony default export */ const src_ModalHeader = (ModalHeader);
10976
11129
  ;// CONCATENATED MODULE: ./src/ModalTitle.tsx
10977
11130
 
@@ -11145,16 +11298,6 @@ const Modal_propTypes = {
11145
11298
  'aria-describedby': (prop_types_default()).string,
11146
11299
  'aria-label': (prop_types_default()).string
11147
11300
  };
11148
- const Modal_defaultProps = {
11149
- show: false,
11150
- backdrop: true,
11151
- keyboard: true,
11152
- autoFocus: true,
11153
- enforceFocus: true,
11154
- restoreFocus: true,
11155
- animation: true,
11156
- dialogAs: src_ModalDialog
11157
- };
11158
11301
 
11159
11302
  /* eslint-disable no-use-before-define, react/no-multi-comp */
11160
11303
  function DialogTransition(props) {
@@ -11163,7 +11306,7 @@ function DialogTransition(props) {
11163
11306
  timeout: null
11164
11307
  }, void 0, false, {
11165
11308
  fileName: Modal_jsxFileName,
11166
- lineNumber: 238,
11309
+ lineNumber: 227,
11167
11310
  columnNumber: 10
11168
11311
  }, this);
11169
11312
  }
@@ -11173,7 +11316,7 @@ function BackdropTransition(props) {
11173
11316
  timeout: null
11174
11317
  }, void 0, false, {
11175
11318
  fileName: Modal_jsxFileName,
11176
- lineNumber: 242,
11319
+ lineNumber: 231,
11177
11320
  columnNumber: 10
11178
11321
  }, this);
11179
11322
  }
@@ -11186,23 +11329,23 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11186
11329
  dialogClassName,
11187
11330
  contentClassName,
11188
11331
  children,
11189
- dialogAs: Dialog,
11332
+ dialogAs: Dialog = src_ModalDialog,
11190
11333
  'aria-labelledby': ariaLabelledby,
11191
11334
  'aria-describedby': ariaDescribedby,
11192
11335
  'aria-label': ariaLabel,
11193
11336
  /* BaseModal props */
11194
11337
 
11195
- show,
11196
- animation,
11197
- backdrop,
11198
- keyboard,
11338
+ show = false,
11339
+ animation = true,
11340
+ backdrop = true,
11341
+ keyboard = true,
11199
11342
  onEscapeKeyDown,
11200
11343
  onShow,
11201
11344
  onHide,
11202
11345
  container,
11203
- autoFocus,
11204
- enforceFocus,
11205
- restoreFocus,
11346
+ autoFocus = true,
11347
+ enforceFocus = true,
11348
+ restoreFocus = true,
11206
11349
  restoreFocusOptions,
11207
11350
  onEntered,
11208
11351
  onExit,
@@ -11327,7 +11470,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11327
11470
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
11328
11471
  }, void 0, false, {
11329
11472
  fileName: Modal_jsxFileName,
11330
- lineNumber: 437,
11473
+ lineNumber: 426,
11331
11474
  columnNumber: 11
11332
11475
  }, undefined), [animation, backdropClassName, bsPrefix]);
11333
11476
  const baseModalStyle = {
@@ -11356,12 +11499,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11356
11499
  children: children
11357
11500
  }, void 0, false, {
11358
11501
  fileName: Modal_jsxFileName,
11359
- lineNumber: 474,
11502
+ lineNumber: 463,
11360
11503
  columnNumber: 11
11361
11504
  }, undefined)
11362
11505
  }, void 0, false, {
11363
11506
  fileName: Modal_jsxFileName,
11364
- lineNumber: 456,
11507
+ lineNumber: 445,
11365
11508
  columnNumber: 9
11366
11509
  }, undefined);
11367
11510
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
@@ -11393,18 +11536,17 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
11393
11536
  renderDialog: renderDialog
11394
11537
  }, void 0, false, {
11395
11538
  fileName: Modal_jsxFileName,
11396
- lineNumber: 487,
11539
+ lineNumber: 476,
11397
11540
  columnNumber: 11
11398
11541
  }, undefined)
11399
11542
  }, void 0, false, {
11400
11543
  fileName: Modal_jsxFileName,
11401
- lineNumber: 486,
11544
+ lineNumber: 475,
11402
11545
  columnNumber: 9
11403
11546
  }, undefined);
11404
11547
  });
11405
11548
  Modal_Modal.displayName = 'Modal';
11406
11549
  Modal_Modal.propTypes = Modal_propTypes;
11407
- Modal_Modal.defaultProps = Modal_defaultProps;
11408
11550
  /* harmony default export */ const src_Modal = (Object.assign(Modal_Modal, {
11409
11551
  Body: ModalBody,
11410
11552
  Header: src_ModalHeader,
@@ -11458,37 +11600,36 @@ const NavLink_propTypes = {
11458
11600
  /** @default 'a' */
11459
11601
  as: (prop_types_default()).elementType
11460
11602
  };
11461
- const NavLink_defaultProps = {
11462
- disabled: false
11463
- };
11464
11603
  const NavLink = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
11465
11604
  bsPrefix,
11466
11605
  className,
11467
11606
  as: Component = esm_Anchor,
11468
11607
  active,
11469
11608
  eventKey,
11609
+ disabled = false,
11470
11610
  ...props
11471
11611
  }, ref) => {
11472
11612
  bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
11473
11613
  const [navItemProps, meta] = useNavItem({
11474
11614
  key: makeEventKey(eventKey, props.href),
11475
11615
  active,
11616
+ disabled,
11476
11617
  ...props
11477
11618
  });
11478
11619
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
11479
11620
  ...props,
11480
11621
  ...navItemProps,
11481
11622
  ref: ref,
11482
- className: classnames_default()(className, bsPrefix, props.disabled && 'disabled', meta.isActive && 'active')
11623
+ disabled: disabled,
11624
+ className: classnames_default()(className, bsPrefix, disabled && 'disabled', meta.isActive && 'active')
11483
11625
  }, void 0, false, {
11484
11626
  fileName: NavLink_jsxFileName,
11485
- lineNumber: 78,
11627
+ lineNumber: 76,
11486
11628
  columnNumber: 9
11487
11629
  }, undefined);
11488
11630
  });
11489
11631
  NavLink.displayName = 'NavLink';
11490
11632
  NavLink.propTypes = NavLink_propTypes;
11491
- NavLink.defaultProps = NavLink_defaultProps;
11492
11633
  /* harmony default export */ const src_NavLink = (NavLink);
11493
11634
  ;// CONCATENATED MODULE: ./src/Nav.tsx
11494
11635
  var Nav_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Nav.tsx";
@@ -11574,17 +11715,13 @@ const Nav_propTypes = {
11574
11715
  /** @private */
11575
11716
  onKeyDown: (prop_types_default()).func
11576
11717
  };
11577
- const Nav_defaultProps = {
11578
- justify: false,
11579
- fill: false
11580
- };
11581
11718
  const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
11582
11719
  const {
11583
11720
  as = 'div',
11584
11721
  bsPrefix: initialBsPrefix,
11585
11722
  variant,
11586
- fill,
11587
- justify,
11723
+ fill = false,
11724
+ justify = false,
11588
11725
  navbar,
11589
11726
  navbarScroll,
11590
11727
  className,
@@ -11623,13 +11760,12 @@ const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
11623
11760
  ...props
11624
11761
  }, void 0, false, {
11625
11762
  fileName: Nav_jsxFileName,
11626
- lineNumber: 148,
11763
+ lineNumber: 143,
11627
11764
  columnNumber: 5
11628
11765
  }, undefined);
11629
11766
  });
11630
11767
  Nav_Nav.displayName = 'Nav';
11631
11768
  Nav_Nav.propTypes = Nav_propTypes;
11632
- Nav_Nav.defaultProps = Nav_defaultProps;
11633
11769
  /* harmony default export */ const src_Nav = (Object.assign(Nav_Nav, {
11634
11770
  Item: src_NavItem,
11635
11771
  Link: src_NavLink
@@ -11738,14 +11874,11 @@ const NavbarToggle_propTypes = {
11738
11874
  children: (prop_types_default()).node,
11739
11875
  as: (prop_types_default()).elementType
11740
11876
  };
11741
- const NavbarToggle_defaultProps = {
11742
- label: 'Toggle navigation'
11743
- };
11744
11877
  const NavbarToggle = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
11745
11878
  bsPrefix,
11746
11879
  className,
11747
11880
  children,
11748
- label,
11881
+ label = 'Toggle navigation',
11749
11882
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
11750
11883
  as: Component = 'button',
11751
11884
  onClick,
@@ -11773,18 +11906,17 @@ const NavbarToggle = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
11773
11906
  className: `${bsPrefix}-icon`
11774
11907
  }, void 0, false, {
11775
11908
  fileName: NavbarToggle_jsxFileName,
11776
- lineNumber: 77,
11909
+ lineNumber: 73,
11777
11910
  columnNumber: 22
11778
11911
  }, undefined)
11779
11912
  }, void 0, false, {
11780
11913
  fileName: NavbarToggle_jsxFileName,
11781
- lineNumber: 70,
11914
+ lineNumber: 66,
11782
11915
  columnNumber: 7
11783
11916
  }, undefined);
11784
11917
  });
11785
11918
  NavbarToggle.displayName = 'NavbarToggle';
11786
11919
  NavbarToggle.propTypes = NavbarToggle_propTypes;
11787
- NavbarToggle.defaultProps = NavbarToggle_defaultProps;
11788
11920
  /* harmony default export */ const src_NavbarToggle = (NavbarToggle);
11789
11921
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMediaQuery.js
11790
11922
 
@@ -12020,12 +12152,6 @@ const OffcanvasToggling_propTypes = {
12020
12152
  */
12021
12153
  onExited: (prop_types_default()).func
12022
12154
  };
12023
- const OffcanvasToggling_defaultProps = {
12024
- in: false,
12025
- mountOnEnter: false,
12026
- unmountOnExit: false,
12027
- appear: false
12028
- };
12029
12155
  const transitionStyles = {
12030
12156
  [ENTERING]: 'show',
12031
12157
  [ENTERED]: 'show'
@@ -12034,12 +12160,20 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
12034
12160
  bsPrefix,
12035
12161
  className,
12036
12162
  children,
12163
+ in: inProp = false,
12164
+ mountOnEnter = false,
12165
+ unmountOnExit = false,
12166
+ appear = false,
12037
12167
  ...props
12038
12168
  }, ref) => {
12039
12169
  bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
12040
12170
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
12041
12171
  ref: ref,
12042
12172
  addEndListener: transitionEndListener,
12173
+ in: inProp,
12174
+ mountOnEnter: mountOnEnter,
12175
+ unmountOnExit: unmountOnExit,
12176
+ appear: appear,
12043
12177
  ...props,
12044
12178
  childRef: children.ref,
12045
12179
  children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
@@ -12048,12 +12182,11 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
12048
12182
  })
12049
12183
  }, void 0, false, {
12050
12184
  fileName: OffcanvasToggling_jsxFileName,
12051
- lineNumber: 102,
12052
- columnNumber: 5
12185
+ lineNumber: 108,
12186
+ columnNumber: 7
12053
12187
  }, undefined);
12054
12188
  });
12055
12189
  OffcanvasToggling.propTypes = OffcanvasToggling_propTypes;
12056
- OffcanvasToggling.defaultProps = OffcanvasToggling_defaultProps;
12057
12190
  OffcanvasToggling.displayName = 'OffcanvasToggling';
12058
12191
  /* harmony default export */ const src_OffcanvasToggling = (OffcanvasToggling);
12059
12192
  ;// CONCATENATED MODULE: ./src/OffcanvasHeader.tsx
@@ -12090,29 +12223,28 @@ const OffcanvasHeader_propTypes = {
12090
12223
  */
12091
12224
  onHide: (prop_types_default()).func
12092
12225
  };
12093
- const OffcanvasHeader_defaultProps = {
12094
- closeLabel: 'Close',
12095
- closeButton: false
12096
- };
12097
12226
  const OffcanvasHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
12098
12227
  bsPrefix,
12099
12228
  className,
12229
+ closeLabel = 'Close',
12230
+ closeButton = false,
12100
12231
  ...props
12101
12232
  }, ref) => {
12102
12233
  bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-header');
12103
12234
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_AbstractModalHeader, {
12104
12235
  ref: ref,
12105
12236
  ...props,
12106
- className: classnames_default()(className, bsPrefix)
12237
+ className: classnames_default()(className, bsPrefix),
12238
+ closeLabel: closeLabel,
12239
+ closeButton: closeButton
12107
12240
  }, void 0, false, {
12108
12241
  fileName: OffcanvasHeader_jsxFileName,
12109
- lineNumber: 55,
12242
+ lineNumber: 59,
12110
12243
  columnNumber: 7
12111
12244
  }, undefined);
12112
12245
  });
12113
12246
  OffcanvasHeader.displayName = 'OffcanvasHeader';
12114
12247
  OffcanvasHeader.propTypes = OffcanvasHeader_propTypes;
12115
- OffcanvasHeader.defaultProps = OffcanvasHeader_defaultProps;
12116
12248
  /* harmony default export */ const src_OffcanvasHeader = (OffcanvasHeader);
12117
12249
  ;// CONCATENATED MODULE: ./src/OffcanvasTitle.tsx
12118
12250
 
@@ -12251,23 +12383,12 @@ const Offcanvas_propTypes = {
12251
12383
  renderStaticNode: (prop_types_default()).bool,
12252
12384
  'aria-labelledby': (prop_types_default()).string
12253
12385
  };
12254
- const Offcanvas_defaultProps = {
12255
- show: false,
12256
- backdrop: true,
12257
- keyboard: true,
12258
- scroll: false,
12259
- autoFocus: true,
12260
- enforceFocus: true,
12261
- restoreFocus: true,
12262
- placement: 'start',
12263
- renderStaticNode: false
12264
- };
12265
12386
  function Offcanvas_DialogTransition(props) {
12266
12387
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, {
12267
12388
  ...props
12268
12389
  }, void 0, false, {
12269
12390
  fileName: Offcanvas_jsxFileName,
12270
- lineNumber: 203,
12391
+ lineNumber: 191,
12271
12392
  columnNumber: 10
12272
12393
  }, this);
12273
12394
  }
@@ -12276,7 +12397,7 @@ function Offcanvas_BackdropTransition(props) {
12276
12397
  ...props
12277
12398
  }, void 0, false, {
12278
12399
  fileName: Offcanvas_jsxFileName,
12279
- lineNumber: 207,
12400
+ lineNumber: 195,
12280
12401
  columnNumber: 10
12281
12402
  }, this);
12282
12403
  }
@@ -12285,21 +12406,21 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
12285
12406
  className,
12286
12407
  children,
12287
12408
  'aria-labelledby': ariaLabelledby,
12288
- placement,
12409
+ placement = 'start',
12289
12410
  responsive,
12290
12411
  /* BaseModal props */
12291
12412
 
12292
- show,
12293
- backdrop,
12294
- keyboard,
12295
- scroll,
12413
+ show = false,
12414
+ backdrop = true,
12415
+ keyboard = true,
12416
+ scroll = false,
12296
12417
  onEscapeKeyDown,
12297
12418
  onShow,
12298
12419
  onHide,
12299
12420
  container,
12300
- autoFocus,
12301
- enforceFocus,
12302
- restoreFocus,
12421
+ autoFocus = true,
12422
+ enforceFocus = true,
12423
+ restoreFocus = true,
12303
12424
  restoreFocusOptions,
12304
12425
  onEntered,
12305
12426
  onExit,
@@ -12309,7 +12430,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
12309
12430
  onExited,
12310
12431
  backdropClassName,
12311
12432
  manager: propsManager,
12312
- renderStaticNode,
12433
+ renderStaticNode = false,
12313
12434
  ...props
12314
12435
  }, ref) => {
12315
12436
  const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
@@ -12356,7 +12477,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
12356
12477
  className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
12357
12478
  }, void 0, false, {
12358
12479
  fileName: Offcanvas_jsxFileName,
12359
- lineNumber: 303,
12480
+ lineNumber: 291,
12360
12481
  columnNumber: 11
12361
12482
  }, undefined), [backdropClassName, bsPrefix]);
12362
12483
  const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
@@ -12367,7 +12488,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
12367
12488
  children: children
12368
12489
  }, void 0, false, {
12369
12490
  fileName: Offcanvas_jsxFileName,
12370
- lineNumber: 312,
12491
+ lineNumber: 300,
12371
12492
  columnNumber: 9
12372
12493
  }, undefined);
12373
12494
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
@@ -12399,19 +12520,18 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
12399
12520
  renderDialog: renderDialog
12400
12521
  }, void 0, false, {
12401
12522
  fileName: Offcanvas_jsxFileName,
12402
- lineNumber: 340,
12523
+ lineNumber: 328,
12403
12524
  columnNumber: 13
12404
12525
  }, undefined)
12405
12526
  }, void 0, false, {
12406
12527
  fileName: Offcanvas_jsxFileName,
12407
- lineNumber: 339,
12528
+ lineNumber: 327,
12408
12529
  columnNumber: 11
12409
12530
  }, undefined)]
12410
12531
  }, void 0, true);
12411
12532
  });
12412
12533
  Offcanvas.displayName = 'Offcanvas';
12413
12534
  Offcanvas.propTypes = Offcanvas_propTypes;
12414
- Offcanvas.defaultProps = Offcanvas_defaultProps;
12415
12535
  /* harmony default export */ const src_Offcanvas = (Object.assign(Offcanvas, {
12416
12536
  Body: OffcanvasBody,
12417
12537
  Header: src_OffcanvasHeader,
@@ -12473,7 +12593,7 @@ const Navbar_propTypes = {
12473
12593
  * The breakpoint, below which, the Navbar will collapse.
12474
12594
  * When `true` the Navbar will always be expanded regardless of screen size.
12475
12595
  */
12476
- expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]).isRequired,
12596
+ expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
12477
12597
  /**
12478
12598
  * A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
12479
12599
  * `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
@@ -12550,16 +12670,11 @@ const Navbar_propTypes = {
12550
12670
  */
12551
12671
  role: (prop_types_default()).string
12552
12672
  };
12553
- const Navbar_defaultProps = {
12554
- expand: true,
12555
- variant: 'light',
12556
- collapseOnSelect: false
12557
- };
12558
12673
  const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
12559
12674
  const {
12560
12675
  bsPrefix: initialBsPrefix,
12561
- expand,
12562
- variant,
12676
+ expand = true,
12677
+ variant = 'light',
12563
12678
  bg,
12564
12679
  fixed,
12565
12680
  sticky,
@@ -12569,7 +12684,7 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
12569
12684
  expanded,
12570
12685
  onToggle,
12571
12686
  onSelect,
12572
- collapseOnSelect,
12687
+ collapseOnSelect = false,
12573
12688
  ...controlledProps
12574
12689
  } = useUncontrolled(props, {
12575
12690
  expanded: 'onToggle'
@@ -12606,22 +12721,21 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
12606
12721
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
12607
12722
  }, void 0, false, {
12608
12723
  fileName: Navbar_jsxFileName,
12609
- lineNumber: 201,
12724
+ lineNumber: 195,
12610
12725
  columnNumber: 11
12611
12726
  }, undefined)
12612
12727
  }, void 0, false, {
12613
12728
  fileName: Navbar_jsxFileName,
12614
- lineNumber: 200,
12729
+ lineNumber: 194,
12615
12730
  columnNumber: 9
12616
12731
  }, undefined)
12617
12732
  }, void 0, false, {
12618
12733
  fileName: Navbar_jsxFileName,
12619
- lineNumber: 199,
12734
+ lineNumber: 193,
12620
12735
  columnNumber: 7
12621
12736
  }, undefined);
12622
12737
  });
12623
12738
  Navbar.propTypes = Navbar_propTypes;
12624
- Navbar.defaultProps = Navbar_defaultProps;
12625
12739
  Navbar.displayName = 'Navbar';
12626
12740
  /* harmony default export */ const src_Navbar = (Object.assign(Navbar, {
12627
12741
  Brand: src_NavbarBrand,
@@ -12735,9 +12849,8 @@ NavDropdown.propTypes = NavDropdown_propTypes;
12735
12849
 
12736
12850
 
12737
12851
 
12738
- const escapeKeyCode = 27;
12739
- const useRootClose_noop = () => {};
12740
12852
 
12853
+ const useRootClose_noop = () => {};
12741
12854
  /**
12742
12855
  * The `useRootClose` hook registers your callback on the document
12743
12856
  * when rendered. Powers the `<Overlay/>` component. This is used achieve modal
@@ -12760,15 +12873,16 @@ function useRootClose(ref, onRootClose, {
12760
12873
  clickTrigger
12761
12874
  });
12762
12875
  const handleKeyUp = useEventCallback(e => {
12763
- if (e.keyCode === escapeKeyCode) {
12876
+ if (isEscKey(e)) {
12764
12877
  onClose(e);
12765
12878
  }
12766
12879
  });
12767
12880
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
12768
12881
  if (disabled || ref == null) return undefined;
12769
- const doc = ownerDocument(getRefTarget(ref)); // Store the current event to avoid triggering handlers immediately
12770
- // https://github.com/facebook/react/issues/20074
12882
+ const doc = ownerDocument(getRefTarget(ref));
12771
12883
 
12884
+ // Store the current event to avoid triggering handlers immediately
12885
+ // https://github.com/facebook/react/issues/20074
12772
12886
  let currentEvent = (doc.defaultView || window).event;
12773
12887
  const removeKeyupListener = esm_listen(doc, 'keyup', e => {
12774
12888
  // skip if this event is the same as the one running when we added the handlers
@@ -12795,7 +12909,6 @@ function useRootClose(ref, onRootClose, {
12795
12909
 
12796
12910
 
12797
12911
 
12798
-
12799
12912
  /**
12800
12913
  * Built on top of `Popper.js`, the overlay component is
12801
12914
  * great for custom tooltip overlays.
@@ -12807,7 +12920,8 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12807
12920
  placement,
12808
12921
  containerPadding,
12809
12922
  popperConfig = {},
12810
- transition: Transition
12923
+ transition: Transition,
12924
+ runTransition
12811
12925
  } = props;
12812
12926
  const [rootElement, attachRef] = useCallbackRef();
12813
12927
  const [arrowElement, attachArrowRef] = useCallbackRef();
@@ -12824,19 +12938,20 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12824
12938
  arrowElement,
12825
12939
  popperConfig
12826
12940
  }));
12827
- if (props.show) {
12828
- if (exited) setExited(false);
12829
- } else if (!props.transition && !exited) {
12830
- setExited(true);
12941
+
12942
+ // TODO: I think this needs to be in an effect
12943
+ if (props.show && exited) {
12944
+ setExited(false);
12831
12945
  }
12832
12946
  const handleHidden = (...args) => {
12833
12947
  setExited(true);
12834
12948
  if (props.onExited) {
12835
12949
  props.onExited(...args);
12836
12950
  }
12837
- }; // Don't un-render the overlay while it's transitioning out.
12951
+ };
12838
12952
 
12839
- const mountOverlay = props.show || Transition && !exited;
12953
+ // Don't un-render the overlay while it's transitioning out.
12954
+ const mountOverlay = props.show || !exited;
12840
12955
  esm_useRootClose(rootElement, props.onHide, {
12841
12956
  disabled: !props.rootClose || props.rootCloseDisabled,
12842
12957
  clickTrigger: props.rootCloseEvent
@@ -12845,6 +12960,13 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12845
12960
  // Don't bother showing anything if we don't have to.
12846
12961
  return null;
12847
12962
  }
12963
+ const {
12964
+ onExit,
12965
+ onExiting,
12966
+ onEnter,
12967
+ onEntering,
12968
+ onEntered
12969
+ } = props;
12848
12970
  let child = props.children(Object.assign({}, popper.attributes.popper, {
12849
12971
  style: popper.styles.popper,
12850
12972
  ref: mergedRef
@@ -12857,26 +12979,19 @@ const Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12857
12979
  ref: attachArrowRef
12858
12980
  })
12859
12981
  });
12860
- if (Transition) {
12861
- const {
12862
- onExit,
12863
- onExiting,
12864
- onEnter,
12865
- onEntering,
12866
- onEntered
12867
- } = props;
12868
- child = /*#__PURE__*/(0,jsx_runtime.jsx)(Transition, {
12869
- in: props.show,
12870
- appear: true,
12871
- onExit: onExit,
12872
- onExiting: onExiting,
12873
- onExited: handleHidden,
12874
- onEnter: onEnter,
12875
- onEntering: onEntering,
12876
- onEntered: onEntered,
12877
- children: child
12878
- });
12879
- }
12982
+ child = renderTransition(Transition, runTransition, {
12983
+ in: !!props.show,
12984
+ appear: true,
12985
+ mountOnEnter: true,
12986
+ unmountOnExit: true,
12987
+ children: child,
12988
+ onExit,
12989
+ onExiting,
12990
+ onExited: handleHidden,
12991
+ onEnter,
12992
+ onEntering,
12993
+ onEntered
12994
+ });
12880
12995
  return container ? /*#__PURE__*/external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().createPortal(child, container) : null;
12881
12996
  });
12882
12997
  Overlay.displayName = 'Overlay';
@@ -12963,12 +13078,9 @@ const Popover_propTypes = {
12963
13078
  /** @private */
12964
13079
  show: (prop_types_default()).bool
12965
13080
  };
12966
- const Popover_defaultProps = {
12967
- placement: 'right'
12968
- };
12969
13081
  const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
12970
13082
  bsPrefix,
12971
- placement,
13083
+ placement = 'right',
12972
13084
  className,
12973
13085
  style,
12974
13086
  children,
@@ -13002,23 +13114,22 @@ const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
13002
13114
  ...arrowProps
13003
13115
  }, void 0, false, {
13004
13116
  fileName: Popover_jsxFileName,
13005
- lineNumber: 135,
13117
+ lineNumber: 131,
13006
13118
  columnNumber: 9
13007
13119
  }, undefined), body ? /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(PopoverBody, {
13008
13120
  children: children
13009
13121
  }, void 0, false, {
13010
13122
  fileName: Popover_jsxFileName,
13011
- lineNumber: 136,
13123
+ lineNumber: 132,
13012
13124
  columnNumber: 17
13013
13125
  }, undefined) : children]
13014
13126
  }, void 0, true, {
13015
13127
  fileName: Popover_jsxFileName,
13016
- lineNumber: 123,
13128
+ lineNumber: 119,
13017
13129
  columnNumber: 7
13018
13130
  }, undefined);
13019
13131
  });
13020
13132
  Popover.propTypes = Popover_propTypes;
13021
- Popover.defaultProps = Popover_defaultProps;
13022
13133
  /* harmony default export */ const src_Popover = (Object.assign(Popover, {
13023
13134
  Header: PopoverHeader,
13024
13135
  Body: PopoverBody,
@@ -13131,12 +13242,6 @@ const Overlay_propTypes = {
13131
13242
  */
13132
13243
  placement: prop_types_default().oneOf(['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'])
13133
13244
  };
13134
- const Overlay_defaultProps = {
13135
- transition: src_Fade,
13136
- rootClose: false,
13137
- show: false,
13138
- placement: 'top'
13139
- };
13140
13245
  function wrapRefs(props, arrowProps) {
13141
13246
  const {
13142
13247
  ref
@@ -13149,8 +13254,11 @@ function wrapRefs(props, arrowProps) {
13149
13254
  }
13150
13255
  const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13151
13256
  children: overlay,
13152
- transition,
13257
+ transition = src_Fade,
13153
13258
  popperConfig = {},
13259
+ rootClose = false,
13260
+ placement = 'top',
13261
+ show: outerShow = false,
13154
13262
  ...outerProps
13155
13263
  }, outerRef) => {
13156
13264
  const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
@@ -13168,10 +13276,10 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13168
13276
  }
13169
13277
  }, [firstRenderedState]);
13170
13278
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
13171
- if (!outerProps.show) {
13279
+ if (!outerShow) {
13172
13280
  setFirstRenderedState(null);
13173
13281
  }
13174
- }, [outerProps.show]);
13282
+ }, [outerShow]);
13175
13283
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, {
13176
13284
  ...outerProps,
13177
13285
  ref: mergedRef,
@@ -13181,6 +13289,9 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13181
13289
  onFirstUpdate: handleFirstUpdate
13182
13290
  },
13183
13291
  transition: actualTransition,
13292
+ rootClose: rootClose,
13293
+ placement: placement,
13294
+ show: outerShow,
13184
13295
  children: (overlayProps, {
13185
13296
  arrowProps,
13186
13297
  popper: popperObj,
@@ -13224,13 +13335,12 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
13224
13335
  }
13225
13336
  }, void 0, false, {
13226
13337
  fileName: Overlay_jsxFileName,
13227
- lineNumber: 193,
13338
+ lineNumber: 194,
13228
13339
  columnNumber: 7
13229
13340
  }, undefined);
13230
13341
  });
13231
13342
  Overlay_Overlay.displayName = 'Overlay';
13232
13343
  Overlay_Overlay.propTypes = Overlay_propTypes;
13233
- Overlay_Overlay.defaultProps = Overlay_defaultProps;
13234
13344
  /* harmony default export */ const src_Overlay = (Overlay_Overlay);
13235
13345
  ;// CONCATENATED MODULE: ./src/OverlayTrigger.tsx
13236
13346
  var OverlayTrigger_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OverlayTrigger.tsx";
@@ -13333,12 +13443,8 @@ const OverlayTrigger_propTypes = {
13333
13443
  */
13334
13444
  placement: prop_types_default().oneOf(['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'])
13335
13445
  };
13336
- const OverlayTrigger_defaultProps = {
13337
- defaultShow: false,
13338
- trigger: ['hover', 'focus']
13339
- };
13340
13446
  function OverlayTrigger({
13341
- trigger,
13447
+ trigger = ['hover', 'focus'],
13342
13448
  overlay,
13343
13449
  children,
13344
13450
  popperConfig = {},
@@ -13432,13 +13538,12 @@ function OverlayTrigger({
13432
13538
  children: overlay
13433
13539
  }, void 0, false, {
13434
13540
  fileName: OverlayTrigger_jsxFileName,
13435
- lineNumber: 302,
13541
+ lineNumber: 297,
13436
13542
  columnNumber: 7
13437
13543
  }, this)]
13438
13544
  }, void 0, true);
13439
13545
  }
13440
13546
  OverlayTrigger.propTypes = OverlayTrigger_propTypes;
13441
- OverlayTrigger.defaultProps = OverlayTrigger_defaultProps;
13442
13547
  /* harmony default export */ const src_OverlayTrigger = (OverlayTrigger);
13443
13548
  ;// CONCATENATED MODULE: ./src/PageItem.tsx
13444
13549
  var PageItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/PageItem.tsx";
@@ -13460,17 +13565,12 @@ const PageItem_propTypes = {
13460
13565
  /** A callback function for when this component is clicked. */
13461
13566
  onClick: (prop_types_default()).func
13462
13567
  };
13463
- const PageItem_defaultProps = {
13464
- active: false,
13465
- disabled: false,
13466
- activeLabel: '(current)'
13467
- };
13468
13568
  const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13469
- active,
13470
- disabled,
13569
+ active = false,
13570
+ disabled = false,
13471
13571
  className,
13472
13572
  style,
13473
- activeLabel,
13573
+ activeLabel = '(current)',
13474
13574
  children,
13475
13575
  ...props
13476
13576
  }, ref) => {
@@ -13490,22 +13590,21 @@ const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
13490
13590
  children: activeLabel
13491
13591
  }, void 0, false, {
13492
13592
  fileName: PageItem_jsxFileName,
13493
- lineNumber: 65,
13593
+ lineNumber: 59,
13494
13594
  columnNumber: 15
13495
13595
  }, undefined)]
13496
13596
  }, void 0, true, {
13497
13597
  fileName: PageItem_jsxFileName,
13498
- lineNumber: 62,
13598
+ lineNumber: 56,
13499
13599
  columnNumber: 11
13500
13600
  }, undefined)
13501
13601
  }, void 0, false, {
13502
13602
  fileName: PageItem_jsxFileName,
13503
- lineNumber: 57,
13603
+ lineNumber: 51,
13504
13604
  columnNumber: 9
13505
13605
  }, undefined);
13506
13606
  });
13507
13607
  PageItem.propTypes = PageItem_propTypes;
13508
- PageItem.defaultProps = PageItem_defaultProps;
13509
13608
  PageItem.displayName = 'PageItem';
13510
13609
  /* harmony default export */ const src_PageItem = (PageItem);
13511
13610
  function createButton(name, defaultValue, label = name) {
@@ -13520,19 +13619,19 @@ function createButton(name, defaultValue, label = name) {
13520
13619
  children: children || defaultValue
13521
13620
  }, void 0, false, {
13522
13621
  fileName: PageItem_jsxFileName,
13523
- lineNumber: 83,
13622
+ lineNumber: 76,
13524
13623
  columnNumber: 9
13525
13624
  }, this), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
13526
13625
  className: "visually-hidden",
13527
13626
  children: label
13528
13627
  }, void 0, false, {
13529
13628
  fileName: PageItem_jsxFileName,
13530
- lineNumber: 84,
13629
+ lineNumber: 77,
13531
13630
  columnNumber: 9
13532
13631
  }, this)]
13533
13632
  }, void 0, true, {
13534
13633
  fileName: PageItem_jsxFileName,
13535
- lineNumber: 82,
13634
+ lineNumber: 75,
13536
13635
  columnNumber: 7
13537
13636
  }, this));
13538
13637
  Button.displayName = name;
@@ -13563,15 +13662,6 @@ const Pagination_propTypes = {
13563
13662
  */
13564
13663
  size: prop_types_default().oneOf(['sm', 'lg'])
13565
13664
  };
13566
-
13567
- /**
13568
- * @property {PageItem} Item
13569
- * @property {PageItem} First
13570
- * @property {PageItem} Prev
13571
- * @property {PageItem} Ellipsis
13572
- * @property {PageItem} Next
13573
- * @property {PageItem} Last
13574
- */
13575
13665
  const Pagination = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13576
13666
  bsPrefix,
13577
13667
  className,
@@ -13585,7 +13675,7 @@ const Pagination = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
13585
13675
  className: classnames_default()(className, decoratedBsPrefix, size && `${decoratedBsPrefix}-${size}`)
13586
13676
  }, void 0, false, {
13587
13677
  fileName: Pagination_jsxFileName,
13588
- lineNumber: 43,
13678
+ lineNumber: 35,
13589
13679
  columnNumber: 7
13590
13680
  }, undefined);
13591
13681
  });
@@ -13720,7 +13810,7 @@ var ProgressBar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootst
13720
13810
  const ROUND_PRECISION = 1000;
13721
13811
 
13722
13812
  /**
13723
- * Validate that children, if any, are instances of `<ProgressBar>`.
13813
+ * Validate that children, if any, are instances of `ProgressBar`.
13724
13814
  */
13725
13815
  function onlyProgressBar(props, propName, componentName) {
13726
13816
  const children = props[propName];
@@ -13802,14 +13892,6 @@ const ProgressBar_propTypes = {
13802
13892
  */
13803
13893
  isChild: (prop_types_default()).bool
13804
13894
  };
13805
- const ProgressBar_defaultProps = {
13806
- min: 0,
13807
- max: 100,
13808
- animated: false,
13809
- isChild: false,
13810
- visuallyHidden: false,
13811
- striped: false
13812
- };
13813
13895
  function getPercentage(now, min, max) {
13814
13896
  const percentage = (now - min) / (max - min) * 100;
13815
13897
  return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
@@ -13849,20 +13931,28 @@ function renderProgressBar({
13849
13931
  children: label
13850
13932
  }, void 0, false, {
13851
13933
  fileName: ProgressBar_jsxFileName,
13852
- lineNumber: 174,
13934
+ lineNumber: 165,
13853
13935
  columnNumber: 9
13854
13936
  }, this) : label
13855
13937
  }, void 0, false, {
13856
13938
  fileName: ProgressBar_jsxFileName,
13857
- lineNumber: 159,
13939
+ lineNumber: 150,
13858
13940
  columnNumber: 5
13859
13941
  }, this);
13860
13942
  }
13861
13943
  renderProgressBar.propTypes = ProgressBar_propTypes;
13862
13944
  const ProgressBar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
13863
- isChild,
13864
- ...props
13945
+ isChild = false,
13946
+ ...rest
13865
13947
  }, ref) => {
13948
+ const props = {
13949
+ min: 0,
13950
+ max: 100,
13951
+ animated: false,
13952
+ visuallyHidden: false,
13953
+ striped: false,
13954
+ ...rest
13955
+ };
13866
13956
  props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
13867
13957
  if (isChild) {
13868
13958
  return renderProgressBar(props, ref);
@@ -13906,7 +13996,6 @@ const ProgressBar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
13906
13996
  });
13907
13997
  ProgressBar.displayName = 'ProgressBar';
13908
13998
  ProgressBar.propTypes = ProgressBar_propTypes;
13909
- ProgressBar.defaultProps = ProgressBar_defaultProps;
13910
13999
  /* harmony default export */ const src_ProgressBar = (ProgressBar);
13911
14000
  ;// CONCATENATED MODULE: ./src/Ratio.tsx
13912
14001
  var Ratio_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Ratio.tsx";
@@ -13930,9 +14019,6 @@ const Ratio_propTypes = {
13930
14019
  */
13931
14020
  aspectRatio: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string])
13932
14021
  };
13933
- const Ratio_defaultProps = {
13934
- aspectRatio: '1x1'
13935
- };
13936
14022
  function toPercent(num) {
13937
14023
  if (num <= 0) return '100%';
13938
14024
  if (num < 1) return `${num * 100}%`;
@@ -13942,7 +14028,7 @@ const Ratio = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
13942
14028
  bsPrefix,
13943
14029
  className,
13944
14030
  children,
13945
- aspectRatio,
14031
+ aspectRatio = '1x1',
13946
14032
  style,
13947
14033
  ...props
13948
14034
  }, ref) => {
@@ -13961,12 +14047,11 @@ const Ratio = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
13961
14047
  children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.only(children)
13962
14048
  }, void 0, false, {
13963
14049
  fileName: Ratio_jsxFileName,
13964
- lineNumber: 51,
14050
+ lineNumber: 50,
13965
14051
  columnNumber: 7
13966
14052
  }, undefined);
13967
14053
  });
13968
14054
  Ratio.propTypes = Ratio_propTypes;
13969
- Ratio.defaultProps = Ratio_defaultProps;
13970
14055
  /* harmony default export */ const src_Ratio = (Ratio);
13971
14056
  ;// CONCATENATED MODULE: ./src/Row.tsx
13972
14057
  var Row_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Row.tsx";
@@ -14199,10 +14284,6 @@ const SplitButton_propTypes = {
14199
14284
  /** @ignore */
14200
14285
  size: (prop_types_default()).string
14201
14286
  };
14202
- const SplitButton_defaultProps = {
14203
- toggleLabel: 'Toggle dropdown',
14204
- type: 'button'
14205
- };
14206
14287
 
14207
14288
  /**
14208
14289
  * A convenience component for simple or general use split button dropdowns. Renders a
@@ -14220,8 +14301,8 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
14220
14301
  size,
14221
14302
  variant,
14222
14303
  title,
14223
- type,
14224
- toggleLabel,
14304
+ type = 'button',
14305
+ toggleLabel = 'Toggle dropdown',
14225
14306
  children,
14226
14307
  onClick,
14227
14308
  href,
@@ -14247,7 +14328,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
14247
14328
  children: title
14248
14329
  }, void 0, false, {
14249
14330
  fileName: SplitButton_jsxFileName,
14250
- lineNumber: 131,
14331
+ lineNumber: 126,
14251
14332
  columnNumber: 7
14252
14333
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
14253
14334
  split: true,
@@ -14261,12 +14342,12 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
14261
14342
  children: toggleLabel
14262
14343
  }, void 0, false, {
14263
14344
  fileName: SplitButton_jsxFileName,
14264
- lineNumber: 151,
14345
+ lineNumber: 146,
14265
14346
  columnNumber: 9
14266
14347
  }, undefined)
14267
14348
  }, void 0, false, {
14268
14349
  fileName: SplitButton_jsxFileName,
14269
- lineNumber: 143,
14350
+ lineNumber: 138,
14270
14351
  columnNumber: 7
14271
14352
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
14272
14353
  role: menuRole,
@@ -14276,16 +14357,15 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
14276
14357
  children: children
14277
14358
  }, void 0, false, {
14278
14359
  fileName: SplitButton_jsxFileName,
14279
- lineNumber: 154,
14360
+ lineNumber: 149,
14280
14361
  columnNumber: 7
14281
14362
  }, undefined)]
14282
14363
  }, void 0, true, {
14283
14364
  fileName: SplitButton_jsxFileName,
14284
- lineNumber: 130,
14365
+ lineNumber: 125,
14285
14366
  columnNumber: 5
14286
14367
  }, undefined));
14287
14368
  SplitButton.propTypes = SplitButton_propTypes;
14288
- SplitButton.defaultProps = SplitButton_defaultProps;
14289
14369
  SplitButton.displayName = 'SplitButton';
14290
14370
  /* harmony default export */ const src_SplitButton = (SplitButton);
14291
14371
  ;// CONCATENATED MODULE: ./src/SSRProvider.ts
@@ -14373,33 +14453,6 @@ const Stack = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
14373
14453
  Stack.displayName = 'Stack';
14374
14454
  Stack.propTypes = Stack_propTypes;
14375
14455
  /* harmony default export */ const src_Stack = (Stack);
14376
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/NoopTransition.js
14377
-
14378
- function NoopTransition({
14379
- children,
14380
- in: inProp,
14381
- mountOnEnter,
14382
- unmountOnExit
14383
- }) {
14384
- const hasEnteredRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(inProp);
14385
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
14386
- if (inProp) hasEnteredRef.current = true;
14387
- }, [inProp]);
14388
- if (inProp) return children; // not in
14389
- //
14390
- // if (!mountOnEnter && !unmountOnExit) {
14391
- // return children;
14392
- // }
14393
-
14394
- if (unmountOnExit) {
14395
- return null;
14396
- }
14397
- if (!hasEnteredRef.current && mountOnEnter) {
14398
- return null;
14399
- }
14400
- return children;
14401
- }
14402
- /* harmony default export */ const esm_NoopTransition = (NoopTransition);
14403
14456
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/TabPanel.js
14404
14457
  const TabPanel_excluded = ["active", "eventKey", "mountOnEnter", "transition", "unmountOnExit", "role", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"],
14405
14458
  _excluded2 = ["activeKey", "getControlledId", "getControllerId"],
@@ -14497,9 +14550,9 @@ const TabPanel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
14497
14550
  mountOnEnter,
14498
14551
  unmountOnExit,
14499
14552
  transition: Transition = esm_NoopTransition
14500
- }] = useTabPanel(props); // We provide an empty the TabContext so `<Nav>`s in `<TabPanel>`s don't
14553
+ }] = useTabPanel(props);
14554
+ // We provide an empty the TabContext so `<Nav>`s in `<TabPanel>`s don't
14501
14555
  // conflict with the top level one.
14502
-
14503
14556
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_TabContext.Provider, {
14504
14557
  value: null,
14505
14558
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(esm_SelectableContext.Provider, {
@@ -14998,11 +15051,6 @@ const Tabs_propTypes = {
14998
15051
  */
14999
15052
  justify: (prop_types_default()).bool
15000
15053
  };
15001
- const Tabs_defaultProps = {
15002
- variant: 'tabs',
15003
- mountOnEnter: false,
15004
- unmountOnExit: false
15005
- };
15006
15054
  function getDefaultActiveKey(children) {
15007
15055
  let defaultActiveKey;
15008
15056
  forEach(children, child => {
@@ -15038,12 +15086,12 @@ function renderTab(child) {
15038
15086
  children: title
15039
15087
  }, void 0, false, {
15040
15088
  fileName: Tabs_jsxFileName,
15041
- lineNumber: 122,
15089
+ lineNumber: 116,
15042
15090
  columnNumber: 7
15043
15091
  }, this)
15044
15092
  }, void 0, false, {
15045
15093
  fileName: Tabs_jsxFileName,
15046
- lineNumber: 121,
15094
+ lineNumber: 115,
15047
15095
  columnNumber: 5
15048
15096
  }, this);
15049
15097
  }
@@ -15052,8 +15100,9 @@ const Tabs_Tabs = props => {
15052
15100
  id,
15053
15101
  onSelect,
15054
15102
  transition,
15055
- mountOnEnter,
15056
- unmountOnExit,
15103
+ mountOnEnter = false,
15104
+ unmountOnExit = false,
15105
+ variant = 'tabs',
15057
15106
  children,
15058
15107
  activeKey = getDefaultActiveKey(children),
15059
15108
  ...controlledProps
@@ -15071,10 +15120,11 @@ const Tabs_Tabs = props => {
15071
15120
  ...controlledProps,
15072
15121
  role: "tablist",
15073
15122
  as: "ul",
15123
+ variant: variant,
15074
15124
  children: map(children, renderTab)
15075
15125
  }, void 0, false, {
15076
15126
  fileName: Tabs_jsxFileName,
15077
- lineNumber: 160,
15127
+ lineNumber: 155,
15078
15128
  columnNumber: 7
15079
15129
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
15080
15130
  children: map(children, child => {
@@ -15089,23 +15139,22 @@ const Tabs_Tabs = props => {
15089
15139
  ...childProps
15090
15140
  }, void 0, false, {
15091
15141
  fileName: Tabs_jsxFileName,
15092
- lineNumber: 173,
15142
+ lineNumber: 168,
15093
15143
  columnNumber: 18
15094
15144
  }, undefined);
15095
15145
  })
15096
15146
  }, void 0, false, {
15097
15147
  fileName: Tabs_jsxFileName,
15098
- lineNumber: 164,
15148
+ lineNumber: 159,
15099
15149
  columnNumber: 7
15100
15150
  }, undefined)]
15101
15151
  }, void 0, true, {
15102
15152
  fileName: Tabs_jsxFileName,
15103
- lineNumber: 152,
15153
+ lineNumber: 147,
15104
15154
  columnNumber: 5
15105
15155
  }, undefined);
15106
15156
  };
15107
15157
  Tabs_Tabs.propTypes = Tabs_propTypes;
15108
- Tabs_Tabs.defaultProps = Tabs_defaultProps;
15109
15158
  Tabs_Tabs.displayName = 'Tabs';
15110
15159
  /* harmony default export */ const src_Tabs = (Tabs_Tabs);
15111
15160
  ;// CONCATENATED MODULE: ./src/ToastFade.tsx
@@ -15164,15 +15213,11 @@ const ToastHeader_propTypes = {
15164
15213
  */
15165
15214
  closeButton: (prop_types_default()).bool
15166
15215
  };
15167
- const ToastHeader_defaultProps = {
15168
- closeLabel: 'Close',
15169
- closeButton: true
15170
- };
15171
15216
  const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
15172
15217
  bsPrefix,
15173
- closeLabel,
15218
+ closeLabel = 'Close',
15174
15219
  closeVariant,
15175
- closeButton,
15220
+ closeButton = true,
15176
15221
  className,
15177
15222
  children,
15178
15223
  ...props
@@ -15193,18 +15238,17 @@ const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
15193
15238
  "data-dismiss": "toast"
15194
15239
  }, void 0, false, {
15195
15240
  fileName: ToastHeader_jsxFileName,
15196
- lineNumber: 72,
15241
+ lineNumber: 67,
15197
15242
  columnNumber: 11
15198
15243
  }, undefined)]
15199
15244
  }, void 0, true, {
15200
15245
  fileName: ToastHeader_jsxFileName,
15201
- lineNumber: 68,
15246
+ lineNumber: 63,
15202
15247
  columnNumber: 7
15203
15248
  }, undefined);
15204
15249
  });
15205
15250
  ToastHeader.displayName = 'ToastHeader';
15206
15251
  ToastHeader.propTypes = ToastHeader_propTypes;
15207
- ToastHeader.defaultProps = ToastHeader_defaultProps;
15208
15252
  /* harmony default export */ const src_ToastHeader = (ToastHeader);
15209
15253
  ;// CONCATENATED MODULE: ./src/ToastBody.tsx
15210
15254
 
@@ -15347,9 +15391,7 @@ const ToastContainer_propTypes = {
15347
15391
  */
15348
15392
  position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end']),
15349
15393
  /**
15350
- * By default the container is rendered with `position-absolute` utility class. Provide a string to use other `position-*` utility classes, or an empty string to remove it.
15351
- *
15352
- * @default 'absolute'
15394
+ * Specify the positioning method for the container.
15353
15395
  */
15354
15396
  containerPosition: (prop_types_default()).string
15355
15397
  };
@@ -15367,7 +15409,7 @@ const positionClasses = {
15367
15409
  const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
15368
15410
  bsPrefix,
15369
15411
  position,
15370
- containerPosition = 'absolute',
15412
+ containerPosition,
15371
15413
  className,
15372
15414
  // Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
15373
15415
  as: Component = 'div',
@@ -15377,10 +15419,10 @@ const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
15377
15419
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
15378
15420
  ref: ref,
15379
15421
  ...props,
15380
- className: classnames_default()(bsPrefix, position && [containerPosition ? `position-${containerPosition}` : null, positionClasses[position]], className)
15422
+ className: classnames_default()(bsPrefix, position && positionClasses[position], containerPosition && `position-${containerPosition}`, className)
15381
15423
  }, void 0, false, {
15382
15424
  fileName: ToastContainer_jsxFileName,
15383
- lineNumber: 85,
15425
+ lineNumber: 83,
15384
15426
  columnNumber: 7
15385
15427
  }, undefined);
15386
15428
  });
@@ -15533,17 +15575,14 @@ const ToggleButtonGroup_propTypes = {
15533
15575
  /** Make the set of Buttons appear vertically stacked. */
15534
15576
  vertical: (prop_types_default()).bool
15535
15577
  };
15536
- const ToggleButtonGroup_defaultProps = {
15537
- type: 'radio',
15538
- vertical: false
15539
- };
15540
15578
  const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
15541
15579
  const {
15542
15580
  children,
15543
- type,
15581
+ type = 'radio',
15544
15582
  name,
15545
15583
  value,
15546
15584
  onChange,
15585
+ vertical = false,
15547
15586
  ...controlledProps
15548
15587
  } = useUncontrolled(props, {
15549
15588
  value: 'onChange'
@@ -15569,6 +15608,7 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
15569
15608
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ButtonGroup, {
15570
15609
  ...controlledProps,
15571
15610
  ref: ref,
15611
+ vertical: vertical,
15572
15612
  children: map(children, child => {
15573
15613
  const values = getValues();
15574
15614
  const {
@@ -15585,12 +15625,11 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
15585
15625
  })
15586
15626
  }, void 0, false, {
15587
15627
  fileName: ToggleButtonGroup_jsxFileName,
15588
- lineNumber: 123,
15628
+ lineNumber: 125,
15589
15629
  columnNumber: 5
15590
15630
  }, undefined);
15591
15631
  });
15592
15632
  ToggleButtonGroup.propTypes = ToggleButtonGroup_propTypes;
15593
- ToggleButtonGroup.defaultProps = ToggleButtonGroup_defaultProps;
15594
15633
  /* harmony default export */ const src_ToggleButtonGroup = (Object.assign(ToggleButtonGroup, {
15595
15634
  Button: src_ToggleButton
15596
15635
  }));
@@ -15640,12 +15679,9 @@ const Tooltip_propTypes = {
15640
15679
  /** @private */
15641
15680
  show: (prop_types_default()).any
15642
15681
  };
15643
- const Tooltip_defaultProps = {
15644
- placement: 'right'
15645
- };
15646
15682
  const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
15647
15683
  bsPrefix,
15648
- placement,
15684
+ placement = 'right',
15649
15685
  className,
15650
15686
  style,
15651
15687
  children,
@@ -15678,24 +15714,23 @@ const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
15678
15714
  ...arrowProps
15679
15715
  }, void 0, false, {
15680
15716
  fileName: Tooltip_jsxFileName,
15681
- lineNumber: 123,
15717
+ lineNumber: 119,
15682
15718
  columnNumber: 9
15683
15719
  }, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
15684
15720
  className: `${bsPrefix}-inner`,
15685
15721
  children: children
15686
15722
  }, void 0, false, {
15687
15723
  fileName: Tooltip_jsxFileName,
15688
- lineNumber: 124,
15724
+ lineNumber: 120,
15689
15725
  columnNumber: 9
15690
15726
  }, undefined)]
15691
15727
  }, void 0, true, {
15692
15728
  fileName: Tooltip_jsxFileName,
15693
- lineNumber: 115,
15729
+ lineNumber: 111,
15694
15730
  columnNumber: 7
15695
15731
  }, undefined);
15696
15732
  });
15697
15733
  Tooltip.propTypes = Tooltip_propTypes;
15698
- Tooltip.defaultProps = Tooltip_defaultProps;
15699
15734
  Tooltip.displayName = 'Tooltip';
15700
15735
  /* harmony default export */ const src_Tooltip = (Tooltip);
15701
15736
  ;// CONCATENATED MODULE: ./src/index.tsx