react-bootstrap 2.0.0-rc.0 → 2.0.2
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/NavbarOffcanvas/package.json +7 -0
- package/README.md +1 -1
- package/cjs/AccordionButton.js +1 -1
- package/cjs/BootstrapModalManager.js +1 -1
- package/cjs/Col.js +1 -1
- package/cjs/DropdownMenu.js +1 -1
- package/cjs/ElementChildren.js +1 -1
- package/cjs/FormSelect.d.ts +1 -1
- package/cjs/Image.js +1 -1
- package/cjs/ListGroup.d.ts +1 -0
- package/cjs/ListGroup.js +2 -1
- package/cjs/Navbar.d.ts +2 -1
- package/cjs/Navbar.js +5 -2
- package/cjs/NavbarOffcanvas.d.ts +4 -0
- package/cjs/NavbarOffcanvas.js +31 -0
- package/cjs/Offcanvas.js +10 -2
- package/cjs/PageItem.js +1 -1
- package/cjs/ThemeProvider.js +3 -2
- package/cjs/Toast.d.ts +1 -1
- package/cjs/ToastContext.d.ts +1 -1
- package/cjs/createUtilityClasses.js +2 -2
- package/cjs/helpers.js +1 -1
- package/cjs/index.js +1 -1
- package/dist/react-bootstrap.js +606 -571
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/FormSelect.d.ts +1 -1
- package/esm/ListGroup.d.ts +1 -0
- package/esm/ListGroup.js +2 -1
- package/esm/Navbar.d.ts +2 -1
- package/esm/Navbar.js +4 -2
- package/esm/NavbarOffcanvas.d.ts +4 -0
- package/esm/NavbarOffcanvas.js +15 -0
- package/esm/Offcanvas.js +10 -3
- package/esm/Toast.d.ts +1 -1
- package/esm/ToastContext.d.ts +1 -1
- package/esm/ToastContext.js +1 -2
- package/package.json +2 -2
- package/cjs/AbstractNav.d.ts +0 -15
- package/cjs/AbstractNavItem.d.ts +0 -19
- package/cjs/AccordionToggle.d.ts +0 -11
- package/cjs/CardColumns.d.ts +0 -2
- package/cjs/CardContext.d.ts +0 -6
- package/cjs/CardDeck.d.ts +0 -2
- package/cjs/FormFile.d.ts +0 -23
- package/cjs/FormFileInput.d.ts +0 -10
- package/cjs/FormFileLabel.d.ts +0 -7
- package/cjs/Jumbotron.d.ts +0 -7
- package/cjs/Media.d.ts +0 -8
- package/cjs/PopoverContent.d.ts +0 -5
- package/cjs/PopoverTitle.d.ts +0 -5
- package/cjs/ResponsiveEmbed.d.ts +0 -9
- package/cjs/SafeAnchor.d.ts +0 -17
- package/cjs/SelectableContext.d.ts +0 -5
- package/cjs/TabContext.d.ts +0 -12
- package/cjs/usePopperMarginModifiers.d.ts +0 -4
- package/esm/AbstractNav.d.ts +0 -15
- package/esm/AbstractNavItem.d.ts +0 -19
- package/esm/AccordionToggle.d.ts +0 -11
- package/esm/CardColumns.d.ts +0 -2
- package/esm/CardContext.d.ts +0 -6
- package/esm/CardDeck.d.ts +0 -2
- package/esm/FormFile.d.ts +0 -23
- package/esm/FormFileInput.d.ts +0 -10
- package/esm/FormFileLabel.d.ts +0 -7
- package/esm/Jumbotron.d.ts +0 -7
- package/esm/Media.d.ts +0 -8
- package/esm/PopoverContent.d.ts +0 -5
- package/esm/PopoverTitle.d.ts +0 -5
- package/esm/ResponsiveEmbed.d.ts +0 -9
- package/esm/SafeAnchor.d.ts +0 -17
- package/esm/SelectableContext.d.ts +0 -5
- package/esm/TabContext.d.ts +0 -12
- package/esm/usePopperMarginModifiers.d.ts +0 -4
package/dist/react-bootstrap.js
CHANGED
|
@@ -715,7 +715,7 @@ if (true) {
|
|
|
715
715
|
|
|
716
716
|
/***/ }),
|
|
717
717
|
|
|
718
|
-
/***/
|
|
718
|
+
/***/ 955:
|
|
719
719
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
720
720
|
|
|
721
721
|
"use strict";
|
|
@@ -810,7 +810,7 @@ exports.jsxs = q;
|
|
|
810
810
|
|
|
811
811
|
|
|
812
812
|
if (true) {
|
|
813
|
-
module.exports = __webpack_require__(
|
|
813
|
+
module.exports = __webpack_require__(955);
|
|
814
814
|
} else {}
|
|
815
815
|
|
|
816
816
|
/***/ }),
|
|
@@ -10931,6 +10931,11 @@ const ListGroup_propTypes = {
|
|
|
10931
10931
|
*/
|
|
10932
10932
|
horizontal: prop_types_default().oneOf([true, 'sm', 'md', 'lg', 'xl', 'xxl']),
|
|
10933
10933
|
|
|
10934
|
+
/**
|
|
10935
|
+
* Generate numbered list items.
|
|
10936
|
+
*/
|
|
10937
|
+
numbered: (prop_types_default()).bool,
|
|
10938
|
+
|
|
10934
10939
|
/**
|
|
10935
10940
|
* You can use a custom element type for this component.
|
|
10936
10941
|
*/
|
|
@@ -10942,6 +10947,7 @@ const ListGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
10942
10947
|
bsPrefix: initialBsPrefix,
|
|
10943
10948
|
variant,
|
|
10944
10949
|
horizontal,
|
|
10950
|
+
numbered,
|
|
10945
10951
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
10946
10952
|
as = 'div',
|
|
10947
10953
|
...controlledProps
|
|
@@ -10960,10 +10966,10 @@ const ListGroup = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
10960
10966
|
ref: ref,
|
|
10961
10967
|
...controlledProps,
|
|
10962
10968
|
as: as,
|
|
10963
|
-
className: classnames_default()(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`)
|
|
10969
|
+
className: classnames_default()(className, bsPrefix, variant && `${bsPrefix}-${variant}`, horizontalVariant && `${bsPrefix}-${horizontalVariant}`, numbered && `${bsPrefix}-numbered`)
|
|
10964
10970
|
}, void 0, false, {
|
|
10965
10971
|
fileName: ListGroup_jsxFileName,
|
|
10966
|
-
lineNumber:
|
|
10972
|
+
lineNumber: 81,
|
|
10967
10973
|
columnNumber: 7
|
|
10968
10974
|
}, undefined);
|
|
10969
10975
|
});
|
|
@@ -12706,14 +12712,11 @@ NavbarToggle.displayName = 'NavbarToggle';
|
|
|
12706
12712
|
NavbarToggle.propTypes = NavbarToggle_propTypes;
|
|
12707
12713
|
NavbarToggle.defaultProps = NavbarToggle_defaultProps;
|
|
12708
12714
|
/* harmony default export */ const src_NavbarToggle = (NavbarToggle);
|
|
12709
|
-
;// CONCATENATED MODULE: ./src/
|
|
12710
|
-
var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Navbar.tsx";
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12715
|
+
;// CONCATENATED MODULE: ./src/OffcanvasBody.tsx
|
|
12716
12716
|
|
|
12717
|
+
/* harmony default export */ const OffcanvasBody = (createWithBsPrefix('offcanvas-body'));
|
|
12718
|
+
;// CONCATENATED MODULE: ./src/OffcanvasToggling.tsx
|
|
12719
|
+
var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasToggling.tsx";
|
|
12717
12720
|
|
|
12718
12721
|
|
|
12719
12722
|
|
|
@@ -12721,431 +12724,126 @@ var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/s
|
|
|
12721
12724
|
|
|
12722
12725
|
|
|
12723
12726
|
|
|
12724
|
-
const NavbarText = createWithBsPrefix('navbar-text', {
|
|
12725
|
-
Component: 'span'
|
|
12726
|
-
});
|
|
12727
|
-
const Navbar_propTypes = {
|
|
12728
|
-
/** @default 'navbar' */
|
|
12729
|
-
bsPrefix: (prop_types_default()).string,
|
|
12730
12727
|
|
|
12728
|
+
const OffcanvasToggling_propTypes = {
|
|
12731
12729
|
/**
|
|
12732
|
-
*
|
|
12733
|
-
* Use in combination with the `bg` prop, `background-color` utilities,
|
|
12734
|
-
* or your own background styles.
|
|
12735
|
-
*
|
|
12736
|
-
* @type {('light'|'dark')}
|
|
12730
|
+
* Show the component; triggers the fade in or fade out animation
|
|
12737
12731
|
*/
|
|
12738
|
-
|
|
12732
|
+
in: (prop_types_default()).bool,
|
|
12739
12733
|
|
|
12740
12734
|
/**
|
|
12741
|
-
*
|
|
12742
|
-
* When `true` the Navbar will always be expanded regardless of screen size.
|
|
12735
|
+
* Wait until the first "enter" transition to mount the component (add it to the DOM)
|
|
12743
12736
|
*/
|
|
12744
|
-
|
|
12737
|
+
mountOnEnter: (prop_types_default()).bool,
|
|
12745
12738
|
|
|
12746
12739
|
/**
|
|
12747
|
-
*
|
|
12748
|
-
* `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
|
|
12749
|
-
*
|
|
12750
|
-
* Pairs nicely with the `variant` prop.
|
|
12740
|
+
* Unmount the component (remove it from the DOM) when it is faded out
|
|
12751
12741
|
*/
|
|
12752
|
-
|
|
12742
|
+
unmountOnExit: (prop_types_default()).bool,
|
|
12753
12743
|
|
|
12754
12744
|
/**
|
|
12755
|
-
*
|
|
12756
|
-
*
|
|
12745
|
+
* Run the fade in animation when the component mounts, if it is initially
|
|
12746
|
+
* shown
|
|
12757
12747
|
*/
|
|
12758
|
-
|
|
12748
|
+
appear: (prop_types_default()).bool,
|
|
12759
12749
|
|
|
12760
12750
|
/**
|
|
12761
|
-
*
|
|
12762
|
-
*
|
|
12763
|
-
*
|
|
12764
|
-
* __Not supported in <= IE11 and other older browsers without a polyfill__
|
|
12751
|
+
* Duration of the fade animation in milliseconds, to ensure that finishing
|
|
12752
|
+
* callbacks are fired even if the original browser transition end events are
|
|
12753
|
+
* canceled
|
|
12765
12754
|
*/
|
|
12766
|
-
|
|
12755
|
+
timeout: (prop_types_default()).number,
|
|
12767
12756
|
|
|
12768
12757
|
/**
|
|
12769
|
-
*
|
|
12758
|
+
* Callback fired before the component fades in
|
|
12770
12759
|
*/
|
|
12771
|
-
|
|
12760
|
+
onEnter: (prop_types_default()).func,
|
|
12772
12761
|
|
|
12773
12762
|
/**
|
|
12774
|
-
*
|
|
12775
|
-
* a `<Navbar.Toggle>` is clicked and called with the new `expanded`
|
|
12776
|
-
* boolean value.
|
|
12777
|
-
*
|
|
12778
|
-
* @controllable expanded
|
|
12763
|
+
* Callback fired after the component starts to fade in
|
|
12779
12764
|
*/
|
|
12780
|
-
|
|
12765
|
+
onEntering: (prop_types_default()).func,
|
|
12781
12766
|
|
|
12782
12767
|
/**
|
|
12783
|
-
*
|
|
12784
|
-
* be used to execute complex closing or other miscellaneous actions desired
|
|
12785
|
-
* after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
|
|
12786
|
-
* descendants exist. The callback is called with an eventKey, which is a
|
|
12787
|
-
* prop from the selected `<Nav>` descendant, and an event.
|
|
12788
|
-
*
|
|
12789
|
-
* ```js
|
|
12790
|
-
* function (
|
|
12791
|
-
* eventKey: mixed,
|
|
12792
|
-
* event?: SyntheticEvent
|
|
12793
|
-
* )
|
|
12794
|
-
* ```
|
|
12795
|
-
*
|
|
12796
|
-
* For basic closing behavior after all `<Nav>` descendant onSelect events in
|
|
12797
|
-
* mobile viewports, try using collapseOnSelect.
|
|
12798
|
-
*
|
|
12799
|
-
* Note: If you are manually closing the navbar using this `OnSelect` prop,
|
|
12800
|
-
* ensure that you are setting `expanded` to false and not *toggling* between
|
|
12801
|
-
* true and false.
|
|
12768
|
+
* Callback fired after the has component faded in
|
|
12802
12769
|
*/
|
|
12803
|
-
|
|
12770
|
+
onEntered: (prop_types_default()).func,
|
|
12804
12771
|
|
|
12805
12772
|
/**
|
|
12806
|
-
*
|
|
12807
|
-
* child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
|
|
12808
|
-
*
|
|
12809
|
-
* Manually controlling `expanded` via the onSelect callback is recommended instead,
|
|
12810
|
-
* for more complex operations that need to be executed after
|
|
12811
|
-
* the `select` event of `<Nav>` descendants.
|
|
12773
|
+
* Callback fired before the component fades out
|
|
12812
12774
|
*/
|
|
12813
|
-
|
|
12775
|
+
onExit: (prop_types_default()).func,
|
|
12814
12776
|
|
|
12815
12777
|
/**
|
|
12816
|
-
*
|
|
12817
|
-
*
|
|
12818
|
-
* @controllable onToggle
|
|
12778
|
+
* Callback fired after the component starts to fade out
|
|
12819
12779
|
*/
|
|
12820
|
-
|
|
12780
|
+
onExiting: (prop_types_default()).func,
|
|
12821
12781
|
|
|
12822
12782
|
/**
|
|
12823
|
-
*
|
|
12824
|
-
* Navbars whose `as` is something other than `<nav>`.
|
|
12825
|
-
*
|
|
12826
|
-
* @default 'navigation'
|
|
12783
|
+
* Callback fired after the component has faded out
|
|
12827
12784
|
*/
|
|
12828
|
-
|
|
12785
|
+
onExited: (prop_types_default()).func
|
|
12829
12786
|
};
|
|
12830
|
-
const
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12787
|
+
const OffcanvasToggling_defaultProps = {
|
|
12788
|
+
in: false,
|
|
12789
|
+
mountOnEnter: false,
|
|
12790
|
+
unmountOnExit: false,
|
|
12791
|
+
appear: false
|
|
12834
12792
|
};
|
|
12835
|
-
const
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
12855
|
-
const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
12856
|
-
onSelect == null ? void 0 : onSelect(...args);
|
|
12857
|
-
|
|
12858
|
-
if (collapseOnSelect && expanded) {
|
|
12859
|
-
onToggle == null ? void 0 : onToggle(false);
|
|
12860
|
-
}
|
|
12861
|
-
}, [onSelect, collapseOnSelect, expanded, onToggle]); // will result in some false positives but that seems better
|
|
12862
|
-
// than false negatives. strict `undefined` check allows explicit
|
|
12863
|
-
// "nulling" of the role if the user really doesn't want one
|
|
12864
|
-
|
|
12865
|
-
if (controlledProps.role === undefined && Component !== 'nav') {
|
|
12866
|
-
controlledProps.role = 'navigation';
|
|
12867
|
-
}
|
|
12868
|
-
|
|
12869
|
-
let expandClass = `${bsPrefix}-expand`;
|
|
12870
|
-
if (typeof expand === 'string') expandClass = `${expandClass}-${expand}`;
|
|
12871
|
-
const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
12872
|
-
onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
|
|
12873
|
-
bsPrefix,
|
|
12874
|
-
expanded: !!expanded
|
|
12875
|
-
}), [bsPrefix, expanded, onToggle]);
|
|
12876
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
|
|
12877
|
-
value: navbarContext,
|
|
12878
|
-
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
|
|
12879
|
-
value: handleCollapse,
|
|
12880
|
-
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
12881
|
-
ref: ref,
|
|
12882
|
-
...controlledProps,
|
|
12883
|
-
className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
12884
|
-
}, void 0, false, {
|
|
12885
|
-
fileName: Navbar_jsxFileName,
|
|
12886
|
-
lineNumber: 199,
|
|
12887
|
-
columnNumber: 11
|
|
12888
|
-
}, undefined)
|
|
12889
|
-
}, void 0, false, {
|
|
12890
|
-
fileName: Navbar_jsxFileName,
|
|
12891
|
-
lineNumber: 198,
|
|
12892
|
-
columnNumber: 9
|
|
12893
|
-
}, undefined)
|
|
12793
|
+
const transitionStyles = {
|
|
12794
|
+
[ENTERING]: 'show',
|
|
12795
|
+
[ENTERED]: 'show'
|
|
12796
|
+
};
|
|
12797
|
+
const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
12798
|
+
bsPrefix,
|
|
12799
|
+
className,
|
|
12800
|
+
children,
|
|
12801
|
+
...props
|
|
12802
|
+
}, ref) => {
|
|
12803
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
12804
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
12805
|
+
ref: ref,
|
|
12806
|
+
addEndListener: transitionEndListener,
|
|
12807
|
+
...props,
|
|
12808
|
+
childRef: children.ref,
|
|
12809
|
+
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, { ...innerProps,
|
|
12810
|
+
className: classnames_default()(className, children.props.className, (status === ENTERING || status === EXITING) && `${bsPrefix}-toggling`, transitionStyles[status])
|
|
12811
|
+
})
|
|
12894
12812
|
}, void 0, false, {
|
|
12895
|
-
fileName:
|
|
12896
|
-
lineNumber:
|
|
12897
|
-
columnNumber:
|
|
12813
|
+
fileName: OffcanvasToggling_jsxFileName,
|
|
12814
|
+
lineNumber: 102,
|
|
12815
|
+
columnNumber: 5
|
|
12898
12816
|
}, undefined);
|
|
12899
12817
|
});
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
/* harmony default export */ const
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
Collapse: src_NavbarCollapse,
|
|
12907
|
-
Text: NavbarText
|
|
12908
|
-
}));
|
|
12909
|
-
;// CONCATENATED MODULE: ./src/NavDropdown.tsx
|
|
12910
|
-
var NavDropdown_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavDropdown.tsx";
|
|
12911
|
-
|
|
12818
|
+
OffcanvasToggling.propTypes = OffcanvasToggling_propTypes;
|
|
12819
|
+
OffcanvasToggling.defaultProps = OffcanvasToggling_defaultProps;
|
|
12820
|
+
OffcanvasToggling.displayName = 'OffcanvasToggling';
|
|
12821
|
+
/* harmony default export */ const src_OffcanvasToggling = (OffcanvasToggling);
|
|
12822
|
+
;// CONCATENATED MODULE: ./src/OffcanvasHeader.tsx
|
|
12823
|
+
var OffcanvasHeader_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasHeader.tsx";
|
|
12912
12824
|
|
|
12913
12825
|
|
|
12914
12826
|
|
|
12915
12827
|
|
|
12916
12828
|
|
|
12917
12829
|
|
|
12918
|
-
const
|
|
12830
|
+
const OffcanvasHeader_propTypes = {
|
|
12919
12831
|
/**
|
|
12920
|
-
*
|
|
12921
|
-
* @type {string}
|
|
12832
|
+
* @default 'offcanvas-header'
|
|
12922
12833
|
*/
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
/** An `onClick` handler passed to the Toggle component */
|
|
12926
|
-
onClick: (prop_types_default()).func,
|
|
12927
|
-
|
|
12928
|
-
/** The content of the non-toggle Button. */
|
|
12929
|
-
title: (prop_types_default()).node.isRequired,
|
|
12930
|
-
|
|
12931
|
-
/** Disables the toggle NavLink */
|
|
12932
|
-
disabled: (prop_types_default()).bool,
|
|
12933
|
-
|
|
12934
|
-
/** Style the toggle NavLink as active */
|
|
12935
|
-
active: (prop_types_default()).bool,
|
|
12936
|
-
|
|
12937
|
-
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
12938
|
-
menuRole: (prop_types_default()).string,
|
|
12939
|
-
|
|
12940
|
-
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
12941
|
-
renderMenuOnMount: (prop_types_default()).bool,
|
|
12834
|
+
bsPrefix: (prop_types_default()).string,
|
|
12942
12835
|
|
|
12943
12836
|
/**
|
|
12944
|
-
*
|
|
12945
|
-
*
|
|
12946
|
-
*
|
|
12837
|
+
* Provides an accessible label for the close
|
|
12838
|
+
* button. It is used for Assistive Technology when the label text is not
|
|
12839
|
+
* readable.
|
|
12947
12840
|
*/
|
|
12948
|
-
|
|
12841
|
+
closeLabel: (prop_types_default()).string,
|
|
12949
12842
|
|
|
12950
12843
|
/**
|
|
12951
|
-
*
|
|
12952
|
-
*
|
|
12953
|
-
* Omitting this will use the default light color.
|
|
12844
|
+
* Sets the variant for close button.
|
|
12954
12845
|
*/
|
|
12955
|
-
|
|
12956
|
-
|
|
12957
|
-
/** @ignore */
|
|
12958
|
-
bsPrefix: (prop_types_default()).string
|
|
12959
|
-
};
|
|
12960
|
-
const NavDropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
12961
|
-
id,
|
|
12962
|
-
title,
|
|
12963
|
-
children,
|
|
12964
|
-
bsPrefix,
|
|
12965
|
-
className,
|
|
12966
|
-
rootCloseEvent,
|
|
12967
|
-
menuRole,
|
|
12968
|
-
disabled,
|
|
12969
|
-
active,
|
|
12970
|
-
renderMenuOnMount,
|
|
12971
|
-
menuVariant,
|
|
12972
|
-
...props
|
|
12973
|
-
}, ref) => {
|
|
12974
|
-
/* NavItem has no additional logic, it's purely presentational. Can set nav item class here to support "as" */
|
|
12975
|
-
const navItemPrefix = useBootstrapPrefix(undefined, 'nav-item');
|
|
12976
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
|
|
12977
|
-
ref: ref,
|
|
12978
|
-
...props,
|
|
12979
|
-
className: classnames_default()(className, navItemPrefix),
|
|
12980
|
-
children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
|
|
12981
|
-
id: id,
|
|
12982
|
-
eventKey: null,
|
|
12983
|
-
active: active,
|
|
12984
|
-
disabled: disabled,
|
|
12985
|
-
childBsPrefix: bsPrefix,
|
|
12986
|
-
as: src_NavLink,
|
|
12987
|
-
children: title
|
|
12988
|
-
}, void 0, false, {
|
|
12989
|
-
fileName: NavDropdown_jsxFileName,
|
|
12990
|
-
lineNumber: 93,
|
|
12991
|
-
columnNumber: 11
|
|
12992
|
-
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
|
|
12993
|
-
role: menuRole,
|
|
12994
|
-
renderOnMount: renderMenuOnMount,
|
|
12995
|
-
rootCloseEvent: rootCloseEvent,
|
|
12996
|
-
variant: menuVariant,
|
|
12997
|
-
children: children
|
|
12998
|
-
}, void 0, false, {
|
|
12999
|
-
fileName: NavDropdown_jsxFileName,
|
|
13000
|
-
lineNumber: 104,
|
|
13001
|
-
columnNumber: 11
|
|
13002
|
-
}, undefined)]
|
|
13003
|
-
}, void 0, true, {
|
|
13004
|
-
fileName: NavDropdown_jsxFileName,
|
|
13005
|
-
lineNumber: 88,
|
|
13006
|
-
columnNumber: 9
|
|
13007
|
-
}, undefined);
|
|
13008
|
-
});
|
|
13009
|
-
NavDropdown.displayName = 'NavDropdown';
|
|
13010
|
-
NavDropdown.propTypes = NavDropdown_propTypes;
|
|
13011
|
-
/* harmony default export */ const src_NavDropdown = (Object.assign(NavDropdown, {
|
|
13012
|
-
Item: src_Dropdown.Item,
|
|
13013
|
-
ItemText: src_Dropdown.ItemText,
|
|
13014
|
-
Divider: src_Dropdown.Divider,
|
|
13015
|
-
Header: src_Dropdown.Header
|
|
13016
|
-
}));
|
|
13017
|
-
;// CONCATENATED MODULE: ./src/OffcanvasBody.tsx
|
|
13018
|
-
|
|
13019
|
-
/* harmony default export */ const OffcanvasBody = (createWithBsPrefix('offcanvas-body'));
|
|
13020
|
-
;// CONCATENATED MODULE: ./src/OffcanvasToggling.tsx
|
|
13021
|
-
var OffcanvasToggling_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasToggling.tsx";
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
const OffcanvasToggling_propTypes = {
|
|
13031
|
-
/**
|
|
13032
|
-
* Show the component; triggers the fade in or fade out animation
|
|
13033
|
-
*/
|
|
13034
|
-
in: (prop_types_default()).bool,
|
|
13035
|
-
|
|
13036
|
-
/**
|
|
13037
|
-
* Wait until the first "enter" transition to mount the component (add it to the DOM)
|
|
13038
|
-
*/
|
|
13039
|
-
mountOnEnter: (prop_types_default()).bool,
|
|
13040
|
-
|
|
13041
|
-
/**
|
|
13042
|
-
* Unmount the component (remove it from the DOM) when it is faded out
|
|
13043
|
-
*/
|
|
13044
|
-
unmountOnExit: (prop_types_default()).bool,
|
|
13045
|
-
|
|
13046
|
-
/**
|
|
13047
|
-
* Run the fade in animation when the component mounts, if it is initially
|
|
13048
|
-
* shown
|
|
13049
|
-
*/
|
|
13050
|
-
appear: (prop_types_default()).bool,
|
|
13051
|
-
|
|
13052
|
-
/**
|
|
13053
|
-
* Duration of the fade animation in milliseconds, to ensure that finishing
|
|
13054
|
-
* callbacks are fired even if the original browser transition end events are
|
|
13055
|
-
* canceled
|
|
13056
|
-
*/
|
|
13057
|
-
timeout: (prop_types_default()).number,
|
|
13058
|
-
|
|
13059
|
-
/**
|
|
13060
|
-
* Callback fired before the component fades in
|
|
13061
|
-
*/
|
|
13062
|
-
onEnter: (prop_types_default()).func,
|
|
13063
|
-
|
|
13064
|
-
/**
|
|
13065
|
-
* Callback fired after the component starts to fade in
|
|
13066
|
-
*/
|
|
13067
|
-
onEntering: (prop_types_default()).func,
|
|
13068
|
-
|
|
13069
|
-
/**
|
|
13070
|
-
* Callback fired after the has component faded in
|
|
13071
|
-
*/
|
|
13072
|
-
onEntered: (prop_types_default()).func,
|
|
13073
|
-
|
|
13074
|
-
/**
|
|
13075
|
-
* Callback fired before the component fades out
|
|
13076
|
-
*/
|
|
13077
|
-
onExit: (prop_types_default()).func,
|
|
13078
|
-
|
|
13079
|
-
/**
|
|
13080
|
-
* Callback fired after the component starts to fade out
|
|
13081
|
-
*/
|
|
13082
|
-
onExiting: (prop_types_default()).func,
|
|
13083
|
-
|
|
13084
|
-
/**
|
|
13085
|
-
* Callback fired after the component has faded out
|
|
13086
|
-
*/
|
|
13087
|
-
onExited: (prop_types_default()).func
|
|
13088
|
-
};
|
|
13089
|
-
const OffcanvasToggling_defaultProps = {
|
|
13090
|
-
in: false,
|
|
13091
|
-
mountOnEnter: false,
|
|
13092
|
-
unmountOnExit: false,
|
|
13093
|
-
appear: false
|
|
13094
|
-
};
|
|
13095
|
-
const transitionStyles = {
|
|
13096
|
-
[ENTERING]: 'show',
|
|
13097
|
-
[ENTERED]: 'show'
|
|
13098
|
-
};
|
|
13099
|
-
const OffcanvasToggling = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13100
|
-
bsPrefix,
|
|
13101
|
-
className,
|
|
13102
|
-
children,
|
|
13103
|
-
...props
|
|
13104
|
-
}, ref) => {
|
|
13105
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
13106
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
|
|
13107
|
-
ref: ref,
|
|
13108
|
-
addEndListener: transitionEndListener,
|
|
13109
|
-
...props,
|
|
13110
|
-
childRef: children.ref,
|
|
13111
|
-
children: (status, innerProps) => /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement(children, { ...innerProps,
|
|
13112
|
-
className: classnames_default()(className, children.props.className, (status === ENTERING || status === EXITING) && `${bsPrefix}-toggling`, transitionStyles[status])
|
|
13113
|
-
})
|
|
13114
|
-
}, void 0, false, {
|
|
13115
|
-
fileName: OffcanvasToggling_jsxFileName,
|
|
13116
|
-
lineNumber: 102,
|
|
13117
|
-
columnNumber: 5
|
|
13118
|
-
}, undefined);
|
|
13119
|
-
});
|
|
13120
|
-
OffcanvasToggling.propTypes = OffcanvasToggling_propTypes;
|
|
13121
|
-
OffcanvasToggling.defaultProps = OffcanvasToggling_defaultProps;
|
|
13122
|
-
OffcanvasToggling.displayName = 'OffcanvasToggling';
|
|
13123
|
-
/* harmony default export */ const src_OffcanvasToggling = (OffcanvasToggling);
|
|
13124
|
-
;// CONCATENATED MODULE: ./src/OffcanvasHeader.tsx
|
|
13125
|
-
var OffcanvasHeader_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/OffcanvasHeader.tsx";
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
const OffcanvasHeader_propTypes = {
|
|
13133
|
-
/**
|
|
13134
|
-
* @default 'offcanvas-header'
|
|
13135
|
-
*/
|
|
13136
|
-
bsPrefix: (prop_types_default()).string,
|
|
13137
|
-
|
|
13138
|
-
/**
|
|
13139
|
-
* Provides an accessible label for the close
|
|
13140
|
-
* button. It is used for Assistive Technology when the label text is not
|
|
13141
|
-
* readable.
|
|
13142
|
-
*/
|
|
13143
|
-
closeLabel: (prop_types_default()).string,
|
|
13144
|
-
|
|
13145
|
-
/**
|
|
13146
|
-
* Sets the variant for close button.
|
|
13147
|
-
*/
|
|
13148
|
-
closeVariant: prop_types_default().oneOf(['white']),
|
|
12846
|
+
closeVariant: prop_types_default().oneOf(['white']),
|
|
13149
12847
|
|
|
13150
12848
|
/**
|
|
13151
12849
|
* Specify whether the Component should contain a close button
|
|
@@ -13207,6 +12905,7 @@ var Offcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstra
|
|
|
13207
12905
|
|
|
13208
12906
|
|
|
13209
12907
|
|
|
12908
|
+
|
|
13210
12909
|
const Offcanvas_propTypes = {
|
|
13211
12910
|
/**
|
|
13212
12911
|
* @default 'offcanvas'
|
|
@@ -13268,219 +12967,556 @@ const Offcanvas_propTypes = {
|
|
|
13268
12967
|
preventScroll: (prop_types_default()).bool
|
|
13269
12968
|
}),
|
|
13270
12969
|
|
|
13271
|
-
/**
|
|
13272
|
-
* When `true` The offcanvas will show itself.
|
|
13273
|
-
*/
|
|
13274
|
-
show: (prop_types_default()).bool,
|
|
12970
|
+
/**
|
|
12971
|
+
* When `true` The offcanvas will show itself.
|
|
12972
|
+
*/
|
|
12973
|
+
show: (prop_types_default()).bool,
|
|
12974
|
+
|
|
12975
|
+
/**
|
|
12976
|
+
* A callback fired when the offcanvas is opening.
|
|
12977
|
+
*/
|
|
12978
|
+
onShow: (prop_types_default()).func,
|
|
12979
|
+
|
|
12980
|
+
/**
|
|
12981
|
+
* A callback fired when the header closeButton or backdrop is
|
|
12982
|
+
* clicked. Required if either are specified.
|
|
12983
|
+
*/
|
|
12984
|
+
onHide: (prop_types_default()).func,
|
|
12985
|
+
|
|
12986
|
+
/**
|
|
12987
|
+
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
12988
|
+
*/
|
|
12989
|
+
onEscapeKeyDown: (prop_types_default()).func,
|
|
12990
|
+
|
|
12991
|
+
/**
|
|
12992
|
+
* Callback fired before the offcanvas transitions in
|
|
12993
|
+
*/
|
|
12994
|
+
onEnter: (prop_types_default()).func,
|
|
12995
|
+
|
|
12996
|
+
/**
|
|
12997
|
+
* Callback fired as the offcanvas begins to transition in
|
|
12998
|
+
*/
|
|
12999
|
+
onEntering: (prop_types_default()).func,
|
|
13000
|
+
|
|
13001
|
+
/**
|
|
13002
|
+
* Callback fired after the offcanvas finishes transitioning in
|
|
13003
|
+
*/
|
|
13004
|
+
onEntered: (prop_types_default()).func,
|
|
13005
|
+
|
|
13006
|
+
/**
|
|
13007
|
+
* Callback fired right before the offcanvas transitions out
|
|
13008
|
+
*/
|
|
13009
|
+
onExit: (prop_types_default()).func,
|
|
13010
|
+
|
|
13011
|
+
/**
|
|
13012
|
+
* Callback fired as the offcanvas begins to transition out
|
|
13013
|
+
*/
|
|
13014
|
+
onExiting: (prop_types_default()).func,
|
|
13015
|
+
|
|
13016
|
+
/**
|
|
13017
|
+
* Callback fired after the offcanvas finishes transitioning out
|
|
13018
|
+
*/
|
|
13019
|
+
onExited: (prop_types_default()).func,
|
|
13020
|
+
|
|
13021
|
+
/**
|
|
13022
|
+
* @private
|
|
13023
|
+
*/
|
|
13024
|
+
container: (prop_types_default()).any,
|
|
13025
|
+
'aria-labelledby': (prop_types_default()).string
|
|
13026
|
+
};
|
|
13027
|
+
const Offcanvas_defaultProps = {
|
|
13028
|
+
show: false,
|
|
13029
|
+
backdrop: true,
|
|
13030
|
+
keyboard: true,
|
|
13031
|
+
scroll: false,
|
|
13032
|
+
autoFocus: true,
|
|
13033
|
+
enforceFocus: true,
|
|
13034
|
+
restoreFocus: true,
|
|
13035
|
+
placement: 'start'
|
|
13036
|
+
};
|
|
13037
|
+
|
|
13038
|
+
function Offcanvas_DialogTransition(props) {
|
|
13039
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
|
|
13040
|
+
}, void 0, false, {
|
|
13041
|
+
fileName: Offcanvas_jsxFileName,
|
|
13042
|
+
lineNumber: 178,
|
|
13043
|
+
columnNumber: 10
|
|
13044
|
+
}, this);
|
|
13045
|
+
}
|
|
13046
|
+
|
|
13047
|
+
function Offcanvas_BackdropTransition(props) {
|
|
13048
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
|
|
13049
|
+
}, void 0, false, {
|
|
13050
|
+
fileName: Offcanvas_jsxFileName,
|
|
13051
|
+
lineNumber: 182,
|
|
13052
|
+
columnNumber: 10
|
|
13053
|
+
}, this);
|
|
13054
|
+
}
|
|
13055
|
+
|
|
13056
|
+
const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13057
|
+
bsPrefix,
|
|
13058
|
+
className,
|
|
13059
|
+
children,
|
|
13060
|
+
'aria-labelledby': ariaLabelledby,
|
|
13061
|
+
placement,
|
|
13062
|
+
|
|
13063
|
+
/* BaseModal props */
|
|
13064
|
+
show,
|
|
13065
|
+
backdrop,
|
|
13066
|
+
keyboard,
|
|
13067
|
+
scroll,
|
|
13068
|
+
onEscapeKeyDown,
|
|
13069
|
+
onShow,
|
|
13070
|
+
onHide,
|
|
13071
|
+
container,
|
|
13072
|
+
autoFocus,
|
|
13073
|
+
enforceFocus,
|
|
13074
|
+
restoreFocus,
|
|
13075
|
+
restoreFocusOptions,
|
|
13076
|
+
onEntered,
|
|
13077
|
+
onExit,
|
|
13078
|
+
onExiting,
|
|
13079
|
+
onEnter,
|
|
13080
|
+
onEntering,
|
|
13081
|
+
onExited,
|
|
13082
|
+
backdropClassName,
|
|
13083
|
+
manager: propsManager,
|
|
13084
|
+
...props
|
|
13085
|
+
}, ref) => {
|
|
13086
|
+
const modalManager = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
13087
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'offcanvas');
|
|
13088
|
+
const {
|
|
13089
|
+
onToggle
|
|
13090
|
+
} = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext) || {};
|
|
13091
|
+
const handleHide = useEventCallback(() => {
|
|
13092
|
+
onToggle == null ? void 0 : onToggle();
|
|
13093
|
+
onHide == null ? void 0 : onHide();
|
|
13094
|
+
});
|
|
13095
|
+
const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
13096
|
+
onHide: handleHide
|
|
13097
|
+
}), [handleHide]);
|
|
13098
|
+
|
|
13099
|
+
function getModalManager() {
|
|
13100
|
+
if (propsManager) return propsManager;
|
|
13101
|
+
|
|
13102
|
+
if (scroll) {
|
|
13103
|
+
// Have to use a different modal manager since the shared
|
|
13104
|
+
// one handles overflow.
|
|
13105
|
+
if (!modalManager.current) modalManager.current = new src_BootstrapModalManager({
|
|
13106
|
+
handleContainerOverflow: false
|
|
13107
|
+
});
|
|
13108
|
+
return modalManager.current;
|
|
13109
|
+
}
|
|
13110
|
+
|
|
13111
|
+
return getSharedManager();
|
|
13112
|
+
}
|
|
13113
|
+
|
|
13114
|
+
const handleEnter = (node, ...args) => {
|
|
13115
|
+
if (node) node.style.visibility = 'visible';
|
|
13116
|
+
onEnter == null ? void 0 : onEnter(node, ...args);
|
|
13117
|
+
};
|
|
13118
|
+
|
|
13119
|
+
const handleExited = (node, ...args) => {
|
|
13120
|
+
if (node) node.style.visibility = '';
|
|
13121
|
+
onExited == null ? void 0 : onExited(...args);
|
|
13122
|
+
};
|
|
13123
|
+
|
|
13124
|
+
const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...backdropProps,
|
|
13125
|
+
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
|
|
13126
|
+
}, void 0, false, {
|
|
13127
|
+
fileName: Offcanvas_jsxFileName,
|
|
13128
|
+
lineNumber: 264,
|
|
13129
|
+
columnNumber: 11
|
|
13130
|
+
}, undefined), [backdropClassName, bsPrefix]);
|
|
13131
|
+
|
|
13132
|
+
const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13133
|
+
role: "dialog",
|
|
13134
|
+
...dialogProps,
|
|
13135
|
+
...props,
|
|
13136
|
+
className: classnames_default()(className, bsPrefix, `${bsPrefix}-${placement}`),
|
|
13137
|
+
"aria-labelledby": ariaLabelledby,
|
|
13138
|
+
children: children
|
|
13139
|
+
}, void 0, false, {
|
|
13140
|
+
fileName: Offcanvas_jsxFileName,
|
|
13141
|
+
lineNumber: 273,
|
|
13142
|
+
columnNumber: 9
|
|
13143
|
+
}, undefined);
|
|
13144
|
+
|
|
13145
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
|
|
13146
|
+
value: modalContext,
|
|
13147
|
+
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
|
|
13148
|
+
show: show,
|
|
13149
|
+
ref: ref,
|
|
13150
|
+
backdrop: backdrop,
|
|
13151
|
+
container: container,
|
|
13152
|
+
keyboard: keyboard,
|
|
13153
|
+
autoFocus: autoFocus,
|
|
13154
|
+
enforceFocus: enforceFocus && !scroll,
|
|
13155
|
+
restoreFocus: restoreFocus,
|
|
13156
|
+
restoreFocusOptions: restoreFocusOptions,
|
|
13157
|
+
onEscapeKeyDown: onEscapeKeyDown,
|
|
13158
|
+
onShow: onShow,
|
|
13159
|
+
onHide: handleHide,
|
|
13160
|
+
onEnter: handleEnter,
|
|
13161
|
+
onEntering: onEntering,
|
|
13162
|
+
onEntered: onEntered,
|
|
13163
|
+
onExit: onExit,
|
|
13164
|
+
onExiting: onExiting,
|
|
13165
|
+
onExited: handleExited,
|
|
13166
|
+
manager: getModalManager(),
|
|
13167
|
+
transition: Offcanvas_DialogTransition,
|
|
13168
|
+
backdropTransition: Offcanvas_BackdropTransition,
|
|
13169
|
+
renderBackdrop: renderBackdrop,
|
|
13170
|
+
renderDialog: renderDialog
|
|
13171
|
+
}, void 0, false, {
|
|
13172
|
+
fileName: Offcanvas_jsxFileName,
|
|
13173
|
+
lineNumber: 290,
|
|
13174
|
+
columnNumber: 11
|
|
13175
|
+
}, undefined)
|
|
13176
|
+
}, void 0, false, {
|
|
13177
|
+
fileName: Offcanvas_jsxFileName,
|
|
13178
|
+
lineNumber: 289,
|
|
13179
|
+
columnNumber: 9
|
|
13180
|
+
}, undefined);
|
|
13181
|
+
});
|
|
13182
|
+
Offcanvas.displayName = 'Offcanvas';
|
|
13183
|
+
Offcanvas.propTypes = Offcanvas_propTypes;
|
|
13184
|
+
Offcanvas.defaultProps = Offcanvas_defaultProps;
|
|
13185
|
+
/* harmony default export */ const src_Offcanvas = (Object.assign(Offcanvas, {
|
|
13186
|
+
Body: OffcanvasBody,
|
|
13187
|
+
Header: src_OffcanvasHeader,
|
|
13188
|
+
Title: OffcanvasTitle
|
|
13189
|
+
}));
|
|
13190
|
+
;// CONCATENATED MODULE: ./src/NavbarOffcanvas.tsx
|
|
13191
|
+
var NavbarOffcanvas_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavbarOffcanvas.tsx";
|
|
13192
|
+
|
|
13193
|
+
|
|
13194
|
+
|
|
13195
|
+
|
|
13196
|
+
|
|
13197
|
+
const NavbarOffcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
|
|
13198
|
+
const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(NavbarContext);
|
|
13199
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Offcanvas, {
|
|
13200
|
+
ref: ref,
|
|
13201
|
+
show: !!(context != null && context.expanded),
|
|
13202
|
+
...props
|
|
13203
|
+
}, void 0, false, {
|
|
13204
|
+
fileName: NavbarOffcanvas_jsxFileName,
|
|
13205
|
+
lineNumber: 10,
|
|
13206
|
+
columnNumber: 12
|
|
13207
|
+
}, undefined);
|
|
13208
|
+
});
|
|
13209
|
+
NavbarOffcanvas.displayName = 'NavbarOffcanvas';
|
|
13210
|
+
/* harmony default export */ const src_NavbarOffcanvas = (NavbarOffcanvas);
|
|
13211
|
+
;// CONCATENATED MODULE: ./src/Navbar.tsx
|
|
13212
|
+
var Navbar_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Navbar.tsx";
|
|
13213
|
+
|
|
13214
|
+
|
|
13215
|
+
|
|
13216
|
+
|
|
13217
|
+
|
|
13218
|
+
|
|
13219
|
+
|
|
13220
|
+
|
|
13221
|
+
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
|
|
13225
|
+
|
|
13226
|
+
|
|
13227
|
+
const NavbarText = createWithBsPrefix('navbar-text', {
|
|
13228
|
+
Component: 'span'
|
|
13229
|
+
});
|
|
13230
|
+
const Navbar_propTypes = {
|
|
13231
|
+
/** @default 'navbar' */
|
|
13232
|
+
bsPrefix: (prop_types_default()).string,
|
|
13233
|
+
|
|
13234
|
+
/**
|
|
13235
|
+
* The general visual variant a the Navbar.
|
|
13236
|
+
* Use in combination with the `bg` prop, `background-color` utilities,
|
|
13237
|
+
* or your own background styles.
|
|
13238
|
+
*
|
|
13239
|
+
* @type {('light'|'dark')}
|
|
13240
|
+
*/
|
|
13241
|
+
variant: (prop_types_default()).string,
|
|
13242
|
+
|
|
13243
|
+
/**
|
|
13244
|
+
* The breakpoint, below which, the Navbar will collapse.
|
|
13245
|
+
* When `true` the Navbar will always be expanded regardless of screen size.
|
|
13246
|
+
*/
|
|
13247
|
+
expand: prop_types_default().oneOf([false, true, 'sm', 'md', 'lg', 'xl', 'xxl']).isRequired,
|
|
13248
|
+
|
|
13249
|
+
/**
|
|
13250
|
+
* A convenience prop for adding `bg-*` utility classes since they are so commonly used here.
|
|
13251
|
+
* `light` and `dark` are common choices but any `bg-*` class is supported, including any custom ones you might define.
|
|
13252
|
+
*
|
|
13253
|
+
* Pairs nicely with the `variant` prop.
|
|
13254
|
+
*/
|
|
13255
|
+
bg: (prop_types_default()).string,
|
|
13256
|
+
|
|
13257
|
+
/**
|
|
13258
|
+
* Create a fixed navbar along the top or bottom of the screen, that scrolls with the
|
|
13259
|
+
* page. A convenience prop for the `fixed-*` positioning classes.
|
|
13260
|
+
*/
|
|
13261
|
+
fixed: prop_types_default().oneOf(['top', 'bottom']),
|
|
13262
|
+
|
|
13263
|
+
/**
|
|
13264
|
+
* Position the navbar at the top of the viewport, but only after scrolling past it.
|
|
13265
|
+
* A convenience prop for the `sticky-top` positioning class.
|
|
13266
|
+
*
|
|
13267
|
+
* __Not supported in <= IE11 and other older browsers without a polyfill__
|
|
13268
|
+
*/
|
|
13269
|
+
sticky: prop_types_default().oneOf(['top']),
|
|
13270
|
+
|
|
13271
|
+
/**
|
|
13272
|
+
* Set a custom element for this component.
|
|
13273
|
+
*/
|
|
13274
|
+
as: (prop_types_default()).elementType,
|
|
13275
|
+
|
|
13276
|
+
/**
|
|
13277
|
+
* A callback fired when the `<Navbar>` body collapses or expands. Fired when
|
|
13278
|
+
* a `<Navbar.Toggle>` is clicked and called with the new `expanded`
|
|
13279
|
+
* boolean value.
|
|
13280
|
+
*
|
|
13281
|
+
* @controllable expanded
|
|
13282
|
+
*/
|
|
13283
|
+
onToggle: (prop_types_default()).func,
|
|
13284
|
+
|
|
13285
|
+
/**
|
|
13286
|
+
* A callback fired when a descendant of a child `<Nav>` is selected. Should
|
|
13287
|
+
* be used to execute complex closing or other miscellaneous actions desired
|
|
13288
|
+
* after selecting a descendant of `<Nav>`. Does nothing if no `<Nav>` or `<Nav>`
|
|
13289
|
+
* descendants exist. The callback is called with an eventKey, which is a
|
|
13290
|
+
* prop from the selected `<Nav>` descendant, and an event.
|
|
13291
|
+
*
|
|
13292
|
+
* ```js
|
|
13293
|
+
* function (
|
|
13294
|
+
* eventKey: mixed,
|
|
13295
|
+
* event?: SyntheticEvent
|
|
13296
|
+
* )
|
|
13297
|
+
* ```
|
|
13298
|
+
*
|
|
13299
|
+
* For basic closing behavior after all `<Nav>` descendant onSelect events in
|
|
13300
|
+
* mobile viewports, try using collapseOnSelect.
|
|
13301
|
+
*
|
|
13302
|
+
* Note: If you are manually closing the navbar using this `OnSelect` prop,
|
|
13303
|
+
* ensure that you are setting `expanded` to false and not *toggling* between
|
|
13304
|
+
* true and false.
|
|
13305
|
+
*/
|
|
13306
|
+
onSelect: (prop_types_default()).func,
|
|
13307
|
+
|
|
13308
|
+
/**
|
|
13309
|
+
* Toggles `expanded` to `false` after the onSelect event of a descendant of a
|
|
13310
|
+
* child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
|
|
13311
|
+
*
|
|
13312
|
+
* Manually controlling `expanded` via the onSelect callback is recommended instead,
|
|
13313
|
+
* for more complex operations that need to be executed after
|
|
13314
|
+
* the `select` event of `<Nav>` descendants.
|
|
13315
|
+
*/
|
|
13316
|
+
collapseOnSelect: (prop_types_default()).bool,
|
|
13317
|
+
|
|
13318
|
+
/**
|
|
13319
|
+
* Controls the visiblity of the navbar body
|
|
13320
|
+
*
|
|
13321
|
+
* @controllable onToggle
|
|
13322
|
+
*/
|
|
13323
|
+
expanded: (prop_types_default()).bool,
|
|
13324
|
+
|
|
13325
|
+
/**
|
|
13326
|
+
* The ARIA role for the navbar, will default to 'navigation' for
|
|
13327
|
+
* Navbars whose `as` is something other than `<nav>`.
|
|
13328
|
+
*
|
|
13329
|
+
* @default 'navigation'
|
|
13330
|
+
*/
|
|
13331
|
+
role: (prop_types_default()).string
|
|
13332
|
+
};
|
|
13333
|
+
const Navbar_defaultProps = {
|
|
13334
|
+
expand: true,
|
|
13335
|
+
variant: 'light',
|
|
13336
|
+
collapseOnSelect: false
|
|
13337
|
+
};
|
|
13338
|
+
const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((props, ref) => {
|
|
13339
|
+
const {
|
|
13340
|
+
bsPrefix: initialBsPrefix,
|
|
13341
|
+
expand,
|
|
13342
|
+
variant,
|
|
13343
|
+
bg,
|
|
13344
|
+
fixed,
|
|
13345
|
+
sticky,
|
|
13346
|
+
className,
|
|
13347
|
+
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
13348
|
+
as: Component = 'nav',
|
|
13349
|
+
expanded,
|
|
13350
|
+
onToggle,
|
|
13351
|
+
onSelect,
|
|
13352
|
+
collapseOnSelect,
|
|
13353
|
+
...controlledProps
|
|
13354
|
+
} = useUncontrolled(props, {
|
|
13355
|
+
expanded: 'onToggle'
|
|
13356
|
+
});
|
|
13357
|
+
const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
|
|
13358
|
+
const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
|
|
13359
|
+
onSelect == null ? void 0 : onSelect(...args);
|
|
13360
|
+
|
|
13361
|
+
if (collapseOnSelect && expanded) {
|
|
13362
|
+
onToggle == null ? void 0 : onToggle(false);
|
|
13363
|
+
}
|
|
13364
|
+
}, [onSelect, collapseOnSelect, expanded, onToggle]); // will result in some false positives but that seems better
|
|
13365
|
+
// than false negatives. strict `undefined` check allows explicit
|
|
13366
|
+
// "nulling" of the role if the user really doesn't want one
|
|
13367
|
+
|
|
13368
|
+
if (controlledProps.role === undefined && Component !== 'nav') {
|
|
13369
|
+
controlledProps.role = 'navigation';
|
|
13370
|
+
}
|
|
13371
|
+
|
|
13372
|
+
let expandClass = `${bsPrefix}-expand`;
|
|
13373
|
+
if (typeof expand === 'string') expandClass = `${expandClass}-${expand}`;
|
|
13374
|
+
const navbarContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
13375
|
+
onToggle: () => onToggle == null ? void 0 : onToggle(!expanded),
|
|
13376
|
+
bsPrefix,
|
|
13377
|
+
expanded: !!expanded
|
|
13378
|
+
}), [bsPrefix, expanded, onToggle]);
|
|
13379
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(NavbarContext.Provider, {
|
|
13380
|
+
value: navbarContext,
|
|
13381
|
+
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_SelectableContext.Provider, {
|
|
13382
|
+
value: handleCollapse,
|
|
13383
|
+
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
13384
|
+
ref: ref,
|
|
13385
|
+
...controlledProps,
|
|
13386
|
+
className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
|
|
13387
|
+
}, void 0, false, {
|
|
13388
|
+
fileName: Navbar_jsxFileName,
|
|
13389
|
+
lineNumber: 201,
|
|
13390
|
+
columnNumber: 11
|
|
13391
|
+
}, undefined)
|
|
13392
|
+
}, void 0, false, {
|
|
13393
|
+
fileName: Navbar_jsxFileName,
|
|
13394
|
+
lineNumber: 200,
|
|
13395
|
+
columnNumber: 9
|
|
13396
|
+
}, undefined)
|
|
13397
|
+
}, void 0, false, {
|
|
13398
|
+
fileName: Navbar_jsxFileName,
|
|
13399
|
+
lineNumber: 199,
|
|
13400
|
+
columnNumber: 7
|
|
13401
|
+
}, undefined);
|
|
13402
|
+
});
|
|
13403
|
+
Navbar.propTypes = Navbar_propTypes;
|
|
13404
|
+
Navbar.defaultProps = Navbar_defaultProps;
|
|
13405
|
+
Navbar.displayName = 'Navbar';
|
|
13406
|
+
/* harmony default export */ const src_Navbar = (Object.assign(Navbar, {
|
|
13407
|
+
Brand: src_NavbarBrand,
|
|
13408
|
+
Collapse: src_NavbarCollapse,
|
|
13409
|
+
Offcanvas: src_NavbarOffcanvas,
|
|
13410
|
+
Text: NavbarText,
|
|
13411
|
+
Toggle: src_NavbarToggle
|
|
13412
|
+
}));
|
|
13413
|
+
;// CONCATENATED MODULE: ./src/NavDropdown.tsx
|
|
13414
|
+
var NavDropdown_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavDropdown.tsx";
|
|
13415
|
+
|
|
13416
|
+
|
|
13417
|
+
|
|
13275
13418
|
|
|
13276
|
-
/**
|
|
13277
|
-
* A callback fired when the offcanvas is opening.
|
|
13278
|
-
*/
|
|
13279
|
-
onShow: (prop_types_default()).func,
|
|
13280
13419
|
|
|
13281
|
-
/**
|
|
13282
|
-
* A callback fired when the header closeButton or backdrop is
|
|
13283
|
-
* clicked. Required if either are specified.
|
|
13284
|
-
*/
|
|
13285
|
-
onHide: (prop_types_default()).func,
|
|
13286
13420
|
|
|
13287
|
-
/**
|
|
13288
|
-
* A callback fired when the escape key, if specified in `keyboard`, is pressed.
|
|
13289
|
-
*/
|
|
13290
|
-
onEscapeKeyDown: (prop_types_default()).func,
|
|
13291
13421
|
|
|
13422
|
+
const NavDropdown_propTypes = {
|
|
13292
13423
|
/**
|
|
13293
|
-
*
|
|
13424
|
+
* An html id attribute for the Toggle button, necessary for assistive technologies, such as screen readers.
|
|
13425
|
+
* @type {string}
|
|
13294
13426
|
*/
|
|
13295
|
-
|
|
13427
|
+
id: (prop_types_default()).string,
|
|
13296
13428
|
|
|
13297
|
-
/**
|
|
13298
|
-
|
|
13299
|
-
*/
|
|
13300
|
-
onEntering: (prop_types_default()).func,
|
|
13429
|
+
/** An `onClick` handler passed to the Toggle component */
|
|
13430
|
+
onClick: (prop_types_default()).func,
|
|
13301
13431
|
|
|
13302
|
-
/**
|
|
13303
|
-
|
|
13304
|
-
*/
|
|
13305
|
-
onEntered: (prop_types_default()).func,
|
|
13432
|
+
/** The content of the non-toggle Button. */
|
|
13433
|
+
title: (prop_types_default()).node.isRequired,
|
|
13306
13434
|
|
|
13307
|
-
/**
|
|
13308
|
-
|
|
13309
|
-
*/
|
|
13310
|
-
onExit: (prop_types_default()).func,
|
|
13435
|
+
/** Disables the toggle NavLink */
|
|
13436
|
+
disabled: (prop_types_default()).bool,
|
|
13311
13437
|
|
|
13312
|
-
/**
|
|
13313
|
-
|
|
13314
|
-
|
|
13315
|
-
|
|
13438
|
+
/** Style the toggle NavLink as active */
|
|
13439
|
+
active: (prop_types_default()).bool,
|
|
13440
|
+
|
|
13441
|
+
/** An ARIA accessible role applied to the Menu component. When set to 'menu', The dropdown */
|
|
13442
|
+
menuRole: (prop_types_default()).string,
|
|
13443
|
+
|
|
13444
|
+
/** Whether to render the dropdown menu in the DOM before the first time it is shown */
|
|
13445
|
+
renderMenuOnMount: (prop_types_default()).bool,
|
|
13316
13446
|
|
|
13317
13447
|
/**
|
|
13318
|
-
*
|
|
13448
|
+
* Which event when fired outside the component will cause it to be closed.
|
|
13449
|
+
*
|
|
13450
|
+
* _see [DropdownMenu](#menu-props) for more details_
|
|
13319
13451
|
*/
|
|
13320
|
-
|
|
13452
|
+
rootCloseEvent: (prop_types_default()).string,
|
|
13321
13453
|
|
|
13322
13454
|
/**
|
|
13323
|
-
*
|
|
13455
|
+
* Menu color variant.
|
|
13456
|
+
*
|
|
13457
|
+
* Omitting this will use the default light color.
|
|
13324
13458
|
*/
|
|
13325
|
-
|
|
13326
|
-
'aria-labelledby': (prop_types_default()).string
|
|
13327
|
-
};
|
|
13328
|
-
const Offcanvas_defaultProps = {
|
|
13329
|
-
show: false,
|
|
13330
|
-
backdrop: true,
|
|
13331
|
-
keyboard: true,
|
|
13332
|
-
scroll: false,
|
|
13333
|
-
autoFocus: true,
|
|
13334
|
-
enforceFocus: true,
|
|
13335
|
-
restoreFocus: true,
|
|
13336
|
-
placement: 'start'
|
|
13337
|
-
};
|
|
13338
|
-
|
|
13339
|
-
function Offcanvas_DialogTransition(props) {
|
|
13340
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_OffcanvasToggling, { ...props
|
|
13341
|
-
}, void 0, false, {
|
|
13342
|
-
fileName: Offcanvas_jsxFileName,
|
|
13343
|
-
lineNumber: 177,
|
|
13344
|
-
columnNumber: 10
|
|
13345
|
-
}, this);
|
|
13346
|
-
}
|
|
13347
|
-
|
|
13348
|
-
function Offcanvas_BackdropTransition(props) {
|
|
13349
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Fade, { ...props
|
|
13350
|
-
}, void 0, false, {
|
|
13351
|
-
fileName: Offcanvas_jsxFileName,
|
|
13352
|
-
lineNumber: 181,
|
|
13353
|
-
columnNumber: 10
|
|
13354
|
-
}, this);
|
|
13355
|
-
}
|
|
13459
|
+
menuVariant: prop_types_default().oneOf(['dark']),
|
|
13356
13460
|
|
|
13357
|
-
|
|
13461
|
+
/** @ignore */
|
|
13462
|
+
bsPrefix: (prop_types_default()).string
|
|
13463
|
+
};
|
|
13464
|
+
const NavDropdown = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13465
|
+
id,
|
|
13466
|
+
title,
|
|
13467
|
+
children,
|
|
13358
13468
|
bsPrefix,
|
|
13359
13469
|
className,
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13366
|
-
backdrop,
|
|
13367
|
-
keyboard,
|
|
13368
|
-
scroll,
|
|
13369
|
-
onEscapeKeyDown,
|
|
13370
|
-
onShow,
|
|
13371
|
-
onHide,
|
|
13372
|
-
container,
|
|
13373
|
-
autoFocus,
|
|
13374
|
-
enforceFocus,
|
|
13375
|
-
restoreFocus,
|
|
13376
|
-
restoreFocusOptions,
|
|
13377
|
-
onEntered,
|
|
13378
|
-
onExit,
|
|
13379
|
-
onExiting,
|
|
13380
|
-
onEnter,
|
|
13381
|
-
onEntering,
|
|
13382
|
-
onExited,
|
|
13383
|
-
backdropClassName,
|
|
13384
|
-
manager: propsManager,
|
|
13470
|
+
rootCloseEvent,
|
|
13471
|
+
menuRole,
|
|
13472
|
+
disabled,
|
|
13473
|
+
active,
|
|
13474
|
+
renderMenuOnMount,
|
|
13475
|
+
menuVariant,
|
|
13385
13476
|
...props
|
|
13386
13477
|
}, ref) => {
|
|
13387
|
-
|
|
13388
|
-
const
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
onHide: handleHide
|
|
13392
|
-
}), [handleHide]);
|
|
13393
|
-
|
|
13394
|
-
function getModalManager() {
|
|
13395
|
-
if (propsManager) return propsManager;
|
|
13396
|
-
|
|
13397
|
-
if (scroll) {
|
|
13398
|
-
// Have to use a different modal manager since the shared
|
|
13399
|
-
// one handles overflow.
|
|
13400
|
-
if (!modalManager.current) modalManager.current = new src_BootstrapModalManager({
|
|
13401
|
-
handleContainerOverflow: false
|
|
13402
|
-
});
|
|
13403
|
-
return modalManager.current;
|
|
13404
|
-
}
|
|
13405
|
-
|
|
13406
|
-
return getSharedManager();
|
|
13407
|
-
}
|
|
13408
|
-
|
|
13409
|
-
const handleEnter = (node, ...args) => {
|
|
13410
|
-
if (node) node.style.visibility = 'visible';
|
|
13411
|
-
onEnter == null ? void 0 : onEnter(node, ...args);
|
|
13412
|
-
};
|
|
13413
|
-
|
|
13414
|
-
const handleExited = (node, ...args) => {
|
|
13415
|
-
if (node) node.style.visibility = '';
|
|
13416
|
-
onExited == null ? void 0 : onExited(...args);
|
|
13417
|
-
};
|
|
13418
|
-
|
|
13419
|
-
const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", { ...backdropProps,
|
|
13420
|
-
className: classnames_default()(`${bsPrefix}-backdrop`, backdropClassName)
|
|
13421
|
-
}, void 0, false, {
|
|
13422
|
-
fileName: Offcanvas_jsxFileName,
|
|
13423
|
-
lineNumber: 259,
|
|
13424
|
-
columnNumber: 11
|
|
13425
|
-
}, undefined), [backdropClassName, bsPrefix]);
|
|
13426
|
-
|
|
13427
|
-
const renderDialog = dialogProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13428
|
-
role: "dialog",
|
|
13429
|
-
...dialogProps,
|
|
13478
|
+
/* NavItem has no additional logic, it's purely presentational. Can set nav item class here to support "as" */
|
|
13479
|
+
const navItemPrefix = useBootstrapPrefix(undefined, 'nav-item');
|
|
13480
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown, {
|
|
13481
|
+
ref: ref,
|
|
13430
13482
|
...props,
|
|
13431
|
-
className: classnames_default()(className,
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_ModalContext.Provider, {
|
|
13441
|
-
value: modalContext,
|
|
13442
|
-
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(esm_Modal, {
|
|
13443
|
-
show: show,
|
|
13444
|
-
ref: ref,
|
|
13445
|
-
backdrop: backdrop,
|
|
13446
|
-
container: container,
|
|
13447
|
-
keyboard: keyboard,
|
|
13448
|
-
autoFocus: autoFocus,
|
|
13449
|
-
enforceFocus: enforceFocus && !scroll,
|
|
13450
|
-
restoreFocus: restoreFocus,
|
|
13451
|
-
restoreFocusOptions: restoreFocusOptions,
|
|
13452
|
-
onEscapeKeyDown: onEscapeKeyDown,
|
|
13453
|
-
onShow: onShow,
|
|
13454
|
-
onHide: onHide,
|
|
13455
|
-
onEnter: handleEnter,
|
|
13456
|
-
onEntering: onEntering,
|
|
13457
|
-
onEntered: onEntered,
|
|
13458
|
-
onExit: onExit,
|
|
13459
|
-
onExiting: onExiting,
|
|
13460
|
-
onExited: handleExited,
|
|
13461
|
-
manager: getModalManager(),
|
|
13462
|
-
transition: Offcanvas_DialogTransition,
|
|
13463
|
-
backdropTransition: Offcanvas_BackdropTransition,
|
|
13464
|
-
renderBackdrop: renderBackdrop,
|
|
13465
|
-
renderDialog: renderDialog
|
|
13483
|
+
className: classnames_default()(className, navItemPrefix),
|
|
13484
|
+
children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Toggle, {
|
|
13485
|
+
id: id,
|
|
13486
|
+
eventKey: null,
|
|
13487
|
+
active: active,
|
|
13488
|
+
disabled: disabled,
|
|
13489
|
+
childBsPrefix: bsPrefix,
|
|
13490
|
+
as: src_NavLink,
|
|
13491
|
+
children: title
|
|
13466
13492
|
}, void 0, false, {
|
|
13467
|
-
fileName:
|
|
13468
|
-
lineNumber:
|
|
13493
|
+
fileName: NavDropdown_jsxFileName,
|
|
13494
|
+
lineNumber: 93,
|
|
13469
13495
|
columnNumber: 11
|
|
13470
|
-
}, undefined)
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13496
|
+
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_Dropdown.Menu, {
|
|
13497
|
+
role: menuRole,
|
|
13498
|
+
renderOnMount: renderMenuOnMount,
|
|
13499
|
+
rootCloseEvent: rootCloseEvent,
|
|
13500
|
+
variant: menuVariant,
|
|
13501
|
+
children: children
|
|
13502
|
+
}, void 0, false, {
|
|
13503
|
+
fileName: NavDropdown_jsxFileName,
|
|
13504
|
+
lineNumber: 104,
|
|
13505
|
+
columnNumber: 11
|
|
13506
|
+
}, undefined)]
|
|
13507
|
+
}, void 0, true, {
|
|
13508
|
+
fileName: NavDropdown_jsxFileName,
|
|
13509
|
+
lineNumber: 88,
|
|
13474
13510
|
columnNumber: 9
|
|
13475
13511
|
}, undefined);
|
|
13476
13512
|
});
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
|
|
13513
|
+
NavDropdown.displayName = 'NavDropdown';
|
|
13514
|
+
NavDropdown.propTypes = NavDropdown_propTypes;
|
|
13515
|
+
/* harmony default export */ const src_NavDropdown = (Object.assign(NavDropdown, {
|
|
13516
|
+
Item: src_Dropdown.Item,
|
|
13517
|
+
ItemText: src_Dropdown.ItemText,
|
|
13518
|
+
Divider: src_Dropdown.Divider,
|
|
13519
|
+
Header: src_Dropdown.Header
|
|
13484
13520
|
}));
|
|
13485
13521
|
;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Overlay.js
|
|
13486
13522
|
|
|
@@ -15901,7 +15937,6 @@ const ToastFade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
|
|
|
15901
15937
|
ToastFade.displayName = 'ToastFade';
|
|
15902
15938
|
/* harmony default export */ const src_ToastFade = (ToastFade);
|
|
15903
15939
|
;// CONCATENATED MODULE: ./src/ToastContext.tsx
|
|
15904
|
-
// TODO: check
|
|
15905
15940
|
|
|
15906
15941
|
const ToastContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext({
|
|
15907
15942
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|