react-bootstrap 2.7.4 → 2.9.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/cjs/AbstractModalHeader.js +1 -0
- package/cjs/AbstractNav.d.ts +15 -0
- package/cjs/AbstractNavItem.d.ts +19 -0
- package/cjs/Accordion.js +1 -0
- package/cjs/AccordionBody.js +1 -0
- package/cjs/AccordionButton.js +1 -0
- package/cjs/AccordionCollapse.js +1 -0
- package/cjs/AccordionContext.js +1 -0
- package/cjs/AccordionHeader.js +1 -0
- package/cjs/AccordionItem.js +1 -0
- package/cjs/AccordionItemContext.js +1 -0
- package/cjs/AccordionToggle.d.ts +11 -0
- package/cjs/Alert.d.ts +1 -1
- package/cjs/Alert.js +1 -0
- package/cjs/Badge.js +1 -0
- package/cjs/Breadcrumb.js +1 -0
- package/cjs/BreadcrumbItem.js +1 -0
- package/cjs/Button.js +1 -0
- package/cjs/ButtonGroup.js +1 -0
- package/cjs/ButtonToolbar.js +1 -0
- package/cjs/Card.d.ts +2 -2
- package/cjs/Card.js +1 -0
- package/cjs/CardColumns.d.ts +2 -0
- package/cjs/CardContext.d.ts +6 -0
- package/cjs/CardDeck.d.ts +2 -0
- package/cjs/CardHeader.js +1 -0
- package/cjs/CardHeaderContext.js +1 -0
- package/cjs/CardImg.js +1 -0
- package/cjs/Carousel.js +1 -0
- package/cjs/CarouselItem.js +1 -0
- package/cjs/Col.js +1 -0
- package/cjs/Container.js +1 -0
- package/cjs/Dropdown.js +1 -0
- package/cjs/DropdownContext.js +1 -0
- package/cjs/DropdownItem.js +1 -0
- package/cjs/DropdownMenu.js +1 -0
- package/cjs/DropdownToggle.js +1 -0
- package/cjs/FloatingLabel.js +1 -0
- package/cjs/Form.d.ts +10 -4
- package/cjs/FormCheck.js +1 -0
- package/cjs/FormCheckInput.js +1 -0
- package/cjs/FormCheckLabel.js +1 -0
- package/cjs/FormContext.js +1 -0
- package/cjs/FormControl.js +1 -0
- package/cjs/FormFile.d.ts +23 -0
- package/cjs/FormFileInput.d.ts +10 -0
- package/cjs/FormFileLabel.d.ts +7 -0
- package/cjs/FormLabel.js +1 -0
- package/cjs/FormRange.js +1 -0
- package/cjs/FormSelect.js +1 -0
- package/cjs/FormText.js +1 -0
- package/cjs/Image.js +1 -0
- package/cjs/InputGroup.js +1 -0
- package/cjs/InputGroupContext.js +1 -0
- package/cjs/Jumbotron.d.ts +7 -0
- package/cjs/ListGroup.js +1 -0
- package/cjs/ListGroupItem.js +1 -0
- package/cjs/Media.d.ts +8 -0
- package/cjs/Modal.d.ts +1 -1
- package/cjs/Modal.js +1 -0
- package/cjs/ModalContext.js +1 -0
- package/cjs/ModalDialog.js +1 -0
- package/cjs/ModalHeader.js +1 -0
- package/cjs/ModalTitle.d.ts +1 -1
- package/cjs/Nav.d.ts +1 -1
- package/cjs/Nav.js +1 -0
- package/cjs/NavContext.js +1 -0
- package/cjs/NavDropdown.js +1 -0
- package/cjs/NavLink.js +1 -0
- package/cjs/Navbar.d.ts +1 -1
- package/cjs/Navbar.js +1 -0
- package/cjs/NavbarBrand.js +1 -0
- package/cjs/NavbarCollapse.js +1 -0
- package/cjs/NavbarContext.js +1 -0
- package/cjs/NavbarOffcanvas.d.ts +1 -1
- package/cjs/NavbarOffcanvas.js +1 -0
- package/cjs/NavbarToggle.js +1 -0
- package/cjs/Offcanvas.d.ts +1 -1
- package/cjs/Offcanvas.js +1 -0
- package/cjs/OffcanvasHeader.js +1 -0
- package/cjs/OffcanvasTitle.d.ts +1 -1
- package/cjs/OffcanvasToggling.js +1 -0
- package/cjs/Overlay.js +1 -0
- package/cjs/OverlayTrigger.js +1 -0
- package/cjs/PageItem.d.ts +2 -0
- package/cjs/PageItem.js +4 -1
- package/cjs/Pagination.js +1 -0
- package/cjs/Popover.js +1 -0
- package/cjs/PopoverContent.d.ts +5 -0
- package/cjs/PopoverTitle.d.ts +5 -0
- package/cjs/ProgressBar.js +1 -0
- package/cjs/Ratio.js +1 -0
- package/cjs/ResponsiveEmbed.d.ts +9 -0
- package/cjs/Row.js +1 -0
- package/cjs/SafeAnchor.d.ts +17 -0
- package/cjs/SelectableContext.d.ts +5 -0
- package/cjs/Spinner.js +1 -0
- package/cjs/Stack.js +1 -0
- package/cjs/Tab.js +0 -6
- package/cjs/TabContext.d.ts +12 -0
- package/cjs/TabPane.js +1 -0
- package/cjs/Table.js +1 -0
- package/cjs/Tabs.d.ts +1 -1
- package/cjs/ThemeProvider.js +1 -0
- package/cjs/Toast.js +1 -0
- package/cjs/ToastContainer.js +1 -0
- package/cjs/ToastContext.js +1 -0
- package/cjs/ToastHeader.js +1 -0
- package/cjs/ToggleButton.js +1 -0
- package/cjs/Tooltip.d.ts +4 -2
- package/cjs/Tooltip.js +6 -1
- package/cjs/TransitionWrapper.d.ts +3 -3
- package/cjs/TransitionWrapper.js +4 -1
- package/cjs/createWithBsPrefix.js +1 -0
- package/cjs/divWithClassName.d.ts +1 -1
- package/cjs/useOverlayOffset.js +16 -5
- package/cjs/usePlaceholder.js +1 -0
- package/cjs/usePopperMarginModifiers.d.ts +4 -0
- package/dist/react-bootstrap.js +312 -216
- package/dist/react-bootstrap.min.js +1 -1
- package/esm/AbstractModalHeader.js +2 -0
- package/esm/AbstractNav.d.ts +15 -0
- package/esm/AbstractNavItem.d.ts +19 -0
- package/esm/Accordion.js +2 -0
- package/esm/AccordionBody.js +2 -0
- package/esm/AccordionButton.js +2 -0
- package/esm/AccordionCollapse.js +2 -0
- package/esm/AccordionContext.js +2 -0
- package/esm/AccordionHeader.js +2 -0
- package/esm/AccordionItem.js +2 -0
- package/esm/AccordionItemContext.js +2 -0
- package/esm/AccordionToggle.d.ts +11 -0
- package/esm/Alert.d.ts +1 -1
- package/esm/Alert.js +2 -0
- package/esm/Badge.js +2 -0
- package/esm/Breadcrumb.js +2 -0
- package/esm/BreadcrumbItem.js +2 -0
- package/esm/Button.js +2 -0
- package/esm/ButtonGroup.js +2 -0
- package/esm/ButtonToolbar.js +2 -0
- package/esm/Card.d.ts +2 -2
- package/esm/Card.js +2 -0
- package/esm/CardColumns.d.ts +2 -0
- package/esm/CardContext.d.ts +6 -0
- package/esm/CardDeck.d.ts +2 -0
- package/esm/CardHeader.js +2 -0
- package/esm/CardHeaderContext.js +2 -0
- package/esm/CardImg.js +2 -0
- package/esm/Carousel.js +2 -0
- package/esm/CarouselItem.js +2 -0
- package/esm/Col.js +2 -0
- package/esm/Container.js +2 -0
- package/esm/Dropdown.js +2 -0
- package/esm/DropdownContext.js +2 -0
- package/esm/DropdownItem.js +2 -0
- package/esm/DropdownMenu.js +2 -0
- package/esm/DropdownToggle.js +2 -0
- package/esm/FloatingLabel.js +2 -0
- package/esm/Form.d.ts +10 -4
- package/esm/FormCheck.js +2 -0
- package/esm/FormCheckInput.js +2 -0
- package/esm/FormCheckLabel.js +2 -0
- package/esm/FormContext.js +2 -0
- package/esm/FormControl.js +2 -0
- package/esm/FormFile.d.ts +23 -0
- package/esm/FormFileInput.d.ts +10 -0
- package/esm/FormFileLabel.d.ts +7 -0
- package/esm/FormLabel.js +2 -0
- package/esm/FormRange.js +2 -0
- package/esm/FormSelect.js +2 -0
- package/esm/FormText.js +2 -0
- package/esm/Image.js +2 -0
- package/esm/InputGroup.js +2 -0
- package/esm/InputGroupContext.js +2 -0
- package/esm/Jumbotron.d.ts +7 -0
- package/esm/ListGroup.js +2 -0
- package/esm/ListGroupItem.js +2 -0
- package/esm/Media.d.ts +8 -0
- package/esm/Modal.d.ts +1 -1
- package/esm/Modal.js +2 -0
- package/esm/ModalContext.js +2 -0
- package/esm/ModalDialog.js +2 -0
- package/esm/ModalHeader.js +2 -0
- package/esm/ModalTitle.d.ts +1 -1
- package/esm/Nav.d.ts +1 -1
- package/esm/Nav.js +2 -0
- package/esm/NavContext.js +2 -0
- package/esm/NavDropdown.js +2 -0
- package/esm/NavLink.js +2 -0
- package/esm/Navbar.d.ts +1 -1
- package/esm/Navbar.js +2 -0
- package/esm/NavbarBrand.js +2 -0
- package/esm/NavbarCollapse.js +2 -0
- package/esm/NavbarContext.js +2 -0
- package/esm/NavbarOffcanvas.d.ts +1 -1
- package/esm/NavbarOffcanvas.js +2 -0
- package/esm/NavbarToggle.js +2 -0
- package/esm/Offcanvas.d.ts +1 -1
- package/esm/Offcanvas.js +2 -0
- package/esm/OffcanvasHeader.js +2 -0
- package/esm/OffcanvasTitle.d.ts +1 -1
- package/esm/OffcanvasToggling.js +2 -0
- package/esm/Overlay.js +2 -0
- package/esm/OverlayTrigger.js +2 -0
- package/esm/PageItem.d.ts +2 -0
- package/esm/PageItem.js +4 -1
- package/esm/Pagination.js +2 -0
- package/esm/Popover.js +2 -0
- package/esm/PopoverContent.d.ts +5 -0
- package/esm/PopoverTitle.d.ts +5 -0
- package/esm/ProgressBar.js +2 -0
- package/esm/Ratio.js +2 -0
- package/esm/ResponsiveEmbed.d.ts +9 -0
- package/esm/Row.js +2 -0
- package/esm/SafeAnchor.d.ts +17 -0
- package/esm/SelectableContext.d.ts +5 -0
- package/esm/Spinner.js +2 -0
- package/esm/Stack.js +2 -0
- package/esm/Tab.js +0 -5
- package/esm/TabContext.d.ts +12 -0
- package/esm/TabPane.js +2 -0
- package/esm/Table.js +2 -0
- package/esm/Tabs.d.ts +1 -1
- package/esm/ThemeProvider.js +2 -0
- package/esm/Toast.js +2 -0
- package/esm/ToastContainer.js +2 -0
- package/esm/ToastContext.js +2 -0
- package/esm/ToastHeader.js +2 -0
- package/esm/ToggleButton.js +2 -0
- package/esm/Tooltip.d.ts +4 -2
- package/esm/Tooltip.js +7 -1
- package/esm/TransitionWrapper.d.ts +3 -3
- package/esm/TransitionWrapper.js +5 -1
- package/esm/createWithBsPrefix.js +2 -0
- package/esm/divWithClassName.d.ts +1 -1
- package/esm/useOverlayOffset.js +17 -5
- package/esm/usePlaceholder.js +2 -0
- package/esm/usePopperMarginModifiers.d.ts +4 -0
- package/package.json +4 -4
package/dist/react-bootstrap.js
CHANGED
|
@@ -883,91 +883,91 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
883
883
|
|
|
884
884
|
// EXPORTS
|
|
885
885
|
__webpack_require__.d(__webpack_exports__, {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
886
|
+
Accordion: () => (/* reexport */ src_Accordion),
|
|
887
|
+
AccordionButton: () => (/* reexport */ src_AccordionButton),
|
|
888
|
+
AccordionCollapse: () => (/* reexport */ src_AccordionCollapse),
|
|
889
|
+
AccordionContext: () => (/* reexport */ AccordionContext),
|
|
890
|
+
Alert: () => (/* reexport */ src_Alert),
|
|
891
|
+
Anchor: () => (/* reexport */ src_Anchor),
|
|
892
|
+
Badge: () => (/* reexport */ src_Badge),
|
|
893
|
+
Breadcrumb: () => (/* reexport */ src_Breadcrumb),
|
|
894
|
+
BreadcrumbItem: () => (/* reexport */ src_BreadcrumbItem),
|
|
895
|
+
Button: () => (/* reexport */ src_Button),
|
|
896
|
+
ButtonGroup: () => (/* reexport */ src_ButtonGroup),
|
|
897
|
+
ButtonToolbar: () => (/* reexport */ src_ButtonToolbar),
|
|
898
|
+
Card: () => (/* reexport */ src_Card),
|
|
899
|
+
CardGroup: () => (/* reexport */ CardGroup),
|
|
900
|
+
CardImg: () => (/* reexport */ src_CardImg),
|
|
901
|
+
Carousel: () => (/* reexport */ src_Carousel),
|
|
902
|
+
CarouselItem: () => (/* reexport */ src_CarouselItem),
|
|
903
|
+
CloseButton: () => (/* reexport */ src_CloseButton),
|
|
904
|
+
Col: () => (/* reexport */ src_Col),
|
|
905
|
+
Collapse: () => (/* reexport */ src_Collapse),
|
|
906
|
+
Container: () => (/* reexport */ src_Container),
|
|
907
|
+
Dropdown: () => (/* reexport */ src_Dropdown),
|
|
908
|
+
DropdownButton: () => (/* reexport */ src_DropdownButton),
|
|
909
|
+
Fade: () => (/* reexport */ src_Fade),
|
|
910
|
+
Figure: () => (/* reexport */ src_Figure),
|
|
911
|
+
FloatingLabel: () => (/* reexport */ src_FloatingLabel),
|
|
912
|
+
Form: () => (/* reexport */ src_Form),
|
|
913
|
+
FormCheck: () => (/* reexport */ src_FormCheck),
|
|
914
|
+
FormControl: () => (/* reexport */ src_FormControl),
|
|
915
|
+
FormFloating: () => (/* reexport */ FormFloating),
|
|
916
|
+
FormGroup: () => (/* reexport */ src_FormGroup),
|
|
917
|
+
FormLabel: () => (/* reexport */ src_FormLabel),
|
|
918
|
+
FormSelect: () => (/* reexport */ src_FormSelect),
|
|
919
|
+
FormText: () => (/* reexport */ src_FormText),
|
|
920
|
+
Image: () => (/* reexport */ src_Image),
|
|
921
|
+
InputGroup: () => (/* reexport */ src_InputGroup),
|
|
922
|
+
ListGroup: () => (/* reexport */ src_ListGroup),
|
|
923
|
+
ListGroupItem: () => (/* reexport */ src_ListGroupItem),
|
|
924
|
+
Modal: () => (/* reexport */ src_Modal),
|
|
925
|
+
ModalBody: () => (/* reexport */ ModalBody),
|
|
926
|
+
ModalDialog: () => (/* reexport */ src_ModalDialog),
|
|
927
|
+
ModalFooter: () => (/* reexport */ ModalFooter),
|
|
928
|
+
ModalHeader: () => (/* reexport */ src_ModalHeader),
|
|
929
|
+
ModalTitle: () => (/* reexport */ ModalTitle),
|
|
930
|
+
Nav: () => (/* reexport */ src_Nav),
|
|
931
|
+
NavDropdown: () => (/* reexport */ src_NavDropdown),
|
|
932
|
+
NavItem: () => (/* reexport */ src_NavItem),
|
|
933
|
+
NavLink: () => (/* reexport */ src_NavLink),
|
|
934
|
+
Navbar: () => (/* reexport */ src_Navbar),
|
|
935
|
+
NavbarBrand: () => (/* reexport */ src_NavbarBrand),
|
|
936
|
+
Offcanvas: () => (/* reexport */ src_Offcanvas),
|
|
937
|
+
OffcanvasBody: () => (/* reexport */ OffcanvasBody),
|
|
938
|
+
OffcanvasHeader: () => (/* reexport */ src_OffcanvasHeader),
|
|
939
|
+
OffcanvasTitle: () => (/* reexport */ OffcanvasTitle),
|
|
940
|
+
Overlay: () => (/* reexport */ src_Overlay),
|
|
941
|
+
OverlayTrigger: () => (/* reexport */ src_OverlayTrigger),
|
|
942
|
+
PageItem: () => (/* reexport */ src_PageItem),
|
|
943
|
+
Pagination: () => (/* reexport */ src_Pagination),
|
|
944
|
+
Placeholder: () => (/* reexport */ src_Placeholder),
|
|
945
|
+
PlaceholderButton: () => (/* reexport */ src_PlaceholderButton),
|
|
946
|
+
Popover: () => (/* reexport */ src_Popover),
|
|
947
|
+
PopoverBody: () => (/* reexport */ PopoverBody),
|
|
948
|
+
PopoverHeader: () => (/* reexport */ PopoverHeader),
|
|
949
|
+
ProgressBar: () => (/* reexport */ src_ProgressBar),
|
|
950
|
+
Ratio: () => (/* reexport */ src_Ratio),
|
|
951
|
+
Row: () => (/* reexport */ src_Row),
|
|
952
|
+
SSRProvider: () => (/* reexport */ SSRProvider),
|
|
953
|
+
Spinner: () => (/* reexport */ src_Spinner),
|
|
954
|
+
SplitButton: () => (/* reexport */ src_SplitButton),
|
|
955
|
+
Stack: () => (/* reexport */ src_Stack),
|
|
956
|
+
Tab: () => (/* reexport */ src_Tab),
|
|
957
|
+
TabContainer: () => (/* reexport */ src_TabContainer),
|
|
958
|
+
TabContent: () => (/* reexport */ TabContent),
|
|
959
|
+
TabPane: () => (/* reexport */ src_TabPane),
|
|
960
|
+
Table: () => (/* reexport */ src_Table),
|
|
961
|
+
Tabs: () => (/* reexport */ src_Tabs),
|
|
962
|
+
ThemeProvider: () => (/* reexport */ src_ThemeProvider),
|
|
963
|
+
Toast: () => (/* reexport */ src_Toast),
|
|
964
|
+
ToastBody: () => (/* reexport */ ToastBody),
|
|
965
|
+
ToastContainer: () => (/* reexport */ src_ToastContainer),
|
|
966
|
+
ToastHeader: () => (/* reexport */ src_ToastHeader),
|
|
967
|
+
ToggleButton: () => (/* reexport */ src_ToggleButton),
|
|
968
|
+
ToggleButtonGroup: () => (/* reexport */ src_ToggleButtonGroup),
|
|
969
|
+
Tooltip: () => (/* reexport */ src_Tooltip),
|
|
970
|
+
useAccordionButton: () => (/* reexport */ useAccordionButton)
|
|
971
971
|
});
|
|
972
972
|
|
|
973
973
|
// EXTERNAL MODULE: ./node_modules/classnames/index.js
|
|
@@ -979,7 +979,7 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
|
|
|
979
979
|
// EXTERNAL MODULE: ./node_modules/prop-types/index.js
|
|
980
980
|
var prop_types = __webpack_require__(526);
|
|
981
981
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
982
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
|
|
982
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
|
|
983
983
|
function extends_extends() {
|
|
984
984
|
extends_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
985
985
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -994,7 +994,7 @@ function extends_extends() {
|
|
|
994
994
|
};
|
|
995
995
|
return extends_extends.apply(this, arguments);
|
|
996
996
|
}
|
|
997
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
997
|
+
;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
|
|
998
998
|
function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
|
|
999
999
|
if (source == null) return {};
|
|
1000
1000
|
var target = {};
|
|
@@ -2290,7 +2290,9 @@ const TransitionWrapper = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
2290
2290
|
onExiting: handleExiting,
|
|
2291
2291
|
addEndListener: handleAddEndListener,
|
|
2292
2292
|
nodeRef: nodeRef,
|
|
2293
|
-
children: typeof children === 'function' ? (status, innerProps) =>
|
|
2293
|
+
children: typeof children === 'function' ? (status, innerProps) =>
|
|
2294
|
+
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
2295
|
+
children(status, {
|
|
2294
2296
|
...innerProps,
|
|
2295
2297
|
ref: attachRef
|
|
2296
2298
|
}) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(children, {
|
|
@@ -4090,6 +4092,10 @@ const Button_propTypes = {
|
|
|
4090
4092
|
* `'outline-primary', 'outline-secondary', 'outline-success', 'outline-danger', 'outline-warning', 'outline-info', 'outline-dark', 'outline-light'`
|
|
4091
4093
|
*/
|
|
4092
4094
|
variant: (prop_types_default()).string,
|
|
4095
|
+
/**
|
|
4096
|
+
* Callback fired when the button is clicked.
|
|
4097
|
+
*/
|
|
4098
|
+
onClick: (prop_types_default()).func,
|
|
4093
4099
|
/**
|
|
4094
4100
|
* Specifies a large or small button.
|
|
4095
4101
|
*
|
|
@@ -4140,7 +4146,7 @@ const Button_Button = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
|
|
|
4140
4146
|
className: classnames_default()(className, prefix, active && 'active', variant && `${prefix}-${variant}`, size && `${prefix}-${size}`, props.href && disabled && 'disabled')
|
|
4141
4147
|
}, void 0, false, {
|
|
4142
4148
|
fileName: Button_jsxFileName,
|
|
4143
|
-
lineNumber:
|
|
4149
|
+
lineNumber: 100,
|
|
4144
4150
|
columnNumber: 9
|
|
4145
4151
|
}, undefined);
|
|
4146
4152
|
});
|
|
@@ -5258,6 +5264,74 @@ var toArray = Function.prototype.bind.call(Function.prototype.call, [].slice);
|
|
|
5258
5264
|
function qsa(element, selector) {
|
|
5259
5265
|
return toArray(element.querySelectorAll(selector));
|
|
5260
5266
|
}
|
|
5267
|
+
;// CONCATENATED MODULE: ./node_modules/@restart/ui/node_modules/uncontrollable/lib/esm/index.js
|
|
5268
|
+
function esm_objectWithoutPropertiesLoose(source, excluded) {
|
|
5269
|
+
if (source == null) return {};
|
|
5270
|
+
var target = {};
|
|
5271
|
+
var sourceKeys = Object.keys(source);
|
|
5272
|
+
var key, i;
|
|
5273
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
5274
|
+
key = sourceKeys[i];
|
|
5275
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
5276
|
+
target[key] = source[key];
|
|
5277
|
+
}
|
|
5278
|
+
return target;
|
|
5279
|
+
}
|
|
5280
|
+
function esm_toPropertyKey(arg) {
|
|
5281
|
+
var key = esm_toPrimitive(arg, "string");
|
|
5282
|
+
return typeof key === "symbol" ? key : String(key);
|
|
5283
|
+
}
|
|
5284
|
+
function esm_toPrimitive(input, hint) {
|
|
5285
|
+
if (typeof input !== "object" || input === null) return input;
|
|
5286
|
+
var prim = input[Symbol.toPrimitive];
|
|
5287
|
+
if (prim !== undefined) {
|
|
5288
|
+
var res = prim.call(input, hint || "default");
|
|
5289
|
+
if (typeof res !== "object") return res;
|
|
5290
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
5291
|
+
}
|
|
5292
|
+
return (hint === "string" ? String : Number)(input);
|
|
5293
|
+
}
|
|
5294
|
+
|
|
5295
|
+
function esm_defaultKey(key) {
|
|
5296
|
+
return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
|
|
5297
|
+
}
|
|
5298
|
+
function esm_useUncontrolledProp(propValue, defaultValue, handler) {
|
|
5299
|
+
const wasPropRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(propValue !== undefined);
|
|
5300
|
+
const [stateValue, setState] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(defaultValue);
|
|
5301
|
+
const isProp = propValue !== undefined;
|
|
5302
|
+
const wasProp = wasPropRef.current;
|
|
5303
|
+
wasPropRef.current = isProp;
|
|
5304
|
+
|
|
5305
|
+
/**
|
|
5306
|
+
* If a prop switches from controlled to Uncontrolled
|
|
5307
|
+
* reset its value to the defaultValue
|
|
5308
|
+
*/
|
|
5309
|
+
if (!isProp && wasProp && stateValue !== defaultValue) {
|
|
5310
|
+
setState(defaultValue);
|
|
5311
|
+
}
|
|
5312
|
+
return [isProp ? propValue : stateValue, (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((value, ...args) => {
|
|
5313
|
+
if (handler) handler(value, ...args);
|
|
5314
|
+
setState(value);
|
|
5315
|
+
}, [handler])];
|
|
5316
|
+
}
|
|
5317
|
+
|
|
5318
|
+
function esm_useUncontrolled(props, config) {
|
|
5319
|
+
return Object.keys(config).reduce((result, fieldName) => {
|
|
5320
|
+
const _ref = result,
|
|
5321
|
+
_defaultKey = esm_defaultKey(fieldName),
|
|
5322
|
+
{
|
|
5323
|
+
[_defaultKey]: defaultValue,
|
|
5324
|
+
[fieldName]: propsValue
|
|
5325
|
+
} = _ref,
|
|
5326
|
+
rest = esm_objectWithoutPropertiesLoose(_ref, [_defaultKey, fieldName].map(esm_toPropertyKey));
|
|
5327
|
+
const handlerName = config[fieldName];
|
|
5328
|
+
const [value, handler] = esm_useUncontrolledProp(propsValue, defaultValue, props[handlerName]);
|
|
5329
|
+
return Object.assign({}, rest, {
|
|
5330
|
+
[fieldName]: value,
|
|
5331
|
+
[handlerName]: handler
|
|
5332
|
+
});
|
|
5333
|
+
}, props);
|
|
5334
|
+
}
|
|
5261
5335
|
;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
|
|
5262
5336
|
|
|
5263
5337
|
/**
|
|
@@ -5290,7 +5364,7 @@ function useForceUpdate() {
|
|
|
5290
5364
|
|
|
5291
5365
|
const DropdownContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.createContext(null);
|
|
5292
5366
|
/* harmony default export */ const esm_DropdownContext = (DropdownContext);
|
|
5293
|
-
;// CONCATENATED MODULE: ./node_modules
|
|
5367
|
+
;// CONCATENATED MODULE: ./node_modules/dequal/dist/index.mjs
|
|
5294
5368
|
var has = Object.prototype.hasOwnProperty;
|
|
5295
5369
|
|
|
5296
5370
|
function find(iter, tar, key) {
|
|
@@ -7355,12 +7429,16 @@ function useClickOutside(ref, onClickOutside = useClickOutside_noop, {
|
|
|
7355
7429
|
}
|
|
7356
7430
|
});
|
|
7357
7431
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
|
|
7432
|
+
var _ownerWindow$event, _ownerWindow$parent;
|
|
7358
7433
|
if (disabled || ref == null) return undefined;
|
|
7359
7434
|
const doc = ownerDocument(getRefTarget(ref));
|
|
7435
|
+
const ownerWindow = doc.defaultView || window;
|
|
7360
7436
|
|
|
7361
7437
|
// Store the current event to avoid triggering handlers immediately
|
|
7438
|
+
// For things rendered in an iframe, the event might originate on the parent window
|
|
7439
|
+
// so we should fall back to that global event if the local one doesn't exist
|
|
7362
7440
|
// https://github.com/facebook/react/issues/20074
|
|
7363
|
-
let currentEvent = (
|
|
7441
|
+
let currentEvent = (_ownerWindow$event = ownerWindow.event) != null ? _ownerWindow$event : (_ownerWindow$parent = ownerWindow.parent) == null ? void 0 : _ownerWindow$parent.event;
|
|
7364
7442
|
let removeInitialTriggerListener = null;
|
|
7365
7443
|
if (InitialTriggerEvents[clickTrigger]) {
|
|
7366
7444
|
removeInitialTriggerListener = esm_listen(doc, InitialTriggerEvents[clickTrigger], handleInitialMouse, true);
|
|
@@ -7921,7 +7999,7 @@ function Dropdown({
|
|
|
7921
7999
|
children
|
|
7922
8000
|
}) {
|
|
7923
8001
|
const window = useWindow();
|
|
7924
|
-
const [show, onToggle] =
|
|
8002
|
+
const [show, onToggle] = esm_useUncontrolledProp(rawShow, defaultShow, rawOnToggle);
|
|
7925
8003
|
|
|
7926
8004
|
// We use normal refs instead of useCallbackRef in order to populate the
|
|
7927
8005
|
// the value as quickly as possible, otherwise the effect to focus the element
|
|
@@ -10666,6 +10744,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
10666
10744
|
onEntered
|
|
10667
10745
|
} = _ref,
|
|
10668
10746
|
rest = Modal_objectWithoutPropertiesLoose(_ref, Modal_excluded);
|
|
10747
|
+
const ownerWindow = useWindow();
|
|
10669
10748
|
const container = useWaitForDOMRef(containerRef);
|
|
10670
10749
|
const modal = useModalManager(providedManager);
|
|
10671
10750
|
const isMounted = useMounted();
|
|
@@ -10674,7 +10753,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
10674
10753
|
const lastFocusRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
10675
10754
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, () => modal, [modal]);
|
|
10676
10755
|
if (canUseDOM && !prevShow && show) {
|
|
10677
|
-
lastFocusRef.current = activeElement();
|
|
10756
|
+
lastFocusRef.current = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);
|
|
10678
10757
|
}
|
|
10679
10758
|
|
|
10680
10759
|
// TODO: I think this needs to be in an effect
|
|
@@ -10695,7 +10774,8 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
10695
10774
|
// autofocus after onShow to not trigger a focus event for previous
|
|
10696
10775
|
// modals before this one is shown.
|
|
10697
10776
|
if (autoFocus) {
|
|
10698
|
-
|
|
10777
|
+
var _modal$dialog$ownerDo, _modal$dialog;
|
|
10778
|
+
const currentActiveElement = activeElement((_modal$dialog$ownerDo = (_modal$dialog = modal.dialog) == null ? void 0 : _modal$dialog.ownerDocument) != null ? _modal$dialog$ownerDo : ownerWindow == null ? void 0 : ownerWindow.document);
|
|
10699
10779
|
if (modal.dialog && currentActiveElement && !contains_contains(modal.dialog, currentActiveElement)) {
|
|
10700
10780
|
lastFocusRef.current = currentActiveElement;
|
|
10701
10781
|
modal.dialog.focus();
|
|
@@ -10740,7 +10820,7 @@ const Modal = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react
|
|
|
10740
10820
|
if (!enforceFocus || !isMounted() || !modal.isTopModal()) {
|
|
10741
10821
|
return;
|
|
10742
10822
|
}
|
|
10743
|
-
const currentActiveElement = activeElement();
|
|
10823
|
+
const currentActiveElement = activeElement(ownerWindow == null ? void 0 : ownerWindow.document);
|
|
10744
10824
|
if (modal.dialog && currentActiveElement && !contains_contains(modal.dialog, currentActiveElement)) {
|
|
10745
10825
|
modal.dialog.focus();
|
|
10746
10826
|
}
|
|
@@ -11658,7 +11738,7 @@ const Nav_propTypes = {
|
|
|
11658
11738
|
/**
|
|
11659
11739
|
* The visual variant of the nav items.
|
|
11660
11740
|
*
|
|
11661
|
-
* @type {('tabs'|'pills')}
|
|
11741
|
+
* @type {('tabs'| 'pills' | 'underline')}
|
|
11662
11742
|
*/
|
|
11663
11743
|
variant: (prop_types_default()).string,
|
|
11664
11744
|
/**
|
|
@@ -13137,28 +13217,142 @@ Popover.propTypes = Popover_propTypes;
|
|
|
13137
13217
|
// https://github.com/twbs/bootstrap/blob/5c32767e0e0dbac2d934bcdee03719a65d3f1187/js/src/popover.js#L28
|
|
13138
13218
|
POPPER_OFFSET: [0, 8]
|
|
13139
13219
|
}));
|
|
13220
|
+
;// CONCATENATED MODULE: ./src/Tooltip.tsx
|
|
13221
|
+
var Tooltip_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Tooltip.tsx";
|
|
13222
|
+
|
|
13223
|
+
|
|
13224
|
+
|
|
13225
|
+
|
|
13226
|
+
|
|
13227
|
+
|
|
13228
|
+
|
|
13229
|
+
const Tooltip_propTypes = {
|
|
13230
|
+
/**
|
|
13231
|
+
* @default 'tooltip'
|
|
13232
|
+
*/
|
|
13233
|
+
bsPrefix: (prop_types_default()).string,
|
|
13234
|
+
/**
|
|
13235
|
+
* An html id attribute, necessary for accessibility
|
|
13236
|
+
* @type {string}
|
|
13237
|
+
* @required
|
|
13238
|
+
*/
|
|
13239
|
+
id: (prop_types_default()).string,
|
|
13240
|
+
/**
|
|
13241
|
+
* Sets the direction the Tooltip is positioned towards.
|
|
13242
|
+
*
|
|
13243
|
+
* > This is generally provided by the `Overlay` component positioning the tooltip
|
|
13244
|
+
*/
|
|
13245
|
+
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']),
|
|
13246
|
+
/**
|
|
13247
|
+
* An Overlay injected set of props for positioning the tooltip arrow.
|
|
13248
|
+
*
|
|
13249
|
+
* > This is generally provided by the `Overlay` component positioning the tooltip
|
|
13250
|
+
*
|
|
13251
|
+
* @type {{ ref: ReactRef, style: Object }}
|
|
13252
|
+
*/
|
|
13253
|
+
arrowProps: prop_types_default().shape({
|
|
13254
|
+
ref: (prop_types_default()).any,
|
|
13255
|
+
style: (prop_types_default()).object
|
|
13256
|
+
}),
|
|
13257
|
+
/**
|
|
13258
|
+
* Whether or not Popper has done its initial measurement and positioning.
|
|
13259
|
+
*/
|
|
13260
|
+
hasDoneInitialMeasure: (prop_types_default()).bool,
|
|
13261
|
+
/** @private */
|
|
13262
|
+
popper: (prop_types_default()).object,
|
|
13263
|
+
/** @private */
|
|
13264
|
+
show: (prop_types_default()).any
|
|
13265
|
+
};
|
|
13266
|
+
const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13267
|
+
bsPrefix,
|
|
13268
|
+
placement = 'right',
|
|
13269
|
+
className,
|
|
13270
|
+
style,
|
|
13271
|
+
children,
|
|
13272
|
+
arrowProps,
|
|
13273
|
+
hasDoneInitialMeasure,
|
|
13274
|
+
popper,
|
|
13275
|
+
show,
|
|
13276
|
+
...props
|
|
13277
|
+
}, ref) => {
|
|
13278
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
13279
|
+
const isRTL = useIsRTL();
|
|
13280
|
+
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
13281
|
+
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
13282
|
+
let computedStyle = style;
|
|
13283
|
+
if (show && !hasDoneInitialMeasure) {
|
|
13284
|
+
computedStyle = {
|
|
13285
|
+
...style,
|
|
13286
|
+
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
13287
|
+
};
|
|
13288
|
+
}
|
|
13289
|
+
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13290
|
+
ref: ref,
|
|
13291
|
+
style: computedStyle,
|
|
13292
|
+
role: "tooltip",
|
|
13293
|
+
"x-placement": primaryPlacement,
|
|
13294
|
+
className: classnames_default()(className, bsPrefix, `bs-tooltip-${bsDirection}`),
|
|
13295
|
+
...props,
|
|
13296
|
+
children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13297
|
+
className: "tooltip-arrow",
|
|
13298
|
+
...arrowProps
|
|
13299
|
+
}, void 0, false, {
|
|
13300
|
+
fileName: Tooltip_jsxFileName,
|
|
13301
|
+
lineNumber: 119,
|
|
13302
|
+
columnNumber: 9
|
|
13303
|
+
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
13304
|
+
className: `${bsPrefix}-inner`,
|
|
13305
|
+
children: children
|
|
13306
|
+
}, void 0, false, {
|
|
13307
|
+
fileName: Tooltip_jsxFileName,
|
|
13308
|
+
lineNumber: 120,
|
|
13309
|
+
columnNumber: 9
|
|
13310
|
+
}, undefined)]
|
|
13311
|
+
}, void 0, true, {
|
|
13312
|
+
fileName: Tooltip_jsxFileName,
|
|
13313
|
+
lineNumber: 111,
|
|
13314
|
+
columnNumber: 7
|
|
13315
|
+
}, undefined);
|
|
13316
|
+
});
|
|
13317
|
+
Tooltip.propTypes = Tooltip_propTypes;
|
|
13318
|
+
Tooltip.displayName = 'Tooltip';
|
|
13319
|
+
/* harmony default export */ const src_Tooltip = (Object.assign(Tooltip, {
|
|
13320
|
+
// Default tooltip offset.
|
|
13321
|
+
// https://github.com/twbs/bootstrap/blob/beca2a6c7f6bc88b6449339fc76edcda832c59e5/js/src/tooltip.js#L65
|
|
13322
|
+
TOOLTIP_OFFSET: [0, 6]
|
|
13323
|
+
}));
|
|
13140
13324
|
;// CONCATENATED MODULE: ./src/useOverlayOffset.tsx
|
|
13141
13325
|
|
|
13142
13326
|
|
|
13143
13327
|
|
|
13144
13328
|
|
|
13145
13329
|
|
|
13330
|
+
|
|
13146
13331
|
// This is meant for internal use.
|
|
13147
|
-
// This applies a custom offset to the overlay if it's a popover.
|
|
13332
|
+
// This applies a custom offset to the overlay if it's a popover or tooltip.
|
|
13148
13333
|
function useOverlayOffset(customOffset) {
|
|
13149
13334
|
const overlayRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
13150
13335
|
const popoverClass = useBootstrapPrefix(undefined, 'popover');
|
|
13336
|
+
const tooltipClass = useBootstrapPrefix(undefined, 'tooltip');
|
|
13151
13337
|
const offset = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
13152
13338
|
name: 'offset',
|
|
13153
13339
|
options: {
|
|
13154
13340
|
offset: () => {
|
|
13155
|
-
if (
|
|
13156
|
-
return customOffset
|
|
13341
|
+
if (customOffset) {
|
|
13342
|
+
return customOffset;
|
|
13343
|
+
}
|
|
13344
|
+
if (overlayRef.current) {
|
|
13345
|
+
if (hasClass(overlayRef.current, popoverClass)) {
|
|
13346
|
+
return src_Popover.POPPER_OFFSET;
|
|
13347
|
+
}
|
|
13348
|
+
if (hasClass(overlayRef.current, tooltipClass)) {
|
|
13349
|
+
return src_Tooltip.TOOLTIP_OFFSET;
|
|
13350
|
+
}
|
|
13157
13351
|
}
|
|
13158
|
-
return
|
|
13352
|
+
return [0, 0];
|
|
13159
13353
|
}
|
|
13160
13354
|
}
|
|
13161
|
-
}), [customOffset, popoverClass]);
|
|
13355
|
+
}), [customOffset, popoverClass, tooltipClass]);
|
|
13162
13356
|
return [overlayRef, [offset]];
|
|
13163
13357
|
}
|
|
13164
13358
|
;// CONCATENATED MODULE: ./src/Overlay.tsx
|
|
@@ -13563,7 +13757,11 @@ const PageItem_propTypes = {
|
|
|
13563
13757
|
/** The HTML href attribute for the `PageItem`. */
|
|
13564
13758
|
href: (prop_types_default()).string,
|
|
13565
13759
|
/** A callback function for when this component is clicked. */
|
|
13566
|
-
onClick: (prop_types_default()).func
|
|
13760
|
+
onClick: (prop_types_default()).func,
|
|
13761
|
+
/** custom style for the inner component of the PageItem */
|
|
13762
|
+
linkStyle: (prop_types_default()).object,
|
|
13763
|
+
/** custom className for the inner component of the PageItem */
|
|
13764
|
+
linkClassName: (prop_types_default()).string
|
|
13567
13765
|
};
|
|
13568
13766
|
const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
13569
13767
|
active = false,
|
|
@@ -13572,6 +13770,8 @@ const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
13572
13770
|
style,
|
|
13573
13771
|
activeLabel = '(current)',
|
|
13574
13772
|
children,
|
|
13773
|
+
linkStyle,
|
|
13774
|
+
linkClassName,
|
|
13575
13775
|
...props
|
|
13576
13776
|
}, ref) => {
|
|
13577
13777
|
const Component = active || disabled ? 'span' : esm_Anchor;
|
|
@@ -13583,24 +13783,25 @@ const PageItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
|
|
|
13583
13783
|
disabled
|
|
13584
13784
|
}),
|
|
13585
13785
|
children: /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
|
|
13586
|
-
className:
|
|
13786
|
+
className: classnames_default()('page-link', linkClassName),
|
|
13787
|
+
style: linkStyle,
|
|
13587
13788
|
...props,
|
|
13588
13789
|
children: [children, active && activeLabel && /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
|
|
13589
13790
|
className: "visually-hidden",
|
|
13590
13791
|
children: activeLabel
|
|
13591
13792
|
}, void 0, false, {
|
|
13592
13793
|
fileName: PageItem_jsxFileName,
|
|
13593
|
-
lineNumber:
|
|
13794
|
+
lineNumber: 73,
|
|
13594
13795
|
columnNumber: 15
|
|
13595
13796
|
}, undefined)]
|
|
13596
13797
|
}, void 0, true, {
|
|
13597
13798
|
fileName: PageItem_jsxFileName,
|
|
13598
|
-
lineNumber:
|
|
13799
|
+
lineNumber: 66,
|
|
13599
13800
|
columnNumber: 11
|
|
13600
13801
|
}, undefined)
|
|
13601
13802
|
}, void 0, false, {
|
|
13602
13803
|
fileName: PageItem_jsxFileName,
|
|
13603
|
-
lineNumber:
|
|
13804
|
+
lineNumber: 61,
|
|
13604
13805
|
columnNumber: 9
|
|
13605
13806
|
}, undefined);
|
|
13606
13807
|
});
|
|
@@ -13619,19 +13820,19 @@ function createButton(name, defaultValue, label = name) {
|
|
|
13619
13820
|
children: children || defaultValue
|
|
13620
13821
|
}, void 0, false, {
|
|
13621
13822
|
fileName: PageItem_jsxFileName,
|
|
13622
|
-
lineNumber:
|
|
13823
|
+
lineNumber: 90,
|
|
13623
13824
|
columnNumber: 9
|
|
13624
13825
|
}, this), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("span", {
|
|
13625
13826
|
className: "visually-hidden",
|
|
13626
13827
|
children: label
|
|
13627
13828
|
}, void 0, false, {
|
|
13628
13829
|
fileName: PageItem_jsxFileName,
|
|
13629
|
-
lineNumber:
|
|
13830
|
+
lineNumber: 91,
|
|
13630
13831
|
columnNumber: 9
|
|
13631
13832
|
}, this)]
|
|
13632
13833
|
}, void 0, true, {
|
|
13633
13834
|
fileName: PageItem_jsxFileName,
|
|
13634
|
-
lineNumber:
|
|
13835
|
+
lineNumber: 89,
|
|
13635
13836
|
columnNumber: 7
|
|
13636
13837
|
}, this));
|
|
13637
13838
|
Button.displayName = name;
|
|
@@ -14599,7 +14800,7 @@ const Tabs = props => {
|
|
|
14599
14800
|
unmountOnExit,
|
|
14600
14801
|
children
|
|
14601
14802
|
} = props;
|
|
14602
|
-
const [activeKey, onSelect] =
|
|
14803
|
+
const [activeKey, onSelect] = esm_useUncontrolledProp(propsActiveKey, defaultActiveKey, propsOnSelect);
|
|
14603
14804
|
const id = $704cf1d3b684cc5c$export$619500959fc48b26(userId);
|
|
14604
14805
|
const generateChildId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
|
|
14605
14806
|
const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
|
|
@@ -14850,9 +15051,6 @@ TabPane.propTypes = TabPane_propTypes;
|
|
|
14850
15051
|
|
|
14851
15052
|
|
|
14852
15053
|
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
15054
|
/* eslint-disable react/no-unused-prop-types */
|
|
14857
15055
|
const Tab_propTypes = {
|
|
14858
15056
|
eventKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
|
|
@@ -14875,8 +15073,6 @@ const Tab_propTypes = {
|
|
|
14875
15073
|
};
|
|
14876
15074
|
const Tab = () => {
|
|
14877
15075
|
throw new Error('ReactBootstrap: The `Tab` component is not meant to be rendered! ' + "It's an abstract component that is only valid as a direct Child of the `Tabs` Component. " + 'For custom tabs components use TabPane and TabsContainer directly');
|
|
14878
|
-
// Needed otherwise docs error out.
|
|
14879
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(jsx_dev_runtime.Fragment, {}, void 0, false);
|
|
14880
15076
|
};
|
|
14881
15077
|
Tab.propTypes = Tab_propTypes;
|
|
14882
15078
|
/* harmony default export */ const src_Tab = (Object.assign(Tab, {
|
|
@@ -15001,7 +15197,7 @@ const Tabs_propTypes = {
|
|
|
15001
15197
|
/**
|
|
15002
15198
|
* Navigation style
|
|
15003
15199
|
*
|
|
15004
|
-
* @type {('tabs'| 'pills')}
|
|
15200
|
+
* @type {('tabs'| 'pills' | 'underline')}
|
|
15005
15201
|
*/
|
|
15006
15202
|
variant: (prop_types_default()).string,
|
|
15007
15203
|
/**
|
|
@@ -15633,106 +15829,6 @@ ToggleButtonGroup.propTypes = ToggleButtonGroup_propTypes;
|
|
|
15633
15829
|
/* harmony default export */ const src_ToggleButtonGroup = (Object.assign(ToggleButtonGroup, {
|
|
15634
15830
|
Button: src_ToggleButton
|
|
15635
15831
|
}));
|
|
15636
|
-
;// CONCATENATED MODULE: ./src/Tooltip.tsx
|
|
15637
|
-
var Tooltip_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/Tooltip.tsx";
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15645
|
-
const Tooltip_propTypes = {
|
|
15646
|
-
/**
|
|
15647
|
-
* @default 'tooltip'
|
|
15648
|
-
*/
|
|
15649
|
-
bsPrefix: (prop_types_default()).string,
|
|
15650
|
-
/**
|
|
15651
|
-
* An html id attribute, necessary for accessibility
|
|
15652
|
-
* @type {string}
|
|
15653
|
-
* @required
|
|
15654
|
-
*/
|
|
15655
|
-
id: (prop_types_default()).string,
|
|
15656
|
-
/**
|
|
15657
|
-
* Sets the direction the Tooltip is positioned towards.
|
|
15658
|
-
*
|
|
15659
|
-
* > This is generally provided by the `Overlay` component positioning the tooltip
|
|
15660
|
-
*/
|
|
15661
|
-
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']),
|
|
15662
|
-
/**
|
|
15663
|
-
* An Overlay injected set of props for positioning the tooltip arrow.
|
|
15664
|
-
*
|
|
15665
|
-
* > This is generally provided by the `Overlay` component positioning the tooltip
|
|
15666
|
-
*
|
|
15667
|
-
* @type {{ ref: ReactRef, style: Object }}
|
|
15668
|
-
*/
|
|
15669
|
-
arrowProps: prop_types_default().shape({
|
|
15670
|
-
ref: (prop_types_default()).any,
|
|
15671
|
-
style: (prop_types_default()).object
|
|
15672
|
-
}),
|
|
15673
|
-
/**
|
|
15674
|
-
* Whether or not Popper has done its initial measurement and positioning.
|
|
15675
|
-
*/
|
|
15676
|
-
hasDoneInitialMeasure: (prop_types_default()).bool,
|
|
15677
|
-
/** @private */
|
|
15678
|
-
popper: (prop_types_default()).object,
|
|
15679
|
-
/** @private */
|
|
15680
|
-
show: (prop_types_default()).any
|
|
15681
|
-
};
|
|
15682
|
-
const Tooltip = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
|
|
15683
|
-
bsPrefix,
|
|
15684
|
-
placement = 'right',
|
|
15685
|
-
className,
|
|
15686
|
-
style,
|
|
15687
|
-
children,
|
|
15688
|
-
arrowProps,
|
|
15689
|
-
hasDoneInitialMeasure,
|
|
15690
|
-
popper,
|
|
15691
|
-
show,
|
|
15692
|
-
...props
|
|
15693
|
-
}, ref) => {
|
|
15694
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'tooltip');
|
|
15695
|
-
const isRTL = useIsRTL();
|
|
15696
|
-
const [primaryPlacement] = (placement == null ? void 0 : placement.split('-')) || [];
|
|
15697
|
-
const bsDirection = getOverlayDirection(primaryPlacement, isRTL);
|
|
15698
|
-
let computedStyle = style;
|
|
15699
|
-
if (show && !hasDoneInitialMeasure) {
|
|
15700
|
-
computedStyle = {
|
|
15701
|
-
...style,
|
|
15702
|
-
...getInitialPopperStyles(popper == null ? void 0 : popper.strategy)
|
|
15703
|
-
};
|
|
15704
|
-
}
|
|
15705
|
-
return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
15706
|
-
ref: ref,
|
|
15707
|
-
style: computedStyle,
|
|
15708
|
-
role: "tooltip",
|
|
15709
|
-
"x-placement": primaryPlacement,
|
|
15710
|
-
className: classnames_default()(className, bsPrefix, `bs-tooltip-${bsDirection}`),
|
|
15711
|
-
...props,
|
|
15712
|
-
children: [/*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
15713
|
-
className: "tooltip-arrow",
|
|
15714
|
-
...arrowProps
|
|
15715
|
-
}, void 0, false, {
|
|
15716
|
-
fileName: Tooltip_jsxFileName,
|
|
15717
|
-
lineNumber: 119,
|
|
15718
|
-
columnNumber: 9
|
|
15719
|
-
}, undefined), /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
|
|
15720
|
-
className: `${bsPrefix}-inner`,
|
|
15721
|
-
children: children
|
|
15722
|
-
}, void 0, false, {
|
|
15723
|
-
fileName: Tooltip_jsxFileName,
|
|
15724
|
-
lineNumber: 120,
|
|
15725
|
-
columnNumber: 9
|
|
15726
|
-
}, undefined)]
|
|
15727
|
-
}, void 0, true, {
|
|
15728
|
-
fileName: Tooltip_jsxFileName,
|
|
15729
|
-
lineNumber: 111,
|
|
15730
|
-
columnNumber: 7
|
|
15731
|
-
}, undefined);
|
|
15732
|
-
});
|
|
15733
|
-
Tooltip.propTypes = Tooltip_propTypes;
|
|
15734
|
-
Tooltip.displayName = 'Tooltip';
|
|
15735
|
-
/* harmony default export */ const src_Tooltip = (Tooltip);
|
|
15736
15832
|
;// CONCATENATED MODULE: ./src/index.tsx
|
|
15737
15833
|
|
|
15738
15834
|
|