react-bootstrap 2.7.1 → 2.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/AbstractModalHeader.js +2 -7
- package/cjs/Alert.js +4 -11
- package/cjs/Badge.js +2 -7
- package/cjs/Breadcrumb.js +2 -7
- package/cjs/BreadcrumbItem.js +2 -7
- package/cjs/Button.js +6 -9
- package/cjs/ButtonGroup.js +3 -6
- package/cjs/ButtonToolbar.js +3 -5
- package/cjs/Card.js +1 -5
- package/cjs/Carousel.js +28 -40
- package/cjs/CloseButton.js +2 -4
- package/cjs/Collapse.js +11 -12
- package/cjs/Container.js +1 -5
- package/cjs/Dropdown.js +3 -10
- package/cjs/DropdownMenu.js +1 -5
- package/cjs/Fade.js +12 -11
- package/cjs/FigureImage.js +2 -4
- package/cjs/Form.d.ts +1 -1
- package/cjs/FormLabel.js +2 -7
- package/cjs/Image.js +4 -11
- package/cjs/Modal.js +9 -21
- package/cjs/ModalHeader.js +5 -6
- package/cjs/Nav.js +2 -7
- package/cjs/NavLink.js +4 -5
- package/cjs/Navbar.js +3 -9
- package/cjs/NavbarToggle.js +1 -5
- package/cjs/Offcanvas.js +9 -21
- package/cjs/OffcanvasHeader.js +5 -6
- package/cjs/OffcanvasToggling.js +8 -7
- package/cjs/Overlay.js +9 -10
- package/cjs/OverlayTrigger.d.ts +0 -4
- package/cjs/OverlayTrigger.js +1 -6
- package/cjs/PageItem.js +3 -9
- package/cjs/Popover.js +3 -7
- package/cjs/ProgressBar.js +10 -11
- package/cjs/Ratio.js +1 -5
- package/cjs/SplitButton.js +2 -7
- package/cjs/Tabs.d.ts +0 -5
- package/cjs/Tabs.js +4 -8
- package/cjs/ToastContainer.js +2 -2
- package/cjs/ToastHeader.js +2 -7
- package/cjs/ToggleButtonGroup.js +3 -6
- package/cjs/Tooltip.js +3 -7
- package/cjs/createWithBsPrefix.js +5 -2
- package/dist/react-bootstrap.js +299 -461
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AbstractModalHeader.js +2 -7
- package/esm/Alert.js +4 -11
- package/esm/Badge.js +2 -7
- package/esm/Breadcrumb.js +2 -7
- package/esm/BreadcrumbItem.js +2 -7
- package/esm/Button.js +6 -9
- package/esm/ButtonGroup.js +3 -6
- package/esm/ButtonToolbar.js +3 -5
- package/esm/Card.js +1 -5
- package/esm/Carousel.js +28 -40
- package/esm/CloseButton.js +2 -4
- package/esm/Collapse.js +11 -11
- package/esm/Container.js +1 -5
- package/esm/Dropdown.js +3 -10
- package/esm/DropdownMenu.js +1 -5
- package/esm/Fade.js +12 -11
- package/esm/FigureImage.js +2 -4
- package/esm/Form.d.ts +1 -1
- package/esm/FormLabel.js +2 -7
- package/esm/Image.js +4 -11
- package/esm/Modal.js +9 -21
- package/esm/ModalHeader.js +5 -6
- package/esm/Nav.js +2 -7
- package/esm/NavLink.js +4 -5
- package/esm/Navbar.js +3 -9
- package/esm/NavbarToggle.js +1 -5
- package/esm/Offcanvas.js +9 -21
- package/esm/OffcanvasHeader.js +5 -6
- package/esm/OffcanvasToggling.js +8 -7
- package/esm/Overlay.js +9 -10
- package/esm/OverlayTrigger.d.ts +0 -4
- package/esm/OverlayTrigger.js +1 -6
- package/esm/PageItem.js +3 -9
- package/esm/Popover.js +3 -7
- package/esm/ProgressBar.js +10 -11
- package/esm/Ratio.js +1 -5
- package/esm/SplitButton.js +2 -7
- package/esm/Tabs.d.ts +0 -5
- package/esm/Tabs.js +4 -8
- package/esm/ToastContainer.js +2 -2
- package/esm/ToastHeader.js +2 -7
- package/esm/ToggleButtonGroup.js +3 -6
- package/esm/Tooltip.js +3 -7
- package/esm/createWithBsPrefix.js +5 -2
- package/package.json +1 -1
package/dist/react-bootstrap.js
CHANGED
|
@@ -2381,14 +2381,6 @@ const propTypes = {
|
|
|
2381
2381
|
*/
|
|
2382
2382
|
children: (prop_types_default()).element.isRequired
|
|
2383
2383
|
};
|
|
2384
|
-
const defaultProps = {
|
|
2385
|
-
in: false,
|
|
2386
|
-
timeout: 300,
|
|
2387
|
-
mountOnEnter: false,
|
|
2388
|
-
unmountOnExit: false,
|
|
2389
|
-
appear: false,
|
|
2390
|
-
getDimensionValue: getDefaultDimensionValue
|
|
2391
|
-
};
|
|
2392
2384
|
const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(({
|
|
2393
2385
|
onEnter,
|
|
2394
2386
|
onEntering,
|
|
@@ -2398,6 +2390,11 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
2398
2390
|
className,
|
|
2399
2391
|
children,
|
|
2400
2392
|
dimension = 'height',
|
|
2393
|
+
in: inProp = false,
|
|
2394
|
+
timeout = 300,
|
|
2395
|
+
mountOnEnter = false,
|
|
2396
|
+
unmountOnExit = false,
|
|
2397
|
+
appear = false,
|
|
2401
2398
|
getDimensionValue = getDefaultDimensionValue,
|
|
2402
2399
|
...props
|
|
2403
2400
|
}, ref) => {
|
|
@@ -2428,28 +2425,31 @@ const Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
2428
2425
|
ref: ref,
|
|
2429
2426
|
addEndListener: transitionEndListener,
|
|
2430
2427
|
...props,
|
|
2431
|
-
"aria-expanded": props.role ?
|
|
2428
|
+
"aria-expanded": props.role ? inProp : null,
|
|
2432
2429
|
onEnter: handleEnter,
|
|
2433
2430
|
onEntering: handleEntering,
|
|
2434
2431
|
onEntered: handleEntered,
|
|
2435
2432
|
onExit: handleExit,
|
|
2436
2433
|
onExiting: handleExiting,
|
|
2437
2434
|
childRef: children.ref,
|
|
2435
|
+
in: inProp,
|
|
2436
|
+
timeout: timeout,
|
|
2437
|
+
mountOnEnter: mountOnEnter,
|
|
2438
|
+
unmountOnExit: unmountOnExit,
|
|
2439
|
+
appear: appear,
|
|
2438
2440
|
children: (state, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
|
|
2439
2441
|
...innerProps,
|
|
2440
2442
|
className: classnames_default()(className, children.props.className, collapseStyles[state], computedDimension === 'width' && 'collapse-horizontal')
|
|
2441
2443
|
})
|
|
2442
2444
|
}, void 0, false, {
|
|
2443
2445
|
fileName: Collapse_jsxFileName,
|
|
2444
|
-
lineNumber:
|
|
2446
|
+
lineNumber: 222,
|
|
2445
2447
|
columnNumber: 7
|
|
2446
2448
|
}, undefined);
|
|
2447
2449
|
});
|
|
2448
2450
|
|
|
2449
2451
|
// @ts-ignore
|
|
2450
2452
|
Collapse.propTypes = propTypes;
|
|
2451
|
-
// @ts-ignore
|
|
2452
|
-
Collapse.defaultProps = defaultProps;
|
|
2453
2453
|
/* harmony default export */ const src_Collapse = (Collapse);
|
|
2454
2454
|
;// CONCATENATED MODULE: ./src/AccordionContext.ts
|
|
2455
2455
|
|
|
@@ -3578,13 +3578,6 @@ const Fade_propTypes = {
|
|
|
3578
3578
|
*/
|
|
3579
3579
|
transitionClasses: (prop_types_default()).object
|
|
3580
3580
|
};
|
|
3581
|
-
const Fade_defaultProps = {
|
|
3582
|
-
in: false,
|
|
3583
|
-
timeout: 300,
|
|
3584
|
-
mountOnEnter: false,
|
|
3585
|
-
unmountOnExit: false,
|
|
3586
|
-
appear: false
|
|
3587
|
-
};
|
|
3588
3581
|
const fadeStyles = {
|
|
3589
3582
|
[ENTERING]: 'show',
|
|
3590
3583
|
[ENTERED]: 'show'
|
|
@@ -3593,12 +3586,21 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
3593
3586
|
className,
|
|
3594
3587
|
children,
|
|
3595
3588
|
transitionClasses = {},
|
|
3596
|
-
|
|
3589
|
+
onEnter,
|
|
3590
|
+
...rest
|
|
3597
3591
|
}, ref) => {
|
|
3592
|
+
const props = {
|
|
3593
|
+
in: false,
|
|
3594
|
+
timeout: 300,
|
|
3595
|
+
mountOnEnter: false,
|
|
3596
|
+
unmountOnExit: false,
|
|
3597
|
+
appear: false,
|
|
3598
|
+
...rest
|
|
3599
|
+
};
|
|
3598
3600
|
const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((node, isAppearing) => {
|
|
3599
3601
|
triggerBrowserReflow(node);
|
|
3600
|
-
|
|
3601
|
-
}, [
|
|
3602
|
+
onEnter == null ? void 0 : onEnter(node, isAppearing);
|
|
3603
|
+
}, [onEnter]);
|
|
3602
3604
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
3603
3605
|
ref: ref,
|
|
3604
3606
|
addEndListener: transitionEndListener,
|
|
@@ -3611,12 +3613,11 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
3611
3613
|
})
|
|
3612
3614
|
}, void 0, false, {
|
|
3613
3615
|
fileName: Fade_jsxFileName,
|
|
3614
|
-
lineNumber:
|
|
3616
|
+
lineNumber: 117,
|
|
3615
3617
|
columnNumber: 7
|
|
3616
3618
|
}, undefined);
|
|
3617
3619
|
});
|
|
3618
3620
|
Fade.propTypes = Fade_propTypes;
|
|
3619
|
-
Fade.defaultProps = Fade_defaultProps;
|
|
3620
3621
|
Fade.displayName = 'Fade';
|
|
3621
3622
|
/* harmony default export */ const src_Fade = (Fade);
|
|
3622
3623
|
;// CONCATENATED MODULE: ./src/CloseButton.tsx
|
|
@@ -3637,26 +3638,24 @@ const CloseButton_propTypes = {
|
|
|
3637
3638
|
*/
|
|
3638
3639
|
variant: prop_types_default().oneOf(['white'])
|
|
3639
3640
|
};
|
|
3640
|
-
const CloseButton_defaultProps = {
|
|
3641
|
-
'aria-label': 'Close'
|
|
3642
|
-
};
|
|
3643
3641
|
const CloseButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
3644
3642
|
className,
|
|
3645
3643
|
variant,
|
|
3644
|
+
'aria-label': ariaLabel = 'Close',
|
|
3646
3645
|
...props
|
|
3647
3646
|
}, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("button", {
|
|
3648
3647
|
ref: ref,
|
|
3649
3648
|
type: "button",
|
|
3650
3649
|
className: classnames_default()('btn-close', variant && `btn-close-${variant}`, className),
|
|
3650
|
+
"aria-label": ariaLabel,
|
|
3651
3651
|
...props
|
|
3652
3652
|
}, void 0, false, {
|
|
3653
3653
|
fileName: CloseButton_jsxFileName,
|
|
3654
|
-
lineNumber:
|
|
3654
|
+
lineNumber: 32,
|
|
3655
3655
|
columnNumber: 5
|
|
3656
3656
|
}, undefined));
|
|
3657
3657
|
CloseButton.displayName = 'CloseButton';
|
|
3658
3658
|
CloseButton.propTypes = CloseButton_propTypes;
|
|
3659
|
-
CloseButton.defaultProps = CloseButton_defaultProps;
|
|
3660
3659
|
/* harmony default export */ const src_CloseButton = (CloseButton);
|
|
3661
3660
|
;// CONCATENATED MODULE: ./src/divWithClassName.tsx
|
|
3662
3661
|
var divWithClassName_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/divWithClassName.tsx";
|
|
@@ -3699,18 +3698,21 @@ function createWithBsPrefix(prefix, {
|
|
|
3699
3698
|
as: Tag = Component || 'div',
|
|
3700
3699
|
...props
|
|
3701
3700
|
}, ref) => {
|
|
3701
|
+
const componentProps = {
|
|
3702
|
+
...defaultProps,
|
|
3703
|
+
...props
|
|
3704
|
+
};
|
|
3702
3705
|
const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
3703
3706
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Tag, {
|
|
3704
3707
|
ref: ref,
|
|
3705
3708
|
className: classnames_default()(className, resolvedPrefix),
|
|
3706
|
-
...
|
|
3709
|
+
...componentProps
|
|
3707
3710
|
}, void 0, false, {
|
|
3708
3711
|
fileName: createWithBsPrefix_jsxFileName,
|
|
3709
|
-
lineNumber:
|
|
3712
|
+
lineNumber: 38,
|
|
3710
3713
|
columnNumber: 9
|
|
3711
3714
|
}, this);
|
|
3712
3715
|
});
|
|
3713
|
-
BsComponent.defaultProps = defaultProps;
|
|
3714
3716
|
BsComponent.displayName = displayName;
|
|
3715
3717
|
return BsComponent;
|
|
3716
3718
|
}
|
|
@@ -3780,24 +3782,18 @@ const Alert_propTypes = {
|
|
|
3780
3782
|
*/
|
|
3781
3783
|
transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.nm])
|
|
3782
3784
|
};
|
|
3783
|
-
const Alert_defaultProps = {
|
|
3784
|
-
variant: 'primary',
|
|
3785
|
-
show: true,
|
|
3786
|
-
transition: src_Fade,
|
|
3787
|
-
closeLabel: 'Close alert'
|
|
3788
|
-
};
|
|
3789
3785
|
const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
|
|
3790
3786
|
const {
|
|
3791
3787
|
bsPrefix,
|
|
3792
|
-
show,
|
|
3793
|
-
closeLabel,
|
|
3788
|
+
show = true,
|
|
3789
|
+
closeLabel = 'Close alert',
|
|
3794
3790
|
closeVariant,
|
|
3795
3791
|
className,
|
|
3796
3792
|
children,
|
|
3797
|
-
variant,
|
|
3793
|
+
variant = 'primary',
|
|
3798
3794
|
onClose,
|
|
3799
3795
|
dismissible,
|
|
3800
|
-
transition,
|
|
3796
|
+
transition = src_Fade,
|
|
3801
3797
|
...props
|
|
3802
3798
|
} = useUncontrolled(uncontrolledProps, {
|
|
3803
3799
|
show: 'onClose'
|
|
@@ -3820,12 +3816,12 @@ const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
3820
3816
|
variant: closeVariant
|
|
3821
3817
|
}, void 0, false, {
|
|
3822
3818
|
fileName: Alert_jsxFileName,
|
|
3823
|
-
lineNumber:
|
|
3819
|
+
lineNumber: 127,
|
|
3824
3820
|
columnNumber: 11
|
|
3825
3821
|
}, undefined), children]
|
|
3826
3822
|
}, void 0, true, {
|
|
3827
3823
|
fileName: Alert_jsxFileName,
|
|
3828
|
-
lineNumber:
|
|
3824
|
+
lineNumber: 115,
|
|
3829
3825
|
columnNumber: 7
|
|
3830
3826
|
}, undefined);
|
|
3831
3827
|
if (!Transition) return show ? alert : null;
|
|
@@ -3837,12 +3833,11 @@ const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
3837
3833
|
children: alert
|
|
3838
3834
|
}, void 0, false, {
|
|
3839
3835
|
fileName: Alert_jsxFileName,
|
|
3840
|
-
lineNumber:
|
|
3836
|
+
lineNumber: 140,
|
|
3841
3837
|
columnNumber: 7
|
|
3842
3838
|
}, undefined);
|
|
3843
3839
|
});
|
|
3844
3840
|
Alert.displayName = 'Alert';
|
|
3845
|
-
Alert.defaultProps = Alert_defaultProps;
|
|
3846
3841
|
Alert.propTypes = Alert_propTypes;
|
|
3847
3842
|
/* harmony default export */ const src_Alert = (Object.assign(Alert, {
|
|
3848
3843
|
Link: AlertLink,
|
|
@@ -3881,14 +3876,10 @@ const Badge_propTypes = {
|
|
|
3881
3876
|
/** @default span */
|
|
3882
3877
|
as: (prop_types_default()).elementType
|
|
3883
3878
|
};
|
|
3884
|
-
const Badge_defaultProps = {
|
|
3885
|
-
bg: 'primary',
|
|
3886
|
-
pill: false
|
|
3887
|
-
};
|
|
3888
3879
|
const Badge = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
3889
3880
|
bsPrefix,
|
|
3890
|
-
bg,
|
|
3891
|
-
pill,
|
|
3881
|
+
bg = 'primary',
|
|
3882
|
+
pill = false,
|
|
3892
3883
|
text,
|
|
3893
3884
|
className,
|
|
3894
3885
|
as: Component = 'span',
|
|
@@ -3901,13 +3892,12 @@ const Badge = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
3901
3892
|
className: classnames_default()(className, prefix, pill && `rounded-pill`, text && `text-${text}`, bg && `bg-${bg}`)
|
|
3902
3893
|
}, void 0, false, {
|
|
3903
3894
|
fileName: Badge_jsxFileName,
|
|
3904
|
-
lineNumber:
|
|
3895
|
+
lineNumber: 61,
|
|
3905
3896
|
columnNumber: 9
|
|
3906
3897
|
}, undefined);
|
|
3907
3898
|
});
|
|
3908
3899
|
Badge.displayName = 'Badge';
|
|
3909
3900
|
Badge.propTypes = Badge_propTypes;
|
|
3910
|
-
Badge.defaultProps = Badge_defaultProps;
|
|
3911
3901
|
/* harmony default export */ const src_Badge = (Badge);
|
|
3912
3902
|
;// CONCATENATED MODULE: ./src/BreadcrumbItem.tsx
|
|
3913
3903
|
var BreadcrumbItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/BreadcrumbItem.tsx";
|
|
@@ -3949,19 +3939,15 @@ const BreadcrumbItem_propTypes = {
|
|
|
3949
3939
|
linkProps: (prop_types_default()).object,
|
|
3950
3940
|
as: (prop_types_default()).elementType
|
|
3951
3941
|
};
|
|
3952
|
-
const BreadcrumbItem_defaultProps = {
|
|
3953
|
-
active: false,
|
|
3954
|
-
linkProps: {}
|
|
3955
|
-
};
|
|
3956
3942
|
const BreadcrumbItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
3957
3943
|
bsPrefix,
|
|
3958
|
-
active,
|
|
3944
|
+
active = false,
|
|
3959
3945
|
children,
|
|
3960
3946
|
className,
|
|
3961
3947
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
3962
3948
|
as: Component = 'li',
|
|
3963
3949
|
linkAs: LinkComponent = esm_Anchor,
|
|
3964
|
-
linkProps,
|
|
3950
|
+
linkProps = {},
|
|
3965
3951
|
href,
|
|
3966
3952
|
title,
|
|
3967
3953
|
target,
|
|
@@ -3983,18 +3969,17 @@ const BreadcrumbItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
|
|
|
3983
3969
|
children: children
|
|
3984
3970
|
}, void 0, false, {
|
|
3985
3971
|
fileName: BreadcrumbItem_jsxFileName,
|
|
3986
|
-
lineNumber:
|
|
3972
|
+
lineNumber: 86,
|
|
3987
3973
|
columnNumber: 11
|
|
3988
3974
|
}, undefined)
|
|
3989
3975
|
}, void 0, false, {
|
|
3990
3976
|
fileName: BreadcrumbItem_jsxFileName,
|
|
3991
|
-
lineNumber:
|
|
3977
|
+
lineNumber: 77,
|
|
3992
3978
|
columnNumber: 7
|
|
3993
3979
|
}, undefined);
|
|
3994
3980
|
});
|
|
3995
3981
|
BreadcrumbItem.displayName = 'BreadcrumbItem';
|
|
3996
3982
|
BreadcrumbItem.propTypes = BreadcrumbItem_propTypes;
|
|
3997
|
-
BreadcrumbItem.defaultProps = BreadcrumbItem_defaultProps;
|
|
3998
3983
|
/* harmony default export */ const src_BreadcrumbItem = (BreadcrumbItem);
|
|
3999
3984
|
;// CONCATENATED MODULE: ./src/Breadcrumb.tsx
|
|
4000
3985
|
var Breadcrumb_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Breadcrumb.tsx";
|
|
@@ -4020,16 +4005,12 @@ const Breadcrumb_propTypes = {
|
|
|
4020
4005
|
listProps: (prop_types_default()).object,
|
|
4021
4006
|
as: (prop_types_default()).elementType
|
|
4022
4007
|
};
|
|
4023
|
-
const Breadcrumb_defaultProps = {
|
|
4024
|
-
label: 'breadcrumb',
|
|
4025
|
-
listProps: {}
|
|
4026
|
-
};
|
|
4027
4008
|
const Breadcrumb = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4028
4009
|
bsPrefix,
|
|
4029
4010
|
className,
|
|
4030
|
-
listProps,
|
|
4011
|
+
listProps = {},
|
|
4031
4012
|
children,
|
|
4032
|
-
label,
|
|
4013
|
+
label = 'breadcrumb',
|
|
4033
4014
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
4034
4015
|
as: Component = 'nav',
|
|
4035
4016
|
...props
|
|
@@ -4046,18 +4027,17 @@ const Breadcrumb = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
|
|
|
4046
4027
|
children: children
|
|
4047
4028
|
}, void 0, false, {
|
|
4048
4029
|
fileName: Breadcrumb_jsxFileName,
|
|
4049
|
-
lineNumber:
|
|
4030
|
+
lineNumber: 60,
|
|
4050
4031
|
columnNumber: 11
|
|
4051
4032
|
}, undefined)
|
|
4052
4033
|
}, void 0, false, {
|
|
4053
4034
|
fileName: Breadcrumb_jsxFileName,
|
|
4054
|
-
lineNumber:
|
|
4035
|
+
lineNumber: 54,
|
|
4055
4036
|
columnNumber: 9
|
|
4056
4037
|
}, undefined);
|
|
4057
4038
|
});
|
|
4058
4039
|
Breadcrumb.displayName = 'Breadcrumb';
|
|
4059
4040
|
Breadcrumb.propTypes = Breadcrumb_propTypes;
|
|
4060
|
-
Breadcrumb.defaultProps = Breadcrumb_defaultProps;
|
|
4061
4041
|
/* harmony default export */ const src_Breadcrumb = (Object.assign(Breadcrumb, {
|
|
4062
4042
|
Item: src_BreadcrumbItem
|
|
4063
4043
|
}));
|
|
@@ -4109,17 +4089,13 @@ const Button_propTypes = {
|
|
|
4109
4089
|
type: prop_types_default().oneOf(['button', 'reset', 'submit', null]),
|
|
4110
4090
|
as: (prop_types_default()).elementType
|
|
4111
4091
|
};
|
|
4112
|
-
const Button_defaultProps = {
|
|
4113
|
-
variant: 'primary',
|
|
4114
|
-
active: false,
|
|
4115
|
-
disabled: false
|
|
4116
|
-
};
|
|
4117
4092
|
const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4118
4093
|
as,
|
|
4119
4094
|
bsPrefix,
|
|
4120
|
-
variant,
|
|
4095
|
+
variant = 'primary',
|
|
4121
4096
|
size,
|
|
4122
|
-
active,
|
|
4097
|
+
active = false,
|
|
4098
|
+
disabled = false,
|
|
4123
4099
|
className,
|
|
4124
4100
|
...props
|
|
4125
4101
|
}, ref) => {
|
|
@@ -4128,6 +4104,7 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
|
|
|
4128
4104
|
tagName
|
|
4129
4105
|
}] = useButtonProps({
|
|
4130
4106
|
tagName: as,
|
|
4107
|
+
disabled,
|
|
4131
4108
|
...props
|
|
4132
4109
|
});
|
|
4133
4110
|
const Component = tagName;
|
|
@@ -4135,16 +4112,16 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
|
|
|
4135
4112
|
...buttonProps,
|
|
4136
4113
|
...props,
|
|
4137
4114
|
ref: ref,
|
|
4138
|
-
|
|
4115
|
+
disabled: disabled,
|
|
4116
|
+
className: classnames_default()(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')
|
|
4139
4117
|
}, void 0, false, {
|
|
4140
4118
|
fileName: Button_jsxFileName,
|
|
4141
|
-
lineNumber:
|
|
4119
|
+
lineNumber: 95,
|
|
4142
4120
|
columnNumber: 9
|
|
4143
4121
|
}, undefined);
|
|
4144
4122
|
});
|
|
4145
4123
|
Button_Button.displayName = 'Button';
|
|
4146
4124
|
Button_Button.propTypes = Button_propTypes;
|
|
4147
|
-
Button_Button.defaultProps = Button_defaultProps;
|
|
4148
4125
|
/* harmony default export */ const src_Button = (Button_Button);
|
|
4149
4126
|
;// CONCATENATED MODULE: ./src/ButtonGroup.tsx
|
|
4150
4127
|
var ButtonGroup_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ButtonGroup.tsx";
|
|
@@ -4174,15 +4151,12 @@ const ButtonGroup_propTypes = {
|
|
|
4174
4151
|
role: (prop_types_default()).string,
|
|
4175
4152
|
as: (prop_types_default()).elementType
|
|
4176
4153
|
};
|
|
4177
|
-
const ButtonGroup_defaultProps = {
|
|
4178
|
-
vertical: false,
|
|
4179
|
-
role: 'group'
|
|
4180
|
-
};
|
|
4181
4154
|
const ButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4182
4155
|
bsPrefix,
|
|
4183
4156
|
size,
|
|
4184
|
-
vertical,
|
|
4157
|
+
vertical = false,
|
|
4185
4158
|
className,
|
|
4159
|
+
role = 'group',
|
|
4186
4160
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
4187
4161
|
as: Component = 'div',
|
|
4188
4162
|
...rest
|
|
@@ -4193,16 +4167,16 @@ const ButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
4193
4167
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
4194
4168
|
...rest,
|
|
4195
4169
|
ref: ref,
|
|
4170
|
+
role: role,
|
|
4196
4171
|
className: classnames_default()(className, baseClass, size && `${prefix}-${size}`)
|
|
4197
4172
|
}, void 0, false, {
|
|
4198
4173
|
fileName: ButtonGroup_jsxFileName,
|
|
4199
|
-
lineNumber:
|
|
4174
|
+
lineNumber: 62,
|
|
4200
4175
|
columnNumber: 9
|
|
4201
4176
|
}, undefined);
|
|
4202
4177
|
});
|
|
4203
4178
|
ButtonGroup.displayName = 'ButtonGroup';
|
|
4204
4179
|
ButtonGroup.propTypes = ButtonGroup_propTypes;
|
|
4205
|
-
ButtonGroup.defaultProps = ButtonGroup_defaultProps;
|
|
4206
4180
|
/* harmony default export */ const src_ButtonGroup = (ButtonGroup);
|
|
4207
4181
|
;// CONCATENATED MODULE: ./src/ButtonToolbar.tsx
|
|
4208
4182
|
var ButtonToolbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ButtonToolbar.tsx";
|
|
@@ -4223,28 +4197,26 @@ const ButtonToolbar_propTypes = {
|
|
|
4223
4197
|
*/
|
|
4224
4198
|
role: (prop_types_default()).string
|
|
4225
4199
|
};
|
|
4226
|
-
const ButtonToolbar_defaultProps = {
|
|
4227
|
-
role: 'toolbar'
|
|
4228
|
-
};
|
|
4229
4200
|
const ButtonToolbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4230
4201
|
bsPrefix,
|
|
4231
4202
|
className,
|
|
4203
|
+
role = 'toolbar',
|
|
4232
4204
|
...props
|
|
4233
4205
|
}, ref) => {
|
|
4234
4206
|
const prefix = useBootstrapPrefix(bsPrefix, 'btn-toolbar');
|
|
4235
4207
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
4236
4208
|
...props,
|
|
4237
4209
|
ref: ref,
|
|
4238
|
-
className: classnames_default()(className, prefix)
|
|
4210
|
+
className: classnames_default()(className, prefix),
|
|
4211
|
+
role: role
|
|
4239
4212
|
}, void 0, false, {
|
|
4240
4213
|
fileName: ButtonToolbar_jsxFileName,
|
|
4241
|
-
lineNumber:
|
|
4214
|
+
lineNumber: 32,
|
|
4242
4215
|
columnNumber: 7
|
|
4243
4216
|
}, undefined);
|
|
4244
4217
|
});
|
|
4245
4218
|
ButtonToolbar.displayName = 'ButtonToolbar';
|
|
4246
4219
|
ButtonToolbar.propTypes = ButtonToolbar_propTypes;
|
|
4247
|
-
ButtonToolbar.defaultProps = ButtonToolbar_defaultProps;
|
|
4248
4220
|
/* harmony default export */ const src_ButtonToolbar = (ButtonToolbar);
|
|
4249
4221
|
;// CONCATENATED MODULE: ./src/CardImg.tsx
|
|
4250
4222
|
var CardImg_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/CardImg.tsx";
|
|
@@ -4400,16 +4372,13 @@ const Card_propTypes = {
|
|
|
4400
4372
|
body: (prop_types_default()).bool,
|
|
4401
4373
|
as: (prop_types_default()).elementType
|
|
4402
4374
|
};
|
|
4403
|
-
const Card_defaultProps = {
|
|
4404
|
-
body: false
|
|
4405
|
-
};
|
|
4406
4375
|
const Card = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4407
4376
|
bsPrefix,
|
|
4408
4377
|
className,
|
|
4409
4378
|
bg,
|
|
4410
4379
|
text,
|
|
4411
4380
|
border,
|
|
4412
|
-
body,
|
|
4381
|
+
body = false,
|
|
4413
4382
|
children,
|
|
4414
4383
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
4415
4384
|
as: Component = 'div',
|
|
@@ -4424,18 +4393,17 @@ const Card = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
4424
4393
|
children: children
|
|
4425
4394
|
}, void 0, false, {
|
|
4426
4395
|
fileName: Card_jsxFileName,
|
|
4427
|
-
lineNumber:
|
|
4396
|
+
lineNumber: 105,
|
|
4428
4397
|
columnNumber: 17
|
|
4429
4398
|
}, undefined) : children
|
|
4430
4399
|
}, void 0, false, {
|
|
4431
4400
|
fileName: Card_jsxFileName,
|
|
4432
|
-
lineNumber:
|
|
4401
|
+
lineNumber: 94,
|
|
4433
4402
|
columnNumber: 7
|
|
4434
4403
|
}, undefined);
|
|
4435
4404
|
});
|
|
4436
4405
|
Card.displayName = 'Card';
|
|
4437
4406
|
Card.propTypes = Card_propTypes;
|
|
4438
|
-
Card.defaultProps = Card_defaultProps;
|
|
4439
4407
|
/* harmony default export */ const src_Card = (Object.assign(Card, {
|
|
4440
4408
|
Img: src_CardImg,
|
|
4441
4409
|
Title: CardTitle,
|
|
@@ -4777,37 +4745,6 @@ const Carousel_propTypes = {
|
|
|
4777
4745
|
*/
|
|
4778
4746
|
variant: prop_types_default().oneOf(['dark'])
|
|
4779
4747
|
};
|
|
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
4748
|
function isVisible(element) {
|
|
4812
4749
|
if (!element || !element.style || !element.parentNode || !element.parentNode.style) {
|
|
4813
4750
|
return false;
|
|
@@ -4815,40 +4752,60 @@ function isVisible(element) {
|
|
|
4815
4752
|
const elementStyle = getComputedStyle(element);
|
|
4816
4753
|
return elementStyle.display !== 'none' && elementStyle.visibility !== 'hidden' && getComputedStyle(element.parentNode).display !== 'none';
|
|
4817
4754
|
}
|
|
4818
|
-
const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((
|
|
4755
|
+
const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
4756
|
+
defaultActiveIndex = 0,
|
|
4757
|
+
...uncontrolledProps
|
|
4758
|
+
}, ref) => {
|
|
4819
4759
|
const {
|
|
4820
4760
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
4821
4761
|
as: Component = 'div',
|
|
4822
4762
|
bsPrefix,
|
|
4823
|
-
slide,
|
|
4824
|
-
fade,
|
|
4825
|
-
controls,
|
|
4826
|
-
indicators,
|
|
4827
|
-
indicatorLabels,
|
|
4763
|
+
slide = true,
|
|
4764
|
+
fade = false,
|
|
4765
|
+
controls = true,
|
|
4766
|
+
indicators = true,
|
|
4767
|
+
indicatorLabels = [],
|
|
4828
4768
|
activeIndex,
|
|
4829
4769
|
onSelect,
|
|
4830
4770
|
onSlide,
|
|
4831
4771
|
onSlid,
|
|
4832
|
-
interval,
|
|
4833
|
-
keyboard,
|
|
4772
|
+
interval = 5000,
|
|
4773
|
+
keyboard = true,
|
|
4834
4774
|
onKeyDown,
|
|
4835
|
-
pause,
|
|
4775
|
+
pause = 'hover',
|
|
4836
4776
|
onMouseOver,
|
|
4837
4777
|
onMouseOut,
|
|
4838
|
-
wrap,
|
|
4839
|
-
touch,
|
|
4778
|
+
wrap = true,
|
|
4779
|
+
touch = true,
|
|
4840
4780
|
onTouchStart,
|
|
4841
4781
|
onTouchMove,
|
|
4842
4782
|
onTouchEnd,
|
|
4843
|
-
prevIcon,
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4783
|
+
prevIcon = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
|
|
4784
|
+
"aria-hidden": "true",
|
|
4785
|
+
className: "carousel-control-prev-icon"
|
|
4786
|
+
}, void 0, false, {
|
|
4787
|
+
fileName: Carousel_jsxFileName,
|
|
4788
|
+
lineNumber: 225,
|
|
4789
|
+
columnNumber: 11
|
|
4790
|
+
}, undefined),
|
|
4791
|
+
prevLabel = 'Previous',
|
|
4792
|
+
nextIcon = /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
|
|
4793
|
+
"aria-hidden": "true",
|
|
4794
|
+
className: "carousel-control-next-icon"
|
|
4795
|
+
}, void 0, false, {
|
|
4796
|
+
fileName: Carousel_jsxFileName,
|
|
4797
|
+
lineNumber: 229,
|
|
4798
|
+
columnNumber: 11
|
|
4799
|
+
}, undefined),
|
|
4800
|
+
nextLabel = 'Next',
|
|
4847
4801
|
variant,
|
|
4848
4802
|
className,
|
|
4849
4803
|
children,
|
|
4850
4804
|
...props
|
|
4851
|
-
} = useUncontrolled(
|
|
4805
|
+
} = useUncontrolled({
|
|
4806
|
+
defaultActiveIndex,
|
|
4807
|
+
...uncontrolledProps
|
|
4808
|
+
}, {
|
|
4852
4809
|
activeIndex: 'onSelect'
|
|
4853
4810
|
});
|
|
4854
4811
|
const prefix = useBootstrapPrefix(bsPrefix, 'carousel');
|
|
@@ -5067,13 +5024,13 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5067
5024
|
"aria-current": index === renderedActiveIndex
|
|
5068
5025
|
}, index, false, {
|
|
5069
5026
|
fileName: Carousel_jsxFileName,
|
|
5070
|
-
lineNumber:
|
|
5071
|
-
columnNumber:
|
|
5027
|
+
lineNumber: 548,
|
|
5028
|
+
columnNumber: 17
|
|
5072
5029
|
}, undefined))
|
|
5073
5030
|
}, void 0, false, {
|
|
5074
5031
|
fileName: Carousel_jsxFileName,
|
|
5075
|
-
lineNumber:
|
|
5076
|
-
columnNumber:
|
|
5032
|
+
lineNumber: 546,
|
|
5033
|
+
columnNumber: 13
|
|
5077
5034
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
5078
5035
|
className: `${prefix}-inner`,
|
|
5079
5036
|
children: map(children, (child, index) => {
|
|
@@ -5089,16 +5046,16 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5089
5046
|
})
|
|
5090
5047
|
}, void 0, false, {
|
|
5091
5048
|
fileName: Carousel_jsxFileName,
|
|
5092
|
-
lineNumber:
|
|
5093
|
-
columnNumber:
|
|
5049
|
+
lineNumber: 574,
|
|
5050
|
+
columnNumber: 17
|
|
5094
5051
|
}, undefined) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(child, {
|
|
5095
5052
|
className: classnames_default()(child.props.className, isActive && 'active')
|
|
5096
5053
|
});
|
|
5097
5054
|
})
|
|
5098
5055
|
}, void 0, false, {
|
|
5099
5056
|
fileName: Carousel_jsxFileName,
|
|
5100
|
-
lineNumber:
|
|
5101
|
-
columnNumber:
|
|
5057
|
+
lineNumber: 569,
|
|
5058
|
+
columnNumber: 11
|
|
5102
5059
|
}, undefined), controls && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
|
|
5103
5060
|
children: [(wrap || activeIndex !== 0) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
|
|
5104
5061
|
className: `${prefix}-control-prev`,
|
|
@@ -5108,13 +5065,13 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5108
5065
|
children: prevLabel
|
|
5109
5066
|
}, void 0, false, {
|
|
5110
5067
|
fileName: Carousel_jsxFileName,
|
|
5111
|
-
lineNumber:
|
|
5112
|
-
columnNumber:
|
|
5068
|
+
lineNumber: 614,
|
|
5069
|
+
columnNumber: 21
|
|
5113
5070
|
}, undefined)]
|
|
5114
5071
|
}, void 0, true, {
|
|
5115
5072
|
fileName: Carousel_jsxFileName,
|
|
5116
|
-
lineNumber:
|
|
5117
|
-
columnNumber:
|
|
5073
|
+
lineNumber: 611,
|
|
5074
|
+
columnNumber: 17
|
|
5118
5075
|
}, undefined), (wrap || activeIndex !== numChildren - 1) && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Anchor, {
|
|
5119
5076
|
className: `${prefix}-control-next`,
|
|
5120
5077
|
onClick: next,
|
|
@@ -5123,24 +5080,23 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
5123
5080
|
children: nextLabel
|
|
5124
5081
|
}, void 0, false, {
|
|
5125
5082
|
fileName: Carousel_jsxFileName,
|
|
5126
|
-
lineNumber:
|
|
5127
|
-
columnNumber:
|
|
5083
|
+
lineNumber: 622,
|
|
5084
|
+
columnNumber: 21
|
|
5128
5085
|
}, undefined)]
|
|
5129
5086
|
}, void 0, true, {
|
|
5130
5087
|
fileName: Carousel_jsxFileName,
|
|
5131
|
-
lineNumber:
|
|
5132
|
-
columnNumber:
|
|
5088
|
+
lineNumber: 619,
|
|
5089
|
+
columnNumber: 17
|
|
5133
5090
|
}, undefined)]
|
|
5134
5091
|
}, void 0, true)]
|
|
5135
5092
|
}, void 0, true, {
|
|
5136
5093
|
fileName: Carousel_jsxFileName,
|
|
5137
|
-
lineNumber:
|
|
5138
|
-
columnNumber:
|
|
5094
|
+
lineNumber: 528,
|
|
5095
|
+
columnNumber: 9
|
|
5139
5096
|
}, undefined);
|
|
5140
5097
|
});
|
|
5141
5098
|
Carousel.displayName = 'Carousel';
|
|
5142
5099
|
Carousel.propTypes = Carousel_propTypes;
|
|
5143
|
-
Carousel.defaultProps = Carousel_defaultProps;
|
|
5144
5100
|
/* harmony default export */ const src_Carousel = (Object.assign(Carousel, {
|
|
5145
5101
|
Caption: CarouselCaption,
|
|
5146
5102
|
Item: src_CarouselItem
|
|
@@ -7555,7 +7511,7 @@ function useDropdownMenu(options = {}) {
|
|
|
7555
7511
|
});
|
|
7556
7512
|
return [menuProps, metadata];
|
|
7557
7513
|
}
|
|
7558
|
-
const
|
|
7514
|
+
const defaultProps = {
|
|
7559
7515
|
usePopper: true
|
|
7560
7516
|
};
|
|
7561
7517
|
|
|
@@ -7576,7 +7532,7 @@ function DropdownMenu(_ref) {
|
|
|
7576
7532
|
});
|
|
7577
7533
|
}
|
|
7578
7534
|
DropdownMenu.displayName = 'DropdownMenu';
|
|
7579
|
-
DropdownMenu.defaultProps =
|
|
7535
|
+
DropdownMenu.defaultProps = defaultProps;
|
|
7580
7536
|
/** @component */
|
|
7581
7537
|
|
|
7582
7538
|
/* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
|
|
@@ -8194,9 +8150,6 @@ const DropdownMenu_propTypes = {
|
|
|
8194
8150
|
*/
|
|
8195
8151
|
variant: (prop_types_default()).string
|
|
8196
8152
|
};
|
|
8197
|
-
const src_DropdownMenu_defaultProps = {
|
|
8198
|
-
flip: true
|
|
8199
|
-
};
|
|
8200
8153
|
function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
|
|
8201
8154
|
const topStart = isRTL ? 'top-end' : 'top-start';
|
|
8202
8155
|
const topEnd = isRTL ? 'top-start' : 'top-end';
|
|
@@ -8215,7 +8168,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8215
8168
|
className,
|
|
8216
8169
|
align,
|
|
8217
8170
|
rootCloseEvent,
|
|
8218
|
-
flip,
|
|
8171
|
+
flip = true,
|
|
8219
8172
|
show: showProps,
|
|
8220
8173
|
renderOnMount,
|
|
8221
8174
|
// 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 +8256,12 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
|
|
|
8303
8256
|
className: classnames_default()(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
|
|
8304
8257
|
}, void 0, false, {
|
|
8305
8258
|
fileName: DropdownMenu_jsxFileName,
|
|
8306
|
-
lineNumber:
|
|
8259
|
+
lineNumber: 207,
|
|
8307
8260
|
columnNumber: 9
|
|
8308
8261
|
}, undefined);
|
|
8309
8262
|
});
|
|
8310
8263
|
DropdownMenu_DropdownMenu.displayName = 'DropdownMenu';
|
|
8311
8264
|
DropdownMenu_DropdownMenu.propTypes = DropdownMenu_propTypes;
|
|
8312
|
-
DropdownMenu_DropdownMenu.defaultProps = src_DropdownMenu_defaultProps;
|
|
8313
8265
|
/* harmony default export */ const src_DropdownMenu = (DropdownMenu_DropdownMenu);
|
|
8314
8266
|
;// CONCATENATED MODULE: ./src/DropdownToggle.tsx
|
|
8315
8267
|
var DropdownToggle_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/DropdownToggle.tsx";
|
|
@@ -8469,26 +8421,20 @@ const Dropdown_propTypes = {
|
|
|
8469
8421
|
*/
|
|
8470
8422
|
autoClose: prop_types_default().oneOf([true, 'outside', 'inside', false])
|
|
8471
8423
|
};
|
|
8472
|
-
const Dropdown_defaultProps = {
|
|
8473
|
-
navbar: false,
|
|
8474
|
-
align: 'start',
|
|
8475
|
-
autoClose: true,
|
|
8476
|
-
drop: 'down'
|
|
8477
|
-
};
|
|
8478
8424
|
const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((pProps, ref) => {
|
|
8479
8425
|
const {
|
|
8480
8426
|
bsPrefix,
|
|
8481
|
-
drop,
|
|
8427
|
+
drop = 'down',
|
|
8482
8428
|
show,
|
|
8483
8429
|
className,
|
|
8484
|
-
align,
|
|
8430
|
+
align = 'start',
|
|
8485
8431
|
onSelect,
|
|
8486
8432
|
onToggle,
|
|
8487
8433
|
focusFirstItemOnShow,
|
|
8488
8434
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
8489
8435
|
as: Component = 'div',
|
|
8490
8436
|
navbar: _4,
|
|
8491
|
-
autoClose,
|
|
8437
|
+
autoClose = true,
|
|
8492
8438
|
...props
|
|
8493
8439
|
} = useUncontrolled(pProps, {
|
|
8494
8440
|
show: 'onToggle'
|
|
@@ -8541,23 +8487,22 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
8541
8487
|
className: classnames_default()(className, show && 'show', directionClasses[drop])
|
|
8542
8488
|
}, void 0, false, {
|
|
8543
8489
|
fileName: Dropdown_jsxFileName,
|
|
8544
|
-
lineNumber:
|
|
8490
|
+
lineNumber: 204,
|
|
8545
8491
|
columnNumber: 13
|
|
8546
8492
|
}, undefined)
|
|
8547
8493
|
}, void 0, false, {
|
|
8548
8494
|
fileName: Dropdown_jsxFileName,
|
|
8549
|
-
lineNumber:
|
|
8495
|
+
lineNumber: 193,
|
|
8550
8496
|
columnNumber: 9
|
|
8551
8497
|
}, undefined)
|
|
8552
8498
|
}, void 0, false, {
|
|
8553
8499
|
fileName: Dropdown_jsxFileName,
|
|
8554
|
-
lineNumber:
|
|
8500
|
+
lineNumber: 192,
|
|
8555
8501
|
columnNumber: 7
|
|
8556
8502
|
}, undefined);
|
|
8557
8503
|
});
|
|
8558
8504
|
Dropdown_Dropdown.displayName = 'Dropdown';
|
|
8559
8505
|
Dropdown_Dropdown.propTypes = Dropdown_propTypes;
|
|
8560
|
-
Dropdown_Dropdown.defaultProps = Dropdown_defaultProps;
|
|
8561
8506
|
/* harmony default export */ const src_Dropdown = (Object.assign(Dropdown_Dropdown, {
|
|
8562
8507
|
Toggle: src_DropdownToggle,
|
|
8563
8508
|
Menu: src_DropdownMenu,
|
|
@@ -9223,16 +9168,12 @@ const FormLabel_propTypes = {
|
|
|
9223
9168
|
/** Set a custom element for this component */
|
|
9224
9169
|
as: (prop_types_default()).elementType
|
|
9225
9170
|
};
|
|
9226
|
-
const FormLabel_defaultProps = {
|
|
9227
|
-
column: false,
|
|
9228
|
-
visuallyHidden: false
|
|
9229
|
-
};
|
|
9230
9171
|
const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
9231
9172
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
9232
9173
|
as: Component = 'label',
|
|
9233
9174
|
bsPrefix,
|
|
9234
|
-
column,
|
|
9235
|
-
visuallyHidden,
|
|
9175
|
+
column = false,
|
|
9176
|
+
visuallyHidden = false,
|
|
9236
9177
|
className,
|
|
9237
9178
|
htmlFor,
|
|
9238
9179
|
...props
|
|
@@ -9254,7 +9195,7 @@ const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
9254
9195
|
...props
|
|
9255
9196
|
}, void 0, false, {
|
|
9256
9197
|
fileName: FormLabel_jsxFileName,
|
|
9257
|
-
lineNumber:
|
|
9198
|
+
lineNumber: 104,
|
|
9258
9199
|
columnNumber: 11
|
|
9259
9200
|
}, undefined);
|
|
9260
9201
|
return (
|
|
@@ -9267,14 +9208,13 @@ const FormLabel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
9267
9208
|
...props
|
|
9268
9209
|
}, void 0, false, {
|
|
9269
9210
|
fileName: FormLabel_jsxFileName,
|
|
9270
|
-
lineNumber:
|
|
9211
|
+
lineNumber: 115,
|
|
9271
9212
|
columnNumber: 9
|
|
9272
9213
|
}, undefined)
|
|
9273
9214
|
);
|
|
9274
9215
|
});
|
|
9275
9216
|
FormLabel.displayName = 'FormLabel';
|
|
9276
9217
|
FormLabel.propTypes = FormLabel_propTypes;
|
|
9277
|
-
FormLabel.defaultProps = FormLabel_defaultProps;
|
|
9278
9218
|
/* harmony default export */ const src_FormLabel = (FormLabel);
|
|
9279
9219
|
;// CONCATENATED MODULE: ./src/FormRange.tsx
|
|
9280
9220
|
var FormRange_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/FormRange.tsx";
|
|
@@ -9601,12 +9541,9 @@ const Container_propTypes = {
|
|
|
9601
9541
|
*/
|
|
9602
9542
|
as: (prop_types_default()).elementType
|
|
9603
9543
|
};
|
|
9604
|
-
const Container_defaultProps = {
|
|
9605
|
-
fluid: false
|
|
9606
|
-
};
|
|
9607
9544
|
const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
9608
9545
|
bsPrefix,
|
|
9609
|
-
fluid,
|
|
9546
|
+
fluid = false,
|
|
9610
9547
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
9611
9548
|
as: Component = 'div',
|
|
9612
9549
|
className,
|
|
@@ -9620,13 +9557,12 @@ const Container = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
9620
9557
|
className: classnames_default()(className, fluid ? `${prefix}${suffix}` : prefix)
|
|
9621
9558
|
}, void 0, false, {
|
|
9622
9559
|
fileName: Container_jsxFileName,
|
|
9623
|
-
lineNumber:
|
|
9560
|
+
lineNumber: 47,
|
|
9624
9561
|
columnNumber: 9
|
|
9625
9562
|
}, undefined);
|
|
9626
9563
|
});
|
|
9627
9564
|
Container.displayName = 'Container';
|
|
9628
9565
|
Container.propTypes = Container_propTypes;
|
|
9629
|
-
Container.defaultProps = Container_defaultProps;
|
|
9630
9566
|
/* harmony default export */ const src_Container = (Container);
|
|
9631
9567
|
;// CONCATENATED MODULE: ./src/Image.tsx
|
|
9632
9568
|
var Image_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Image.tsx";
|
|
@@ -9657,19 +9593,13 @@ const Image_propTypes = {
|
|
|
9657
9593
|
*/
|
|
9658
9594
|
thumbnail: (prop_types_default()).bool
|
|
9659
9595
|
};
|
|
9660
|
-
const Image_defaultProps = {
|
|
9661
|
-
fluid: false,
|
|
9662
|
-
rounded: false,
|
|
9663
|
-
roundedCircle: false,
|
|
9664
|
-
thumbnail: false
|
|
9665
|
-
};
|
|
9666
9596
|
const Image_Image = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
9667
9597
|
bsPrefix,
|
|
9668
9598
|
className,
|
|
9669
|
-
fluid,
|
|
9670
|
-
rounded,
|
|
9671
|
-
roundedCircle,
|
|
9672
|
-
thumbnail,
|
|
9599
|
+
fluid = false,
|
|
9600
|
+
rounded = false,
|
|
9601
|
+
roundedCircle = false,
|
|
9602
|
+
thumbnail = false,
|
|
9673
9603
|
...props
|
|
9674
9604
|
}, ref) => {
|
|
9675
9605
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'img');
|
|
@@ -9680,13 +9610,12 @@ const Image_Image = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
9680
9610
|
className: classnames_default()(className, fluid && `${bsPrefix}-fluid`, rounded && `rounded`, roundedCircle && `rounded-circle`, thumbnail && `${bsPrefix}-thumbnail`)
|
|
9681
9611
|
}, void 0, false, {
|
|
9682
9612
|
fileName: Image_jsxFileName,
|
|
9683
|
-
lineNumber:
|
|
9613
|
+
lineNumber: 58,
|
|
9684
9614
|
columnNumber: 7
|
|
9685
9615
|
}, undefined);
|
|
9686
9616
|
});
|
|
9687
9617
|
Image_Image.displayName = 'Image';
|
|
9688
9618
|
Image_Image.propTypes = Image_propTypes;
|
|
9689
|
-
Image_Image.defaultProps = Image_defaultProps;
|
|
9690
9619
|
/* harmony default export */ const src_Image = (Image_Image);
|
|
9691
9620
|
;// CONCATENATED MODULE: ./src/FigureImage.tsx
|
|
9692
9621
|
var FigureImage_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/FigureImage.tsx";
|
|
@@ -9694,24 +9623,22 @@ var FigureImage_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootst
|
|
|
9694
9623
|
|
|
9695
9624
|
|
|
9696
9625
|
|
|
9697
|
-
const FigureImage_defaultProps = {
|
|
9698
|
-
fluid: true
|
|
9699
|
-
};
|
|
9700
9626
|
const FigureImage = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
9701
9627
|
className,
|
|
9628
|
+
fluid = true,
|
|
9702
9629
|
...props
|
|
9703
9630
|
}, ref) => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Image, {
|
|
9704
9631
|
ref: ref,
|
|
9705
9632
|
...props,
|
|
9633
|
+
fluid: fluid,
|
|
9706
9634
|
className: classnames_default()(className, 'figure-img')
|
|
9707
9635
|
}, void 0, false, {
|
|
9708
9636
|
fileName: FigureImage_jsxFileName,
|
|
9709
|
-
lineNumber:
|
|
9637
|
+
lineNumber: 8,
|
|
9710
9638
|
columnNumber: 5
|
|
9711
9639
|
}, undefined));
|
|
9712
9640
|
FigureImage.displayName = 'FigureImage';
|
|
9713
9641
|
FigureImage.propTypes = Image_propTypes;
|
|
9714
|
-
FigureImage.defaultProps = FigureImage_defaultProps;
|
|
9715
9642
|
/* harmony default export */ const src_FigureImage = (FigureImage);
|
|
9716
9643
|
;// CONCATENATED MODULE: ./src/FigureCaption.tsx
|
|
9717
9644
|
|
|
@@ -10877,14 +10804,10 @@ const AbstractModalHeader_propTypes = {
|
|
|
10877
10804
|
*/
|
|
10878
10805
|
onHide: (prop_types_default()).func
|
|
10879
10806
|
};
|
|
10880
|
-
const AbstractModalHeader_defaultProps = {
|
|
10881
|
-
closeLabel: 'Close',
|
|
10882
|
-
closeButton: false
|
|
10883
|
-
};
|
|
10884
10807
|
const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
10885
|
-
closeLabel,
|
|
10808
|
+
closeLabel = 'Close',
|
|
10886
10809
|
closeVariant,
|
|
10887
|
-
closeButton,
|
|
10810
|
+
closeButton = false,
|
|
10888
10811
|
onHide,
|
|
10889
10812
|
children,
|
|
10890
10813
|
...props
|
|
@@ -10903,17 +10826,16 @@ const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_com
|
|
|
10903
10826
|
onClick: handleClick
|
|
10904
10827
|
}, void 0, false, {
|
|
10905
10828
|
fileName: AbstractModalHeader_jsxFileName,
|
|
10906
|
-
lineNumber:
|
|
10829
|
+
lineNumber: 69,
|
|
10907
10830
|
columnNumber: 11
|
|
10908
10831
|
}, undefined)]
|
|
10909
10832
|
}, void 0, true, {
|
|
10910
10833
|
fileName: AbstractModalHeader_jsxFileName,
|
|
10911
|
-
lineNumber:
|
|
10834
|
+
lineNumber: 65,
|
|
10912
10835
|
columnNumber: 7
|
|
10913
10836
|
}, undefined);
|
|
10914
10837
|
});
|
|
10915
10838
|
AbstractModalHeader.propTypes = AbstractModalHeader_propTypes;
|
|
10916
|
-
AbstractModalHeader.defaultProps = AbstractModalHeader_defaultProps;
|
|
10917
10839
|
/* harmony default export */ const src_AbstractModalHeader = (AbstractModalHeader);
|
|
10918
10840
|
;// CONCATENATED MODULE: ./src/ModalHeader.tsx
|
|
10919
10841
|
var ModalHeader_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ModalHeader.tsx";
|
|
@@ -10949,29 +10871,28 @@ const ModalHeader_propTypes = {
|
|
|
10949
10871
|
*/
|
|
10950
10872
|
onHide: (prop_types_default()).func
|
|
10951
10873
|
};
|
|
10952
|
-
const ModalHeader_defaultProps = {
|
|
10953
|
-
closeLabel: 'Close',
|
|
10954
|
-
closeButton: false
|
|
10955
|
-
};
|
|
10956
10874
|
const ModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
10957
10875
|
bsPrefix,
|
|
10958
10876
|
className,
|
|
10877
|
+
closeLabel = 'Close',
|
|
10878
|
+
closeButton = false,
|
|
10959
10879
|
...props
|
|
10960
10880
|
}, ref) => {
|
|
10961
10881
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'modal-header');
|
|
10962
10882
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_AbstractModalHeader, {
|
|
10963
10883
|
ref: ref,
|
|
10964
10884
|
...props,
|
|
10965
|
-
className: classnames_default()(className, bsPrefix)
|
|
10885
|
+
className: classnames_default()(className, bsPrefix),
|
|
10886
|
+
closeLabel: closeLabel,
|
|
10887
|
+
closeButton: closeButton
|
|
10966
10888
|
}, void 0, false, {
|
|
10967
10889
|
fileName: ModalHeader_jsxFileName,
|
|
10968
|
-
lineNumber:
|
|
10890
|
+
lineNumber: 59,
|
|
10969
10891
|
columnNumber: 7
|
|
10970
10892
|
}, undefined);
|
|
10971
10893
|
});
|
|
10972
10894
|
ModalHeader.displayName = 'ModalHeader';
|
|
10973
10895
|
ModalHeader.propTypes = ModalHeader_propTypes;
|
|
10974
|
-
ModalHeader.defaultProps = ModalHeader_defaultProps;
|
|
10975
10896
|
/* harmony default export */ const src_ModalHeader = (ModalHeader);
|
|
10976
10897
|
;// CONCATENATED MODULE: ./src/ModalTitle.tsx
|
|
10977
10898
|
|
|
@@ -11145,16 +11066,6 @@ const Modal_propTypes = {
|
|
|
11145
11066
|
'aria-describedby': (prop_types_default()).string,
|
|
11146
11067
|
'aria-label': (prop_types_default()).string
|
|
11147
11068
|
};
|
|
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
11069
|
|
|
11159
11070
|
/* eslint-disable no-use-before-define, react/no-multi-comp */
|
|
11160
11071
|
function DialogTransition(props) {
|
|
@@ -11163,7 +11074,7 @@ function DialogTransition(props) {
|
|
|
11163
11074
|
timeout: null
|
|
11164
11075
|
}, void 0, false, {
|
|
11165
11076
|
fileName: Modal_jsxFileName,
|
|
11166
|
-
lineNumber:
|
|
11077
|
+
lineNumber: 227,
|
|
11167
11078
|
columnNumber: 10
|
|
11168
11079
|
}, this);
|
|
11169
11080
|
}
|
|
@@ -11173,7 +11084,7 @@ function BackdropTransition(props) {
|
|
|
11173
11084
|
timeout: null
|
|
11174
11085
|
}, void 0, false, {
|
|
11175
11086
|
fileName: Modal_jsxFileName,
|
|
11176
|
-
lineNumber:
|
|
11087
|
+
lineNumber: 231,
|
|
11177
11088
|
columnNumber: 10
|
|
11178
11089
|
}, this);
|
|
11179
11090
|
}
|
|
@@ -11186,23 +11097,23 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11186
11097
|
dialogClassName,
|
|
11187
11098
|
contentClassName,
|
|
11188
11099
|
children,
|
|
11189
|
-
dialogAs: Dialog,
|
|
11100
|
+
dialogAs: Dialog = src_ModalDialog,
|
|
11190
11101
|
'aria-labelledby': ariaLabelledby,
|
|
11191
11102
|
'aria-describedby': ariaDescribedby,
|
|
11192
11103
|
'aria-label': ariaLabel,
|
|
11193
11104
|
/* BaseModal props */
|
|
11194
11105
|
|
|
11195
|
-
show,
|
|
11196
|
-
animation,
|
|
11197
|
-
backdrop,
|
|
11198
|
-
keyboard,
|
|
11106
|
+
show = false,
|
|
11107
|
+
animation = true,
|
|
11108
|
+
backdrop = true,
|
|
11109
|
+
keyboard = true,
|
|
11199
11110
|
onEscapeKeyDown,
|
|
11200
11111
|
onShow,
|
|
11201
11112
|
onHide,
|
|
11202
11113
|
container,
|
|
11203
|
-
autoFocus,
|
|
11204
|
-
enforceFocus,
|
|
11205
|
-
restoreFocus,
|
|
11114
|
+
autoFocus = true,
|
|
11115
|
+
enforceFocus = true,
|
|
11116
|
+
restoreFocus = true,
|
|
11206
11117
|
restoreFocusOptions,
|
|
11207
11118
|
onEntered,
|
|
11208
11119
|
onExit,
|
|
@@ -11253,7 +11164,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11253
11164
|
});
|
|
11254
11165
|
|
|
11255
11166
|
// We prevent the modal from closing during a drag by detecting where the
|
|
11256
|
-
//
|
|
11167
|
+
// click originates from. If it starts in the modal and then ends outside
|
|
11257
11168
|
// don't close.
|
|
11258
11169
|
const handleDialogMouseDown = () => {
|
|
11259
11170
|
waitingForMouseUpRef.current = true;
|
|
@@ -11327,7 +11238,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11327
11238
|
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName, !animation && 'show')
|
|
11328
11239
|
}, void 0, false, {
|
|
11329
11240
|
fileName: Modal_jsxFileName,
|
|
11330
|
-
lineNumber:
|
|
11241
|
+
lineNumber: 426,
|
|
11331
11242
|
columnNumber: 11
|
|
11332
11243
|
}, undefined), [animation, backdropClassName, bsPrefix]);
|
|
11333
11244
|
const baseModalStyle = {
|
|
@@ -11356,12 +11267,12 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11356
11267
|
children: children
|
|
11357
11268
|
}, void 0, false, {
|
|
11358
11269
|
fileName: Modal_jsxFileName,
|
|
11359
|
-
lineNumber:
|
|
11270
|
+
lineNumber: 463,
|
|
11360
11271
|
columnNumber: 11
|
|
11361
11272
|
}, undefined)
|
|
11362
11273
|
}, void 0, false, {
|
|
11363
11274
|
fileName: Modal_jsxFileName,
|
|
11364
|
-
lineNumber:
|
|
11275
|
+
lineNumber: 445,
|
|
11365
11276
|
columnNumber: 9
|
|
11366
11277
|
}, undefined);
|
|
11367
11278
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
|
|
@@ -11393,18 +11304,17 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
11393
11304
|
renderDialog: renderDialog
|
|
11394
11305
|
}, void 0, false, {
|
|
11395
11306
|
fileName: Modal_jsxFileName,
|
|
11396
|
-
lineNumber:
|
|
11307
|
+
lineNumber: 476,
|
|
11397
11308
|
columnNumber: 11
|
|
11398
11309
|
}, undefined)
|
|
11399
11310
|
}, void 0, false, {
|
|
11400
11311
|
fileName: Modal_jsxFileName,
|
|
11401
|
-
lineNumber:
|
|
11312
|
+
lineNumber: 475,
|
|
11402
11313
|
columnNumber: 9
|
|
11403
11314
|
}, undefined);
|
|
11404
11315
|
});
|
|
11405
11316
|
Modal_Modal.displayName = 'Modal';
|
|
11406
11317
|
Modal_Modal.propTypes = Modal_propTypes;
|
|
11407
|
-
Modal_Modal.defaultProps = Modal_defaultProps;
|
|
11408
11318
|
/* harmony default export */ const src_Modal = (Object.assign(Modal_Modal, {
|
|
11409
11319
|
Body: ModalBody,
|
|
11410
11320
|
Header: src_ModalHeader,
|
|
@@ -11458,37 +11368,36 @@ const NavLink_propTypes = {
|
|
|
11458
11368
|
/** @default 'a' */
|
|
11459
11369
|
as: (prop_types_default()).elementType
|
|
11460
11370
|
};
|
|
11461
|
-
const NavLink_defaultProps = {
|
|
11462
|
-
disabled: false
|
|
11463
|
-
};
|
|
11464
11371
|
const NavLink = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
11465
11372
|
bsPrefix,
|
|
11466
11373
|
className,
|
|
11467
11374
|
as: Component = esm_Anchor,
|
|
11468
11375
|
active,
|
|
11469
11376
|
eventKey,
|
|
11377
|
+
disabled = false,
|
|
11470
11378
|
...props
|
|
11471
11379
|
}, ref) => {
|
|
11472
11380
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-link');
|
|
11473
11381
|
const [navItemProps, meta] = useNavItem({
|
|
11474
11382
|
key: makeEventKey(eventKey, props.href),
|
|
11475
11383
|
active,
|
|
11384
|
+
disabled,
|
|
11476
11385
|
...props
|
|
11477
11386
|
});
|
|
11478
11387
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
11479
11388
|
...props,
|
|
11480
11389
|
...navItemProps,
|
|
11481
11390
|
ref: ref,
|
|
11482
|
-
|
|
11391
|
+
disabled: disabled,
|
|
11392
|
+
className: classnames_default()(className, bsPrefix, disabled && 'disabled', meta.isActive && 'active')
|
|
11483
11393
|
}, void 0, false, {
|
|
11484
11394
|
fileName: NavLink_jsxFileName,
|
|
11485
|
-
lineNumber:
|
|
11395
|
+
lineNumber: 76,
|
|
11486
11396
|
columnNumber: 9
|
|
11487
11397
|
}, undefined);
|
|
11488
11398
|
});
|
|
11489
11399
|
NavLink.displayName = 'NavLink';
|
|
11490
11400
|
NavLink.propTypes = NavLink_propTypes;
|
|
11491
|
-
NavLink.defaultProps = NavLink_defaultProps;
|
|
11492
11401
|
/* harmony default export */ const src_NavLink = (NavLink);
|
|
11493
11402
|
;// CONCATENATED MODULE: ./src/Nav.tsx
|
|
11494
11403
|
var Nav_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Nav.tsx";
|
|
@@ -11574,17 +11483,13 @@ const Nav_propTypes = {
|
|
|
11574
11483
|
/** @private */
|
|
11575
11484
|
onKeyDown: (prop_types_default()).func
|
|
11576
11485
|
};
|
|
11577
|
-
const Nav_defaultProps = {
|
|
11578
|
-
justify: false,
|
|
11579
|
-
fill: false
|
|
11580
|
-
};
|
|
11581
11486
|
const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
|
|
11582
11487
|
const {
|
|
11583
11488
|
as = 'div',
|
|
11584
11489
|
bsPrefix: initialBsPrefix,
|
|
11585
11490
|
variant,
|
|
11586
|
-
fill,
|
|
11587
|
-
justify,
|
|
11491
|
+
fill = false,
|
|
11492
|
+
justify = false,
|
|
11588
11493
|
navbar,
|
|
11589
11494
|
navbarScroll,
|
|
11590
11495
|
className,
|
|
@@ -11623,13 +11528,12 @@ const Nav_Nav = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
11623
11528
|
...props
|
|
11624
11529
|
}, void 0, false, {
|
|
11625
11530
|
fileName: Nav_jsxFileName,
|
|
11626
|
-
lineNumber:
|
|
11531
|
+
lineNumber: 143,
|
|
11627
11532
|
columnNumber: 5
|
|
11628
11533
|
}, undefined);
|
|
11629
11534
|
});
|
|
11630
11535
|
Nav_Nav.displayName = 'Nav';
|
|
11631
11536
|
Nav_Nav.propTypes = Nav_propTypes;
|
|
11632
|
-
Nav_Nav.defaultProps = Nav_defaultProps;
|
|
11633
11537
|
/* harmony default export */ const src_Nav = (Object.assign(Nav_Nav, {
|
|
11634
11538
|
Item: src_NavItem,
|
|
11635
11539
|
Link: src_NavLink
|
|
@@ -11738,14 +11642,11 @@ const NavbarToggle_propTypes = {
|
|
|
11738
11642
|
children: (prop_types_default()).node,
|
|
11739
11643
|
as: (prop_types_default()).elementType
|
|
11740
11644
|
};
|
|
11741
|
-
const NavbarToggle_defaultProps = {
|
|
11742
|
-
label: 'Toggle navigation'
|
|
11743
|
-
};
|
|
11744
11645
|
const NavbarToggle = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
11745
11646
|
bsPrefix,
|
|
11746
11647
|
className,
|
|
11747
11648
|
children,
|
|
11748
|
-
label,
|
|
11649
|
+
label = 'Toggle navigation',
|
|
11749
11650
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
11750
11651
|
as: Component = 'button',
|
|
11751
11652
|
onClick,
|
|
@@ -11773,18 +11674,17 @@ const NavbarToggle = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
|
|
|
11773
11674
|
className: `${bsPrefix}-icon`
|
|
11774
11675
|
}, void 0, false, {
|
|
11775
11676
|
fileName: NavbarToggle_jsxFileName,
|
|
11776
|
-
lineNumber:
|
|
11677
|
+
lineNumber: 73,
|
|
11777
11678
|
columnNumber: 22
|
|
11778
11679
|
}, undefined)
|
|
11779
11680
|
}, void 0, false, {
|
|
11780
11681
|
fileName: NavbarToggle_jsxFileName,
|
|
11781
|
-
lineNumber:
|
|
11682
|
+
lineNumber: 66,
|
|
11782
11683
|
columnNumber: 7
|
|
11783
11684
|
}, undefined);
|
|
11784
11685
|
});
|
|
11785
11686
|
NavbarToggle.displayName = 'NavbarToggle';
|
|
11786
11687
|
NavbarToggle.propTypes = NavbarToggle_propTypes;
|
|
11787
|
-
NavbarToggle.defaultProps = NavbarToggle_defaultProps;
|
|
11788
11688
|
/* harmony default export */ const src_NavbarToggle = (NavbarToggle);
|
|
11789
11689
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMediaQuery.js
|
|
11790
11690
|
|
|
@@ -12020,12 +11920,6 @@ const OffcanvasToggling_propTypes = {
|
|
|
12020
11920
|
*/
|
|
12021
11921
|
onExited: (prop_types_default()).func
|
|
12022
11922
|
};
|
|
12023
|
-
const OffcanvasToggling_defaultProps = {
|
|
12024
|
-
in: false,
|
|
12025
|
-
mountOnEnter: false,
|
|
12026
|
-
unmountOnExit: false,
|
|
12027
|
-
appear: false
|
|
12028
|
-
};
|
|
12029
11923
|
const transitionStyles = {
|
|
12030
11924
|
[ENTERING]: 'show',
|
|
12031
11925
|
[ENTERED]: 'show'
|
|
@@ -12034,12 +11928,20 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
12034
11928
|
bsPrefix,
|
|
12035
11929
|
className,
|
|
12036
11930
|
children,
|
|
11931
|
+
in: inProp = false,
|
|
11932
|
+
mountOnEnter = false,
|
|
11933
|
+
unmountOnExit = false,
|
|
11934
|
+
appear = false,
|
|
12037
11935
|
...props
|
|
12038
11936
|
}, ref) => {
|
|
12039
11937
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
12040
11938
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
12041
11939
|
ref: ref,
|
|
12042
11940
|
addEndListener: transitionEndListener,
|
|
11941
|
+
in: inProp,
|
|
11942
|
+
mountOnEnter: mountOnEnter,
|
|
11943
|
+
unmountOnExit: unmountOnExit,
|
|
11944
|
+
appear: appear,
|
|
12043
11945
|
...props,
|
|
12044
11946
|
childRef: children.ref,
|
|
12045
11947
|
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, {
|
|
@@ -12048,12 +11950,11 @@ const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
12048
11950
|
})
|
|
12049
11951
|
}, void 0, false, {
|
|
12050
11952
|
fileName: OffcanvasToggling_jsxFileName,
|
|
12051
|
-
lineNumber:
|
|
12052
|
-
columnNumber:
|
|
11953
|
+
lineNumber: 108,
|
|
11954
|
+
columnNumber: 7
|
|
12053
11955
|
}, undefined);
|
|
12054
11956
|
});
|
|
12055
11957
|
OffcanvasToggling.propTypes = OffcanvasToggling_propTypes;
|
|
12056
|
-
OffcanvasToggling.defaultProps = OffcanvasToggling_defaultProps;
|
|
12057
11958
|
OffcanvasToggling.displayName = 'OffcanvasToggling';
|
|
12058
11959
|
/* harmony default export */ const src_OffcanvasToggling = (OffcanvasToggling);
|
|
12059
11960
|
;// CONCATENATED MODULE: ./src/OffcanvasHeader.tsx
|
|
@@ -12090,29 +11991,28 @@ const OffcanvasHeader_propTypes = {
|
|
|
12090
11991
|
*/
|
|
12091
11992
|
onHide: (prop_types_default()).func
|
|
12092
11993
|
};
|
|
12093
|
-
const OffcanvasHeader_defaultProps = {
|
|
12094
|
-
closeLabel: 'Close',
|
|
12095
|
-
closeButton: false
|
|
12096
|
-
};
|
|
12097
11994
|
const OffcanvasHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
12098
11995
|
bsPrefix,
|
|
12099
11996
|
className,
|
|
11997
|
+
closeLabel = 'Close',
|
|
11998
|
+
closeButton = false,
|
|
12100
11999
|
...props
|
|
12101
12000
|
}, ref) => {
|
|
12102
12001
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas-header');
|
|
12103
12002
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_AbstractModalHeader, {
|
|
12104
12003
|
ref: ref,
|
|
12105
12004
|
...props,
|
|
12106
|
-
className: classnames_default()(className, bsPrefix)
|
|
12005
|
+
className: classnames_default()(className, bsPrefix),
|
|
12006
|
+
closeLabel: closeLabel,
|
|
12007
|
+
closeButton: closeButton
|
|
12107
12008
|
}, void 0, false, {
|
|
12108
12009
|
fileName: OffcanvasHeader_jsxFileName,
|
|
12109
|
-
lineNumber:
|
|
12010
|
+
lineNumber: 59,
|
|
12110
12011
|
columnNumber: 7
|
|
12111
12012
|
}, undefined);
|
|
12112
12013
|
});
|
|
12113
12014
|
OffcanvasHeader.displayName = 'OffcanvasHeader';
|
|
12114
12015
|
OffcanvasHeader.propTypes = OffcanvasHeader_propTypes;
|
|
12115
|
-
OffcanvasHeader.defaultProps = OffcanvasHeader_defaultProps;
|
|
12116
12016
|
/* harmony default export */ const src_OffcanvasHeader = (OffcanvasHeader);
|
|
12117
12017
|
;// CONCATENATED MODULE: ./src/OffcanvasTitle.tsx
|
|
12118
12018
|
|
|
@@ -12251,23 +12151,12 @@ const Offcanvas_propTypes = {
|
|
|
12251
12151
|
renderStaticNode: (prop_types_default()).bool,
|
|
12252
12152
|
'aria-labelledby': (prop_types_default()).string
|
|
12253
12153
|
};
|
|
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
12154
|
function Offcanvas_DialogTransition(props) {
|
|
12266
12155
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, {
|
|
12267
12156
|
...props
|
|
12268
12157
|
}, void 0, false, {
|
|
12269
12158
|
fileName: Offcanvas_jsxFileName,
|
|
12270
|
-
lineNumber:
|
|
12159
|
+
lineNumber: 191,
|
|
12271
12160
|
columnNumber: 10
|
|
12272
12161
|
}, this);
|
|
12273
12162
|
}
|
|
@@ -12276,7 +12165,7 @@ function Offcanvas_BackdropTransition(props) {
|
|
|
12276
12165
|
...props
|
|
12277
12166
|
}, void 0, false, {
|
|
12278
12167
|
fileName: Offcanvas_jsxFileName,
|
|
12279
|
-
lineNumber:
|
|
12168
|
+
lineNumber: 195,
|
|
12280
12169
|
columnNumber: 10
|
|
12281
12170
|
}, this);
|
|
12282
12171
|
}
|
|
@@ -12285,21 +12174,21 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
12285
12174
|
className,
|
|
12286
12175
|
children,
|
|
12287
12176
|
'aria-labelledby': ariaLabelledby,
|
|
12288
|
-
placement,
|
|
12177
|
+
placement = 'start',
|
|
12289
12178
|
responsive,
|
|
12290
12179
|
/* BaseModal props */
|
|
12291
12180
|
|
|
12292
|
-
show,
|
|
12293
|
-
backdrop,
|
|
12294
|
-
keyboard,
|
|
12295
|
-
scroll,
|
|
12181
|
+
show = false,
|
|
12182
|
+
backdrop = true,
|
|
12183
|
+
keyboard = true,
|
|
12184
|
+
scroll = false,
|
|
12296
12185
|
onEscapeKeyDown,
|
|
12297
12186
|
onShow,
|
|
12298
12187
|
onHide,
|
|
12299
12188
|
container,
|
|
12300
|
-
autoFocus,
|
|
12301
|
-
enforceFocus,
|
|
12302
|
-
restoreFocus,
|
|
12189
|
+
autoFocus = true,
|
|
12190
|
+
enforceFocus = true,
|
|
12191
|
+
restoreFocus = true,
|
|
12303
12192
|
restoreFocusOptions,
|
|
12304
12193
|
onEntered,
|
|
12305
12194
|
onExit,
|
|
@@ -12309,7 +12198,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
12309
12198
|
onExited,
|
|
12310
12199
|
backdropClassName,
|
|
12311
12200
|
manager: propsManager,
|
|
12312
|
-
renderStaticNode,
|
|
12201
|
+
renderStaticNode = false,
|
|
12313
12202
|
...props
|
|
12314
12203
|
}, ref) => {
|
|
12315
12204
|
const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
@@ -12356,7 +12245,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
12356
12245
|
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
|
|
12357
12246
|
}, void 0, false, {
|
|
12358
12247
|
fileName: Offcanvas_jsxFileName,
|
|
12359
|
-
lineNumber:
|
|
12248
|
+
lineNumber: 291,
|
|
12360
12249
|
columnNumber: 11
|
|
12361
12250
|
}, undefined), [backdropClassName, bsPrefix]);
|
|
12362
12251
|
const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
@@ -12367,7 +12256,7 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
12367
12256
|
children: children
|
|
12368
12257
|
}, void 0, false, {
|
|
12369
12258
|
fileName: Offcanvas_jsxFileName,
|
|
12370
|
-
lineNumber:
|
|
12259
|
+
lineNumber: 300,
|
|
12371
12260
|
columnNumber: 9
|
|
12372
12261
|
}, undefined);
|
|
12373
12262
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {
|
|
@@ -12399,19 +12288,18 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
12399
12288
|
renderDialog: renderDialog
|
|
12400
12289
|
}, void 0, false, {
|
|
12401
12290
|
fileName: Offcanvas_jsxFileName,
|
|
12402
|
-
lineNumber:
|
|
12291
|
+
lineNumber: 328,
|
|
12403
12292
|
columnNumber: 13
|
|
12404
12293
|
}, undefined)
|
|
12405
12294
|
}, void 0, false, {
|
|
12406
12295
|
fileName: Offcanvas_jsxFileName,
|
|
12407
|
-
lineNumber:
|
|
12296
|
+
lineNumber: 327,
|
|
12408
12297
|
columnNumber: 11
|
|
12409
12298
|
}, undefined)]
|
|
12410
12299
|
}, void 0, true);
|
|
12411
12300
|
});
|
|
12412
12301
|
Offcanvas.displayName = 'Offcanvas';
|
|
12413
12302
|
Offcanvas.propTypes = Offcanvas_propTypes;
|
|
12414
|
-
Offcanvas.defaultProps = Offcanvas_defaultProps;
|
|
12415
12303
|
/* harmony default export */ const src_Offcanvas = (Object.assign(Offcanvas, {
|
|
12416
12304
|
Body: OffcanvasBody,
|
|
12417
12305
|
Header: src_OffcanvasHeader,
|
|
@@ -12473,7 +12361,7 @@ const Navbar_propTypes = {
|
|
|
12473
12361
|
* The breakpoint, below which, the Navbar will collapse.
|
|
12474
12362
|
* When `true` the Navbar will always be expanded regardless of screen size.
|
|
12475
12363
|
*/
|
|
12476
|
-
expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string])
|
|
12364
|
+
expand: prop_types_default().oneOfType([(prop_types_default()).bool, (prop_types_default()).string]),
|
|
12477
12365
|
/**
|
|
12478
12366
|
* A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
|
|
12479
12367
|
* `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
|
|
@@ -12550,16 +12438,11 @@ const Navbar_propTypes = {
|
|
|
12550
12438
|
*/
|
|
12551
12439
|
role: (prop_types_default()).string
|
|
12552
12440
|
};
|
|
12553
|
-
const Navbar_defaultProps = {
|
|
12554
|
-
expand: true,
|
|
12555
|
-
variant: 'light',
|
|
12556
|
-
collapseOnSelect: false
|
|
12557
|
-
};
|
|
12558
12441
|
const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
|
|
12559
12442
|
const {
|
|
12560
12443
|
bsPrefix: initialBsPrefix,
|
|
12561
|
-
expand,
|
|
12562
|
-
variant,
|
|
12444
|
+
expand = true,
|
|
12445
|
+
variant = 'light',
|
|
12563
12446
|
bg,
|
|
12564
12447
|
fixed,
|
|
12565
12448
|
sticky,
|
|
@@ -12569,7 +12452,7 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
12569
12452
|
expanded,
|
|
12570
12453
|
onToggle,
|
|
12571
12454
|
onSelect,
|
|
12572
|
-
collapseOnSelect,
|
|
12455
|
+
collapseOnSelect = false,
|
|
12573
12456
|
...controlledProps
|
|
12574
12457
|
} = useUncontrolled(props, {
|
|
12575
12458
|
expanded: 'onToggle'
|
|
@@ -12606,22 +12489,21 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
12606
12489
|
className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
12607
12490
|
}, void 0, false, {
|
|
12608
12491
|
fileName: Navbar_jsxFileName,
|
|
12609
|
-
lineNumber:
|
|
12492
|
+
lineNumber: 195,
|
|
12610
12493
|
columnNumber: 11
|
|
12611
12494
|
}, undefined)
|
|
12612
12495
|
}, void 0, false, {
|
|
12613
12496
|
fileName: Navbar_jsxFileName,
|
|
12614
|
-
lineNumber:
|
|
12497
|
+
lineNumber: 194,
|
|
12615
12498
|
columnNumber: 9
|
|
12616
12499
|
}, undefined)
|
|
12617
12500
|
}, void 0, false, {
|
|
12618
12501
|
fileName: Navbar_jsxFileName,
|
|
12619
|
-
lineNumber:
|
|
12502
|
+
lineNumber: 193,
|
|
12620
12503
|
columnNumber: 7
|
|
12621
12504
|
}, undefined);
|
|
12622
12505
|
});
|
|
12623
12506
|
Navbar.propTypes = Navbar_propTypes;
|
|
12624
|
-
Navbar.defaultProps = Navbar_defaultProps;
|
|
12625
12507
|
Navbar.displayName = 'Navbar';
|
|
12626
12508
|
/* harmony default export */ const src_Navbar = (Object.assign(Navbar, {
|
|
12627
12509
|
Brand: src_NavbarBrand,
|
|
@@ -12963,12 +12845,9 @@ const Popover_propTypes = {
|
|
|
12963
12845
|
/** @private */
|
|
12964
12846
|
show: (prop_types_default()).bool
|
|
12965
12847
|
};
|
|
12966
|
-
const Popover_defaultProps = {
|
|
12967
|
-
placement: 'right'
|
|
12968
|
-
};
|
|
12969
12848
|
const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
12970
12849
|
bsPrefix,
|
|
12971
|
-
placement,
|
|
12850
|
+
placement = 'right',
|
|
12972
12851
|
className,
|
|
12973
12852
|
style,
|
|
12974
12853
|
children,
|
|
@@ -12976,7 +12855,7 @@ const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
12976
12855
|
arrowProps,
|
|
12977
12856
|
hasDoneInitialMeasure,
|
|
12978
12857
|
popper,
|
|
12979
|
-
show
|
|
12858
|
+
show,
|
|
12980
12859
|
...props
|
|
12981
12860
|
}, ref) => {
|
|
12982
12861
|
const decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'popover');
|
|
@@ -12984,7 +12863,7 @@ const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
12984
12863
|
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
12985
12864
|
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
12986
12865
|
let computedStyle = style;
|
|
12987
|
-
if (!hasDoneInitialMeasure) {
|
|
12866
|
+
if (show && !hasDoneInitialMeasure) {
|
|
12988
12867
|
computedStyle = {
|
|
12989
12868
|
...style,
|
|
12990
12869
|
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
@@ -13002,23 +12881,22 @@ const Popover = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
13002
12881
|
...arrowProps
|
|
13003
12882
|
}, void 0, false, {
|
|
13004
12883
|
fileName: Popover_jsxFileName,
|
|
13005
|
-
lineNumber:
|
|
12884
|
+
lineNumber: 131,
|
|
13006
12885
|
columnNumber: 9
|
|
13007
12886
|
}, undefined), body ? /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(PopoverBody, {
|
|
13008
12887
|
children: children
|
|
13009
12888
|
}, void 0, false, {
|
|
13010
12889
|
fileName: Popover_jsxFileName,
|
|
13011
|
-
lineNumber:
|
|
12890
|
+
lineNumber: 132,
|
|
13012
12891
|
columnNumber: 17
|
|
13013
12892
|
}, undefined) : children]
|
|
13014
12893
|
}, void 0, true, {
|
|
13015
12894
|
fileName: Popover_jsxFileName,
|
|
13016
|
-
lineNumber:
|
|
12895
|
+
lineNumber: 119,
|
|
13017
12896
|
columnNumber: 7
|
|
13018
12897
|
}, undefined);
|
|
13019
12898
|
});
|
|
13020
12899
|
Popover.propTypes = Popover_propTypes;
|
|
13021
|
-
Popover.defaultProps = Popover_defaultProps;
|
|
13022
12900
|
/* harmony default export */ const src_Popover = (Object.assign(Popover, {
|
|
13023
12901
|
Header: PopoverHeader,
|
|
13024
12902
|
Body: PopoverBody,
|
|
@@ -13131,12 +13009,6 @@ const Overlay_propTypes = {
|
|
|
13131
13009
|
*/
|
|
13132
13010
|
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
13011
|
};
|
|
13134
|
-
const Overlay_defaultProps = {
|
|
13135
|
-
transition: src_Fade,
|
|
13136
|
-
rootClose: false,
|
|
13137
|
-
show: false,
|
|
13138
|
-
placement: 'top'
|
|
13139
|
-
};
|
|
13140
13012
|
function wrapRefs(props, arrowProps) {
|
|
13141
13013
|
const {
|
|
13142
13014
|
ref
|
|
@@ -13149,8 +13021,11 @@ function wrapRefs(props, arrowProps) {
|
|
|
13149
13021
|
}
|
|
13150
13022
|
const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13151
13023
|
children: overlay,
|
|
13152
|
-
transition,
|
|
13024
|
+
transition = src_Fade,
|
|
13153
13025
|
popperConfig = {},
|
|
13026
|
+
rootClose = false,
|
|
13027
|
+
placement = 'top',
|
|
13028
|
+
show: outerShow = false,
|
|
13154
13029
|
...outerProps
|
|
13155
13030
|
}, outerRef) => {
|
|
13156
13031
|
const popperRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({});
|
|
@@ -13168,10 +13043,10 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
13168
13043
|
}
|
|
13169
13044
|
}, [firstRenderedState]);
|
|
13170
13045
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
13171
|
-
if (!
|
|
13046
|
+
if (!outerShow) {
|
|
13172
13047
|
setFirstRenderedState(null);
|
|
13173
13048
|
}
|
|
13174
|
-
}, [
|
|
13049
|
+
}, [outerShow]);
|
|
13175
13050
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Overlay, {
|
|
13176
13051
|
...outerProps,
|
|
13177
13052
|
ref: mergedRef,
|
|
@@ -13181,6 +13056,9 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
13181
13056
|
onFirstUpdate: handleFirstUpdate
|
|
13182
13057
|
},
|
|
13183
13058
|
transition: actualTransition,
|
|
13059
|
+
rootClose: rootClose,
|
|
13060
|
+
placement: placement,
|
|
13061
|
+
show: outerShow,
|
|
13184
13062
|
children: (overlayProps, {
|
|
13185
13063
|
arrowProps,
|
|
13186
13064
|
popper: popperObj,
|
|
@@ -13224,13 +13102,12 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
|
|
|
13224
13102
|
}
|
|
13225
13103
|
}, void 0, false, {
|
|
13226
13104
|
fileName: Overlay_jsxFileName,
|
|
13227
|
-
lineNumber:
|
|
13105
|
+
lineNumber: 194,
|
|
13228
13106
|
columnNumber: 7
|
|
13229
13107
|
}, undefined);
|
|
13230
13108
|
});
|
|
13231
13109
|
Overlay_Overlay.displayName = 'Overlay';
|
|
13232
13110
|
Overlay_Overlay.propTypes = Overlay_propTypes;
|
|
13233
|
-
Overlay_Overlay.defaultProps = Overlay_defaultProps;
|
|
13234
13111
|
/* harmony default export */ const src_Overlay = (Overlay_Overlay);
|
|
13235
13112
|
;// CONCATENATED MODULE: ./src/OverlayTrigger.tsx
|
|
13236
13113
|
var OverlayTrigger_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OverlayTrigger.tsx";
|
|
@@ -13333,12 +13210,8 @@ const OverlayTrigger_propTypes = {
|
|
|
13333
13210
|
*/
|
|
13334
13211
|
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
13212
|
};
|
|
13336
|
-
const OverlayTrigger_defaultProps = {
|
|
13337
|
-
defaultShow: false,
|
|
13338
|
-
trigger: ['hover', 'focus']
|
|
13339
|
-
};
|
|
13340
13213
|
function OverlayTrigger({
|
|
13341
|
-
trigger,
|
|
13214
|
+
trigger = ['hover', 'focus'],
|
|
13342
13215
|
overlay,
|
|
13343
13216
|
children,
|
|
13344
13217
|
popperConfig = {},
|
|
@@ -13432,13 +13305,12 @@ function OverlayTrigger({
|
|
|
13432
13305
|
children: overlay
|
|
13433
13306
|
}, void 0, false, {
|
|
13434
13307
|
fileName: OverlayTrigger_jsxFileName,
|
|
13435
|
-
lineNumber:
|
|
13308
|
+
lineNumber: 297,
|
|
13436
13309
|
columnNumber: 7
|
|
13437
13310
|
}, this)]
|
|
13438
13311
|
}, void 0, true);
|
|
13439
13312
|
}
|
|
13440
13313
|
OverlayTrigger.propTypes = OverlayTrigger_propTypes;
|
|
13441
|
-
OverlayTrigger.defaultProps = OverlayTrigger_defaultProps;
|
|
13442
13314
|
/* harmony default export */ const src_OverlayTrigger = (OverlayTrigger);
|
|
13443
13315
|
;// CONCATENATED MODULE: ./src/PageItem.tsx
|
|
13444
13316
|
var PageItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/PageItem.tsx";
|
|
@@ -13460,17 +13332,12 @@ const PageItem_propTypes = {
|
|
|
13460
13332
|
/** A callback function for when this component is clicked. */
|
|
13461
13333
|
onClick: (prop_types_default()).func
|
|
13462
13334
|
};
|
|
13463
|
-
const PageItem_defaultProps = {
|
|
13464
|
-
active: false,
|
|
13465
|
-
disabled: false,
|
|
13466
|
-
activeLabel: '(current)'
|
|
13467
|
-
};
|
|
13468
13335
|
const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13469
|
-
active,
|
|
13470
|
-
disabled,
|
|
13336
|
+
active = false,
|
|
13337
|
+
disabled = false,
|
|
13471
13338
|
className,
|
|
13472
13339
|
style,
|
|
13473
|
-
activeLabel,
|
|
13340
|
+
activeLabel = '(current)',
|
|
13474
13341
|
children,
|
|
13475
13342
|
...props
|
|
13476
13343
|
}, ref) => {
|
|
@@ -13490,22 +13357,21 @@ const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
13490
13357
|
children: activeLabel
|
|
13491
13358
|
}, void 0, false, {
|
|
13492
13359
|
fileName: PageItem_jsxFileName,
|
|
13493
|
-
lineNumber:
|
|
13360
|
+
lineNumber: 59,
|
|
13494
13361
|
columnNumber: 15
|
|
13495
13362
|
}, undefined)]
|
|
13496
13363
|
}, void 0, true, {
|
|
13497
13364
|
fileName: PageItem_jsxFileName,
|
|
13498
|
-
lineNumber:
|
|
13365
|
+
lineNumber: 56,
|
|
13499
13366
|
columnNumber: 11
|
|
13500
13367
|
}, undefined)
|
|
13501
13368
|
}, void 0, false, {
|
|
13502
13369
|
fileName: PageItem_jsxFileName,
|
|
13503
|
-
lineNumber:
|
|
13370
|
+
lineNumber: 51,
|
|
13504
13371
|
columnNumber: 9
|
|
13505
13372
|
}, undefined);
|
|
13506
13373
|
});
|
|
13507
13374
|
PageItem.propTypes = PageItem_propTypes;
|
|
13508
|
-
PageItem.defaultProps = PageItem_defaultProps;
|
|
13509
13375
|
PageItem.displayName = 'PageItem';
|
|
13510
13376
|
/* harmony default export */ const src_PageItem = (PageItem);
|
|
13511
13377
|
function createButton(name, defaultValue, label = name) {
|
|
@@ -13520,19 +13386,19 @@ function createButton(name, defaultValue, label = name) {
|
|
|
13520
13386
|
children: children || defaultValue
|
|
13521
13387
|
}, void 0, false, {
|
|
13522
13388
|
fileName: PageItem_jsxFileName,
|
|
13523
|
-
lineNumber:
|
|
13389
|
+
lineNumber: 76,
|
|
13524
13390
|
columnNumber: 9
|
|
13525
13391
|
}, this), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
|
|
13526
13392
|
className: "visually-hidden",
|
|
13527
13393
|
children: label
|
|
13528
13394
|
}, void 0, false, {
|
|
13529
13395
|
fileName: PageItem_jsxFileName,
|
|
13530
|
-
lineNumber:
|
|
13396
|
+
lineNumber: 77,
|
|
13531
13397
|
columnNumber: 9
|
|
13532
13398
|
}, this)]
|
|
13533
13399
|
}, void 0, true, {
|
|
13534
13400
|
fileName: PageItem_jsxFileName,
|
|
13535
|
-
lineNumber:
|
|
13401
|
+
lineNumber: 75,
|
|
13536
13402
|
columnNumber: 7
|
|
13537
13403
|
}, this));
|
|
13538
13404
|
Button.displayName = name;
|
|
@@ -13802,14 +13668,6 @@ const ProgressBar_propTypes = {
|
|
|
13802
13668
|
*/
|
|
13803
13669
|
isChild: (prop_types_default()).bool
|
|
13804
13670
|
};
|
|
13805
|
-
const ProgressBar_defaultProps = {
|
|
13806
|
-
min: 0,
|
|
13807
|
-
max: 100,
|
|
13808
|
-
animated: false,
|
|
13809
|
-
isChild: false,
|
|
13810
|
-
visuallyHidden: false,
|
|
13811
|
-
striped: false
|
|
13812
|
-
};
|
|
13813
13671
|
function getPercentage(now, min, max) {
|
|
13814
13672
|
const percentage = (now - min) / (max - min) * 100;
|
|
13815
13673
|
return Math.round(percentage * ROUND_PRECISION) / ROUND_PRECISION;
|
|
@@ -13849,20 +13707,28 @@ function renderProgressBar({
|
|
|
13849
13707
|
children: label
|
|
13850
13708
|
}, void 0, false, {
|
|
13851
13709
|
fileName: ProgressBar_jsxFileName,
|
|
13852
|
-
lineNumber:
|
|
13710
|
+
lineNumber: 165,
|
|
13853
13711
|
columnNumber: 9
|
|
13854
13712
|
}, this) : label
|
|
13855
13713
|
}, void 0, false, {
|
|
13856
13714
|
fileName: ProgressBar_jsxFileName,
|
|
13857
|
-
lineNumber:
|
|
13715
|
+
lineNumber: 150,
|
|
13858
13716
|
columnNumber: 5
|
|
13859
13717
|
}, this);
|
|
13860
13718
|
}
|
|
13861
13719
|
renderProgressBar.propTypes = ProgressBar_propTypes;
|
|
13862
13720
|
const ProgressBar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13863
|
-
isChild,
|
|
13864
|
-
...
|
|
13721
|
+
isChild = false,
|
|
13722
|
+
...rest
|
|
13865
13723
|
}, ref) => {
|
|
13724
|
+
const props = {
|
|
13725
|
+
min: 0,
|
|
13726
|
+
max: 100,
|
|
13727
|
+
animated: false,
|
|
13728
|
+
visuallyHidden: false,
|
|
13729
|
+
striped: false,
|
|
13730
|
+
...rest
|
|
13731
|
+
};
|
|
13866
13732
|
props.bsPrefix = useBootstrapPrefix(props.bsPrefix, 'progress');
|
|
13867
13733
|
if (isChild) {
|
|
13868
13734
|
return renderProgressBar(props, ref);
|
|
@@ -13906,7 +13772,6 @@ const ProgressBar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
13906
13772
|
});
|
|
13907
13773
|
ProgressBar.displayName = 'ProgressBar';
|
|
13908
13774
|
ProgressBar.propTypes = ProgressBar_propTypes;
|
|
13909
|
-
ProgressBar.defaultProps = ProgressBar_defaultProps;
|
|
13910
13775
|
/* harmony default export */ const src_ProgressBar = (ProgressBar);
|
|
13911
13776
|
;// CONCATENATED MODULE: ./src/Ratio.tsx
|
|
13912
13777
|
var Ratio_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Ratio.tsx";
|
|
@@ -13930,9 +13795,6 @@ const Ratio_propTypes = {
|
|
|
13930
13795
|
*/
|
|
13931
13796
|
aspectRatio: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string])
|
|
13932
13797
|
};
|
|
13933
|
-
const Ratio_defaultProps = {
|
|
13934
|
-
aspectRatio: '1x1'
|
|
13935
|
-
};
|
|
13936
13798
|
function toPercent(num) {
|
|
13937
13799
|
if (num <= 0) return '100%';
|
|
13938
13800
|
if (num < 1) return `${num * 100}%`;
|
|
@@ -13942,7 +13804,7 @@ const Ratio = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
13942
13804
|
bsPrefix,
|
|
13943
13805
|
className,
|
|
13944
13806
|
children,
|
|
13945
|
-
aspectRatio,
|
|
13807
|
+
aspectRatio = '1x1',
|
|
13946
13808
|
style,
|
|
13947
13809
|
...props
|
|
13948
13810
|
}, ref) => {
|
|
@@ -13961,12 +13823,11 @@ const Ratio = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
13961
13823
|
children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.only(children)
|
|
13962
13824
|
}, void 0, false, {
|
|
13963
13825
|
fileName: Ratio_jsxFileName,
|
|
13964
|
-
lineNumber:
|
|
13826
|
+
lineNumber: 50,
|
|
13965
13827
|
columnNumber: 7
|
|
13966
13828
|
}, undefined);
|
|
13967
13829
|
});
|
|
13968
13830
|
Ratio.propTypes = Ratio_propTypes;
|
|
13969
|
-
Ratio.defaultProps = Ratio_defaultProps;
|
|
13970
13831
|
/* harmony default export */ const src_Ratio = (Ratio);
|
|
13971
13832
|
;// CONCATENATED MODULE: ./src/Row.tsx
|
|
13972
13833
|
var Row_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Row.tsx";
|
|
@@ -14199,10 +14060,6 @@ const SplitButton_propTypes = {
|
|
|
14199
14060
|
/** @ignore */
|
|
14200
14061
|
size: (prop_types_default()).string
|
|
14201
14062
|
};
|
|
14202
|
-
const SplitButton_defaultProps = {
|
|
14203
|
-
toggleLabel: 'Toggle dropdown',
|
|
14204
|
-
type: 'button'
|
|
14205
|
-
};
|
|
14206
14063
|
|
|
14207
14064
|
/**
|
|
14208
14065
|
* A convenience component for simple or general use split button dropdowns. Renders a
|
|
@@ -14220,8 +14077,8 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
14220
14077
|
size,
|
|
14221
14078
|
variant,
|
|
14222
14079
|
title,
|
|
14223
|
-
type,
|
|
14224
|
-
toggleLabel,
|
|
14080
|
+
type = 'button',
|
|
14081
|
+
toggleLabel = 'Toggle dropdown',
|
|
14225
14082
|
children,
|
|
14226
14083
|
onClick,
|
|
14227
14084
|
href,
|
|
@@ -14247,7 +14104,7 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
14247
14104
|
children: title
|
|
14248
14105
|
}, void 0, false, {
|
|
14249
14106
|
fileName: SplitButton_jsxFileName,
|
|
14250
|
-
lineNumber:
|
|
14107
|
+
lineNumber: 126,
|
|
14251
14108
|
columnNumber: 7
|
|
14252
14109
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
|
|
14253
14110
|
split: true,
|
|
@@ -14261,12 +14118,12 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
14261
14118
|
children: toggleLabel
|
|
14262
14119
|
}, void 0, false, {
|
|
14263
14120
|
fileName: SplitButton_jsxFileName,
|
|
14264
|
-
lineNumber:
|
|
14121
|
+
lineNumber: 146,
|
|
14265
14122
|
columnNumber: 9
|
|
14266
14123
|
}, undefined)
|
|
14267
14124
|
}, void 0, false, {
|
|
14268
14125
|
fileName: SplitButton_jsxFileName,
|
|
14269
|
-
lineNumber:
|
|
14126
|
+
lineNumber: 138,
|
|
14270
14127
|
columnNumber: 7
|
|
14271
14128
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
|
|
14272
14129
|
role: menuRole,
|
|
@@ -14276,16 +14133,15 @@ const SplitButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
14276
14133
|
children: children
|
|
14277
14134
|
}, void 0, false, {
|
|
14278
14135
|
fileName: SplitButton_jsxFileName,
|
|
14279
|
-
lineNumber:
|
|
14136
|
+
lineNumber: 149,
|
|
14280
14137
|
columnNumber: 7
|
|
14281
14138
|
}, undefined)]
|
|
14282
14139
|
}, void 0, true, {
|
|
14283
14140
|
fileName: SplitButton_jsxFileName,
|
|
14284
|
-
lineNumber:
|
|
14141
|
+
lineNumber: 125,
|
|
14285
14142
|
columnNumber: 5
|
|
14286
14143
|
}, undefined));
|
|
14287
14144
|
SplitButton.propTypes = SplitButton_propTypes;
|
|
14288
|
-
SplitButton.defaultProps = SplitButton_defaultProps;
|
|
14289
14145
|
SplitButton.displayName = 'SplitButton';
|
|
14290
14146
|
/* harmony default export */ const src_SplitButton = (SplitButton);
|
|
14291
14147
|
;// CONCATENATED MODULE: ./src/SSRProvider.ts
|
|
@@ -14998,11 +14854,6 @@ const Tabs_propTypes = {
|
|
|
14998
14854
|
*/
|
|
14999
14855
|
justify: (prop_types_default()).bool
|
|
15000
14856
|
};
|
|
15001
|
-
const Tabs_defaultProps = {
|
|
15002
|
-
variant: 'tabs',
|
|
15003
|
-
mountOnEnter: false,
|
|
15004
|
-
unmountOnExit: false
|
|
15005
|
-
};
|
|
15006
14857
|
function getDefaultActiveKey(children) {
|
|
15007
14858
|
let defaultActiveKey;
|
|
15008
14859
|
forEach(children, child => {
|
|
@@ -15038,12 +14889,12 @@ function renderTab(child) {
|
|
|
15038
14889
|
children: title
|
|
15039
14890
|
}, void 0, false, {
|
|
15040
14891
|
fileName: Tabs_jsxFileName,
|
|
15041
|
-
lineNumber:
|
|
14892
|
+
lineNumber: 116,
|
|
15042
14893
|
columnNumber: 7
|
|
15043
14894
|
}, this)
|
|
15044
14895
|
}, void 0, false, {
|
|
15045
14896
|
fileName: Tabs_jsxFileName,
|
|
15046
|
-
lineNumber:
|
|
14897
|
+
lineNumber: 115,
|
|
15047
14898
|
columnNumber: 5
|
|
15048
14899
|
}, this);
|
|
15049
14900
|
}
|
|
@@ -15052,8 +14903,9 @@ const Tabs_Tabs = props => {
|
|
|
15052
14903
|
id,
|
|
15053
14904
|
onSelect,
|
|
15054
14905
|
transition,
|
|
15055
|
-
mountOnEnter,
|
|
15056
|
-
unmountOnExit,
|
|
14906
|
+
mountOnEnter = false,
|
|
14907
|
+
unmountOnExit = false,
|
|
14908
|
+
variant = 'tabs',
|
|
15057
14909
|
children,
|
|
15058
14910
|
activeKey = getDefaultActiveKey(children),
|
|
15059
14911
|
...controlledProps
|
|
@@ -15071,10 +14923,11 @@ const Tabs_Tabs = props => {
|
|
|
15071
14923
|
...controlledProps,
|
|
15072
14924
|
role: "tablist",
|
|
15073
14925
|
as: "ul",
|
|
14926
|
+
variant: variant,
|
|
15074
14927
|
children: map(children, renderTab)
|
|
15075
14928
|
}, void 0, false, {
|
|
15076
14929
|
fileName: Tabs_jsxFileName,
|
|
15077
|
-
lineNumber:
|
|
14930
|
+
lineNumber: 155,
|
|
15078
14931
|
columnNumber: 7
|
|
15079
14932
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(TabContent, {
|
|
15080
14933
|
children: map(children, child => {
|
|
@@ -15089,23 +14942,22 @@ const Tabs_Tabs = props => {
|
|
|
15089
14942
|
...childProps
|
|
15090
14943
|
}, void 0, false, {
|
|
15091
14944
|
fileName: Tabs_jsxFileName,
|
|
15092
|
-
lineNumber:
|
|
14945
|
+
lineNumber: 168,
|
|
15093
14946
|
columnNumber: 18
|
|
15094
14947
|
}, undefined);
|
|
15095
14948
|
})
|
|
15096
14949
|
}, void 0, false, {
|
|
15097
14950
|
fileName: Tabs_jsxFileName,
|
|
15098
|
-
lineNumber:
|
|
14951
|
+
lineNumber: 159,
|
|
15099
14952
|
columnNumber: 7
|
|
15100
14953
|
}, undefined)]
|
|
15101
14954
|
}, void 0, true, {
|
|
15102
14955
|
fileName: Tabs_jsxFileName,
|
|
15103
|
-
lineNumber:
|
|
14956
|
+
lineNumber: 147,
|
|
15104
14957
|
columnNumber: 5
|
|
15105
14958
|
}, undefined);
|
|
15106
14959
|
};
|
|
15107
14960
|
Tabs_Tabs.propTypes = Tabs_propTypes;
|
|
15108
|
-
Tabs_Tabs.defaultProps = Tabs_defaultProps;
|
|
15109
14961
|
Tabs_Tabs.displayName = 'Tabs';
|
|
15110
14962
|
/* harmony default export */ const src_Tabs = (Tabs_Tabs);
|
|
15111
14963
|
;// CONCATENATED MODULE: ./src/ToastFade.tsx
|
|
@@ -15164,15 +15016,11 @@ const ToastHeader_propTypes = {
|
|
|
15164
15016
|
*/
|
|
15165
15017
|
closeButton: (prop_types_default()).bool
|
|
15166
15018
|
};
|
|
15167
|
-
const ToastHeader_defaultProps = {
|
|
15168
|
-
closeLabel: 'Close',
|
|
15169
|
-
closeButton: true
|
|
15170
|
-
};
|
|
15171
15019
|
const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
15172
15020
|
bsPrefix,
|
|
15173
|
-
closeLabel,
|
|
15021
|
+
closeLabel = 'Close',
|
|
15174
15022
|
closeVariant,
|
|
15175
|
-
closeButton,
|
|
15023
|
+
closeButton = true,
|
|
15176
15024
|
className,
|
|
15177
15025
|
children,
|
|
15178
15026
|
...props
|
|
@@ -15193,18 +15041,17 @@ const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
|
|
|
15193
15041
|
"data-dismiss": "toast"
|
|
15194
15042
|
}, void 0, false, {
|
|
15195
15043
|
fileName: ToastHeader_jsxFileName,
|
|
15196
|
-
lineNumber:
|
|
15044
|
+
lineNumber: 67,
|
|
15197
15045
|
columnNumber: 11
|
|
15198
15046
|
}, undefined)]
|
|
15199
15047
|
}, void 0, true, {
|
|
15200
15048
|
fileName: ToastHeader_jsxFileName,
|
|
15201
|
-
lineNumber:
|
|
15049
|
+
lineNumber: 63,
|
|
15202
15050
|
columnNumber: 7
|
|
15203
15051
|
}, undefined);
|
|
15204
15052
|
});
|
|
15205
15053
|
ToastHeader.displayName = 'ToastHeader';
|
|
15206
15054
|
ToastHeader.propTypes = ToastHeader_propTypes;
|
|
15207
|
-
ToastHeader.defaultProps = ToastHeader_defaultProps;
|
|
15208
15055
|
/* harmony default export */ const src_ToastHeader = (ToastHeader);
|
|
15209
15056
|
;// CONCATENATED MODULE: ./src/ToastBody.tsx
|
|
15210
15057
|
|
|
@@ -15347,9 +15194,7 @@ const ToastContainer_propTypes = {
|
|
|
15347
15194
|
*/
|
|
15348
15195
|
position: prop_types_default().oneOf(['top-start', 'top-center', 'top-end', 'middle-start', 'middle-center', 'middle-end', 'bottom-start', 'bottom-center', 'bottom-end']),
|
|
15349
15196
|
/**
|
|
15350
|
-
*
|
|
15351
|
-
*
|
|
15352
|
-
* @default 'absolute'
|
|
15197
|
+
* Specify the positioning method for the container.
|
|
15353
15198
|
*/
|
|
15354
15199
|
containerPosition: (prop_types_default()).string
|
|
15355
15200
|
};
|
|
@@ -15367,7 +15212,7 @@ const positionClasses = {
|
|
|
15367
15212
|
const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
15368
15213
|
bsPrefix,
|
|
15369
15214
|
position,
|
|
15370
|
-
containerPosition
|
|
15215
|
+
containerPosition,
|
|
15371
15216
|
className,
|
|
15372
15217
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
15373
15218
|
as: Component = 'div',
|
|
@@ -15377,10 +15222,10 @@ const ToastContainer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs
|
|
|
15377
15222
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
15378
15223
|
ref: ref,
|
|
15379
15224
|
...props,
|
|
15380
|
-
className: classnames_default()(bsPrefix, position && [containerPosition
|
|
15225
|
+
className: classnames_default()(bsPrefix, position && positionClasses[position], containerPosition && `position-${containerPosition}`, className)
|
|
15381
15226
|
}, void 0, false, {
|
|
15382
15227
|
fileName: ToastContainer_jsxFileName,
|
|
15383
|
-
lineNumber:
|
|
15228
|
+
lineNumber: 83,
|
|
15384
15229
|
columnNumber: 7
|
|
15385
15230
|
}, undefined);
|
|
15386
15231
|
});
|
|
@@ -15533,17 +15378,14 @@ const ToggleButtonGroup_propTypes = {
|
|
|
15533
15378
|
/** Make the set of Buttons appear vertically stacked. */
|
|
15534
15379
|
vertical: (prop_types_default()).bool
|
|
15535
15380
|
};
|
|
15536
|
-
const ToggleButtonGroup_defaultProps = {
|
|
15537
|
-
type: 'radio',
|
|
15538
|
-
vertical: false
|
|
15539
|
-
};
|
|
15540
15381
|
const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
|
|
15541
15382
|
const {
|
|
15542
15383
|
children,
|
|
15543
|
-
type,
|
|
15384
|
+
type = 'radio',
|
|
15544
15385
|
name,
|
|
15545
15386
|
value,
|
|
15546
15387
|
onChange,
|
|
15388
|
+
vertical = false,
|
|
15547
15389
|
...controlledProps
|
|
15548
15390
|
} = useUncontrolled(props, {
|
|
15549
15391
|
value: 'onChange'
|
|
@@ -15569,6 +15411,7 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
15569
15411
|
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ButtonGroup, {
|
|
15570
15412
|
...controlledProps,
|
|
15571
15413
|
ref: ref,
|
|
15414
|
+
vertical: vertical,
|
|
15572
15415
|
children: map(children, child => {
|
|
15573
15416
|
const values = getValues();
|
|
15574
15417
|
const {
|
|
@@ -15585,12 +15428,11 @@ const ToggleButtonGroup = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
15585
15428
|
})
|
|
15586
15429
|
}, void 0, false, {
|
|
15587
15430
|
fileName: ToggleButtonGroup_jsxFileName,
|
|
15588
|
-
lineNumber:
|
|
15431
|
+
lineNumber: 125,
|
|
15589
15432
|
columnNumber: 5
|
|
15590
15433
|
}, undefined);
|
|
15591
15434
|
});
|
|
15592
15435
|
ToggleButtonGroup.propTypes = ToggleButtonGroup_propTypes;
|
|
15593
|
-
ToggleButtonGroup.defaultProps = ToggleButtonGroup_defaultProps;
|
|
15594
15436
|
/* harmony default export */ const src_ToggleButtonGroup = (Object.assign(ToggleButtonGroup, {
|
|
15595
15437
|
Button: src_ToggleButton
|
|
15596
15438
|
}));
|
|
@@ -15640,19 +15482,16 @@ const Tooltip_propTypes = {
|
|
|
15640
15482
|
/** @private */
|
|
15641
15483
|
show: (prop_types_default()).any
|
|
15642
15484
|
};
|
|
15643
|
-
const Tooltip_defaultProps = {
|
|
15644
|
-
placement: 'right'
|
|
15645
|
-
};
|
|
15646
15485
|
const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
15647
15486
|
bsPrefix,
|
|
15648
|
-
placement,
|
|
15487
|
+
placement = 'right',
|
|
15649
15488
|
className,
|
|
15650
15489
|
style,
|
|
15651
15490
|
children,
|
|
15652
15491
|
arrowProps,
|
|
15653
15492
|
hasDoneInitialMeasure,
|
|
15654
15493
|
popper,
|
|
15655
|
-
show
|
|
15494
|
+
show,
|
|
15656
15495
|
...props
|
|
15657
15496
|
}, ref) => {
|
|
15658
15497
|
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
@@ -15660,7 +15499,7 @@ const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
15660
15499
|
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
15661
15500
|
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
15662
15501
|
let computedStyle = style;
|
|
15663
|
-
if (!hasDoneInitialMeasure) {
|
|
15502
|
+
if (show && !hasDoneInitialMeasure) {
|
|
15664
15503
|
computedStyle = {
|
|
15665
15504
|
...style,
|
|
15666
15505
|
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
@@ -15678,24 +15517,23 @@ const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
15678
15517
|
...arrowProps
|
|
15679
15518
|
}, void 0, false, {
|
|
15680
15519
|
fileName: Tooltip_jsxFileName,
|
|
15681
|
-
lineNumber:
|
|
15520
|
+
lineNumber: 119,
|
|
15682
15521
|
columnNumber: 9
|
|
15683
15522
|
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
15684
15523
|
className: `${bsPrefix}-inner`,
|
|
15685
15524
|
children: children
|
|
15686
15525
|
}, void 0, false, {
|
|
15687
15526
|
fileName: Tooltip_jsxFileName,
|
|
15688
|
-
lineNumber:
|
|
15527
|
+
lineNumber: 120,
|
|
15689
15528
|
columnNumber: 9
|
|
15690
15529
|
}, undefined)]
|
|
15691
15530
|
}, void 0, true, {
|
|
15692
15531
|
fileName: Tooltip_jsxFileName,
|
|
15693
|
-
lineNumber:
|
|
15532
|
+
lineNumber: 111,
|
|
15694
15533
|
columnNumber: 7
|
|
15695
15534
|
}, undefined);
|
|
15696
15535
|
});
|
|
15697
15536
|
Tooltip.propTypes = Tooltip_propTypes;
|
|
15698
|
-
Tooltip.defaultProps = Tooltip_defaultProps;
|
|
15699
15537
|
Tooltip.displayName = 'Tooltip';
|
|
15700
15538
|
/* harmony default export */ const src_Tooltip = (Tooltip);
|
|
15701
15539
|
;// CONCATENATED MODULE: ./src/index.tsx
|